This is page 171 of 186. Use http://codebase.md/xmlui-org/xmlui/assets/img/%7Burl%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog-swa.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.gif
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── codefence-runner.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ ├── staticwebapp.config.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── FancyButton.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── control-cache-invalidation.md
│ │ │ │ ├── debounce-user-input-for-api-calls.md
│ │ │ │ ├── debounce-with-changelistener.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.tsx
│ │ │ ├── ConfirmationDialog.module.scss
│ │ │ ├── ConfirmationDialog.tsx
│ │ │ ├── Editor.tsx
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── Playground.tsx
│ │ │ ├── PlaygroundContent.module.scss
│ │ │ ├── PlaygroundContent.tsx
│ │ │ ├── PlaygroundNative.module.scss
│ │ │ ├── PlaygroundNative.tsx
│ │ │ ├── Preview.module.scss
│ │ │ ├── Preview.tsx
│ │ │ ├── Select.module.scss
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ ├── ToneSwitcher.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── component-metadata.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── theme-variables-refactoring.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── extract-component-metadata.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── generate-metadata-markdown.js
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.module.scss
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/TimeInput/TimeInput.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds, SKIP_REASON } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 |
4 | // =============================================================================
5 | // BASIC FUNCTIONALITY TESTS
6 | // =============================================================================
7 |
8 | test.describe("Basic Functionality", () => {
9 | test("component renders with default flags", async ({ initTestBed, createTimeInputDriver }) => {
10 | await initTestBed(`<TimeInput testId="timeInput" />`);
11 | const driver = await createTimeInputDriver("timeInput");
12 | await expect(driver.component).toBeVisible();
13 | await expect(driver.hourInput).toBeVisible();
14 | await expect(driver.minuteInput).toBeVisible();
15 | await expect(driver.secondInput).not.toBeVisible();
16 | await expect(driver.amPmInput).not.toBeVisible();
17 | await expect(driver.clearButton).not.toBeVisible();
18 | });
19 |
20 | test("component renders with label", async ({ initTestBed, createTimeInputDriver }) => {
21 | await initTestBed(`<TimeInput testId="timeInput" label="Select time" />`);
22 | const driver = await createTimeInputDriver("timeInput");
23 | await expect(driver.component).toBeVisible();
24 | await expect(driver.hourInput).toBeVisible();
25 | await expect(driver.minuteInput).toBeVisible();
26 | await expect(driver.secondInput).not.toBeVisible();
27 | await expect(driver.amPmInput).not.toBeVisible();
28 | await expect(driver.clearButton).not.toBeVisible();
29 | await expect(driver.label).toContainText("Select time");
30 | });
31 |
32 | test.describe("initialValue property", () => {
33 | test("renders with initialValue", async ({ initTestBed, createTimeInputDriver }) => {
34 | await initTestBed(`<TimeInput testId="timeInput" initialValue="14:30" />`);
35 | const driver = await createTimeInputDriver("timeInput");
36 | await expect(driver.component).toBeVisible();
37 | await expect(driver.hourInput).toHaveValue("14");
38 | await expect(driver.minuteInput).toHaveValue("30");
39 | await expect(driver.secondInput).not.toBeVisible();
40 | await expect(driver.amPmInput).not.toBeVisible();
41 | await expect(driver.clearButton).not.toBeVisible();
42 | });
43 |
44 | test("handles null initialValue", async ({ initTestBed, createTimeInputDriver }) => {
45 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{null}" />`);
46 | const driver = await createTimeInputDriver("timeInput");
47 | await expect(driver.component).toBeVisible();
48 | await expect(driver.hourInput).toHaveValue("");
49 | await expect(driver.minuteInput).toHaveValue("");
50 | await expect(driver.secondInput).not.toBeVisible();
51 | await expect(driver.amPmInput).not.toBeVisible();
52 | await expect(driver.clearButton).not.toBeVisible();
53 | });
54 |
55 | test("handles undefined initialValue", async ({ initTestBed, createTimeInputDriver }) => {
56 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{undefined}" />`);
57 | const driver = await createTimeInputDriver("timeInput");
58 | await expect(driver.component).toBeVisible();
59 | await expect(driver.hourInput).toHaveValue("");
60 | await expect(driver.minuteInput).toHaveValue("");
61 | await expect(driver.secondInput).not.toBeVisible();
62 | await expect(driver.amPmInput).not.toBeVisible();
63 | await expect(driver.clearButton).not.toBeVisible();
64 | });
65 |
66 | test("handles invalid time string", async ({ initTestBed, createTimeInputDriver }) => {
67 | await initTestBed(`<TimeInput testId="timeInput" initialValue="invalid" />`);
68 | const driver = await createTimeInputDriver("timeInput");
69 | await expect(driver.component).toBeVisible();
70 | await expect(driver.hourInput).toHaveValue("00");
71 | await expect(driver.minuteInput).toHaveValue("00");
72 | await expect(driver.secondInput).not.toBeVisible();
73 | await expect(driver.amPmInput).not.toBeVisible();
74 | await expect(driver.clearButton).not.toBeVisible();
75 | });
76 |
77 | test("handles time with seconds", async ({ initTestBed, createTimeInputDriver }) => {
78 | await initTestBed(`<TimeInput testId="timeInput" initialValue="14:30:45" seconds="true" />`);
79 | const driver = await createTimeInputDriver("timeInput");
80 | await expect(driver.component).toBeVisible();
81 | await expect(driver.hourInput).toHaveValue("14");
82 | await expect(driver.minuteInput).toHaveValue("30");
83 | await expect(driver.secondInput).toHaveValue("45");
84 | await expect(driver.amPmInput).not.toBeVisible();
85 | await expect(driver.clearButton).not.toBeVisible();
86 | });
87 |
88 | test("falls back to ISO time format when standard parsing fails", async ({
89 | initTestBed,
90 | createTimeInputDriver,
91 | }) => {
92 | await initTestBed(`<TimeInput testId="timeInput" initialValue="15:30:00" />`);
93 | const driver = await createTimeInputDriver("timeInput");
94 | await expect(driver.component).toBeVisible();
95 | await expect(driver.hourInput).toHaveValue("15");
96 | await expect(driver.minuteInput).toHaveValue("30");
97 | await expect(driver.secondInput).not.toBeVisible();
98 | await expect(driver.amPmInput).not.toBeVisible();
99 | await expect(driver.clearButton).not.toBeVisible();
100 | });
101 |
102 | test("falls back to ISO time format with seconds", async ({
103 | initTestBed,
104 | createTimeInputDriver,
105 | }) => {
106 | await initTestBed(`<TimeInput testId="timeInput" initialValue="09:15:30" seconds="true" />`);
107 | const driver = await createTimeInputDriver("timeInput");
108 | await expect(driver.component).toBeVisible();
109 | await expect(driver.hourInput).toHaveValue("09");
110 | await expect(driver.minuteInput).toHaveValue("15");
111 | await expect(driver.secondInput).toHaveValue("30");
112 | await expect(driver.amPmInput).not.toBeVisible();
113 | await expect(driver.clearButton).not.toBeVisible();
114 | });
115 |
116 | test("handles boolean initialValue gracefully", async ({
117 | initTestBed,
118 | createTimeInputDriver,
119 | }) => {
120 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{true}" />`);
121 | const driver = await createTimeInputDriver("timeInput");
122 | await expect(driver.component).toBeVisible();
123 | await expect(driver.hourInput).toHaveValue("");
124 | await expect(driver.minuteInput).toHaveValue("");
125 | await expect(driver.secondInput).not.toBeVisible();
126 | await expect(driver.amPmInput).not.toBeVisible();
127 | await expect(driver.clearButton).not.toBeVisible();
128 | });
129 |
130 | test("handles numeric initialValue gracefully", async ({
131 | initTestBed,
132 | createTimeInputDriver,
133 | }) => {
134 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{123}" />`);
135 | const driver = await createTimeInputDriver("timeInput");
136 | await expect(driver.component).toBeVisible();
137 | await expect(driver.hourInput).toHaveValue("");
138 | await expect(driver.minuteInput).toHaveValue("");
139 | await expect(driver.secondInput).not.toBeVisible();
140 | await expect(driver.amPmInput).not.toBeVisible();
141 | await expect(driver.clearButton).not.toBeVisible();
142 | });
143 |
144 | test("handles array initialValue gracefully", async ({
145 | initTestBed,
146 | createTimeInputDriver,
147 | }) => {
148 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{['14', '30']}" />`);
149 | const driver = await createTimeInputDriver("timeInput");
150 | await expect(driver.component).toBeVisible();
151 | await expect(driver.hourInput).toHaveValue("");
152 | await expect(driver.minuteInput).toHaveValue("");
153 | await expect(driver.secondInput).not.toBeVisible();
154 | await expect(driver.amPmInput).not.toBeVisible();
155 | await expect(driver.clearButton).not.toBeVisible();
156 | });
157 |
158 | test("handles object initialValue gracefully", async ({
159 | initTestBed,
160 | createTimeInputDriver,
161 | }) => {
162 | await initTestBed(
163 | `<TimeInput testId="timeInput" initialValue="{{ hour: 14, minute: 30 }}" />`,
164 | );
165 | const driver = await createTimeInputDriver("timeInput");
166 | await expect(driver.component).toBeVisible();
167 | await expect(driver.hourInput).toHaveValue("");
168 | await expect(driver.minuteInput).toHaveValue("");
169 | await expect(driver.secondInput).not.toBeVisible();
170 | await expect(driver.amPmInput).not.toBeVisible();
171 | await expect(driver.clearButton).not.toBeVisible();
172 | });
173 |
174 | test("handles function initialValue gracefully", async ({
175 | initTestBed,
176 | createTimeInputDriver,
177 | }) => {
178 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{() => '14:30'}" />`);
179 | const driver = await createTimeInputDriver("timeInput");
180 | await expect(driver.component).toBeVisible();
181 | await expect(driver.hourInput).toHaveValue("");
182 | await expect(driver.minuteInput).toHaveValue("");
183 | await expect(driver.secondInput).not.toBeVisible();
184 | await expect(driver.amPmInput).not.toBeVisible();
185 | await expect(driver.clearButton).not.toBeVisible();
186 | });
187 |
188 | test("handles Date object initialValue gracefully", async ({
189 | initTestBed,
190 | createTimeInputDriver,
191 | }) => {
192 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{getDate()}" />`);
193 | const driver = await createTimeInputDriver("timeInput");
194 | await expect(driver.component).toBeVisible();
195 | await expect(driver.hourInput).toHaveValue("");
196 | await expect(driver.minuteInput).toHaveValue("");
197 | await expect(driver.secondInput).not.toBeVisible();
198 | await expect(driver.amPmInput).not.toBeVisible();
199 | await expect(driver.clearButton).not.toBeVisible();
200 | });
201 |
202 | test("handles Symbol initialValue gracefully", async ({
203 | initTestBed,
204 | createTimeInputDriver,
205 | }) => {
206 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{Symbol('time')}" />`);
207 | const driver = await createTimeInputDriver("timeInput");
208 | await expect(driver.component).toBeVisible();
209 | await expect(driver.hourInput).toHaveValue("");
210 | await expect(driver.minuteInput).toHaveValue("");
211 | await expect(driver.secondInput).not.toBeVisible();
212 | await expect(driver.amPmInput).not.toBeVisible();
213 | await expect(driver.clearButton).not.toBeVisible();
214 | });
215 |
216 | test("handles BigInt initialValue gracefully", async ({
217 | initTestBed,
218 | createTimeInputDriver,
219 | }) => {
220 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{BigInt(1430)}" />`);
221 | const driver = await createTimeInputDriver("timeInput");
222 | await expect(driver.component).toBeVisible();
223 | await expect(driver.hourInput).toHaveValue("");
224 | await expect(driver.minuteInput).toHaveValue("");
225 | await expect(driver.secondInput).not.toBeVisible();
226 | await expect(driver.amPmInput).not.toBeVisible();
227 | await expect(driver.clearButton).not.toBeVisible();
228 | });
229 |
230 | test("handles zero numeric initialValue gracefully", async ({
231 | initTestBed,
232 | createTimeInputDriver,
233 | }) => {
234 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{0}" />`);
235 | const driver = await createTimeInputDriver("timeInput");
236 | await expect(driver.component).toBeVisible();
237 | await expect(driver.hourInput).toHaveValue("");
238 | await expect(driver.minuteInput).toHaveValue("");
239 | await expect(driver.secondInput).not.toBeVisible();
240 | await expect(driver.amPmInput).not.toBeVisible();
241 | await expect(driver.clearButton).not.toBeVisible();
242 | });
243 |
244 | test("handles negative numeric initialValue gracefully", async ({
245 | initTestBed,
246 | createTimeInputDriver,
247 | }) => {
248 | await initTestBed(`<TimeInput testId="timeInput" initialValue="{-1}" />`);
249 | const driver = await createTimeInputDriver("timeInput");
250 | await expect(driver.component).toBeVisible();
251 | await expect(driver.hourInput).toHaveValue("");
252 | await expect(driver.minuteInput).toHaveValue("");
253 | await expect(driver.secondInput).not.toBeVisible();
254 | await expect(driver.amPmInput).not.toBeVisible();
255 | await expect(driver.clearButton).not.toBeVisible();
256 | });
257 |
258 | test("handles empty string initialValue gracefully", async ({
259 | initTestBed,
260 | createTimeInputDriver,
261 | }) => {
262 | await initTestBed(`<TimeInput testId="timeInput" initialValue="" />`);
263 | const driver = await createTimeInputDriver("timeInput");
264 | await expect(driver.component).toBeVisible();
265 | await expect(driver.hourInput).toHaveValue("");
266 | await expect(driver.minuteInput).toHaveValue("");
267 | await expect(driver.secondInput).not.toBeVisible();
268 | await expect(driver.amPmInput).not.toBeVisible();
269 | await expect(driver.clearButton).not.toBeVisible();
270 | });
271 |
272 | test("handles whitespace-only initialValue gracefully", async ({
273 | initTestBed,
274 | createTimeInputDriver,
275 | }) => {
276 | await initTestBed(`<TimeInput testId="timeInput" initialValue=" " />`);
277 | const driver = await createTimeInputDriver("timeInput");
278 | await expect(driver.component).toBeVisible();
279 | await expect(driver.hourInput).toHaveValue("00");
280 | await expect(driver.minuteInput).toHaveValue("00");
281 | await expect(driver.secondInput).not.toBeVisible();
282 | await expect(driver.amPmInput).not.toBeVisible();
283 | await expect(driver.clearButton).not.toBeVisible();
284 | });
285 | });
286 |
287 | test.describe("hour24 and seconds properties", () => {
288 | test("displays 24-hour format without seconds", async ({
289 | initTestBed,
290 | createTimeInputDriver,
291 | }) => {
292 | await initTestBed(
293 | `<TimeInput testId="timeInput" hour24="true" seconds="false" initialValue="14:30" />`,
294 | );
295 | const driver = await createTimeInputDriver("timeInput");
296 | await expect(driver.component).toBeVisible();
297 | await expect(driver.hourInput).toHaveValue("14");
298 | await expect(driver.minuteInput).toHaveValue("30");
299 | await expect(driver.secondInput).not.toBeVisible();
300 | await expect(driver.amPmInput).not.toBeVisible();
301 | await expect(driver.clearButton).not.toBeVisible();
302 | });
303 |
304 | test("displays 24-hour format with seconds", async ({ initTestBed, createTimeInputDriver }) => {
305 | await initTestBed(
306 | `<TimeInput testId="timeInput" hour24="true" seconds="true" initialValue="14:30:15" />`,
307 | );
308 | const driver = await createTimeInputDriver("timeInput");
309 | await expect(driver.component).toBeVisible();
310 | await expect(driver.hourInput).toHaveValue("14");
311 | await expect(driver.minuteInput).toHaveValue("30");
312 | await expect(driver.secondInput).toHaveValue("15");
313 | await expect(driver.amPmInput).not.toBeVisible();
314 | await expect(driver.clearButton).not.toBeVisible();
315 | });
316 |
317 | test("displays 12-hour format without seconds", async ({
318 | initTestBed,
319 | createTimeInputDriver,
320 | }) => {
321 | await initTestBed(
322 | `<TimeInput testId="timeInput" hour24="false" seconds="false" initialValue="14:30" />`,
323 | );
324 | const driver = await createTimeInputDriver("timeInput");
325 | await expect(driver.hourInput).toHaveValue("02");
326 | await expect(driver.minuteInput).toHaveValue("30");
327 | await expect(driver.secondInput).not.toBeVisible();
328 | await expect(driver.amPmInput).toBeVisible();
329 | });
330 |
331 | test("displays 12-hour format with seconds", async ({ initTestBed, createTimeInputDriver }) => {
332 | await initTestBed(
333 | `<TimeInput testId="timeInput" hour24="false" seconds="true" initialValue="14:30:15" />`,
334 | );
335 | const driver = await createTimeInputDriver("timeInput");
336 | await expect(driver.hourInput).toHaveValue("02");
337 | await expect(driver.minuteInput).toHaveValue("30");
338 | await expect(driver.secondInput).toHaveValue("15");
339 | await expect(driver.amPmInput).toBeVisible();
340 | });
341 |
342 | test("handles null hour24 property", async ({ initTestBed, createTimeInputDriver }) => {
343 | await initTestBed(`<TimeInput testId="timeInput" hour24="{null}" initialValue="14:30" />`);
344 | const driver = await createTimeInputDriver("timeInput");
345 | // Should default to 24-hour format
346 | await expect(driver.hourInput).toHaveValue("14");
347 | await expect(driver.minuteInput).toHaveValue("30");
348 | await expect(driver.amPmInput).not.toBeVisible();
349 | });
350 |
351 | test("handles null seconds property", async ({ initTestBed, createTimeInputDriver }) => {
352 | await initTestBed(`<TimeInput testId="timeInput" seconds="{null}" initialValue="14:30" />`);
353 | const driver = await createTimeInputDriver("timeInput");
354 | // Should default to no seconds
355 | await expect(driver.hourInput).toHaveValue("14");
356 | await expect(driver.minuteInput).toHaveValue("30");
357 | await expect(driver.secondInput).not.toBeVisible();
358 | });
359 | });
360 |
361 | test.describe("enabled property", () => {
362 | test("renders enabled by default", async ({ initTestBed, createTimeInputDriver }) => {
363 | await initTestBed(`<TimeInput testId="timeInput" />`);
364 | const driver = await createTimeInputDriver("timeInput");
365 | await expect(driver.hourInput).toBeEnabled();
366 | });
367 |
368 | test("disables component when enabled is false", async ({
369 | initTestBed,
370 | createTimeInputDriver,
371 | }) => {
372 | await initTestBed(`<TimeInput testId="timeInput" enabled="false" initialValue="14:30" />`);
373 | const driver = await createTimeInputDriver("timeInput");
374 | await expect(driver.hourInput).toBeDisabled();
375 | await expect(driver.minuteInput).toBeDisabled();
376 | });
377 |
378 | test("handles null enabled property", async ({ initTestBed, createTimeInputDriver }) => {
379 | await initTestBed(`<TimeInput testId="timeInput" enabled="{null}" />`);
380 | const driver = await createTimeInputDriver("timeInput");
381 | await expect(driver.hourInput).toBeEnabled();
382 | });
383 | });
384 |
385 | test.describe("readOnly property", () => {
386 | test("makes component readonly", async ({ initTestBed, createTimeInputDriver }) => {
387 | await initTestBed(`<TimeInput testId="timeInput" readOnly="true" initialValue="14:30" />`);
388 | const driver = await createTimeInputDriver("timeInput");
389 | await expect(driver.hourInput).toHaveAttribute("readonly");
390 | await expect(driver.minuteInput).toHaveAttribute("readonly");
391 | });
392 |
393 | test("allows editing when readOnly is false", async ({
394 | initTestBed,
395 | createTimeInputDriver,
396 | }) => {
397 | await initTestBed(`<TimeInput testId="timeInput" readOnly="false" initialValue="14:30" />`);
398 | const driver = await createTimeInputDriver("timeInput");
399 | await expect(driver.hourInput).not.toHaveAttribute("readonly");
400 | await expect(driver.minuteInput).not.toHaveAttribute("readonly");
401 | });
402 | });
403 |
404 | test.describe("clearable property", () => {
405 | test("shows clear button when clearable is true", async ({
406 | initTestBed,
407 | createTimeInputDriver,
408 | }) => {
409 | await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
410 | const driver = await createTimeInputDriver("timeInput");
411 | await expect(driver.clearButton).toBeVisible();
412 | });
413 |
414 | test("hides clear button when clearable is false", async ({
415 | initTestBed,
416 | createTimeInputDriver,
417 | }) => {
418 | await initTestBed(`<TimeInput testId="timeInput" clearable="false" initialValue="14:30" />`);
419 | const driver = await createTimeInputDriver("timeInput");
420 | await expect(driver.clearButton).not.toBeVisible();
421 | });
422 |
423 | test("clears value when clear button is clicked (clearToInitialValue is true)", async ({
424 | initTestBed,
425 | createTimeInputDriver,
426 | }) => {
427 | await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
428 | const driver = await createTimeInputDriver("timeInput");
429 | await driver.hourInput.fill("05");
430 | await driver.clearButton.click();
431 | await expect(driver.hourInput).toHaveValue("14");
432 | await expect(driver.minuteInput).toHaveValue("30");
433 | });
434 |
435 | test("clears value when clear button is clicked (clearToInitialValue is false)", async ({
436 | initTestBed,
437 | createTimeInputDriver,
438 | }) => {
439 | await initTestBed(`
440 | <TimeInput testId="timeInput" clearable="true"
441 | clearToInitialValue="false" initialValue="14:30" />
442 | `);
443 | const driver = await createTimeInputDriver("timeInput");
444 | await driver.hourInput.fill("05");
445 | await driver.clearButton.click();
446 | await expect(driver.hourInput).toHaveValue("");
447 | await expect(driver.minuteInput).toHaveValue("");
448 | });
449 | });
450 |
451 | test.describe("clearIcon property", () => {
452 | test("displays custom clear icon", async ({ initTestBed, createTimeInputDriver }) => {
453 | await initTestBed(
454 | `<TimeInput testId="timeInput" clearable="true" clearIcon="trash" initialValue="14:30" />`,
455 | );
456 | const driver = await createTimeInputDriver("timeInput");
457 | await expect(driver.clearButton).toBeVisible();
458 | // Icon presence would be tested via the icon's specific attributes
459 | });
460 | });
461 |
462 | test.describe("required property", () => {
463 | test("makes component required", async ({ initTestBed, createTimeInputDriver }) => {
464 | await initTestBed(`<TimeInput testId="timeInput" required="true" />`);
465 | const driver = await createTimeInputDriver("timeInput");
466 | await expect(driver.hourInput).toHaveAttribute("required");
467 | });
468 |
469 | test("component is not required by default", async ({ initTestBed, createTimeInputDriver }) => {
470 | await initTestBed(`<TimeInput testId="timeInput" />`);
471 | const driver = await createTimeInputDriver("timeInput");
472 | await expect(driver.hourInput).not.toHaveAttribute("required");
473 | });
474 | });
475 |
476 | test.describe("minTime and maxTime properties", () => {
477 | test("accepts minTime constraint", async ({ initTestBed, createTimeInputDriver }) => {
478 | await initTestBed(`<TimeInput testId="timeInput" minTime="10:00" initialValue="14:30" />`);
479 | const driver = await createTimeInputDriver("timeInput");
480 | await expect(driver.hourInput).toHaveValue("14");
481 | await expect(driver.minuteInput).toHaveValue("30");
482 | });
483 |
484 | test("accepts maxTime constraint", async ({ initTestBed, createTimeInputDriver }) => {
485 | await initTestBed(`<TimeInput testId="timeInput" maxTime="18:00" initialValue="14:30" />`);
486 | const driver = await createTimeInputDriver("timeInput");
487 | await expect(driver.hourInput).toHaveValue("14");
488 | await expect(driver.minuteInput).toHaveValue("30");
489 | });
490 |
491 | test("handles null minTime", async ({ initTestBed, createTimeInputDriver }) => {
492 | await initTestBed(`<TimeInput testId="timeInput" minTime="{null}" initialValue="14:30" />`);
493 | const driver = await createTimeInputDriver("timeInput");
494 | await expect(driver.hourInput).toHaveValue("14");
495 | await expect(driver.minuteInput).toHaveValue("30");
496 | });
497 |
498 | test("handles null maxTime", async ({ initTestBed, createTimeInputDriver }) => {
499 | await initTestBed(`<TimeInput testId="timeInput" maxTime="{null}" initialValue="14:30" />`);
500 | const driver = await createTimeInputDriver("timeInput");
501 | await expect(driver.hourInput).toHaveValue("14");
502 | await expect(driver.minuteInput).toHaveValue("30");
503 | });
504 | });
505 |
506 | test.describe("adornment properties", () => {
507 | test("displays startText", async ({ initTestBed, createTimeInputDriver }) => {
508 | await initTestBed(`<TimeInput testId="timeInput" startText="Start" />`);
509 | const driver = await createTimeInputDriver("timeInput");
510 | await expect(driver.component).toContainText("Start");
511 | });
512 |
513 | test("displays endText", async ({ initTestBed, createTimeInputDriver }) => {
514 | await initTestBed(`<TimeInput testId="timeInput" endText="End" />`);
515 | const driver = await createTimeInputDriver("timeInput");
516 | await expect(driver.component).toContainText("End");
517 | });
518 |
519 | test("displays startIcon", async ({ initTestBed, createTimeInputDriver }) => {
520 | await initTestBed(`<TimeInput testId="timeInput" startIcon="trash" />`);
521 | const driver = await createTimeInputDriver("timeInput");
522 | await expect(driver.component.getByRole("img")).toBeVisible();
523 | });
524 |
525 | test("displays endIcon", async ({ initTestBed, createTimeInputDriver }) => {
526 | await initTestBed(`<TimeInput testId="timeInput" endIcon="trash" />`);
527 | const driver = await createTimeInputDriver("timeInput");
528 | await expect(driver.component.getByRole("img")).toBeVisible();
529 | });
530 |
531 | test("displays multiple adornments together", async ({
532 | initTestBed,
533 | createTimeInputDriver,
534 | }) => {
535 | await initTestBed(
536 | `<TimeInput testId="timeInput" startText="Start" endText="End" startIcon="phone" endIcon="email" />`,
537 | );
538 | const driver = await createTimeInputDriver("timeInput");
539 | await expect(driver.component).toContainText("Start");
540 | await expect(driver.component).toContainText("End");
541 | await expect(driver.component.getByRole("img").first()).toBeVisible();
542 | await expect(driver.component.getByRole("img").last()).toBeVisible();
543 | });
544 | });
545 |
546 | test.describe("gap property", () => {
547 | test("applies custom gap", async ({ initTestBed, createTimeInputDriver }) => {
548 | await initTestBed(`<TimeInput testId="timeInput" gap="20px" startText="Start" />`);
549 | const driver = await createTimeInputDriver("timeInput");
550 | await expect(driver.component).toContainText("Start");
551 | });
552 |
553 | test("handles null gap", async ({ initTestBed, createTimeInputDriver }) => {
554 | await initTestBed(`<TimeInput testId="timeInput" gap="{null}" startText="Start" />`);
555 | const driver = await createTimeInputDriver("timeInput");
556 | await expect(driver.component).toContainText("Start");
557 | });
558 | });
559 |
560 | test.describe("autoFocus property", () => {
561 | test("focuses component when autoFocus is true", async ({
562 | initTestBed,
563 | createTimeInputDriver,
564 | }) => {
565 | await initTestBed(`<TimeInput testId="timeInput" autoFocus="true" />`);
566 | const driver = await createTimeInputDriver("timeInput");
567 | await expect(driver.hourInput).toBeFocused();
568 | });
569 |
570 | test("does not focus when autoFocus is false", async ({
571 | initTestBed,
572 | createTimeInputDriver,
573 | }) => {
574 | await initTestBed(`<TimeInput testId="timeInput" autoFocus="false" />`);
575 | const driver = await createTimeInputDriver("timeInput");
576 | await expect(driver.hourInput).not.toBeFocused();
577 | });
578 | });
579 |
580 | test.describe("emptyCharacter property", () => {
581 | test("uses default '--' placeholder when no emptyCharacter is specified", async ({
582 | initTestBed,
583 | createTimeInputDriver,
584 | }) => {
585 | await initTestBed(`<TimeInput testId="timeInput" />`);
586 | const driver = await createTimeInputDriver("timeInput");
587 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
588 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
589 | });
590 |
591 | test("uses custom emptyCharacter for placeholders", async ({
592 | initTestBed,
593 | createTimeInputDriver,
594 | }) => {
595 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="*" />`);
596 | const driver = await createTimeInputDriver("timeInput");
597 | await expect(driver.hourInput).toHaveAttribute("placeholder", "**");
598 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "**");
599 | });
600 |
601 | test("applies emptyCharacter to all inputs when seconds enabled", async ({
602 | initTestBed,
603 | createTimeInputDriver,
604 | }) => {
605 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="•" seconds="true" />`);
606 | const driver = await createTimeInputDriver("timeInput");
607 | await expect(driver.hourInput).toHaveAttribute("placeholder", "••");
608 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "••");
609 | await expect(driver.secondInput).toHaveAttribute("placeholder", "••");
610 | });
611 |
612 | test("uses first character when emptyCharacter is multi-character", async ({
613 | initTestBed,
614 | createTimeInputDriver,
615 | }) => {
616 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="abc" />`);
617 | const driver = await createTimeInputDriver("timeInput");
618 | await expect(driver.hourInput).toHaveAttribute("placeholder", "aa");
619 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "aa");
620 | });
621 |
622 | test("defaults to dash when emptyCharacter is empty string", async ({
623 | initTestBed,
624 | createTimeInputDriver,
625 | }) => {
626 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="" />`);
627 | const driver = await createTimeInputDriver("timeInput");
628 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
629 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
630 | });
631 |
632 | test("handles null emptyCharacter", async ({ initTestBed, createTimeInputDriver }) => {
633 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="{null}" />`);
634 | const driver = await createTimeInputDriver("timeInput");
635 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
636 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
637 | });
638 |
639 | test("handles undefined emptyCharacter", async ({ initTestBed, createTimeInputDriver }) => {
640 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="{undefined}" />`);
641 | const driver = await createTimeInputDriver("timeInput");
642 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
643 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
644 | });
645 |
646 | test("works with special characters", async ({ initTestBed, createTimeInputDriver }) => {
647 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="@" />`);
648 | const driver = await createTimeInputDriver("timeInput");
649 | await expect(driver.hourInput).toHaveAttribute("placeholder", "@@");
650 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "@@");
651 | });
652 |
653 | test("works with unicode characters", async ({ initTestBed, createTimeInputDriver }) => {
654 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="⏰" />`);
655 | const driver = await createTimeInputDriver("timeInput");
656 | await expect(driver.hourInput).toHaveAttribute("placeholder", "⏰⏰");
657 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "⏰⏰");
658 | });
659 |
660 | test("placeholder visible when fields are empty", async ({
661 | initTestBed,
662 | createTimeInputDriver,
663 | }) => {
664 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="#" />`);
665 | const driver = await createTimeInputDriver("timeInput");
666 | await expect(driver.hourInput).toHaveValue("");
667 | await expect(driver.minuteInput).toHaveValue("");
668 | await expect(driver.hourInput).toHaveAttribute("placeholder", "##");
669 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "##");
670 | });
671 |
672 | test("shows values instead of placeholder when initialValue provided", async ({
673 | initTestBed,
674 | createTimeInputDriver,
675 | }) => {
676 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="#" initialValue="14:30" />`);
677 | const driver = await createTimeInputDriver("timeInput");
678 | await expect(driver.hourInput).toHaveValue("14");
679 | await expect(driver.minuteInput).toHaveValue("30");
680 | });
681 |
682 | test("works with 12-hour format", async ({ initTestBed, createTimeInputDriver }) => {
683 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="○" hour24="false" />`);
684 | const driver = await createTimeInputDriver("timeInput");
685 | await expect(driver.hourInput).toHaveAttribute("placeholder", "○○");
686 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "○○");
687 | await expect(driver.amPmInput).toBeVisible();
688 | });
689 | });
690 |
691 | test.describe("User Interactions", () => {
692 | test("allows typing in hour input", async ({ initTestBed, createTimeInputDriver }) => {
693 | await initTestBed(`<TimeInput testId="timeInput" />`);
694 | const driver = await createTimeInputDriver("timeInput");
695 | await driver.hourInput.click();
696 | await driver.hourInput.fill("15");
697 | await expect(driver.hourInput).toHaveValue("15");
698 | });
699 |
700 | test("allows typing in minute input", async ({ initTestBed, createTimeInputDriver }) => {
701 | await initTestBed(`<TimeInput testId="timeInput" />`);
702 | const driver = await createTimeInputDriver("timeInput");
703 | await driver.minuteInput.click();
704 | await driver.minuteInput.fill("45");
705 | await expect(driver.minuteInput).toHaveValue("45");
706 | });
707 |
708 | test("navigates between inputs with Tab", async ({
709 | initTestBed,
710 | createTimeInputDriver,
711 | page,
712 | }) => {
713 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
714 | const driver = await createTimeInputDriver("timeInput");
715 |
716 | await driver.hourInput.focus();
717 | await page.keyboard.press("Tab");
718 | await expect(driver.minuteInput).toBeFocused();
719 | await page.keyboard.press("Tab");
720 | await expect(driver.secondInput).toBeFocused();
721 | });
722 |
723 | test("navigates between inputs with arrow keys - 24-hour format with seconds", async ({
724 | initTestBed,
725 | createTimeInputDriver,
726 | page,
727 | }) => {
728 | await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
729 | const driver = await createTimeInputDriver("timeInput");
730 |
731 | // Start at hour input
732 | await driver.hourInput.focus();
733 | await expect(driver.hourInput).toBeFocused();
734 |
735 | // Navigate right: Hour → Minute
736 | await page.keyboard.press("ArrowRight");
737 | await expect(driver.minuteInput).toBeFocused();
738 |
739 | // Navigate right: Minute → Second
740 | await page.keyboard.press("ArrowRight");
741 | await expect(driver.secondInput).toBeFocused();
742 |
743 | // Navigate left: Second → Minute
744 | await page.keyboard.press("ArrowLeft");
745 | await expect(driver.minuteInput).toBeFocused();
746 |
747 | // Navigate left: Minute → Hour
748 | await page.keyboard.press("ArrowLeft");
749 | await expect(driver.hourInput).toBeFocused();
750 | });
751 |
752 | test("navigates between inputs with arrow keys - 24-hour format without seconds", async ({
753 | initTestBed,
754 | createTimeInputDriver,
755 | page,
756 | }) => {
757 | await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="false" />`);
758 | const driver = await createTimeInputDriver("timeInput");
759 |
760 | // Start at hour input
761 | await driver.hourInput.focus();
762 | await expect(driver.hourInput).toBeFocused();
763 |
764 | // Navigate right: Hour → Minute (skip seconds since disabled)
765 | await page.keyboard.press("ArrowRight");
766 | await expect(driver.minuteInput).toBeFocused();
767 |
768 | // Navigate left: Minute → Hour
769 | await page.keyboard.press("ArrowLeft");
770 | await expect(driver.hourInput).toBeFocused();
771 | });
772 |
773 | test("navigates between inputs with arrow keys - 12-hour format with seconds", async ({
774 | initTestBed,
775 | createTimeInputDriver,
776 | page,
777 | }) => {
778 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
779 | const driver = await createTimeInputDriver("timeInput");
780 |
781 | // Start at hour input
782 | await driver.hourInput.focus();
783 | await expect(driver.hourInput).toBeFocused();
784 |
785 | // Navigate right: Hour → Minute
786 | await page.keyboard.press("ArrowRight");
787 | await expect(driver.minuteInput).toBeFocused();
788 |
789 | // Navigate right: Minute → Second
790 | await page.keyboard.press("ArrowRight");
791 | await expect(driver.secondInput).toBeFocused();
792 |
793 | // Navigate right: Second → AM/PM
794 | await page.keyboard.press("ArrowRight");
795 | await expect(driver.amPmInput).toBeFocused();
796 |
797 | // Navigate left: AM/PM → Second
798 | await page.keyboard.press("ArrowLeft");
799 | await expect(driver.secondInput).toBeFocused();
800 |
801 | // Navigate left: Second → Minute
802 | await page.keyboard.press("ArrowLeft");
803 | await expect(driver.minuteInput).toBeFocused();
804 |
805 | // Navigate left: Minute → Hour
806 | await page.keyboard.press("ArrowLeft");
807 | await expect(driver.hourInput).toBeFocused();
808 | });
809 |
810 | test("navigates between inputs with arrow keys - 12-hour format without seconds", async ({
811 | initTestBed,
812 | createTimeInputDriver,
813 | page,
814 | }) => {
815 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="false" />`);
816 | const driver = await createTimeInputDriver("timeInput");
817 |
818 | // Start at hour input
819 | await driver.hourInput.focus();
820 | await expect(driver.hourInput).toBeFocused();
821 |
822 | // Navigate right: Hour → Minute
823 | await page.keyboard.press("ArrowRight");
824 | await expect(driver.minuteInput).toBeFocused();
825 |
826 | // Navigate right: Minute → AM/PM (skip seconds since disabled)
827 | await page.keyboard.press("ArrowRight");
828 | await expect(driver.amPmInput).toBeFocused();
829 |
830 | // Navigate left: AM/PM → Minute
831 | await page.keyboard.press("ArrowLeft");
832 | await expect(driver.minuteInput).toBeFocused();
833 |
834 | // Navigate left: Minute → Hour
835 | await page.keyboard.press("ArrowLeft");
836 | await expect(driver.hourInput).toBeFocused();
837 | });
838 |
839 | test("changes AM/PM with click", async ({ initTestBed, createTimeInputDriver }) => {
840 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
841 | const driver = await createTimeInputDriver("timeInput");
842 | await expect(driver.amPmInput).toHaveText("PM");
843 | await driver.amPmInput.click();
844 | await expect(driver.amPmInput).toHaveText("AM");
845 | });
846 |
847 | test("changes AM/PM with keydown 1", async ({ initTestBed, page, createTimeInputDriver }) => {
848 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
849 | const driver = await createTimeInputDriver("timeInput");
850 | await expect(driver.amPmInput).toHaveText("PM");
851 | await driver.amPmInput.focus();
852 | await page.keyboard.press("a", { delay: 100 });
853 | await expect(driver.amPmInput).toHaveText("AM");
854 | });
855 |
856 | test("changes AM/PM with keydown 2", async ({ initTestBed, page, createTimeInputDriver }) => {
857 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="03:30" />`);
858 | const driver = await createTimeInputDriver("timeInput");
859 | await expect(driver.amPmInput).toHaveText("AM");
860 | await driver.amPmInput.focus();
861 | await page.keyboard.press("p", { delay: 100 });
862 | await expect(driver.amPmInput).toHaveText("PM");
863 | });
864 |
865 | test("auto-tabs from hour to minute after typing two digits", async ({
866 | initTestBed,
867 | page,
868 | createTimeInputDriver,
869 | }) => {
870 | await initTestBed(`<TimeInput testId="timeInput" />`);
871 | const driver = await createTimeInputDriver("timeInput");
872 |
873 | // Focus on hour input and clear it
874 | await driver.hourInput.focus();
875 | await driver.hourInput.selectText();
876 |
877 | // Type two digits - should auto-tab to minute
878 | await page.keyboard.type("14");
879 |
880 | // Verify hour input has the value and minute input is now focused
881 | await expect(driver.hourInput).toHaveValue("14");
882 | await expect(driver.minuteInput).toBeFocused();
883 | });
884 |
885 | test("auto-tabs from minute to second after typing two digits", async ({
886 | initTestBed,
887 | page,
888 | createTimeInputDriver,
889 | }) => {
890 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
891 | const driver = await createTimeInputDriver("timeInput");
892 |
893 | // Focus on minute input and clear it
894 | await driver.minuteInput.focus();
895 | await driver.minuteInput.selectText();
896 |
897 | // Type two digits - should auto-tab to second
898 | await page.keyboard.type("30");
899 |
900 | // Verify minute input has the value and second input is now focused
901 | await expect(driver.minuteInput).toHaveValue("30");
902 | await expect(driver.secondInput).toBeFocused();
903 | });
904 |
905 | test("auto-tabs from second to AM/PM after typing two digits in 12-hour format", async ({
906 | initTestBed,
907 | page,
908 | createTimeInputDriver,
909 | }) => {
910 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
911 | const driver = await createTimeInputDriver("timeInput");
912 |
913 | // Focus on second input and clear it
914 | await driver.secondInput.focus();
915 | await driver.secondInput.selectText();
916 |
917 | // Type two digits - should auto-tab to AM/PM
918 | await page.keyboard.type("45");
919 |
920 | // Verify second input has the value and AM/PM input is now focused
921 | await expect(driver.secondInput).toHaveValue("45");
922 | await expect(driver.amPmInput).toBeFocused();
923 | });
924 |
925 | test("does not auto-tab from second input in 24-hour format", async ({
926 | initTestBed,
927 | page,
928 | createTimeInputDriver,
929 | }) => {
930 | await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
931 | const driver = await createTimeInputDriver("timeInput");
932 |
933 | // Focus on second input and clear it
934 | await driver.secondInput.focus();
935 | await driver.secondInput.selectText();
936 |
937 | // Type two digits - should stay on second input since there's no AM/PM
938 | await page.keyboard.type("45");
939 |
940 | // Verify second input has the value and is still focused
941 | await expect(driver.secondInput).toHaveValue("45");
942 | await expect(driver.secondInput).toBeFocused();
943 | });
944 | });
945 |
946 | test.describe("API", () => {
947 | test("isoValue returns null when no time is set", async ({ initTestBed, page }) => {
948 | const { testStateDriver } = await initTestBed(`
949 | <Fragment>
950 | <TimeInput id="timeInput" />
951 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
952 | </Fragment>
953 | `);
954 |
955 | await page.getByTestId("getIsoBtn").click();
956 | await expect.poll(testStateDriver.testState).toBe(null);
957 | });
958 |
959 | test("isoValue returns ISO format for 24-hour time", async ({ initTestBed, page }) => {
960 | const { testStateDriver } = await initTestBed(`
961 | <Fragment>
962 | <TimeInput id="timeInput" initialValue="14:30" hour24="true" />
963 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
964 | </Fragment>
965 | `);
966 |
967 | await page.getByTestId("getIsoBtn").click();
968 | await expect.poll(testStateDriver.testState).toBe("14:30:00");
969 | });
970 |
971 | test("isoValue returns ISO format for 24-hour time with seconds", async ({
972 | initTestBed,
973 | page,
974 | }) => {
975 | const { testStateDriver } = await initTestBed(`
976 | <Fragment>
977 | <TimeInput id="timeInput" initialValue="14:30:45" hour24="true" seconds="true" />
978 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
979 | </Fragment>
980 | `);
981 |
982 | await page.getByTestId("getIsoBtn").click();
983 | await expect.poll(testStateDriver.testState).toBe("14:30:45");
984 | });
985 |
986 | test("isoValue converts 12-hour format to ISO format (AM)", async ({ initTestBed, page }) => {
987 | const { testStateDriver } = await initTestBed(`
988 | <Fragment>
989 | <TimeInput id="timeInput" initialValue="02:30 AM" hour24="false" />
990 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
991 | </Fragment>
992 | `);
993 |
994 | await page.getByTestId("getIsoBtn").click();
995 | await expect.poll(testStateDriver.testState).toBe("02:30:00");
996 | });
997 |
998 | test("isoValue converts 12-hour format to ISO format (PM)", async ({ initTestBed, page }) => {
999 | const { testStateDriver } = await initTestBed(`
1000 | <Fragment>
1001 | <TimeInput id="timeInput" initialValue="02:30 PM" hour24="false" />
1002 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1003 | </Fragment>
1004 | `);
1005 |
1006 | await page.getByTestId("getIsoBtn").click();
1007 | await expect.poll(testStateDriver.testState).toBe("14:30:00");
1008 | });
1009 |
1010 | test("isoValue converts 12-hour midnight correctly", async ({ initTestBed, page }) => {
1011 | const { testStateDriver } = await initTestBed(`
1012 | <Fragment>
1013 | <TimeInput id="timeInput" initialValue="12:00 AM" hour24="false" />
1014 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1015 | </Fragment>
1016 | `);
1017 |
1018 | await page.getByTestId("getIsoBtn").click();
1019 | await expect.poll(testStateDriver.testState).toBe("00:00:00");
1020 | });
1021 |
1022 | test("isoValue converts 12-hour noon correctly", async ({ initTestBed, page }) => {
1023 | const { testStateDriver } = await initTestBed(`
1024 | <Fragment>
1025 | <TimeInput id="timeInput" initialValue="12:00 PM" hour24="false" />
1026 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1027 | </Fragment>
1028 | `);
1029 |
1030 | await page.getByTestId("getIsoBtn").click();
1031 | await expect.poll(testStateDriver.testState).toBe("12:00:00");
1032 | });
1033 |
1034 | test("isoValue includes seconds when available in 12-hour format", async ({
1035 | initTestBed,
1036 | page,
1037 | }) => {
1038 | const { testStateDriver } = await initTestBed(`
1039 | <Fragment>
1040 | <TimeInput id="timeInput" initialValue="02:30:15 PM" hour24="false" seconds="true" />
1041 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1042 | </Fragment>
1043 | `);
1044 |
1045 | await page.getByTestId("getIsoBtn").click();
1046 | await expect.poll(testStateDriver.testState).toBe("14:30:15");
1047 | });
1048 |
1049 | test("isoValue updates when time is changed programmatically", async ({
1050 | initTestBed,
1051 | page,
1052 | }) => {
1053 | const { testStateDriver } = await initTestBed(`
1054 | <Fragment>
1055 | <TimeInput id="timeInput" initialValue="14:30" hour24="true" />
1056 | <Button testId="setTimeBtn" onClick="timeInput.setValue('09:15')" />
1057 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1058 | </Fragment>
1059 | `);
1060 |
1061 | // Change the time programmatically
1062 | await page.getByTestId("setTimeBtn").click();
1063 |
1064 | // Get the ISO value
1065 | await page.getByTestId("getIsoBtn").click();
1066 | await expect.poll(testStateDriver.testState).toBe("09:15:00");
1067 | });
1068 |
1069 | test("isoValue returns null when only hour is set", async ({
1070 | initTestBed,
1071 | page,
1072 | createTimeInputDriver,
1073 | }) => {
1074 | const { testStateDriver } = await initTestBed(`
1075 | <Fragment>
1076 | <TimeInput id="timeInput" testId="timeInput" />
1077 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1078 | </Fragment>
1079 | `);
1080 |
1081 | const driver = await createTimeInputDriver("timeInput");
1082 |
1083 | // Set only hour, leave minute empty
1084 | await driver.hourInput.fill("14");
1085 |
1086 | await page.getByTestId("getIsoBtn").click();
1087 | await expect.poll(testStateDriver.testState).toBe(null);
1088 | });
1089 | });
1090 | });
1091 |
1092 | // =============================================================================
1093 | // ACCESSIBILITY TESTS
1094 | // =============================================================================
1095 |
1096 | test.describe("Accessibility", () => {
1097 | test("has correct role for main container", async ({ initTestBed, createTimeInputDriver }) => {
1098 | await initTestBed(`<TimeInput testId="timeInput" label="Time Input" />`);
1099 | const driver = await createTimeInputDriver("timeInput");
1100 | await expect(driver.component).toBeVisible();
1101 | });
1102 |
1103 | test("has correct accessibility attributes for inputs", async ({
1104 | initTestBed,
1105 | createTimeInputDriver,
1106 | }) => {
1107 | await initTestBed(`<TimeInput testId="timeInput" label="Select time" />`);
1108 | const driver = await createTimeInputDriver("timeInput");
1109 | await expect(driver.hourInput).toHaveAttribute("type", "text");
1110 | await expect(driver.minuteInput).toHaveAttribute("type", "text");
1111 | });
1112 |
1113 | test("associates label with component", async ({ initTestBed, createTimeInputDriver }) => {
1114 | await initTestBed(`<TimeInput testId="timeInput" label="Meeting time" />`);
1115 | const driver = await createTimeInputDriver("timeInput");
1116 | await expect(driver.label).toBeVisible();
1117 | await expect(driver.label).toContainText("Meeting time");
1118 | });
1119 |
1120 | test("supports keyboard navigation", async ({ initTestBed, createTimeInputDriver, page }) => {
1121 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
1122 | const driver = await createTimeInputDriver("timeInput");
1123 |
1124 | // Tab through all inputs
1125 | await driver.hourInput.focus();
1126 | await expect(driver.hourInput).toBeFocused();
1127 |
1128 | await page.keyboard.press("Tab");
1129 | await expect(driver.minuteInput).toBeFocused();
1130 |
1131 | await page.keyboard.press("Tab");
1132 | await expect(driver.secondInput).toBeFocused();
1133 | });
1134 |
1135 | test("supports required attribute for accessibility", async ({
1136 | initTestBed,
1137 | createTimeInputDriver,
1138 | }) => {
1139 | await initTestBed(`<TimeInput testId="timeInput" required="true" label="Required time" />`);
1140 | const driver = await createTimeInputDriver("timeInput");
1141 | await expect(driver.hourInput).toHaveAttribute("required");
1142 | });
1143 |
1144 | test("has proper ARIA attributes for disabled state", async ({
1145 | initTestBed,
1146 | createTimeInputDriver,
1147 | }) => {
1148 | await initTestBed(`<TimeInput testId="timeInput" enabled="false" label="Disabled time" />`);
1149 | const driver = await createTimeInputDriver("timeInput");
1150 | await expect(driver.hourInput).toBeDisabled();
1151 | await expect(driver.minuteInput).toBeDisabled();
1152 | });
1153 |
1154 | test("has proper ARIA attributes for readonly state", async ({
1155 | initTestBed,
1156 | createTimeInputDriver,
1157 | }) => {
1158 | await initTestBed(
1159 | `<TimeInput testId="timeInput" readOnly="true" label="Readonly time" initialValue="14:30" />`,
1160 | );
1161 | const driver = await createTimeInputDriver("timeInput");
1162 | await expect(driver.hourInput).toHaveAttribute("readonly");
1163 | await expect(driver.minuteInput).toHaveAttribute("readonly");
1164 | });
1165 |
1166 | test("clear button has accessible name", async ({ initTestBed, createTimeInputDriver }) => {
1167 | await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
1168 | const driver = await createTimeInputDriver("timeInput");
1169 | await expect(driver.clearButton).toBeVisible();
1170 | });
1171 |
1172 | test("AM/PM select has proper role", async ({ initTestBed, createTimeInputDriver }) => {
1173 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
1174 | const driver = await createTimeInputDriver("timeInput");
1175 | await expect(driver.amPmInput).toBeVisible();
1176 | });
1177 | });
1178 |
1179 | // =============================================================================
1180 | // THEME VARIABLE TESTS
1181 | // =============================================================================
1182 |
1183 | test.describe("Theme Variables", () => {
1184 | test("applies Input borderRadius theme variable", async ({
1185 | initTestBed,
1186 | createTimeInputDriver,
1187 | }) => {
1188 | await initTestBed(`<TimeInput testId="time-input" />`, {
1189 | testThemeVars: { "borderRadius-TimeInput--default": "10px" },
1190 | });
1191 | const driver = await createTimeInputDriver("time-input");
1192 | await expect(driver.component).toHaveCSS("border-radius", "10px");
1193 | });
1194 |
1195 | test("applies Input borderColor theme variable", async ({
1196 | initTestBed,
1197 | createTimeInputDriver,
1198 | }) => {
1199 | await initTestBed(`<TimeInput testId="time-input" />`, {
1200 | testThemeVars: { "borderColor-TimeInput--default": "rgb(255, 0, 0)" },
1201 | });
1202 | const driver = await createTimeInputDriver("time-input");
1203 | await expect(driver.component).toHaveCSS("border-color", "rgb(255, 0, 0)");
1204 | });
1205 |
1206 | test("applies Input textColor theme variable", async ({ initTestBed, createTimeInputDriver }) => {
1207 | await initTestBed(`<TimeInput testId="time-input" />`, {
1208 | testThemeVars: { "textColor-TimeInput--default": "rgb(0, 0, 255)" },
1209 | });
1210 | const driver = await createTimeInputDriver("time-input");
1211 | await expect(driver.component).toHaveCSS("color", "rgb(0, 0, 255)");
1212 | });
1213 |
1214 | test("handles invalid validationStatus", async ({ initTestBed, page }) => {
1215 | await initTestBed(`<TimeInput testId="timeInput" validationStatus="invalid" />`, {
1216 | testThemeVars: {
1217 | "borderColor-TimeInput--default": "rgb(0, 0, 0)",
1218 | "borderColor-TimeInput--error": "rgb(255, 0, 0)",
1219 | "borderColor-TimeInput--warning": "rgb(255, 165, 0)",
1220 | "borderColor-TimeInput--success": "rgb(0, 255, 0)",
1221 | },
1222 | });
1223 | await expect(page.getByTestId("timeInput")).toHaveCSS("border-color", "rgb(0, 0, 0)");
1224 | });
1225 |
1226 | [
1227 | { value: "--default", prop: "" },
1228 | { value: "--warning", prop: 'validationStatus="warning"' },
1229 | { value: "--error", prop: 'validationStatus="error"' },
1230 | { value: "--success", prop: 'validationStatus="valid"' },
1231 | ].forEach((variant) => {
1232 | test(`applies correct borderRadius ${variant.value}`, async ({ initTestBed, page }) => {
1233 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1234 | testThemeVars: { [`borderRadius-TimeInput${variant.value}`]: "12px" },
1235 | });
1236 | await expect(page.getByTestId("test")).toHaveCSS("border-radius", "12px");
1237 | });
1238 |
1239 | test(`applies correct borderColor ${variant.value}`, async ({ initTestBed, page }) => {
1240 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1241 | testThemeVars: { [`borderColor-TimeInput${variant.value}`]: "rgb(255, 0, 0)" },
1242 | });
1243 | await expect(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
1244 | });
1245 |
1246 | test(`applies correct borderWidth ${variant.value}`, async ({ initTestBed, page }) => {
1247 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1248 | testThemeVars: { [`borderWidth-TimeInput${variant.value}`]: "1px" },
1249 | });
1250 | await expect(page.getByTestId("test")).toHaveCSS("border-width", "1px");
1251 | });
1252 |
1253 | test(`applies correct borderStyle ${variant.value}`, async ({ initTestBed, page }) => {
1254 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1255 | testThemeVars: { [`borderStyle-TimeInput${variant.value}`]: "dashed" },
1256 | });
1257 | await expect(page.getByTestId("test")).toHaveCSS("border-style", "dashed");
1258 | });
1259 |
1260 | test(`applies correct fontSize ${variant.value}`, async ({ initTestBed, page }) => {
1261 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1262 | testThemeVars: { [`fontSize-TimeInput${variant.value}`]: "14px" },
1263 | });
1264 | await expect(page.getByTestId("test")).toHaveCSS("font-size", "14px");
1265 | });
1266 |
1267 | test(`applies correct backgroundColor ${variant.value}`, async ({ initTestBed, page }) => {
1268 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1269 | testThemeVars: { [`backgroundColor-TimeInput${variant.value}`]: "rgb(240, 240, 240)" },
1270 | });
1271 | await expect(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
1272 | });
1273 |
1274 | test(`applies correct boxShadow ${variant.value}`, async ({ initTestBed, page }) => {
1275 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1276 | testThemeVars: {
1277 | [`boxShadow-TimeInput${variant.value}`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
1278 | },
1279 | });
1280 | await expect(page.getByTestId("test")).toHaveCSS(
1281 | "box-shadow",
1282 | "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px",
1283 | );
1284 | });
1285 |
1286 | test(`applies correct textColor ${variant.value}`, async ({ initTestBed, page }) => {
1287 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1288 | testThemeVars: { [`textColor-TimeInput${variant.value}`]: "rgb(0, 0, 0)" },
1289 | });
1290 | await expect(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
1291 | });
1292 |
1293 | test(`applies correct borderColor on hover ${variant.value}`, async ({ initTestBed, page }) => {
1294 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1295 | testThemeVars: { [`borderColor-TimeInput${variant.value}--hover`]: "rgb(0, 0, 0)" },
1296 | });
1297 | await page.getByTestId("test").hover();
1298 | await expect(page.getByTestId("test")).toHaveCSS("border-color", "rgb(0, 0, 0)");
1299 | });
1300 |
1301 | test(`applies correct backgroundColor on hover ${variant.value}`, async ({
1302 | initTestBed,
1303 | page,
1304 | }) => {
1305 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1306 | testThemeVars: { [`backgroundColor-TimeInput${variant.value}--hover`]: "rgb(0, 0, 0)" },
1307 | });
1308 | await page.getByTestId("test").hover();
1309 | await expect(page.getByTestId("test")).toHaveCSS("background-color", "rgb(0, 0, 0)");
1310 | });
1311 |
1312 | test(`applies correct boxShadow on hover ${variant.value}`, async ({ initTestBed, page }) => {
1313 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1314 | testThemeVars: {
1315 | [`boxShadow-TimeInput${variant.value}--hover`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
1316 | },
1317 | });
1318 | await page.getByTestId("test").hover();
1319 | await expect(page.getByTestId("test")).toHaveCSS(
1320 | "box-shadow",
1321 | "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px",
1322 | );
1323 | });
1324 |
1325 | test(`applies correct textColor on hover ${variant.value}`, async ({ initTestBed, page }) => {
1326 | await initTestBed(`<TimeInput testId="test" ${variant.prop} />`, {
1327 | testThemeVars: { [`textColor-TimeInput${variant.value}--hover`]: "rgb(0, 0, 0)" },
1328 | });
1329 | await page.getByTestId("test").hover();
1330 | await expect(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
1331 | });
1332 | });
1333 | });
1334 |
1335 | // =============================================================================
1336 | // OTHER EDGE CASE TESTS
1337 | // =============================================================================
1338 |
1339 | test.describe("Other Edge Cases", () => {
1340 | test("handles no props gracefully", async ({ initTestBed, createTimeInputDriver }) => {
1341 | await initTestBed(`<TimeInput testId="timeInput" />`);
1342 | const driver = await createTimeInputDriver("timeInput");
1343 | await expect(driver.component).toBeVisible();
1344 | });
1345 |
1346 | test("handles empty string props", async ({ initTestBed, createTimeInputDriver }) => {
1347 | await initTestBed(`<TimeInput testId="timeInput" label="" />`);
1348 | const driver = await createTimeInputDriver("timeInput");
1349 | await expect(driver.component).toBeVisible();
1350 | });
1351 |
1352 | test("handles very long unicode characters in initialValue", async ({
1353 | initTestBed,
1354 | createTimeInputDriver,
1355 | }) => {
1356 | await initTestBed(`<TimeInput testId="timeInput" initialValue="👨👩👧👦" />`);
1357 | const driver = await createTimeInputDriver("timeInput");
1358 | await expect(driver.hourInput).toHaveValue("00");
1359 | await expect(driver.minuteInput).toHaveValue("00");
1360 | });
1361 |
1362 | test("handles chinese characters in initialValue", async ({
1363 | initTestBed,
1364 | createTimeInputDriver,
1365 | }) => {
1366 | await initTestBed(`<TimeInput testId="timeInput" initialValue="中文时间" />`);
1367 | const driver = await createTimeInputDriver("timeInput");
1368 | await expect(driver.hourInput).toHaveValue("00");
1369 | await expect(driver.minuteInput).toHaveValue("00");
1370 | });
1371 |
1372 | test("handles negative values in time inputs", async ({ initTestBed, createTimeInputDriver }) => {
1373 | await initTestBed(`<TimeInput testId="timeInput" />`);
1374 | const driver = await createTimeInputDriver("timeInput");
1375 | await driver.hourInput.click();
1376 | await driver.hourInput.fill("-5");
1377 | // Component should handle negative values gracefully
1378 | await driver.hourInput.blur();
1379 | await expect(driver.component).toBeVisible();
1380 | });
1381 |
1382 | test("handles very large numbers in time inputs", async ({
1383 | initTestBed,
1384 | createTimeInputDriver,
1385 | }) => {
1386 | await initTestBed(`<TimeInput testId="timeInput" />`);
1387 | const driver = await createTimeInputDriver("timeInput");
1388 | await driver.hourInput.click();
1389 | await driver.hourInput.fill("999");
1390 | // Component should handle large values gracefully
1391 | await driver.hourInput.blur();
1392 | await expect(driver.component).toBeVisible();
1393 | });
1394 |
1395 | test("handles multiple rapid clear button clicks", async ({
1396 | initTestBed,
1397 | createTimeInputDriver,
1398 | }) => {
1399 | await initTestBed(`
1400 | <TimeInput testId="timeInput" clearable="true" clearToInitialValue="false" initialValue="14:30" />
1401 | `);
1402 | const driver = await createTimeInputDriver("timeInput");
1403 |
1404 | // Rapidly click clear button multiple times
1405 | await driver.clearButton.click();
1406 | await driver.clearButton.click();
1407 | await driver.clearButton.click();
1408 |
1409 | await expect(driver.hourInput).toHaveValue("");
1410 | await expect(driver.minuteInput).toHaveValue("");
1411 | });
1412 | });
1413 |
1414 | // =============================================================================
1415 | // EVENT TESTS
1416 | // =============================================================================
1417 |
1418 | test.describe("Events", () => {
1419 | test("didChange event fires when value changes", async ({
1420 | initTestBed,
1421 | createTimeInputDriver,
1422 | }) => {
1423 | const { testStateDriver } = await initTestBed(`
1424 | <TimeInput testId="timeInput" initialValue="03:28"
1425 | onDidChange="arg => {testState = arg; console.log('arg', arg)}" />
1426 | `);
1427 | const driver = await createTimeInputDriver("timeInput");
1428 |
1429 | await driver.hourInput.click();
1430 | await driver.hourInput.fill("14");
1431 | await driver.hourInput.blur();
1432 |
1433 | await expect.poll(testStateDriver.testState).toBeTruthy();
1434 | });
1435 |
1436 | test("didChange event receives correct time value", async ({
1437 | initTestBed,
1438 | createTimeInputDriver,
1439 | }) => {
1440 | const { testStateDriver } = await initTestBed(`
1441 | <TimeInput testId="timeInput" onDidChange="arg => testState = arg" />
1442 | `);
1443 | const driver = await createTimeInputDriver("timeInput");
1444 |
1445 | await driver.hourInput.click();
1446 | await driver.hourInput.fill("14");
1447 | await driver.minuteInput.click();
1448 | await driver.minuteInput.fill("30");
1449 | await driver.minuteInput.blur();
1450 |
1451 | await expect.poll(testStateDriver.testState).toEqual("14:30");
1452 | });
1453 |
1454 | test("gotFocus event fires when component receives focus", async ({
1455 | initTestBed,
1456 | createTimeInputDriver,
1457 | }) => {
1458 | const { testStateDriver } = await initTestBed(`
1459 | <TimeInput testId="timeInput" onGotFocus="testState = 'focused'" />
1460 | `);
1461 | const driver = await createTimeInputDriver("timeInput");
1462 |
1463 | await driver.hourInput.focus();
1464 | await expect.poll(testStateDriver.testState).toEqual("focused");
1465 | });
1466 |
1467 | test("gotFocus event fires on label click", async ({ initTestBed, page }) => {
1468 | const { testStateDriver } = await initTestBed(`
1469 | <TimeInput testId="timeInput" label="Time" onGotFocus="testState = 'focused'" />
1470 | `);
1471 |
1472 | await page.getByText("Time").click();
1473 | await expect.poll(testStateDriver.testState).toEqual("focused");
1474 | });
1475 |
1476 | test("lostFocus event fires when component loses focus", async ({
1477 | initTestBed,
1478 | createTimeInputDriver,
1479 | }) => {
1480 | const { testStateDriver } = await initTestBed(`
1481 | <TimeInput testId="timeInput" onLostFocus="testState = 'blurred'" />
1482 | `);
1483 | const driver = await createTimeInputDriver("timeInput");
1484 |
1485 | await driver.hourInput.focus();
1486 | await driver.hourInput.blur();
1487 | await expect.poll(testStateDriver.testState).toEqual("blurred");
1488 | });
1489 |
1490 | test("invalidTime event fires for invalid input", async ({
1491 | initTestBed,
1492 | createTimeInputDriver,
1493 | }) => {
1494 | const { testStateDriver } = await initTestBed(`
1495 | <TimeInput testId="timeInput" onInvalidTime="testState = 'invalid'" />
1496 | `);
1497 | const driver = await createTimeInputDriver("timeInput");
1498 |
1499 | await driver.hourInput.click();
1500 | await driver.hourInput.fill("25"); // Invalid hour
1501 | await driver.hourInput.blur();
1502 |
1503 | await expect.poll(testStateDriver.testState).toEqual("invalid");
1504 | });
1505 | });
1506 |
1507 | // =============================================================================
1508 | // API TESTS
1509 | // =============================================================================
1510 |
1511 | test.describe("API", () => {
1512 | test("focus() method focuses the component", async ({
1513 | initTestBed,
1514 | page,
1515 | createTimeInputDriver,
1516 | }) => {
1517 | await initTestBed(`
1518 | <Fragment>
1519 | <TimeInput testId="timeInput" id="timeInput" />
1520 | <Button onClick="timeInput.focus()" testId="focusBtn" />
1521 | </Fragment>
1522 | `);
1523 | const driver = await createTimeInputDriver("timeInput");
1524 |
1525 | await page.getByTestId("focusBtn").click();
1526 | await expect(driver.hourInput).toBeFocused();
1527 | });
1528 |
1529 | test("value property returns current time", async ({ initTestBed, page }) => {
1530 | const { testStateDriver } = await initTestBed(`
1531 | <Fragment>
1532 | <TimeInput testId="timeInput" id="timeInput" initialValue="14:30" />
1533 | <Button onClick="testState = timeInput.value" testId="getValueBtn" />
1534 | </Fragment>
1535 | `);
1536 |
1537 | await page.getByTestId("getValueBtn").click();
1538 | await expect.poll(testStateDriver.testState).toEqual("14:30");
1539 | });
1540 |
1541 | test("setValue() method updates the time", async ({
1542 | initTestBed,
1543 | page,
1544 | createTimeInputDriver,
1545 | }) => {
1546 | await initTestBed(`
1547 | <Fragment>
1548 | <TimeInput testId="timeInput" id="timeInput" />
1549 | <Button onClick="timeInput.setValue('15:45')" testId="setValueBtn" />
1550 | </Fragment>
1551 | `);
1552 | const driver = await createTimeInputDriver("timeInput");
1553 |
1554 | await page.getByTestId("setValueBtn").click();
1555 | await expect(driver.hourInput).toHaveValue("15");
1556 | await expect(driver.minuteInput).toHaveValue("45");
1557 | });
1558 |
1559 | test("setValue() with empty string clears the value", async ({
1560 | initTestBed,
1561 | page,
1562 | createTimeInputDriver,
1563 | }) => {
1564 | await initTestBed(`
1565 | <Fragment>
1566 | <TimeInput testId="timeInput" id="timeInput" initialValue="14:30" />
1567 | <Button onClick="timeInput.setValue('')" testId="clearBtn" />
1568 | </Fragment>
1569 | `);
1570 | const driver = await createTimeInputDriver("timeInput");
1571 |
1572 | await page.getByTestId("clearBtn").click();
1573 | await expect(driver.hourInput).toHaveValue("");
1574 | await expect(driver.minuteInput).toHaveValue("");
1575 | });
1576 |
1577 | test("value property returns undefined when no value set", async ({ initTestBed, page }) => {
1578 | const { testStateDriver } = await initTestBed(`
1579 | <Fragment>
1580 | <TimeInput testId="timeInput" id="timeInput" />
1581 | <Button onClick="testState = timeInput.value === undefined ? 'undefined' : 'defined'" testId="checkBtn" />
1582 | </Fragment>
1583 | `);
1584 | await page.getByTestId("checkBtn").click();
1585 | await expect.poll(testStateDriver.testState).toEqual("undefined");
1586 | });
1587 |
1588 | test("setValue() triggers didChange event", async ({ initTestBed, page }) => {
1589 | const { testStateDriver } = await initTestBed(`
1590 | <Fragment>
1591 | <TimeInput testId="timeInput" id="timeInput" onDidChange="arg => testState = 'changed:' + arg" />
1592 | <Button onClick="timeInput.setValue('16:20')" testId="setBtn" />
1593 | </Fragment>
1594 | `);
1595 |
1596 | await page.getByTestId("setBtn").click();
1597 | await expect.poll(testStateDriver.testState).toEqual("changed:16:20");
1598 | });
1599 | });
1600 |
1601 | // =============================================================================
1602 | // LAYOUT TESTS
1603 | // =============================================================================
1604 |
1605 | test.describe("Layout", () => {
1606 | test("labelWidth applies custom label width", async ({ initTestBed, createTimeInputDriver }) => {
1607 | const expected = 200;
1608 | await initTestBed(
1609 | `<TimeInput testId="timeInput" label="Select time" labelPosition="left" labelWidth="${expected}px" />`,
1610 | );
1611 | const driver = await createTimeInputDriver("timeInput");
1612 | const { width } = await getBounds(driver.label);
1613 | expect(width).toEqual(expected);
1614 | });
1615 |
1616 | test("time inputs maintain consistent spacing", async ({
1617 | initTestBed,
1618 | createTimeInputDriver,
1619 | }) => {
1620 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
1621 | const driver = await createTimeInputDriver("timeInput");
1622 |
1623 | const { right: hourRight } = await getBounds(driver.hourInput);
1624 | const { left: minuteLeft, right: minuteRight } = await getBounds(driver.minuteInput);
1625 | const { left: secondLeft } = await getBounds(driver.secondInput);
1626 |
1627 | // Verify there's consistent spacing between inputs
1628 | const hourToMinuteGap = minuteLeft - hourRight;
1629 | const minuteToSecondGap = secondLeft - minuteRight;
1630 |
1631 | expect(hourToMinuteGap).toBeGreaterThan(0);
1632 | expect(minuteToSecondGap).toBeGreaterThan(0);
1633 | expect(Math.abs(hourToMinuteGap - minuteToSecondGap)).toBeLessThan(5); // Allow small differences
1634 | });
1635 | });
1636 |
1637 | // =============================================================================
1638 | // VISUAL STATE TESTS
1639 | // =============================================================================
1640 |
1641 | test("input has correct width", async ({ initTestBed, page }) => {
1642 | await initTestBed(`
1643 | <TimeInput width="200px" testId="test"/>
1644 | `);
1645 | const { width } = await page.getByTestId("test").boundingBox();
1646 | expect(width).toBe(200);
1647 | });
1648 |
1649 | test("input with label has correct width", async ({ initTestBed, page }) => {
1650 | await initTestBed(`
1651 | <TimeInput width="200px" label="test" testId="test"/>
1652 | `);
1653 | const { width } = await page.getByTestId("test").boundingBox();
1654 | expect(width).toBe(200);
1655 | });
1656 |
1657 | test("input has correct width in %", async ({ page, initTestBed }) => {
1658 | await page.setViewportSize({ width: 400, height: 300 });
1659 | await initTestBed(`<TimeInput width="50%" testId="test"/>`, {});
1660 |
1661 | const input = page.getByTestId("test");
1662 | const { width } = await input.boundingBox();
1663 | expect(width).toBe(200);
1664 | });
1665 |
1666 | test("input with label has correct width in %", async ({ page, initTestBed }) => {
1667 | await page.setViewportSize({ width: 400, height: 300 });
1668 | await initTestBed(`<TimeInput width="50%" label="test" testId="test"/>`, {});
1669 |
1670 | const input = page.getByTestId("test");
1671 | const { width } = await input.boundingBox();
1672 | expect(width).toBe(200);
1673 | });
1674 |
```