#
tokens: 44742/50000 3/1630 files (page 89/186)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 89 of 186. Use http://codebase.md/xmlui-org/xmlui/xmlui/tools/vscode/resources/xmlui-markup-syntax-highlighting.png?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   ├── config.json
│   └── cyan-tools-design.md
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog-optimized.yml
│       ├── deploy-blog-swa.yml
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs-swa.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── an-advanced-codefence.gif
│   │   │   │   ├── an-advanced-codefence.mp4
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── codefence-runner.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   ├── lorem-ipsum.png
│   │   │   │   ├── playground-checkbox-source.png
│   │   │   │   ├── playground.png
│   │   │   │   ├── use-xmlui-mcp-to-find-a-howto.png
│   │   │   │   └── xmlui-demo-gallery.png
│   │   │   ├── introducing-xmlui.md
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   ├── xmlui-playground.md
│   │   │   └── xmlui-powered-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
│   │   ├── staticwebapp.config.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
│   │           ├── FancyButton.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
│   │   │   │   ├── control-cache-invalidation.md
│   │   │   │   ├── debounce-user-input-for-api-calls.md
│   │   │   │   ├── debounce-with-changelistener.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
│   ├── tsconfig.json
│   ├── 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
│   ├── 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
│   │   └── 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
│   ├── 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
│   ├── 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
│   ├── 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.module.scss
│   │       │   ├── 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.tsx
│   │       │   ├── StandalonePlayground.tsx
│   │       │   ├── StandalonePlaygroundNative.module.scss
│   │       │   ├── StandalonePlaygroundNative.tsx
│   │       │   ├── ThemeSwitcher.module.scss
│   │       │   ├── ThemeSwitcher.tsx
│   │       │   └── utils.ts
│   │       ├── providers
│   │       │   ├── Toast.module.scss
│   │       │   └── ToastProvider.tsx
│   │       ├── state
│   │       │   └── store.ts
│   │       ├── themes
│   │       │   └── theme.ts
│   │       └── utils
│   │           └── helpers.ts
│   ├── 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
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Spreadsheet.tsx
│   │       └── SpreadsheetNative.tsx
│   └── 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.spec.ts
│           │   ├── HeroSection.tsx
│           │   └── HeroSectionNative.tsx
│           ├── index.tsx
│           ├── ScrollToTop
│           │   ├── ScrollToTop.module.scss
│           │   ├── ScrollToTop.tsx
│           │   └── ScrollToTopNative.tsx
│           └── vite-env.d.ts
├── playwright.config.ts
├── 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.cjs
    │   ├── 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
    │   ├── component-metadata.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
    │   ├── theme-variables-refactoring.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── extract-component-metadata.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
    │   ├── generate-metadata-markdown.js
    │   ├── get-langserver-metadata.js
    │   ├── 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.module.scss
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   └── 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.js
    │   ├── 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
    │   │   │   ├── index.ts
    │   │   │   ├── ModalDialogDriver.ts
    │   │   │   ├── NumberBoxDriver.ts
    │   │   │   ├── TextBoxDriver.ts
    │   │   │   ├── TimeInputDriver.ts
    │   │   │   ├── TimerDriver.ts
    │   │   │   └── TreeDriver.ts
    │   │   ├── fixtures.ts
    │   │   ├── index.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.json
    ├── tsdown.config.ts
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

