This is page 180 of 234. Use http://codebase.md/xmlui-org/xmlui?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ ├── config.json
│ ├── file-input-automatic-csv-json-parsing.md
│ ├── markdown-link-new-tab.md
│ ├── markdown-link-truncation.md
│ └── markdown-table-rowspan-colspan.md
├── .editorconfig
├── .eslintrc.cjs
├── .gitattributes
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog-optimized.yml
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs-preview.yml
│ ├── deploy-docs.yml
│ ├── deploy-standalone-playground.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests-fast.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .npmrc
├── .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
│ │ │ │ ├── cli-blog-header.svg
│ │ │ │ ├── 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-the-xmlui-cli.md
│ │ │ ├── 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
│ │ │ ├── icons
│ │ │ │ ├── github.svg
│ │ │ │ └── rss.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── staticwebapp.config.json
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── LinkButton.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ └── Separator.xmlui
│ │ ├── config.ts
│ │ └── Main.xmlui
│ └── 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
│ │ │ ├── ResponsiveBar.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
│ │ └── 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
│ │ │ ├── buffer-a-reactive-edit.md
│ │ │ ├── chain-a-refetch.md
│ │ │ ├── control-cache-invalidation.md
│ │ │ ├── copy-billing-to-shipping.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
│ │ │ ├── implement-an-authentication-gate.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
│ │ │ ├── set-width-for-input-fields-in-a-horizontal-layout.md
│ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ ├── update-ui-optimistically.md
│ │ │ ├── use-accessors-to-simplify-complex-expressions.md
│ │ │ ├── use-built-in-form-validation.md
│ │ │ ├── use-modal-dialog-onclose.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
│ │ ├── playground-and-codefence.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
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── 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
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── sample-broken.csv
│ │ │ │ ├── sample-broken.json
│ │ │ │ ├── sample-config.json
│ │ │ │ ├── sample-inventory.csv
│ │ │ │ ├── sample-products-semicolon.csv
│ │ │ │ ├── sample-products-tsv.tsv
│ │ │ │ ├── sample-products.csv
│ │ │ │ ├── sample-products.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── icons
│ │ │ │ ├── github.svg
│ │ │ │ └── rss.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
│ │ └── staticwebapp.config.json
│ ├── 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
│ │ │ ├── LinkButton.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── Separator.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── feature.md
├── 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
├── playground
│ ├── .gitignore
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── resources
│ │ │ ├── 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
│ │ │ ├── logo-dark.svg
│ │ │ └── logo.svg
│ │ ├── staticwebapp.config.json
│ │ └── web.config
│ ├── src
│ │ ├── 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
├── playwright.config.ts
├── README.md
├── test-alignment.xmlui
├── test-app-script-issue.xmlui
├── tools
│ ├── 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
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── 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
│ ├── 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
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── component-categorization.md
│ ├── component-metadata.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── conv-create-components.md
│ ├── conv-e2e-testing.md
│ ├── conv-unit-testing.md
│ ├── data-operations.md
│ ├── font-size.md
│ ├── form-design.md
│ ├── form-infrastructure-issues.md
│ ├── form-infrastructure.md
│ ├── glossary.md
│ ├── images
│ │ ├── condensed-layout-content-scroll-no-gutters-bottom.svg
│ │ ├── condensed-layout-content-scroll-no-gutters-no-overflow.svg
│ │ ├── condensed-layout-content-scroll-no-gutters-top.svg
│ │ ├── condensed-layout-content-scroll-with-gutters-bottom.svg
│ │ ├── condensed-layout-content-scroll-with-gutters-no-overflow.svg
│ │ ├── condensed-layout-content-scroll-with-gutters-top.svg
│ │ ├── condensed-layout-no-gutters-bottom.svg
│ │ ├── condensed-layout-no-gutters-mid.svg
│ │ ├── condensed-layout-no-gutters-top.svg
│ │ ├── condensed-layout-no-overflow.svg
│ │ ├── condensed-layout-with-gutters-bottom.svg
│ │ ├── condensed-layout-with-gutters-no-overflow.svg
│ │ ├── condensed-layout-with-gutters-top.svg
│ │ ├── condensed-sticky-content-scroll-no-gutters-bottom.svg
│ │ ├── condensed-sticky-content-scroll-no-gutters-no-overflow.svg
│ │ ├── condensed-sticky-content-scroll-no-gutters-top.svg
│ │ ├── condensed-sticky-content-scroll-with-gutters-bottom.svg
│ │ ├── condensed-sticky-content-scroll-with-gutters-no-overflow.svg
│ │ ├── condensed-sticky-content-scroll-with-gutters-top.svg
│ │ ├── condensed-sticky-layout-no-gutters-bottom.svg
│ │ ├── condensed-sticky-layout-no-gutters-top.svg
│ │ ├── condensed-sticky-layout-no-overflow.svg
│ │ ├── condensed-sticky-layout-with-gutters-bottom.svg
│ │ ├── condensed-sticky-layout-with-gutters-no-overflow.svg
│ │ ├── condensed-sticky-layout-with-gutters-top.svg
│ │ ├── desktop-layout-no-overflow.svg
│ │ ├── desktop-layout-overflow-bottom.svg
│ │ ├── desktop-layout-overflow-top.svg
│ │ ├── horizontal-layout-content-scroll-no-gutters-bottom.svg
│ │ ├── horizontal-layout-content-scroll-no-gutters-top.svg
│ │ ├── horizontal-layout-content-scroll-no-gutters.svg
│ │ ├── horizontal-layout-content-scroll-with-gutters-bottom.svg
│ │ ├── horizontal-layout-content-scroll-with-gutters-diagram.svg
│ │ ├── horizontal-layout-content-scroll-with-gutters-top.svg
│ │ ├── horizontal-layout-diagram.svg
│ │ ├── horizontal-layout-no-gutters-overflow-scrollbar-bottom.svg
│ │ ├── horizontal-layout-no-gutters-overflow-scrollbar-top.svg
│ │ ├── horizontal-layout-overflow-scrollbar-bottom.svg
│ │ ├── horizontal-layout-overflow-scrollbar-nogutter-bottom.svg
│ │ ├── horizontal-layout-overflow-scrollbar-nogutter-mid.svg
│ │ ├── horizontal-layout-overflow-scrollbar-top.svg
│ │ ├── horizontal-layout-with-gutters-diagram.svg
│ │ ├── horizontal-sticky-content-scroll-no-gutters-bottom.svg
│ │ ├── horizontal-sticky-content-scroll-no-gutters-top.svg
│ │ ├── horizontal-sticky-content-scroll-no-gutters.svg
│ │ ├── horizontal-sticky-content-scroll-with-gutters-bottom.svg
│ │ ├── horizontal-sticky-content-scroll-with-gutters-top.svg
│ │ ├── horizontal-sticky-content-scroll-with-gutters.svg
│ │ ├── horizontal-sticky-layout-overflow-bottom.svg
│ │ ├── horizontal-sticky-layout-overflow-top.svg
│ │ ├── horizontal-sticky-layout-with-gutters-bottom-scroll.svg
│ │ ├── horizontal-sticky-layout-with-gutters-mid-scroll.svg
│ │ ├── horizontal-sticky-layout-with-gutters-no-overflow.svg
│ │ ├── horizontal-sticky-layout-with-gutters-overflow-bottom.svg
│ │ ├── horizontal-sticky-layout-with-gutters-overflow-mid.svg
│ │ ├── horizontal-sticky-layout-with-gutters-overflow-top.svg
│ │ ├── horizontal-sticky-layout-with-gutters.svg
│ │ ├── horizontal-sticky-layout.svg
│ │ ├── vertical-full-header-content-scroll-no-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-content-scroll-no-gutters-overflow-top.svg
│ │ ├── vertical-full-header-content-scroll-no-gutters.svg
│ │ ├── vertical-full-header-content-scroll-with-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-content-scroll-with-gutters-overflow-top.svg
│ │ ├── vertical-full-header-content-scroll-with-gutters.svg
│ │ ├── vertical-full-header-layout-no-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-layout-no-gutters-overflow-top.svg
│ │ ├── vertical-full-header-layout-no-gutters.svg
│ │ ├── vertical-full-header-layout-with-gutters-overflow-bottom.svg
│ │ ├── vertical-full-header-layout-with-gutters-overflow-top.svg
│ │ ├── vertical-full-header-layout-with-gutters.svg
│ │ ├── vertical-layout-content-scroll-no-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-content-scroll-no-gutters-overflow-top.svg
│ │ ├── vertical-layout-content-scroll-no-gutters.svg
│ │ ├── vertical-layout-content-scroll-with-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-content-scroll-with-gutters-overflow-top.svg
│ │ ├── vertical-layout-content-scroll-with-gutters.svg
│ │ ├── vertical-layout-no-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-no-gutters-overflow-top.svg
│ │ ├── vertical-layout-no-gutters.svg
│ │ ├── vertical-layout-with-gutters-overflow-bottom.svg
│ │ ├── vertical-layout-with-gutters-overflow-top.svg
│ │ ├── vertical-layout-with-gutters.svg
│ │ ├── vertical-sticky-content-scroll-no-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-content-scroll-no-gutters-overflow-top.svg
│ │ ├── vertical-sticky-content-scroll-no-gutters.svg
│ │ ├── vertical-sticky-content-scroll-with-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-content-scroll-with-gutters-overflow-top.svg
│ │ ├── vertical-sticky-content-scroll-with-gutters.svg
│ │ ├── vertical-sticky-layout-no-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-layout-no-gutters-overflow-top.svg
│ │ ├── vertical-sticky-layout-no-gutters.svg
│ │ ├── vertical-sticky-layout-with-gutters-overflow-bottom.svg
│ │ ├── vertical-sticky-layout-with-gutters-overflow-top.svg
│ │ └── vertical-sticky-layout-with-gutters.svg
│ ├── index.md
│ ├── mcp-schizophrenia.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ └── working-with-code.md
│ ├── react-fundamentals.md
│ ├── refactoring-plan-eliminate-uses.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── theme-variables-refactoring.md
│ ├── theming-styling.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
│ │ ├── ApiDefs.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-layout-mobile.spec.ts
│ │ │ ├── App-layout.spec.ts
│ │ │ ├── app-refactor.md
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppNavigation.ts
│ │ │ ├── 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
│ │ │ ├── SearchIndexCollector.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
│ │ ├── Br
│ │ │ ├── Br.spec.ts
│ │ │ └── Br.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.spec.ts
│ │ │ └── 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
│ │ │ ├── FormBindingWrapper.tsx
│ │ │ ├── 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-styles.md
│ │ │ ├── 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.spec.ts
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── Part
│ │ │ └── Part.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
│ │ │ ├── ResponsiveBarItem.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── MultiSelectOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ ├── SelectNative.tsx
│ │ │ ├── SelectOption.tsx
│ │ │ └── SimpleSelect.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toast
│ │ │ ├── Toast.spec.ts
│ │ │ ├── Toast.tsx
│ │ │ └── ToastNative.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
│ │ │ ├── Tree.tsx
│ │ │ ├── TreeComponent.module.scss
│ │ │ └── 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
│ │ │ └── FormBindingBehavior.spec.ts
│ │ ├── 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
│ │ │ ├── appState.ts
│ │ │ ├── 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
│ │ │ ├── state-plan.md
│ │ │ ├── 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
│ │ ├── 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
│ └── 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
│ │ ├── rendering
│ │ │ └── ComponentAdapter.test.tsx
│ │ ├── 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-disabled.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
│ │ └── xmluiMarkupToComponent.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
│ ├── appstate.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
│ ├── init-cleanup-events.spec.ts
│ ├── inline-styles-disabled.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── script-var-override.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
└── vitest.setup.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/Table/TableNative.tsx:
--------------------------------------------------------------------------------
```typescript
1 | import type { CSSProperties, ReactNode } from "react";
2 | import {
3 | forwardRef,
4 | useCallback,
5 | useEffect,
6 | useLayoutEffect,
7 | useMemo,
8 | useRef,
9 | useState,
10 | } from "react";
11 | import { flushSync } from "react-dom";
12 | import type {
13 | CellContext,
14 | Column,
15 | ColumnDef,
16 | HeaderContext,
17 | PaginationState,
18 | Row,
19 | RowData,
20 | } from "@tanstack/react-table";
21 | import {
22 | flexRender,
23 | getCoreRowModel,
24 | getPaginationRowModel,
25 | useReactTable,
26 | } from "@tanstack/react-table";
27 | import { composeRefs } from "@radix-ui/react-compose-refs";
28 | import { useVirtualizer } from "@tanstack/react-virtual";
29 | import { orderBy } from "lodash-es";
30 | import classnames from "classnames";
31 |
32 | import styles from "./Table.module.scss";
33 |
34 | import "./react-table-config.d.ts";
35 | import type { RegisterComponentApiFn } from "../../abstractions/RendererDefs";
36 | import type { AsyncFunction } from "../../abstractions/FunctionDefs";
37 | import { EMPTY_ARRAY } from "../../components-core/constants";
38 | import { useEvent } from "../../components-core/utils/misc";
39 | import {
40 | useHasExplicitHeight,
41 | useIsomorphicLayoutEffect,
42 | usePrevious,
43 | useResizeObserver,
44 | useScrollParent,
45 | useStartMargin,
46 | } from "../../components-core/utils/hooks";
47 | import { useTheme } from "../../components-core/theming/ThemeContext";
48 | import { isThemeVarName } from "../../components-core/theming/transformThemeVars";
49 | import { Spinner } from "../Spinner/SpinnerNative";
50 | import { Toggle } from "../Toggle/Toggle";
51 | import { Icon } from "../Icon/IconNative";
52 | import { type OurColumnMetadata } from "../Column/TableContext";
53 | import useRowSelection from "./useRowSelection";
54 | import { PaginationNative, type Position } from "../Pagination/PaginationNative";
55 | import { Part } from "../Part/Part";
56 |
57 | // =====================================================================================================================
58 | // Helper types
59 |
60 | // --- Declaration merging, see here: https://tanstack.com/table/v8/docs/api/core/table#meta
61 | declare module "@tanstack/table-core" {
62 | // eslint-disable-next-line @typescript-eslint/no-unused-vars
63 | interface TableMeta<TData extends RowData> {
64 | cellRenderer: (...args: any[]) => any;
65 | }
66 |
67 | // eslint-disable-next-line @typescript-eslint/no-unused-vars
68 | interface ColumnMeta<TData extends RowData, TValue> {
69 | style?: CSSProperties;
70 | starSizedWidth?: string;
71 | accessorKey?: string;
72 | pinTo?: string;
73 | cellRenderer?: (row: any, rowIdx: number, colIdx: number, value?: any) => ReactNode;
74 | }
75 | }
76 |
77 | /**
78 | * This type describes an arbitraty table row that has an integer identifier and an order index.
79 | */
80 | type RowWithOrder = {
81 | /**
82 | * Order index; we use it with paging.
83 | */
84 | order: number;
85 |
86 | [x: string | number | symbol]: unknown;
87 | };
88 |
89 | type SortingDirection = "ascending" | "descending";
90 | export const TablePaginationControlsLocationValues = ["top", "bottom", "both"] as const;
91 | export type TablePaginationControlsLocation =
92 | (typeof TablePaginationControlsLocationValues)[number];
93 |
94 | export const CheckboxToleranceValues = ["none", "compact", "comfortable", "spacious"] as const;
95 | export type CheckboxTolerance = (typeof CheckboxToleranceValues)[number];
96 |
97 | // =====================================================================================================================
98 | // React Table component implementation
99 |
100 | type CellVerticalAlign = "top" | "center" | "bottom";
101 |
102 | type TableProps = {
103 | data: any[];
104 | columns?: OurColumnMetadata[];
105 | isPaginated?: boolean;
106 | loading?: boolean;
107 | headerHeight?: string | number;
108 | rowsSelectable?: boolean;
109 | enableMultiRowSelection?: boolean;
110 | initiallySelected?: string[];
111 | syncWithAppState?: any;
112 | pageSizeOptions?: number[];
113 | currentPageIndex?: number;
114 | pageSize?: number;
115 | paginationControlsLocation?: TablePaginationControlsLocation;
116 | rowDisabledPredicate?: (item: any) => boolean;
117 | rowUnselectablePredicate?: (item: any) => boolean;
118 | sortBy?: string;
119 | sortingDirection?: SortingDirection;
120 | iconSortAsc?: string;
121 | iconSortDesc?: string;
122 | iconNoSort?: string;
123 | sortingDidChange?: AsyncFunction;
124 | onSelectionDidChange?: AsyncFunction;
125 | willSort?: AsyncFunction;
126 | style?: CSSProperties;
127 | className?: string;
128 | uid?: string;
129 | noDataRenderer?: () => ReactNode;
130 | autoFocus?: boolean;
131 | hideHeader?: boolean;
132 | hideNoDataView?: boolean;
133 | alwaysShowSelectionHeader?: boolean;
134 | alwaysShowSortingIndicator?: boolean;
135 | alwaysShowPagination?: boolean;
136 | registerComponentApi: RegisterComponentApiFn;
137 | noBottomBorder?: boolean;
138 | cellVerticalAlign?: CellVerticalAlign;
139 | showPageInfo?: boolean;
140 | showPageSizeSelector?: boolean;
141 | showCurrentPage?: boolean;
142 | buttonRowPosition?: Position;
143 | pageSizeSelectorPosition?: Position;
144 | pageInfoPosition?: Position;
145 | checkboxTolerance?: CheckboxTolerance;
146 | };
147 |
148 | function defaultIsRowDisabled(_: any) {
149 | return false;
150 | }
151 |
152 | function defaultIsRowUnselectable(_: any) {
153 | return false;
154 | }
155 |
156 | const SELECT_COLUMN_WIDTH = 42;
157 |
158 | const DEFAULT_PAGE_SIZES = [10];
159 |
160 | /**
161 | * Maps checkbox tolerance values to pixel values
162 | * @param tolerance - The tolerance level
163 | * @returns The number of pixels for the tolerance
164 | */
165 | const getCheckboxTolerancePixels = (tolerance: CheckboxTolerance): number => {
166 | switch (tolerance) {
167 | case "none":
168 | return 0;
169 | case "compact":
170 | return 8;
171 | case "comfortable":
172 | return 12;
173 | case "spacious":
174 | return 16;
175 | default:
176 | return 8; // fallback to compact
177 | }
178 | };
179 |
180 | /**
181 | * Helper function to check if a point is within the checkbox boundary
182 | * @param pointX - X coordinate of the point to check
183 | * @param pointY - Y coordinate of the point to check
184 | * @param checkboxRect - Bounding rectangle of the checkbox
185 | * @param tolerancePixels - Number of pixels to extend the boundary
186 | * @returns true if the point is within the checkbox or within tolerancePixels of its boundary
187 | */
188 | const isWithinCheckboxBoundary = (
189 | pointX: number,
190 | pointY: number,
191 | checkboxRect: DOMRect,
192 | tolerancePixels: number,
193 | ): boolean => {
194 | // Calculate distance from point to checkbox boundaries
195 | const distanceToLeft = Math.abs(pointX - checkboxRect.left);
196 | const distanceToRight = Math.abs(pointX - checkboxRect.right);
197 | const distanceToTop = Math.abs(pointY - checkboxRect.top);
198 | const distanceToBottom = Math.abs(pointY - checkboxRect.bottom);
199 |
200 | // Check if point is within the checkbox bounds or within boundary pixels of any edge
201 | const withinHorizontalBounds = pointX >= checkboxRect.left && pointX <= checkboxRect.right;
202 | const withinVerticalBounds = pointY >= checkboxRect.top && pointY <= checkboxRect.bottom;
203 | const withinCheckbox = withinHorizontalBounds && withinVerticalBounds;
204 |
205 | const nearHorizontalBoundary =
206 | withinVerticalBounds &&
207 | (distanceToLeft <= tolerancePixels || distanceToRight <= tolerancePixels);
208 | const nearVerticalBoundary =
209 | withinHorizontalBounds &&
210 | (distanceToTop <= tolerancePixels || distanceToBottom <= tolerancePixels);
211 |
212 | return withinCheckbox || nearHorizontalBoundary || nearVerticalBoundary;
213 | };
214 |
215 | //These are the important styles to make sticky column pinning work!
216 | //Apply styles like this using your CSS strategy of choice with this kind of logic to head cells, data cells, footer cells, etc.
217 | //View the index.css file for more needed styles such as border-collapse: separate
218 | const getCommonPinningStyles = (column: Column<RowWithOrder>): CSSProperties => {
219 | const isPinned = column.getIsPinned();
220 | // const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
221 | // const isFirstRightPinnedColumn = isPinned === "right" && column.getIsFirstColumn("right");
222 |
223 | return {
224 | // boxShadow: isLastLeftPinnedColumn
225 | // ? "-4px 0 4px -4px gray inset"
226 | // : isFirstRightPinnedColumn
227 | // ? "4px 0 4px -4px gray inset"
228 | // : undefined,
229 | left: isPinned === "left" ? `${column.getStart("left")}px` : undefined,
230 | right: isPinned === "right" ? `${column.getAfter("right")}px` : undefined,
231 | opacity: isPinned ? 0.95 : undefined,
232 | position: isPinned ? "sticky" : "relative",
233 | backgroundColor: isPinned ? "inherit" : undefined,
234 | zIndex: isPinned ? 1 : undefined,
235 | };
236 | };
237 |
238 | // eslint-disable-next-line react/display-name
239 | export const Table = forwardRef(
240 | (
241 | {
242 | data = defaultProps.data,
243 | columns = defaultProps.columns,
244 | isPaginated,
245 | loading = defaultProps.loading,
246 | headerHeight,
247 | rowsSelectable = defaultProps.rowsSelectable,
248 | enableMultiRowSelection = defaultProps.enableMultiRowSelection,
249 | initiallySelected = defaultProps.initiallySelected,
250 | syncWithAppState,
251 | pageSizeOptions = defaultProps.pageSizeOptions,
252 | pageSize,
253 | currentPageIndex = 0,
254 | rowDisabledPredicate = defaultIsRowDisabled,
255 | rowUnselectablePredicate = defaultIsRowUnselectable,
256 | sortBy,
257 | sortingDirection = defaultProps.sortingDirection,
258 | iconSortAsc,
259 | iconSortDesc,
260 | iconNoSort,
261 | sortingDidChange,
262 | willSort,
263 | style,
264 | className,
265 | noDataRenderer,
266 | autoFocus = defaultProps.autoFocus,
267 | hideHeader = defaultProps.hideHeader,
268 | hideNoDataView = defaultProps.hideNoDataView,
269 | alwaysShowPagination,
270 | alwaysShowSelectionHeader = defaultProps.alwaysShowSelectionHeader,
271 | alwaysShowSortingIndicator = defaultProps.alwaysShowSortingIndicator,
272 | registerComponentApi,
273 | onSelectionDidChange,
274 | noBottomBorder = defaultProps.noBottomBorder,
275 | paginationControlsLocation = defaultProps.paginationControlsLocation,
276 | cellVerticalAlign = defaultProps.cellVerticalAlign,
277 | buttonRowPosition = defaultProps.buttonRowPosition,
278 | pageSizeSelectorPosition = defaultProps.pageSizeSelectorPosition,
279 | pageInfoPosition = defaultProps.pageInfoPosition,
280 | showCurrentPage = defaultProps.showCurrentPage,
281 | showPageInfo = defaultProps.showPageInfo,
282 | showPageSizeSelector = defaultProps.showPageSizeSelector,
283 | checkboxTolerance = defaultProps.checkboxTolerance,
284 | ...rest
285 | // cols
286 | }: TableProps,
287 | forwardedRef,
288 | ) => {
289 | const { getThemeVar } = useTheme();
290 | const safeData = Array.isArray(data) ? data : EMPTY_ARRAY;
291 | const wrapperRef = useRef<HTMLDivElement>(null);
292 | const ref = forwardedRef ? composeRefs(wrapperRef, forwardedRef) : wrapperRef;
293 | const tableRef = useRef<HTMLTableElement>(null);
294 | const estimatedHeightRef = useRef<number | null>(null);
295 |
296 | const effectivePageSize = pageSize ?? (pageSizeOptions?.[0] || DEFAULT_PAGE_SIZES[0]);
297 |
298 | const effectiveIsPaginated = useMemo(() => {
299 | if (isPaginated !== undefined) {
300 | return isPaginated;
301 | }
302 | if (pageSize !== undefined) {
303 | return safeData.length > effectivePageSize;
304 | }
305 | return defaultProps.isPaginated;
306 | }, [isPaginated, pageSize, safeData.length, effectivePageSize]);
307 |
308 | const safeColumns: OurColumnMetadata[] = useMemo(() => {
309 | if (columns) {
310 | return columns;
311 | }
312 | if (!safeData.length) {
313 | return EMPTY_ARRAY;
314 | }
315 | return Object.keys(safeData[0]).map((key: string) => ({ header: key, accessorKey: key }));
316 | }, [columns, safeData]);
317 |
318 | useEffect(() => {
319 | if (autoFocus) {
320 | wrapperRef.current!.focus();
321 | }
322 | }, [autoFocus]);
323 |
324 | // --- Keep track of visible table rows
325 | const [visibleItems, setVisibleItems] = useState<any[]>(EMPTY_ARRAY);
326 |
327 | // --- Track which row should show forced hover for checkbox
328 | const [hoveredRowId, setHoveredRowId] = useState<string | null>(null);
329 |
330 | // --- Track if the header checkbox should show forced hover
331 | const [headerCheckboxHovered, setHeaderCheckboxHovered] = useState<boolean>(false);
332 |
333 | // --- Calculate tolerance pixels from the prop
334 | const tolerancePixels = getCheckboxTolerancePixels(checkboxTolerance);
335 |
336 | // --- Get the operations to manage selected rows in a table
337 | const {
338 | toggleRow,
339 | checkAllRows,
340 | focusedIndex,
341 | onKeyDown,
342 | selectedRowIdMap,
343 | idKey,
344 | selectionApi,
345 | } = useRowSelection({
346 | items: safeData,
347 | visibleItems,
348 | rowsSelectable,
349 | enableMultiRowSelection,
350 | rowDisabledPredicate,
351 | rowUnselectablePredicate,
352 | onSelectionDidChange,
353 | initiallySelected,
354 | syncWithAppState,
355 | });
356 |
357 | // --- Create data with order information whenever the items in the table change
358 | const dataWithOrder = useMemo(() => {
359 | return safeData.map((item, index) => {
360 | return {
361 | ...item,
362 | order: index + 1,
363 | };
364 | });
365 | }, [safeData]);
366 |
367 | // --- Local or external sorting of data
368 | const [_sortBy, _setSortBy] = useState(sortBy);
369 | const [_sortingDirection, _setSortingDirection] = useState(sortingDirection);
370 |
371 | useLayoutEffect(() => {
372 | _setSortBy(sortBy);
373 | }, [sortBy]);
374 |
375 | useLayoutEffect(() => {
376 | _setSortingDirection(sortingDirection);
377 | }, [sortingDirection]);
378 |
379 | const sortedData = useMemo(() => {
380 | if (!_sortBy) {
381 | return dataWithOrder;
382 | }
383 | return orderBy(dataWithOrder, _sortBy, _sortingDirection === "ascending" ? "asc" : "desc");
384 | }, [_sortBy, _sortingDirection, dataWithOrder]);
385 |
386 | const _updateSorting = useCallback(
387 | async (accessorKey: string) => {
388 | let newDirection: SortingDirection = "ascending";
389 | let newSortBy = accessorKey;
390 | // The current key is the same as the last -> the user clicked on the same header twice
391 | if (_sortBy === accessorKey) {
392 | // The last sorting direction was ascending -> make it descending
393 | if (_sortingDirection === "ascending") {
394 | newDirection = "descending";
395 | // The last sorting direction was descending -> remove the sorting from the current key
396 | } else {
397 | newSortBy = undefined;
398 | }
399 | }
400 |
401 | // --- Check if sorting is allowed
402 | const result = await willSort?.(newSortBy, newDirection);
403 | if (result === false) {
404 | return;
405 | }
406 |
407 | _setSortingDirection(newDirection);
408 | _setSortBy(newSortBy);
409 |
410 | // External callback function is always called.
411 | // Even if sorting is internal, we can notify other components through this callback
412 | sortingDidChange?.(newSortBy, newDirection);
413 | },
414 | [_sortBy, willSort, sortingDidChange, _sortingDirection],
415 | );
416 |
417 | // --- Prepare column renderers according to columns defined in the table
418 | const columnsWithCustomCell: ColumnDef<any>[] = useMemo(() => {
419 | return safeColumns.map((col, idx) => {
420 | // --- Obtain column width information
421 | const { width, starSizedWidth } = getColumnWidth(col.width, true, "width");
422 | const { width: minWidth } = getColumnWidth(col.minWidth, false, "minWidth");
423 | const { width: maxWidth } = getColumnWidth(col.maxWidth, false, "maxWidth");
424 |
425 | const customColumn = {
426 | ...col,
427 | header: col.header ?? col.accessorKey ?? " ",
428 | id: "col_" + idx,
429 | size: width,
430 | minSize: minWidth,
431 | maxSize: maxWidth,
432 | enableResizing: col.canResize,
433 | enableSorting: col.canSort && !!col.accessorKey,
434 | enablePinning: col.pinTo !== undefined,
435 | meta: {
436 | starSizedWidth,
437 | pinTo: col.pinTo,
438 | style: col.style,
439 | className: col.className,
440 | accessorKey: col.accessorKey,
441 | cellRenderer: col.cellRenderer,
442 | },
443 | };
444 | return customColumn;
445 |
446 | function getColumnWidth(
447 | colWidth: any,
448 | allowStarSize: boolean,
449 | propName: string,
450 | ): { width?: number; starSizedWidth?: string } {
451 | let starSizedWidth: string;
452 | let width: number;
453 | const resolvedWidth = isThemeVarName(colWidth) ? getThemeVar(colWidth) : colWidth;
454 | if (typeof resolvedWidth === "number") {
455 | width = resolvedWidth;
456 | } else if (typeof resolvedWidth === "string") {
457 | const oneStarSizedWidthMatch = resolvedWidth.match(/^\s*\*\s*$/);
458 | if (allowStarSize && oneStarSizedWidthMatch) {
459 | starSizedWidth = "1*";
460 | } else {
461 | const starSizedWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*\*\s*$/);
462 | if (allowStarSize && starSizedWidthMatch) {
463 | starSizedWidth = starSizedWidthMatch[1] + "*";
464 | } else {
465 | const pixelWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*(px)?\s*$/);
466 | if (pixelWidthMatch) {
467 | width = Number(pixelWidthMatch[1]);
468 | } else {
469 | throw new Error(`Invalid TableColumnDef '${propName}' value: ${resolvedWidth}`);
470 | }
471 | }
472 | }
473 | }
474 | if (width === undefined && starSizedWidth === undefined && allowStarSize) {
475 | starSizedWidth = "1*";
476 | }
477 | return { width, starSizedWidth };
478 | }
479 | });
480 | }, [getThemeVar, safeColumns]);
481 |
482 | // --- Prepare column renderers according to columns defined in the table supporting optional row selection
483 | const columnsWithSelectColumn: ColumnDef<any>[] = useMemo(() => {
484 | // --- Extend the columns with a selection checkbox (indeterminate)
485 | const selectColumn = {
486 | id: "select",
487 | size: SELECT_COLUMN_WIDTH,
488 | enableResizing: false,
489 | enablePinning: true,
490 | meta: {
491 | pinTo: "left",
492 | },
493 | header: ({ table }: HeaderContext<any, unknown>) =>
494 | enableMultiRowSelection ? (
495 | <Toggle
496 | {...{
497 | className: classnames(styles.checkBoxWrapper, {
498 | [styles.showInHeader]: alwaysShowSelectionHeader,
499 | [styles.forceHoverWrapper]: headerCheckboxHovered,
500 | }),
501 | value: table.getIsAllRowsSelected(),
502 | indeterminate: table.getIsSomeRowsSelected(),
503 | forceHover: headerCheckboxHovered,
504 | onDidChange: () => {
505 | const allSelected = table
506 | .getRowModel()
507 | .rows.every(
508 | (row) =>
509 | rowDisabledPredicate(row.original) ||
510 | rowUnselectablePredicate(row.original) ||
511 | row.getIsSelected(),
512 | );
513 | checkAllRows(!allSelected);
514 | },
515 | }}
516 | />
517 | ) : null,
518 | cell: ({ row }: CellContext<any, unknown>) => {
519 | return <>
520 | {row.getCanSelect() &&
521 | <Toggle
522 | {...{
523 | className: classnames(styles.checkBoxWrapper, {
524 | [styles.forceHoverWrapper]: hoveredRowId === row.id,
525 | }),
526 | value: row.getIsSelected(),
527 | indeterminate: row.getIsSomeSelected(),
528 | forceHover: hoveredRowId === row.id,
529 | onDidChange: () => {
530 | // In single selection mode, allow deselection by checking if already selected
531 | if (!enableMultiRowSelection && row.getIsSelected()) {
532 | checkAllRows(false); // Deselect all (which is just this one row)
533 | } else {
534 | toggleRow(row.original, { metaKey: true });
535 | }
536 | },
537 | }}
538 | />}
539 | </>;
540 | },
541 | };
542 | return rowsSelectable ? [selectColumn, ...columnsWithCustomCell] : columnsWithCustomCell;
543 | }, [
544 | rowsSelectable,
545 | columnsWithCustomCell,
546 | enableMultiRowSelection,
547 | alwaysShowSelectionHeader,
548 | checkAllRows,
549 | toggleRow,
550 | rowDisabledPredicate,
551 | rowUnselectablePredicate,
552 | hoveredRowId,
553 | headerCheckboxHovered,
554 | ]);
555 |
556 | // --- Set up page information (using the first page size option)
557 | const [pagination, setPagination] = useState<PaginationState>({
558 | pageSize: effectiveIsPaginated ? effectivePageSize : Number.MAX_VALUE,
559 | pageIndex: currentPageIndex,
560 | });
561 |
562 | const prevIsPaginated = usePrevious(effectiveIsPaginated);
563 |
564 | useEffect(() => {
565 | if (!prevIsPaginated && effectiveIsPaginated) {
566 | setPagination((prev) => {
567 | return {
568 | ...prev,
569 | pageSize: effectivePageSize,
570 | pageIndex: 0,
571 | };
572 | });
573 | }
574 | if (prevIsPaginated && !effectiveIsPaginated) {
575 | setPagination(() => {
576 | return {
577 | pageIndex: 0,
578 | pageSize: Number.MAX_VALUE,
579 | };
580 | });
581 | }
582 | }, [effectiveIsPaginated, pageSizeOptions, prevIsPaginated, effectivePageSize]);
583 |
584 | const [columnSizing, setColumnSizing] = useState<Record<string, number>>({});
585 |
586 | const columnPinning = useMemo(() => {
587 | const left: Array<string> = [];
588 | const right: Array<string> = [];
589 | columnsWithSelectColumn.forEach((col) => {
590 | if (col.meta?.pinTo === "right") {
591 | right.push(col.id!);
592 | }
593 | if (col.meta?.pinTo === "left") {
594 | left.push(col.id!);
595 | }
596 | });
597 | return {
598 | left,
599 | right,
600 | };
601 | }, [columnsWithSelectColumn]);
602 |
603 | // --- Memoize the row selection predicate to ensure it's stable across renders
604 | const enableRowSelectionFn = useCallback(
605 | (row: Row<RowWithOrder>) => {
606 | return rowsSelectable && !rowUnselectablePredicate(row.original);
607 | },
608 | [rowUnselectablePredicate, rowsSelectable],
609 | );
610 |
611 | // --- Use the @tanstack/core-table component that manages a table
612 | const table = useReactTable<RowWithOrder>({
613 | columns: columnsWithSelectColumn,
614 | data: sortedData,
615 | getCoreRowModel: getCoreRowModel(),
616 | getPaginationRowModel: effectiveIsPaginated ? getPaginationRowModel() : undefined,
617 | enableRowSelection: enableRowSelectionFn,
618 | enableMultiRowSelection,
619 | columnResizeMode: "onChange",
620 | getRowId: useCallback(
621 | (originalRow: any) => {
622 | return originalRow[idKey] + "";
623 | },
624 | [idKey],
625 | ),
626 | state: useMemo(
627 | () => ({
628 | pagination,
629 | rowSelection: selectedRowIdMap,
630 | columnSizing,
631 | columnPinning,
632 | }),
633 | [columnPinning, columnSizing, pagination, selectedRowIdMap],
634 | ),
635 | onColumnSizingChange: setColumnSizing,
636 | onPaginationChange: setPagination,
637 | });
638 |
639 | // --- Select the set of visible rows whenever the table rows change
640 | const rows = table.getRowModel().rows;
641 | useEffect(() => {
642 | setVisibleItems(rows.map((row) => row.original));
643 | }, [rows]);
644 |
645 | const scrollParent = useScrollParent(wrapperRef.current?.parentElement);
646 | const scrollRef = useRef(scrollParent);
647 | scrollRef.current = scrollParent;
648 |
649 | const hasHeight = useHasExplicitHeight(wrapperRef);
650 |
651 | const hasOutsideScroll = scrollRef.current && !hasHeight;
652 |
653 | const startMargin = useStartMargin(hasOutsideScroll, wrapperRef, scrollRef);
654 |
655 | const rowVirtualizer = useVirtualizer({
656 | count: rows.length,
657 | getScrollElement: useCallback(() => {
658 | return hasOutsideScroll && scrollRef?.current ? scrollRef?.current : wrapperRef.current;
659 | }, [scrollRef, hasOutsideScroll]),
660 | scrollMargin: startMargin,
661 | estimateSize: useCallback(() => {
662 | return estimatedHeightRef.current || 30;
663 | }, []),
664 | overscan: 5,
665 | });
666 |
667 | const paddingTop =
668 | rowVirtualizer.getVirtualItems().length > 0
669 | ? rowVirtualizer.getVirtualItems()?.[0]?.start - startMargin || 0
670 | : 0;
671 | const paddingBottom =
672 | rowVirtualizer.getVirtualItems().length > 0
673 | ? rowVirtualizer.getTotalSize() -
674 | (rowVirtualizer.getVirtualItems()?.[rowVirtualizer.getVirtualItems().length - 1]?.end -
675 | startMargin || 0)
676 | : 0;
677 |
678 | const hasData = safeData.length !== 0;
679 |
680 | const touchedSizesRef = useRef<Record<string, boolean>>({});
681 | const columnSizeTouched = useCallback((id: string) => {
682 | touchedSizesRef.current[id] = true;
683 | }, []);
684 |
685 | const recalculateStarSizes = useEvent(() => {
686 | if (!tableRef.current) {
687 | return;
688 | }
689 | let availableWidth = tableRef.current.clientWidth - 1;
690 | // -1 to prevent horizontal scroll in scaled browsers (when you zoom in)
691 | const widths: Record<string, number> = {};
692 | const columnsWithoutSize: Array<Column<RowWithOrder>> = [];
693 | const numberOfUnitsById: Record<string, number> = {};
694 |
695 | table.getAllColumns().forEach((column) => {
696 | if (column.columnDef.size !== undefined || touchedSizesRef.current[column.id]) {
697 | availableWidth -= columnSizing[column.id] || column.columnDef.size || 0;
698 | } else {
699 | columnsWithoutSize.push(column);
700 | let units: number;
701 | if (column.columnDef.meta?.starSizedWidth) {
702 | units = Number(column.columnDef.meta?.starSizedWidth.replace("*", "").trim()) || 1;
703 | } else {
704 | units = 1;
705 | }
706 | numberOfUnitsById[column.id] = units;
707 | }
708 | });
709 | const numberOfAllUnits = Object.values(numberOfUnitsById).reduce((acc, val) => acc + val, 0);
710 | columnsWithoutSize.forEach((column) => {
711 | widths[column.id] = Math.floor(
712 | availableWidth * (numberOfUnitsById[column.id] / numberOfAllUnits),
713 | );
714 | });
715 | flushSync(() => {
716 | setColumnSizing((prev) => {
717 | return {
718 | ...prev,
719 | ...widths,
720 | };
721 | });
722 | });
723 | });
724 |
725 | useResizeObserver(tableRef, recalculateStarSizes);
726 |
727 | useIsomorphicLayoutEffect(() => {
728 | queueMicrotask(() => {
729 | recalculateStarSizes();
730 | });
731 | }, [recalculateStarSizes, safeColumns]);
732 |
733 | useIsomorphicLayoutEffect(() => {
734 | registerComponentApi(selectionApi);
735 | }, [registerComponentApi, selectionApi]);
736 |
737 | const paginationControls = (
738 | <PaginationNative
739 | pageIndex={pagination.pageIndex}
740 | pageSize={pagination.pageSize}
741 | itemCount={safeData.length}
742 | pageSizeOptions={pageSizeOptions}
743 | onPageDidChange={(page) => table.setPageIndex(page)}
744 | onPageSizeDidChange={(size) => table.setPageSize(size)}
745 | showCurrentPage={showCurrentPage}
746 | showPageInfo={showPageInfo}
747 | showPageSizeSelector={showPageSizeSelector}
748 | buttonRowPosition={buttonRowPosition}
749 | pageInfoPosition={pageInfoPosition}
750 | pageSizeSelectorPosition={pageSizeSelectorPosition}
751 | />
752 | );
753 |
754 | const shouldShowPagination = useMemo(() => {
755 | if (alwaysShowPagination !== undefined) {
756 | return alwaysShowPagination;
757 | }
758 | if (!effectiveIsPaginated || !hasData || rows.length === 0 || !pagination) {
759 | return false;
760 | }
761 | return table.getPageCount() > 1;
762 | }, [effectiveIsPaginated, hasData, rows.length, pagination, alwaysShowPagination, table]);
763 |
764 | return (
765 | <div
766 | {...rest}
767 | className={classnames(styles.wrapper, className, { [styles.noScroll]: hasOutsideScroll })}
768 | tabIndex={-1}
769 | onKeyDown={onKeyDown}
770 | ref={ref}
771 | style={style}
772 | >
773 | {shouldShowPagination &&
774 | (paginationControlsLocation === "top" || paginationControlsLocation === "both") &&
775 | paginationControls}
776 |
777 | <table className={styles.table} ref={tableRef}>
778 | {!hideHeader && (
779 | <thead style={{ height: headerHeight }} className={styles.headerWrapper}>
780 | {table.getHeaderGroups().map((headerGroup, headerGroupIndex) => (
781 | <tr
782 | key={`${headerGroup.id}-${headerGroupIndex}`}
783 | className={classnames(styles.headerRow, {
784 | [styles.allSelected]: table.getIsAllRowsSelected(),
785 | })}
786 | onClick={(event) => {
787 | const target = event.target as HTMLElement;
788 | const headerCell = target.closest("th");
789 |
790 | // Only handle clicks for the select column header
791 | if (headerCell && rowsSelectable && enableMultiRowSelection) {
792 | const header = headerGroup.headers.find((h) => {
793 | const headerElement = headerCell;
794 | return (
795 | headerElement?.getAttribute("data-column-id") === h.id ||
796 | h.id === "select"
797 | );
798 | });
799 |
800 | if (header && header.id === "select") {
801 | const clickX = event.clientX;
802 | const clickY = event.clientY;
803 | const checkbox = headerCell.querySelector(
804 | 'input[type=\"checkbox\"]',
805 | ) as HTMLInputElement;
806 |
807 | if (checkbox) {
808 | const checkboxRect = checkbox.getBoundingClientRect();
809 |
810 | if (
811 | isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)
812 | ) {
813 | // Prevent the default click and manually trigger the checkbox
814 | event.preventDefault();
815 | event.stopPropagation();
816 |
817 | const allSelected = table
818 | .getRowModel()
819 | .rows.every(
820 | (row) =>
821 | rowDisabledPredicate(row.original) ||
822 | rowUnselectablePredicate(row.original) ||
823 | row.getIsSelected(),
824 | );
825 | checkAllRows(!allSelected);
826 | }
827 | }
828 | }
829 | }
830 | }}
831 | onMouseMove={(event) => {
832 | if (rowsSelectable && enableMultiRowSelection) {
833 | const target = event.target as HTMLElement;
834 | const headerCell = target.closest("th");
835 |
836 | if (headerCell) {
837 | const header = headerGroup.headers.find((h) => {
838 | const headerElement = headerCell;
839 | return (
840 | headerElement?.getAttribute("data-column-id") === h.id ||
841 | h.id === "select"
842 | );
843 | });
844 |
845 | if (header && header.id === "select") {
846 | const mouseX = event.clientX;
847 | const mouseY = event.clientY;
848 | const checkbox = headerCell.querySelector(
849 | 'input[type=\"checkbox\"]',
850 | ) as HTMLInputElement;
851 |
852 | if (checkbox) {
853 | const checkboxRect = checkbox.getBoundingClientRect();
854 | const shouldShowHover = isWithinCheckboxBoundary(
855 | mouseX,
856 | mouseY,
857 | checkboxRect,
858 | tolerancePixels,
859 | );
860 |
861 | if (shouldShowHover && !headerCheckboxHovered) {
862 | setHeaderCheckboxHovered(true);
863 | event.currentTarget.style.cursor = "pointer";
864 | } else if (!shouldShowHover && headerCheckboxHovered) {
865 | setHeaderCheckboxHovered(false);
866 | event.currentTarget.style.cursor = "";
867 | }
868 | }
869 | } else if (headerCheckboxHovered) {
870 | setHeaderCheckboxHovered(false);
871 | event.currentTarget.style.cursor = "";
872 | }
873 | }
874 | }
875 | }}
876 | onMouseLeave={(event) => {
877 | if (headerCheckboxHovered) {
878 | setHeaderCheckboxHovered(false);
879 | event.currentTarget.style.cursor = "";
880 | }
881 | }}
882 | >
883 | {headerGroup.headers.map((header, headerIndex) => {
884 | const { width, ...style } = header.column.columnDef.meta?.style || {};
885 | const size = header.getSize();
886 | const alignmentClass =
887 | cellVerticalAlign === "top"
888 | ? styles.alignTop
889 | : cellVerticalAlign === "bottom"
890 | ? styles.alignBottom
891 | : styles.alignCenter;
892 | return (
893 | <th
894 | key={`${header.id}-${headerIndex}`}
895 | data-column-id={header.id}
896 | className={classnames(styles.columnCell, alignmentClass)}
897 | colSpan={header.colSpan}
898 | style={{
899 | position: "relative",
900 | width: size,
901 | ...getCommonPinningStyles(header.column),
902 | }}
903 | >
904 | <ClickableHeader
905 | hasSorting={
906 | header.column.columnDef.enableSorting &&
907 | !!header.column.columnDef.meta?.accessorKey
908 | }
909 | updateSorting={() =>
910 | _updateSorting(header.column.columnDef.meta?.accessorKey)
911 | }
912 | >
913 | <div className={styles.headerContent} style={style}>
914 | {
915 | flexRender(
916 | header.column.columnDef.header,
917 | header.getContext(),
918 | ) as ReactNode
919 | }
920 | {header.column.columnDef.enableSorting && (
921 | <Part partId="orderIndicator">
922 | <span
923 | className={classnames(styles.orderingIndicator, {
924 | [styles.activeOrdering]:
925 | header.column.columnDef.meta?.accessorKey === _sortBy,
926 | [styles.alwaysShow]: alwaysShowSortingIndicator,
927 | })}
928 | >
929 | <ColumnOrderingIndicator
930 | iconSortAsc={iconSortAsc}
931 | iconSortDesc={iconSortDesc}
932 | iconNoSort={iconNoSort}
933 | direction={
934 | header.column.columnDef.meta?.accessorKey === _sortBy
935 | ? _sortingDirection
936 | : undefined
937 | }
938 | />
939 | </span>
940 | </Part>
941 | )}
942 | </div>
943 | </ClickableHeader>
944 | {header.column.getCanResize() && (
945 | <div
946 | {...{
947 | onDoubleClick: () => {
948 | touchedSizesRef.current[header.column.id] = false;
949 | if (header.column.columnDef.size !== undefined) {
950 | header.column.resetSize();
951 | } else {
952 | recalculateStarSizes();
953 | }
954 | },
955 | onMouseDown: (event) => {
956 | columnSizeTouched(header.column.id);
957 | header.getResizeHandler()(event);
958 | },
959 | onTouchStart: (event) => {
960 | columnSizeTouched(header.column.id);
961 | header.getResizeHandler()(event);
962 | },
963 | className: classnames(styles.resizer, {
964 | [styles.isResizing]: header.column.getIsResizing(),
965 | }),
966 | }}
967 | />
968 | )}
969 | </th>
970 | );
971 | })}
972 | </tr>
973 | ))}
974 | </thead>
975 | )}
976 | {hasData && (
977 | <tbody className={styles.tableBody}>
978 | {paddingTop > 0 && (
979 | <tr>
980 | <td style={{ height: `${paddingTop}px` }} />
981 | </tr>
982 | )}
983 | {rowVirtualizer.getVirtualItems().map((virtualRow) => {
984 | const rowIndex = virtualRow.index;
985 | const row = rows[rowIndex];
986 | return (
987 | <tr
988 | data-index={rowIndex}
989 | key={`${row.id}-${rowIndex}`}
990 | className={classnames(styles.row, {
991 | [styles.selected]: row.getIsSelected(),
992 | [styles.focused]: focusedIndex === rowIndex,
993 | [styles.disabled]: rowDisabledPredicate(row.original),
994 | [styles.noBottomBorder]: noBottomBorder,
995 | })}
996 | ref={(el) => {
997 | if (el && estimatedHeightRef.current === null) {
998 | estimatedHeightRef.current = Math.round(el.getBoundingClientRect().height);
999 | }
1000 | rowVirtualizer.measureElement(el);
1001 | }}
1002 | onClick={(event) => {
1003 | if (!row.getCanSelect()) {
1004 | return;
1005 | }
1006 | if (event?.defaultPrevented) {
1007 | return;
1008 | }
1009 | const target = event.target as HTMLElement;
1010 | if (target.tagName.toLowerCase() === "input") {
1011 | return;
1012 | }
1013 | if (target.closest("button")) {
1014 | return;
1015 | }
1016 |
1017 | // Check if click is within checkbox boundary
1018 | const currentRow = event.currentTarget as HTMLElement;
1019 | const checkbox = currentRow.querySelector(
1020 | 'input[type="checkbox"]',
1021 | ) as HTMLInputElement;
1022 |
1023 | if (checkbox) {
1024 | const checkboxRect = checkbox.getBoundingClientRect();
1025 | const clickX = event.clientX;
1026 | const clickY = event.clientY;
1027 |
1028 | if (
1029 | isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)
1030 | ) {
1031 | // Toggle the checkbox when clicking within the boundary
1032 | // In single selection mode, allow deselection by checking if already selected
1033 | if (!enableMultiRowSelection && row.getIsSelected()) {
1034 | checkAllRows(false); // Deselect all (which is just this one row)
1035 | } else {
1036 | toggleRow(row.original, { metaKey: true });
1037 | }
1038 | return;
1039 | }
1040 | }
1041 | toggleRow(row.original, event);
1042 | }}
1043 | onMouseMove={(event) => {
1044 | // Change cursor and hover state when within checkbox boundary
1045 | const currentRow = event.currentTarget as HTMLElement;
1046 | const checkbox = currentRow.querySelector(
1047 | 'input[type="checkbox"]',
1048 | ) as HTMLInputElement;
1049 |
1050 | if (checkbox) {
1051 | const checkboxRect = checkbox.getBoundingClientRect();
1052 | const mouseX = event.clientX;
1053 | const mouseY = event.clientY;
1054 |
1055 | const shouldShowHover = isWithinCheckboxBoundary(
1056 | mouseX,
1057 | mouseY,
1058 | checkboxRect,
1059 | tolerancePixels,
1060 | );
1061 |
1062 | // Update hover state and cursor based on proximity to checkbox
1063 | if (shouldShowHover) {
1064 | setHoveredRowId(row.id);
1065 | currentRow.style.cursor = "pointer";
1066 | } else {
1067 | setHoveredRowId(null);
1068 | currentRow.style.cursor = "";
1069 | }
1070 | }
1071 | }}
1072 | onMouseLeave={(event) => {
1073 | // Reset cursor and hover state when leaving the row
1074 | const currentRow = event.currentTarget as HTMLElement;
1075 | currentRow.style.cursor = "";
1076 | setHoveredRowId(null);
1077 | }}
1078 | >
1079 | {row.getVisibleCells().map((cell, i) => {
1080 | const cellRenderer = cell.column.columnDef?.meta?.cellRenderer;
1081 | const size = cell.column.getSize();
1082 | const alignmentClass =
1083 | cellVerticalAlign === "top"
1084 | ? styles.alignTop
1085 | : cellVerticalAlign === "bottom"
1086 | ? styles.alignBottom
1087 | : styles.alignCenter;
1088 | return (
1089 | <td
1090 | className={classnames(styles.cell, alignmentClass)}
1091 | key={`${cell.id}-${i}`}
1092 | style={{
1093 | // width: size,
1094 | width: size,
1095 | ...getCommonPinningStyles(cell.column),
1096 | }}
1097 | >
1098 | {/*we have to wrap it in a div, because tables...
1099 |
1100 | The "Last Cell" Problem: Why This Happens
1101 | Even with box-sizing: border-box, the browser gives special treatment to the last column of a table.
1102 |
1103 | With table-layout: fixed, the browser calculates the widths for all columns.
1104 | It strictly enforces the widths for columns 1, 2, 3, etc.
1105 | The last column is often used as a "catch-all" to ensure the total width of all columns exactly matches the width of the <table> element itself (e.g., 100%).
1106 | When you add padding-right to this very last cell, you create a conflict. The browser tries to simultaneously:
1107 | Keep the cell's right edge perfectly aligned with the table's right edge.
1108 | Render the padding inside that right edge.
1109 |
1110 | Solution: The Inner Wrapper <div>
1111 | The most robust and common solution is to decouple the cell's width from its content's padding. You do this by adding a wrapper <div> inside the cell.
1112 | The <td> will be responsible only for setting the rigid width.
1113 | The inner <div> will be responsible only for handling the padding and content.
1114 | */}
1115 | <div className={styles.cellContent}>
1116 | {cellRenderer
1117 | ? cellRenderer(cell.row.original, rowIndex, i, cell?.getValue())
1118 | : (flexRender(
1119 | cell.column.columnDef.cell,
1120 | cell.getContext(),
1121 | ) as ReactNode)}
1122 | </div>
1123 | </td>
1124 | );
1125 | })}
1126 | </tr>
1127 | );
1128 | })}
1129 | {paddingBottom > 0 && (
1130 | <tr>
1131 | <td style={{ height: `${paddingBottom}px` }} />
1132 | </tr>
1133 | )}
1134 | </tbody>
1135 | )}
1136 | </table>
1137 | {loading && !hasData && (
1138 | <div className={styles.loadingWrapper}>
1139 | <Spinner />
1140 | </div>
1141 | )}
1142 | {!hideNoDataView &&
1143 | !loading &&
1144 | !hasData &&
1145 | (noDataRenderer ? (
1146 | noDataRenderer()
1147 | ) : (
1148 | <div className={styles.noRows}>No data available</div>
1149 | ))}
1150 |
1151 | {shouldShowPagination &&
1152 | (paginationControlsLocation === "bottom" || paginationControlsLocation === "both") &&
1153 | paginationControls}
1154 | </div>
1155 | );
1156 | },
1157 | );
1158 |
1159 | type ClickableHeaderProps = {
1160 | hasSorting?: boolean;
1161 | updateSorting?: () => void;
1162 | children?: ReactNode;
1163 | };
1164 |
1165 | function ClickableHeader({ hasSorting, updateSorting, children }: ClickableHeaderProps) {
1166 | return hasSorting ? (
1167 | <button type="button" className={styles.clickableHeader} onClick={updateSorting}>
1168 | {children}
1169 | </button>
1170 | ) : (
1171 | <>{children}</>
1172 | );
1173 | }
1174 |
1175 | type ColumnOrderingIndicatorProps = {
1176 | direction?: SortingDirection;
1177 | iconSortAsc?: string;
1178 | iconSortDesc?: string;
1179 | iconNoSort?: string;
1180 | };
1181 |
1182 | function ColumnOrderingIndicator({
1183 | direction,
1184 | iconSortAsc = "sortasc:Table",
1185 | iconSortDesc = "sortdesc:Table",
1186 | iconNoSort = "nosort:Table",
1187 | }: ColumnOrderingIndicatorProps) {
1188 | if (direction === "ascending") {
1189 | return <Icon name={iconSortAsc} fallback="sortasc" size="12" />; //sortasc
1190 | } else if (direction === "descending") {
1191 | return <Icon name={iconSortDesc} fallback="sortdesc" size="12" />; //sortdesc
1192 | }
1193 | return iconNoSort !== "-" ? (
1194 | <Icon name={iconNoSort} fallback="nosort" size="12" />
1195 | ) : (
1196 | <Icon name={iconNoSort} size="12" />
1197 | ); //nosort
1198 | }
1199 |
1200 | export const defaultProps = {
1201 | idKey: "id",
1202 | data: EMPTY_ARRAY,
1203 | columns: EMPTY_ARRAY,
1204 | isPaginated: false,
1205 | loading: false,
1206 | rowsSelectable: false,
1207 | enableMultiRowSelection: true,
1208 | initiallySelected: EMPTY_ARRAY,
1209 | pageSizeOptions: [5, 10, 15],
1210 | sortingDirection: "ascending" as SortingDirection,
1211 | autoFocus: false,
1212 | hideHeader: false,
1213 | hideNoDataView: false,
1214 | alwaysShowSelectionHeader: false,
1215 | alwaysShowSortingIndicator: false,
1216 | noBottomBorder: false,
1217 | paginationControlsLocation: "bottom" as TablePaginationControlsLocation,
1218 | cellVerticalAlign: "center" as CellVerticalAlign,
1219 | showPageInfo: true,
1220 | showPageSizeSelector: true,
1221 | showCurrentPage: true,
1222 | buttonRowPosition: "center" as Position,
1223 | pageSizeSelectorPosition: "start" as Position,
1224 | pageInfoPosition: "end" as Position,
1225 | checkboxTolerance: "compact" as CheckboxTolerance,
1226 | };
1227 |
```