@mono-lit/helper 0.0.0-stage → 0.0.1
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 +34 -2
- 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-search-Bwo5bg8K.js +573 -0
- package/dist/data-source-controller-C50Qyfzh.js +178 -0
- package/dist/data-source-options-BTpfrOZ_.js +535 -0
- package/dist/data-source-options-CQSTZHPE.js +537 -0
- package/dist/data-source-read-CUX-lgrQ.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-BvlBx_GZ.js +2302 -0
- package/dist/export.d.ts +1 -0
- package/dist/export.js +2302 -0
- package/dist/field-icons-BoOG6KrL.js +51 -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-DjvYOL-J.js +395 -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-CoVnBLav.js +873 -0
- package/dist/mono-button.shadow-FfP_hMH4.js +784 -0
- package/dist/mono-data-chart-ChU4Ii3p.js +738 -0
- package/dist/mono-data-dropdown-BAUl58kW.js +357 -0
- package/dist/mono-data-grid-CLBK8clE.js +4140 -0
- package/dist/mono-data-grid-Db80FzdZ.js +4142 -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/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-BHsqVjRh.js +789 -0
- package/dist/reactive-D3EERqgO.js +47 -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 +74 -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 +337 -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 +258 -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 +394 -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 +84 -0
- package/dist/src/composables/element-props.d.ts +46 -0
- package/dist/src/composables/field-icons.d.ts +7 -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 +60 -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-CysgRgBi.js +760 -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 +511 -0
- package/dist/ui/chart.d.ts +1 -0
- package/dist/ui/chart.js +808 -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 +21826 -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 +995 -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 +2066 -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 +524 -0
- package/dist/ui/shadow/chart.js +1569 -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 +1193 -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 +2033 -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 +2846 -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 +2819 -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,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { BreadcrumbItem, BreadcrumbBadgeColor, BreadcrumbVariant, BreadcrumbSize, BreadcrumbColor } from './breadcrumb-types.js';
|
|
3
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
4
|
+
import { BreadcrumbRenderContext } from './breadcrumb-render.js';
|
|
5
|
+
/** Public + shared-protected surface added by the list core mixin. */
|
|
6
|
+
export declare class MonoBreadcrumbListCoreInterface {
|
|
7
|
+
items: BreadcrumbItem[];
|
|
8
|
+
item?: BreadcrumbItem;
|
|
9
|
+
title: string;
|
|
10
|
+
href: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
badge?: string | number;
|
|
13
|
+
badgeColor?: BreadcrumbBadgeColor;
|
|
14
|
+
current: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
variant: BreadcrumbVariant;
|
|
17
|
+
size: BreadcrumbSize;
|
|
18
|
+
color: BreadcrumbColor;
|
|
19
|
+
separator: string;
|
|
20
|
+
truncate: boolean;
|
|
21
|
+
getBreadcrumbItems(): BreadcrumbItem[];
|
|
22
|
+
protected readonly _autoId: string;
|
|
23
|
+
protected _hasDirectItemProps(): boolean;
|
|
24
|
+
protected _normalizeItem(item: Partial<BreadcrumbItem>): BreadcrumbItem;
|
|
25
|
+
protected _buildDirectItem(): BreadcrumbItem;
|
|
26
|
+
protected _getEffectiveItems(): BreadcrumbItem[];
|
|
27
|
+
protected _itemsForRender(): BreadcrumbItem[];
|
|
28
|
+
protected _useIconSlots(): boolean;
|
|
29
|
+
protected _standaloneContext(): BreadcrumbRenderContext;
|
|
30
|
+
protected _buildContext(): BreadcrumbRenderContext;
|
|
31
|
+
protected _standaloneRootClasses(): string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* `MonoBreadcrumbListCore` — render-mode-agnostic logic for the STANDALONE
|
|
35
|
+
* `mono-breadcrumb-list`: reactive props (incl. the SSR `items` string→array
|
|
36
|
+
* coercion), item resolution (`items` array / single `item` / direct single-row
|
|
37
|
+
* props), the self-contained `<nav><ol>` render, and the `_useIconSlots()` /
|
|
38
|
+
* `_itemsForRender()` hooks.
|
|
39
|
+
*
|
|
40
|
+
* The light build (`mono-breadcrumb-list.ts`) extends this and layers the
|
|
41
|
+
* light-only CHILD composition (registering with a parent `<mono-breadcrumb>`
|
|
42
|
+
* via `closest()` and rendering bare items). The shadow build
|
|
43
|
+
* (`mono-breadcrumb-list.shadow.ts`) extends this for `@lit-labs/ssr`, rendering
|
|
44
|
+
* standalone in one shadow root and overriding `_useIconSlots()`. Child mode is
|
|
45
|
+
* a light-only feature (cross-element `closest()` can't work under SSR).
|
|
46
|
+
*
|
|
47
|
+
* SSR-safe: no `document`/`window` access.
|
|
48
|
+
*/
|
|
49
|
+
export declare const MonoBreadcrumbListCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoBreadcrumbListCoreInterface> & T;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { nothing, TemplateResult } from 'lit';
|
|
2
|
+
import { BreadcrumbCssClass, BreadcrumbItem } from './breadcrumb-types.js';
|
|
3
|
+
export interface BreadcrumbRenderContext {
|
|
4
|
+
cssClass: BreadcrumbCssClass;
|
|
5
|
+
separator: string;
|
|
6
|
+
hasSeparatorSlot: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Shadow build: render per-item icons through a native `<slot name="icon-<id>">`
|
|
10
|
+
* (the element creates matching light-DOM `<span slot>` children styled by the
|
|
11
|
+
* page's global UnoCSS — `i-…` classes can't paint inside a shadow root). The
|
|
12
|
+
* light build leaves this falsy and uses `data-mono-slot` + inline `i-…` spans.
|
|
13
|
+
*/
|
|
14
|
+
iconSlot?: boolean;
|
|
15
|
+
isCurrent(id: string): boolean;
|
|
16
|
+
getSlotIconNodes(id: string): Node[] | undefined;
|
|
17
|
+
onItemClick(item: BreadcrumbItem, index: number, event: Event): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function renderBreadcrumbIcon(item: BreadcrumbItem, ctx: BreadcrumbRenderContext): TemplateResult | typeof nothing;
|
|
20
|
+
export declare function renderBreadcrumbBadge(item: BreadcrumbItem, ctx: BreadcrumbRenderContext): TemplateResult | typeof nothing;
|
|
21
|
+
export declare function renderBreadcrumbItemRow(item: BreadcrumbItem, index: number, ctx: BreadcrumbRenderContext): TemplateResult;
|
|
22
|
+
export declare function renderBreadcrumbSeparator(ctx: BreadcrumbRenderContext, index: number): TemplateResult;
|
|
23
|
+
export declare function renderBreadcrumbList(items: BreadcrumbItem[], ctx: BreadcrumbRenderContext): TemplateResult[];
|
|
24
|
+
/**
|
|
25
|
+
* Render items with a leading separator BEFORE each item — used when the child
|
|
26
|
+
* `<mono-breadcrumb-list>` is composed inside a parent `<mono-breadcrumb>` and
|
|
27
|
+
* we don't know whether this child is the first sibling. The very first
|
|
28
|
+
* separator is hidden via CSS:
|
|
29
|
+
* `.mono-breadcrumb-list > mono-breadcrumb-list:first-child > .mono-breadcrumb-sep:first-child { display: none; }`
|
|
30
|
+
*/
|
|
31
|
+
export declare function renderBreadcrumbItemsLeadingSep(items: BreadcrumbItem[], ctx: BreadcrumbRenderContext, startIndex?: number): TemplateResult[];
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumb Component Type Definitions
|
|
3
|
+
*/
|
|
4
|
+
export type BreadcrumbVariant = 'default' | 'contained' | 'underlined';
|
|
5
|
+
export type BreadcrumbSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
6
|
+
export type BreadcrumbColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'teal' | 'purple' | 'neutral' | 'dark' | 'surface';
|
|
7
|
+
export type BreadcrumbBadgeColor = 'default' | 'primary' | 'success' | 'danger' | 'warning' | 'info';
|
|
8
|
+
export interface BreadcrumbItem {
|
|
9
|
+
id: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
href?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
badge?: string | number;
|
|
14
|
+
badgeColor?: BreadcrumbBadgeColor;
|
|
15
|
+
/** Marks this item as the current/last segment. If unset, the final array entry is treated as current. */
|
|
16
|
+
current?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface BreadcrumbCssClass {
|
|
20
|
+
root?: string;
|
|
21
|
+
list?: string;
|
|
22
|
+
item?: string;
|
|
23
|
+
itemCurrent?: string;
|
|
24
|
+
itemDisabled?: string;
|
|
25
|
+
action?: string;
|
|
26
|
+
icon?: string;
|
|
27
|
+
content?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
badge?: string;
|
|
30
|
+
separator?: string;
|
|
31
|
+
}
|
|
32
|
+
export type BreadcrumbClickEventDetail = {
|
|
33
|
+
value: string;
|
|
34
|
+
item: BreadcrumbItem;
|
|
35
|
+
index: number;
|
|
36
|
+
sourceEvent?: Event;
|
|
37
|
+
};
|
|
38
|
+
export type BreadcrumbClickEvent = CustomEvent<BreadcrumbClickEventDetail>;
|
|
39
|
+
export type BreadcrumbChangeEventDetail = {
|
|
40
|
+
modelValue: BreadcrumbItem | null;
|
|
41
|
+
currentValue: BreadcrumbItem | null;
|
|
42
|
+
oldValue: BreadcrumbItem | null;
|
|
43
|
+
sourceEvent?: Event;
|
|
44
|
+
};
|
|
45
|
+
export type BreadcrumbChangeEvent = CustomEvent<BreadcrumbChangeEventDetail>;
|
|
46
|
+
export interface BreadcrumbProps {
|
|
47
|
+
/** List of breadcrumb segments to render. */
|
|
48
|
+
items?: BreadcrumbItem[];
|
|
49
|
+
/** Two-way bound currently selected breadcrumb item. */
|
|
50
|
+
modelValue?: BreadcrumbItem | null;
|
|
51
|
+
'model-value'?: BreadcrumbItem | null;
|
|
52
|
+
modelvalue?: BreadcrumbItem | null;
|
|
53
|
+
/** Visual style of the breadcrumb. */
|
|
54
|
+
variant?: BreadcrumbVariant;
|
|
55
|
+
/** Size of the breadcrumb. */
|
|
56
|
+
size?: BreadcrumbSize;
|
|
57
|
+
/** Color theme of the breadcrumb. */
|
|
58
|
+
color?: BreadcrumbColor;
|
|
59
|
+
/** Separator character shown between segments. */
|
|
60
|
+
separator?: string;
|
|
61
|
+
/** Truncates long segment titles with an ellipsis. */
|
|
62
|
+
truncate?: boolean;
|
|
63
|
+
/** Disables interaction with all segments. */
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/** Per-part class overrides for styling internal elements. */
|
|
66
|
+
cssClass?: BreadcrumbCssClass;
|
|
67
|
+
cssclass?: BreadcrumbCssClass;
|
|
68
|
+
'css-class'?: BreadcrumbCssClass | string;
|
|
69
|
+
/** Extra class applied to the root element. */
|
|
70
|
+
cssClassName?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface BreadcrumbEvents {
|
|
73
|
+
change: BreadcrumbChangeEvent;
|
|
74
|
+
click: BreadcrumbClickEvent;
|
|
75
|
+
'mno-change': BreadcrumbChangeEvent;
|
|
76
|
+
mnoChange: BreadcrumbChangeEvent;
|
|
77
|
+
'mno-click': BreadcrumbClickEvent;
|
|
78
|
+
mnoClick: BreadcrumbClickEvent;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* `<mono-breadcrumb-list>` mirrors `<mono-menu-list>`'s dual mode:
|
|
82
|
+
* - List mode: `<mono-breadcrumb-list :items.prop="items" />`.
|
|
83
|
+
* - Single-row mode (for `v-for`): pass row-level props directly
|
|
84
|
+
* (`title`, `href`, `icon`, `current`, …) and the component normalises them
|
|
85
|
+
* into a one-entry list.
|
|
86
|
+
*/
|
|
87
|
+
export interface BreadcrumbListProps {
|
|
88
|
+
/** List of breadcrumb segments to render. */
|
|
89
|
+
items?: BreadcrumbItem[];
|
|
90
|
+
/** A single breadcrumb item to render. */
|
|
91
|
+
item?: BreadcrumbItem;
|
|
92
|
+
/** Direct single-row props. */
|
|
93
|
+
title?: string;
|
|
94
|
+
/** Link target for this segment. */
|
|
95
|
+
href?: string;
|
|
96
|
+
/** Icon name shown before the segment title. */
|
|
97
|
+
icon?: string;
|
|
98
|
+
/** Badge text or count shown on the segment. */
|
|
99
|
+
badge?: string | number;
|
|
100
|
+
/** Color theme of the segment badge. */
|
|
101
|
+
badgeColor?: BreadcrumbBadgeColor;
|
|
102
|
+
'badge-color'?: BreadcrumbBadgeColor;
|
|
103
|
+
/** Marks this segment as the current one. */
|
|
104
|
+
current?: boolean;
|
|
105
|
+
/** Disables interaction with this segment. */
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
/** Standalone styling — only used when there is no parent `<mono-breadcrumb>`. */
|
|
108
|
+
variant?: BreadcrumbVariant;
|
|
109
|
+
/** Size of the breadcrumb when standalone. */
|
|
110
|
+
size?: BreadcrumbSize;
|
|
111
|
+
/** Color theme of the breadcrumb when standalone. */
|
|
112
|
+
color?: BreadcrumbColor;
|
|
113
|
+
/** Separator character shown between segments when standalone. */
|
|
114
|
+
separator?: string;
|
|
115
|
+
/** Truncates long segment titles when standalone. */
|
|
116
|
+
truncate?: boolean;
|
|
117
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BreadcrumbItem, BreadcrumbProps } from './breadcrumb-types.js';
|
|
2
|
+
export { isIconifyClass } from '../../composables/icon.js';
|
|
3
|
+
/**
|
|
4
|
+
* Coerce any `items` input to a `BreadcrumbItem[]`. Accepts an array (pass-through),
|
|
5
|
+
* a JSON string (`items='[...]'` attribute, or a string assigned to the PROPERTY —
|
|
6
|
+
* which is what nuxt-ssr-lit does when forwarding a Vue `:items="<json>"` binding
|
|
7
|
+
* to the SSR renderer), or anything else (→ `[]`).
|
|
8
|
+
*/
|
|
9
|
+
export declare function coerceItems(value: unknown): BreadcrumbItem[];
|
|
10
|
+
export declare function findItem(items: BreadcrumbItem[], id: string): BreadcrumbItem | null;
|
|
11
|
+
export declare function findItemIndex(items: BreadcrumbItem[], id: string): number;
|
|
12
|
+
/**
|
|
13
|
+
* Resolve which breadcrumb item is the "current" segment.
|
|
14
|
+
* Priority: explicit `modelValue` → first item with `current: true` → last item.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveCurrentId(items: BreadcrumbItem[], modelValue: BreadcrumbItem | null): string;
|
|
17
|
+
export declare function generateBreadcrumbRootClasses(props: {
|
|
18
|
+
variant: string;
|
|
19
|
+
size: string;
|
|
20
|
+
color: string;
|
|
21
|
+
truncate: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
cssClassName?: string;
|
|
24
|
+
rootExtra?: string;
|
|
25
|
+
}): string;
|
|
26
|
+
export declare function validateBreadcrumbProps(props: BreadcrumbProps): string[];
|
|
27
|
+
/**
|
|
28
|
+
* The Basecoat styling attributes for the breadcrumb ROOT, mirroring the props
|
|
29
|
+
* one for one. A prop at its DEFAULT emits nothing — `:not([mono-size])` is md,
|
|
30
|
+
* `:not([mono-color])` is primary, `:not([mono-variant])` is default — so the
|
|
31
|
+
* rendered DOM is also the shortest hand-written markup that paints the same
|
|
32
|
+
* (see breadcrumb.css). Shared so `<mono-breadcrumb>` and a standalone
|
|
33
|
+
* `<mono-breadcrumb-list>` cannot drift apart.
|
|
34
|
+
*/
|
|
35
|
+
export declare function breadcrumbRootAttrs(props: {
|
|
36
|
+
variant: string;
|
|
37
|
+
size: string;
|
|
38
|
+
color: string;
|
|
39
|
+
}): {
|
|
40
|
+
size: string | null;
|
|
41
|
+
color: string | null;
|
|
42
|
+
variant: string | null;
|
|
43
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference path="../../../vue.d.ts" />
|
|
2
|
+
export { MonoBreadcrumb } from './mono-breadcrumb.js';
|
|
3
|
+
export { MonoBreadcrumbList } from './mono-breadcrumb-list.js';
|
|
4
|
+
export type { BreadcrumbVariant, BreadcrumbSize, BreadcrumbColor, BreadcrumbBadgeColor, BreadcrumbItem, BreadcrumbCssClass, BreadcrumbClickEventDetail, BreadcrumbClickEvent, BreadcrumbChangeEventDetail, BreadcrumbChangeEvent, BreadcrumbProps, BreadcrumbEvents, BreadcrumbListProps, } from './breadcrumb-types.js';
|
|
5
|
+
export { findItemIndex, resolveCurrentId, generateBreadcrumbRootClasses, validateBreadcrumbProps, } from './breadcrumb-utils.js';
|
|
6
|
+
export { renderBreadcrumbList, renderBreadcrumbItemsLeadingSep, renderBreadcrumbItemRow, renderBreadcrumbSeparator, renderBreadcrumbIcon, renderBreadcrumbBadge, type BreadcrumbRenderContext, } from './breadcrumb-render.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference path="../../../vue.d.ts" />
|
|
2
|
+
export { MonoBreadcrumbShadow } from './mono-breadcrumb.shadow.js';
|
|
3
|
+
export { MonoBreadcrumbListShadow } from './mono-breadcrumb-list.shadow.js';
|
|
4
|
+
export { MonoBreadcrumbCore } from './breadcrumb-core.js';
|
|
5
|
+
export type { MonoBreadcrumbCoreInterface, MonoBreadcrumbListLike, } from './breadcrumb-core.js';
|
|
6
|
+
export type { BreadcrumbVariant, BreadcrumbSize, BreadcrumbColor, BreadcrumbBadgeColor, BreadcrumbItem, BreadcrumbCssClass, BreadcrumbClickEventDetail, BreadcrumbClickEvent, BreadcrumbChangeEventDetail, BreadcrumbChangeEvent, BreadcrumbProps, BreadcrumbEvents, BreadcrumbListProps, } from './breadcrumb-types.js';
|
|
7
|
+
export { coerceItems, findItemIndex, resolveCurrentId, generateBreadcrumbRootClasses, validateBreadcrumbProps, } from './breadcrumb-utils.js';
|
|
8
|
+
export { renderBreadcrumbList, renderBreadcrumbItemsLeadingSep, renderBreadcrumbItemRow, renderBreadcrumbSeparator, renderBreadcrumbIcon, renderBreadcrumbBadge, type BreadcrumbRenderContext, } from './breadcrumb-render.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { BreadcrumbRenderContext } from './breadcrumb-render.js';
|
|
3
|
+
declare const MonoBreadcrumbList_base: import('../../composables/hybird-prop').Constructor<import('./breadcrumb-list-core.js').MonoBreadcrumbListCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Light-DOM `mono-breadcrumb-list` (default build, `@mono-lit/helper/ui/breadcrumb`).
|
|
6
|
+
*
|
|
7
|
+
* Two modes:
|
|
8
|
+
* - Standalone (no parent) — a self-contained breadcrumb nav. All of that logic
|
|
9
|
+
* lives in `MonoBreadcrumbListCore`.
|
|
10
|
+
* - Child (inside `<mono-breadcrumb>`) — registers with the parent via
|
|
11
|
+
* `closest()` and renders BARE items + leading separators (the parent owns
|
|
12
|
+
* the `<ol>`/`<nav>` chrome). This composition is light-only; the shadow build
|
|
13
|
+
* (`@mono-lit/helper/ui/shadow/breadcrumb`) supports standalone only.
|
|
14
|
+
*/
|
|
15
|
+
export declare class MonoBreadcrumbList extends MonoBreadcrumbList_base {
|
|
16
|
+
static styles: import('lit').CSSResult[];
|
|
17
|
+
protected createRenderRoot(): HTMLElement;
|
|
18
|
+
private _parent;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
protected _buildContext(): BreadcrumbRenderContext;
|
|
22
|
+
protected render(): TemplateResult;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'mono-breadcrumb-list': MonoBreadcrumbList;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { BreadcrumbItem } from './breadcrumb-types.js';
|
|
3
|
+
declare const MonoBreadcrumbListShadow_base: import('../../composables/hybird-prop').Constructor<import('./breadcrumb-list-core.js').MonoBreadcrumbListCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Shadow-DOM `mono-breadcrumb-list` (SSR build, `@mono-lit/helper/ui/shadow/breadcrumb`).
|
|
6
|
+
*
|
|
7
|
+
* Real shadow root + `static styles`, so `@lit-labs/ssr` serializes it to
|
|
8
|
+
* Declarative Shadow DOM. Renders the STANDALONE breadcrumb nav (from `items`,
|
|
9
|
+
* a single `item`, or direct single-row props) inside one shadow root. The
|
|
10
|
+
* child-of-`<mono-breadcrumb>` composition is a light-only feature (cross-element
|
|
11
|
+
* `closest()` can't work under SSR), so this build is standalone only.
|
|
12
|
+
*
|
|
13
|
+
* Icons: `i-…` utility classes can't resolve inside a shadow root, so each item's
|
|
14
|
+
* icon renders as a native `<slot name="icon-<id>">` (see `iconSlot`), and this
|
|
15
|
+
* element creates the matching LIGHT-DOM `<span slot="icon-<id>" class="i-…">`
|
|
16
|
+
* children itself (client-only; empty on the server → the empty `<slot>` matches).
|
|
17
|
+
*
|
|
18
|
+
* Shares all standalone logic with the light build via `MonoBreadcrumbListCore`.
|
|
19
|
+
* Both register `mono-breadcrumb-list`, so a document loads only one build.
|
|
20
|
+
*/
|
|
21
|
+
export declare class MonoBreadcrumbListShadow extends MonoBreadcrumbListShadow_base {
|
|
22
|
+
static styles: import('lit').CSSResult[];
|
|
23
|
+
/**
|
|
24
|
+
* Number of crumbs the SERVER rendered into the SSR'd shadow root, captured at
|
|
25
|
+
* `connectedCallback` before hydration. `null` when there's no SSR'd shadow
|
|
26
|
+
* root (pure client render). See `mono-breadcrumb.shadow.ts` for the full
|
|
27
|
+
* rationale — `:items.prop` is forwarded to the server but Vue sets the client
|
|
28
|
+
* property late, so we must gate hydration on the EFFECTIVE item count.
|
|
29
|
+
*/
|
|
30
|
+
private _ssrItemCount;
|
|
31
|
+
protected _useIconSlots(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Cap the HYDRATION render at exactly the server-rendered crumb count so the
|
|
34
|
+
* client's first render reproduces the SSR'd DOM structure; full list after.
|
|
35
|
+
*/
|
|
36
|
+
protected _itemsForRender(): BreadcrumbItem[];
|
|
37
|
+
connectedCallback(): void;
|
|
38
|
+
protected firstUpdated(changed: Map<string, unknown>): void;
|
|
39
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
40
|
+
/**
|
|
41
|
+
* Reconcile LIGHT-DOM icon spans (this element's own children) with the
|
|
42
|
+
* effective items. Each becomes a `<span slot="icon-<id>" class="i-…">` that
|
|
43
|
+
* projects into the shadow `<slot name="icon-<id>">`, styled by the page's
|
|
44
|
+
* global UnoCSS. Client-only; icons paint at hydration.
|
|
45
|
+
*/
|
|
46
|
+
private _syncLightIcons;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
declare const MonoBreadcrumb_base: import('../../composables/hybird-prop').Constructor<import('./breadcrumb-core.js').MonoBreadcrumbCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Light-DOM `mono-breadcrumb` (default build, `@mono-lit/helper/ui/breadcrumb`).
|
|
5
|
+
*
|
|
6
|
+
* Renders into the host (`createRenderRoot`→`this`, styled by the global
|
|
7
|
+
* `dist/ui/index.css`). Supports declarative composition with
|
|
8
|
+
* `<mono-breadcrumb-list>` children and the light-DOM slot strategy: `slot="body"`
|
|
9
|
+
* / `slot="separator"` / `slot="icon-<id>"` children are captured in
|
|
10
|
+
* `connectedCallback`, the template renders empty `[data-mono-slot]` targets, and
|
|
11
|
+
* the captured nodes are re-placed in `updated()`. All render-mode-agnostic logic
|
|
12
|
+
* lives in `MonoBreadcrumbCore`. The shadow build
|
|
13
|
+
* (`@mono-lit/helper/ui/shadow/breadcrumb`) shares the mixin but renders the whole list
|
|
14
|
+
* from the `items` prop in a single shadow root. Both register `mono-breadcrumb`,
|
|
15
|
+
* so a document loads only one.
|
|
16
|
+
*/
|
|
17
|
+
export declare class MonoBreadcrumb extends MonoBreadcrumb_base {
|
|
18
|
+
static styles: import('lit').CSSResult[];
|
|
19
|
+
protected createRenderRoot(): HTMLElement;
|
|
20
|
+
private _slotsCaptured;
|
|
21
|
+
private _hasBodySlot;
|
|
22
|
+
/** Captured nodes for the whole-body slot — `slot="body"`. */
|
|
23
|
+
private _slotBody;
|
|
24
|
+
private _orphanHolder?;
|
|
25
|
+
connectedCallback(): void;
|
|
26
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
27
|
+
protected _renderBody(): TemplateResult;
|
|
28
|
+
private _captureSlots;
|
|
29
|
+
private _placeIconSlots;
|
|
30
|
+
private _placeBodySlot;
|
|
31
|
+
private _placeSeparatorSlots;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'mono-breadcrumb': MonoBreadcrumb;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { BreadcrumbItem } from './breadcrumb-types.js';
|
|
3
|
+
declare const MonoBreadcrumbShadow_base: import('../../composables/hybird-prop').Constructor<import('./breadcrumb-core.js').MonoBreadcrumbCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Shadow-DOM `mono-breadcrumb` (SSR build, `@mono-lit/helper/ui/shadow/breadcrumb`).
|
|
6
|
+
*
|
|
7
|
+
* Real shadow root + `static styles`, so `@lit-labs/ssr` serializes it to
|
|
8
|
+
* Declarative Shadow DOM. Renders the WHOLE breadcrumb list from the `items`
|
|
9
|
+
* prop inside this single shadow root — so every breadcrumb CSS rule applies and
|
|
10
|
+
* the current crumb is server-rendered. The declarative `<mono-breadcrumb-list>`
|
|
11
|
+
* composition is a light-only feature (SSR consumers drive it via `items`).
|
|
12
|
+
*
|
|
13
|
+
* Icons: `i-…` utility classes can't resolve inside a shadow root, so each item's
|
|
14
|
+
* icon is rendered as a native `<slot name="icon-<id>">` (see `renderBreadcrumbIcon`
|
|
15
|
+
* + `iconSlot`), and this element creates the matching LIGHT-DOM
|
|
16
|
+
* `<span slot="icon-<id>" class="i-…">` children itself in `updated()`. Those light
|
|
17
|
+
* spans are styled by the page's GLOBAL UnoCSS, so real glyphs paint client-side
|
|
18
|
+
* after hydration (empty on the server → the empty `<slot>` matches → no mismatch).
|
|
19
|
+
* A user-provided `<… slot="icon-<id>">` light child projects through the same slot.
|
|
20
|
+
*
|
|
21
|
+
* Shares all logic with the light build via `MonoBreadcrumbCore`. Both register
|
|
22
|
+
* `mono-breadcrumb`, so a document loads only one build.
|
|
23
|
+
*/
|
|
24
|
+
export declare class MonoBreadcrumbShadow extends MonoBreadcrumbShadow_base {
|
|
25
|
+
static styles: import('lit').CSSResult[];
|
|
26
|
+
/**
|
|
27
|
+
* Number of crumbs the SERVER actually rendered into the SSR'd shadow root,
|
|
28
|
+
* captured at `connectedCallback` before hydration replaces the DOM. `null`
|
|
29
|
+
* when there's no SSR'd shadow root (pure client render).
|
|
30
|
+
*
|
|
31
|
+
* @lit-labs/ssr does NOT forward `.prop` array bindings to the server, so for
|
|
32
|
+
* `:items.prop="arr"` the server renders 0 crumbs while the client `items` has
|
|
33
|
+
* N. Gating the first (hydration) render on this count makes the client's
|
|
34
|
+
* first render match the server exactly → no "shorter than expected iterable"
|
|
35
|
+
* and no double render. `:items="JSON.stringify(arr)"` forwards the string, so
|
|
36
|
+
* the server renders N and this is N → unchanged.
|
|
37
|
+
*/
|
|
38
|
+
private _ssrItemCount;
|
|
39
|
+
protected _useIconSlots(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Cap the HYDRATION render at exactly the server-rendered crumb count so the
|
|
42
|
+
* client's first render reproduces the SSR'd DOM structure. After hydration
|
|
43
|
+
* (`hasUpdated`) render the full list. Safety net for the rare case where the
|
|
44
|
+
* client `items` ends up longer than what the server emitted. On the server,
|
|
45
|
+
* always render the real `items`.
|
|
46
|
+
*/
|
|
47
|
+
protected _itemsForRender(): BreadcrumbItem[];
|
|
48
|
+
connectedCallback(): void;
|
|
49
|
+
protected firstUpdated(changed: Map<string, unknown>): void;
|
|
50
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
51
|
+
/**
|
|
52
|
+
* Register the consumer's own `slot="icon-<id>"` light children.
|
|
53
|
+
*
|
|
54
|
+
* `renderBreadcrumbIcon` only emits the wrapper (and therefore the `<slot>`) when
|
|
55
|
+
* the item has an `icon` OR `getSlotIconNodes(id)` reports something. That map is
|
|
56
|
+
* filled by the LIGHT build's capture pass, which never runs here — so a
|
|
57
|
+
* user-slotted `<svg slot="icon-home">` produced no wrapper, no slot, and no icon
|
|
58
|
+
* at all. Register them before render so the slot exists for them to project into.
|
|
59
|
+
*
|
|
60
|
+
* Must run in `willUpdate`, not `updated`: by `updated` the render that needed the
|
|
61
|
+
* information has already happened.
|
|
62
|
+
*/
|
|
63
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
64
|
+
private _captureUserIconSlots;
|
|
65
|
+
/**
|
|
66
|
+
* Reconcile LIGHT-DOM icon spans (this element's own children) with `items`.
|
|
67
|
+
* Each becomes a `<span slot="icon-<id>" class="mono-breadcrumb-iconify i-…">`
|
|
68
|
+
* that projects into the shadow `<slot name="icon-<id>">` and is styled by the
|
|
69
|
+
* page's global UnoCSS. Client-only; icons paint at hydration.
|
|
70
|
+
*/
|
|
71
|
+
private _syncLightIcons;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { ButtonSize, ButtonColor, ButtonVariant, ButtonRounded, ButtonIconPosition, ButtonBadgeColor, ButtonCssClass, ButtonAffixProps, ButtonHandler } from './button-types.js';
|
|
3
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
4
|
+
import { buildSizeStyle, CssSizeValue } from '../../composables/css-size';
|
|
5
|
+
import { DebounceConfig, RateLimitOption, ThrottleConfig } from '../../composables/rate-limit';
|
|
6
|
+
type ButtonLikeElement = HTMLButtonElement | HTMLAnchorElement;
|
|
7
|
+
/** Public + shared-protected surface added by the core mixin. */
|
|
8
|
+
export declare class MonoButtonCoreInterface {
|
|
9
|
+
size: ButtonSize;
|
|
10
|
+
color: ButtonColor;
|
|
11
|
+
variant: ButtonVariant;
|
|
12
|
+
rounded?: ButtonRounded;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
width?: CssSizeValue;
|
|
16
|
+
height?: CssSizeValue;
|
|
17
|
+
minWidth?: CssSizeValue;
|
|
18
|
+
maxWidth?: CssSizeValue;
|
|
19
|
+
minHeight?: CssSizeValue;
|
|
20
|
+
maxHeight?: CssSizeValue;
|
|
21
|
+
href?: string;
|
|
22
|
+
target?: string;
|
|
23
|
+
type: 'button' | 'submit' | 'reset';
|
|
24
|
+
iconPosition: ButtonIconPosition;
|
|
25
|
+
prepend: ButtonAffixProps;
|
|
26
|
+
append: ButtonAffixProps;
|
|
27
|
+
badge?: string;
|
|
28
|
+
badgeColor: ButtonBadgeColor;
|
|
29
|
+
iconOnly: boolean;
|
|
30
|
+
glass: boolean;
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
ariaLabelText?: string;
|
|
33
|
+
cssClass: ButtonCssClass;
|
|
34
|
+
throttle?: RateLimitOption<ThrottleConfig>;
|
|
35
|
+
debounce?: RateLimitOption<DebounceConfig>;
|
|
36
|
+
handler?: ButtonHandler;
|
|
37
|
+
noAutoLoading: boolean;
|
|
38
|
+
focus(): void;
|
|
39
|
+
blur(): void;
|
|
40
|
+
click(): void;
|
|
41
|
+
cancelPending(): void;
|
|
42
|
+
protected _hasIcon: boolean;
|
|
43
|
+
protected _hasPrepend: boolean;
|
|
44
|
+
protected _hasAppend: boolean;
|
|
45
|
+
/** The affix config for one side, always an object. */
|
|
46
|
+
protected _affix(name: 'prepend' | 'append'): ButtonAffixProps;
|
|
47
|
+
/** Whether that affix is inert — follows `disabled`, never `loading`. */
|
|
48
|
+
protected _affixDisabled(name: 'prepend' | 'append'): boolean;
|
|
49
|
+
protected _isActive: boolean;
|
|
50
|
+
protected _buttonElement?: ButtonLikeElement;
|
|
51
|
+
protected _cls(base: string, key: keyof ButtonCssClass): string;
|
|
52
|
+
protected _toBoolean(value: unknown): boolean;
|
|
53
|
+
protected _sizeStyle(): ReturnType<typeof buildSizeStyle>;
|
|
54
|
+
protected get _hasSize(): boolean;
|
|
55
|
+
protected _defaultIsEmpty(): boolean;
|
|
56
|
+
protected get _isIconOnlyLike(): boolean;
|
|
57
|
+
protected get _buttonClasses(): string;
|
|
58
|
+
protected _renderWrapper(inner: TemplateResult, style?: unknown): TemplateResult;
|
|
59
|
+
protected get _badgeClass(): string;
|
|
60
|
+
protected get _badgeColor(): string;
|
|
61
|
+
protected get _ariaLabel(): string | undefined;
|
|
62
|
+
/** Spinner visibility: the `loading` prop OR either self-driven phase. */
|
|
63
|
+
protected get _effectiveLoading(): boolean;
|
|
64
|
+
/** Where the spinner is drawn: in the icon position, whatever triggered loading. */
|
|
65
|
+
protected get _showsSpinner(): boolean;
|
|
66
|
+
/** A click does nothing observable (covers the wait as well as the work). */
|
|
67
|
+
protected get _isBlocked(): boolean;
|
|
68
|
+
/** The native `disabled` attribute — `_isBlocked` minus the wait. */
|
|
69
|
+
protected get _isInert(): boolean;
|
|
70
|
+
protected _handleClick(event: MouseEvent): void;
|
|
71
|
+
protected _handleKeyDown(event: KeyboardEvent): void;
|
|
72
|
+
protected _handleFocus(): void;
|
|
73
|
+
protected _handleBlur(): void;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* `MonoButtonCore` — all render-mode-agnostic logic for `mono-button`: reactive
|
|
77
|
+
* props, hybrid aliases, the camelCase attribute fallbacks, the slot-presence
|
|
78
|
+
* `@state` (`_hasIcon`), class/getter computation, sizing, click/keyboard
|
|
79
|
+
* interactivity, and the imperative `focus/blur/click`. No `render()` — the light
|
|
80
|
+
* build keeps its `[data-mono-slot]` capture strategy and the shadow build uses
|
|
81
|
+
* native `<slot>` (each ships its own `render()`, mirroring `mono-card`).
|
|
82
|
+
*
|
|
83
|
+
* The `rounded="full"` auto-"icon-only when empty" refinement depends on light-DOM slot
|
|
84
|
+
* introspection, so it lives behind the `_defaultIsEmpty()` hook (defaults to
|
|
85
|
+
* `false` here; the light build overrides it). SSR-safe: no `document`/`window`
|
|
86
|
+
* access; `_buttonElement` (`@query`) is lazy and `focus/blur/click` only run
|
|
87
|
+
* client-side.
|
|
88
|
+
*/
|
|
89
|
+
export declare const MonoButtonCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoButtonCoreInterface> & T;
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { LitElement, nothing, TemplateResult } from 'lit';
|
|
2
|
+
import { ButtonDropdownCssClass, ButtonDropdownItem } from './button-dropdown-types.js';
|
|
3
|
+
import { ButtonProps } from './button-types.js';
|
|
4
|
+
import { DropdownPlacement, DropdownSource } from '../dropdown/dropdown-types.js';
|
|
5
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
6
|
+
/** Public surface added by the core mixin (for typing the wrappers + tag map). */
|
|
7
|
+
export declare class MonoButtonDropdownCoreInterface {
|
|
8
|
+
buttons: ButtonDropdownItem[];
|
|
9
|
+
min: number;
|
|
10
|
+
placement: DropdownPlacement;
|
|
11
|
+
offset: number;
|
|
12
|
+
color?: ButtonProps['color'];
|
|
13
|
+
variant?: ButtonProps['variant'];
|
|
14
|
+
size?: ButtonProps['size'];
|
|
15
|
+
trigger?: ButtonProps & {
|
|
16
|
+
label?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
};
|
|
19
|
+
modelValue: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
closeOnSelect: boolean;
|
|
22
|
+
closeOnOutsideClick: boolean;
|
|
23
|
+
closeOnEscape: boolean;
|
|
24
|
+
cssClass: ButtonDropdownCssClass;
|
|
25
|
+
show(source?: DropdownSource): void;
|
|
26
|
+
hide(source?: DropdownSource): void;
|
|
27
|
+
toggle(source?: DropdownSource): void;
|
|
28
|
+
/** Whether the entries are currently behind the trigger rather than inline. */
|
|
29
|
+
readonly collapsed: boolean;
|
|
30
|
+
/** Tag of the button element to render — differs per build. */
|
|
31
|
+
protected _buttonTag(): string;
|
|
32
|
+
/** Whether entry content may be a Lit template (shadow only — see the impl). */
|
|
33
|
+
protected _declarativeItems(): boolean;
|
|
34
|
+
protected _cls(base: string, key: keyof ButtonDropdownCssClass): string;
|
|
35
|
+
protected renderRow(): TemplateResult;
|
|
36
|
+
/** The `⋮` trigger, or `nothing` while the entries are inline. */
|
|
37
|
+
protected renderTrigger(): TemplateResult | typeof nothing;
|
|
38
|
+
/** The menu rows — rendered INSIDE the panel each build writes itself. */
|
|
39
|
+
protected renderMenuList(): TemplateResult;
|
|
40
|
+
/**
|
|
41
|
+
* The panel is deliberately NOT built here. `PopupPortalController` physically
|
|
42
|
+
* moves it into a `<body>` portal, and a node inside a `${}` expression carries
|
|
43
|
+
* a `ChildPart` range that breaks when its nodes are ejected ("this `ChildPart`
|
|
44
|
+
* has no `parentNode`"). Each build writes the panel as a STATIC element in its
|
|
45
|
+
* own template — the same arrangement `mono-dropdown` uses — and reads these.
|
|
46
|
+
*/
|
|
47
|
+
protected readonly panelClass: string;
|
|
48
|
+
protected readonly panelHidden: boolean;
|
|
49
|
+
protected bindPanel: (el: Element | undefined) => void;
|
|
50
|
+
/** Ref for the inner root each build renders — where the styling attributes go. */
|
|
51
|
+
protected bindRoot: (el: Element | undefined) => void;
|
|
52
|
+
protected _computeRootAttrs(): Record<string, string | null>;
|
|
53
|
+
protected _applyRootAttrs(root: HTMLElement | null | undefined): void;
|
|
54
|
+
/** The `mono-item-color` an entry gets inside the menu (null = the panel's ink). */
|
|
55
|
+
protected _itemColorAttr(item: ButtonDropdownItem): string | null;
|
|
56
|
+
}
|
|
57
|
+
export declare const MonoButtonDropdownCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoButtonDropdownCoreInterface> & T;
|