--------------------------------------------------------------------------------
/xmlui/src/parsers/xmlui-parser/xmlui-serializer.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import type { ComponentDef, CompoundComponentDef } from "../../abstractions/ComponentDefs";
  2 | import type {
  3 |   XmlUiAttribute,
  4 |   XmlUiComment,
  5 |   XmlUiElement,
  6 |   XmlUiFragment,
  7 |   XmlUiNode,
  8 | } from "./xmlui-tree";
  9 | import { COMPOUND_COMP_ID } from "./transform";
 10 | 
 11 | const attrBreakRegex = /[\r\n<>'"&]/;
 12 | 
 13 | /**
 14 |  * Helper class for XMLUI serialization and parsing
 15 |  */
 16 | export class XmlUiHelper {
 17 |   /**
 18 |    * Serialize the specified XML fragment into a string
 19 |    * @param xml XML fragment to serialize
 20 |    * @param options Formatting options to use
 21 |    */
 22 |   serialize(xml: XmlUiFragment, options?: XmluiSerializationOptions): string {
 23 |     const fragment = Array.isArray(xml) ? xml : [xml];
 24 |     return serializeFragment(fragment, 0);
 25 | 
 26 |     function serializeFragment(nodes: XmlUiNode[], depth: number): string {
 27 |       return nodes
 28 |         .map((n) => serializeNode(n, depth))
 29 |         .join(options?.prettify ? "\n" + getIndent(depth) : "");
 30 |     }
 31 | 
 32 |     function serializeNode(node: XmlUiNode, depth: number): string {
 33 |       switch (node.type) {
 34 |         case "XmlUiComment":
 35 |           return serializeXmlComment(node, depth);
 36 |         case "XmlUiElement":
 37 |           return serializeXmlElement(node, depth);
 38 |         default:
 39 |           return "";
 40 |       }
 41 |     }
 42 | 
 43 |     function getIndent(depth: number): string {
 44 |       return options?.prettify ? "".padEnd((options?.indents ?? 2) * depth, " ") : "";
 45 |     }
 46 | 
 47 |     function serializeXmlComment(node: XmlUiComment, depth: number): string {
 48 |       return `${getIndent(depth)}<!--${node.text}-->`;
 49 |     }
 50 | 
 51 |     function serializeXmlElement(node: XmlUiElement, depth: number): string {
 52 |       let elementStr = `${getIndent(depth)}<${nodeName()}`;
 53 |       const hasAttrs = (node.attributes?.length ?? 0) > 0;
 54 |       const hasChildren = (node.childNodes?.length ?? 0) > 0;
 55 |       if (node.text || hasAttrs || hasChildren) {
 56 |         // --- Indicate that the node has not yet been broken into multiple lines
 57 |         if (hasAttrs) {
 58 |           // --- Render attributes
 59 |           const attrTexts = node.attributes!.map((a) => serializeXmlAttribute(a));
 60 |           if (!options?.prettify) {
 61 |             elementStr += " " + attrTexts.join(" ");
 62 |           } else {
 63 |             // --- Check line overflow
 64 |             const nodeLength =
 65 |               elementStr.length +
 66 |               1 + // --- Space after
 67 |               attrTexts.join(" ").length + // --- Attributes total length
 68 |               (hasChildren ? 1 : (options?.useSpaceBeforeClose ?? false) ? 3 : 2); // --- Closing token length
 69 |             if (nodeLength > (options?.lineLength ?? 80)) {
 70 |               // --- Too long, break attributes into new lines
 71 |               attrTexts.forEach((text) => {
 72 |                 elementStr += "\n" + getIndent(depth + 1) + text;
 73 |               });
 74 |               if (options?.breakClosingTag ?? false) {
 75 |                 elementStr += "\n" + getIndent(depth);
 76 |               }
 77 |             } else {
 78 |               // --- Attributes fit into the line
 79 |               elementStr += " " + attrTexts.join(" ");
 80 |             }
 81 |           }
 82 |         }
 83 |         if (node.text || hasChildren) {
 84 |           // --- Close the opening tag
 85 |           elementStr += ">";
 86 | 
 87 |           // --- Render the text
 88 |           if (node.text) {
 89 |             const textContents = node.preserveSpaces
 90 |               ? serializeQuotedText(node.text)
 91 |               : serializeText(node.text);
 92 |             if (
 93 |               options?.prettify &&
 94 |               elementStr.length + textContents.length + node.name.length + 3 >
 95 |                 (options?.lineLength ?? 80)
 96 |             ) {
 97 |               // --- break text
 98 |               elementStr += "\n" + getIndent(depth + 1) + textContents + "\n";
 99 |             } else {
100 |               elementStr += textContents;
101 |             }
102 |           }
103 | 
104 |           // --- Render child nodes
105 |           if (hasChildren) {
106 |             const childrenTexts = node.childNodes!.map((c) => serializeNode(c, depth + 1));
107 |             if (!options?.prettify) {
108 |               elementStr += childrenTexts.join("");
109 |             } else {
110 |               childrenTexts.forEach((text) => {
111 |                 elementStr += "\n" + text;
112 |               });
113 |               elementStr += "\n";
114 |             }
115 |           }
116 | 
117 |           // --- Render the closing tag
118 |           elementStr += `${getIndent(depth)}</${node.name}>`;
119 |         } else {
120 |           elementStr += ((options?.useSpaceBeforeClose ?? false) ? " " : "") + "/>";
121 |         }
122 |       } else {
123 |         elementStr += ((options?.useSpaceBeforeClose ?? false) ? " " : "") + "/>";
124 |         if (node.text === "") {
125 |           elementStr += `""</${nodeName()}>`;
126 |         }
127 |       }
128 | 
129 |       return elementStr;
130 | 
131 |       function nodeName(): string {
132 |         return node.namespace ? `${node.namespace}:${node.name}` : node.name;
133 |       }
134 |     }
135 | 
136 |     function serializeXmlAttribute(node: XmlUiAttribute): string {
137 |       // --- Handle valueless attributes
138 |       if (node.value === undefined || node.value === null) {
139 |         return `${nodeName()}`;
140 |       }
141 | 
142 |       // --- Use quotes when required so
143 |       if (node.preserveSpaces) {
144 |         return `${nodeName()}=${serializeQuotedText(node.value)}`;
145 |       }
146 | 
147 |       // --- Do the rest
148 |       const value = node.value ?? "";
149 |       return `${nodeName()}=${serializeQuotedText(value)}`;
150 | 
151 |       function nodeName(): string {
152 |         return node.namespace ? `${node.namespace}:${node.name}` : node.name;
153 |       }
154 |     }
155 | 
156 |     function serializeText(text: string): string {
157 |       return options?.useQuotes || attrBreakRegex.test(text) ? serializeQuotedText(text) : text;
158 |     }
159 | 
160 |     function serializeQuotedText(text: string): string {
161 |       const containsQuote = text.indexOf("'") >= 0;
162 |       const containsDQuote = text.indexOf('"') >= 0;
163 |       if ((!containsQuote && !containsDQuote) || (containsQuote && !containsDQuote)) {
164 |         return `"${text.replaceAll("`", "\\`")}"`;
165 |       }
166 |       if (containsDQuote && !containsQuote) {
167 |         return `'${text.replaceAll("`", "\\`")}'`;
168 |       }
169 |       return `\`${text.replaceAll("`", "\\`")}\``;
170 |     }
171 |   }
172 | 
173 |   /**
174 |    * Transform the specified component definition into an XMLUI node
175 |    * @param def Component definitions
176 |    * @param options Transformation options
177 |    */
178 |   transformComponentDefinition(
179 |     def: ComponentDef | CompoundComponentDef,
180 |     options?: XmlUiTransformOptions,
181 |   ): XmlUiFragment {
182 |     return (def as any).type
183 |       ? this.transformSimpleComponentDefinition(def as ComponentDef, options)
184 |       : this.transformCompoundComponentDefinition(def as CompoundComponentDef, options);
185 |   }
186 | 
187 |   /**
188 |    * Transform the specified object into an XMLUI nodes
189 |    * @param def Object definition
190 |    * @param options Transformation options
191 |    */
192 |   transformObject(def: Record<string, any>, options?: XmlUiTransformOptions): XmlUiNode[] | null {
193 |     const transformed = this.transformValue("Object", "", def, options);
194 |     if (!transformed) {
195 |       return null;
196 |     }
197 |     return transformed.childNodes ?? [];
198 |   }
199 | 
200 |   /**
201 |    * Transforms the specified simple component definition into an XMLUI node
202 |    * @param def Component definition
203 |    * @param options Transformation options
204 |    */
205 |   private transformSimpleComponentDefinition(
206 |     def: ComponentDef,
207 |     options?: XmlUiTransformOptions,
208 |   ): XmlUiFragment {
209 |     const componentNode: XmlUiElement = {
210 |       type: "XmlUiElement",
211 |       name: def.type,
212 |     };
213 | 
214 |     // --- Fundamental props
215 |     if (def.uid !== undefined) {
216 |       this.addProperty(componentNode, "id", def.uid, options);
217 |     }
218 |     if (def.testId !== undefined) {
219 |       this.addProperty(componentNode, "testId", def.testId, options);
220 |     }
221 |     if (def.when !== undefined) {
222 |       this.addProperty(componentNode, "when", def.when, options);
223 |     }
224 | 
225 |     // --- Process vars
226 |     if (def.vars) {
227 |       Object.keys(def.vars).forEach((key) => {
228 |         const varElement = this.transformValue("var", key, def.vars![key], options);
229 |         if (varElement === null) return;
230 |         componentNode.childNodes ??= [];
231 |         componentNode.childNodes.push(varElement);
232 |       });
233 |     }
234 | 
235 |     // --- Process properties
236 |     if (def.props) {
237 |       Object.keys(def.props).forEach((key) => {
238 |         // --- Special serialization for component-aware props
239 |         const propValue = def.props![key];
240 |         if (key.endsWith("Template") && (propValue as any).type) {
241 |           // --- Consider this property holds a component
242 |           componentNode.childNodes ??= [];
243 |           const propWrapper: XmlUiElement = {
244 |             type: "XmlUiElement",
245 |             name: "property",
246 |             attributes: [
247 |               {
248 |                 type: "XmlUiAttribute",
249 |                 name: "name",
250 |                 value: key,
251 |               },
252 |             ],
253 |           };
254 |           this.addComponentElement(propWrapper, propValue as ComponentDef);
255 |           componentNode.childNodes.push(propWrapper);
256 |         } else {
257 |           // --- Undefined is not serialized
258 |           if (propValue === undefined) {
259 |             return;
260 |           }
261 | 
262 |           // --- Handle null property value
263 |           if (propValue === null) {
264 |             const nullPropElement: XmlUiElement = {
265 |               type: "XmlUiElement",
266 |               name: "property",
267 |               attributes: [
268 |                 {
269 |                   type: "XmlUiAttribute",
270 |                   name: "name",
271 |                   value: key,
272 |                 },
273 |               ],
274 |             };
275 |             componentNode.childNodes ??= [];
276 |             componentNode.childNodes.push(nullPropElement);
277 |             return;
278 |           }
279 | 
280 |           // --- Extract prop if asked so, or if those are special, like "id", "when", or "testIs"
281 |           if (key === "id" || key === "when" || key === "testId" || options?.extractProps) {
282 |             const idPropElement: XmlUiElement = {
283 |               type: "XmlUiElement",
284 |               name: "property",
285 |             };
286 |             this.addProperty(idPropElement, key, propValue, options);
287 |             componentNode.childNodes ??= [];
288 |             componentNode.childNodes.push(idPropElement);
289 |             return;
290 |           }
291 | 
292 |           // --- Add property as the best according to the value
293 |           this.addProperty(componentNode, key, propValue, options);
294 |         }
295 |       });
296 |     }
297 | 
298 |     // --- Process events
299 |     if (def.events) {
300 |       Object.keys(def.events).forEach((key) => {
301 |         const eventElement = this.transformValue("event", key, def.events![key], options);
302 |         if (eventElement === null) return;
303 |         componentNode.childNodes ??= [];
304 |         componentNode.childNodes.push(eventElement);
305 |       });
306 |     }
307 | 
308 |     // --- Process loaders
309 |     if (def.loaders) {
310 |       this.addComponentList(componentNode, "loaders", def.loaders);
311 |     }
312 | 
313 |     // --- Process APIs
314 |     if (def.api) {
315 |       Object.keys(def.api).forEach((key) => {
316 |         const apiElement = this.transformValue("api", key, def.api![key], options);
317 |         if (apiElement === null) return;
318 |         componentNode.childNodes ??= [];
319 |         componentNode.childNodes.push(apiElement);
320 |       });
321 |     }
322 | 
323 |     // --- Process uses
324 |     if (def.uses) {
325 |       this.addList(componentNode, "uses", "", def.uses, options);
326 |     }
327 | 
328 |     // --- Process children
329 |     if (def.children) {
330 |       if (typeof def.children === "string") {
331 |         this.addProperty(componentNode, "children", def.children, options);
332 |       } else {
333 |         def.children.forEach((ch) => {
334 |           this.addComponentElement(componentNode, ch);
335 |         });
336 |       }
337 |     }
338 | 
339 |     // --- Done
340 |     return componentNode;
341 |   }
342 | 
343 |   /**
344 |    * Transforms the specified simple component definition into an Xml node
345 |    * @param def Compound component definition
346 |    * @param options Transformation options
347 |    */
348 |   private transformCompoundComponentDefinition(
349 |     def: CompoundComponentDef | string,
350 |     options?: XmlUiTransformOptions,
351 |   ): XmlUiFragment {
352 |     if (typeof def === "string") {
353 |       return {
354 |         type: "XmlUiElement",
355 |         name: def,
356 |       } as XmlUiElement;
357 |     }
358 | 
359 |     const nested: XmlUiFragment = this.transformSimpleComponentDefinition(
360 |       def.component,
361 |       options,
362 |     );
363 |     const componentNode: XmlUiElement = {
364 |       type: "XmlUiElement",
365 |       name: COMPOUND_COMP_ID,
366 |       attributes: [
367 |         {
368 |           type: "XmlUiAttribute",
369 |           name: "name",
370 |           value: def.name,
371 |         },
372 |       ],
373 |       childNodes: Array.isArray(nested) ? [...nested] : [nested],
374 |     };
375 | 
376 |     // --- Transform APIs
377 |     if (def.api) {
378 |       Object.keys(def.api).forEach((key) => {
379 |         const apiElement = this.transformValue("api", key, def.api![key], options);
380 |         if (apiElement === null) return;
381 |         componentNode.childNodes ??= [];
382 |         componentNode.childNodes.push(apiElement);
383 |       });
384 |     }
385 | 
386 |     // --- Done
387 |     return componentNode;
388 |   }
389 | 
390 |   /**
391 |    * Transforms a value into an XMLUI element
392 |    * @param nodeName Name of the value node
393 |    * @param name Optional (property) name
394 |    * @param value Value to transform
395 |    * @param options Transformation options
396 |    */
397 |   private transformValue(
398 |     nodeName: string,
399 |     name: string | undefined,
400 |     value: any,
401 |     options?: XmlUiTransformOptions,
402 |   ): XmlUiElement | null {
403 |     // --- Do not transform undefined elements
404 |     if (value === undefined) return null;
405 | 
406 |     // --- Prepare the node with the value
407 |     const valueNode: XmlUiElement = {
408 |       type: "XmlUiElement",
409 |       name: nodeName,
410 |     };
411 |     if (name) {
412 |       valueNode.attributes = [
413 |         {
414 |           type: "XmlUiAttribute",
415 |           name: "name",
416 |           value: name,
417 |         },
418 |       ];
419 |     }
420 | 
421 |     // --- Extend the node according to the specified value
422 |     // --- Null value: we're done
423 |     if (value === null) {
424 |       return valueNode;
425 |     }
426 | 
427 |     // --- Simple value: use text or value attribute
428 |     if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
429 |       const strValue = typeof value === "string" ? value.toString() : `{${value.toString()}}`;
430 |       const preserveSpaces =
431 |         attrBreakRegex.test(strValue) || strValue.trim().length != strValue.length;
432 |       if (options?.preferTextToValue) {
433 |         valueNode.text = strValue;
434 |         valueNode.preserveSpaces = preserveSpaces;
435 |       } else {
436 |         valueNode.attributes ??= [];
437 |         valueNode.attributes.push({
438 |           type: "XmlUiAttribute",
439 |           name: "value",
440 |           value: strValue,
441 |           preserveSpaces,
442 |         });
443 |       }
444 |       return valueNode;
445 |     }
446 | 
447 |     // --- Array value
448 |     if (Array.isArray(value)) {
449 |       if (value.length === 0) {
450 |         // --- Empty array
451 |         valueNode.attributes ??= [];
452 |         valueNode.attributes.push({
453 |           type: "XmlUiAttribute",
454 |           name: "value",
455 |           value: "{[]}",
456 |         });
457 |       } else {
458 |         value.forEach((item) => {
459 |           const itemElement = this.transformValue("item", undefined, item, options);
460 |           if (!itemElement) return;
461 |           valueNode.childNodes ??= [];
462 |           valueNode.childNodes.push(itemElement);
463 |         });
464 |       }
465 |     } else if (typeof value === "object") {
466 |       const keys = Object.keys(value);
467 |       if (keys.length === 0) {
468 |         // --- Empty object
469 |         valueNode.attributes ??= [];
470 |         valueNode.attributes.push({
471 |           type: "XmlUiAttribute",
472 |           name: "value",
473 |           value: "{{}}",
474 |         });
475 |       } else {
476 |         keys.forEach((key) => {
477 |           const fieldElement = this.transformValue("field", key, value[key], options);
478 |           if (!fieldElement) return;
479 |           valueNode.childNodes ??= [];
480 |           valueNode.childNodes.push(fieldElement);
481 |         });
482 |       }
483 |     } else {
484 |       throw new Error(`Cannot serialize '${typeof value}' value`);
485 |     }
486 | 
487 |     return valueNode;
488 |   }
489 | 
490 |   /**
491 |    * Transforms the specified simple component definition into an Xml node
492 |    * @param name Element name
493 |    * @param value Value to transform
494 |    * @param options Transformation options
495 |    */
496 |   private transformObjectValue(
497 |     name: string,
498 |     value: any,
499 |     options?: XmlUiTransformOptions,
500 |   ): XmlUiNode {
501 |     const componentNode: XmlUiElement = {
502 |       type: "XmlUiElement",
503 |       name: name,
504 |     };
505 | 
506 |     if (value) {
507 |       Object.keys(value).forEach((key) =>
508 |         this.addProperty(componentNode, key, value[key], options),
509 |       );
510 |     }
511 |     return componentNode;
512 |   }
513 | 
514 |   /**
515 |    * Add a property to the specified XMLUI element
516 |    * @param element XML element
517 |    * @param name Element name
518 |    * @param value Element value
519 |    * @param options Transformation options
520 |    */
521 |   private addProperty(
522 |     element: XmlUiElement,
523 |     name: string,
524 |     value: any,
525 |     options?: XmlUiTransformOptions,
526 |   ): void {
527 |     switch (typeof value) {
528 |       // --- We do not serialize undefined property values
529 |       case "undefined":
530 |         break;
531 |       case "string":
532 |         element.attributes ??= [];
533 |         element.attributes.push({
534 |           type: "XmlUiAttribute",
535 |           name,
536 |           value: value?.toString(),
537 |           preserveQuotes: options?.removeQuotes ?? false,
538 |           preserveSpaces: attrBreakRegex.test(value.toString()),
539 |         });
540 |         break;
541 |       case "boolean":
542 |       case "number":
543 |       case "object":
544 |         const objElement = this.transformValue("property", name, value, options);
545 |         if (objElement) {
546 |           element.childNodes ??= [];
547 |           element.childNodes.push(objElement);
548 |         }
549 |         break;
550 |       default:
551 |         throw new Error(`'${typeof value}' transformation is not implemented yet`);
552 |     }
553 |   }
554 | 
555 |   private addComponentElement(element: XmlUiElement, component: ComponentDef): void {
556 |     element.childNodes ??= [];
557 |     const childDef = this.transformComponentDefinition(component);
558 |     if (Array.isArray(childDef)) {
559 |       element.childNodes.push(...childDef);
560 |     } else {
561 |       element.childNodes.push(childDef);
562 |     }
563 |   }
564 | 
565 |   /**
566 |    * Adds a list to the specified XML element
567 |    * @param element XML element
568 |    * @param name Name of the list (child in `element`)
569 |    * @param prefix Prefix to use for the list
570 |    * @param list List with items
571 |    * @param options Transformation options
572 |    */
573 |   private addList(
574 |     element: XmlUiElement,
575 |     name: string,
576 |     prefix: string,
577 |     list: any[],
578 |     options?: XmlUiTransformOptions,
579 |   ): void {
580 |     const nodeName = `${prefix ? prefix + "." : ""}${name}`;
581 |     element.childNodes ??= [];
582 |     list.forEach((item) => {
583 |       if (typeof item === "string") {
584 |         // --- Special case, the item can be the text of an XML element
585 |         element.childNodes!.push({
586 |           type: "XmlUiElement",
587 |           name: nodeName,
588 |           text: item,
589 |           preserveSpaces: attrBreakRegex.test(item) || item !== item.trim() || item === "",
590 |         });
591 |       } else if (item === null) {
592 |         element.childNodes!.push({
593 |           type: "XmlUiElement",
594 |           name: nodeName,
595 |         });
596 |       } else {
597 |         const transformed = this.transformObjectValue(nodeName, item, options);
598 |         if (Array.isArray(transformed)) {
599 |           element.childNodes!.push(...transformed);
600 |         } else {
601 |           element.childNodes!.push(transformed);
602 |         }
603 |       }
604 |     });
605 |   }
606 | 
607 |   /**
608 |    * Adds a component list to the specified element
609 |    * @param element XML element
610 |    * @param name Name to use for the wrapper element
611 |    * @param list List with component items
612 |    * @private
613 |    */
614 |   private addComponentList(element: XmlUiElement, name: string, list: ComponentDef[]): void {
615 |     const children: XmlUiNode[] = [];
616 |     list.forEach((item) => {
617 |       const fragment = this.transformSimpleComponentDefinition(item);
618 |       if (Array.isArray(fragment)) {
619 |         children.push(...fragment);
620 |       } else {
621 |         children.push(fragment);
622 |       }
623 |     });
624 |     const listElement: XmlUiElement = {
625 |       type: "XmlUiElement",
626 |       name,
627 |       childNodes: children,
628 |     };
629 |     element.childNodes ??= [];
630 |     element.childNodes.push(listElement);
631 |   }
632 | }
633 | 
634 | /**
635 |  * Options to use with markup transformation from memory format to XMLUI structure
636 |  */
637 | export type XmlUiTransformOptions = {
638 |   preserveLineBreaks?: boolean;
639 |   preserveSpecialChars?: boolean;
640 |   removeQuotes?: boolean;
641 |   extractProps?: boolean;
642 |   preferTextToValue?: boolean;
643 | };
644 | 
645 | export type XmluiSerializationOptions = {
646 |   // --- Should prettify the output?
647 |   prettify?: boolean;
648 | 
649 |   // --- Number of spaces to use for indentation
650 |   indents?: number;
651 | 
652 |   // --- Max line length before breaking down attributes or text
653 |   lineLength?: number;
654 | 
655 |   // --- Forces using quotes
656 |   useQuotes?: boolean;
657 | 
658 |   // --- Use a space before "/>" ?
659 |   useSpaceBeforeClose?: boolean;
660 | 
661 |   // --- Break closing tag into a new line
662 |   breakClosingTag?: boolean;
663 | };
664 | 
```

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

```typescript
  1 | import { getBounds, SKIP_REASON } from "../../testing/component-test-helpers";
  2 | import { expect, test } from "../../testing/fixtures";
  3 | 
  4 | // =============================================================================
  5 | // BASIC FUNCTIONALITY TESTS
  6 | // =============================================================================
  7 | 
  8 | test.describe("Basic Functionality", () => {
  9 |   test("RadioGroup with Option elements as children", async ({ initTestBed, page }) => {
 10 |     await initTestBed(`
 11 |       <RadioGroup>
 12 |         <Option value="1"></Option>
 13 |         <Option value="2"></Option>
 14 |         <Option value="3"></Option>
 15 |       </RadioGroup>
 16 |     `);
 17 |     const options = page.getByRole("radiogroup").getByRole("radio");
 18 |     await expect(options).toHaveCount(3);
 19 |   });
 20 | 
 21 |   test("RadioGroup with Option elements with labels as children", async ({ initTestBed, page }) => {
 22 |     await initTestBed(`
 23 |       <RadioGroup>
 24 |         <Option value="1">Option 1</Option>
 25 |         <Option value="2">Option 2</Option>
 26 |         <Option value="3">Option 3</Option>
 27 |       </RadioGroup>
 28 |     `);
 29 |     const optionLabels = page.getByRole("radiogroup").locator("label");
 30 |     await expect(optionLabels).toHaveCount(3);
 31 |     await expect(optionLabels.nth(0)).toHaveText("Option 1");
 32 |     await expect(optionLabels.nth(1)).toHaveText("Option 2");
 33 |     await expect(optionLabels.nth(2)).toHaveText("Option 3");
 34 |   });
 35 | 
 36 |   test("Providing non-Option elements as children still renders", async ({ initTestBed, page }) => {
 37 |     await initTestBed(`
 38 |       <RadioGroup>
 39 |         <Text>Not an Option</Text>
 40 |       </RadioGroup>
 41 |     `);
 42 |     await expect(page.getByRole("radiogroup")).toBeVisible();
 43 |     await expect(page.getByText("Not an Option")).toBeVisible();
 44 |   });
 45 | 
 46 |   test("Mixing Option and non-Option elements as children renders all", async ({
 47 |     initTestBed,
 48 |     page,
 49 |   }) => {
 50 |     await initTestBed(`
 51 |       <RadioGroup>
 52 |         <Text>Not an Option</Text>
 53 |         <Option value="1">Option 1</Option>
 54 |       </RadioGroup>
 55 |     `);
 56 |     await expect(page.getByRole("radiogroup")).toBeVisible();
 57 |     await expect(page.getByText("Not an Option")).toBeVisible();
 58 |     await expect(page.getByText("Option 1")).toBeVisible();
 59 |   });
 60 | 
 61 |   test("autoFocus sets focus on the first Option on page load", async ({ initTestBed, page }) => {
 62 |     await initTestBed(`
 63 |       <RadioGroup autoFocus="true">
 64 |         <Option value="1">Option 1</Option>
 65 |       </RadioGroup>
 66 |     `);
 67 |     await expect(page.getByRole("radiogroup").getByRole("radio")).toBeFocused();
 68 |   });
 69 | 
 70 |   test("field is marked as required in the DOM when required=true", async ({
 71 |     initTestBed,
 72 |     page,
 73 |   }) => {
 74 |     await initTestBed(`
 75 |       <RadioGroup required="true">
 76 |         <Option value="1">Option 1</Option>
 77 |       </RadioGroup>
 78 |     `);
 79 |     await expect(page.getByRole("radiogroup")).toHaveAttribute("aria-required");
 80 |   });
 81 | 
 82 |   test("making field required shows a visual indicator", async ({ initTestBed, page }) => {
 83 |     await initTestBed(`
 84 |       <RadioGroup required="true" label="Radio Group Label">
 85 |         <Option value="1">Option 1</Option>
 86 |       </RadioGroup>
 87 |     `);
 88 |     await expect(page.getByText("*")).toBeVisible();
 89 |   });
 90 | 
 91 |   test("initialValue sets the initial selected option (string initialValue & options)", async ({
 92 |     initTestBed,
 93 |     page,
 94 |   }) => {
 95 |     await initTestBed(`
 96 |       <RadioGroup initialValue="2">
 97 |         <Option value="1">Option 1</Option>
 98 |         <Option value="2">Option 2</Option>
 99 |         <Option value="3">Option 3</Option>
100 |       </RadioGroup>
101 |     `);
102 |     const options = page.getByRole("radiogroup").getByRole("radio");
103 |     await expect(options.nth(0)).not.toBeChecked();
104 |     await expect(options.nth(1)).toBeChecked();
105 |     await expect(options.nth(2)).not.toBeChecked();
106 |   });
107 | 
108 |   test("initialValue sets the initial selected option (number initialValue & options)", async ({
109 |     initTestBed,
110 |     page,
111 |   }) => {
112 |     await initTestBed(`
113 |       <RadioGroup initialValue="{2}">
114 |         <Option value="{1}">Option 1</Option>
115 |         <Option value="{2}">Option 2</Option>
116 |         <Option value="{3}">Option 3</Option>
117 |       </RadioGroup>
118 |     `);
119 |     const options = page.getByRole("radiogroup").getByRole("radio");
120 |     await expect(options.nth(0)).not.toBeChecked();
121 |     await expect(options.nth(1)).toBeChecked();
122 |     await expect(options.nth(2)).not.toBeChecked();
123 |   });
124 | 
125 |   test("initialValue does not set the initial selected option (number initialValue, string options)", async ({
126 |     initTestBed,
127 |     page,
128 |   }) => {
129 |     await initTestBed(`
130 |       <RadioGroup initialValue="{2}">
131 |         <Option value="1">Option 1</Option>
132 |         <Option value="2">Option 2</Option>
133 |         <Option value="3">Option 3</Option>
134 |       </RadioGroup>
135 |     `);
136 |     const options = page.getByRole("radiogroup").getByRole("radio");
137 |     await expect(options.nth(0)).not.toBeChecked();
138 |     await expect(options.nth(1)).not.toBeChecked();
139 |     await expect(options.nth(2)).not.toBeChecked();
140 |   });
141 | 
142 |   test("initialValue does not set the initial selected option (string initialValue, number options)", async ({
143 |     initTestBed,
144 |     page,
145 |   }) => {
146 |     await initTestBed(`
147 |       <RadioGroup initialValue="2">
148 |         <Option value="{1}">Option 1</Option>
149 |         <Option value="{2}">Option 2</Option>
150 |         <Option value="{3}">Option 3</Option>
151 |       </RadioGroup>
152 |     `);
153 |     const options = page.getByRole("radiogroup").getByRole("radio");
154 |     await expect(options.nth(0)).not.toBeChecked();
155 |     await expect(options.nth(1)).not.toBeChecked();
156 |     await expect(options.nth(2)).not.toBeChecked();
157 |   });
158 | 
159 |   test("initialValue sets the initial selected option (boolean initialValue & options)", async ({
160 |     initTestBed,
161 |     page,
162 |   }) => {
163 |     await initTestBed(`
164 |       <RadioGroup initialValue="{true}">
165 |         <Option value="{true}">Option 1</Option>
166 |         <Option value="{false}">Option 2</Option>
167 |       </RadioGroup>
168 |     `);
169 |     const options = page.getByRole("radiogroup").getByRole("radio");
170 |     await expect(options.nth(0)).toBeChecked();
171 |     await expect(options.nth(1)).not.toBeChecked();
172 |   });
173 | 
174 |   test("initialValue does not set the initial selected option (boolean initialValue, string options)", async ({
175 |     initTestBed,
176 |     page,
177 |   }) => {
178 |     await initTestBed(`
179 |       <RadioGroup initialValue="{true}">
180 |         <Option value="true">Option 1</Option>
181 |         <Option value="false">Option 2</Option>
182 |       </RadioGroup>
183 |     `);
184 |     const options = page.getByRole("radiogroup").getByRole("radio");
185 |     await expect(options.nth(0)).not.toBeChecked();
186 |     await expect(options.nth(1)).not.toBeChecked();
187 |   });
188 | 
189 |   test("initialValue does not set the initial selected option (string initialValue, boolean options)", async ({
190 |     initTestBed,
191 |     page,
192 |   }) => {
193 |     await initTestBed(`
194 |       <RadioGroup initialValue="true">
195 |         <Option value="{true}">Option 1</Option>
196 |         <Option value="{false}">Option 2</Option>
197 |       </RadioGroup>
198 |     `);
199 |     const options = page.getByRole("radiogroup").getByRole("radio");
200 |     await expect(options.nth(0)).not.toBeChecked();
201 |     await expect(options.nth(1)).not.toBeChecked();
202 |   });
203 | 
204 |   test("undefined does not render Radio Option", async ({ initTestBed, page }) => {
205 |     await initTestBed(`
206 |       <RadioGroup>
207 |         <Option value="1">Option 1</Option>
208 |         <Option value="{undefined}">Option 2</Option>
209 |       </RadioGroup>
210 |     `);
211 |     const optionLabels = page.getByRole("radiogroup").locator("label");
212 |     await expect(optionLabels).toHaveCount(1);
213 |     await expect(optionLabels.first()).toHaveText("Option 1");
214 |   });
215 | 
216 |   test("null renders Radio Option", async ({ initTestBed, page }) => {
217 |     await initTestBed(`
218 |       <RadioGroup>
219 |         <Option value="1">Option 1</Option>
220 |         <Option value="{null}">Option 2</Option>
221 |       </RadioGroup>
222 |     `);
223 |     const optionLabels = page.getByRole("radiogroup").locator("label");
224 |     await expect(optionLabels).toHaveCount(2);
225 |     await expect(optionLabels.first()).toHaveText("Option 1");
226 |     await expect(optionLabels.nth(1)).toHaveText("Option 2");
227 |   });
228 | 
229 |   [
230 |     { label: "empty object", value: "{}" },
231 |     { label: "object", value: "{ a: 1 }" },
232 |     { label: "function", value: "() => {}" },
233 |     { label: "NaN", value: "NaN" },
234 |   ].forEach(({ label, value }) => {
235 |     test(`initialValue=${label} falls back to default (empty string)`, async ({
236 |       initTestBed,
237 |       page,
238 |     }) => {
239 |       await initTestBed(`
240 |       <RadioGroup initialValue="{${value}}">
241 |         <Option value="{${value}}">Option 1</Option>
242 |         <Option value="2">Option 2</Option>
243 |       </RadioGroup>
244 |     `);
245 |       const options = page.getByRole("radiogroup").getByRole("radio");
246 |       await expect(options.nth(0)).not.toBeChecked();
247 |       await expect(options.nth(1)).not.toBeChecked();
248 |     });
249 |   });
250 | 
251 |   test("readOnly disables switching between options", async ({ initTestBed, page }) => {
252 |     await initTestBed(`
253 |       <RadioGroup initialValue="1" readOnly="true">
254 |         <Option value="1">Option 1</Option>
255 |         <Option value="2">Option 2</Option>
256 |       </RadioGroup>
257 |     `);
258 |     const options = page.getByRole("radiogroup").getByRole("radio");
259 |     await expect(options.nth(0)).toBeChecked();
260 |     await options.nth(1).click();
261 |     await expect(options.nth(0)).toBeChecked();
262 |     await expect(options.nth(1)).not.toBeChecked();
263 |   });
264 | 
265 |   test("enabled input field allows user interaction for field", async ({ initTestBed, page }) => {
266 |     await initTestBed(`
267 |       <RadioGroup initialValue="1" enabled="true">
268 |         <Option value="1">Option 1</Option>
269 |         <Option value="2">Option 2</Option>
270 |       </RadioGroup>
271 |     `);
272 |     const radios = await page.getByRole("radiogroup").getByRole("radio").all();
273 |     for (const radio of radios) {
274 |       await expect(radio).toBeEnabled();
275 |     }
276 |   });
277 | 
278 |   test("disabled input field stops user interaction for field", async ({ initTestBed, page }) => {
279 |     await initTestBed(`
280 |       <RadioGroup initialValue="1" enabled="false">
281 |         <Option value="1">Option 1</Option>
282 |         <Option value="2">Option 2</Option>
283 |       </RadioGroup>
284 |     `);
285 |     const radios = await page.getByRole("radiogroup").getByRole("radio").all();
286 |     for (const radio of radios) {
287 |       await expect(radio).toBeDisabled();
288 |     }
289 |   });
290 | 
291 |   test("disabled option does not disable field", async ({ initTestBed, page }) => {
292 |     await initTestBed(`
293 |       <RadioGroup initialValue="1">
294 |         <Option value="1" enabled="false">Option 1</Option>
295 |         <Option value="2">Option 2</Option>
296 |       </RadioGroup>
297 |     `);
298 |     const options = page.getByRole("radiogroup").getByRole("radio");
299 |     await expect(options.nth(0)).toBeDisabled();
300 |     await expect(options.nth(1)).toBeEnabled();
301 |   });
302 | 
303 |   test("onDidChange is called on input change", async ({ initTestBed, page }) => {
304 |     const { testStateDriver } = await initTestBed(`
305 |       <RadioGroup initialValue="1" onDidChange="(value) => testState = value">
306 |         <Option value="1">Option 1</Option>
307 |         <Option value="2">Option 2</Option>
308 |       </RadioGroup>
309 |     `);
310 |     const options = page.getByRole("radiogroup").getByRole("radio");
311 |     await options.nth(1).click();
312 |     await expect.poll(testStateDriver.testState).toBe("2");
313 |   });
314 | 
315 |   test("onDidChange is not called if field is disabled", async ({ initTestBed, page }) => {
316 |     const { testStateDriver } = await initTestBed(`
317 |       <RadioGroup enabled="false" initialValue="1" onDidChange="(value) => testState = value">
318 |         <Option value="1">Option 1</Option>
319 |         <Option value="2">Option 2</Option>
320 |       </RadioGroup>
321 |     `);
322 |     const options = page.getByRole("radiogroup").getByRole("radio");
323 | 
324 |     // Verify the radio buttons are disabled
325 |     await expect(options.nth(1)).toBeDisabled();
326 | 
327 |     await options.nth(1).click({ force: true });
328 | 
329 |     // Verify the state hasn't changed (should still be null since no change handler was called)
330 |     await expect.poll(testStateDriver.testState).toBe(null);
331 |   });
332 | 
333 |   test("gotFocus event fires on focusing the field", async ({ initTestBed, page }) => {
334 |     const { testStateDriver } = await initTestBed(`
335 |       <RadioGroup initialValue="1" onGotFocus="() => testState = 'focused'">
336 |         <Option value="1">Option 1</Option>
337 |       </RadioGroup>
338 |     `);
339 |     const options = page.getByRole("radiogroup").getByRole("radio");
340 |     await options.nth(0).focus();
341 |     await expect.poll(testStateDriver.testState).toBe("focused");
342 |   });
343 | 
344 |   test("gotFocus event fires on label focus", async ({ initTestBed, page }) => {
345 |     const { testStateDriver } = await initTestBed(`
346 |       <RadioGroup initialValue="1" onGotFocus="() => testState = 'focused'" label="test">
347 |         <Option value="1">Option 1</Option>
348 |       </RadioGroup>
349 |     `);
350 |     await page.getByText("test").click();
351 |     await expect.poll(testStateDriver.testState).toBe("focused");
352 |   });
353 | 
354 |   test("lostFocus event fires on blurring the field", async ({ initTestBed, page }) => {
355 |     const { testStateDriver } = await initTestBed(`
356 |       <RadioGroup initialValue="1" onLostFocus="() => testState = 'blurred'">
357 |         <Option value="1">Option 1</Option>
358 |       </RadioGroup>
359 |     `);
360 |     const options = page.getByRole("radiogroup").getByRole("radio");
361 |     await options.nth(0).focus();
362 |     await options.nth(0).blur();
363 |     await expect.poll(testStateDriver.testState).toBe("blurred");
364 |   });
365 | });
366 | 
367 | test("correct borderColor applied on validationStatus 'default'", async ({ initTestBed, page }) => {
368 |   await initTestBed(
369 |     `
370 |     <RadioGroup initialValue="1">
371 |       <Option value="1">Option 1</Option>
372 |       <Option value="2">Option 2</Option>
373 |     </RadioGroup>`,
374 |     {
375 |       testThemeVars: {
376 |         "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
377 |         "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
378 |       },
379 |     },
380 |   );
381 |   const options = page.getByRole("radiogroup").getByRole("radio");
382 |   await expect(options.nth(0)).toHaveCSS("border-color", "rgb(80, 80, 80)");
383 |   await expect(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
384 | });
385 | 
386 | test("correct borderColor applied on validationStatus 'error'", async ({ initTestBed, page }) => {
387 |   await initTestBed(
388 |     `
389 |     <RadioGroup validationStatus="error" initialValue="1">
390 |       <Option value="1">Option 1</Option>
391 |       <Option value="2">Option 2</Option>
392 |     </RadioGroup>
393 |   `,
394 |     {
395 |       testThemeVars: {
396 |         "borderColor-RadioGroupOption--error": "rgb(255, 32, 0)",
397 |         "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
398 |         "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
399 |       },
400 |     },
401 |   );
402 |   const options = page.getByRole("radiogroup").getByRole("radio");
403 |   await expect(options.nth(0)).toHaveCSS("border-color", "rgb(255, 32, 0)");
404 |   await expect(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
405 | });
406 | 
407 | test("correct borderColor applied on validationStatus 'warning'", async ({ initTestBed, page }) => {
408 |   await initTestBed(
409 |     `
410 |     <RadioGroup validationStatus="warning" initialValue="1">
411 |       <Option value="1">Option 1</Option>
412 |       <Option value="2">Option 2</Option>
413 |     </RadioGroup>
414 |   `,
415 |     {
416 |       testThemeVars: {
417 |         "borderColor-RadioGroupOption--warning": "rgb(255, 180, 0)",
418 |         "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
419 |         "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
420 |       },
421 |     },
422 |   );
423 |   const options = page.getByRole("radiogroup").getByRole("radio");
424 |   await expect(options.nth(0)).toHaveCSS("border-color", "rgb(255, 180, 0)");
425 |   await expect(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
426 | });
427 | 
428 | test("correct borderColor applied on validationStatus 'valid'", async ({ initTestBed, page }) => {
429 |   await initTestBed(
430 |     `
431 |     <RadioGroup validationStatus="valid" initialValue="1">
432 |       <Option value="1">Option 1</Option>
433 |       <Option value="2">Option 2</Option>
434 |     </RadioGroup>
435 |   `,
436 |     {
437 |       testThemeVars: {
438 |         "borderColor-RadioGroupOption--success": "rgb(0, 180, 0)",
439 |         "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
440 |         "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
441 |       },
442 |     },
443 |   );
444 |   const options = page.getByRole("radiogroup").getByRole("radio");
445 |   await expect(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
446 |   await expect(options.nth(0)).toHaveCSS("border-color", "rgb(0, 180, 0)");
447 | });
448 | 
449 | test("label is rendered if provided", async ({ initTestBed, page }) => {
450 |   await initTestBed(`
451 |     <RadioGroup label="Test Label" initialValue="1">
452 |       <Option value="1">Option 1</Option>
453 |       <Option value="2">Option 2</Option>
454 |     </RadioGroup>
455 |   `);
456 |   const labels = page.locator("label");
457 |   await expect(labels).toHaveCount(3);
458 |   await expect(labels.nth(0)).toHaveText("Test Label");
459 |   await expect(labels.nth(1)).toHaveText("Option 1");
460 |   await expect(labels.nth(2)).toHaveText("Option 2");
461 | });
462 | 
463 | test("empty string label is not rendered", async ({ initTestBed, page }) => {
464 |   await initTestBed(`
465 |     <RadioGroup initialValue="1">
466 |       <Option value="1">Option 1</Option>
467 |       <Option value="2">Option 2</Option>
468 |     </RadioGroup>
469 |   `);
470 | 
471 |   const labels = page.locator("label");
472 |   await expect(labels).toHaveCount(2);
473 |   await expect(labels.nth(0)).toHaveText("Option 1");
474 |   await expect(labels.nth(1)).toHaveText("Option 2");
475 | });
476 | 
477 | test("labelPosition=start positions label before input with ltr", async ({ initTestBed, page }) => {
478 |   await initTestBed(`
479 |     <RadioGroup direction="ltr" label="test" labelPosition="start" initialValue="1">
480 |       <Option testId="option1" value="1">Option 1</Option>
481 |       <Option value="2">Option 2</Option>
482 |     </RadioGroup>
483 |   `);
484 | 
485 |   const labels = page.locator("label");
486 |   await expect(labels).toHaveCount(3);
487 |   const { left: optionLeft } = await getBounds(labels.nth(1));
488 |   const { right: labelRight } = await getBounds(labels.nth(0));
489 | 
490 |   expect(labelRight).toBeLessThan(optionLeft);
491 | });
492 | 
493 | test("labelPosition=start positions label after input with rtl", async ({ initTestBed, page }) => {
494 |   await initTestBed(`
495 |     <RadioGroup direction="rtl" label="test" labelPosition="start" initialValue="1">
496 |       <Option testId="option1" value="1">Option 1</Option>
497 |       <Option value="2">Option 2</Option>
498 |     </RadioGroup>
499 |   `);
500 | 
501 |   const labels = page.locator("label");
502 |   await expect(labels).toHaveCount(3);
503 |   const { left: optionLeft } = await getBounds(labels.nth(0));
504 |   const { right: labelRight } = await getBounds(labels.nth(2));
505 | 
506 |   expect(labelRight).toBeLessThan(optionLeft);
507 | });
508 | 
509 | test("labelPosition=end positions label after input with ltr", async ({ initTestBed, page }) => {
510 |   await initTestBed(`
511 |     <RadioGroup direction="ltr" label="test" labelPosition="end" initialValue="1">
512 |       <Option testId="option1" value="1">Option 1</Option>
513 |       <Option value="2">Option 2</Option>
514 |     </RadioGroup>
515 |   `);
516 | 
517 |   const labels = page.locator("label");
518 |   await expect(labels).toHaveCount(3);
519 |   const { left: optionLeft } = await getBounds(labels.nth(0));
520 |   const { right: labelRight } = await getBounds(labels.nth(1));
521 | 
522 |   expect(labelRight).toBeLessThan(optionLeft);
523 | });
524 | 
525 | test("labelPosition=end positions label after input with rtl", async ({ initTestBed, page }) => {
526 |   await initTestBed(`
527 |     <RadioGroup direction="rtl" label="test" labelPosition="end" initialValue="1">
528 |       <Option testId="option1" value="1">Option 1</Option>
529 |       <Option value="2">Option 2</Option>
530 |     </RadioGroup>
531 |   `);
532 | 
533 |   const labels = page.locator("label");
534 |   await expect(labels).toHaveCount(3);
535 |   await expect(labels.nth(2)).toHaveText("Option 2");
536 |   const { left: optionLeft } = await getBounds(labels.nth(0));
537 |   const { right: labelRight } = await getBounds(labels.nth(2));
538 | 
539 |   expect(optionLeft).toBeLessThan(labelRight);
540 | });
541 | 
542 | test("value returns current input value", async ({ initTestBed, page }) => {
543 |   await initTestBed(`
544 |       <Fragment>
545 |       <RadioGroup id="radioGroup" initialValue="2">
546 |         <Option value="1"></Option>
547 |         <Option value="2"></Option>
548 |       </RadioGroup>
549 |       <Text testId="valueDisplay">{radioGroup.value}</Text>
550 |       </Fragment>
551 |     `);
552 | 
553 |   const valueDisplay = page.getByTestId("valueDisplay");
554 |   await expect(valueDisplay).toHaveText("2");
555 | });
556 | 
557 | // --- --- setValue
558 | 
559 | test("setValue input value", async ({ initTestBed, page }) => {
560 |   await initTestBed(`
561 |       <Fragment>
562 |       <RadioGroup id="radioGroup" initialValue="2">
563 |         <Option value="1"></Option>
564 |         <Option value="2"></Option>
565 |       </RadioGroup>
566 |       <Text testId="valueDisplay">{radioGroup.value}</Text>
567 |       <Button onClick="() => radioGroup.setValue('1')" testId="setValueButton">Set Value</Button>
568 |       </Fragment>
569 |     `);
570 | 
571 |   const valueDisplay = page.getByTestId("valueDisplay");
572 |   await expect(valueDisplay).toHaveText("2");
573 |   await page.getByTestId("setValueButton").click();
574 |   await expect(valueDisplay).toHaveText("1");
575 | });
576 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components/Table/Table.tsx:
--------------------------------------------------------------------------------

```typescript
  1 | import { forwardRef, useMemo, useRef, useState, memo, useId } from "react";
  2 | import produce from "immer";
  3 | 
  4 | import styles from "./Table.module.scss";
  5 | 
  6 | import "./react-table-config.d.ts";
  7 | import { createComponentRenderer } from "../../components-core/renderers";
  8 | import { parseScssVar } from "../../components-core/theming/themeVars";
  9 | import { EMPTY_ARRAY, EMPTY_OBJECT } from "../../components-core/constants";
 10 | import { createMetadata, d, dAutoFocus, dComponent, dInternal } from "../metadata-helpers";
 11 | import type { OurColumnMetadata } from "../Column/TableContext";
 12 | import { TableContext } from "../Column/TableContext";
 13 | import {
 14 |   StandaloneSelectionStore,
 15 |   useSelectionContext,
 16 | } from "../SelectionStore/SelectionStoreNative";
 17 | import {
 18 |   Table,
 19 |   TablePaginationControlsLocationValues,
 20 |   CheckboxToleranceValues,
 21 |   defaultProps,
 22 | } from "./TableNative";
 23 | import type { RendererContext } from "../../abstractions/RendererDefs";
 24 | import { PositionValues } from "../Pagination/PaginationNative";
 25 | 
 26 | const COMP = "Table";
 27 | 
 28 | export const TableMd = createMetadata({
 29 |   status: "stable",
 30 |   description: "`Table` presents structured data for viewing, sorting, selection, and interaction.",
 31 |   props: {
 32 |     items: dInternal(
 33 |       `You can use \`items\` as an alias for the \`data\` property. ` +
 34 |         `When you bind the table to a data source (e.g. an API endpoint), ` +
 35 |         `the \`data\` acts as the property that accepts a URL to fetch information from an API. ` +
 36 |         `When both \`items\` and \`data\` are used, \`items\` has priority.`,
 37 |     ),
 38 |     data: d(
 39 |       `The component receives data via this property. The \`data\` property is a list of items ` +
 40 |         `that the \`Table\` can display.`,
 41 |     ),
 42 |     idKey: {
 43 |       description:
 44 |         `This property is used to specify the unique ID property in the data array. ` +
 45 |         `If the idKey points to a property that does not exist in the data items, ` +
 46 |         `that will result in incorrect behavior when using selectable rows.`,
 47 |       valueType: "string",
 48 |       defaultValue: defaultProps.idKey,
 49 |     },
 50 |     isPaginated: {
 51 |       description: `This property adds pagination controls to the \`${COMP}\`.`,
 52 |       valueType: "boolean",
 53 |       defaultValue: defaultProps.isPaginated,
 54 |     },
 55 |     loading: d(
 56 |       `This boolean property indicates if the component is fetching (or processing) data. This ` +
 57 |         `property is useful when data is loaded conditionally or receiving it takes some time.`,
 58 |     ),
 59 |     headerHeight: d(`This optional property is used to specify the height of the table header.`),
 60 |     rowsSelectable: d(`Indicates whether the rows are selectable (\`true\`) or not (\`false\`).`),
 61 |     initiallySelected: d(
 62 |       `An array of IDs that should be initially selected when the table is rendered. ` +
 63 |         `This property only has an effect when the rowsSelectable property is set to \`true\`.`,
 64 |     ),
 65 |     syncWithAppState: d(
 66 |       `An AppState instance to synchronize the table's selection state with. The table will ` +
 67 |         `read from and write to the 'selectedIds' property of the AppState object. When provided, ` +
 68 |         `this takes precedence over the initiallySelected property for initial selection. ` +
 69 |         `You can use the AppState's didUpdate event to receive notifications when the selection changes.`,
 70 |     ),
 71 |     pageSize: d(
 72 |       `This property defines the number of rows to display per page when pagination is enabled.`,
 73 |     ),
 74 |     pageSizeOptions: {
 75 |       description:
 76 |         "This property holds an array of page sizes (numbers) the user can select for " +
 77 |         "pagination. If this property is not defined, the component allows only a page size of 10 items.",
 78 |     },
 79 |     showPageInfo: d(
 80 |       "Whether to show page information. It works the same as the [Pagination component property](./Pagination#showpageinfo).",
 81 |       undefined,
 82 |       "boolean",
 83 |       defaultProps.showPageInfo,
 84 |     ),
 85 |     showPageSizeSelector: d(
 86 |       "Whether to show the page size selector. It works the same as the [Pagination component property](./Pagination#showpagesizeselector).",
 87 |       undefined,
 88 |       "boolean",
 89 |       defaultProps.showPageSizeSelector,
 90 |     ),
 91 |     showCurrentPage: d(
 92 |       "Whether to show the current page indicator. It works the same as the [Pagination component property](./Pagination#showcurrentpage).",
 93 |       undefined,
 94 |       "boolean",
 95 |       defaultProps.showCurrentPage,
 96 |     ),
 97 |     pageSizeSelectorPosition: {
 98 |       description:
 99 |         "Determines where to place the page size selector in the layout. " +
100 |         "It works the same as the [Pagination component property](./Pagination#pagesizeselectorposition).",
101 |       options: PositionValues,
102 |       type: "string",
103 |       default: defaultProps.pageSizeSelectorPosition,
104 |     },
105 |     pageInfoPosition: {
106 |       description:
107 |         "Determines where to place the page information in the layout. " +
108 |         "It works the same as the [Pagination component property](./Pagination#pageinfoposition).",
109 |       options: PositionValues,
110 |       type: "string",
111 |       default: defaultProps.pageInfoPosition,
112 |     },
113 |     buttonRowPosition: d(
114 |       "Determines where to place the pagination button row in the layout. " +
115 |         "It works the same as the [Pagination component property](./Pagination#buttonrowposition).",
116 |       PositionValues,
117 |       "string",
118 |       defaultProps.buttonRowPosition,
119 |     ),
120 |     rowDisabledPredicate: d(
121 |       `This property defines a predicate function with a return value that determines if the ` +
122 |         `row should be disabled. The function retrieves the item to display and should return ` +
123 |         `a Boolean-like value.`,
124 |     ),
125 |     noDataTemplate: dComponent(
126 |       `A property to customize what to display if the table does not contain any data.`,
127 |     ),
128 |     sortBy: d(
129 |       "This property is used to determine which data property to sort by. If not defined, " +
130 |         "the data is not sorted",
131 |     ),
132 |     sortDirection: d(
133 |       "This property determines the sort order to be \`ascending\` or \`descending\`. This " +
134 |         "property only works if the [\`sortBy\`](#sortby) property is also set. By default " +
135 |         "ascending order is used.",
136 |     ),
137 |     autoFocus: dAutoFocus(),
138 |     hideHeader: {
139 |       description:
140 |         "Set the header visibility using this property. Set it to \`true\` to hide the header.",
141 |       valueType: "boolean",
142 |       defaultValue: defaultProps.hideHeader,
143 |     },
144 |     iconNoSort: d(
145 |       `Allows setting an alternate icon displayed in the ${COMP} column header when sorting is ` +
146 |         `enabled, but the column remains unsorted. You can change the default icon for all ${COMP} ` +
147 |         `instances with the "icon.nosort:Table" declaration in the app configuration file.`,
148 |     ),
149 |     iconSortAsc: d(
150 |       `Allows setting an alernate icon displayed in the ${COMP} column header when sorting is enabled, ` +
151 |         `and the column is sorted in ascending order. You can change the default icon for all ${COMP} ` +
152 |         `instances with the "icon.sortasc:Table" declaration in the app configuration file.`,
153 |     ),
154 |     iconSortDesc: d(
155 |       `Allows setting an alternate icon displayed in the ${COMP} column header when sorting is enabled, ` +
156 |         `and the column is sorted in descending order. You can change the default icon for all ${COMP} ` +
157 |         `instances with the "icon.sortdesc:Table" declaration in the app configuration file.`,
158 |     ),
159 |     enableMultiRowSelection: {
160 |       description:
161 |         `This boolean property indicates whether you can select multiple rows in the table. ` +
162 |         `This property only has an effect when the rowsSelectable property is set. Setting it ` +
163 |         `to \`false\` limits selection to a single row.`,
164 |       valueType: "boolean",
165 |       defaultValue: defaultProps.enableMultiRowSelection,
166 |     },
167 |     alwaysShowSelectionHeader: {
168 |       description:
169 |         "This property indicates when the row selection header is displayed. When the value is " +
170 |         "`true,` the selection header is always visible. Otherwise, it is displayed only " +
171 |         "when hovered.",
172 |       valueType: "boolean",
173 |       defaultValue: false,
174 |     },
175 |     noBottomBorder: {
176 |       description:
177 |         `This property indicates whether the table should have a bottom border. When set to ` +
178 |         `\`true\`, the table does not have a bottom border. Otherwise, it has a bottom border.`,
179 |       valueType: "boolean",
180 |       defaultValue: false,
181 |     },
182 |     paginationControlsLocation: {
183 |       description:
184 |         `This property determines the location of the pagination controls.` +
185 |         ` It can be set to \`top\`, \`bottom\`, or \`both\`.`,
186 |       valueType: "string",
187 |       availableValues: TablePaginationControlsLocationValues,
188 |       defaultValue: defaultProps.paginationControlsLocation,
189 |     },
190 |     cellVerticalAlign: {
191 |       description:
192 |         `This property controls the vertical alignment of cell content. ` +
193 |         `It can be set to \`top\`, \`center\`, or \`bottom\`.`,
194 |       valueType: "string",
195 |       availableValues: ["top", "center", "bottom"],
196 |       defaultValue: "center",
197 |     },
198 |     checkboxTolerance: {
199 |       description:
200 |         `This property controls the tolerance area around checkboxes for easier interaction. ` +
201 |         `This property only has an effect when the rowsSelectable property is set to \`true\`. ` +
202 |         `\`none\` provides no tolerance (0px), \`compact\` provides minimal tolerance (8px), ` +
203 |         `\`comfortable\` provides medium tolerance (12px), and \`spacious\` provides generous tolerance (16px) ` +
204 |         `for improved accessibility.`,
205 |       valueType: "string",
206 |       availableValues: CheckboxToleranceValues,
207 |       defaultValue: defaultProps.checkboxTolerance,
208 |     },
209 |   },
210 |   events: {
211 |     sortingDidChange: d(
212 |       `This event is fired when the table data sorting has changed. It has two arguments: ` +
213 |         `the column's name and the sort direction. When the column name is empty, the table ` +
214 |         `displays the data list as it received it.`,
215 |     ),
216 |     willSort: d(
217 |       `This event is fired before the table data is sorted. It has two arguments: the ` +
218 |         `column's name and the sort direction. When the method returns a literal \`false\` ` +
219 |         `value (and not any other falsy one), the method indicates that the sorting should be aborted.`,
220 |     ),
221 |     selectionDidChange: d(
222 |       `This event is triggered when the table's current selection (the rows selected) changes. ` +
223 |         `Its parameter is an array of the selected table row items. `,
224 |     ),
225 |   },
226 |   apis: {
227 |     clearSelection: {
228 |       description: `This method clears the list of currently selected table rows.`,
229 |       signature: "clearSelection(): void",
230 |     },
231 |     getSelectedItems: {
232 |       description: `This method returns the list of currently selected table rows items.`,
233 |       signature: "getSelectedItems(): Array<TableRowItem>",
234 |     },
235 |     getSelectedIds: {
236 |       description: `This method returns the list of currently selected table rows IDs.`,
237 |       signature: "getSelectedIds(): Array<string>",
238 |     },
239 |     selectAll: {
240 |       description:
241 |         `This method selects all the rows in the table. This method has no effect if the ` +
242 |         `rowsSelectable property is set to \`false\`.`,
243 |       signature: "selectAll(): void",
244 |     },
245 |     selectId: {
246 |       description:
247 |         `This method selects the row with the specified ID. This method has no effect if the ` +
248 |         `\`rowsSelectable\` property is set to \`false\`. The method argument can be a ` +
249 |         `single id or an array of them.`,
250 |       signature: "selectId(id: string | Array<string>): void",
251 |       parameters: {
252 |         id: `The ID of the row to select, or an array of IDs to select multiple rows.`,
253 |       },
254 |     },
255 |   },
256 |   themeVars: parseScssVar(styles.themeVars),
257 |   defaultThemeVars: {
258 |     [`padding-heading-${COMP}`]: `$space-2 $space-1 $space-2 $space-2`,
259 |     [`padding-cell-${COMP}`]: "$space-2 $space-1 $space-2 $space-2",
260 |     [`paddingHorizontal-cell-first-${COMP}`]: "$space-5",
261 |     [`paddingHorizontal-cell-last-${COMP}`]: "$space-1",
262 |     [`border-cell-${COMP}`]: "1px solid $borderColor",
263 |     [`outlineWidth-heading-${COMP}--focus`]: "$outlineWidth--focus",
264 |     [`outlineStyle-heading-${COMP}--focus`]: "$outlineStyle--focus",
265 |     [`outlineOffset-heading-${COMP}--focus`]: "$outlineOffset--focus",
266 |     [`fontSize-heading-${COMP}`]: "$fontSize-tiny",
267 |     [`fontWeight-heading-${COMP}`]: "$fontWeight-bold",
268 |     [`textTransform-heading-${COMP}`]: "uppercase",
269 |     [`fontSize-row-${COMP}`]: "$fontSize-sm",
270 |     // [`backgroundColor-${COMP}`]: "transparent",
271 |     // [`backgroundColor-row-${COMP}`]: "inherit",
272 |     [`backgroundColor-selected-${COMP}--hover`]: `$backgroundColor-row-${COMP}--hover`,
273 |     [`backgroundColor-pagination-${COMP}`]: `$backgroundColor-${COMP}`,
274 |     [`outlineColor-heading-${COMP}--focus`]: "$outlineColor--focus",
275 |     [`textColor-pagination-${COMP}`]: "$color-secondary",
276 |     [`backgroundColor-row-${COMP}--hover`]: "$color-primary-50",
277 |     [`backgroundColor-selected-${COMP}`]: "$color-primary-100",
278 |     [`backgroundColor-heading-${COMP}--hover`]: "$color-surface-200",
279 |     [`backgroundColor-heading-${COMP}--active`]: "$color-surface-300",
280 |     [`backgroundColor-heading-${COMP}`]: "$color-surface-100",
281 |     [`textColor-heading-${COMP}`]: "$color-surface-500",
282 |     [`border-${COMP}`]: "0px solid transparent",
283 |     [`borderBottom-last-row-${COMP}`]: `$borderBottom-cell-${COMP}`,
284 |     [`borderRadius-${COMP}`]: "$borderRadius",
285 |   },
286 | });
287 | 
288 | const TableWithColumns = memo(
289 |   forwardRef(
290 |     (
291 |       {
292 |         extractValue,
293 |         node,
294 |         renderChild,
295 |         lookupEventHandler,
296 |         lookupSyncCallback,
297 |         className,
298 |         registerComponentApi,
299 |       }: Pick<
300 |         RendererContext,
301 |         | "extractValue"
302 |         | "node"
303 |         | "renderChild"
304 |         | "lookupEventHandler"
305 |         | "className"
306 |         | "registerComponentApi"
307 |         | "lookupSyncCallback"
308 |       >,
309 |       ref,
310 |     ) => {
311 |       const idKey = extractValue.asOptionalString(node.props.idKey, defaultProps.idKey);
312 |       const data = extractValue(node.props.items) || extractValue(node.props.data);
313 |       const [columnIds, setColumnIds] = useState(EMPTY_ARRAY);
314 |       const [columnsByIds, setColumnByIds] = useState(EMPTY_OBJECT);
315 |       const columnIdsRef = useRef([]);
316 |       const [tableKey, setTableKey] = useState(0);
317 |       const tableContextValue = useMemo(() => {
318 |         return {
319 |           registerColumn: (column: OurColumnMetadata, id: string) => {
320 |             setColumnIds(
321 |               produce((draft) => {
322 |                 const existing = draft.findIndex((colId) => colId === id);
323 |                 if (existing < 0) {
324 |                   draft.push(id);
325 |                 }
326 |               }),
327 |             );
328 |             setColumnByIds(
329 |               produce((draft) => {
330 |                 draft[id] = column;
331 |               }),
332 |             );
333 |           },
334 |           unRegisterColumn: (id: string) => {
335 |             setColumnIds(
336 |               produce((draft) => {
337 |                 return draft.filter((colId) => colId !== id);
338 |               }),
339 |             );
340 |             setColumnByIds(
341 |               produce((draft) => {
342 |                 delete draft[id];
343 |               }),
344 |             );
345 |           },
346 |         };
347 |       }, []);
348 |       const columnRefresherContextValue = useMemo(() => {
349 |         return {
350 |           registerColumn: (column: OurColumnMetadata, id: string) => {
351 |             if (!columnIdsRef.current.find((colId) => colId === id)) {
352 |               setTableKey((prev) => prev + 1);
353 |               columnIdsRef.current.push(id);
354 |             }
355 |           },
356 |           unRegisterColumn: (id: string) => {
357 |             if (columnIdsRef.current.find((colId) => colId === id)) {
358 |               columnIdsRef.current = columnIdsRef.current.filter((colId) => colId !== id);
359 |               setTableKey((prev) => prev + 1);
360 |             }
361 |           },
362 |         };
363 |       }, []);
364 | 
365 |       const columns = useMemo(
366 |         () => columnIds.map((colId) => columnsByIds[colId]),
367 |         [columnIds, columnsByIds],
368 |       );
369 | 
370 |       const selectionContext = useSelectionContext();
371 | 
372 |       const tableContent = (
373 |         <>
374 |           {/* HACK: we render the column children twice, once in a context (with the key: 'tableKey') where we register the columns,
375 |             and once in a context where we refresh the columns (by forcing the first context to re-mount, via the 'tableKey').
376 |             This way the order of the columns is preserved.
377 |         */}
378 |           <TableContext.Provider value={tableContextValue} key={tableKey}>
379 |             {renderChild(node.children)}
380 |           </TableContext.Provider>
381 |           <TableContext.Provider value={columnRefresherContextValue}>
382 |             {renderChild(node.children)}
383 |           </TableContext.Provider>
384 |           <Table
385 |             className={className}
386 |             ref={ref}
387 |             data={data}
388 |             columns={columns}
389 |             pageSizeOptions={extractValue(node.props.pageSizeOptions)}
390 |             pageSize={extractValue.asOptionalNumber(node.props.pageSize)}
391 |             rowsSelectable={extractValue.asOptionalBoolean(node.props.rowsSelectable)}
392 |             registerComponentApi={registerComponentApi}
393 |             noDataRenderer={
394 |               node.props.noDataTemplate &&
395 |               (() => {
396 |                 return renderChild(node.props.noDataTemplate);
397 |               })
398 |             }
399 |             hideNoDataView={node.props.noDataTemplate === null || node.props.noDataTemplate === ""}
400 |             loading={extractValue.asOptionalBoolean(node.props.loading)}
401 |             isPaginated={extractValue.asOptionalBoolean(node.props?.isPaginated)}
402 |             headerHeight={extractValue.asSize(node.props.headerHeight)}
403 |             rowDisabledPredicate={lookupSyncCallback(node.props.rowDisabledPredicate)}
404 |             sortBy={extractValue(node.props?.sortBy)}
405 |             sortingDirection={extractValue(node.props?.sortDirection)}
406 |             iconSortAsc={extractValue.asOptionalString(node.props?.iconSortAsc)}
407 |             iconSortDesc={extractValue.asOptionalString(node.props?.iconSortDesc)}
408 |             iconNoSort={extractValue.asOptionalString(node.props?.iconNoSort)}
409 |             sortingDidChange={lookupEventHandler("sortingDidChange")}
410 |             onSelectionDidChange={lookupEventHandler("selectionDidChange")}
411 |             willSort={lookupEventHandler("willSort")}
412 |             uid={node.uid}
413 |             autoFocus={extractValue.asOptionalBoolean(node.props.autoFocus)}
414 |             hideHeader={extractValue.asOptionalBoolean(node.props.hideHeader)}
415 |             enableMultiRowSelection={extractValue.asOptionalBoolean(
416 |               node.props.enableMultiRowSelection,
417 |             )}
418 |             alwaysShowSelectionHeader={extractValue.asOptionalBoolean(
419 |               node.props.alwaysShowSelectionHeader,
420 |             )}
421 |             noBottomBorder={extractValue.asOptionalBoolean(node.props.noBottomBorder)}
422 |             paginationControlsLocation={extractValue.asOptionalString(
423 |               node.props.paginationControlsLocation,
424 |             )}
425 |             cellVerticalAlign={extractValue.asOptionalString(node.props.cellVerticalAlign)}
426 |             buttonRowPosition={extractValue.asOptionalString(node.props.buttonRowPosition)}
427 |             pageSizeSelectorPosition={extractValue.asOptionalString(
428 |               node.props.pageSizeSelectorPosition,
429 |             )}
430 |             pageInfoPosition={extractValue.asOptionalString(node.props.pageInfoPosition)}
431 |             showCurrentPage={extractValue.asOptionalBoolean(node.props.showCurrentPage)}
432 |             showPageInfo={extractValue.asOptionalBoolean(node.props.showPageInfo)}
433 |             showPageSizeSelector={extractValue.asOptionalBoolean(node.props.showPageSizeSelector)}
434 |             checkboxTolerance={extractValue.asOptionalString(node.props.checkboxTolerance)}
435 |             initiallySelected={extractValue(node.props.initiallySelected)}
436 |             syncWithAppState={extractValue(node.props.syncWithAppState)}
437 |           />
438 |         </>
439 |       );
440 | 
441 |       if (selectionContext === null) {
442 |         return <StandaloneSelectionStore idKey={idKey}>{tableContent}</StandaloneSelectionStore>;
443 |       }
444 |       return tableContent;
445 |     },
446 |   ),
447 | );
448 | TableWithColumns.displayName = "TableWithColumns";
449 | 
450 | export const tableComponentRenderer = createComponentRenderer(
451 |   COMP,
452 |   TableMd,
453 |   ({
454 |     extractValue,
455 |     node,
456 |     renderChild,
457 |     lookupEventHandler,
458 |     lookupSyncCallback,
459 |     className,
460 |     registerComponentApi,
461 |   }) => {
462 |     return (
463 |       <TableWithColumns
464 |         node={node}
465 |         extractValue={extractValue}
466 |         lookupEventHandler={lookupEventHandler as any}
467 |         lookupSyncCallback={lookupSyncCallback}
468 |         className={className}
469 |         renderChild={renderChild}
470 |         registerComponentApi={registerComponentApi}
471 |       />
472 |     );
473 |   },
474 | );
475 | 
```
Page 89/186FirstPrevNextLast