@mono-lit/helper 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +55 -0
- package/README.md +35 -3
- package/dist/breakpoints-CAbhDUht.js +84 -0
- package/dist/checkbox-Cqpie9Ap.js +4 -0
- package/dist/chip-DBUUa2eB.js +4 -0
- package/dist/chip-limits-BMoO31JM.js +213 -0
- package/dist/chip-strip-Cw3gyz0q.js +213 -0
- package/dist/color-DHYrfXsX.js +253 -0
- package/dist/css-class-BRKRzHx-.js +60 -0
- package/dist/css-size-DhHSVZJK.js +37 -0
- package/dist/data/theme/presets.json.d.ts +140 -0
- package/dist/data-source-controller-B_rgHCjw.js +241 -0
- package/dist/data-source-controller-Dbb4fd8I.js +241 -0
- package/dist/data-source-options-CP-X62Pa.js +535 -0
- package/dist/data-source-options-Jqj7LU3Z.js +537 -0
- package/dist/data-source-read-B4DGp6UQ.js +216 -0
- package/dist/data-source-read-DL88aH8t.js +217 -0
- package/dist/decorate-DEXtNagw.js +141 -0
- package/dist/element-props-CLB6yvbm.js +114 -0
- package/dist/esm-Ptok4SQZ.js +2026 -0
- package/dist/excel-CY6zGkcx.js +608 -0
- package/dist/excel-DopRbEMK.js +608 -0
- package/dist/export-BiGVyxt6.js +2302 -0
- package/dist/export.d.ts +1 -0
- package/dist/export.js +2302 -0
- package/dist/field-icons-DELrSdqJ.js +86 -0
- package/dist/field-path-C92eGLg3.js +251 -0
- package/dist/filter-builder-Bke3qOgJ.js +205 -0
- package/dist/filter-builder-CE4zE0V5.js +205 -0
- package/dist/filter-eval-DIfU2EAn.js +173 -0
- package/dist/filter-odata-C1vSGZaY.js +591 -0
- package/dist/form-control-core-B8d7k6vk.js +223 -0
- package/dist/form-control-core-eeRr0zLU.js +223 -0
- package/dist/hydration-flush-RB5Tz5nl.js +1001 -0
- package/dist/icon-CJkTlmTb.js +55 -0
- package/dist/icon-dVhYJUIH.js +17 -0
- package/dist/import-BgJdkwBI.js +606 -0
- package/dist/import.d.ts +1 -0
- package/dist/import.js +606 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -0
- package/dist/index.node-BIqEGehH.js +396 -0
- package/dist/index.node.d.ts +1 -0
- package/dist/index.node.js +16 -0
- package/dist/input-zGOULADt.js +4 -0
- package/dist/layout-var-CZnzMC0s.js +73 -0
- package/dist/light-slots-BVJwyg_2.js +244 -0
- package/dist/light-slots-DW1WgfgT.js +254 -0
- package/dist/markdown-DfqrfOJN.js +20146 -0
- package/dist/mono-button-simcTQdW.js +873 -0
- package/dist/mono-button.shadow-B_rKOY9N.js +784 -0
- package/dist/mono-data-chart-CEv29_NS.js +779 -0
- package/dist/mono-data-dropdown-Wnoke6zO.js +357 -0
- package/dist/mono-data-grid-CjkEqxgE.js +3913 -0
- package/dist/mono-data-grid-YjR3n9Ar.js +3915 -0
- package/dist/mono-element-B0kP_96P.js +232 -0
- package/dist/mono-event-Bi1qP9uN.js +129 -0
- package/dist/mono-form-controller-5PfsU4qa.js +409 -0
- package/dist/mono-modal-controller-BMO3n3rP.js +223 -0
- package/dist/mono-ui-CPV7rrdo.js +358 -0
- package/dist/normalize-error-Gcgmgh5i.js +871 -0
- package/dist/notifier-CE4yxMUQ.js +88 -0
- package/dist/nuxt.d.ts +1 -0
- package/dist/nuxt.js +130 -0
- package/dist/popup-portal-BziRX1yG.js +465 -0
- package/dist/popup-stack-CEEMib__.js +189 -0
- package/dist/rate-limit-BBa2PO79.js +521 -0
- package/dist/reactive-D3EERqgO.js +47 -0
- package/dist/reactive-Di3mTMnV.js +1087 -0
- package/dist/search.d.ts +1 -0
- package/dist/search.js +97 -0
- package/dist/src/components/accordion/accordion-core.d.ts +62 -0
- package/dist/src/components/accordion/accordion-types.d.ts +62 -0
- package/dist/src/components/accordion/index.d.ts +3 -0
- package/dist/src/components/accordion/index.shadow.d.ts +5 -0
- package/dist/src/components/accordion/mono-accordion.d.ts +55 -0
- package/dist/src/components/accordion/mono-accordion.shadow.d.ts +56 -0
- package/dist/src/components/alert/alert-core.d.ts +46 -0
- package/dist/src/components/alert/alert-types.d.ts +44 -0
- package/dist/src/components/alert/index.d.ts +3 -0
- package/dist/src/components/alert/index.shadow.d.ts +5 -0
- package/dist/src/components/alert/mono-alert.d.ts +44 -0
- package/dist/src/components/alert/mono-alert.shadow.d.ts +34 -0
- package/dist/src/components/breadcrumb/breadcrumb-core.d.ts +61 -0
- package/dist/src/components/breadcrumb/breadcrumb-list-core.d.ts +49 -0
- package/dist/src/components/breadcrumb/breadcrumb-render.d.ts +31 -0
- package/dist/src/components/breadcrumb/breadcrumb-types.d.ts +117 -0
- package/dist/src/components/breadcrumb/breadcrumb-utils.d.ts +43 -0
- package/dist/src/components/breadcrumb/index.d.ts +6 -0
- package/dist/src/components/breadcrumb/index.shadow.d.ts +8 -0
- package/dist/src/components/breadcrumb/mono-breadcrumb-list.d.ts +29 -0
- package/dist/src/components/breadcrumb/mono-breadcrumb-list.shadow.d.ts +48 -0
- package/dist/src/components/breadcrumb/mono-breadcrumb.d.ts +38 -0
- package/dist/src/components/breadcrumb/mono-breadcrumb.shadow.d.ts +73 -0
- package/dist/src/components/button/button-core.d.ts +90 -0
- package/dist/src/components/button/button-dropdown-core.d.ts +57 -0
- package/dist/src/components/button/button-dropdown-types.d.ts +129 -0
- package/dist/src/components/button/button-types.d.ts +219 -0
- package/dist/src/components/button/button-utils.d.ts +18 -0
- package/dist/src/components/button/index.button-dropdown.d.ts +4 -0
- package/dist/src/components/button/index.button-dropdown.shadow.d.ts +4 -0
- package/dist/src/components/button/index.d.ts +8 -0
- package/dist/src/components/button/index.shadow.d.ts +5 -0
- package/dist/src/components/button/mono-button-dropdown.d.ts +35 -0
- package/dist/src/components/button/mono-button-dropdown.shadow.d.ts +45 -0
- package/dist/src/components/button/mono-button.d.ts +123 -0
- package/dist/src/components/button/mono-button.shadow.d.ts +56 -0
- package/dist/src/components/card/card-core.d.ts +75 -0
- package/dist/src/components/card/card-types.d.ts +137 -0
- package/dist/src/components/card/card-utils.d.ts +23 -0
- package/dist/src/components/card/index.d.ts +4 -0
- package/dist/src/components/card/index.shadow.d.ts +6 -0
- package/dist/src/components/card/mono-card.d.ts +56 -0
- package/dist/src/components/card/mono-card.shadow.d.ts +52 -0
- package/dist/src/components/chart/chart-core.d.ts +43 -0
- package/dist/src/components/chart/chart-odata.d.ts +52 -0
- package/dist/src/components/chart/chart-types.d.ts +356 -0
- package/dist/src/components/chart/index.d.ts +8 -0
- package/dist/src/components/chart/index.shadow.d.ts +7 -0
- package/dist/src/components/chart/mono-chart-presets.d.ts +43 -0
- package/dist/src/components/chart/mono-chart-presets.shadow.d.ts +43 -0
- package/dist/src/components/chart/mono-chart.d.ts +30 -0
- package/dist/src/components/chart/mono-chart.shadow.d.ts +22 -0
- package/dist/src/components/chart/mono-data-chart.d.ts +27 -0
- package/dist/src/components/checkbox/checkbox-core.d.ts +53 -0
- package/dist/src/components/checkbox/checkbox-types.d.ts +69 -0
- package/dist/src/components/checkbox/checkbox-utils.d.ts +35 -0
- package/dist/src/components/checkbox/index.d.ts +4 -0
- package/dist/src/components/checkbox/index.shadow.d.ts +5 -0
- package/dist/src/components/checkbox/mono-checkbox.d.ts +34 -0
- package/dist/src/components/checkbox/mono-checkbox.shadow.d.ts +45 -0
- package/dist/src/components/chip/chip-core.d.ts +58 -0
- package/dist/src/components/chip/chip-types.d.ts +142 -0
- package/dist/src/components/chip/chip-utils.d.ts +24 -0
- package/dist/src/components/chip/index.d.ts +8 -0
- package/dist/src/components/chip/index.shadow.d.ts +6 -0
- package/dist/src/components/chip/mono-chip.d.ts +48 -0
- package/dist/src/components/chip/mono-chip.shadow.d.ts +33 -0
- package/dist/src/components/chip/mono-status-dot.d.ts +34 -0
- package/dist/src/components/date/date-core.d.ts +80 -0
- package/dist/src/components/date/date-types.d.ts +163 -0
- package/dist/src/components/date/index.d.ts +3 -0
- package/dist/src/components/date/index.shadow.d.ts +4 -0
- package/dist/src/components/date/mono-date.d.ts +22 -0
- package/dist/src/components/date/mono-date.shadow.d.ts +31 -0
- package/dist/src/components/drawer/drawer-core.d.ts +99 -0
- package/dist/src/components/drawer/drawer-types.d.ts +153 -0
- package/dist/src/components/drawer/index.d.ts +3 -0
- package/dist/src/components/drawer/index.shadow.d.ts +4 -0
- package/dist/src/components/drawer/mono-drawer.d.ts +45 -0
- package/dist/src/components/drawer/mono-drawer.shadow.d.ts +46 -0
- package/dist/src/components/dropdown/dropdown-core.d.ts +33 -0
- package/dist/src/components/dropdown/dropdown-types.d.ts +88 -0
- package/dist/src/components/dropdown/index.d.ts +3 -0
- package/dist/src/components/dropdown/index.shadow.d.ts +4 -0
- package/dist/src/components/dropdown/mono-dropdown.d.ts +34 -0
- package/dist/src/components/dropdown/mono-dropdown.shadow.d.ts +28 -0
- package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +65 -0
- package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +278 -0
- package/dist/src/components/dropdown-table/index.d.ts +5 -0
- package/dist/src/components/dropdown-table/index.shadow.d.ts +6 -0
- package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +152 -0
- package/dist/src/components/dropdown-table/mono-dropdown-table.d.ts +46 -0
- package/dist/src/components/dropdown-table/mono-dropdown-table.shadow.d.ts +22 -0
- package/dist/src/components/file-upload/file-upload-core.d.ts +60 -0
- package/dist/src/components/file-upload/file-upload-types.d.ts +145 -0
- package/dist/src/components/file-upload/file-upload-utils.d.ts +16 -0
- package/dist/src/components/file-upload/index.d.ts +4 -0
- package/dist/src/components/file-upload/index.shadow.d.ts +5 -0
- package/dist/src/components/file-upload/mono-file-upload.d.ts +33 -0
- package/dist/src/components/file-upload/mono-file-upload.shadow.d.ts +50 -0
- package/dist/src/components/filter/filter-builder-core.d.ts +36 -0
- package/dist/src/components/filter/filter-builder.d.ts +23 -0
- package/dist/src/components/filter/filter-odata.d.ts +27 -0
- package/dist/src/components/filter/filter-operators.d.ts +13 -0
- package/dist/src/components/filter/filter-types.d.ts +253 -0
- package/dist/src/components/filter/index.d.ts +6 -0
- package/dist/src/components/filter/index.shadow.d.ts +7 -0
- package/dist/src/components/filter/mono-filter-builder.d.ts +21 -0
- package/dist/src/components/filter/mono-filter-builder.shadow.d.ts +17 -0
- package/dist/src/components/form/form-control-core.d.ts +37 -0
- package/dist/src/components/form/form-rules.d.ts +25 -0
- package/dist/src/components/form/form-types.d.ts +307 -0
- package/dist/src/components/form/index.d.ts +6 -0
- package/dist/src/components/form/mono-form-controller.d.ts +16 -0
- package/dist/src/components/input/index.d.ts +6 -0
- package/dist/src/components/input/index.shadow.d.ts +8 -0
- package/dist/src/components/input/input-core.d.ts +91 -0
- package/dist/src/components/input/input-format.d.ts +118 -0
- package/dist/src/components/input/input-types.d.ts +179 -0
- package/dist/src/components/input/input-utils.d.ts +10 -0
- package/dist/src/components/input/mono-input.d.ts +46 -0
- package/dist/src/components/input/mono-input.shadow.d.ts +34 -0
- package/dist/src/components/menu/index.d.ts +6 -0
- package/dist/src/components/menu/index.shadow.d.ts +7 -0
- package/dist/src/components/menu/menu-core.d.ts +65 -0
- package/dist/src/components/menu/menu-render.d.ts +55 -0
- package/dist/src/components/menu/menu-types.d.ts +195 -0
- package/dist/src/components/menu/menu-utils.d.ts +53 -0
- package/dist/src/components/menu/mono-menu-list.d.ts +118 -0
- package/dist/src/components/menu/mono-menu.d.ts +39 -0
- package/dist/src/components/menu/mono-menu.shadow.d.ts +40 -0
- package/dist/src/components/modal/index.d.ts +4 -0
- package/dist/src/components/modal/index.shadow.d.ts +5 -0
- package/dist/src/components/modal/modal-core.d.ts +110 -0
- package/dist/src/components/modal/modal-types.d.ts +304 -0
- package/dist/src/components/modal/mono-modal-controller.d.ts +4 -0
- package/dist/src/components/modal/mono-modal.d.ts +45 -0
- package/dist/src/components/modal/mono-modal.shadow.d.ts +50 -0
- package/dist/src/components/nav/index.d.ts +4 -0
- package/dist/src/components/nav/index.shadow.d.ts +6 -0
- package/dist/src/components/nav/mono-nav.d.ts +41 -0
- package/dist/src/components/nav/mono-nav.shadow.d.ts +21 -0
- package/dist/src/components/nav/nav-core.d.ts +34 -0
- package/dist/src/components/nav/nav-types.d.ts +48 -0
- package/dist/src/components/nav/nav-utils.d.ts +12 -0
- package/dist/src/components/radio/index.d.ts +4 -0
- package/dist/src/components/radio/index.shadow.d.ts +5 -0
- package/dist/src/components/radio/mono-radio.d.ts +31 -0
- package/dist/src/components/radio/mono-radio.shadow.d.ts +35 -0
- package/dist/src/components/radio/radio-core.d.ts +45 -0
- package/dist/src/components/radio/radio-types.d.ts +58 -0
- package/dist/src/components/radio/radio-utils.d.ts +12 -0
- package/dist/src/components/rich-text-editor/index.d.ts +5 -0
- package/dist/src/components/rich-text-editor/index.shadow.d.ts +6 -0
- package/dist/src/components/rich-text-editor/mono-rich-text-editor.d.ts +31 -0
- package/dist/src/components/rich-text-editor/mono-rich-text-editor.shadow.d.ts +34 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-core.d.ts +100 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-loader.d.ts +17 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-toolbar.d.ts +65 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-types.d.ts +231 -0
- package/dist/src/components/select/index.d.ts +4 -0
- package/dist/src/components/select/index.shadow.d.ts +5 -0
- package/dist/src/components/select/mono-select.d.ts +69 -0
- package/dist/src/components/select/mono-select.shadow.d.ts +48 -0
- package/dist/src/components/select/select-core.d.ts +98 -0
- package/dist/src/components/select/select-types.d.ts +284 -0
- package/dist/src/components/select/select-utils.d.ts +7 -0
- package/dist/src/components/sidebar/index.d.ts +4 -0
- package/dist/src/components/sidebar/index.shadow.d.ts +6 -0
- package/dist/src/components/sidebar/mono-sidebar.d.ts +34 -0
- package/dist/src/components/sidebar/mono-sidebar.shadow.d.ts +27 -0
- package/dist/src/components/sidebar/sidebar-core.d.ts +51 -0
- package/dist/src/components/sidebar/sidebar-types.d.ts +119 -0
- package/dist/src/components/sidebar/sidebar-utils.d.ts +55 -0
- package/dist/src/components/switch/index.d.ts +4 -0
- package/dist/src/components/switch/index.shadow.d.ts +5 -0
- package/dist/src/components/switch/mono-switch.d.ts +31 -0
- package/dist/src/components/switch/mono-switch.shadow.d.ts +36 -0
- package/dist/src/components/switch/switch-core.d.ts +49 -0
- package/dist/src/components/switch/switch-types.d.ts +64 -0
- package/dist/src/components/switch/switch-utils.d.ts +12 -0
- package/dist/src/components/table/array-source.d.ts +44 -0
- package/dist/src/components/table/date-filter-tree.d.ts +93 -0
- package/dist/src/components/table/grouping.d.ts +55 -0
- package/dist/src/components/table/index.d.ts +33 -0
- package/dist/src/components/table/index.shadow.d.ts +47 -0
- package/dist/src/components/table/mono-data-grid.d.ts +1756 -0
- package/dist/src/components/table/mono-table-checkbox-core.d.ts +76 -0
- package/dist/src/components/table/mono-table-checkbox.d.ts +34 -0
- package/dist/src/components/table/mono-table-checkbox.shadow.d.ts +26 -0
- package/dist/src/components/table/mono-table-detail-core.d.ts +87 -0
- package/dist/src/components/table/mono-table-detail.d.ts +32 -0
- package/dist/src/components/table/mono-table-detail.shadow.d.ts +31 -0
- package/dist/src/components/table/mono-table-empty-core.d.ts +60 -0
- package/dist/src/components/table/mono-table-empty.d.ts +35 -0
- package/dist/src/components/table/mono-table-empty.shadow.d.ts +40 -0
- package/dist/src/components/table/mono-table-error-core.d.ts +84 -0
- package/dist/src/components/table/mono-table-error.d.ts +28 -0
- package/dist/src/components/table/mono-table-error.shadow.d.ts +21 -0
- package/dist/src/components/table/mono-table-info-core.d.ts +13 -0
- package/dist/src/components/table/mono-table-info.d.ts +19 -0
- package/dist/src/components/table/mono-table-info.shadow.d.ts +14 -0
- package/dist/src/components/table/mono-table-loading-core.d.ts +41 -0
- package/dist/src/components/table/mono-table-loading.d.ts +50 -0
- package/dist/src/components/table/mono-table-loading.shadow.d.ts +14 -0
- package/dist/src/components/table/mono-table-page-size-core.d.ts +14 -0
- package/dist/src/components/table/mono-table-page-size.d.ts +16 -0
- package/dist/src/components/table/mono-table-page-size.shadow.d.ts +11 -0
- package/dist/src/components/table/mono-table-paging-core.d.ts +22 -0
- package/dist/src/components/table/mono-table-paging-group-core.d.ts +18 -0
- package/dist/src/components/table/mono-table-paging-group.d.ts +20 -0
- package/dist/src/components/table/mono-table-paging-group.shadow.d.ts +13 -0
- package/dist/src/components/table/mono-table-paging.d.ts +16 -0
- package/dist/src/components/table/mono-table-paging.shadow.d.ts +11 -0
- package/dist/src/components/table/mono-table-search-core.d.ts +74 -0
- package/dist/src/components/table/mono-table-search.d.ts +34 -0
- package/dist/src/components/table/mono-table-search.shadow.d.ts +21 -0
- package/dist/src/components/table/mono-table-sort-core.d.ts +35 -0
- package/dist/src/components/table/mono-table-sort.d.ts +38 -0
- package/dist/src/components/table/mono-table-sort.shadow.d.ts +20 -0
- package/dist/src/components/table/mono-table-summary-core.d.ts +26 -0
- package/dist/src/components/table/mono-table-summary.d.ts +24 -0
- package/dist/src/components/table/mono-table-summary.shadow.d.ts +14 -0
- package/dist/src/components/table/mono-table-th-core.d.ts +56 -0
- package/dist/src/components/table/mono-table-th.d.ts +41 -0
- package/dist/src/components/table/mono-table-th.shadow.d.ts +19 -0
- package/dist/src/components/table/store-group-source.d.ts +24 -0
- package/dist/src/components/table/table-controller-core.d.ts +40 -0
- package/dist/src/components/table/table-filter-icons.d.ts +3 -0
- package/dist/src/components/table/table-menu-core.d.ts +65 -0
- package/dist/src/components/table/table-overlay.d.ts +165 -0
- package/dist/src/components/table/table-sort-icons.d.ts +4 -0
- package/dist/src/components/table/table-sort-utils.d.ts +20 -0
- package/dist/src/components/table/table-types.d.ts +475 -0
- package/dist/src/components/tabs/index.d.ts +3 -0
- package/dist/src/components/tabs/index.shadow.d.ts +4 -0
- package/dist/src/components/tabs/mono-tabs.d.ts +33 -0
- package/dist/src/components/tabs/mono-tabs.shadow.d.ts +37 -0
- package/dist/src/components/tabs/tabs-core.d.ts +57 -0
- package/dist/src/components/tabs/tabs-types.d.ts +65 -0
- package/dist/src/components/tag-input/index.d.ts +4 -0
- package/dist/src/components/tag-input/index.shadow.d.ts +5 -0
- package/dist/src/components/tag-input/mono-tag-input.d.ts +66 -0
- package/dist/src/components/tag-input/mono-tag-input.shadow.d.ts +40 -0
- package/dist/src/components/tag-input/tag-input-core.d.ts +108 -0
- package/dist/src/components/tag-input/tag-input-types.d.ts +420 -0
- package/dist/src/components/tag-input/tag-input-utils.d.ts +8 -0
- package/dist/src/components/textarea/index.d.ts +4 -0
- package/dist/src/components/textarea/index.shadow.d.ts +5 -0
- package/dist/src/components/textarea/mono-textarea.d.ts +29 -0
- package/dist/src/components/textarea/mono-textarea.shadow.d.ts +31 -0
- package/dist/src/components/textarea/textarea-core.d.ts +60 -0
- package/dist/src/components/textarea/textarea-types.d.ts +131 -0
- package/dist/src/components/textarea/textarea-utils.d.ts +7 -0
- package/dist/src/components/tooltip/control-tooltip.d.ts +36 -0
- package/dist/src/components/tooltip/index.d.ts +6 -0
- package/dist/src/components/tooltip/tooltip-config.d.ts +27 -0
- package/dist/src/components/tooltip/tooltip-declarative.d.ts +41 -0
- package/dist/src/components/tooltip/tooltip-loader.d.ts +1 -0
- package/dist/src/components/tooltip/tooltip-types.d.ts +110 -0
- package/dist/src/composables/breakpoints.d.ts +59 -0
- package/dist/src/composables/chip-limits.d.ts +48 -0
- package/dist/src/composables/chip-strip.d.ts +93 -0
- package/dist/src/composables/color.d.ts +103 -0
- package/dist/src/composables/css-class.d.ts +27 -0
- package/dist/src/composables/css-size.d.ts +40 -0
- package/dist/src/composables/data-source-controller.d.ts +113 -0
- package/dist/src/composables/element-props.d.ts +46 -0
- package/dist/src/composables/field-icons.d.ts +15 -0
- package/dist/src/composables/hybird-prop.d.ts +79 -0
- package/dist/src/composables/hydration-flush.d.ts +34 -0
- package/dist/src/composables/icon.d.ts +17 -0
- package/dist/src/composables/layout-var.d.ts +34 -0
- package/dist/src/composables/light-slots.d.ts +133 -0
- package/dist/src/composables/mdi-glyphs.d.ts +4 -0
- package/dist/src/composables/mono-element.d.ts +9 -0
- package/dist/src/composables/mono-event.d.ts +55 -0
- package/dist/src/composables/mono-pending.d.ts +8 -0
- package/dist/src/composables/mono-skeleton.d.ts +193 -0
- package/dist/src/composables/mono-ui.d.ts +58 -0
- package/dist/src/composables/notifier.d.ts +46 -0
- package/dist/src/composables/popup-portal.d.ts +226 -0
- package/dist/src/composables/popup-stack.d.ts +70 -0
- package/dist/src/composables/rate-limit.d.ts +108 -0
- package/dist/src/composables/reactive.d.ts +53 -0
- package/dist/src/composables/shadow-css.d.ts +42 -0
- package/dist/src/composables/visibility.d.ts +36 -0
- package/dist/src/data/theme/index.d.ts +30 -0
- package/dist/src/data/theme/presets.d.ts +94 -0
- package/dist/src/entries/index.d.ts +2 -0
- package/dist/src/entries/index.node.d.ts +42 -0
- package/dist/src/entries/search.d.ts +3 -0
- package/dist/src/export/detail.d.ts +29 -0
- package/dist/src/export/download.d.ts +9 -0
- package/dist/src/export/excel/index.d.ts +27 -0
- package/dist/src/export/excel/nodes.d.ts +123 -0
- package/dist/src/export/expression.d.ts +36 -0
- package/dist/src/export/helpers.d.ts +6 -0
- package/dist/src/export/index.d.ts +13 -0
- package/dist/src/export/markdown.d.ts +52 -0
- package/dist/src/export/resolve-data.d.ts +31 -0
- package/dist/src/export/sentinel.d.ts +97 -0
- package/dist/src/export/sheet-name.d.ts +45 -0
- package/dist/src/export/styles.d.ts +33 -0
- package/dist/src/export/template.d.ts +10 -0
- package/dist/src/export/types.d.ts +259 -0
- package/dist/src/import/coerce.d.ts +38 -0
- package/dist/src/import/index.d.ts +16 -0
- package/dist/src/import/match.d.ts +54 -0
- package/dist/src/import/parse.d.ts +15 -0
- package/dist/src/import/types.d.ts +153 -0
- package/dist/src/nuxt/index.d.ts +94 -0
- package/dist/src/search/data-search.d.ts +207 -0
- package/dist/src/search/field-path.d.ts +107 -0
- package/dist/src/search/filter-eval.d.ts +30 -0
- package/dist/src/search/index.d.ts +22 -0
- package/dist/src/search/odata-search.d.ts +18 -0
- package/dist/src/search/search-expr.d.ts +160 -0
- package/dist/src/utils/data-source-apply.d.ts +97 -0
- package/dist/src/utils/data-source-options.d.ts +116 -0
- package/dist/src/utils/data-source-read.d.ts +85 -0
- package/dist/src/utils/data-source-summary.d.ts +55 -0
- package/dist/src/utils/normalize-error.d.ts +90 -0
- package/dist/src/vite/index.d.ts +48 -0
- package/dist/src/vite/mono-client-only.d.ts +35 -0
- package/dist/src/vite/mono-ssr-stub.d.ts +20 -0
- package/dist/src/vite/shadow-manifest.d.ts +8 -0
- package/dist/styles-BIJ31TM4.js +20146 -0
- package/dist/tooltip-DQqNpqk2.js +795 -0
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +2 -0
- package/dist/ui/accordion.d.ts +1 -0
- package/dist/ui/accordion.js +466 -0
- package/dist/ui/alert.d.ts +1 -0
- package/dist/ui/alert.js +221 -0
- package/dist/ui/breadcrumb.d.ts +1 -0
- package/dist/ui/breadcrumb.js +902 -0
- package/dist/ui/button-dropdown.d.ts +1 -0
- package/dist/ui/button-dropdown.js +679 -0
- package/dist/ui/button.d.ts +1 -0
- package/dist/ui/button.js +63 -0
- package/dist/ui/card.d.ts +1 -0
- package/dist/ui/card.js +524 -0
- package/dist/ui/chart.d.ts +1 -0
- package/dist/ui/chart.js +885 -0
- package/dist/ui/checkbox.d.ts +1 -0
- package/dist/ui/checkbox.js +413 -0
- package/dist/ui/chip.d.ts +1 -0
- package/dist/ui/chip.js +558 -0
- package/dist/ui/date.d.ts +1 -0
- package/dist/ui/date.js +686 -0
- package/dist/ui/drawer.d.ts +1 -0
- package/dist/ui/drawer.js +901 -0
- package/dist/ui/dropdown-table.d.ts +1 -0
- package/dist/ui/dropdown-table.js +1291 -0
- package/dist/ui/dropdown.d.ts +1 -0
- package/dist/ui/dropdown.js +586 -0
- package/dist/ui/file-upload.d.ts +1 -0
- package/dist/ui/file-upload.js +688 -0
- package/dist/ui/filter.d.ts +1 -0
- package/dist/ui/filter.js +400 -0
- package/dist/ui/font/files/geist-47c091c9.woff2 +0 -0
- package/dist/ui/font/files/geist-8dd77544.woff2 +0 -0
- package/dist/ui/font/files/geist-b9248b1e.woff2 +0 -0
- package/dist/ui/font/files/geist-d40d74b4.woff2 +0 -0
- package/dist/ui/font/files/geist-f493429a.woff2 +0 -0
- package/dist/ui/font/files/geistmono-03737868.woff2 +0 -0
- package/dist/ui/font/files/geistmono-421a7e38.woff2 +0 -0
- package/dist/ui/font/files/geistmono-48ef518d.woff2 +0 -0
- package/dist/ui/font/files/geistmono-5df35d39.woff2 +0 -0
- package/dist/ui/font/files/geistmono-7de289a4.woff2 +0 -0
- package/dist/ui/font/files/geistmono-e976128f.woff2 +0 -0
- package/dist/ui/font/files/inter-05cf802c.woff2 +0 -0
- package/dist/ui/font/files/inter-2b2f25a4.woff2 +0 -0
- package/dist/ui/font/files/inter-467acc7a.woff2 +0 -0
- package/dist/ui/font/files/inter-6e85163c.woff2 +0 -0
- package/dist/ui/font/files/inter-7048add3.woff2 +0 -0
- package/dist/ui/font/files/inter-9be0371e.woff2 +0 -0
- package/dist/ui/font/files/inter-a28b7e31.woff2 +0 -0
- package/dist/ui/font/files/poppins-054df55a.woff2 +0 -0
- package/dist/ui/font/files/poppins-0ee5dc9a.woff2 +0 -0
- package/dist/ui/font/files/poppins-0f44cb18.woff2 +0 -0
- package/dist/ui/font/files/poppins-0ff0d30c.woff2 +0 -0
- package/dist/ui/font/files/poppins-13045147.woff2 +0 -0
- package/dist/ui/font/files/poppins-1db57cd9.woff2 +0 -0
- package/dist/ui/font/files/poppins-2cf2a902.woff2 +0 -0
- package/dist/ui/font/files/poppins-39e7f079.woff2 +0 -0
- package/dist/ui/font/files/poppins-9607042d.woff2 +0 -0
- package/dist/ui/font/files/poppins-9a88fc1f.woff2 +0 -0
- package/dist/ui/font/files/poppins-b8f4f752.woff2 +0 -0
- package/dist/ui/font/files/poppins-f5e57db4.woff2 +0 -0
- package/dist/ui/font/geist-mono.css +104 -0
- package/dist/ui/font/geist.css +168 -0
- package/dist/ui/font/inter.css +232 -0
- package/dist/ui/font/poppins.css +104 -0
- package/dist/ui/form.d.ts +1 -0
- package/dist/ui/form.js +3 -0
- package/dist/ui/index.css +21989 -0
- package/dist/ui/input.d.ts +1 -0
- package/dist/ui/input.js +1176 -0
- package/dist/ui/menu.d.ts +1 -0
- package/dist/ui/menu.js +1289 -0
- package/dist/ui/modal.d.ts +1 -0
- package/dist/ui/modal.js +996 -0
- package/dist/ui/nav.d.ts +1 -0
- package/dist/ui/nav.js +295 -0
- package/dist/ui/radio.d.ts +1 -0
- package/dist/ui/radio.js +379 -0
- package/dist/ui/rich-text-editor.d.ts +1 -0
- package/dist/ui/rich-text-editor.js +1338 -0
- package/dist/ui/select.d.ts +1 -0
- package/dist/ui/select.js +2200 -0
- package/dist/ui/shadow/accordion.js +442 -0
- package/dist/ui/shadow/alert.js +218 -0
- package/dist/ui/shadow/breadcrumb.js +919 -0
- package/dist/ui/shadow/button-dropdown.js +696 -0
- package/dist/ui/shadow/button.js +63 -0
- package/dist/ui/shadow/card.js +538 -0
- package/dist/ui/shadow/chart.js +1685 -0
- package/dist/ui/shadow/checkbox.js +457 -0
- package/dist/ui/shadow/chip.js +559 -0
- package/dist/ui/shadow/date.js +712 -0
- package/dist/ui/shadow/drawer.js +869 -0
- package/dist/ui/shadow/dropdown-table.js +1620 -0
- package/dist/ui/shadow/dropdown.js +547 -0
- package/dist/ui/shadow/file-upload.js +731 -0
- package/dist/ui/shadow/filter.js +402 -0
- package/dist/ui/shadow/input.js +1150 -0
- package/dist/ui/shadow/menu.js +899 -0
- package/dist/ui/shadow/modal.js +1194 -0
- package/dist/ui/shadow/nav.js +240 -0
- package/dist/ui/shadow/radio.js +408 -0
- package/dist/ui/shadow/rich-text-editor.js +1344 -0
- package/dist/ui/shadow/select.js +2167 -0
- package/dist/ui/shadow/sidebar.js +606 -0
- package/dist/ui/shadow/switch.js +428 -0
- package/dist/ui/shadow/table.js +4755 -0
- package/dist/ui/shadow/tabs.js +372 -0
- package/dist/ui/shadow/tag-input.js +2974 -0
- package/dist/ui/shadow/textarea.js +816 -0
- package/dist/ui/sidebar.d.ts +1 -0
- package/dist/ui/sidebar.js +659 -0
- package/dist/ui/switch.d.ts +1 -0
- package/dist/ui/switch.js +398 -0
- package/dist/ui/table.d.ts +1 -0
- package/dist/ui/table.js +4654 -0
- package/dist/ui/tabs.d.ts +1 -0
- package/dist/ui/tabs.js +379 -0
- package/dist/ui/tag-input.d.ts +1 -0
- package/dist/ui/tag-input.js +2947 -0
- package/dist/ui/textarea.d.ts +1 -0
- package/dist/ui/textarea.js +819 -0
- package/dist/ui/theme/legacy.css +293 -0
- package/dist/ui/theme/luma.css +743 -0
- package/dist/ui/theme/lyra.css +754 -0
- package/dist/ui/theme/maia.css +673 -0
- package/dist/ui/theme/mira.css +802 -0
- package/dist/ui/theme/nova.css +662 -0
- package/dist/ui/theme/one.css +699 -0
- package/dist/ui/theme/rhea.css +742 -0
- package/dist/ui/theme/sera.css +845 -0
- package/dist/ui/theme/tokens.css +261 -0
- package/dist/ui/theme/vega.css +467 -0
- package/dist/vite-C5iUK7so.js +329 -0
- package/dist/vite.d.ts +1 -0
- package/dist/vite.js +2 -0
- package/dist/vue.d.ts +282 -0
- package/package.json +411 -3
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { NodeTypes, parse } from "@vue/compiler-dom";
|
|
2
|
+
import { parse as parse$1 } from "@vue/compiler-sfc";
|
|
3
|
+
import MagicString from "magic-string";
|
|
4
|
+
//#region src/vite/shadow-manifest.ts
|
|
5
|
+
var SHADOW_ENTRY_TO_TAGS = {
|
|
6
|
+
accordion: ["mono-shadow-accordion"],
|
|
7
|
+
button: ["mono-shadow-button"],
|
|
8
|
+
"button-dropdown": ["mono-shadow-button-dropdown"],
|
|
9
|
+
alert: ["mono-shadow-alert"],
|
|
10
|
+
card: ["mono-shadow-card"],
|
|
11
|
+
chart: [
|
|
12
|
+
"mono-shadow-chart",
|
|
13
|
+
"mono-shadow-chart-bar",
|
|
14
|
+
"mono-shadow-chart-line",
|
|
15
|
+
"mono-shadow-chart-pie",
|
|
16
|
+
"mono-shadow-chart-doughnut"
|
|
17
|
+
],
|
|
18
|
+
checkbox: ["mono-shadow-checkbox"],
|
|
19
|
+
chip: ["mono-shadow-chip"],
|
|
20
|
+
date: ["mono-shadow-date"],
|
|
21
|
+
drawer: ["mono-shadow-drawer"],
|
|
22
|
+
dropdown: ["mono-shadow-dropdown"],
|
|
23
|
+
"file-upload": ["mono-shadow-file-upload"],
|
|
24
|
+
input: ["mono-shadow-input"],
|
|
25
|
+
menu: ["mono-shadow-menu"],
|
|
26
|
+
modal: ["mono-shadow-modal"],
|
|
27
|
+
nav: ["mono-shadow-nav"],
|
|
28
|
+
radio: ["mono-shadow-radio"],
|
|
29
|
+
select: ["mono-shadow-select"],
|
|
30
|
+
sidebar: ["mono-shadow-sidebar"],
|
|
31
|
+
switch: ["mono-shadow-switch"],
|
|
32
|
+
"tag-input": ["mono-shadow-tag-input"],
|
|
33
|
+
tabs: ["mono-shadow-tabs"],
|
|
34
|
+
textarea: ["mono-shadow-textarea"],
|
|
35
|
+
"rich-text-editor": ["mono-shadow-rich-text-editor"],
|
|
36
|
+
breadcrumb: ["mono-shadow-breadcrumb", "mono-shadow-breadcrumb-list"],
|
|
37
|
+
filter: ["mono-shadow-filter-builder"],
|
|
38
|
+
table: [
|
|
39
|
+
"mono-shadow-table-info",
|
|
40
|
+
"mono-shadow-table-page-size",
|
|
41
|
+
"mono-shadow-table-paging",
|
|
42
|
+
"mono-shadow-table-paging-group",
|
|
43
|
+
"mono-shadow-table-search",
|
|
44
|
+
"mono-shadow-table-sort",
|
|
45
|
+
"mono-shadow-table-th",
|
|
46
|
+
"mono-shadow-table-loading",
|
|
47
|
+
"mono-shadow-table-detail",
|
|
48
|
+
"mono-shadow-table-checkbox"
|
|
49
|
+
],
|
|
50
|
+
"dropdown-table": ["mono-shadow-dropdown-table"]
|
|
51
|
+
};
|
|
52
|
+
Object.values(SHADOW_ENTRY_TO_TAGS).flat();
|
|
53
|
+
var SHADOW_IMPORT_RE = /@mono-lit\/helper\/ui\/shadow\/([a-z][\w-]*)/gi;
|
|
54
|
+
/**
|
|
55
|
+
* Extract the set of shadow tags a script block opts into, by scanning its
|
|
56
|
+
* `@mono-lit/helper/ui/shadow/<entry>` imports and mapping each entry to its tag(s).
|
|
57
|
+
*/
|
|
58
|
+
function shadowTagsFromScript(script) {
|
|
59
|
+
const tags = /* @__PURE__ */ new Set();
|
|
60
|
+
if (!script) return tags;
|
|
61
|
+
SHADOW_IMPORT_RE.lastIndex = 0;
|
|
62
|
+
let match;
|
|
63
|
+
while ((match = SHADOW_IMPORT_RE.exec(script)) !== null) {
|
|
64
|
+
const entryTags = SHADOW_ENTRY_TO_TAGS[match[1].toLowerCase()];
|
|
65
|
+
if (entryTags) for (const tag of entryTags) tags.add(tag);
|
|
66
|
+
}
|
|
67
|
+
return tags;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/vite/mono-client-only.ts
|
|
71
|
+
var LIT_DIRECTIVES_TO_MOVE = [
|
|
72
|
+
"v-for",
|
|
73
|
+
":key",
|
|
74
|
+
"v-if",
|
|
75
|
+
"v-else-if",
|
|
76
|
+
"v-else"
|
|
77
|
+
];
|
|
78
|
+
var litDirectivesRegex = new RegExp(LIT_DIRECTIVES_TO_MOVE.map((attr) => `(\\s${attr}(="[^"]*")?)`).join("|"), "gi");
|
|
79
|
+
function cleanId(id) {
|
|
80
|
+
return id.split("?", 1)[0];
|
|
81
|
+
}
|
|
82
|
+
function isElement(node) {
|
|
83
|
+
return node.type === NodeTypes.ELEMENT;
|
|
84
|
+
}
|
|
85
|
+
function isWhitespaceNode(node) {
|
|
86
|
+
return node.type === NodeTypes.TEXT && node.content.trim() === "";
|
|
87
|
+
}
|
|
88
|
+
function getStaticAttribute(node, name) {
|
|
89
|
+
return node.props.find((prop) => prop.type === NodeTypes.ATTRIBUTE && prop.name === name);
|
|
90
|
+
}
|
|
91
|
+
function escapeHtmlAttribute(value) {
|
|
92
|
+
return value.replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
93
|
+
}
|
|
94
|
+
function getDirective(node, name) {
|
|
95
|
+
return node.props.find((prop) => prop.type === NodeTypes.DIRECTIVE && prop.name === name);
|
|
96
|
+
}
|
|
97
|
+
function hasDirective(node, name) {
|
|
98
|
+
return Boolean(getDirective(node, name));
|
|
99
|
+
}
|
|
100
|
+
function monoClientOnlyPlugin(options = {}) {
|
|
101
|
+
const prefix = options.prefix ?? "mono-";
|
|
102
|
+
const wrapper = options.wrapper ?? "ClientOnly";
|
|
103
|
+
const litWrapper = options.litWrapper === true;
|
|
104
|
+
const litWrapperComponent = options.litWrapperComponent ?? "LitWrapper";
|
|
105
|
+
const lightWrap = options.lightWrap !== false;
|
|
106
|
+
const normalizedPrefix = prefix.toLowerCase();
|
|
107
|
+
const normalizedWrapper = wrapper.toLowerCase();
|
|
108
|
+
const excluded = new Set((options.exclude ?? []).map((tag) => tag.toLowerCase()));
|
|
109
|
+
const shadowOverride = new Set((options.shadowOverride ?? []).map((tag) => tag.toLowerCase()));
|
|
110
|
+
return {
|
|
111
|
+
name: "@mono-lit/helper:mono-client-only",
|
|
112
|
+
enforce: "pre",
|
|
113
|
+
transform(source, id) {
|
|
114
|
+
const filename = cleanId(id);
|
|
115
|
+
if (!filename.endsWith(".vue")) return null;
|
|
116
|
+
if (filename.includes("/node_modules/") || filename.includes("\\node_modules\\")) return null;
|
|
117
|
+
if (!source.toLowerCase().includes(`<${normalizedPrefix}`)) return null;
|
|
118
|
+
const { descriptor, errors } = parse$1(source, { filename });
|
|
119
|
+
if (errors.length > 0 || !descriptor.template) return null;
|
|
120
|
+
const fileShadowTags = /* @__PURE__ */ new Set();
|
|
121
|
+
if (litWrapper) {
|
|
122
|
+
for (const tag of shadowOverride) fileShadowTags.add(tag);
|
|
123
|
+
const script = `${descriptor.scriptSetup?.content ?? ""}\n${descriptor.script?.content ?? ""}`;
|
|
124
|
+
for (const tag of shadowTagsFromScript(script)) fileShadowTags.add(tag);
|
|
125
|
+
}
|
|
126
|
+
const template = descriptor.template;
|
|
127
|
+
const ast = parse(template.content, { comments: true });
|
|
128
|
+
const magicString = new MagicString(source);
|
|
129
|
+
const templateOffset = template.loc.start.offset;
|
|
130
|
+
let changed = false;
|
|
131
|
+
/** A `mono-*` element whose shadow build this file imports → SSR-wrapped. */
|
|
132
|
+
function isShadowElement(node) {
|
|
133
|
+
return fileShadowTags.has(node.tag.toLowerCase());
|
|
134
|
+
}
|
|
135
|
+
/** A `mono-*` element that should be `<ClientOnly>`-wrapped. */
|
|
136
|
+
function isMonoElement(node) {
|
|
137
|
+
if (!lightWrap) return false;
|
|
138
|
+
const tag = node.tag.toLowerCase();
|
|
139
|
+
if (excluded.has(tag) || fileShadowTags.has(tag)) return false;
|
|
140
|
+
return tag.startsWith(normalizedPrefix);
|
|
141
|
+
}
|
|
142
|
+
function isClientOnly(node) {
|
|
143
|
+
return node.tag.toLowerCase() === normalizedWrapper;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Wrap a single shadow element in `<LitWrapper>`, moving v-for/:key/v-if/
|
|
147
|
+
* v-else-if/v-else onto the wrapper (so they don't run on the shadow host).
|
|
148
|
+
* No skeleton fallback — the element is server-rendered to DSD.
|
|
149
|
+
*/
|
|
150
|
+
function wrapLit(node) {
|
|
151
|
+
const start = templateOffset + node.loc.start.offset;
|
|
152
|
+
const end = templateOffset + node.loc.end.offset;
|
|
153
|
+
const moved = node.props.filter((prop) => prop.type === NodeTypes.DIRECTIVE && !!prop.rawName && LIT_DIRECTIVES_TO_MOVE.includes(prop.rawName));
|
|
154
|
+
const startTag = `<${litWrapperComponent}${moved.length ? ` ${moved.map((prop) => prop.loc.source).join(" ")}` : ""}>`;
|
|
155
|
+
const endTag = `</${litWrapperComponent}>`;
|
|
156
|
+
if (node.isSelfClosing) {
|
|
157
|
+
const stripped = source.slice(start, end).replace(litDirectivesRegex, "").trim();
|
|
158
|
+
magicString.overwrite(start, end, `${startTag}${stripped}${endTag}`);
|
|
159
|
+
} else {
|
|
160
|
+
const lastProp = node.props.length ? node.props[node.props.length - 1] : void 0;
|
|
161
|
+
const contentStart = lastProp ? templateOffset + lastProp.loc.end.offset : start + node.tag.length + 2;
|
|
162
|
+
const stripped = source.slice(start, contentStart).replace(litDirectivesRegex, "").trim();
|
|
163
|
+
magicString.overwrite(start, contentStart, stripped);
|
|
164
|
+
magicString.prependLeft(start, startTag);
|
|
165
|
+
magicString.appendRight(end, endTag);
|
|
166
|
+
}
|
|
167
|
+
changed = true;
|
|
168
|
+
}
|
|
169
|
+
function wrapRange(firstNode, lastNode) {
|
|
170
|
+
const start = templateOffset + firstNode.loc.start.offset;
|
|
171
|
+
const end = templateOffset + lastNode.loc.end.offset;
|
|
172
|
+
function extractAndRemoveStaticAttr(name) {
|
|
173
|
+
const attribute = getStaticAttribute(firstNode, name);
|
|
174
|
+
if (!attribute) return "";
|
|
175
|
+
const attributeStart = templateOffset + attribute.loc.start.offset;
|
|
176
|
+
const attributeEnd = templateOffset + attribute.loc.end.offset;
|
|
177
|
+
let removalStart = attributeStart;
|
|
178
|
+
while (removalStart > start && /\s/.test(source[removalStart - 1] ?? "")) removalStart--;
|
|
179
|
+
magicString.remove(removalStart, attributeEnd);
|
|
180
|
+
return attribute.value?.content.trim() ?? "";
|
|
181
|
+
}
|
|
182
|
+
const skeletonClass = extractAndRemoveStaticAttr("client-skeleton-class");
|
|
183
|
+
const skeletonType = extractAndRemoveStaticAttr("client-skeleton-type") || "col";
|
|
184
|
+
const skeletonBar = extractAndRemoveStaticAttr("client-skeleton-bar");
|
|
185
|
+
const skeletonCountRaw = extractAndRemoveStaticAttr("client-skeleton-count");
|
|
186
|
+
const parsedCount = Number.parseInt(skeletonCountRaw, 10);
|
|
187
|
+
const skeletonCount = Number.isFinite(parsedCount) && parsedCount > 0 ? Math.min(parsedCount, 100) : 1;
|
|
188
|
+
const containerClasses = [
|
|
189
|
+
"mono-client-skeleton",
|
|
190
|
+
`mono-client-skeleton--${skeletonType}`,
|
|
191
|
+
skeletonClass
|
|
192
|
+
].filter(Boolean).join(" ");
|
|
193
|
+
const barClasses = ["mono-client-skeleton-bar", skeletonBar].filter(Boolean).join(" ");
|
|
194
|
+
const bars = Array.from({ length: skeletonCount }, () => ` <div class="${escapeHtmlAttribute(barClasses)}"></div>`).join("\n");
|
|
195
|
+
magicString.prependLeft(start, `<${wrapper}>`);
|
|
196
|
+
magicString.appendRight(end, [
|
|
197
|
+
"",
|
|
198
|
+
"<template #fallback>",
|
|
199
|
+
` <div class="${escapeHtmlAttribute(containerClasses)}" aria-hidden="true">`,
|
|
200
|
+
bars,
|
|
201
|
+
" </div>",
|
|
202
|
+
"</template>",
|
|
203
|
+
`</${wrapper}>`
|
|
204
|
+
].join("\n"));
|
|
205
|
+
changed = true;
|
|
206
|
+
}
|
|
207
|
+
function visitChildren(children, insideClientOnly, insideMonoElement) {
|
|
208
|
+
let index = 0;
|
|
209
|
+
while (index < children.length) {
|
|
210
|
+
const node = children[index];
|
|
211
|
+
if (!isElement(node)) {
|
|
212
|
+
index++;
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
const nodeIsClientOnly = isClientOnly(node);
|
|
216
|
+
const nodeIsMono = isMonoElement(node);
|
|
217
|
+
if (isShadowElement(node)) {
|
|
218
|
+
if (!insideClientOnly && !insideMonoElement) wrapLit(node);
|
|
219
|
+
visitChildren(node.children, insideClientOnly, insideMonoElement);
|
|
220
|
+
index++;
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
if (hasDirective(node, "if")) {
|
|
224
|
+
const conditionalElements = [node];
|
|
225
|
+
let cursor = index + 1;
|
|
226
|
+
while (cursor < children.length) {
|
|
227
|
+
const nextNode = children[cursor];
|
|
228
|
+
if (isWhitespaceNode(nextNode) || nextNode.type === NodeTypes.COMMENT) {
|
|
229
|
+
cursor++;
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
if (isElement(nextNode) && (hasDirective(nextNode, "else-if") || hasDirective(nextNode, "else"))) {
|
|
233
|
+
conditionalElements.push(nextNode);
|
|
234
|
+
cursor++;
|
|
235
|
+
if (hasDirective(nextNode, "else")) break;
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
const shouldWrapChain = conditionalElements.some(isMonoElement) && !insideClientOnly && !insideMonoElement;
|
|
241
|
+
if (shouldWrapChain) wrapRange(conditionalElements[0], conditionalElements[conditionalElements.length - 1]);
|
|
242
|
+
for (const conditionalNode of conditionalElements) {
|
|
243
|
+
const conditionalIsMono = isMonoElement(conditionalNode);
|
|
244
|
+
const conditionalIsClientOnly = isClientOnly(conditionalNode);
|
|
245
|
+
visitChildren(conditionalNode.children, insideClientOnly || conditionalIsClientOnly || shouldWrapChain, insideMonoElement || conditionalIsMono);
|
|
246
|
+
}
|
|
247
|
+
index = cursor;
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
if (hasDirective(node, "else-if") || hasDirective(node, "else")) {
|
|
251
|
+
visitChildren(node.children, insideClientOnly || nodeIsClientOnly, insideMonoElement || nodeIsMono);
|
|
252
|
+
index++;
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
const shouldWrap = nodeIsMono && !insideClientOnly && !insideMonoElement;
|
|
256
|
+
if (shouldWrap) wrapRange(node, node);
|
|
257
|
+
visitChildren(node.children, insideClientOnly || nodeIsClientOnly || shouldWrap, insideMonoElement || nodeIsMono);
|
|
258
|
+
index++;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
visitChildren(ast.children, false, false);
|
|
262
|
+
if (!changed) return null;
|
|
263
|
+
return {
|
|
264
|
+
code: magicString.toString(),
|
|
265
|
+
map: magicString.generateMap({
|
|
266
|
+
source: filename,
|
|
267
|
+
includeContent: true,
|
|
268
|
+
hires: true
|
|
269
|
+
})
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/vite/mono-ssr-stub.ts
|
|
276
|
+
var VIRTUAL_ID = "\0mono-helper-ssr-stub";
|
|
277
|
+
/**
|
|
278
|
+
* `@mono-lit/helper/ui/*` entries register Lit custom elements at module load
|
|
279
|
+
* (`class extends HTMLElement` + `customElements.define(...)`), which throws
|
|
280
|
+
* `HTMLElement is not defined` when evaluated in the Node SSR context.
|
|
281
|
+
*
|
|
282
|
+
* Every `<mono-*>` tag is already wrapped in `<ClientOnly>` and declared via
|
|
283
|
+
* `isCustomElement`, so nothing on the server needs these elements registered.
|
|
284
|
+
* This plugin resolves those side-effect imports to an empty module in the
|
|
285
|
+
* server build only — the client build keeps the real modules, so the elements
|
|
286
|
+
* still register and render after hydration.
|
|
287
|
+
*/
|
|
288
|
+
function monoSsrStubPlugin(options = {}) {
|
|
289
|
+
const packagePrefix = options.packagePrefix ?? "@mono-lit/helper/ui/";
|
|
290
|
+
return {
|
|
291
|
+
name: "@mono-lit/helper:mono-ssr-stub",
|
|
292
|
+
enforce: "pre",
|
|
293
|
+
resolveId(source, _importer, resolveOptions) {
|
|
294
|
+
if (!(resolveOptions?.ssr === true || this?.environment?.name === "ssr")) return null;
|
|
295
|
+
if (source.startsWith(packagePrefix) && !source.startsWith(`${packagePrefix}shadow/`) && !source.endsWith(".css")) return VIRTUAL_ID;
|
|
296
|
+
return null;
|
|
297
|
+
},
|
|
298
|
+
load(id) {
|
|
299
|
+
if (id === VIRTUAL_ID) return "export {}";
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/vite/index.ts
|
|
306
|
+
/**
|
|
307
|
+
* One import, one props object — wires both halves of SSR support for the
|
|
308
|
+
* mono web components:
|
|
309
|
+
* - the SSR import-stub (so `@mono-lit/helper/ui/*` never evaluates on the server)
|
|
310
|
+
* - the `<ClientOnly>` template wrapper (so `<mono-*>` only renders client-side)
|
|
311
|
+
*
|
|
312
|
+
* Usage:
|
|
313
|
+
* import { monoSsr } from '@mono-lit/helper/vite'
|
|
314
|
+
* plugins: [monoSsr()]
|
|
315
|
+
*/
|
|
316
|
+
function monoSsr(options = {}) {
|
|
317
|
+
const { prefix = "mono-", wrapper = "ClientOnly", ssrStubPrefix = "@mono-lit/helper/ui/", exclude = [], lightWrap = true, litWrapper = false, litWrapperComponent, shadowOverride = [] } = options;
|
|
318
|
+
return [monoSsrStubPlugin({ packagePrefix: ssrStubPrefix }), monoClientOnlyPlugin({
|
|
319
|
+
prefix,
|
|
320
|
+
wrapper,
|
|
321
|
+
exclude,
|
|
322
|
+
lightWrap,
|
|
323
|
+
litWrapper,
|
|
324
|
+
litWrapperComponent,
|
|
325
|
+
shadowOverride
|
|
326
|
+
})];
|
|
327
|
+
}
|
|
328
|
+
//#endregion
|
|
329
|
+
export { monoSsrStubPlugin as n, monoClientOnlyPlugin as r, monoSsr as t };
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/vite.js
ADDED
package/dist/vue.d.ts
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-vue-types.mjs — do not edit.
|
|
2
|
+
//
|
|
3
|
+
// Vue `GlobalComponents` augmentation for every registered `<mono-*>` element.
|
|
4
|
+
// Volar reads this to offer prop completion and to type-check attributes inside a
|
|
5
|
+
// Vue SFC template. It is referenced from the package's types entry, so importing
|
|
6
|
+
// anything from '@mono-lit/helper' activates it — no consumer setup.
|
|
7
|
+
|
|
8
|
+
import type { DefineComponent, HTMLAttributes, ReservedProps } from 'vue'
|
|
9
|
+
import type { AccordionProps } from './src/components/accordion/accordion-types.js'
|
|
10
|
+
import type { AlertProps } from './src/components/alert/alert-types.js'
|
|
11
|
+
import type { BreadcrumbListProps } from './src/components/breadcrumb/breadcrumb-types.js'
|
|
12
|
+
import type { BreadcrumbProps } from './src/components/breadcrumb/breadcrumb-types.js'
|
|
13
|
+
import type { ButtonDropdownProps } from './src/components/button/button-dropdown-types.js'
|
|
14
|
+
import type { ButtonProps } from './src/components/button/button-types.js'
|
|
15
|
+
import type { CardProps } from './src/components/card/card-types.js'
|
|
16
|
+
import type { ChartProps } from './src/components/chart/chart-types.js'
|
|
17
|
+
import type { CheckboxProps } from './src/components/checkbox/checkbox-types.js'
|
|
18
|
+
import type { DateProps } from './src/components/date/date-types.js'
|
|
19
|
+
import type { DrawerProps } from './src/components/drawer/drawer-types.js'
|
|
20
|
+
import type { DropdownProps } from './src/components/dropdown/dropdown-types.js'
|
|
21
|
+
import type { DropdownTableProps } from './src/components/dropdown-table/dropdown-table-types.js'
|
|
22
|
+
import type { FileUploadProps } from './src/components/file-upload/file-upload-types.js'
|
|
23
|
+
import type { InputProps } from './src/components/input/input-types.js'
|
|
24
|
+
import type { MenuListProps } from './src/components/menu/menu-types.js'
|
|
25
|
+
import type { MenuProps } from './src/components/menu/menu-types.js'
|
|
26
|
+
import type { ModalProps } from './src/components/modal/modal-types.js'
|
|
27
|
+
import type { MonoChipProps } from './src/components/chip/chip-types.js'
|
|
28
|
+
import type { MonoFilterBuilderProps } from './src/components/filter/filter-types.js'
|
|
29
|
+
import type { NavProps } from './src/components/nav/nav-types.js'
|
|
30
|
+
import type { RadioProps } from './src/components/radio/radio-types.js'
|
|
31
|
+
import type { RichTextEditorProps } from './src/components/rich-text-editor/rich-text-editor-types.js'
|
|
32
|
+
import type { SelectProps } from './src/components/select/select-types.js'
|
|
33
|
+
import type { SidebarProps } from './src/components/sidebar/sidebar-types.js'
|
|
34
|
+
import type { SwitchProps } from './src/components/switch/switch-types.js'
|
|
35
|
+
import type { TableCheckboxProps } from './src/components/table/table-types.js'
|
|
36
|
+
import type { TableDetailProps } from './src/components/table/table-types.js'
|
|
37
|
+
import type { TableEmptyProps } from './src/components/table/table-types.js'
|
|
38
|
+
import type { TableErrorProps } from './src/components/table/table-types.js'
|
|
39
|
+
import type { TableInfoProps } from './src/components/table/table-types.js'
|
|
40
|
+
import type { TableLoadingProps } from './src/components/table/table-types.js'
|
|
41
|
+
import type { TablePageSizeProps } from './src/components/table/table-types.js'
|
|
42
|
+
import type { TablePagingGroupProps } from './src/components/table/table-types.js'
|
|
43
|
+
import type { TablePagingProps } from './src/components/table/table-types.js'
|
|
44
|
+
import type { TableSearchProps } from './src/components/table/table-types.js'
|
|
45
|
+
import type { TableSortProps } from './src/components/table/table-types.js'
|
|
46
|
+
import type { TableSummaryProps } from './src/components/table/table-types.js'
|
|
47
|
+
import type { TableThProps } from './src/components/table/table-types.js'
|
|
48
|
+
import type { TabsProps } from './src/components/tabs/tabs-types.js'
|
|
49
|
+
import type { TagInputProps } from './src/components/tag-input/tag-input-types.js'
|
|
50
|
+
import type { TextareaProps } from './src/components/textarea/textarea-types.js'
|
|
51
|
+
import type { AccordionEvents } from './src/components/accordion/accordion-types.js'
|
|
52
|
+
import type { BreadcrumbEvents } from './src/components/breadcrumb/breadcrumb-types.js'
|
|
53
|
+
import type { ButtonDropdownEvents } from './src/components/button/button-dropdown-types.js'
|
|
54
|
+
import type { ButtonEvents } from './src/components/button/button-types.js'
|
|
55
|
+
import type { CardEvents } from './src/components/card/card-types.js'
|
|
56
|
+
import type { CheckboxEvents } from './src/components/checkbox/checkbox-types.js'
|
|
57
|
+
import type { ChipEvents } from './src/components/chip/chip-types.js'
|
|
58
|
+
import type { DateEvents } from './src/components/date/date-types.js'
|
|
59
|
+
import type { DrawerEvents } from './src/components/drawer/drawer-types.js'
|
|
60
|
+
import type { DropdownEvents } from './src/components/dropdown/dropdown-types.js'
|
|
61
|
+
import type { DropdownTableEvents } from './src/components/dropdown-table/dropdown-table-types.js'
|
|
62
|
+
import type { FileUploadEvents } from './src/components/file-upload/file-upload-types.js'
|
|
63
|
+
import type { FilterBuilderEvents } from './src/components/filter/filter-types.js'
|
|
64
|
+
import type { InputEvents } from './src/components/input/input-types.js'
|
|
65
|
+
import type { MenuEvents } from './src/components/menu/menu-types.js'
|
|
66
|
+
import type { ModalEvents } from './src/components/modal/modal-types.js'
|
|
67
|
+
import type { NavEvents } from './src/components/nav/nav-types.js'
|
|
68
|
+
import type { RadioEvents } from './src/components/radio/radio-types.js'
|
|
69
|
+
import type { RichTextEditorEvents } from './src/components/rich-text-editor/rich-text-editor-types.js'
|
|
70
|
+
import type { SelectEvents } from './src/components/select/select-types.js'
|
|
71
|
+
import type { SidebarEvents } from './src/components/sidebar/sidebar-types.js'
|
|
72
|
+
import type { SwitchEvents } from './src/components/switch/switch-types.js'
|
|
73
|
+
import type { TableCheckboxEvents } from './src/components/table/mono-table-checkbox-core.js'
|
|
74
|
+
import type { TableDetailEvents } from './src/components/table/mono-table-detail-core.js'
|
|
75
|
+
import type { TableEmptyEvents } from './src/components/table/mono-table-empty-core.js'
|
|
76
|
+
import type { TableErrorEvents } from './src/components/table/mono-table-error-core.js'
|
|
77
|
+
import type { TabsEvents } from './src/components/tabs/tabs-types.js'
|
|
78
|
+
import type { TagInputEvents } from './src/components/tag-input/tag-input-types.js'
|
|
79
|
+
import type { TextareaEvents } from './src/components/textarea/textarea-types.js'
|
|
80
|
+
import type { MonoPending } from './src/composables/mono-skeleton.js'
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Props EVERY mono element has, light and shadow, on top of its own `*Props`:
|
|
84
|
+
* `pending` — the automatic skeleton (`:pending="busy"`, `:pending.prop="{ active, count }"`).
|
|
85
|
+
*/
|
|
86
|
+
export interface MonoCommonProps {
|
|
87
|
+
pending?: MonoPending
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Drop a string index signature so a typo stays an error.
|
|
92
|
+
*
|
|
93
|
+
* `MonoChartProps` and `MonoFilterProps` carry `[key: string]: unknown` because
|
|
94
|
+
* they double as the controllers' `props()` bag. Left alone, chart and
|
|
95
|
+
* filter-builder would accept any attribute — the one place strictness would
|
|
96
|
+
* silently not apply.
|
|
97
|
+
*/
|
|
98
|
+
type StripIndex<T> = {
|
|
99
|
+
[K in keyof T as string extends K ? never : symbol extends K ? never : K]: T[K]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Turn a component's `*Events` interface into the handler props Vue expects.
|
|
104
|
+
*
|
|
105
|
+
* Each `*Events` interface lists the PLAIN names (`change`, `click`, `open`; a
|
|
106
|
+
* multi-word one as both `'loading-change'` and `loadingChange`) and, after them,
|
|
107
|
+
* the kept `mno-*` / `mnoX` aliases. Only the non-kebab keys become props: Volar
|
|
108
|
+
* compiles `@change` to `onChange`, `@loading-change` and `@loadingChange` both to
|
|
109
|
+
* `onLoadingChange`, and `@mno-change` to `onMnoChange`, so
|
|
110
|
+
* `on${Capitalize<K>}` over the camel keys lands exactly on every spelling, while
|
|
111
|
+
* a kebab key would produce `onMno-change` and never match.
|
|
112
|
+
*/
|
|
113
|
+
type MonoEvents<E> = {
|
|
114
|
+
[K in Extract<keyof E, string> as K extends `${string}-${string}`
|
|
115
|
+
? never
|
|
116
|
+
: `on${Capitalize<K>}`]?: (event: E[K]) => void
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* `HTMLAttributes` keeps `id` / `class` / `style` / `data-*` / `v-if` valid;
|
|
121
|
+
* `ReservedProps` keeps `key` / `ref`. The native handler props a component
|
|
122
|
+
* re-types (`onInput`, `onChange`, `onClick` with a `CustomEvent<Detail>`) are
|
|
123
|
+
* taken OUT of `HTMLAttributes` first — intersected with Vue's `(e: Event) => void`
|
|
124
|
+
* they would reject every typed handler under `strictFunctionTypes`.
|
|
125
|
+
*/
|
|
126
|
+
type MonoElement<P, E = {}> = DefineComponent<
|
|
127
|
+
StripIndex<P> & MonoCommonProps & Omit<HTMLAttributes, keyof MonoEvents<E>> & ReservedProps & MonoEvents<E>
|
|
128
|
+
>
|
|
129
|
+
|
|
130
|
+
declare module 'vue' {
|
|
131
|
+
interface GlobalComponents {
|
|
132
|
+
'mono-accordion': MonoElement<AccordionProps, AccordionEvents>
|
|
133
|
+
'mono-alert': MonoElement<AlertProps>
|
|
134
|
+
'mono-breadcrumb': MonoElement<BreadcrumbProps, BreadcrumbEvents>
|
|
135
|
+
'mono-breadcrumb-list': MonoElement<BreadcrumbListProps>
|
|
136
|
+
'mono-button': MonoElement<ButtonProps, ButtonEvents>
|
|
137
|
+
'mono-button-dropdown': MonoElement<ButtonDropdownProps, ButtonDropdownEvents>
|
|
138
|
+
'mono-card': MonoElement<CardProps, CardEvents>
|
|
139
|
+
'mono-chart': MonoElement<ChartProps>
|
|
140
|
+
'mono-chart-bar': MonoElement<ChartProps>
|
|
141
|
+
'mono-chart-doughnut': MonoElement<ChartProps>
|
|
142
|
+
'mono-chart-line': MonoElement<ChartProps>
|
|
143
|
+
'mono-chart-pie': MonoElement<ChartProps>
|
|
144
|
+
'mono-checkbox': MonoElement<CheckboxProps, CheckboxEvents>
|
|
145
|
+
'mono-chip': MonoElement<MonoChipProps, ChipEvents>
|
|
146
|
+
'mono-date': MonoElement<DateProps, DateEvents>
|
|
147
|
+
'mono-drawer': MonoElement<DrawerProps, DrawerEvents>
|
|
148
|
+
'mono-dropdown': MonoElement<DropdownProps, DropdownEvents>
|
|
149
|
+
'mono-dropdown-table': MonoElement<DropdownTableProps, DropdownTableEvents>
|
|
150
|
+
'mono-file-upload': MonoElement<FileUploadProps, FileUploadEvents>
|
|
151
|
+
'mono-filter-builder': MonoElement<MonoFilterBuilderProps, FilterBuilderEvents>
|
|
152
|
+
'mono-input': MonoElement<InputProps, InputEvents>
|
|
153
|
+
'mono-menu': MonoElement<MenuProps, MenuEvents>
|
|
154
|
+
'mono-menu-list': MonoElement<MenuListProps>
|
|
155
|
+
'mono-modal': MonoElement<ModalProps, ModalEvents>
|
|
156
|
+
'mono-nav': MonoElement<NavProps, NavEvents>
|
|
157
|
+
'mono-radio': MonoElement<RadioProps, RadioEvents>
|
|
158
|
+
'mono-rich-text-editor': MonoElement<RichTextEditorProps, RichTextEditorEvents>
|
|
159
|
+
'mono-select': MonoElement<SelectProps, SelectEvents>
|
|
160
|
+
'mono-shadow-accordion': MonoElement<AccordionProps, AccordionEvents>
|
|
161
|
+
'mono-shadow-alert': MonoElement<AlertProps>
|
|
162
|
+
'mono-shadow-breadcrumb': MonoElement<BreadcrumbProps, BreadcrumbEvents>
|
|
163
|
+
'mono-shadow-breadcrumb-list': MonoElement<BreadcrumbListProps>
|
|
164
|
+
'mono-shadow-button': MonoElement<ButtonProps, ButtonEvents>
|
|
165
|
+
'mono-shadow-button-dropdown': MonoElement<ButtonDropdownProps, ButtonDropdownEvents>
|
|
166
|
+
'mono-shadow-card': MonoElement<CardProps, CardEvents>
|
|
167
|
+
'mono-shadow-chart': MonoElement<ChartProps>
|
|
168
|
+
'mono-shadow-chart-bar': MonoElement<ChartProps>
|
|
169
|
+
'mono-shadow-chart-doughnut': MonoElement<ChartProps>
|
|
170
|
+
'mono-shadow-chart-line': MonoElement<ChartProps>
|
|
171
|
+
'mono-shadow-chart-pie': MonoElement<ChartProps>
|
|
172
|
+
'mono-shadow-checkbox': MonoElement<CheckboxProps, CheckboxEvents>
|
|
173
|
+
'mono-shadow-chip': MonoElement<MonoChipProps, ChipEvents>
|
|
174
|
+
'mono-shadow-date': MonoElement<DateProps, DateEvents>
|
|
175
|
+
'mono-shadow-drawer': MonoElement<DrawerProps, DrawerEvents>
|
|
176
|
+
'mono-shadow-dropdown': MonoElement<DropdownProps, DropdownEvents>
|
|
177
|
+
'mono-shadow-dropdown-table': MonoElement<DropdownTableProps, DropdownTableEvents>
|
|
178
|
+
'mono-shadow-file-upload': MonoElement<FileUploadProps, FileUploadEvents>
|
|
179
|
+
'mono-shadow-filter-builder': MonoElement<MonoFilterBuilderProps, FilterBuilderEvents>
|
|
180
|
+
'mono-shadow-input': MonoElement<InputProps, InputEvents>
|
|
181
|
+
'mono-shadow-menu': MonoElement<MenuProps, MenuEvents>
|
|
182
|
+
'mono-shadow-modal': MonoElement<ModalProps, ModalEvents>
|
|
183
|
+
'mono-shadow-nav': MonoElement<NavProps, NavEvents>
|
|
184
|
+
'mono-shadow-radio': MonoElement<RadioProps, RadioEvents>
|
|
185
|
+
'mono-shadow-rich-text-editor': MonoElement<RichTextEditorProps, RichTextEditorEvents>
|
|
186
|
+
'mono-shadow-select': MonoElement<SelectProps, SelectEvents>
|
|
187
|
+
'mono-shadow-sidebar': MonoElement<SidebarProps, SidebarEvents>
|
|
188
|
+
'mono-shadow-switch': MonoElement<SwitchProps, SwitchEvents>
|
|
189
|
+
'mono-shadow-table-checkbox': MonoElement<TableCheckboxProps, TableCheckboxEvents>
|
|
190
|
+
'mono-shadow-table-detail': MonoElement<TableDetailProps, TableDetailEvents>
|
|
191
|
+
'mono-shadow-table-empty': MonoElement<TableEmptyProps, TableEmptyEvents>
|
|
192
|
+
'mono-shadow-table-error': MonoElement<TableErrorProps, TableErrorEvents>
|
|
193
|
+
'mono-shadow-table-info': MonoElement<TableInfoProps>
|
|
194
|
+
'mono-shadow-table-loading': MonoElement<TableLoadingProps>
|
|
195
|
+
'mono-shadow-table-page-size': MonoElement<TablePageSizeProps>
|
|
196
|
+
'mono-shadow-table-paging': MonoElement<TablePagingProps>
|
|
197
|
+
'mono-shadow-table-paging-group': MonoElement<TablePagingGroupProps>
|
|
198
|
+
'mono-shadow-table-search': MonoElement<TableSearchProps>
|
|
199
|
+
'mono-shadow-table-sort': MonoElement<TableSortProps>
|
|
200
|
+
'mono-shadow-table-summary': MonoElement<TableSummaryProps>
|
|
201
|
+
'mono-shadow-table-th': MonoElement<TableThProps>
|
|
202
|
+
'mono-shadow-tabs': MonoElement<TabsProps, TabsEvents>
|
|
203
|
+
'mono-shadow-tag-input': MonoElement<TagInputProps, TagInputEvents>
|
|
204
|
+
'mono-shadow-textarea': MonoElement<TextareaProps, TextareaEvents>
|
|
205
|
+
'mono-sidebar': MonoElement<SidebarProps, SidebarEvents>
|
|
206
|
+
'mono-switch': MonoElement<SwitchProps, SwitchEvents>
|
|
207
|
+
'mono-table-checkbox': MonoElement<TableCheckboxProps, TableCheckboxEvents>
|
|
208
|
+
'mono-table-detail': MonoElement<TableDetailProps, TableDetailEvents>
|
|
209
|
+
'mono-table-empty': MonoElement<TableEmptyProps, TableEmptyEvents>
|
|
210
|
+
'mono-table-error': MonoElement<TableErrorProps, TableErrorEvents>
|
|
211
|
+
'mono-table-info': MonoElement<TableInfoProps>
|
|
212
|
+
'mono-table-loading': MonoElement<TableLoadingProps>
|
|
213
|
+
'mono-table-page-size': MonoElement<TablePageSizeProps>
|
|
214
|
+
'mono-table-paging': MonoElement<TablePagingProps>
|
|
215
|
+
'mono-table-paging-group': MonoElement<TablePagingGroupProps>
|
|
216
|
+
'mono-table-search': MonoElement<TableSearchProps>
|
|
217
|
+
'mono-table-sort': MonoElement<TableSortProps>
|
|
218
|
+
'mono-table-summary': MonoElement<TableSummaryProps>
|
|
219
|
+
'mono-table-th': MonoElement<TableThProps>
|
|
220
|
+
'mono-tabs': MonoElement<TabsProps, TabsEvents>
|
|
221
|
+
'mono-tag-input': MonoElement<TagInputProps, TagInputEvents>
|
|
222
|
+
'mono-textarea': MonoElement<TextareaProps, TextareaEvents>
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* `createMonoUI({ 'mono-button': { size: 'xs' } })` — per-tag prop completion.
|
|
228
|
+
* Light tags only: one key configures both builds (`mono-button` also reaches
|
|
229
|
+
* `mono-shadow-button`). Augments the interface where it is declared.
|
|
230
|
+
*/
|
|
231
|
+
declare module './src/composables/mono-ui.js' {
|
|
232
|
+
interface MonoUIComponents {
|
|
233
|
+
'mono-accordion': StripIndex<AccordionProps> & MonoCommonProps
|
|
234
|
+
'mono-alert': StripIndex<AlertProps> & MonoCommonProps
|
|
235
|
+
'mono-breadcrumb': StripIndex<BreadcrumbProps> & MonoCommonProps
|
|
236
|
+
'mono-breadcrumb-list': StripIndex<BreadcrumbListProps> & MonoCommonProps
|
|
237
|
+
'mono-button': StripIndex<ButtonProps> & MonoCommonProps
|
|
238
|
+
'mono-button-dropdown': StripIndex<ButtonDropdownProps> & MonoCommonProps
|
|
239
|
+
'mono-card': StripIndex<CardProps> & MonoCommonProps
|
|
240
|
+
'mono-chart': StripIndex<ChartProps> & MonoCommonProps
|
|
241
|
+
'mono-chart-bar': StripIndex<ChartProps> & MonoCommonProps
|
|
242
|
+
'mono-chart-doughnut': StripIndex<ChartProps> & MonoCommonProps
|
|
243
|
+
'mono-chart-line': StripIndex<ChartProps> & MonoCommonProps
|
|
244
|
+
'mono-chart-pie': StripIndex<ChartProps> & MonoCommonProps
|
|
245
|
+
'mono-checkbox': StripIndex<CheckboxProps> & MonoCommonProps
|
|
246
|
+
'mono-chip': StripIndex<MonoChipProps> & MonoCommonProps
|
|
247
|
+
'mono-date': StripIndex<DateProps> & MonoCommonProps
|
|
248
|
+
'mono-drawer': StripIndex<DrawerProps> & MonoCommonProps
|
|
249
|
+
'mono-dropdown': StripIndex<DropdownProps> & MonoCommonProps
|
|
250
|
+
'mono-dropdown-table': StripIndex<DropdownTableProps> & MonoCommonProps
|
|
251
|
+
'mono-file-upload': StripIndex<FileUploadProps> & MonoCommonProps
|
|
252
|
+
'mono-filter-builder': StripIndex<MonoFilterBuilderProps> & MonoCommonProps
|
|
253
|
+
'mono-input': StripIndex<InputProps> & MonoCommonProps
|
|
254
|
+
'mono-menu': StripIndex<MenuProps> & MonoCommonProps
|
|
255
|
+
'mono-menu-list': StripIndex<MenuListProps> & MonoCommonProps
|
|
256
|
+
'mono-modal': StripIndex<ModalProps> & MonoCommonProps
|
|
257
|
+
'mono-nav': StripIndex<NavProps> & MonoCommonProps
|
|
258
|
+
'mono-radio': StripIndex<RadioProps> & MonoCommonProps
|
|
259
|
+
'mono-rich-text-editor': StripIndex<RichTextEditorProps> & MonoCommonProps
|
|
260
|
+
'mono-select': StripIndex<SelectProps> & MonoCommonProps
|
|
261
|
+
'mono-sidebar': StripIndex<SidebarProps> & MonoCommonProps
|
|
262
|
+
'mono-switch': StripIndex<SwitchProps> & MonoCommonProps
|
|
263
|
+
'mono-table-checkbox': StripIndex<TableCheckboxProps> & MonoCommonProps
|
|
264
|
+
'mono-table-detail': StripIndex<TableDetailProps> & MonoCommonProps
|
|
265
|
+
'mono-table-empty': StripIndex<TableEmptyProps> & MonoCommonProps
|
|
266
|
+
'mono-table-error': StripIndex<TableErrorProps> & MonoCommonProps
|
|
267
|
+
'mono-table-info': StripIndex<TableInfoProps> & MonoCommonProps
|
|
268
|
+
'mono-table-loading': StripIndex<TableLoadingProps> & MonoCommonProps
|
|
269
|
+
'mono-table-page-size': StripIndex<TablePageSizeProps> & MonoCommonProps
|
|
270
|
+
'mono-table-paging': StripIndex<TablePagingProps> & MonoCommonProps
|
|
271
|
+
'mono-table-paging-group': StripIndex<TablePagingGroupProps> & MonoCommonProps
|
|
272
|
+
'mono-table-search': StripIndex<TableSearchProps> & MonoCommonProps
|
|
273
|
+
'mono-table-sort': StripIndex<TableSortProps> & MonoCommonProps
|
|
274
|
+
'mono-table-summary': StripIndex<TableSummaryProps> & MonoCommonProps
|
|
275
|
+
'mono-table-th': StripIndex<TableThProps> & MonoCommonProps
|
|
276
|
+
'mono-tabs': StripIndex<TabsProps> & MonoCommonProps
|
|
277
|
+
'mono-tag-input': StripIndex<TagInputProps> & MonoCommonProps
|
|
278
|
+
'mono-textarea': StripIndex<TextareaProps> & MonoCommonProps
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export {}
|