#
tokens: 43140/50000 2/1624 files (page 107/179)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 107 of 179. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/assets/img/bg-iphone-14-pro.jpg?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   ├── config.json
│   ├── silver-llamas-cough.md
│   └── true-jeans-agree.md
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   └── lorem-ipsum.png
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   └── welcome-to-the-xmlui-blog.md
│   │   ├── mockServiceWorker.js
│   │   ├── resources
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   └── for-download
│   │   │   │       └── xmlui
│   │   │   │           └── xmlui-standalone.umd.js
│   │   │   ├── github.svg
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   ├── rss.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       └── blog-theme.ts
│   └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│   ├── .gitignore
│   ├── CHANGELOG.md
│   ├── ComponentRefLinks.txt
│   ├── content
│   │   ├── _meta.json
│   │   ├── components
│   │   │   ├── _meta.json
│   │   │   ├── _overview.md
│   │   │   ├── APICall.md
│   │   │   ├── App.md
│   │   │   ├── AppHeader.md
│   │   │   ├── AppState.md
│   │   │   ├── AutoComplete.md
│   │   │   ├── Avatar.md
│   │   │   ├── Backdrop.md
│   │   │   ├── Badge.md
│   │   │   ├── BarChart.md
│   │   │   ├── Bookmark.md
│   │   │   ├── Breakout.md
│   │   │   ├── Button.md
│   │   │   ├── Card.md
│   │   │   ├── Carousel.md
│   │   │   ├── ChangeListener.md
│   │   │   ├── Checkbox.md
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── HelloMd.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── control-cache-invalidation.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.tsx
│   │       │   ├── ConfirmationDialog.module.scss
│   │       │   ├── ConfirmationDialog.tsx
│   │       │   ├── Editor.tsx
│   │       │   ├── Header.module.scss
│   │       │   ├── Header.tsx
│   │       │   ├── Playground.tsx
│   │       │   ├── PlaygroundContent.module.scss
│   │       │   ├── PlaygroundContent.tsx
│   │       │   ├── PlaygroundNative.module.scss
│   │       │   ├── PlaygroundNative.tsx
│   │       │   ├── Preview.module.scss
│   │       │   ├── Preview.tsx
│   │       │   ├── Select.module.scss
│   │       │   ├── StandalonePlayground.tsx
│   │       │   ├── StandalonePlaygroundNative.module.scss
│   │       │   ├── StandalonePlaygroundNative.tsx
│   │       │   ├── ThemeSwitcher.module.scss
│   │       │   ├── ThemeSwitcher.tsx
│   │       │   ├── ToneSwitcher.tsx
│   │       │   ├── Tooltip.module.scss
│   │       │   ├── Tooltip.tsx
│   │       │   └── utils.ts
│   │       ├── providers
│   │       │   ├── Toast.module.scss
│   │       │   └── ToastProvider.tsx
│   │       ├── state
│   │       │   └── store.ts
│   │       ├── themes
│   │       │   └── theme.ts
│   │       └── utils
│   │           └── helpers.ts
│   ├── 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
    │   ├── components-with-options.md
    │   ├── containers.md
    │   ├── data-operations.md
    │   ├── glossary.md
    │   ├── index.md
    │   ├── next
    │   │   ├── component-dev-guide.md
    │   │   ├── configuration-management-enhancement-summary.md
    │   │   ├── documentation-scripts-refactoring-complete-summary.md
    │   │   ├── documentation-scripts-refactoring-plan.md
    │   │   ├── duplicate-pattern-extraction-summary.md
    │   │   ├── error-handling-standardization-summary.md
    │   │   ├── generating-component-reference.md
    │   │   ├── index.md
    │   │   ├── logging-consistency-implementation-summary.md
    │   │   ├── project-build.md
    │   │   ├── project-structure.md
    │   │   ├── theme-context.md
    │   │   ├── tiptap-design-considerations.md
    │   │   ├── working-with-code.md
    │   │   ├── xmlui-runtime-architecture
    │   │   └── xmlui-wcag-accessibility-report.md
    │   ├── react-fundamentals.md
    │   ├── release-method.md
    │   ├── standalone-app.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── generate-docs
    │   │   ├── build-downloads-map.mjs
    │   │   ├── build-pages-map.mjs
    │   │   ├── components-config.json
    │   │   ├── configuration-management.mjs
    │   │   ├── constants.mjs
    │   │   ├── create-theme-files.mjs
    │   │   ├── DocsGenerator.mjs
    │   │   ├── error-handling.mjs
    │   │   ├── extensions-config.json
    │   │   ├── folders.mjs
    │   │   ├── generate-summary-files.mjs
    │   │   ├── get-docs.mjs
    │   │   ├── input-handler.mjs
    │   │   ├── logger.mjs
    │   │   ├── logging-standards.mjs
    │   │   ├── MetadataProcessor.mjs
    │   │   ├── pattern-utilities.mjs
    │   │   └── utils.mjs
    │   ├── get-langserver-metadata.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.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   ├── LabelListNative.module.scss
    │   │   │   │   └── LabelListNative.tsx
    │   │   │   ├── Legend
    │   │   │   │   ├── Legend.spec.ts
    │   │   │   │   ├── Legend.tsx
    │   │   │   │   └── LegendNative.tsx
    │   │   │   ├── LineChart
    │   │   │   │   ├── LineChart.md
    │   │   │   │   ├── LineChart.module.scss
    │   │   │   │   ├── LineChart.spec.ts
    │   │   │   │   ├── LineChart.tsx
    │   │   │   │   └── LineChartNative.tsx
    │   │   │   ├── PieChart
    │   │   │   │   ├── PieChart.md
    │   │   │   │   ├── PieChart.spec.ts
    │   │   │   │   ├── PieChart.tsx
    │   │   │   │   ├── PieChartNative.module.scss
    │   │   │   │   └── PieChartNative.tsx
    │   │   │   ├── RadarChart
    │   │   │   │   ├── RadarChart.md
    │   │   │   │   ├── RadarChart.spec.ts
    │   │   │   │   ├── RadarChart.tsx
    │   │   │   │   └── RadarChartNative.tsx
    │   │   │   ├── Tooltip
    │   │   │   │   ├── TooltipContent.module.scss
    │   │   │   │   ├── TooltipContent.spec.ts
    │   │   │   │   └── TooltipContent.tsx
    │   │   │   └── utils
    │   │   │       ├── abstractions.ts
    │   │   │       └── ChartProvider.tsx
    │   │   ├── Checkbox
    │   │   │   ├── Checkbox.md
    │   │   │   ├── Checkbox.spec.ts
    │   │   │   └── Checkbox.tsx
    │   │   ├── CodeBlock
    │   │   │   ├── CodeBlock.module.scss
    │   │   │   ├── CodeBlock.spec.ts
    │   │   │   ├── CodeBlock.tsx
    │   │   │   ├── CodeBlockNative.tsx
    │   │   │   └── highlight-code.ts
    │   │   ├── collectedComponentMetadata.ts
    │   │   ├── ColorPicker
    │   │   │   ├── ColorPicker.md
    │   │   │   ├── ColorPicker.module.scss
    │   │   │   ├── ColorPicker.spec.ts
    │   │   │   ├── ColorPicker.tsx
    │   │   │   └── ColorPickerNative.tsx
    │   │   ├── Column
    │   │   │   ├── Column.md
    │   │   │   ├── Column.tsx
    │   │   │   ├── ColumnNative.tsx
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   └── TableContext.tsx
    │   │   ├── component-utils.ts
    │   │   ├── ComponentProvider.tsx
    │   │   ├── ComponentRegistryContext.tsx
    │   │   ├── container-helpers.tsx
    │   │   ├── ContentSeparator
    │   │   │   ├── ContentSeparator.md
    │   │   │   ├── ContentSeparator.module.scss
    │   │   │   ├── ContentSeparator.spec.ts
    │   │   │   ├── ContentSeparator.tsx
    │   │   │   └── ContentSeparatorNative.tsx
    │   │   ├── DataSource
    │   │   │   ├── DataSource.md
    │   │   │   └── DataSource.tsx
    │   │   ├── DateInput
    │   │   │   ├── DateInput.md
    │   │   │   ├── DateInput.module.scss
    │   │   │   ├── DateInput.spec.ts
    │   │   │   ├── DateInput.tsx
    │   │   │   └── DateInputNative.tsx
    │   │   ├── DatePicker
    │   │   │   ├── DatePicker.md
    │   │   │   ├── DatePicker.module.scss
    │   │   │   ├── DatePicker.spec.ts
    │   │   │   ├── DatePicker.tsx
    │   │   │   └── DatePickerNative.tsx
    │   │   ├── DropdownMenu
    │   │   │   ├── DropdownMenu.md
    │   │   │   ├── DropdownMenu.module.scss
    │   │   │   ├── DropdownMenu.spec.ts
    │   │   │   ├── DropdownMenu.tsx
    │   │   │   ├── DropdownMenuNative.tsx
    │   │   │   ├── MenuItem.md
    │   │   │   └── SubMenuItem.md
    │   │   ├── EmojiSelector
    │   │   │   ├── EmojiSelector.md
    │   │   │   ├── EmojiSelector.spec.ts
    │   │   │   ├── EmojiSelector.tsx
    │   │   │   └── EmojiSelectorNative.tsx
    │   │   ├── ExpandableItem
    │   │   │   ├── ExpandableItem.module.scss
    │   │   │   ├── ExpandableItem.spec.ts
    │   │   │   ├── ExpandableItem.tsx
    │   │   │   └── ExpandableItemNative.tsx
    │   │   ├── FileInput
    │   │   │   ├── FileInput.md
    │   │   │   ├── FileInput.module.scss
    │   │   │   ├── FileInput.spec.ts
    │   │   │   ├── FileInput.tsx
    │   │   │   └── FileInputNative.tsx
    │   │   ├── FileUploadDropZone
    │   │   │   ├── FileUploadDropZone.md
    │   │   │   ├── FileUploadDropZone.module.scss
    │   │   │   ├── FileUploadDropZone.spec.ts
    │   │   │   ├── FileUploadDropZone.tsx
    │   │   │   └── FileUploadDropZoneNative.tsx
    │   │   ├── FlowLayout
    │   │   │   ├── FlowLayout.md
    │   │   │   ├── FlowLayout.module.scss
    │   │   │   ├── FlowLayout.spec.ts
    │   │   │   ├── FlowLayout.spec.ts-snapshots
    │   │   │   │   └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
    │   │   │   ├── FlowLayout.tsx
    │   │   │   └── FlowLayoutNative.tsx
    │   │   ├── Footer
    │   │   │   ├── Footer.md
    │   │   │   ├── Footer.module.scss
    │   │   │   ├── Footer.spec.ts
    │   │   │   ├── Footer.tsx
    │   │   │   └── FooterNative.tsx
    │   │   ├── Form
    │   │   │   ├── Form.md
    │   │   │   ├── Form.module.scss
    │   │   │   ├── Form.spec.ts
    │   │   │   ├── Form.tsx
    │   │   │   ├── formActions.ts
    │   │   │   ├── FormContext.ts
    │   │   │   └── FormNative.tsx
    │   │   ├── FormItem
    │   │   │   ├── FormItem.md
    │   │   │   ├── FormItem.module.scss
    │   │   │   ├── FormItem.spec.ts
    │   │   │   ├── FormItem.tsx
    │   │   │   ├── FormItemNative.tsx
    │   │   │   ├── HelperText.module.scss
    │   │   │   ├── HelperText.tsx
    │   │   │   ├── ItemWithLabel.tsx
    │   │   │   └── Validations.ts
    │   │   ├── FormSection
    │   │   │   ├── FormSection.md
    │   │   │   ├── FormSection.ts
    │   │   │   └── FormSection.xmlui
    │   │   ├── Fragment
    │   │   │   ├── Fragment.spec.ts
    │   │   │   └── Fragment.tsx
    │   │   ├── Heading
    │   │   │   ├── abstractions.ts
    │   │   │   ├── H1.md
    │   │   │   ├── H1.spec.ts
    │   │   │   ├── H2.md
    │   │   │   ├── H2.spec.ts
    │   │   │   ├── H3.md
    │   │   │   ├── H3.spec.ts
    │   │   │   ├── H4.md
    │   │   │   ├── H4.spec.ts
    │   │   │   ├── H5.md
    │   │   │   ├── H5.spec.ts
    │   │   │   ├── H6.md
    │   │   │   ├── H6.spec.ts
    │   │   │   ├── Heading.md
    │   │   │   ├── Heading.module.scss
    │   │   │   ├── Heading.spec.ts
    │   │   │   ├── Heading.tsx
    │   │   │   └── HeadingNative.tsx
    │   │   ├── HoverCard
    │   │   │   ├── HoverCard.tsx
    │   │   │   └── HovercardNative.tsx
    │   │   ├── HtmlTags
    │   │   │   ├── HtmlTags.module.scss
    │   │   │   ├── HtmlTags.spec.ts
    │   │   │   └── HtmlTags.tsx
    │   │   ├── Icon
    │   │   │   ├── AdmonitionDanger.tsx
    │   │   │   ├── AdmonitionInfo.tsx
    │   │   │   ├── AdmonitionNote.tsx
    │   │   │   ├── AdmonitionTip.tsx
    │   │   │   ├── AdmonitionWarning.tsx
    │   │   │   ├── ApiIcon.tsx
    │   │   │   ├── ArrowDropDown.module.scss
    │   │   │   ├── ArrowDropDown.tsx
    │   │   │   ├── ArrowDropUp.module.scss
    │   │   │   ├── ArrowDropUp.tsx
    │   │   │   ├── ArrowLeft.module.scss
    │   │   │   ├── ArrowLeft.tsx
    │   │   │   ├── ArrowRight.module.scss
    │   │   │   ├── ArrowRight.tsx
    │   │   │   ├── Attach.tsx
    │   │   │   ├── Binding.module.scss
    │   │   │   ├── Binding.tsx
    │   │   │   ├── BoardIcon.tsx
    │   │   │   ├── BoxIcon.tsx
    │   │   │   ├── CheckIcon.tsx
    │   │   │   ├── ChevronDownIcon.tsx
    │   │   │   ├── ChevronLeft.tsx
    │   │   │   ├── ChevronRight.tsx
    │   │   │   ├── ChevronUpIcon.tsx
    │   │   │   ├── CodeFileIcon.tsx
    │   │   │   ├── CodeSandbox.tsx
    │   │   │   ├── CompactListIcon.tsx
    │   │   │   ├── ContentCopyIcon.tsx
    │   │   │   ├── DarkToLightIcon.tsx
    │   │   │   ├── DatabaseIcon.module.scss
    │   │   │   ├── DatabaseIcon.tsx
    │   │   │   ├── DocFileIcon.tsx
    │   │   │   ├── DocIcon.tsx
    │   │   │   ├── DotMenuHorizontalIcon.tsx
    │   │   │   ├── DotMenuIcon.tsx
    │   │   │   ├── EmailIcon.tsx
    │   │   │   ├── EmptyFolderIcon.tsx
    │   │   │   ├── ErrorIcon.tsx
    │   │   │   ├── ExpressionIcon.tsx
    │   │   │   ├── FillPlusCricleIcon.tsx
    │   │   │   ├── FilterIcon.tsx
    │   │   │   ├── FolderIcon.tsx
    │   │   │   ├── GlobeIcon.tsx
    │   │   │   ├── HomeIcon.tsx
    │   │   │   ├── HyperLinkIcon.tsx
    │   │   │   ├── Icon.md
    │   │   │   ├── Icon.module.scss
    │   │   │   ├── Icon.spec.ts
    │   │   │   ├── Icon.tsx
    │   │   │   ├── IconNative.tsx
    │   │   │   ├── ImageFileIcon.tsx
    │   │   │   ├── Inspect.tsx
    │   │   │   ├── LightToDark.tsx
    │   │   │   ├── LinkIcon.tsx
    │   │   │   ├── ListIcon.tsx
    │   │   │   ├── LooseListIcon.tsx
    │   │   │   ├── MoonIcon.tsx
    │   │   │   ├── MoreOptionsIcon.tsx
    │   │   │   ├── NoSortIcon.tsx
    │   │   │   ├── PDFIcon.tsx
    │   │   │   ├── PenIcon.tsx
    │   │   │   ├── PhoneIcon.tsx
    │   │   │   ├── PhotoIcon.tsx
    │   │   │   ├── PlusIcon.tsx
    │   │   │   ├── SearchIcon.tsx
    │   │   │   ├── ShareIcon.tsx
    │   │   │   ├── SortAscendingIcon.tsx
    │   │   │   ├── SortDescendingIcon.tsx
    │   │   │   ├── StarsIcon.tsx
    │   │   │   ├── SunIcon.tsx
    │   │   │   ├── svg
    │   │   │   │   ├── admonition_danger.svg
    │   │   │   │   ├── admonition_info.svg
    │   │   │   │   ├── admonition_note.svg
    │   │   │   │   ├── admonition_tip.svg
    │   │   │   │   ├── admonition_warning.svg
    │   │   │   │   ├── api.svg
    │   │   │   │   ├── arrow-dropdown.svg
    │   │   │   │   ├── arrow-left.svg
    │   │   │   │   ├── arrow-right.svg
    │   │   │   │   ├── arrow-up.svg
    │   │   │   │   ├── attach.svg
    │   │   │   │   ├── binding.svg
    │   │   │   │   ├── box.svg
    │   │   │   │   ├── bulb.svg
    │   │   │   │   ├── code-file.svg
    │   │   │   │   ├── code-sandbox.svg
    │   │   │   │   ├── dark_to_light.svg
    │   │   │   │   ├── database.svg
    │   │   │   │   ├── doc.svg
    │   │   │   │   ├── empty-folder.svg
    │   │   │   │   ├── expression.svg
    │   │   │   │   ├── eye-closed.svg
    │   │   │   │   ├── eye-dark.svg
    │   │   │   │   ├── eye.svg
    │   │   │   │   ├── file-text.svg
    │   │   │   │   ├── filter.svg
    │   │   │   │   ├── folder.svg
    │   │   │   │   ├── img.svg
    │   │   │   │   ├── inspect.svg
    │   │   │   │   ├── light_to_dark.svg
    │   │   │   │   ├── moon.svg
    │   │   │   │   ├── pdf.svg
    │   │   │   │   ├── photo.svg
    │   │   │   │   ├── share.svg
    │   │   │   │   ├── stars.svg
    │   │   │   │   ├── sun.svg
    │   │   │   │   ├── trending-down.svg
    │   │   │   │   ├── trending-level.svg
    │   │   │   │   ├── trending-up.svg
    │   │   │   │   ├── txt.svg
    │   │   │   │   ├── unknown-file.svg
    │   │   │   │   ├── unlink.svg
    │   │   │   │   └── xls.svg
    │   │   │   ├── TableDeleteColumnIcon.tsx
    │   │   │   ├── TableDeleteRowIcon.tsx
    │   │   │   ├── TableInsertColumnIcon.tsx
    │   │   │   ├── TableInsertRowIcon.tsx
    │   │   │   ├── TrashIcon.tsx
    │   │   │   ├── TrendingDownIcon.tsx
    │   │   │   ├── TrendingLevelIcon.tsx
    │   │   │   ├── TrendingUpIcon.tsx
    │   │   │   ├── TxtIcon.tsx
    │   │   │   ├── UnknownFileIcon.tsx
    │   │   │   ├── UnlinkIcon.tsx
    │   │   │   ├── UserIcon.tsx
    │   │   │   ├── WarningIcon.tsx
    │   │   │   └── XlsIcon.tsx
    │   │   ├── IconProvider.tsx
    │   │   ├── IconRegistryContext.tsx
    │   │   ├── IFrame
    │   │   │   ├── IFrame.md
    │   │   │   ├── IFrame.module.scss
    │   │   │   ├── IFrame.spec.ts
    │   │   │   ├── IFrame.tsx
    │   │   │   └── IFrameNative.tsx
    │   │   ├── Image
    │   │   │   ├── Image.md
    │   │   │   ├── Image.module.scss
    │   │   │   ├── Image.spec.ts
    │   │   │   ├── Image.tsx
    │   │   │   └── ImageNative.tsx
    │   │   ├── Input
    │   │   │   ├── index.ts
    │   │   │   ├── InputAdornment.module.scss
    │   │   │   ├── InputAdornment.tsx
    │   │   │   ├── InputDivider.module.scss
    │   │   │   ├── InputDivider.tsx
    │   │   │   ├── InputLabel.module.scss
    │   │   │   ├── InputLabel.tsx
    │   │   │   ├── PartialInput.module.scss
    │   │   │   └── PartialInput.tsx
    │   │   ├── InspectButton
    │   │   │   ├── InspectButton.module.scss
    │   │   │   └── InspectButton.tsx
    │   │   ├── Items
    │   │   │   ├── Items.md
    │   │   │   ├── Items.spec.ts
    │   │   │   ├── Items.tsx
    │   │   │   └── ItemsNative.tsx
    │   │   ├── Link
    │   │   │   ├── Link.md
    │   │   │   ├── Link.module.scss
    │   │   │   ├── Link.spec.ts
    │   │   │   ├── Link.tsx
    │   │   │   └── LinkNative.tsx
    │   │   ├── List
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── List.md
    │   │   │   ├── List.module.scss
    │   │   │   ├── List.spec.ts
    │   │   │   ├── List.tsx
    │   │   │   └── ListNative.tsx
    │   │   ├── Logo
    │   │   │   ├── doc-resources
    │   │   │   │   └── xmlui-logo.svg
    │   │   │   ├── Logo.md
    │   │   │   ├── Logo.tsx
    │   │   │   └── LogoNative.tsx
    │   │   ├── Markdown
    │   │   │   ├── CodeText.module.scss
    │   │   │   ├── CodeText.tsx
    │   │   │   ├── Markdown.md
    │   │   │   ├── Markdown.module.scss
    │   │   │   ├── Markdown.spec.ts
    │   │   │   ├── Markdown.tsx
    │   │   │   ├── MarkdownNative.tsx
    │   │   │   ├── parse-binding-expr.ts
    │   │   │   └── utils.ts
    │   │   ├── metadata-helpers.ts
    │   │   ├── ModalDialog
    │   │   │   ├── ConfirmationModalContextProvider.tsx
    │   │   │   ├── Dialog.module.scss
    │   │   │   ├── Dialog.tsx
    │   │   │   ├── ModalDialog.md
    │   │   │   ├── ModalDialog.module.scss
    │   │   │   ├── ModalDialog.spec.ts
    │   │   │   ├── ModalDialog.tsx
    │   │   │   ├── ModalDialogNative.tsx
    │   │   │   └── ModalVisibilityContext.tsx
    │   │   ├── NavGroup
    │   │   │   ├── NavGroup.md
    │   │   │   ├── NavGroup.module.scss
    │   │   │   ├── NavGroup.spec.ts
    │   │   │   ├── NavGroup.tsx
    │   │   │   ├── NavGroupContext.ts
    │   │   │   └── NavGroupNative.tsx
    │   │   ├── NavLink
    │   │   │   ├── NavLink.md
    │   │   │   ├── NavLink.module.scss
    │   │   │   ├── NavLink.spec.ts
    │   │   │   ├── NavLink.tsx
    │   │   │   └── NavLinkNative.tsx
    │   │   ├── NavPanel
    │   │   │   ├── NavPanel.md
    │   │   │   ├── NavPanel.module.scss
    │   │   │   ├── NavPanel.spec.ts
    │   │   │   ├── NavPanel.tsx
    │   │   │   └── NavPanelNative.tsx
    │   │   ├── NestedApp
    │   │   │   ├── AppWithCodeView.module.scss
    │   │   │   ├── AppWithCodeView.tsx
    │   │   │   ├── AppWithCodeViewNative.tsx
    │   │   │   ├── defaultProps.tsx
    │   │   │   ├── logo.svg
    │   │   │   ├── NestedApp.module.scss
    │   │   │   ├── NestedApp.tsx
    │   │   │   ├── NestedAppNative.tsx
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── utils.ts
    │   │   ├── NoResult
    │   │   │   ├── NoResult.md
    │   │   │   ├── NoResult.module.scss
    │   │   │   ├── NoResult.spec.ts
    │   │   │   ├── NoResult.tsx
    │   │   │   └── NoResultNative.tsx
    │   │   ├── NumberBox
    │   │   │   ├── numberbox-abstractions.ts
    │   │   │   ├── NumberBox.md
    │   │   │   ├── NumberBox.module.scss
    │   │   │   ├── NumberBox.spec.ts
    │   │   │   ├── NumberBox.tsx
    │   │   │   └── NumberBoxNative.tsx
    │   │   ├── Option
    │   │   │   ├── Option.md
    │   │   │   ├── Option.spec.ts
    │   │   │   ├── Option.tsx
    │   │   │   ├── OptionNative.tsx
    │   │   │   └── OptionTypeProvider.tsx
    │   │   ├── PageMetaTitle
    │   │   │   ├── PageMetaTilteNative.tsx
    │   │   │   ├── PageMetaTitle.md
    │   │   │   ├── PageMetaTitle.spec.ts
    │   │   │   └── PageMetaTitle.tsx
    │   │   ├── Pages
    │   │   │   ├── Page.md
    │   │   │   ├── Pages.md
    │   │   │   ├── Pages.module.scss
    │   │   │   ├── Pages.tsx
    │   │   │   └── PagesNative.tsx
    │   │   ├── Pagination
    │   │   │   ├── Pagination.md
    │   │   │   ├── Pagination.module.scss
    │   │   │   ├── Pagination.spec.ts
    │   │   │   ├── Pagination.tsx
    │   │   │   └── PaginationNative.tsx
    │   │   ├── PositionedContainer
    │   │   │   ├── PositionedContainer.module.scss
    │   │   │   ├── PositionedContainer.tsx
    │   │   │   └── PositionedContainerNative.tsx
    │   │   ├── ProfileMenu
    │   │   │   ├── ProfileMenu.module.scss
    │   │   │   └── ProfileMenu.tsx
    │   │   ├── ProgressBar
    │   │   │   ├── ProgressBar.md
    │   │   │   ├── ProgressBar.module.scss
    │   │   │   ├── ProgressBar.spec.ts
    │   │   │   ├── ProgressBar.tsx
    │   │   │   └── ProgressBarNative.tsx
    │   │   ├── Queue
    │   │   │   ├── Queue.md
    │   │   │   ├── Queue.spec.ts
    │   │   │   ├── Queue.tsx
    │   │   │   ├── queueActions.ts
    │   │   │   └── QueueNative.tsx
    │   │   ├── RadioGroup
    │   │   │   ├── RadioGroup.md
    │   │   │   ├── RadioGroup.module.scss
    │   │   │   ├── RadioGroup.spec.ts
    │   │   │   ├── RadioGroup.tsx
    │   │   │   ├── RadioGroupNative.tsx
    │   │   │   ├── RadioItem.tsx
    │   │   │   └── RadioItemNative.tsx
    │   │   ├── RealTimeAdapter
    │   │   │   ├── RealTimeAdapter.tsx
    │   │   │   └── RealTimeAdapterNative.tsx
    │   │   ├── Redirect
    │   │   │   ├── Redirect.md
    │   │   │   ├── Redirect.spec.ts
    │   │   │   └── Redirect.tsx
    │   │   ├── ResponsiveBar
    │   │   │   ├── README.md
    │   │   │   ├── ResponsiveBar.md
    │   │   │   ├── ResponsiveBar.module.scss
    │   │   │   ├── ResponsiveBar.spec.ts
    │   │   │   ├── ResponsiveBar.tsx
    │   │   │   └── ResponsiveBarNative.tsx
    │   │   ├── Select
    │   │   │   ├── HiddenOption.tsx
    │   │   │   ├── OptionContext.ts
    │   │   │   ├── Select.md
    │   │   │   ├── Select.module.scss
    │   │   │   ├── Select.spec.ts
    │   │   │   ├── Select.tsx
    │   │   │   ├── SelectContext.tsx
    │   │   │   └── SelectNative.tsx
    │   │   ├── SelectionStore
    │   │   │   ├── SelectionStore.md
    │   │   │   ├── SelectionStore.tsx
    │   │   │   └── SelectionStoreNative.tsx
    │   │   ├── Slider
    │   │   │   ├── Slider.md
    │   │   │   ├── Slider.module.scss
    │   │   │   ├── Slider.spec.ts
    │   │   │   ├── Slider.tsx
    │   │   │   └── SliderNative.tsx
    │   │   ├── Slot
    │   │   │   ├── Slot.md
    │   │   │   ├── Slot.spec.ts
    │   │   │   └── Slot.ts
    │   │   ├── SlotItem.tsx
    │   │   ├── SpaceFiller
    │   │   │   ├── SpaceFiller.md
    │   │   │   ├── SpaceFiller.module.scss
    │   │   │   ├── SpaceFiller.spec.ts
    │   │   │   ├── SpaceFiller.tsx
    │   │   │   └── SpaceFillerNative.tsx
    │   │   ├── Spinner
    │   │   │   ├── Spinner.md
    │   │   │   ├── Spinner.module.scss
    │   │   │   ├── Spinner.spec.ts
    │   │   │   ├── Spinner.tsx
    │   │   │   └── SpinnerNative.tsx
    │   │   ├── Splitter
    │   │   │   ├── HSplitter.md
    │   │   │   ├── HSplitter.spec.ts
    │   │   │   ├── Splitter.md
    │   │   │   ├── Splitter.module.scss
    │   │   │   ├── Splitter.spec.ts
    │   │   │   ├── Splitter.tsx
    │   │   │   ├── SplitterNative.tsx
    │   │   │   ├── utils.ts
    │   │   │   ├── VSplitter.md
    │   │   │   └── VSplitter.spec.ts
    │   │   ├── Stack
    │   │   │   ├── CHStack.md
    │   │   │   ├── CHStack.spec.ts
    │   │   │   ├── CVStack.md
    │   │   │   ├── CVStack.spec.ts
    │   │   │   ├── HStack.md
    │   │   │   ├── HStack.spec.ts
    │   │   │   ├── Stack.md
    │   │   │   ├── Stack.module.scss
    │   │   │   ├── Stack.spec.ts
    │   │   │   ├── Stack.tsx
    │   │   │   ├── StackNative.tsx
    │   │   │   ├── VStack.md
    │   │   │   └── VStack.spec.ts
    │   │   ├── StickyBox
    │   │   │   ├── StickyBox.md
    │   │   │   ├── StickyBox.module.scss
    │   │   │   ├── StickyBox.tsx
    │   │   │   └── StickyBoxNative.tsx
    │   │   ├── Switch
    │   │   │   ├── Switch.md
    │   │   │   ├── Switch.spec.ts
    │   │   │   └── Switch.tsx
    │   │   ├── Table
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── react-table-config.d.ts
    │   │   │   ├── Table.md
    │   │   │   ├── Table.module.scss
    │   │   │   ├── Table.spec.ts
    │   │   │   ├── Table.tsx
    │   │   │   ├── TableNative.tsx
    │   │   │   └── useRowSelection.tsx
    │   │   ├── TableOfContents
    │   │   │   ├── TableOfContents.module.scss
    │   │   │   ├── TableOfContents.spec.ts
    │   │   │   ├── TableOfContents.tsx
    │   │   │   └── TableOfContentsNative.tsx
    │   │   ├── Tabs
    │   │   │   ├── TabContext.tsx
    │   │   │   ├── TabItem.md
    │   │   │   ├── TabItem.tsx
    │   │   │   ├── TabItemNative.tsx
    │   │   │   ├── Tabs.md
    │   │   │   ├── Tabs.module.scss
    │   │   │   ├── Tabs.spec.ts
    │   │   │   ├── Tabs.tsx
    │   │   │   └── TabsNative.tsx
    │   │   ├── Text
    │   │   │   ├── Text.md
    │   │   │   ├── Text.module.scss
    │   │   │   ├── Text.spec.ts
    │   │   │   ├── Text.tsx
    │   │   │   └── TextNative.tsx
    │   │   ├── TextArea
    │   │   │   ├── TextArea.md
    │   │   │   ├── TextArea.module.scss
    │   │   │   ├── TextArea.spec.ts
    │   │   │   ├── TextArea.tsx
    │   │   │   ├── TextAreaNative.tsx
    │   │   │   ├── TextAreaResizable.tsx
    │   │   │   └── useComposedRef.ts
    │   │   ├── TextBox
    │   │   │   ├── TextBox.md
    │   │   │   ├── TextBox.module.scss
    │   │   │   ├── TextBox.spec.ts
    │   │   │   ├── TextBox.tsx
    │   │   │   └── TextBoxNative.tsx
    │   │   ├── Theme
    │   │   │   ├── NotificationToast.tsx
    │   │   │   ├── Theme.md
    │   │   │   ├── Theme.module.scss
    │   │   │   ├── Theme.spec.ts
    │   │   │   ├── Theme.tsx
    │   │   │   └── ThemeNative.tsx
    │   │   ├── TimeInput
    │   │   │   ├── TimeInput.md
    │   │   │   ├── TimeInput.module.scss
    │   │   │   ├── TimeInput.spec.ts
    │   │   │   ├── TimeInput.tsx
    │   │   │   ├── TimeInputNative.tsx
    │   │   │   └── utils.ts
    │   │   ├── Timer
    │   │   │   ├── Timer.md
    │   │   │   ├── Timer.spec.ts
    │   │   │   ├── Timer.tsx
    │   │   │   └── TimerNative.tsx
    │   │   ├── Toggle
    │   │   │   ├── Toggle.module.scss
    │   │   │   └── Toggle.tsx
    │   │   ├── ToneChangerButton
    │   │   │   ├── ToneChangerButton.md
    │   │   │   ├── ToneChangerButton.spec.ts
    │   │   │   └── ToneChangerButton.tsx
    │   │   ├── ToneSwitch
    │   │   │   ├── ToneSwitch.md
    │   │   │   ├── ToneSwitch.module.scss
    │   │   │   ├── ToneSwitch.spec.ts
    │   │   │   ├── ToneSwitch.tsx
    │   │   │   └── ToneSwitchNative.tsx
    │   │   ├── Tooltip
    │   │   │   ├── Tooltip.md
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.spec.ts
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── TooltipNative.tsx
    │   │   ├── Tree
    │   │   │   ├── testData.ts
    │   │   │   ├── Tree-dynamic.spec.ts
    │   │   │   ├── Tree-icons.spec.ts
    │   │   │   ├── Tree.md
    │   │   │   ├── Tree.spec.ts
    │   │   │   ├── TreeComponent.module.scss
    │   │   │   ├── TreeComponent.tsx
    │   │   │   └── TreeNative.tsx
    │   │   ├── TreeDisplay
    │   │   │   ├── TreeDisplay.md
    │   │   │   ├── TreeDisplay.module.scss
    │   │   │   ├── TreeDisplay.tsx
    │   │   │   └── TreeDisplayNative.tsx
    │   │   ├── ValidationSummary
    │   │   │   ├── ValidationSummary.module.scss
    │   │   │   └── ValidationSummary.tsx
    │   │   └── VisuallyHidden.tsx
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   ├── ComponentRenderer.ts
    │   │   │   ├── LoaderRenderer.ts
    │   │   │   ├── standalone.ts
    │   │   │   └── treeAbstractions.ts
    │   │   ├── action
    │   │   │   ├── actions.ts
    │   │   │   ├── APICall.tsx
    │   │   │   ├── FileDownloadAction.tsx
    │   │   │   ├── FileUploadAction.tsx
    │   │   │   ├── NavigateAction.tsx
    │   │   │   └── TimedAction.tsx
    │   │   ├── ApiBoundComponent.tsx
    │   │   ├── appContext
    │   │   │   ├── date-functions.ts
    │   │   │   ├── math-function.ts
    │   │   │   └── misc-utils.ts
    │   │   ├── AppContext.tsx
    │   │   ├── behaviors
    │   │   │   ├── Behavior.tsx
    │   │   │   └── CoreBehaviors.tsx
    │   │   ├── component-hooks.ts
    │   │   ├── ComponentDecorator.tsx
    │   │   ├── ComponentViewer.tsx
    │   │   ├── CompoundComponent.tsx
    │   │   ├── constants.ts
    │   │   ├── DebugViewProvider.tsx
    │   │   ├── descriptorHelper.ts
    │   │   ├── devtools
    │   │   │   ├── InspectorDialog.module.scss
    │   │   │   ├── InspectorDialog.tsx
    │   │   │   └── InspectorDialogVisibilityContext.tsx
    │   │   ├── EngineError.ts
    │   │   ├── event-handlers.ts
    │   │   ├── InspectorButton.module.scss
    │   │   ├── InspectorContext.tsx
    │   │   ├── interception
    │   │   │   ├── abstractions.ts
    │   │   │   ├── ApiInterceptor.ts
    │   │   │   ├── ApiInterceptorProvider.tsx
    │   │   │   ├── apiInterceptorWorker.ts
    │   │   │   ├── Backend.ts
    │   │   │   ├── Errors.ts
    │   │   │   ├── IndexedDb.ts
    │   │   │   ├── initMock.ts
    │   │   │   ├── InMemoryDb.ts
    │   │   │   ├── ReadonlyCollection.ts
    │   │   │   └── useApiInterceptorContext.tsx
    │   │   ├── loader
    │   │   │   ├── ApiLoader.tsx
    │   │   │   ├── DataLoader.tsx
    │   │   │   ├── ExternalDataLoader.tsx
    │   │   │   ├── Loader.tsx
    │   │   │   ├── MockLoaderRenderer.tsx
    │   │   │   └── PageableLoader.tsx
    │   │   ├── LoaderComponent.tsx
    │   │   ├── markup-check.ts
    │   │   ├── parts.ts
    │   │   ├── renderers.ts
    │   │   ├── rendering
    │   │   │   ├── AppContent.tsx
    │   │   │   ├── AppRoot.tsx
    │   │   │   ├── AppWrapper.tsx
    │   │   │   ├── buildProxy.ts
    │   │   │   ├── collectFnVarDeps.ts
    │   │   │   ├── ComponentAdapter.tsx
    │   │   │   ├── ComponentWrapper.tsx
    │   │   │   ├── Container.tsx
    │   │   │   ├── containers.ts
    │   │   │   ├── ContainerWrapper.tsx
    │   │   │   ├── ErrorBoundary.module.scss
    │   │   │   ├── ErrorBoundary.tsx
    │   │   │   ├── InvalidComponent.module.scss
    │   │   │   ├── InvalidComponent.tsx
    │   │   │   ├── nodeUtils.ts
    │   │   │   ├── reducer.ts
    │   │   │   ├── renderChild.tsx
    │   │   │   ├── StandaloneComponent.tsx
    │   │   │   ├── StateContainer.tsx
    │   │   │   ├── UnknownComponent.module.scss
    │   │   │   ├── UnknownComponent.tsx
    │   │   │   └── valueExtractor.ts
    │   │   ├── reportEngineError.ts
    │   │   ├── RestApiProxy.ts
    │   │   ├── script-runner
    │   │   │   ├── asyncProxy.ts
    │   │   │   ├── AttributeValueParser.ts
    │   │   │   ├── bannedFunctions.ts
    │   │   │   ├── BindingTreeEvaluationContext.ts
    │   │   │   ├── eval-tree-async.ts
    │   │   │   ├── eval-tree-common.ts
    │   │   │   ├── eval-tree-sync.ts
    │   │   │   ├── ParameterParser.ts
    │   │   │   ├── process-statement-async.ts
    │   │   │   ├── process-statement-common.ts
    │   │   │   ├── process-statement-sync.ts
    │   │   │   ├── ScriptingSourceTree.ts
    │   │   │   ├── simplify-expression.ts
    │   │   │   ├── statement-queue.ts
    │   │   │   └── visitors.ts
    │   │   ├── StandaloneApp.tsx
    │   │   ├── StandaloneExtensionManager.ts
    │   │   ├── TableOfContentsContext.tsx
    │   │   ├── theming
    │   │   │   ├── _themes.scss
    │   │   │   ├── component-layout-resolver.ts
    │   │   │   ├── extendThemeUtils.ts
    │   │   │   ├── hvar.ts
    │   │   │   ├── layout-resolver.ts
    │   │   │   ├── parse-layout-props.ts
    │   │   │   ├── StyleContext.tsx
    │   │   │   ├── StyleRegistry.ts
    │   │   │   ├── ThemeContext.tsx
    │   │   │   ├── ThemeProvider.tsx
    │   │   │   ├── themes
    │   │   │   │   ├── base-utils.ts
    │   │   │   │   ├── palette.ts
    │   │   │   │   ├── root.ts
    │   │   │   │   ├── solid.ts
    │   │   │   │   ├── theme-colors.ts
    │   │   │   │   └── xmlui.ts
    │   │   │   ├── themeVars.module.scss
    │   │   │   ├── themeVars.ts
    │   │   │   ├── transformThemeVars.ts
    │   │   │   └── utils.ts
    │   │   ├── utils
    │   │   │   ├── actionUtils.ts
    │   │   │   ├── audio-utils.ts
    │   │   │   ├── base64-utils.ts
    │   │   │   ├── compound-utils.ts
    │   │   │   ├── css-utils.ts
    │   │   │   ├── DataLoaderQueryKeyGenerator.ts
    │   │   │   ├── date-utils.ts
    │   │   │   ├── extractParam.ts
    │   │   │   ├── hooks.tsx
    │   │   │   ├── LruCache.ts
    │   │   │   ├── mergeProps.ts
    │   │   │   ├── misc.ts
    │   │   │   ├── request-params.ts
    │   │   │   ├── statementUtils.ts
    │   │   │   └── treeUtils.ts
    │   │   └── xmlui-parser.ts
    │   ├── index-standalone.ts
    │   ├── index.scss
    │   ├── index.ts
    │   ├── language-server
    │   │   ├── server-common.ts
    │   │   ├── server-web-worker.ts
    │   │   ├── server.ts
    │   │   ├── services
    │   │   │   ├── common
    │   │   │   │   ├── docs-generation.ts
    │   │   │   │   ├── lsp-utils.ts
    │   │   │   │   ├── metadata-utils.ts
    │   │   │   │   └── syntax-node-utilities.ts
    │   │   │   ├── completion.ts
    │   │   │   ├── diagnostic.ts
    │   │   │   ├── format.ts
    │   │   │   └── hover.ts
    │   │   └── xmlui-metadata-generated.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.bin.json
    ├── tsconfig.json
    ├── tsconfig.node.json
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

