#
tokens: 44266/50000 1/1626 files (page 158/181)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 158 of 181. Use http://codebase.md/xmlui-org/xmlui/xmlui-standalone.umd.js?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   └── config.json
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── layout-changes.md
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   └── lorem-ipsum.png
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   └── welcome-to-the-xmlui-blog.md
│   │   ├── mockServiceWorker.js
│   │   ├── resources
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   └── for-download
│   │   │   │       └── xmlui
│   │   │   │           └── xmlui-standalone.umd.js
│   │   │   ├── github.svg
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   ├── rss.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       └── blog-theme.ts
│   └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│   ├── .gitignore
│   ├── CHANGELOG.md
│   ├── ComponentRefLinks.txt
│   ├── content
│   │   ├── _meta.json
│   │   ├── components
│   │   │   ├── _meta.json
│   │   │   ├── _overview.md
│   │   │   ├── APICall.md
│   │   │   ├── App.md
│   │   │   ├── AppHeader.md
│   │   │   ├── AppState.md
│   │   │   ├── AutoComplete.md
│   │   │   ├── Avatar.md
│   │   │   ├── Backdrop.md
│   │   │   ├── Badge.md
│   │   │   ├── BarChart.md
│   │   │   ├── Bookmark.md
│   │   │   ├── Breakout.md
│   │   │   ├── Button.md
│   │   │   ├── Card.md
│   │   │   ├── Carousel.md
│   │   │   ├── ChangeListener.md
│   │   │   ├── Checkbox.md
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── HelloMd.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── debug-a-component.md
│   │   │   │   ├── delay-a-datasource-until-another-datasource-is-ready.md
│   │   │   │   ├── delegate-a-method.md
│   │   │   │   ├── do-custom-form-validation.md
│   │   │   │   ├── expose-a-method-from-a-component.md
│   │   │   │   ├── filter-and-transform-data-from-an-api.md
│   │   │   │   ├── group-items-in-list-by-a-property.md
│   │   │   │   ├── handle-background-operations.md
│   │   │   │   ├── hide-an-element-until-its-datasource-is-ready.md
│   │   │   │   ├── make-a-set-of-equal-width-cards.md
│   │   │   │   ├── make-a-table-responsive.md
│   │   │   │   ├── make-navpanel-width-responsive.md
│   │   │   │   ├── modify-a-value-reported-in-a-column.md
│   │   │   │   ├── paginate-a-list.md
│   │   │   │   ├── pass-data-to-a-modal-dialog.md
│   │   │   │   ├── react-to-button-click-not-keystrokes.md
│   │   │   │   ├── set-the-initial-value-of-a-select-from-fetched-data.md
│   │   │   │   ├── share-a-modaldialog-across-components.md
│   │   │   │   ├── sync-selections-between-table-and-list-views.md
│   │   │   │   ├── update-ui-optimistically.md
│   │   │   │   ├── use-built-in-form-validation.md
│   │   │   │   └── use-the-same-modaldialog-to-add-or-edit.md
│   │   │   ├── howto.md
│   │   │   ├── intro.md
│   │   │   ├── layout.md
│   │   │   ├── markup.md
│   │   │   ├── mcp.md
│   │   │   ├── modal-dialogs.md
│   │   │   ├── news-and-reviews.md
│   │   │   ├── reactive-intro.md
│   │   │   ├── refactoring.md
│   │   │   ├── routing-and-links.md
│   │   │   ├── samples
│   │   │   │   ├── color-palette.xmlui
│   │   │   │   ├── color-values.xmlui
│   │   │   │   ├── shadow-sizes.xmlui
│   │   │   │   ├── spacing-sizes.xmlui
│   │   │   │   ├── swatch.xmlui
│   │   │   │   ├── theme-gallery-brief.xmlui
│   │   │   │   └── theme-gallery.xmlui
│   │   │   ├── scoping.md
│   │   │   ├── scripting.md
│   │   │   ├── styles-and-themes
│   │   │   │   ├── common-units.md
│   │   │   │   ├── layout-props.md
│   │   │   │   ├── theme-variable-defaults.md
│   │   │   │   ├── theme-variables.md
│   │   │   │   └── themes.md
│   │   │   ├── template-properties.md
│   │   │   ├── test.md
│   │   │   ├── tutorial-01.md
│   │   │   ├── tutorial-02.md
│   │   │   ├── tutorial-03.md
│   │   │   ├── tutorial-04.md
│   │   │   ├── tutorial-05.md
│   │   │   ├── tutorial-06.md
│   │   │   ├── tutorial-07.md
│   │   │   ├── tutorial-08.md
│   │   │   ├── tutorial-09.md
│   │   │   ├── tutorial-10.md
│   │   │   ├── tutorial-11.md
│   │   │   ├── tutorial-12.md
│   │   │   ├── universal-properties.md
│   │   │   ├── user-defined-components.md
│   │   │   ├── vscode.md
│   │   │   ├── working-with-markdown.md
│   │   │   ├── working-with-text.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-charts
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── BarChart.md
│   │   │   │   ├── DonutChart.md
│   │   │   │   ├── LabelList.md
│   │   │   │   ├── Legend.md
│   │   │   │   ├── LineChart.md
│   │   │   │   └── PieChart.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   └── xmlui-spreadsheet
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       └── Spreadsheet.md
│   │   ├── resources
│   │   │   ├── devdocs
│   │   │   │   ├── debug-proxy-object-2.png
│   │   │   │   ├── debug-proxy-object.png
│   │   │   │   ├── table_editor_01.png
│   │   │   │   ├── table_editor_02.png
│   │   │   │   ├── table_editor_03.png
│   │   │   │   ├── table_editor_04.png
│   │   │   │   ├── table_editor_05.png
│   │   │   │   ├── table_editor_06.png
│   │   │   │   ├── table_editor_07.png
│   │   │   │   ├── table_editor_08.png
│   │   │   │   ├── table_editor_09.png
│   │   │   │   ├── table_editor_10.png
│   │   │   │   ├── table_editor_11.png
│   │   │   │   ├── table-editor-01.png
│   │   │   │   ├── table-editor-02.png
│   │   │   │   ├── table-editor-03.png
│   │   │   │   ├── table-editor-04.png
│   │   │   │   ├── table-editor-06.png
│   │   │   │   ├── table-editor-07.png
│   │   │   │   ├── table-editor-08.png
│   │   │   │   ├── table-editor-09.png
│   │   │   │   └── xmlui-rendering-of-tiptap-markdown.png
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   ├── clients.json
│   │   │   │   ├── daily-revenue.json
│   │   │   │   ├── dashboard-stats.json
│   │   │   │   ├── demo.xmlui
│   │   │   │   ├── demo.xmlui.xs
│   │   │   │   ├── downloads
│   │   │   │   │   └── downloads.json
│   │   │   │   ├── for-download
│   │   │   │   │   ├── index-with-api.html
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── mockApi.js
│   │   │   │   │   ├── start-darwin.sh
│   │   │   │   │   ├── start-linux.sh
│   │   │   │   │   ├── start.bat
│   │   │   │   │   └── xmlui
│   │   │   │   │       └── xmlui-standalone.umd.js
│   │   │   │   ├── getting-started
│   │   │   │   │   ├── cl-tutorial-final.zip
│   │   │   │   │   ├── cl-tutorial.zip
│   │   │   │   │   ├── cl-tutorial2.zip
│   │   │   │   │   ├── cl-tutorial3.zip
│   │   │   │   │   ├── cl-tutorial4.zip
│   │   │   │   │   ├── cl-tutorial5.zip
│   │   │   │   │   ├── cl-tutorial6.zip
│   │   │   │   │   ├── getting-started.zip
│   │   │   │   │   ├── hello-xmlui.zip
│   │   │   │   │   ├── xmlui-empty.zip
│   │   │   │   │   └── xmlui-starter.zip
│   │   │   │   ├── howto
│   │   │   │   │   └── component-icons
│   │   │   │   │       └── up-arrow.svg
│   │   │   │   ├── invoices.json
│   │   │   │   ├── monthly-status.json
│   │   │   │   ├── news-and-reviews.json
│   │   │   │   ├── products.json
│   │   │   │   ├── releases.json
│   │   │   │   ├── tutorials
│   │   │   │   │   ├── datasource
│   │   │   │   │   │   └── api.ts
│   │   │   │   │   └── p2do
│   │   │   │   │       ├── api.ts
│   │   │   │   │       └── todo-logo.svg
│   │   │   │   └── xmlui.json
│   │   │   ├── github.svg
│   │   │   ├── images
│   │   │   │   ├── apiaction-tutorial
│   │   │   │   │   ├── add-success.png
│   │   │   │   │   ├── apiaction-param.png
│   │   │   │   │   ├── change-completed.png
│   │   │   │   │   ├── change-in-progress.png
│   │   │   │   │   ├── confirm-delete.png
│   │   │   │   │   ├── data-error.png
│   │   │   │   │   ├── data-progress.png
│   │   │   │   │   ├── data-success.png
│   │   │   │   │   ├── display-1.png
│   │   │   │   │   ├── item-deleted.png
│   │   │   │   │   ├── item-updated.png
│   │   │   │   │   ├── missing-api-key.png
│   │   │   │   │   ├── new-item-added.png
│   │   │   │   │   └── test-message.png
│   │   │   │   ├── chat-api
│   │   │   │   │   └── domain-model.svg
│   │   │   │   ├── components
│   │   │   │   │   ├── image
│   │   │   │   │   │   └── breakfast.jpg
│   │   │   │   │   ├── markdown
│   │   │   │   │   │   └── colors.png
│   │   │   │   │   └── modal
│   │   │   │   │       ├── deep_link_dialog_1.jpg
│   │   │   │   │       └── deep_link_dialog_2.jpg
│   │   │   │   ├── create-apps
│   │   │   │   │   ├── collapsed-vertical.png
│   │   │   │   │   ├── using-forms-warning-dialog.png
│   │   │   │   │   └── using-forms.png
│   │   │   │   ├── datasource-tutorial
│   │   │   │   │   ├── data-with-header.png
│   │   │   │   │   ├── filtered-data.png
│   │   │   │   │   ├── filtered-items.png
│   │   │   │   │   ├── initial-page-items.png
│   │   │   │   │   ├── list-items.png
│   │   │   │   │   ├── next-page-items.png
│   │   │   │   │   ├── no-data.png
│   │   │   │   │   ├── pagination-1.jpg
│   │   │   │   │   ├── pagination-1.png
│   │   │   │   │   ├── polling-1.png
│   │   │   │   │   ├── refetch-data.png
│   │   │   │   │   ├── slow-loading.png
│   │   │   │   │   ├── test-message.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── unconventional-data.png
│   │   │   │   │   └── unfiltered-items.png
│   │   │   │   ├── flower.jpg
│   │   │   │   ├── get-started
│   │   │   │   │   ├── add-new-contact.png
│   │   │   │   │   ├── app-modified.png
│   │   │   │   │   ├── app-start.png
│   │   │   │   │   ├── app-with-boxes.png
│   │   │   │   │   ├── app-with-toast.png
│   │   │   │   │   ├── boilerplate-structure.png
│   │   │   │   │   ├── cl-initial.png
│   │   │   │   │   ├── cl-start.png
│   │   │   │   │   ├── contact-counts.png
│   │   │   │   │   ├── contact-dialog-title.png
│   │   │   │   │   ├── contact-dialog.png
│   │   │   │   │   ├── contact-menus.png
│   │   │   │   │   ├── contact-predicates.png
│   │   │   │   │   ├── context-menu.png
│   │   │   │   │   ├── dashboard-numbers.png
│   │   │   │   │   ├── default-contact-list.png
│   │   │   │   │   ├── delete-contact.png
│   │   │   │   │   ├── delete-task.png
│   │   │   │   │   ├── detailed-template.png
│   │   │   │   │   ├── edit-contact-details.png
│   │   │   │   │   ├── edited-contact-saved.png
│   │   │   │   │   ├── empty-sections.png
│   │   │   │   │   ├── filter-completed.png
│   │   │   │   │   ├── fullwidth-desktop.png
│   │   │   │   │   ├── fullwidth-mobile.png
│   │   │   │   │   ├── initial-table.png
│   │   │   │   │   ├── items-and-badges.png
│   │   │   │   │   ├── loading-message.png
│   │   │   │   │   ├── new-contact-button.png
│   │   │   │   │   ├── new-contact-saved.png
│   │   │   │   │   ├── no-empty-sections.png
│   │   │   │   │   ├── personal-todo-initial.png
│   │   │   │   │   ├── piechart.png
│   │   │   │   │   ├── review-today.png
│   │   │   │   │   ├── rudimentary-dashboard.png
│   │   │   │   │   ├── section-collapsed.png
│   │   │   │   │   ├── sectioned-items.png
│   │   │   │   │   ├── sections-ordered.png
│   │   │   │   │   ├── spacex-list-with-links.png
│   │   │   │   │   ├── spacex-list.png
│   │   │   │   │   ├── start-personal-todo-1.png
│   │   │   │   │   ├── submit-new-contact.png
│   │   │   │   │   ├── submit-new-task.png
│   │   │   │   │   ├── syntax-highlighting.png
│   │   │   │   │   ├── table-with-badge.png
│   │   │   │   │   ├── template-with-card.png
│   │   │   │   │   ├── test-emulated-api.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── todo-logo.png
│   │   │   │   │   └── xmlui-tools.png
│   │   │   │   ├── HelloApp.png
│   │   │   │   ├── HelloApp2.png
│   │   │   │   ├── logos
│   │   │   │   │   ├── xmlui1.svg
│   │   │   │   │   ├── xmlui2.svg
│   │   │   │   │   ├── xmlui3.svg
│   │   │   │   │   ├── xmlui4.svg
│   │   │   │   │   ├── xmlui5.svg
│   │   │   │   │   ├── xmlui6.svg
│   │   │   │   │   └── xmlui7.svg
│   │   │   │   ├── pdf
│   │   │   │   │   └── dummy-pdf.jpg
│   │   │   │   ├── rendering-engine
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   ├── Component.svg
│   │   │   │   │   ├── CompoundComponent.svg
│   │   │   │   │   ├── RootComponent.svg
│   │   │   │   │   └── tree-with-containers.svg
│   │   │   │   ├── reviewers-guide
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   └── incbutton-in-action.png
│   │   │   │   ├── tools
│   │   │   │   │   └── boilerplate-structure.png
│   │   │   │   ├── try.svg
│   │   │   │   ├── tutorial
│   │   │   │   │   ├── app-chat-history.png
│   │   │   │   │   ├── app-content-placeholder.png
│   │   │   │   │   ├── app-header-and-content.png
│   │   │   │   │   ├── app-links-channel-selected.png
│   │   │   │   │   ├── app-links-click.png
│   │   │   │   │   ├── app-navigation.png
│   │   │   │   │   ├── finished-ex01.png
│   │   │   │   │   ├── finished-ex02.png
│   │   │   │   │   ├── hello.png
│   │   │   │   │   ├── splash-screen-advanced.png
│   │   │   │   │   ├── splash-screen-after-click.png
│   │   │   │   │   ├── splash-screen-centered.png
│   │   │   │   │   ├── splash-screen-events.png
│   │   │   │   │   ├── splash-screen-expression.png
│   │   │   │   │   ├── splash-screen-reuse-after.png
│   │   │   │   │   ├── splash-screen-reuse-before.png
│   │   │   │   │   └── splash-screen.png
│   │   │   │   └── tutorial-01.png
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   ├── Boxes.xmlui
│   │   │   ├── Breadcrumb.xmlui
│   │   │   ├── ChangeLog.xmlui
│   │   │   ├── ColorPalette.xmlui
│   │   │   ├── DocumentLinks.xmlui
│   │   │   ├── DocumentPage.xmlui
│   │   │   ├── DocumentPageNoTOC.xmlui
│   │   │   ├── Icons.xmlui
│   │   │   ├── IncButton.xmlui
│   │   │   ├── IncButton2.xmlui
│   │   │   ├── NameValue.xmlui
│   │   │   ├── PageNotFound.xmlui
│   │   │   ├── PaletteItem.xmlui
│   │   │   ├── Palettes.xmlui
│   │   │   ├── SectionHeader.xmlui
│   │   │   ├── TBD.xmlui
│   │   │   ├── Test.xmlui
│   │   │   ├── ThemesIntro.xmlui
│   │   │   ├── ThousandThemes.xmlui
│   │   │   ├── TubeStops.xmlui
│   │   │   ├── TubeStops.xmlui.xs
│   │   │   └── TwoColumnCode.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.ts
│   └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│   ├── xmlui-animations
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── Animation.tsx
│   │   │   ├── AnimationNative.tsx
│   │   │   ├── FadeAnimation.tsx
│   │   │   ├── FadeInAnimation.tsx
│   │   │   ├── FadeOutAnimation.tsx
│   │   │   ├── index.tsx
│   │   │   ├── ScaleAnimation.tsx
│   │   │   └── SlideInAnimation.tsx
│   │   └── tsconfig.json
│   ├── xmlui-devtools
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── devtools
│   │   │   │   ├── DevTools.tsx
│   │   │   │   ├── DevToolsNative.module.scss
│   │   │   │   ├── DevToolsNative.tsx
│   │   │   │   ├── ModalDialog.module.scss
│   │   │   │   ├── ModalDialog.tsx
│   │   │   │   ├── ModalVisibilityContext.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── editor
│   │   │   │   └── Editor.tsx
│   │   │   └── index.tsx
│   │   ├── tsconfig.json
│   │   └── vite.config-overrides.ts
│   ├── xmlui-hello-world
│   │   ├── .gitignore
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── HelloWorld.module.scss
│   │   │   ├── HelloWorld.tsx
│   │   │   ├── HelloWorldNative.tsx
│   │   │   └── index.tsx
│   │   └── tsconfig.json
│   ├── xmlui-os-frames
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── index.tsx
│   │   │   ├── IPhoneFrame.module.scss
│   │   │   ├── IPhoneFrame.tsx
│   │   │   ├── MacOSAppFrame.module.scss
│   │   │   ├── MacOSAppFrame.tsx
│   │   │   ├── WindowsAppFrame.module.scss
│   │   │   └── WindowsAppFrame.tsx
│   │   └── tsconfig.json
│   ├── xmlui-pdf
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   ├── components
│   │   │   │   └── Pdf.xmlui
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── index.tsx
│   │   │   ├── LazyPdfNative.tsx
│   │   │   ├── Pdf.module.scss
│   │   │   └── Pdf.tsx
│   │   └── tsconfig.json
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── hooks
│   │   │   │   ├── usePlayground.ts
│   │   │   │   └── useToast.ts
│   │   │   ├── index.tsx
│   │   │   ├── playground
│   │   │   │   ├── Box.module.scss
│   │   │   │   ├── Box.tsx
│   │   │   │   ├── CodeSelector.tsx
│   │   │   │   ├── ConfirmationDialog.module.scss
│   │   │   │   ├── ConfirmationDialog.tsx
│   │   │   │   ├── Editor.tsx
│   │   │   │   ├── Header.module.scss
│   │   │   │   ├── Header.tsx
│   │   │   │   ├── Playground.tsx
│   │   │   │   ├── PlaygroundContent.module.scss
│   │   │   │   ├── PlaygroundContent.tsx
│   │   │   │   ├── PlaygroundNative.module.scss
│   │   │   │   ├── PlaygroundNative.tsx
│   │   │   │   ├── Preview.module.scss
│   │   │   │   ├── Preview.tsx
│   │   │   │   ├── Select.module.scss
│   │   │   │   ├── StandalonePlayground.tsx
│   │   │   │   ├── StandalonePlaygroundNative.module.scss
│   │   │   │   ├── StandalonePlaygroundNative.tsx
│   │   │   │   ├── ThemeSwitcher.module.scss
│   │   │   │   ├── ThemeSwitcher.tsx
│   │   │   │   ├── ToneSwitcher.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── providers
│   │   │   │   ├── Toast.module.scss
│   │   │   │   └── ToastProvider.tsx
│   │   │   ├── state
│   │   │   │   └── store.ts
│   │   │   ├── themes
│   │   │   │   └── theme.ts
│   │   │   └── utils
│   │   │       └── helpers.ts
│   │   └── tsconfig.json
│   ├── xmlui-search
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── index.tsx
│   │   │   ├── Search.module.scss
│   │   │   └── Search.tsx
│   │   └── tsconfig.json
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── index.tsx
│   │   │   ├── Spreadsheet.tsx
│   │   │   └── SpreadsheetNative.tsx
│   │   └── tsconfig.json
│   └── xmlui-website-blocks
│       ├── .gitignore
│       ├── CHANGELOG.md
│       ├── demo
│       │   ├── components
│       │   │   ├── HeroBackgroundBreakoutPage.xmlui
│       │   │   ├── HeroBackgroundsPage.xmlui
│       │   │   ├── HeroContentsPage.xmlui
│       │   │   ├── HeroTextAlignPage.xmlui
│       │   │   ├── HeroTextPage.xmlui
│       │   │   └── HeroTonesPage.xmlui
│       │   ├── Main.xmlui
│       │   └── themes
│       │       └── default.ts
│       ├── index.html
│       ├── index.ts
│       ├── meta
│       │   └── componentsMetadata.ts
│       ├── package.json
│       ├── public
│       │   └── resources
│       │       ├── building.jpg
│       │       └── xmlui-logo.svg
│       ├── src
│       │   ├── Carousel
│       │   │   ├── Carousel.module.scss
│       │   │   ├── Carousel.tsx
│       │   │   ├── CarouselContext.tsx
│       │   │   └── CarouselNative.tsx
│       │   ├── FancyButton
│       │   │   ├── FancyButton.module.scss
│       │   │   ├── FancyButton.tsx
│       │   │   └── FancyButton.xmlui
│       │   ├── Hello
│       │   │   ├── Hello.tsx
│       │   │   ├── Hello.xmlui
│       │   │   └── Hello.xmlui.xs
│       │   ├── HeroSection
│       │   │   ├── HeroSection.module.scss
│       │   │   ├── HeroSection.tsx
│       │   │   └── HeroSectionNative.tsx
│       │   ├── index.tsx
│       │   ├── ScrollToTop
│       │   │   ├── ScrollToTop.module.scss
│       │   │   ├── ScrollToTop.tsx
│       │   │   └── ScrollToTopNative.tsx
│       │   └── vite-env.d.ts
│       └── tsconfig.json
├── README.md
├── tools
│   ├── codefence
│   │   └── xmlui-code-fence-docs.md
│   ├── create-app
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── create-app.ts
│   │   ├── helpers
│   │   │   ├── copy.ts
│   │   │   ├── get-pkg-manager.ts
│   │   │   ├── git.ts
│   │   │   ├── install.ts
│   │   │   ├── is-folder-empty.ts
│   │   │   ├── is-writeable.ts
│   │   │   ├── make-dir.ts
│   │   │   └── validate-pkg.ts
│   │   ├── index.ts
│   │   ├── package.json
│   │   ├── templates
│   │   │   ├── default
│   │   │   │   └── ts
│   │   │   │       ├── gitignore
│   │   │   │       ├── index.html
│   │   │   │       ├── index.ts
│   │   │   │       ├── public
│   │   │   │       │   ├── mockServiceWorker.js
│   │   │   │       │   ├── resources
│   │   │   │       │   │   ├── favicon.ico
│   │   │   │       │   │   └── xmlui-logo.svg
│   │   │   │       │   └── serve.json
│   │   │   │       └── src
│   │   │   │           ├── components
│   │   │   │           │   ├── ApiAware.xmlui
│   │   │   │           │   ├── Home.xmlui
│   │   │   │           │   ├── IncButton.xmlui
│   │   │   │           │   └── PagePanel.xmlui
│   │   │   │           ├── config.ts
│   │   │   │           └── Main.xmlui
│   │   │   ├── index.ts
│   │   │   └── types.ts
│   │   └── tsconfig.json
│   ├── create-xmlui-hello-world
│   │   ├── index.js
│   │   └── package.json
│   └── vscode
│       ├── .gitignore
│       ├── .vscode
│       │   ├── launch.json
│       │   └── tasks.json
│       ├── .vscodeignore
│       ├── build.sh
│       ├── CHANGELOG.md
│       ├── esbuild.js
│       ├── eslint.config.mjs
│       ├── formatter-docs.md
│       ├── generate-test-sample.sh
│       ├── LICENSE.md
│       ├── package-lock.json
│       ├── package.json
│       ├── README.md
│       ├── resources
│       │   ├── xmlui-logo.png
│       │   └── xmlui-markup-syntax-highlighting.png
│       ├── src
│       │   ├── extension.ts
│       │   └── server.ts
│       ├── syntaxes
│       │   └── xmlui.tmLanguage.json
│       ├── test-samples
│       │   └── sample.xmlui
│       ├── tsconfig.json
│       └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
    ├── .gitignore
    ├── bin
    │   ├── bootstrap.js
    │   ├── build-lib.ts
    │   ├── build.ts
    │   ├── index.ts
    │   ├── preview.ts
    │   ├── start.ts
    │   ├── vite-xmlui-plugin.ts
    │   └── viteConfig.ts
    ├── CHANGELOG.md
    ├── conventions
    │   ├── component-qa-checklist.md
    │   ├── copilot-conventions.md
    │   ├── create-xmlui-components.md
    │   ├── mermaid.md
    │   ├── testing-conventions.md
    │   └── xmlui-in-a-nutshell.md
    ├── dev-docs
    │   ├── accessibility.md
    │   ├── build-system.md
    │   ├── build-xmlui.md
    │   ├── component-behaviors.md
    │   ├── components-with-options.md
    │   ├── containers.md
    │   ├── data-operations.md
    │   ├── glossary.md
    │   ├── index.md
    │   ├── next
    │   │   ├── component-dev-guide.md
    │   │   ├── configuration-management-enhancement-summary.md
    │   │   ├── documentation-scripts-refactoring-complete-summary.md
    │   │   ├── documentation-scripts-refactoring-plan.md
    │   │   ├── duplicate-pattern-extraction-summary.md
    │   │   ├── error-handling-standardization-summary.md
    │   │   ├── generating-component-reference.md
    │   │   ├── index.md
    │   │   ├── logging-consistency-implementation-summary.md
    │   │   ├── project-build.md
    │   │   ├── project-structure.md
    │   │   ├── theme-context.md
    │   │   ├── tiptap-design-considerations.md
    │   │   ├── working-with-code.md
    │   │   ├── xmlui-runtime-architecture
    │   │   └── xmlui-wcag-accessibility-report.md
    │   ├── react-fundamentals.md
    │   ├── release-method.md
    │   ├── standalone-app.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── playwright.config.ts
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── generate-docs
    │   │   ├── build-downloads-map.mjs
    │   │   ├── build-pages-map.mjs
    │   │   ├── components-config.json
    │   │   ├── configuration-management.mjs
    │   │   ├── constants.mjs
    │   │   ├── create-theme-files.mjs
    │   │   ├── DocsGenerator.mjs
    │   │   ├── error-handling.mjs
    │   │   ├── extensions-config.json
    │   │   ├── folders.mjs
    │   │   ├── generate-summary-files.mjs
    │   │   ├── get-docs.mjs
    │   │   ├── input-handler.mjs
    │   │   ├── logger.mjs
    │   │   ├── logging-standards.mjs
    │   │   ├── MetadataProcessor.mjs
    │   │   ├── pattern-utilities.mjs
    │   │   └── utils.mjs
    │   ├── get-langserver-metadata.mjs
    │   ├── inline-links.mjs
    │   └── README-e2e-summary.md
    ├── src
    │   ├── abstractions
    │   │   ├── _conventions.md
    │   │   ├── ActionDefs.ts
    │   │   ├── AppContextDefs.ts
    │   │   ├── ComponentDefs.ts
    │   │   ├── ContainerDefs.ts
    │   │   ├── ExtensionDefs.ts
    │   │   ├── FunctionDefs.ts
    │   │   ├── RendererDefs.ts
    │   │   ├── scripting
    │   │   │   ├── BlockScope.ts
    │   │   │   ├── Compilation.ts
    │   │   │   ├── LogicalThread.ts
    │   │   │   ├── LoopScope.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── ScriptParserError.ts
    │   │   │   ├── Token.ts
    │   │   │   ├── TryScope.ts
    │   │   │   └── TryScopeExp.ts
    │   │   └── ThemingDefs.ts
    │   ├── components
    │   │   ├── _conventions.md
    │   │   ├── abstractions.ts
    │   │   ├── Accordion
    │   │   │   ├── Accordion.md
    │   │   │   ├── Accordion.module.scss
    │   │   │   ├── Accordion.spec.ts
    │   │   │   ├── Accordion.tsx
    │   │   │   ├── AccordionContext.tsx
    │   │   │   ├── AccordionItem.tsx
    │   │   │   ├── AccordionItemNative.tsx
    │   │   │   └── AccordionNative.tsx
    │   │   ├── Animation
    │   │   │   └── AnimationNative.tsx
    │   │   ├── APICall
    │   │   │   ├── APICall.md
    │   │   │   ├── APICall.spec.ts
    │   │   │   ├── APICall.tsx
    │   │   │   └── APICallNative.tsx
    │   │   ├── App
    │   │   │   ├── App.md
    │   │   │   ├── App.module.scss
    │   │   │   ├── App.spec.ts
    │   │   │   ├── App.tsx
    │   │   │   ├── AppLayoutContext.ts
    │   │   │   ├── AppNative.tsx
    │   │   │   ├── AppStateContext.ts
    │   │   │   ├── doc-resources
    │   │   │   │   ├── condensed-sticky.xmlui
    │   │   │   │   ├── condensed.xmlui
    │   │   │   │   ├── horizontal-sticky.xmlui
    │   │   │   │   ├── horizontal.xmlui
    │   │   │   │   ├── vertical-full-header.xmlui
    │   │   │   │   ├── vertical-sticky.xmlui
    │   │   │   │   └── vertical.xmlui
    │   │   │   ├── IndexerContext.ts
    │   │   │   ├── LinkInfoContext.ts
    │   │   │   ├── SearchContext.tsx
    │   │   │   ├── Sheet.module.scss
    │   │   │   └── Sheet.tsx
    │   │   ├── AppHeader
    │   │   │   ├── AppHeader.md
    │   │   │   ├── AppHeader.module.scss
    │   │   │   ├── AppHeader.spec.ts
    │   │   │   ├── AppHeader.tsx
    │   │   │   └── AppHeaderNative.tsx
    │   │   ├── AppState
    │   │   │   ├── AppState.md
    │   │   │   ├── AppState.spec.ts
    │   │   │   ├── AppState.tsx
    │   │   │   └── AppStateNative.tsx
    │   │   ├── AutoComplete
    │   │   │   ├── AutoComplete.md
    │   │   │   ├── AutoComplete.module.scss
    │   │   │   ├── AutoComplete.spec.ts
    │   │   │   ├── AutoComplete.tsx
    │   │   │   ├── AutoCompleteContext.tsx
    │   │   │   └── AutoCompleteNative.tsx
    │   │   ├── Avatar
    │   │   │   ├── Avatar.md
    │   │   │   ├── Avatar.module.scss
    │   │   │   ├── Avatar.spec.ts
    │   │   │   ├── Avatar.tsx
    │   │   │   └── AvatarNative.tsx
    │   │   ├── Backdrop
    │   │   │   ├── Backdrop.md
    │   │   │   ├── Backdrop.module.scss
    │   │   │   ├── Backdrop.spec.ts
    │   │   │   ├── Backdrop.tsx
    │   │   │   └── BackdropNative.tsx
    │   │   ├── Badge
    │   │   │   ├── Badge.md
    │   │   │   ├── Badge.module.scss
    │   │   │   ├── Badge.spec.ts
    │   │   │   ├── Badge.tsx
    │   │   │   └── BadgeNative.tsx
    │   │   ├── Bookmark
    │   │   │   ├── Bookmark.md
    │   │   │   ├── Bookmark.module.scss
    │   │   │   ├── Bookmark.spec.ts
    │   │   │   ├── Bookmark.tsx
    │   │   │   └── BookmarkNative.tsx
    │   │   ├── Breakout
    │   │   │   ├── Breakout.module.scss
    │   │   │   ├── Breakout.spec.ts
    │   │   │   ├── Breakout.tsx
    │   │   │   └── BreakoutNative.tsx
    │   │   ├── Button
    │   │   │   ├── Button-style.spec.ts
    │   │   │   ├── Button.md
    │   │   │   ├── Button.module.scss
    │   │   │   ├── Button.spec.ts
    │   │   │   ├── Button.tsx
    │   │   │   └── ButtonNative.tsx
    │   │   ├── Card
    │   │   │   ├── Card.md
    │   │   │   ├── Card.module.scss
    │   │   │   ├── Card.spec.ts
    │   │   │   ├── Card.tsx
    │   │   │   └── CardNative.tsx
    │   │   ├── Carousel
    │   │   │   ├── Carousel.md
    │   │   │   ├── Carousel.module.scss
    │   │   │   ├── Carousel.spec.ts
    │   │   │   ├── Carousel.tsx
    │   │   │   ├── CarouselContext.tsx
    │   │   │   ├── CarouselItem.tsx
    │   │   │   ├── CarouselItemNative.tsx
    │   │   │   └── CarouselNative.tsx
    │   │   ├── ChangeListener
    │   │   │   ├── ChangeListener.md
    │   │   │   ├── ChangeListener.spec.ts
    │   │   │   ├── ChangeListener.tsx
    │   │   │   └── ChangeListenerNative.tsx
    │   │   ├── chart-color-schemes.ts
    │   │   ├── Charts
    │   │   │   ├── AreaChart
    │   │   │   │   ├── AreaChart.md
    │   │   │   │   ├── AreaChart.spec.ts
    │   │   │   │   ├── AreaChart.tsx
    │   │   │   │   └── AreaChartNative.tsx
    │   │   │   ├── BarChart
    │   │   │   │   ├── BarChart.md
    │   │   │   │   ├── BarChart.module.scss
    │   │   │   │   ├── BarChart.spec.ts
    │   │   │   │   ├── BarChart.tsx
    │   │   │   │   └── BarChartNative.tsx
    │   │   │   ├── DonutChart
    │   │   │   │   ├── DonutChart.spec.ts
    │   │   │   │   └── DonutChart.tsx
    │   │   │   ├── LabelList
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   ├── LabelListNative.module.scss
    │   │   │   │   └── LabelListNative.tsx
    │   │   │   ├── Legend
    │   │   │   │   ├── Legend.spec.ts
    │   │   │   │   ├── Legend.tsx
    │   │   │   │   └── LegendNative.tsx
    │   │   │   ├── LineChart
    │   │   │   │   ├── LineChart.md
    │   │   │   │   ├── LineChart.module.scss
    │   │   │   │   ├── LineChart.spec.ts
    │   │   │   │   ├── LineChart.tsx
    │   │   │   │   └── LineChartNative.tsx
    │   │   │   ├── PieChart
    │   │   │   │   ├── PieChart.md
    │   │   │   │   ├── PieChart.spec.ts
    │   │   │   │   ├── PieChart.tsx
    │   │   │   │   ├── PieChartNative.module.scss
    │   │   │   │   └── PieChartNative.tsx
    │   │   │   ├── RadarChart
    │   │   │   │   ├── RadarChart.md
    │   │   │   │   ├── RadarChart.spec.ts
    │   │   │   │   ├── RadarChart.tsx
    │   │   │   │   └── RadarChartNative.tsx
    │   │   │   ├── Tooltip
    │   │   │   │   ├── TooltipContent.module.scss
    │   │   │   │   ├── TooltipContent.spec.ts
    │   │   │   │   └── TooltipContent.tsx
    │   │   │   └── utils
    │   │   │       ├── abstractions.ts
    │   │   │       └── ChartProvider.tsx
    │   │   ├── Checkbox
    │   │   │   ├── Checkbox.md
    │   │   │   ├── Checkbox.spec.ts
    │   │   │   └── Checkbox.tsx
    │   │   ├── CodeBlock
    │   │   │   ├── CodeBlock.module.scss
    │   │   │   ├── CodeBlock.spec.ts
    │   │   │   ├── CodeBlock.tsx
    │   │   │   ├── CodeBlockNative.tsx
    │   │   │   └── highlight-code.ts
    │   │   ├── collectedComponentMetadata.ts
    │   │   ├── ColorPicker
    │   │   │   ├── ColorPicker.md
    │   │   │   ├── ColorPicker.module.scss
    │   │   │   ├── ColorPicker.spec.ts
    │   │   │   ├── ColorPicker.tsx
    │   │   │   └── ColorPickerNative.tsx
    │   │   ├── Column
    │   │   │   ├── Column.md
    │   │   │   ├── Column.tsx
    │   │   │   ├── ColumnNative.tsx
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   └── TableContext.tsx
    │   │   ├── component-utils.ts
    │   │   ├── ComponentProvider.tsx
    │   │   ├── ComponentRegistryContext.tsx
    │   │   ├── container-helpers.tsx
    │   │   ├── ContentSeparator
    │   │   │   ├── ContentSeparator.md
    │   │   │   ├── ContentSeparator.module.scss
    │   │   │   ├── ContentSeparator.spec.ts
    │   │   │   ├── ContentSeparator.tsx
    │   │   │   └── ContentSeparatorNative.tsx
    │   │   ├── DataSource
    │   │   │   ├── DataSource.md
    │   │   │   └── DataSource.tsx
    │   │   ├── DateInput
    │   │   │   ├── DateInput.md
    │   │   │   ├── DateInput.module.scss
    │   │   │   ├── DateInput.spec.ts
    │   │   │   ├── DateInput.tsx
    │   │   │   └── DateInputNative.tsx
    │   │   ├── DatePicker
    │   │   │   ├── DatePicker.md
    │   │   │   ├── DatePicker.module.scss
    │   │   │   ├── DatePicker.spec.ts
    │   │   │   ├── DatePicker.tsx
    │   │   │   └── DatePickerNative.tsx
    │   │   ├── DropdownMenu
    │   │   │   ├── DropdownMenu.md
    │   │   │   ├── DropdownMenu.module.scss
    │   │   │   ├── DropdownMenu.spec.ts
    │   │   │   ├── DropdownMenu.tsx
    │   │   │   ├── DropdownMenuNative.tsx
    │   │   │   ├── MenuItem.md
    │   │   │   └── SubMenuItem.md
    │   │   ├── EmojiSelector
    │   │   │   ├── EmojiSelector.md
    │   │   │   ├── EmojiSelector.spec.ts
    │   │   │   ├── EmojiSelector.tsx
    │   │   │   └── EmojiSelectorNative.tsx
    │   │   ├── ExpandableItem
    │   │   │   ├── ExpandableItem.module.scss
    │   │   │   ├── ExpandableItem.spec.ts
    │   │   │   ├── ExpandableItem.tsx
    │   │   │   └── ExpandableItemNative.tsx
    │   │   ├── FileInput
    │   │   │   ├── FileInput.md
    │   │   │   ├── FileInput.module.scss
    │   │   │   ├── FileInput.spec.ts
    │   │   │   ├── FileInput.tsx
    │   │   │   └── FileInputNative.tsx
    │   │   ├── FileUploadDropZone
    │   │   │   ├── FileUploadDropZone.md
    │   │   │   ├── FileUploadDropZone.module.scss
    │   │   │   ├── FileUploadDropZone.spec.ts
    │   │   │   ├── FileUploadDropZone.tsx
    │   │   │   └── FileUploadDropZoneNative.tsx
    │   │   ├── FlowLayout
    │   │   │   ├── FlowLayout.md
    │   │   │   ├── FlowLayout.module.scss
    │   │   │   ├── FlowLayout.spec.ts
    │   │   │   ├── FlowLayout.spec.ts-snapshots
    │   │   │   │   └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
    │   │   │   ├── FlowLayout.tsx
    │   │   │   └── FlowLayoutNative.tsx
    │   │   ├── Footer
    │   │   │   ├── Footer.md
    │   │   │   ├── Footer.module.scss
    │   │   │   ├── Footer.spec.ts
    │   │   │   ├── Footer.tsx
    │   │   │   └── FooterNative.tsx
    │   │   ├── Form
    │   │   │   ├── Form.md
    │   │   │   ├── Form.module.scss
    │   │   │   ├── Form.spec.ts
    │   │   │   ├── Form.tsx
    │   │   │   ├── formActions.ts
    │   │   │   ├── FormContext.ts
    │   │   │   └── FormNative.tsx
    │   │   ├── FormItem
    │   │   │   ├── FormItem.md
    │   │   │   ├── FormItem.module.scss
    │   │   │   ├── FormItem.spec.ts
    │   │   │   ├── FormItem.tsx
    │   │   │   ├── FormItemNative.tsx
    │   │   │   ├── HelperText.module.scss
    │   │   │   ├── HelperText.tsx
    │   │   │   ├── ItemWithLabel.tsx
    │   │   │   └── Validations.ts
    │   │   ├── FormSection
    │   │   │   ├── FormSection.md
    │   │   │   ├── FormSection.ts
    │   │   │   └── FormSection.xmlui
    │   │   ├── Fragment
    │   │   │   ├── Fragment.spec.ts
    │   │   │   └── Fragment.tsx
    │   │   ├── Heading
    │   │   │   ├── abstractions.ts
    │   │   │   ├── H1.md
    │   │   │   ├── H1.spec.ts
    │   │   │   ├── H2.md
    │   │   │   ├── H2.spec.ts
    │   │   │   ├── H3.md
    │   │   │   ├── H3.spec.ts
    │   │   │   ├── H4.md
    │   │   │   ├── H4.spec.ts
    │   │   │   ├── H5.md
    │   │   │   ├── H5.spec.ts
    │   │   │   ├── H6.md
    │   │   │   ├── H6.spec.ts
    │   │   │   ├── Heading.md
    │   │   │   ├── Heading.module.scss
    │   │   │   ├── Heading.spec.ts
    │   │   │   ├── Heading.tsx
    │   │   │   └── HeadingNative.tsx
    │   │   ├── HoverCard
    │   │   │   ├── HoverCard.tsx
    │   │   │   └── HovercardNative.tsx
    │   │   ├── HtmlTags
    │   │   │   ├── HtmlTags.module.scss
    │   │   │   ├── HtmlTags.spec.ts
    │   │   │   └── HtmlTags.tsx
    │   │   ├── Icon
    │   │   │   ├── AdmonitionDanger.tsx
    │   │   │   ├── AdmonitionInfo.tsx
    │   │   │   ├── AdmonitionNote.tsx
    │   │   │   ├── AdmonitionTip.tsx
    │   │   │   ├── AdmonitionWarning.tsx
    │   │   │   ├── ApiIcon.tsx
    │   │   │   ├── ArrowDropDown.module.scss
    │   │   │   ├── ArrowDropDown.tsx
    │   │   │   ├── ArrowDropUp.module.scss
    │   │   │   ├── ArrowDropUp.tsx
    │   │   │   ├── ArrowLeft.module.scss
    │   │   │   ├── ArrowLeft.tsx
    │   │   │   ├── ArrowRight.module.scss
    │   │   │   ├── ArrowRight.tsx
    │   │   │   ├── Attach.tsx
    │   │   │   ├── Binding.module.scss
    │   │   │   ├── Binding.tsx
    │   │   │   ├── BoardIcon.tsx
    │   │   │   ├── BoxIcon.tsx
    │   │   │   ├── CheckIcon.tsx
    │   │   │   ├── ChevronDownIcon.tsx
    │   │   │   ├── ChevronLeft.tsx
    │   │   │   ├── ChevronRight.tsx
    │   │   │   ├── ChevronUpIcon.tsx
    │   │   │   ├── CodeFileIcon.tsx
    │   │   │   ├── CodeSandbox.tsx
    │   │   │   ├── CompactListIcon.tsx
    │   │   │   ├── ContentCopyIcon.tsx
    │   │   │   ├── DarkToLightIcon.tsx
    │   │   │   ├── DatabaseIcon.module.scss
    │   │   │   ├── DatabaseIcon.tsx
    │   │   │   ├── DocFileIcon.tsx
    │   │   │   ├── DocIcon.tsx
    │   │   │   ├── DotMenuHorizontalIcon.tsx
    │   │   │   ├── DotMenuIcon.tsx
    │   │   │   ├── EmailIcon.tsx
    │   │   │   ├── EmptyFolderIcon.tsx
    │   │   │   ├── ErrorIcon.tsx
    │   │   │   ├── ExpressionIcon.tsx
    │   │   │   ├── FillPlusCricleIcon.tsx
    │   │   │   ├── FilterIcon.tsx
    │   │   │   ├── FolderIcon.tsx
    │   │   │   ├── GlobeIcon.tsx
    │   │   │   ├── HomeIcon.tsx
    │   │   │   ├── HyperLinkIcon.tsx
    │   │   │   ├── Icon.md
    │   │   │   ├── Icon.module.scss
    │   │   │   ├── Icon.spec.ts
    │   │   │   ├── Icon.tsx
    │   │   │   ├── IconNative.tsx
    │   │   │   ├── ImageFileIcon.tsx
    │   │   │   ├── Inspect.tsx
    │   │   │   ├── LightToDark.tsx
    │   │   │   ├── LinkIcon.tsx
    │   │   │   ├── ListIcon.tsx
    │   │   │   ├── LooseListIcon.tsx
    │   │   │   ├── MoonIcon.tsx
    │   │   │   ├── MoreOptionsIcon.tsx
    │   │   │   ├── NoSortIcon.tsx
    │   │   │   ├── PDFIcon.tsx
    │   │   │   ├── PenIcon.tsx
    │   │   │   ├── PhoneIcon.tsx
    │   │   │   ├── PhotoIcon.tsx
    │   │   │   ├── PlusIcon.tsx
    │   │   │   ├── SearchIcon.tsx
    │   │   │   ├── ShareIcon.tsx
    │   │   │   ├── SortAscendingIcon.tsx
    │   │   │   ├── SortDescendingIcon.tsx
    │   │   │   ├── StarsIcon.tsx
    │   │   │   ├── SunIcon.tsx
    │   │   │   ├── svg
    │   │   │   │   ├── admonition_danger.svg
    │   │   │   │   ├── admonition_info.svg
    │   │   │   │   ├── admonition_note.svg
    │   │   │   │   ├── admonition_tip.svg
    │   │   │   │   ├── admonition_warning.svg
    │   │   │   │   ├── api.svg
    │   │   │   │   ├── arrow-dropdown.svg
    │   │   │   │   ├── arrow-left.svg
    │   │   │   │   ├── arrow-right.svg
    │   │   │   │   ├── arrow-up.svg
    │   │   │   │   ├── attach.svg
    │   │   │   │   ├── binding.svg
    │   │   │   │   ├── box.svg
    │   │   │   │   ├── bulb.svg
    │   │   │   │   ├── code-file.svg
    │   │   │   │   ├── code-sandbox.svg
    │   │   │   │   ├── dark_to_light.svg
    │   │   │   │   ├── database.svg
    │   │   │   │   ├── doc.svg
    │   │   │   │   ├── empty-folder.svg
    │   │   │   │   ├── expression.svg
    │   │   │   │   ├── eye-closed.svg
    │   │   │   │   ├── eye-dark.svg
    │   │   │   │   ├── eye.svg
    │   │   │   │   ├── file-text.svg
    │   │   │   │   ├── filter.svg
    │   │   │   │   ├── folder.svg
    │   │   │   │   ├── img.svg
    │   │   │   │   ├── inspect.svg
    │   │   │   │   ├── light_to_dark.svg
    │   │   │   │   ├── moon.svg
    │   │   │   │   ├── pdf.svg
    │   │   │   │   ├── photo.svg
    │   │   │   │   ├── share.svg
    │   │   │   │   ├── stars.svg
    │   │   │   │   ├── sun.svg
    │   │   │   │   ├── trending-down.svg
    │   │   │   │   ├── trending-level.svg
    │   │   │   │   ├── trending-up.svg
    │   │   │   │   ├── txt.svg
    │   │   │   │   ├── unknown-file.svg
    │   │   │   │   ├── unlink.svg
    │   │   │   │   └── xls.svg
    │   │   │   ├── TableDeleteColumnIcon.tsx
    │   │   │   ├── TableDeleteRowIcon.tsx
    │   │   │   ├── TableInsertColumnIcon.tsx
    │   │   │   ├── TableInsertRowIcon.tsx
    │   │   │   ├── TrashIcon.tsx
    │   │   │   ├── TrendingDownIcon.tsx
    │   │   │   ├── TrendingLevelIcon.tsx
    │   │   │   ├── TrendingUpIcon.tsx
    │   │   │   ├── TxtIcon.tsx
    │   │   │   ├── UnknownFileIcon.tsx
    │   │   │   ├── UnlinkIcon.tsx
    │   │   │   ├── UserIcon.tsx
    │   │   │   ├── WarningIcon.tsx
    │   │   │   └── XlsIcon.tsx
    │   │   ├── IconProvider.tsx
    │   │   ├── IconRegistryContext.tsx
    │   │   ├── IFrame
    │   │   │   ├── IFrame.md
    │   │   │   ├── IFrame.module.scss
    │   │   │   ├── IFrame.spec.ts
    │   │   │   ├── IFrame.tsx
    │   │   │   └── IFrameNative.tsx
    │   │   ├── Image
    │   │   │   ├── Image.md
    │   │   │   ├── Image.module.scss
    │   │   │   ├── Image.spec.ts
    │   │   │   ├── Image.tsx
    │   │   │   └── ImageNative.tsx
    │   │   ├── Input
    │   │   │   ├── index.ts
    │   │   │   ├── InputAdornment.module.scss
    │   │   │   ├── InputAdornment.tsx
    │   │   │   ├── InputDivider.module.scss
    │   │   │   ├── InputDivider.tsx
    │   │   │   ├── InputLabel.module.scss
    │   │   │   ├── InputLabel.tsx
    │   │   │   ├── PartialInput.module.scss
    │   │   │   └── PartialInput.tsx
    │   │   ├── InspectButton
    │   │   │   ├── InspectButton.module.scss
    │   │   │   └── InspectButton.tsx
    │   │   ├── Items
    │   │   │   ├── Items.md
    │   │   │   ├── Items.spec.ts
    │   │   │   ├── Items.tsx
    │   │   │   └── ItemsNative.tsx
    │   │   ├── Link
    │   │   │   ├── Link.md
    │   │   │   ├── Link.module.scss
    │   │   │   ├── Link.spec.ts
    │   │   │   ├── Link.tsx
    │   │   │   └── LinkNative.tsx
    │   │   ├── List
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── List.md
    │   │   │   ├── List.module.scss
    │   │   │   ├── List.spec.ts
    │   │   │   ├── List.tsx
    │   │   │   └── ListNative.tsx
    │   │   ├── Logo
    │   │   │   ├── doc-resources
    │   │   │   │   └── xmlui-logo.svg
    │   │   │   ├── Logo.md
    │   │   │   ├── Logo.tsx
    │   │   │   └── LogoNative.tsx
    │   │   ├── Markdown
    │   │   │   ├── CodeText.module.scss
    │   │   │   ├── CodeText.tsx
    │   │   │   ├── Markdown.md
    │   │   │   ├── Markdown.module.scss
    │   │   │   ├── Markdown.spec.ts
    │   │   │   ├── Markdown.tsx
    │   │   │   ├── MarkdownNative.tsx
    │   │   │   ├── parse-binding-expr.ts
    │   │   │   └── utils.ts
    │   │   ├── metadata-helpers.ts
    │   │   ├── ModalDialog
    │   │   │   ├── ConfirmationModalContextProvider.tsx
    │   │   │   ├── Dialog.module.scss
    │   │   │   ├── Dialog.tsx
    │   │   │   ├── ModalDialog.md
    │   │   │   ├── ModalDialog.module.scss
    │   │   │   ├── ModalDialog.spec.ts
    │   │   │   ├── ModalDialog.tsx
    │   │   │   ├── ModalDialogNative.tsx
    │   │   │   └── ModalVisibilityContext.tsx
    │   │   ├── NavGroup
    │   │   │   ├── NavGroup.md
    │   │   │   ├── NavGroup.module.scss
    │   │   │   ├── NavGroup.spec.ts
    │   │   │   ├── NavGroup.tsx
    │   │   │   ├── NavGroupContext.ts
    │   │   │   └── NavGroupNative.tsx
    │   │   ├── NavLink
    │   │   │   ├── NavLink.md
    │   │   │   ├── NavLink.module.scss
    │   │   │   ├── NavLink.spec.ts
    │   │   │   ├── NavLink.tsx
    │   │   │   └── NavLinkNative.tsx
    │   │   ├── NavPanel
    │   │   │   ├── NavPanel.md
    │   │   │   ├── NavPanel.module.scss
    │   │   │   ├── NavPanel.spec.ts
    │   │   │   ├── NavPanel.tsx
    │   │   │   └── NavPanelNative.tsx
    │   │   ├── NestedApp
    │   │   │   ├── AppWithCodeView.module.scss
    │   │   │   ├── AppWithCodeView.tsx
    │   │   │   ├── AppWithCodeViewNative.tsx
    │   │   │   ├── defaultProps.tsx
    │   │   │   ├── logo.svg
    │   │   │   ├── NestedApp.module.scss
    │   │   │   ├── NestedApp.tsx
    │   │   │   ├── NestedAppNative.tsx
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── utils.ts
    │   │   ├── NoResult
    │   │   │   ├── NoResult.md
    │   │   │   ├── NoResult.module.scss
    │   │   │   ├── NoResult.spec.ts
    │   │   │   ├── NoResult.tsx
    │   │   │   └── NoResultNative.tsx
    │   │   ├── NumberBox
    │   │   │   ├── numberbox-abstractions.ts
    │   │   │   ├── NumberBox.md
    │   │   │   ├── NumberBox.module.scss
    │   │   │   ├── NumberBox.spec.ts
    │   │   │   ├── NumberBox.tsx
    │   │   │   └── NumberBoxNative.tsx
    │   │   ├── Option
    │   │   │   ├── Option.md
    │   │   │   ├── Option.spec.ts
    │   │   │   ├── Option.tsx
    │   │   │   ├── OptionNative.tsx
    │   │   │   └── OptionTypeProvider.tsx
    │   │   ├── PageMetaTitle
    │   │   │   ├── PageMetaTilteNative.tsx
    │   │   │   ├── PageMetaTitle.md
    │   │   │   ├── PageMetaTitle.spec.ts
    │   │   │   └── PageMetaTitle.tsx
    │   │   ├── Pages
    │   │   │   ├── Page.md
    │   │   │   ├── Pages.md
    │   │   │   ├── Pages.module.scss
    │   │   │   ├── Pages.tsx
    │   │   │   └── PagesNative.tsx
    │   │   ├── Pagination
    │   │   │   ├── Pagination.md
    │   │   │   ├── Pagination.module.scss
    │   │   │   ├── Pagination.spec.ts
    │   │   │   ├── Pagination.tsx
    │   │   │   └── PaginationNative.tsx
    │   │   ├── PositionedContainer
    │   │   │   ├── PositionedContainer.module.scss
    │   │   │   ├── PositionedContainer.tsx
    │   │   │   └── PositionedContainerNative.tsx
    │   │   ├── ProfileMenu
    │   │   │   ├── ProfileMenu.module.scss
    │   │   │   └── ProfileMenu.tsx
    │   │   ├── ProgressBar
    │   │   │   ├── ProgressBar.md
    │   │   │   ├── ProgressBar.module.scss
    │   │   │   ├── ProgressBar.spec.ts
    │   │   │   ├── ProgressBar.tsx
    │   │   │   └── ProgressBarNative.tsx
    │   │   ├── Queue
    │   │   │   ├── Queue.md
    │   │   │   ├── Queue.spec.ts
    │   │   │   ├── Queue.tsx
    │   │   │   ├── queueActions.ts
    │   │   │   └── QueueNative.tsx
    │   │   ├── RadioGroup
    │   │   │   ├── RadioGroup.md
    │   │   │   ├── RadioGroup.module.scss
    │   │   │   ├── RadioGroup.spec.ts
    │   │   │   ├── RadioGroup.tsx
    │   │   │   ├── RadioGroupNative.tsx
    │   │   │   ├── RadioItem.tsx
    │   │   │   └── RadioItemNative.tsx
    │   │   ├── RealTimeAdapter
    │   │   │   ├── RealTimeAdapter.tsx
    │   │   │   └── RealTimeAdapterNative.tsx
    │   │   ├── Redirect
    │   │   │   ├── Redirect.md
    │   │   │   ├── Redirect.spec.ts
    │   │   │   └── Redirect.tsx
    │   │   ├── ResponsiveBar
    │   │   │   ├── README.md
    │   │   │   ├── ResponsiveBar.md
    │   │   │   ├── ResponsiveBar.module.scss
    │   │   │   ├── ResponsiveBar.spec.ts
    │   │   │   ├── ResponsiveBar.tsx
    │   │   │   └── ResponsiveBarNative.tsx
    │   │   ├── Select
    │   │   │   ├── HiddenOption.tsx
    │   │   │   ├── OptionContext.ts
    │   │   │   ├── Select.md
    │   │   │   ├── Select.module.scss
    │   │   │   ├── Select.spec.ts
    │   │   │   ├── Select.tsx
    │   │   │   ├── SelectContext.tsx
    │   │   │   └── SelectNative.tsx
    │   │   ├── SelectionStore
    │   │   │   ├── SelectionStore.md
    │   │   │   ├── SelectionStore.tsx
    │   │   │   └── SelectionStoreNative.tsx
    │   │   ├── Slider
    │   │   │   ├── Slider.md
    │   │   │   ├── Slider.module.scss
    │   │   │   ├── Slider.spec.ts
    │   │   │   ├── Slider.tsx
    │   │   │   └── SliderNative.tsx
    │   │   ├── Slot
    │   │   │   ├── Slot.md
    │   │   │   ├── Slot.spec.ts
    │   │   │   └── Slot.ts
    │   │   ├── SlotItem.tsx
    │   │   ├── SpaceFiller
    │   │   │   ├── SpaceFiller.md
    │   │   │   ├── SpaceFiller.module.scss
    │   │   │   ├── SpaceFiller.spec.ts
    │   │   │   ├── SpaceFiller.tsx
    │   │   │   └── SpaceFillerNative.tsx
    │   │   ├── Spinner
    │   │   │   ├── Spinner.md
    │   │   │   ├── Spinner.module.scss
    │   │   │   ├── Spinner.spec.ts
    │   │   │   ├── Spinner.tsx
    │   │   │   └── SpinnerNative.tsx
    │   │   ├── Splitter
    │   │   │   ├── HSplitter.md
    │   │   │   ├── HSplitter.spec.ts
    │   │   │   ├── Splitter.md
    │   │   │   ├── Splitter.module.scss
    │   │   │   ├── Splitter.spec.ts
    │   │   │   ├── Splitter.tsx
    │   │   │   ├── SplitterNative.tsx
    │   │   │   ├── utils.ts
    │   │   │   ├── VSplitter.md
    │   │   │   └── VSplitter.spec.ts
    │   │   ├── Stack
    │   │   │   ├── CHStack.md
    │   │   │   ├── CHStack.spec.ts
    │   │   │   ├── CVStack.md
    │   │   │   ├── CVStack.spec.ts
    │   │   │   ├── HStack.md
    │   │   │   ├── HStack.spec.ts
    │   │   │   ├── Stack.md
    │   │   │   ├── Stack.module.scss
    │   │   │   ├── Stack.spec.ts
    │   │   │   ├── Stack.tsx
    │   │   │   ├── StackNative.tsx
    │   │   │   ├── VStack.md
    │   │   │   └── VStack.spec.ts
    │   │   ├── StickyBox
    │   │   │   ├── StickyBox.md
    │   │   │   ├── StickyBox.module.scss
    │   │   │   ├── StickyBox.tsx
    │   │   │   └── StickyBoxNative.tsx
    │   │   ├── Switch
    │   │   │   ├── Switch.md
    │   │   │   ├── Switch.spec.ts
    │   │   │   └── Switch.tsx
    │   │   ├── Table
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── react-table-config.d.ts
    │   │   │   ├── Table.md
    │   │   │   ├── Table.module.scss
    │   │   │   ├── Table.spec.ts
    │   │   │   ├── Table.tsx
    │   │   │   ├── TableNative.tsx
    │   │   │   └── useRowSelection.tsx
    │   │   ├── TableOfContents
    │   │   │   ├── TableOfContents.module.scss
    │   │   │   ├── TableOfContents.spec.ts
    │   │   │   ├── TableOfContents.tsx
    │   │   │   └── TableOfContentsNative.tsx
    │   │   ├── Tabs
    │   │   │   ├── TabContext.tsx
    │   │   │   ├── TabItem.md
    │   │   │   ├── TabItem.tsx
    │   │   │   ├── TabItemNative.tsx
    │   │   │   ├── Tabs.md
    │   │   │   ├── Tabs.module.scss
    │   │   │   ├── Tabs.spec.ts
    │   │   │   ├── Tabs.tsx
    │   │   │   └── TabsNative.tsx
    │   │   ├── Text
    │   │   │   ├── Text.md
    │   │   │   ├── Text.module.scss
    │   │   │   ├── Text.spec.ts
    │   │   │   ├── Text.tsx
    │   │   │   └── TextNative.tsx
    │   │   ├── TextArea
    │   │   │   ├── TextArea.md
    │   │   │   ├── TextArea.module.scss
    │   │   │   ├── TextArea.spec.ts
    │   │   │   ├── TextArea.tsx
    │   │   │   ├── TextAreaNative.tsx
    │   │   │   ├── TextAreaResizable.tsx
    │   │   │   └── useComposedRef.ts
    │   │   ├── TextBox
    │   │   │   ├── TextBox.md
    │   │   │   ├── TextBox.module.scss
    │   │   │   ├── TextBox.spec.ts
    │   │   │   ├── TextBox.tsx
    │   │   │   └── TextBoxNative.tsx
    │   │   ├── Theme
    │   │   │   ├── NotificationToast.tsx
    │   │   │   ├── Theme.md
    │   │   │   ├── Theme.module.scss
    │   │   │   ├── Theme.spec.ts
    │   │   │   ├── Theme.tsx
    │   │   │   └── ThemeNative.tsx
    │   │   ├── TimeInput
    │   │   │   ├── TimeInput.md
    │   │   │   ├── TimeInput.module.scss
    │   │   │   ├── TimeInput.spec.ts
    │   │   │   ├── TimeInput.tsx
    │   │   │   ├── TimeInputNative.tsx
    │   │   │   └── utils.ts
    │   │   ├── Timer
    │   │   │   ├── Timer.md
    │   │   │   ├── Timer.spec.ts
    │   │   │   ├── Timer.tsx
    │   │   │   └── TimerNative.tsx
    │   │   ├── Toggle
    │   │   │   ├── Toggle.module.scss
    │   │   │   └── Toggle.tsx
    │   │   ├── ToneChangerButton
    │   │   │   ├── ToneChangerButton.md
    │   │   │   ├── ToneChangerButton.spec.ts
    │   │   │   └── ToneChangerButton.tsx
    │   │   ├── ToneSwitch
    │   │   │   ├── ToneSwitch.md
    │   │   │   ├── ToneSwitch.module.scss
    │   │   │   ├── ToneSwitch.spec.ts
    │   │   │   ├── ToneSwitch.tsx
    │   │   │   └── ToneSwitchNative.tsx
    │   │   ├── Tooltip
    │   │   │   ├── Tooltip.md
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.spec.ts
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── TooltipNative.tsx
    │   │   ├── Tree
    │   │   │   ├── testData.ts
    │   │   │   ├── Tree-dynamic.spec.ts
    │   │   │   ├── Tree-icons.spec.ts
    │   │   │   ├── Tree.md
    │   │   │   ├── Tree.spec.ts
    │   │   │   ├── TreeComponent.module.scss
    │   │   │   ├── TreeComponent.tsx
    │   │   │   └── TreeNative.tsx
    │   │   ├── TreeDisplay
    │   │   │   ├── TreeDisplay.md
    │   │   │   ├── TreeDisplay.module.scss
    │   │   │   ├── TreeDisplay.tsx
    │   │   │   └── TreeDisplayNative.tsx
    │   │   ├── ValidationSummary
    │   │   │   ├── ValidationSummary.module.scss
    │   │   │   └── ValidationSummary.tsx
    │   │   └── VisuallyHidden.tsx
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   ├── ComponentRenderer.ts
    │   │   │   ├── LoaderRenderer.ts
    │   │   │   ├── standalone.ts
    │   │   │   └── treeAbstractions.ts
    │   │   ├── action
    │   │   │   ├── actions.ts
    │   │   │   ├── APICall.tsx
    │   │   │   ├── FileDownloadAction.tsx
    │   │   │   ├── FileUploadAction.tsx
    │   │   │   ├── NavigateAction.tsx
    │   │   │   └── TimedAction.tsx
    │   │   ├── ApiBoundComponent.tsx
    │   │   ├── appContext
    │   │   │   ├── date-functions.ts
    │   │   │   ├── math-function.ts
    │   │   │   └── misc-utils.ts
    │   │   ├── AppContext.tsx
    │   │   ├── behaviors
    │   │   │   ├── Behavior.tsx
    │   │   │   └── CoreBehaviors.tsx
    │   │   ├── component-hooks.ts
    │   │   ├── ComponentDecorator.tsx
    │   │   ├── ComponentViewer.tsx
    │   │   ├── CompoundComponent.tsx
    │   │   ├── constants.ts
    │   │   ├── DebugViewProvider.tsx
    │   │   ├── descriptorHelper.ts
    │   │   ├── devtools
    │   │   │   ├── InspectorDialog.module.scss
    │   │   │   ├── InspectorDialog.tsx
    │   │   │   └── InspectorDialogVisibilityContext.tsx
    │   │   ├── EngineError.ts
    │   │   ├── event-handlers.ts
    │   │   ├── InspectorButton.module.scss
    │   │   ├── InspectorContext.tsx
    │   │   ├── interception
    │   │   │   ├── abstractions.ts
    │   │   │   ├── ApiInterceptor.ts
    │   │   │   ├── ApiInterceptorProvider.tsx
    │   │   │   ├── apiInterceptorWorker.ts
    │   │   │   ├── Backend.ts
    │   │   │   ├── Errors.ts
    │   │   │   ├── IndexedDb.ts
    │   │   │   ├── initMock.ts
    │   │   │   ├── InMemoryDb.ts
    │   │   │   ├── ReadonlyCollection.ts
    │   │   │   └── useApiInterceptorContext.tsx
    │   │   ├── loader
    │   │   │   ├── ApiLoader.tsx
    │   │   │   ├── DataLoader.tsx
    │   │   │   ├── ExternalDataLoader.tsx
    │   │   │   ├── Loader.tsx
    │   │   │   ├── MockLoaderRenderer.tsx
    │   │   │   └── PageableLoader.tsx
    │   │   ├── LoaderComponent.tsx
    │   │   ├── markup-check.ts
    │   │   ├── parts.ts
    │   │   ├── renderers.ts
    │   │   ├── rendering
    │   │   │   ├── AppContent.tsx
    │   │   │   ├── AppRoot.tsx
    │   │   │   ├── AppWrapper.tsx
    │   │   │   ├── buildProxy.ts
    │   │   │   ├── collectFnVarDeps.ts
    │   │   │   ├── ComponentAdapter.tsx
    │   │   │   ├── ComponentWrapper.tsx
    │   │   │   ├── Container.tsx
    │   │   │   ├── containers.ts
    │   │   │   ├── ContainerWrapper.tsx
    │   │   │   ├── ErrorBoundary.module.scss
    │   │   │   ├── ErrorBoundary.tsx
    │   │   │   ├── InvalidComponent.module.scss
    │   │   │   ├── InvalidComponent.tsx
    │   │   │   ├── nodeUtils.ts
    │   │   │   ├── reducer.ts
    │   │   │   ├── renderChild.tsx
    │   │   │   ├── StandaloneComponent.tsx
    │   │   │   ├── StateContainer.tsx
    │   │   │   ├── UnknownComponent.module.scss
    │   │   │   ├── UnknownComponent.tsx
    │   │   │   └── valueExtractor.ts
    │   │   ├── reportEngineError.ts
    │   │   ├── RestApiProxy.ts
    │   │   ├── script-runner
    │   │   │   ├── asyncProxy.ts
    │   │   │   ├── AttributeValueParser.ts
    │   │   │   ├── bannedFunctions.ts
    │   │   │   ├── BindingTreeEvaluationContext.ts
    │   │   │   ├── eval-tree-async.ts
    │   │   │   ├── eval-tree-common.ts
    │   │   │   ├── eval-tree-sync.ts
    │   │   │   ├── ParameterParser.ts
    │   │   │   ├── process-statement-async.ts
    │   │   │   ├── process-statement-common.ts
    │   │   │   ├── process-statement-sync.ts
    │   │   │   ├── ScriptingSourceTree.ts
    │   │   │   ├── simplify-expression.ts
    │   │   │   ├── statement-queue.ts
    │   │   │   └── visitors.ts
    │   │   ├── StandaloneApp.tsx
    │   │   ├── StandaloneExtensionManager.ts
    │   │   ├── TableOfContentsContext.tsx
    │   │   ├── theming
    │   │   │   ├── _themes.scss
    │   │   │   ├── component-layout-resolver.ts
    │   │   │   ├── extendThemeUtils.ts
    │   │   │   ├── hvar.ts
    │   │   │   ├── layout-resolver.ts
    │   │   │   ├── parse-layout-props.ts
    │   │   │   ├── StyleContext.tsx
    │   │   │   ├── StyleRegistry.ts
    │   │   │   ├── ThemeContext.tsx
    │   │   │   ├── ThemeProvider.tsx
    │   │   │   ├── themes
    │   │   │   │   ├── base-utils.ts
    │   │   │   │   ├── palette.ts
    │   │   │   │   ├── root.ts
    │   │   │   │   ├── solid.ts
    │   │   │   │   ├── theme-colors.ts
    │   │   │   │   └── xmlui.ts
    │   │   │   ├── themeVars.module.scss
    │   │   │   ├── themeVars.ts
    │   │   │   ├── transformThemeVars.ts
    │   │   │   └── utils.ts
    │   │   ├── utils
    │   │   │   ├── actionUtils.ts
    │   │   │   ├── audio-utils.ts
    │   │   │   ├── base64-utils.ts
    │   │   │   ├── compound-utils.ts
    │   │   │   ├── css-utils.ts
    │   │   │   ├── DataLoaderQueryKeyGenerator.ts
    │   │   │   ├── date-utils.ts
    │   │   │   ├── extractParam.ts
    │   │   │   ├── hooks.tsx
    │   │   │   ├── LruCache.ts
    │   │   │   ├── mergeProps.ts
    │   │   │   ├── misc.ts
    │   │   │   ├── request-params.ts
    │   │   │   ├── statementUtils.ts
    │   │   │   └── treeUtils.ts
    │   │   └── xmlui-parser.ts
    │   ├── index-standalone.ts
    │   ├── index.scss
    │   ├── index.ts
    │   ├── language-server
    │   │   ├── server-common.ts
    │   │   ├── server-web-worker.ts
    │   │   ├── server.ts
    │   │   ├── services
    │   │   │   ├── common
    │   │   │   │   ├── docs-generation.ts
    │   │   │   │   ├── lsp-utils.ts
    │   │   │   │   ├── metadata-utils.ts
    │   │   │   │   └── syntax-node-utilities.ts
    │   │   │   ├── completion.ts
    │   │   │   ├── diagnostic.ts
    │   │   │   ├── format.ts
    │   │   │   └── hover.ts
    │   │   └── xmlui-metadata-generated.mjs
    │   ├── logging
    │   │   ├── LoggerContext.tsx
    │   │   ├── LoggerInitializer.tsx
    │   │   ├── LoggerService.ts
    │   │   └── xmlui.ts
    │   ├── logo.svg
    │   ├── parsers
    │   │   ├── common
    │   │   │   ├── GenericToken.ts
    │   │   │   ├── InputStream.ts
    │   │   │   └── utils.ts
    │   │   ├── scripting
    │   │   │   ├── code-behind-collect.ts
    │   │   │   ├── Lexer.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── Parser.ts
    │   │   │   ├── ParserError.ts
    │   │   │   ├── ScriptingNodeTypes.ts
    │   │   │   ├── TokenTrait.ts
    │   │   │   ├── TokenType.ts
    │   │   │   └── tree-visitor.ts
    │   │   ├── style-parser
    │   │   │   ├── errors.ts
    │   │   │   ├── source-tree.ts
    │   │   │   ├── StyleInputStream.ts
    │   │   │   ├── StyleLexer.ts
    │   │   │   ├── StyleParser.ts
    │   │   │   └── tokens.ts
    │   │   └── xmlui-parser
    │   │       ├── CharacterCodes.ts
    │   │       ├── diagnostics.ts
    │   │       ├── fileExtensions.ts
    │   │       ├── index.ts
    │   │       ├── lint.ts
    │   │       ├── parser.ts
    │   │       ├── ParserError.ts
    │   │       ├── scanner.ts
    │   │       ├── syntax-kind.ts
    │   │       ├── syntax-node.ts
    │   │       ├── transform.ts
    │   │       ├── utils.ts
    │   │       ├── xmlui-serializer.ts
    │   │       └── xmlui-tree.ts
    │   ├── react-app-env.d.ts
    │   ├── syntax
    │   │   ├── monaco
    │   │   │   ├── grammar.monacoLanguage.ts
    │   │   │   ├── index.ts
    │   │   │   ├── xmlui-dark.ts
    │   │   │   ├── xmlui-light.ts
    │   │   │   └── xmluiscript.monacoLanguage.ts
    │   │   └── textMate
    │   │       ├── index.ts
    │   │       ├── xmlui-dark.json
    │   │       ├── xmlui-light.json
    │   │       ├── xmlui.json
    │   │       └── xmlui.tmLanguage.json
    │   ├── testing
    │   │   ├── assertions.ts
    │   │   ├── component-test-helpers.ts
    │   │   ├── ComponentDrivers.ts
    │   │   ├── drivers
    │   │   │   ├── DateInputDriver.ts
    │   │   │   ├── ModalDialogDriver.ts
    │   │   │   ├── NumberBoxDriver.ts
    │   │   │   ├── TextBoxDriver.ts
    │   │   │   ├── TimeInputDriver.ts
    │   │   │   ├── TimerDriver.ts
    │   │   │   └── TreeDriver.ts
    │   │   ├── fixtures.ts
    │   │   ├── infrastructure
    │   │   │   ├── index.html
    │   │   │   ├── main.tsx
    │   │   │   ├── public
    │   │   │   │   ├── mockServiceWorker.js
    │   │   │   │   ├── resources
    │   │   │   │   │   ├── bell.svg
    │   │   │   │   │   ├── box.svg
    │   │   │   │   │   ├── doc.svg
    │   │   │   │   │   ├── eye.svg
    │   │   │   │   │   ├── flower-640x480.jpg
    │   │   │   │   │   ├── sun.svg
    │   │   │   │   │   ├── test-image-100x100.jpg
    │   │   │   │   │   └── txt.svg
    │   │   │   │   └── serve.json
    │   │   │   └── TestBed.tsx
    │   │   └── themed-app-test-helpers.ts
    │   └── vite-env.d.ts
    ├── tests
    │   ├── components
    │   │   ├── CodeBlock
    │   │   │   └── hightlight-code.test.ts
    │   │   ├── playground-pattern.test.ts
    │   │   └── Tree
    │   │       └── Tree-states.test.ts
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   └── treeAbstractions.test.ts
    │   │   ├── container
    │   │   │   └── buildProxy.test.ts
    │   │   ├── interception
    │   │   │   ├── orderBy.test.ts
    │   │   │   ├── ReadOnlyCollection.test.ts
    │   │   │   └── request-param-converter.test.ts
    │   │   ├── scripts-runner
    │   │   │   ├── AttributeValueParser.test.ts
    │   │   │   ├── eval-tree-arrow-async.test.ts
    │   │   │   ├── eval-tree-arrow.test.ts
    │   │   │   ├── eval-tree-func-decl-async.test.ts
    │   │   │   ├── eval-tree-func-decl.test.ts
    │   │   │   ├── eval-tree-pre-post.test.ts
    │   │   │   ├── eval-tree-regression.test.ts
    │   │   │   ├── eval-tree.test.ts
    │   │   │   ├── function-proxy.test.ts
    │   │   │   ├── parser-regression.test.ts
    │   │   │   ├── process-event.test.ts
    │   │   │   ├── process-function.test.ts
    │   │   │   ├── process-implicit-context.test.ts
    │   │   │   ├── process-statement-asgn.test.ts
    │   │   │   ├── process-statement-destruct.test.ts
    │   │   │   ├── process-statement-regs.test.ts
    │   │   │   ├── process-statement-sync.test.ts
    │   │   │   ├── process-statement.test.ts
    │   │   │   ├── process-switch-sync.test.ts
    │   │   │   ├── process-switch.test.ts
    │   │   │   ├── process-try-sync.test.ts
    │   │   │   ├── process-try.test.ts
    │   │   │   └── test-helpers.ts
    │   │   ├── test-metadata-handler.ts
    │   │   ├── theming
    │   │   │   ├── border-segments.test.ts
    │   │   │   ├── component-layout.resolver.test.ts
    │   │   │   ├── layout-property-parser.test.ts
    │   │   │   ├── layout-resolver.test.ts
    │   │   │   ├── layout-resolver2.test.ts
    │   │   │   ├── layout-vp-override.test.ts
    │   │   │   └── padding-segments.test.ts
    │   │   └── utils
    │   │       ├── date-utils.test.ts
    │   │       ├── format-human-elapsed-time.test.ts
    │   │       └── LruCache.test.ts
    │   ├── language-server
    │   │   ├── completion.test.ts
    │   │   ├── format.test.ts
    │   │   ├── hover.test.ts
    │   │   └── mockData.ts
    │   └── parsers
    │       ├── common
    │       │   └── input-stream.test.ts
    │       ├── markdown
    │       │   └── parse-binding-expression.test.ts
    │       ├── parameter-parser.test.ts
    │       ├── paremeter-parser.test.ts
    │       ├── scripting
    │       │   ├── eval-tree-arrow.test.ts
    │       │   ├── eval-tree-pre-post.test.ts
    │       │   ├── eval-tree.test.ts
    │       │   ├── function-proxy.test.ts
    │       │   ├── lexer-literals.test.ts
    │       │   ├── lexer-misc.test.ts
    │       │   ├── module-parse.test.ts
    │       │   ├── parser-arrow.test.ts
    │       │   ├── parser-assignments.test.ts
    │       │   ├── parser-binary.test.ts
    │       │   ├── parser-destructuring.test.ts
    │       │   ├── parser-errors.test.ts
    │       │   ├── parser-expressions.test.ts
    │       │   ├── parser-function.test.ts
    │       │   ├── parser-literals.test.ts
    │       │   ├── parser-primary.test.ts
    │       │   ├── parser-regex.test.ts
    │       │   ├── parser-statements.test.ts
    │       │   ├── parser-unary.test.ts
    │       │   ├── process-event.test.ts
    │       │   ├── process-implicit-context.test.ts
    │       │   ├── process-statement-asgn.test.ts
    │       │   ├── process-statement-destruct.test.ts
    │       │   ├── process-statement-regs.test.ts
    │       │   ├── process-statement-sync.test.ts
    │       │   ├── process-statement.test.ts
    │       │   ├── process-switch-sync.test.ts
    │       │   ├── process-switch.test.ts
    │       │   ├── process-try-sync.test.ts
    │       │   ├── process-try.test.ts
    │       │   ├── simplify-expression.test.ts
    │       │   ├── statement-hooks.test.ts
    │       │   └── test-helpers.ts
    │       ├── style-parser
    │       │   ├── generateHvarChain.test.ts
    │       │   ├── parseHVar.test.ts
    │       │   ├── parser.test.ts
    │       │   └── tokens.test.ts
    │       └── xmlui
    │           ├── lint.test.ts
    │           ├── parser.test.ts
    │           ├── scanner.test.ts
    │           ├── transform.attr.test.ts
    │           ├── transform.circular.test.ts
    │           ├── transform.element.test.ts
    │           ├── transform.errors.test.ts
    │           ├── transform.escape.test.ts
    │           ├── transform.regression.test.ts
    │           ├── transform.script.test.ts
    │           ├── transform.test.ts
    │           └── xmlui.ts
    ├── tests-e2e
    │   ├── api-bound-component-regression.spec.ts
    │   ├── api-call-as-extracted-component.spec.ts
    │   ├── assign-to-object-or-array-regression.spec.ts
    │   ├── binding-regression.spec.ts
    │   ├── children-as-template-context-vars.spec.ts
    │   ├── compound-component.spec.ts
    │   ├── context-vars-regression.spec.ts
    │   ├── data-bindings.spec.ts
    │   ├── datasource-and-api-usage-in-var.spec.ts
    │   ├── datasource-direct-binding.spec.ts
    │   ├── datasource-onLoaded-regression.spec.ts
    │   ├── modify-array-item-regression.spec.ts
    │   ├── namespaces.spec.ts
    │   ├── push-to-array-regression.spec.ts
    │   ├── screen-breakpoints.spec.ts
    │   ├── scripting.spec.ts
    │   ├── state-scope-in-pages.spec.ts
    │   └── state-var-scopes.spec.ts
    ├── tsconfig.bin.json
    ├── tsconfig.json
    ├── tsconfig.node.json
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

