This is page 118 of 141. Use http://codebase.md/xmlui-org/xmlui/xmlui/0.9.23.js?lines=false&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
import type { ApiInterceptorDefinition } from "../../components-core/interception/abstractions";
import { labelPositionValues } from "../abstractions";
import { expect, test } from "../../testing/fixtures";
import { getElementStyle } from "../../testing/component-test-helpers";
// Test data constants
const errorDisplayInterceptor: ApiInterceptorDefinition = {
initialize: `
$state.items = {
[10]: { name: "Smith", id: 10 }
};
$state.currentId = 10;
`,
operations: {
"no-validation-error": {
url: "/no-validation-error",
method: "post",
handler: `return true;`,
},
"general-validation-error": {
url: "/general-validation-error",
method: "post",
handler: `
throw Errors.HttpError(404,
{
message: "General error message from the backend",
issues: [
{ message: "Error for the whole form", severity: "error" },
{ message: "Warning for the whole form", severity: "warning" },
]
}
);
`,
},
"field-validation-error": {
url: "/field-validation-error",
method: "post",
handler: `
throw Errors.HttpError(404,
{
message: "Field error message from the backend",
issues: [
{ field: "test", message: "Display warning", severity: "warning" },
]
}
);
`,
},
},
};
// =============================================================================
// BASIC FUNCTIONALITY TESTS
// =============================================================================
test.describe("Basic Functionality", () => {
test("component renders with default props", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("component renders with form items", async ({ initTestBed, page }) => {
await initTestBed(`
<Form>
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
await expect(page.getByText("Name")).toBeVisible();
await expect(page.getByText("Email")).toBeVisible();
});
test("component renders save and cancel buttons by default", async ({ initTestBed, page }) => {
await initTestBed(`<Form/>`);
await expect(page.getByRole("button", { name: "Cancel" })).toBeVisible();
await expect(page.getByRole("button", { name: "Save" })).toBeVisible();
});
test("component renders custom button labels", async ({ initTestBed, page }) => {
await initTestBed(`
<Form cancelLabel="Go Back" saveLabel="Submit"/>
`);
await expect(page.getByRole("button", { name: "Go Back" })).toBeVisible();
await expect(page.getByRole("button", { name: "Submit" })).toBeVisible();
});
test("component swaps cancel and save button positions", async ({ initTestBed, page }) => {
await initTestBed(`
<Form swapCancelAndSave="true"/>
`);
const buttons = page.getByRole("button");
await expect(buttons.first()).toHaveText("Save");
await expect(buttons.last()).toHaveText("Cancel");
});
// =============================================================================
// DATA PROPERTY TESTS
// =============================================================================
test.describe("data property", () => {
test("sets initial form data", async ({
initTestBed,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form data="{{ name: 'John', age: 30 }}">
<FormItem label="Name" bindTo="name" testId="nameField" />
<FormItem label="Age" bindTo="age" type="integer" testId="ageField" />
</Form>
`);
const nameDriver = await createFormItemDriver("nameField");
const nameInput = await createTextBoxDriver(nameDriver.input);
const ageDriver = await createFormItemDriver("ageField");
const ageInput = await createTextBoxDriver(ageDriver.input);
await expect(nameInput.field).toHaveValue("John");
await expect(ageInput.field).toHaveValue("30");
});
test("handles null data gracefully", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form data="{null}" testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("handles undefined data gracefully", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form data="{undefined}" testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("handles empty object data", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form data="{{}}" testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
});
// =============================================================================
// ITEM LABEL POSITION TESTS
// =============================================================================
test.describe("itemLabelPosition property", () => {
labelPositionValues.forEach((position) => {
test(`sets item label position to ${position}`, async ({
initTestBed,
createFormItemDriver,
}) => {
await initTestBed(`
<Form itemLabelPosition="${position}">
<FormItem label="Test Label" bindTo="test" testId="testField" />
</Form>
`);
const driver = await createFormItemDriver("testField");
await expect(driver.label).toBeVisible();
});
});
test("handles invalid itemLabelPosition gracefully", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`<Form itemLabelPosition="invalid" testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
});
// =============================================================================
// ITEM LABEL WIDTH TESTS
// =============================================================================
test.describe("itemLabelWidth property", () => {
test("sets custom label width", async ({ initTestBed, createFormItemDriver }) => {
await initTestBed(`
<Form itemLabelWidth="200px">
<FormItem label="Test Label" bindTo="test" testId="testField" />
</Form>
`);
const driver = await createFormItemDriver("testField");
await expect(driver.label).toBeVisible();
});
test("handles numeric label width", async ({ initTestBed, createFormItemDriver }) => {
await initTestBed(`
<Form itemLabelWidth="150">
<FormItem label="Test Label" bindTo="test" testId="testField" />
</Form>
`);
const driver = await createFormItemDriver("testField");
await expect(driver.label).toBeVisible();
});
test("handles invalid label width gracefully", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form itemLabelWidth="invalid" testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("handles theme variable", async ({ initTestBed, createFormItemDriver }) => {
const spaceBase = 0.25; //rem
const labelSize = 10;
const widthInPx = labelSize * spaceBase * 16; //px
await initTestBed(`
<Theme space-base="${spaceBase}rem">
<Form itemLabelWidth="$space-${labelSize}">
<FormItem label="Test Label" bindTo="test" testId="testField" />
</Form>
</Theme>
`);
const driver = await createFormItemDriver("testField");
const labelWidth = await getElementStyle(driver.label, "width");
expect(labelWidth).toBe(`${widthInPx}px`);
});
});
// =============================================================================
// ITEM LABEL BREAK TESTS
// =============================================================================
test.describe("itemLabelBreak property", () => {
test("enables label line breaking", async ({ initTestBed, createFormItemDriver }) => {
await initTestBed(`
<Form itemLabelBreak="true">
<FormItem label="Very Long Label That Should Break" bindTo="test" testId="testField" />
</Form>
`);
const driver = await createFormItemDriver("testField");
await expect(driver.label).toBeVisible();
});
test("disables label line breaking", async ({ initTestBed, createFormItemDriver }) => {
await initTestBed(`
<Form itemLabelBreak="false">
<FormItem label="Very Long Label That Should Not Break" bindTo="test" testId="testField" />
</Form>
`);
const driver = await createFormItemDriver("testField");
await expect(driver.label).toBeVisible();
});
});
// =============================================================================
// ENABLED PROPERTY TESTS
// =============================================================================
test.describe("enabled property", () => {
test("disables save button when enabled is false", async ({ initTestBed, page }) => {
await initTestBed(`
<Form enabled="false">
<FormItem label="Test" bindTo="test" />
</Form>
`);
const saveButton = page.getByRole("button", { name: "Save" });
await expect(saveButton).toBeDisabled();
});
test("enables form when enabled is true", async ({ initTestBed, page }) => {
await initTestBed(`
<Form enabled="true">
<FormItem label="Test" bindTo="test" />
</Form>
`);
const saveButton = page.getByRole("button", { name: "Save" });
const cancelButton = page.getByRole("button", { name: "Cancel" });
await expect(saveButton).toBeEnabled();
await expect(cancelButton).toBeEnabled();
});
});
// =============================================================================
// BUTTON ROW TEMPLATE TESTS
// =============================================================================
test.describe("buttonRowTemplate property", () => {
test("supports custom button row template", async ({ initTestBed, page }) => {
await initTestBed(`
<Form>
<FormItem label="Test" bindTo="test" />
<property name="buttonRowTemplate">
<Button label="Custom Save" type="submit" />
<Button label="Custom Cancel" type="button" />
</property>
</Form>
`);
await expect(page.getByRole("button", { name: "Custom Save" })).toBeVisible();
await expect(page.getByRole("button", { name: "Custom Cancel" })).toBeVisible();
});
});
// =============================================================================
// EVENT TESTS
// =============================================================================
test.describe("Events", () => {
test("onSubmit event fires with form data", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Form data="{{ name: 'John', email: '[email protected]' }}" onSubmit="data => testState = data">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
await page.getByRole("button", { name: "Save" }).click();
await expect.poll(testStateDriver.testState).toEqual({
name: "John",
email: "[email protected]",
});
});
test("onCancel event fires when cancel button clicked", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Form onCancel="testState = 'cancelled'">
<FormItem label="Test" bindTo="test" />
</Form>
`);
await page.getByRole("button", { name: "Cancel" }).click();
await expect.poll(testStateDriver.testState).toEqual("cancelled");
});
test("onSuccess event fires on successful submission", async ({
initTestBed,
page,
createFormDriver,
}) => {
const { testStateDriver } = await initTestBed(
`
<Form
testId="form"
submitUrl="/test-success"
onSuccess="testState = 'success'; console.log('Submitted successfully')"
data="{{ name: 'Test' }}">
<FormItem label="Name" bindTo="name" />
</Form>
`,
{
apiInterceptor: {
operations: {
testSuccess: {
url: "/test-success",
method: "put",
handler: `return { success: true };`,
},
},
},
},
);
const driver = await createFormDriver("form");
await driver.submitForm();
await expect.poll(testStateDriver.testState).toEqual("success");
});
test("onReset event fires when form is reset", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Form
id="testForm"
onReset="testState = 'reset'"
data="{{ name: 'Test' }}">
<FormItem label="Name" bindTo="name" />
<Button onClick="testForm.reset()" label="Reset Form" />
</Form>
`);
await page.getByRole("button", { name: "Reset Form" }).click();
await expect.poll(testStateDriver.testState).toEqual("reset");
});
});
// =============================================================================
// API TESTS
// =============================================================================
test.describe("APIs", () => {
test("update method updates form data", async ({
initTestBed,
page,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form
id="testForm"
data="{{ name: 'Original', age: 25 }}">
<FormItem label="Name" bindTo="name" testId="nameField" />
<FormItem label="Age" bindTo="age" type="integer" testId="ageField" />
<Button onClick="testForm.update({ name: 'Updated', age: 30 })" label="Update" />
</Form>
`);
const nameDriver = await createFormItemDriver("nameField");
const nameInput = await createTextBoxDriver(nameDriver.input);
const ageDriver = await createFormItemDriver("ageField");
const ageInput = await createTextBoxDriver(ageDriver.input);
await expect(nameInput.field).toHaveValue("Original");
await expect(ageInput.field).toHaveValue("25");
await page.getByRole("button", { name: "Update" }).click();
await expect(nameInput.field).toHaveValue("Updated");
await expect(ageInput.field).toHaveValue("30");
});
test("reset method resets form to initial state", async ({
initTestBed,
page,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form
id="testForm"
data="{{ name: 'Initial' }}">
<FormItem label="Name" bindTo="name" testId="nameField" />
<Button onClick="testForm.reset()" label="Reset" />
</Form>
`);
const nameDriver = await createFormItemDriver("nameField");
const nameInput = await createTextBoxDriver(nameDriver.input);
// Change the input value
await nameInput.field.fill("Changed");
await expect(nameInput.field).toHaveValue("Changed");
// Reset the form
await page.getByRole("button", { name: "Reset" }).click();
await expect(nameInput.field).toHaveValue("Initial");
});
});
// =============================================================================
// CONTEXT VARIABLE TESTS
// =============================================================================
test.describe("Context Variables", () => {
test("$data context variable provides access to form data", async ({
initTestBed,
page,
createFormItemDriver,
}) => {
// This test needs specific FormItem behavior that may vary
await initTestBed(`
<Form data="{{ isEnabled: true, name: 'Joe' }}">
<FormItem testId="isEnabled" label="Enable name" bindTo="isEnabled" type="checkbox" />
<FormItem testId="name" enabled="{$data.isEnabled}" label="Name" bindTo="name" />
</Form>
`);
const enableSwitch = (await createFormItemDriver("isEnabled")).checkbox;
const nameInput = (await createFormItemDriver("name")).textBox;
await expect(enableSwitch).toBeVisible();
await expect(nameInput).toBeEnabled();
await enableSwitch.click();
await expect(nameInput).toBeDisabled();
});
test("$data.update method updates form data", async ({
initTestBed,
page,
createFormItemDriver,
}) => {
await initTestBed(`
<Form data="{{ counter: 0 }}">
<FormItem testId="counter" label="Counter" bindTo="counter" type="integer" />
<Button onClick="$data.update({ counter: $data.counter + 1 })" label="Increment" />
</Form>
`);
const counterDriver = await createFormItemDriver("counter");
const counterInput = counterDriver.textBox;
await expect(counterInput).toHaveValue("0");
await page.getByRole("button", { name: "Increment" }).click({ force: true });
await expect(counterInput).toHaveValue("1");
});
});
// =============================================================================
// SUBMIT URL AND METHOD TESTS
// =============================================================================
test.describe("Submit URL and Method", () => {
test("submits to custom URL with POST method (new date)", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(
`<App><Form testId="form" submitUrl="/custom-endpoint" data="{null}">
<FormItem label="Name" bindTo="name" />
</Form></App>`,
{
apiInterceptor: {
operations: {
customEndpoint: {
url: "/custom-endpoint",
method: "post",
handler: `return { success: true };`,
},
},
},
},
);
const driver = await createFormDriver("form");
await driver.submitForm();
const response = await driver.getSubmitResponse("/custom-endpoint");
expect(response.ok()).toEqual(true);
});
test("uses PUT method for existing data", async ({ initTestBed, createFormDriver }) => {
await initTestBed(
`<Form submitUrl="/entities/1" data="{{ id: 1, name: 'Existing' }}">
<FormItem label="Name" bindTo="name" />
</Form>`,
{
apiInterceptor: {
operations: {
updateEntity: {
url: "/entities/1",
method: "put",
handler: `return { success: true };`,
},
},
},
},
);
const driver = await createFormDriver();
await driver.submitForm();
const response = await driver.getSubmitResponse("/entities/1");
expect(response.ok()).toEqual(true);
});
test("uses custom submit method", async ({ initTestBed, createFormDriver }) => {
await initTestBed(
`<Form submitUrl="/custom" submitMethod="put" data="{{ name: 'Test' }}">
<FormItem label="Name" bindTo="name" />
</Form>`,
{
apiInterceptor: {
operations: {
putCustom: {
url: "/custom",
method: "put",
handler: `return { success: true };`,
},
},
},
},
);
const driver = await createFormDriver();
await driver.submitForm();
const response = await driver.getSubmitResponse("/custom");
expect(response.ok()).toEqual(true);
});
});
});
// =============================================================================
// ACCESSIBILITY TESTS
// =============================================================================
test.describe("Accessibility", () => {
test("form has correct semantic role", async ({ initTestBed, page }) => {
await initTestBed(`<Form/>`);
await expect(page.locator("form")).toBeVisible();
});
test("form items are properly associated with labels", async ({
initTestBed,
createFormItemDriver,
}) => {
await initTestBed(`
<Form>
<FormItem label="Full Name" bindTo="name" testId="nameField" />
</Form>
`);
const driver = await createFormItemDriver("nameField");
await expect(driver.label).toBeVisible();
await expect(driver.label).toHaveText("Full Name");
});
test("form submission is keyboard accessible", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = 'submitted via keyboard'">
<FormItem label="Name" bindTo="name" />
</Form>
`);
const submitButton = page.getByRole("button", { name: "Save" });
await submitButton.focus();
await page.keyboard.press("Enter");
await expect.poll(testStateDriver.testState).toEqual("submitted via keyboard");
});
test("form cancel is keyboard accessible", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Form onCancel="testState = 'cancelled via keyboard'">
<FormItem label="Name" bindTo="name" />
</Form>
`);
const cancelButton = page.getByRole("button", { name: "Cancel" });
await cancelButton.focus();
await page.keyboard.press("Enter");
await expect.poll(testStateDriver.testState).toEqual("cancelled via keyboard");
});
test("disabled form buttons are properly disabled", async ({ initTestBed, page }) => {
await initTestBed(`
<Form enabled="false">
<FormItem label="Name" bindTo="name" />
</Form>
`);
const saveButton = page.getByRole("button", { name: "Save" });
await expect(saveButton).toBeDisabled();
});
});
// =============================================================================
// THEME VARIABLE TESTS
// =============================================================================
test.describe("Theme Variables", () => {
test("applies custom gap theme variable", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form testId="form"/>`, {
testThemeVars: {
"gap-Form": "2rem",
},
});
const driver = await createFormDriver("form");
await expect(driver.component).toHaveCSS("gap", "32px");
});
test("applies custom button row gap theme variable", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`<Form testId="form"/>`, {
testThemeVars: {
"gap-buttonRow-Form": "1rem",
},
});
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("applies validation display theme variables", async ({ initTestBed, page }) => {
// This test requires validation system to trigger error display
await initTestBed(
`
<Form>
<FormItem testId="email" label="Email" bindTo="email" type="email" required="true" />
</Form>
`,
{
testThemeVars: {
"backgroundColor-ValidationDisplay-error": "rgb(255, 0, 0)",
"textColor-ValidationDisplay-error": "rgb(255, 255, 255)",
},
},
);
// Trigger validation by submitting with empty required field
await page.getByRole("button", { name: "Save" }).click();
const emailComp = page.getByTestId("email");
await expect(emailComp).toContainText("This field is required");
});
});
// =============================================================================
// EDGE CASES TESTS
// =============================================================================
test.describe("Edge Cases", () => {
test("handles form without any form items", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("handles malformed data input gracefully", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form data="{invalidJson}" testId="form"/>`);
const driver = await createFormDriver("form");
await expect(driver.component).toBeVisible();
});
test("Form does not render if data receives malformed input", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`<Form data="{}" />`);
await expect((await createFormDriver()).component).not.toBeAttached();
});
test("handles deeply nested data structure", async ({
initTestBed,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form data="{{ user: { profile: { name: 'John' } } }}">
<FormItem label="Name" bindTo="user.profile.name" testId="nameField" />
</Form>
`);
const driver = await createFormItemDriver("nameField");
const input = await createTextBoxDriver(driver.input);
await expect(input.field).toHaveValue("John");
});
test("handles form with validation errors", async ({ initTestBed, page }) => {
await initTestBed(`
<Form>
<FormItem label="Email" bindTo="email" type="email" required="true" />
</Form>
`);
// Try to submit form without filling required field
await page.getByRole("button", { name: "Save" }).click();
// Validation should prevent submission and show error
const form = page.locator("form");
await expect(form).toBeVisible();
});
test("handles rapid form submissions", async ({ initTestBed, page }) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = (testState || 0) + 1">
<FormItem label="Name" bindTo="name" />
</Form>
`);
const submitButton = page.getByRole("button", { name: "Save" });
// Click submit button multiple times rapidly
await submitButton.click();
await submitButton.click();
await submitButton.click();
// Should only submit once or handle gracefully
await expect.poll(testStateDriver.testState).toBeGreaterThanOrEqual(1);
});
test("handles null and undefined in nested data", async ({
initTestBed,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form data="{{ user: null, settings: undefined, name: 'Test' }}">
<FormItem label="Name" bindTo="name" testId="nameField" />
</Form>
`);
const driver = await createFormItemDriver("nameField");
const input = await createTextBoxDriver(driver.input);
await expect(input.field).toHaveValue("Test");
});
test("handles form with empty string properties", async ({ initTestBed, page }) => {
await initTestBed(`
<Form
cancelLabel=""
saveLabel=""
data="{{ name: '' }}">
<FormItem label="Name" bindTo="name" />
</Form>
`);
// Form should still be visible
const form = page.locator("form");
await expect(form).toBeVisible();
});
test("handles special characters in form data", async ({
initTestBed,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form data="{{ name: 'José María', description: 'Test & symbols' }}">
<FormItem label="Name" bindTo="name" testId="nameField" />
<FormItem label="Description" bindTo="description" testId="descField" />
</Form>
`);
const nameDriver = await createFormItemDriver("nameField");
const nameInput = await createTextBoxDriver(nameDriver.input);
const descDriver = await createFormItemDriver("descField");
const descInput = await createTextBoxDriver(descDriver.input);
await expect(nameInput.field).toHaveValue("José María");
await expect(descInput.field).toHaveValue("Test & symbols");
});
test("user cannot submit with clientside errors present", async ({
initTestBed,
createFormDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = true">
<FormItem bindTo="name" required="true" />
</Form>
`);
const driver = await createFormDriver();
// The onSubmit event should have been triggered if not for the client error of an empty required field
await driver.submitForm("click");
await expect.poll(testStateDriver.testState).toEqual(null);
});
test("can submit with invisible required field", async ({
initTestBed,
createFormDriver,
createFormItemDriver,
createTextBoxDriver,
page,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = true">
<FormItem testId="select" bindTo="authenticationType"
type="select" label="Authentication Type:" initialValue="{0}">
<Option value="{0}" label="Password" />
<Option value="{1}" label="Public Key" />
</FormItem>
<FormItem label="name1" testId="name1" bindTo="name1"
required="true" when="{$data.authenticationType == 0}"/>
<FormItem label="name2" testId="name2" bindTo="name2"
required="true" when="{$data.authenticationType == 1}"/>
</Form>
`);
const formDriver = await createFormDriver();
const selectDriver = await createFormItemDriver("select");
const textfieldElement = (await createFormItemDriver("name2")).input;
const textfieldDriver = await createTextBoxDriver(textfieldElement);
await selectDriver.component.click();
await page.getByText("Public Key").click();
await textfieldDriver.field.fill("John");
await formDriver.submitForm();
await expect.poll(testStateDriver.testState).toEqual(true);
});
test("conditional fields keep the state", async ({
initTestBed,
createFormItemDriver,
createOptionDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form>
<FormItem testId="select" bindTo="authenticationType"
type="radioGroup" label="Authentication Type:" initialValue="{0}">
<Option value="{0}" label="Password" testId="password"/>
<Option value="{1}" label="Public Key" testId="publicKey" />
</FormItem>
<FormItem label="name1" testId="name1" bindTo="name1"
required="true" when="{$data.authenticationType == 0}"/>
<FormItem label="name2" testId="name2" bindTo="name2"
required="true" when="{$data.authenticationType == 1}"/>
</Form>
`);
const option1Driver = await createFormItemDriver("password");
const option2Driver = await createOptionDriver("publicKey");
const textfield1Element = (await createFormItemDriver("name1")).input;
const textfield1Driver = await createTextBoxDriver(textfield1Element);
// Fill in first field
await textfield1Driver.field.fill("Test Value");
await expect(textfield1Driver.field).toHaveValue("Test Value");
// Switch to second option
await option2Driver.component.click();
// Switch back to first option
await option1Driver.component.click();
// Field should retain its value
await expect(textfield1Driver.field).toHaveValue("Test Value");
});
});
// =============================================================================
// ORIGINAL TEST SUITE (LEGACY TESTS)
// =============================================================================
test("mock service responds", async ({ initTestBed, createFormDriver }) => {
await initTestBed(
`
<Form submitUrl="/test" />`,
{
apiInterceptor: {
operations: {
test: {
url: "/test",
method: "post",
handler: `return true;`,
},
},
},
},
);
const driver = await createFormDriver();
await driver.submitForm();
const request = await driver.getSubmitResponse("/test");
expect(request.ok()).toEqual(true);
});
// --- $data
test("$data is correctly bound to form data", async ({ initTestBed, createButtonDriver }) => {
await initTestBed(`
<Form data="{{ field: 'test' }}">
<FormItem label="testField" bindTo="field">
<Button testId="custom" label="{$data.field}" />
</FormItem>
</Form> `);
const driver = await createButtonDriver("custom");
await expect(driver.component).toHaveExplicitLabel("test");
});
test("$data is correctly undefined if data is not set in props", async ({
initTestBed,
createButtonDriver,
}) => {
await initTestBed(`
<Form>
<FormItem label="testField" bindTo="field">
<Button testId="custom" label="{$data.field}" />
</FormItem>
</Form> `);
const driver = await createButtonDriver("custom");
await expect(driver.component).toHaveExplicitLabel(undefined);
});
test("Form buttons and contained FormItems are enabled", async ({
initTestBed,
page,
createFormDriver,
}) => {
await initTestBed(`
<Form testId="form">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
const driver = await createFormDriver("form");
await expect(page.getByText("Name")).toBeVisible();
await expect(page.getByText("Email")).toBeVisible();
await expect(driver.cancelButton).toBeEnabled();
await expect(driver.submitButton).toBeEnabled();
});
test("submit only triggers when enabled", async ({ initTestBed, createFormDriver }) => {
const { testStateDriver } = await initTestBed(
`
<Form enabled="false" data="{{ name: 'John' }}" onSubmit="testState = true">
<FormItem bindTo="name" />
</Form>`,
);
const driver = await createFormDriver();
await expect(driver.submitButton).toBeDisabled();
await driver.submitForm("keypress");
await expect.poll(testStateDriver.testState).toEqual(null);
});
test("submit with unbound fields", async ({ page, initTestBed, createFormDriver }) => {
await initTestBed(`
<Fragment var.output="none">
<Form testId="form"
data="{{ firstname: 'James', lastname: 'Clewell' }}"
onSubmit="args => output = JSON.stringify(args)">
<FormItem label="Firstname" bindTo="firstname" />
<FormItem label="Middle name" initialValue="Robert" />
<FormItem label="Lastname" />
</Form>
<Text testId="text">{output}</Text>
</Fragment>
`);
const driver = await createFormDriver("form");
await driver.submitForm();
await expect(page.getByTestId("text")).toHaveText('{"firstname":"James"}');
});
test(`submit with type 'items'`, async ({
initTestBed,
createFormDriver,
createButtonDriver,
createFormItemDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="data => testState = data" testId="form">
<FormItem testId="formItem" type="items" bindTo="arrayItems" id="arrayItems">
<FormItem bindTo="name" testId="text{$itemIndex}"/>
</FormItem>
<Button testId="addButton" onClick="arrayItems.addItem()"/>
</Form>`);
await (await createButtonDriver("addButton")).click();
await (await createFormItemDriver("text0")).textBox.fill("John");
await (await createButtonDriver("addButton")).click();
await (await createFormItemDriver("text1")).textBox.fill("Peter");
const driver = await createFormDriver("form");
await driver.submitForm();
await expect.poll(testStateDriver.testState).toStrictEqual({
arrayItems: [{ name: "John" }, { name: "Peter" }],
});
});
test(`submit with type 'items', empty bindTo`, async ({
initTestBed,
createFormDriver,
createButtonDriver,
createFormItemDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="data => testState = data" testId="form">
<FormItem testId="formItem" type="items" bindTo="arrayItems" id="arrayItems">
<FormItem testId="text{$itemIndex}" bindTo=""/>
</FormItem>
<Button testId="addButton" onClick="arrayItems.addItem()"/>
</Form>`);
await (await createButtonDriver("addButton")).click();
await (await createFormItemDriver("text0")).textBox.fill("John");
await (await createButtonDriver("addButton")).click();
await (await createFormItemDriver("text1")).textBox.fill("Peter");
const driver = await createFormDriver("form");
await driver.submitForm();
await expect.poll(testStateDriver.testState).toStrictEqual({
arrayItems: ["John", "Peter"],
});
});
// --- Testing
// --- --- buttonRowTemplate
test("buttonRowTemplate can render buttons", async ({ initTestBed, createButtonDriver }) => {
await initTestBed(`
<Form>
<property name="buttonRowTemplate">
<Button testId="submitBtn" type="submit" label="Hello Button" />
</property>
</Form>`);
await expect((await createButtonDriver("submitBtn")).component).toBeAttached();
});
test("buttonRowTemplate replaces built-in buttons", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`
<Form testId="form">
<property name="buttonRowTemplate">
<Button testId="submitBtn" type="submit" label="Hello Button" />
</property>
</Form>`);
const driver = await createFormDriver("form");
await expect(driver.submitButton).not.toBeVisible();
await expect(driver.cancelButton).not.toBeVisible();
});
test("setting buttonRowTemplate without buttons still runs submit on Enter", async ({
initTestBed,
createFormDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = true">
<property name="buttonRowTemplate">
<Fragment />
</property>
<FormItem bindTo="name" />
</Form>
`);
const driver = await createFormDriver();
await driver.submitForm("keypress");
await expect.poll(testStateDriver.testState).toBe(true);
});
test("data accepts an object", async ({
initTestBed,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form data="{{ field1: 'test' }}">
<FormItem testId="inputField" bindTo="field1" />
</Form>
`);
const driver = await createFormItemDriver("inputField");
await expect((await createTextBoxDriver(driver.input)).field).toHaveValue("test");
});
test(`data accepts primitive`, async ({ initTestBed, createFormDriver }) => {
await initTestBed(`
<Form data="test">
<FormItem bindTo="field1" />
</Form>
`);
const component = (await createFormDriver()).component;
await expect(component).toBeAttached();
});
test(`data accepts empty array`, async ({ initTestBed, createFormDriver }) => {
await initTestBed(`
<Form data="{[]}">
<FormItem bindTo="field1" />
</Form>
`);
const component = (await createFormDriver()).component;
await expect(component).toBeAttached();
});
test("data accepts relative URL endpoint", async ({
initTestBed,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(
`
<Form data="/test">
<FormItem testId="inputField" bindTo="name" />
</Form>`,
{
apiInterceptor: {
operations: {
test: {
url: "/test",
method: "get",
handler: `return { name: 'John' };`,
},
},
},
},
);
const driver = await createFormItemDriver("inputField");
await expect((await createTextBoxDriver(driver.input)).field).toHaveValue("John");
});
test("cancel button and save button use default label", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`
<Form testId="form">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
const driver = await createFormDriver("form");
await expect(driver.cancelButton).toHaveText("Cancel");
await expect(driver.submitButton).toHaveText("Save");
});
test("cancel button is rendered with cancelLabel", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`
<Form testId="form" cancelLabel="Abort">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
const driver = await createFormDriver("form");
await expect(driver.cancelButton).toHaveText("Abort");
await expect(driver.submitButton).toHaveText("Save");
});
test("save button is rendered with saveLabel", async ({ initTestBed, createFormDriver }) => {
await initTestBed(`
<Form testId="form" saveLabel="Submit">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
const driver = await createFormDriver("form");
await expect(driver.cancelButton).toHaveText("Cancel");
await expect(driver.submitButton).toHaveText("Submit");
});
// swapCancelAndSave
test("built-in button row order is default if swapCancelAndSave is false", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`
<Form testId="form" saveLabel="Submit">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
const driver = await createFormDriver("form");
const cancelBox = await driver.cancelButton.boundingBox();
const submitBox = await driver.submitButton.boundingBox();
expect(cancelBox.x).toBeLessThan(submitBox.x);
});
test("built-in button row order flips if swapCancelAndSave is true", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`
<Form testId="form" saveLabel="Submit" swapCancelAndSave="true">
<FormItem label="Name" bindTo="name" />
<FormItem label="Email" bindTo="email" />
</Form>
`);
const driver = await createFormDriver("form");
const cancelBox = await driver.cancelButton.boundingBox();
const submitBox = await driver.submitButton.boundingBox();
expect(cancelBox.x).toBeGreaterThan(submitBox.x);
});
// --- submitUrl
test("form submits to correct url", async ({ initTestBed, createFormDriver }) => {
const endpoint = "/test";
await initTestBed(
`
<Form data="{{ name: 'John' }}" submitUrl="${endpoint}" submitMethod="post">
<FormItem bindTo="name" />
</Form>`,
{
apiInterceptor: {
operations: {
test: {
url: endpoint,
method: "post",
handler: `{ return true; }`,
},
},
},
},
);
const driver = await createFormDriver();
await driver.submitForm();
const response = await driver.getSubmitResponse(endpoint);
expect(response.ok()).toBe(true);
expect(new URL(response.url()).pathname).toBe(endpoint);
});
// --- submitMethod
// NOTE: GET doesn't work because GET/HEAD cannot have a 'body'
["post", "put", "delete"].forEach((method) => {
test(`${method} REST op on submit`, async ({ initTestBed, createFormDriver }) => {
await initTestBed(`<Form submitUrl="/test" submitMethod="${method}" />`, {
apiInterceptor: {
operations: {
testPost: {
url: "/test",
method: "post",
handler: `return true;`,
},
testPut: {
url: "/test",
method: "put",
handler: `return true;`,
},
testDelete: {
url: "/test",
method: "delete",
handler: `return true;`,
},
},
},
});
const driver = await createFormDriver();
const request = await driver.getSubmitRequest("/test", method, "click");
expect(request.failure()).toBeNull();
});
});
// --- submitting the Form
test("submit triggers when clicking save/submit button", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(
`
<Form data="{{ name: 'John' }}" submitUrl="/test" submitMethod="post">
<FormItem bindTo="name" />
</Form>`,
{
apiInterceptor: {
operations: {
test: {
url: "/test",
method: "post",
handler: `return true;`,
},
},
},
},
);
const driver = await createFormDriver();
const request = await driver.getSubmitRequest("/test", "POST", "click");
expect(request.failure()).toBeNull();
});
test("submit triggers when pressing Enter", async ({ initTestBed, createFormDriver }) => {
await initTestBed(
`
<Form data="{{ name: 'John' }}" submitUrl="/test" submitMethod="post">
<FormItem bindTo="name" />
</Form>`,
{
apiInterceptor: {
operations: {
test: {
url: "/test",
method: "post",
handler: `return true;`,
},
},
},
},
);
const driver = await createFormDriver();
const request = await driver.getSubmitRequest("/test", "POST", "keypress");
expect(request.failure()).toBeNull();
});
test("user cannot submit with clientside errors present", async ({
initTestBed,
createFormDriver,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = true">
<FormItem bindTo="name" required="true" />
</Form>
`);
const driver = await createFormDriver();
// The onSubmit event should have been triggered if not for the client error of an empty required field
await driver.submitForm("click");
await expect.poll(testStateDriver.testState).toEqual(null);
});
// --- backend validation summary
test("submitting with errors shows validation summary", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`<Form submitUrl="/general-validation-error" submitMethod="post" />`, {
apiInterceptor: errorDisplayInterceptor,
});
const driver = await createFormDriver();
await driver.submitForm();
await expect(await driver.getValidationSummary()).toBeVisible();
});
test("submitting without errors does not show summary", async ({
initTestBed,
createFormDriver,
}) => {
await initTestBed(`<Form submitUrl="/no-validation-error" submitMethod="post" />`, {
apiInterceptor: errorDisplayInterceptor,
});
const driver = await createFormDriver();
await driver.submitForm();
await expect(await driver.getValidationSummary()).not.toBeVisible();
});
test("general error messages are rendered in the summary", async ({
initTestBed,
createFormDriver,
createValidationDisplayDriver,
}) => {
await initTestBed(`<Form submitUrl="/general-validation-error" submitMethod="post" />`, {
apiInterceptor: errorDisplayInterceptor,
});
const formDriver = await createFormDriver();
await formDriver.submitForm();
// TODO: strip this down -> it's verbose but hard to read
const warningDisplay = await createValidationDisplayDriver(
await formDriver.getValidationDisplaysBySeverity("warning"),
);
const errorDisplay = await createValidationDisplayDriver(
await formDriver.getValidationDisplaysBySeverity("error"),
);
expect(await warningDisplay.getText()).toContain("Warning for the whole form");
expect(await errorDisplay.getText()).toContain("Error for the whole form");
});
test("field-related errors are rendered at FormItems", async ({
initTestBed,
createFormDriver,
createFormItemDriver,
}) => {
await initTestBed(
`
<Form submitUrl="/field-validation-error" submitMethod="post">
<FormItem testId="testField" bindTo="test" label="test" />
</Form>`,
{
apiInterceptor: errorDisplayInterceptor,
},
);
const formDriver = await createFormDriver();
const fieldDriver = await createFormItemDriver("testField");
await formDriver.submitForm();
await expect(fieldDriver.validationStatusIndicator).toHaveAttribute(
fieldDriver.validationStatusTag,
"warning",
);
});
test("field-related errors map to correct FormItems", async ({
initTestBed,
createFormDriver,
createFormItemDriver,
}) => {
await initTestBed(
`
<Form submitUrl="/field-validation-error" submitMethod="post">
<FormItem testId="testField" bindTo="test" label="test" />
<FormItem testId="testField2" bindTo="test2" label="test2" />
</Form>`,
{
apiInterceptor: errorDisplayInterceptor,
},
);
const formDriver = await createFormDriver();
const fieldDriver = await createFormItemDriver("testField");
await formDriver.submitForm();
await expect(fieldDriver.validationStatusIndicator).toHaveAttribute(
fieldDriver.validationStatusTag,
"warning",
);
});
test.skip("field-related errors disappear if user updates FormItems", async ({
initTestBed,
page,
createFormItemDriver,
}) => {
await initTestBed(
`
<Form testId="form">
<FormItem testId="testField" bindTo="test" label="test" required />
<FormItem testId="testField2" bindTo="test2" label="test2" />
</Form>`,
);
const fieldDriver = await createFormItemDriver("testField");
const fieldDriver2 = await createFormItemDriver("testField2");
await fieldDriver.component.focus();
await fieldDriver.textBox.fill("a");
await fieldDriver.textBox.fill("");
await fieldDriver.textBox.blur();
// Should show required error now
await expect(fieldDriver.textBox).toHaveValue("");
await expect(fieldDriver.validationStatusIndicator).toHaveAttribute(
fieldDriver.validationStatusTag,
"error",
);
await fieldDriver.textBox.fill("a");
await fieldDriver.textBox.blur();
await fieldDriver2.textBox.focus();
await expect(fieldDriver2.textBox).toBeFocused();
await fieldDriver2.textBox.fill("b");
await expect(fieldDriver.validationStatusIndicator).not.toBeVisible();
});
const smartCrudInterceptor: ApiInterceptorDefinition = {
initialize: `
$state.items = {
[10]: { name: "Smith", id: 10 }
};
$state.currentId = 10;
`,
operations: {
create: {
url: "/entities",
method: "post",
handler: `() => {
$state.currentId++;
$state.items[$state.currentId] = $requestBody;
$state.items[$state.currentId].id = $state.currentId;
return $state.items[$state.currentId];
}`,
},
read: {
url: "/entities/:id",
method: "get",
handler: `() => {
return $state.items[$pathParams.id];
}`,
},
update: {
url: "/entities/:id",
method: "put",
handler: `() => {
$state.items[$pathParams.id] = { ...$state.items[$pathParams.id], ...$requestBody };
return $state.items[$pathParams.id];
}`,
},
},
};
test("create form works with submitUrl", async ({
initTestBed,
createFormDriver,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(
`
<Form submitUrl="/entities">
<FormItem bindTo="name" testId="nameInput"/>
</Form>
`,
{ apiInterceptor: smartCrudInterceptor },
);
const formDriver = await createFormDriver();
const inputElement = (await createFormItemDriver("nameInput")).input;
const fieldDriver = await createTextBoxDriver(inputElement);
await fieldDriver.field.fill("John");
await formDriver.submitForm("click");
const response = await formDriver.getSubmitResponse();
expect(await response.json()).toEqual({
name: "John",
id: 11,
});
});
test("regression: data url through modal context", async ({
initTestBed,
createButtonDriver,
createFormDriver,
createFormItemDriver,
createTextBoxDriver,
}) => {
await initTestBed(
`
<Fragment>
<Button testId="openModalButton" onClick="modal.open({data: '/entities/10'})"/>
<ModalDialog id="modal">
<Form testId="modalForm" data="{$param.data}" submitUrl="{$param.submitUrl}">
<FormItem bindTo="name" testId="nameInput"/>
</Form>
</ModalDialog>
</Fragment>
`,
{
apiInterceptor: smartCrudInterceptor,
},
);
const formDriver = await createFormDriver("modalForm");
const inputElement = (await createFormItemDriver("nameInput")).input;
const inputDriver = await createTextBoxDriver(inputElement);
await (await createButtonDriver("openModalButton")).click();
await expect(inputDriver.field).toHaveValue("Smith");
await inputDriver.field.fill("EDITED-Smith");
await formDriver.submitForm("click");
const response = await formDriver.getSubmitResponse();
expect(await response.json()).toEqual({
name: "EDITED-Smith",
id: 10,
});
});
// --- Conditional Rendering Cases
test("can submit with invisible required field", async ({
initTestBed,
createFormDriver,
createFormItemDriver,
createTextBoxDriver,
page,
}) => {
const { testStateDriver } = await initTestBed(`
<Form onSubmit="testState = true">
<FormItem testId="select" bindTo="authenticationType"
type="select" label="Authentication Type:" initialValue="{0}">
<Option value="{0}" label="Password" />
<Option value="{1}" label="Public Key" />
</FormItem>
<FormItem label="name1" testId="name1" bindTo="name1"
required="true" when="{$data.authenticationType == 0}"/>
<FormItem label="name2" testId="name2" bindTo="name2"
required="true" when="{$data.authenticationType == 1}"/>
</Form>
`);
const formDriver = await createFormDriver();
const selectDriver = await createFormItemDriver("select");
const textfieldElement = (await createFormItemDriver("name2")).input;
const textfieldDriver = await createTextBoxDriver(textfieldElement);
await selectDriver.component.click();
await page.getByText("Public Key").click();
await textfieldDriver.field.fill("John");
await formDriver.submitForm();
await expect.poll(testStateDriver.testState).toEqual(true);
});
test("conditional fields keep the state", async ({
initTestBed,
createFormItemDriver,
createOptionDriver,
createTextBoxDriver,
}) => {
await initTestBed(`
<Form>
<FormItem testId="select" bindTo="authenticationType"
type="radioGroup" label="Authentication Type:" initialValue="{0}">
<Option value="{0}" label="Password" testId="password"/>
<Option value="{1}" label="Public Key" testId="publicKey" />
</FormItem>
<FormItem label="name1" testId="name1" bindTo="name1"
required="true" when="{$data.authenticationType == 0}"/>
<FormItem label="name2" testId="name2" bindTo="name2"
required="true" when="{$data.authenticationType == 1}"/>
</Form>
`);
const option1Driver = await createFormItemDriver("password");
const option2Driver = await createOptionDriver("publicKey");
const textfield1Element = (await createFormItemDriver("name1")).input;
const textfield1Driver = await createTextBoxDriver(textfield1Element);
const textfield2Element = (await createFormItemDriver("name2")).input;
const textfield2Driver = await createTextBoxDriver(textfield2Element);
await textfield1Driver.field.fill("name1");
await option2Driver.click();
await textfield2Driver.field.fill("name2");
await option1Driver.click();
await expect(textfield1Driver.field).toHaveValue("name1");
});
```