#
tokens: 42920/50000 1/1626 files (page 155/181)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 155 of 181. Use http://codebase.md/xmlui-org/xmlui/xmlui-standalone.umd.js?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/components/Pagination/Pagination.spec.ts:
--------------------------------------------------------------------------------

```typescript
   1 | import { xmlUiMarkupToComponent } from "../../components-core/xmlui-parser";
   2 | import { getBounds } from "../../testing/component-test-helpers";
   3 | import { test, expect } from "../../testing/fixtures";
   4 | 
   5 | // =============================================================================
   6 | // BASIC FUNCTIONALITY TESTS
   7 | // =============================================================================
   8 | 
   9 | test.describe("Basic Functionality", () => {
  10 |   test("renders basic controls with no props", async ({ initTestBed, page }) => {
  11 |     await initTestBed(`<Pagination />`);
  12 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeVisible();
  13 |     await expect(page.getByRole("button", { name: "Next page" })).toBeVisible();
  14 |   });
  15 | 
  16 |   test("controls are disabled if enabled=false", async ({ initTestBed, page }) => {
  17 |     await initTestBed(`<Pagination enabled="false" itemCount="100" pageSize="10" pageIndex="0" />`);
  18 | 
  19 |     // Should not show navigation buttons
  20 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
  21 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
  22 |     await expect(page.getByRole("button", { name: "Next page" })).toBeDisabled();
  23 |     await expect(page.getByRole("button", { name: "Last page" })).toBeDisabled();
  24 |   });
  25 | 
  26 |   test("controls are disabled if enabled=false #2", async ({ initTestBed, page }) => {
  27 |     await initTestBed(
  28 |       `<Pagination enabled="false" itemCount="100" pageSize="10" pageIndex="0" maxVisiblePages="3" />`,
  29 |     );
  30 | 
  31 |     // Should not show navigation buttons
  32 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
  33 |     await expect(page.getByRole("button", { name: "Page 1" })).toBeDisabled();
  34 |     await expect(page.getByRole("button", { name: "Page 2" })).toBeDisabled();
  35 |     await expect(page.getByRole("button", { name: "Page 3" })).toBeDisabled();
  36 |     await expect(page.getByRole("button", { name: "Last page" })).toBeDisabled();
  37 |   });
  38 | 
  39 |   test("renders with basic props", async ({ initTestBed, page }) => {
  40 |     await initTestBed(`<Pagination itemCount="100" pageSize="10" pageIndex="0" />`);
  41 | 
  42 |     // Should show navigation buttons
  43 |     await expect(page.getByRole("button", { name: "First page" })).toBeVisible();
  44 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeVisible();
  45 |     await expect(page.getByRole("button", { name: "Next page" })).toBeVisible();
  46 |     await expect(page.getByRole("button", { name: "Last page" })).toBeVisible();
  47 | 
  48 |     // Should show page info by default
  49 |     await expect(page.getByText("Page 1 of 10 (100 items)")).toBeVisible();
  50 |   });
  51 | 
  52 |   test("renders when itemCount is zero", async ({ initTestBed, page }) => {
  53 |     await initTestBed(`<Pagination itemCount="0"/>`);
  54 | 
  55 |     // Component should not be visible
  56 |     await expect(page.getByRole("button", { name: "First page" })).toBeVisible();
  57 |     await expect(page.getByText(/Page \d+ of \d+/)).toBeVisible();
  58 |   });
  59 | 
  60 |   test("handles itemCount property correctly", async ({ initTestBed, page }) => {
  61 |     await initTestBed(`<Pagination itemCount="25" pageSize="5"/>`);
  62 | 
  63 |     // Should calculate correct total pages (25 items / 5 per page = 5 pages)
  64 |     await expect(page.getByText("Page 1 of 5 (25 items)")).toBeVisible();
  65 |   });
  66 | 
  67 |   test("handles pageSize property correctly", async ({ initTestBed, page }) => {
  68 |     await initTestBed(`<Pagination itemCount="100" pageSize="20"/>`);
  69 | 
  70 |     // Should calculate correct total pages (100 items / 20 per page = 5 pages)
  71 |     await expect(page.getByText("Page 1 of 5 (100 items)")).toBeVisible();
  72 |   });
  73 | 
  74 |   test("handles showPageInfo property correctly", async ({ initTestBed, page }) => {
  75 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" showPageInfo="false"/>`);
  76 | 
  77 |     // Should not show page info when showPageInfo is false
  78 |     await expect(page.getByText(/Page \d+ of \d+/)).not.toBeVisible();
  79 | 
  80 |     // But should still show navigation buttons
  81 |     await expect(page.getByRole("button", { name: "First page" })).toBeVisible();
  82 |   });
  83 | 
  84 |   test("handles pageIndex property correctly", async ({ initTestBed, page }) => {
  85 |     await initTestBed(
  86 |       `<Pagination itemCount="50" pageSize="10" pageIndex="2" showPageInfo="false" />`,
  87 |     );
  88 | 
  89 |     // Should show page 3 (0-based index 2)
  90 |     await expect(page.getByText("3", { exact: true })).toBeVisible();
  91 |   });
  92 | 
  93 |   test("handles maxVisiblePages property correctly", async ({ initTestBed, page }) => {
  94 |     await initTestBed(`<Pagination itemCount="100" pageSize="10" maxVisiblePages="3"/>`);
  95 | 
  96 |     // With maxVisiblePages=3, should only show 3 page buttons
  97 |     const pageButtons = page.getByRole("button").filter({ hasText: /^\d+$/ });
  98 |     await expect(pageButtons).toHaveCount(3);
  99 | 
 100 |     // Should show pages 1, 2, 3
 101 |     await expect(page.getByRole("button", { name: "Page 1" })).toBeVisible();
 102 |     await expect(page.getByRole("button", { name: "Page 2" })).toBeVisible();
 103 |     await expect(page.getByRole("button", { name: "Page 3" })).toBeVisible();
 104 |   });
 105 | 
 106 |   test("handles maxVisiblePages when there's only one page", async ({ initTestBed, page }) => {
 107 |     await initTestBed(`<Pagination itemCount="5" pageSize="10" maxVisiblePages="1"/>`);
 108 | 
 109 |     // Should show just the page number as text, not a button
 110 |     await expect(page.getByText("1", { exact: true })).toBeVisible();
 111 |     // Should not have clickable page buttons
 112 |     const pageButtons = page.getByRole("button").filter({ hasText: /^\d+$/ });
 113 |     await expect(pageButtons).toHaveCount(0);
 114 |   });
 115 | 
 116 |   test("navigation buttons are disabled correctly on first page", async ({ initTestBed, page }) => {
 117 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="0"/>`);
 118 | 
 119 |     // First and Previous buttons should be disabled
 120 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
 121 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
 122 | 
 123 |     // Next and Last buttons should be enabled
 124 |     await expect(page.getByRole("button", { name: "Next page" })).toBeEnabled();
 125 |     await expect(page.getByRole("button", { name: "Last page" })).toBeEnabled();
 126 |   });
 127 | 
 128 |   test("navigation buttons are disabled correctly on last page", async ({ initTestBed, page }) => {
 129 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="4"/>`);
 130 | 
 131 |     // Next and Last buttons should be disabled
 132 |     await expect(page.getByRole("button", { name: "Next page" })).toBeDisabled();
 133 |     await expect(page.getByRole("button", { name: "Last page" })).toBeDisabled();
 134 | 
 135 |     // First and Previous buttons should be enabled
 136 |     await expect(page.getByRole("button", { name: "First page" })).toBeEnabled();
 137 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
 138 |   });
 139 | 
 140 |   test("handles edge case with single item", async ({ initTestBed, page }) => {
 141 |     await initTestBed(`<Pagination itemCount="1" pageSize="10"/>`);
 142 | 
 143 |     await expect(page.getByText("Page 1 of 1 (1 items)")).toBeVisible();
 144 |     await expect(page.getByRole("button", { name: "First Page" })).toBeDisabled();
 145 |     await expect(page.getByRole("button", { name: "Previous Page" })).toBeDisabled();
 146 |     await expect(page.getByRole("button", { name: "Next Page" })).toBeDisabled();
 147 |     await expect(page.getByRole("button", { name: "Last Page" })).toBeDisabled();
 148 |   });
 149 | 
 150 |   test("handles negative itemCount gracefully", async ({ initTestBed, page }) => {
 151 |     await initTestBed(`<Pagination itemCount="-5" pageSize="10" pageIndex="0"/>`);
 152 | 
 153 |     await expect(page.getByRole("button", { name: "Previous Page" })).toBeVisible();
 154 |     await expect(page.getByRole("button", { name: "Next Page" })).toBeVisible();
 155 |   });
 156 | 
 157 |   test("handles negative pageIndex gracefully", async ({ initTestBed, page }) => {
 158 |     await initTestBed(`<Pagination itemCount="10" pageSize="5" pageIndex="-1"/>`);
 159 | 
 160 |     // Should clamp pageIndex to 0 and render first page
 161 |     await expect(page.getByText("Page 1 of 2 (10 items)")).toBeVisible();
 162 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
 163 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
 164 |   });
 165 | 
 166 |   test("handles negative pageSize gracefully", async ({ initTestBed, page }) => {
 167 |     await initTestBed(`<Pagination itemCount="10" pageSize="-5" pageIndex="0"/>`);
 168 | 
 169 |     // Should clamp pageSize to 1 and render first page
 170 |     await expect(page.getByText("Page 1 of 1 (10 items)")).toBeVisible();
 171 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
 172 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
 173 |   });
 174 | 
 175 |   test("displays minimal layout if no itemCount provided", async ({ initTestBed, page }) => {
 176 |     await initTestBed(`<Pagination />`);
 177 | 
 178 |     // Should show minimal layout
 179 |     await expect(page.getByText("Page 1 of 1 (1 items)")).not.toBeAttached();
 180 |     await expect(page.getByRole("button", { name: "First Page" })).not.toBeAttached();
 181 |     await expect(page.getByRole("button", { name: "Previous Page" })).toBeDisabled();
 182 |     await expect(page.getByRole("button", { name: "Next Page" })).toBeDisabled();
 183 |     await expect(page.getByRole("button", { name: "Last Page" })).not.toBeAttached();
 184 |   });
 185 | 
 186 |   test("hasPrevPage modifies Previous button enabled state", async ({ initTestBed, page }) => {
 187 |     await initTestBed(`<Pagination hasPrevPage="true" />`);
 188 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
 189 |   });
 190 | 
 191 |   test("hasPrevPage does not interfere with Next button state", async ({ initTestBed, page }) => {
 192 |     await initTestBed(`<Pagination hasPrevPage="true" hasNextPage="false" />`);
 193 |     await expect(page.getByRole("button", { name: "Next page" })).toBeDisabled();
 194 |   });
 195 | 
 196 |   test("hasNextPage modifies Next button enabled state", async ({ initTestBed, page }) => {
 197 |     await initTestBed(`<Pagination hasNextPage="true" />`);
 198 |     await expect(page.getByRole("button", { name: "Next page" })).toBeEnabled();
 199 |   });
 200 | 
 201 |   test("hasNextPage does not interfere with Previous button state", async ({
 202 |     initTestBed,
 203 |     page,
 204 |   }) => {
 205 |     await initTestBed(`<Pagination hasNextPage="true" hasPrevPage="false" />`);
 206 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
 207 |   });
 208 | 
 209 |   test("hasPrevPage and hasNextPage have no effect if itemCount >= 0", async ({
 210 |     initTestBed,
 211 |     page,
 212 |   }) => {
 213 |     await initTestBed(
 214 |       `<Pagination itemCount="50" pageSize="10" pageIndex="2" hasPrevPage="false" hasNextPage="false" />`,
 215 |     );
 216 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
 217 |     await expect(page.getByRole("button", { name: "Next page" })).toBeEnabled();
 218 |   });
 219 | 
 220 |   test("shows page size selector by default when pageSizeOptions are provided", async ({
 221 |     initTestBed,
 222 |     page,
 223 |   }) => {
 224 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
 225 |     await expect(page.locator("select")).toBeVisible();
 226 |   });
 227 | 
 228 |   test("hides page size selector when showPageSizeSelector is false", async ({
 229 |     initTestBed,
 230 |     page,
 231 |   }) => {
 232 |     await initTestBed(`
 233 |       <Pagination
 234 |         itemCount="50"
 235 |         pageSize="10"
 236 |         pageSizeOptions="{[5, 10, 20]}"
 237 |         showPageSizeSelector="false"
 238 |       />
 239 |     `);
 240 |     await expect(page.locator("select")).not.toBeVisible();
 241 |   });
 242 | 
 243 |   test("shows page size selector when showPageSizeSelector is true", async ({
 244 |     initTestBed,
 245 |     page,
 246 |   }) => {
 247 |     await initTestBed(`
 248 |       <Pagination
 249 |         itemCount="50"
 250 |         pageSize="10"
 251 |         pageSizeOptions="{[5, 10, 20]}"
 252 |         showPageSizeSelector="true"
 253 |       />
 254 |     `);
 255 |     await expect(page.locator("select")).toBeVisible();
 256 |   });
 257 | 
 258 |   test("showPageSizeSelector has no effect when pageSizeOptions is empty", async ({
 259 |     initTestBed,
 260 |     page,
 261 |   }) => {
 262 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" showPageSizeSelector="true"/>`);
 263 |     await expect(page.locator("select")).not.toBeVisible();
 264 |   });
 265 | 
 266 |   test("showPageSizeSelector has no effect when pageSizeOptions has only one option", async ({
 267 |     initTestBed,
 268 |     page,
 269 |   }) => {
 270 |     await initTestBed(
 271 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[10]}" showPageSizeSelector="true"/>`,
 272 |     );
 273 |     await expect(page.locator("select")).not.toBeVisible();
 274 |   });
 275 | 
 276 |   test("does not show page size selector when pageSizeOptions is not provided", async ({
 277 |     initTestBed,
 278 |     page,
 279 |   }) => {
 280 |     await initTestBed(`<Pagination itemCount="50" pageSize="10"/>`);
 281 |     await expect(page.getByText("Items per page")).not.toBeVisible();
 282 |     await expect(page.locator("select")).not.toBeVisible();
 283 |   });
 284 | 
 285 |   test("shows page size selector when multiple pageSizeOptions are provided", async ({
 286 |     initTestBed,
 287 |     page,
 288 |   }) => {
 289 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
 290 | 
 291 |     // Should show page size selector
 292 |     await expect(page.getByText("Items per page")).toBeVisible();
 293 | 
 294 |     // Should show select dropdown with current value
 295 |     const select = page.locator("select");
 296 |     await expect(select).toBeVisible();
 297 |     await expect(select).toHaveValue("10");
 298 | 
 299 |     // Check that all options exist in the DOM (even if not visible)
 300 |     await expect(select.locator('option[value="5"]')).toHaveCount(1);
 301 |     await expect(select.locator('option[value="10"]')).toHaveCount(1);
 302 |     await expect(select.locator('option[value="20"]')).toHaveCount(1);
 303 |   });
 304 | 
 305 |   test("page size selector is disabled when component is disabled", async ({
 306 |     initTestBed,
 307 |     page,
 308 |   }) => {
 309 |     await initTestBed(
 310 |       `<Pagination enabled="false" itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`,
 311 |     );
 312 | 
 313 |     // Select should be disabled
 314 |     const select = page.locator("select");
 315 |     await expect(select).toBeDisabled();
 316 |   });
 317 | 
 318 |   test("page size selector allows changing selection", async ({ initTestBed, page }) => {
 319 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
 320 | 
 321 |     // Should show page size selector
 322 |     await expect(page.getByText("Items per page")).toBeVisible();
 323 | 
 324 |     // Should start with correct value
 325 |     const select = page.locator("select");
 326 |     await expect(select).toHaveValue("10");
 327 | 
 328 |     // Should be able to interact with the select (this triggers the event)
 329 |     await select.selectOption("20");
 330 | 
 331 |     // Note: In a real application, the parent would update the pageSize prop
 332 |     // which would cause the select to show the new value. For this test,
 333 |     // we're just verifying the interaction is possible.
 334 |   });
 335 | 
 336 |   test("page size selector reflects current pageSize", async ({ initTestBed, page }) => {
 337 |     await initTestBed(
 338 |       `<Pagination itemCount="100" pageSize="20" pageSizeOptions="{[5, 10, 20, 50]}"/>`,
 339 |     );
 340 | 
 341 |     // Select should show current page size
 342 |     const select = page.locator("select");
 343 |     await expect(select).toHaveValue("20");
 344 |   });
 345 | 
 346 |   test("handles pageSize not in pageSizeOptions gracefully", async ({ initTestBed, page }) => {
 347 |     await initTestBed(
 348 |       `<Pagination itemCount="100" pageSize="15" pageSizeOptions="{[5, 10, 20]}"/>`,
 349 |     );
 350 | 
 351 |     // Should show page size selector since multiple options are provided
 352 |     await expect(page.getByText("Items per page")).toBeVisible();
 353 | 
 354 |     const select = page.locator("select");
 355 |     await expect(select).toBeVisible();
 356 | 
 357 |     // When pageSize (15) is not in pageSizeOptions, component defaults to first option (5)
 358 |     // This tests how the component handles mismatched pageSize vs pageSizeOptions
 359 |     await expect(select).toHaveValue("5");
 360 | 
 361 |     // All original options should still be available
 362 |     await expect(select.locator('option[value="5"]')).toHaveCount(1);
 363 |     await expect(select.locator('option[value="10"]')).toHaveCount(1);
 364 |     await expect(select.locator('option[value="20"]')).toHaveCount(1);
 365 | 
 366 |     // Page calculations should use the actual pageSize (15), not the selected option (5)
 367 |     // 100 items / 15 per page = 6.67 -> 7 pages
 368 |     await expect(page.getByText("Page 1 of 7 (100 items)")).toBeVisible();
 369 |   });
 370 | 
 371 |   // Edge cases for showPageSizeSelector property
 372 |   test("handles null showPageSizeSelector property", async ({ initTestBed, page }) => {
 373 |     await initTestBed(
 374 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{null}"/>`,
 375 |     );
 376 | 
 377 |     // Should fall back to default behavior (true) when null
 378 |     await expect(page.getByText("Items per page")).toBeVisible();
 379 |     await expect(page.locator("select")).toBeVisible();
 380 |   });
 381 | 
 382 |   test("handles undefined showPageSizeSelector property", async ({ initTestBed, page }) => {
 383 |     await initTestBed(
 384 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{undefined}"/>`,
 385 |     );
 386 | 
 387 |     // Should fall back to default behavior (true) when undefined
 388 |     await expect(page.getByText("Items per page")).toBeVisible();
 389 |     await expect(page.locator("select")).toBeVisible();
 390 |   });
 391 | 
 392 |   test("handles string 'false' for showPageSizeSelector property", async ({
 393 |     initTestBed,
 394 |     page,
 395 |   }) => {
 396 |     await initTestBed(
 397 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="false"/>`,
 398 |     );
 399 | 
 400 |     // Should treat string 'false' as false
 401 |     await expect(page.getByText("Items per page")).not.toBeVisible();
 402 |     await expect(page.locator("select")).not.toBeVisible();
 403 |   });
 404 | 
 405 |   test("handles string 'true' for showPageSizeSelector property", async ({ initTestBed, page }) => {
 406 |     await initTestBed(
 407 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="true"/>`,
 408 |     );
 409 | 
 410 |     // Should treat string 'true' as true
 411 |     await expect(page.getByText("Items per page")).toBeVisible();
 412 |     await expect(page.locator("select")).toBeVisible();
 413 |   });
 414 | 
 415 |   test("handles numeric 0 for showPageSizeSelector property", async ({ initTestBed, page }) => {
 416 |     await initTestBed(
 417 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{0}"/>`,
 418 |     );
 419 | 
 420 |     // Should treat 0 as false
 421 |     await expect(page.getByText("Items per page")).not.toBeVisible();
 422 |     await expect(page.locator("select")).not.toBeVisible();
 423 |   });
 424 | 
 425 |   test("handles numeric 1 for showPageSizeSelector property", async ({ initTestBed, page }) => {
 426 |     await initTestBed(
 427 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{1}"/>`,
 428 |     );
 429 | 
 430 |     // Should treat 1 as true
 431 |     await expect(page.getByText("Items per page")).toBeVisible();
 432 |     await expect(page.locator("select")).toBeVisible();
 433 |   });
 434 | 
 435 |   test("handles object for showPageSizeSelector property", async ({ initTestBed, page }) => {
 436 |     await initTestBed(
 437 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{{a: 'b'}}" />`,
 438 |     );
 439 | 
 440 |     // Objects may cause component to not render properly in some contexts
 441 |     const pageSizeText = page.getByText("Items per page");
 442 |     const exists = await pageSizeText.count();
 443 |     if (exists > 0) {
 444 |       // Should treat object as truthy (true) when it renders
 445 |       await expect(pageSizeText).toBeVisible();
 446 |       await expect(page.locator("select")).toBeVisible();
 447 |     } else {
 448 |       // Component may not render page size selector with invalid object input
 449 |       await expect(pageSizeText).not.toBeVisible();
 450 |     }
 451 |   });
 452 | 
 453 |   test("handles empty string for showPageSizeSelector property", async ({ initTestBed, page }) => {
 454 |     await initTestBed(
 455 |       `<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector=""/>`,
 456 |     );
 457 | 
 458 |     // Should treat empty string as false
 459 |     await expect(page.getByText("Items per page")).not.toBeVisible();
 460 |     await expect(page.locator("select")).not.toBeVisible();
 461 |   });
 462 | 
 463 |   test("defaults to horizontal orientation", async ({ initTestBed, page }) => {
 464 |     await initTestBed(`<Pagination itemCount="50" pageSize="10"/>`);
 465 | 
 466 |     // Should have horizontal class by default
 467 |     const nav = page.locator('nav[aria-label="Pagination"]');
 468 |     const prevButton = nav.getByRole("button", { name: "Previous page" });
 469 |     const nextButton = nav.getByRole("button", { name: "Next page" });
 470 | 
 471 |     const { top: prevTop, bottom: prevBottom } = await getBounds(prevButton);
 472 |     const { top: nextTop, bottom: nextBottom } = await getBounds(nextButton);
 473 | 
 474 |     expect(prevBottom).toEqualWithTolerance(nextBottom, 1);
 475 |     expect(prevTop).toEqualWithTolerance(nextTop, 1);
 476 |   });
 477 | 
 478 |   test("applies horizontal orientation when specified", async ({ initTestBed, page }) => {
 479 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="horizontal"/>`);
 480 | 
 481 |     // Should have horizontal class
 482 |     const nav = page.locator('nav[aria-label="Pagination"]');
 483 |     const prevButton = nav.getByRole("button", { name: "Previous page" });
 484 |     const nextButton = nav.getByRole("button", { name: "Next page" });
 485 | 
 486 |     const { top: prevTop, bottom: prevBottom } = await getBounds(prevButton);
 487 |     const { top: nextTop, bottom: nextBottom } = await getBounds(nextButton);
 488 | 
 489 |     expect(prevBottom).toEqualWithTolerance(nextBottom, 1);
 490 |     expect(prevTop).toEqualWithTolerance(nextTop, 1);
 491 |   });
 492 | 
 493 |   test("applies vertical orientation when specified", async ({ initTestBed, page }) => {
 494 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="vertical"/>`);
 495 | 
 496 |     // Should have vertical class
 497 |     const nav = page.locator('nav[aria-label="Pagination"]');
 498 |     const prevButton = nav.getByRole("button", { name: "Previous page" });
 499 |     const nextButton = nav.getByRole("button", { name: "Next page" });
 500 | 
 501 |     const { bottom: prevBottom } = await getBounds(prevButton);
 502 |     const { top: nextTop } = await getBounds(nextButton);
 503 | 
 504 |     expect(prevBottom).toBeLessThan(nextTop);
 505 |   });
 506 | 
 507 |   test("falls back to default orientation for invalid values", async ({ initTestBed, page }) => {
 508 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="invalid"/>`);
 509 | 
 510 |     // Should fall back to horizontal (default)
 511 |     const nav = page.locator('nav[aria-label="Pagination"]');
 512 |     const prevButton = nav.getByRole("button", { name: "Previous page" });
 513 |     const nextButton = nav.getByRole("button", { name: "Next page" });
 514 | 
 515 |     const { top: prevTop, bottom: prevBottom } = await getBounds(prevButton);
 516 |     const { top: nextTop, bottom: nextBottom } = await getBounds(nextButton);
 517 | 
 518 |     expect(prevBottom).toEqualWithTolerance(nextBottom, 1);
 519 |     expect(prevTop).toEqualWithTolerance(nextTop, 1);
 520 |   });
 521 | 
 522 |   test("vertical orientation works with page size selector", async ({ initTestBed, page }) => {
 523 |     await initTestBed(
 524 |       `<Pagination itemCount="50" pageSize="10" orientation="vertical" pageSizeOptions="{[5, 10, 20]}"/>`,
 525 |     );
 526 | 
 527 |     // Should have vertical class and show page size selector
 528 |     const nav = page.locator('nav[aria-label="Pagination"]');
 529 |     const prevButton = nav.getByRole("button", { name: "Previous page" });
 530 |     const nextButton = nav.getByRole("button", { name: "Next page" });
 531 | 
 532 |     const { bottom: prevBottom } = await getBounds(prevButton);
 533 |     const { top: nextTop } = await getBounds(nextButton);
 534 | 
 535 |     expect(prevBottom).toBeLessThan(nextTop);
 536 |     await expect(page.getByText("Items per page")).toBeVisible();
 537 |   });
 538 | 
 539 |   test("applies buttonRowPosition correctly", async ({ initTestBed, page }) => {
 540 |     await initTestBed(
 541 |       `<Pagination 
 542 |         itemCount="50" 
 543 |         pageSize="10" 
 544 |         buttonRowPosition="start"
 545 |         pageSizeOptions="{[5, 10, 20]}"
 546 |         pageSizeSelectorPosition="end"
 547 |         pageInfoPosition="center"
 548 |       />`,
 549 |     );
 550 | 
 551 |     // Check that pagination controls exist and are rendered
 552 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 553 |     
 554 |     // Check the structure shows proper positioning (buttons should be rendered before page size selector)
 555 |     const nav = page.locator('nav[aria-label="Pagination"]');
 556 |     await expect(nav).toBeVisible();
 557 |   });
 558 | 
 559 |   test("applies pageSizeSelectorPosition correctly", async ({ initTestBed, page }) => {
 560 |     await initTestBed(
 561 |       `<Pagination 
 562 |         itemCount="50" 
 563 |         pageSize="10" 
 564 |         buttonRowPosition="center"
 565 |         pageSizeOptions="{[5, 10, 20]}"
 566 |         pageSizeSelectorPosition="start"
 567 |         pageInfoPosition="end"
 568 |       />`,
 569 |     );
 570 | 
 571 |     // Check that page size selector exists and is rendered
 572 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 573 |     await expect(page.getByText("Items per page")).toBeVisible();
 574 |   });
 575 | 
 576 |   test("applies pageInfoPosition correctly", async ({ initTestBed, page }) => {
 577 |     await initTestBed(
 578 |       `<Pagination 
 579 |         itemCount="50" 
 580 |         pageSize="10" 
 581 |         buttonRowPosition="start"
 582 |         pageSizeSelectorPosition="center"
 583 |         pageInfoPosition="end"
 584 |       />`,
 585 |     );
 586 | 
 587 |     // Check that page info exists and is rendered
 588 |     await expect(page.locator('[data-component="page-info"]')).toBeVisible();
 589 |     await expect(page.getByText("Page 1 of 5 (50 items)")).toBeVisible();
 590 |   });
 591 | 
 592 |   test("renders only necessary components based on props", async ({ initTestBed, page }) => {
 593 |     await initTestBed(
 594 |       `<Pagination 
 595 |         itemCount="50" 
 596 |         pageSize="10" 
 597 |         buttonRowPosition="start"
 598 |         showPageInfo="false"
 599 |         showPageSizeSelector="false"
 600 |       />`,
 601 |     );
 602 | 
 603 |     // Button row should be rendered
 604 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 605 |     
 606 |     // Page info and size selector should not be rendered
 607 |     await expect(page.locator('[data-component="page-info"]')).not.toBeVisible();
 608 |     await expect(page.locator('[data-component="page-size-selector-container"]')).not.toBeVisible();
 609 |   });
 610 | 
 611 |   test("renders multiple components when in different positions", async ({ initTestBed, page }) => {
 612 |     await initTestBed(
 613 |       `<Pagination 
 614 |         itemCount="50" 
 615 |         pageSize="10" 
 616 |         buttonRowPosition="start"
 617 |         pageSizeOptions="{[5, 10, 20]}"
 618 |         pageSizeSelectorPosition="center"
 619 |         pageInfoPosition="end"
 620 |       />`,
 621 |     );
 622 | 
 623 |     // All components should be rendered
 624 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 625 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 626 |     await expect(page.locator('[data-component="page-info"]')).toBeVisible();
 627 |   });
 628 | 
 629 |   test("positions work correctly with vertical orientation", async ({ initTestBed, page }) => {
 630 |     await initTestBed(
 631 |       `<Pagination 
 632 |         itemCount="50" 
 633 |         pageSize="10" 
 634 |         orientation="vertical"
 635 |         buttonRowPosition="start"
 636 |         pageSizeOptions="{[5, 10, 20]}"
 637 |         pageSizeSelectorPosition="center"
 638 |         pageInfoPosition="end"
 639 |       />`,
 640 |     );
 641 | 
 642 |     const nav = page.locator('nav[aria-label="Pagination"]');
 643 |     await expect(nav).toHaveClass(/paginationVertical/);
 644 |     
 645 |     // All components should still be positioned correctly
 646 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 647 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 648 |     await expect(page.locator('[data-component="page-info"]')).toBeVisible();
 649 |   });
 650 | 
 651 |   test("grid layout maintains accessibility", async ({ initTestBed, page }) => {
 652 |     await initTestBed(
 653 |       `<Pagination 
 654 |         itemCount="50" 
 655 |         pageSize="10" 
 656 |         buttonRowPosition="center"
 657 |         pageSizeOptions="{[5, 10, 20]}"
 658 |         pageSizeSelectorPosition="start"
 659 |         pageInfoPosition="end"
 660 |       />`,
 661 |     );
 662 | 
 663 |     // All accessibility features should still work
 664 |     const nav = page.getByRole("navigation");
 665 |     await expect(nav).toBeVisible();
 666 |     await expect(nav).toHaveAttribute("aria-label", "Pagination");
 667 | 
 668 |     // The buttons here don't have explicit labels, but they are still targetable because of accessible aria-label props
 669 |     await expect(page.getByLabel("First page")).toBeVisible();
 670 |     await expect(page.getByLabel("Previous page")).toBeVisible();
 671 |     await expect(page.getByLabel("Next page")).toBeVisible();
 672 |     await expect(page.getByLabel("Last page")).toBeVisible();
 673 |   });
 674 | });
 675 | 
 676 | // =============================================================================
 677 | // GRID LAYOUT AND POSITIONING TESTS
 678 | // =============================================================================
 679 | 
 680 | test.describe("Grid Layout and Positioning", () => {
 681 |   test("default positions work correctly", async ({ initTestBed, page }) => {
 682 |     await initTestBed(
 683 |       `<Pagination 
 684 |         itemCount="50" 
 685 |         pageSize="10" 
 686 |         pageSizeOptions="{[5, 10, 20]}"
 687 |       />`,
 688 |     );
 689 | 
 690 |     // Default: pageSizeSelectorPosition="start", buttonRowPosition="center", pageInfoPosition="end"
 691 |     // All components should be visible with default positioning
 692 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 693 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 694 |     await expect(page.locator('[data-component="page-info"]')).toBeVisible();
 695 |   });
 696 | 
 697 |   test("multiple components can be positioned in same location", async ({ initTestBed, page }) => {
 698 |     await initTestBed(
 699 |       `<Pagination 
 700 |         itemCount="50" 
 701 |         pageSize="10" 
 702 |         buttonRowPosition="start"
 703 |         pageSizeOptions="{[5, 10, 20]}"
 704 |         pageSizeSelectorPosition="start"
 705 |         pageInfoPosition="end"
 706 |       />`,
 707 |     );
 708 | 
 709 |     // Both button row and page size selector should be rendered (both in start position)
 710 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 711 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 712 |     await expect(page.locator('[data-component="page-info"]')).toBeVisible();
 713 |   });
 714 | 
 715 |   test("handles invalid position values gracefully", async ({ initTestBed, page }) => {
 716 |     await initTestBed(
 717 |       `<Pagination 
 718 |         itemCount="50" 
 719 |         pageSize="10" 
 720 |         buttonRowPosition="invalid"
 721 |         pageSizeOptions="{[5, 10, 20]}"
 722 |         pageSizeSelectorPosition="invalid"
 723 |         pageInfoPosition="invalid"
 724 |       />`,
 725 |     );
 726 | 
 727 |     // Should still render the nav container even with invalid positions
 728 |     const nav = page.locator('nav[aria-label="Pagination"]');
 729 |     await expect(nav).toBeVisible();
 730 |     
 731 |     // With invalid positions, components may not be placed in slots, but the nav should exist
 732 |     // The component should handle this gracefully by either falling back to defaults or not rendering slots
 733 |   });
 734 | 
 735 |   test("components are not rendered when disabled", async ({ initTestBed, page }) => {
 736 |     await initTestBed(
 737 |       `<Pagination 
 738 |         itemCount="50" 
 739 |         pageSize="10" 
 740 |         buttonRowPosition="center"
 741 |         showPageInfo="false"
 742 |         showPageSizeSelector="false"
 743 |       />`,
 744 |     );
 745 | 
 746 |     // Only button row should be rendered
 747 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 748 |     await expect(page.locator('[data-component="page-size-selector-container"]')).not.toBeVisible();
 749 |     await expect(page.locator('[data-component="page-info"]')).not.toBeVisible();
 750 |   });
 751 | 
 752 |   test("grid adapts to content in vertical orientation", async ({ initTestBed, page }) => {
 753 |     await initTestBed(
 754 |       `<Pagination 
 755 |         itemCount="50" 
 756 |         pageSize="10" 
 757 |         orientation="vertical"
 758 |         buttonRowPosition="start"
 759 |         pageSizeOptions="{[5, 10, 20]}"
 760 |         pageSizeSelectorPosition="end"
 761 |         showPageInfo="false"
 762 |       />`,
 763 |     );
 764 | 
 765 |     const nav = page.locator('nav[aria-label="Pagination"]');
 766 |     await expect(nav).toHaveClass(/paginationVertical/);
 767 |     
 768 |     // Should have button row and page size selector
 769 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 770 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 771 |     await expect(page.locator('[data-component="page-info"]')).not.toBeVisible();
 772 |   });
 773 | 
 774 |   test("component order reflects positioning", async ({ initTestBed, page }) => {
 775 |     await initTestBed(
 776 |       `<Pagination 
 777 |         itemCount="50" 
 778 |         pageSize="10" 
 779 |         buttonRowPosition="end"
 780 |         pageSizeOptions="{[5, 10, 20]}"
 781 |         pageSizeSelectorPosition="start"
 782 |         pageInfoPosition="center"
 783 |       />`,
 784 |     );
 785 | 
 786 |     // All components should be rendered
 787 |     await expect(page.locator('[data-component="pagination-controls"]')).toBeVisible();
 788 |     await expect(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
 789 |     await expect(page.locator('[data-component="page-info"]')).toBeVisible();
 790 |   });
 791 | 
 792 |   test("position properties work with minimal pagination", async ({ initTestBed, page }) => {
 793 |     await initTestBed(
 794 |       `<Pagination 
 795 |         buttonRowPosition="center"
 796 |         hasPrevPage="true"
 797 |         hasNextPage="true"
 798 |       />`,
 799 |     );
 800 | 
 801 |     // Even without itemCount, minimal layout should work
 802 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeVisible();
 803 |     await expect(page.getByRole("button", { name: "Next page" })).toBeVisible();
 804 |   });
 805 | });
 806 | 
 807 | // =============================================================================
 808 | // ACCESSIBILITY TESTS
 809 | // =============================================================================
 810 | 
 811 | test.describe("Accessibility", () => {
 812 |   test("component container has correct role", async ({ initTestBed, page }) => {
 813 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" />`);
 814 |     await expect(page.getByRole("navigation")).toBeVisible();
 815 |   });
 816 | 
 817 |   test("navigation buttons have correct accessibility attributes", async ({
 818 |     initTestBed,
 819 |     page,
 820 |   }) => {
 821 |     await initTestBed(`<Pagination itemCount="50" pageSize="10"/>`);
 822 | 
 823 |     // Check button roles and labels
 824 |     await expect(page.getByLabel("First page")).toBeVisible();
 825 |     await expect(page.getByLabel("Previous page")).toBeVisible();
 826 |     await expect(page.getByLabel("Next page")).toBeVisible();
 827 |     await expect(page.getByLabel("Last page")).toBeVisible();
 828 |   });
 829 | 
 830 |   test("page indicator has correct aria attribute if maxVisiblePages=1", async ({
 831 |     initTestBed,
 832 |     page,
 833 |   }) => {
 834 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="1"/>`);
 835 |     await expect(page.getByText("1", { exact: true })).toHaveAttribute("aria-current", "true");
 836 |   });
 837 | 
 838 |   test("page buttons have correct accessibility attributes", async ({ initTestBed, page }) => {
 839 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="5"/>`);
 840 | 
 841 |     // Page buttons should have appropriate labels
 842 |     await expect(page.getByLabel("Page 1")).toBeVisible();
 843 |     await expect(page.getByLabel("Page 2")).toBeVisible();
 844 |     await expect(page.getByLabel("Page 3")).toBeVisible();
 845 |     await expect(page.getByLabel("Page 4")).toBeVisible();
 846 |     await expect(page.getByLabel("Page 5")).toBeVisible();
 847 |   });
 848 | 
 849 |   test("current page button has correct aria attribute if maxVisiblePages>1", async ({
 850 |     initTestBed,
 851 |     page,
 852 |   }) => {
 853 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="5"/>`);
 854 |     await expect(page.getByLabel("Page 1 (current)", { exact: true })).toBeVisible();
 855 |   });
 856 | 
 857 |   test("disabled buttons are properly marked as disabled", async ({ initTestBed, page }) => {
 858 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="0"/>`);
 859 | 
 860 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
 861 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
 862 |     await expect(page.getByRole("button", { name: "Next page" })).toBeEnabled();
 863 |     await expect(page.getByRole("button", { name: "Last page" })).toBeEnabled();
 864 |   });
 865 | 
 866 |   test("disabled buttons are properly marked as disabled #2", async ({ initTestBed, page }) => {
 867 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="5"/>`);
 868 | 
 869 |     await expect(page.getByRole("button", { name: "First page" })).toBeEnabled();
 870 |     await expect(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
 871 |     await expect(page.getByRole("button", { name: "Next page" })).toBeDisabled();
 872 |     await expect(page.getByRole("button", { name: "Last page" })).toBeDisabled();
 873 |   });
 874 | 
 875 |   test("buttons are focusable and keyboard navigable", async ({ initTestBed, page }) => {
 876 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="3"/>`);
 877 | 
 878 |     // Test tab navigation through buttons
 879 |     await page.keyboard.press("Tab");
 880 |     await expect(page.getByRole("button", { name: "Page 1" })).toBeFocused();
 881 | 
 882 |     await page.keyboard.press("Tab");
 883 |     await expect(page.getByRole("button", { name: "Page 2" })).toBeFocused();
 884 |   });
 885 | 
 886 |   test("page size selector is focused when label is clicked", async ({ initTestBed, page }) => {
 887 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
 888 |     await page.getByText("Items per page").click();
 889 |     await expect(page.locator("select")).toBeFocused();
 890 |   });
 891 | });
 892 | 
 893 | // =============================================================================
 894 | // INTERACTION TESTS
 895 | // =============================================================================
 896 | 
 897 | test.describe("User Interactions", () => {
 898 |   test("page button click triggers pageDidChange event", async ({ initTestBed, page }) => {
 899 |     const { testStateDriver } = await initTestBed(`
 900 |       <Pagination 
 901 |         itemCount="50" 
 902 |         pageSize="10" 
 903 |         pageIndex="0" 
 904 |         maxVisiblePages="5"
 905 |         onPageDidChange="arg => testState = arg"
 906 |       />
 907 |     `);
 908 | 
 909 |     await page.getByRole("button", { name: "Page 3" }).click();
 910 |     await expect.poll(testStateDriver.testState).toBe(2); // 0-based index
 911 |   });
 912 | 
 913 |   test("next button click triggers pageDidChange event", async ({ initTestBed, page }) => {
 914 |     const { testStateDriver } = await initTestBed(`
 915 |       <Pagination 
 916 |         itemCount="50" 
 917 |         pageSize="10" 
 918 |         pageIndex="0"
 919 |         onPageDidChange="arg => testState = arg"
 920 |       />
 921 |     `);
 922 | 
 923 |     await page.getByRole("button", { name: "Next page" }).click();
 924 |     await expect.poll(testStateDriver.testState).toBe(1);
 925 |   });
 926 | 
 927 |   test("previous button click triggers pageDidChange event", async ({ initTestBed, page }) => {
 928 |     const { testStateDriver } = await initTestBed(`
 929 |       <Pagination 
 930 |         itemCount="50" 
 931 |         pageSize="10" 
 932 |         pageIndex="2"
 933 |         onPageDidChange="arg => testState = arg"
 934 |       />
 935 |     `);
 936 | 
 937 |     await page.getByRole("button", { name: "Previous page" }).click();
 938 |     await expect.poll(testStateDriver.testState).toBe(1);
 939 |   });
 940 | 
 941 |   test("first page button click triggers pageDidChange event", async ({ initTestBed, page }) => {
 942 |     const { testStateDriver } = await initTestBed(`
 943 |       <Pagination 
 944 |         itemCount="50" 
 945 |         pageSize="10" 
 946 |         pageIndex="3"
 947 |         onPageDidChange="arg => testState = arg"
 948 |       />
 949 |     `);
 950 | 
 951 |     await page.getByRole("button", { name: "First page" }).click();
 952 |     await expect.poll(testStateDriver.testState).toBe(0);
 953 |   });
 954 | 
 955 |   test("last page button click triggers pageDidChange event", async ({ initTestBed, page }) => {
 956 |     const { testStateDriver } = await initTestBed(`
 957 |       <Pagination 
 958 |         itemCount="50" 
 959 |         pageSize="10" 
 960 |         pageIndex="0"
 961 |         onPageDidChange="arg => testState = arg"
 962 |       />
 963 |     `);
 964 | 
 965 |     await page.getByRole("button", { name: "Last page" }).click();
 966 |     await expect.poll(testStateDriver.testState).toBe(4); // Last page index
 967 |   });
 968 | 
 969 |   test("keyboard navigation works on page buttons", async ({ initTestBed, page }) => {
 970 |     await initTestBed(`
 971 |       <Pagination
 972 |         var.current="0"
 973 |         pageIndex="{current}"
 974 |         onPageDidChange="(next) => current = next"
 975 |         itemCount="50"
 976 |         pageSize="10"
 977 |         maxVisiblePages="5" />
 978 |     `);
 979 | 
 980 |     const pageButton = page.getByRole("button", { name: "Page 2" });
 981 |     await pageButton.click();
 982 |     // Should navigate to page 2 (button should become active)
 983 |     await expect(pageButton).toHaveAttribute("aria-label", "Page 2 (current)");
 984 |     await expect(pageButton).toHaveAttribute("aria-current", "true");
 985 |   });
 986 | 
 987 |   test("space key activates page buttons", async ({ initTestBed, page }) => {
 988 |     const { testStateDriver } = await initTestBed(`
 989 |       <Pagination 
 990 |         itemCount="50" 
 991 |         pageSize="10" 
 992 |         pageIndex="0"
 993 |         maxVisiblePages="5"
 994 |         onPageDidChange="arg => testState = arg"
 995 |       />
 996 |     `);
 997 | 
 998 |     const pageButton = page.getByRole("button", { name: "Page 3" });
 999 |     await pageButton.focus();
1000 |     await pageButton.press("Space");
1001 | 
1002 |     await expect.poll(testStateDriver.testState).toBe(2);
1003 |   });
1004 | 
1005 |   test("enter key activates page buttons", async ({ initTestBed, page }) => {
1006 |     const { testStateDriver } = await initTestBed(`
1007 |       <Pagination 
1008 |         itemCount="50" 
1009 |         pageSize="10" 
1010 |         pageIndex="0"
1011 |         maxVisiblePages="5"
1012 |         onPageDidChange="arg => testState = arg"
1013 |       />
1014 |     `);
1015 | 
1016 |     const pageButton = page.getByRole("button", { name: "Page 3" });
1017 |     await pageButton.focus();
1018 |     await pageButton.press("Enter");
1019 | 
1020 |     await expect.poll(testStateDriver.testState).toBe(2);
1021 |   });
1022 | 
1023 |   test("pageDidChange fires correctly if itemCount is undefined", async ({ initTestBed, page }) => {
1024 |     const { testStateDriver } = await initTestBed(`
1025 |       <Pagination 
1026 |         itemCount="{undefined}"
1027 |         hasNextPage="{true}"
1028 |         pageSize="10" 
1029 |         pageIndex="0"
1030 |         onPageDidChange="page => testState = page"
1031 |       />
1032 |     `);
1033 | 
1034 |     const pageButton = page.getByRole("button", { name: "Next page" });
1035 |     await pageButton.click();
1036 |     await expect.poll(testStateDriver.testState).toBe(1);
1037 |   });
1038 | });
1039 | 
1040 | // =============================================================================
1041 | // API TESTS
1042 | // =============================================================================
1043 | 
1044 | test.describe("Component APIs", () => {
1045 |   test("moveFirst API method works correctly", async ({ initTestBed, page }) => {
1046 |     const { testStateDriver } = await initTestBed(`
1047 |       <Fragment>
1048 |         <Pagination 
1049 |           id="pagination"
1050 |           itemCount="50" 
1051 |           pageSize="10" 
1052 |           pageIndex="3"
1053 |           onPageDidChange="arg => testState = arg"
1054 |         />
1055 |         <Button onClick="pagination.moveFirst()">Move First</Button>
1056 |       </Fragment>
1057 |     `);
1058 | 
1059 |     await page.getByRole("button", { name: "Move First" }).click();
1060 |     await expect.poll(testStateDriver.testState).toBe(0);
1061 |   });
1062 | 
1063 |   test("moveLast API method works correctly", async ({ initTestBed, page }) => {
1064 |     const { testStateDriver } = await initTestBed(`
1065 |       <Fragment>
1066 |         <Pagination 
1067 |           id="pagination"
1068 |           itemCount="50" 
1069 |           pageSize="10" 
1070 |           pageIndex="0"
1071 |           onPageDidChange="arg => testState = arg"
1072 |         />
1073 |         <Button onClick="pagination.moveLast()">Move Last</Button>
1074 |       </Fragment>
1075 |     `);
1076 | 
1077 |     await page.getByRole("button", { name: "Move Last" }).click();
1078 |     await expect.poll(testStateDriver.testState).toBe(4);
1079 |   });
1080 | 
1081 |   test("movePrev API method works correctly", async ({ initTestBed, page }) => {
1082 |     const { testStateDriver } = await initTestBed(`
1083 |       <Fragment>
1084 |         <Pagination 
1085 |           id="pagination"
1086 |           itemCount="50" 
1087 |           pageSize="10" 
1088 |           pageIndex="2"
1089 |           onPageDidChange="arg => testState = arg"
1090 |         />
1091 |         <Button onClick="pagination.movePrev()">Move Previous</Button>
1092 |       </Fragment>
1093 |     `);
1094 | 
1095 |     await page.getByRole("button", { name: "Move Previous" }).click();
1096 |     await expect.poll(testStateDriver.testState).toBe(1);
1097 |   });
1098 | 
1099 |   test("moveNext API method works correctly", async ({ initTestBed, page }) => {
1100 |     const { testStateDriver } = await initTestBed(`
1101 |       <Fragment>
1102 |         <Pagination 
1103 |           id="pagination"
1104 |           itemCount="50" 
1105 |           pageSize="10" 
1106 |           pageIndex="1"
1107 |           onPageDidChange="arg => testState = arg"
1108 |         />
1109 |         <Button onClick="pagination.moveNext()">Move Next</Button>
1110 |       </Fragment>
1111 |     `);
1112 | 
1113 |     await page.getByRole("button", { name: "Move Next" }).click();
1114 |     await expect.poll(testStateDriver.testState).toBe(2);
1115 |   });
1116 | 
1117 |   test("currentPage API method returns correct value", async ({ initTestBed, page }) => {
1118 |     const { testStateDriver } = await initTestBed(`
1119 |       <Fragment>
1120 |         <Pagination 
1121 |           id="pagination"
1122 |           itemCount="50" 
1123 |           pageSize="10" 
1124 |           pageIndex="2"
1125 |         />
1126 |         <Button onClick="testState = pagination.currentPage">Get Current Page</Button>
1127 |       </Fragment>
1128 |     `);
1129 | 
1130 |     await page.getByRole("button", { name: "Get Current Page" }).click();
1131 |     await expect.poll(testStateDriver.testState).toBe(3); // 1-based page number
1132 |   });
1133 | 
1134 |   test("currentPageSize API method returns correct value", async ({ initTestBed, page }) => {
1135 |     const { testStateDriver } = await initTestBed(`
1136 |       <Fragment>
1137 |         <Pagination 
1138 |           id="pagination"
1139 |           itemCount="50" 
1140 |           pageSize="15"
1141 |         />
1142 |         <Button onClick="testState = pagination.currentPageSize">Get Page Size</Button>
1143 |       </Fragment>
1144 |     `);
1145 | 
1146 |     await page.getByRole("button", { name: "Get Page Size" }).click();
1147 |     await expect.poll(testStateDriver.testState).toBe(15);
1148 |   });
1149 | 
1150 |   test("API methods handle boundary conditions correctly (moveFirst, movePrev)", async ({
1151 |     initTestBed,
1152 |     page,
1153 |   }) => {
1154 |     const { testStateDriver } = await initTestBed(`
1155 |       <Fragment>
1156 |         <Pagination 
1157 |           id="pagination"
1158 |           itemCount="50" 
1159 |           pageSize="10" 
1160 |           pageIndex="0"
1161 |           onPageDidChange="arg => testState = testState == null ? [arg] : [...testState, arg]"
1162 |         />
1163 |         <Button onClick="pagination.movePrev()">Move Previous From First</Button>
1164 |         <Button onClick="pagination.moveFirst()">Move First From First</Button>
1165 |       </Fragment>
1166 |     `);
1167 | 
1168 |     // Try to move previous from first page - should not trigger event
1169 |     await page.getByRole("button", { name: "Move Previous From First" }).click();
1170 |     await page.getByRole("button", { name: "Move First From First" }).click();
1171 | 
1172 |     // Should not have triggered any page changes since we're already on first page
1173 |     await expect.poll(testStateDriver.testState).toBeNull();
1174 |   });
1175 | 
1176 |   test("API methods handle boundary conditions correctly (moveLast, moveNext)", async ({
1177 |     initTestBed,
1178 |     page,
1179 |   }) => {
1180 |     const { testStateDriver } = await initTestBed(`
1181 |       <Fragment>
1182 |         <Pagination 
1183 |           id="pagination"
1184 |           itemCount="50" 
1185 |           pageSize="10" 
1186 |           pageIndex="5"
1187 |           onPageDidChange="arg => testState = testState == null ? [arg] : [...testState, arg]"
1188 |         />
1189 |         <Button onClick="pagination.moveNext()">Move Next From Last</Button>
1190 |         <Button onClick="pagination.moveLast()">Move Last From Last</Button>
1191 |       </Fragment>
1192 |     `);
1193 | 
1194 |     // Try to move next from last page - should not trigger event
1195 |     await page.getByRole("button", { name: "Move Next From Last" }).click();
1196 |     await page.getByRole("button", { name: "Move Last From Last" }).click();
1197 | 
1198 |     // Should not have triggered any page changes since we're already on last page
1199 |     await expect.poll(testStateDriver.testState).toBeNull();
1200 |   });
1201 | });
1202 | 
1203 | // =============================================================================
1204 | // OTHER EDGE CASE TESTS
1205 | // =============================================================================
1206 | 
1207 | test.describe("Other Edge Cases", () => {
1208 |   test("visible pages adjust correctly when navigating", async ({ initTestBed, page }) => {
1209 |     await initTestBed(`
1210 |       <Pagination 
1211 |         itemCount="100" 
1212 |         pageSize="10" 
1213 |         pageIndex="5"
1214 |         maxVisiblePages="3"
1215 |       />
1216 |     `);
1217 | 
1218 |     // Should show pages around current page (page 6: index 5)
1219 |     await expect(page.getByRole("button", { name: "Page 5" })).toBeVisible();
1220 |     await expect(page.getByRole("button", { name: "Page 6" })).toBeVisible();
1221 |     await expect(page.getByRole("button", { name: "Page 7" })).toBeVisible();
1222 |   });
1223 | 
1224 |   test("visible pages handle edge case near beginning", async ({ initTestBed, page }) => {
1225 |     await initTestBed(`
1226 |       <Pagination 
1227 |         itemCount="100" 
1228 |         pageSize="10" 
1229 |         pageIndex="0"
1230 |         maxVisiblePages="3"
1231 |       />
1232 |     `);
1233 | 
1234 |     // Should show first 3 pages when on first page
1235 |     await expect(page.getByRole("button", { name: "Page 1" })).toBeVisible();
1236 |     await expect(page.getByRole("button", { name: "Page 2" })).toBeVisible();
1237 |     await expect(page.getByRole("button", { name: "Page 3" })).toBeVisible();
1238 |   });
1239 | 
1240 |   test("visible pages handle edge case near end", async ({ initTestBed, page }) => {
1241 |     await initTestBed(`
1242 |       <Pagination 
1243 |         itemCount="100" 
1244 |         pageSize="10" 
1245 |         pageIndex="9"
1246 |         maxVisiblePages="3"
1247 |       />
1248 |     `);
1249 | 
1250 |     // Should show last 3 pages when on last page
1251 |     await expect(page.getByRole("button", { name: "Page 8" })).toBeVisible();
1252 |     await expect(page.getByRole("button", { name: "Page 9" })).toBeVisible();
1253 |     await expect(page.getByRole("button", { name: "Page 10" })).toBeVisible();
1254 |   });
1255 | 
1256 |   test("shows all pages when total pages less than maxVisiblePages", async ({
1257 |     initTestBed,
1258 |     page,
1259 |   }) => {
1260 |     await initTestBed(`
1261 |       <Pagination 
1262 |         itemCount="30" 
1263 |         pageSize="10" 
1264 |         maxVisiblePages="5"
1265 |       />
1266 |     `);
1267 | 
1268 |     // Should show all 3 pages since 3 < 5
1269 |     await expect(page.getByRole("button", { name: "Page 1" })).toBeVisible();
1270 |     await expect(page.getByRole("button", { name: "Page 2" })).toBeVisible();
1271 |     await expect(page.getByRole("button", { name: "Page 3" })).toBeVisible();
1272 | 
1273 |     // Should not show page 4 or 5
1274 |     await expect(page.getByRole("button", { name: "Page 4" })).not.toBeVisible();
1275 |     await expect(page.getByRole("button", { name: "Page 5" })).not.toBeVisible();
1276 |   });
1277 | 
1278 |   test("handles extremely large numbers", async ({ initTestBed, page }) => {
1279 |     await initTestBed(`<Pagination itemCount="9999999" pageSize="1000"/>`);
1280 | 
1281 |     // Should handle large numbers without crashing
1282 |     await expect(page.getByText(/Page 1 of \d+/)).toBeVisible();
1283 |     await expect(page.getByRole("button", { name: "First page" })).toBeVisible();
1284 |   });
1285 | 
1286 |   test("handles page size larger than item count", async ({ initTestBed, page }) => {
1287 |     await initTestBed(`<Pagination itemCount="5" pageSize="20"/>`);
1288 | 
1289 |     // Should show only 1 page when page size exceeds item count
1290 |     await expect(page.getByText("Page 1 of 1 (5 items)")).toBeVisible();
1291 |     await expect(page.getByRole("button", { name: "First page" })).toBeDisabled();
1292 |     await expect(page.getByRole("button", { name: "Last page" })).toBeDisabled();
1293 |   });
1294 | 
1295 |   test("handles pageIndex beyond valid range", async ({ initTestBed, page }) => {
1296 |     await initTestBed(`<Pagination itemCount="30" pageSize="10" pageIndex="999"/>`);
1297 | 
1298 |     // Should clamp to valid range - last page should be shown
1299 |     await expect(page.getByText("Page 3 of 3 (30 items)")).toBeVisible();
1300 |   });
1301 | 
1302 |   test("handles maxVisiblePages of 1 correctly", async ({ initTestBed, page }) => {
1303 |     await initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="1"/>`);
1304 | 
1305 |     // Should show only current page as text, not as button
1306 |     await expect(page.getByText("1", { exact: true })).toBeVisible();
1307 | 
1308 |     // Should still show navigation buttons
1309 |     await expect(page.getByRole("button", { name: "First page" })).toBeVisible();
1310 |     await expect(page.getByRole("button", { name: "Next page" })).toBeVisible();
1311 |   });
1312 | 
1313 |   test("handles maxVisiblePages larger than total pages", async ({ initTestBed, page }) => {
1314 |     await initTestBed(`<Pagination itemCount="20" pageSize="10" maxVisiblePages="10"/>`);
1315 | 
1316 |     // Invalid maxVisiblePages (10) should fall back to default (1)
1317 |     // With maxVisiblePages=1, should show current page as text, not buttons
1318 |     await expect(page.getByText("1", { exact: true })).toBeVisible();
1319 |     await expect(page.getByRole("button", { name: "Page 1" })).not.toBeVisible();
1320 |     await expect(page.getByRole("button", { name: "Page 2" })).not.toBeVisible();
1321 |   });
1322 | 
1323 |   test("works correctly with fractional page calculations", async ({ initTestBed, page }) => {
1324 |     await initTestBed(`<Pagination itemCount="17" pageSize="5"/>`);
1325 | 
1326 |     // 17 items / 5 per page = 3.4 -> should round up to 4 pages
1327 |     await expect(page.getByText("Page 1 of 4 (17 items)")).toBeVisible();
1328 |   });
1329 | });
1330 | 
```
Page 155/181FirstPrevNextLast