--------------------------------------------------------------------------------
/xmlui/src/components/Form/Form.spec.ts:
--------------------------------------------------------------------------------

```typescript
   1 | import type { ApiInterceptorDefinition } from "../../components-core/interception/abstractions";
   2 | import { labelPositionValues } from "../abstractions";
   3 | import { expect, test } from "../../testing/fixtures";
   4 | import { getElementStyle } from "../../testing/component-test-helpers";
   5 | 
   6 | // Test data constants
   7 | const errorDisplayInterceptor: ApiInterceptorDefinition = {
   8 |   initialize: `
   9 |     $state.items = {
  10 |       [10]: { name: "Smith", id: 10 }
  11 |     };
  12 |     $state.currentId = 10;
  13 |   `,
  14 |   operations: {
  15 |     "no-validation-error": {
  16 |       url: "/no-validation-error",
  17 |       method: "post",
  18 |       handler: `return true;`,
  19 |     },
  20 |     "general-validation-error": {
  21 |       url: "/general-validation-error",
  22 |       method: "post",
  23 |       handler: `
  24 |         throw Errors.HttpError(404,
  25 |           {
  26 |             message: "General error message from the backend",
  27 |             issues: [
  28 |               { message: "Error for the whole form", severity: "error" },
  29 |               { message: "Warning for the whole form", severity: "warning" },
  30 |             ]
  31 |           }
  32 |         );
  33 |       `,
  34 |     },
  35 |     "field-validation-error": {
  36 |       url: "/field-validation-error",
  37 |       method: "post",
  38 |       handler: `
  39 |         throw Errors.HttpError(404,
  40 |           {
  41 |             message: "Field error message from the backend",
  42 |             issues: [
  43 |               { field: "test", message: "Display warning", severity: "warning" },
  44 |             ]
  45 |           }
  46 |         );
  47 |       `,
  48 |     },
  49 |   },
  50 | };
  51 | 
  52 | // =============================================================================
  53 | // BASIC FUNCTIONALITY TESTS
  54 | // =============================================================================
  55 | 
  56 | test.describe("Basic Functionality", () => {
  57 |   test("component renders with default props", async ({ initTestBed, createFormDriver }) => {
  58 |     await initTestBed(`<Form testId="form"/>`);
  59 |     const driver = await createFormDriver("form");
  60 |     await expect(driver.component).toBeVisible();
  61 |   });
  62 | 
  63 |   test("component renders with form items", async ({ initTestBed, page }) => {
  64 |     await initTestBed(`
  65 |       <Form>
  66 |         <FormItem label="Name" bindTo="name" />
  67 |         <FormItem label="Email" bindTo="email" />
  68 |       </Form>
  69 |     `);
  70 | 
  71 |     await expect(page.getByText("Name")).toBeVisible();
  72 |     await expect(page.getByText("Email")).toBeVisible();
  73 |   });
  74 | 
  75 |   test("component renders save and cancel buttons by default", async ({ initTestBed, page }) => {
  76 |     await initTestBed(`<Form/>`);
  77 | 
  78 |     await expect(page.getByRole("button", { name: "Cancel" })).toBeVisible();
  79 |     await expect(page.getByRole("button", { name: "Save" })).toBeVisible();
  80 |   });
  81 | 
  82 |   test("component renders custom button labels", async ({ initTestBed, page }) => {
  83 |     await initTestBed(`
  84 |       <Form cancelLabel="Go Back" saveLabel="Submit"/>
  85 |     `);
  86 | 
  87 |     await expect(page.getByRole("button", { name: "Go Back" })).toBeVisible();
  88 |     await expect(page.getByRole("button", { name: "Submit" })).toBeVisible();
  89 |   });
  90 | 
  91 |   test("component swaps cancel and save button positions", async ({ initTestBed, page }) => {
  92 |     await initTestBed(`
  93 |       <Form swapCancelAndSave="true"/>
  94 |     `);
  95 | 
  96 |     const buttons = page.getByRole("button");
  97 |     await expect(buttons.first()).toHaveText("Save");
  98 |     await expect(buttons.last()).toHaveText("Cancel");
  99 |   });
 100 | 
 101 |   // =============================================================================
 102 |   // DATA PROPERTY TESTS
 103 |   // =============================================================================
 104 | 
 105 |   test.describe("data property", () => {
 106 |     test("sets initial form data", async ({
 107 |       initTestBed,
 108 |       createFormItemDriver,
 109 |       createTextBoxDriver,
 110 |     }) => {
 111 |       await initTestBed(`
 112 |         <Form data="{{ name: 'John', age: 30 }}">
 113 |           <FormItem label="Name" bindTo="name" testId="nameField" />
 114 |           <FormItem label="Age" bindTo="age" type="integer" testId="ageField" />
 115 |         </Form>
 116 |       `);
 117 | 
 118 |       const nameDriver = await createFormItemDriver("nameField");
 119 |       const nameInput = await createTextBoxDriver(nameDriver.input);
 120 |       const ageDriver = await createFormItemDriver("ageField");
 121 |       const ageInput = await createTextBoxDriver(ageDriver.input);
 122 | 
 123 |       await expect(nameInput.field).toHaveValue("John");
 124 |       await expect(ageInput.field).toHaveValue("30");
 125 |     });
 126 | 
 127 |     test("handles null data gracefully", async ({ initTestBed, createFormDriver }) => {
 128 |       await initTestBed(`<Form data="{null}" testId="form"/>`);
 129 |       const driver = await createFormDriver("form");
 130 |       await expect(driver.component).toBeVisible();
 131 |     });
 132 | 
 133 |     test("handles undefined data gracefully", async ({ initTestBed, createFormDriver }) => {
 134 |       await initTestBed(`<Form data="{undefined}" testId="form"/>`);
 135 |       const driver = await createFormDriver("form");
 136 |       await expect(driver.component).toBeVisible();
 137 |     });
 138 | 
 139 |     test("handles empty object data", async ({ initTestBed, createFormDriver }) => {
 140 |       await initTestBed(`<Form data="{{}}" testId="form"/>`);
 141 |       const driver = await createFormDriver("form");
 142 |       await expect(driver.component).toBeVisible();
 143 |     });
 144 |   });
 145 | 
 146 |   // =============================================================================
 147 |   // ITEM LABEL POSITION TESTS
 148 |   // =============================================================================
 149 | 
 150 |   test.describe("itemLabelPosition property", () => {
 151 |     labelPositionValues.forEach((position) => {
 152 |       test(`sets item label position to ${position}`, async ({
 153 |         initTestBed,
 154 |         createFormItemDriver,
 155 |       }) => {
 156 |         await initTestBed(`
 157 |           <Form itemLabelPosition="${position}">
 158 |             <FormItem label="Test Label" bindTo="test" testId="testField" />
 159 |           </Form>
 160 |         `);
 161 | 
 162 |         const driver = await createFormItemDriver("testField");
 163 |         await expect(driver.label).toBeVisible();
 164 |       });
 165 |     });
 166 | 
 167 |     test("handles invalid itemLabelPosition gracefully", async ({
 168 |       initTestBed,
 169 |       createFormDriver,
 170 |     }) => {
 171 |       await initTestBed(`<Form itemLabelPosition="invalid" testId="form"/>`);
 172 |       const driver = await createFormDriver("form");
 173 |       await expect(driver.component).toBeVisible();
 174 |     });
 175 |   });
 176 | 
 177 |   // =============================================================================
 178 |   // ITEM LABEL WIDTH TESTS
 179 |   // =============================================================================
 180 | 
 181 |   test.describe("itemLabelWidth property", () => {
 182 |     test("sets custom label width", async ({ initTestBed, createFormItemDriver }) => {
 183 |       await initTestBed(`
 184 |         <Form itemLabelWidth="200px">
 185 |           <FormItem label="Test Label" bindTo="test" testId="testField" />
 186 |         </Form>
 187 |       `);
 188 | 
 189 |       const driver = await createFormItemDriver("testField");
 190 |       await expect(driver.label).toBeVisible();
 191 |     });
 192 | 
 193 |     test("handles numeric label width", async ({ initTestBed, createFormItemDriver }) => {
 194 |       await initTestBed(`
 195 |         <Form itemLabelWidth="150">
 196 |           <FormItem label="Test Label" bindTo="test" testId="testField" />
 197 |         </Form>
 198 |       `);
 199 | 
 200 |       const driver = await createFormItemDriver("testField");
 201 |       await expect(driver.label).toBeVisible();
 202 |     });
 203 | 
 204 |     test("handles invalid label width gracefully", async ({ initTestBed, createFormDriver }) => {
 205 |       await initTestBed(`<Form itemLabelWidth="invalid" testId="form"/>`);
 206 |       const driver = await createFormDriver("form");
 207 |       await expect(driver.component).toBeVisible();
 208 |     });
 209 | 
 210 |     test("handles theme variable", async ({ initTestBed, createFormItemDriver }) => {
 211 |       const spaceBase = 0.25; //rem
 212 |       const labelSize = 10;
 213 |       const widthInPx = labelSize * spaceBase * 16; //px
 214 |       await initTestBed(`
 215 |         <Theme space-base="${spaceBase}rem">
 216 |           <Form itemLabelWidth="$space-${labelSize}">
 217 |             <FormItem label="Test Label" bindTo="test" testId="testField" />
 218 |           </Form>
 219 |         </Theme>
 220 |       `);
 221 |       const driver = await createFormItemDriver("testField");
 222 |       const labelWidth = await getElementStyle(driver.label, "width");
 223 |       expect(labelWidth).toBe(`${widthInPx}px`);
 224 |     });
 225 |   });
 226 | 
 227 |   // =============================================================================
 228 |   // ITEM LABEL BREAK TESTS
 229 |   // =============================================================================
 230 | 
 231 |   test.describe("itemLabelBreak property", () => {
 232 |     test("enables label line breaking", async ({ initTestBed, createFormItemDriver }) => {
 233 |       await initTestBed(`
 234 |         <Form itemLabelBreak="true">
 235 |           <FormItem label="Very Long Label That Should Break" bindTo="test" testId="testField" />
 236 |         </Form>
 237 |       `);
 238 | 
 239 |       const driver = await createFormItemDriver("testField");
 240 |       await expect(driver.label).toBeVisible();
 241 |     });
 242 | 
 243 |     test("disables label line breaking", async ({ initTestBed, createFormItemDriver }) => {
 244 |       await initTestBed(`
 245 |         <Form itemLabelBreak="false">
 246 |           <FormItem label="Very Long Label That Should Not Break" bindTo="test" testId="testField" />
 247 |         </Form>
 248 |       `);
 249 | 
 250 |       const driver = await createFormItemDriver("testField");
 251 |       await expect(driver.label).toBeVisible();
 252 |     });
 253 |   });
 254 | 
 255 |   // =============================================================================
 256 |   // ENABLED PROPERTY TESTS
 257 |   // =============================================================================
 258 | 
 259 |   test.describe("enabled property", () => {
 260 |     test("disables save button when enabled is false", async ({ initTestBed, page }) => {
 261 |       await initTestBed(`
 262 |         <Form enabled="false">
 263 |           <FormItem label="Test" bindTo="test" />
 264 |         </Form>
 265 |       `);
 266 | 
 267 |       const saveButton = page.getByRole("button", { name: "Save" });
 268 |       await expect(saveButton).toBeDisabled();
 269 |     });
 270 | 
 271 |     test("enables form when enabled is true", async ({ initTestBed, page }) => {
 272 |       await initTestBed(`
 273 |         <Form enabled="true">
 274 |           <FormItem label="Test" bindTo="test" />
 275 |         </Form>
 276 |       `);
 277 | 
 278 |       const saveButton = page.getByRole("button", { name: "Save" });
 279 |       const cancelButton = page.getByRole("button", { name: "Cancel" });
 280 | 
 281 |       await expect(saveButton).toBeEnabled();
 282 |       await expect(cancelButton).toBeEnabled();
 283 |     });
 284 |   });
 285 | 
 286 |   // =============================================================================
 287 |   // BUTTON ROW TEMPLATE TESTS
 288 |   // =============================================================================
 289 | 
 290 |   test.describe("buttonRowTemplate property", () => {
 291 |     test("supports custom button row template", async ({ initTestBed, page }) => {
 292 |       await initTestBed(`
 293 |         <Form>
 294 |           <FormItem label="Test" bindTo="test" />
 295 |           <property name="buttonRowTemplate">
 296 |             <Button label="Custom Save" type="submit" />
 297 |             <Button label="Custom Cancel" type="button" />
 298 |           </property>
 299 |         </Form>
 300 |       `);
 301 | 
 302 |       await expect(page.getByRole("button", { name: "Custom Save" })).toBeVisible();
 303 |       await expect(page.getByRole("button", { name: "Custom Cancel" })).toBeVisible();
 304 |     });
 305 |   });
 306 | 
 307 |   // =============================================================================
 308 |   // EVENT TESTS
 309 |   // =============================================================================
 310 | 
 311 |   test.describe("Events", () => {
 312 |     test("onSubmit event fires with form data", async ({ initTestBed, page }) => {
 313 |       const { testStateDriver } = await initTestBed(`
 314 |         <Form data="{{ name: 'John', email: '[email protected]' }}" onSubmit="data => testState = data">
 315 |           <FormItem label="Name" bindTo="name" />
 316 |           <FormItem label="Email" bindTo="email" />
 317 |         </Form>
 318 |       `);
 319 | 
 320 |       await page.getByRole("button", { name: "Save" }).click();
 321 | 
 322 |       await expect.poll(testStateDriver.testState).toEqual({
 323 |         name: "John",
 324 |         email: "[email protected]",
 325 |       });
 326 |     });
 327 | 
 328 |     test("onCancel event fires when cancel button clicked", async ({ initTestBed, page }) => {
 329 |       const { testStateDriver } = await initTestBed(`
 330 |         <Form onCancel="testState = 'cancelled'">
 331 |           <FormItem label="Test" bindTo="test" />
 332 |         </Form>
 333 |       `);
 334 | 
 335 |       await page.getByRole("button", { name: "Cancel" }).click();
 336 | 
 337 |       await expect.poll(testStateDriver.testState).toEqual("cancelled");
 338 |     });
 339 | 
 340 |     test("onSuccess event fires on successful submission", async ({
 341 |       initTestBed,
 342 |       page,
 343 |       createFormDriver,
 344 |     }) => {
 345 |       const { testStateDriver } = await initTestBed(
 346 |         `
 347 |         <Form
 348 |           testId="form"
 349 |           submitUrl="/test-success"
 350 |           onSuccess="testState = 'success'; console.log('Submitted successfully')"
 351 |           data="{{ name: 'Test' }}">
 352 |           <FormItem label="Name" bindTo="name" />
 353 |         </Form>
 354 |       `,
 355 |         {
 356 |           apiInterceptor: {
 357 |             operations: {
 358 |               testSuccess: {
 359 |                 url: "/test-success",
 360 |                 method: "put",
 361 |                 handler: `return { success: true };`,
 362 |               },
 363 |             },
 364 |           },
 365 |         },
 366 |       );
 367 | 
 368 |       const driver = await createFormDriver("form");
 369 |       await driver.submitForm();
 370 |       await expect.poll(testStateDriver.testState).toEqual("success");
 371 |     });
 372 | 
 373 |     test("onReset event fires when form is reset", async ({ initTestBed, page }) => {
 374 |       const { testStateDriver } = await initTestBed(`
 375 |         <Form
 376 |           id="testForm"
 377 |           onReset="testState = 'reset'"
 378 |           data="{{ name: 'Test' }}">
 379 |           <FormItem label="Name" bindTo="name" />
 380 |           <Button onClick="testForm.reset()" label="Reset Form" />
 381 |         </Form>
 382 |       `);
 383 | 
 384 |       await page.getByRole("button", { name: "Reset Form" }).click();
 385 | 
 386 |       await expect.poll(testStateDriver.testState).toEqual("reset");
 387 |     });
 388 |   });
 389 | 
 390 |   // =============================================================================
 391 |   // API TESTS
 392 |   // =============================================================================
 393 | 
 394 |   test.describe("APIs", () => {
 395 |     test("update method updates form data", async ({
 396 |       initTestBed,
 397 |       page,
 398 |       createFormItemDriver,
 399 |       createTextBoxDriver,
 400 |     }) => {
 401 |       await initTestBed(`
 402 |         <Form
 403 |           id="testForm"
 404 |           data="{{ name: 'Original', age: 25 }}">
 405 |           <FormItem label="Name" bindTo="name" testId="nameField" />
 406 |           <FormItem label="Age" bindTo="age" type="integer" testId="ageField" />
 407 |           <Button onClick="testForm.update({ name: 'Updated', age: 30 })" label="Update" />
 408 |         </Form>
 409 |       `);
 410 | 
 411 |       const nameDriver = await createFormItemDriver("nameField");
 412 |       const nameInput = await createTextBoxDriver(nameDriver.input);
 413 |       const ageDriver = await createFormItemDriver("ageField");
 414 |       const ageInput = await createTextBoxDriver(ageDriver.input);
 415 | 
 416 |       await expect(nameInput.field).toHaveValue("Original");
 417 |       await expect(ageInput.field).toHaveValue("25");
 418 | 
 419 |       await page.getByRole("button", { name: "Update" }).click();
 420 | 
 421 |       await expect(nameInput.field).toHaveValue("Updated");
 422 |       await expect(ageInput.field).toHaveValue("30");
 423 |     });
 424 | 
 425 |     test("reset method resets form to initial state", async ({
 426 |       initTestBed,
 427 |       page,
 428 |       createFormItemDriver,
 429 |       createTextBoxDriver,
 430 |     }) => {
 431 |       await initTestBed(`
 432 |         <Form
 433 |           id="testForm"
 434 |           data="{{ name: 'Initial' }}">
 435 |           <FormItem label="Name" bindTo="name" testId="nameField" />
 436 |           <Button onClick="testForm.reset()" label="Reset" />
 437 |         </Form>
 438 |       `);
 439 | 
 440 |       const nameDriver = await createFormItemDriver("nameField");
 441 |       const nameInput = await createTextBoxDriver(nameDriver.input);
 442 | 
 443 |       // Change the input value
 444 |       await nameInput.field.fill("Changed");
 445 |       await expect(nameInput.field).toHaveValue("Changed");
 446 | 
 447 |       // Reset the form
 448 |       await page.getByRole("button", { name: "Reset" }).click();
 449 | 
 450 |       await expect(nameInput.field).toHaveValue("Initial");
 451 |     });
 452 |   });
 453 | 
 454 |   // =============================================================================
 455 |   // CONTEXT VARIABLE TESTS
 456 |   // =============================================================================
 457 | 
 458 |   test.describe("Context Variables", () => {
 459 |     test("$data context variable provides access to form data", async ({
 460 |       initTestBed,
 461 |       page,
 462 |       createFormItemDriver,
 463 |     }) => {
 464 |       // This test needs specific FormItem behavior that may vary
 465 |       await initTestBed(`
 466 |         <Form data="{{ isEnabled: true, name: 'Joe' }}">
 467 |           <FormItem testId="isEnabled" label="Enable name" bindTo="isEnabled" type="checkbox" />
 468 |           <FormItem testId="name" enabled="{$data.isEnabled}" label="Name" bindTo="name" />
 469 |         </Form>
 470 |       `);
 471 | 
 472 |       const enableSwitch = (await createFormItemDriver("isEnabled")).checkbox;
 473 |       const nameInput = (await createFormItemDriver("name")).textBox;
 474 | 
 475 |       await expect(enableSwitch).toBeVisible();
 476 |       await expect(nameInput).toBeEnabled();
 477 |       await enableSwitch.click();
 478 |       await expect(nameInput).toBeDisabled();
 479 |     });
 480 | 
 481 |     test("$data.update method updates form data", async ({
 482 |       initTestBed,
 483 |       page,
 484 |       createFormItemDriver,
 485 |     }) => {
 486 |       await initTestBed(`
 487 |         <Form data="{{ counter: 0 }}">
 488 |           <FormItem testId="counter" label="Counter" bindTo="counter" type="integer" />
 489 |           <Button onClick="$data.update({ counter: $data.counter + 1 })" label="Increment" />
 490 |         </Form>
 491 |       `);
 492 | 
 493 |       const counterDriver = await createFormItemDriver("counter");
 494 |       const counterInput = counterDriver.textBox;
 495 |       await expect(counterInput).toHaveValue("0");
 496 | 
 497 |       await page.getByRole("button", { name: "Increment" }).click({ force: true });
 498 | 
 499 |       await expect(counterInput).toHaveValue("1");
 500 |     });
 501 |   });
 502 | 
 503 |   // =============================================================================
 504 |   // SUBMIT URL AND METHOD TESTS
 505 |   // =============================================================================
 506 | 
 507 |   test.describe("Submit URL and Method", () => {
 508 |     test("submits to custom URL with POST method (new date)", async ({
 509 |       initTestBed,
 510 |       createFormDriver,
 511 |     }) => {
 512 |       await initTestBed(
 513 |         `<App><Form testId="form" submitUrl="/custom-endpoint" data="{null}">
 514 |             <FormItem label="Name" bindTo="name" />
 515 |         </Form></App>`,
 516 |         {
 517 |           apiInterceptor: {
 518 |             operations: {
 519 |               customEndpoint: {
 520 |                 url: "/custom-endpoint",
 521 |                 method: "post",
 522 |                 handler: `return { success: true };`,
 523 |               },
 524 |             },
 525 |           },
 526 |         },
 527 |       );
 528 | 
 529 |       const driver = await createFormDriver("form");
 530 |       await driver.submitForm();
 531 | 
 532 |       const response = await driver.getSubmitResponse("/custom-endpoint");
 533 |       expect(response.ok()).toEqual(true);
 534 |     });
 535 | 
 536 |     test("uses PUT method for existing data", async ({ initTestBed, createFormDriver }) => {
 537 |       await initTestBed(
 538 |         `<Form submitUrl="/entities/1" data="{{ id: 1, name: 'Existing' }}">
 539 |           <FormItem label="Name" bindTo="name" />
 540 |          </Form>`,
 541 |         {
 542 |           apiInterceptor: {
 543 |             operations: {
 544 |               updateEntity: {
 545 |                 url: "/entities/1",
 546 |                 method: "put",
 547 |                 handler: `return { success: true };`,
 548 |               },
 549 |             },
 550 |           },
 551 |         },
 552 |       );
 553 | 
 554 |       const driver = await createFormDriver();
 555 |       await driver.submitForm();
 556 | 
 557 |       const response = await driver.getSubmitResponse("/entities/1");
 558 |       expect(response.ok()).toEqual(true);
 559 |     });
 560 | 
 561 |     test("uses custom submit method", async ({ initTestBed, createFormDriver }) => {
 562 |       await initTestBed(
 563 |         `<Form submitUrl="/custom" submitMethod="put" data="{{ name: 'Test' }}">
 564 |           <FormItem label="Name" bindTo="name" />
 565 |          </Form>`,
 566 |         {
 567 |           apiInterceptor: {
 568 |             operations: {
 569 |               putCustom: {
 570 |                 url: "/custom",
 571 |                 method: "put",
 572 |                 handler: `return { success: true };`,
 573 |               },
 574 |             },
 575 |           },
 576 |         },
 577 |       );
 578 | 
 579 |       const driver = await createFormDriver();
 580 |       await driver.submitForm();
 581 | 
 582 |       const response = await driver.getSubmitResponse("/custom");
 583 |       expect(response.ok()).toEqual(true);
 584 |     });
 585 |   });
 586 | });
 587 | 
 588 | // =============================================================================
 589 | // ACCESSIBILITY TESTS
 590 | // =============================================================================
 591 | 
 592 | test.describe("Accessibility", () => {
 593 |   test("form has correct semantic role", async ({ initTestBed, page }) => {
 594 |     await initTestBed(`<Form/>`);
 595 |     await expect(page.locator("form")).toBeVisible();
 596 |   });
 597 | 
 598 |   test("form items are properly associated with labels", async ({
 599 |     initTestBed,
 600 |     createFormItemDriver,
 601 |   }) => {
 602 |     await initTestBed(`
 603 |       <Form>
 604 |         <FormItem label="Full Name" bindTo="name" testId="nameField" />
 605 |       </Form>
 606 |     `);
 607 | 
 608 |     const driver = await createFormItemDriver("nameField");
 609 |     await expect(driver.label).toBeVisible();
 610 |     await expect(driver.label).toHaveText("Full Name");
 611 |   });
 612 | 
 613 |   test("form submission is keyboard accessible", async ({ initTestBed, page }) => {
 614 |     const { testStateDriver } = await initTestBed(`
 615 |       <Form onSubmit="testState = 'submitted via keyboard'">
 616 |         <FormItem label="Name" bindTo="name" />
 617 |       </Form>
 618 |     `);
 619 | 
 620 |     const submitButton = page.getByRole("button", { name: "Save" });
 621 |     await submitButton.focus();
 622 |     await page.keyboard.press("Enter");
 623 | 
 624 |     await expect.poll(testStateDriver.testState).toEqual("submitted via keyboard");
 625 |   });
 626 | 
 627 |   test("form cancel is keyboard accessible", async ({ initTestBed, page }) => {
 628 |     const { testStateDriver } = await initTestBed(`
 629 |       <Form onCancel="testState = 'cancelled via keyboard'">
 630 |         <FormItem label="Name" bindTo="name" />
 631 |       </Form>
 632 |     `);
 633 | 
 634 |     const cancelButton = page.getByRole("button", { name: "Cancel" });
 635 |     await cancelButton.focus();
 636 |     await page.keyboard.press("Enter");
 637 | 
 638 |     await expect.poll(testStateDriver.testState).toEqual("cancelled via keyboard");
 639 |   });
 640 | 
 641 |   test("disabled form buttons are properly disabled", async ({ initTestBed, page }) => {
 642 |     await initTestBed(`
 643 |       <Form enabled="false">
 644 |         <FormItem label="Name" bindTo="name" />
 645 |       </Form>
 646 |     `);
 647 | 
 648 |     const saveButton = page.getByRole("button", { name: "Save" });
 649 |     await expect(saveButton).toBeDisabled();
 650 |   });
 651 | });
 652 | 
 653 | // =============================================================================
 654 | // THEME VARIABLE TESTS
 655 | // =============================================================================
 656 | 
 657 | test.describe("Theme Variables", () => {
 658 |   test("applies custom gap theme variable", async ({ initTestBed, createFormDriver }) => {
 659 |     await initTestBed(`<Form testId="form"/>`, {
 660 |       testThemeVars: {
 661 |         "gap-Form": "2rem",
 662 |       },
 663 |     });
 664 | 
 665 |     const driver = await createFormDriver("form");
 666 |     await expect(driver.component).toHaveCSS("gap", "32px");
 667 |   });
 668 | 
 669 |   test("applies custom button row gap theme variable", async ({
 670 |     initTestBed,
 671 |     createFormDriver,
 672 |   }) => {
 673 |     await initTestBed(`<Form testId="form"/>`, {
 674 |       testThemeVars: {
 675 |         "gap-buttonRow-Form": "1rem",
 676 |       },
 677 |     });
 678 | 
 679 |     const driver = await createFormDriver("form");
 680 |     await expect(driver.component).toBeVisible();
 681 |   });
 682 | 
 683 |   test("applies validation display theme variables", async ({ initTestBed, page }) => {
 684 |     // This test requires validation system to trigger error display
 685 |     await initTestBed(
 686 |       `
 687 |       <Form>
 688 |         <FormItem testId="email" label="Email" bindTo="email" type="email" required="true" />
 689 |       </Form>
 690 |     `,
 691 |       {
 692 |         testThemeVars: {
 693 |           "backgroundColor-ValidationDisplay-error": "rgb(255, 0, 0)",
 694 |           "textColor-ValidationDisplay-error": "rgb(255, 255, 255)",
 695 |         },
 696 |       },
 697 |     );
 698 | 
 699 |     // Trigger validation by submitting with empty required field
 700 |     await page.getByRole("button", { name: "Save" }).click();
 701 | 
 702 |     const emailComp = page.getByTestId("email");
 703 |     await expect(emailComp).toContainText("This field is required");
 704 |   });
 705 | });
 706 | 
 707 | // =============================================================================
 708 | // EDGE CASES TESTS
 709 | // =============================================================================
 710 | 
 711 | test.describe("Edge Cases", () => {
 712 |   test("handles form without any form items", async ({ initTestBed, createFormDriver }) => {
 713 |     await initTestBed(`<Form testId="form"/>`);
 714 |     const driver = await createFormDriver("form");
 715 |     await expect(driver.component).toBeVisible();
 716 |   });
 717 | 
 718 |   test("handles malformed data input gracefully", async ({ initTestBed, createFormDriver }) => {
 719 |     await initTestBed(`<Form data="{invalidJson}" testId="form"/>`);
 720 |     const driver = await createFormDriver("form");
 721 |     await expect(driver.component).toBeVisible();
 722 |   });
 723 | 
 724 |   test("Form does not render if data receives malformed input", async ({
 725 |     initTestBed,
 726 |     createFormDriver,
 727 |   }) => {
 728 |     await initTestBed(`<Form data="{}" />`);
 729 |     await expect((await createFormDriver()).component).not.toBeAttached();
 730 |   });
 731 | 
 732 |   test("handles deeply nested data structure", async ({
 733 |     initTestBed,
 734 |     createFormItemDriver,
 735 |     createTextBoxDriver,
 736 |   }) => {
 737 |     await initTestBed(`
 738 |       <Form data="{{ user: { profile: { name: 'John' } } }}">
 739 |         <FormItem label="Name" bindTo="user.profile.name" testId="nameField" />
 740 |       </Form>
 741 |     `);
 742 | 
 743 |     const driver = await createFormItemDriver("nameField");
 744 |     const input = await createTextBoxDriver(driver.input);
 745 |     await expect(input.field).toHaveValue("John");
 746 |   });
 747 | 
 748 |   test("handles form with validation errors", async ({ initTestBed, page }) => {
 749 |     await initTestBed(`
 750 |       <Form>
 751 |         <FormItem label="Email" bindTo="email" type="email" required="true" />
 752 |       </Form>
 753 |     `);
 754 | 
 755 |     // Try to submit form without filling required field
 756 |     await page.getByRole("button", { name: "Save" }).click();
 757 | 
 758 |     // Validation should prevent submission and show error
 759 |     const form = page.locator("form");
 760 |     await expect(form).toBeVisible();
 761 |   });
 762 | 
 763 |   test("handles rapid form submissions", async ({ initTestBed, page }) => {
 764 |     const { testStateDriver } = await initTestBed(`
 765 |       <Form onSubmit="testState = (testState || 0) + 1">
 766 |         <FormItem label="Name" bindTo="name" />
 767 |       </Form>
 768 |     `);
 769 | 
 770 |     const submitButton = page.getByRole("button", { name: "Save" });
 771 | 
 772 |     // Click submit button multiple times rapidly
 773 |     await submitButton.click();
 774 |     await submitButton.click();
 775 |     await submitButton.click();
 776 | 
 777 |     // Should only submit once or handle gracefully
 778 |     await expect.poll(testStateDriver.testState).toBeGreaterThanOrEqual(1);
 779 |   });
 780 | 
 781 |   test("handles null and undefined in nested data", async ({
 782 |     initTestBed,
 783 |     createFormItemDriver,
 784 |     createTextBoxDriver,
 785 |   }) => {
 786 |     await initTestBed(`
 787 |       <Form data="{{ user: null, settings: undefined, name: 'Test' }}">
 788 |         <FormItem label="Name" bindTo="name" testId="nameField" />
 789 |       </Form>
 790 |     `);
 791 | 
 792 |     const driver = await createFormItemDriver("nameField");
 793 |     const input = await createTextBoxDriver(driver.input);
 794 |     await expect(input.field).toHaveValue("Test");
 795 |   });
 796 | 
 797 |   test("handles form with empty string properties", async ({ initTestBed, page }) => {
 798 |     await initTestBed(`
 799 |       <Form
 800 |         cancelLabel=""
 801 |         saveLabel=""
 802 |         data="{{ name: '' }}">
 803 |         <FormItem label="Name" bindTo="name" />
 804 |       </Form>
 805 |     `);
 806 | 
 807 |     // Form should still be visible
 808 |     const form = page.locator("form");
 809 |     await expect(form).toBeVisible();
 810 |   });
 811 | 
 812 |   test("handles special characters in form data", async ({
 813 |     initTestBed,
 814 |     createFormItemDriver,
 815 |     createTextBoxDriver,
 816 |   }) => {
 817 |     await initTestBed(`
 818 |       <Form data="{{ name: 'José María', description: 'Test & symbols' }}">
 819 |         <FormItem label="Name" bindTo="name" testId="nameField" />
 820 |         <FormItem label="Description" bindTo="description" testId="descField" />
 821 |       </Form>
 822 |     `);
 823 | 
 824 |     const nameDriver = await createFormItemDriver("nameField");
 825 |     const nameInput = await createTextBoxDriver(nameDriver.input);
 826 |     const descDriver = await createFormItemDriver("descField");
 827 |     const descInput = await createTextBoxDriver(descDriver.input);
 828 | 
 829 |     await expect(nameInput.field).toHaveValue("José María");
 830 |     await expect(descInput.field).toHaveValue("Test & symbols");
 831 |   });
 832 | 
 833 |   test("user cannot submit with clientside errors present", async ({
 834 |     initTestBed,
 835 |     createFormDriver,
 836 |   }) => {
 837 |     const { testStateDriver } = await initTestBed(`
 838 |       <Form onSubmit="testState = true">
 839 |         <FormItem bindTo="name" required="true" />
 840 |       </Form>
 841 |     `);
 842 |     const driver = await createFormDriver();
 843 | 
 844 |     // The onSubmit event should have been triggered if not for the client error of an empty required field
 845 |     await driver.submitForm("click");
 846 |     await expect.poll(testStateDriver.testState).toEqual(null);
 847 |   });
 848 | 
 849 |   test("can submit with invisible required field", async ({
 850 |     initTestBed,
 851 |     createFormDriver,
 852 |     createFormItemDriver,
 853 |     createTextBoxDriver,
 854 |     page,
 855 |   }) => {
 856 |     const { testStateDriver } = await initTestBed(`
 857 |       <Form onSubmit="testState = true">
 858 |         <FormItem testId="select" bindTo="authenticationType"
 859 |           type="select" label="Authentication Type:" initialValue="{0}">
 860 |           <Option value="{0}" label="Password" />
 861 |           <Option value="{1}" label="Public Key" />
 862 |         </FormItem>
 863 |         <FormItem label="name1" testId="name1" bindTo="name1"
 864 |           required="true" when="{$data.authenticationType == 0}"/>
 865 |         <FormItem label="name2" testId="name2" bindTo="name2"
 866 |           required="true" when="{$data.authenticationType == 1}"/>
 867 |       </Form>
 868 |     `);
 869 |     const formDriver = await createFormDriver();
 870 |     const selectDriver = await createFormItemDriver("select");
 871 |     const textfieldElement = (await createFormItemDriver("name2")).input;
 872 |     const textfieldDriver = await createTextBoxDriver(textfieldElement);
 873 | 
 874 |     await selectDriver.component.click();
 875 |     await page.getByText("Public Key").click();
 876 |     await textfieldDriver.field.fill("John");
 877 |     await formDriver.submitForm();
 878 | 
 879 |     await expect.poll(testStateDriver.testState).toEqual(true);
 880 |   });
 881 | 
 882 |   test("conditional fields keep the state", async ({
 883 |     initTestBed,
 884 |     createFormItemDriver,
 885 |     createOptionDriver,
 886 |     createTextBoxDriver,
 887 |   }) => {
 888 |     await initTestBed(`
 889 |       <Form>
 890 |         <FormItem testId="select" bindTo="authenticationType"
 891 |           type="radioGroup" label="Authentication Type:" initialValue="{0}">
 892 |           <Option value="{0}" label="Password" testId="password"/>
 893 |           <Option value="{1}" label="Public Key" testId="publicKey" />
 894 |         </FormItem>
 895 |         <FormItem label="name1" testId="name1" bindTo="name1"
 896 |           required="true" when="{$data.authenticationType == 0}"/>
 897 |         <FormItem label="name2" testId="name2" bindTo="name2"
 898 |           required="true" when="{$data.authenticationType == 1}"/>
 899 |       </Form>
 900 |     `);
 901 |     const option1Driver = await createFormItemDriver("password");
 902 |     const option2Driver = await createOptionDriver("publicKey");
 903 |     const textfield1Element = (await createFormItemDriver("name1")).input;
 904 |     const textfield1Driver = await createTextBoxDriver(textfield1Element);
 905 | 
 906 |     // Fill in first field
 907 |     await textfield1Driver.field.fill("Test Value");
 908 |     await expect(textfield1Driver.field).toHaveValue("Test Value");
 909 | 
 910 |     // Switch to second option
 911 |     await option2Driver.component.click();
 912 | 
 913 |     // Switch back to first option
 914 |     await option1Driver.component.click();
 915 | 
 916 |     // Field should retain its value
 917 |     await expect(textfield1Driver.field).toHaveValue("Test Value");
 918 |   });
 919 | });
 920 | 
 921 | // =============================================================================
 922 | // ORIGINAL TEST SUITE (LEGACY TESTS)
 923 | // =============================================================================
 924 | 
 925 | test("mock service responds", async ({ initTestBed, createFormDriver }) => {
 926 |   await initTestBed(
 927 |     `
 928 |     <Form submitUrl="/test" />`,
 929 |     {
 930 |       apiInterceptor: {
 931 |         operations: {
 932 |           test: {
 933 |             url: "/test",
 934 |             method: "post",
 935 |             handler: `return true;`,
 936 |           },
 937 |         },
 938 |       },
 939 |     },
 940 |   );
 941 |   const driver = await createFormDriver();
 942 |   await driver.submitForm();
 943 | 
 944 |   const request = await driver.getSubmitResponse("/test");
 945 |   expect(request.ok()).toEqual(true);
 946 | });
 947 | 
 948 | // --- $data
 949 | 
 950 | test("$data is correctly bound to form data", async ({ initTestBed, createButtonDriver }) => {
 951 |   await initTestBed(`
 952 |         <Form data="{{ field: 'test' }}">
 953 |           <FormItem label="testField" bindTo="field">
 954 |             <Button testId="custom" label="{$data.field}" />
 955 |           </FormItem>
 956 |         </Form> `);
 957 |   const driver = await createButtonDriver("custom");
 958 |   await expect(driver.component).toHaveExplicitLabel("test");
 959 | });
 960 | 
 961 | test("$data is correctly undefined if data is not set in props", async ({
 962 |   initTestBed,
 963 |   createButtonDriver,
 964 | }) => {
 965 |   await initTestBed(`
 966 |         <Form>
 967 |           <FormItem label="testField" bindTo="field">
 968 |             <Button testId="custom" label="{$data.field}" />
 969 |           </FormItem>
 970 |         </Form> `);
 971 |   const driver = await createButtonDriver("custom");
 972 |   await expect(driver.component).toHaveExplicitLabel(undefined);
 973 | });
 974 | 
 975 | test("Form buttons and contained FormItems are enabled", async ({
 976 |   initTestBed,
 977 |   page,
 978 |   createFormDriver,
 979 | }) => {
 980 |   await initTestBed(`
 981 |       <Form testId="form">
 982 |         <FormItem label="Name" bindTo="name" />
 983 |         <FormItem label="Email" bindTo="email" />
 984 |       </Form>
 985 |     `);
 986 | 
 987 |   const driver = await createFormDriver("form");
 988 |   await expect(page.getByText("Name")).toBeVisible();
 989 |   await expect(page.getByText("Email")).toBeVisible();
 990 |   await expect(driver.cancelButton).toBeEnabled();
 991 |   await expect(driver.submitButton).toBeEnabled();
 992 | });
 993 | 
 994 | test("submit only triggers when enabled", async ({ initTestBed, createFormDriver }) => {
 995 |   const { testStateDriver } = await initTestBed(
 996 |     `
 997 |       <Form enabled="false" data="{{ name: 'John' }}" onSubmit="testState = true">
 998 |         <FormItem bindTo="name" />
 999 |       </Form>`,
1000 |   );
1001 |   const driver = await createFormDriver();
1002 |   await expect(driver.submitButton).toBeDisabled();
1003 | 
1004 |   await driver.submitForm("keypress");
1005 |   await expect.poll(testStateDriver.testState).toEqual(null);
1006 | });
1007 | 
1008 | test("submit with unbound fields", async ({ page, initTestBed, createFormDriver }) => {
1009 |   await initTestBed(`
1010 |       <Fragment var.output="none">
1011 |         <Form testId="form"
1012 |           data="{{ firstname: 'James', lastname: 'Clewell' }}"
1013 |           onSubmit="args => output = JSON.stringify(args)">
1014 |           <FormItem label="Firstname" bindTo="firstname" />
1015 |           <FormItem label="Middle name" initialValue="Robert" />
1016 |           <FormItem label="Lastname" />
1017 |         </Form>
1018 |         <Text testId="text">{output}</Text>
1019 |       </Fragment>
1020 |     `);
1021 |   const driver = await createFormDriver("form");
1022 |   await driver.submitForm();
1023 |   await expect(page.getByTestId("text")).toHaveText('{"firstname":"James"}');
1024 | });
1025 | 
1026 | test(`submit with type 'items'`, async ({
1027 |   initTestBed,
1028 |   createFormDriver,
1029 |   createButtonDriver,
1030 |   createFormItemDriver,
1031 | }) => {
1032 |   const { testStateDriver } = await initTestBed(`
1033 |       <Form onSubmit="data => testState = data" testId="form">
1034 |         <FormItem testId="formItem" type="items" bindTo="arrayItems" id="arrayItems">
1035 |             <FormItem bindTo="name" testId="text{$itemIndex}"/>
1036 |         </FormItem>
1037 |         <Button testId="addButton" onClick="arrayItems.addItem()"/>
1038 |       </Form>`);
1039 | 
1040 |   await (await createButtonDriver("addButton")).click();
1041 |   await (await createFormItemDriver("text0")).textBox.fill("John");
1042 |   await (await createButtonDriver("addButton")).click();
1043 |   await (await createFormItemDriver("text1")).textBox.fill("Peter");
1044 |   const driver = await createFormDriver("form");
1045 |   await driver.submitForm();
1046 |   await expect.poll(testStateDriver.testState).toStrictEqual({
1047 |     arrayItems: [{ name: "John" }, { name: "Peter" }],
1048 |   });
1049 | });
1050 | 
1051 | test(`submit with type 'items', empty bindTo`, async ({
1052 |   initTestBed,
1053 |   createFormDriver,
1054 |   createButtonDriver,
1055 |   createFormItemDriver,
1056 | }) => {
1057 |   const { testStateDriver } = await initTestBed(`
1058 |       <Form onSubmit="data => testState = data" testId="form">
1059 |         <FormItem testId="formItem" type="items" bindTo="arrayItems" id="arrayItems">
1060 |             <FormItem testId="text{$itemIndex}" bindTo=""/>
1061 |         </FormItem>
1062 |         <Button testId="addButton" onClick="arrayItems.addItem()"/>
1063 |       </Form>`);
1064 | 
1065 |   await (await createButtonDriver("addButton")).click();
1066 |   await (await createFormItemDriver("text0")).textBox.fill("John");
1067 |   await (await createButtonDriver("addButton")).click();
1068 |   await (await createFormItemDriver("text1")).textBox.fill("Peter");
1069 |   const driver = await createFormDriver("form");
1070 |   await driver.submitForm();
1071 |   await expect.poll(testStateDriver.testState).toStrictEqual({
1072 |     arrayItems: ["John", "Peter"],
1073 |   });
1074 | });
1075 | 
1076 | // --- Testing
1077 | 
1078 | // --- --- buttonRowTemplate
1079 | 
1080 | test("buttonRowTemplate can render buttons", async ({ initTestBed, createButtonDriver }) => {
1081 |   await initTestBed(`
1082 |     <Form>
1083 |       <property name="buttonRowTemplate">
1084 |         <Button testId="submitBtn" type="submit" label="Hello Button" />
1085 |       </property>
1086 |     </Form>`);
1087 |   await expect((await createButtonDriver("submitBtn")).component).toBeAttached();
1088 | });
1089 | 
1090 | test("buttonRowTemplate replaces built-in buttons", async ({ initTestBed, createFormDriver }) => {
1091 |   await initTestBed(`
1092 |     <Form testId="form">
1093 |       <property name="buttonRowTemplate">
1094 |         <Button testId="submitBtn" type="submit" label="Hello Button" />
1095 |       </property>
1096 |     </Form>`);
1097 | 
1098 |   const driver = await createFormDriver("form");
1099 |   await expect(driver.submitButton).not.toBeVisible();
1100 |   await expect(driver.cancelButton).not.toBeVisible();
1101 | });
1102 | 
1103 | test("setting buttonRowTemplate without buttons still runs submit on Enter", async ({
1104 |   initTestBed,
1105 |   createFormDriver,
1106 | }) => {
1107 |   const { testStateDriver } = await initTestBed(`
1108 |     <Form onSubmit="testState = true">
1109 |       <property name="buttonRowTemplate">
1110 |         <Fragment />
1111 |       </property>
1112 |       <FormItem bindTo="name" />
1113 |     </Form>
1114 |   `);
1115 |   const driver = await createFormDriver();
1116 | 
1117 |   await driver.submitForm("keypress");
1118 |   await expect.poll(testStateDriver.testState).toBe(true);
1119 | });
1120 | 
1121 | test("data accepts an object", async ({
1122 |   initTestBed,
1123 |   createFormItemDriver,
1124 |   createTextBoxDriver,
1125 | }) => {
1126 |   await initTestBed(`
1127 |     <Form data="{{ field1: 'test' }}">
1128 |       <FormItem testId="inputField" bindTo="field1" />
1129 |     </Form>
1130 |   `);
1131 |   const driver = await createFormItemDriver("inputField");
1132 |   await expect((await createTextBoxDriver(driver.input)).field).toHaveValue("test");
1133 | });
1134 | 
1135 | test(`data accepts primitive`, async ({ initTestBed, createFormDriver }) => {
1136 |   await initTestBed(`
1137 |     <Form data="test">
1138 |       <FormItem bindTo="field1" />
1139 |     </Form>
1140 |   `);
1141 |   const component = (await createFormDriver()).component;
1142 |   await expect(component).toBeAttached();
1143 | });
1144 | 
1145 | test(`data accepts empty array`, async ({ initTestBed, createFormDriver }) => {
1146 |   await initTestBed(`
1147 |     <Form data="{[]}">
1148 |       <FormItem bindTo="field1" />
1149 |     </Form>
1150 |   `);
1151 |   const component = (await createFormDriver()).component;
1152 |   await expect(component).toBeAttached();
1153 | });
1154 | 
1155 | test("data accepts relative URL endpoint", async ({
1156 |   initTestBed,
1157 |   createFormItemDriver,
1158 |   createTextBoxDriver,
1159 | }) => {
1160 |   await initTestBed(
1161 |     `
1162 |       <Form data="/test">
1163 |         <FormItem testId="inputField" bindTo="name" />
1164 |       </Form>`,
1165 |     {
1166 |       apiInterceptor: {
1167 |         operations: {
1168 |           test: {
1169 |             url: "/test",
1170 |             method: "get",
1171 |             handler: `return { name: 'John' };`,
1172 |           },
1173 |         },
1174 |       },
1175 |     },
1176 |   );
1177 |   const driver = await createFormItemDriver("inputField");
1178 |   await expect((await createTextBoxDriver(driver.input)).field).toHaveValue("John");
1179 | });
1180 | 
1181 | test("cancel button and save button use default label", async ({
1182 |   initTestBed,
1183 |   createFormDriver,
1184 | }) => {
1185 |   await initTestBed(`
1186 |       <Form testId="form">
1187 |         <FormItem label="Name" bindTo="name" />
1188 |         <FormItem label="Email" bindTo="email" />
1189 |       </Form>
1190 |     `);
1191 | 
1192 |   const driver = await createFormDriver("form");
1193 |   await expect(driver.cancelButton).toHaveText("Cancel");
1194 |   await expect(driver.submitButton).toHaveText("Save");
1195 | });
1196 | 
1197 | test("cancel button is rendered with cancelLabel", async ({ initTestBed, createFormDriver }) => {
1198 |   await initTestBed(`
1199 |       <Form testId="form" cancelLabel="Abort">
1200 |         <FormItem label="Name" bindTo="name" />
1201 |         <FormItem label="Email" bindTo="email" />
1202 |       </Form>
1203 |     `);
1204 | 
1205 |   const driver = await createFormDriver("form");
1206 |   await expect(driver.cancelButton).toHaveText("Abort");
1207 |   await expect(driver.submitButton).toHaveText("Save");
1208 | });
1209 | 
1210 | test("save button is rendered with saveLabel", async ({ initTestBed, createFormDriver }) => {
1211 |   await initTestBed(`
1212 |       <Form testId="form" saveLabel="Submit">
1213 |         <FormItem label="Name" bindTo="name" />
1214 |         <FormItem label="Email" bindTo="email" />
1215 |       </Form>
1216 |     `);
1217 | 
1218 |   const driver = await createFormDriver("form");
1219 |   await expect(driver.cancelButton).toHaveText("Cancel");
1220 |   await expect(driver.submitButton).toHaveText("Submit");
1221 | });
1222 | 
1223 | // swapCancelAndSave
1224 | 
1225 | test("built-in button row order is default if swapCancelAndSave is false", async ({
1226 |   initTestBed,
1227 |   createFormDriver,
1228 | }) => {
1229 |   await initTestBed(`
1230 |       <Form testId="form" saveLabel="Submit">
1231 |         <FormItem label="Name" bindTo="name" />
1232 |         <FormItem label="Email" bindTo="email" />
1233 |       </Form>
1234 |     `);
1235 | 
1236 |   const driver = await createFormDriver("form");
1237 |   const cancelBox = await driver.cancelButton.boundingBox();
1238 |   const submitBox = await driver.submitButton.boundingBox();
1239 |   expect(cancelBox.x).toBeLessThan(submitBox.x);
1240 | });
1241 | 
1242 | test("built-in button row order flips if swapCancelAndSave is true", async ({
1243 |   initTestBed,
1244 |   createFormDriver,
1245 | }) => {
1246 |   await initTestBed(`
1247 |       <Form testId="form" saveLabel="Submit" swapCancelAndSave="true">
1248 |         <FormItem label="Name" bindTo="name" />
1249 |         <FormItem label="Email" bindTo="email" />
1250 |       </Form>
1251 |     `);
1252 | 
1253 |   const driver = await createFormDriver("form");
1254 |   const cancelBox = await driver.cancelButton.boundingBox();
1255 |   const submitBox = await driver.submitButton.boundingBox();
1256 |   expect(cancelBox.x).toBeGreaterThan(submitBox.x);
1257 | });
1258 | 
1259 | // --- submitUrl
1260 | 
1261 | test("form submits to correct url", async ({ initTestBed, createFormDriver }) => {
1262 |   const endpoint = "/test";
1263 |   await initTestBed(
1264 |     `
1265 |     <Form data="{{ name: 'John' }}" submitUrl="${endpoint}" submitMethod="post">
1266 |       <FormItem bindTo="name" />
1267 |     </Form>`,
1268 |     {
1269 |       apiInterceptor: {
1270 |         operations: {
1271 |           test: {
1272 |             url: endpoint,
1273 |             method: "post",
1274 |             handler: `{ return true; }`,
1275 |           },
1276 |         },
1277 |       },
1278 |     },
1279 |   );
1280 |   const driver = await createFormDriver();
1281 | 
1282 |   await driver.submitForm();
1283 |   const response = await driver.getSubmitResponse(endpoint);
1284 |   expect(response.ok()).toBe(true);
1285 |   expect(new URL(response.url()).pathname).toBe(endpoint);
1286 | });
1287 | 
1288 | // --- submitMethod
1289 | 
1290 | // NOTE: GET doesn't work because GET/HEAD cannot have a 'body'
1291 | ["post", "put", "delete"].forEach((method) => {
1292 |   test(`${method} REST op on submit`, async ({ initTestBed, createFormDriver }) => {
1293 |     await initTestBed(`<Form submitUrl="/test" submitMethod="${method}" />`, {
1294 |       apiInterceptor: {
1295 |         operations: {
1296 |           testPost: {
1297 |             url: "/test",
1298 |             method: "post",
1299 |             handler: `return true;`,
1300 |           },
1301 |           testPut: {
1302 |             url: "/test",
1303 |             method: "put",
1304 |             handler: `return true;`,
1305 |           },
1306 |           testDelete: {
1307 |             url: "/test",
1308 |             method: "delete",
1309 |             handler: `return true;`,
1310 |           },
1311 |         },
1312 |       },
1313 |     });
1314 |     const driver = await createFormDriver();
1315 |     const request = await driver.getSubmitRequest("/test", method, "click");
1316 |     expect(request.failure()).toBeNull();
1317 |   });
1318 | });
1319 | 
1320 | // --- submitting the Form
1321 | 
1322 | test("submit triggers when clicking save/submit button", async ({
1323 |   initTestBed,
1324 |   createFormDriver,
1325 | }) => {
1326 |   await initTestBed(
1327 |     `
1328 |     <Form data="{{ name: 'John' }}" submitUrl="/test" submitMethod="post">
1329 |       <FormItem bindTo="name" />
1330 |     </Form>`,
1331 |     {
1332 |       apiInterceptor: {
1333 |         operations: {
1334 |           test: {
1335 |             url: "/test",
1336 |             method: "post",
1337 |             handler: `return true;`,
1338 |           },
1339 |         },
1340 |       },
1341 |     },
1342 |   );
1343 |   const driver = await createFormDriver();
1344 | 
1345 |   const request = await driver.getSubmitRequest("/test", "POST", "click");
1346 |   expect(request.failure()).toBeNull();
1347 | });
1348 | 
1349 | test("submit triggers when pressing Enter", async ({ initTestBed, createFormDriver }) => {
1350 |   await initTestBed(
1351 |     `
1352 |     <Form data="{{ name: 'John' }}" submitUrl="/test" submitMethod="post">
1353 |       <FormItem bindTo="name" />
1354 |     </Form>`,
1355 |     {
1356 |       apiInterceptor: {
1357 |         operations: {
1358 |           test: {
1359 |             url: "/test",
1360 |             method: "post",
1361 |             handler: `return true;`,
1362 |           },
1363 |         },
1364 |       },
1365 |     },
1366 |   );
1367 |   const driver = await createFormDriver();
1368 | 
1369 |   const request = await driver.getSubmitRequest("/test", "POST", "keypress");
1370 |   expect(request.failure()).toBeNull();
1371 | });
1372 | 
1373 | test("user cannot submit with clientside errors present", async ({
1374 |   initTestBed,
1375 |   createFormDriver,
1376 | }) => {
1377 |   const { testStateDriver } = await initTestBed(`
1378 |     <Form onSubmit="testState = true">
1379 |       <FormItem bindTo="name" required="true" />
1380 |     </Form>
1381 |   `);
1382 |   const driver = await createFormDriver();
1383 | 
1384 |   // The onSubmit event should have been triggered if not for the client error of an empty required field
1385 |   await driver.submitForm("click");
1386 |   await expect.poll(testStateDriver.testState).toEqual(null);
1387 | });
1388 | 
1389 | // --- backend validation summary
1390 | 
1391 | test("submitting with errors shows validation summary", async ({
1392 |   initTestBed,
1393 |   createFormDriver,
1394 | }) => {
1395 |   await initTestBed(`<Form submitUrl="/general-validation-error" submitMethod="post" />`, {
1396 |     apiInterceptor: errorDisplayInterceptor,
1397 |   });
1398 |   const driver = await createFormDriver();
1399 |   await driver.submitForm();
1400 |   await expect(await driver.getValidationSummary()).toBeVisible();
1401 | });
1402 | 
1403 | test("submitting without errors does not show summary", async ({
1404 |   initTestBed,
1405 |   createFormDriver,
1406 | }) => {
1407 |   await initTestBed(`<Form submitUrl="/no-validation-error" submitMethod="post" />`, {
1408 |     apiInterceptor: errorDisplayInterceptor,
1409 |   });
1410 |   const driver = await createFormDriver();
1411 |   await driver.submitForm();
1412 |   await expect(await driver.getValidationSummary()).not.toBeVisible();
1413 | });
1414 | 
1415 | test("general error messages are rendered in the summary", async ({
1416 |   initTestBed,
1417 |   createFormDriver,
1418 |   createValidationDisplayDriver,
1419 | }) => {
1420 |   await initTestBed(`<Form submitUrl="/general-validation-error" submitMethod="post" />`, {
1421 |     apiInterceptor: errorDisplayInterceptor,
1422 |   });
1423 |   const formDriver = await createFormDriver();
1424 |   await formDriver.submitForm();
1425 | 
1426 |   // TODO: strip this down -> it's verbose but hard to read
1427 |   const warningDisplay = await createValidationDisplayDriver(
1428 |     await formDriver.getValidationDisplaysBySeverity("warning"),
1429 |   );
1430 |   const errorDisplay = await createValidationDisplayDriver(
1431 |     await formDriver.getValidationDisplaysBySeverity("error"),
1432 |   );
1433 | 
1434 |   expect(await warningDisplay.getText()).toContain("Warning for the whole form");
1435 |   expect(await errorDisplay.getText()).toContain("Error for the whole form");
1436 | });
1437 | 
1438 | test("field-related errors are rendered at FormItems", async ({
1439 |   initTestBed,
1440 |   createFormDriver,
1441 |   createFormItemDriver,
1442 | }) => {
1443 |   await initTestBed(
1444 |     `
1445 |       <Form submitUrl="/field-validation-error" submitMethod="post">
1446 |         <FormItem testId="testField" bindTo="test" label="test" />
1447 |       </Form>`,
1448 |     {
1449 |       apiInterceptor: errorDisplayInterceptor,
1450 |     },
1451 |   );
1452 |   const formDriver = await createFormDriver();
1453 |   const fieldDriver = await createFormItemDriver("testField");
1454 | 
1455 |   await formDriver.submitForm();
1456 |   await expect(fieldDriver.validationStatusIndicator).toHaveAttribute(
1457 |     fieldDriver.validationStatusTag,
1458 |     "warning",
1459 |   );
1460 | });
1461 | 
1462 | test("field-related errors map to correct FormItems", async ({
1463 |   initTestBed,
1464 |   createFormDriver,
1465 |   createFormItemDriver,
1466 | }) => {
1467 |   await initTestBed(
1468 |     `
1469 |       <Form submitUrl="/field-validation-error" submitMethod="post">
1470 |         <FormItem testId="testField" bindTo="test" label="test" />
1471 |         <FormItem testId="testField2" bindTo="test2" label="test2" />
1472 |       </Form>`,
1473 |     {
1474 |       apiInterceptor: errorDisplayInterceptor,
1475 |     },
1476 |   );
1477 |   const formDriver = await createFormDriver();
1478 |   const fieldDriver = await createFormItemDriver("testField");
1479 | 
1480 |   await formDriver.submitForm();
1481 |   await expect(fieldDriver.validationStatusIndicator).toHaveAttribute(
1482 |     fieldDriver.validationStatusTag,
1483 |     "warning",
1484 |   );
1485 | });
1486 | 
1487 | test.skip("field-related errors disappear if user updates FormItems", async ({
1488 |   initTestBed,
1489 |   page,
1490 |   createFormItemDriver,
1491 | }) => {
1492 |   await initTestBed(
1493 |     `
1494 |       <Form testId="form">
1495 |         <FormItem testId="testField" bindTo="test" label="test" required />
1496 |         <FormItem testId="testField2" bindTo="test2" label="test2" />
1497 |       </Form>`,
1498 |   );
1499 | 
1500 |   const fieldDriver = await createFormItemDriver("testField");
1501 |   const fieldDriver2 = await createFormItemDriver("testField2");
1502 | 
1503 |   await fieldDriver.component.focus();
1504 |   await fieldDriver.textBox.fill("a");
1505 |   await fieldDriver.textBox.fill("");
1506 |   await fieldDriver.textBox.blur();
1507 | 
1508 |   // Should show required error now
1509 |   await expect(fieldDriver.textBox).toHaveValue("");
1510 |   await expect(fieldDriver.validationStatusIndicator).toHaveAttribute(
1511 |     fieldDriver.validationStatusTag,
1512 |     "error",
1513 |   );
1514 | 
1515 |   await fieldDriver.textBox.fill("a");
1516 |   await fieldDriver.textBox.blur();
1517 | 
1518 |   await fieldDriver2.textBox.focus();
1519 | 
1520 |   await expect(fieldDriver2.textBox).toBeFocused();
1521 | 
1522 |   await fieldDriver2.textBox.fill("b");
1523 |   await expect(fieldDriver.validationStatusIndicator).not.toBeVisible();
1524 | });
1525 | 
1526 | const smartCrudInterceptor: ApiInterceptorDefinition = {
1527 |   initialize: `
1528 |     $state.items = {
1529 |       [10]: { name: "Smith", id: 10 }
1530 |     };
1531 |     $state.currentId = 10;
1532 |   `,
1533 |   operations: {
1534 |     create: {
1535 |       url: "/entities",
1536 |       method: "post",
1537 |       handler: `() => {
1538 |         $state.currentId++;
1539 |         $state.items[$state.currentId] = $requestBody;
1540 |         $state.items[$state.currentId].id = $state.currentId;
1541 | 
1542 |         return $state.items[$state.currentId];
1543 |       }`,
1544 |     },
1545 |     read: {
1546 |       url: "/entities/:id",
1547 |       method: "get",
1548 |       handler: `() => {
1549 |         return $state.items[$pathParams.id];
1550 |       }`,
1551 |     },
1552 |     update: {
1553 |       url: "/entities/:id",
1554 |       method: "put",
1555 |       handler: `() => {
1556 |         $state.items[$pathParams.id] = { ...$state.items[$pathParams.id], ...$requestBody };
1557 |         return $state.items[$pathParams.id];
1558 |       }`,
1559 |     },
1560 |   },
1561 | };
1562 | 
1563 | test("create form works with submitUrl", async ({
1564 |   initTestBed,
1565 |   createFormDriver,
1566 |   createFormItemDriver,
1567 |   createTextBoxDriver,
1568 | }) => {
1569 |   await initTestBed(
1570 |     `
1571 |     <Form submitUrl="/entities">
1572 |       <FormItem bindTo="name" testId="nameInput"/>
1573 |     </Form>
1574 |   `,
1575 |     { apiInterceptor: smartCrudInterceptor },
1576 |   );
1577 |   const formDriver = await createFormDriver();
1578 |   const inputElement = (await createFormItemDriver("nameInput")).input;
1579 |   const fieldDriver = await createTextBoxDriver(inputElement);
1580 | 
1581 |   await fieldDriver.field.fill("John");
1582 |   await formDriver.submitForm("click");
1583 | 
1584 |   const response = await formDriver.getSubmitResponse();
1585 |   expect(await response.json()).toEqual({
1586 |     name: "John",
1587 |     id: 11,
1588 |   });
1589 | });
1590 | 
1591 | test("regression: data url through modal context", async ({
1592 |   initTestBed,
1593 |   createButtonDriver,
1594 |   createFormDriver,
1595 |   createFormItemDriver,
1596 |   createTextBoxDriver,
1597 | }) => {
1598 |   await initTestBed(
1599 |     `
1600 |       <Fragment>
1601 |         <Button testId="openModalButton" onClick="modal.open({data: '/entities/10'})"/>
1602 |         <ModalDialog id="modal">
1603 |           <Form testId="modalForm" data="{$param.data}" submitUrl="{$param.submitUrl}">
1604 |              <FormItem bindTo="name" testId="nameInput"/>
1605 |           </Form>
1606 |         </ModalDialog>
1607 |       </Fragment>
1608 |     `,
1609 |     {
1610 |       apiInterceptor: smartCrudInterceptor,
1611 |     },
1612 |   );
1613 |   const formDriver = await createFormDriver("modalForm");
1614 |   const inputElement = (await createFormItemDriver("nameInput")).input;
1615 |   const inputDriver = await createTextBoxDriver(inputElement);
1616 | 
1617 |   await (await createButtonDriver("openModalButton")).click();
1618 | 
1619 |   await expect(inputDriver.field).toHaveValue("Smith");
1620 | 
1621 |   await inputDriver.field.fill("EDITED-Smith");
1622 |   await formDriver.submitForm("click");
1623 | 
1624 |   const response = await formDriver.getSubmitResponse();
1625 |   expect(await response.json()).toEqual({
1626 |     name: "EDITED-Smith",
1627 |     id: 10,
1628 |   });
1629 | });
1630 | 
1631 | // --- Conditional Rendering Cases
1632 | 
1633 | test("can submit with invisible required field", async ({
1634 |   initTestBed,
1635 |   createFormDriver,
1636 |   createFormItemDriver,
1637 |   createTextBoxDriver,
1638 |   page,
1639 | }) => {
1640 |   const { testStateDriver } = await initTestBed(`
1641 |     <Form onSubmit="testState = true">
1642 |       <FormItem testId="select" bindTo="authenticationType"
1643 |         type="select" label="Authentication Type:" initialValue="{0}">
1644 |         <Option value="{0}" label="Password" />
1645 |         <Option value="{1}" label="Public Key" />
1646 |       </FormItem>
1647 |       <FormItem label="name1" testId="name1" bindTo="name1"
1648 |         required="true" when="{$data.authenticationType == 0}"/>
1649 |       <FormItem label="name2" testId="name2" bindTo="name2"
1650 |         required="true" when="{$data.authenticationType == 1}"/>
1651 |     </Form>
1652 |   `);
1653 |   const formDriver = await createFormDriver();
1654 |   const selectDriver = await createFormItemDriver("select");
1655 |   const textfieldElement = (await createFormItemDriver("name2")).input;
1656 |   const textfieldDriver = await createTextBoxDriver(textfieldElement);
1657 | 
1658 |   await selectDriver.component.click();
1659 |   await page.getByText("Public Key").click();
1660 |   await textfieldDriver.field.fill("John");
1661 |   await formDriver.submitForm();
1662 | 
1663 |   await expect.poll(testStateDriver.testState).toEqual(true);
1664 | });
1665 | 
1666 | test("conditional fields keep the state", async ({
1667 |   initTestBed,
1668 |   createFormItemDriver,
1669 |   createOptionDriver,
1670 |   createTextBoxDriver,
1671 | }) => {
1672 |   await initTestBed(`
1673 |     <Form>
1674 |       <FormItem testId="select" bindTo="authenticationType"
1675 |         type="radioGroup" label="Authentication Type:" initialValue="{0}">
1676 |         <Option value="{0}" label="Password" testId="password"/>
1677 |         <Option value="{1}" label="Public Key" testId="publicKey" />
1678 |       </FormItem>
1679 |       <FormItem label="name1" testId="name1" bindTo="name1"
1680 |         required="true" when="{$data.authenticationType == 0}"/>
1681 |       <FormItem label="name2" testId="name2" bindTo="name2"
1682 |         required="true" when="{$data.authenticationType == 1}"/>
1683 |     </Form>
1684 |   `);
1685 |   const option1Driver = await createFormItemDriver("password");
1686 |   const option2Driver = await createOptionDriver("publicKey");
1687 |   const textfield1Element = (await createFormItemDriver("name1")).input;
1688 |   const textfield1Driver = await createTextBoxDriver(textfield1Element);
1689 |   const textfield2Element = (await createFormItemDriver("name2")).input;
1690 |   const textfield2Driver = await createTextBoxDriver(textfield2Element);
1691 | 
1692 |   await textfield1Driver.field.fill("name1");
1693 |   await option2Driver.click();
1694 |   await textfield2Driver.field.fill("name2");
1695 |   await option1Driver.click();
1696 | 
1697 |   await expect(textfield1Driver.field).toHaveValue("name1");
1698 | });
1699 | 
```
Page 158/181FirstPrevNextLast