This is page 80 of 189. Use http://codebase.md/xmlui-org/xmlui/xmlui/tools/vscode/resources/xmlui-markup-syntax-highlighting.png?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ ├── config.json
│ ├── cyan-tools-design.md
│ ├── every-moments-teach.md
│ ├── fancy-laws-drop.md
│ ├── full-symbols-accept.md
│ └── tricky-zoos-crash.md
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog-swa.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs-swa.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.gif
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── codefence-runner.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ ├── staticwebapp.config.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── HelloMd.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── control-cache-invalidation.md
│ │ │ │ ├── debounce-user-input-for-api-calls.md
│ │ │ │ ├── debounce-with-changelistener.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.module.scss
│ │ │ ├── CodeSelector.tsx
│ │ │ ├── ConfirmationDialog.module.scss
│ │ │ ├── ConfirmationDialog.tsx
│ │ │ ├── Editor.tsx
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── Playground.tsx
│ │ │ ├── PlaygroundContent.module.scss
│ │ │ ├── PlaygroundContent.tsx
│ │ │ ├── PlaygroundNative.module.scss
│ │ │ ├── PlaygroundNative.tsx
│ │ │ ├── Preview.tsx
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── component-metadata.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── theme-variables-refactoring.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── extract-component-metadata.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── generate-metadata-markdown.js
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.module.scss
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ ├── ContentSeparatorNative.tsx
│ │ │ └── test-padding.xmlui
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.json
├── tsdown.config.ts
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/tests/parsers/scripting/parser-destructuring.test.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { describe, expect, it, assert } from "vitest";
2 | import { Parser } from "../../../src/parsers/scripting/Parser";
3 | import {
4 | ConstStatement,
5 | LetStatement,
6 | } from "../../../src/components-core/script-runner/ScriptingSourceTree";
7 |
8 | describe("Parser - destructuring", () => {
9 | it("let, object, empty", () => {
10 | // --- Arrange
11 | const wParser = new Parser("let {} = expr;");
12 |
13 | // --- Act
14 | const stmts = wParser.parseStatements()!;
15 |
16 | // --- Assert
17 | expect(stmts.length).equal(1);
18 | const lst = stmts[0] as LetStatement;
19 | expect(lst.decls.length).equal(1);
20 | const decl = lst.decls[0];
21 | expect(decl.oDestr).not.equal(undefined);
22 | expect(decl.oDestr!.length).equal(0);
23 | });
24 |
25 | it("let, object, single ID", () => {
26 | // --- Arrange
27 | const wParser = new Parser("let {a} = expr;");
28 |
29 | // --- Act
30 | const stmts = wParser.parseStatements()!;
31 |
32 | // --- Assert
33 | expect(stmts.length).equal(1);
34 | const lst = stmts[0] as LetStatement;
35 | expect(lst.decls.length).equal(1);
36 | const decl = lst.decls[0];
37 | expect(decl.oDestr).not.equal(undefined);
38 | expect(decl.oDestr!.length).equal(1);
39 | const od = decl.oDestr![0];
40 | expect(od.id).equal("a");
41 | expect(od.alias).equal(undefined);
42 | expect(od.aDestr).equal(undefined);
43 | expect(od.oDestr).equal(undefined);
44 | });
45 |
46 | it("let, object, multiple IDs #1", () => {
47 | // --- Arrange
48 | const wParser = new Parser("let {a, b} = expr;");
49 |
50 | // --- Act
51 | const stmts = wParser.parseStatements()!;
52 |
53 | // --- Assert
54 | expect(stmts.length).equal(1);
55 | const lst = stmts[0] as LetStatement;
56 | expect(lst.decls.length).equal(1);
57 | const decl = lst.decls[0];
58 | expect(decl.oDestr).not.equal(undefined);
59 | expect(decl.oDestr!.length).equal(2);
60 | let od = decl.oDestr![0];
61 | expect(od.id).equal("a");
62 | expect(od.alias).equal(undefined);
63 | expect(od.aDestr).equal(undefined);
64 | expect(od.oDestr).equal(undefined);
65 | od = decl.oDestr![1];
66 | expect(od.id).equal("b");
67 | expect(od.alias).equal(undefined);
68 | expect(od.aDestr).equal(undefined);
69 | expect(od.oDestr).equal(undefined);
70 | });
71 |
72 | it("let, object, multiple IDs #2", () => {
73 | // --- Arrange
74 | const wParser = new Parser("let {a, b, } = expr;");
75 |
76 | // --- Act
77 | const stmts = wParser.parseStatements()!;
78 |
79 | // --- Assert
80 | expect(stmts.length).equal(1);
81 | const lst = stmts[0] as LetStatement;
82 | expect(lst.decls.length).equal(1);
83 | const decl = lst.decls[0];
84 | expect(decl.oDestr).not.equal(undefined);
85 | expect(decl.oDestr!.length).equal(2);
86 | let od = decl.oDestr![0];
87 | expect(od.id).equal("a");
88 | expect(od.alias).equal(undefined);
89 | expect(od.aDestr).equal(undefined);
90 | expect(od.oDestr).equal(undefined);
91 | od = decl.oDestr![1];
92 | expect(od.id).equal("b");
93 | expect(od.alias).equal(undefined);
94 | expect(od.aDestr).equal(undefined);
95 | expect(od.oDestr).equal(undefined);
96 | });
97 |
98 | it("let, object, single aliased ID", () => {
99 | // --- Arrange
100 | const wParser = new Parser("let {a: aA} = expr;");
101 |
102 | // --- Act
103 | const stmts = wParser.parseStatements()!;
104 |
105 | // --- Assert
106 | expect(stmts.length).equal(1);
107 | const lst = stmts[0] as LetStatement;
108 | expect(lst.decls.length).equal(1);
109 | const decl = lst.decls[0];
110 | expect(decl.oDestr).not.equal(undefined);
111 | expect(decl.oDestr!.length).equal(1);
112 | const od = decl.oDestr![0];
113 | expect(od.id).equal("a");
114 | expect(od.alias).equal("aA");
115 | expect(od.aDestr).equal(undefined);
116 | expect(od.oDestr).equal(undefined);
117 | });
118 |
119 | it("let, object, multiple aliased IDs #1", () => {
120 | // --- Arrange
121 | const wParser = new Parser("let {a: aA, b: bB} = expr;");
122 |
123 | // --- Act
124 | const stmts = wParser.parseStatements()!;
125 |
126 | // --- Assert
127 | expect(stmts.length).equal(1);
128 | const lst = stmts[0] as LetStatement;
129 | expect(lst.decls.length).equal(1);
130 | const decl = lst.decls[0];
131 | expect(decl.oDestr).not.equal(undefined);
132 | expect(decl.oDestr!.length).equal(2);
133 | let od = decl.oDestr![0];
134 | expect(od.id).equal("a");
135 | expect(od.alias).equal("aA");
136 | expect(od.aDestr).equal(undefined);
137 | expect(od.oDestr).equal(undefined);
138 | od = decl.oDestr![1];
139 | expect(od.id).equal("b");
140 | expect(od.alias).equal("bB");
141 | expect(od.aDestr).equal(undefined);
142 | expect(od.oDestr).equal(undefined);
143 | });
144 |
145 | it("let, object, multiple aliased IDs #2", () => {
146 | // --- Arrange
147 | const wParser = new Parser("let {a: aA, b: bB, } = expr;");
148 |
149 | // --- Act
150 | const stmts = wParser.parseStatements()!;
151 |
152 | // --- Assert
153 | expect(stmts.length).equal(1);
154 | const lst = stmts[0] as LetStatement;
155 | expect(lst.decls.length).equal(1);
156 | const decl = lst.decls[0];
157 | expect(decl.oDestr).not.equal(undefined);
158 | expect(decl.oDestr!.length).equal(2);
159 | let od = decl.oDestr![0];
160 | expect(od.id).equal("a");
161 | expect(od.alias).equal("aA");
162 | expect(od.aDestr).equal(undefined);
163 | expect(od.oDestr).equal(undefined);
164 | od = decl.oDestr![1];
165 | expect(od.id).equal("b");
166 | expect(od.alias).equal("bB");
167 | expect(od.aDestr).equal(undefined);
168 | expect(od.oDestr).equal(undefined);
169 | });
170 |
171 | it("let, object, single nested object #1", () => {
172 | // --- Arrange
173 | const wParser = new Parser("let {a: {b}} = expr;");
174 |
175 | // --- Act
176 | const stmts = wParser.parseStatements()!;
177 |
178 | // --- Assert
179 | expect(stmts.length).equal(1);
180 | const lst = stmts[0] as LetStatement;
181 | expect(lst.decls.length).equal(1);
182 | const decl = lst.decls[0];
183 | expect(decl.oDestr).not.equal(undefined);
184 | expect(decl.oDestr!.length).equal(1);
185 | const od = decl.oDestr![0];
186 | expect(od.id).equal("a");
187 | expect(od.alias).equal(undefined);
188 | expect(od.aDestr).equal(undefined);
189 | expect(od.oDestr!.length).equal(1);
190 | const nod = od.oDestr![0];
191 | expect(nod.id).equal("b");
192 | expect(nod.alias).equal(undefined);
193 | expect(nod.aDestr).equal(undefined);
194 | expect(nod.oDestr).equal(undefined);
195 | });
196 |
197 | it("let, object, single nested object #2", () => {
198 | // --- Arrange
199 | const wParser = new Parser("let {a: {b, c: cC}} = expr;");
200 |
201 | // --- Act
202 | const stmts = wParser.parseStatements()!;
203 |
204 | // --- Assert
205 | expect(stmts.length).equal(1);
206 | const lst = stmts[0] as LetStatement;
207 | expect(lst.decls.length).equal(1);
208 | const decl = lst.decls[0];
209 | expect(decl.oDestr).not.equal(undefined);
210 | expect(decl.oDestr!.length).equal(1);
211 | const od = decl.oDestr![0];
212 | expect(od.id).equal("a");
213 | expect(od.alias).equal(undefined);
214 | expect(od.aDestr).equal(undefined);
215 | expect(od.oDestr!.length).equal(2);
216 | let nod = od.oDestr![0];
217 | expect(nod.id).equal("b");
218 | expect(nod.alias).equal(undefined);
219 | expect(nod.aDestr).equal(undefined);
220 | expect(nod.oDestr).equal(undefined);
221 | nod = od.oDestr![1];
222 | expect(nod.id).equal("c");
223 | expect(nod.alias).equal("cC");
224 | expect(nod.aDestr).equal(undefined);
225 | expect(nod.oDestr).equal(undefined);
226 | });
227 |
228 | it("let, array, empty #1", () => {
229 | // --- Arrange
230 | const wParser = new Parser("let [] = expr;");
231 |
232 | // --- Act
233 | const stmts = wParser.parseStatements()!;
234 |
235 | // --- Assert
236 | expect(stmts.length).equal(1);
237 | const lst = stmts[0] as LetStatement;
238 | expect(lst.decls.length).equal(1);
239 | const decl = lst.decls[0];
240 | expect(decl.aDestr).not.equal(undefined);
241 | expect(decl.aDestr!.length).equal(0);
242 | });
243 |
244 | it("let, array, empty #2", () => {
245 | // --- Arrange
246 | const wParser = new Parser("let [,] = expr;");
247 |
248 | // --- Act
249 | const stmts = wParser.parseStatements()!;
250 |
251 | // --- Assert
252 | expect(stmts.length).equal(1);
253 | const lst = stmts[0] as LetStatement;
254 | expect(lst.decls.length).equal(1);
255 | const decl = lst.decls[0];
256 | expect(decl.aDestr).not.equal(undefined);
257 | expect(decl.aDestr!.length).equal(1);
258 | const ad = decl.aDestr![0];
259 | expect(ad.id).equal(undefined);
260 | expect(ad.aDestr).equal(undefined);
261 | expect(ad.oDestr).equal(undefined);
262 | });
263 |
264 | it("let, array, single ID", () => {
265 | // --- Arrange
266 | const wParser = new Parser("let [a] = expr;");
267 |
268 | // --- Act
269 | const stmts = wParser.parseStatements()!;
270 |
271 | // --- Assert
272 | expect(stmts.length).equal(1);
273 | const lst = stmts[0] as LetStatement;
274 | expect(lst.decls.length).equal(1);
275 | const decl = lst.decls[0];
276 | expect(decl.aDestr).not.equal(undefined);
277 | expect(decl.aDestr!.length).equal(1);
278 | const ad = decl.aDestr![0];
279 | expect(ad.id).equal("a");
280 | expect(ad.aDestr).equal(undefined);
281 | expect(ad.oDestr).equal(undefined);
282 | });
283 |
284 | it("let, array, multiple IDs #1", () => {
285 | // --- Arrange
286 | const wParser = new Parser("let [a, b] = expr;");
287 |
288 | // --- Act
289 | const stmts = wParser.parseStatements()!;
290 |
291 | // --- Assert
292 | expect(stmts.length).equal(1);
293 | const lst = stmts[0] as LetStatement;
294 | expect(lst.decls.length).equal(1);
295 | const decl = lst.decls[0];
296 | expect(decl.aDestr).not.equal(undefined);
297 | expect(decl.aDestr!.length).equal(2);
298 | let ad = decl.aDestr![0];
299 | expect(ad.id).equal("a");
300 | expect(ad.aDestr).equal(undefined);
301 | expect(ad.oDestr).equal(undefined);
302 | ad = decl.aDestr![1];
303 | expect(ad.id).equal("b");
304 | expect(ad.aDestr).equal(undefined);
305 | expect(ad.oDestr).equal(undefined);
306 | });
307 |
308 | it("let, array, multiple IDs #2", () => {
309 | // --- Arrange
310 | const wParser = new Parser("let [a, b,] = expr");
311 |
312 | // --- Act
313 | const stmts = wParser.parseStatements()!;
314 |
315 | // --- Assert
316 | expect(stmts.length).equal(1);
317 | const lst = stmts[0] as LetStatement;
318 | expect(lst.decls.length).equal(1);
319 | const decl = lst.decls[0];
320 | expect(decl.aDestr).not.equal(undefined);
321 | expect(decl.aDestr!.length).equal(2);
322 | let ad = decl.aDestr![0];
323 | expect(ad.id).equal("a");
324 | expect(ad.aDestr).equal(undefined);
325 | expect(ad.oDestr).equal(undefined);
326 | ad = decl.aDestr![1];
327 | expect(ad.id).equal("b");
328 | expect(ad.aDestr).equal(undefined);
329 | expect(ad.oDestr).equal(undefined);
330 | });
331 |
332 | it("let, array, multiple IDs #3", () => {
333 | // --- Arrange
334 | const wParser = new Parser("let [a,,b,] = expr;");
335 |
336 | // --- Act
337 | const stmts = wParser.parseStatements()!;
338 |
339 | // --- Assert
340 | expect(stmts.length).equal(1);
341 | const lst = stmts[0] as LetStatement;
342 | expect(lst.decls.length).equal(1);
343 | const decl = lst.decls[0];
344 | expect(decl.aDestr).not.equal(undefined);
345 | expect(decl.aDestr!.length).equal(3);
346 | let ad = decl.aDestr![0];
347 | expect(ad.id).equal("a");
348 | expect(ad.aDestr).equal(undefined);
349 | expect(ad.oDestr).equal(undefined);
350 | ad = decl.aDestr![1];
351 | expect(ad.id).equal(undefined);
352 | expect(ad.aDestr).equal(undefined);
353 | expect(ad.oDestr).equal(undefined);
354 | ad = decl.aDestr![2];
355 | expect(ad.id).equal("b");
356 | expect(ad.aDestr).equal(undefined);
357 | expect(ad.oDestr).equal(undefined);
358 | });
359 |
360 | it("let, array, single nested array #1", () => {
361 | // --- Arrange
362 | const wParser = new Parser("let [a, [b,c]] = expr;");
363 |
364 | // --- Act
365 | const stmts = wParser.parseStatements()!;
366 |
367 | // --- Assert
368 | expect(stmts.length).equal(1);
369 | const lst = stmts[0] as LetStatement;
370 | expect(lst.decls.length).equal(1);
371 | const decl = lst.decls[0];
372 | expect(decl.aDestr).not.equal(undefined);
373 | expect(decl.aDestr!.length).equal(2);
374 | let ad = decl.aDestr![0];
375 | expect(ad.id).equal("a");
376 | expect(ad.aDestr).equal(undefined);
377 | expect(ad.oDestr).equal(undefined);
378 | ad = decl.aDestr![1];
379 | expect(ad.id).equal(undefined);
380 | expect(ad.aDestr!.length).equal(2);
381 | expect(ad.oDestr).equal(undefined);
382 | ad = decl.aDestr![1].aDestr![0];
383 | expect(ad.id).equal("b");
384 | expect(ad.aDestr).equal(undefined);
385 | expect(ad.oDestr).equal(undefined);
386 | ad = decl.aDestr![1].aDestr![1];
387 | expect(ad.id).equal("c");
388 | expect(ad.aDestr).equal(undefined);
389 | expect(ad.oDestr).equal(undefined);
390 | });
391 |
392 | it("let, array, single nested array #2", () => {
393 | // --- Arrange
394 | const wParser = new Parser("let [[a,b], c] = expr;");
395 |
396 | // --- Act
397 | const stmts = wParser.parseStatements()!;
398 |
399 | // --- Assert
400 | expect(stmts.length).equal(1);
401 | const lst = stmts[0] as LetStatement;
402 | expect(lst.decls.length).equal(1);
403 | const decl = lst.decls[0];
404 | expect(decl.aDestr).not.equal(undefined);
405 | expect(decl.aDestr!.length).equal(2);
406 | let ad = decl.aDestr![0].aDestr![0];
407 | expect(ad.id).equal("a");
408 | expect(ad.aDestr).equal(undefined);
409 | expect(ad.oDestr).equal(undefined);
410 | ad = decl.aDestr![0].aDestr![1];
411 | expect(ad.id).equal("b");
412 | expect(ad.aDestr).equal(undefined);
413 | expect(ad.oDestr).equal(undefined);
414 | ad = decl.aDestr![1];
415 | expect(ad.id).equal("c");
416 | expect(ad.aDestr).equal(undefined);
417 | expect(ad.oDestr).equal(undefined);
418 | });
419 |
420 | it("let, array in object #1", () => {
421 | // --- Arrange
422 | const wParser = new Parser("let {a, b: [,c]} = expr;");
423 |
424 | // --- Act
425 | const stmts = wParser.parseStatements()!;
426 |
427 | // --- Assert
428 | expect(stmts.length).equal(1);
429 | const lst = stmts[0] as LetStatement;
430 | expect(lst.decls.length).equal(1);
431 | const decl = lst.decls[0];
432 | expect(decl.oDestr).not.equal(undefined);
433 | expect(decl.oDestr!.length).equal(2);
434 | let od = decl.oDestr![0];
435 | expect(od.id).equal("a");
436 | expect(od.alias).equal(undefined);
437 | expect(od.aDestr).equal(undefined);
438 | expect(od.oDestr).equal(undefined);
439 | od = decl.oDestr![1];
440 | expect(od.id).equal("b");
441 | expect(od.alias).equal(undefined);
442 | expect(od.aDestr!.length).equal(2);
443 | expect(od.oDestr).equal(undefined);
444 | let ad = od.aDestr![0];
445 | expect(ad.id).equal(undefined);
446 | expect(ad.aDestr).equal(undefined);
447 | expect(ad.oDestr).equal(undefined);
448 | ad = od.aDestr![1];
449 | expect(ad.id).equal("c");
450 | expect(ad.aDestr).equal(undefined);
451 | expect(ad.oDestr).equal(undefined);
452 | });
453 |
454 | it("let, object in array #1", () => {
455 | // --- Arrange
456 | const wParser = new Parser("let [a, {b, c}] = expr;");
457 |
458 | // --- Act
459 | const stmts = wParser.parseStatements()!;
460 |
461 | // --- Assert
462 | expect(stmts.length).equal(1);
463 | const lst = stmts[0] as LetStatement;
464 | expect(lst.decls.length).equal(1);
465 | const decl = lst.decls[0];
466 | expect(decl.aDestr!.length).equal(2);
467 | expect(decl.oDestr).equal(undefined);
468 | let ad = decl.aDestr![0];
469 | expect(ad.id).equal("a");
470 | expect(ad.aDestr).equal(undefined);
471 | expect(ad.oDestr).equal(undefined);
472 | ad = decl.aDestr![1];
473 | expect(ad.id).equal(undefined);
474 | expect(ad.aDestr).equal(undefined);
475 | expect(ad.oDestr!.length).equal(2);
476 | let od = ad.oDestr![0];
477 | expect(od.id).equal("b");
478 | expect(od.alias).equal(undefined);
479 | expect(od.aDestr).equal(undefined);
480 | expect(od.oDestr).equal(undefined);
481 | od = ad.oDestr![1];
482 | expect(od.id).equal("c");
483 | expect(od.alias).equal(undefined);
484 | expect(od.aDestr).equal(undefined);
485 | expect(od.oDestr).equal(undefined);
486 | });
487 |
488 | it("const, array in object #1", () => {
489 | // --- Arrange
490 | const wParser = new Parser("const {a, b: [,c]} = expr;");
491 |
492 | // --- Act
493 | const stmts = wParser.parseStatements()!;
494 |
495 | // --- Assert
496 | expect(stmts.length).equal(1);
497 | const lst = stmts[0] as ConstStatement;
498 | expect(lst.decls.length).equal(1);
499 | const decl = lst.decls[0];
500 | expect(decl.oDestr).not.equal(undefined);
501 | expect(decl.oDestr!.length).equal(2);
502 | let od = decl.oDestr![0];
503 | expect(od.id).equal("a");
504 | expect(od.alias).equal(undefined);
505 | expect(od.aDestr).equal(undefined);
506 | expect(od.oDestr).equal(undefined);
507 | od = decl.oDestr![1];
508 | expect(od.id).equal("b");
509 | expect(od.alias).equal(undefined);
510 | expect(od.aDestr!.length).equal(2);
511 | expect(od.oDestr).equal(undefined);
512 | let ad = od.aDestr![0];
513 | expect(ad.id).equal(undefined);
514 | expect(ad.aDestr).equal(undefined);
515 | expect(ad.oDestr).equal(undefined);
516 | ad = od.aDestr![1];
517 | expect(ad.id).equal("c");
518 | expect(ad.aDestr).equal(undefined);
519 | expect(ad.oDestr).equal(undefined);
520 | });
521 |
522 | it("const, object in array #1", () => {
523 | // --- Arrange
524 | const wParser = new Parser("const [a, {b, c}] = expr;");
525 |
526 | // --- Act
527 | const stmts = wParser.parseStatements()!;
528 |
529 | // --- Assert
530 | expect(stmts.length).equal(1);
531 | const lst = stmts[0] as ConstStatement;
532 | expect(lst.decls.length).equal(1);
533 | const decl = lst.decls[0];
534 | expect(decl.aDestr!.length).equal(2);
535 | expect(decl.oDestr).equal(undefined);
536 | let ad = decl.aDestr![0];
537 | expect(ad.id).equal("a");
538 | expect(ad.aDestr).equal(undefined);
539 | expect(ad.oDestr).equal(undefined);
540 | ad = decl.aDestr![1];
541 | expect(ad.id).equal(undefined);
542 | expect(ad.aDestr).equal(undefined);
543 | expect(ad.oDestr!.length).equal(2);
544 | let od = ad.oDestr![0];
545 | expect(od.id).equal("b");
546 | expect(od.alias).equal(undefined);
547 | expect(od.aDestr).equal(undefined);
548 | expect(od.oDestr).equal(undefined);
549 | od = ad.oDestr![1];
550 | expect(od.id).equal("c");
551 | expect(od.alias).equal(undefined);
552 | expect(od.aDestr).equal(undefined);
553 | expect(od.oDestr).equal(undefined);
554 | });
555 |
556 | it("let, object fails with no initialization", () => {
557 | // --- Arrange
558 | const wParser = new Parser("let {}");
559 |
560 | // --- Act/Assert
561 | try {
562 | wParser.parseStatements();
563 | } catch (err: any) {
564 | expect(err.toString().includes("=")).equal(true);
565 | return;
566 | }
567 | assert.fail("Exception expected");
568 | });
569 |
570 | it("let, array fails with no initialization", () => {
571 | // --- Arrange
572 | const wParser = new Parser("let []");
573 |
574 | // --- Act/Assert
575 | try {
576 | wParser.parseStatements();
577 | } catch (err: any) {
578 | expect(err.toString().includes("=")).equal(true);
579 | return;
580 | }
581 | assert.fail("Exception expected");
582 | });
583 | });
584 |
```
--------------------------------------------------------------------------------
/xmlui/src/components-core/loader/DataLoader.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import { useCallback, useEffect, useMemo, useRef } from "react";
2 | import toast from "react-hot-toast";
3 | import Papa from "papaparse";
4 |
5 | import type { RegisterComponentApiFn } from "../../abstractions/RendererDefs";
6 | import type {
7 | LoaderErrorFn,
8 | LoaderInProgressChangedFn,
9 | LoaderLoadedFn,
10 | TransformResultFn,
11 | } from "../abstractions/LoaderRenderer";
12 | import type { ComponentDef } from "../../abstractions/ComponentDefs";
13 | import type { ContainerState } from "../rendering/ContainerWrapper";
14 | import type { LoaderDirections } from "../loader/PageableLoader";
15 | import { createLoaderRenderer } from "../renderers";
16 | import RestApiProxy from "../RestApiProxy";
17 | import { extractParam } from "../utils/extractParam";
18 | import { DataLoaderQueryKeyGenerator } from "../utils/DataLoaderQueryKeyGenerator";
19 | import { PageableLoader } from "../loader/PageableLoader";
20 | import { Loader } from "../loader/Loader";
21 | import { useAppContext } from "../AppContext";
22 | import { useShallowCompareMemoize } from "../utils/hooks";
23 | import { useIndexerContext } from "../../components/App/IndexerContext";
24 | import { createMetadata, d } from "../../components/metadata-helpers";
25 | import { useApiInterceptorContext } from "../interception/useApiInterceptorContext";
26 |
27 | type LoaderProps = {
28 | loader: DataLoaderDef;
29 | state: ContainerState;
30 | registerComponentApi: RegisterComponentApiFn;
31 | onLoaded?: (...args: any[]) => void;
32 | onError?: (...args: any[]) => Promise<boolean>;
33 | loaderInProgressChanged: LoaderInProgressChangedFn;
34 | loaderIsRefetchingChanged: LoaderInProgressChangedFn;
35 | loaderLoaded: LoaderLoadedFn;
36 | loaderError: LoaderErrorFn;
37 | transformResult?: TransformResultFn;
38 | structuralSharing?: boolean;
39 | };
40 |
41 | function DataLoader({
42 | loader,
43 | state,
44 | registerComponentApi,
45 | onLoaded,
46 | onError,
47 | loaderInProgressChanged,
48 | loaderIsRefetchingChanged,
49 | loaderLoaded,
50 | loaderError,
51 | transformResult,
52 | structuralSharing = true,
53 | }: LoaderProps) {
54 | const appContext = useAppContext();
55 | const url = extractParam(state, loader.props.url, appContext);
56 | const queryParamsInner = useMemo(() => {
57 | return extractParam(state, loader.props.queryParams, appContext);
58 | }, [appContext, loader.props.queryParams, state]);
59 | const queryParams = useShallowCompareMemoize(queryParamsInner);
60 |
61 | const bodyInner = useMemo(() => {
62 | return extractParam(state, loader.props.body, appContext);
63 | }, [appContext, loader.props.body, state]);
64 | const body = useShallowCompareMemoize(bodyInner);
65 |
66 | const rawBodyInner = useMemo(() => {
67 | return extractParam(state, loader.props.rawBody, appContext);
68 | }, [appContext, loader.props.rawBody, state]);
69 | const rawBody = useShallowCompareMemoize(rawBodyInner);
70 |
71 | const pagingDirection: LoaderDirections | null = useMemo(() => {
72 | if (loader.props.prevPageSelector && loader.props.nextPageSelector) {
73 | return "BIDIRECTIONAL";
74 | }
75 | if (loader.props.prevPageSelector) {
76 | return "BACKWARD";
77 | }
78 | if (loader.props.nextPageSelector) {
79 | return "FORWARD";
80 | }
81 | return null;
82 | }, [loader.props.nextPageSelector, loader.props.prevPageSelector]);
83 |
84 | const hasPaging = pagingDirection !== null;
85 |
86 | const { apiInstance } = useApiInterceptorContext();
87 | const api = useMemo(() => {
88 | return new RestApiProxy(appContext, apiInstance);
89 | }, [apiInstance, appContext]);
90 |
91 | const doLoad = useCallback(
92 | async (abortSignal?: AbortSignal, pageParams?: any) => {
93 | // For CSV data type, handle directly rather than using RestApiProxy
94 | if (loader.props.dataType === "csv") {
95 | try {
96 | const method = extractParam(state, loader.props.method, appContext) || "GET";
97 | const headers = extractParam(state, loader.props.headers, appContext) || {};
98 |
99 | const fetchOptions: RequestInit = {
100 | method,
101 | headers,
102 | };
103 |
104 | if (abortSignal) {
105 | fetchOptions.signal = abortSignal;
106 | }
107 |
108 | if (rawBody) {
109 | fetchOptions.body = rawBody;
110 | }
111 |
112 | const response = await fetch(url, fetchOptions);
113 |
114 | if (!response.ok) {
115 | throw new Error(`Failed to fetch CSV: ${response.status} ${response.statusText}`);
116 | }
117 |
118 | const csvText = await response.text();
119 |
120 | return new Promise((resolve, reject) => {
121 | Papa.parse(csvText, {
122 | header: true,
123 | skipEmptyLines: true,
124 | complete: (results) => {
125 | if (results.errors && results.errors.length) {
126 | console.warn("CSV parsing warnings:", results.errors);
127 | const fatalErrors = results.errors.filter(() => true);
128 | if (fatalErrors.length) {
129 | reject(new Error(`CSV parsing error: ${fatalErrors[0].message}`));
130 | return;
131 | }
132 | }
133 | resolve(results.data);
134 | },
135 | error: (error) => {
136 | reject(error);
137 | },
138 | });
139 | });
140 | } catch (error) {
141 | console.error("Error loading CSV:", error);
142 | throw error;
143 | }
144 | } else if (loader.props.dataType === "sql") {
145 | try {
146 | //console.log("[SQL DataLoader] Starting SQL data load");
147 | // Extract SQL query from the body or rawBody
148 | let sqlQuery: string = "";
149 | let sqlParams: any[] = [];
150 |
151 | // Try to extract SQL query and parameters from body or rawBody
152 | if (body && typeof body === "object") {
153 | //console.log("[SQL DataLoader] Using body object:", body);
154 | sqlQuery = body.sql || "";
155 | sqlParams = body.params || [];
156 | } else if (rawBody) {
157 | //console.log("[SQL DataLoader] Using rawBody:", rawBody);
158 | try {
159 | const parsedBody = JSON.parse(rawBody);
160 | sqlQuery = parsedBody.sql || "";
161 | sqlParams = parsedBody.params || [];
162 | } catch (e) {
163 | // If rawBody is not valid JSON, use it as the SQL query
164 | //console.log("[SQL DataLoader] rawBody is not valid JSON, using as SQL query");
165 | sqlQuery = rawBody;
166 | }
167 | }
168 |
169 | //console.log("[SQL DataLoader] SQL Query:", sqlQuery);
170 | //console.log("[SQL DataLoader] SQL Params:", sqlParams);
171 |
172 | // If SQL query is empty, throw an error
173 | if (!sqlQuery) {
174 | //console.error("[SQL DataLoader] SQL query is empty");
175 | throw new Error("SQL query is required for SQL data type");
176 | }
177 |
178 | // Prepare request to /query endpoint
179 | const queryUrl = url || "/query";
180 | const method = extractParam(state, loader.props.method, appContext) || "POST";
181 | const headers = extractParam(state, loader.props.headers, appContext) || {
182 | "Content-Type": "application/json",
183 | };
184 |
185 | //console.log("[SQL DataLoader] Request URL:", queryUrl);
186 | //console.log("[SQL DataLoader] Request Method:", method);
187 | //console.log("[SQL DataLoader] Request Headers:", headers);
188 |
189 | const requestBody = JSON.stringify({
190 | sql: sqlQuery,
191 | params: sqlParams,
192 | });
193 |
194 | //console.log("[SQL DataLoader] Request Body:", requestBody);
195 |
196 | const fetchOptions: RequestInit = {
197 | method,
198 | headers,
199 | body: requestBody,
200 | };
201 |
202 | if (abortSignal) {
203 | fetchOptions.signal = abortSignal;
204 | }
205 |
206 | //console.log("[SQL DataLoader] Sending fetch request...");
207 | const response = await fetch(queryUrl, fetchOptions);
208 | //console.log("[SQL DataLoader] Response status:", response.status, response.statusText);
209 |
210 | if (!response.ok) {
211 | console.error(
212 | "[SQL DataLoader] Failed response:",
213 | response.status,
214 | response.statusText,
215 | );
216 | throw new Error(
217 | `Failed to execute SQL query: ${response.status} ${response.statusText}`,
218 | );
219 | }
220 |
221 | // Parse response as JSON
222 | const jsonResult = await response.json();
223 | //console.log("[SQL DataLoader] Response data:", jsonResult);
224 |
225 | // Check the structure of the response
226 | if (jsonResult && typeof jsonResult === "object") {
227 | //console.log("[SQL DataLoader] Response keys:", Object.keys(jsonResult));
228 |
229 | // If response has rows property, check if it's in expected format
230 | if (jsonResult.rows) {
231 | //console.log("[SQL DataLoader] Response has 'rows' property:", jsonResult.rows);
232 | //console.log("[SQL DataLoader] rows is array:", Array.isArray(jsonResult.rows));
233 | // if (Array.isArray(jsonResult.rows) && jsonResult.rows.length > 0) {
234 | // console.log("[SQL DataLoader] First row:", jsonResult.rows[0]);
235 | // }
236 |
237 | // Return rows directly for easier table rendering
238 | return jsonResult.rows;
239 | }
240 |
241 | // Check for other common SQL result formats
242 | if (jsonResult.results) {
243 | //console.log("[SQL DataLoader] Response has 'results' property");
244 | return jsonResult.results;
245 | }
246 | }
247 |
248 | return jsonResult;
249 | } catch (error) {
250 | console.error("Error executing SQL query:", error);
251 | throw error;
252 | }
253 | } else {
254 | return await api.execute({
255 | abortSignal,
256 | operation: loader.props as any,
257 | params: {
258 | ...state,
259 | $pageParams: pageParams,
260 | },
261 | resolveBindingExpressions: true,
262 | });
263 | }
264 | },
265 | [api, loader.props, state, url, body, rawBody, appContext],
266 | );
267 |
268 | const queryId = useMemo(() => {
269 | return new DataLoaderQueryKeyGenerator(
270 | url,
271 | queryParams,
272 | appContext?.appGlobals.apiUrl,
273 | body,
274 | rawBody,
275 | ).asKey();
276 | }, [appContext?.appGlobals.apiUrl, queryParams, url, body, rawBody]);
277 |
278 | const stateRef = useRef({ state, appContext });
279 | stateRef.current = { state, appContext };
280 |
281 | const loadingToastIdRef = useRef<string | undefined>(undefined);
282 | const inProgress: LoaderInProgressChangedFn = useCallback(
283 | (isInProgress) => {
284 | //console.log("[DataLoader] inProgress() called with isInProgress:", isInProgress);
285 | //console.log("[DataLoader] dataType:", loader.props.dataType);
286 |
287 | loaderInProgressChanged(isInProgress);
288 | //console.log("[DataLoader] After loaderInProgressChanged() call");
289 |
290 | const inProgressMessage = extractParam(
291 | stateRef.current.state,
292 | loader.props.inProgressNotificationMessage,
293 | stateRef.current.appContext,
294 | );
295 | if (isInProgress && inProgressMessage) {
296 | if (loadingToastIdRef.current) {
297 | toast.dismiss(loadingToastIdRef.current);
298 | }
299 | loadingToastIdRef.current = toast.loading(inProgressMessage);
300 | } else {
301 | if (loadingToastIdRef.current) {
302 | toast.dismiss(loadingToastIdRef.current);
303 | }
304 | }
305 | //console.log("[DataLoader] inProgress() completed");
306 | },
307 | [loader.props.inProgressNotificationMessage, loaderInProgressChanged],
308 | );
309 |
310 | const loaded: LoaderLoadedFn = useCallback(
311 | (data, pageInfo) => {
312 | // console.log("[DataLoader] loaded() called with data:", data);
313 | // console.log("[DataLoader] loaded() pageInfo:", pageInfo);
314 | // console.log("[DataLoader] loader.props.dataType:", loader.props.dataType);
315 |
316 | // if (loader.props.dataType === "sql") {
317 | // console.log("[SQL DataLoader] Processing SQL result data in loaded()");
318 | // console.log("[SQL DataLoader] Data type:", typeof data);
319 | // console.log("[SQL DataLoader] Is array:", Array.isArray(data));
320 | // if (data && typeof data === 'object') {
321 | // console.log("[SQL DataLoader] Data keys:", Object.keys(data));
322 | // }
323 | // }
324 |
325 | loaderLoaded(data, pageInfo);
326 | // console.log("[DataLoader] After loaderLoaded() call");
327 |
328 | const completedMessage = extractParam(
329 | {
330 | ...stateRef.current.state,
331 | $result: data,
332 | },
333 | loader.props.completedNotificationMessage,
334 | stateRef.current.appContext,
335 | );
336 | if (completedMessage) {
337 | toast.success(completedMessage, {
338 | id: loadingToastIdRef.current,
339 | });
340 | } else {
341 | if (loadingToastIdRef.current) {
342 | toast.dismiss(loadingToastIdRef.current);
343 | }
344 | }
345 | //console.log("[DataLoader] loaded() completed");
346 | },
347 | [loader.props.completedNotificationMessage, loaderLoaded],
348 | );
349 |
350 | const error: LoaderErrorFn = useCallback(
351 | async (error) => {
352 | loaderError(error);
353 | if (onError) {
354 | const result = await onError(error);
355 | if (result === false) {
356 | if (loadingToastIdRef.current) {
357 | toast.dismiss(loadingToastIdRef.current);
358 | }
359 | return;
360 | }
361 | }
362 | const errorMessage = extractParam(
363 | {
364 | ...stateRef.current.state,
365 | $error: error?.toString(),
366 | },
367 | loader.props.errorNotificationMessage,
368 | stateRef.current.appContext,
369 | );
370 | if (errorMessage) {
371 | toast.error(errorMessage, {
372 | id: loadingToastIdRef.current,
373 | });
374 | } else {
375 | if (loadingToastIdRef.current) {
376 | toast.dismiss(loadingToastIdRef.current);
377 | }
378 | }
379 | if (errorMessage === undefined) {
380 | appContext.signError(error as Error);
381 | }
382 | },
383 | [appContext, loader.props.errorNotificationMessage, loaderError, onError],
384 | );
385 |
386 | const pollIntervalInSeconds = extractParam(state, loader.props.pollIntervalInSeconds, appContext);
387 | return hasPaging ? (
388 | <PageableLoader
389 | queryId={queryId}
390 | key={queryId?.join("")}
391 | state={state}
392 | loader={loader}
393 | loaderInProgressChanged={inProgress}
394 | loaderIsRefetchingChanged={loaderIsRefetchingChanged}
395 | loaderLoaded={loaded}
396 | loaderError={error}
397 | loaderFn={doLoad}
398 | registerComponentApi={registerComponentApi}
399 | pollIntervalInSeconds={pollIntervalInSeconds}
400 | onLoaded={onLoaded}
401 | transformResult={transformResult}
402 | structuralSharing={structuralSharing}
403 | />
404 | ) : (
405 | <Loader
406 | queryId={queryId}
407 | key={queryId?.join("")}
408 | state={state}
409 | loader={loader}
410 | loaderInProgressChanged={inProgress}
411 | loaderIsRefetchingChanged={loaderIsRefetchingChanged}
412 | loaderLoaded={loaded}
413 | loaderError={error}
414 | loaderFn={doLoad}
415 | pollIntervalInSeconds={pollIntervalInSeconds}
416 | registerComponentApi={registerComponentApi}
417 | onLoaded={onLoaded}
418 | transformResult={transformResult}
419 | structuralSharing={structuralSharing}
420 | />
421 | );
422 | }
423 |
424 | export const DataLoaderMd = createMetadata({
425 | status: "stable",
426 | description: "This component manages data fetching from a web API",
427 | props: {
428 | method: d("The HTTP method to use"),
429 | url: d("The URL to fetch data from"),
430 | rawBody: d("The raw body of the request"),
431 | body: d("The body of the request to be sent as JSON"),
432 | queryParams: d("Query parameters to send with the request"),
433 | headers: d("Headers to send with the request"),
434 | pollIntervalInSeconds: d("The interval in seconds to poll the API for refreshing data"),
435 | resultSelector: d("An expression to extract the result from the response"),
436 | prevPageSelector: d("An expression to extract the previous page parameter from the response"),
437 | nextPageSelector: d("An expression to extract the next page parameter from the response"),
438 | inProgressNotificationMessage: d("The message to show when the loader is in progress"),
439 | completedNotificationMessage: d("The message to show when the loader completes"),
440 | errorNotificationMessage: d("The message to show when an error occurs"),
441 | transformResult: d("Function for transforming the datasource result"),
442 | dataType: d("Type of data to fetch (default: json, or csv, or sql)"),
443 | structuralSharing: d("Whether to use structural sharing for the data"),
444 | },
445 | events: {
446 | loaded: d("Event to trigger when the data is loaded"),
447 | error: d("This event fires when an error occurs while fetching data"),
448 | },
449 | });
450 |
451 | type DataLoaderDef = ComponentDef<typeof DataLoaderMd>;
452 |
453 | function IndexAwareDataLoader(props) {
454 | const { indexing } = useIndexerContext();
455 | if (indexing) {
456 | return null;
457 | }
458 | return <DataLoader {...props} />;
459 | }
460 |
461 | export const dataLoaderRenderer = createLoaderRenderer(
462 | "DataLoader",
463 | ({
464 | loader,
465 | state,
466 | loaderLoaded,
467 | loaderInProgressChanged,
468 | loaderIsRefetchingChanged,
469 | loaderError,
470 | registerComponentApi,
471 | lookupAction,
472 | lookupSyncCallback,
473 | extractValue,
474 | }) => {
475 | // --- Check for required properties
476 | if (!loader.props?.url || !loader.props.url.trim()) {
477 | throw new Error(
478 | "You must specify a non-empty (not whitespace-only) 'url' property for DataSource",
479 | );
480 | }
481 |
482 | return (
483 | <IndexAwareDataLoader
484 | loader={loader}
485 | state={state}
486 | loaderInProgressChanged={loaderInProgressChanged}
487 | loaderIsRefetchingChanged={loaderIsRefetchingChanged}
488 | loaderLoaded={loaderLoaded}
489 | loaderError={loaderError}
490 | registerComponentApi={registerComponentApi}
491 | transformResult={lookupSyncCallback(loader.props.transformResult)}
492 | onLoaded={lookupAction(loader.events?.loaded, { eventName: "loaded" })}
493 | onError={lookupAction(loader.events?.error, { eventName: "error" })}
494 | structuralSharing={extractValue.asOptionalBoolean(loader.props.structuralSharing)}
495 | />
496 | );
497 | },
498 | DataLoaderMd,
499 | );
500 |
```
--------------------------------------------------------------------------------
/docs/public/resources/images/rendering-engine/CompoundComponent.svg:
--------------------------------------------------------------------------------
```
1 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="781px" height="471px" viewBox="-0.5 -0.5 781 471" content="<mxfile><diagram id="wew9epbi863kDfVcliHD" name="Page-1">7Zpdk9ogFIZ/jbcdCX7ES1fd7UU70xmnX5dsggmzCBmCq/bXFwgoMdnV7mpSW71QzgFieJ9DOKAdOFluHgTK0s88xrQTdONNB047QRCCrnrXjm3h6I8GhSMRJC5cYO+Yk1/YOm2/ZEVinJcaSs6pJFnZGXHGcCRLPiQEX5ebLTgtf2uGElxxzCNEq97vJJap9YLBaF/xEZMktV8dBsOi4hFFT4ngK2a/j3GGi5olcpexY8xTFPO154KzDpwIzmVRWm4mmGpVnWJFv/sXane3LDCTp3To2duQWzdqHCsRrGluHN6lckmVBVQRb4j8ocrdD31r/dSWLU83vrF1BpNi63XS5k93PW3suxnL9YtRnuJ41zAea6bK5BlmheeeULrr6iIIKBHvcomE9B0Gh7mabl2VySqX85WIrBKBjTkkEmxbwcKlNfK6WWkfMF9iNQDVQGCKJHkuBxKy8Zjs2u3BqIJlU89p+ConLmTKE84Qne29x7GBE7H50DyGL2A7RqqC5gDdeUgN2iIFRmdC5c+vHbYjqECzqEoz9DzcQNgWOHszz4iu7EUnfJnpQZlPpgdySLY85nVKJJ5nyAxvrdbEMtmFEnbCKRemLwSPCGCt4oIz6fkX5mXUF/wJezXd7mA2vn9N3GcsJN68qputhQO7AtnFGTh77S11zpd6q1yv+36p4XGpp3jxPrUvoFGvQYn6FYm+5ioZUpMlxTqnwgvCiCScmaxIv62ELhOp35hxITNNlGQCPVJsMqWXAlkpIsv6laPPZgJ+CFsXoiRRT44pxQt9Ba0uUTnU2LqXJI7NI64O14mPjNOJ9foHUQ1qkI1qkMEzIBvURDWTiDAsWg/lXlgWJmhyuodVYQRG0oQzKhJ4J5MKb6QjWIuwj/ZOMKA6uIgqJLoQ2ceFq1B3sKvTUgmeqQ++qJ0v/2joHxIOqoRh70Kh7xbPK8tPY4KWXO/SvLwHXCZFdXmNn+s4Qs3nOhDeeL2BV2vbP3id+7+2eQ1b4xXeeL2BV2t7P3iuTfv/xWvUFi+Xx9x4/Qkv2Fq+0QM3Xm/gBdriBWq2bIcnNF/UJiuvYG18Y9viMZbL3z2VGI/x+zQ52FTmqiFhySdjTcPziAYODrZOPtk6y16xevq3385fnXJhk8oNK8pRzp9W2TiqPdn469WDNWcUl1Ov+kwr1JtvWTRBlOqfba9Qw1OfeGfRcFTRsDhgnqSEXuH07XUbFA9Wlwu8kQJF8pvxXJ96TS4bLhny1EMZubBopR84L6HgBZcPZe7/R2LqvL/pwNlv</diagram></mxfile>"><defs/><g><path d="M 400 120 L 400 42.24" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" stroke-dasharray="3 3" pointer-events="stroke"/><path d="M 406.5 54.12 L 400 41.12 L 393.5 54.12" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 400 160 L 400 240 L 437.76 240" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 425.88 246.5 L 438.88 240 L 425.88 233.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 320 140 L 162.24 140" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" stroke-dasharray="3 3" pointer-events="stroke"/><path d="M 174.12 133.5 L 161.12 140 L 174.12 146.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="320" y="120" width="160" height="40" fill="#1ba1e2" stroke="#006eaf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 140px; margin-left: 321px;"><div data-drawio-colors="color: #ffffff; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(255, 255, 255); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">CompoundComponent</div></div></div></foreignObject><text x="400" y="144" fill="#ffffff" font-family="Helvetica" font-size="12px" text-anchor="middle">CompoundComponent</text></switch></g><rect x="320" y="0" width="160" height="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 20px; margin-left: 321px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">CompoundComponentDef</div></div></div></foreignObject><text x="400" y="24" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">CompoundComponentDef</text></switch></g><rect x="410" y="70" width="190" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 188px; height: 1px; padding-top: 85px; margin-left: 412px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Uses the definition to turn it into a renderable component</div></div></div></foreignObject><text x="412" y="89" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">Uses the definition to turn it...</text></switch></g><rect x="440" y="220" width="160" height="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 240px; margin-left: 441px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Container</div></div></div></foreignObject><text x="520" y="244" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Container</text></switch></g><rect x="440" y="180" width="340" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 338px; height: 1px; padding-top: 195px; margin-left: 442px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Creates a container that wraps the <i>compound</i> prop of the definition</div></div></div></foreignObject><text x="442" y="199" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">Creates a container that wraps the compound prop of the...</text></switch></g><path d="M 80 160 L 80 215 L 106.29 215" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 215 L 112.79 221.5 L 106.29 215 L 112.79 208.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 80 160 L 80 255 L 106.29 255" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 255 L 112.79 261.5 L 106.29 255 L 112.79 248.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 80 160 L 80 295 L 106.29 295" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 295 L 112.79 301.5 L 106.29 295 L 112.79 288.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 80 160 L 80 335 L 106.29 335" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 335 L 112.79 341.5 L 106.29 335 L 112.79 328.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 80 160 L 80 375 L 106.29 375" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 375 L 112.79 381.5 L 106.29 375 L 112.79 368.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 80 160 L 80 415 L 106.29 415" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 415 L 112.79 421.5 L 106.29 415 L 112.79 408.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 80 160 L 80 455 L 106.29 455" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 119.29 455 L 112.79 461.5 L 106.29 455 L 112.79 448.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="0" y="120" width="160" height="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 140px; margin-left: 1px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">CompoundComponentProps</div></div></div></foreignObject><text x="80" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">CompoundComponentProps</text></switch></g><rect x="120" y="200" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 215px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">node</div></div></div></foreignObject><text x="130" y="219" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">node</text></switch></g><rect x="120" y="240" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 255px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">compound</div></div></div></foreignObject><text x="130" y="259" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">compound</text></switch></g><rect x="120" y="280" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 295px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">lookupAction</div></div></div></foreignObject><text x="130" y="299" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">lookupAction</text></switch></g><rect x="120" y="320" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 335px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">lookupSyncCallback</div></div></div></foreignObject><text x="130" y="339" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">lookupSyncCallback</text></switch></g><rect x="120" y="360" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 375px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">renderChild</div></div></div></foreignObject><text x="130" y="379" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">renderChild</text></switch></g><rect x="120" y="400" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 415px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">extractValue</div></div></div></foreignObject><text x="130" y="419" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">extractValue</text></switch></g><rect x="120" y="440" width="160" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-dasharray="3 3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 150px; height: 1px; padding-top: 455px; margin-left: 130px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">api</div></div></div></foreignObject><text x="130" y="459" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px">api</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
```
--------------------------------------------------------------------------------
/xmlui/src/components/DateInput/DateInput.module.scss:
--------------------------------------------------------------------------------
```scss
1 | @use "../../components-core/theming/themes" as t;
2 |
3 | // --- This code snippet is required to collect the theme variables used in this module
4 | $themeVars: ();
5 | @function createThemeVar($componentVariable) {
6 | $themeVars: t.appendThemeVar($themeVars, $componentVariable) !global;
7 | @return t.getThemeVar($themeVars, $componentVariable);
8 | }
9 |
10 | $componentName: "DateInput";
11 | $themeVars: t.composePaddingVars($themeVars, $componentName);
12 |
13 | // Compose standard Input theme variables automatically
14 | $themeVars: t.composePaddingVars($themeVars, $componentName);
15 | $themeVars: t.composeBorderVars($themeVars, $componentName);
16 |
17 | // --- DateInput specific theme variables
18 | $color-divider-DateInput: createThemeVar("color-divider-#{$componentName}");
19 | $spacing-divider-DateInput: createThemeVar("spacing-divider-#{$componentName}");
20 | $width-input-DateInput: createThemeVar("width-input-#{$componentName}");
21 | $minWidth-input-DateInput: createThemeVar("minWidth-input-#{$componentName}");
22 | $padding-input-DateInput: createThemeVar("padding-input-#{$componentName}");
23 | $textAlign-input-DateInput: createThemeVar("textAlign-input-#{$componentName}");
24 | $fontSize-input-DateInput: createThemeVar("fontSize-input-#{$componentName}");
25 | $borderRadius-input-DateInput: createThemeVar("borderRadius-input-#{$componentName}");
26 | $backgroundColor-input-DateInput-invalid: createThemeVar("backgroundColor-input-#{$componentName}-invalid");
27 | $padding-button-DateInput: createThemeVar("padding-button-#{$componentName}");
28 | $borderRadius-button-DateInput: createThemeVar("borderRadius-button-#{$componentName}");
29 | $hoverColor-button-DateInput: createThemeVar("hoverColor-button-#{$componentName}");
30 | $disabledColor-button-DateInput: createThemeVar("disabledColor-button-#{$componentName}");
31 | $outlineColor-button-DateInput--focused: createThemeVar("outlineColor-button-#{$componentName}--focused");
32 | $outlineWidth-button-DateInput--focused: createThemeVar("outlineWidth-button-#{$componentName}--focused");
33 | $outlineOffset-button-DateInput--focused: createThemeVar("outlineOffset-button-#{$componentName}--focused");
34 |
35 | // New theme variables for better theming
36 | $opacity-DateInput--disabled: createThemeVar("opacity-#{$componentName}--disabled");
37 | $backgroundColor-DateInput--hover: createThemeVar("backgroundColor-#{$componentName}--hover");
38 | $margin-input-DateInput: createThemeVar("margin-input-#{$componentName}");
39 | $transition-background-DateInput: createThemeVar("transition-background-#{$componentName}");
40 |
41 | // Variables for default variant
42 | $borderRadius-DateInput--default: createThemeVar("Input:borderRadius-#{$componentName}--default");
43 | $borderColor-DateInput--default: createThemeVar("Input:borderColor-#{$componentName}--default");
44 | $borderWidth-DateInput--default: createThemeVar("Input:borderWidth-#{$componentName}--default");
45 | $borderStyle-DateInput--default: createThemeVar("Input:borderStyle-#{$componentName}--default");
46 | $fontSize-input-DateInput--default: createThemeVar("fontSize-input-#{$componentName}--default");
47 | $backgroundColor-DateInput--default: createThemeVar("Input:backgroundColor-#{$componentName}--default");
48 | $boxShadow-DateInput--default: createThemeVar("Input:boxShadow-#{$componentName}--default");
49 | $textColor-DateInput--default: createThemeVar("Input:textColor-#{$componentName}--default");
50 | $borderColor-DateInput--default--hover: createThemeVar("Input:borderColor-#{$componentName}--default--hover");
51 | $backgroundColor-DateInput--default--hover: createThemeVar("Input:backgroundColor-#{$componentName}--default--hover");
52 | $boxShadow-DateInput--default--hover: createThemeVar("Input:boxShadow-#{$componentName}--default--hover");
53 | $textColor-DateInput--default--hover: createThemeVar("Input:textColor-#{$componentName}--default--hover");
54 | $borderColor-DateInput--default--focus: createThemeVar("Input:borderColor-#{$componentName}--default--focus");
55 | $backgroundColor-DateInput--default--focus: createThemeVar("Input:backgroundColor-#{$componentName}--default--focus");
56 | $boxShadow-DateInput--default--focus: createThemeVar("Input:boxShadow-#{$componentName}--default--focus");
57 | $textColor-DateInput--default--focus: createThemeVar("Input:textColor-#{$componentName}--default--focus");
58 | $outlineWidth-DateInput--default--focus: createThemeVar("Input:outlineWidth-#{$componentName}--default--focus");
59 | $outlineColor-DateInput--default--focus: createThemeVar("Input:outlineColor-#{$componentName}--default--focus");
60 | $outlineStyle-DateInput--default--focus: createThemeVar("Input:outlineStyle-#{$componentName}--default--focus");
61 | $outlineOffset-DateInput--default--focus: createThemeVar("Input:outlineOffset-#{$componentName}--default--focus");
62 | $color-adornment-DateInput--default: createThemeVar("Input:color-adornment-#{$componentName}--default");
63 |
64 | // Variables for error variant
65 | $borderRadius-DateInput--error: createThemeVar("Input:borderRadius-#{$componentName}--error");
66 | $borderColor-DateInput--error: createThemeVar("Input:borderColor-#{$componentName}--error");
67 | $borderWidth-DateInput--error: createThemeVar("Input:borderWidth-#{$componentName}--error");
68 | $borderStyle-DateInput--error: createThemeVar("Input:borderStyle-#{$componentName}--error");
69 | $fontSize-input-DateInput--error: createThemeVar("fontSize-input-#{$componentName}--error");
70 | $backgroundColor-DateInput--error: createThemeVar("Input:backgroundColor-#{$componentName}--error");
71 | $boxShadow-DateInput--error: createThemeVar("Input:boxShadow-#{$componentName}--error");
72 | $textColor-DateInput--error: createThemeVar("Input:textColor-#{$componentName}--error");
73 | $borderColor-DateInput--error--hover: createThemeVar("Input:borderColor-#{$componentName}--error--hover");
74 | $backgroundColor-DateInput--error--hover: createThemeVar("Input:backgroundColor-#{$componentName}--error--hover");
75 | $boxShadow-DateInput--error--hover: createThemeVar("Input:boxShadow-#{$componentName}--error--hover");
76 | $textColor-DateInput--error--hover: createThemeVar("Input:textColor-#{$componentName}--error--hover");
77 | $borderColor-DateInput--error--focus: createThemeVar("Input:borderColor-#{$componentName}--error--focus");
78 | $backgroundColor-DateInput--error--focus: createThemeVar("Input:backgroundColor-#{$componentName}--error--focus");
79 | $boxShadow-DateInput--error--focus: createThemeVar("Input:boxShadow-#{$componentName}--error--focus");
80 | $textColor-DateInput--error--focus: createThemeVar("Input:textColor-#{$componentName}--error--focus");
81 | $outlineWidth-DateInput--error--focus: createThemeVar("Input:outlineWidth-#{$componentName}--error--focus");
82 | $outlineColor-DateInput--error--focus: createThemeVar("Input:outlineColor-#{$componentName}--error--focus");
83 | $outlineStyle-DateInput--error--focus: createThemeVar("Input:outlineStyle-#{$componentName}--error--focus");
84 | $outlineOffset-DateInput--error--focus: createThemeVar("Input:outlineOffset-#{$componentName}--error--focus");
85 | $color-adornment-DateInput--error: createThemeVar("Input:color-adornment-#{$componentName}--error");
86 |
87 | // Variables for warning variant
88 | $borderRadius-DateInput--warning: createThemeVar("Input:borderRadius-#{$componentName}--warning");
89 | $borderColor-DateInput--warning: createThemeVar("Input:borderColor-#{$componentName}--warning");
90 | $borderWidth-DateInput--warning: createThemeVar("Input:borderWidth-#{$componentName}--warning");
91 | $borderStyle-DateInput--warning: createThemeVar("Input:borderStyle-#{$componentName}--warning");
92 | $fontSize-input-DateInput--warning: createThemeVar("fontSize-input-#{$componentName}--warning");
93 | $backgroundColor-DateInput--warning: createThemeVar("Input:backgroundColor-#{$componentName}--warning");
94 | $boxShadow-DateInput--warning: createThemeVar("Input:boxShadow-#{$componentName}--warning");
95 | $textColor-DateInput--warning: createThemeVar("Input:textColor-#{$componentName}--warning");
96 | $borderColor-DateInput--warning--hover: createThemeVar("Input:borderColor-#{$componentName}--warning--hover");
97 | $backgroundColor-DateInput--warning--hover: createThemeVar("Input:backgroundColor-#{$componentName}--warning--hover");
98 | $boxShadow-DateInput--warning--hover: createThemeVar("Input:boxShadow-#{$componentName}--warning--hover");
99 | $textColor-DateInput--warning--hover: createThemeVar("Input:textColor-#{$componentName}--warning--hover");
100 | $borderColor-DateInput--warning--focus: createThemeVar("Input:borderColor-#{$componentName}--warning--focus");
101 | $backgroundColor-DateInput--warning--focus: createThemeVar("Input:backgroundColor-#{$componentName}--warning--focus");
102 | $boxShadow-DateInput--warning--focus: createThemeVar("Input:boxShadow-#{$componentName}--warning--focus");
103 | $textColor-DateInput--warning--focus: createThemeVar("Input:textColor-#{$componentName}--warning--focus");
104 | $outlineWidth-DateInput--warning--focus: createThemeVar("Input:outlineWidth-#{$componentName}--warning--focus");
105 | $outlineColor-DateInput--warning--focus: createThemeVar("Input:outlineColor-#{$componentName}--warning--focus");
106 | $outlineStyle-DateInput--warning--focus: createThemeVar("Input:outlineStyle-#{$componentName}--warning--focus");
107 | $outlineOffset-DateInput--warning--focus: createThemeVar("Input:outlineOffset-#{$componentName}--warning--focus");
108 | $color-adornment-DateInput--warning: createThemeVar("Input:color-adornment-#{$componentName}--warning");
109 |
110 | // Variables for success variant
111 | $borderRadius-DateInput--success: createThemeVar("Input:borderRadius-#{$componentName}--success");
112 | $borderColor-DateInput--success: createThemeVar("Input:borderColor-#{$componentName}--success");
113 | $borderWidth-DateInput--success: createThemeVar("Input:borderWidth-#{$componentName}--success");
114 | $borderStyle-DateInput--success: createThemeVar("Input:borderStyle-#{$componentName}--success");
115 | $fontSize-input-DateInput--success: createThemeVar("fontSize-input-#{$componentName}--success");
116 | $backgroundColor-DateInput--success: createThemeVar("Input:backgroundColor-#{$componentName}--success");
117 | $boxShadow-DateInput--success: createThemeVar("Input:boxShadow-#{$componentName}--success");
118 | $textColor-DateInput--success: createThemeVar("Input:textColor-#{$componentName}--success");
119 | $borderColor-DateInput--success--hover: createThemeVar("Input:borderColor-#{$componentName}--success--hover");
120 | $backgroundColor-DateInput--success--hover: createThemeVar("Input:backgroundColor-#{$componentName}--success--hover");
121 | $boxShadow-DateInput--success--hover: createThemeVar("Input:boxShadow-#{$componentName}--success--hover");
122 | $textColor-DateInput--success--hover: createThemeVar("Input:textColor-#{$componentName}--success--hover");
123 | $borderColor-DateInput--success--focus: createThemeVar("Input:borderColor-#{$componentName}--success--focus");
124 | $backgroundColor-DateInput--success--focus: createThemeVar("Input:backgroundColor-#{$componentName}--success--focus");
125 | $boxShadow-DateInput--success--focus: createThemeVar("Input:boxShadow-#{$componentName}--success--focus");
126 | $textColor-DateInput--success--focus: createThemeVar("Input:textColor-#{$componentName}--success--focus");
127 | $outlineWidth-DateInput--success--focus: createThemeVar("Input:outlineWidth-#{$componentName}--success--focus");
128 | $outlineColor-DateInput--success--focus: createThemeVar("Input:outlineColor-#{$componentName}--success--focus");
129 | $outlineStyle-DateInput--success--focus: createThemeVar("Input:outlineStyle-#{$componentName}--success--focus");
130 | $outlineOffset-DateInput--success--focus: createThemeVar("Input:outlineOffset-#{$componentName}--success--focus");
131 | $color-adornment-DateInput--success: createThemeVar("Input:color-adornment-#{$componentName}--success");
132 |
133 | // Variables for @layer section
134 | $gap-adornment-DateInput: createThemeVar("Input:gap-adornment-#{$componentName}");
135 | $backgroundColor-DateInput--disabled: createThemeVar("Input:backgroundColor-#{$componentName}--disabled");
136 | $textColor-DateInput--disabled: createThemeVar("Input:textColor-#{$componentName}--disabled");
137 | $borderColor-DateInput--disabled: createThemeVar("Input:borderColor-#{$componentName}--disabled");
138 |
139 | // --- CSS properties of a particular DateInput variant
140 | @mixin variant($variantName) {
141 | border-radius: createThemeVar("Input:borderRadius-#{$componentName}--#{$variantName}");
142 | border-color: createThemeVar("Input:borderColor-#{$componentName}--#{$variantName}");
143 | border-width: createThemeVar("Input:borderWidth-#{$componentName}--#{$variantName}");
144 | border-style: createThemeVar("Input:borderStyle-#{$componentName}--#{$variantName}");
145 | background-color: createThemeVar("Input:backgroundColor-#{$componentName}--#{$variantName}");
146 | box-shadow: createThemeVar("Input:boxShadow-#{$componentName}--#{$variantName}");
147 | color: createThemeVar("Input:textColor-#{$componentName}--#{$variantName}");
148 | font-size: createThemeVar("Input:fontSize-#{$componentName}--#{$variantName}");
149 |
150 | &:hover {
151 | border-color: createThemeVar("Input:borderColor-#{$componentName}--#{$variantName}--hover");
152 | background-color: createThemeVar(
153 | "Input:backgroundColor-#{$componentName}--#{$variantName}--hover"
154 | );
155 | box-shadow: createThemeVar("Input:boxShadow-#{$componentName}--#{$variantName}--hover");
156 | color: createThemeVar("Input:textColor-#{$componentName}--#{$variantName}--hover");
157 | }
158 |
159 | &:focus-within {
160 | border-color: createThemeVar("Input:borderColor-#{$componentName}--#{$variantName}--focus");
161 | background-color: createThemeVar(
162 | "Input:backgroundColor-#{$componentName}--#{$variantName}--focus"
163 | );
164 | box-shadow: createThemeVar("Input:boxShadow-#{$componentName}--#{$variantName}--focus");
165 | color: createThemeVar("Input:textColor-#{$componentName}--#{$variantName}--focus");
166 | }
167 |
168 | &:has(.dateInputWrapper input:focus-visible) {
169 | outline-width: createThemeVar("Input:outlineWidth-#{$componentName}--#{$variantName}--focus");
170 | outline-color: createThemeVar("Input:outlineColor-#{$componentName}--#{$variantName}--focus");
171 | outline-style: createThemeVar("Input:outlineStyle-#{$componentName}--#{$variantName}--focus");
172 | outline-offset: createThemeVar("Input:outlineOffset-#{$componentName}--#{$variantName}--focus");
173 | }
174 |
175 | .adornment {
176 | color: createThemeVar("Input:color-adornment-#{$componentName}--#{$variantName}");
177 | }
178 | }
179 |
180 | @layer components {
181 | .dateInputWrapper {
182 | display: flex;
183 | align-items: center;
184 | width: fit-content;
185 | border-style: solid;
186 | border-width: 1px;
187 | transition: $transition-background-DateInput;
188 | overflow: hidden;
189 | gap: $gap-adornment-DateInput;
190 | @include t.paddingVars($themeVars, $componentName);
191 |
192 | &.disabled {
193 | opacity: $opacity-DateInput--disabled;
194 | pointer-events: none;
195 | }
196 |
197 | &.readOnly {
198 | .dateInputWrapper input {
199 | cursor: default;
200 | }
201 | }
202 |
203 | @include variant("default");
204 |
205 | &.error {
206 | @include variant("error");
207 | }
208 | &.warning {
209 | @include variant("warning");
210 | }
211 | &.valid {
212 | @include variant("success");
213 | }
214 |
215 | &:has(input:is(:disabled)) {
216 | cursor: not-allowed;
217 | background-color: $backgroundColor-DateInput--disabled;
218 | color: $textColor-DateInput--disabled;
219 | border-color: $borderColor-DateInput--disabled;
220 | }
221 |
222 | button {
223 | background: transparent;
224 | border: none;
225 | cursor: pointer;
226 | color: inherit;
227 | padding: $padding-button-DateInput;
228 | border-radius: $borderRadius-DateInput--default;
229 |
230 | &:hover {
231 | background-color: $backgroundColor-DateInput--hover;
232 | }
233 |
234 | &:focus {
235 | outline: 2px solid $outlineColor-DateInput--default--focus;
236 | outline-offset: 2px;
237 | }
238 |
239 | &:disabled {
240 | cursor: not-allowed;
241 | opacity: $opacity-DateInput--disabled;
242 | }
243 | }
244 | }
245 |
246 | // DateInput internal components styling
247 | .wrapper {
248 | display: flex;
249 | flex-grow: 0; // Don't grow to eliminate unused space
250 | flex-shrink: 0; // Don't shrink to maintain consistency
251 | }
252 |
253 | .inputGroup {
254 | display: flex;
255 | align-items: center;
256 | flex-grow: 0; // Don't grow to eliminate unused space
257 | flex-shrink: 0; // Don't shrink to maintain consistency
258 | min-width: 0; // Allow shrinking if needed
259 | gap: 0; // Remove gap since dividers handle spacing
260 | box-sizing: border-box;
261 | }
262 |
263 | .divider {
264 | padding: 0 0.25rem; // Increase horizontal spacing around dividers
265 | white-space: pre;
266 | display: inline-block;
267 | font: inherit;
268 | color: $color-divider-DateInput;
269 | }
270 |
271 | .input {
272 | min-width: $minWidth-input-DateInput;
273 | height: 100%;
274 | position: relative;
275 | padding: $padding-input-DateInput;
276 | border: 0;
277 | background: none;
278 | color: currentColor;
279 | font: inherit;
280 | font-size: inherit;
281 | box-sizing: content-box;
282 | border-radius: $borderRadius-input-DateInput;
283 | -webkit-appearance: textfield;
284 | -moz-appearance: textfield;
285 | appearance: textfield;
286 |
287 | // Consistent width for all date inputs (following TimeInput strategy)
288 | &.day,
289 | &.month,
290 | &.year {
291 | width: 2.5ch; // Uniform width following TimeInput pattern
292 | min-width: 2.5ch;
293 | max-width: 2.5ch;
294 | text-align: center;
295 | padding: $padding-input-DateInput !important;
296 | box-sizing: border-box !important;
297 | }
298 |
299 | &.year {
300 | width: 4.5ch;
301 | min-width: 4.5ch;
302 | max-width: 4.5ch;
303 | }
304 |
305 | // Hide spin buttons for number inputs
306 | &::-webkit-outer-spin-button,
307 | &::-webkit-inner-spin-button {
308 | -webkit-appearance: none !important;
309 | -moz-appearance: none !important;
310 | appearance: none !important;
311 | margin: 0 !important;
312 | display: none !important;
313 | }
314 |
315 | // Hide spin buttons for Firefox
316 | &[type="number"] {
317 | -moz-appearance: textfield !important;
318 | appearance: textfield !important;
319 | }
320 |
321 | &:invalid {
322 | background-color: $backgroundColor-input-DateInput-invalid;
323 | }
324 |
325 | &.invalid {
326 | background-color: $backgroundColor-input-DateInput-invalid;
327 | }
328 | }
329 | }
330 |
331 | // Export theme variables for consumption by the component definition
332 | :export {
333 | themeVars: t.json-stringify($themeVars);
334 | }
335 |
```