--------------------------------------------------------------------------------
/docs/content/components/Select.md:
--------------------------------------------------------------------------------

```markdown
  1 | # Select [#select]
  2 | 
  3 | `Select` provides a dropdown interface for choosing from a list of options, supporting both single and multiple selection modes. It offers extensive customization capabilities including search functionality, custom templates, and comprehensive form integration.
  4 | 
  5 | **Key features:**
  6 | - **Flexible selection modes**: Single selection by default, with optional multi-select capability
  7 | - **Option containers**: Uses Option components to define selectable items with separate values and labels
  8 | - **Search functionality**: Optional filtering to quickly find options in large lists
  9 | - **Custom templates**: Configurable option display, value presentation, and empty state templates
 10 | - **Dynamic options**: Supports both static [Option](/components/Option) children and dynamic lists via [Items](/components/Items).
 11 | 
 12 | ## Using `Select` [#using-select]
 13 | 
 14 | The component accepts `Option` components as children defining a particular option's label-value pair.
 15 | `Option` requires a `value` property and while also having a `label` that is displayed in the list.
 16 | If the `label` is not specified `value` is shown.
 17 | 
 18 | ```xmlui-pg copy display name="Example: using Select" height="200px"
 19 | <App>
 20 |   <Select>
 21 |     <Option value="opt1" label="first"/>
 22 |     <Option value="opt2" label="second"/>
 23 |     <Option value="opt3" label="third"/>
 24 |   </Select>
 25 | </App>
 26 | ```
 27 | 
 28 | You can use `Select` with dynamic options:
 29 | 
 30 | ```xmlui-pg copy display name="Example: using Select with dynamic options" height="200px"
 31 | <App>
 32 |   <Select>
 33 |     <Items data="{['one', 'two', 'three']}" >
 34 |       <Option value="{$itemIndex}" label="{$item}" />
 35 |     </Items>
 36 |   </Select>
 37 | </App>
 38 | ```
 39 | 
 40 | **Context variables available during execution:**
 41 | 
 42 | - `$item`: Represents the current option's data (label and value properties)
 43 | - `$itemContext`: Provides utility methods like `removeItem()` for multi-select scenarios
 44 | 
 45 | ## Properties [#properties]
 46 | 
 47 | ### `autoFocus` (default: false) [#autofocus-default-false]
 48 | 
 49 | If this property is set to `true`, the component gets the focus automatically when displayed.
 50 | 
 51 | ### `dropdownHeight` [#dropdownheight]
 52 | 
 53 | This property sets the height of the dropdown list. If not set, the height is determined automatically.
 54 | 
 55 | ```xmlui-pg copy display name="Example: dropdownHeight" height="300px"
 56 | <App>
 57 |   <Select dropdownHeight="180px">
 58 |     <Option value="opt1" label="first"/>
 59 |     <Option value="opt2" label="second"/>
 60 |     <Option value="opt3" label="third"/>
 61 |     <Option value="opt4" label="fourth"/>
 62 |     <Option value="opt5" label="fifth"/>
 63 |     <Option value="opt6" label="sixth"/>
 64 |     <Option value="opt7" label="seventh"/>
 65 |     <Option value="opt8" label="eighth"/>
 66 |     <Option value="opt9" label="ninth"/>
 67 |     <Option value="opt10" label="tenth"/>
 68 |     <Option value="opt11" label="eleventh"/>
 69 |     <Option value="opt12" label="twelfth"/>
 70 |   </Select>
 71 | </App>
 72 | ```
 73 | 
 74 | ### `emptyListTemplate` [#emptylisttemplate]
 75 | 
 76 | This optional property provides the ability to customize what is displayed when the list of options is empty.
 77 | 
 78 | Click on the second field to see the custom empty list indicator.
 79 | 
 80 | ```xmlui-pg copy {9-11} display name="Example: emptyListTemplate" height="260px"
 81 | <App>
 82 |   <VStack>
 83 |     <Text value="Default:" />
 84 |     <Select />
 85 |   </VStack>
 86 |   <VStack>
 87 |     <Text value="Custom:" />
 88 |     <Select>
 89 |       <property name="emptyListTemplate">
 90 |         <Text variant="strong" value="Nothing to see here!" />
 91 |       </property>
 92 |     </Select>
 93 |   </VStack>
 94 | </App>
 95 | ```
 96 | 
 97 | ### `enabled` (default: true) [#enabled-default-true]
 98 | 
 99 | This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).
100 | 
101 | ```xmlui-pg copy display name="Example: enabled"
102 | <App>
103 |   <Select enabled="false" />
104 | </App>
105 | ```
106 | 
107 | ### `initialValue` [#initialvalue]
108 | 
109 | This property sets the component's initial value.
110 | 
111 | ```xmlui-pg copy display name="Example: initialValue" height="200px"
112 | <App>
113 |   <Select initialValue="opt3">
114 |     <Option value="opt1" label="first"/>
115 |     <Option value="opt2" label="second"/>
116 |     <Option value="opt3" label="third"/>
117 |   </Select>
118 | </App>
119 | ```
120 | 
121 | ### `inProgress` (default: false) [#inprogress-default-false]
122 | 
123 | This property indicates whether the component is in progress. It can be used to show a loading message.
124 | 
125 | ### `inProgressNotificationMessage` (default: "") [#inprogressnotificationmessage-default-]
126 | 
127 | This property indicates the message to display when the component is in progress.
128 | 
129 | ### `multiSelect` (default: false) [#multiselect-default-false]
130 | 
131 | The `true` value of the property indicates if the user can select multiple items.
132 | 
133 | ```xmlui-pg copy display name="Example: multiSelect" height="300px"
134 | <App>
135 |   <Select multiSelect="true" dropdownHeight="180px" >
136 |     <Option value="opt1" label="first"/>
137 |     <Option value="opt2" label="second"/>
138 |     <Option value="opt3" label="third"/>
139 |     <Option value="opt4" label="fourth"/>
140 |     <Option value="opt5" label="fifth"/>
141 |     <Option value="opt6" label="sixth"/>
142 |     <Option value="opt7" label="seventh"/>
143 |     <Option value="opt8" label="eighth"/>
144 |     <Option value="opt9" label="ninth"/>
145 |     <Option value="opt10" label="tenth"/>
146 |     <Option value="opt11" label="eleventh"/>
147 |     <Option value="opt12" label="twelfth"/>
148 |   </Select>
149 | </App>
150 | ```
151 | 
152 | ### `optionLabelTemplate` [#optionlabeltemplate]
153 | 
154 | This property allows replacing the default template to display an option in the dropdown list.
155 | 
156 | In the template definition, you can use the `$item` context property to access the particular item's `label` and `value`.
157 | 
158 | ```xmlui-pg copy {3-9} display name="Example: optionLabelTemplate" height="300px"
159 | <App>
160 |   <Select initialValue="{0}" placeholder="Select..." searchable>
161 |     <property name="optionLabelTemplate">
162 |       <HStack
163 |         paddingHorizontal="$padding-tight"
164 |         border="2px dotted $color-primary-500">
165 |         <Text>{$item.label}</Text>
166 |       </HStack>
167 |     </property>
168 |     <Option value="{0}" label="zero"/>
169 |     <Option value="opt1" label="first"/>
170 |     <Option value="opt2" label="second"/>
171 |     <Option value="opt3" label="third"/>
172 |   </Select>
173 | </App>
174 | ```
175 | 
176 | ### `optionTemplate` [#optiontemplate]
177 | 
178 | This property allows replacing the default template to display an option in the dropdown list.
179 | 
180 | ```xmlui-pg copy display name="Example: optionTemplate" height="200px"
181 | <App>
182 |   <Select>
183 |     <property name="optionTemplate">
184 |       <HStack verticalAlignment="center" gap="$space-0_5">
185 |         <Icon name="info" />
186 |         <Text value="{$item.label}" variant="strong" />
187 |       </HStack>
188 |     </property>
189 |     <Option value="opt1" label="first"/>
190 |     <Option value="opt2" label="second"/>
191 |     <Option value="opt3" label="third"/>
192 |   </Select>
193 | </App>
194 | ```
195 | 
196 | ### `placeholder` (default: "") [#placeholder-default-]
197 | 
198 | An optional placeholder text that is visible in the input field when its empty.
199 | 
200 | ```xmlui-pg copy display name="Example: placeholder" height="200px"
201 | <App>
202 |   <Select placeholder="Please select an item">
203 |     <Option value="opt1" label="first"/>
204 |     <Option value="opt2" label="second"/>
205 |     <Option value="opt3" label="third"/>
206 |   </Select>
207 | </App>
208 | ```
209 | 
210 | ### `readOnly` (default: false) [#readonly-default-false]
211 | 
212 | Set this property to `true` to disallow changing the component value.
213 | 
214 | ### `required` (default: false) [#required-default-false]
215 | 
216 | Set this property to `true` to indicate it must have a value before submitting the containing form.
217 | 
218 | ### `searchable` (default: false) [#searchable-default-false]
219 | 
220 | This property enables the search functionality in the dropdown list.
221 | 
222 | ### `validationStatus` (default: "none") [#validationstatus-default-none]
223 | 
224 | This property allows you to set the validation status of the input component.
225 | 
226 | Available values:
227 | 
228 | | Value | Description |
229 | | --- | --- |
230 | | `valid` | Visual indicator for an input that is accepted |
231 | | `warning` | Visual indicator for an input that produced a warning |
232 | | `error` | Visual indicator for an input that produced an error |
233 | 
234 | ```xmlui-pg copy display name="Example: validationStatus" height="280px"
235 | <App>
236 |   <Select />
237 |   <Select validationStatus="valid" />
238 |   <Select validationStatus="warning" />
239 |   <Select validationStatus="error" />
240 | </App>
241 | ```
242 | 
243 | ### `valueTemplate` [#valuetemplate]
244 | 
245 | This property allows replacing the default template to display a selected value when multiple selections (`multiSelect` is `true`) are enabled.
246 | 
247 | In the template definition, you can use the `$item` context property to access the particular item's `label` and `value`.  The `$itemContext` property provides a `removeItem` method to delete a value from the current selection.
248 | 
249 | ```xmlui-pg copy {3-15} display name="Example: valueTemplate" height="300px"
250 | <App>
251 |   <Select initialValue="{0}" placeholder="Select..." multiSelect>
252 |     <property name="valueTemplate">
253 |       <HStack
254 |         paddingLeft="$padding-tight"
255 |         border="2px dotted $color-primary-500"
256 |         verticalAlignment="center">
257 |         <Text>{$item.label}</Text>
258 |         <Button
259 |           variant="ghost"
260 |           icon="close"
261 |           size="xs"
262 |           onClick="$itemContext.removeItem()"/>
263 |       </HStack>
264 |     </property>
265 |     <Option value="{0}" label="zero"/>
266 |     <Option value="opt1" label="first"/>
267 |     <Option value="opt2" label="second"/>
268 |     <Option value="opt3" label="third"/>
269 |   </Select>
270 | </App>
271 | ```
272 | 
273 | ## Events [#events]
274 | 
275 | ### `didChange` [#didchange]
276 | 
277 | This event is triggered when value of Select has changed.
278 | 
279 | ```xmlui-pg copy display name="Example: didChange" height="260px"
280 | <App>
281 |   <variable name="newValue" value="(none)" />
282 |   <Text value="{newValue}" />
283 |   <Select onDidChange="(newItem) => newValue = newItem">
284 |     <Option value="opt1" label="first"/>
285 |     <Option value="opt2" label="second"/>
286 |     <Option value="opt3" label="third"/>
287 |   </Select>
288 | </App>
289 | ```
290 | 
291 | ### `gotFocus` [#gotfocus]
292 | 
293 | This event is triggered when the Select has received the focus.
294 | 
295 | ```xmlui-pg copy {5-6} display name="Example: gotFocus/lostFocus" height="260px"
296 | <App>
297 |   <variable name="isFocused" value="{false}" />
298 |   <Text value="Input control is focused: {isFocused}" />
299 |   <Select
300 |     onGotFocus="isFocused = true"
301 |     onLostFocus="isFocused = false">
302 |     <Option value="opt1" label="first"/>
303 |     <Option value="opt2" label="second"/>
304 |     <Option value="opt3" label="third"/>
305 |   </Select>
306 | </App>
307 | ```
308 | 
309 | ### `lostFocus` [#lostfocus]
310 | 
311 | This event is triggered when the Select has lost the focus.
312 | 
313 | ## Exposed Methods [#exposed-methods]
314 | 
315 | ### `focus` [#focus]
316 | 
317 | This method focuses the `Select` component. You can use it to programmatically focus the component.
318 | 
319 | **Signature**: `focus(): void`
320 | 
321 | ```xmlui-pg copy display name="Example: focus()" height="260px"
322 | <App>
323 |   <Button label="Focus Input" onClick="inputControl.focus()" />
324 |   <Select id="inputControl">
325 |     <Option value="opt1" label="first"/>
326 |     <Option value="opt2" label="second"/>
327 |     <Option value="opt3" label="third"/>
328 |   </Select>
329 | </App>
330 | ```
331 | 
332 | ### `reset` [#reset]
333 | 
334 | This method resets the component to its initial value, or clears the selection if no initial value was provided.
335 | 
336 | **Signature**: `reset(): void`
337 | 
338 | ### `setValue` [#setvalue]
339 | 
340 | This API sets the value of the `Select`. You can use it to programmatically change the value.
341 | 
342 | **Signature**: `setValue(value: string | string[] | undefined): void`
343 | 
344 | - `value`: The new value to set. Can be a single value or an array of values for multi-select.
345 | 
346 | ```xmlui-pg copy display name="Example: setValue()" height="260px"
347 | <App>
348 |   <Select id="inputControl">
349 |     <Option value="opt1" label="first"/>
350 |     <Option value="opt2" label="second"/>
351 |     <Option value="opt3" label="third"/>
352 |   </Select>
353 |   <HStack>
354 |     <Button
355 |       label="Select 2nd Item"
356 |       onClick="inputControl.setValue('opt2')" />
357 |     <Button
358 |       label="Remove Selection"
359 |       onClick="inputControl.setValue('')" />
360 |   </HStack>
361 | </App>
362 | ```
363 | 
364 | ### `value` [#value]
365 | 
366 | This API retrieves the current value of the `Select`. You can use it to get the value programmatically.
367 | 
368 | **Signature**: `get value(): string | string[] | undefined`
369 | 
370 | ## Styling [#styling]
371 | 
372 | ### Theme Variables [#theme-variables]
373 | 
374 | | Variable | Default Value (Light) | Default Value (Dark) |
375 | | --- | --- | --- |
376 | | [backgroundColor](../styles-and-themes/common-units/#color)-item-Select | $backgroundColor-dropdown-item | $backgroundColor-dropdown-item |
377 | | [backgroundColor](../styles-and-themes/common-units/#color)-item-Select--active | $backgroundColor-dropdown-item--active | $backgroundColor-dropdown-item--active |
378 | | [backgroundColor](../styles-and-themes/common-units/#color)-item-Select--hover | $backgroundColor-dropdown-item--hover | $backgroundColor-dropdown-item--hover |
379 | | [backgroundColor](../styles-and-themes/common-units/#color)-menu-Select | $color-surface-raised | $color-surface-raised |
380 | | [backgroundColor](../styles-and-themes/common-units/#color)-menu-Select | $color-surface-raised | $color-surface-raised |
381 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select--disabled | *none* | *none* |
382 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-badge | $color-primary-500 | $color-primary-500 |
383 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-badge | $color-primary-500 | $color-primary-500 |
384 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-badge--active | $color-primary-500 | $color-primary-500 |
385 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-badge--active | $color-primary-500 | $color-primary-500 |
386 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-badge--hover | $color-primary-400 | $color-primary-400 |
387 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-badge--hover | $color-primary-400 | $color-primary-400 |
388 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-default | *none* | *none* |
389 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-default--hover | *none* | *none* |
390 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-error | *none* | *none* |
391 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-error--hover | *none* | *none* |
392 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-success | *none* | *none* |
393 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-success--hover | *none* | *none* |
394 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-warning | *none* | *none* |
395 | | [backgroundColor](../styles-and-themes/common-units/#color)-Select-warning--hover | *none* | *none* |
396 | | [border](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
397 | | [borderBottom](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
398 | | [borderBottomColor](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
399 | | [borderBottomStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
400 | | [borderBottomWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
401 | | [borderColor](../styles-and-themes/common-units/#color)-menu-Select | $borderColor | $borderColor |
402 | | [borderColor](../styles-and-themes/common-units/#color)-menu-Select | $borderColor | $borderColor |
403 | | [borderColor](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
404 | | [borderColor](../styles-and-themes/common-units/#color)-Select--disabled | initial | initial |
405 | | [borderColor](../styles-and-themes/common-units/#color)-Select--disabled | initial | initial |
406 | | [borderColor](../styles-and-themes/common-units/#color)-Select-default | *none* | *none* |
407 | | [borderColor](../styles-and-themes/common-units/#color)-Select-default--hover | *none* | *none* |
408 | | [borderColor](../styles-and-themes/common-units/#color)-Select-error | *none* | *none* |
409 | | [borderColor](../styles-and-themes/common-units/#color)-Select-error--hover | *none* | *none* |
410 | | [borderColor](../styles-and-themes/common-units/#color)-Select-success | *none* | *none* |
411 | | [borderColor](../styles-and-themes/common-units/#color)-Select-success--hover | *none* | *none* |
412 | | [borderColor](../styles-and-themes/common-units/#color)-Select-warning | *none* | *none* |
413 | | [borderColor](../styles-and-themes/common-units/#color)-Select-warning--hover | *none* | *none* |
414 | | [borderEndEndRadius](../styles-and-themes/common-units/#border-rounding)-Select | *none* | *none* |
415 | | [borderEndStartRadius](../styles-and-themes/common-units/#border-rounding)-Select | *none* | *none* |
416 | | [borderHorizontal](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
417 | | [borderHorizontalColor](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
418 | | [borderHorizontalStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
419 | | [borderHorizontalWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
420 | | [borderLeft](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
421 | | [color](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
422 | | [borderLeftStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
423 | | [borderLeftWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
424 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-menu-Select | $borderRadius | $borderRadius |
425 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-menu-Select | $borderRadius | $borderRadius |
426 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Select-badge | $borderRadius | $borderRadius |
427 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Select-default | *none* | *none* |
428 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Select-error | *none* | *none* |
429 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Select-success | *none* | *none* |
430 | | [borderRadius](../styles-and-themes/common-units/#border-rounding)-Select-warning | *none* | *none* |
431 | | [borderRight](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
432 | | [color](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
433 | | [borderRightStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
434 | | [borderRightWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
435 | | [borderStartEndRadius](../styles-and-themes/common-units/#border-rounding)-Select | *none* | *none* |
436 | | [borderStartStartRadius](../styles-and-themes/common-units/#border-rounding)-Select | *none* | *none* |
437 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
438 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Select-default | *none* | *none* |
439 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Select-error | *none* | *none* |
440 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Select-success | *none* | *none* |
441 | | [borderStyle](../styles-and-themes/common-units/#border-style)-Select-warning | *none* | *none* |
442 | | [borderTop](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
443 | | [borderTopColor](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
444 | | [borderTopStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
445 | | [borderTopWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
446 | | [borderHorizontal](../styles-and-themes/common-units/#border)-Select | *none* | *none* |
447 | | [borderVerticalColor](../styles-and-themes/common-units/#color)-Select | *none* | *none* |
448 | | [borderVerticalStyle](../styles-and-themes/common-units/#border-style)-Select | *none* | *none* |
449 | | [borderVerticalWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
450 | | [borderWidth](../styles-and-themes/common-units/#size)-menu-Select | 1px | 1px |
451 | | [borderWidth](../styles-and-themes/common-units/#size)-menu-Select | 1px | 1px |
452 | | [borderWidth](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
453 | | [borderWidth](../styles-and-themes/common-units/#size)-Select-default | *none* | *none* |
454 | | [borderWidth](../styles-and-themes/common-units/#size)-Select-error | *none* | *none* |
455 | | [borderWidth](../styles-and-themes/common-units/#size)-Select-success | *none* | *none* |
456 | | [borderWidth](../styles-and-themes/common-units/#size)-Select-warning | *none* | *none* |
457 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-menu-Select | $boxShadow-md | $boxShadow-md |
458 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-menu-Select | $boxShadow-md | $boxShadow-md |
459 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-default | *none* | *none* |
460 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-default--hover | *none* | *none* |
461 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-error | *none* | *none* |
462 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-error--hover | *none* | *none* |
463 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-success | *none* | *none* |
464 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-success--hover | *none* | *none* |
465 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-warning | *none* | *none* |
466 | | [boxShadow](../styles-and-themes/common-units/#boxShadow)-Select-warning--hover | *none* | *none* |
467 | | [fontSize](../styles-and-themes/common-units/#size)-placeholder-Select-default | *none* | *none* |
468 | | [fontSize](../styles-and-themes/common-units/#size)-placeholder-Select-error | *none* | *none* |
469 | | [fontSize](../styles-and-themes/common-units/#size)-placeholder-Select-success | *none* | *none* |
470 | | [fontSize](../styles-and-themes/common-units/#size)-placeholder-Select-warning | *none* | *none* |
471 | | [fontSize](../styles-and-themes/common-units/#size)-Select-badge | $fontSize-sm | $fontSize-sm |
472 | | [fontSize](../styles-and-themes/common-units/#size)-Select-badge | $fontSize-sm | $fontSize-sm |
473 | | [fontSize](../styles-and-themes/common-units/#size)-Select-default | *none* | *none* |
474 | | [fontSize](../styles-and-themes/common-units/#size)-Select-error | *none* | *none* |
475 | | [fontSize](../styles-and-themes/common-units/#size)-Select-success | *none* | *none* |
476 | | [fontSize](../styles-and-themes/common-units/#size)-Select-warning | *none* | *none* |
477 | | [opacity](../styles-and-themes/common-units/#opacity)-Select--disabled | 0.5 | 0.5 |
478 | | [opacity](../styles-and-themes/common-units/#opacity)-text-item-Select--disabled | 0.5 | 0.5 |
479 | | [outlineColor](../styles-and-themes/common-units/#color)-Select--focus | *none* | *none* |
480 | | [outlineColor](../styles-and-themes/common-units/#color)-Select-default--focus | *none* | *none* |
481 | | [outlineColor](../styles-and-themes/common-units/#color)-Select-error--focus | *none* | *none* |
482 | | [outlineColor](../styles-and-themes/common-units/#color)-Select-success--focus | *none* | *none* |
483 | | [outlineColor](../styles-and-themes/common-units/#color)-Select-warning--focus | *none* | *none* |
484 | | [outlineOffset](../styles-and-themes/common-units/#size)-Select--focus | *none* | *none* |
485 | | [outlineOffset](../styles-and-themes/common-units/#size)-Select-default--focus | *none* | *none* |
486 | | [outlineOffset](../styles-and-themes/common-units/#size)-Select-error--focus | *none* | *none* |
487 | | [outlineOffset](../styles-and-themes/common-units/#size)-Select-success--focus | *none* | *none* |
488 | | [outlineOffset](../styles-and-themes/common-units/#size)-Select-warning--focus | *none* | *none* |
489 | | [outlineStyle](../styles-and-themes/common-units/#border)-Select--focus | *none* | *none* |
490 | | [outlineStyle](../styles-and-themes/common-units/#border)-Select-default--focus | *none* | *none* |
491 | | [outlineStyle](../styles-and-themes/common-units/#border)-Select-error--focus | *none* | *none* |
492 | | [outlineStyle](../styles-and-themes/common-units/#border)-Select-success--focus | *none* | *none* |
493 | | [outlineStyle](../styles-and-themes/common-units/#border)-Select-warning--focus | *none* | *none* |
494 | | [outlineWidth](../styles-and-themes/common-units/#size)-Select--focus | *none* | *none* |
495 | | [outlineWidth](../styles-and-themes/common-units/#size)-Select-default--focus | *none* | *none* |
496 | | [outlineWidth](../styles-and-themes/common-units/#size)-Select-error--focus | *none* | *none* |
497 | | [outlineWidth](../styles-and-themes/common-units/#size)-Select-success--focus | *none* | *none* |
498 | | [outlineWidth](../styles-and-themes/common-units/#size)-Select-warning--focus | *none* | *none* |
499 | | [padding](../styles-and-themes/common-units/#size)-item-Select | *none* | *none* |
500 | | [padding](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
501 | | [paddingBottom](../styles-and-themes/common-units/#size)-item-Select | *none* | *none* |
502 | | [paddingBottom](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
503 | | [paddingHorizontal](../styles-and-themes/common-units/#size)-item-Select | $space-2 | $space-2 |
504 | | [paddingHorizontal](../styles-and-themes/common-units/#size)-Select | $space-2 | $space-2 |
505 | | [paddingHorizontal](../styles-and-themes/common-units/#size)-Select-badge | $space-2_5 | $space-2_5 |
506 | | [paddingLeft](../styles-and-themes/common-units/#size)-item-Select | *none* | *none* |
507 | | [paddingLeft](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
508 | | [paddingRight](../styles-and-themes/common-units/#size)-item-Select | *none* | *none* |
509 | | [paddingRight](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
510 | | [paddingTop](../styles-and-themes/common-units/#size)-item-Select | *none* | *none* |
511 | | [paddingTop](../styles-and-themes/common-units/#size)-Select | *none* | *none* |
512 | | [paddingVertical](../styles-and-themes/common-units/#size)-item-Select | $space-2 | $space-2 |
513 | | [paddingVertical](../styles-and-themes/common-units/#size)-Select | $space-2 | $space-2 |
514 | | [paddingVertical](../styles-and-themes/common-units/#size)-Select-badge | $space-0_5 | $space-0_5 |
515 | | [textColor](../styles-and-themes/common-units/#color)-indicator-Select | *none* | *none* |
516 | | [textColor](../styles-and-themes/common-units/#color)-item-Select--disabled | $color-surface-200 | $color-surface-200 |
517 | | [textColor](../styles-and-themes/common-units/#color)-placeholder-Select | *none* | *none* |
518 | | [textColor](../styles-and-themes/common-units/#color)-placeholder-Select-default | *none* | *none* |
519 | | [textColor](../styles-and-themes/common-units/#color)-placeholder-Select-error | *none* | *none* |
520 | | [textColor](../styles-and-themes/common-units/#color)-placeholder-Select-success | *none* | *none* |
521 | | [textColor](../styles-and-themes/common-units/#color)-placeholder-Select-warning | *none* | *none* |
522 | | [textColor](../styles-and-themes/common-units/#color)-Select--disabled | *none* | *none* |
523 | | [textColor](../styles-and-themes/common-units/#color)-Select-badge | $const-color-surface-50 | $const-color-surface-50 |
524 | | [textColor](../styles-and-themes/common-units/#color)-Select-badge | $const-color-surface-50 | $const-color-surface-50 |
525 | | [textColor](../styles-and-themes/common-units/#color)-Select-badge--active | *none* | *none* |
526 | | [textColor](../styles-and-themes/common-units/#color)-Select-badge--hover | *none* | *none* |
527 | | [textColor](../styles-and-themes/common-units/#color)-Select-default | *none* | *none* |
528 | | [textColor](../styles-and-themes/common-units/#color)-Select-default--hover | *none* | *none* |
529 | | [textColor](../styles-and-themes/common-units/#color)-Select-error | *none* | *none* |
530 | | [textColor](../styles-and-themes/common-units/#color)-Select-error--hover | *none* | *none* |
531 | | [textColor](../styles-and-themes/common-units/#color)-Select-success | *none* | *none* |
532 | | [textColor](../styles-and-themes/common-units/#color)-Select-success--hover | *none* | *none* |
533 | | [textColor](../styles-and-themes/common-units/#color)-Select-warning | *none* | *none* |
534 | | [textColor](../styles-and-themes/common-units/#color)-Select-warning--hover | *none* | *none* |
535 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components-core/script-runner/eval-tree-async.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { isPlainObject } from "lodash-es";
  2 | 
  3 | import type { TemplateLiteralExpression } from "./ScriptingSourceTree";
  4 | import {
  5 |   T_ARRAY_LITERAL,
  6 |   T_ARROW_EXPRESSION,
  7 |   T_ASSIGNMENT_EXPRESSION,
  8 |   T_BINARY_EXPRESSION,
  9 |   T_BLOCK_STATEMENT,
 10 |   T_CALCULATED_MEMBER_ACCESS_EXPRESSION,
 11 |   T_CONDITIONAL_EXPRESSION,
 12 |   T_DESTRUCTURE,
 13 |   T_EMPTY_STATEMENT,
 14 |   T_EXPRESSION_STATEMENT,
 15 |   T_FUNCTION_INVOCATION_EXPRESSION,
 16 |   T_IDENTIFIER,
 17 |   T_LITERAL,
 18 |   T_MEMBER_ACCESS_EXPRESSION,
 19 |   T_OBJECT_LITERAL,
 20 |   T_POSTFIX_OP_EXPRESSION,
 21 |   T_PREFIX_OP_EXPRESSION,
 22 |   T_RETURN_STATEMENT,
 23 |   T_SEQUENCE_EXPRESSION,
 24 |   T_SPREAD_EXPRESSION,
 25 |   T_TEMPLATE_LITERAL_EXPRESSION,
 26 |   T_UNARY_EXPRESSION,
 27 |   T_VAR_DECLARATION,
 28 |   type ArrayLiteral,
 29 |   type ArrowExpression,
 30 |   type AssignmentExpression,
 31 |   type BinaryExpression,
 32 |   type CalculatedMemberAccessExpression,
 33 |   type ConditionalExpression,
 34 |   type Expression,
 35 |   type FunctionInvocationExpression,
 36 |   type Identifier,
 37 |   type MemberAccessExpression,
 38 |   type ObjectLiteral,
 39 |   type PostfixOpExpression,
 40 |   type PrefixOpExpression,
 41 |   type ReturnStatement,
 42 |   type SequenceExpression,
 43 |   type Statement,
 44 |   type UnaryExpression,
 45 |   type VarDeclaration,
 46 | } from "./ScriptingSourceTree";
 47 | import type { BlockScope } from "../../abstractions/scripting/BlockScope";
 48 | import type { LogicalThread } from "../../abstractions/scripting/LogicalThread";
 49 | import type { BindingTreeEvaluationContext } from "./BindingTreeEvaluationContext";
 50 | import { processDeclarationsAsync, processStatementQueueAsync } from "./process-statement-async";
 51 | import {
 52 |   evalArrow,
 53 |   evalAssignmentCore,
 54 |   evalBinaryCore,
 55 |   evalCalculatedMemberAccessCore,
 56 |   evalIdentifier,
 57 |   evalLiteral,
 58 |   evalMemberAccessCore,
 59 |   evalPreOrPostCore,
 60 |   evalTemplateLiteralCore,
 61 |   evalUnaryCore,
 62 |   getExprValue,
 63 |   getRootIdScope,
 64 |   isPromise,
 65 |   setExprValue,
 66 | } from "./eval-tree-common";
 67 | import { ensureMainThread } from "./process-statement-common";
 68 | import { getAsyncProxy } from "./asyncProxy";
 69 | import { isBannedFunction } from "./bannedFunctions";
 70 | 
 71 | type EvaluatorAsyncFunction = (
 72 |   thisStack: any[],
 73 |   expr: Expression,
 74 |   evalContext: BindingTreeEvaluationContext,
 75 |   thread: LogicalThread,
 76 | ) => Promise<any>;
 77 | 
 78 | /**
 79 |  * Evaluates a binding represented by the specified expression
 80 |  * @param expr Expression to evaluate
 81 |  * @param evalContext Evaluation context to use
 82 |  * @param thread The logical thread to use for evaluation
 83 |  * @param onStatementCompleted Execute this function when a statement is completed
 84 |  */
 85 | export async function evalBindingAsync(
 86 |   expr: Expression,
 87 |   evalContext: BindingTreeEvaluationContext,
 88 |   thread: LogicalThread | undefined,
 89 | ): Promise<any> {
 90 |   // --- Prepare the evaluation context
 91 |   const thisStack: any[] = [];
 92 |   ensureMainThread(evalContext);
 93 |   thread ??= evalContext.mainThread;
 94 | 
 95 |   // --- Evaluate the expression using the context
 96 |   return await evalBindingExpressionTreeAsync(
 97 |     thisStack,
 98 |     expr,
 99 |     evalContext,
100 |     thread ?? evalContext.mainThread!,
101 |   );
102 | }
103 | 
104 | /**
105 |  * Executes the specified arrow function
106 |  * @param expr Arrow function expression to run
107 |  * @param evalContext Evaluation context to use
108 |  * @param onStatementCompleted Execute this function when a statement is completed
109 |  * @param thread The logical thread to use for evaluation
110 |  * @param args Arguments of the arrow function to execute
111 |  */
112 | export async function executeArrowExpression(
113 |   expr: ArrowExpression,
114 |   evalContext: BindingTreeEvaluationContext,
115 |   thread?: LogicalThread,
116 |   ...args: any[]
117 | ): Promise<any> {
118 |   // --- Just an extra safety check
119 |   if (expr.type !== T_ARROW_EXPRESSION) {
120 |     throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");
121 |   }
122 | 
123 |   // --- This is the evaluator that an arrow expression uses internally
124 |   const evaluator: EvaluatorAsyncFunction = evalBindingExpressionTreeAsync;
125 | 
126 |   // --- Compiles the Arrow function to a JavaScript function
127 |   const nativeFunction = await createArrowFunctionAsync(evaluator, expr);
128 | 
129 |   // --- Run the compiled arrow function. Note, we have two prefix arguments:
130 |   // --- #1: The names of arrow function arguments
131 |   // --- #2: The evaluation context the arrow function runs in
132 |   // --- #others: The real arguments of the arrow function
133 |   return await nativeFunction(expr.args, evalContext, thread ?? evalContext.mainThread, ...args);
134 | }
135 | 
136 | /**
137 |  * Evaluates the specified binding expression tree and retrieves the evaluated value
138 |  * @param expr Binding tree expression
139 |  * @param thisStack Stack of "this" object to use with function calls
140 |  * @param evalContext Evaluation context
141 |  * @param thread The logical thread to use for evaluation
142 |  * @param onStatementCompleted Execute this function when a statement is completed
143 |  * This code uses the JavaScript semantics and errors when evaluating the code.
144 |  * We use `thisStack` to keep track of the partial results of the evaluation tree so that we can set
145 |  * the real `this` context when invoking a function.
146 |  */
147 | async function evalBindingExpressionTreeAsync(
148 |   thisStack: any[],
149 |   expr: Expression,
150 |   evalContext: BindingTreeEvaluationContext,
151 |   thread: LogicalThread,
152 | ): Promise<any> {
153 |   if (!evalContext.options) {
154 |     evalContext.options = { defaultToOptionalMemberAccess: true };
155 |   }
156 | 
157 |   // --- Prepare evaluation
158 |   const evaluator: EvaluatorAsyncFunction = evalBindingExpressionTreeAsync;
159 | 
160 |   // --- Process the expression according to its type
161 | 
162 |   try {
163 |     switch (expr.type) {
164 |       case T_TEMPLATE_LITERAL_EXPRESSION:
165 |         return evalTemplateLiteralAsync(evaluator, thisStack, expr, evalContext, thread);
166 | 
167 |       case T_LITERAL:
168 |         return evalLiteral(thisStack, expr, thread);
169 | 
170 |       case T_IDENTIFIER:
171 |         return evalIdentifier(thisStack, expr, evalContext, thread);
172 | 
173 |       case T_MEMBER_ACCESS_EXPRESSION:
174 |         return await evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread);
175 | 
176 |       case T_CALCULATED_MEMBER_ACCESS_EXPRESSION:
177 |         return await evalCalculatedMemberAccessAsync(
178 |           evaluator,
179 |           thisStack,
180 |           expr,
181 |           evalContext,
182 |           thread,
183 |         );
184 | 
185 |       case T_SEQUENCE_EXPRESSION:
186 |         return await evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread);
187 | 
188 |       case T_ARRAY_LITERAL:
189 |         return await evalArrayLiteralAsync(evaluator, thisStack, expr, evalContext, thread);
190 | 
191 |       case T_OBJECT_LITERAL:
192 |         return await evalObjectLiteralAsync(evaluator, thisStack, expr, evalContext, thread);
193 | 
194 |       case T_UNARY_EXPRESSION:
195 |         return await evalUnaryAsync(evaluator, thisStack, expr, evalContext, thread);
196 | 
197 |       case T_BINARY_EXPRESSION:
198 |         return await evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread);
199 | 
200 |       case T_CONDITIONAL_EXPRESSION:
201 |         return await evalConditionalAsync(evaluator, thisStack, expr, evalContext, thread);
202 | 
203 |       case T_ASSIGNMENT_EXPRESSION:
204 |         return await evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thread);
205 | 
206 |       case T_PREFIX_OP_EXPRESSION:
207 |       case T_POSTFIX_OP_EXPRESSION:
208 |         return await evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, thread);
209 | 
210 |       case T_FUNCTION_INVOCATION_EXPRESSION:
211 |         // --- Special async handling
212 |         return await evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, thread);
213 | 
214 |       case T_ARROW_EXPRESSION:
215 |         return evalArrow(thisStack, expr, thread);
216 | 
217 |       case T_SPREAD_EXPRESSION:
218 |         throw new Error("Cannot use spread expression (...) with the current intermediate value.");
219 | 
220 |       default:
221 |         throw new Error(`Unknown expression tree node: ${(expr as any).type}`);
222 |     }
223 |   } catch (e) {
224 |     //TODO decorate error with expression details (startColumn, startLine, startPosition, etc.)
225 |     throw e;
226 |   }
227 | }
228 | 
229 | async function evalMemberAccessAsync(
230 |   evaluator: EvaluatorAsyncFunction,
231 |   thisStack: any[],
232 |   expr: MemberAccessExpression,
233 |   evalContext: BindingTreeEvaluationContext,
234 |   thread: LogicalThread,
235 | ): Promise<any> {
236 |   await evaluator(thisStack, expr.obj, evalContext, thread);
237 |   await completeExprValue(expr.obj, thread);
238 |   // --- At this point we definitely keep the parent object on `thisStack`, as it will be the context object
239 |   // --- of a FunctionInvocationExpression, if that follows the MemberAccess. Other operations would call
240 |   // --- `thisStack.pop()` to remove the result from the previous `evalBindingExpressionTree` call.
241 |   return evalMemberAccessCore(thisStack, expr, evalContext, thread);
242 | }
243 | 
244 | async function evalCalculatedMemberAccessAsync(
245 |   evaluator: EvaluatorAsyncFunction,
246 |   thisStack: any[],
247 |   expr: CalculatedMemberAccessExpression,
248 |   evalContext: BindingTreeEvaluationContext,
249 |   thread: LogicalThread,
250 | ): Promise<any> {
251 |   await evaluator(thisStack, expr.obj, evalContext, thread);
252 |   await completeExprValue(expr.obj, thread);
253 |   await evaluator(thisStack, expr.member, evalContext, thread);
254 |   thisStack.pop();
255 |   await completeExprValue(expr.member, thread);
256 |   return evalCalculatedMemberAccessCore(thisStack, expr, evalContext, thread);
257 | }
258 | 
259 | function evalSequenceAsync(
260 |   evaluator: EvaluatorAsyncFunction,
261 |   thisStack: any[],
262 |   expr: SequenceExpression,
263 |   evalContext: BindingTreeEvaluationContext,
264 |   thread: LogicalThread,
265 | ): Promise<any> {
266 |   if (!expr.exprs || expr.exprs.length === 0) {
267 |     throw new Error(`Missing expression sequence`);
268 |   }
269 |   const result = expr.exprs.map(async (e) => {
270 |     const value = await evaluator(thisStack, e, evalContext, thread);
271 |     setExprValue(e, { value }, thread);
272 |     thisStack.pop();
273 |     return value;
274 |   });
275 |   const lastObj = result[result.length - 1];
276 |   thisStack.push(lastObj);
277 |   return lastObj;
278 | }
279 | 
280 | async function evalArrayLiteralAsync(
281 |   evaluator: EvaluatorAsyncFunction,
282 |   thisStack: any[],
283 |   expr: ArrayLiteral,
284 |   evalContext: BindingTreeEvaluationContext,
285 |   thread: LogicalThread,
286 | ): Promise<any> {
287 |   const value: any[] = [];
288 |   for (const item of expr.items) {
289 |     if (item.type === T_SPREAD_EXPRESSION) {
290 |       const spreadArray = await evaluator(thisStack, item.expr, evalContext, thread);
291 |       thisStack.pop();
292 |       if (!Array.isArray(spreadArray)) {
293 |         throw new Error("Spread operator within an array literal expects an array operand.");
294 |       }
295 |       value.push(...spreadArray);
296 |     } else {
297 |       value.push(await evaluator(thisStack, item, evalContext, thread));
298 |       thisStack.pop();
299 |       thisStack.push(value);
300 |     }
301 |   }
302 | 
303 |   // --- Done.
304 |   setExprValue(expr, { value }, thread);
305 |   thisStack.push(value);
306 |   return value;
307 | }
308 | 
309 | async function evalObjectLiteralAsync(
310 |   evaluator: EvaluatorAsyncFunction,
311 |   thisStack: any[],
312 |   expr: ObjectLiteral,
313 |   evalContext: BindingTreeEvaluationContext,
314 |   thread: LogicalThread,
315 | ): Promise<any> {
316 |   const objectHash: any = {};
317 |   for (const prop of expr.props) {
318 |     if (!Array.isArray(prop)) {
319 |       // --- We're using a spread expression
320 |       const spreadItems = await evaluator(thisStack, prop.expr, evalContext, thread);
321 |       thisStack.pop();
322 |       if (Array.isArray(spreadItems)) {
323 |         // --- Spread of an array
324 |         for (let i = 0; i < spreadItems.length; i++) {
325 |           objectHash[i] = spreadItems[i];
326 |         }
327 |       } else if (typeof spreadItems === "object") {
328 |         // --- Spread of a hash object
329 |         for (const [key, value] of Object.entries(spreadItems)) {
330 |           objectHash[key] = value;
331 |         }
332 |       }
333 |       continue;
334 |     }
335 | 
336 |     // --- We're using key/[value] pairs
337 |     let key: any;
338 |     switch (prop[0].type) {
339 |       case T_LITERAL:
340 |         key = prop[0].value;
341 |         break;
342 |       case T_IDENTIFIER:
343 |         key = prop[0].name;
344 |         break;
345 |       default:
346 |         key = await evaluator(thisStack, prop[0], evalContext, thread);
347 |         thisStack.pop();
348 |         break;
349 |     }
350 |     objectHash[key] = await evaluator(thisStack, prop[1], evalContext, thread);
351 |     thisStack.pop();
352 |   }
353 | 
354 |   // --- Done.
355 |   setExprValue(expr, { value: objectHash }, thread);
356 |   thisStack.push(objectHash);
357 |   return objectHash;
358 | }
359 | 
360 | async function evalUnaryAsync(
361 |   evaluator: EvaluatorAsyncFunction,
362 |   thisStack: any[],
363 |   expr: UnaryExpression,
364 |   evalContext: BindingTreeEvaluationContext,
365 |   thread: LogicalThread,
366 | ): Promise<any> {
367 |   await evaluator(thisStack, expr.expr, evalContext, thread);
368 |   thisStack.pop();
369 |   await completeExprValue(expr.expr, thread);
370 |   return evalUnaryCore(expr, thisStack, evalContext, thread);
371 | }
372 | 
373 | async function evalBinaryAsync(
374 |   evaluator: EvaluatorAsyncFunction,
375 |   thisStack: any[],
376 |   expr: BinaryExpression,
377 |   evalContext: BindingTreeEvaluationContext,
378 |   thread: LogicalThread,
379 | ): Promise<any> {
380 |   await evaluator(thisStack, expr.left, evalContext, thread);
381 |   thisStack.pop();
382 |   const l = await completeExprValue(expr.left, thread);
383 |   if (expr.op === "&&" && !l) {
384 |     setExprValue(expr, { value: l }, thread);
385 |     return l;
386 |   }
387 |   if (expr.op === "||" && l) {
388 |     setExprValue(expr, { value: l }, thread);
389 |     return l;
390 |   }
391 |   await evaluator(thisStack, expr.right, evalContext, thread);
392 |   thisStack.pop();
393 |   await completeExprValue(expr.right, thread);
394 |   return evalBinaryCore(expr, thisStack, evalContext, thread);
395 | }
396 | 
397 | async function evalConditionalAsync(
398 |   evaluator: EvaluatorAsyncFunction,
399 |   thisStack: any[],
400 |   expr: ConditionalExpression,
401 |   evalContext: BindingTreeEvaluationContext,
402 |   thread: LogicalThread,
403 | ): Promise<any> {
404 |   await evaluator(thisStack, expr.cond, evalContext, thread);
405 |   thisStack.pop();
406 |   const condition = await completeExprValue(expr.cond, thread);
407 |   const value = await evaluator(
408 |     thisStack,
409 |     condition ? expr.thenE : expr.elseE,
410 |     evalContext,
411 |     thread,
412 |   );
413 |   setExprValue(expr, { value }, thread);
414 |   return value;
415 | }
416 | 
417 | async function evalAssignmentAsync(
418 |   evaluator: EvaluatorAsyncFunction,
419 |   thisStack: any[],
420 |   expr: AssignmentExpression,
421 |   evalContext: BindingTreeEvaluationContext,
422 |   thread: LogicalThread,
423 | ): Promise<any> {
424 |   const leftValue = expr.leftValue;
425 |   const rootScope = getRootIdScope(leftValue, evalContext, thread);
426 |   const updatesState = rootScope && rootScope.type !== "block";
427 |   if (updatesState && evalContext.onWillUpdate) {
428 |     void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
429 |   }
430 |   await evaluator(thisStack, leftValue, evalContext, thread);
431 |   thisStack.pop();
432 |   await completeExprValue(leftValue, thread);
433 |   await evaluator(thisStack, expr.expr, evalContext, thread);
434 |   thisStack.pop();
435 |   await completeExprValue(expr.expr, thread);
436 |   const value = evalAssignmentCore(thisStack, expr, evalContext, thread);
437 |   if (updatesState && evalContext.onDidUpdate) {
438 |     void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
439 |   }
440 |   return value;
441 | }
442 | 
443 | async function evalPreOrPostAsync(
444 |   evaluator: EvaluatorAsyncFunction,
445 |   thisStack: any[],
446 |   expr: PrefixOpExpression | PostfixOpExpression,
447 |   evalContext: BindingTreeEvaluationContext,
448 |   thread: LogicalThread,
449 | ): Promise<any> {
450 |   const rootScope = getRootIdScope(expr.expr, evalContext, thread);
451 |   const updatesState = rootScope && rootScope.type !== "block";
452 |   if (updatesState && evalContext.onWillUpdate) {
453 |     void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
454 |   }
455 |   await evaluator(thisStack, expr.expr, evalContext, thread);
456 |   thisStack.pop();
457 |   await completeExprValue(expr.expr, thread);
458 |   const value = evalPreOrPostCore(thisStack, expr, evalContext, thread);
459 |   if (updatesState && evalContext.onDidUpdate) {
460 |     void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
461 |   }
462 |   return value;
463 | }
464 | 
465 | async function evalFunctionInvocationAsync(
466 |   evaluator: EvaluatorAsyncFunction,
467 |   thisStack: any[],
468 |   expr: FunctionInvocationExpression,
469 |   evalContext: BindingTreeEvaluationContext,
470 |   thread: LogicalThread,
471 | ): Promise<any> {
472 |   let functionObj: any;
473 |   let implicitContextObject: any = null;
474 | 
475 |   // --- Check for contexted object
476 |   if (expr.obj.type === T_MEMBER_ACCESS_EXPRESSION) {
477 |     const hostObject = await evaluator(thisStack, expr.obj.obj, evalContext, thread);
478 |     await completeExprValue(expr.obj.obj, thread);
479 |     functionObj = evalMemberAccessCore(thisStack, expr.obj, evalContext, thread);
480 |     if (expr.obj.obj.type === T_IDENTIFIER && hostObject?._SUPPORT_IMPLICIT_CONTEXT) {
481 |       implicitContextObject = hostObject;
482 |     }
483 |   } else {
484 |     // --- Get the object on which to invoke the function
485 |     await evaluator(thisStack, expr.obj, evalContext, thread);
486 |     functionObj = await completeExprValue(expr.obj, thread);
487 |   }
488 |   thisStack.pop();
489 | 
490 |   // --- Keep function arguments here, we pass it to the function later
491 |   const functionArgs: any[] = [];
492 | 
493 |   // --- The functionObj may be an ArrowExpression. In this care we need to create the invokable arrow function
494 |   if (functionObj?._ARROW_EXPR_) {
495 |     functionArgs.push(
496 |       functionObj.args,
497 |       evalContext,
498 |       thread,
499 |       ...expr.arguments.map((a) => ({ ...a, _EXPRESSION_: true })),
500 |     );
501 |     functionObj = await createArrowFunctionAsync(evaluator, functionObj as ArrowExpression);
502 |   } else if (expr.obj.type === T_ARROW_EXPRESSION) {
503 |     // --- We delay evaluating expression values. We pass the argument names as the first parameter, and then
504 |     // --- all parameter expressions
505 |     functionArgs.push(
506 |       expr.obj.args.map((a) => (a as Identifier).name),
507 |       evalContext,
508 |       thread,
509 |       ...expr.arguments.map((a) => ({ ...a, _EXPRESSION_: true })),
510 |     );
511 |   } else {
512 |     // --- We evaluate the argument values to pass to a JavaScript function
513 |     for (let i = 0; i < expr.arguments.length; i++) {
514 |       const arg = expr.arguments[i];
515 |       if (arg.type === T_SPREAD_EXPRESSION) {
516 |         await evaluator([], arg.expr, evalContext, thread);
517 |         const funcArg = await completeExprValue(arg.expr, thread);
518 |         if (!Array.isArray(funcArg)) {
519 |           throw new Error("Spread operator within a function invocation expects an array operand.");
520 |         }
521 |         functionArgs.push(...funcArg);
522 |       } else {
523 |         if (arg.type === T_ARROW_EXPRESSION) {
524 |           const funcArg = createArrowFunctionAsync(evaluator, arg);
525 |           const wrappedFunc = (...args: any[]) => {
526 |             return funcArg(arg.args, evalContext, thread, ...args);
527 |           };
528 |           functionArgs.push(wrappedFunc);
529 |         } else {
530 |           await evaluator([], arg, evalContext, thread);
531 |           const funcArg = await completeExprValue(arg, thread);
532 |           if (funcArg?._ARROW_EXPR_) {
533 |             const wrappedFuncArg = createArrowFunctionAsync(evaluator, funcArg);
534 |             const wrappedFunc = (...args: any[]) =>
535 |               wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
536 |             functionArgs.push(wrappedFunc);
537 |           } else {
538 |             functionArgs.push(funcArg);
539 |           }
540 |         }
541 |       }
542 |     }
543 | 
544 |     // --- We can pass implicit arguments to JavaScript function
545 |     if (implicitContextObject) {
546 |       // --- Let's obtain the implicit context
547 |       if (evalContext.implicitContextGetter) {
548 |         const implicitContext = evalContext.implicitContextGetter(implicitContextObject);
549 |         functionArgs.unshift(implicitContext);
550 |       } else {
551 |         throw new Error("Cannot use implicitContextGetter, it is undefined");
552 |       }
553 |     }
554 |   }
555 | 
556 |   // --- Check if the function is banned from running
557 |   const bannedInfo = isBannedFunction(functionObj);
558 |   if (bannedInfo.banned) {
559 |     throw new Error(
560 |       `Function ${bannedInfo.func?.name ?? "unknown"} is not allowed to call. ${bannedInfo?.help ?? ""}`,
561 |     );
562 |   }
563 | 
564 |   // --- We use context for "this"
565 |   const currentContext = thisStack.length > 0 ? thisStack.pop() : evalContext.localContext;
566 | 
567 |   // --- We need to use proxies for JavaScript functions (such as Array.prototype.filter) not supporting
568 |   // --- async arguments
569 |   functionObj = getAsyncProxy(functionObj, functionArgs, currentContext);
570 | 
571 |   // --- Now, invoke the function
572 |   const rootScope = getRootIdScope(expr.obj, evalContext, thread);
573 |   const updatesState = rootScope && rootScope.type !== "block";
574 |   if (updatesState && evalContext.onWillUpdate) {
575 |     void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
576 |   }
577 |   const value = evalContext.options?.defaultToOptionalMemberAccess
578 |     ? (functionObj as Function)?.call(currentContext, ...functionArgs)
579 |     : (functionObj as Function).call(currentContext, ...functionArgs);
580 | 
581 |   let returnValue = await completePromise(value);
582 |   if (updatesState && evalContext.onDidUpdate) {
583 |     void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
584 |   }
585 | 
586 |   // --- Done.
587 |   setExprValue(expr, { value: returnValue }, thread);
588 |   thisStack.push(returnValue);
589 |   return returnValue;
590 | }
591 | 
592 | function createArrowFunctionAsync(
593 |   evaluator: EvaluatorAsyncFunction,
594 |   expr: ArrowExpression,
595 | ): Function {
596 |   // --- Use this function, it evaluates the arrow function
597 |   return async (...args: any[]) => {
598 |     // --- Prepare the variables to pass
599 |     const runTimeEvalContext = args[1] as BindingTreeEvaluationContext;
600 |     const runtimeThread = args[2] as LogicalThread;
601 | 
602 |     // --- Create the thread that runs the arrow function
603 |     const workingThread: LogicalThread = {
604 |       parent: runtimeThread,
605 |       childThreads: [],
606 |       blocks: [{ vars: {} }],
607 |       loops: [],
608 |       breakLabelValue: -1,
609 |       closures: (expr as any).closureContext,
610 |     };
611 |     runtimeThread.childThreads.push(workingThread);
612 | 
613 |     // --- Create a block for a named arrow function
614 |     if (expr.name) {
615 |       const functionBlock: BlockScope = { vars: {} };
616 |       workingThread.blocks ??= [];
617 |       workingThread.blocks.push(functionBlock);
618 |       functionBlock.vars[expr.name] = expr;
619 |       functionBlock.constVars = new Set([expr.name]);
620 |     }
621 | 
622 |     // --- Assign argument values to names
623 |     const arrowBlock: BlockScope = { vars: {} };
624 |     workingThread.blocks ??= [];
625 |     workingThread.blocks.push(arrowBlock);
626 |     const argSpecs = args[0] as Expression[];
627 |     let restFound = false;
628 |     for (let i = 0; i < argSpecs.length; i++) {
629 |       // --- Turn argument specification into processable variable declarations
630 |       const argSpec = argSpecs[i];
631 |       let decl: VarDeclaration | undefined;
632 |       switch (argSpec.type) {
633 |         case T_IDENTIFIER: {
634 |           decl = {
635 |             type: T_VAR_DECLARATION,
636 |             id: argSpec.name,
637 |           } as VarDeclaration;
638 |           break;
639 |         }
640 |         case T_DESTRUCTURE: {
641 |           decl = {
642 |             type: T_VAR_DECLARATION,
643 |             id: argSpec.id,
644 |             aDestr: argSpec.aDestr,
645 |             oDestr: argSpec.oDestr,
646 |           } as VarDeclaration;
647 |           break;
648 |         }
649 |         case T_SPREAD_EXPRESSION: {
650 |           restFound = true;
651 |           decl = {
652 |             type: T_VAR_DECLARATION,
653 |             id: (argSpec.expr as unknown as Identifier).name,
654 |           } as VarDeclaration;
655 |           break;
656 |         }
657 | 
658 |         default:
659 |           throw new Error("Unexpected arrow argument specification");
660 |       }
661 | 
662 |       if (decl) {
663 |         if (restFound) {
664 |           // --- Get the rest of the arguments
665 |           const restArgs = args.slice(i + 3);
666 |           let argVals: any[] = [];
667 |           for (const arg of restArgs) {
668 |             if (arg?._EXPRESSION_) {
669 |               argVals.push(await evaluator([], arg, runTimeEvalContext, runtimeThread));
670 |             } else {
671 |               argVals.push(arg);
672 |             }
673 |           }
674 |           await processDeclarationsAsync(
675 |             arrowBlock,
676 |             runTimeEvalContext,
677 |             runtimeThread,
678 |             [decl],
679 |             false,
680 |             true,
681 |             argVals,
682 |           );
683 |         } else {
684 |           // --- Get the actual value to work with
685 |           let argVal = args[i + 3];
686 |           if (argVal?._EXPRESSION_) {
687 |             argVal = await evaluator([], argVal, runTimeEvalContext, runtimeThread);
688 |           }
689 |           await processDeclarationsAsync(
690 |             arrowBlock,
691 |             runTimeEvalContext,
692 |             runtimeThread,
693 |             [decl],
694 |             false,
695 |             true,
696 |             argVal,
697 |           );
698 |         }
699 |       }
700 |     }
701 | 
702 |     // --- Evaluate the arrow expression body
703 |     let returnValue: any;
704 |     let statements: Statement[];
705 | 
706 |     switch (expr.statement.type) {
707 |       case T_EMPTY_STATEMENT:
708 |         statements = [];
709 |         break;
710 |       case T_EXPRESSION_STATEMENT:
711 |         // --- Create a new thread for the call
712 |         statements = [
713 |           {
714 |             type: T_RETURN_STATEMENT,
715 |             expr: expr.statement.expr,
716 |           } as ReturnStatement,
717 |         ];
718 |         break;
719 |       case T_BLOCK_STATEMENT:
720 |         // --- Create a new thread for the call
721 |         statements = expr.statement.stmts;
722 |         break;
723 |       default:
724 |         throw new Error(
725 |           `Arrow expression with a body of '${expr.statement.type}' is not supported yet.`,
726 |         );
727 |     }
728 | 
729 |     // --- Process the statement with a new processor
730 |     await processStatementQueueAsync(statements, runTimeEvalContext, workingThread);
731 | 
732 |     // --- Return value is in a return value slot
733 |     returnValue = workingThread.returnValue;
734 | 
735 |     // --- Remove the current working thread
736 |     const workingIndex = runtimeThread.childThreads.indexOf(workingThread);
737 |     if (workingIndex < 0) {
738 |       throw new Error("Cannot find thread to remove.");
739 |     }
740 |     runtimeThread.childThreads.splice(workingIndex, 1);
741 | 
742 |     // --- Remove the function level block
743 |     workingThread.blocks.pop();
744 | 
745 |     // --- Return the function value
746 |     return returnValue;
747 |   };
748 | }
749 | 
750 | // --- Completes all promises within the input
751 | function completePromise(input: any): Promise<any> {
752 |   const visited = new Map<any, any>();
753 | 
754 |   return completePromiseInternal(input);
755 | 
756 |   async function completePromiseInternal(input: any): Promise<any> {
757 |     // --- No need to resolve undefined or null
758 |     if (input === undefined || input === null) return input;
759 | 
760 |     // --- Already visited?
761 |     const resolved = visited.get(input);
762 |     if (resolved) return resolved;
763 | 
764 |     // --- Resolve the chain of promises
765 |     if (isPromise(input)) {
766 |       const awaited = await input;
767 |       visited.set(input, awaited);
768 |       return completePromiseInternal(awaited);
769 |     }
770 | 
771 |     // --- In any other cases, we keep the input reference
772 |     visited.set(input, input);
773 | 
774 |     // --- Resolve promises within an array
775 |     if (Array.isArray(input)) {
776 |       for (let i = 0; i < input.length; i++) {
777 |         const completedPromise = await completePromiseInternal(input[i]);
778 |         if (input[i] !== completedPromise) {
779 |           //prevent write if it's the same reference (can cause problems in frozen objects)
780 |           input.splice(i, 1, completedPromise);
781 |         }
782 |       }
783 |       return input;
784 |     }
785 | 
786 |     // --- Resolve promises in object properties
787 |     if (isPlainObject(input)) {
788 |       for (const key of Object.keys(input)) {
789 |         let completedPromise = await completePromiseInternal(input[key]);
790 |         if (input[key] !== completedPromise) {
791 |           //prevent write if it's the same reference (can cause problems in frozen objects)
792 |           input[key] = completedPromise;
793 |         }
794 |       }
795 |       return input;
796 |     }
797 | 
798 |     // --- Done.
799 |     return input;
800 |   }
801 | }
802 | 
803 | async function evalTemplateLiteralAsync(
804 |   evaluator: EvaluatorAsyncFunction,
805 |   thisStack: any[],
806 |   expr: TemplateLiteralExpression,
807 |   evalContext: BindingTreeEvaluationContext,
808 |   thread: LogicalThread,
809 | ): Promise<any> {
810 |   const segmentValues = new Array(expr.segments.length);
811 |   for (let i = 0; i < expr.segments.length; ++i) {
812 |     await evaluator(thisStack, expr.segments[i], evalContext, thread);
813 |     thisStack.pop();
814 |     const evaledValue = await completeExprValue(expr.segments[i], thread);
815 |     segmentValues[i] = evaledValue;
816 |   }
817 |   const value = evalTemplateLiteralCore(segmentValues);
818 |   setExprValue(expr, { value }, thread);
819 |   thisStack.push(value);
820 |   return value;
821 | }
822 | 
823 | export async function completeExprValue(expr: Expression, thread: LogicalThread): Promise<any> {
824 |   const exprValue = getExprValue(expr, thread);
825 |   const awaited = await completePromise(exprValue?.value);
826 |   setExprValue(expr, { ...exprValue, value: awaited }, thread);
827 |   return awaited;
828 | }
829 | 
```
Page 107/179FirstPrevNextLast