#
tokens: 45610/50000 2/1633 files (page 114/182)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 114 of 182. Use http://codebase.md/xmlui-org/xmlui/mockApiDef.js?lines=true&page={x} to view the full context.

# Directory Structure

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

# Files

--------------------------------------------------------------------------------
/xmlui/src/components-core/script-runner/process-statement-async.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import type { LoopScope } from "../../abstractions/scripting/LoopScope";
  2 | import type { BlockScope } from "../../abstractions/scripting/BlockScope";
  3 | import type { LogicalThread } from "../../abstractions/scripting/LogicalThread";
  4 | import {
  5 |   T_ARROW_EXPRESSION_STATEMENT,
  6 |   T_ASSIGNMENT_EXPRESSION,
  7 |   T_BLOCK_STATEMENT,
  8 |   T_BREAK_STATEMENT,
  9 |   T_CONST_STATEMENT,
 10 |   T_CONTINUE_STATEMENT,
 11 |   T_DO_WHILE_STATEMENT,
 12 |   T_EMPTY_STATEMENT,
 13 |   T_EXPRESSION_STATEMENT,
 14 |   T_FOR_IN_STATEMENT,
 15 |   T_FOR_OF_STATEMENT,
 16 |   T_FOR_STATEMENT,
 17 |   T_FUNCTION_DECLARATION,
 18 |   T_IDENTIFIER,
 19 |   T_IF_STATEMENT,
 20 |   T_LET_STATEMENT,
 21 |   T_LITERAL,
 22 |   T_RETURN_STATEMENT,
 23 |   T_SWITCH_STATEMENT,
 24 |   T_THROW_STATEMENT,
 25 |   T_TRY_STATEMENT,
 26 |   T_VAR_STATEMENT,
 27 |   T_WHILE_STATEMENT,
 28 |   type ArrayDestructure,
 29 |   type AssignmentExpression,
 30 |   type Identifier,
 31 |   type Literal,
 32 |   type ObjectDestructure,
 33 |   type Statement,
 34 |   type VarDeclaration,
 35 | } from "./ScriptingSourceTree";
 36 | import { StatementExecutionError, ThrowStatementError } from "../EngineError";
 37 | import { reportEngineError } from "../reportEngineError";
 38 | import type {
 39 |   QueueInfo,
 40 |   StatementQueueItem,
 41 |   ProcessOutcome,
 42 |   StatementRunTimeInfo,
 43 |   StatementWithInfo} from "./statement-queue";
 44 | import {
 45 |   StatementQueue,
 46 |   mapStatementsToQueueItems,
 47 |   mapToItem
 48 | } from "./statement-queue";
 49 | import { evalBindingAsync, executeArrowExpression } from "./eval-tree-async";
 50 | import type { BindingTreeEvaluationContext } from "./BindingTreeEvaluationContext";
 51 | import {
 52 |   ensureMainThread,
 53 |   innermostBlockScope,
 54 |   innermostLoopScope,
 55 |   createLoopScope,
 56 |   provideLoopBody,
 57 |   releaseLoopScope,
 58 |   provideTryBody,
 59 |   createTryScope,
 60 |   innermostTryScope,
 61 |   provideFinallyBody,
 62 |   provideCatchBody,
 63 |   provideFinallyErrorBody,
 64 |   hoistFunctionDeclarations,
 65 |   closing,
 66 |   toStatementItems,
 67 |   guard,
 68 | } from "./process-statement-common";
 69 | import { createXmlUiTreeNodeId } from "../../parsers/scripting/Parser";
 70 | 
 71 | // --- Helper function to process the entire queue asynchronously
 72 | export async function processStatementQueueAsync(
 73 |   statements: Statement[],
 74 |   evalContext: BindingTreeEvaluationContext,
 75 |   thread?: LogicalThread,
 76 | ): Promise<QueueInfo> {
 77 |   if (!thread) {
 78 |     // --- Create the main thread for the queue
 79 |     thread = ensureMainThread(evalContext);
 80 |   }
 81 | 
 82 |   // --- Hoist function declarations to the top scope
 83 |   hoistFunctionDeclarations(thread, statements);
 84 | 
 85 |   // --- Fill the queue with items
 86 |   const queue = new StatementQueue();
 87 |   queue.push(mapStatementsToQueueItems(toStatementItems(statements)));
 88 | 
 89 |   // --- Prepare queue diagnostics information
 90 |   const diagInfo: QueueInfo = {
 91 |     processedStatements: 0,
 92 |     maxQueueLength: queue.length,
 93 |     unshiftedItems: 0,
 94 |     clearToLabels: 0,
 95 |     maxBlocks: 0,
 96 |     maxLoops: 0,
 97 |   };
 98 | 
 99 |   // --- Consume the queue
100 |   let startTime = new Date().getTime();
101 |   while (queue.length > 0 && !evalContext.cancellationToken?.cancelled) {
102 |     // --- Allow time to break from infinite loops
103 |     if (evalContext.timeout && new Date().getTime() - startTime > evalContext.timeout) {
104 |       throw new Error("Script execution timeout");
105 |     }
106 | 
107 |     // --- Process the first item
108 |     const queueItem = queue.dequeue();
109 |     thread.breakLabelValue = queue.length > 0 ? queue.peek()!.label : -1;
110 | 
111 |     let outcome: ProcessOutcome | undefined;
112 |     try {
113 |       // --- Sign that the statement is about to start
114 |       await evalContext?.onStatementStarted?.(evalContext, queueItem!.statement);
115 | 
116 |       // --- Execute the statement
117 |       outcome = await processStatementAsync(
118 |         queueItem!.statement,
119 |         queueItem?.execInfo ?? {},
120 |         evalContext,
121 |         thread,
122 |       );
123 |     } catch (err) {
124 |       if (thread.tryBlocks && thread.tryBlocks.length > 0) {
125 |         // --- We have a try block to handle this error
126 |         const tryScope = thread.tryBlocks[thread.tryBlocks.length - 1];
127 | 
128 |         // --- Sign the error to raise. Next time the guarded try block will execute the catch block, if there is any
129 |         tryScope.errorToThrow = err;
130 |         tryScope.errorSource = tryScope.processingPhase;
131 |         tryScope.processingPhase = "error";
132 | 
133 |         // --- Let's skip the remaining parts of the current block (try/catch/finally)
134 |         outcome = {
135 |           clearToLabel: tryScope.tryLabel,
136 |         };
137 |       } else {
138 |         if (err instanceof ThrowStatementError) {
139 |           reportEngineError(err);
140 |         } else {
141 |           // TODO: Provide source code information
142 |           reportEngineError(
143 |             new StatementExecutionError(err as any /* queueItem!.statement?.source */),
144 |             err,
145 |           );
146 |         }
147 |       }
148 |     }
149 | 
150 |     // --- Modify the queue's content according to the outcome
151 |     if (outcome) {
152 |       if (outcome.toUnshift) {
153 |         queue.unshift(outcome.toUnshift);
154 | 
155 |         diagInfo.unshiftedItems += outcome.toUnshift.length;
156 |       }
157 |       if (outcome.clearToLabel !== undefined) {
158 |         queue.clearToLabel(outcome.clearToLabel);
159 | 
160 |         diagInfo.clearToLabels++;
161 |       }
162 |     }
163 | 
164 |     // --- Sign that the statement has been completed
165 |     await evalContext?.onStatementCompleted?.(evalContext, queueItem!.statement);
166 | 
167 |     // --- Provide diagnostics
168 |     if (queue.length > diagInfo.maxQueueLength) {
169 |       diagInfo.maxQueueLength = queue.length;
170 |     }
171 |     if (thread.blocks && thread.blocks!.length > diagInfo.maxBlocks) {
172 |       diagInfo.maxBlocks = thread.blocks!.length;
173 |     }
174 |     if (thread.loops && thread.loops.length > diagInfo.maxLoops) {
175 |       diagInfo.maxLoops = thread.loops.length;
176 |     }
177 |     diagInfo.processedStatements++;
178 |   }
179 | 
180 |   // --- Done.
181 |   return diagInfo;
182 | }
183 | 
184 | /**
185 |  * Process the specified statement asynchronously
186 |  * @param statement Statement to process
187 |  * @param execInfo Execution information
188 |  * @param evalContext Evaluation context used for processing
189 |  * @param thread Logical thread to use for statement processing
190 |  * @param onStatementCompleted
191 |  * @returns Items to put back into the queue of statements
192 |  */
193 | async function processStatementAsync(
194 |   statement: Statement,
195 |   execInfo: StatementRunTimeInfo,
196 |   evalContext: BindingTreeEvaluationContext,
197 |   thread: LogicalThread,
198 | ): Promise<ProcessOutcome> {
199 |   // --- These items should be put in the statement queue after return
200 |   let toUnshift: StatementQueueItem[] = [];
201 |   let clearToLabel: number | undefined;
202 | 
203 |   // --- Process the statement according to its type
204 |   switch (statement.type) {
205 |     case T_FUNCTION_DECLARATION:
206 |       // --- Function declarations are already hoisted, nothing to do
207 |       break;
208 | 
209 |     case T_VAR_STATEMENT:
210 |       if (thread !== evalContext.mainThread) {
211 |         throw new Error("'var' declarations are not allowed within functions");
212 |       }
213 |       break;
214 | 
215 |     case T_EMPTY_STATEMENT:
216 |       // --- Nothing to do
217 |       break;
218 | 
219 |     case T_BLOCK_STATEMENT:
220 |       // --- No statement, nothing to process
221 |       if (statement.stmts.length === 0) break;
222 | 
223 |       // --- Create a new block scope
224 |       thread.blocks ??= [];
225 |       thread.blocks.push({ vars: {} });
226 | 
227 |       // --- Hoist function declarations to the innermost block scope
228 |       hoistFunctionDeclarations(thread, statement.stmts);
229 | 
230 |       // --- Queue the block scope's body...
231 |       toUnshift = mapStatementsToQueueItems([
232 |         ...toStatementItems(statement.stmts),
233 |         // --- ...and an empty statement to remove the block scope
234 |         closing(),
235 |       ]);
236 |       break;
237 | 
238 |     case T_EXPRESSION_STATEMENT:
239 |       // --- Just evaluate it
240 |       const statementValue = await evalBindingAsync(
241 |         statement.expr,
242 |         evalContext,
243 |         thread,
244 |       );
245 |       if (thread.blocks && thread.blocks.length !== 0) {
246 |         thread.blocks[thread.blocks.length - 1].returnValue = statementValue;
247 |       }
248 |       break;
249 | 
250 |     case T_ARROW_EXPRESSION_STATEMENT:
251 |       // --- Compile the arrow expression
252 |       const arrowFuncValue = await executeArrowExpression(
253 |         statement.expr,
254 |         evalContext,
255 |         thread,
256 |         ...(evalContext.eventArgs ?? []),
257 |       );
258 |       if (thread.blocks && thread.blocks.length !== 0) {
259 |         thread.blocks[thread.blocks.length - 1].returnValue = arrowFuncValue;
260 |       }
261 |       break;
262 | 
263 |     case T_LET_STATEMENT: {
264 |       // --- Create a new variable in the innermost scope
265 |       const block = innermostBlockScope(thread);
266 |       if (!block) {
267 |         throw new Error("Missing block scope");
268 |       }
269 |       await processDeclarationsAsync(block, evalContext, thread, statement.decls);
270 |       break;
271 |     }
272 | 
273 |     case T_CONST_STATEMENT: {
274 |       // --- Create a new variable in the innermost scope
275 |       const block = innermostBlockScope(thread);
276 |       if (!block) {
277 |         throw new Error("Missing block scope");
278 |       }
279 |       await processDeclarationsAsync(block, evalContext, thread, statement.decls, true);
280 |       break;
281 |     }
282 | 
283 |     case T_IF_STATEMENT:
284 |       // --- Evaluate the condition
285 |       const condition = !!(await evalBindingAsync(statement.cond, evalContext, thread));
286 |       if (condition) {
287 |         toUnshift = mapToItem(statement.thenB);
288 |       } else if (statement.elseB) {
289 |         toUnshift = mapToItem(statement.elseB);
290 |       }
291 |       break;
292 | 
293 |     case T_RETURN_STATEMENT: {
294 |       // --- Check if return is valid here
295 |       let blockScope = innermostBlockScope(thread);
296 |       if (blockScope === undefined) {
297 |         throw new Error("Return requires a block scope");
298 |       }
299 | 
300 |       // --- Store the return value
301 |       thread.returnValue = statement.expr
302 |         ? await evalBindingAsync(statement.expr, evalContext, thread)
303 |         : undefined;
304 | 
305 |       // --- Check for try blocks
306 |       if ((thread.tryBlocks ?? []).length > 0) {
307 |         // --- Mark the loop's try scope to exit with "return"
308 |         const returnTryScope = thread.tryBlocks![0];
309 |         returnTryScope.exitType = "return";
310 | 
311 |         // --- Remove the try/catch/finally block's scope
312 |         if (returnTryScope.processingPhase !== "postFinally") {
313 |           thread.blocks!.pop();
314 |         }
315 | 
316 |         // --- Clear the last part of the try/catch/finally block
317 |         const tryScope = innermostTryScope(thread);
318 |         clearToLabel = tryScope.tryLabel;
319 |       } else {
320 |         // --- Delete the remaining part of the queue
321 |         clearToLabel = -1;
322 |       }
323 |       break;
324 |     }
325 | 
326 |     case T_WHILE_STATEMENT: {
327 |       // --- Create or get the loop's scope (guard is falsy for the first execution)
328 |       let loopScope = execInfo.guard ? innermostLoopScope(thread) : createLoopScope(thread);
329 | 
330 |       // --- Evaluate the loop condition
331 |       const condition = !!(await evalBindingAsync(statement.cond, evalContext, thread));
332 |       if (condition) {
333 |         toUnshift = provideLoopBody(loopScope!, statement, thread.breakLabelValue);
334 |       } else {
335 |         // --- When the condition is not met, we're done.
336 |         releaseLoopScope(thread);
337 |       }
338 |       break;
339 |     }
340 | 
341 |     case T_DO_WHILE_STATEMENT: {
342 |       if (!execInfo.guard) {
343 |         // --- First loop execution (do-while is a post-test loop)
344 |         toUnshift = provideLoopBody(createLoopScope(thread), statement, thread.breakLabelValue);
345 |         break;
346 |       }
347 | 
348 |       // --- Evaluate the loop condition
349 |       const condition = !!(await evalBindingAsync(statement.cond, evalContext, thread));
350 |       if (condition) {
351 |         toUnshift = provideLoopBody(innermostLoopScope(thread), statement, thread.breakLabelValue);
352 |       } else {
353 |         // --- When the condition is not met, we're done.
354 |         releaseLoopScope(thread);
355 |       }
356 |       break;
357 |     }
358 | 
359 |     case T_CONTINUE_STATEMENT: {
360 |       // --- Search for the innermost non-switch loop scope, release the switch scopes
361 |       if (!thread.loops || thread.loops.length === 0) {
362 |         throw new Error("Missing loop scope");
363 |       }
364 | 
365 |       let loopScope: LoopScope | undefined;
366 |       while (thread.loops.length > 0) {
367 |         loopScope = innermostLoopScope(thread);
368 |         if (!loopScope.isSwitch) {
369 |           break;
370 |         }
371 |         thread.loops.pop();
372 |       }
373 | 
374 |       if (!loopScope) {
375 |         throw new Error("Missing loop scope");
376 |       }
377 | 
378 |       if (
379 |         loopScope.tryBlockDepth >= 0 &&
380 |         loopScope.tryBlockDepth < (thread.tryBlocks ?? []).length
381 |       ) {
382 |         // --- Mark the loop's try scope to exit with "continue"
383 |         for (let i = loopScope.tryBlockDepth; i < thread.tryBlocks!.length; i++) {
384 |           thread.tryBlocks![loopScope.tryBlockDepth]!.exitType = "continue";
385 |         }
386 | 
387 |         // --- Clear the last part of the try/catch/finally block
388 |         const tryScope = innermostTryScope(thread);
389 |         clearToLabel = tryScope.tryLabel;
390 |       } else {
391 |         clearToLabel = loopScope.continueLabel;
392 |         releaseLoopScope(thread, false);
393 |       }
394 |       break;
395 |     }
396 | 
397 |     case T_BREAK_STATEMENT: {
398 |       const loopScope = innermostLoopScope(thread);
399 |       if (loopScope === undefined) {
400 |         throw new Error("Missing loop scope");
401 |       }
402 | 
403 |       if (!!loopScope.isSwitch) {
404 |         // --- Break is in a switch case
405 |         clearToLabel = loopScope.breakLabel;
406 |         break;
407 |       }
408 | 
409 |       // --- Break is in a loop construct
410 |       if (
411 |         loopScope.tryBlockDepth >= 0 &&
412 |         loopScope.tryBlockDepth < (thread.tryBlocks ?? []).length
413 |       ) {
414 |         // --- Mark the loop's try scope to exit with "break"
415 |         for (let i = loopScope.tryBlockDepth; i < thread.tryBlocks!.length; i++) {
416 |           thread.tryBlocks![loopScope.tryBlockDepth]!.exitType = "break";
417 |         }
418 | 
419 |         // --- Clear the last part of the try/catch/finally block
420 |         const tryScope = innermostTryScope(thread);
421 |         clearToLabel = tryScope.tryLabel;
422 |       } else {
423 |         clearToLabel = loopScope.breakLabel;
424 |         releaseLoopScope(thread);
425 |       }
426 |       break;
427 |     }
428 | 
429 |     case T_FOR_STATEMENT:
430 |       if (!execInfo.guard) {
431 |         // --- Init the loop with a new scope
432 |         createLoopScope(thread, 1);
433 | 
434 |         // --- Create a new block for the loop variables
435 |         thread.blocks ??= [];
436 |         thread.blocks.push({
437 |           vars: {},
438 |         });
439 | 
440 |         const guardStatement = guard(statement);
441 |         if (statement.init) {
442 |           // --- Unshift the initialization part and the guarded for-loop
443 |           toUnshift = mapStatementsToQueueItems([{ statement: statement.init }, guardStatement]);
444 |         } else {
445 |           // --- No init, unshift only the guard statement
446 |           toUnshift = mapStatementsToQueueItems([guardStatement]);
447 |         }
448 |       } else {
449 |         // --- Initialization already done. Evaluate the condition
450 |         if (!statement.cond || !!(await evalBindingAsync(statement.cond, evalContext, thread))) {
451 |           // --- Stay in the loop, inject the body, the update expression, and the loop guard
452 |           const loopScope = innermostLoopScope(thread);
453 | 
454 |           if (statement.upd) {
455 |             const updateStmt: StatementWithInfo = {
456 |               statement: {
457 |                 type: T_EXPRESSION_STATEMENT,
458 |                 nodeId: createXmlUiTreeNodeId(),
459 |                 expr: statement.upd,
460 |               },
461 |             };
462 |             toUnshift = mapStatementsToQueueItems([
463 |               { statement: statement.body },
464 |               updateStmt,
465 |               { statement, execInfo },
466 |             ]);
467 |           } else {
468 |             toUnshift = mapStatementsToQueueItems([
469 |               { statement: statement.body },
470 |               { statement, execInfo },
471 |             ]);
472 |           }
473 |           // --- The next queue label is for "break"
474 |           loopScope.breakLabel = thread.breakLabelValue ?? -1;
475 | 
476 |           // --- The guard action's label is for "continue"
477 |           loopScope.continueLabel = toUnshift[1].label;
478 |         } else {
479 |           // --- The condition is not met, we're done. Remove the loop's scope from the evaluation context
480 |           releaseLoopScope(thread);
481 |         }
482 |       }
483 |       break;
484 | 
485 |     case T_FOR_IN_STATEMENT:
486 |       if (!execInfo.guard) {
487 |         // --- Get the object keys
488 |         const keyedObject = await evalBindingAsync(statement.expr, evalContext, thread);
489 |         if (keyedObject == undefined) {
490 |           // --- Nothing to do, no object to traverse
491 |           break;
492 |         }
493 | 
494 |         // --- Init the loop with a new scope
495 |         createLoopScope(thread, 1);
496 | 
497 |         // --- Create a new block for the loop variables
498 |         thread.blocks ??= [];
499 |         thread.blocks.push({ vars: {} });
500 | 
501 |         toUnshift = mapStatementsToQueueItems([
502 |           { statement, execInfo: { guard: true, keys: Object.keys(keyedObject), keyIndex: 0 } },
503 |         ]);
504 |       } else {
505 |         // --- Just for the sake of extra safety
506 |         if (execInfo.keyIndex === undefined || execInfo.keys === undefined) {
507 |           throw new Error("Keys information expected in for..in loop");
508 |         }
509 | 
510 |         // --- Any key left?
511 |         if (execInfo.keyIndex < execInfo.keys.length) {
512 |           // --- Set the binding variable to the next key
513 |           const propValue = execInfo.keys[execInfo.keyIndex++];
514 |           switch (statement.varB) {
515 |             case "none": {
516 |               const assigmentExpr: AssignmentExpression = {
517 |                 type: T_ASSIGNMENT_EXPRESSION,
518 |                 leftValue: {
519 |                   type: T_IDENTIFIER,
520 |                   name: statement.id.name,
521 |                 } as Identifier,
522 |                 op: "=",
523 |                 expr: {
524 |                   type: T_LITERAL,
525 |                   value: propValue,
526 |                 } as Literal,
527 |               } as AssignmentExpression;
528 |               await evalBindingAsync(assigmentExpr, evalContext, thread);
529 |               break;
530 |             }
531 | 
532 |             case "const":
533 |             case "let":
534 |               {
535 |                 // --- Create a new variable in the innermost scope
536 |                 const block = innermostBlockScope(thread);
537 |                 if (!block) {
538 |                   throw new Error("Missing block scope");
539 |                 }
540 |                 block.vars[statement.id.name] = propValue;
541 |                 if (statement.varB === "const") {
542 |                   block.constVars ??= new Set<string>();
543 |                   block.constVars.add(statement.id.name);
544 |                 }
545 |               }
546 |               break;
547 |           }
548 | 
549 |           // --- Inject the loop body
550 |           const loopScope = innermostLoopScope(thread);
551 |           toUnshift = mapStatementsToQueueItems([
552 |             { statement: statement.body },
553 |             { statement, execInfo },
554 |           ]);
555 | 
556 |           // --- The next queue label is for "break"
557 |           loopScope.breakLabel = thread.breakLabelValue ?? -1;
558 | 
559 |           // --- The guard action's label is for "continue"
560 |           loopScope.continueLabel = toUnshift[1].label;
561 |         } else {
562 |           // --- The condition is not met, we're done. Remove the loop's scope from the evaluation context
563 |           releaseLoopScope(thread);
564 |         }
565 |       }
566 |       break;
567 | 
568 |     case T_FOR_OF_STATEMENT:
569 |       if (!execInfo.guard) {
570 |         // --- Get the object keys
571 |         const iteratorObject = await evalBindingAsync(statement.expr, evalContext, thread);
572 |         if (iteratorObject == null || typeof iteratorObject[Symbol.iterator] !== "function") {
573 |           // --- The object is not an iterator
574 |           throw new Error("Object in for..of is not iterable");
575 |         }
576 | 
577 |         // --- Init the loop with a new scope
578 |         createLoopScope(thread, 1);
579 | 
580 |         // --- Create a new block for the loop variables
581 |         thread.blocks ??= [];
582 |         thread.blocks.push({ vars: {} });
583 | 
584 |         toUnshift = mapStatementsToQueueItems([
585 |           { statement, execInfo: { guard: true, iterator: iteratorObject[Symbol.iterator]() } },
586 |         ]);
587 |       } else {
588 |         // --- Just for the sake of extra safety
589 |         if (execInfo.iterator === undefined) {
590 |           throw new Error("Iterator expected in for..of loop");
591 |         }
592 | 
593 |         // --- Any iteration left?
594 |         const nextIteration = execInfo.iterator.next();
595 |         if (nextIteration.done) {
596 |           // --- The for..of loop is complete. Remove the loop's scope from the evaluation context
597 |           releaseLoopScope(thread);
598 |           break;
599 |         }
600 | 
601 |         // --- Set the binding variable to the next key
602 |         const propValue = nextIteration.value;
603 |         switch (statement.varB) {
604 |           case "none": {
605 |             const assigmentExpr: AssignmentExpression = {
606 |               type: T_ASSIGNMENT_EXPRESSION,
607 |               leftValue: {
608 |                 type: T_IDENTIFIER,
609 |                 name: statement.id.name,
610 |               } as Identifier,
611 |               op: "=",
612 |               expr: {
613 |                 type: T_LITERAL,
614 |                 value: propValue,
615 |               } as Literal,
616 |             } as AssignmentExpression;
617 |             await evalBindingAsync(assigmentExpr, evalContext, thread);
618 |             break;
619 |           }
620 | 
621 |           case "const":
622 |           case "let":
623 |             {
624 |               // --- Create a new variable in the innermost scope
625 |               const block = innermostBlockScope(thread);
626 |               if (!block) {
627 |                 throw new Error("Missing block scope");
628 |               }
629 |               block.vars[statement.id.name] = propValue;
630 |               if (statement.varB === "const") {
631 |                 block.constVars ??= new Set<string>();
632 |                 block.constVars.add(statement.id.name);
633 |               }
634 |             }
635 |             break;
636 |         }
637 | 
638 |         // --- Inject the loop body
639 |         const loopScope = innermostLoopScope(thread);
640 |         toUnshift = mapStatementsToQueueItems([
641 |           { statement: statement.body },
642 |           { statement, execInfo },
643 |         ]);
644 | 
645 |         // --- The next queue label is for "break"
646 |         loopScope.breakLabel = thread.breakLabelValue ?? -1;
647 | 
648 |         // --- The guard action's label is for "continue"
649 |         loopScope.continueLabel = toUnshift[1].label;
650 |       }
651 |       break;
652 | 
653 |     case T_THROW_STATEMENT: {
654 |       throw new ThrowStatementError(await evalBindingAsync(statement.expr, evalContext, thread));
655 |     }
656 | 
657 |     case T_TRY_STATEMENT: {
658 |       if (!execInfo.guard) {
659 |         // --- Execute the try block
660 |         toUnshift = provideTryBody(thread, createTryScope(thread, statement));
661 |         break;
662 |       }
663 | 
664 |       // --- Evaluate try
665 |       const tryScope = innermostTryScope(thread);
666 |       switch (tryScope.processingPhase) {
667 |         case "error":
668 |           // --- There was an error we may handle with catch
669 |           switch (tryScope.errorSource) {
670 |             case "try":
671 |               // --- Remove the "try" block's scope
672 |               thread.blocks!.pop();
673 | 
674 |               // --- Go on with catch or finally
675 |               if (statement.catchB) {
676 |                 if (tryScope.statement.catchV) {
677 |                   const block = innermostBlockScope(thread)!;
678 |                   block.vars[tryScope.statement.catchV.name] =
679 |                     tryScope.errorToThrow instanceof ThrowStatementError
680 |                       ? tryScope.errorToThrow.errorObject
681 |                       : tryScope.errorToThrow;
682 |                 }
683 |                 delete tryScope.errorToThrow;
684 |                 tryScope.processingPhase = "catch";
685 |                 toUnshift = provideCatchBody(thread, tryScope);
686 |               } else if (tryScope.statement.finallyB) {
687 |                 // --- No catch, move on finally
688 |                 tryScope.processingPhase = "finally";
689 |                 toUnshift = provideFinallyBody(thread, tryScope);
690 |               }
691 |               break;
692 |             case "catch":
693 |               // --- Remove the "catch" block's scope
694 |               thread.blocks!.pop();
695 | 
696 |               // --- Move to the finally block
697 |               tryScope.processingPhase = "finally";
698 |               toUnshift = provideFinallyBody(thread, tryScope);
699 |               break;
700 |             case "finally":
701 |               // --- Remove the "finally" block's scope
702 |               thread.blocks!.pop();
703 | 
704 |               // --- Move to the post finally execution
705 |               tryScope.processingPhase = "postFinally";
706 |               toUnshift = provideFinallyErrorBody(tryScope);
707 |               break;
708 |           }
709 |           break;
710 |         case "try":
711 |           // --- We completed the try block successfully
712 |           tryScope.processingPhase = "finally";
713 |           if (statement.finallyB) {
714 |             toUnshift = provideFinallyBody(thread, tryScope);
715 |           }
716 |           break;
717 |         case "catch":
718 |           // --- We completed the catch block successfully, remove the handled error
719 |           tryScope.processingPhase = "finally";
720 |           if (statement.finallyB) {
721 |             toUnshift = provideFinallyBody(thread, tryScope);
722 |           }
723 |           break;
724 |         case "finally":
725 |           tryScope.processingPhase = "postFinally";
726 |           toUnshift = provideFinallyErrorBody(tryScope);
727 |           break;
728 | 
729 |         case "postFinally":
730 |           // --- We completed the finally block successfully
731 |           const innermostTry = thread.tryBlocks!.pop()!;
732 | 
733 |           // --- Is there any special exit type?
734 |           switch (innermostTry.exitType) {
735 |             case "break": {
736 |               const loopScope = innermostLoopScope(thread);
737 |               if (loopScope === undefined) {
738 |                 throw new Error("Missing loop scope");
739 |               }
740 |               releaseLoopScope(thread);
741 |               clearToLabel = loopScope.breakLabel;
742 |               break;
743 |             }
744 |             case "continue": {
745 |               const loopScope = innermostLoopScope(thread);
746 |               if (loopScope === undefined) {
747 |                 throw new Error("Missing loop scope");
748 |               }
749 | 
750 |               clearToLabel = loopScope.continueLabel;
751 |               releaseLoopScope(thread, false);
752 |               break;
753 |             }
754 |             case "return":
755 |               clearToLabel = -1;
756 |               break;
757 |           }
758 | 
759 |           // --- Should we raise an error?
760 |           if (innermostTry.errorToThrow) {
761 |             throw innermostTry.errorToThrow;
762 |           }
763 |           break;
764 |       }
765 |       break;
766 |     }
767 | 
768 |     case T_SWITCH_STATEMENT: {
769 |       // --- Create or get the loop's scope (guard is falsy for the first execution)
770 |       if (execInfo.guard) {
771 |         // --- Complete the switch
772 |         releaseLoopScope(thread);
773 |       } else {
774 |         let loopScope = createLoopScope(thread);
775 |         loopScope.isSwitch = true;
776 |         thread.blocks!.push({ vars: {} });
777 | 
778 |         // --- Evaluate the switch value
779 |         const switchValue = await evalBindingAsync(statement.expr, evalContext, thread);
780 | 
781 |         // --- Find the matching label
782 |         let matchingIndex = -1;
783 |         for (let i = 0; i < statement.cases.length; i++) {
784 |           const currentCase = statement.cases[i];
785 | 
786 |           // --- Check for default case
787 |           if (currentCase.caseE === undefined) {
788 |             matchingIndex = i;
789 |             break;
790 |           }
791 | 
792 |           // --- Check for matching case
793 |           const caseValue = await evalBindingAsync(currentCase.caseE, evalContext, thread);
794 |           if (caseValue === switchValue) {
795 |             matchingIndex = i;
796 |             break;
797 |           }
798 |         }
799 | 
800 |         // --- Merge all statements from the matching label
801 |         const statementFlow: Statement[] = [];
802 |         if (matchingIndex >= 0) {
803 |           for (let i = matchingIndex; i < statement.cases.length; i++) {
804 |             statementFlow.push(...statement.cases[i].stmts!);
805 |           }
806 |         }
807 | 
808 |         // --- Queue the statement flow and the guard
809 |         toUnshift = mapStatementsToQueueItems([
810 |           ...toStatementItems(statementFlow),
811 |           guard(statement),
812 |         ]);
813 |         loopScope.breakLabel = toUnshift[toUnshift.length - 1].label;
814 |       }
815 |       break;
816 |     }
817 |   }
818 | 
819 |   // --- The statement may remove the innermost scope
820 |   if (execInfo.removeBlockScope) {
821 |     if (thread.blocks && thread.blocks.length > 0) {
822 |       thread.blocks.pop();
823 |     }
824 |   }
825 | 
826 |   // --- Done.
827 |   return { toUnshift, clearToLabel };
828 | }
829 | 
830 | /**
831 |  * Funtion to process a visited ID
832 |  */
833 | type IdDeclarationVisitor = (id: string) => void;
834 | 
835 | // --- Process a variable declaration
836 | export async function processDeclarationsAsync(
837 |   block: BlockScope,
838 |   evalContext: BindingTreeEvaluationContext,
839 |   thread: LogicalThread,
840 |   declarations: VarDeclaration[],
841 |   addConst = false,
842 |   useValue = false,
843 |   baseValue = undefined,
844 | ): Promise<void> {
845 |   for (let i = 0; i < declarations.length; i++) {
846 |     let value: any;
847 |     const decl = declarations[i];
848 |     if (useValue) {
849 |       value = baseValue;
850 |     } else if (decl.expr) {
851 |       value = await evalBindingAsync(decl.expr, evalContext, thread);
852 |     }
853 |     visitDeclaration(block, decl, value, addConst);
854 |   }
855 | 
856 |   // --- Visit a variable
857 |   function visitDeclaration(
858 |     block: BlockScope,
859 |     decl: VarDeclaration,
860 |     baseValue: any,
861 |     addConst: boolean,
862 |   ): void {
863 |     // --- Process each declaration
864 |     if (decl.id) {
865 |       visitIdDeclaration(block, decl.id, baseValue, addConst);
866 |     } else if (decl.aDestr) {
867 |       visitArrayDestruct(block, decl.aDestr, baseValue, addConst);
868 |     } else if (decl.oDestr) {
869 |       visitObjectDestruct(block, decl.oDestr, baseValue, addConst);
870 |     } else {
871 |       throw new Error("Unknown declaration specifier");
872 |     }
873 |   }
874 | 
875 |   // --- Visits a single ID declaration
876 |   function visitIdDeclaration(
877 |     block: BlockScope,
878 |     id: string,
879 |     baseValue: any,
880 |     addConst: boolean,
881 |   ): void {
882 |     if (block.vars[id]) {
883 |       throw new Error(`Variable ${id} is already declared in the current scope.`);
884 |     }
885 |     block.vars[id] = baseValue;
886 |     if (addConst) {
887 |       block.constVars ??= new Set<string>();
888 |       block.constVars.add(id);
889 |     }
890 |   }
891 | 
892 |   // --- Visits an array destructure declaration
893 |   function visitArrayDestruct(
894 |     block: BlockScope,
895 |     arrayD: ArrayDestructure[],
896 |     baseValue: any,
897 |     addConst: boolean,
898 |   ): void {
899 |     for (let i = 0; i < arrayD.length; i++) {
900 |       const arrDecl = arrayD[i];
901 |       const value = baseValue?.[i];
902 |       if (arrDecl.id) {
903 |         visitIdDeclaration(block, arrDecl.id, value, addConst);
904 |       } else if (arrDecl.aDestr) {
905 |         visitArrayDestruct(block, arrDecl.aDestr, value, addConst);
906 |       } else if (arrDecl.oDestr) {
907 |         visitObjectDestruct(block, arrDecl.oDestr, value, addConst);
908 |       }
909 |     }
910 |   }
911 | 
912 |   // --- Visits an object destructure declaration
913 |   function visitObjectDestruct(
914 |     block: BlockScope,
915 |     objectD: ObjectDestructure[],
916 |     baseValue: any,
917 |     addConst: boolean,
918 |   ): void {
919 |     for (let i = 0; i < objectD.length; i++) {
920 |       const objDecl = objectD[i];
921 |       const value = baseValue?.[objDecl.id!];
922 |       if (objDecl.aDestr) {
923 |         visitArrayDestruct(block, objDecl.aDestr, value, addConst);
924 |       } else if (objDecl.oDestr) {
925 |         visitObjectDestruct(block, objDecl.oDestr, value, addConst);
926 |       } else {
927 |         visitIdDeclaration(block, objDecl.alias ?? objDecl.id!, value, addConst);
928 |       }
929 |     }
930 |   }
931 | }
932 | 
```

--------------------------------------------------------------------------------
/xmlui/tests/components-core/theming/component-layout.resolver.test.ts:
--------------------------------------------------------------------------------

```typescript
   1 | import { describe, expect, it } from "vitest";
   2 | import {
   3 |   BASE_COMPONENT_PART,
   4 |   resolveComponentLayoutProps,
   5 | } from "../../../src/components-core/theming/component-layout-resolver";
   6 | 
   7 | describe("Component property layout", () => {
   8 |   it("should parse empty", () => {
   9 |     const result = resolveComponentLayoutProps({});
  10 |     expect(result).toStrictEqual({});
  11 |   });
  12 | 
  13 |   describe("single component properties", () => {
  14 |     it("single component property", () => {
  15 |       const result = resolveComponentLayoutProps({
  16 |         color: "red",
  17 |       });
  18 |       expect(result).toStrictEqual({
  19 |         [BASE_COMPONENT_PART]: {
  20 |           baseStyles: { color: "red" },
  21 |         },
  22 |       });
  23 |     });
  24 | 
  25 |     it("single component property: paddingHorizontal", () => {
  26 |       const result = resolveComponentLayoutProps({
  27 |         paddingHorizontal: "12px",
  28 |       });
  29 |       expect(result).toStrictEqual({
  30 |         [BASE_COMPONENT_PART]: {
  31 |           baseStyles: { paddingLeft: "12px", paddingRight: "12px" },
  32 |         },
  33 |       });
  34 |     });
  35 | 
  36 |     it("single component property: paddingVertical", () => {
  37 |       const result = resolveComponentLayoutProps({
  38 |         paddingVertical: "12px",
  39 |       });
  40 |       expect(result).toStrictEqual({
  41 |         [BASE_COMPONENT_PART]: {
  42 |           baseStyles: { paddingTop: "12px", paddingBottom: "12px" },
  43 |         },
  44 |       });
  45 |     });
  46 | 
  47 |     it("single component property: marginHorizontal", () => {
  48 |       const result = resolveComponentLayoutProps({
  49 |         marginHorizontal: "12px",
  50 |       });
  51 |       expect(result).toStrictEqual({
  52 |         [BASE_COMPONENT_PART]: {
  53 |           baseStyles: { marginLeft: "12px", marginRight: "12px" },
  54 |         },
  55 |       });
  56 |     });
  57 | 
  58 |     it("single component property: marginVertical", () => {
  59 |       const result = resolveComponentLayoutProps({
  60 |         marginVertical: "12px",
  61 |       });
  62 |       expect(result).toStrictEqual({
  63 |         [BASE_COMPONENT_PART]: {
  64 |           baseStyles: { marginTop: "12px", marginBottom: "12px" },
  65 |         },
  66 |       });
  67 |     });
  68 | 
  69 |     it("single component property: borderHorizontal", () => {
  70 |       const result = resolveComponentLayoutProps({
  71 |         borderHorizontal: "12px",
  72 |       });
  73 |       expect(result).toStrictEqual({
  74 |         [BASE_COMPONENT_PART]: {
  75 |           baseStyles: { borderLeft: "12px", borderRight: "12px" },
  76 |         },
  77 |       });
  78 |     });
  79 | 
  80 |     it("single component property: borderVertical", () => {
  81 |       const result = resolveComponentLayoutProps({
  82 |         borderVertical: "12px",
  83 |       });
  84 |       expect(result).toStrictEqual({
  85 |         [BASE_COMPONENT_PART]: {
  86 |           baseStyles: { borderTop: "12px", borderBottom: "12px" },
  87 |         },
  88 |       });
  89 |     });
  90 | 
  91 |     it("single component property: wrapContent/true", () => {
  92 |       const result = resolveComponentLayoutProps({
  93 |         wrapContent: true,
  94 |       });
  95 |       expect(result).toStrictEqual({
  96 |         [BASE_COMPONENT_PART]: {
  97 |           baseStyles: { flexWrap: "wrap" },
  98 |         },
  99 |       });
 100 |     });
 101 | 
 102 |     it("single component property: wrapContent/false", () => {
 103 |       const result = resolveComponentLayoutProps({
 104 |         wrapContent: false,
 105 |       });
 106 |       expect(result).toStrictEqual({
 107 |         [BASE_COMPONENT_PART]: {
 108 |           baseStyles: { flexWrap: "nowrap" },
 109 |         },
 110 |       });
 111 |     });
 112 | 
 113 |     it("single component property: canShrink/true", () => {
 114 |       const result = resolveComponentLayoutProps({
 115 |         canShrink: true,
 116 |       });
 117 |       expect(result).toStrictEqual({
 118 |         [BASE_COMPONENT_PART]: {
 119 |           baseStyles: { flexShrink: 1 },
 120 |         },
 121 |       });
 122 |     });
 123 | 
 124 |     it("single component property: canShrink/false", () => {
 125 |       const result = resolveComponentLayoutProps({
 126 |         canShrink: false,
 127 |       });
 128 |       expect(result).toStrictEqual({
 129 |         [BASE_COMPONENT_PART]: {
 130 |           baseStyles: { flexShrink: 0 },
 131 |         },
 132 |       });
 133 |     });
 134 | 
 135 |     it("single component property: width (no star size)", () => {
 136 |       const result = resolveComponentLayoutProps({
 137 |         width: "100px",
 138 |       });
 139 |       expect(result).toStrictEqual({
 140 |         [BASE_COMPONENT_PART]: {
 141 |           baseStyles: { width: "100px" },
 142 |         },
 143 |       });
 144 |     });
 145 | 
 146 |     it("single component property: width (star size)", () => {
 147 |       const result = resolveComponentLayoutProps(
 148 |         {
 149 |           width: "23*",
 150 |         },
 151 |         {
 152 |           type: "Stack",
 153 |           orientation: "horizontal",
 154 |         },
 155 |       );
 156 |       expect(result).toStrictEqual({
 157 |         [BASE_COMPONENT_PART]: {
 158 |           baseStyles: { flex: 23, flexShrink: 1 },
 159 |         },
 160 |       });
 161 |     });
 162 | 
 163 |     it("single component property: height (no star size)", () => {
 164 |       const result = resolveComponentLayoutProps({
 165 |         height: "100px",
 166 |       });
 167 |       expect(result).toStrictEqual({
 168 |         [BASE_COMPONENT_PART]: {
 169 |           baseStyles: { height: "100px" },
 170 |         },
 171 |       });
 172 |     });
 173 | 
 174 |     it("single component property: height (star size)", () => {
 175 |       const result = resolveComponentLayoutProps(
 176 |         {
 177 |           height: "23*",
 178 |         },
 179 |         {
 180 |           type: "Stack",
 181 |           orientation: "vertical",
 182 |         },
 183 |       );
 184 |       expect(result).toStrictEqual({
 185 |         [BASE_COMPONENT_PART]: {
 186 |           baseStyles: { flex: 23, flexShrink: 1 },
 187 |         },
 188 |       });
 189 |     });
 190 |   });
 191 | 
 192 |   describe("multiple component properties", () => {
 193 |     it("multiple component properties", () => {
 194 |       const result = resolveComponentLayoutProps({
 195 |         color: "red",
 196 |         backgroundColor: "green",
 197 |       });
 198 |       expect(result).toStrictEqual({
 199 |         [BASE_COMPONENT_PART]: {
 200 |           baseStyles: { color: "red", backgroundColor: "green" },
 201 |         },
 202 |       });
 203 |     });
 204 | 
 205 |     it("multiple component properties: paddingHorizontal", () => {
 206 |       const result = resolveComponentLayoutProps({
 207 |         paddingHorizontal: "12px",
 208 |         backgroundColor: "green",
 209 |       });
 210 |       expect(result).toStrictEqual({
 211 |         [BASE_COMPONENT_PART]: {
 212 |           baseStyles: { paddingLeft: "12px", paddingRight: "12px", backgroundColor: "green" },
 213 |         },
 214 |       });
 215 |     });
 216 | 
 217 |     it("multiple component properties: paddingVertical", () => {
 218 |       const result = resolveComponentLayoutProps({
 219 |         paddingVertical: "12px",
 220 |         backgroundColor: "green",
 221 |       });
 222 |       expect(result).toStrictEqual({
 223 |         [BASE_COMPONENT_PART]: {
 224 |           baseStyles: { paddingTop: "12px", paddingBottom: "12px", backgroundColor: "green" },
 225 |         },
 226 |       });
 227 |     });
 228 | 
 229 |     it("multiple component properties: marginHorizontal", () => {
 230 |       const result = resolveComponentLayoutProps({
 231 |         marginHorizontal: "12px",
 232 |         backgroundColor: "green",
 233 |       });
 234 |       expect(result).toStrictEqual({
 235 |         [BASE_COMPONENT_PART]: {
 236 |           baseStyles: { marginLeft: "12px", marginRight: "12px", backgroundColor: "green" },
 237 |         },
 238 |       });
 239 |     });
 240 | 
 241 |     it("multiple component properties: marginVertical", () => {
 242 |       const result = resolveComponentLayoutProps({
 243 |         marginVertical: "12px",
 244 |         backgroundColor: "green",
 245 |       });
 246 |       expect(result).toStrictEqual({
 247 |         [BASE_COMPONENT_PART]: {
 248 |           baseStyles: { marginTop: "12px", marginBottom: "12px", backgroundColor: "green" },
 249 |         },
 250 |       });
 251 |     });
 252 | 
 253 |     it("multiple component properties: borderHorizontal", () => {
 254 |       const result = resolveComponentLayoutProps({
 255 |         borderHorizontal: "12px",
 256 |         backgroundColor: "green",
 257 |       });
 258 |       expect(result).toStrictEqual({
 259 |         [BASE_COMPONENT_PART]: {
 260 |           baseStyles: { borderLeft: "12px", borderRight: "12px", backgroundColor: "green" },
 261 |         },
 262 |       });
 263 |     });
 264 | 
 265 |     it("multiple component properties: borderVertical", () => {
 266 |       const result = resolveComponentLayoutProps({
 267 |         borderVertical: "12px",
 268 |         backgroundColor: "green",
 269 |       });
 270 |       expect(result).toStrictEqual({
 271 |         [BASE_COMPONENT_PART]: {
 272 |           baseStyles: { borderTop: "12px", borderBottom: "12px", backgroundColor: "green" },
 273 |         },
 274 |       });
 275 |     });
 276 | 
 277 |     it("multiple component properties: wrapContent/true", () => {
 278 |       const result = resolveComponentLayoutProps({
 279 |         wrapContent: true,
 280 |         backgroundColor: "green",
 281 |       });
 282 |       expect(result).toStrictEqual({
 283 |         [BASE_COMPONENT_PART]: {
 284 |           baseStyles: { flexWrap: "wrap", backgroundColor: "green" },
 285 |         },
 286 |       });
 287 |     });
 288 | 
 289 |     it("multiple component properties: wrapContent/false", () => {
 290 |       const result = resolveComponentLayoutProps({
 291 |         wrapContent: false,
 292 |         backgroundColor: "green",
 293 |       });
 294 |       expect(result).toStrictEqual({
 295 |         [BASE_COMPONENT_PART]: {
 296 |           baseStyles: { flexWrap: "nowrap", backgroundColor: "green" },
 297 |         },
 298 |       });
 299 |     });
 300 | 
 301 |     it("multiple component properties: canShrink/true", () => {
 302 |       const result = resolveComponentLayoutProps({
 303 |         canShrink: true,
 304 |         backgroundColor: "green",
 305 |       });
 306 |       expect(result).toStrictEqual({
 307 |         [BASE_COMPONENT_PART]: {
 308 |           baseStyles: { flexShrink: 1, backgroundColor: "green" },
 309 |         },
 310 |       });
 311 |     });
 312 | 
 313 |     it("multiple component properties: canShrink/false", () => {
 314 |       const result = resolveComponentLayoutProps({
 315 |         canShrink: false,
 316 |         backgroundColor: "green",
 317 |       });
 318 |       expect(result).toStrictEqual({
 319 |         [BASE_COMPONENT_PART]: {
 320 |           baseStyles: { flexShrink: 0, backgroundColor: "green" },
 321 |         },
 322 |       });
 323 |     });
 324 | 
 325 |     it("multiple component properties: width (no star size)", () => {
 326 |       const result = resolveComponentLayoutProps({
 327 |         width: "100px",
 328 |         backgroundColor: "green",
 329 |       });
 330 |       expect(result).toStrictEqual({
 331 |         [BASE_COMPONENT_PART]: {
 332 |           baseStyles: { width: "100px", backgroundColor: "green" },
 333 |         },
 334 |       });
 335 |     });
 336 | 
 337 |     it("multiple component properties: width (star size)", () => {
 338 |       const result = resolveComponentLayoutProps(
 339 |         {
 340 |           width: "23*",
 341 |           backgroundColor: "green",
 342 |         },
 343 |         {
 344 |           type: "Stack",
 345 |           orientation: "horizontal",
 346 |         },
 347 |       );
 348 |       expect(result).toStrictEqual({
 349 |         [BASE_COMPONENT_PART]: {
 350 |           baseStyles: { flex: 23, flexShrink: 1, backgroundColor: "green" },
 351 |         },
 352 |       });
 353 |     });
 354 | 
 355 |     it("multiple component properties: height (no star size)", () => {
 356 |       const result = resolveComponentLayoutProps({
 357 |         height: "100px",
 358 |         backgroundColor: "green",
 359 |       });
 360 |       expect(result).toStrictEqual({
 361 |         [BASE_COMPONENT_PART]: {
 362 |           baseStyles: { height: "100px", backgroundColor: "green" },
 363 |         },
 364 |       });
 365 |     });
 366 | 
 367 |     it("multiple component properties: height (star size)", () => {
 368 |       const result = resolveComponentLayoutProps(
 369 |         {
 370 |           height: "23*",
 371 |           backgroundColor: "green",
 372 |         },
 373 |         {
 374 |           type: "Stack",
 375 |           orientation: "vertical",
 376 |         },
 377 |       );
 378 |       expect(result).toStrictEqual({
 379 |         [BASE_COMPONENT_PART]: {
 380 |           baseStyles: { flex: 23, flexShrink: 1, backgroundColor: "green" },
 381 |         },
 382 |       });
 383 |     });
 384 |   });
 385 | 
 386 |   describe("single component properties with state", () => {
 387 |     it("single component property with state", () => {
 388 |       const result = resolveComponentLayoutProps({
 389 |         "color--hover": "red",
 390 |       });
 391 |       expect(result).toStrictEqual({
 392 |         [BASE_COMPONENT_PART]: {
 393 |           baseStyles: { states: { hover: { color: "red" } } },
 394 |         },
 395 |       });
 396 |     });
 397 | 
 398 |     it("single component property with multiple states #1", () => {
 399 |       const result = resolveComponentLayoutProps({
 400 |         "color--hover--active": "red",
 401 |       });
 402 |       expect(result).toStrictEqual({
 403 |         [BASE_COMPONENT_PART]: {
 404 |           baseStyles: { states: { "hover&active": { color: "red" } } },
 405 |         },
 406 |       });
 407 |     });
 408 | 
 409 |     it("single component property with multiple states #2", () => {
 410 |       const result = resolveComponentLayoutProps({
 411 |         "color--hover--active--focus": "red",
 412 |       });
 413 |       expect(result).toStrictEqual({
 414 |         [BASE_COMPONENT_PART]: {
 415 |           baseStyles: { states: { "hover&active&focus": { color: "red" } } },
 416 |         },
 417 |       });
 418 |     });
 419 | 
 420 |     it("multiple component properties with state", () => {
 421 |       const result = resolveComponentLayoutProps({
 422 |         "color--hover": "red",
 423 |         "backgroundColor--hover": "blue",
 424 |       });
 425 |       expect(result).toStrictEqual({
 426 |         [BASE_COMPONENT_PART]: {
 427 |           baseStyles: { states: { hover: { color: "red", backgroundColor: "blue" } } },
 428 |         },
 429 |       });
 430 |     });
 431 | 
 432 |     it("multiple component properties with multiple states #1", () => {
 433 |       const result = resolveComponentLayoutProps({
 434 |         "color--focus": "red",
 435 |         "backgroundColor--hover": "blue",
 436 |       });
 437 |       expect(result).toStrictEqual({
 438 |         [BASE_COMPONENT_PART]: {
 439 |           baseStyles: { states: { focus: { color: "red" }, hover: { backgroundColor: "blue" } } },
 440 |         },
 441 |       });
 442 |     });
 443 | 
 444 |     it("multiple component properties with multiple states #2", () => {
 445 |       const result = resolveComponentLayoutProps({
 446 |         "color--focus": "red",
 447 |         "backgroundColor--hover--focus": "blue",
 448 |       });
 449 |       expect(result).toStrictEqual({
 450 |         [BASE_COMPONENT_PART]: {
 451 |           baseStyles: {
 452 |             states: { focus: { color: "red" }, "hover&focus": { backgroundColor: "blue" } },
 453 |           },
 454 |         },
 455 |       });
 456 |     });
 457 | 
 458 |     it("multiple component properties with multiple states #3", () => {
 459 |       const result = resolveComponentLayoutProps({
 460 |         "color--focus": "red",
 461 |         "backgroundColor--focus": "blue",
 462 |       });
 463 |       expect(result).toStrictEqual({
 464 |         [BASE_COMPONENT_PART]: {
 465 |           baseStyles: { states: { focus: { color: "red", backgroundColor: "blue" } } },
 466 |         },
 467 |       });
 468 |     });
 469 | 
 470 |     it("multiple component properties with multiple states #4", () => {
 471 |       const result = resolveComponentLayoutProps({
 472 |         "color--focus--active": "red",
 473 |         "backgroundColor--focus": "blue",
 474 |       });
 475 |       expect(result).toStrictEqual({
 476 |         [BASE_COMPONENT_PART]: {
 477 |           baseStyles: {
 478 |             states: { focus: { backgroundColor: "blue" }, "focus&active": { color: "red" } },
 479 |           },
 480 |         },
 481 |       });
 482 |     });
 483 |   });
 484 | 
 485 |   describe("multiple component properties with and without state", () => {
 486 |     it("multiple component properties with state", () => {
 487 |       const result = resolveComponentLayoutProps({
 488 |         "color--hover": "red",
 489 |         backgroundColor: "green",
 490 |       });
 491 |       expect(result).toStrictEqual({
 492 |         [BASE_COMPONENT_PART]: {
 493 |           baseStyles: { backgroundColor: "green", states: { hover: { color: "red" } } },
 494 |         },
 495 |       });
 496 |     });
 497 | 
 498 |     it("multiple component properties with multiple states #1", () => {
 499 |       const result = resolveComponentLayoutProps({
 500 |         "color--hover--active": "red",
 501 |         backgroundColor: "green",
 502 |       });
 503 |       expect(result).toStrictEqual({
 504 |         [BASE_COMPONENT_PART]: {
 505 |           baseStyles: { backgroundColor: "green", states: { "hover&active": { color: "red" } } },
 506 |         },
 507 |       });
 508 |     });
 509 | 
 510 |     it("multiple component properties with multiple states #2", () => {
 511 |       const result = resolveComponentLayoutProps({
 512 |         "color--hover--active--focus": "red",
 513 |         backgroundColor: "green",
 514 |       });
 515 |       expect(result).toStrictEqual({
 516 |         [BASE_COMPONENT_PART]: {
 517 |           baseStyles: {
 518 |             backgroundColor: "green",
 519 |             states: { "hover&active&focus": { color: "red" } },
 520 |           },
 521 |         },
 522 |       });
 523 |     });
 524 | 
 525 |     it("multiple component properties with state (both with state)", () => {
 526 |       const result = resolveComponentLayoutProps({
 527 |         "color--hover": "red",
 528 |         "backgroundColor--hover": "blue",
 529 |       });
 530 |       expect(result).toStrictEqual({
 531 |         [BASE_COMPONENT_PART]: {
 532 |           baseStyles: { states: { hover: { color: "red", backgroundColor: "blue" } } },
 533 |         },
 534 |       });
 535 |     });
 536 | 
 537 |     it("multiple component properties with multiple states #1 (mixed)", () => {
 538 |       const result = resolveComponentLayoutProps({
 539 |         "color--focus": "red",
 540 |         "backgroundColor--hover": "blue",
 541 |         padding: "10px",
 542 |       });
 543 |       expect(result).toStrictEqual({
 544 |         [BASE_COMPONENT_PART]: {
 545 |           baseStyles: {
 546 |             padding: "10px",
 547 |             states: { focus: { color: "red" }, hover: { backgroundColor: "blue" } },
 548 |           },
 549 |         },
 550 |       });
 551 |     });
 552 | 
 553 |     it("multiple component properties with multiple states #2 (mixed)", () => {
 554 |       const result = resolveComponentLayoutProps({
 555 |         "color--focus": "red",
 556 |         "backgroundColor--hover--focus": "blue",
 557 |         margin: "5px",
 558 |       });
 559 |       expect(result).toStrictEqual({
 560 |         [BASE_COMPONENT_PART]: {
 561 |           baseStyles: {
 562 |             margin: "5px",
 563 |             states: { focus: { color: "red" }, "hover&focus": { backgroundColor: "blue" } },
 564 |           },
 565 |         },
 566 |       });
 567 |     });
 568 | 
 569 |     it("multiple component properties with multiple states #3 (mixed)", () => {
 570 |       const result = resolveComponentLayoutProps({
 571 |         "color--focus": "red",
 572 |         "backgroundColor--focus": "blue",
 573 |         border: "1px solid black",
 574 |       });
 575 |       expect(result).toStrictEqual({
 576 |         [BASE_COMPONENT_PART]: {
 577 |           baseStyles: {
 578 |             border: "1px solid black",
 579 |             states: { focus: { color: "red", backgroundColor: "blue" } },
 580 |           },
 581 |         },
 582 |       });
 583 |     });
 584 | 
 585 |     it("multiple component properties with multiple states #4 (mixed)", () => {
 586 |       const result = resolveComponentLayoutProps({
 587 |         "color--focus--active": "red",
 588 |         "backgroundColor--focus": "blue",
 589 |         fontSize: "14px",
 590 |       });
 591 |       expect(result).toStrictEqual({
 592 |         [BASE_COMPONENT_PART]: {
 593 |           baseStyles: {
 594 |             fontSize: "14px",
 595 |             states: { focus: { backgroundColor: "blue" }, "focus&active": { color: "red" } },
 596 |           },
 597 |         },
 598 |       });
 599 |     });
 600 |   });
 601 | 
 602 |   describe("component properties with parts", () => {
 603 |     it("single component property with part", () => {
 604 |       const result = resolveComponentLayoutProps({
 605 |         "color-indicator": "red",
 606 |       });
 607 |       expect(result).toStrictEqual({
 608 |         indicator: {
 609 |           baseStyles: { color: "red" },
 610 |         },
 611 |       });
 612 |     });
 613 | 
 614 |     it("multiple component property with part", () => {
 615 |       const result = resolveComponentLayoutProps({
 616 |         "color-indicator": "red",
 617 |         "backgroundColor-indicator": "green",
 618 |       });
 619 |       expect(result).toStrictEqual({
 620 |         indicator: {
 621 |           baseStyles: { color: "red", backgroundColor: "green" },
 622 |         },
 623 |       });
 624 |     });
 625 | 
 626 |     it("multiple component property with multiple parts #1", () => {
 627 |       const result = resolveComponentLayoutProps({
 628 |         "color-indicator": "red",
 629 |         "backgroundColor-handle": "green",
 630 |       });
 631 |       expect(result).toStrictEqual({
 632 |         indicator: {
 633 |           baseStyles: { color: "red" },
 634 |         },
 635 |         handle: {
 636 |           baseStyles: { backgroundColor: "green" },
 637 |         },
 638 |       });
 639 |     });
 640 | 
 641 |     it("multiple component property with multiple parts #2", () => {
 642 |       const result = resolveComponentLayoutProps({
 643 |         "color-indicator": "red",
 644 |         "backgroundColor-handle": "green",
 645 |         "fontSize-indicator": "12px",
 646 |       });
 647 |       expect(result).toStrictEqual({
 648 |         indicator: {
 649 |           baseStyles: { color: "red", fontSize: "12px" },
 650 |         },
 651 |         handle: {
 652 |           baseStyles: { backgroundColor: "green" },
 653 |         },
 654 |       });
 655 |     });
 656 |   });
 657 | 
 658 |   describe("component properties with parts and state", () => {
 659 |     it("single component property with part and state", () => {
 660 |       const result = resolveComponentLayoutProps({
 661 |         "color-indicator--hover": "red",
 662 |       });
 663 |       expect(result).toStrictEqual({
 664 |         indicator: {
 665 |           baseStyles: { states: { hover: { color: "red" } } },
 666 |         },
 667 |       });
 668 |     });
 669 | 
 670 |     it("single component property with part and multiple states #1", () => {
 671 |       const result = resolveComponentLayoutProps({
 672 |         "color-indicator--hover--active": "red",
 673 |       });
 674 |       expect(result).toStrictEqual({
 675 |         indicator: {
 676 |           baseStyles: { states: { "hover&active": { color: "red" } } },
 677 |         },
 678 |       });
 679 |     });
 680 | 
 681 |     it("single component property with part and multiple states #2", () => {
 682 |       const result = resolveComponentLayoutProps({
 683 |         "color-indicator--hover--active--focus": "red",
 684 |       });
 685 |       expect(result).toStrictEqual({
 686 |         indicator: {
 687 |           baseStyles: { states: { "hover&active&focus": { color: "red" } } },
 688 |         },
 689 |       });
 690 |     });
 691 | 
 692 |     it("multiple component properties with part and state", () => {
 693 |       const result = resolveComponentLayoutProps({
 694 |         "color-indicator--hover": "red",
 695 |         "backgroundColor-indicator--hover": "green",
 696 |       });
 697 |       expect(result).toStrictEqual({
 698 |         indicator: {
 699 |           baseStyles: { states: { hover: { color: "red", backgroundColor: "green" } } },
 700 |         },
 701 |       });
 702 |     });
 703 | 
 704 |     it("multiple component properties with part and multiple states #1", () => {
 705 |       const result = resolveComponentLayoutProps({
 706 |         "color-indicator--focus": "red",
 707 |         "backgroundColor-indicator--hover": "green",
 708 |       });
 709 |       expect(result).toStrictEqual({
 710 |         indicator: {
 711 |           baseStyles: { states: { focus: { color: "red" }, hover: { backgroundColor: "green" } } },
 712 |         },
 713 |       });
 714 |     });
 715 | 
 716 |     it("multiple component properties with part and multiple states #2", () => {
 717 |       const result = resolveComponentLayoutProps({
 718 |         "color-indicator--focus": "red",
 719 |         "backgroundColor-indicator--hover--focus": "green",
 720 |       });
 721 |       expect(result).toStrictEqual({
 722 |         indicator: {
 723 |           baseStyles: {
 724 |             states: { focus: { color: "red" }, "hover&focus": { backgroundColor: "green" } },
 725 |           },
 726 |         },
 727 |       });
 728 |     });
 729 | 
 730 |     it("multiple component properties with part and multiple states #3", () => {
 731 |       const result = resolveComponentLayoutProps({
 732 |         "color-indicator--focus": "red",
 733 |         "backgroundColor-indicator--focus": "green",
 734 |       });
 735 |       expect(result).toStrictEqual({
 736 |         indicator: {
 737 |           baseStyles: { states: { focus: { color: "red", backgroundColor: "green" } } },
 738 |         },
 739 |       });
 740 |     });
 741 | 
 742 |     it("multiple component properties with part and multiple states #4", () => {
 743 |       const result = resolveComponentLayoutProps({
 744 |         "color-indicator--focus--active": "red",
 745 |         "backgroundColor-indicator--focus": "green",
 746 |       });
 747 |       expect(result).toStrictEqual({
 748 |         indicator: {
 749 |           baseStyles: {
 750 |             states: { focus: { backgroundColor: "green" }, "focus&active": { color: "red" } },
 751 |           },
 752 |         },
 753 |       });
 754 |     });
 755 | 
 756 |     it("multiple component properties with multiple parts and states #1", () => {
 757 |       const result = resolveComponentLayoutProps({
 758 |         "color-indicator--hover": "red",
 759 |         "backgroundColor-handle--focus": "green",
 760 |       });
 761 |       expect(result).toStrictEqual({
 762 |         indicator: {
 763 |           baseStyles: { states: { hover: { color: "red" } } },
 764 |         },
 765 |         handle: {
 766 |           baseStyles: { states: { focus: { backgroundColor: "green" } } },
 767 |         },
 768 |       });
 769 |     });
 770 | 
 771 |     it("multiple component properties with multiple parts and states #2", () => {
 772 |       const result = resolveComponentLayoutProps({
 773 |         "color-indicator--hover": "red",
 774 |         "backgroundColor-handle--focus": "green",
 775 |         "fontSize-indicator--active": "12px",
 776 |       });
 777 |       expect(result).toStrictEqual({
 778 |         indicator: {
 779 |           baseStyles: { states: { hover: { color: "red" }, active: { fontSize: "12px" } } },
 780 |         },
 781 |         handle: {
 782 |           baseStyles: { states: { focus: { backgroundColor: "green" } } },
 783 |         },
 784 |       });
 785 |     });
 786 | 
 787 |     it("multiple component properties with multiple parts and mixed states", () => {
 788 |       const result = resolveComponentLayoutProps({
 789 |         "color-indicator--hover--active": "red",
 790 |         "backgroundColor-handle--focus": "green",
 791 |         "fontSize-indicator--hover": "12px",
 792 |         "border-handle--focus--active": "1px solid black",
 793 |       });
 794 |       expect(result).toStrictEqual({
 795 |         indicator: {
 796 |           baseStyles: { states: { "hover&active": { color: "red" }, hover: { fontSize: "12px" } } },
 797 |         },
 798 |         handle: {
 799 |           baseStyles: {
 800 |             states: {
 801 |               focus: { backgroundColor: "green" },
 802 |               "focus&active": { border: "1px solid black" },
 803 |             },
 804 |           },
 805 |         },
 806 |       });
 807 |     });
 808 |   });
 809 | 
 810 |   describe("mixed component properties, parts, and states", () => {
 811 |     it("mix of base properties, parts without states, and parts with states", () => {
 812 |       const result = resolveComponentLayoutProps({
 813 |         color: "blue", // base property
 814 |         "backgroundColor-header": "yellow", // part property without state
 815 |         "fontSize-indicator--hover": "14px", // part property with state
 816 |       });
 817 |       expect(result).toStrictEqual({
 818 |         [BASE_COMPONENT_PART]: {
 819 |           baseStyles: { color: "blue" },
 820 |         },
 821 |         header: {
 822 |           baseStyles: { backgroundColor: "yellow" },
 823 |         },
 824 |         indicator: {
 825 |           baseStyles: { states: { hover: { fontSize: "14px" } } },
 826 |         },
 827 |       });
 828 |     });
 829 | 
 830 |     it("mix of base properties with states and parts with states", () => {
 831 |       const result = resolveComponentLayoutProps({
 832 |         "color--hover": "red", // base property with state
 833 |         "backgroundColor-header--focus": "green", // part property with state
 834 |         "border-footer": "1px solid black", // part property without state
 835 |       });
 836 |       expect(result).toStrictEqual({
 837 |         [BASE_COMPONENT_PART]: {
 838 |           baseStyles: { states: { hover: { color: "red" } } },
 839 |         },
 840 |         header: {
 841 |           baseStyles: { states: { focus: { backgroundColor: "green" } } },
 842 |         },
 843 |         footer: {
 844 |           baseStyles: { border: "1px solid black" },
 845 |         },
 846 |       });
 847 |     });
 848 | 
 849 |     it("complex mix: base properties, parts, multiple states", () => {
 850 |       const result = resolveComponentLayoutProps({
 851 |         width: "100px", // base property
 852 |         height: "50px", // base property
 853 |         "color--hover": "red", // base property with state
 854 |         "backgroundColor--active": "blue", // base property with different state
 855 |         "fontSize-header": "16px", // part property
 856 |         "padding-header--hover": "10px", // part property with state
 857 |         "margin-footer--focus--active": "5px", // part property with multiple states
 858 |         "border-sidebar": "2px solid gray", // different part property
 859 |       });
 860 |       expect(result).toStrictEqual({
 861 |         [BASE_COMPONENT_PART]: {
 862 |           baseStyles: {
 863 |             width: "100px",
 864 |             height: "50px",
 865 |             states: {
 866 |               hover: { color: "red" },
 867 |               active: { backgroundColor: "blue" },
 868 |             },
 869 |           },
 870 |         },
 871 |         header: {
 872 |           baseStyles: {
 873 |             fontSize: "16px",
 874 |             states: { hover: { padding: "10px" } },
 875 |           },
 876 |         },
 877 |         footer: {
 878 |           baseStyles: { states: { "focus&active": { margin: "5px" } } },
 879 |         },
 880 |         sidebar: {
 881 |           baseStyles: { border: "2px solid gray" },
 882 |         },
 883 |       });
 884 |     });
 885 | 
 886 |     it("same property applied to different contexts", () => {
 887 |       const result = resolveComponentLayoutProps({
 888 |         color: "black", // base color
 889 |         "color-header": "blue", // header color
 890 |         "color-footer--hover": "red", // footer color on hover
 891 |         "color--active": "green", // base color on active
 892 |       });
 893 |       expect(result).toStrictEqual({
 894 |         [BASE_COMPONENT_PART]: {
 895 |           baseStyles: {
 896 |             color: "black",
 897 |             states: { active: { color: "green" } },
 898 |           },
 899 |         },
 900 |         header: {
 901 |           baseStyles: { color: "blue" },
 902 |         },
 903 |         footer: {
 904 |           baseStyles: { states: { hover: { color: "red" } } },
 905 |         },
 906 |       });
 907 |     });
 908 | 
 909 |     it("overlapping states across base and parts", () => {
 910 |       const result = resolveComponentLayoutProps({
 911 |         "backgroundColor--hover": "lightblue", // base background on hover
 912 |         "color--hover": "darkblue", // base color on hover
 913 |         "fontSize-title--hover": "18px", // title font size on hover
 914 |         "padding-title--focus": "8px", // title padding on focus
 915 |         "margin-content--hover--focus": "12px", // content margin on hover and focus
 916 |       });
 917 |       expect(result).toStrictEqual({
 918 |         [BASE_COMPONENT_PART]: {
 919 |           baseStyles: {
 920 |             states: {
 921 |               hover: { backgroundColor: "lightblue", color: "darkblue" },
 922 |             },
 923 |           },
 924 |         },
 925 |         title: {
 926 |           baseStyles: {
 927 |             states: {
 928 |               hover: { fontSize: "18px" },
 929 |               focus: { padding: "8px" },
 930 |             },
 931 |           },
 932 |         },
 933 |         content: {
 934 |           baseStyles: { states: { "hover&focus": { margin: "12px" } } },
 935 |         },
 936 |       });
 937 |     });
 938 | 
 939 |     it("multiple properties per part with mixed states", () => {
 940 |       const result = resolveComponentLayoutProps({
 941 |         "width-card": "200px", // card width (no state)
 942 |         "height-card": "150px", // card height (no state)
 943 |         "backgroundColor-card--hover": "gray", // card background on hover
 944 |         "border-card--focus": "2px solid blue", // card border on focus
 945 |         "color-card--hover--active": "white", // card color on hover and active
 946 |         "padding-card": "16px", // card padding (no state)
 947 |       });
 948 |       expect(result).toStrictEqual({
 949 |         card: {
 950 |           baseStyles: {
 951 |             width: "200px",
 952 |             height: "150px",
 953 |             padding: "16px",
 954 |             states: {
 955 |               hover: { backgroundColor: "gray" },
 956 |               focus: { border: "2px solid blue" },
 957 |               "hover&active": { color: "white" },
 958 |             },
 959 |           },
 960 |         },
 961 |       });
 962 |     });
 963 | 
 964 |     it("state conflicts and merging across different parts", () => {
 965 |       const result = resolveComponentLayoutProps({
 966 |         "color--focus": "red", // base color on focus
 967 |         "backgroundColor--focus": "yellow", // base background on focus
 968 |         "fontSize-header--focus": "20px", // header font size on focus
 969 |         "color-footer--focus": "blue", // footer color on focus (different from base)
 970 |         "margin-header": "10px", // header margin (no state)
 971 |         "padding-footer--active": "5px", // footer padding on active
 972 |       });
 973 |       expect(result).toStrictEqual({
 974 |         [BASE_COMPONENT_PART]: {
 975 |           baseStyles: {
 976 |             states: {
 977 |               focus: { color: "red", backgroundColor: "yellow" },
 978 |             },
 979 |           },
 980 |         },
 981 |         header: {
 982 |           baseStyles: {
 983 |             margin: "10px",
 984 |             states: { focus: { fontSize: "20px" } },
 985 |           },
 986 |         },
 987 |         footer: {
 988 |           baseStyles: {
 989 |             states: {
 990 |               focus: { color: "blue" },
 991 |               active: { padding: "5px" },
 992 |             },
 993 |           },
 994 |         },
 995 |       });
 996 |     });
 997 |   });
 998 | 
 999 |   describe("regression", () => {
1000 |     it("has responsive with state", () => {
1001 |       const result = resolveComponentLayoutProps({
1002 |         backgroundColor: "red",
1003 |         "backgroundColor-xxl": "green",
1004 |         "backgroundColor-xxl--hover": "blue",
1005 |       });
1006 |       expect(result).toStrictEqual({
1007 |         [BASE_COMPONENT_PART]: {
1008 |           baseStyles: {
1009 |             backgroundColor: "red",
1010 |           },
1011 |           responsiveStyles: {
1012 |             xxl: {
1013 |               backgroundColor: "green",
1014 |               states: {
1015 |                 hover: { backgroundColor: "blue" },
1016 |               },
1017 |             },
1018 |           },
1019 |         },
1020 |       });
1021 |     });
1022 |   });
1023 | });
1024 | 
```
Page 114/182FirstPrevNextLast