This is page 158 of 182. Use http://codebase.md/xmlui-org/xmlui?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .changeset │ ├── config.json │ ├── cool-queens-look.md │ ├── hot-berries-argue.md │ ├── twelve-guests-care.md │ └── wise-towns-dance.md ├── .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 │ ├── 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 │ │ ├── netlify.toml │ │ ├── resources │ │ │ ├── favicon.ico │ │ │ ├── files │ │ │ │ └── for-download │ │ │ │ └── xmlui │ │ │ │ └── xmlui-standalone.umd.js │ │ │ ├── github.svg │ │ │ ├── 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 │ │ │ ├── Debug.xmlui │ │ │ └── PageNotFound.xmlui │ │ ├── config.ts │ │ ├── Main.xmlui │ │ ├── Main.xmlui.xs │ │ └── themes │ │ ├── docs-theme.ts │ │ ├── earthtone.ts │ │ ├── xmlui-gray-on-default.ts │ │ ├── xmlui-green-on-default.ts │ │ └── xmlui-orange-on-default.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 │ ├── containers.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 │ ├── state-management.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 │ │ │ ├── MultiSelectOption.tsx │ │ │ ├── OptionContext.ts │ │ │ ├── Select.md │ │ │ ├── Select.module.scss │ │ │ ├── Select.spec.ts │ │ │ ├── Select.tsx │ │ │ ├── SelectContext.tsx │ │ │ ├── SelectNative.tsx │ │ │ ├── SelectOption.tsx │ │ │ └── SimpleSelect.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 │ │ │ ├── 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/DateInput/DateInput.spec.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { test, expect } from "../../testing/fixtures"; 2 | 3 | // ============================================================================= 4 | // BASIC FUNCTIONALITY TESTS 5 | // ============================================================================= 6 | 7 | test.describe("Basic Functionality", () => { 8 | test("renders with basic props", async ({ initTestBed, createDateInputDriver }) => { 9 | await initTestBed(`<DateInput testId="dateInput" />`); 10 | const driver = await createDateInputDriver("dateInput"); 11 | await expect(driver.component).toBeVisible(); 12 | await expect(driver.dayInput).toBeVisible(); 13 | await expect(driver.monthInput).toBeVisible(); 14 | await expect(driver.yearInput).toBeVisible(); 15 | }); 16 | 17 | test("renders with initialValue", async ({ initTestBed, createDateInputDriver }) => { 18 | await initTestBed(`<DateInput testId="dateInput" initialValue="05/25/2024" />`); 19 | const driver = await createDateInputDriver("dateInput"); 20 | await expect(driver.monthInput).toHaveValue("05"); 21 | await expect(driver.dayInput).toHaveValue("25"); 22 | await expect(driver.yearInput).toHaveValue("2024"); 23 | }); 24 | 25 | test("renders in disabled state when enabled is false", async ({ 26 | initTestBed, 27 | createDateInputDriver, 28 | }) => { 29 | await initTestBed(`<DateInput testId="dateInput" enabled="false" />`); 30 | const driver = await createDateInputDriver("dateInput"); 31 | await expect(driver.dayInput).toBeDisabled(); 32 | await expect(driver.monthInput).toBeDisabled(); 33 | await expect(driver.yearInput).toBeDisabled(); 34 | }); 35 | 36 | test("shows clear button when clearable is true", async ({ 37 | initTestBed, 38 | createDateInputDriver, 39 | }) => { 40 | await initTestBed( 41 | `<DateInput testId="dateInput" clearable="true" initialValue="05/25/2024" />`, 42 | ); 43 | const driver = await createDateInputDriver("dateInput"); 44 | await expect(driver.clearButton).toBeVisible(); 45 | }); 46 | 47 | test("hides clear button when clearable is false", async ({ 48 | initTestBed, 49 | createDateInputDriver, 50 | }) => { 51 | await initTestBed( 52 | `<DateInput testId="dateInput" clearable="false" initialValue="05/25/2024" />`, 53 | ); 54 | const driver = await createDateInputDriver("dateInput"); 55 | await expect(driver.clearButton).not.toBeVisible(); 56 | }); 57 | 58 | test("renders with required attribute", async ({ initTestBed, createDateInputDriver }) => { 59 | await initTestBed(`<DateInput testId="dateInput" required="true" />`); 60 | const driver = await createDateInputDriver("dateInput"); 61 | await expect(driver.dayInput).toHaveAttribute("required", ""); 62 | await expect(driver.monthInput).toHaveAttribute("required", ""); 63 | await expect(driver.yearInput).toHaveAttribute("required", ""); 64 | }); 65 | }); 66 | 67 | test.describe("dateFormat property", () => { 68 | test("renders MM/dd/yyyy format correctly", async ({ initTestBed, createDateInputDriver }) => { 69 | await initTestBed( 70 | `<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" initialValue="05/25/2024" />`, 71 | ); 72 | const driver = await createDateInputDriver("dateInput"); 73 | await expect(driver.monthInput).toHaveValue("05"); 74 | await expect(driver.dayInput).toHaveValue("25"); 75 | await expect(driver.yearInput).toHaveValue("2024"); 76 | }); 77 | 78 | test("renders yyyy-MM-dd format correctly", async ({ initTestBed, createDateInputDriver }) => { 79 | await initTestBed( 80 | `<DateInput testId="dateInput" dateFormat="yyyy-MM-dd" initialValue="2024-05-25" />`, 81 | ); 82 | const driver = await createDateInputDriver("dateInput"); 83 | await expect(driver.yearInput).toHaveValue("2024"); 84 | await expect(driver.monthInput).toHaveValue("05"); 85 | await expect(driver.dayInput).toHaveValue("25"); 86 | }); 87 | 88 | test("renders dd/MM/yyyy format correctly", async ({ initTestBed, createDateInputDriver }) => { 89 | await initTestBed( 90 | `<DateInput testId="dateInput" dateFormat="dd/MM/yyyy" initialValue="25/05/2024" />`, 91 | ); 92 | const driver = await createDateInputDriver("dateInput"); 93 | await expect(driver.dayInput).toHaveValue("25"); 94 | await expect(driver.monthInput).toHaveValue("05"); 95 | await expect(driver.yearInput).toHaveValue("2024"); 96 | }); 97 | 98 | test("renders yyyyMMdd compact format correctly", async ({ 99 | initTestBed, 100 | createDateInputDriver, 101 | }) => { 102 | await initTestBed( 103 | `<DateInput testId="dateInput" dateFormat="yyyyMMdd" initialValue="20240525" />`, 104 | ); 105 | const driver = await createDateInputDriver("dateInput"); 106 | await expect(driver.yearInput).toHaveValue("2024"); 107 | await expect(driver.monthInput).toHaveValue("05"); 108 | await expect(driver.dayInput).toHaveValue("25"); 109 | }); 110 | 111 | test("renders MMddyyyy compact format correctly", async ({ 112 | initTestBed, 113 | createDateInputDriver, 114 | }) => { 115 | await initTestBed( 116 | `<DateInput testId="dateInput" dateFormat="MMddyyyy" initialValue="05252024" />`, 117 | ); 118 | const driver = await createDateInputDriver("dateInput"); 119 | await expect(driver.monthInput).toHaveValue("05"); 120 | await expect(driver.dayInput).toHaveValue("25"); 121 | await expect(driver.yearInput).toHaveValue("2024"); 122 | }); 123 | 124 | test("renders MM-dd-yyyy format correctly", async ({ initTestBed, createDateInputDriver }) => { 125 | await initTestBed( 126 | `<DateInput testId="dateInput" dateFormat="MM-dd-yyyy" initialValue="05-25-2024" />`, 127 | ); 128 | const driver = await createDateInputDriver("dateInput"); 129 | await expect(driver.monthInput).toHaveValue("05"); 130 | await expect(driver.dayInput).toHaveValue("25"); 131 | await expect(driver.yearInput).toHaveValue("2024"); 132 | }); 133 | 134 | test("renders dd-MM-yyyy format correctly", async ({ initTestBed, createDateInputDriver }) => { 135 | await initTestBed( 136 | `<DateInput testId="dateInput" dateFormat="dd-MM-yyyy" initialValue="25-05-2024" />`, 137 | ); 138 | const driver = await createDateInputDriver("dateInput"); 139 | await expect(driver.dayInput).toHaveValue("25"); 140 | await expect(driver.monthInput).toHaveValue("05"); 141 | await expect(driver.yearInput).toHaveValue("2024"); 142 | }); 143 | 144 | test("renders yyyy/MM/dd format correctly", async ({ initTestBed, createDateInputDriver }) => { 145 | await initTestBed( 146 | `<DateInput testId="dateInput" dateFormat="yyyy/MM/dd" initialValue="2024/05/25" />`, 147 | ); 148 | const driver = await createDateInputDriver("dateInput"); 149 | await expect(driver.yearInput).toHaveValue("2024"); 150 | await expect(driver.monthInput).toHaveValue("05"); 151 | await expect(driver.dayInput).toHaveValue("25"); 152 | }); 153 | }); 154 | 155 | // ============================================================================= 156 | // INITIAL VALUE PROPERTY TESTS 157 | // ============================================================================= 158 | 159 | test.describe("initialValue property", () => { 160 | test("parses valid date in default format", async ({ initTestBed, createDateInputDriver }) => { 161 | await initTestBed(`<DateInput testId="dateInput" initialValue="05/25/2024" />`); 162 | const driver = await createDateInputDriver("dateInput"); 163 | await expect(driver.monthInput).toHaveValue("05"); 164 | await expect(driver.dayInput).toHaveValue("25"); 165 | await expect(driver.yearInput).toHaveValue("2024"); 166 | }); 167 | 168 | test("falls back to ISO date parsing when format parsing fails", async ({ 169 | initTestBed, 170 | createDateInputDriver, 171 | }) => { 172 | await initTestBed( 173 | `<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" initialValue="2023-08-30" />`, 174 | ); 175 | const driver = await createDateInputDriver("dateInput"); 176 | await expect(driver.monthInput).toHaveValue("08"); 177 | await expect(driver.dayInput).toHaveValue("30"); 178 | await expect(driver.yearInput).toHaveValue("2023"); 179 | }); 180 | 181 | test("falls back to ISO date parsing with different dateFormat", async ({ 182 | initTestBed, 183 | createDateInputDriver, 184 | }) => { 185 | await initTestBed( 186 | `<DateInput testId="dateInput" dateFormat="dd-MM-yyyy" initialValue="2023-12-25" />`, 187 | ); 188 | const driver = await createDateInputDriver("dateInput"); 189 | await expect(driver.dayInput).toHaveValue("25"); 190 | await expect(driver.monthInput).toHaveValue("12"); 191 | await expect(driver.yearInput).toHaveValue("2023"); 192 | }); 193 | 194 | test("handles various ISO date formats as fallback", async ({ 195 | initTestBed, 196 | createDateInputDriver, 197 | }) => { 198 | await initTestBed( 199 | `<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" initialValue="2024-02-29T10:30:00Z" />`, 200 | ); 201 | const driver = await createDateInputDriver("dateInput"); 202 | await expect(driver.monthInput).toHaveValue("02"); 203 | await expect(driver.dayInput).toHaveValue("29"); 204 | await expect(driver.yearInput).toHaveValue("2024"); 205 | }); 206 | 207 | test("handles leap year dates correctly via ISO fallback", async ({ 208 | initTestBed, 209 | createDateInputDriver, 210 | }) => { 211 | await initTestBed( 212 | `<DateInput testId="dateInput" dateFormat="yyyyMMdd" initialValue="2024-02-29" />`, 213 | ); 214 | const driver = await createDateInputDriver("dateInput"); 215 | await expect(driver.yearInput).toHaveValue("2024"); 216 | await expect(driver.monthInput).toHaveValue("02"); 217 | await expect(driver.dayInput).toHaveValue("29"); 218 | }); 219 | 220 | test("handles null initialValue gracefully", async ({ initTestBed, createDateInputDriver }) => { 221 | await initTestBed(`<DateInput testId="dateInput" initialValue="{null}" />`); 222 | const driver = await createDateInputDriver("dateInput"); 223 | await expect(driver.monthInput).toHaveValue(""); 224 | await expect(driver.dayInput).toHaveValue(""); 225 | await expect(driver.yearInput).toHaveValue(""); 226 | }); 227 | 228 | test("handles undefined initialValue gracefully", async ({ 229 | initTestBed, 230 | createDateInputDriver, 231 | }) => { 232 | await initTestBed(`<DateInput testId="dateInput" initialValue="{undefined}" />`); 233 | const driver = await createDateInputDriver("dateInput"); 234 | await expect(driver.monthInput).toHaveValue(""); 235 | await expect(driver.dayInput).toHaveValue(""); 236 | await expect(driver.yearInput).toHaveValue(""); 237 | }); 238 | 239 | test("handles empty string initialValue gracefully", async ({ 240 | initTestBed, 241 | createDateInputDriver, 242 | }) => { 243 | await initTestBed(`<DateInput testId="dateInput" initialValue="" />`); 244 | const driver = await createDateInputDriver("dateInput"); 245 | await expect(driver.monthInput).toHaveValue(""); 246 | await expect(driver.dayInput).toHaveValue(""); 247 | await expect(driver.yearInput).toHaveValue(""); 248 | }); 249 | 250 | test("handles invalid date string gracefully", async ({ initTestBed, createDateInputDriver }) => { 251 | await initTestBed(`<DateInput testId="dateInput" initialValue="invalid-date-string" />`); 252 | const driver = await createDateInputDriver("dateInput"); 253 | await expect(driver.monthInput).toHaveValue(""); 254 | await expect(driver.dayInput).toHaveValue(""); 255 | await expect(driver.yearInput).toHaveValue(""); 256 | }); 257 | 258 | test("handles numeric initialValue gracefully", async ({ 259 | initTestBed, 260 | createDateInputDriver, 261 | }) => { 262 | await initTestBed(`<DateInput testId="dateInput" initialValue="{123456789}" />`); 263 | const driver = await createDateInputDriver("dateInput"); 264 | await expect(driver.monthInput).toHaveValue(""); 265 | await expect(driver.dayInput).toHaveValue(""); 266 | await expect(driver.yearInput).toHaveValue(""); 267 | }); 268 | 269 | test("handles object initialValue gracefully", async ({ initTestBed, createDateInputDriver }) => { 270 | await initTestBed(`<DateInput testId="dateInput" initialValue="{{}}" />`); 271 | const driver = await createDateInputDriver("dateInput"); 272 | await expect(driver.monthInput).toHaveValue(""); 273 | await expect(driver.dayInput).toHaveValue(""); 274 | await expect(driver.yearInput).toHaveValue(""); 275 | }); 276 | 277 | test("handles boolean initialValue gracefully", async ({ 278 | initTestBed, 279 | createDateInputDriver, 280 | }) => { 281 | await initTestBed(`<DateInput testId="dateInput" initialValue="{true}" />`); 282 | const driver = await createDateInputDriver("dateInput"); 283 | await expect(driver.monthInput).toHaveValue(""); 284 | await expect(driver.dayInput).toHaveValue(""); 285 | await expect(driver.yearInput).toHaveValue(""); 286 | }); 287 | 288 | test("handles false boolean initialValue gracefully", async ({ 289 | initTestBed, 290 | createDateInputDriver, 291 | }) => { 292 | await initTestBed(`<DateInput testId="dateInput" initialValue="{false}" />`); 293 | const driver = await createDateInputDriver("dateInput"); 294 | await expect(driver.monthInput).toHaveValue(""); 295 | await expect(driver.dayInput).toHaveValue(""); 296 | await expect(driver.yearInput).toHaveValue(""); 297 | }); 298 | 299 | test("handles array initialValue gracefully", async ({ initTestBed, createDateInputDriver }) => { 300 | await initTestBed(`<DateInput testId="dateInput" initialValue="{[1, 2, 3]}" />`); 301 | const driver = await createDateInputDriver("dateInput"); 302 | await expect(driver.monthInput).toHaveValue(""); 303 | await expect(driver.dayInput).toHaveValue(""); 304 | await expect(driver.yearInput).toHaveValue(""); 305 | }); 306 | 307 | test("handles function initialValue gracefully", async ({ 308 | initTestBed, 309 | createDateInputDriver, 310 | }) => { 311 | await initTestBed(`<DateInput testId="dateInput" initialValue="{() => '2024-01-01'}" />`); 312 | const driver = await createDateInputDriver("dateInput"); 313 | await expect(driver.monthInput).toHaveValue(""); 314 | await expect(driver.dayInput).toHaveValue(""); 315 | await expect(driver.yearInput).toHaveValue(""); 316 | }); 317 | 318 | test("handles zero numeric initialValue gracefully", async ({ 319 | initTestBed, 320 | createDateInputDriver, 321 | }) => { 322 | await initTestBed(`<DateInput testId="dateInput" initialValue="{0}" />`); 323 | const driver = await createDateInputDriver("dateInput"); 324 | await expect(driver.monthInput).toHaveValue(""); 325 | await expect(driver.dayInput).toHaveValue(""); 326 | await expect(driver.yearInput).toHaveValue(""); 327 | }); 328 | 329 | test("handles negative numeric initialValue gracefully", async ({ 330 | initTestBed, 331 | createDateInputDriver, 332 | }) => { 333 | await initTestBed(`<DateInput testId="dateInput" initialValue="{-123}" />`); 334 | const driver = await createDateInputDriver("dateInput"); 335 | await expect(driver.monthInput).toHaveValue(""); 336 | await expect(driver.dayInput).toHaveValue(""); 337 | await expect(driver.yearInput).toHaveValue(""); 338 | }); 339 | 340 | test("handles float numeric initialValue gracefully", async ({ 341 | initTestBed, 342 | createDateInputDriver, 343 | }) => { 344 | await initTestBed(`<DateInput testId="dateInput" initialValue="{123.456}" />`); 345 | const driver = await createDateInputDriver("dateInput"); 346 | await expect(driver.monthInput).toHaveValue(""); 347 | await expect(driver.dayInput).toHaveValue(""); 348 | await expect(driver.yearInput).toHaveValue(""); 349 | }); 350 | 351 | test("handles NaN initialValue gracefully", async ({ initTestBed, createDateInputDriver }) => { 352 | await initTestBed(`<DateInput testId="dateInput" initialValue="{NaN}" />`); 353 | const driver = await createDateInputDriver("dateInput"); 354 | await expect(driver.monthInput).toHaveValue(""); 355 | await expect(driver.dayInput).toHaveValue(""); 356 | await expect(driver.yearInput).toHaveValue(""); 357 | }); 358 | 359 | test("handles Infinity initialValue gracefully", async ({ 360 | initTestBed, 361 | createDateInputDriver, 362 | }) => { 363 | await initTestBed(`<DateInput testId="dateInput" initialValue="{Infinity}" />`); 364 | const driver = await createDateInputDriver("dateInput"); 365 | await expect(driver.monthInput).toHaveValue(""); 366 | await expect(driver.dayInput).toHaveValue(""); 367 | await expect(driver.yearInput).toHaveValue(""); 368 | }); 369 | 370 | test("handles Date object initialValue gracefully", async ({ 371 | initTestBed, 372 | createDateInputDriver, 373 | }) => { 374 | await initTestBed(`<DateInput testId="dateInput" initialValue="{Date.now()}" />`); 375 | const driver = await createDateInputDriver("dateInput"); 376 | await expect(driver.monthInput).toHaveValue(""); 377 | await expect(driver.dayInput).toHaveValue(""); 378 | await expect(driver.yearInput).toHaveValue(""); 379 | }); 380 | 381 | test("handles complex object initialValue gracefully", async ({ 382 | initTestBed, 383 | createDateInputDriver, 384 | }) => { 385 | await initTestBed( 386 | `<DateInput testId="dateInput" initialValue="{{year: 2024, month: 5, day: 25}}" />`, 387 | ); 388 | const driver = await createDateInputDriver("dateInput"); 389 | await expect(driver.monthInput).toHaveValue(""); 390 | await expect(driver.dayInput).toHaveValue(""); 391 | await expect(driver.yearInput).toHaveValue(""); 392 | }); 393 | 394 | test("prioritizes format-specific parsing over ISO fallback", async ({ 395 | initTestBed, 396 | createDateInputDriver, 397 | }) => { 398 | // This date could potentially be parsed as ISO, but should use format-specific parsing first 399 | await initTestBed( 400 | `<DateInput testId="dateInput" dateFormat="yyyy-MM-dd" initialValue="2023-08-30" />`, 401 | ); 402 | const driver = await createDateInputDriver("dateInput"); 403 | await expect(driver.yearInput).toHaveValue("2023"); 404 | await expect(driver.monthInput).toHaveValue("08"); 405 | await expect(driver.dayInput).toHaveValue("30"); 406 | }); 407 | }); 408 | 409 | test.describe("validationStatus property", () => { 410 | test("applies valid status styling", async ({ initTestBed, createDateInputDriver }) => { 411 | await initTestBed( 412 | `<DateInput testId="dateInput" validationStatus="valid" initialValue="05/25/2024" />`, 413 | ); 414 | const driver = await createDateInputDriver("dateInput"); 415 | await expect(driver.component).toBeVisible(); 416 | // Note: validation status may be applied via CSS classes rather than data attributes 417 | }); 418 | 419 | test("applies warning status styling", async ({ initTestBed, createDateInputDriver }) => { 420 | await initTestBed( 421 | `<DateInput testId="dateInput" validationStatus="warning" initialValue="05/25/2024" />`, 422 | ); 423 | const driver = await createDateInputDriver("dateInput"); 424 | await expect(driver.component).toBeVisible(); 425 | }); 426 | 427 | test("applies error status styling", async ({ initTestBed, createDateInputDriver }) => { 428 | await initTestBed( 429 | `<DateInput testId="dateInput" validationStatus="error" initialValue="05/25/2024" />`, 430 | ); 431 | const driver = await createDateInputDriver("dateInput"); 432 | await expect(driver.component).toBeVisible(); 433 | }); 434 | }); 435 | 436 | test.describe("autoFocus property", () => { 437 | test("focuses component when autoFocus is true", async ({ 438 | initTestBed, 439 | createDateInputDriver, 440 | }) => { 441 | await initTestBed(`<DateInput testId="dateInput" autoFocus="true" />`); 442 | const driver = await createDateInputDriver("dateInput"); 443 | await expect(driver.monthInput).toBeFocused(); 444 | }); 445 | 446 | test("does not focus when autoFocus is false", async ({ initTestBed, createDateInputDriver }) => { 447 | await initTestBed(`<DateInput testId="dateInput" autoFocus="false" />`); 448 | const driver = await createDateInputDriver("dateInput"); 449 | await expect(driver.dayInput).not.toBeFocused(); 450 | await expect(driver.monthInput).not.toBeFocused(); 451 | await expect(driver.yearInput).not.toBeFocused(); 452 | }); 453 | }); 454 | 455 | test.describe("emptyCharacter property", () => { 456 | test("uses default '--' placeholder when no emptyCharacter is specified", async ({ 457 | initTestBed, 458 | createDateInputDriver, 459 | }) => { 460 | await initTestBed(`<DateInput testId="dateInput" />`); 461 | const driver = await createDateInputDriver("dateInput"); 462 | await expect(driver.dayInput).toHaveAttribute("placeholder", "--"); 463 | await expect(driver.monthInput).toHaveAttribute("placeholder", "--"); 464 | await expect(driver.yearInput).toHaveAttribute("placeholder", "----"); 465 | }); 466 | 467 | test("uses custom emptyCharacter for placeholders", async ({ 468 | initTestBed, 469 | createDateInputDriver, 470 | }) => { 471 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="*" />`); 472 | const driver = await createDateInputDriver("dateInput"); 473 | await expect(driver.dayInput).toHaveAttribute("placeholder", "**"); 474 | await expect(driver.monthInput).toHaveAttribute("placeholder", "**"); 475 | await expect(driver.yearInput).toHaveAttribute("placeholder", "****"); 476 | }); 477 | 478 | test("uses first character when emptyCharacter is multi-character", async ({ 479 | initTestBed, 480 | createDateInputDriver, 481 | }) => { 482 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="abc" />`); 483 | const driver = await createDateInputDriver("dateInput"); 484 | await expect(driver.dayInput).toHaveAttribute("placeholder", "aa"); 485 | await expect(driver.monthInput).toHaveAttribute("placeholder", "aa"); 486 | await expect(driver.yearInput).toHaveAttribute("placeholder", "aaaa"); 487 | }); 488 | 489 | test("defaults to dash when emptyCharacter is empty string", async ({ 490 | initTestBed, 491 | createDateInputDriver, 492 | }) => { 493 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="" />`); 494 | const driver = await createDateInputDriver("dateInput"); 495 | await expect(driver.dayInput).toHaveAttribute("placeholder", "--"); 496 | await expect(driver.monthInput).toHaveAttribute("placeholder", "--"); 497 | await expect(driver.yearInput).toHaveAttribute("placeholder", "----"); 498 | }); 499 | 500 | test("handles null emptyCharacter", async ({ initTestBed, createDateInputDriver }) => { 501 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="{null}" />`); 502 | const driver = await createDateInputDriver("dateInput"); 503 | await expect(driver.dayInput).toHaveAttribute("placeholder", "--"); 504 | await expect(driver.monthInput).toHaveAttribute("placeholder", "--"); 505 | await expect(driver.yearInput).toHaveAttribute("placeholder", "----"); 506 | }); 507 | 508 | test("handles undefined emptyCharacter", async ({ initTestBed, createDateInputDriver }) => { 509 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="{undefined}" />`); 510 | const driver = await createDateInputDriver("dateInput"); 511 | await expect(driver.dayInput).toHaveAttribute("placeholder", "--"); 512 | await expect(driver.monthInput).toHaveAttribute("placeholder", "--"); 513 | await expect(driver.yearInput).toHaveAttribute("placeholder", "----"); 514 | }); 515 | 516 | test("works with special characters", async ({ initTestBed, createDateInputDriver }) => { 517 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="@" />`); 518 | const driver = await createDateInputDriver("dateInput"); 519 | await expect(driver.dayInput).toHaveAttribute("placeholder", "@@"); 520 | await expect(driver.monthInput).toHaveAttribute("placeholder", "@@"); 521 | await expect(driver.yearInput).toHaveAttribute("placeholder", "@@@@"); 522 | }); 523 | 524 | test("works with unicode characters", async ({ initTestBed, createDateInputDriver }) => { 525 | await initTestBed(`<DateInput testId="dateInput" emptyCharacter="📅" />`); 526 | const driver = await createDateInputDriver("dateInput"); 527 | await expect(driver.dayInput).toHaveAttribute("placeholder", "📅📅"); 528 | await expect(driver.monthInput).toHaveAttribute("placeholder", "📅📅"); 529 | await expect(driver.yearInput).toHaveAttribute("placeholder", "📅📅📅📅"); 530 | }); 531 | }); 532 | 533 | test.describe("mode property", () => { 534 | test("renders in single date mode by default", async ({ initTestBed, createDateInputDriver }) => { 535 | await initTestBed(`<DateInput testId="dateInput" />`); 536 | const driver = await createDateInputDriver("dateInput"); 537 | await expect(driver.component).toBeVisible(); 538 | // Single mode should show one set of date inputs 539 | await expect(driver.dayInput).toBeVisible(); 540 | await expect(driver.monthInput).toBeVisible(); 541 | await expect(driver.yearInput).toBeVisible(); 542 | }); 543 | 544 | test("renders in single date mode when explicitly set", async ({ 545 | initTestBed, 546 | createDateInputDriver, 547 | }) => { 548 | await initTestBed(`<DateInput testId="dateInput" mode="single" />`); 549 | const driver = await createDateInputDriver("dateInput"); 550 | await expect(driver.component).toBeVisible(); 551 | await expect(driver.dayInput).toBeVisible(); 552 | await expect(driver.monthInput).toBeVisible(); 553 | await expect(driver.yearInput).toBeVisible(); 554 | }); 555 | 556 | test("renders in range mode when set to range", async ({ 557 | initTestBed, 558 | createDateInputDriver, 559 | }) => { 560 | await initTestBed(`<DateInput testId="dateInput" mode="range" />`); 561 | const driver = await createDateInputDriver("dateInput"); 562 | await expect(driver.component).toBeVisible(); 563 | // Range mode should show date inputs for start and end dates 564 | await expect(driver.dayInput).toBeVisible(); 565 | await expect(driver.monthInput).toBeVisible(); 566 | await expect(driver.yearInput).toBeVisible(); 567 | }); 568 | }); 569 | 570 | test.describe("minValue and maxValue properties", () => { 571 | test("accepts valid date within range", async ({ initTestBed, createDateInputDriver }) => { 572 | await initTestBed( 573 | `<DateInput testId="dateInput" minValue="2024-01-01" maxValue="2024-12-31" initialValue="05/25/2024" />`, 574 | ); 575 | const driver = await createDateInputDriver("dateInput"); 576 | await expect(driver.monthInput).toHaveValue("05"); 577 | await expect(driver.dayInput).toHaveValue("25"); 578 | await expect(driver.yearInput).toHaveValue("2024"); 579 | }); 580 | 581 | test("works with only minValue set", async ({ initTestBed, createDateInputDriver }) => { 582 | await initTestBed( 583 | `<DateInput testId="dateInput" minValue="2024-01-01" initialValue="05/25/2024" />`, 584 | ); 585 | const driver = await createDateInputDriver("dateInput"); 586 | await expect(driver.monthInput).toHaveValue("05"); 587 | await expect(driver.dayInput).toHaveValue("25"); 588 | await expect(driver.yearInput).toHaveValue("2024"); 589 | }); 590 | 591 | test("works with only maxValue set", async ({ initTestBed, createDateInputDriver }) => { 592 | await initTestBed( 593 | `<DateInput testId="dateInput" maxValue="2024-12-31" initialValue="05/25/2024" />`, 594 | ); 595 | const driver = await createDateInputDriver("dateInput"); 596 | await expect(driver.monthInput).toHaveValue("05"); 597 | await expect(driver.dayInput).toHaveValue("25"); 598 | await expect(driver.yearInput).toHaveValue("2024"); 599 | }); 600 | }); 601 | 602 | test.describe("clearable properties", () => { 603 | test("shows clear button when clearable is true and has value", async ({ 604 | initTestBed, 605 | createDateInputDriver, 606 | }) => { 607 | await initTestBed( 608 | `<DateInput testId="dateInput" clearable="true" initialValue="05/25/2024" />`, 609 | ); 610 | const driver = await createDateInputDriver("dateInput"); 611 | await expect(driver.clearButton).toBeVisible(); 612 | }); 613 | 614 | test("clear button is not visible when clearable is false", async ({ 615 | initTestBed, 616 | createDateInputDriver, 617 | }) => { 618 | await initTestBed( 619 | `<DateInput testId="dateInput" clearable="false" initialValue="05/25/2024" />`, 620 | ); 621 | const driver = await createDateInputDriver("dateInput"); 622 | await expect(driver.clearButton).not.toBeVisible(); 623 | }); 624 | 625 | test("uses custom clear icon when specified", async ({ initTestBed, createDateInputDriver }) => { 626 | await initTestBed( 627 | `<DateInput testId="dateInput" clearable="true" clearIcon="close" initialValue="05/25/2024" />`, 628 | ); 629 | const driver = await createDateInputDriver("dateInput"); 630 | await expect(driver.clearButton).toBeVisible(); 631 | }); 632 | 633 | test("clearToInitialValue controls clear behavior", async ({ 634 | initTestBed, 635 | createDateInputDriver, 636 | }) => { 637 | await initTestBed( 638 | `<DateInput testId="dateInput" clearable="true" clearToInitialValue="true" initialValue="05/25/2024" />`, 639 | ); 640 | const driver = await createDateInputDriver("dateInput"); 641 | await expect(driver.clearButton).toBeVisible(); 642 | }); 643 | }); 644 | 645 | test.describe("startText, startIcon, endText, endIcon properties", () => { 646 | test("renders start text", async ({ initTestBed, createDateInputDriver }) => { 647 | await initTestBed(`<DateInput testId="dateInput" startText="From:" />`); 648 | const driver = await createDateInputDriver("dateInput"); 649 | await expect(driver.component).toContainText("From:"); 650 | }); 651 | 652 | test("renders start icon", async ({ initTestBed, createDateInputDriver }) => { 653 | await initTestBed(`<DateInput testId="dateInput" startIcon="trash" />`); 654 | const driver = await createDateInputDriver("dateInput"); 655 | await expect(driver.component.getByRole("img")).toBeVisible(); 656 | }); 657 | 658 | test("renders end text", async ({ initTestBed, createDateInputDriver }) => { 659 | await initTestBed(`<DateInput testId="dateInput" endText="To:" />`); 660 | const driver = await createDateInputDriver("dateInput"); 661 | await expect(driver.component).toContainText("To:"); 662 | }); 663 | 664 | test("renders end icon", async ({ initTestBed, createDateInputDriver }) => { 665 | await initTestBed(`<DateInput testId="dateInput" endIcon="phone" />`); 666 | const driver = await createDateInputDriver("dateInput"); 667 | await expect(driver.component.getByRole("img")).toBeVisible(); 668 | }); 669 | }); 670 | 671 | test.describe("User Interactions", () => { 672 | test("allows typing in day input", async ({ initTestBed, createDateInputDriver }) => { 673 | await initTestBed(`<DateInput testId="dateInput" />`); 674 | const driver = await createDateInputDriver("dateInput"); 675 | await driver.dayInput.focus(); 676 | await driver.dayInput.fill("25"); 677 | await expect(driver.dayInput).toHaveValue("25"); 678 | }); 679 | 680 | test("allows typing in month input", async ({ initTestBed, createDateInputDriver }) => { 681 | await initTestBed(`<DateInput testId="dateInput" />`); 682 | const driver = await createDateInputDriver("dateInput"); 683 | await driver.monthInput.focus(); 684 | await driver.monthInput.fill("05"); 685 | await expect(driver.monthInput).toHaveValue("05"); 686 | }); 687 | 688 | test("allows typing in year input", async ({ initTestBed, createDateInputDriver }) => { 689 | await initTestBed(`<DateInput testId="dateInput" />`); 690 | const driver = await createDateInputDriver("dateInput"); 691 | await driver.yearInput.focus(); 692 | await driver.yearInput.fill("2024"); 693 | await expect(driver.yearInput).toHaveValue("2024"); 694 | }); 695 | 696 | test("clears input when clear button is clicked (clearToInitialValue is true)", async ({ 697 | initTestBed, 698 | createDateInputDriver, 699 | }) => { 700 | await initTestBed( 701 | `<DateInput testId="dateInput" clearable="true" initialValue="05/25/2024" />`, 702 | ); 703 | const driver = await createDateInputDriver("dateInput"); 704 | await expect(driver.monthInput).toHaveValue("05"); 705 | await expect(driver.dayInput).toHaveValue("25"); 706 | await expect(driver.yearInput).toHaveValue("2024"); 707 | await driver.dayInput.fill("18"); 708 | 709 | await driver.clearButton.click(); 710 | 711 | await expect(driver.monthInput).toHaveValue("05"); 712 | await expect(driver.dayInput).toHaveValue("25"); 713 | await expect(driver.yearInput).toHaveValue("2024"); 714 | }); 715 | 716 | test("clears input when clear button is clicked (clearToInitialValue is false)", async ({ 717 | initTestBed, 718 | createDateInputDriver, 719 | }) => { 720 | await initTestBed( 721 | `<DateInput testId="dateInput" clearable="true" initialValue="05/25/2024" clearToInitialValue="false" />`, 722 | ); 723 | const driver = await createDateInputDriver("dateInput"); 724 | await expect(driver.monthInput).toHaveValue("05"); 725 | await expect(driver.dayInput).toHaveValue("25"); 726 | await expect(driver.yearInput).toHaveValue("2024"); 727 | await driver.dayInput.fill("18"); 728 | 729 | await driver.clearButton.click(); 730 | 731 | await expect(driver.monthInput).toHaveValue(""); 732 | await expect(driver.dayInput).toHaveValue(""); 733 | await expect(driver.yearInput).toHaveValue(""); 734 | }); 735 | 736 | test("navigates between inputs with Tab key", async ({ 737 | initTestBed, 738 | createDateInputDriver, 739 | page, 740 | }) => { 741 | await initTestBed(`<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" />`); 742 | const driver = await createDateInputDriver("dateInput"); 743 | 744 | await driver.monthInput.focus(); 745 | await expect(driver.monthInput).toBeFocused(); 746 | 747 | await page.keyboard.press("Tab"); 748 | await expect(driver.dayInput).toBeFocused(); 749 | 750 | await page.keyboard.press("Tab"); 751 | await expect(driver.yearInput).toBeFocused(); 752 | }); 753 | 754 | test("navigates between inputs with arrow keys", async ({ 755 | initTestBed, 756 | createDateInputDriver, 757 | page, 758 | }) => { 759 | await initTestBed(`<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" />`); 760 | const driver = await createDateInputDriver("dateInput"); 761 | 762 | await driver.monthInput.focus(); 763 | await expect(driver.monthInput).toBeFocused(); 764 | 765 | await page.keyboard.press("ArrowRight"); 766 | await expect(driver.dayInput).toBeFocused(); 767 | 768 | await page.keyboard.press("ArrowRight"); 769 | await expect(driver.yearInput).toBeFocused(); 770 | 771 | await page.keyboard.press("ArrowLeft"); 772 | await expect(driver.dayInput).toBeFocused(); 773 | }); 774 | }); 775 | 776 | test.describe("Event Handling", () => { 777 | test("fires didChange event when value changes", async ({ 778 | initTestBed, 779 | createDateInputDriver, 780 | }) => { 781 | const { testStateDriver } = await initTestBed( 782 | `<DateInput testId="dateInput" onDidChange="testState = 'changed'" />`, 783 | ); 784 | const driver = await createDateInputDriver("dateInput"); 785 | 786 | await driver.monthInput.fill("05"); 787 | await driver.dayInput.fill("25"); 788 | await driver.yearInput.fill("2024"); 789 | 790 | await expect.poll(testStateDriver.testState).toEqual("changed"); 791 | }); 792 | 793 | test("fires gotFocus event when input receives focus", async ({ 794 | initTestBed, 795 | createDateInputDriver, 796 | }) => { 797 | const { testStateDriver } = await initTestBed( 798 | `<DateInput testId="dateInput" onGotFocus="testState = 'focused'" />`, 799 | ); 800 | const driver = await createDateInputDriver("dateInput"); 801 | 802 | await driver.dayInput.focus(); 803 | 804 | await expect.poll(testStateDriver.testState).toEqual("focused"); 805 | }); 806 | 807 | test("fires gotFocus event when label receives focus", async ({ initTestBed, page }) => { 808 | const { testStateDriver } = await initTestBed( 809 | `<DateInput testId="dateInput" onGotFocus="testState = 'focused'" label="test" />`, 810 | ); 811 | 812 | await page.getByText("test").click(); 813 | 814 | await expect.poll(testStateDriver.testState).toEqual("focused"); 815 | }); 816 | 817 | test("fires lostFocus event when input loses focus", async ({ 818 | initTestBed, 819 | createDateInputDriver, 820 | page, 821 | }) => { 822 | const { testStateDriver } = await initTestBed( 823 | `<DateInput testId="dateInput" onLostFocus="testState = 'blurred'" />`, 824 | ); 825 | const driver = await createDateInputDriver("dateInput"); 826 | 827 | await driver.dayInput.focus(); 828 | await page.keyboard.press("Tab"); 829 | await page.keyboard.press("Tab"); 830 | await page.keyboard.press("Tab"); // Move focus away from all inputs 831 | 832 | await expect.poll(testStateDriver.testState).toEqual("blurred"); 833 | }); 834 | 835 | test("preserves field values when date combination becomes invalid", async ({ 836 | initTestBed, 837 | createDateInputDriver, 838 | page, 839 | }) => { 840 | await initTestBed( 841 | `<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" initialValue="01/30/2024" />`, 842 | ); 843 | const driver = await createDateInputDriver("dateInput"); 844 | 845 | // Verify initial state 846 | await expect(driver.monthInput).toHaveValue("01"); 847 | await expect(driver.dayInput).toHaveValue("30"); 848 | await expect(driver.yearInput).toHaveValue("2024"); 849 | 850 | // Change month from 01 to 02, making Feb 30th which is invalid 851 | await driver.monthInput.focus(); 852 | await driver.monthInput.fill("02"); 853 | 854 | // Month should be updated to 02 855 | await expect(driver.monthInput).toHaveValue("02"); 856 | 857 | // Day should preserve the invalid value "30" instead of being normalized or cleared 858 | // This is the key fix - invalid date combinations preserve the field values 859 | await expect(driver.dayInput).toHaveValue("30"); 860 | await expect(driver.yearInput).toHaveValue("2024"); 861 | 862 | // The day field should also be marked as invalid visually 863 | await expect(driver.dayInput).toHaveClass(/invalid/); 864 | }); 865 | 866 | test("does not clear all fields when invalid date is entered", async ({ 867 | initTestBed, 868 | createDateInputDriver, 869 | page, 870 | }) => { 871 | await initTestBed(`<DateInput testId="dateInput" dateFormat="MM/dd/yyyy" />`); 872 | const driver = await createDateInputDriver("dateInput"); 873 | 874 | // Create a scenario where the complete date would be invalid 875 | await driver.monthInput.fill("13"); // Invalid month 876 | await driver.dayInput.fill("25"); 877 | await driver.yearInput.fill("2024"); 878 | 879 | // Tab to trigger validation 880 | await page.keyboard.press("Tab"); 881 | 882 | // Month should be normalized (13 % 10 = 3) 883 | await expect(driver.monthInput).toHaveValue("03"); 884 | // Day and year should be preserved 885 | await expect(driver.dayInput).toHaveValue("25"); 886 | await expect(driver.yearInput).toHaveValue("2024"); 887 | 888 | // The important thing is that we don't get all empty fields 889 | }); 890 | }); 891 | 892 | test.describe("API Methods", () => { 893 | test("focus() method focuses the date input", async ({ initTestBed, createDateInputDriver }) => { 894 | const { testStateDriver } = await initTestBed(` 895 | <Fragment> 896 | <DateInput id="dateInput" testId="dateInput" /> 897 | <Button onClick="dateInput.focus(); testState = 'focused'" /> 898 | </Fragment> 899 | `); 900 | const driver = await createDateInputDriver("dateInput"); 901 | 902 | await driver.component.page().getByRole("button").click(); 903 | 904 | await expect.poll(testStateDriver.testState).toEqual("focused"); 905 | await expect(driver.monthInput).toBeFocused(); 906 | }); 907 | 908 | test("setValue() method sets the date value", async ({ initTestBed, createDateInputDriver }) => { 909 | const { testStateDriver } = await initTestBed(` 910 | <Fragment> 911 | <DateInput id="dateInput" testId="dateInput" /> 912 | <Button onClick="dateInput.setValue('05/25/2024'); testState = 'set'" /> 913 | </Fragment> 914 | `); 915 | const driver = await createDateInputDriver("dateInput"); 916 | 917 | await driver.component.page().getByRole("button").click(); 918 | 919 | await expect.poll(testStateDriver.testState).toEqual("set"); 920 | await expect(driver.monthInput).toHaveValue("05"); 921 | await expect(driver.dayInput).toHaveValue("25"); 922 | await expect(driver.yearInput).toHaveValue("2024"); 923 | }); 924 | 925 | test("value getter returns current date value", async ({ 926 | initTestBed, 927 | createDateInputDriver, 928 | }) => { 929 | const { testStateDriver } = await initTestBed(` 930 | <Fragment> 931 | <DateInput id="dateInput" testId="dateInput" initialValue="05/25/2024" /> 932 | <Button onClick="testState = dateInput.value" /> 933 | </Fragment> 934 | `); 935 | const driver = await createDateInputDriver("dateInput"); 936 | 937 | await driver.component.page().getByRole("button").click(); 938 | 939 | await expect.poll(testStateDriver.testState).toEqual("05/25/2024"); 940 | }); 941 | 942 | test("setValue() method clears date when empty string provided", async ({ 943 | initTestBed, 944 | createDateInputDriver, 945 | }) => { 946 | const { testStateDriver } = await initTestBed(` 947 | <Fragment> 948 | <DateInput id="dateInput" testId="dateInput" initialValue="05/25/2024" /> 949 | <Button onClick="dateInput.setValue(''); testState = 'cleared'" /> 950 | </Fragment> 951 | `); 952 | const driver = await createDateInputDriver("dateInput"); 953 | 954 | await driver.component.page().getByRole("button").click(); 955 | 956 | await expect.poll(testStateDriver.testState).toEqual("cleared"); 957 | await expect(driver.monthInput).toHaveValue(""); 958 | await expect(driver.dayInput).toHaveValue(""); 959 | await expect(driver.yearInput).toHaveValue(""); 960 | }); 961 | 962 | test("isoValue() method returns null when no date is set", async ({ initTestBed, page }) => { 963 | const { testStateDriver } = await initTestBed(` 964 | <Fragment> 965 | <DateInput id="dateInput" /> 966 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 967 | </Fragment> 968 | `); 969 | 970 | await page.getByTestId("getIsoBtn").click(); 971 | await expect.poll(testStateDriver.testState).toBe(null); 972 | }); 973 | 974 | test("isoValue() method returns ISO format for complete date", async ({ initTestBed, page }) => { 975 | const { testStateDriver } = await initTestBed(` 976 | <Fragment> 977 | <DateInput id="dateInput" initialValue="05/25/2024" /> 978 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 979 | </Fragment> 980 | `); 981 | 982 | await page.getByTestId("getIsoBtn").click(); 983 | await expect.poll(testStateDriver.testState).toBe("2024-05-25"); 984 | }); 985 | 986 | test("isoValue() method handles different date formats correctly", async ({ 987 | initTestBed, 988 | page, 989 | }) => { 990 | const { testStateDriver } = await initTestBed(` 991 | <Fragment> 992 | <DateInput id="dateInput" dateFormat="dd/MM/yyyy" initialValue="25/05/2024" /> 993 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 994 | </Fragment> 995 | `); 996 | 997 | await page.getByTestId("getIsoBtn").click(); 998 | await expect.poll(testStateDriver.testState).toBe("2024-05-25"); 999 | }); 1000 | 1001 | test("isoValue() method returns null for incomplete date", async ({ 1002 | initTestBed, 1003 | page, 1004 | createDateInputDriver, 1005 | }) => { 1006 | const { testStateDriver } = await initTestBed(` 1007 | <Fragment> 1008 | <DateInput id="dateInput" testId="dateInput" /> 1009 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 1010 | </Fragment> 1011 | `); 1012 | 1013 | const driver = await createDateInputDriver("dateInput"); 1014 | 1015 | // Set only month and day, leave year empty 1016 | await driver.monthInput.fill("05"); 1017 | await driver.dayInput.fill("25"); 1018 | 1019 | await page.getByTestId("getIsoBtn").click(); 1020 | await expect.poll(testStateDriver.testState).toBe(null); 1021 | }); 1022 | 1023 | test("isoValue() method returns null for invalid date", async ({ 1024 | initTestBed, 1025 | page, 1026 | createDateInputDriver, 1027 | }) => { 1028 | const { testStateDriver } = await initTestBed(` 1029 | <Fragment> 1030 | <DateInput id="dateInput" testId="dateInput" /> 1031 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 1032 | </Fragment> 1033 | `); 1034 | 1035 | const driver = await createDateInputDriver("dateInput"); 1036 | 1037 | // Set invalid date (February 30th) 1038 | await driver.monthInput.fill("02"); 1039 | await driver.dayInput.fill("30"); 1040 | await driver.yearInput.fill("2024"); 1041 | 1042 | await page.getByTestId("getIsoBtn").click(); 1043 | await expect.poll(testStateDriver.testState).toBe(null); 1044 | }); 1045 | 1046 | test("isoValue() method updates when date is changed programmatically", async ({ 1047 | initTestBed, 1048 | page, 1049 | }) => { 1050 | const { testStateDriver } = await initTestBed(` 1051 | <Fragment> 1052 | <DateInput id="dateInput" initialValue="05/25/2024" /> 1053 | <Button testId="setDateBtn" onClick="dateInput.setValue('12/31/2023')" /> 1054 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 1055 | </Fragment> 1056 | `); 1057 | 1058 | // Change the date programmatically 1059 | await page.getByTestId("setDateBtn").click(); 1060 | 1061 | // Get the ISO value 1062 | await page.getByTestId("getIsoBtn").click(); 1063 | await expect.poll(testStateDriver.testState).toBe("2023-12-31"); 1064 | }); 1065 | 1066 | test("isoValue() method handles leap year correctly", async ({ initTestBed, page }) => { 1067 | const { testStateDriver } = await initTestBed(` 1068 | <Fragment> 1069 | <DateInput id="dateInput" initialValue="02/29/2024" /> 1070 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 1071 | </Fragment> 1072 | `); 1073 | 1074 | await page.getByTestId("getIsoBtn").click(); 1075 | await expect.poll(testStateDriver.testState).toBe("2024-02-29"); 1076 | }); 1077 | 1078 | test("isoValue() method handles edge dates correctly", async ({ initTestBed, page }) => { 1079 | const { testStateDriver } = await initTestBed(` 1080 | <Fragment> 1081 | <DateInput id="dateInput" initialValue="01/01/1900" /> 1082 | <Button testId="getIsoBtn" onClick="testState = dateInput.isoValue()" /> 1083 | </Fragment> 1084 | `); 1085 | 1086 | await page.getByTestId("getIsoBtn").click(); 1087 | await expect.poll(testStateDriver.testState).toBe("1900-01-01"); 1088 | }); 1089 | }); 1090 | 1091 | // ============================================================================= 1092 | // ACCESSIBILITY TESTS 1093 | // ============================================================================= 1094 | 1095 | test.describe("Accessibility", () => { 1096 | test("has correct accessibility attributes", async ({ initTestBed, createDateInputDriver }) => { 1097 | await initTestBed(`<DateInput testId="dateInput" label="Birth Date" />`); 1098 | const driver = await createDateInputDriver("dateInput"); 1099 | 1100 | await expect(driver.dayInput).toHaveRole("textbox"); 1101 | await expect(driver.monthInput).toHaveRole("textbox"); 1102 | await expect(driver.yearInput).toHaveRole("textbox"); 1103 | }); 1104 | 1105 | test("supports keyboard navigation", async ({ initTestBed, createDateInputDriver, page }) => { 1106 | await initTestBed(`<DateInput testId="dateInput" />`); 1107 | const driver = await createDateInputDriver("dateInput"); 1108 | 1109 | await driver.monthInput.focus(); 1110 | await expect(driver.monthInput).toBeFocused(); 1111 | 1112 | await page.keyboard.press("Tab"); 1113 | await expect(driver.dayInput).toBeFocused(); 1114 | 1115 | await page.keyboard.press("Tab"); 1116 | await expect(driver.yearInput).toBeFocused(); 1117 | 1118 | await page.keyboard.press("Shift+Tab"); 1119 | await expect(driver.dayInput).toBeFocused(); 1120 | }); 1121 | 1122 | test("has proper aria-label when label is provided", async ({ 1123 | initTestBed, 1124 | createDateInputDriver, 1125 | }) => { 1126 | await initTestBed(`<DateInput testId="dateInput" label="Birth Date" />`); 1127 | const driver = await createDateInputDriver("dateInput"); 1128 | 1129 | await expect(driver.component.locator("label")).toBeVisible(); 1130 | await expect(driver.component.locator("label")).toHaveText("Birth Date"); 1131 | }); 1132 | 1133 | test("supports screen reader announcements for validation", async ({ 1134 | initTestBed, 1135 | createDateInputDriver, 1136 | }) => { 1137 | await initTestBed(`<DateInput testId="dateInput" validationStatus="error" />`); 1138 | const driver = await createDateInputDriver("dateInput"); 1139 | 1140 | await expect(driver.component).toHaveAttribute("data-validation-status", "error"); 1141 | }); 1142 | 1143 | test("clear button has accessible role and label", async ({ 1144 | initTestBed, 1145 | createDateInputDriver, 1146 | }) => { 1147 | await initTestBed( 1148 | `<DateInput testId="dateInput" clearable="true" initialValue="05/25/2024" />`, 1149 | ); 1150 | const driver = await createDateInputDriver("dateInput"); 1151 | 1152 | await expect(driver.clearButton).toHaveRole("button"); 1153 | await expect(driver.clearButton).toBeVisible(); 1154 | }); 1155 | 1156 | test("inputs have correct input types", async ({ initTestBed, createDateInputDriver }) => { 1157 | await initTestBed(`<DateInput testId="dateInput" />`); 1158 | const driver = await createDateInputDriver("dateInput"); 1159 | 1160 | await expect(driver.dayInput).toHaveAttribute("type", "text"); 1161 | await expect(driver.monthInput).toHaveAttribute("type", "text"); 1162 | await expect(driver.yearInput).toHaveAttribute("type", "text"); 1163 | }); 1164 | 1165 | test("supports required attribute for accessibility", async ({ 1166 | initTestBed, 1167 | createDateInputDriver, 1168 | }) => { 1169 | await initTestBed(`<DateInput testId="dateInput" required="true" />`); 1170 | const driver = await createDateInputDriver("dateInput"); 1171 | 1172 | await expect(driver.dayInput).toHaveAttribute("required", ""); 1173 | await expect(driver.monthInput).toHaveAttribute("required", ""); 1174 | await expect(driver.yearInput).toHaveAttribute("required", ""); 1175 | }); 1176 | }); 1177 | 1178 | // ============================================================================= 1179 | // THEME VARIABLE TESTS 1180 | // ============================================================================= 1181 | 1182 | test.describe("Theme Variables", () => { 1183 | test("component renders with theme variables", async ({ initTestBed, createDateInputDriver }) => { 1184 | await initTestBed(` 1185 | <DateInput 1186 | testId="dateInput" 1187 | style="--color-divider: red; --width-input: 100px; --backgroundColor-input-invalid: rgb(255, 200, 200);" 1188 | /> 1189 | `); 1190 | const driver = await createDateInputDriver("dateInput"); 1191 | await expect(driver.component).toBeVisible(); 1192 | await expect(driver.dayInput).toBeVisible(); 1193 | await expect(driver.monthInput).toBeVisible(); 1194 | await expect(driver.yearInput).toBeVisible(); 1195 | }); 1196 | 1197 | test("component renders with clearable and theme variables", async ({ 1198 | initTestBed, 1199 | createDateInputDriver, 1200 | }) => { 1201 | await initTestBed(` 1202 | <DateInput 1203 | testId="dateInput" 1204 | clearable="{true}" 1205 | style="--padding-button: 15px; --outlineColor-button--focused: green;" 1206 | /> 1207 | `); 1208 | const driver = await createDateInputDriver("dateInput"); 1209 | await expect(driver.component).toBeVisible(); 1210 | await expect(driver.clearButton).toBeVisible(); 1211 | }); 1212 | }); 1213 | 1214 | // ============================================================================= 1215 | // OTHER EDGE CASE TESTS 1216 | // ============================================================================= 1217 | 1218 | test.describe("Other Edge Cases", () => { 1219 | test("handles no props gracefully", async ({ initTestBed, createDateInputDriver }) => { 1220 | await initTestBed(`<DateInput testId="dateInput" />`); 1221 | const driver = await createDateInputDriver("dateInput"); 1222 | await expect(driver.component).toBeVisible(); 1223 | await expect(driver.dayInput).toBeVisible(); 1224 | await expect(driver.monthInput).toBeVisible(); 1225 | await expect(driver.yearInput).toBeVisible(); 1226 | }); 1227 | 1228 | test("handles null initialValue", async ({ initTestBed, createDateInputDriver }) => { 1229 | await initTestBed(`<DateInput testId="dateInput" initialValue="{null}" />`); 1230 | const driver = await createDateInputDriver("dateInput"); 1231 | await expect(driver.dayInput).toHaveValue(""); 1232 | await expect(driver.monthInput).toHaveValue(""); 1233 | await expect(driver.yearInput).toHaveValue(""); 1234 | }); 1235 | 1236 | test("handles undefined initialValue", async ({ initTestBed, createDateInputDriver }) => { 1237 | await initTestBed(`<DateInput testId="dateInput" initialValue="{undefined}" />`); 1238 | const driver = await createDateInputDriver("dateInput"); 1239 | await expect(driver.dayInput).toHaveValue(""); 1240 | await expect(driver.monthInput).toHaveValue(""); 1241 | await expect(driver.yearInput).toHaveValue(""); 1242 | }); 1243 | 1244 | test("handles invalid date format gracefully", async ({ initTestBed, createDateInputDriver }) => { 1245 | await initTestBed(`<DateInput testId="dateInput" initialValue="invalid-date" />`); 1246 | const driver = await createDateInputDriver("dateInput"); 1247 | await expect(driver.component).toBeVisible(); 1248 | }); 1249 | 1250 | test("handles very long text values", async ({ initTestBed, createDateInputDriver }) => { 1251 | const longText = "a".repeat(1000); 1252 | await initTestBed(`<DateInput testId="dateInput" placeholder="${longText}" />`); 1253 | const driver = await createDateInputDriver("dateInput"); 1254 | await expect(driver.component).toBeVisible(); 1255 | }); 1256 | 1257 | test("handles extreme minValue and maxValue", async ({ initTestBed, createDateInputDriver }) => { 1258 | await initTestBed( 1259 | `<DateInput testId="dateInput" minValue="1900-01-01" maxValue="2100-12-31" />`, 1260 | ); 1261 | const driver = await createDateInputDriver("dateInput"); 1262 | await expect(driver.component).toBeVisible(); 1263 | }); 1264 | 1265 | test("handles negative numbers in input fields", async ({ 1266 | initTestBed, 1267 | createDateInputDriver, 1268 | }) => { 1269 | await initTestBed(`<DateInput testId="dateInput" />`); 1270 | const driver = await createDateInputDriver("dateInput"); 1271 | 1272 | await driver.dayInput.fill("-5"); 1273 | await driver.monthInput.fill("-1"); 1274 | await driver.yearInput.fill("-2024"); 1275 | 1276 | // Component should handle invalid input gracefully 1277 | await expect(driver.component).toBeVisible(); 1278 | }); 1279 | 1280 | test("handles very large numbers in input fields", async ({ 1281 | initTestBed, 1282 | createDateInputDriver, 1283 | }) => { 1284 | await initTestBed(`<DateInput testId="dateInput" />`); 1285 | const driver = await createDateInputDriver("dateInput"); 1286 | 1287 | await driver.dayInput.fill("99999"); 1288 | await driver.monthInput.fill("99999"); 1289 | await driver.yearInput.fill("99999"); 1290 | 1291 | // Component should handle invalid input gracefully 1292 | await expect(driver.component).toBeVisible(); 1293 | }); 1294 | 1295 | test("handles special characters in input fields", async ({ 1296 | initTestBed, 1297 | createDateInputDriver, 1298 | }) => { 1299 | await initTestBed(`<DateInput testId="dateInput" />`); 1300 | const driver = await createDateInputDriver("dateInput"); 1301 | 1302 | await driver.dayInput.fill("@#$"); 1303 | await driver.monthInput.fill("!%^"); 1304 | await driver.yearInput.fill("&*()"); 1305 | 1306 | // Component should handle invalid input gracefully 1307 | await expect(driver.component).toBeVisible(); 1308 | }); 1309 | 1310 | test("handles object value passed to string property", async ({ 1311 | initTestBed, 1312 | createDateInputDriver, 1313 | }) => { 1314 | await initTestBed(`<DateInput testId="dateInput" placeholder="{{}}" />`); 1315 | const driver = await createDateInputDriver("dateInput"); 1316 | await expect(driver.component).toBeVisible(); 1317 | }); 1318 | 1319 | test("handles rapid consecutive value changes", async ({ 1320 | initTestBed, 1321 | createDateInputDriver, 1322 | }) => { 1323 | const { testStateDriver } = await initTestBed( 1324 | `<DateInput testId="dateInput" onDidChange="testState = (testState || 0) + 1" />`, 1325 | ); 1326 | const driver = await createDateInputDriver("dateInput"); 1327 | 1328 | await driver.monthInput.fill("01"); 1329 | await driver.monthInput.fill("02"); 1330 | await driver.monthInput.fill("03"); 1331 | 1332 | // Should handle rapid changes 1333 | await expect.poll(testStateDriver.testState).toBeGreaterThan(0); 1334 | }); 1335 | 1336 | test("maintains focus during validation errors", async ({ 1337 | initTestBed, 1338 | createDateInputDriver, 1339 | }) => { 1340 | await initTestBed(`<DateInput testId="dateInput" />`); 1341 | const driver = await createDateInputDriver("dateInput"); 1342 | 1343 | await driver.monthInput.focus(); 1344 | await driver.monthInput.fill("13"); // Invalid month 1345 | 1346 | // Focus should be maintained even with validation error 1347 | await expect(driver.monthInput).toBeFocused(); 1348 | }); 1349 | }); 1350 | 1351 | // ============================================================================= 1352 | // VISUAL STATE TESTS 1353 | // ============================================================================= 1354 | 1355 | test("input has correct width in px", async ({ page, initTestBed }) => { 1356 | await initTestBed(`<DateInput width="200px" testId="test"/>`, {}); 1357 | 1358 | const input = page.getByTestId("test"); 1359 | const { width } = await input.boundingBox(); 1360 | expect(width).toBe(200); 1361 | }); 1362 | 1363 | test("input with label has correct width in px", async ({ page, initTestBed }) => { 1364 | await initTestBed(`<DateInput width="200px" label="test" testId="test"/>`, {}); 1365 | 1366 | const input = page.getByTestId("test"); 1367 | const { width } = await input.boundingBox(); 1368 | expect(width).toBe(200); 1369 | }); 1370 | 1371 | test("input has correct width in %", async ({ page, initTestBed }) => { 1372 | await page.setViewportSize({ width: 400, height: 300 }); 1373 | await initTestBed(`<DateInput width="50%" testId="test"/>`, {}); 1374 | 1375 | const input = page.getByTestId("test"); 1376 | const { width } = await input.boundingBox(); 1377 | expect(width).toBe(200); 1378 | }); 1379 | 1380 | test("input with label has correct width in %", async ({ page, initTestBed }) => { 1381 | await page.setViewportSize({ width: 400, height: 300 }); 1382 | await initTestBed(`<DateInput width="50%" label="test" testId="test"/>`, {}); 1383 | 1384 | const input = page.getByTestId("test"); 1385 | const { width } = await input.boundingBox(); 1386 | expect(width).toBe(200); 1387 | }); 1388 | ```