This is page 2 of 175. Use http://codebase.md/xmlui-org/xmlui?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .changeset │ ├── cold-items-taste.md │ ├── config.json │ ├── empty-spiders-dress.md │ ├── shy-windows-allow.md │ ├── sour-coins-read.md │ ├── tame-zebras-invite.md │ ├── twenty-jeans-watch.md │ └── warm-spies-melt.md ├── .eslintrc.cjs ├── .github │ ├── build-checklist.png │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows │ ├── deploy-docs-optimized.yml │ ├── deploy-docs.yml │ ├── prepare-versions.yml │ ├── release-packages.yml │ ├── run-all-tests.yml │ └── run-smoke-tests.yml ├── .gitignore ├── .prettierrc.js ├── .vscode │ ├── launch.json │ └── settings.json ├── blog │ ├── .gitignore │ ├── .gitkeep │ ├── CHANGELOG.md │ ├── extensions.ts │ ├── index.html │ ├── index.ts │ ├── package.json │ ├── public │ │ ├── blog │ │ │ ├── images │ │ │ │ ├── blog-page-component.png │ │ │ │ ├── blog-scrabble.png │ │ │ │ ├── integrated-blog-search.png │ │ │ │ └── lorem-ipsum.png │ │ │ ├── lorem-ipsum.md │ │ │ ├── newest-post.md │ │ │ ├── older-post.md │ │ │ └── welcome-to-the-xmlui-blog.md │ │ ├── mockServiceWorker.js │ │ ├── resources │ │ │ ├── favicon.ico │ │ │ ├── files │ │ │ │ └── for-download │ │ │ │ └── xmlui │ │ │ │ └── xmlui-standalone.umd.js │ │ │ ├── github.svg │ │ │ ├── llms.txt │ │ │ ├── logo-dark.svg │ │ │ ├── logo.svg │ │ │ ├── pg-popout.svg │ │ │ └── xmlui-logo.svg │ │ ├── serve.json │ │ └── web.config │ ├── scripts │ │ ├── download-latest-xmlui.js │ │ ├── generate-rss.js │ │ ├── get-releases.js │ │ └── utils.js │ ├── src │ │ ├── components │ │ │ ├── BlogOverview.xmlui │ │ │ ├── BlogPage.xmlui │ │ │ └── PageNotFound.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 ├── 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 │ │ │ │ ├── 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 │ └── testing-conventions.md ├── dev-docs │ ├── accessibility.md │ ├── actions.md │ ├── AppRoot.md │ ├── component-apis.md │ ├── component-rendering.md │ ├── component-review-checklist.md │ ├── data-sources.md │ ├── e2e-summary.md │ ├── expression-evaluation.md │ ├── glossary.md │ ├── helper-components.md │ ├── index.md │ ├── loaders.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 │ ├── rendering-fundamentals.md │ ├── reusable-components.md │ ├── standalone-apps.md │ ├── state-management.md │ └── xmlui-extensibility.xlsx ├── 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 │ │ │ ├── BehaviorContext.tsx │ │ │ └── CoreBehaviors.tsx │ │ ├── component-hooks.ts │ │ ├── ComponentDecorator.tsx │ │ ├── ComponentViewer.tsx │ │ ├── CompoundComponent.tsx │ │ ├── constants.ts │ │ ├── DebugViewProvider.tsx │ │ ├── descriptorHelper.ts │ │ ├── devtools │ │ │ ├── InspectorDialog.module.scss │ │ │ ├── InspectorDialog.tsx │ │ │ └── InspectorDialogVisibilityContext.tsx │ │ ├── EngineError.ts │ │ ├── event-handlers.ts │ │ ├── InspectorButton.module.scss │ │ ├── InspectorContext.tsx │ │ ├── interception │ │ │ ├── abstractions.ts │ │ │ ├── ApiInterceptor.ts │ │ │ ├── ApiInterceptorProvider.tsx │ │ │ ├── apiInterceptorWorker.ts │ │ │ ├── Backend.ts │ │ │ ├── Errors.ts │ │ │ ├── IndexedDb.ts │ │ │ ├── initMock.ts │ │ │ ├── InMemoryDb.ts │ │ │ ├── ReadonlyCollection.ts │ │ │ └── useApiInterceptorContext.tsx │ │ ├── loader │ │ │ ├── ApiLoader.tsx │ │ │ ├── DataLoader.tsx │ │ │ ├── ExternalDataLoader.tsx │ │ │ ├── Loader.tsx │ │ │ ├── MockLoaderRenderer.tsx │ │ │ └── PageableLoader.tsx │ │ ├── LoaderComponent.tsx │ │ ├── markup-check.ts │ │ ├── parts.ts │ │ ├── renderers.ts │ │ ├── rendering │ │ │ ├── AppContent.tsx │ │ │ ├── AppRoot.tsx │ │ │ ├── AppWrapper.tsx │ │ │ ├── buildProxy.ts │ │ │ ├── collectFnVarDeps.ts │ │ │ ├── ComponentAdapter.tsx │ │ │ ├── ComponentWrapper.tsx │ │ │ ├── Container.tsx │ │ │ ├── containers.ts │ │ │ ├── ContainerWrapper.tsx │ │ │ ├── ErrorBoundary.module.scss │ │ │ ├── ErrorBoundary.tsx │ │ │ ├── InvalidComponent.module.scss │ │ │ ├── InvalidComponent.tsx │ │ │ ├── nodeUtils.ts │ │ │ ├── reducer.ts │ │ │ ├── renderChild.tsx │ │ │ ├── StandaloneComponent.tsx │ │ │ ├── StateContainer.tsx │ │ │ ├── UnknownComponent.module.scss │ │ │ ├── UnknownComponent.tsx │ │ │ └── valueExtractor.ts │ │ ├── reportEngineError.ts │ │ ├── RestApiProxy.ts │ │ ├── script-runner │ │ │ ├── asyncProxy.ts │ │ │ ├── AttributeValueParser.ts │ │ │ ├── bannedFunctions.ts │ │ │ ├── BindingTreeEvaluationContext.ts │ │ │ ├── eval-tree-async.ts │ │ │ ├── eval-tree-common.ts │ │ │ ├── eval-tree-sync.ts │ │ │ ├── ParameterParser.ts │ │ │ ├── process-statement-async.ts │ │ │ ├── process-statement-common.ts │ │ │ ├── process-statement-sync.ts │ │ │ ├── ScriptingSourceTree.ts │ │ │ ├── simplify-expression.ts │ │ │ ├── statement-queue.ts │ │ │ └── visitors.ts │ │ ├── StandaloneApp.tsx │ │ ├── StandaloneExtensionManager.ts │ │ ├── TableOfContentsContext.tsx │ │ ├── theming │ │ │ ├── _themes.scss │ │ │ ├── component-layout-resolver.ts │ │ │ ├── extendThemeUtils.ts │ │ │ ├── hvar.ts │ │ │ ├── layout-resolver.ts │ │ │ ├── parse-layout-props.ts │ │ │ ├── StyleContext.tsx │ │ │ ├── StyleRegistry.ts │ │ │ ├── ThemeContext.tsx │ │ │ ├── ThemeProvider.tsx │ │ │ ├── themes │ │ │ │ ├── base-utils.ts │ │ │ │ ├── palette.ts │ │ │ │ ├── root.ts │ │ │ │ ├── solid.ts │ │ │ │ ├── theme-colors.ts │ │ │ │ └── xmlui.ts │ │ │ ├── themeVars.module.scss │ │ │ ├── themeVars.ts │ │ │ ├── transformThemeVars.ts │ │ │ └── utils.ts │ │ ├── utils │ │ │ ├── actionUtils.ts │ │ │ ├── audio-utils.ts │ │ │ ├── compound-utils.ts │ │ │ ├── css-utils.ts │ │ │ ├── DataLoaderQueryKeyGenerator.ts │ │ │ ├── date-utils.ts │ │ │ ├── extractParam.ts │ │ │ ├── hooks.tsx │ │ │ ├── LruCache.ts │ │ │ ├── mergeProps.ts │ │ │ ├── misc.ts │ │ │ ├── request-params.ts │ │ │ ├── statementUtils.ts │ │ │ └── treeUtils.ts │ │ └── xmlui-parser.ts │ ├── index-standalone.ts │ ├── index.scss │ ├── index.ts │ ├── language-server │ │ ├── server-common.ts │ │ ├── server-web-worker.ts │ │ ├── server.ts │ │ ├── services │ │ │ ├── common │ │ │ │ ├── docs-generation.ts │ │ │ │ ├── lsp-utils.ts │ │ │ │ ├── metadata-utils.ts │ │ │ │ └── syntax-node-utilities.ts │ │ │ ├── completion.ts │ │ │ ├── diagnostic.ts │ │ │ ├── format.ts │ │ │ └── hover.ts │ │ └── xmlui-metadata-generated.mjs │ ├── logging │ │ ├── LoggerContext.tsx │ │ ├── LoggerInitializer.tsx │ │ ├── LoggerService.ts │ │ └── xmlui.ts │ ├── logo.svg │ ├── parsers │ │ ├── common │ │ │ ├── GenericToken.ts │ │ │ ├── InputStream.ts │ │ │ └── utils.ts │ │ ├── scripting │ │ │ ├── code-behind-collect.ts │ │ │ ├── Lexer.ts │ │ │ ├── modules.ts │ │ │ ├── Parser.ts │ │ │ ├── ParserError.ts │ │ │ ├── ScriptingNodeTypes.ts │ │ │ ├── TokenTrait.ts │ │ │ ├── TokenType.ts │ │ │ └── tree-visitor.ts │ │ ├── style-parser │ │ │ ├── errors.ts │ │ │ ├── source-tree.ts │ │ │ ├── StyleInputStream.ts │ │ │ ├── StyleLexer.ts │ │ │ ├── StyleParser.ts │ │ │ └── tokens.ts │ │ └── xmlui-parser │ │ ├── CharacterCodes.ts │ │ ├── diagnostics.ts │ │ ├── fileExtensions.ts │ │ ├── index.ts │ │ ├── lint.ts │ │ ├── parser.ts │ │ ├── ParserError.ts │ │ ├── scanner.ts │ │ ├── syntax-kind.ts │ │ ├── syntax-node.ts │ │ ├── transform.ts │ │ ├── utils.ts │ │ ├── xmlui-serializer.ts │ │ └── xmlui-tree.ts │ ├── react-app-env.d.ts │ ├── syntax │ │ ├── monaco │ │ │ ├── grammar.monacoLanguage.ts │ │ │ ├── index.ts │ │ │ ├── xmlui-dark.ts │ │ │ ├── xmlui-light.ts │ │ │ └── xmluiscript.monacoLanguage.ts │ │ └── textMate │ │ ├── index.ts │ │ ├── xmlui-dark.json │ │ ├── xmlui-light.json │ │ ├── xmlui.json │ │ └── xmlui.tmLanguage.json │ ├── testing │ │ ├── assertions.ts │ │ ├── component-test-helpers.ts │ │ ├── ComponentDrivers.ts │ │ ├── drivers │ │ │ ├── DateInputDriver.ts │ │ │ ├── ModalDialogDriver.ts │ │ │ ├── NumberBoxDriver.ts │ │ │ ├── TextBoxDriver.ts │ │ │ ├── TimeInputDriver.ts │ │ │ ├── TimerDriver.ts │ │ │ └── TreeDriver.ts │ │ ├── fixtures.ts │ │ ├── infrastructure │ │ │ ├── index.html │ │ │ ├── main.tsx │ │ │ ├── public │ │ │ │ ├── mockServiceWorker.js │ │ │ │ ├── resources │ │ │ │ │ ├── bell.svg │ │ │ │ │ ├── box.svg │ │ │ │ │ ├── doc.svg │ │ │ │ │ ├── eye.svg │ │ │ │ │ ├── flower-640x480.jpg │ │ │ │ │ ├── sun.svg │ │ │ │ │ ├── test-image-100x100.jpg │ │ │ │ │ └── txt.svg │ │ │ │ └── serve.json │ │ │ └── TestBed.tsx │ │ └── themed-app-test-helpers.ts │ └── vite-env.d.ts ├── tests │ ├── components │ │ ├── CodeBlock │ │ │ └── hightlight-code.test.ts │ │ ├── playground-pattern.test.ts │ │ └── Tree │ │ └── Tree-states.test.ts │ ├── components-core │ │ ├── abstractions │ │ │ └── treeAbstractions.test.ts │ │ ├── container │ │ │ └── buildProxy.test.ts │ │ ├── interception │ │ │ ├── orderBy.test.ts │ │ │ ├── ReadOnlyCollection.test.ts │ │ │ └── request-param-converter.test.ts │ │ ├── scripts-runner │ │ │ ├── AttributeValueParser.test.ts │ │ │ ├── eval-tree-arrow-async.test.ts │ │ │ ├── eval-tree-arrow.test.ts │ │ │ ├── eval-tree-func-decl-async.test.ts │ │ │ ├── eval-tree-func-decl.test.ts │ │ │ ├── eval-tree-pre-post.test.ts │ │ │ ├── eval-tree-regression.test.ts │ │ │ ├── eval-tree.test.ts │ │ │ ├── function-proxy.test.ts │ │ │ ├── parser-regression.test.ts │ │ │ ├── process-event.test.ts │ │ │ ├── process-function.test.ts │ │ │ ├── process-implicit-context.test.ts │ │ │ ├── process-statement-asgn.test.ts │ │ │ ├── process-statement-destruct.test.ts │ │ │ ├── process-statement-regs.test.ts │ │ │ ├── process-statement-sync.test.ts │ │ │ ├── process-statement.test.ts │ │ │ ├── process-switch-sync.test.ts │ │ │ ├── process-switch.test.ts │ │ │ ├── process-try-sync.test.ts │ │ │ ├── process-try.test.ts │ │ │ └── test-helpers.ts │ │ ├── test-metadata-handler.ts │ │ ├── theming │ │ │ ├── border-segments.test.ts │ │ │ ├── component-layout.resolver.test.ts │ │ │ ├── layout-property-parser.test.ts │ │ │ ├── layout-resolver.test.ts │ │ │ ├── layout-resolver2.test.ts │ │ │ ├── layout-vp-override.test.ts │ │ │ └── padding-segments.test.ts │ │ └── utils │ │ ├── date-utils.test.ts │ │ ├── format-human-elapsed-time.test.ts │ │ └── LruCache.test.ts │ ├── language-server │ │ ├── completion.test.ts │ │ ├── format.test.ts │ │ ├── hover.test.ts │ │ └── mockData.ts │ └── parsers │ ├── common │ │ └── input-stream.test.ts │ ├── markdown │ │ └── parse-binding-expression.test.ts │ ├── parameter-parser.test.ts │ ├── paremeter-parser.test.ts │ ├── scripting │ │ ├── eval-tree-arrow.test.ts │ │ ├── eval-tree-pre-post.test.ts │ │ ├── eval-tree.test.ts │ │ ├── function-proxy.test.ts │ │ ├── lexer-literals.test.ts │ │ ├── lexer-misc.test.ts │ │ ├── module-parse.test.ts │ │ ├── parser-arrow.test.ts │ │ ├── parser-assignments.test.ts │ │ ├── parser-binary.test.ts │ │ ├── parser-destructuring.test.ts │ │ ├── parser-errors.test.ts │ │ ├── parser-expressions.test.ts │ │ ├── parser-function.test.ts │ │ ├── parser-literals.test.ts │ │ ├── parser-primary.test.ts │ │ ├── parser-regex.test.ts │ │ ├── parser-statements.test.ts │ │ ├── parser-unary.test.ts │ │ ├── process-event.test.ts │ │ ├── process-implicit-context.test.ts │ │ ├── process-statement-asgn.test.ts │ │ ├── process-statement-destruct.test.ts │ │ ├── process-statement-regs.test.ts │ │ ├── process-statement-sync.test.ts │ │ ├── process-statement.test.ts │ │ ├── process-switch-sync.test.ts │ │ ├── process-switch.test.ts │ │ ├── process-try-sync.test.ts │ │ ├── process-try.test.ts │ │ ├── simplify-expression.test.ts │ │ ├── statement-hooks.test.ts │ │ └── test-helpers.ts │ ├── style-parser │ │ ├── generateHvarChain.test.ts │ │ ├── parseHVar.test.ts │ │ ├── parser.test.ts │ │ └── tokens.test.ts │ └── xmlui │ ├── lint.test.ts │ ├── parser.test.ts │ ├── scanner.test.ts │ ├── transform.attr.test.ts │ ├── transform.circular.test.ts │ ├── transform.element.test.ts │ ├── transform.errors.test.ts │ ├── transform.escape.test.ts │ ├── transform.regression.test.ts │ ├── transform.script.test.ts │ ├── transform.test.ts │ └── xmlui.ts ├── tests-e2e │ ├── api-bound-component-regression.spec.ts │ ├── api-call-as-extracted-component.spec.ts │ ├── assign-to-object-or-array-regression.spec.ts │ ├── binding-regression.spec.ts │ ├── children-as-template-context-vars.spec.ts │ ├── compound-component.spec.ts │ ├── context-vars-regression.spec.ts │ ├── data-bindings.spec.ts │ ├── datasource-and-api-usage-in-var.spec.ts │ ├── datasource-direct-binding.spec.ts │ ├── datasource-onLoaded-regression.spec.ts │ ├── modify-array-item-regression.spec.ts │ ├── namespaces.spec.ts │ ├── push-to-array-regression.spec.ts │ ├── screen-breakpoints.spec.ts │ ├── scripting.spec.ts │ ├── state-scope-in-pages.spec.ts │ └── state-var-scopes.spec.ts ├── tsconfig.bin.json ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── vitest.config.ts ``` # Files -------------------------------------------------------------------------------- /packages/xmlui-hello-world/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import HelloWorld from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, HelloWorld); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, HelloWorld); 10 | }); 11 | } 12 | ``` -------------------------------------------------------------------------------- /packages/xmlui-os-frames/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import components from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, components); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, components); 10 | }); 11 | } 12 | ``` -------------------------------------------------------------------------------- /packages/xmlui-pdf/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import pdf from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, pdf); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, pdf); 10 | }); 11 | } 12 | 13 | export default pdf; 14 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import Playground from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, Playground); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, Playground); 10 | }); 11 | } 12 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/src/playground/Box.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import type { CSSProperties } from "react"; 2 | import style from "./Box.module.scss"; 3 | 4 | export const Box = ({ 5 | children, 6 | styles, 7 | }: { 8 | children: React.ReactNode; 9 | styles?: CSSProperties; 10 | }) => { 11 | return ( 12 | <div style={styles} className={style.box}> 13 | {children} 14 | </div> 15 | ); 16 | }; 17 | ``` -------------------------------------------------------------------------------- /docs/public/pages/xmlui-pdf/_overview.md: -------------------------------------------------------------------------------- ```markdown 1 | ## Xmlui Pdf Package 2 | 3 | This package provides components for working with pdf files. 4 | 5 | ## Package Components 6 | 7 | | Component | Description | Status | 8 | | :---: | --- | :---: | 9 | | [Pdf](./xmlui-pdf/Pdf) | The `Pdf` component provides a read-only preview of a pdf document's contents. | experimental | 10 | ``` -------------------------------------------------------------------------------- /xmlui/src/language-server/services/common/lsp-utils.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { Position, Range } from "vscode-languageserver"; 2 | 3 | type OffsetRange = { pos: number, end: number }; 4 | 5 | export function offsetToPosRange(offsetToPos: (number) => Position, range: OffsetRange): Range { 6 | return { 7 | start: offsetToPos(range.pos), 8 | end: offsetToPos(range.end), 9 | } 10 | } 11 | ``` -------------------------------------------------------------------------------- /blog/src/themes/xmlui-gray-on-default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const XmluiGrayOnDefaultTheme: ThemeDefinition = { 4 | name: "XMLUI Gray Documentation Theme", 5 | id: "xmlui-gray-on-default", 6 | extends: ["xmlui-gray", "docs-theme"], 7 | themeVars: {}, 8 | resources: {}, 9 | }; 10 | 11 | export default XmluiGrayOnDefaultTheme; 12 | ``` -------------------------------------------------------------------------------- /docs/src/themes/xmlui-gray-on-default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const XmluiGrayOnDefaultTheme: ThemeDefinition = { 4 | name: "XMLUI Gray Documentation Theme", 5 | id: "xmlui-gray-on-default", 6 | extends: ["xmlui-gray", "docs-theme"], 7 | themeVars: {}, 8 | resources: {}, 9 | }; 10 | 11 | export default XmluiGrayOnDefaultTheme; 12 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/trending-level.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon ms-1"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> 3 | <path d="M5 12l14 0"></path> 4 | </svg> ``` -------------------------------------------------------------------------------- /xmlui/src/components/ToneChangerButton/ToneChangerButton.md: -------------------------------------------------------------------------------- ```markdown 1 | %-DESC-START 2 | 3 | ```xmlui-pg {4} copy display name="Example: using ToneChangerButton" 4 | <App> 5 | <AppHeader> 6 | <SpaceFiller /> 7 | <ToneChangerButton /> 8 | </AppHeader> 9 | <Card 10 | title="Tone Changer Button" 11 | subtitle="Click the button in the header to change the tone." 12 | /> 13 | </App> 14 | ``` 15 | 16 | %-DESC-END ``` -------------------------------------------------------------------------------- /tools/vscode/tsconfig.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "compilerOptions": { 3 | "module": "ESNext", 4 | "moduleResolution": "bundler", 5 | "target": "es2020", 6 | "lib": ["ESNext"], 7 | "outDir": "dist", 8 | "rootDir": "src", 9 | "skipLibCheck": true, 10 | "sourceMap": true 11 | }, 12 | "include": ["src"], 13 | "exclude": ["node_modules", ".vscode-test"] 14 | } 15 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/src/index.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { playgroundComponentRenderer } from "./playground/Playground"; 2 | import { standalonePlaygroundComponentRenderer } from "./playground/StandalonePlayground"; 3 | 4 | export default { 5 | namespace: "XMLUIExtensions", 6 | components: [playgroundComponentRenderer, standalonePlaygroundComponentRenderer], 7 | }; 8 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Pages/Pages.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "../../components-core/theming/themes" as t; 2 | 3 | @layer components { 4 | .wrapper{ 5 | padding-top: t.$space-5; 6 | padding-bottom: t.$space-5; 7 | padding-right: t.$space-4; 8 | padding-left: t.$space-4; 9 | gap: t.$space-5; 10 | display: flex; 11 | flex-direction: column; 12 | min-height: 100%; 13 | } 14 | } ``` -------------------------------------------------------------------------------- /blog/src/themes/xmlui-green-on-default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const XmluiGreenOnDefaultTheme: ThemeDefinition = { 4 | name: "XMLUI Green Documentation Theme", 5 | id: "xmlui-green-on-default", 6 | extends: ["xmlui-green", "docs-theme"], 7 | themeVars: {}, 8 | resources: {}, 9 | }; 10 | 11 | export default XmluiGreenOnDefaultTheme; 12 | ``` -------------------------------------------------------------------------------- /docs/src/themes/xmlui-green-on-default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const XmluiGreenOnDefaultTheme: ThemeDefinition = { 4 | name: "XMLUI Green Documentation Theme", 5 | id: "xmlui-green-on-default", 6 | extends: ["xmlui-green", "docs-theme"], 7 | themeVars: {}, 8 | resources: {}, 9 | }; 10 | 11 | export default XmluiGreenOnDefaultTheme; 12 | ``` -------------------------------------------------------------------------------- /xmlui/src/logging/LoggerInitializer.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { useLogger } from "./LoggerContext"; 2 | import { useEffect } from "react"; 3 | import { loggerService } from "./LoggerService"; 4 | 5 | export const LoggerInitializer = () => { 6 | const { addLog } = useLogger(); 7 | 8 | useEffect(() => { 9 | loggerService.registerCallback(addLog); 10 | }, [addLog]); 11 | 12 | return null; 13 | }; 14 | ``` -------------------------------------------------------------------------------- /blog/src/themes/xmlui-orange-on-default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const XmluiOrangeOnDefaultTheme: ThemeDefinition = { 4 | name: "XMLUI Orange Documentation Theme", 5 | id: "xmlui-orange-on-default", 6 | extends: ["xmlui-orange", "docs-theme"], 7 | themeVars: {}, 8 | resources: {}, 9 | }; 10 | 11 | export default XmluiOrangeOnDefaultTheme; 12 | ``` -------------------------------------------------------------------------------- /docs/src/themes/xmlui-orange-on-default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const XmluiOrangeOnDefaultTheme: ThemeDefinition = { 4 | name: "XMLUI Orange Documentation Theme", 5 | id: "xmlui-orange-on-default", 6 | extends: ["xmlui-orange", "docs-theme"], 7 | themeVars: {}, 8 | resources: {}, 9 | }; 10 | 11 | export default XmluiOrangeOnDefaultTheme; 12 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/src/hooks/useToast.ts: -------------------------------------------------------------------------------- ```typescript 1 | import {useContext} from "react"; 2 | import { ToastContext } from "../providers/ToastProvider"; 3 | 4 | export const useToast = () => { 5 | const context = useContext(ToastContext); 6 | if (context === undefined) { 7 | throw new Error('useToast must be used within a ToastProvider'); 8 | } 9 | return context; 10 | }; 11 | ``` -------------------------------------------------------------------------------- /packages/xmlui-website-blocks/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import websites from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, [websites]); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, [websites]); 10 | }); 11 | } 12 | 13 | export default websites; 14 | ``` -------------------------------------------------------------------------------- /blog/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import usedExtensions from "./extensions"; 3 | 4 | export const runtime = import.meta.glob(`/src/**`, { eager: true }); 5 | startApp(runtime, usedExtensions); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, usedExtensions); 10 | }); 11 | } 12 | ``` -------------------------------------------------------------------------------- /docs/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import usedExtensions from "./extensions"; 3 | 4 | export const runtime = import.meta.glob(`/src/**`, { eager: true }); 5 | startApp(runtime, usedExtensions); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, usedExtensions); 10 | }); 11 | } 12 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/interception/useApiInterceptorContext.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { createContext, useContext } from "react"; 2 | 3 | import type { IApiInterceptorContext } from "../../abstractions/AppContextDefs"; 4 | 5 | export const ApiInterceptorContext = createContext<IApiInterceptorContext>(null as any); 6 | 7 | export function useApiInterceptorContext() { 8 | return useContext(ApiInterceptorContext); 9 | } 10 | ``` -------------------------------------------------------------------------------- /packages/xmlui-animations/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-devtools/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-os-frames/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-pdf/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-search/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-website-blocks/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | </head> 8 | <body> 9 | <div id="root"></div> 10 | <script type="module" src="/index.ts"></script> 11 | </body> 12 | </html> 13 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/src/hooks/usePlayground.ts: -------------------------------------------------------------------------------- ```typescript 1 | import {useContext} from "react"; 2 | import {PlaygroundContext} from "../state/store"; 3 | 4 | export const usePlayground = () => { 5 | const context = useContext(PlaygroundContext); 6 | if (context === undefined) { 7 | throw new Error('usePlayground must be used within a PlaygroundProvider'); 8 | } 9 | 10 | return context; 11 | }; 12 | ``` -------------------------------------------------------------------------------- /packages/xmlui-animations/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import animations from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, [animations]); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, [animations]); 10 | }); 11 | } 12 | 13 | export default animations; 14 | ``` -------------------------------------------------------------------------------- /docs/public/pages/news-and-reviews.md: -------------------------------------------------------------------------------- ```markdown 1 | # News and reviews 2 | 3 | ```xmlui-pg 4 | <Table data="/resources/files/news-and-reviews.json" sortBy="date" sortDirection="descending"> 5 | <Column bindTo="date" /> 6 | <Column width="4*" header="title"> 7 | <Link target="_blank" to="{$item.url}"> 8 | { $item.title } 9 | </Link> 10 | </Column> 11 | <Column bindTo="source" /> 12 | </Table> 13 | ``` ``` -------------------------------------------------------------------------------- /docs/content/components/xmlui-spreadsheet/Spreadsheet.md: -------------------------------------------------------------------------------- ```markdown 1 | # Spreadsheet [#spreadsheet] 2 | 3 | XMLUI Spreadsheet 4 | 5 | ## Properties 6 | 7 | ### `worksheets` 8 | 9 | This property sets the initial value of the spreadsheet's worksheets. 10 | 11 | ## Events 12 | 13 | This component does not have any events. 14 | 15 | ## Exposed Methods 16 | 17 | This component does not expose any methods. 18 | 19 | ## Styling 20 | 21 | This component does not have any styles. 22 | ``` -------------------------------------------------------------------------------- /packages/xmlui-spreadsheet/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import spreadsheet from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, [spreadsheet]); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, [spreadsheet]); 10 | }); 11 | } 12 | 13 | export default spreadsheet; 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/parts.ts: -------------------------------------------------------------------------------- ```typescript 1 | export const PART_LABEL = "label"; 2 | export const PART_LABELED_ITEM = "labeledItem"; 3 | export const PART_INPUT = "input"; 4 | export const PART_START_ADORNMENT = "startAdornment"; 5 | export const PART_END_ADORNMENT = "endAdornment"; 6 | export const PART_TRACK = "track"; 7 | export const PART_RANGE = "range"; 8 | export const PART_THUMB = "thumb"; 9 | 10 | 11 | 12 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Input/InputLabel.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "../../components-core/theming/themes" as t; 2 | 3 | @layer components { 4 | .inputLabel { 5 | cursor: pointer; 6 | color: t.$textColor-subtitle; 7 | padding-bottom: t.$space-1; 8 | 9 | &.disabled { 10 | cursor: not-allowed; 11 | color: t.$textColor--disabled; 12 | } 13 | } 14 | 15 | .required { 16 | color: t.$textColor-InputLabel-required; 17 | } 18 | } 19 | ``` -------------------------------------------------------------------------------- /tools/create-app/templates/types.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { PackageManager } from '../helpers/get-pkg-manager' 2 | 3 | export type TemplateType = 'default'// | 'app' | 'default-tw' | 'app-tw' 4 | 5 | export type TemplateMode = 'js' | 'ts' 6 | 7 | export interface InstallTemplateArgs { 8 | appName: string 9 | root: string 10 | packageManager: PackageManager 11 | template: TemplateType 12 | useGit: boolean; 13 | } ``` -------------------------------------------------------------------------------- /xmlui/src/abstractions/FunctionDefs.ts: -------------------------------------------------------------------------------- ```typescript 1 | // XMLUI executes its code asynchronously. This type defines functions that can be 2 | // used in XMLUI as actions or event handlers. 3 | export type AsyncFunction = (...args: any) => Promise<any> | any; 4 | 5 | // XMLUI executes some code synchronously. This type defines those functions' signature 6 | export type SyncFunction = (...args: any) => any; 7 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/rendering/UnknownComponent.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "../theming/themes" as themes; 2 | 3 | .errorOverlay{ 4 | background-color: rgba(255,162,162, 0.8); 5 | border-radius: 10px; 6 | padding: 8px; 7 | min-width: 200px; 8 | } 9 | 10 | .title{ 11 | background-color: themes.$color-danger-500; 12 | color: white; 13 | font-weight: themes.$fontWeight-light; 14 | border-radius: 4px; 15 | padding-left: 4px; 16 | padding-right: 8px; 17 | } 18 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Breakout/BreakoutNative.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import type { ReactNode } from "react"; 2 | 3 | import styles from "./Breakout.module.scss"; 4 | 5 | type Props = { 6 | children?: ReactNode; 7 | style?: React.CSSProperties; 8 | }; 9 | 10 | export const Breakout = ({ children, style, ...rest }: Props) => { 11 | return ( 12 | <div {...rest} style={style} className={styles.breakout}> 13 | {children} 14 | </div> 15 | ); 16 | }; 17 | ``` -------------------------------------------------------------------------------- /tools/create-xmlui-hello-world/package.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "name": "create-xmlui-hello-world", 3 | "version": "0.1.0", 4 | "description": "Create a minimal HelloWorld XMLUI component", 5 | "main": "index.js", 6 | "bin": { 7 | "create-xmlui-hello-world": "./index.js" 8 | }, 9 | "scripts": { 10 | "build": "node index.js" 11 | }, 12 | "keywords": ["xmlui", "component", "hello-world"], 13 | "author": "", 14 | "license": "ISC" 15 | } 16 | 17 | ``` -------------------------------------------------------------------------------- /docs/public/pages/tutorial-01.md: -------------------------------------------------------------------------------- ```markdown 1 | # XMLUI Invoice 2 | 3 | XMLUI Invoice is a demo app that illustrates a range of XMLUI components and patterns. You can [download](https://github.com/xmlui-org/xmlui-invoice/releases/latest/download/xmlui-invoice.zip) the final version to run, explore, and modify. In this tutorial we'll build the app step by step. 4 | 5 |  6 | 7 | 8 | ``` -------------------------------------------------------------------------------- /xmlui/src/abstractions/ExtensionDefs.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ComponentRendererDef, CompoundComponentRendererInfo } from "./RendererDefs"; 2 | import type { ThemeDefinition } from "./ThemingDefs"; 3 | 4 | export type ComponentExtension = ComponentRendererDef | CompoundComponentRendererInfo; 5 | 6 | export interface Extension{ 7 | namespace?: string; 8 | components?: ComponentExtension[]; 9 | themes?: ThemeDefinition[]; 10 | } ``` -------------------------------------------------------------------------------- /packages/xmlui-devtools/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { startApp } from "xmlui"; 2 | import DevTools from "./src"; 3 | 4 | export const runtime = import.meta.glob(`/demo/**`, { eager: true }); 5 | startApp(runtime, DevTools); 6 | 7 | if (import.meta.hot) { 8 | import.meta.hot.accept((newModule) => { 9 | startApp(newModule?.runtime, DevTools); 10 | }); 11 | } 12 | 13 | export default DevTools; 14 | 15 | export { Editor } from "./src/editor/Editor"; 16 | ``` -------------------------------------------------------------------------------- /packages/xmlui-pdf/src/LazyPdfNative.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { Suspense, lazy, forwardRef } from "react"; 2 | 3 | const Pdf = lazy(() => import("./Pdf")); 4 | 5 | interface Props { 6 | src?: string; 7 | data?: any; // Binary data for PDF content 8 | } 9 | 10 | export const LazyPdf = forwardRef((props: Props, ref) => { 11 | return ( 12 | <Suspense fallback={<div>Loading...</div>}> 13 | <Pdf {...props} ref={ref} /> 14 | </Suspense> 15 | ); 16 | }); 17 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/trending-up.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trending-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M3 17l6 -6l4 4l8 -8" /> 4 | <path d="M14 7l7 0l0 7" /> 5 | </svg> 6 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/trending-down.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trending-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M3 7l6 6l4 -4l8 8" /> 4 | <path d="M21 10l0 7l-7 0" /> 5 | </svg> 6 | 7 | 8 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Input/InputAdornment.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "../../components-core/theming/themes" as t; 2 | 3 | @layer components { 4 | .wrapper { 5 | display: flex; 6 | gap: t.$space-2; 7 | align-items: center; 8 | justify-content: center; 9 | flex-shrink: 0; 10 | color: t.$textColor-subtitle; 11 | } 12 | 13 | .clickable { 14 | cursor: pointer; 15 | 16 | &:hover { 17 | opacity: 0.8; 18 | } 19 | 20 | &:focus { 21 | outline: none; 22 | } 23 | } 24 | } 25 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/ModalDialog/Dialog.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "../../components-core/theming/themes" as t; 2 | 3 | @layer components { 4 | .dialogContent { 5 | display: flex; 6 | flex-direction: column; 7 | } 8 | 9 | .dialogActions { 10 | &:not(:empty) { 11 | margin-top: t.$space-4; 12 | } 13 | } 14 | 15 | @media (min-width: 40em) { 16 | .dialogActions { 17 | display: flex; 18 | justify-content: flex-end; 19 | gap: t.$space-4; 20 | } 21 | } 22 | 23 | } 24 | 25 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/StickyBox/StickyBox.md: -------------------------------------------------------------------------------- ```markdown 1 | %-PROP-START to 2 | 3 | ```xmlui-pg copy display name="Example: to" height="200px" 4 | <App> 5 | <StickyBox to="top"> 6 | This part of the UI sticks to the top 7 | </StickyBox> 8 | <Stack backgroundColor="red" height="80px" width="100%" /> 9 | <Stack backgroundColor="green" height="80px" width="100%" /> 10 | <Stack backgroundColor="blue" height="80px" width="100%" /> 11 | </App> 12 | ``` 13 | 14 | %-PROP-END 15 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/stars.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"> 2 | <path d="m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm457-560 21-89-71-59 94-8 36-84 36 84 94 8-71 59 21 89-80-47-80 47ZM480-481Z"/> 3 | </svg> ``` -------------------------------------------------------------------------------- /packages/xmlui-os-frames/meta/componentsMetadata.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { iphoneFrameMd, macAppFrameMd, windowsAppFrameMd } from "../src"; 2 | 3 | export const componentMetadata = { 4 | name: "OSFrames", 5 | description: "This package provides containers that appear to look like OS-specific windows.", 6 | state: "internal", 7 | metadata: { 8 | WindowsAppFrame: windowsAppFrameMd, 9 | MacAppFrame: macAppFrameMd, 10 | IphoneFrame: iphoneFrameMd, 11 | }, 12 | }; 13 | ``` -------------------------------------------------------------------------------- /blog/src/themes/earthtone.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const EarthtoneTheme: ThemeDefinition = { 4 | name: "XMLUI Documentation Theme", 5 | id: "earthtone", 6 | extends: "docs-theme", 7 | themeVars: { 8 | "color-primary": "hsl(30, 50%, 30%)", 9 | "color-secondary": "hsl(120, 40%, 25%)", 10 | "color-surface": "hsl(39, 43%, 97%)", 11 | }, 12 | resources: {}, 13 | }; 14 | 15 | export default EarthtoneTheme; 16 | ``` -------------------------------------------------------------------------------- /docs/src/themes/earthtone.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const EarthtoneTheme: ThemeDefinition = { 4 | name: "XMLUI Documentation Theme", 5 | id: "earthtone", 6 | extends: "docs-theme", 7 | themeVars: { 8 | "color-primary": "hsl(30, 50%, 30%)", 9 | "color-secondary": "hsl(120, 40%, 25%)", 10 | "color-surface": "hsl(39, 43%, 97%)", 11 | }, 12 | resources: {}, 13 | }; 14 | 15 | export default EarthtoneTheme; 16 | ``` -------------------------------------------------------------------------------- /packages/xmlui-website-blocks/demo/themes/default.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "xmlui"; 2 | 3 | export const Default: ThemeDefinition = { 4 | id: "default", 5 | name: "Default demo theme", 6 | extends: "xmlui", 7 | resources: { 8 | }, 9 | themeVars: { 10 | "paddingTop-H1": "$space-6", 11 | "paddingBottom-H1": "$space-8", 12 | "textColor-H1": "$color-primary-600", 13 | }, 14 | tones: { 15 | light: {}, 16 | dark: {}, 17 | }, 18 | }; 19 | 20 | export default Default; 21 | ``` -------------------------------------------------------------------------------- /tools/create-app/templates/default/ts/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | <script>window.__PUBLIC_PATH = '/'</script> 8 | <base href="/"> 9 | </head> 10 | <body> 11 | <div id="root"></div> 12 | <script type="module" src="/index.ts"></script> 13 | </body> 14 | </html> 15 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/interception/initMock.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { ApiInterceptor } from "./ApiInterceptor"; 2 | import type { ApiInterceptorDefinition } from "./abstractions"; 3 | 4 | // Create the worker for the ApiInterceptorProvider 5 | export const initMock = async (apiInterceptorDefinition: ApiInterceptorDefinition) => { 6 | const apiInstance = new ApiInterceptor(apiInterceptorDefinition); 7 | await apiInstance.initialize(); 8 | return apiInstance; 9 | }; 10 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/action/TimedAction.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import type { ActionExecutionContext } from "../../abstractions/ActionDefs"; 2 | import { delay as doDelay } from "../utils/misc"; 3 | import { createAction } from "./actions"; 4 | 5 | async function delay(_executionContext: ActionExecutionContext, timeoutInMs: number, callback?: any) { 6 | await doDelay(timeoutInMs); 7 | await callback?.(); 8 | } 9 | 10 | export const timedAction = createAction("delay", delay); 11 | ``` -------------------------------------------------------------------------------- /xmlui/src/abstractions/scripting/BlockScope.ts: -------------------------------------------------------------------------------- ```typescript 1 | // Represents a block scope 2 | export type BlockScope = { 3 | // --- Block-scoped variable values 4 | vars: Record<string, any>; 5 | 6 | // --- Block-scopes const values 7 | constVars?: Set<string>; 8 | 9 | // --- Optional return value of an expression 10 | returnValue?: any; 11 | }; 12 | 13 | // Represents a parameter redirect to a "vars" 14 | export type RedirectInfo = { 15 | valueScope: any; 16 | valueIndex: string | number; 17 | } 18 | ``` -------------------------------------------------------------------------------- /xmlui/src/testing/drivers/DateInputDriver.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { InputComponentDriver } from "../ComponentDrivers"; 2 | 3 | export class DateInputDriver extends InputComponentDriver { 4 | get dayInput() { 5 | return this.getByPartName("day"); 6 | } 7 | 8 | get monthInput() { 9 | return this.getByPartName("month"); 10 | } 11 | 12 | get yearInput() { 13 | return this.getByPartName("year"); 14 | } 15 | 16 | get clearButton() { 17 | return this.getByPartName("clearButton"); 18 | } 19 | } 20 | ``` -------------------------------------------------------------------------------- /xmlui/src/testing/infrastructure/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | <head> 4 | <meta charset="UTF-8" /> 5 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 | <script>window.__PUBLIC_PATH = '/'</script> 8 | </head> 9 | <body> 10 | <div id="root"></div> 11 | <script type="module" src="./main.tsx"></script> 12 | </body> 13 | </html> 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/parsers/xmlui-parser/index.ts: -------------------------------------------------------------------------------- ```typescript 1 | export * from "./CharacterCodes"; 2 | export * from "./diagnostics"; 3 | export * from "./fileExtensions"; 4 | export * from "./lint"; 5 | export * from "./parser"; 6 | export * from "./ParserError"; 7 | export * from "./scanner"; 8 | export * from "./syntax-kind"; 9 | export * from "./syntax-node"; 10 | export * from "./transform"; 11 | export * from "./utils"; 12 | export * from "./xmlui-serializer"; 13 | export * from "./xmlui-tree"; ``` -------------------------------------------------------------------------------- /xmlui/src/testing/drivers/TreeDriver.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { Locator } from "@playwright/test"; 2 | import { ComponentDriver } from "../ComponentDrivers"; 3 | 4 | export class TreeDriver extends ComponentDriver { 5 | getNodeById(nodeId: string): Locator { 6 | return this.component.locator(`[data-tree-node-id="${nodeId}"]`).first(); 7 | } 8 | 9 | getNodeWrapperByTestId(marker: string): Locator { 10 | return this.getByTestId(marker).locator("../.."); 11 | } 12 | } 13 | ``` -------------------------------------------------------------------------------- /tools/create-app/helpers/get-pkg-manager.ts: -------------------------------------------------------------------------------- ```typescript 1 | export type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' 2 | 3 | export function getPkgManager(): PackageManager { 4 | const userAgent = process.env.npm_config_user_agent || '' 5 | 6 | if (userAgent.startsWith('yarn')) { 7 | return 'yarn' 8 | } 9 | 10 | if (userAgent.startsWith('pnpm')) { 11 | return 'pnpm' 12 | } 13 | 14 | if (userAgent.startsWith('bun')) { 15 | return 'bun' 16 | } 17 | 18 | return 'npm' 19 | } ``` -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- ```markdown 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Description:** 11 | [A clear and concise description of the feature request. What problem are you trying to solve?] 12 | 13 | **Proposed Solution:** 14 | [A clear and concise description of what you want to happen.] 15 | 16 | **Additional Context:** 17 | [Add any other context or screenshots about the feature request here.] 18 | ``` -------------------------------------------------------------------------------- /xmlui/src/logging/xmlui.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { loggerService } from "./LoggerService"; 2 | 3 | export const xmlui = { 4 | log: (...args: any[]) => { 5 | loggerService.log(args); 6 | }, 7 | warn: (...args: any[]) => { 8 | loggerService.warn(args); 9 | }, 10 | info: (...args: any[]) => { 11 | loggerService.info(args); 12 | }, 13 | error: (...args: any[]) => { 14 | loggerService.error(args); 15 | }, 16 | trace: (...args: any[]) => { 17 | loggerService.trace(args); 18 | }, 19 | }; 20 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/sun.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /> 4 | <path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7" /> 5 | </svg> 6 | 7 | 8 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Select/OptionContext.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { createContext, useContext } from "react"; 2 | 3 | import type { Option } from "../abstractions"; 4 | 5 | type OptionContextValue = { 6 | onOptionAdd: (option: Option) => void; 7 | onOptionRemove: (option: Option) => void; 8 | }; 9 | 10 | export const OptionContext = createContext<OptionContextValue>({ 11 | onOptionAdd: () => {}, 12 | onOptionRemove: () => {}, 13 | }); 14 | 15 | export function useOption() { 16 | return useContext(OptionContext); 17 | } 18 | ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/src/playground/PlaygroundContent.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "xmlui/themes.scss" as themes; 2 | 3 | .playgroundContent { 4 | flex-grow: 1; 5 | position: relative; 6 | padding: 0 16px 16px 16px; 7 | background-color: themes.$backgroundColor; 8 | 9 | &:focus-within{ 10 | z-index: 999; 11 | } 12 | } 13 | 14 | .standaloneMode { 15 | height: 100%; 16 | padding: 0; 17 | margin-top: 0; 18 | border-radius: 0; 19 | box-shadow: none; 20 | } 21 | 22 | :is(html[class~=dark]) { 23 | .playgroundContent { 24 | background-color: #020B1A; 25 | } 26 | } 27 | 28 | 29 | ``` -------------------------------------------------------------------------------- /docs/public/pages/howto/use-built-in-form-validation.md: -------------------------------------------------------------------------------- ```markdown 1 | # Use built-in form validation 2 | 3 | ```xmlui-pg noHeader 4 | ---app 5 | <App> 6 | <Test /> 7 | </App> 8 | ---api 9 | {} 10 | ---comp display 11 | <Component name="Test"> 12 | 13 | <Form 14 | data="{{ password: '' }}" 15 | onSubmit="(data) => console.log('Submitted:', data)" 16 | > 17 | <FormItem 18 | label="Password" 19 | bindTo="password" 20 | type="password" 21 | minLength="8" 22 | lengthInvalidMessage="Password must be at least 8 characters" 23 | /> 24 | </Form> 25 | 26 | </Component> 27 | ``` 28 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/theming/themes/solid.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ThemeDefinition } from "../../../abstractions/ThemingDefs"; 2 | 3 | export const SolidThemeDefinition: ThemeDefinition = { 4 | id: "solid", 5 | themeVars: { 6 | "color-primary": "#2a69bb", 7 | "color-secondary": "#98a9bc", 8 | "color-surface": "hsl(0,0%,49%)", 9 | "color-success": "#45a249", 10 | "maxWidth-content": "100%", 11 | 12 | borderRadius: "0", 13 | "fontSize": "$fontSize-base", 14 | "size-Icon": "1rem", 15 | } 16 | }; 17 | ``` -------------------------------------------------------------------------------- /packages/xmlui-website-blocks/src/Hello/Hello.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { createMetadata, createUserDefinedComponentRenderer } from "xmlui"; 2 | import componentSource from "./Hello.xmlui"; 3 | import codeBehind from "./Hello.xmlui.xs"; 4 | 5 | const COMP = "Hello"; 6 | 7 | export const HelloMd = createMetadata({ 8 | status: "internal", 9 | description: 10 | "A sample component", 11 | props: {}, 12 | }); 13 | 14 | export const helloRenderer = createUserDefinedComponentRenderer( 15 | HelloMd, 16 | componentSource, 17 | codeBehind 18 | ); 19 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/rendering/ErrorBoundary.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "../theming/themes" as themes; 2 | 3 | .errorOverlay{ 4 | background-color: themes.$color-danger-500; 5 | position: relative; 6 | inset: 0; 7 | border-radius: 4px; 8 | padding: 8px; 9 | } 10 | 11 | .title{ 12 | color: white; 13 | font-weight: themes.$fontWeight-normal; 14 | padding-left: 4px; 15 | padding-right: 8px; 16 | } 17 | 18 | .errorItem{ 19 | font-weight: themes.$fontWeight-bold; 20 | padding-left: 4px; 21 | padding-right: 8px; 22 | color: white; 23 | white-space: pre-wrap; 24 | } ``` -------------------------------------------------------------------------------- /xmlui/src/components/EmojiSelector/EmojiSelector.md: -------------------------------------------------------------------------------- ```markdown 1 | %-PROP-START autoFocus 2 | 3 | ```xmlui-pg copy display name="Example: autoFocus" height="420px" 4 | <App> 5 | <EmojiSelector autoFocus="true" /> 6 | </App> 7 | ``` 8 | 9 | %-PROP-END 10 | 11 | %-EVENT-START select 12 | 13 | ```xmlui-pg copy display name="Example: select" height="420px" 14 | <App> 15 | <HStack var.selected=""> 16 | <EmojiSelector onSelect="(emoji) => { selected = emoji }" /> 17 | <Text value="Selected emoji: {selected}" /> 18 | </HStack> 19 | </App> 20 | ``` 21 | 22 | %-EVENT-END 23 | 24 | ``` -------------------------------------------------------------------------------- /docs/public/pages/howto/do-custom-form-validation.md: -------------------------------------------------------------------------------- ```markdown 1 | # Do custom form validation 2 | 3 | ```xmlui-pg noHeader 4 | ---app 5 | <App> 6 | <Test /> 7 | </App> 8 | ---api 9 | {} 10 | ---comp display 11 | <Component name="Test" var.limit="{100}"> 12 | 13 | <Form 14 | data="{{ spending: 0 }}" 15 | onSubmit="(data) => console.log('Submitted:', data)" 16 | > 17 | 18 | <FormItem 19 | label="Requested Amount (limit {limit})" 20 | bindTo="total" 21 | type="integer" 22 | onValidate="{ (value) => value > 0 && value <= limit }" 23 | /> 24 | </Form> 25 | 26 | </Component> 27 | ``` 28 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/NavGroup/NavGroupContext.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { createContext } from "react"; 2 | import { defaultProps } from "./NavGroupNative"; 3 | 4 | export const NavGroupContext = createContext({ 5 | level: -1, 6 | layoutIsVertical: false, 7 | iconHorizontalCollapsed: defaultProps.iconHorizontalCollapsed, 8 | iconHorizontalExpanded: defaultProps.iconHorizontalExpanded, 9 | iconVerticalCollapsed: defaultProps.iconVerticalCollapsed, 10 | iconVerticalExpanded: defaultProps.iconVerticalExpanded, 11 | }); ``` -------------------------------------------------------------------------------- /xmlui/src/testing/infrastructure/public/resources/sun.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-testid="sun-svg"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /> 4 | <path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7" /> 5 | </svg> 6 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/App/LinkInfoContext.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { createContext, useContext } from "react"; 2 | import type { NavHierarchyNode } from "../NavPanel/NavPanelNative"; 3 | 4 | export interface ILinkInfoContext { 5 | linkMap?: Map<string, NavHierarchyNode>; 6 | registerLinkMap?: (linkMap: Map<string, NavHierarchyNode>) => void; 7 | } 8 | 9 | export const LinkInfoContext = createContext<ILinkInfoContext | null>(null); 10 | 11 | export function useLinkInfoContext() { 12 | return useContext(LinkInfoContext); 13 | } 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Splitter/utils.ts: -------------------------------------------------------------------------------- ```typescript 1 | export const parseSize = (size: string, containerSize: number): number => { 2 | if (size.endsWith('px')) { 3 | return parseInt(size, 10); 4 | } else if (size.endsWith('%')) { 5 | return (parseInt(size, 10) / 100) * containerSize; 6 | } 7 | throw new Error('Invalid size format. Use px or %.'); 8 | }; 9 | 10 | export const toPercentage = (size: number, containerSize: number): number => { 11 | return (size / containerSize) * 100; 12 | }; 13 | ``` -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "chrome", 9 | "request": "launch", 10 | "name": "Launch Chrome against localhost", 11 | "url": "http://localhost:5173/", 12 | "webRoot": "${workspaceFolder}" 13 | } 14 | ] 15 | } ``` -------------------------------------------------------------------------------- /packages/xmlui-pdf/CHANGELOG.md: -------------------------------------------------------------------------------- ```markdown 1 | # xmlui-pdf 2 | 3 | ## 0.1.11 4 | 5 | ### Patch Changes 6 | 7 | - 3c8ad14: Add the data property to the Pdf component 8 | 9 | ## 0.1.10 10 | 11 | ### Patch Changes 12 | 13 | - ed53215: test release 14 | 15 | ## 0.1.9 16 | 17 | ### Patch Changes 18 | 19 | - b0ae113: testing 20 | 21 | ## 0.1.8 22 | 23 | ### Patch Changes 24 | 25 | - f15c018: another testing 26 | - f15c018: testing 27 | 28 | ## 0.1.7 29 | 30 | ### Patch Changes 31 | 32 | - 421968b: testing 33 | 34 | ## 0.1.6 35 | 36 | ### Patch Changes 37 | 38 | - 99bba69: testing 39 | 40 | ## 0.1.5 41 | 42 | ### Patch Changes 43 | 44 | - bcf162c: testing changesets 45 | ``` -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [["xmlui", "create-xmlui-app", "xmlui-vscode"]], 6 | "linked": [], 7 | "access": "public", 8 | "baseBranch": "main", 9 | "updateInternalDependencies": "patch", 10 | "ignore": [], 11 | "privatePackages": { 12 | "tag": false, 13 | "version": true 14 | }, 15 | "snapshot": { 16 | "useCalculatedVersion": true 17 | } 18 | } 19 | ``` -------------------------------------------------------------------------------- /docs/public/pages/vscode.md: -------------------------------------------------------------------------------- ```markdown 1 | # XMLUI Tools for Visual Studio Code 2 | 3 | - Syntax highlighting for .xmlui files and .xmlui.xs files 4 | - Hover for core components 5 | - Completion for core components 6 | - Code formatting for .xmlui files 7 | - Diagnostics for errors 8 | 9 | Find the extension on the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=xmlui.xmlui-vscode) 10 | or download the [VSIX](https://github.com/xmlui-org/xmlui/releases?q=vscode&expanded=true). 11 | 12 | 13 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Backdrop/Backdrop.md: -------------------------------------------------------------------------------- ```markdown 1 | %-DESC-START 2 | 3 | ```xmlui-pg copy display name="Example: using Backdrop" 4 | <App> 5 | <Backdrop opacity="0.6"> 6 | <Image 7 | src="/resources/images/components/image/breakfast.jpg" 8 | fit="cover" width="400px" /> 9 | <property name="overlayTemplate"> 10 | <VStack verticalAlignment="center" height="100px"> 11 | <H1 color="white" textAlign="center">Great breakfast!</H1> 12 | </VStack> 13 | </property> 14 | </Backdrop> 15 | </App> 16 | ``` 17 | 18 | %-DESC-END 19 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/rendering/UnknownComponent.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import styles from "./UnknownComponent.module.scss"; 2 | 3 | /** 4 | * When the rendering engine finds an unknown (unregistered) component in the 5 | * markup, it renders this component and names the unregistered. 6 | */ 7 | function UnknownComponent ({ message }: { message: string }) { 8 | return ( 9 | <div className={styles.errorOverlay}> 10 | <span className={styles.title}>Unknown component: {message}</span> 11 | </div> 12 | ); 13 | } 14 | 15 | export default UnknownComponent; 16 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/App/AppStateContext.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { createContext, useContextSelector } from "use-context-selector"; 2 | 3 | export interface IAppStateContext { 4 | appState: Record<string, any>; 5 | update: (id: string, patch: any)=> void; 6 | } 7 | 8 | export const AppStateContext = createContext<IAppStateContext>(null as unknown as IAppStateContext); 9 | 10 | export function useAppStateContextPart<T = unknown>(selector: (value: IAppStateContext) => T) { 11 | return useContextSelector(AppStateContext, selector); 12 | } 13 | ``` -------------------------------------------------------------------------------- /xmlui/src/testing/infrastructure/public/resources/bell.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bell" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-testid="bell-svg"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6" /> 4 | <path d="M9 17v1a3 3 0 0 0 6 0v-1" /> 5 | </svg> 6 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/eye.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> 4 | <path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /> 5 | </svg> ``` -------------------------------------------------------------------------------- /xmlui/src/components/PageMetaTitle/PageMetaTitle.md: -------------------------------------------------------------------------------- ```markdown 1 | %-DESC-START 2 | 3 | **Key features:** 4 | - **Dynamic title updates**: Change browser tab title based on current page or content 5 | - **App name override**: Supersedes the `App`s name property when present 6 | - **Flexible placement**: Can be positioned anywhere in the component tree 7 | - **Binding support**: Accepts dynamic values and expressions for context-aware titles 8 | - **SEO enhancement**: Improves search engine optimization with descriptive page titles 9 | 10 | %-DESC-END ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/empty-folder.svg: -------------------------------------------------------------------------------- ``` 1 | <svg viewBox="0 0 30 21" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z" fill="#ADDAE9"/> <path d="M10.9928 0.157898H29C29.5523 0.157898 30 0.605613 30 1.1579V20C30 20.5523 29.5523 21 29 21H1.00002C0.447731 21 1.71661e-05 20.5523 1.71661e-05 20V3.93087C1.71661e-05 3.37858 0.447733 2.93087 1.00002 2.93087H6.55236L10.9928 0.157898Z" fill="#CAE9F3"/></svg> ``` -------------------------------------------------------------------------------- /packages/xmlui-playground/src/playground/Header.module.scss: -------------------------------------------------------------------------------- ```scss 1 | @use "xmlui/themes.scss" as themes; 2 | 3 | .header { 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: space-between; 8 | gap: .8rem; 9 | border-bottom: 1px solid themes.$borderColor; 10 | background-color: themes.$backgroundColor; 11 | padding: 0 16px 0 16px 12 | } 13 | 14 | .description { 15 | font-size: 12px; 16 | } 17 | 18 | .box { 19 | width: 100%; 20 | display: flex; 21 | flex-direction: row; 22 | align-items: center; 23 | gap: .2rem; 24 | } 25 | 26 | .button { 27 | padding: 0.5rem 1rem; 28 | } 29 | ``` -------------------------------------------------------------------------------- /xmlui/src/testing/drivers/TimeInputDriver.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { InputComponentDriver } from "../ComponentDrivers"; 2 | 3 | export class TimeInputDriver extends InputComponentDriver { 4 | get hourInput() { 5 | return this.getByPartName("hour"); 6 | } 7 | 8 | get minuteInput() { 9 | return this.getByPartName("minute"); 10 | } 11 | 12 | get secondInput() { 13 | return this.getByPartName("second"); 14 | } 15 | 16 | get amPmInput() { 17 | return this.getByPartName("ampm"); 18 | } 19 | 20 | get clearButton() { 21 | return this.getByPartName("clearButton"); 22 | } 23 | } 24 | ``` -------------------------------------------------------------------------------- /tools/create-app/helpers/validate-pkg.ts: -------------------------------------------------------------------------------- ```typescript 1 | import validateProjectName from 'validate-npm-package-name' 2 | 3 | export function validateNpmName(name: string): { 4 | valid: boolean 5 | problems?: string[] 6 | } { 7 | const nameValidation = validateProjectName(name) 8 | if (nameValidation.validForNewPackages) { 9 | return { valid: true } 10 | } 11 | 12 | return { 13 | valid: false, 14 | problems: [ 15 | ...(nameValidation.errors || []), 16 | ...(nameValidation.warnings || []), 17 | ], 18 | } 19 | } ``` -------------------------------------------------------------------------------- /docs/public/resources/files/for-download/start.bat: -------------------------------------------------------------------------------- ``` 1 | @echo off 2 | :: Check if npx is available 3 | where npx >nul 2>nul 4 | if %errorlevel% equ 0 ( 5 | :: Check if the directory exists, if not, create it (temp solution, fixed in newer npm, from 10.8.3) 6 | if not exist "%UserProfile%\AppData\Roaming\npm" ( 7 | mkdir "%UserProfile%\AppData\Roaming\npm" 8 | ) 9 | 10 | call npx -y http-server -o 11 | ) else ( 12 | echo "npx is not available. Please install Node.js and npm: https://nodejs.org/en/download/prebuilt-installer" 13 | pause; 14 | ) ``` -------------------------------------------------------------------------------- /xmlui/src/testing/infrastructure/public/resources/eye.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye" data-testid="eye-svg"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> 4 | <path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /> 5 | </svg> 6 | ``` -------------------------------------------------------------------------------- /docs/content/components/Fragment.md: -------------------------------------------------------------------------------- ```markdown 1 | # Fragment [#fragment] 2 | 3 | `Fragment` provides conditional rendering. You can use `when=` on any component to render it conditionally, use `Fragment` to apply `when` to a group of components. 4 | 5 | ## Properties [#properties] 6 | 7 | This component does not have any properties. 8 | 9 | ## Events [#events] 10 | 11 | This component does not have any events. 12 | 13 | ## Exposed Methods [#exposed-methods] 14 | 15 | This component does not expose any methods. 16 | 17 | ## Styling [#styling] 18 | 19 | This component does not have any styles. 20 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/dark_to_light.svg: -------------------------------------------------------------------------------- ``` 1 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 | <path d="M12 8C9.7909 8 8 9.7909 8 12C8 14.2091 9.7909 16 12 16L12 8Z" fill="white"/> 3 | <path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5229 22 22 17.5229 22 12C22 6.4772 17.5228 2 12 2C6.4772 2 2 6.4772 2 12C2 17.5229 6.4772 22 12 22ZM12 20L12 16C14.2091 16 16 14.2091 16 12C16 9.7909 14.2091 8 12 8L12 4C7.5817 4 4 7.5817 4 12C4 16.4183 7.5817 20 12 20Z" fill="white"/> 4 | </svg> 5 | ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/action/actions.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { ActionFunction, ActionRendererDef } from "../../abstractions/ActionDefs"; 2 | 3 | /** 4 | * Creates an action renderer definition object that can be registered in the action registry. 5 | * @param actionName The name of the action 6 | * @param actionFn The function that executes the action 7 | * @returns An action renderer definition object 8 | */ 9 | export function createAction(actionName: string, actionFn: ActionFunction): ActionRendererDef { 10 | return { 11 | actionName, 12 | actionFn, 13 | }; 14 | } 15 | ``` -------------------------------------------------------------------------------- /xmlui/tests/parsers/xmlui/transform.circular.test.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { describe, it } from "vitest"; 2 | import { transformSource } from "./xmlui"; 3 | 4 | describe("Xmlui transform - child elements", () => { 5 | it("Invalid element name fails #1", () => { 6 | const source = ` 7 | <App> 8 | <Stack> 9 | <script> 10 | function dummy(){} 11 | </script> 12 | </Stack> 13 | Hello 14 | </App> 15 | `; 16 | const comp = transformSource(source); 17 | 18 | // --- This should fail if there is any circular reference 19 | JSON.stringify(comp, null, 2); 20 | }); 21 | }); 22 | ``` -------------------------------------------------------------------------------- /xmlui/src/abstractions/scripting/TryScope.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { TryStatement } from "../../components-core/script-runner/ScriptingSourceTree"; 2 | 3 | type ErrorProcessingPhase = "try" | "catch" | "finally" | "error" | "postFinally"; 4 | type ErrorHandlerExitType = "break" | "continue" | "return"; 5 | 6 | // Represents the scope of a try block 7 | export type TryScope = { 8 | statement: TryStatement; 9 | processingPhase?: ErrorProcessingPhase; 10 | tryLabel: number; 11 | exitType?: ErrorHandlerExitType; 12 | errorToThrow?: any; 13 | errorSource?: ErrorProcessingPhase; 14 | }; 15 | ``` -------------------------------------------------------------------------------- /xmlui/src/abstractions/scripting/TryScopeExp.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { TryStatement } from "../../components-core/script-runner/ScriptingSourceTree"; 2 | 3 | type ErrorProcessingPhase = "try" | "catch" | "finally" | "error" | "postFinally"; 4 | type ErrorHandlerExitType = "break" | "continue" | "return"; 5 | 6 | // Represents the scope of a try block 7 | export type TryScope = { 8 | statement: TryStatement; 9 | processingPhase?: ErrorProcessingPhase; 10 | tryLabel: number; 11 | exitType?: ErrorHandlerExitType; 12 | errorToThrow?: any; 13 | errorSource?: ErrorProcessingPhase; 14 | }; 15 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/bulb.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-bulb"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7" /> 4 | <path d="M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3" /> 5 | <path d="M9.7 17l4.6 0" /> 6 | </svg> ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/light_to_dark.svg: -------------------------------------------------------------------------------- ``` 1 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 | <path d="M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V16Z" fill="#394150"/> 3 | <path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4V8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16V20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z" fill="#394150"/> 4 | </svg> 5 | ``` -------------------------------------------------------------------------------- /docs/public/pages/xmlui-spreadsheet/Spreadsheet.md: -------------------------------------------------------------------------------- ```markdown 1 | # Spreadsheet [#spreadsheet] 2 | 3 | >[!WARNING] 4 | > This component is in an **experimental** state; you can use it in your app. However, we may modify it, and it may even have breaking changes in the future.XMLUI Spreadsheet 5 | 6 | ## Properties 7 | 8 | ### `worksheets` 9 | 10 | This property sets the initial value of the spreadsheet's worksheets. 11 | 12 | ## Events 13 | 14 | This component does not have any events. 15 | 16 | ## Exposed Methods 17 | 18 | This component does not expose any methods. 19 | 20 | ## Styling 21 | 22 | This component does not have any styles. 23 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/moon.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"> 2 | <path d="M600-640 480-760l120-120 120 120-120 120Zm200 120-80-80 80-80 80 80-80 80ZM483-80q-84 0-157.5-32t-128-86.5Q143-253 111-326.5T79-484q0-146 93-257.5T409-880q-18 99 11 193.5T520-521q71 71 165.5 100T879-410q-26 144-138 237T483-80Zm0-80q88 0 163-44t118-121q-86-8-163-43.5T463-465q-61-61-97-138t-43-163q-77 43-120.5 118.5T159-484q0 135 94.5 229.5T483-160Zm-20-305Z"/> 3 | </svg> ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/AppContext.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { createContext, useContext } from "react"; 2 | 3 | import type { AppContextObject } from "../abstractions/AppContextDefs"; 4 | 5 | /** 6 | * Stores the object that holds the global functions and methods of xmlui. 7 | */ 8 | export const AppContext = createContext<AppContextObject | undefined>(undefined); 9 | 10 | /** 11 | * This React hook makes the current context of application services available 12 | * within any component logic using the hook. 13 | */ 14 | export function useAppContext () { 15 | return useContext(AppContext)!; 16 | } 17 | ``` -------------------------------------------------------------------------------- /docs/content/components/Breakout.md: -------------------------------------------------------------------------------- ```markdown 1 | # Breakout [#breakout] 2 | 3 | The `Breakout` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width. 4 | 5 | ## Properties [#properties] 6 | 7 | This component does not have any properties. 8 | 9 | ## Events [#events] 10 | 11 | This component does not have any events. 12 | 13 | ## Exposed Methods [#exposed-methods] 14 | 15 | This component does not expose any methods. 16 | 17 | ## Styling [#styling] 18 | 19 | This component does not have any styles. 20 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Splitter/VSplitter.md: -------------------------------------------------------------------------------- ```markdown 1 | `VSplitter` is a specialized, shorthand version for the regular `Splitter` component with a vertical orientation. 2 | 3 | ```xmlui-pg copy display name="Example: VSplitter" 4 | <App> 5 | <VSplitter height="200px"> 6 | <Stack backgroundColor="lightblue" height="100%" /> 7 | <Stack backgroundColor="darksalmon" height="100%" /> 8 | </VSplitter> 9 | </App> 10 | ``` 11 | 12 | >[!INFO] 13 | > You cannot change the orientation of `VSplitter` from vertical to horizontal by setting the `orientation` prop, as the engine ignores that setting. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Splitter/HSplitter.md: -------------------------------------------------------------------------------- ```markdown 1 | `HSplitter` is a specialized, shorthand version for the regular `Splitter` component with a vertical orientation. 2 | 3 | ```xmlui-pg copy display name="Example: HSplitter" 4 | <App > 5 | <HSplitter height="200px"> 6 | <Stack backgroundColor="lightblue" height="100%" /> 7 | <Stack backgroundColor="darksalmon" height="100%" /> 8 | </HSplitter> 9 | </App> 10 | ``` 11 | 12 | >[!INFO] 13 | > You cannot change the orientation of `HSplitter` from vertical to horizontal by setting the `orientation` prop, as the engine ignores that setting. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Heading/H1.md: -------------------------------------------------------------------------------- ```markdown 1 | The `H1` component is a shorthand version of the `Heading` element with its `level` property set to "h1". 2 | 3 | ```xmlui-pg copy display name="H1 example" 4 | <App> 5 | <H1 value="This is a H1 text" /> 6 | </App> 7 | ``` 8 | 9 | ## Styling 10 | 11 | The `H1` component inherits its visual style from the `Heading` component. 12 | Using the `H1` component specifier, you can override the inherited theme variable values. 13 | For example, the `textColor-H1` theme variable sets the text color of `H1` while keeping the color of all other headings. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Heading/H2.md: -------------------------------------------------------------------------------- ```markdown 1 | The `H2` component is a shorthand version of the `Heading` element with its `level` property set to "h2". 2 | 3 | ```xmlui-pg copy display name="H2 example" 4 | <App> 5 | <H2 value="This is a H2 text" /> 6 | </App> 7 | ``` 8 | 9 | ## Styling 10 | 11 | The `H2` component inherits its visual style from the `Heading` component. 12 | Using the `H2` component specifier, you can override the inherited theme variable values. 13 | For example, the `textColor-H2` theme variable sets the text color of `H2` while keeping the color of all other headings. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Heading/H3.md: -------------------------------------------------------------------------------- ```markdown 1 | The `H3` component is a shorthand version of the `Heading` element with its `level` property set to "h3". 2 | 3 | ```xmlui-pg copy display name="H3 example" 4 | <App> 5 | <H3 value="This is a H3 text" /> 6 | </App> 7 | ``` 8 | 9 | ## Styling 10 | 11 | The `H3` component inherits its visual style from the `Heading` component. 12 | Using the `H3` component specifier, you can override the inherited theme variable values. 13 | For example, the `textColor-H3` theme variable sets the text color of `H3` while keeping the color of all other headings. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Heading/H4.md: -------------------------------------------------------------------------------- ```markdown 1 | The `H4` component is a shorthand version of the `Heading` element with its `level` property set to "h4". 2 | 3 | ```xmlui-pg copy display name="H4 example" 4 | <App> 5 | <H4 value="This is a H4 text" /> 6 | </App> 7 | ``` 8 | 9 | ## Styling 10 | 11 | The `H4` component inherits its visual style from the `Heading` component. 12 | Using the `H4` component specifier, you can override the inherited theme variable values. 13 | For example, the `textColor-H4` theme variable sets the text color of `H4` while keeping the color of all other headings. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Heading/H5.md: -------------------------------------------------------------------------------- ```markdown 1 | The `H5` component is a shorthand version of the `Heading` element with its `level` property set to "h5". 2 | 3 | ```xmlui-pg copy display name="H5 example" 4 | <App> 5 | <H5 value="This is a H5 text" /> 6 | </App> 7 | ``` 8 | 9 | ## Styling 10 | 11 | The `H5` component inherits its visual style from the `Heading` component. 12 | Using the `H5` component specifier, you can override the inherited theme variable values. 13 | For example, the `textColor-H5` theme variable sets the text color of `H5` while keeping the color of all other headings. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Heading/H6.md: -------------------------------------------------------------------------------- ```markdown 1 | The `H6` component is a shorthand version of the `Heading` element with its `level` property set to "h6". 2 | 3 | ```xmlui-pg copy display name="H6 example" 4 | <App> 5 | <H6 value="This is a H6 text" /> 6 | </App> 7 | ``` 8 | 9 | ## Styling 10 | 11 | The `H6` component inherits its visual style from the `Heading` component. 12 | Using the `H6` component specifier, you can override the inherited theme variable values. 13 | For example, the `textColor-H6` theme variable sets the text color of `H6` while keeping the color of all other headings. 14 | ``` -------------------------------------------------------------------------------- /xmlui/src/testing/drivers/TextBoxDriver.ts: -------------------------------------------------------------------------------- ```typescript 1 | import { PART_START_ADORNMENT, PART_END_ADORNMENT } from "../../components-core/parts"; 2 | import { InputComponentDriver } from "../ComponentDrivers"; 3 | 4 | export class TextBoxDriver extends InputComponentDriver { 5 | get input() { 6 | return this.getByPartName("input"); 7 | } 8 | 9 | get startAdornment() { 10 | return this.getByPartName(PART_START_ADORNMENT); 11 | } 12 | 13 | get endAdornment() { 14 | return this.getByPartName(PART_END_ADORNMENT); 15 | } 16 | 17 | get button() { 18 | return this.getByPartName(PART_END_ADORNMENT); 19 | } 20 | } ``` -------------------------------------------------------------------------------- /xmlui/src/components-core/utils/compound-utils.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { CompoundComponentDef } from "../../abstractions/ComponentDefs"; 2 | import { xmlUiMarkupToComponent } from "../xmlui-parser"; 3 | 4 | export function compoundComponentDefFromSource(name: string, componentSource: string): CompoundComponentDef { 5 | const compoundComponentDef = xmlUiMarkupToComponent(componentSource).component as CompoundComponentDef; 6 | if (!compoundComponentDef) { 7 | throw new Error(`Failed to parse ${name} component definition during build.`); 8 | } 9 | return compoundComponentDef; 10 | } 11 | ``` -------------------------------------------------------------------------------- /packages/xmlui-animations/CHANGELOG.md: -------------------------------------------------------------------------------- ```markdown 1 | # xmlui-animations 2 | 3 | ## 0.1.15 4 | 5 | ### Patch Changes 6 | 7 | - ed53215: another testing 8 | 9 | ## 0.1.14 10 | 11 | ### Patch Changes 12 | 13 | - 56b6e46: test 14 | 15 | ## 0.1.13 16 | 17 | ### Patch Changes 18 | 19 | - 5ec1667: test 20 | 21 | ## 0.1.12 22 | 23 | ### Patch Changes 24 | 25 | - 8e026fe: testing 26 | 27 | ## 0.1.11 28 | 29 | ### Patch Changes 30 | 31 | - b0ae113: testing 32 | 33 | ## 0.1.10 34 | 35 | ### Patch Changes 36 | 37 | - f15c018: another testing 38 | - f15c018: testing 39 | 40 | ## 0.1.9 41 | 42 | ### Patch Changes 43 | 44 | - 421968b: testing 45 | 46 | ## 0.1.8 47 | 48 | ### Patch Changes 49 | 50 | - 99bba69: testing 51 | 52 | ## 0.1.7 53 | 54 | ### Patch Changes 55 | 56 | - bcf162c: testing changesets 57 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/eye-closed.svg: -------------------------------------------------------------------------------- ``` 1 | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye-closed"> 2 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> 3 | <path d="M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4" /> 4 | <path d="M3 15l2.5 -3.8" /> 5 | <path d="M21 14.976l-2.492 -3.776" /> 6 | <path d="M9 17l.5 -4" /> 7 | <path d="M15 17l-.5 -4" /> 8 | </svg> ``` -------------------------------------------------------------------------------- /xmlui/src/parsers/common/GenericToken.ts: -------------------------------------------------------------------------------- ```typescript 1 | // Represents a generic token 2 | export type GenericToken<T> = { 3 | // The raw text of the token 4 | text: string; 5 | 6 | // The type of the token 7 | type: T; 8 | 9 | // Start position in the source stream 10 | startPosition: number; 11 | 12 | // End position (exclusive) in the source stream 13 | endPosition: number; 14 | 15 | // Start line number 16 | startLine: number; 17 | 18 | // End line number of the token 19 | endLine: number; 20 | 21 | // Start column number of the token 22 | startColumn: number; 23 | 24 | // End column number of the token 25 | endColumn: number; 26 | }; 27 | ``` -------------------------------------------------------------------------------- /packages/xmlui-spreadsheet/index.html: -------------------------------------------------------------------------------- ```html 1 | <!DOCTYPE html> 2 | <html lang="en"> 3 | 4 | <head> 5 | <meta charset="UTF-8" /> 6 | <link rel="icon" type="image/svg+xml" href="/resources/favicon.ico" /> 7 | <link rel="stylesheet" href="https://jsuites.net/v5/jsuites.css" type="text/css" /> 8 | <link rel="stylesheet" href="https://bossanova.uk/jspreadsheet/v5/jspreadsheet.css" type="text/css" /> 9 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 10 | </head> 11 | 12 | <body> 13 | <div id="root"></div> 14 | <script type="module" src="/index.ts"></script> 15 | </body> 16 | 17 | </html> ``` -------------------------------------------------------------------------------- /xmlui/src/components/Charts/utils/abstractions.ts: -------------------------------------------------------------------------------- ```typescript 1 | import type { LabelPosition } from "recharts/types/component/Label"; 2 | 3 | export const LabelPositionValues: readonly Exclude< 4 | LabelPosition, 5 | { 6 | x?: number; 7 | y?: number; 8 | } 9 | >[] = [ 10 | "top", 11 | "left", 12 | "right", 13 | "bottom", 14 | "inside", 15 | "outside", 16 | "insideLeft", 17 | "insideRight", 18 | "insideTop", 19 | "insideBottom", 20 | "insideTopLeft", 21 | "insideBottomLeft", 22 | "insideTopRight", 23 | "insideBottomRight", 24 | "insideStart", 25 | "insideEnd", 26 | "end", 27 | "center", 28 | "centerTop", 29 | "centerBottom", 30 | "middle", 31 | ] as const; 32 | ``` -------------------------------------------------------------------------------- /packages/xmlui-devtools/src/devtools/DevTools.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import { createComponentRenderer, createMetadata, parseScssVar } from "xmlui"; 2 | import { DevTools } from "./DevToolsNative"; 3 | 4 | const COMP = "DevTools"; 5 | 6 | export const EditorMd = createMetadata({ 7 | description: "XMLUI DevTools component.", 8 | status: "experimental", 9 | props: { 10 | }, 11 | themeVars: parseScssVar({ 12 | }), 13 | defaultThemeVars: {}, 14 | }); 15 | 16 | export const devToolsComponentRenderer = createComponentRenderer( 17 | COMP, 18 | EditorMd, 19 | ({ extractValue, node, renderChild }: any) => { 20 | return ( 21 | <DevTools /> 22 | ); 23 | }, 24 | ); 25 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/DropdownMenu/SubMenuItem.md: -------------------------------------------------------------------------------- ```markdown 1 | %-DESC-START 2 | 3 | **Key features:** 4 | - **Hierarchical nesting**: Creates multi-level menu structures within [DropdownMenu](/components/DropdownMenu) components 5 | - **Dual functionality**: Acts as both a clickable menu item and a container for other menu components 6 | - **Custom triggers**: Configurable trigger appearance via triggerTemplate property 7 | - **Progressive disclosure**: Reveals nested options on hover or click interaction 8 | - **Unlimited depth**: Supports multiple levels of nesting for complex menu hierarchies 9 | 10 | %-DESC-END ``` -------------------------------------------------------------------------------- /docs/content/components/RealTimeAdapter.md: -------------------------------------------------------------------------------- ```markdown 1 | # RealTimeAdapter [#realtimeadapter] 2 | 3 | `RealTimeAdapter` is a non-visual component that listens to real-time events. 4 | 5 | ## Properties [#properties] 6 | 7 | ### `url` (default: "") [#url-default-] 8 | 9 | This property specifies the URL to use for long-polling. 10 | 11 | ## Events [#events] 12 | 13 | ### `eventArrived` [#eventarrived] 14 | 15 | This event is raised when data arrives from the backend using long-polling. 16 | 17 | ## Exposed Methods [#exposed-methods] 18 | 19 | This component does not expose any methods. 20 | 21 | ## Styling [#styling] 22 | 23 | This component does not have any styles. 24 | ``` -------------------------------------------------------------------------------- /xmlui/src/parsers/common/utils.ts: -------------------------------------------------------------------------------- ```typescript 1 | export function deepFreeze (o: any) { 2 | Object.freeze(o); 3 | 4 | let oIsFunction = typeof o === "function"; 5 | let hasOwnProp = Object.prototype.hasOwnProperty; 6 | 7 | Object.getOwnPropertyNames(o).forEach(function (prop) { 8 | if (hasOwnProp.call(o, prop) 9 | && (oIsFunction ? prop !== 'caller' && prop !== 'callee' && prop !== 'arguments' : true ) 10 | && o[prop] !== null 11 | && (typeof o[prop] === "object" || typeof o[prop] === "function") 12 | && !Object.isFrozen(o[prop])) { 13 | deepFreeze(o[prop]); 14 | } 15 | }); 16 | 17 | return o; 18 | }; ``` -------------------------------------------------------------------------------- /xmlui/src/abstractions/scripting/ScriptParserError.ts: -------------------------------------------------------------------------------- ```typescript 1 | export interface ScriptParserErrorMessage { 2 | code: ScriptParsingErrorCodes; 3 | text: string; 4 | position?: number; 5 | line?: number; 6 | column?: number; 7 | } 8 | 9 | export type ScriptParsingErrorCodes = 10 | | "W001" 11 | | "W002" 12 | | "W003" 13 | | "W004" 14 | | "W005" 15 | | "W006" 16 | | "W007" 17 | | "W008" 18 | | "W009" 19 | | "W010" 20 | | "W011" 21 | | "W012" 22 | | "W013" 23 | | "W014" 24 | | "W015" 25 | | "W016" 26 | | "W017" 27 | | "W018" 28 | | "W019" 29 | | "W020" 30 | | "W021" 31 | | "W022" 32 | | "W023" 33 | | "W024" 34 | | "W025" 35 | | "W026" 36 | | "W027" 37 | | "W028" 38 | | "W029" 39 | | "W030" 40 | | "W031"; 41 | ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/svg/folder.svg: -------------------------------------------------------------------------------- ``` 1 | <svg viewBox="0 0 30 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z" fill="#ADDAE9"/> <rect x="1.2179" y="2.44446" width="28.0128" height="15.8889" fill="white"/> <path d="M10.9928 1.1579H29C29.5523 1.1579 30 1.60561 30 2.1579V21C30 21.5523 29.5523 22 29 22H1.00002C0.447731 22 1.71661e-05 21.5523 1.71661e-05 21V4.93087C1.71661e-05 4.37858 0.447733 3.93087 1.00002 3.93087H6.55236L10.9928 1.1579Z" fill="#CAE9F3"/></svg> ``` -------------------------------------------------------------------------------- /xmlui/src/components/Icon/TableDeleteRowIcon.tsx: -------------------------------------------------------------------------------- ```typescript 1 | import React from "react"; 2 | export default function TableDeleteRowIcon(props) { 3 | return ( 4 | <svg 5 | viewBox="0 0 24 16" 6 | stroke="currentColor" 7 | fill="none" 8 | strokeWidth="1.5" 9 | strokeLinecap="round" 10 | strokeLinejoin="round" 11 | {...props} 12 | > 13 | <rect x="1.5" y="1.5" width="13" height="11" rx="1" /> 14 | <line x1="1.5" y1="5.5" x2="14.5" y2="5.5" /> 15 | <line x1="1.5" y1="9.5" x2="14.5" y2="9.5" /> 16 | {/* Minus sign for delete */} 17 | <line x1="17" y1="8" x2="21" y2="8" /> 18 | </svg> 19 | ); 20 | } ```