This is page 126 of 181. Use http://codebase.md/xmlui-org/xmlui/cantFindIt.jpg?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ └── config.json
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── layout-changes.md
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ └── lorem-ipsum.png
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ └── welcome-to-the-xmlui-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── HelloMd.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── Animation.tsx
│ │ │ ├── AnimationNative.tsx
│ │ │ ├── FadeAnimation.tsx
│ │ │ ├── FadeInAnimation.tsx
│ │ │ ├── FadeOutAnimation.tsx
│ │ │ ├── index.tsx
│ │ │ ├── ScaleAnimation.tsx
│ │ │ └── SlideInAnimation.tsx
│ │ └── tsconfig.json
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ ├── tsconfig.json
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── HelloWorld.module.scss
│ │ │ ├── HelloWorld.tsx
│ │ │ ├── HelloWorldNative.tsx
│ │ │ └── index.tsx
│ │ └── tsconfig.json
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── IPhoneFrame.module.scss
│ │ │ ├── IPhoneFrame.tsx
│ │ │ ├── MacOSAppFrame.module.scss
│ │ │ ├── MacOSAppFrame.tsx
│ │ │ ├── WindowsAppFrame.module.scss
│ │ │ └── WindowsAppFrame.tsx
│ │ └── tsconfig.json
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── LazyPdfNative.tsx
│ │ │ ├── Pdf.module.scss
│ │ │ └── Pdf.tsx
│ │ └── tsconfig.json
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── hooks
│ │ │ │ ├── usePlayground.ts
│ │ │ │ └── useToast.ts
│ │ │ ├── index.tsx
│ │ │ ├── playground
│ │ │ │ ├── Box.module.scss
│ │ │ │ ├── Box.tsx
│ │ │ │ ├── CodeSelector.tsx
│ │ │ │ ├── ConfirmationDialog.module.scss
│ │ │ │ ├── ConfirmationDialog.tsx
│ │ │ │ ├── Editor.tsx
│ │ │ │ ├── Header.module.scss
│ │ │ │ ├── Header.tsx
│ │ │ │ ├── Playground.tsx
│ │ │ │ ├── PlaygroundContent.module.scss
│ │ │ │ ├── PlaygroundContent.tsx
│ │ │ │ ├── PlaygroundNative.module.scss
│ │ │ │ ├── PlaygroundNative.tsx
│ │ │ │ ├── Preview.module.scss
│ │ │ │ ├── Preview.tsx
│ │ │ │ ├── Select.module.scss
│ │ │ │ ├── StandalonePlayground.tsx
│ │ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ │ ├── ThemeSwitcher.module.scss
│ │ │ │ ├── ThemeSwitcher.tsx
│ │ │ │ ├── ToneSwitcher.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── providers
│ │ │ │ ├── Toast.module.scss
│ │ │ │ └── ToastProvider.tsx
│ │ │ ├── state
│ │ │ │ └── store.ts
│ │ │ ├── themes
│ │ │ │ └── theme.ts
│ │ │ └── utils
│ │ │ └── helpers.ts
│ │ └── tsconfig.json
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Search.module.scss
│ │ │ └── Search.tsx
│ │ └── tsconfig.json
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ ├── Spreadsheet.tsx
│ │ │ └── SpreadsheetNative.tsx
│ │ └── tsconfig.json
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ ├── src
│ │ ├── Carousel
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── FancyButton
│ │ │ ├── FancyButton.module.scss
│ │ │ ├── FancyButton.tsx
│ │ │ └── FancyButton.xmlui
│ │ ├── Hello
│ │ │ ├── Hello.tsx
│ │ │ ├── Hello.xmlui
│ │ │ └── Hello.xmlui.xs
│ │ ├── HeroSection
│ │ │ ├── HeroSection.module.scss
│ │ │ ├── HeroSection.tsx
│ │ │ └── HeroSectionNative.tsx
│ │ ├── index.tsx
│ │ ├── ScrollToTop
│ │ │ ├── ScrollToTop.module.scss
│ │ │ ├── ScrollToTop.tsx
│ │ │ └── ScrollToTopNative.tsx
│ │ └── vite-env.d.ts
│ └── tsconfig.json
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── playwright.config.ts
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── get-langserver-metadata.mjs
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.mjs
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/testing/ComponentDrivers.ts:
--------------------------------------------------------------------------------
```typescript
1 | import type { Locator, Page } from "@playwright/test";
2 | import { getPseudoStyles } from "./component-test-helpers";
3 |
4 | export type ComponentDriverParams = {
5 | locator: Locator;
6 | page: Page;
7 | };
8 |
9 | type ClickOption = {
10 | button?: "left" | "right" | "middle";
11 | clickCount?: number;
12 | delay?: number;
13 | force?: boolean;
14 | modifiers?: Array<"Alt" | "Control" | "ControlOrMeta" | "Meta" | "Shift">;
15 | noWaitAfter?: boolean;
16 | position?: {
17 | x: number;
18 | y: number;
19 | };
20 | timeout?: number;
21 | trial?: boolean;
22 | };
23 |
24 | export class ComponentDriver {
25 | protected readonly locator: Locator;
26 | protected readonly page: Page;
27 |
28 | constructor({ locator, page }: ComponentDriverParams) {
29 | this.locator = locator;
30 | this.page = page;
31 | }
32 |
33 | get component() {
34 | return this.locator;
35 | }
36 |
37 | getByTestId(testId: string): Locator {
38 | return this.component.getByTestId(testId).first();
39 | }
40 |
41 | getByPartName(part: string): Locator {
42 | return this.component.locator(`[data-part-id="${part}"]`).first();
43 | }
44 |
45 | getIcons(): Locator {
46 | return this.component.locator('[data-icon-name="*"]');
47 | }
48 |
49 | getIconsByName(name: string): Locator {
50 | return this.component.locator(`[data-icon-name="${name}"]`);
51 | }
52 |
53 | getIconByName(name: string): Locator {
54 | return this.component.locator(`[data-icon-name="${name}"]`).first();
55 | }
56 |
57 | /**
58 | * Gets the html tag name of the final rendered component
59 | */
60 | getComponentTagName() {
61 | return this.component.evaluate((el) => el.tagName.toLowerCase());
62 | }
63 |
64 | // NOTE: methods must be created using the arrow function notation.
65 | // Otherwise, the "this" will not be correctly bound to the class instance when destructuring.
66 |
67 | click = async (options?: ClickOption) => {
68 | await this.locator.click(options);
69 | };
70 |
71 | dblclick = async (options?: { timeout?: number }) => {
72 | await this.locator.dblclick(options);
73 | };
74 |
75 | focus = async (options?: { timeout?: number }) => {
76 | await this.locator.focus(options);
77 | };
78 |
79 | blur = async (options?: { timeout?: number }) => {
80 | await this.locator.blur(options);
81 | };
82 |
83 | hover = async (options?: { timeout?: number }) => {
84 | await this.locator.hover(options);
85 | };
86 | }
87 |
88 | export class InputComponentDriver extends ComponentDriver {
89 | get field() {
90 | return this.getByPartName("input");
91 | }
92 |
93 | get label() {
94 | return this.getByPartName("label");
95 | }
96 |
97 | get placeholder() {
98 | return this.field.getAttribute("placeholder");
99 | }
100 |
101 | get requiredIndicator() {
102 | return this.component.getByText("*");
103 | }
104 | }
105 |
106 | export class TestStateDriver {
107 | protected readonly testStateLocator: Locator;
108 |
109 | constructor(testStateLocator: Locator) {
110 | this.testStateLocator = testStateLocator;
111 | }
112 |
113 | /** returns an async function that can query the test state */
114 | get testState() {
115 | return async () => {
116 | const text = await this.testStateLocator.textContent();
117 | const testState = text === "undefined" ? undefined : JSON.parse(text!);
118 | return testState;
119 | };
120 | }
121 | }
122 |
123 | // --- Button
124 |
125 | export class ButtonDriver extends ComponentDriver {
126 | // Ensure we either get rtl or ltr strings
127 | /* async getWritingDirection() {
128 | // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
129 | const attribute = await this.locator.getAttribute("dir");
130 | if (attribute && attribute !== "auto") return attribute as "rtl" | "ltr";
131 | const style = await this.locator.evaluate(
132 | (element) => window.getComputedStyle(element).direction,
133 | );
134 | // Default is ltr: https://developer.mozilla.org/en-US/docs/Web/CSS/direction#values
135 | return style === "rtl" ? "rtl" : "ltr";
136 | } */
137 |
138 | // Unused as of yet
139 | /* async getTextNodes() {
140 | return await this.locator.evaluate((element) =>
141 | [...element.childNodes]
142 | .filter((e) => e.nodeType === Node.TEXT_NODE && e.textContent.trim())
143 | .map((e) => e.textContent.trim()),
144 | );
145 | }
146 | */
147 | getFirstNonTextNode() {
148 | return this.locator.locator("> *").first();
149 | }
150 |
151 | // NOTE: Accounts for icons being passed as children as well
152 | getIcons() {
153 | return this.locator.locator("> svg").or(this.locator.locator("> img"));
154 | }
155 | }
156 |
157 | // --- ContentSeparator
158 |
159 | export class ContentSeparatorDriver extends ComponentDriver {
160 | get separator() {
161 | return this.component;
162 | }
163 |
164 | async getOrientation() {
165 | const classList = await this.separator.evaluate((el) => el.className);
166 |
167 | if (classList.includes("horizontal")) return "horizontal";
168 | if (classList.includes("vertical")) return "vertical";
169 | return "unknown";
170 | }
171 |
172 | async getComputedHeight() {
173 | return await this.separator.evaluate((el) => {
174 | return window.getComputedStyle(el).height;
175 | });
176 | }
177 |
178 | async getComputedWidth() {
179 | return await this.separator.evaluate((el) => {
180 | return window.getComputedStyle(el).width;
181 | });
182 | }
183 |
184 | async getBackgroundColor() {
185 | return await this.separator.evaluate((el) => {
186 | return window.getComputedStyle(el).backgroundColor;
187 | });
188 | }
189 | }
190 |
191 | // --- Avatar
192 |
193 | export class AvatarDriver extends ComponentDriver {}
194 |
195 | // --- Splitter
196 |
197 | export class SplitterDriver extends ComponentDriver {
198 | /**
199 | * Gets the resizer element (non-floating)
200 | */
201 | async getResizer() {
202 | // Look for the non-floating resizer element
203 | const allResizerCandidates = this.locator.locator('[class*="resizer"]');
204 | const resizerCount = await allResizerCandidates.count();
205 |
206 | for (let i = 0; i < resizerCount; i++) {
207 | const candidate = allResizerCandidates.nth(i);
208 | const className = await candidate.getAttribute("class");
209 | // Look for resizer that doesn't contain "floating" in its class
210 | if (className && className.includes("resizer") && !className.includes("floating")) {
211 | return candidate;
212 | }
213 | }
214 |
215 | // Fallback: return first resizer element
216 | return allResizerCandidates.first();
217 | }
218 |
219 | /**
220 | * Gets the floating resizer element
221 | */
222 | async getFloatingResizer() {
223 | // Look for the floating resizer element
224 | const allResizerCandidates = this.locator.locator('[class*="resizer"]');
225 | const resizerCount = await allResizerCandidates.count();
226 |
227 | for (let i = 0; i < resizerCount; i++) {
228 | const candidate = allResizerCandidates.nth(i);
229 | const className = await candidate.getAttribute("class");
230 | // Look for resizer that contains "floating" in its class
231 | if (className && className.includes("floating")) {
232 | return candidate;
233 | }
234 | }
235 |
236 | // If no floating resizer found, return null locator
237 | return this.locator.locator('[class*="floating"][class*="resizer"]').first();
238 | }
239 |
240 | /**
241 | * Hovers near the resizer area to trigger floating resizer visibility
242 | */
243 | async hoverNearResizer() {
244 | // Get the center of the splitter and hover there
245 | const bounds = await this.locator.boundingBox();
246 | if (bounds) {
247 | await this.page.mouse.move(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2);
248 | // Wait a bit for the hover effect to take place
249 | await this.page.waitForTimeout(200);
250 | }
251 | }
252 |
253 | /**
254 | * Drags the resizer by the specified offset
255 | * @param deltaX - Horizontal offset in pixels
256 | * @param deltaY - Vertical offset in pixels
257 | */
258 | async dragResizer(deltaX: number, deltaY: number) {
259 | // Try to get both types of resizers
260 | const resizer = await this.getResizer();
261 | const floatingResizer = await this.getFloatingResizer();
262 |
263 | // Determine which resizer to use based on visibility
264 | let targetResizer = resizer;
265 |
266 | try {
267 | const isResizerVisible = await resizer.isVisible();
268 | const isFloatingResizerVisible = await floatingResizer.isVisible();
269 |
270 | if (!isResizerVisible && isFloatingResizerVisible) {
271 | targetResizer = floatingResizer;
272 | } else if (!isResizerVisible) {
273 | // If neither is visible, try to hover to make floating resizer visible
274 | await this.hoverNearResizer();
275 | targetResizer = floatingResizer;
276 | }
277 | } catch (error) {
278 | // If there's any error checking visibility, use the regular resizer
279 | targetResizer = resizer;
280 | }
281 |
282 | // Get the resizer bounds
283 | const resizerBounds = await targetResizer.boundingBox();
284 | if (!resizerBounds) {
285 | throw new Error("Could not get resizer bounds for drag operation");
286 | }
287 |
288 | const startX = resizerBounds.x + resizerBounds.width / 2;
289 | const startY = resizerBounds.y + resizerBounds.height / 2;
290 | const endX = startX + deltaX;
291 | const endY = startY + deltaY;
292 |
293 | // Perform the drag operation
294 | await this.page.mouse.move(startX, startY);
295 | await this.page.mouse.down();
296 | await this.page.mouse.move(endX, endY, { steps: 5 });
297 | await this.page.mouse.up();
298 |
299 | // Wait a bit for the component to update
300 | await this.page.waitForTimeout(100);
301 | }
302 |
303 | /**
304 | * Gets the primary panel element
305 | */
306 | getPrimaryPanel() {
307 | return this.locator.locator('[class*="primaryPanel"]').first();
308 | }
309 |
310 | /**
311 | * Gets the secondary panel element
312 | */
313 | getSecondaryPanel() {
314 | return this.locator.locator('[class*="secondaryPanel"]').first();
315 | }
316 | }
317 |
318 | // --- ExpandableItem
319 |
320 | export class ExpandableItemDriver extends ComponentDriver {
321 | getSummary() {
322 | return this.component.locator('[class*="_summary_"]');
323 | }
324 |
325 | getSummaryContent() {
326 | return this.component.locator('[class*="_summaryContent_"]');
327 | }
328 |
329 | getContent() {
330 | return this.component.locator('[class*="_content_"]');
331 | }
332 |
333 | getIcon() {
334 | return this.component.locator('[class*="_icon_"] svg');
335 | }
336 |
337 | getSwitch() {
338 | // Get the actual switch input element, not the wrapper
339 | return this.component.getByRole("switch");
340 | }
341 |
342 | async isExpanded() {
343 | return await this.component.locator('[class*="_content_"]').isVisible();
344 | }
345 |
346 | async isDisabled() {
347 | return await this.component.evaluate((el) => el.className.includes("disabled"));
348 | }
349 |
350 | async expand() {
351 | if (!(await this.isExpanded())) {
352 | await this.getSummary().click();
353 | }
354 | }
355 |
356 | async collapse() {
357 | if (await this.isExpanded()) {
358 | await this.getSummary().click();
359 | }
360 | }
361 |
362 | async toggle() {
363 | await this.getSummary().click();
364 | }
365 | }
366 |
367 | // --- FileInput
368 |
369 | export class FileInputDriver extends ComponentDriver {
370 | getTextBox() {
371 | return this.component.locator("input[readonly]");
372 | }
373 |
374 | getHiddenInput() {
375 | return this.component.locator('input[type="file"]');
376 | }
377 |
378 | getBrowseButton() {
379 | return this.component.locator('[class*="_button_"]');
380 | }
381 |
382 | getContainer() {
383 | return this.component;
384 | }
385 |
386 | async isEnabled() {
387 | const browseButton = this.getBrowseButton();
388 | return !(await browseButton.isDisabled());
389 | }
390 |
391 | async getSelectedFiles() {
392 | const textBox = this.getTextBox();
393 | const value = await textBox.inputValue();
394 | return value || "";
395 | }
396 |
397 | async openFileDialog() {
398 | await this.getBrowseButton().click();
399 | }
400 |
401 | async getPlaceholder() {
402 | const textBox = this.getTextBox();
403 | return (await textBox.getAttribute("placeholder")) || "";
404 | }
405 |
406 | async focusButton() {
407 | await this.getBrowseButton().focus();
408 | }
409 |
410 | async hasReadOnlyAttribute() {
411 | const textBox = this.getTextBox();
412 | return (await textBox.getAttribute("readonly")) !== null;
413 | }
414 |
415 | async getAcceptedFileTypes() {
416 | const hiddenInput = this.getHiddenInput();
417 | return (await hiddenInput.getAttribute("accept")) || "";
418 | }
419 |
420 | async isMultiple() {
421 | const hiddenInput = this.getHiddenInput();
422 | return (await hiddenInput.getAttribute("multiple")) !== null;
423 | }
424 |
425 | async isDirectory() {
426 | const hiddenInput = this.getHiddenInput();
427 | return (await hiddenInput.getAttribute("webkitdirectory")) !== null;
428 | }
429 | }
430 |
431 | // --- FileUploadDropZone
432 |
433 | export class FileUploadDropZoneDriver extends ComponentDriver {
434 | getWrapper() {
435 | return this.component.locator('[class*="_wrapper_"]');
436 | }
437 |
438 | getHiddenInput() {
439 | return this.component.locator('input[type="file"]');
440 | }
441 |
442 | getDropPlaceholder() {
443 | return this.component.locator('[class*="_dropPlaceholder_"]');
444 | }
445 |
446 | getDropIcon() {
447 | return this.getDropPlaceholder().locator("svg");
448 | }
449 |
450 | async isDropPlaceholderVisible() {
451 | return await this.getDropPlaceholder().isVisible();
452 | }
453 |
454 | async isEnabled() {
455 | const input = this.getHiddenInput();
456 | const isDisabled = await input.isDisabled();
457 | return !isDisabled;
458 | }
459 |
460 | async getDropText() {
461 | return (await this.getDropPlaceholder().textContent()) || "";
462 | }
463 |
464 | async triggerDragEnter() {
465 | await this.component.dispatchEvent("dragenter");
466 | }
467 |
468 | async triggerDragLeave() {
469 | await this.component.dispatchEvent("dragleave");
470 | }
471 |
472 | async triggerDrop(files: string[] = ["test.txt"]) {
473 | // Simulate file drop event by creating File objects and using setInputFiles
474 | const hiddenInput = this.getHiddenInput();
475 |
476 | // Create temporary files for testing
477 | const fileObjects = files.map((name) => {
478 | return {
479 | name,
480 | mimeType: "text/plain",
481 | buffer: Buffer.from("test content"),
482 | };
483 | });
484 |
485 | // Set files on the hidden input
486 | await hiddenInput.setInputFiles(fileObjects);
487 |
488 | // Trigger the drop event with a proper structure
489 | await this.component.evaluate((element, fileNames) => {
490 | // Create a proper drop event
491 | const event = new DragEvent("drop", {
492 | bubbles: true,
493 | cancelable: true,
494 | dataTransfer: new DataTransfer(),
495 | });
496 |
497 | // Add files to dataTransfer if needed for component logic
498 | fileNames.forEach((fileName: string) => {
499 | const file = new File(["test content"], fileName, { type: "text/plain" });
500 | event.dataTransfer?.items.add(file);
501 | });
502 |
503 | element.dispatchEvent(event);
504 | }, files);
505 | }
506 |
507 | async triggerPaste() {
508 | await this.component.dispatchEvent("paste", {
509 | clipboardData: {
510 | files: [{ name: "pasted.txt", type: "text/plain", size: 50 }],
511 | items: [{ kind: "file", getAsFile: () => ({ name: "pasted.txt" }) }],
512 | },
513 | });
514 | }
515 |
516 | async hasChildren() {
517 | const childrenCount = await this.component
518 | .locator('> *:not(input):not([class*="_dropPlaceholder_"])')
519 | .count();
520 | return childrenCount > 0;
521 | }
522 | }
523 |
524 | // --- Form
525 |
526 | type SubmitTrigger = "click" | "keypress";
527 | type MockExternalApiOptions = {
528 | status?: number;
529 | headers?: Record<string, string>;
530 | body?: Record<string, any>;
531 | };
532 |
533 | export class BackdropDriver extends ComponentDriver {
534 | getBackdrop() {
535 | return this.component.locator("> *").first();
536 | }
537 |
538 | getOverlay() {
539 | return this.component.locator("> *").nth(1);
540 | }
541 |
542 | getDefaultBackgroundColor() {
543 | return "rgb(0, 0, 0)"; // Default backdrop color
544 | }
545 |
546 | getDefaultOpacity() {
547 | return "0.1"; // Default backdrop opacity
548 | }
549 | }
550 |
551 | export class FormDriver extends ComponentDriver {
552 | async mockExternalApi(url: string, apiOptions: MockExternalApiOptions) {
553 | const { status = 200, headers = {}, body = {} } = apiOptions;
554 | await this.page.route(url, (route) =>
555 | route.fulfill({ status, headers, body: JSON.stringify(body) }),
556 | );
557 | }
558 |
559 | get submitButton() {
560 | return this.getByPartName("submitButton");
561 | }
562 |
563 | get cancelButton() {
564 | return this.getByPartName("cancelButton");
565 | }
566 |
567 | async hasSubmitButton() {
568 | return (await this.submitButton.count()) > 0;
569 | }
570 |
571 | async submitForm(trigger: SubmitTrigger = "click") {
572 | if (trigger === "keypress") {
573 | if ((await this.hasSubmitButton()) && (await this.submitButton.isEnabled())) {
574 | await this.submitButton.focus();
575 | }
576 | await this.locator.locator("input").waitFor();
577 | const firstInputChild = this.locator.locator("input");
578 | if ((await firstInputChild.count()) > 0) {
579 | await firstInputChild.first().focus();
580 | }
581 | await this.page.keyboard.press("Enter");
582 | } else if (trigger === "click") {
583 | await this.submitButton.click();
584 | }
585 | }
586 |
587 | async getSubmitRequest(
588 | endpoint = "/entities",
589 | requestMethod = "POST",
590 | trigger: SubmitTrigger = "click",
591 | timeout = 5000,
592 | ) {
593 | const requestPromise = this.page.waitForRequest(
594 | (request) =>
595 | request.url().includes(endpoint) &&
596 | request.method().toLowerCase() === requestMethod.toLowerCase(),
597 | { timeout },
598 | );
599 | await this.submitForm(trigger);
600 | return requestPromise;
601 | }
602 |
603 | getSubmitResponse(endpoint = "/entities", responseStatus = 200, timeout = 5000) {
604 | const responsePromise = this.page.waitForResponse(
605 | (response) => response.url().includes(endpoint) && response.status() === responseStatus,
606 | { timeout },
607 | );
608 | return responsePromise;
609 | }
610 |
611 | /**
612 | * Gets the validation summary component inside the Form.
613 | * Uses the 'data-validation-summary' attribute to find the component
614 | */
615 | getValidationSummary() {
616 | return this.component.locator("[data-validation-summary='true']");
617 | }
618 |
619 | /**
620 | * Gets the validation display components inside the Form.
621 | * Uses the 'data-validation-display-severity' attribute to find the components.
622 | * The attribute contains the severity of the validation.
623 | */
624 | getValidationDisplays() {
625 | return this.component
626 | .locator("[data-validation-summary='true']")
627 | .locator("[data-validation-display-severity]");
628 | }
629 |
630 | getValidationDisplaysBySeverity(severity: string) {
631 | return this.component
632 | .locator("[data-validation-summary='true']")
633 | .locator(`[data-validation-display-severity="${severity}"]`);
634 | }
635 |
636 | // TODO: it would be a nice to have features to get validation displays and map them automatically
637 | /* async getValidationDisplaysAsDriver() {
638 | const displays = await this.getValidationDisplays();
639 | const displayList: ValidationDisplayDriver[] = [];
640 |
641 | const displayNum = await displays.count();
642 | for (let i = 0; i < displayNum; i++) {
643 | const element = displays.nth(i);
644 | displayList.push(new ValidationDisplayDriver({ locator: element, page: this.page }));
645 | }
646 | return displayList;
647 | } */
648 | }
649 |
650 | // --- ValidationSummary
651 |
652 | export class ValidationSummaryDriver extends ComponentDriver {
653 | /**
654 | * Gets the validation display components inside the Form.
655 | * Uses the 'data-validation-display-severity' attribute to find the components.
656 | * The attribute contains the severity of the validation.
657 | */
658 | getValidationDisplays() {
659 | return this.component
660 | .locator("[data-validation-summary='true']")
661 | .locator("[data-validation-display-severity]");
662 | }
663 | }
664 |
665 | // --- ValidationDisplay
666 |
667 | export class ValidationDisplayDriver extends ComponentDriver {
668 | getSeverity() {
669 | return this.component.getAttribute("data-validation-display-severity");
670 | }
671 |
672 | getText() {
673 | return this.component.locator("li").textContent();
674 | }
675 | }
676 |
677 | // --- Markdown
678 |
679 | export class MarkdownDriver extends ComponentDriver {
680 | async hasHtmlElement(elements: string | string[]) {
681 | const contents = await this.component.innerHTML();
682 | elements = typeof elements === "string" ? [elements] : elements;
683 | return elements.map((e) => `<${e}`).reduce((acc, curr) => acc && contents.includes(curr), true);
684 | }
685 | }
686 |
687 | // --- Items
688 |
689 | export class ItemsDriver extends ComponentDriver {}
690 |
691 | // --- Range
692 |
693 | export class RangeDriver extends ComponentDriver {}
694 |
695 | // --- DatePicker
696 |
697 | export class DatePickerDriver extends ComponentDriver {
698 | async toggleDropdownVisibility() {
699 | await this.component.click();
700 | }
701 |
702 | async pickADay(value: string) {
703 | await this.component
704 | .getByRole("gridcell", { name: value })
705 | .or(this.page.getByRole("gridcell", { name: value }))
706 | .first()
707 | .click({ force: true });
708 | }
709 | }
710 |
711 | // --- AutoComplete
712 |
713 | export class AutoCompleteDriver extends ComponentDriver {
714 | async toggleOptionsVisibility() {
715 | await this.component.click();
716 | }
717 |
718 | async selectLabel(value: string) {
719 | await this.component
720 | .getByRole("option", { name: value })
721 | .or(this.page.getByRole("option", { name: value }))
722 | .first()
723 | .click({ force: true });
724 | }
725 |
726 | async searchFor(value: string) {
727 | await this.page.getByRole("combobox").fill(value);
728 | }
729 |
730 | async chooseIndex(index: number) {
731 | await this.locator
732 | .getByRole("option")
733 | .nth(index)
734 | .or(this.page.getByRole("option").nth(index))
735 | .first()
736 | .click();
737 | }
738 | }
739 |
740 | // --- Select
741 |
742 | export class SelectDriver extends ComponentDriver {
743 | async toggleOptionsVisibility() {
744 | await this.component.click();
745 | }
746 |
747 | async selectLabel(value: string) {
748 | await this.component
749 | .getByRole("option", { name: value })
750 | .or(this.page.getByRole("option", { name: value }))
751 | .first()
752 | .click({ force: true });
753 | }
754 |
755 | async selectFirstLabelPostSearh(label: string) {
756 | await this.searchFor(label);
757 | await this.chooseIndex(0);
758 | }
759 |
760 | async searchFor(value: string) {
761 | await this.page.getByRole("searchbox").fill(value);
762 | }
763 |
764 | async chooseIndex(index: number) {
765 | await this.locator
766 | .getByRole("option")
767 | .nth(index)
768 | .or(this.page.getByRole("option").nth(index))
769 | .first()
770 | .click();
771 | }
772 |
773 | async selectMultipleLabels(values: string[]) {
774 | for (const value of values) {
775 | await this.component
776 | .getByRole("option", { name: value })
777 | .or(this.page.getByRole("option", { name: value }))
778 | .first()
779 | .click();
780 | }
781 | }
782 | }
783 |
784 | // --- RadioGroup
785 |
786 | export class RadioGroupDriver extends ComponentDriver {}
787 |
788 | // --- TextArea
789 |
790 | export class TextAreaDriver extends InputComponentDriver {}
791 |
792 | // --- ProgressBar
793 |
794 | export class ProgressBarDriver extends ComponentDriver {
795 | get bar() {
796 | return this.component.locator("> div");
797 | }
798 |
799 | async getProgressRatio() {
800 | const style = await this.bar.getAttribute("style");
801 | if (!style) return 0;
802 |
803 | const widthMatch = style.match(/width:\s*(\d+(?:\.\d+)?)%/);
804 | return widthMatch ? parseFloat(widthMatch[1]) / 100 : 0;
805 | }
806 | }
807 |
808 | // --- List
809 |
810 | export class ListDriver extends ComponentDriver {
811 | /**
812 | * Gets all list item elements
813 | */
814 | get items() {
815 | return this.component
816 | .locator("[data-list-item]")
817 | .or(this.component.locator("div").filter({ hasText: /^(?!.*Loading).*/ }));
818 | }
819 |
820 | /**
821 | * Gets the loading spinner element
822 | */
823 | get loadingSpinner() {
824 | return this.component.locator('[class*="loadingWrapper"]');
825 | }
826 |
827 | /**
828 | * Checks if the loading state is visible
829 | */
830 | async isLoading() {
831 | return await this.loadingSpinner.isVisible().catch(() => false);
832 | }
833 |
834 | /**
835 | * Gets group header elements
836 | */
837 | get groupHeaders() {
838 | return this.component
839 | .locator("[data-group-header]")
840 | .or(this.component.locator("div").filter({ hasText: /^Category:|^Header:/ }));
841 | }
842 |
843 | /**
844 | * Gets group footer elements
845 | */
846 | get groupFooters() {
847 | return this.component
848 | .locator("[data-group-footer]")
849 | .or(this.component.locator("div").filter({ hasText: /^End of/ }));
850 | }
851 |
852 | /**
853 | * Gets the empty state element
854 | */
855 | get emptyState() {
856 | return this.component
857 | .locator("[data-empty-state]")
858 | .or(this.component.getByText("No items found!"));
859 | }
860 |
861 | /**
862 | * Scrolls the list to a specific position
863 | */
864 | async scrollTo(position: "top" | "bottom" | number) {
865 | if (position === "top") {
866 | await this.component.evaluate((el) => el.scrollTo({ top: 0 }));
867 | } else if (position === "bottom") {
868 | await this.component.evaluate((el) => el.scrollTo({ top: el.scrollHeight }));
869 | } else {
870 | await this.component.evaluate((el, pos) => el.scrollTo({ top: pos }), position);
871 | }
872 | }
873 |
874 | /**
875 | * Gets the number of visible items (for virtualization testing)
876 | */
877 | async getVisibleItemCount() {
878 | return await this.items.count();
879 | }
880 |
881 | /**
882 | * Gets item at specific index
883 | */
884 | getItemAt(index: number) {
885 | return this.items.nth(index);
886 | }
887 |
888 | /**
889 | * Gets item by text content
890 | */
891 | getItemByText(text: string) {
892 | return this.component.getByText(text);
893 | }
894 |
895 | /**
896 | * Checks if list is empty
897 | */
898 | async isEmpty() {
899 | // Check for the actual "No data available" text that appears when list is empty
900 | const noDataText = await this.component.textContent();
901 | const hasNoDataMessage =
902 | noDataText?.includes("No data available") || noDataText?.includes("No items found");
903 |
904 | // Also check if there are any actual data items
905 | const itemCount = await this.items.count();
906 | const hasDataItems = itemCount > 0 && !hasNoDataMessage;
907 |
908 | return hasNoDataMessage || !hasDataItems;
909 | }
910 |
911 | /**
912 | * Gets all text content from visible items
913 | */
914 | async getVisibleItemTexts() {
915 | const items = await this.items.all();
916 | const texts = await Promise.all(items.map((item) => item.textContent()));
917 | return texts.filter((text) => text !== null);
918 | }
919 | }
920 |
921 | // --- Text
922 |
923 | export class TextDriver extends ComponentDriver {}
924 |
925 | // --- Heading
926 |
927 | export class HeadingDriver extends ComponentDriver {}
928 |
929 | // --- Icon
930 |
931 | export class IconDriver extends ComponentDriver {
932 | get svgIcon() {
933 | return this.component.locator("svg");
934 | }
935 | }
936 |
937 | // --- Stack
938 |
939 | export class StackDriver extends ComponentDriver {}
940 |
941 | // --- HStack
942 |
943 | export class HStackDriver extends StackDriver {}
944 |
945 | // --- VStack
946 |
947 | export class VStackDriver extends StackDriver {}
948 |
949 | // --- Link
950 |
951 | export class LinkDriver extends ComponentDriver {}
952 |
953 | // --- NavLink
954 |
955 | export class NavLinkDriver extends ComponentDriver {}
956 |
957 | // --- NavGroup
958 |
959 | export class NavGroupDriver extends ComponentDriver {
960 | getIcons() {
961 | return this.locator.locator("> svg").or(this.locator.locator("> img"));
962 | }
963 | }
964 |
965 | // --- NavPanel
966 |
967 | export class NavPanelDriver extends ComponentDriver {}
968 |
969 | // --- Card
970 |
971 | export class CardDriver extends ComponentDriver {
972 | get avatar() {
973 | return this.component.getByRole("img", { name: "avatar" });
974 | }
975 | }
976 |
977 | // --- Accordion
978 |
979 | export class AccordionDriver extends ComponentDriver {}
980 |
981 | // --- AppHeader
982 |
983 | export class AppHeaderDriver extends ComponentDriver {}
984 |
985 | // --- AppFooter
986 |
987 | export class AppFooterDriver extends ComponentDriver {}
988 |
989 | // --- Badge
990 |
991 | export class BadgeDriver extends ComponentDriver {}
992 |
993 | // --- NoResult
994 |
995 | export class NoResultDriver extends ComponentDriver {}
996 |
997 | // --- Option
998 |
999 | export class OptionDriver extends ComponentDriver {}
1000 |
1001 | // --- FormItem
1002 |
1003 | // NOTE (NEW): FormItem will be removed, delete this Driver
1004 | // NOTE: Do not delete these comments.
1005 | // This is an untested proposal to shorten code length.
1006 | // Now, you have to provide the .input element for a specific control driver:
1007 | //
1008 | // element = FormItemDriver().input -> TextBoxDriver(element)
1009 | //
1010 | // This can be shortened to FormItemDriver().input.as("TextBoxDriver") if we extend
1011 | // the locator object only for the return type of the "input" getter to support the "as" method
1012 | //
1013 | /* type DriverMap = {
1014 | TextBoxDriver: TextBoxDriver;
1015 | NumberBoxDriver: NumberBoxDriver;
1016 | };
1017 |
1018 | const driverConstructors: {
1019 | [K in keyof DriverMap]: new (obj: ComponentDriverParams) => DriverMap[K]
1020 | } = {
1021 | TextBoxDriver,
1022 | NumberBoxDriver
1023 | };
1024 |
1025 | export interface ExtendedLocator extends Locator {
1026 | as?: <K extends keyof DriverMap>(type: K) => DriverMap[K];
1027 | }
1028 |
1029 | export const extendLocator = (
1030 | locator: Locator,
1031 | ): ExtendedLocator => ({
1032 | ...locator,
1033 | locator: (selector, options) =>
1034 | extendLocator(locator.locator(selector, options)),
1035 | as: (type) => { return new driverConstructors[type]({ locator, page: locator.page() }); }
1036 | }); */
1037 |
1038 | export class FormItemDriver extends ComponentDriver {
1039 | get input() {
1040 | return this.component.locator(">input").or(this.component).first();
1041 | }
1042 |
1043 | get textBox() {
1044 | return this.input.getByRole("textbox");
1045 | }
1046 |
1047 | get checkbox() {
1048 | return this.input.getByRole("checkbox");
1049 | }
1050 |
1051 | get label() {
1052 | return this.component.locator("label");
1053 | }
1054 |
1055 | get validationStatusTag() {
1056 | return "data-validation-status";
1057 | }
1058 |
1059 | get validationStatusIndicator() {
1060 | return this.component.locator(`[${this.validationStatusTag}]`);
1061 | }
1062 | }
1063 |
1064 | // --- htmlTags
1065 |
1066 | export class HtmlTagDriver extends ComponentDriver {}
1067 |
1068 | // --- CodeBlock
1069 |
1070 | export class CodeBlockDriver extends ComponentDriver {
1071 | getHeader() {
1072 | return this.component.locator('[class*="codeBlockHeader"]');
1073 | }
1074 |
1075 | getContent() {
1076 | return this.component.locator('[class*="codeBlockContent"]');
1077 | }
1078 |
1079 | getCopyButton() {
1080 | return this.component.locator('[class*="codeBlockCopyButton"] button');
1081 | }
1082 |
1083 | getFilename() {
1084 | return this.getHeader().locator("span");
1085 | }
1086 |
1087 | async isCopyButtonVisible() {
1088 | return await this.getCopyButton().isVisible();
1089 | }
1090 |
1091 | async hasHeader() {
1092 | return await this.getHeader().isVisible();
1093 | }
1094 |
1095 | async getCodeText() {
1096 | return await this.getContent().textContent();
1097 | }
1098 |
1099 | async clickCopyButton() {
1100 | await this.getCopyButton().click();
1101 | }
1102 |
1103 | async hoverContent() {
1104 | await this.getContent().hover();
1105 | }
1106 | }
1107 |
1108 | // --- Checkbox
1109 |
1110 | export class CheckboxDriver extends InputComponentDriver {
1111 | async getIndicatorColor() {
1112 | const specifier = this.component.getByRole("checkbox").or(this.component).last();
1113 | const { boxShadow } = await getPseudoStyles(specifier, "::before", "box-shadow");
1114 | const colorMatch = boxShadow.match(/(rgba?\([^)]+\)|hsla?\([^)]+\)|#[a-fA-F0-9]{3,8})/);
1115 | return colorMatch ? colorMatch[1] : null;
1116 | }
1117 | }
1118 |
1119 | // --- Label
1120 |
1121 | export class LabelDriver extends ComponentDriver {}
1122 |
1123 | // --- Spinner
1124 |
1125 | export class SpinnerDriver extends ComponentDriver {
1126 | /**
1127 | * Gets the main spinner element (the one with the ring animation)
1128 | */
1129 | get spinnerElement() {
1130 | // Filter for spinner elements and use the first one by default
1131 | return this.page
1132 | .locator('[data-testid="test-id-component"]')
1133 | .filter({ has: this.page.locator("div") })
1134 | .first();
1135 | }
1136 |
1137 | /**
1138 | * Gets a specific spinner element by index (for multiple spinners)
1139 | */
1140 | getSpinnerByIndex(index: number) {
1141 | return this.page
1142 | .locator('[data-testid="test-id-component"]')
1143 | .filter({ has: this.page.locator("div") })
1144 | .nth(index);
1145 | }
1146 |
1147 | /**
1148 | * Gets the fullscreen wrapper element (only exists when fullScreen=true)
1149 | */
1150 | get fullScreenWrapper() {
1151 | return this.page.locator('div[class*="_fullScreenSpinnerWrapper_"]');
1152 | }
1153 |
1154 | /**
1155 | * Checks if the spinner is in fullscreen mode
1156 | */
1157 | async isFullScreen(): Promise<boolean> {
1158 | try {
1159 | const wrapper = this.fullScreenWrapper;
1160 | return await wrapper.isVisible();
1161 | } catch {
1162 | return false;
1163 | }
1164 | }
1165 |
1166 | /**
1167 | * Gets the computed style of the spinner element
1168 | */
1169 | async getSpinnerStyle() {
1170 | const element = this.spinnerElement;
1171 | return await element.evaluate((el: HTMLElement) => {
1172 | const styles = window.getComputedStyle(el);
1173 | return {
1174 | display: styles.display,
1175 | position: styles.position,
1176 | width: styles.width,
1177 | height: styles.height,
1178 | animationDuration: styles.animationDuration,
1179 | className: el.className,
1180 | };
1181 | });
1182 | }
1183 |
1184 | /**
1185 | * Gets the animation duration from the child elements (where the actual animation occurs)
1186 | */
1187 | async getAnimationDuration(): Promise<string> {
1188 | const element = this.spinnerElement;
1189 | return await element.evaluate((el: HTMLElement) => {
1190 | // Check the first child div for animation duration
1191 | const firstChild = el.querySelector("div");
1192 | if (firstChild) {
1193 | const styles = window.getComputedStyle(firstChild);
1194 | return styles.animationDuration;
1195 | }
1196 | return "0s";
1197 | });
1198 | }
1199 |
1200 | /**
1201 | * Waits for the spinner to appear
1202 | */
1203 | async waitForSpinner(timeout: number = 5000): Promise<void> {
1204 | await this.spinnerElement.waitFor({ state: "visible", timeout });
1205 | }
1206 |
1207 | /**
1208 | * Waits for the spinner to disappear
1209 | */
1210 | async waitForSpinnerToDisappear(timeout: number = 5000): Promise<void> {
1211 | await this.spinnerElement.waitFor({ state: "hidden", timeout });
1212 | }
1213 |
1214 | /**
1215 | * Checks if the spinner is visible
1216 | */
1217 | async isVisible(): Promise<boolean> {
1218 | return await this.spinnerElement.isVisible();
1219 | }
1220 |
1221 | /**
1222 | * Gets the CSS class name to verify CSS modules are working
1223 | */
1224 | async getClassName(): Promise<string> {
1225 | return (await this.spinnerElement.getAttribute("class")) || "";
1226 | }
1227 |
1228 | /**
1229 | * Gets the number of child div elements (should be 4 for the ring animation)
1230 | */
1231 | async getChildCount(): Promise<number> {
1232 | return await this.spinnerElement.evaluate((el: HTMLElement) => {
1233 | return el.querySelectorAll("div").length;
1234 | });
1235 | }
1236 |
1237 | /**
1238 | * Gets the total number of spinner components on the page
1239 | */
1240 | async getSpinnerCount(): Promise<number> {
1241 | return await this.page.locator('[data-testid="test-id-component"]').count();
1242 | }
1243 |
1244 | /**
1245 | * Gets a spinner by specific test ID
1246 | */
1247 | getSpinnerByTestId(testId: string) {
1248 | return this.page.locator(`[data-testid="${testId}"]`);
1249 | }
1250 |
1251 | /**
1252 | * Checks if fullscreen mode has the correct wrapper structure
1253 | */
1254 | async getFullScreenWrapperInfo() {
1255 | const wrapper = this.fullScreenWrapper;
1256 | if (!(await wrapper.isVisible())) {
1257 | return null;
1258 | }
1259 |
1260 | return await wrapper.evaluate((el: HTMLElement) => {
1261 | const parent = el.parentElement;
1262 | const styles = window.getComputedStyle(el);
1263 | return {
1264 | position: styles.position,
1265 | inset: styles.inset,
1266 | parentClassName: parent?.className || "",
1267 | hasSpinnerChild: !!el.querySelector('[class*="_lds-ring_"]'),
1268 | };
1269 | });
1270 | }
1271 | }
1272 |
1273 | // --- DropdownMenu
1274 |
1275 | export class DropdownMenuDriver extends ComponentDriver {
1276 | /**
1277 | * Get the trigger button element
1278 | * For DropdownMenu, we'll look for the button on the page level since Radix UI may render it separately
1279 | */
1280 | getTrigger() {
1281 | return this.page.getByRole("button").first();
1282 | }
1283 |
1284 | /**
1285 | * Open the dropdown menu
1286 | */
1287 | async open() {
1288 | const trigger = this.getTrigger();
1289 | await trigger.click();
1290 | }
1291 |
1292 | /**
1293 | * Close the dropdown menu by clicking outside
1294 | */
1295 | async close() {
1296 | // Try clicking on the trigger first to close, then fall back to clicking outside
1297 | try {
1298 | await this.page.keyboard.press("Escape");
1299 | } catch {
1300 | // If escape doesn't work, try clicking on a safe area
1301 | await this.page.click("html");
1302 | }
1303 | }
1304 |
1305 | /**
1306 | * Get all menu items
1307 | */
1308 | getMenuItems() {
1309 | return this.page.getByRole("menuitem");
1310 | }
1311 |
1312 | /**
1313 | * Get a specific menu item by text
1314 | */
1315 | getMenuItem(text: string) {
1316 | return this.page.getByRole("menuitem", { name: text });
1317 | }
1318 |
1319 | /**
1320 | * Click a menu item by text
1321 | */
1322 | async clickMenuItem(text: string) {
1323 | await this.getMenuItem(text).click();
1324 | }
1325 |
1326 | /**
1327 | * Get submenu items
1328 | */
1329 | getSubMenuItems(parentText: string) {
1330 | // First hover over the parent submenu to open it
1331 | return this.page.getByText(parentText);
1332 | }
1333 |
1334 | /**
1335 | * Open a submenu by hovering over it
1336 | */
1337 | async openSubMenu(submenuText: string) {
1338 | await this.page.getByText(submenuText).hover();
1339 | }
1340 |
1341 | /**
1342 | * Get menu separators
1343 | */
1344 | getMenuSeparators() {
1345 | return this.page.locator('[class*="DropdownMenuSeparator"]');
1346 | }
1347 |
1348 | /**
1349 | * Get the menu content container
1350 | */
1351 | getMenuContent() {
1352 | return this.page.locator('[class*="DropdownMenuContent"]');
1353 | }
1354 |
1355 | /**
1356 | * Check if the menu is open
1357 | */
1358 | async isOpen() {
1359 | try {
1360 | const content = this.getMenuContent();
1361 | return await content.isVisible();
1362 | } catch {
1363 | return false;
1364 | }
1365 | }
1366 |
1367 | /**
1368 | * Wait for menu to open
1369 | */
1370 | async waitForOpen() {
1371 | await this.getMenuContent().waitFor({ state: "visible" });
1372 | }
1373 |
1374 | /**
1375 | * Wait for menu to close
1376 | */
1377 | async waitForClose() {
1378 | await this.getMenuContent().waitFor({ state: "hidden" });
1379 | }
1380 | }
1381 |
1382 | // --- Slider
1383 |
1384 | export class SliderDriver extends ComponentDriver {
1385 | private async getActiveThumb(thumbNumber: number = 0) {
1386 | const thumbs = this.page.getByRole("slider");
1387 | const thumbCount = await thumbs.count();
1388 | if (thumbCount === 0) {
1389 | throw new Error("No slider thumb found to drag");
1390 | }
1391 | if (thumbNumber < 0) {
1392 | thumbNumber = 0;
1393 | } else if (thumbNumber >= thumbCount) {
1394 | thumbNumber = thumbCount - 1;
1395 | }
1396 | return thumbs.nth(thumbNumber);
1397 | }
1398 |
1399 | async dragThumbByMouse(location: "start" | "end" | "middle", thumbNumber: number = 0) {
1400 | const track = this.page.locator("[data-track]");
1401 | await track.waitFor({ state: "visible" });
1402 |
1403 | const activeThumb = await this.getActiveThumb(thumbNumber);
1404 | await activeThumb.waitFor({ state: "visible" });
1405 |
1406 | // Get the thumb's current position for relative movement
1407 | const thumbBox = await activeThumb.boundingBox();
1408 | if (!thumbBox) {
1409 | throw new Error("Could not get thumb bounding box");
1410 | }
1411 | const trackBox = await track.boundingBox();
1412 | if (!trackBox) {
1413 | throw new Error("Could not get track bounding box");
1414 | }
1415 |
1416 | // Calculate target position relative to track
1417 | let targetX: number;
1418 | if (location === "start") {
1419 | targetX = trackBox.x;
1420 | } else if (location === "end") {
1421 | targetX = trackBox.x + trackBox.width;
1422 | } else {
1423 | // middle
1424 | targetX = trackBox.x + trackBox.width / 2;
1425 | }
1426 | const targetY = trackBox.y + trackBox.height / 2;
1427 |
1428 | await activeThumb.hover();
1429 | await this.page.mouse.down({ button: "left" });
1430 | await this.page.mouse.move(targetX, targetY);
1431 | await this.page.mouse.up();
1432 | }
1433 |
1434 | async stepThumbByKeyboard(
1435 | key: "ArrowLeft" | "ArrowRight" | "Home" | "End",
1436 | thumbNumber: number = 0,
1437 | repeat: number = 1,
1438 | ) {
1439 | const activeThumb = await this.getActiveThumb(thumbNumber);
1440 | await activeThumb.focus();
1441 | for (let i = 0; i < repeat; i++) {
1442 | await this.page.keyboard.press(key);
1443 | }
1444 | }
1445 | }
1446 |
```