This is page 138 of 179. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/xmlui-markup-syntax-highlighting.png?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .changeset │ ├── cold-items-taste.md │ ├── config.json │ ├── empty-spiders-dress.md │ ├── shy-windows-allow.md │ ├── sour-coins-read.md │ ├── tame-zebras-invite.md │ ├── three-ideas-invent.md │ ├── twenty-jeans-watch.md │ └── warm-spies-melt.md ├── .eslintrc.cjs ├── .github │ ├── build-checklist.png │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows │ ├── 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 │ │ ├── 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 │ │ │ └── PageNotFound.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 ├── 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 │ │ │ │ ├── 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 │ ├── actions.md │ ├── AppRoot.md │ ├── component-apis.md │ ├── component-rendering.md │ ├── component-review-checklist.md │ ├── containers.md │ ├── data-sources.md │ ├── e2e-summary.md │ ├── expression-evaluation.md │ ├── glossary.md │ ├── helper-components.md │ ├── index.md │ ├── loaders.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 │ ├── rendering-fundamentals.md │ ├── reusable-components.md │ ├── standalone-apps.md │ ├── state-management.md │ └── xmlui-extensibility.xlsx ├── 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 │ │ │ ├── BehaviorContext.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/Tabs/Tabs.spec.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { expect, test } from "../../testing/fixtures"; 2 | 3 | // ============================================================================= 4 | // SMOKE TESTS 5 | // ============================================================================= 6 | 7 | test.describe("smoke tests", { tag: "@smoke" }, () => { 8 | test("component renders", async ({ initTestBed, page }) => { 9 | await initTestBed(` 10 | <Tabs> 11 | <TabItem label="Tab 1">Content 1</TabItem> 12 | <TabItem label="Tab 2">Content 2</TabItem> 13 | </Tabs> 14 | `); 15 | // Check that tabs component is rendered 16 | await expect(page.getByRole('tablist')).toBeAttached(); 17 | }); 18 | 19 | test("renders tab labels correctly", async ({ initTestBed, page }) => { 20 | await initTestBed(` 21 | <Tabs> 22 | <TabItem label="First Tab">Content 1</TabItem> 23 | <TabItem label="Second Tab">Content 2</TabItem> 24 | <TabItem label="Third Tab">Content 3</TabItem> 25 | </Tabs> 26 | `); 27 | 28 | await expect(page.getByRole("tab", { name: "First Tab" })).toBeVisible(); 29 | await expect(page.getByRole("tab", { name: "Second Tab" })).toBeVisible(); 30 | await expect(page.getByRole("tab", { name: "Third Tab" })).toBeVisible(); 31 | }); 32 | 33 | test("shows first tab content by default", async ({ initTestBed, page }) => { 34 | await initTestBed(` 35 | <Tabs> 36 | <TabItem label="Tab 1">First content</TabItem> 37 | <TabItem label="Tab 2">Second content</TabItem> 38 | </Tabs> 39 | `); 40 | 41 | await expect(page.getByText("First content")).toBeVisible(); 42 | await expect(page.getByText("Second content")).not.toBeVisible(); 43 | }); 44 | }); 45 | 46 | // ============================================================================= 47 | // BASIC FUNCTIONALITY TESTS 48 | // ============================================================================= 49 | 50 | test.describe("basic functionality", () => { 51 | test("switches tabs when clicked", async ({ initTestBed, page }) => { 52 | await initTestBed(` 53 | <Tabs> 54 | <TabItem label="Tab 1">First content</TabItem> 55 | <TabItem label="Tab 2">Second content</TabItem> 56 | <TabItem label="Tab 3">Third content</TabItem> 57 | </Tabs> 58 | `); 59 | 60 | // Wait for tabs to be fully rendered 61 | await expect(page.getByRole('tablist')).toBeAttached(); 62 | await expect(page.getByRole("tab", { name: "Tab 1" })).toBeVisible(); 63 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible(); 64 | await expect(page.getByRole("tab", { name: "Tab 3" })).toBeVisible(); 65 | 66 | // Initially first tab is active 67 | await expect(page.getByText("First content")).toBeVisible(); 68 | await expect(page.getByText("Second content")).not.toBeVisible(); 69 | await expect(page.getByText("Third content")).not.toBeVisible(); 70 | await expect(page.getByRole("tab", { name: "Tab 1" })).toHaveAttribute("aria-selected", "true"); 71 | 72 | // Click second tab and wait for transition 73 | await page.getByRole("tab", { name: "Tab 2" }).click(); 74 | await expect(page.getByRole("tab", { name: "Tab 2" })).toHaveAttribute("aria-selected", "true"); 75 | await expect(page.getByText("First content")).not.toBeVisible(); 76 | await expect(page.getByText("Second content")).toBeVisible(); 77 | await expect(page.getByText("Third content")).not.toBeVisible(); 78 | 79 | // Click third tab and wait for transition 80 | await page.getByRole("tab", { name: "Tab 3" }).click(); 81 | await expect(page.getByRole("tab", { name: "Tab 3" })).toHaveAttribute("aria-selected", "true"); 82 | await expect(page.getByText("First content")).not.toBeVisible(); 83 | await expect(page.getByText("Second content")).not.toBeVisible(); 84 | await expect(page.getByText("Third content")).toBeVisible(); 85 | }); 86 | 87 | test("activeTab prop sets initial active tab", async ({ initTestBed, page }) => { 88 | await initTestBed(` 89 | <Tabs activeTab="{1}"> 90 | <TabItem label="Tab 1">First content</TabItem> 91 | <TabItem label="Tab 2">Second content</TabItem> 92 | <TabItem label="Tab 3">Third content</TabItem> 93 | </Tabs> 94 | `); 95 | 96 | await expect(page.getByText("First content")).not.toBeVisible(); 97 | await expect(page.getByText("Second content")).toBeVisible(); 98 | await expect(page.getByText("Third content")).not.toBeVisible(); 99 | }); 100 | 101 | test("orientation prop changes tab layout", async ({ initTestBed, page }) => { 102 | await initTestBed(` 103 | <Tabs orientation="vertical" testId="vertical-tabs"> 104 | <TabItem label="Tab 1">Content 1</TabItem> 105 | <TabItem label="Tab 2">Content 2</TabItem> 106 | </Tabs> 107 | `); 108 | 109 | // Check that tabs component has vertical orientation 110 | const tabsRoot = page.getByTestId("vertical-tabs"); 111 | await expect(tabsRoot).toHaveAttribute("data-orientation", "vertical"); 112 | }); 113 | }); 114 | 115 | // ============================================================================= 116 | // HEADER TEMPLATE TESTS 117 | // ============================================================================= 118 | 119 | test.describe("headerTemplate functionality", () => { 120 | test("renders custom headerTemplate instead of label", async ({ initTestBed, page }) => { 121 | await initTestBed(` 122 | <Tabs> 123 | <TabItem label="Simple Label"> 124 | <property name="headerTemplate"> 125 | <VStack gap="$space-1"> 126 | <Text>Custom</Text> 127 | <Text>Header</Text> 128 | </VStack> 129 | </property> 130 | Content 1 131 | </TabItem> 132 | <TabItem label="Tab 2">Content 2</TabItem> 133 | </Tabs> 134 | `); 135 | 136 | // Custom header content should be visible 137 | await expect(page.getByText("Custom")).toBeVisible(); 138 | await expect(page.getByText("Header")).toBeVisible(); 139 | 140 | // Simple label should be visible for second tab 141 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible(); 142 | }); 143 | 144 | test("headerTemplate takes priority over global headerTemplate", async ({ initTestBed, page }) => { 145 | await initTestBed(` 146 | <Tabs> 147 | <property name="headerTemplate"> 148 | <Text>Global: {$header.label}</Text> 149 | </property> 150 | <TabItem label="Tab 1"> 151 | <property name="headerTemplate"> 152 | <Text>Custom Content</Text> 153 | </property> 154 | Content 1 155 | </TabItem> 156 | <TabItem label="Tab 2">Content 2</TabItem> 157 | </Tabs> 158 | `); 159 | 160 | // First tab should use individual headerTemplate 161 | await expect(page.getByText("Custom Content")).toBeVisible(); 162 | 163 | // Second tab should use global headerTemplate 164 | await expect(page.getByText("Global: Tab 2")).toBeVisible(); 165 | }); 166 | 167 | test("complex headerTemplate with icons and badges", async ({ initTestBed, page }) => { 168 | await initTestBed(` 169 | <Tabs> 170 | <TabItem label="Tab 1"> 171 | <property name="headerTemplate"> 172 | <HStack gap="$space-2" alignItems="center"> 173 | <Text>Custom: {$header.label}</Text> 174 | <Badge>{$header.isActive ? 'Active' : ''}</Badge> 175 | </HStack> 176 | </property> 177 | Content 1 178 | </TabItem> 179 | <TabItem label="Tab 2">Content 2</TabItem> 180 | </Tabs> 181 | `); 182 | 183 | await expect(page.getByText("Custom: Tab 1")).toBeVisible(); 184 | await expect(page.getByText("Active")).toBeVisible(); 185 | }); 186 | 187 | test("headerTemplate receives correct context props", async ({ initTestBed, page }) => { 188 | await initTestBed(` 189 | <Tabs> 190 | <TabItem label="First Tab"> 191 | <property name="headerTemplate"> 192 | <VStack gap="$space-1"> 193 | <Text>Index: {$header.index}</Text> 194 | <Text>Label: {$header.label}</Text> 195 | <Text>Active: {$header.isActive ? 'Yes' : 'No'}</Text> 196 | </VStack> 197 | </property> 198 | Content 1 199 | </TabItem> 200 | <TabItem label="Second Tab">Content 2</TabItem> 201 | </Tabs> 202 | `); 203 | 204 | await expect(page.getByText("Index: 0")).toBeVisible(); 205 | await expect(page.getByText("Label: First Tab")).toBeVisible(); 206 | await expect(page.getByText("Active: Yes")).toBeVisible(); 207 | }); 208 | 209 | test("headerTemplate receives external id when provided", async ({ initTestBed, page }) => { 210 | await initTestBed(` 211 | <Tabs> 212 | <TabItem label="First Tab" id="custom-tab-1"> 213 | <property name="headerTemplate"> 214 | <VStack gap="$space-1"> 215 | <Text>ID: {$header.id}</Text> 216 | <Text>Label: {$header.label}</Text> 217 | <Text>Has ID: {$header.id ? 'Yes' : 'No'}</Text> 218 | </VStack> 219 | </property> 220 | Content 1 221 | </TabItem> 222 | <TabItem label="Second Tab"> 223 | <property name="headerTemplate"> 224 | <VStack gap="$space-1"> 225 | <Text>Label: {$header.label}</Text> 226 | <Text>Has ID: {$header.id ? 'Yes' : 'No'}</Text> 227 | </VStack> 228 | </property> 229 | Content 2 230 | </TabItem> 231 | </Tabs> 232 | `); 233 | 234 | // First tab should show the external id 235 | await expect(page.getByText("ID: custom-tab-1")).toBeVisible(); 236 | await expect(page.getByText("Label: First Tab")).toBeVisible(); 237 | await expect(page.getByText("Has ID: Yes")).toBeVisible(); 238 | 239 | // Click second tab 240 | await page.getByRole("tab", { name: "Second Tab" }).click(); 241 | 242 | // Second tab should not have id in context 243 | await expect(page.getByText("Label: Second Tab")).toBeVisible(); 244 | await expect(page.getByText("Has ID: No")).toBeVisible(); 245 | }); 246 | }); 247 | 248 | // ============================================================================= 249 | // GLOBAL HEADER TEMPLATE TESTS 250 | // ============================================================================= 251 | 252 | test.describe("global headerTemplate functionality", () => { 253 | test("global headerTemplate customizes all tab headers", async ({ initTestBed, page }) => { 254 | await initTestBed(` 255 | <Tabs> 256 | <property name="headerTemplate"> 257 | <Text>Custom: {$header.label}</Text> 258 | </property> 259 | <TabItem label="Tab 1">Content 1</TabItem> 260 | <TabItem label="Tab 2">Content 2</TabItem> 261 | <TabItem label="Tab 3">Content 3</TabItem> 262 | </Tabs> 263 | `); 264 | 265 | await expect(page.getByText("Custom: Tab 1")).toBeVisible(); 266 | await expect(page.getByText("Custom: Tab 2")).toBeVisible(); 267 | await expect(page.getByText("Custom: Tab 3")).toBeVisible(); 268 | }); 269 | 270 | test("global headerTemplate receives isActive state", async ({ initTestBed, page }) => { 271 | await initTestBed(` 272 | <Tabs> 273 | <property name="headerTemplate"> 274 | <Text>{$header.isActive ? 'Active: ' : ''}{$header.label}</Text> 275 | </property> 276 | <TabItem label="Tab 1">Content 1</TabItem> 277 | <TabItem label="Tab 2">Content 2</TabItem> 278 | </Tabs> 279 | `); 280 | 281 | // First tab should be active initially 282 | await expect(page.getByText("Active: Tab 1")).toBeVisible(); 283 | await expect(page.getByText("Tab 2")).toBeVisible(); 284 | 285 | // Click second tab 286 | await page.getByText("Tab 2").click(); 287 | await expect(page.getByText("Tab 1")).toBeVisible(); 288 | await expect(page.getByText("Active: Tab 2")).toBeVisible(); 289 | }); 290 | 291 | test("global headerTemplate with complex content", async ({ initTestBed, page }) => { 292 | 293 | await initTestBed(` 294 | <Tabs> 295 | <property name="headerTemplate"> 296 | <HStack> 297 | <Text>{$header.label} {$header.isActive ? 'active' : ''}</Text> 298 | </HStack> 299 | </property> 300 | <TabItem label="Home">Home content</TabItem> 301 | <TabItem label="Settings">Settings content</TabItem> 302 | </Tabs> 303 | `); 304 | 305 | await expect(page.getByText("Home active")).toBeVisible(); 306 | 307 | await page.getByText("Settings").click(); 308 | await expect(page.getByText("Settings active")).toBeVisible(); 309 | }); 310 | }); 311 | 312 | // ============================================================================= 313 | // FILLER ELEMENT TESTS 314 | // ============================================================================= 315 | 316 | test.describe("filler element", () => { 317 | test("filler is hidden when distributeEvenly is true", async ({ initTestBed, page }) => { 318 | await initTestBed(` 319 | <Tabs distributeEvenly> 320 | <TabItem label="Tab 1">Content 1</TabItem> 321 | <TabItem label="Tab 2">Content 2</TabItem> 322 | </Tabs> 323 | `); 324 | 325 | const filler = page.locator('.filler'); 326 | await expect(filler).not.toBeVisible(); 327 | }); 328 | 329 | test("filler is hidden when headerRenderer is used", async ({ initTestBed, page }) => { 330 | await initTestBed(` 331 | <Tabs headerRenderer="{(item) => item.label}"> 332 | <TabItem label="Tab 1">Content 1</TabItem> 333 | <TabItem label="Tab 2">Content 2</TabItem> 334 | </Tabs> 335 | `); 336 | 337 | const filler = page.locator('.filler'); 338 | await expect(filler).not.toBeVisible(); 339 | }); 340 | }); 341 | 342 | // ============================================================================= 343 | // EDGE CASES AND ERROR HANDLING 344 | // ============================================================================= 345 | 346 | test.describe("edge cases", () => { 347 | test("handles empty tabs", async ({ initTestBed, page }) => { 348 | await initTestBed(`<Tabs></Tabs>`); 349 | // Check that empty tabs component is rendered 350 | await expect(page.getByRole('tablist')).toBeAttached(); 351 | }); 352 | 353 | test("handles single tab", async ({ initTestBed, page }) => { 354 | await initTestBed(` 355 | <Tabs> 356 | <TabItem label="Only Tab">Only content</TabItem> 357 | </Tabs> 358 | `); 359 | 360 | await expect(page.getByRole("tab", { name: "Only Tab" })).toBeVisible(); 361 | await expect(page.getByText("Only content")).toBeVisible(); 362 | }); 363 | 364 | test("handles tabs with empty content", async ({ initTestBed, page }) => { 365 | await initTestBed(` 366 | <Tabs> 367 | <TabItem label="Empty Tab"></TabItem> 368 | <TabItem label="Tab 2">Content 2</TabItem> 369 | </Tabs> 370 | `); 371 | 372 | await expect(page.getByRole("tab", { name: "Empty Tab" })).toBeVisible(); 373 | await page.getByRole("tab", { name: "Tab 2" }).click(); 374 | await expect(page.getByText("Content 2")).toBeVisible(); 375 | }); 376 | 377 | test("handles very long tab labels", async ({ initTestBed, page }) => { 378 | const longLabel = "This is a very long tab label that might cause layout issues"; 379 | await initTestBed(` 380 | <Tabs> 381 | <TabItem label="${longLabel}">Content 1</TabItem> 382 | <TabItem label="Short">Content 2</TabItem> 383 | </Tabs> 384 | `); 385 | 386 | await expect(page.getByRole("tab", { name: longLabel })).toBeVisible(); 387 | await expect(page.getByRole("tab", { name: "Short" })).toBeVisible(); 388 | }); 389 | 390 | test("handles activeTab out of bounds", async ({ initTestBed, page }) => { 391 | await initTestBed(` 392 | <Tabs activeTab="{5}"> 393 | <TabItem label="Tab 1">Content 1</TabItem> 394 | <TabItem label="Tab 2">Content 2</TabItem> 395 | </Tabs> 396 | `); 397 | 398 | // Should default to first tab when activeTab is out of bounds 399 | await expect(page.getByText("Content 1")).toBeVisible(); 400 | }); 401 | }); 402 | 403 | // ============================================================================= 404 | // ACCESSIBILITY TESTS 405 | // ============================================================================= 406 | 407 | test.describe("accessibility", () => { 408 | test("tabs have correct ARIA roles", async ({ initTestBed, page }) => { 409 | await initTestBed(` 410 | <Tabs> 411 | <TabItem label="Tab 1">Content 1</TabItem> 412 | <TabItem label="Tab 2">Content 2</TabItem> 413 | </Tabs> 414 | `); 415 | 416 | await expect(page.getByRole("tablist")).toBeVisible(); 417 | await expect(page.getByRole("tab", { name: "Tab 1" })).toBeVisible(); 418 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeVisible(); 419 | await expect(page.getByRole("tabpanel")).toBeVisible(); 420 | }); 421 | 422 | test("active tab has correct aria-selected", async ({ initTestBed, page }) => { 423 | await initTestBed(` 424 | <Tabs> 425 | <TabItem label="Tab 1">Content 1</TabItem> 426 | <TabItem label="Tab 2">Content 2</TabItem> 427 | </Tabs> 428 | `); 429 | 430 | await expect(page.getByRole("tab", { name: "Tab 1" })).toHaveAttribute("aria-selected", "true"); 431 | await expect(page.getByRole("tab", { name: "Tab 2" })).toHaveAttribute("aria-selected", "false"); 432 | 433 | await page.getByRole("tab", { name: "Tab 2" }).click(); 434 | await expect(page.getByRole("tab", { name: "Tab 1" })).toHaveAttribute("aria-selected", "false"); 435 | await expect(page.getByRole("tab", { name: "Tab 2" })).toHaveAttribute("aria-selected", "true"); 436 | }); 437 | 438 | test("keyboard navigation works", async ({ initTestBed, page }) => { 439 | await initTestBed(` 440 | <Tabs> 441 | <TabItem label="Tab 1">Content 1</TabItem> 442 | <TabItem label="Tab 2">Content 2</TabItem> 443 | <TabItem label="Tab 3">Content 3</TabItem> 444 | </Tabs> 445 | `); 446 | 447 | // Focus first tab 448 | await page.getByRole("tab", { name: "Tab 1" }).focus(); 449 | 450 | // Arrow right to second tab 451 | await page.keyboard.press("ArrowRight"); 452 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeFocused(); 453 | 454 | // Arrow right to third tab 455 | await page.keyboard.press("ArrowRight"); 456 | await expect(page.getByRole("tab", { name: "Tab 3" })).toBeFocused(); 457 | 458 | // Arrow left back to second tab 459 | await page.keyboard.press("ArrowLeft"); 460 | await expect(page.getByRole("tab", { name: "Tab 2" })).toBeFocused(); 461 | }); 462 | // ============================================================================= 463 | 464 | test.describe("API functionality verification", () => { 465 | test("next() method cycles through all tabs correctly", async ({ initTestBed, page }) => { 466 | await initTestBed(` 467 | <Fragment> 468 | <Tabs id="tabs"> 469 | <TabItem label="Account"> 470 | <Text>Account Content</Text> 471 | </TabItem> 472 | <TabItem label="Stream"> 473 | <Text>Stream Content</Text> 474 | </TabItem> 475 | <TabItem label="Support"> 476 | <Text>Support Content</Text> 477 | </TabItem> 478 | </Tabs> 479 | <Button onClick="tabs.next()" testId="next-btn"> 480 | Next Tab 481 | </Button> 482 | </Fragment> 483 | `); 484 | 485 | // Initially Account tab should be active (first tab) 486 | await expect(page.getByText("Account Content")).toBeVisible(); 487 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 488 | await expect(page.getByText("Support Content")).not.toBeVisible(); 489 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 490 | 491 | // Call next() - should move to Stream tab 492 | await page.getByTestId("next-btn").click(); 493 | await expect(page.getByText("Account Content")).not.toBeVisible(); 494 | await expect(page.getByText("Stream Content")).toBeVisible(); 495 | await expect(page.getByText("Support Content")).not.toBeVisible(); 496 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 497 | 498 | // Call next() again - should move to Support tab 499 | await page.getByTestId("next-btn").click(); 500 | await expect(page.getByText("Account Content")).not.toBeVisible(); 501 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 502 | await expect(page.getByText("Support Content")).toBeVisible(); 503 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 504 | 505 | // Call next() from last tab - should cycle back to Account tab 506 | await page.getByTestId("next-btn").click(); 507 | await expect(page.getByText("Account Content")).toBeVisible(); 508 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 509 | await expect(page.getByText("Support Content")).not.toBeVisible(); 510 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 511 | }); 512 | 513 | test("prev() method cycles through all tabs correctly in reverse", async ({ initTestBed, page }) => { 514 | await initTestBed(` 515 | <Fragment> 516 | <Tabs id="tabs"> 517 | <TabItem label="Account"> 518 | <Text>Account Content</Text> 519 | </TabItem> 520 | <TabItem label="Stream"> 521 | <Text>Stream Content</Text> 522 | </TabItem> 523 | <TabItem label="Support"> 524 | <Text>Support Content</Text> 525 | </TabItem> 526 | </Tabs> 527 | <Button onClick="tabs.prev()" testId="prev-btn"> 528 | Previous Tab 529 | </Button> 530 | </Fragment> 531 | `); 532 | 533 | // Initially Account tab should be active (first tab) 534 | await expect(page.getByText("Account Content")).toBeVisible(); 535 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 536 | await expect(page.getByText("Support Content")).not.toBeVisible(); 537 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 538 | 539 | // Call prev() from first tab - should cycle to Support tab (last tab) 540 | await page.getByTestId("prev-btn").click(); 541 | await expect(page.getByText("Account Content")).not.toBeVisible(); 542 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 543 | await expect(page.getByText("Support Content")).toBeVisible(); 544 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 545 | 546 | // Call prev() again - should move to Stream tab 547 | await page.getByTestId("prev-btn").click(); 548 | await expect(page.getByText("Account Content")).not.toBeVisible(); 549 | await expect(page.getByText("Stream Content")).toBeVisible(); 550 | await expect(page.getByText("Support Content")).not.toBeVisible(); 551 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 552 | 553 | // Call prev() again - should move to Account tab 554 | await page.getByTestId("prev-btn").click(); 555 | await expect(page.getByText("Account Content")).toBeVisible(); 556 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 557 | await expect(page.getByText("Support Content")).not.toBeVisible(); 558 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 559 | }); 560 | 561 | test("next() and prev() methods work together for full navigation", async ({ initTestBed, page }) => { 562 | await initTestBed(` 563 | <Fragment> 564 | <Tabs id="tabs"> 565 | <TabItem label="Account"> 566 | <Text>Account Content</Text> 567 | </TabItem> 568 | <TabItem label="Stream"> 569 | <Text>Stream Content</Text> 570 | </TabItem> 571 | <TabItem label="Support"> 572 | <Text>Support Content</Text> 573 | </TabItem> 574 | </Tabs> 575 | <Button onClick="tabs.next()" testId="next-btn"> 576 | Next Tab 577 | </Button> 578 | <Button onClick="tabs.prev()" testId="prev-btn"> 579 | Previous Tab 580 | </Button> 581 | </Fragment> 582 | `); 583 | 584 | // Start at Account tab 585 | await expect(page.getByText("Account Content")).toBeVisible(); 586 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 587 | 588 | // Go forward twice: Account -> Stream -> Support 589 | await page.getByTestId("next-btn").click(); 590 | await expect(page.getByText("Stream Content")).toBeVisible(); 591 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 592 | 593 | await page.getByTestId("next-btn").click(); 594 | await expect(page.getByText("Support Content")).toBeVisible(); 595 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 596 | 597 | // Go back once: Support -> Stream 598 | await page.getByTestId("prev-btn").click(); 599 | await expect(page.getByText("Stream Content")).toBeVisible(); 600 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 601 | 602 | // Go forward to cycle: Stream -> Support -> Account 603 | await page.getByTestId("next-btn").click(); 604 | await expect(page.getByText("Support Content")).toBeVisible(); 605 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 606 | 607 | await page.getByTestId("next-btn").click(); 608 | await expect(page.getByText("Account Content")).toBeVisible(); 609 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 610 | }); 611 | 612 | test("tabs can be navigated programmatically (simulating next() behavior)", async ({ initTestBed, page }) => { 613 | await initTestBed(` 614 | <Tabs> 615 | <TabItem label="Tab 1">Content 1</TabItem> 616 | <TabItem label="Tab 2">Content 2</TabItem> 617 | <TabItem label="Tab 3">Content 3</TabItem> 618 | </Tabs> 619 | `); 620 | 621 | // Initially first tab is active 622 | await expect(page.getByText("Content 1")).toBeVisible(); 623 | await expect(page.getByText("Content 2")).not.toBeVisible(); 624 | await expect(page.getByText("Content 3")).not.toBeVisible(); 625 | 626 | // Simulate next() - move to second tab 627 | await page.getByRole("tab", { name: "Tab 2" }).click(); 628 | await expect(page.getByText("Content 1")).not.toBeVisible(); 629 | await expect(page.getByText("Content 2")).toBeVisible(); 630 | await expect(page.getByText("Content 3")).not.toBeVisible(); 631 | 632 | // Simulate next() - move to third tab 633 | await page.getByRole("tab", { name: "Tab 3" }).click(); 634 | await expect(page.getByText("Content 1")).not.toBeVisible(); 635 | await expect(page.getByText("Content 2")).not.toBeVisible(); 636 | await expect(page.getByText("Content 3")).toBeVisible(); 637 | 638 | // Simulate next() - should cycle back to first tab 639 | await page.getByRole("tab", { name: "Tab 1" }).click(); 640 | await expect(page.getByText("Content 1")).toBeVisible(); 641 | await expect(page.getByText("Content 2")).not.toBeVisible(); 642 | await expect(page.getByText("Content 3")).not.toBeVisible(); 643 | }); 644 | 645 | test("tabs can be navigated backwards programmatically (simulating prev() behavior)", async ({ initTestBed, page }) => { 646 | await initTestBed(` 647 | <Tabs> 648 | <TabItem label="Tab 1">Content 1</TabItem> 649 | <TabItem label="Tab 2">Content 2</TabItem> 650 | <TabItem label="Tab 3">Content 3</TabItem> 651 | </Tabs> 652 | `); 653 | 654 | // Initially first tab is active 655 | await expect(page.getByText("Content 1")).toBeVisible(); 656 | 657 | // Simulate prev() from first tab - should cycle to last tab 658 | await page.getByRole("tab", { name: "Tab 3" }).click(); 659 | await expect(page.getByText("Content 1")).not.toBeVisible(); 660 | await expect(page.getByText("Content 2")).not.toBeVisible(); 661 | await expect(page.getByText("Content 3")).toBeVisible(); 662 | 663 | // Simulate prev() - move to second tab 664 | await page.getByRole("tab", { name: "Tab 2" }).click(); 665 | await expect(page.getByText("Content 1")).not.toBeVisible(); 666 | await expect(page.getByText("Content 2")).toBeVisible(); 667 | await expect(page.getByText("Content 3")).not.toBeVisible(); 668 | 669 | // Simulate prev() - move to first tab 670 | await page.getByRole("tab", { name: "Tab 1" }).click(); 671 | await expect(page.getByText("Content 1")).toBeVisible(); 672 | await expect(page.getByText("Content 2")).not.toBeVisible(); 673 | await expect(page.getByText("Content 3")).not.toBeVisible(); 674 | }); 675 | 676 | test("activeTab prop sets initial tab correctly (simulating setActiveTabIndex())", async ({ initTestBed, page }) => { 677 | await initTestBed(` 678 | <Tabs activeTab="{2}"> 679 | <TabItem label="Tab 1">Content 1</TabItem> 680 | <TabItem label="Tab 2">Content 2</TabItem> 681 | <TabItem label="Tab 3">Content 3</TabItem> 682 | </Tabs> 683 | `); 684 | 685 | // Third tab should be active initially (index 2) 686 | await expect(page.getByText("Content 3")).toBeVisible(); 687 | await expect(page.getByText("Content 1")).not.toBeVisible(); 688 | await expect(page.getByText("Content 2")).not.toBeVisible(); 689 | }); 690 | 691 | test("ArrowRight key cycles through all tabs correctly (keyboard navigation)", async ({ initTestBed, page }) => { 692 | await initTestBed(` 693 | <Tabs> 694 | <TabItem label="Account"> 695 | <Text>Account Content</Text> 696 | </TabItem> 697 | <TabItem label="Stream"> 698 | <Text>Stream Content</Text> 699 | </TabItem> 700 | <TabItem label="Support"> 701 | <Text>Support Content</Text> 702 | </TabItem> 703 | </Tabs> 704 | `); 705 | 706 | // Initially Account tab should be active and focused 707 | await expect(page.getByText("Account Content")).toBeVisible(); 708 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 709 | await expect(page.getByText("Support Content")).not.toBeVisible(); 710 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 711 | 712 | // Focus the first tab 713 | await page.getByRole("tab", { name: "Account" }).focus(); 714 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused(); 715 | 716 | // Press ArrowRight - should move to Stream tab 717 | await page.keyboard.press("ArrowRight"); 718 | await expect(page.getByText("Account Content")).not.toBeVisible(); 719 | await expect(page.getByText("Stream Content")).toBeVisible(); 720 | await expect(page.getByText("Support Content")).not.toBeVisible(); 721 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 722 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused(); 723 | 724 | // Press ArrowRight again - should move to Support tab 725 | await page.keyboard.press("ArrowRight"); 726 | await expect(page.getByText("Account Content")).not.toBeVisible(); 727 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 728 | await expect(page.getByText("Support Content")).toBeVisible(); 729 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 730 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused(); 731 | 732 | // Press ArrowRight from last tab - should cycle back to Account tab 733 | await page.keyboard.press("ArrowRight"); 734 | await expect(page.getByText("Account Content")).toBeVisible(); 735 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 736 | await expect(page.getByText("Support Content")).not.toBeVisible(); 737 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 738 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused(); 739 | }); 740 | 741 | test("ArrowLeft key cycles through all tabs correctly in reverse (keyboard navigation)", async ({ initTestBed, page }) => { 742 | await initTestBed(` 743 | <Tabs> 744 | <TabItem label="Account"> 745 | <Text>Account Content</Text> 746 | </TabItem> 747 | <TabItem label="Stream"> 748 | <Text>Stream Content</Text> 749 | </TabItem> 750 | <TabItem label="Support"> 751 | <Text>Support Content</Text> 752 | </TabItem> 753 | </Tabs> 754 | `); 755 | 756 | // Initially Account tab should be active 757 | await expect(page.getByText("Account Content")).toBeVisible(); 758 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 759 | await expect(page.getByText("Support Content")).not.toBeVisible(); 760 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 761 | 762 | // Focus the first tab 763 | await page.getByRole("tab", { name: "Account" }).focus(); 764 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused(); 765 | 766 | // Press ArrowLeft from first tab - should cycle to Support tab (last tab) 767 | await page.keyboard.press("ArrowLeft"); 768 | await expect(page.getByText("Account Content")).not.toBeVisible(); 769 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 770 | await expect(page.getByText("Support Content")).toBeVisible(); 771 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 772 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused(); 773 | 774 | // Press ArrowLeft again - should move to Stream tab 775 | await page.keyboard.press("ArrowLeft"); 776 | await expect(page.getByText("Account Content")).not.toBeVisible(); 777 | await expect(page.getByText("Stream Content")).toBeVisible(); 778 | await expect(page.getByText("Support Content")).not.toBeVisible(); 779 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 780 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused(); 781 | 782 | // Press ArrowLeft again - should move to Account tab 783 | await page.keyboard.press("ArrowLeft"); 784 | await expect(page.getByText("Account Content")).toBeVisible(); 785 | await expect(page.getByText("Stream Content")).not.toBeVisible(); 786 | await expect(page.getByText("Support Content")).not.toBeVisible(); 787 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 788 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused(); 789 | }); 790 | 791 | test("ArrowRight and ArrowLeft keys work together for full keyboard navigation", async ({ initTestBed, page }) => { 792 | await initTestBed(` 793 | <Tabs> 794 | <TabItem label="Account"> 795 | <Text>Account Content</Text> 796 | </TabItem> 797 | <TabItem label="Stream"> 798 | <Text>Stream Content</Text> 799 | </TabItem> 800 | <TabItem label="Support"> 801 | <Text>Support Content</Text> 802 | </TabItem> 803 | </Tabs> 804 | `); 805 | 806 | // Start at Account tab and focus it 807 | await expect(page.getByText("Account Content")).toBeVisible(); 808 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 809 | await page.getByRole("tab", { name: "Account" }).focus(); 810 | 811 | // Go forward twice: Account -> Stream -> Support 812 | await page.keyboard.press("ArrowRight"); 813 | await expect(page.getByText("Stream Content")).toBeVisible(); 814 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 815 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused(); 816 | 817 | await page.keyboard.press("ArrowRight"); 818 | await expect(page.getByText("Support Content")).toBeVisible(); 819 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 820 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused(); 821 | 822 | // Go back once: Support -> Stream 823 | await page.keyboard.press("ArrowLeft"); 824 | await expect(page.getByText("Stream Content")).toBeVisible(); 825 | await expect(page.getByRole("tab", { name: "Stream" })).toHaveAttribute("aria-selected", "true"); 826 | await expect(page.getByRole("tab", { name: "Stream" })).toBeFocused(); 827 | 828 | // Go forward to cycle: Stream -> Support -> Account 829 | await page.keyboard.press("ArrowRight"); 830 | await expect(page.getByText("Support Content")).toBeVisible(); 831 | await expect(page.getByRole("tab", { name: "Support" })).toHaveAttribute("aria-selected", "true"); 832 | await expect(page.getByRole("tab", { name: "Support" })).toBeFocused(); 833 | 834 | await page.keyboard.press("ArrowRight"); 835 | await expect(page.getByText("Account Content")).toBeVisible(); 836 | await expect(page.getByRole("tab", { name: "Account" })).toHaveAttribute("aria-selected", "true"); 837 | await expect(page.getByRole("tab", { name: "Account" })).toBeFocused(); 838 | }); 839 | 840 | test("API methods work with headerTemplate (visual verification)", async ({ initTestBed, page }) => { 841 | await initTestBed(` 842 | <Fragment> 843 | <Tabs id="tabs"> 844 | <property name="headerTemplate"> 845 | <Text>{$header.isActive ? 'Active: ' : ''}{$header.label}</Text> 846 | </property> 847 | <TabItem label="Tab 1">Content 1</TabItem> 848 | <TabItem label="Tab 2">Content 2</TabItem> 849 | <TabItem label="Tab 3">Content 3</TabItem> 850 | </Tabs> 851 | <Button onClick="tabs.prev()">Prev</Button> 852 | <Button onClick="tabs.next()">Next</Button> 853 | </Fragment> 854 | `); 855 | 856 | // Initially first tab is active 857 | await expect(page.getByText("Active: Tab 1")).toBeVisible(); 858 | await expect(page.getByText("Tab 2")).toBeVisible(); 859 | await expect(page.getByText("Tab 3")).toBeVisible(); 860 | 861 | // Simulate next() behavior by clicking second tab 862 | await page.getByRole("button", { name: "Next" }).click(); 863 | await expect(page.getByText("Active: Tab 2")).toBeVisible(); 864 | await expect(page.getByText("Tab 1")).toBeVisible(); 865 | await expect(page.getByText("Tab 3")).toBeVisible(); 866 | 867 | // Simulate prev() behavior by clicking first tab 868 | await page.getByRole("button", { name: "Prev" }).click(); 869 | await expect(page.getByText("Active: Tab 1")).toBeVisible(); 870 | await expect(page.getByText("Tab 2")).toBeVisible(); 871 | await expect(page.getByText("Tab 3")).toBeVisible(); 872 | }); 873 | }); 874 | }); 875 | 876 | // ============================================================================= 877 | // DYNAMIC CONTENT TESTS 878 | // ============================================================================= 879 | 880 | test.describe("dynamic content", () => { 881 | test("works with Items component for dynamic tabs", async ({ initTestBed, page }) => { 882 | await initTestBed(` 883 | <Tabs> 884 | <Items data="{['First', 'Second', 'Third']}"> 885 | <TabItem label="{$item}">Content for {$item}</TabItem> 886 | </Items> 887 | </Tabs> 888 | `); 889 | 890 | await expect(page.getByRole("tab", { name: "First" })).toBeVisible(); 891 | await expect(page.getByRole("tab", { name: "Second" })).toBeVisible(); 892 | await expect(page.getByRole("tab", { name: "Third" })).toBeVisible(); 893 | 894 | await page.getByRole("tab", { name: "Second" }).click(); 895 | await expect(page.getByText("Content for Second")).toBeVisible(); 896 | }); 897 | 898 | test("headerTemplate works with dynamic content from Items", async ({ initTestBed, page }) => { 899 | await initTestBed(` 900 | <Tabs> 901 | <property name="headerTemplate"> 902 | <Text color="red">Account {$header.label}</Text> 903 | </property> 904 | <Items data="{[1, 2, 3, 4, 5]}"> 905 | <TabItem label="Account {$item}"> 906 | <property name="headerTemplate"> 907 | <Text when="true" color="blue">{$header.label} | {$item}</Text> 908 | </property> 909 | Content for account {$item} 910 | </TabItem> 911 | </Items> 912 | </Tabs> 913 | `); 914 | 915 | // Check that individual headerTemplate takes priority and has access to both $header and $item 916 | await expect(page.getByText("Account 1 | 1")).toBeVisible(); 917 | await expect(page.getByText("Account 2 | 2")).toBeVisible(); 918 | await expect(page.getByText("Account 3 | 3")).toBeVisible(); 919 | await expect(page.getByText("Account 4 | 4")).toBeVisible(); 920 | await expect(page.getByText("Account 5 | 5")).toBeVisible(); 921 | 922 | // Test clicking on different tabs 923 | await page.getByText("Account 3 | 3").click(); 924 | await expect(page.getByText("Content for account 3")).toBeVisible(); 925 | }); 926 | }); 927 | 928 | test.describe("onDidChange callback functionality", () => { 929 | test("onDidChange callback is called when tab changes", async ({ initTestBed, page }) => { 930 | await initTestBed(` 931 | <Fragment var.tabChangeInfo="No change yet"> 932 | <Tabs onDidChange="(index, id, label) => { 933 | tabChangeInfo = 'Tab: ' + index + ' - ' + label; 934 | }"> 935 | <TabItem label="First Tab"> 936 | <Text>First tab content</Text> 937 | </TabItem> 938 | <TabItem label="Second Tab"> 939 | <Text>Second tab content</Text> 940 | </TabItem> 941 | <TabItem label="Third Tab"> 942 | <Text>Third tab content</Text> 943 | </TabItem> 944 | </Tabs> 945 | <Text>{tabChangeInfo}</Text> 946 | </Fragment> 947 | `); 948 | 949 | // Initially should show no change 950 | await expect(page.getByText("No change yet")).toBeVisible(); 951 | await expect(page.getByText("First tab content")).toBeVisible(); 952 | 953 | // Click on second tab 954 | await page.getByRole("tab", { name: "Second Tab" }).click(); 955 | await expect(page.getByText("Second tab content")).toBeVisible(); 956 | await expect(page.getByText("Tab: 1 - Second Tab")).toBeVisible(); 957 | 958 | // Click on third tab 959 | await page.getByRole("tab", { name: "Third Tab" }).click(); 960 | await expect(page.getByText("Third tab content")).toBeVisible(); 961 | await expect(page.getByText("Tab: 2 - Third Tab")).toBeVisible(); 962 | 963 | // Click back to first tab 964 | await page.getByRole("tab", { name: "First Tab" }).click(); 965 | await expect(page.getByText("First tab content")).toBeVisible(); 966 | await expect(page.getByText("Tab: 0 - First Tab")).toBeVisible(); 967 | }); 968 | 969 | test("onDidChange callback is not called when same tab is clicked", async ({ initTestBed, page }) => { 970 | await initTestBed(` 971 | <Fragment var.changeCount="{0}"> 972 | <Tabs onDidChange="(index, id, label) => { 973 | changeCount = changeCount + 1; 974 | }"> 975 | <TabItem label="Tab One"> 976 | <Text>Content one</Text> 977 | </TabItem> 978 | <TabItem label="Tab Two"> 979 | <Text>Content two</Text> 980 | </TabItem> 981 | </Tabs> 982 | <Text>Changes: {changeCount}</Text> 983 | </Fragment> 984 | `); 985 | 986 | // Initially should show 0 changes 987 | await expect(page.getByText("Changes: 0")).toBeVisible(); 988 | await expect(page.getByText("Content one")).toBeVisible(); 989 | 990 | // Click on second tab - should trigger onDidChange 991 | await page.getByRole("tab", { name: "Tab Two" }).click(); 992 | await expect(page.getByText("Content two")).toBeVisible(); 993 | await expect(page.getByText("Changes: 1")).toBeVisible(); 994 | 995 | // Click on second tab again - should NOT trigger onDidChange 996 | await page.getByRole("tab", { name: "Tab Two" }).click(); 997 | await expect(page.getByText("Changes: 1")).toBeVisible(); // Should still be 1 998 | }); 999 | }); 1000 | ```