This is page 168 of 181. Use http://codebase.md/xmlui-org/xmlui/%7BextractResourceUrl(node.props.src)%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.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
│ ├── layout-changes.md
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ └── lorem-ipsum.png
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ └── welcome-to-the-xmlui-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
│ │ └── 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
│ │ ├── HelloMd.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
│ │ │ │ ├── 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
│ ├── 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
│ │ └── tsconfig.json
│ ├── 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
│ │ ├── tsconfig.json
│ │ └── 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
│ │ └── tsconfig.json
│ ├── 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
│ │ └── tsconfig.json
│ ├── 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
│ │ └── tsconfig.json
│ ├── 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
│ │ └── tsconfig.json
│ ├── 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
│ │ └── tsconfig.json
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Spreadsheet.tsx
│ │ │ └── SpreadsheetNative.tsx
│ │ └── tsconfig.json
│ └── 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.tsx
│ │ │ └── HeroSectionNative.tsx
│ │ ├── index.tsx
│ │ ├── ScrollToTop
│ │ │ ├── ScrollToTop.module.scss
│ │ │ ├── ScrollToTop.tsx
│ │ │ └── ScrollToTopNative.tsx
│ │ └── vite-env.d.ts
│ └── tsconfig.json
├── 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.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
│ ├── 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
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── playwright.config.ts
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.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
│ ├── get-langserver-metadata.mjs
│ ├── 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.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── 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.mjs
│ ├── 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
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.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("validationStatus property", () => {
477 | test("displays valid status", async ({ initTestBed, createTimeInputDriver }) => {
478 | await initTestBed(
479 | `<TimeInput testId="timeInput" validationStatus="valid" initialValue="14:30" />`,
480 | );
481 | const driver = await createTimeInputDriver("timeInput");
482 | await expect(driver.component).toBeVisible();
483 | });
484 |
485 | test("displays warning status", async ({ initTestBed, createTimeInputDriver }) => {
486 | await initTestBed(
487 | `<TimeInput testId="timeInput" validationStatus="warning" initialValue="14:30" />`,
488 | );
489 | const driver = await createTimeInputDriver("timeInput");
490 | await expect(driver.component).toBeVisible();
491 | });
492 |
493 | test("displays error status", async ({ initTestBed, createTimeInputDriver }) => {
494 | await initTestBed(
495 | `<TimeInput testId="timeInput" validationStatus="error" initialValue="14:30" />`,
496 | );
497 | const driver = await createTimeInputDriver("timeInput");
498 | await expect(driver.component).toBeVisible();
499 | });
500 |
501 | test("handles null validationStatus", async ({ initTestBed, createTimeInputDriver }) => {
502 | await initTestBed(`<TimeInput testId="timeInput" validationStatus="{null}" />`);
503 | const driver = await createTimeInputDriver("timeInput");
504 | await expect(driver.component).toBeVisible();
505 | });
506 | });
507 |
508 | test.describe("minTime and maxTime properties", () => {
509 | test("accepts minTime constraint", async ({ initTestBed, createTimeInputDriver }) => {
510 | await initTestBed(`<TimeInput testId="timeInput" minTime="10:00" initialValue="14:30" />`);
511 | const driver = await createTimeInputDriver("timeInput");
512 | await expect(driver.hourInput).toHaveValue("14");
513 | await expect(driver.minuteInput).toHaveValue("30");
514 | });
515 |
516 | test("accepts maxTime constraint", async ({ initTestBed, createTimeInputDriver }) => {
517 | await initTestBed(`<TimeInput testId="timeInput" maxTime="18:00" initialValue="14:30" />`);
518 | const driver = await createTimeInputDriver("timeInput");
519 | await expect(driver.hourInput).toHaveValue("14");
520 | await expect(driver.minuteInput).toHaveValue("30");
521 | });
522 |
523 | test("handles null minTime", async ({ initTestBed, createTimeInputDriver }) => {
524 | await initTestBed(`<TimeInput testId="timeInput" minTime="{null}" initialValue="14:30" />`);
525 | const driver = await createTimeInputDriver("timeInput");
526 | await expect(driver.hourInput).toHaveValue("14");
527 | await expect(driver.minuteInput).toHaveValue("30");
528 | });
529 |
530 | test("handles null maxTime", async ({ initTestBed, createTimeInputDriver }) => {
531 | await initTestBed(`<TimeInput testId="timeInput" maxTime="{null}" initialValue="14:30" />`);
532 | const driver = await createTimeInputDriver("timeInput");
533 | await expect(driver.hourInput).toHaveValue("14");
534 | await expect(driver.minuteInput).toHaveValue("30");
535 | });
536 | });
537 |
538 | test.describe("adornment properties", () => {
539 | test("displays startText", async ({ initTestBed, createTimeInputDriver }) => {
540 | await initTestBed(`<TimeInput testId="timeInput" startText="Start" />`);
541 | const driver = await createTimeInputDriver("timeInput");
542 | await expect(driver.component).toContainText("Start");
543 | });
544 |
545 | test("displays endText", async ({ initTestBed, createTimeInputDriver }) => {
546 | await initTestBed(`<TimeInput testId="timeInput" endText="End" />`);
547 | const driver = await createTimeInputDriver("timeInput");
548 | await expect(driver.component).toContainText("End");
549 | });
550 |
551 | test("displays startIcon", async ({ initTestBed, createTimeInputDriver }) => {
552 | await initTestBed(`<TimeInput testId="timeInput" startIcon="trash" />`);
553 | const driver = await createTimeInputDriver("timeInput");
554 | await expect(driver.component.getByRole("img")).toBeVisible();
555 | });
556 |
557 | test("displays endIcon", async ({ initTestBed, createTimeInputDriver }) => {
558 | await initTestBed(`<TimeInput testId="timeInput" endIcon="trash" />`);
559 | const driver = await createTimeInputDriver("timeInput");
560 | await expect(driver.component.getByRole("img")).toBeVisible();
561 | });
562 |
563 | test("displays multiple adornments together", async ({
564 | initTestBed,
565 | createTimeInputDriver,
566 | }) => {
567 | await initTestBed(
568 | `<TimeInput testId="timeInput" startText="Start" endText="End" startIcon="phone" endIcon="email" />`,
569 | );
570 | const driver = await createTimeInputDriver("timeInput");
571 | await expect(driver.component).toContainText("Start");
572 | await expect(driver.component).toContainText("End");
573 | await expect(driver.component.getByRole("img").first()).toBeVisible();
574 | await expect(driver.component.getByRole("img").last()).toBeVisible();
575 | });
576 | });
577 |
578 | test.describe("gap property", () => {
579 | test("applies custom gap", async ({ initTestBed, createTimeInputDriver }) => {
580 | await initTestBed(`<TimeInput testId="timeInput" gap="20px" startText="Start" />`);
581 | const driver = await createTimeInputDriver("timeInput");
582 | await expect(driver.component).toContainText("Start");
583 | });
584 |
585 | test("handles null gap", async ({ initTestBed, createTimeInputDriver }) => {
586 | await initTestBed(`<TimeInput testId="timeInput" gap="{null}" startText="Start" />`);
587 | const driver = await createTimeInputDriver("timeInput");
588 | await expect(driver.component).toContainText("Start");
589 | });
590 | });
591 |
592 | test.describe("autoFocus property", () => {
593 | test("focuses component when autoFocus is true", async ({
594 | initTestBed,
595 | createTimeInputDriver,
596 | }) => {
597 | await initTestBed(`<TimeInput testId="timeInput" autoFocus="true" />`);
598 | const driver = await createTimeInputDriver("timeInput");
599 | await expect(driver.hourInput).toBeFocused();
600 | });
601 |
602 | test("does not focus when autoFocus is false", async ({
603 | initTestBed,
604 | createTimeInputDriver,
605 | }) => {
606 | await initTestBed(`<TimeInput testId="timeInput" autoFocus="false" />`);
607 | const driver = await createTimeInputDriver("timeInput");
608 | await expect(driver.hourInput).not.toBeFocused();
609 | });
610 | });
611 |
612 | test.describe("emptyCharacter property", () => {
613 | test("uses default '--' placeholder when no emptyCharacter is specified", async ({
614 | initTestBed,
615 | createTimeInputDriver,
616 | }) => {
617 | await initTestBed(`<TimeInput testId="timeInput" />`);
618 | const driver = await createTimeInputDriver("timeInput");
619 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
620 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
621 | });
622 |
623 | test("uses custom emptyCharacter for placeholders", async ({
624 | initTestBed,
625 | createTimeInputDriver,
626 | }) => {
627 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="*" />`);
628 | const driver = await createTimeInputDriver("timeInput");
629 | await expect(driver.hourInput).toHaveAttribute("placeholder", "**");
630 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "**");
631 | });
632 |
633 | test("applies emptyCharacter to all inputs when seconds enabled", async ({
634 | initTestBed,
635 | createTimeInputDriver,
636 | }) => {
637 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="•" seconds="true" />`);
638 | const driver = await createTimeInputDriver("timeInput");
639 | await expect(driver.hourInput).toHaveAttribute("placeholder", "••");
640 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "••");
641 | await expect(driver.secondInput).toHaveAttribute("placeholder", "••");
642 | });
643 |
644 | test("uses first character when emptyCharacter is multi-character", async ({
645 | initTestBed,
646 | createTimeInputDriver,
647 | }) => {
648 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="abc" />`);
649 | const driver = await createTimeInputDriver("timeInput");
650 | await expect(driver.hourInput).toHaveAttribute("placeholder", "aa");
651 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "aa");
652 | });
653 |
654 | test("defaults to dash when emptyCharacter is empty string", async ({
655 | initTestBed,
656 | createTimeInputDriver,
657 | }) => {
658 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="" />`);
659 | const driver = await createTimeInputDriver("timeInput");
660 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
661 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
662 | });
663 |
664 | test("handles null emptyCharacter", async ({ initTestBed, createTimeInputDriver }) => {
665 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="{null}" />`);
666 | const driver = await createTimeInputDriver("timeInput");
667 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
668 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
669 | });
670 |
671 | test("handles undefined emptyCharacter", async ({ initTestBed, createTimeInputDriver }) => {
672 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="{undefined}" />`);
673 | const driver = await createTimeInputDriver("timeInput");
674 | await expect(driver.hourInput).toHaveAttribute("placeholder", "--");
675 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "--");
676 | });
677 |
678 | test("works with special characters", async ({ initTestBed, createTimeInputDriver }) => {
679 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="@" />`);
680 | const driver = await createTimeInputDriver("timeInput");
681 | await expect(driver.hourInput).toHaveAttribute("placeholder", "@@");
682 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "@@");
683 | });
684 |
685 | test("works with unicode characters", async ({ initTestBed, createTimeInputDriver }) => {
686 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="⏰" />`);
687 | const driver = await createTimeInputDriver("timeInput");
688 | await expect(driver.hourInput).toHaveAttribute("placeholder", "⏰⏰");
689 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "⏰⏰");
690 | });
691 |
692 | test("placeholder visible when fields are empty", async ({
693 | initTestBed,
694 | createTimeInputDriver,
695 | }) => {
696 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="#" />`);
697 | const driver = await createTimeInputDriver("timeInput");
698 | await expect(driver.hourInput).toHaveValue("");
699 | await expect(driver.minuteInput).toHaveValue("");
700 | await expect(driver.hourInput).toHaveAttribute("placeholder", "##");
701 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "##");
702 | });
703 |
704 | test("shows values instead of placeholder when initialValue provided", async ({
705 | initTestBed,
706 | createTimeInputDriver,
707 | }) => {
708 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="#" initialValue="14:30" />`);
709 | const driver = await createTimeInputDriver("timeInput");
710 | await expect(driver.hourInput).toHaveValue("14");
711 | await expect(driver.minuteInput).toHaveValue("30");
712 | });
713 |
714 | test("works with 12-hour format", async ({ initTestBed, createTimeInputDriver }) => {
715 | await initTestBed(`<TimeInput testId="timeInput" emptyCharacter="○" hour24="false" />`);
716 | const driver = await createTimeInputDriver("timeInput");
717 | await expect(driver.hourInput).toHaveAttribute("placeholder", "○○");
718 | await expect(driver.minuteInput).toHaveAttribute("placeholder", "○○");
719 | await expect(driver.amPmInput).toBeVisible();
720 | });
721 | });
722 |
723 | test.describe("User Interactions", () => {
724 | test("allows typing in hour input", async ({ initTestBed, createTimeInputDriver }) => {
725 | await initTestBed(`<TimeInput testId="timeInput" />`);
726 | const driver = await createTimeInputDriver("timeInput");
727 | await driver.hourInput.click();
728 | await driver.hourInput.fill("15");
729 | await expect(driver.hourInput).toHaveValue("15");
730 | });
731 |
732 | test("allows typing in minute input", async ({ initTestBed, createTimeInputDriver }) => {
733 | await initTestBed(`<TimeInput testId="timeInput" />`);
734 | const driver = await createTimeInputDriver("timeInput");
735 | await driver.minuteInput.click();
736 | await driver.minuteInput.fill("45");
737 | await expect(driver.minuteInput).toHaveValue("45");
738 | });
739 |
740 | test("navigates between inputs with Tab", async ({
741 | initTestBed,
742 | createTimeInputDriver,
743 | page,
744 | }) => {
745 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
746 | const driver = await createTimeInputDriver("timeInput");
747 |
748 | await driver.hourInput.focus();
749 | await page.keyboard.press("Tab");
750 | await expect(driver.minuteInput).toBeFocused();
751 | await page.keyboard.press("Tab");
752 | await expect(driver.secondInput).toBeFocused();
753 | });
754 |
755 | test("navigates between inputs with arrow keys - 24-hour format with seconds", async ({
756 | initTestBed,
757 | createTimeInputDriver,
758 | page,
759 | }) => {
760 | await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
761 | const driver = await createTimeInputDriver("timeInput");
762 |
763 | // Start at hour input
764 | await driver.hourInput.focus();
765 | await expect(driver.hourInput).toBeFocused();
766 |
767 | // Navigate right: Hour → Minute
768 | await page.keyboard.press("ArrowRight");
769 | await expect(driver.minuteInput).toBeFocused();
770 |
771 | // Navigate right: Minute → Second
772 | await page.keyboard.press("ArrowRight");
773 | await expect(driver.secondInput).toBeFocused();
774 |
775 | // Navigate left: Second → Minute
776 | await page.keyboard.press("ArrowLeft");
777 | await expect(driver.minuteInput).toBeFocused();
778 |
779 | // Navigate left: Minute → Hour
780 | await page.keyboard.press("ArrowLeft");
781 | await expect(driver.hourInput).toBeFocused();
782 | });
783 |
784 | test("navigates between inputs with arrow keys - 24-hour format without seconds", async ({
785 | initTestBed,
786 | createTimeInputDriver,
787 | page,
788 | }) => {
789 | await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="false" />`);
790 | const driver = await createTimeInputDriver("timeInput");
791 |
792 | // Start at hour input
793 | await driver.hourInput.focus();
794 | await expect(driver.hourInput).toBeFocused();
795 |
796 | // Navigate right: Hour → Minute (skip seconds since disabled)
797 | await page.keyboard.press("ArrowRight");
798 | await expect(driver.minuteInput).toBeFocused();
799 |
800 | // Navigate left: Minute → Hour
801 | await page.keyboard.press("ArrowLeft");
802 | await expect(driver.hourInput).toBeFocused();
803 | });
804 |
805 | test("navigates between inputs with arrow keys - 12-hour format with seconds", async ({
806 | initTestBed,
807 | createTimeInputDriver,
808 | page,
809 | }) => {
810 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
811 | const driver = await createTimeInputDriver("timeInput");
812 |
813 | // Start at hour input
814 | await driver.hourInput.focus();
815 | await expect(driver.hourInput).toBeFocused();
816 |
817 | // Navigate right: Hour → Minute
818 | await page.keyboard.press("ArrowRight");
819 | await expect(driver.minuteInput).toBeFocused();
820 |
821 | // Navigate right: Minute → Second
822 | await page.keyboard.press("ArrowRight");
823 | await expect(driver.secondInput).toBeFocused();
824 |
825 | // Navigate right: Second → AM/PM
826 | await page.keyboard.press("ArrowRight");
827 | await expect(driver.amPmInput).toBeFocused();
828 |
829 | // Navigate left: AM/PM → Second
830 | await page.keyboard.press("ArrowLeft");
831 | await expect(driver.secondInput).toBeFocused();
832 |
833 | // Navigate left: Second → Minute
834 | await page.keyboard.press("ArrowLeft");
835 | await expect(driver.minuteInput).toBeFocused();
836 |
837 | // Navigate left: Minute → Hour
838 | await page.keyboard.press("ArrowLeft");
839 | await expect(driver.hourInput).toBeFocused();
840 | });
841 |
842 | test("navigates between inputs with arrow keys - 12-hour format without seconds", async ({
843 | initTestBed,
844 | createTimeInputDriver,
845 | page,
846 | }) => {
847 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="false" />`);
848 | const driver = await createTimeInputDriver("timeInput");
849 |
850 | // Start at hour input
851 | await driver.hourInput.focus();
852 | await expect(driver.hourInput).toBeFocused();
853 |
854 | // Navigate right: Hour → Minute
855 | await page.keyboard.press("ArrowRight");
856 | await expect(driver.minuteInput).toBeFocused();
857 |
858 | // Navigate right: Minute → AM/PM (skip seconds since disabled)
859 | await page.keyboard.press("ArrowRight");
860 | await expect(driver.amPmInput).toBeFocused();
861 |
862 | // Navigate left: AM/PM → Minute
863 | await page.keyboard.press("ArrowLeft");
864 | await expect(driver.minuteInput).toBeFocused();
865 |
866 | // Navigate left: Minute → Hour
867 | await page.keyboard.press("ArrowLeft");
868 | await expect(driver.hourInput).toBeFocused();
869 | });
870 |
871 | test("changes AM/PM with click", async ({ initTestBed, createTimeInputDriver }) => {
872 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
873 | const driver = await createTimeInputDriver("timeInput");
874 | await expect(driver.amPmInput).toHaveText("PM");
875 | await driver.amPmInput.click();
876 | await expect(driver.amPmInput).toHaveText("AM");
877 | });
878 |
879 | test("changes AM/PM with keydown 1", async ({ initTestBed, page, createTimeInputDriver }) => {
880 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
881 | const driver = await createTimeInputDriver("timeInput");
882 | await expect(driver.amPmInput).toHaveText("PM");
883 | await driver.amPmInput.focus();
884 | await page.keyboard.press("a", { delay: 100 });
885 | await expect(driver.amPmInput).toHaveText("AM");
886 | });
887 |
888 | test("changes AM/PM with keydown 2", async ({ initTestBed, page, createTimeInputDriver }) => {
889 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="03:30" />`);
890 | const driver = await createTimeInputDriver("timeInput");
891 | await expect(driver.amPmInput).toHaveText("AM");
892 | await driver.amPmInput.focus();
893 | await page.keyboard.press("p", { delay: 100 });
894 | await expect(driver.amPmInput).toHaveText("PM");
895 | });
896 |
897 | test("auto-tabs from hour to minute after typing two digits", async ({
898 | initTestBed,
899 | page,
900 | createTimeInputDriver,
901 | }) => {
902 | await initTestBed(`<TimeInput testId="timeInput" />`);
903 | const driver = await createTimeInputDriver("timeInput");
904 |
905 | // Focus on hour input and clear it
906 | await driver.hourInput.focus();
907 | await driver.hourInput.selectText();
908 |
909 | // Type two digits - should auto-tab to minute
910 | await page.keyboard.type("14");
911 |
912 | // Verify hour input has the value and minute input is now focused
913 | await expect(driver.hourInput).toHaveValue("14");
914 | await expect(driver.minuteInput).toBeFocused();
915 | });
916 |
917 | test("auto-tabs from minute to second after typing two digits", async ({
918 | initTestBed,
919 | page,
920 | createTimeInputDriver,
921 | }) => {
922 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
923 | const driver = await createTimeInputDriver("timeInput");
924 |
925 | // Focus on minute input and clear it
926 | await driver.minuteInput.focus();
927 | await driver.minuteInput.selectText();
928 |
929 | // Type two digits - should auto-tab to second
930 | await page.keyboard.type("30");
931 |
932 | // Verify minute input has the value and second input is now focused
933 | await expect(driver.minuteInput).toHaveValue("30");
934 | await expect(driver.secondInput).toBeFocused();
935 | });
936 |
937 | test("auto-tabs from second to AM/PM after typing two digits in 12-hour format", async ({
938 | initTestBed,
939 | page,
940 | createTimeInputDriver,
941 | }) => {
942 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
943 | const driver = await createTimeInputDriver("timeInput");
944 |
945 | // Focus on second input and clear it
946 | await driver.secondInput.focus();
947 | await driver.secondInput.selectText();
948 |
949 | // Type two digits - should auto-tab to AM/PM
950 | await page.keyboard.type("45");
951 |
952 | // Verify second input has the value and AM/PM input is now focused
953 | await expect(driver.secondInput).toHaveValue("45");
954 | await expect(driver.amPmInput).toBeFocused();
955 | });
956 |
957 | test("does not auto-tab from second input in 24-hour format", async ({
958 | initTestBed,
959 | page,
960 | createTimeInputDriver,
961 | }) => {
962 | await initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
963 | const driver = await createTimeInputDriver("timeInput");
964 |
965 | // Focus on second input and clear it
966 | await driver.secondInput.focus();
967 | await driver.secondInput.selectText();
968 |
969 | // Type two digits - should stay on second input since there's no AM/PM
970 | await page.keyboard.type("45");
971 |
972 | // Verify second input has the value and is still focused
973 | await expect(driver.secondInput).toHaveValue("45");
974 | await expect(driver.secondInput).toBeFocused();
975 | });
976 | });
977 |
978 | test.describe("API", () => {
979 | test("isoValue returns null when no time is set", async ({ initTestBed, page }) => {
980 | const { testStateDriver } = await initTestBed(`
981 | <Fragment>
982 | <TimeInput id="timeInput" />
983 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
984 | </Fragment>
985 | `);
986 |
987 | await page.getByTestId("getIsoBtn").click();
988 | await expect.poll(testStateDriver.testState).toBe(null);
989 | });
990 |
991 | test("isoValue returns ISO format for 24-hour time", async ({ initTestBed, page }) => {
992 | const { testStateDriver } = await initTestBed(`
993 | <Fragment>
994 | <TimeInput id="timeInput" initialValue="14:30" hour24="true" />
995 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
996 | </Fragment>
997 | `);
998 |
999 | await page.getByTestId("getIsoBtn").click();
1000 | await expect.poll(testStateDriver.testState).toBe("14:30:00");
1001 | });
1002 |
1003 | test("isoValue returns ISO format for 24-hour time with seconds", async ({
1004 | initTestBed,
1005 | page,
1006 | }) => {
1007 | const { testStateDriver } = await initTestBed(`
1008 | <Fragment>
1009 | <TimeInput id="timeInput" initialValue="14:30:45" hour24="true" seconds="true" />
1010 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1011 | </Fragment>
1012 | `);
1013 |
1014 | await page.getByTestId("getIsoBtn").click();
1015 | await expect.poll(testStateDriver.testState).toBe("14:30:45");
1016 | });
1017 |
1018 | test("isoValue converts 12-hour format to ISO format (AM)", async ({ initTestBed, page }) => {
1019 | const { testStateDriver } = await initTestBed(`
1020 | <Fragment>
1021 | <TimeInput id="timeInput" initialValue="02:30 AM" hour24="false" />
1022 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1023 | </Fragment>
1024 | `);
1025 |
1026 | await page.getByTestId("getIsoBtn").click();
1027 | await expect.poll(testStateDriver.testState).toBe("02:30:00");
1028 | });
1029 |
1030 | test("isoValue converts 12-hour format to ISO format (PM)", async ({ initTestBed, page }) => {
1031 | const { testStateDriver } = await initTestBed(`
1032 | <Fragment>
1033 | <TimeInput id="timeInput" initialValue="02:30 PM" hour24="false" />
1034 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1035 | </Fragment>
1036 | `);
1037 |
1038 | await page.getByTestId("getIsoBtn").click();
1039 | await expect.poll(testStateDriver.testState).toBe("14:30:00");
1040 | });
1041 |
1042 | test("isoValue converts 12-hour midnight correctly", async ({ initTestBed, page }) => {
1043 | const { testStateDriver } = await initTestBed(`
1044 | <Fragment>
1045 | <TimeInput id="timeInput" initialValue="12:00 AM" hour24="false" />
1046 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1047 | </Fragment>
1048 | `);
1049 |
1050 | await page.getByTestId("getIsoBtn").click();
1051 | await expect.poll(testStateDriver.testState).toBe("00:00:00");
1052 | });
1053 |
1054 | test("isoValue converts 12-hour noon correctly", async ({ initTestBed, page }) => {
1055 | const { testStateDriver } = await initTestBed(`
1056 | <Fragment>
1057 | <TimeInput id="timeInput" initialValue="12:00 PM" hour24="false" />
1058 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1059 | </Fragment>
1060 | `);
1061 |
1062 | await page.getByTestId("getIsoBtn").click();
1063 | await expect.poll(testStateDriver.testState).toBe("12:00:00");
1064 | });
1065 |
1066 | test("isoValue includes seconds when available in 12-hour format", async ({
1067 | initTestBed,
1068 | page,
1069 | }) => {
1070 | const { testStateDriver } = await initTestBed(`
1071 | <Fragment>
1072 | <TimeInput id="timeInput" initialValue="02:30:15 PM" hour24="false" seconds="true" />
1073 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1074 | </Fragment>
1075 | `);
1076 |
1077 | await page.getByTestId("getIsoBtn").click();
1078 | await expect.poll(testStateDriver.testState).toBe("14:30:15");
1079 | });
1080 |
1081 | test("isoValue updates when time is changed programmatically", async ({
1082 | initTestBed,
1083 | page,
1084 | }) => {
1085 | const { testStateDriver } = await initTestBed(`
1086 | <Fragment>
1087 | <TimeInput id="timeInput" initialValue="14:30" hour24="true" />
1088 | <Button testId="setTimeBtn" onClick="timeInput.setValue('09:15')" />
1089 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1090 | </Fragment>
1091 | `);
1092 |
1093 | // Change the time programmatically
1094 | await page.getByTestId("setTimeBtn").click();
1095 |
1096 | // Get the ISO value
1097 | await page.getByTestId("getIsoBtn").click();
1098 | await expect.poll(testStateDriver.testState).toBe("09:15:00");
1099 | });
1100 |
1101 | test("isoValue returns null when only hour is set", async ({
1102 | initTestBed,
1103 | page,
1104 | createTimeInputDriver,
1105 | }) => {
1106 | const { testStateDriver } = await initTestBed(`
1107 | <Fragment>
1108 | <TimeInput id="timeInput" testId="timeInput" />
1109 | <Button testId="getIsoBtn" onClick="testState = timeInput.isoValue()" />
1110 | </Fragment>
1111 | `);
1112 |
1113 | const driver = await createTimeInputDriver("timeInput");
1114 |
1115 | // Set only hour, leave minute empty
1116 | await driver.hourInput.fill("14");
1117 |
1118 | await page.getByTestId("getIsoBtn").click();
1119 | await expect.poll(testStateDriver.testState).toBe(null);
1120 | });
1121 | });
1122 | });
1123 |
1124 | // =============================================================================
1125 | // ACCESSIBILITY TESTS
1126 | // =============================================================================
1127 |
1128 | test.describe("Accessibility", () => {
1129 | test("has correct role for main container", async ({ initTestBed, createTimeInputDriver }) => {
1130 | await initTestBed(`<TimeInput testId="timeInput" label="Time Input" />`);
1131 | const driver = await createTimeInputDriver("timeInput");
1132 | await expect(driver.component).toBeVisible();
1133 | });
1134 |
1135 | test("has correct accessibility attributes for inputs", async ({
1136 | initTestBed,
1137 | createTimeInputDriver,
1138 | }) => {
1139 | await initTestBed(`<TimeInput testId="timeInput" label="Select time" />`);
1140 | const driver = await createTimeInputDriver("timeInput");
1141 | await expect(driver.hourInput).toHaveAttribute("type", "text");
1142 | await expect(driver.minuteInput).toHaveAttribute("type", "text");
1143 | });
1144 |
1145 | test("associates label with component", async ({ initTestBed, createTimeInputDriver }) => {
1146 | await initTestBed(`<TimeInput testId="timeInput" label="Meeting time" />`);
1147 | const driver = await createTimeInputDriver("timeInput");
1148 | await expect(driver.label).toBeVisible();
1149 | await expect(driver.label).toContainText("Meeting time");
1150 | });
1151 |
1152 | test("supports keyboard navigation", async ({ initTestBed, createTimeInputDriver, page }) => {
1153 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
1154 | const driver = await createTimeInputDriver("timeInput");
1155 |
1156 | // Tab through all inputs
1157 | await driver.hourInput.focus();
1158 | await expect(driver.hourInput).toBeFocused();
1159 |
1160 | await page.keyboard.press("Tab");
1161 | await expect(driver.minuteInput).toBeFocused();
1162 |
1163 | await page.keyboard.press("Tab");
1164 | await expect(driver.secondInput).toBeFocused();
1165 | });
1166 |
1167 | test("supports required attribute for accessibility", async ({
1168 | initTestBed,
1169 | createTimeInputDriver,
1170 | }) => {
1171 | await initTestBed(`<TimeInput testId="timeInput" required="true" label="Required time" />`);
1172 | const driver = await createTimeInputDriver("timeInput");
1173 | await expect(driver.hourInput).toHaveAttribute("required");
1174 | });
1175 |
1176 | test("has proper ARIA attributes for disabled state", async ({
1177 | initTestBed,
1178 | createTimeInputDriver,
1179 | }) => {
1180 | await initTestBed(`<TimeInput testId="timeInput" enabled="false" label="Disabled time" />`);
1181 | const driver = await createTimeInputDriver("timeInput");
1182 | await expect(driver.hourInput).toBeDisabled();
1183 | await expect(driver.minuteInput).toBeDisabled();
1184 | });
1185 |
1186 | test("has proper ARIA attributes for readonly state", async ({
1187 | initTestBed,
1188 | createTimeInputDriver,
1189 | }) => {
1190 | await initTestBed(
1191 | `<TimeInput testId="timeInput" readOnly="true" label="Readonly time" initialValue="14:30" />`,
1192 | );
1193 | const driver = await createTimeInputDriver("timeInput");
1194 | await expect(driver.hourInput).toHaveAttribute("readonly");
1195 | await expect(driver.minuteInput).toHaveAttribute("readonly");
1196 | });
1197 |
1198 | test("clear button has accessible name", async ({ initTestBed, createTimeInputDriver }) => {
1199 | await initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
1200 | const driver = await createTimeInputDriver("timeInput");
1201 | await expect(driver.clearButton).toBeVisible();
1202 | });
1203 |
1204 | test("AM/PM select has proper role", async ({ initTestBed, createTimeInputDriver }) => {
1205 | await initTestBed(`<TimeInput testId="timeInput" hour24="false" initialValue="14:30" />`);
1206 | const driver = await createTimeInputDriver("timeInput");
1207 | await expect(driver.amPmInput).toBeVisible();
1208 | });
1209 | });
1210 |
1211 | // =============================================================================
1212 | // THEME VARIABLE TESTS
1213 | // =============================================================================
1214 |
1215 | test.describe("Theme Variables", () => {
1216 | test("applies Input borderRadius theme variable", async ({
1217 | initTestBed,
1218 | createTimeInputDriver,
1219 | }) => {
1220 | await initTestBed(`<TimeInput testId="time-input" />`, {
1221 | testThemeVars: { "borderRadius-TimeInput-default": "10px" },
1222 | });
1223 | const driver = await createTimeInputDriver("time-input");
1224 | await expect(driver.component).toHaveCSS("border-radius", "10px");
1225 | });
1226 |
1227 | test("applies Input borderColor theme variable", async ({
1228 | initTestBed,
1229 | createTimeInputDriver,
1230 | }) => {
1231 | await initTestBed(`<TimeInput testId="time-input" />`, {
1232 | testThemeVars: { "borderColor-TimeInput-default": "rgb(255, 0, 0)" },
1233 | });
1234 | const driver = await createTimeInputDriver("time-input");
1235 | await expect(driver.component).toHaveCSS("border-color", "rgb(255, 0, 0)");
1236 | });
1237 |
1238 | test("applies Input textColor theme variable", async ({ initTestBed, createTimeInputDriver }) => {
1239 | await initTestBed(`<TimeInput testId="time-input" />`, {
1240 | testThemeVars: { "textColor-TimeInput-default": "rgb(0, 0, 255)" },
1241 | });
1242 | const driver = await createTimeInputDriver("time-input");
1243 | await expect(driver.component).toHaveCSS("color", "rgb(0, 0, 255)");
1244 | });
1245 | });
1246 |
1247 | // =============================================================================
1248 | // OTHER EDGE CASE TESTS
1249 | // =============================================================================
1250 |
1251 | test.describe("Other Edge Cases", () => {
1252 | test("handles no props gracefully", async ({ initTestBed, createTimeInputDriver }) => {
1253 | await initTestBed(`<TimeInput testId="timeInput" />`);
1254 | const driver = await createTimeInputDriver("timeInput");
1255 | await expect(driver.component).toBeVisible();
1256 | });
1257 |
1258 | test("handles empty string props", async ({ initTestBed, createTimeInputDriver }) => {
1259 | await initTestBed(`<TimeInput testId="timeInput" label="" />`);
1260 | const driver = await createTimeInputDriver("timeInput");
1261 | await expect(driver.component).toBeVisible();
1262 | });
1263 |
1264 | test("handles very long unicode characters in initialValue", async ({
1265 | initTestBed,
1266 | createTimeInputDriver,
1267 | }) => {
1268 | await initTestBed(`<TimeInput testId="timeInput" initialValue="👨👩👧👦" />`);
1269 | const driver = await createTimeInputDriver("timeInput");
1270 | await expect(driver.hourInput).toHaveValue("00");
1271 | await expect(driver.minuteInput).toHaveValue("00");
1272 | });
1273 |
1274 | test("handles chinese characters in initialValue", async ({
1275 | initTestBed,
1276 | createTimeInputDriver,
1277 | }) => {
1278 | await initTestBed(`<TimeInput testId="timeInput" initialValue="中文时间" />`);
1279 | const driver = await createTimeInputDriver("timeInput");
1280 | await expect(driver.hourInput).toHaveValue("00");
1281 | await expect(driver.minuteInput).toHaveValue("00");
1282 | });
1283 |
1284 | test("handles negative values in time inputs", async ({ initTestBed, createTimeInputDriver }) => {
1285 | await initTestBed(`<TimeInput testId="timeInput" />`);
1286 | const driver = await createTimeInputDriver("timeInput");
1287 | await driver.hourInput.click();
1288 | await driver.hourInput.fill("-5");
1289 | // Component should handle negative values gracefully
1290 | await driver.hourInput.blur();
1291 | await expect(driver.component).toBeVisible();
1292 | });
1293 |
1294 | test("handles very large numbers in time inputs", async ({
1295 | initTestBed,
1296 | createTimeInputDriver,
1297 | }) => {
1298 | await initTestBed(`<TimeInput testId="timeInput" />`);
1299 | const driver = await createTimeInputDriver("timeInput");
1300 | await driver.hourInput.click();
1301 | await driver.hourInput.fill("999");
1302 | // Component should handle large values gracefully
1303 | await driver.hourInput.blur();
1304 | await expect(driver.component).toBeVisible();
1305 | });
1306 |
1307 | test("handles multiple rapid clear button clicks", async ({
1308 | initTestBed,
1309 | createTimeInputDriver,
1310 | }) => {
1311 | await initTestBed(`
1312 | <TimeInput testId="timeInput" clearable="true" clearToInitialValue="false" initialValue="14:30" />
1313 | `);
1314 | const driver = await createTimeInputDriver("timeInput");
1315 |
1316 | // Rapidly click clear button multiple times
1317 | await driver.clearButton.click();
1318 | await driver.clearButton.click();
1319 | await driver.clearButton.click();
1320 |
1321 | await expect(driver.hourInput).toHaveValue("");
1322 | await expect(driver.minuteInput).toHaveValue("");
1323 | });
1324 | });
1325 |
1326 | // =============================================================================
1327 | // EVENT TESTS
1328 | // =============================================================================
1329 |
1330 | test.describe("Events", () => {
1331 | test("didChange event fires when value changes", async ({
1332 | initTestBed,
1333 | createTimeInputDriver,
1334 | }) => {
1335 | const { testStateDriver } = await initTestBed(`
1336 | <TimeInput testId="timeInput" initialValue="03:28"
1337 | onDidChange="arg => {testState = arg; console.log('arg', arg)}" />
1338 | `);
1339 | const driver = await createTimeInputDriver("timeInput");
1340 |
1341 | await driver.hourInput.click();
1342 | await driver.hourInput.fill("14");
1343 | await driver.hourInput.blur();
1344 |
1345 | await expect.poll(testStateDriver.testState).toBeTruthy();
1346 | });
1347 |
1348 | test("didChange event receives correct time value", async ({
1349 | initTestBed,
1350 | createTimeInputDriver,
1351 | }) => {
1352 | const { testStateDriver } = await initTestBed(`
1353 | <TimeInput testId="timeInput" onDidChange="arg => testState = arg" />
1354 | `);
1355 | const driver = await createTimeInputDriver("timeInput");
1356 |
1357 | await driver.hourInput.click();
1358 | await driver.hourInput.fill("14");
1359 | await driver.minuteInput.click();
1360 | await driver.minuteInput.fill("30");
1361 | await driver.minuteInput.blur();
1362 |
1363 | await expect.poll(testStateDriver.testState).toEqual("14:30");
1364 | });
1365 |
1366 | test("gotFocus event fires when component receives focus", async ({
1367 | initTestBed,
1368 | createTimeInputDriver,
1369 | }) => {
1370 | const { testStateDriver } = await initTestBed(`
1371 | <TimeInput testId="timeInput" onGotFocus="testState = 'focused'" />
1372 | `);
1373 | const driver = await createTimeInputDriver("timeInput");
1374 |
1375 | await driver.hourInput.focus();
1376 | await expect.poll(testStateDriver.testState).toEqual("focused");
1377 | });
1378 |
1379 | test("gotFocus event fires on label click", async ({ initTestBed, page }) => {
1380 | const { testStateDriver } = await initTestBed(`
1381 | <TimeInput testId="timeInput" label="Time" onGotFocus="testState = 'focused'" />
1382 | `);
1383 |
1384 | await page.getByText("Time").click();
1385 | await expect.poll(testStateDriver.testState).toEqual("focused");
1386 | });
1387 |
1388 | test("lostFocus event fires when component loses focus", async ({
1389 | initTestBed,
1390 | createTimeInputDriver,
1391 | }) => {
1392 | const { testStateDriver } = await initTestBed(`
1393 | <TimeInput testId="timeInput" onLostFocus="testState = 'blurred'" />
1394 | `);
1395 | const driver = await createTimeInputDriver("timeInput");
1396 |
1397 | await driver.hourInput.focus();
1398 | await driver.hourInput.blur();
1399 | await expect.poll(testStateDriver.testState).toEqual("blurred");
1400 | });
1401 |
1402 | test("invalidTime event fires for invalid input", async ({
1403 | initTestBed,
1404 | createTimeInputDriver,
1405 | }) => {
1406 | const { testStateDriver } = await initTestBed(`
1407 | <TimeInput testId="timeInput" onInvalidTime="testState = 'invalid'" />
1408 | `);
1409 | const driver = await createTimeInputDriver("timeInput");
1410 |
1411 | await driver.hourInput.click();
1412 | await driver.hourInput.fill("25"); // Invalid hour
1413 | await driver.hourInput.blur();
1414 |
1415 | await expect.poll(testStateDriver.testState).toEqual("invalid");
1416 | });
1417 | });
1418 |
1419 | // =============================================================================
1420 | // API TESTS
1421 | // =============================================================================
1422 |
1423 | test.describe("API", () => {
1424 | test("focus() method focuses the component", async ({
1425 | initTestBed,
1426 | page,
1427 | createTimeInputDriver,
1428 | }) => {
1429 | await initTestBed(`
1430 | <Fragment>
1431 | <TimeInput testId="timeInput" id="timeInput" />
1432 | <Button onClick="timeInput.focus()" testId="focusBtn" />
1433 | </Fragment>
1434 | `);
1435 | const driver = await createTimeInputDriver("timeInput");
1436 |
1437 | await page.getByTestId("focusBtn").click();
1438 | await expect(driver.hourInput).toBeFocused();
1439 | });
1440 |
1441 | test("value property returns current time", async ({ initTestBed, page }) => {
1442 | const { testStateDriver } = await initTestBed(`
1443 | <Fragment>
1444 | <TimeInput testId="timeInput" id="timeInput" initialValue="14:30" />
1445 | <Button onClick="testState = timeInput.value" testId="getValueBtn" />
1446 | </Fragment>
1447 | `);
1448 |
1449 | await page.getByTestId("getValueBtn").click();
1450 | await expect.poll(testStateDriver.testState).toEqual("14:30");
1451 | });
1452 |
1453 | test("setValue() method updates the time", async ({
1454 | initTestBed,
1455 | page,
1456 | createTimeInputDriver,
1457 | }) => {
1458 | await initTestBed(`
1459 | <Fragment>
1460 | <TimeInput testId="timeInput" id="timeInput" />
1461 | <Button onClick="timeInput.setValue('15:45')" testId="setValueBtn" />
1462 | </Fragment>
1463 | `);
1464 | const driver = await createTimeInputDriver("timeInput");
1465 |
1466 | await page.getByTestId("setValueBtn").click();
1467 | await expect(driver.hourInput).toHaveValue("15");
1468 | await expect(driver.minuteInput).toHaveValue("45");
1469 | });
1470 |
1471 | test("setValue() with empty string clears the value", async ({
1472 | initTestBed,
1473 | page,
1474 | createTimeInputDriver,
1475 | }) => {
1476 | await initTestBed(`
1477 | <Fragment>
1478 | <TimeInput testId="timeInput" id="timeInput" initialValue="14:30" />
1479 | <Button onClick="timeInput.setValue('')" testId="clearBtn" />
1480 | </Fragment>
1481 | `);
1482 | const driver = await createTimeInputDriver("timeInput");
1483 |
1484 | await page.getByTestId("clearBtn").click();
1485 | await expect(driver.hourInput).toHaveValue("");
1486 | await expect(driver.minuteInput).toHaveValue("");
1487 | });
1488 |
1489 | test("value property returns undefined when no value set", async ({ initTestBed, page }) => {
1490 | const { testStateDriver } = await initTestBed(`
1491 | <Fragment>
1492 | <TimeInput testId="timeInput" id="timeInput" />
1493 | <Button onClick="testState = timeInput.value === undefined ? 'undefined' : 'defined'" testId="checkBtn" />
1494 | </Fragment>
1495 | `);
1496 | await page.getByTestId("checkBtn").click();
1497 | await expect.poll(testStateDriver.testState).toEqual("undefined");
1498 | });
1499 |
1500 | test("setValue() triggers didChange event", async ({ initTestBed, page }) => {
1501 | const { testStateDriver } = await initTestBed(`
1502 | <Fragment>
1503 | <TimeInput testId="timeInput" id="timeInput" onDidChange="arg => testState = 'changed:' + arg" />
1504 | <Button onClick="timeInput.setValue('16:20')" testId="setBtn" />
1505 | </Fragment>
1506 | `);
1507 |
1508 | await page.getByTestId("setBtn").click();
1509 | await expect.poll(testStateDriver.testState).toEqual("changed:16:20");
1510 | });
1511 | });
1512 |
1513 | // =============================================================================
1514 | // LAYOUT TESTS
1515 | // =============================================================================
1516 |
1517 | test.describe("Layout", () => {
1518 | test("labelWidth applies custom label width", async ({ initTestBed, createTimeInputDriver }) => {
1519 | const expected = 200;
1520 | await initTestBed(
1521 | `<TimeInput testId="timeInput" label="Select time" labelPosition="left" labelWidth="${expected}px" />`,
1522 | );
1523 | const driver = await createTimeInputDriver("timeInput");
1524 | const { width } = await getBounds(driver.label);
1525 | expect(width).toEqual(expected);
1526 | });
1527 |
1528 | test("time inputs maintain consistent spacing", async ({
1529 | initTestBed,
1530 | createTimeInputDriver,
1531 | }) => {
1532 | await initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
1533 | const driver = await createTimeInputDriver("timeInput");
1534 |
1535 | const { right: hourRight } = await getBounds(driver.hourInput);
1536 | const { left: minuteLeft, right: minuteRight } = await getBounds(driver.minuteInput);
1537 | const { left: secondLeft } = await getBounds(driver.secondInput);
1538 |
1539 | // Verify there's consistent spacing between inputs
1540 | const hourToMinuteGap = minuteLeft - hourRight;
1541 | const minuteToSecondGap = secondLeft - minuteRight;
1542 |
1543 | expect(hourToMinuteGap).toBeGreaterThan(0);
1544 | expect(minuteToSecondGap).toBeGreaterThan(0);
1545 | expect(Math.abs(hourToMinuteGap - minuteToSecondGap)).toBeLessThan(5); // Allow small differences
1546 | });
1547 | });
1548 |
1549 | // =============================================================================
1550 | // VISUAL STATE TESTS
1551 | // =============================================================================
1552 |
1553 | test("input has correct width", async ({ initTestBed, page }) => {
1554 | await initTestBed(`
1555 | <TimeInput width="200px" testId="test"/>
1556 | `);
1557 | const { width } = await page.getByTestId("test").boundingBox();
1558 | expect(width).toBe(200);
1559 | });
1560 |
1561 | test("input with label has correct width", async ({ initTestBed, page }) => {
1562 | await initTestBed(`
1563 | <TimeInput width="200px" label="test" testId="test"/>
1564 | `);
1565 | const { width } = await page.getByTestId("test").boundingBox();
1566 | expect(width).toBe(200);
1567 | });
1568 |
1569 | test("input has correct width in %", async ({ page, initTestBed }) => {
1570 | await page.setViewportSize({ width: 400, height: 300 });
1571 | await initTestBed(`<TimeInput width="50%" testId="test"/>`, {});
1572 |
1573 | const input = page.getByTestId("test");
1574 | const { width } = await input.boundingBox();
1575 | expect(width).toBe(200);
1576 | });
1577 |
1578 | test("input with label has correct width in %", async ({ page, initTestBed }) => {
1579 | await page.setViewportSize({ width: 400, height: 300 });
1580 | await initTestBed(`<TimeInput width="50%" label="test" testId="test"/>`, {});
1581 |
1582 | const input = page.getByTestId("test");
1583 | const { width } = await input.boundingBox();
1584 | expect(width).toBe(200);
1585 | });
1586 |
```