@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,41 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { TableThSlotName, TableThIconName } from './mono-table-th-core.js';
|
|
3
|
+
declare const MonoTableTh_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-th-core.js').MonoTableThCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Light-DOM `mono-table-th` (default build, `@mono-lit/helper/ui/table`). The unified
|
|
6
|
+
* column-header cell — place it inside a native `<th>`. Declares the column's
|
|
7
|
+
* `field`/`caption`, folds sorting into `:sort.prop="{ order?, noClear?, disabled? }"`,
|
|
8
|
+
* and marks the column editable with `:editable.prop="{ type, editor }"`. The
|
|
9
|
+
* standalone `mono-table-sort` remains supported.
|
|
10
|
+
*
|
|
11
|
+
* Light-DOM Lit replaces the host's children on render, so the user's label nodes
|
|
12
|
+
* are captured once in `connectedCallback` and re-appended into the
|
|
13
|
+
* `[data-mono-slot="label"]` placeholder after each render. The sort indicator is
|
|
14
|
+
* a single global UnoCSS icon that swaps with the direction (neutral
|
|
15
|
+
* `i-fluent-arrow-sort-16-filled` → `i-ri-arrow-up-long-fill` /
|
|
16
|
+
* `i-ri-arrow-down-long-fill`); all other logic lives in `MonoTableThCore`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <th><mono-table-th :data-grid.prop="table" field="Nama" caption="Name"
|
|
20
|
+
* :sort.prop="{ order: 'asc' }"
|
|
21
|
+
* :editable.prop="{ type: 'string', editor: 'input-text' }">Name</mono-table-th></th>
|
|
22
|
+
*/
|
|
23
|
+
export declare class MonoTableTh extends MonoTableTh_base {
|
|
24
|
+
static styles: import('lit').CSSResult[];
|
|
25
|
+
protected createRenderRoot(): HTMLElement;
|
|
26
|
+
/** The captured label nodes (the element's original light-DOM children). */
|
|
27
|
+
private _buckets;
|
|
28
|
+
private _slotsCaptured;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
31
|
+
protected renderSlot(_name: TableThSlotName): TemplateResult;
|
|
32
|
+
protected renderIcon(name: TableThIconName): TemplateResult;
|
|
33
|
+
private _captureSlots;
|
|
34
|
+
private _placeSlot;
|
|
35
|
+
}
|
|
36
|
+
declare global {
|
|
37
|
+
interface HTMLElementTagNameMap {
|
|
38
|
+
'mono-table-th': MonoTableTh;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { TableThSlotName, TableThIconName } from './mono-table-th-core.js';
|
|
3
|
+
declare const MonoTableThShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-th-core.js').MonoTableThCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Shadow-DOM `mono-table-th` (SSR build, `@mono-lit/helper/ui/shadow/table`). The
|
|
6
|
+
* header label projects through a native `<slot>`; the sort indicator and the
|
|
7
|
+
* header-filter funnel are single inline SVGs that swap with their state (the
|
|
8
|
+
* global `i-*` utility CSS can't reach a shadow root) — the fluent neutral glyph
|
|
9
|
+
* and the ri up/down arrows, and the mdi outlined/filled funnels, matching the
|
|
10
|
+
* light build's `i-fluent-*` / `i-ri-*` / `i-mdi-filter*` icons. Shares all other
|
|
11
|
+
* logic via `MonoTableThCore`.
|
|
12
|
+
*/
|
|
13
|
+
export declare class MonoTableThShadow extends MonoTableThShadow_base {
|
|
14
|
+
static styles: import('lit').CSSResult[];
|
|
15
|
+
protected renderSlot(_name: TableThSlotName): TemplateResult;
|
|
16
|
+
protected renderIcon(name: TableThIconName): TemplateResult;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MonoGridSource, MonoServerGroupSource } from './mono-data-grid.js';
|
|
2
|
+
type SummaryType = 'sum' | 'avg' | 'min' | 'max' | 'count';
|
|
3
|
+
export interface StoreGroupSourceConfig {
|
|
4
|
+
/** The single field to group by. */
|
|
5
|
+
groupField: string;
|
|
6
|
+
/** Columns to fetch for a group's rows (omit = all). */
|
|
7
|
+
select?: string[];
|
|
8
|
+
/** Columns matched by search. */
|
|
9
|
+
searchExpr?: string | string[];
|
|
10
|
+
/** Search operation (default `'contains'`). */
|
|
11
|
+
searchOperation?: string;
|
|
12
|
+
/** Per-group aggregates, e.g. `{ TotalBudget: 'sum' }`. */
|
|
13
|
+
groupSummary?: Record<string, SummaryType>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Build a {@link MonoServerGroupSource} that drives **server-side** group paging
|
|
17
|
+
* straight from a devextreme `DataSource`'s store — no extra fetcher, no custom
|
|
18
|
+
* callbacks. `loadGroups` issues one cheap grouped query (group keys + counts +
|
|
19
|
+
* optional summaries, no rows); `loadRows` fetches a single group's page with
|
|
20
|
+
* `$filter` + `$skip`/`$top`. Returns `null` if the source has no usable store
|
|
21
|
+
* (e.g. a plain in-memory array), so the caller can fall back to client grouping.
|
|
22
|
+
*/
|
|
23
|
+
export declare function storeGroupSource<T = any>(source: MonoGridSource<T>, config: StoreGroupSourceConfig): MonoServerGroupSource<T> | null;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MonoTableController } from './mono-data-grid.js';
|
|
3
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
4
|
+
/**
|
|
5
|
+
* Public surface added by the shared controller base mixin (for typing the
|
|
6
|
+
* per-element cores + wrappers).
|
|
7
|
+
*/
|
|
8
|
+
export declare class MonoTableControllerCoreInterface {
|
|
9
|
+
dataGrid?: MonoTableController;
|
|
10
|
+
/** Unsubscribe handle for the current controller subscription (set by `_subscribe`). */
|
|
11
|
+
protected _off?: () => void;
|
|
12
|
+
/** (Re)bind the controller subscription; called on connect + `dataGrid` change. */
|
|
13
|
+
protected _subscribe(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Which slot of `monoDataGrid({ props })` this element reads. `'th' | 'sort' |
|
|
16
|
+
* 'summary'` resolve per column via the element's `field`; the rest are
|
|
17
|
+
* singletons. Left undefined = the element takes no central props.
|
|
18
|
+
*/
|
|
19
|
+
protected _propsSlot?: MonoTablePropsSlot;
|
|
20
|
+
protected _applyControllerProps(): void;
|
|
21
|
+
}
|
|
22
|
+
/** The `props` key an element reads — see {@link MonoTableProps}. */
|
|
23
|
+
export type MonoTablePropsSlot = 'th' | 'sort' | 'summary' | 'search' | 'info' | 'paging' | 'loading' | 'empty' | 'error' | 'pageSize' | 'pagingGroup' | 'detail' | 'checkbox';
|
|
24
|
+
/**
|
|
25
|
+
* `MonoTableControllerCore` — the render-mode-agnostic plumbing shared by every
|
|
26
|
+
* `mono-table-*` element: the `dataGrid` controller property (bound via Vue
|
|
27
|
+
* `.prop`, so `attribute: false`), its hybrid alias, and the
|
|
28
|
+
* subscribe/unsubscribe lifecycle that re-renders the element whenever the
|
|
29
|
+
* controller notifies.
|
|
30
|
+
*
|
|
31
|
+
* The six per-element cores compose this base, so their light/shadow wrappers
|
|
32
|
+
* only ever call `MonoTable<El>Core(LitElement)`. Elements needing extra
|
|
33
|
+
* lifecycle work (e.g. `mono-table-paging-group` registers/clears group paging)
|
|
34
|
+
* override the lifecycle methods and chain `super.*` to keep this plumbing.
|
|
35
|
+
*
|
|
36
|
+
* SSR-safe: holds no `document`/`window` access. `dataGrid` is undefined on the
|
|
37
|
+
* server (a `.prop` binding can't cross Declarative Shadow DOM), so `_subscribe`
|
|
38
|
+
* is a no-op there and the element renders its deterministic empty shell.
|
|
39
|
+
*/
|
|
40
|
+
export declare const MonoTableControllerCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableControllerCoreInterface> & T;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { SortOrder } from './mono-data-grid.js';
|
|
3
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
4
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
5
|
+
import { PopupPortalController } from '../../composables/popup-portal.js';
|
|
6
|
+
/** Resolved sort config — see {@link MonoColumnSort}. */
|
|
7
|
+
export interface MonoResolvedSort {
|
|
8
|
+
enable: boolean;
|
|
9
|
+
showIcon: boolean;
|
|
10
|
+
noClear: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Public surface added by the menu core mixin. */
|
|
14
|
+
export declare class MonoTableMenuCoreInterface extends MonoTableControllerCoreInterface {
|
|
15
|
+
protected _menuOpen: boolean;
|
|
16
|
+
protected _sortMenuOpen: boolean;
|
|
17
|
+
protected _menuPopup?: PopupPortalController;
|
|
18
|
+
protected _sortMenuPopup?: PopupPortalController;
|
|
19
|
+
protected _menuPanelEl: HTMLElement | null;
|
|
20
|
+
protected _cell: HTMLElement | null;
|
|
21
|
+
protected get _sortDir(): SortOrder;
|
|
22
|
+
protected resolveSort(raw?: {
|
|
23
|
+
enable?: boolean;
|
|
24
|
+
showIcon?: boolean;
|
|
25
|
+
noClear?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}): MonoResolvedSort;
|
|
28
|
+
protected bindContextMenu(wanted: boolean): void;
|
|
29
|
+
protected detachContextMenu(): void;
|
|
30
|
+
protected ensurePopups(): void;
|
|
31
|
+
protected openMenu(e?: Event): void;
|
|
32
|
+
protected closeMenu(): void;
|
|
33
|
+
protected _menuKeepsPath(path: EventTarget[]): boolean;
|
|
34
|
+
protected bindDocListeners(): void;
|
|
35
|
+
protected teardownDocListeners(): void;
|
|
36
|
+
protected renderSortMenuItem(): TemplateResult;
|
|
37
|
+
protected renderSortSubmenu(noClear?: boolean): TemplateResult;
|
|
38
|
+
protected pickSort(order: SortOrder): Promise<void>;
|
|
39
|
+
protected clearAllSorts(): Promise<void>;
|
|
40
|
+
protected _caretIcon(): TemplateResult;
|
|
41
|
+
protected _sortGlyph(dir: 'asc' | 'desc' | 'clear'): TemplateResult;
|
|
42
|
+
protected _clearAllIcon(): TemplateResult;
|
|
43
|
+
protected _checkIcon(): TemplateResult;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* `MonoTableMenuCore` — the header context-menu machinery shared by
|
|
47
|
+
* `mono-table-th` and the standalone `mono-table-sort`.
|
|
48
|
+
*
|
|
49
|
+
* Right-click on the header cell ALWAYS opens the menu; its **Sort** row cascades
|
|
50
|
+
* into an Ascending / Descending / Clear / Clear-all submenu, and picking a
|
|
51
|
+
* direction there ACCUMULATES keys (the column's own arrow stays single-key).
|
|
52
|
+
* Only `mono-table-th` adds a Header Filter row (and its value panel), so the
|
|
53
|
+
* filter-specific parts deliberately stay in that core — this mixin owns just what
|
|
54
|
+
* is genuinely common:
|
|
55
|
+
*
|
|
56
|
+
* - the menu + submenu `PopupPortalController`s,
|
|
57
|
+
* - the `contextmenu` binding on the closest `th`/`td`,
|
|
58
|
+
* - the document `pointerdown` / `Escape` dismissal, with a
|
|
59
|
+
* `_menuKeepsPath()` hook subclasses extend for their own popups,
|
|
60
|
+
* - the Sort row and submenu rendering.
|
|
61
|
+
*
|
|
62
|
+
* It only *declares* `field` / `caption` — both cores already define them as
|
|
63
|
+
* reactive properties, and re-declaring would shadow them.
|
|
64
|
+
*/
|
|
65
|
+
export declare const MonoTableMenuCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableMenuCoreInterface> & T;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The element an overlay covers: the `<table>` first, the scroll wrapper only as
|
|
3
|
+
* a fallback.
|
|
4
|
+
*
|
|
5
|
+
* The order is the whole point. An absolutely positioned descendant of a SCROLL
|
|
6
|
+
* CONTAINER scrolls with the content, so covering the wrapper pins the overlay to
|
|
7
|
+
* the scroll origin at only the scrollport's size — scroll a wide or long table
|
|
8
|
+
* and the overlay slides away, leaving live rows showing through beside it. The
|
|
9
|
+
* table's box IS the content, so covering that keeps every column and row under
|
|
10
|
+
* the overlay at any scroll offset.
|
|
11
|
+
*/
|
|
12
|
+
export declare function overlayHost(el: Element): HTMLElement | null;
|
|
13
|
+
/**
|
|
14
|
+
* The element whose height is reserved while an overlay is up — NEVER the
|
|
15
|
+
* `<table>`.
|
|
16
|
+
*
|
|
17
|
+
* A `<table>` does not treat a height as "reserve this much space": CSS table
|
|
18
|
+
* layout DISTRIBUTES any surplus over the rows. Freeze a table at the height it
|
|
19
|
+
* had when it was full, then let the source clear its rows, and the surplus lands
|
|
20
|
+
* on the only row left — the header — which stretches into a band hundreds of
|
|
21
|
+
* pixels tall with its captions floating in the middle of it. That is the
|
|
22
|
+
* opposite of the collapse this guard exists to prevent.
|
|
23
|
+
*
|
|
24
|
+
* A block box just reserves the space, so the hold goes on the scroll wrapper, or
|
|
25
|
+
* failing that on the table's own parent. If the table has no block ancestor to
|
|
26
|
+
* hold the space the hold is SKIPPED — a grid that briefly goes short is a
|
|
27
|
+
* smaller problem than a deformed one.
|
|
28
|
+
*/
|
|
29
|
+
export declare function overlaySizeHost(el: Element): HTMLElement | null;
|
|
30
|
+
/**
|
|
31
|
+
* Widest header row, counting `colspan` — the span a generated overlay cell
|
|
32
|
+
* needs.
|
|
33
|
+
*
|
|
34
|
+
* Generated and spacer rows are excluded by `data-mono-stripe-skip` rather than
|
|
35
|
+
* by class name: this has to skip the row the OTHER overlay may have built as
|
|
36
|
+
* well as its own, and both already carry that attribute for the zebra count.
|
|
37
|
+
*/
|
|
38
|
+
export declare function columnCount(table: HTMLTableElement): number;
|
|
39
|
+
/**
|
|
40
|
+
* The `<tr>` an overlay lives in, and whether the element built it.
|
|
41
|
+
*
|
|
42
|
+
* `generated` decides what disconnect may do: a row the element created is its
|
|
43
|
+
* own to remove; a row the consumer wrote is theirs, and taking it out from under
|
|
44
|
+
* a framework that still holds a reference to it is how hydration breaks.
|
|
45
|
+
*/
|
|
46
|
+
export interface RowHost {
|
|
47
|
+
row: HTMLTableRowElement;
|
|
48
|
+
generated: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Give an overlay a spec-valid home inside the table, and make that home carry
|
|
52
|
+
* what the styling keys on.
|
|
53
|
+
*
|
|
54
|
+
* `<table>`'s content model permits only `caption` / `colgroup` / `thead` /
|
|
55
|
+
* `tbody` / `tfoot`, and a row section permits only `<tr>` — so a bare custom
|
|
56
|
+
* element in either is invalid HTML. Vue's compiler warns about it on every
|
|
57
|
+
* consumer build, and the HTML PARSER foster-parents it out of the table: a
|
|
58
|
+
* server-rendered `<mono-shadow-table-error>` written straight into `<tbody>`
|
|
59
|
+
* has left the table before hydration starts, at which point it is not a row and
|
|
60
|
+
* covers nothing.
|
|
61
|
+
*
|
|
62
|
+
* So the form the docs teach is the valid one — `<tr><td colspan>` written by the
|
|
63
|
+
* consumer — and this function has two jobs:
|
|
64
|
+
*
|
|
65
|
+
* 1. **Adopt** a hand-written cell. A row the consumer wrote lacks the three
|
|
66
|
+
* things the generated one has: the `rowClass` (which is the ONLY thing the
|
|
67
|
+
* padding/border reset in `table.css` keys on — without it a docs-style
|
|
68
|
+
* `td { padding }` puts a 14px gutter around the bar), `data-mono-stripe-skip`
|
|
69
|
+
* (zebra parity), and a `colspan` that `syncRowSpan` keeps in step with the
|
|
70
|
+
* columns. Asking a consumer to remember all three is a trap, so the element
|
|
71
|
+
* stamps them on the row it finds itself in. The class is ADDED, never
|
|
72
|
+
* replaced — a framework does not patch an attribute it did not bind, so what
|
|
73
|
+
* is written here survives their re-renders, and what they wrote survives us.
|
|
74
|
+
*
|
|
75
|
+
* 2. **Generate** a row when the element is dropped bare into a table or a row
|
|
76
|
+
* section anyway — the client-only fallback that makes an imperative
|
|
77
|
+
* `body.appendChild(el)` keep working. Not the taught form, for the reasons
|
|
78
|
+
* above.
|
|
79
|
+
*
|
|
80
|
+
* A `<caption>` host is left alone: it is valid HTML and its CSS is honoured as
|
|
81
|
+
* written. Anything else (`undefined`) is not a table position at all.
|
|
82
|
+
*/
|
|
83
|
+
export declare function ensureRowHost(el: HTMLElement, rowClass: string): RowHost | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Drop a GENERATED row on disconnect. An empty `<tr>` left behind would still
|
|
86
|
+
* draw a border and occupy a slot in the zebra parity count.
|
|
87
|
+
*
|
|
88
|
+
* An adopted row is never touched: it is the consumer's node, still referenced by
|
|
89
|
+
* whatever rendered it, and removing it is exactly the "disrupt future
|
|
90
|
+
* functionality" the Vue warning threatens.
|
|
91
|
+
*/
|
|
92
|
+
export declare function releaseRowHost(el: HTMLElement, host: RowHost | undefined): void;
|
|
93
|
+
/**
|
|
94
|
+
* Re-widen the row's cell after a column change — generated or adopted.
|
|
95
|
+
*
|
|
96
|
+
* `ensureRowHost` sets `colspan` once on a generated cell, from the header as it
|
|
97
|
+
* stood on connect; a hand-written cell has whatever the consumer typed, which
|
|
98
|
+
* may be nothing. A grid whose columns are driven by data — a `v-for` over a
|
|
99
|
+
* props snapshot, a column toggled off — changes that count later, and a stale
|
|
100
|
+
* span leaves the row short of the table or overflowing it.
|
|
101
|
+
* `mono-table-detail-core` recomputes for the same reason.
|
|
102
|
+
*
|
|
103
|
+
* Only writes when the number actually moved, so this is safe to call from every
|
|
104
|
+
* `updated()` — and a consumer's correct `colspan` is never rewritten.
|
|
105
|
+
*/
|
|
106
|
+
export declare function syncRowSpan(el: HTMLElement, host: RowHost | undefined): void;
|
|
107
|
+
export interface OverlayHostOptions {
|
|
108
|
+
/**
|
|
109
|
+
* The custom property the measured sticky-header height is published on, so the
|
|
110
|
+
* overlay's content can sit BELOW a frozen header rather than under it.
|
|
111
|
+
*/
|
|
112
|
+
headVar: string;
|
|
113
|
+
/**
|
|
114
|
+
* This overlay's own reservation slot on the size host — must start with
|
|
115
|
+
* `--mono-table-hold-`. See {@link HOLD_PREFIX} for why each overlay needs one
|
|
116
|
+
* of its own rather than sharing `min-height`.
|
|
117
|
+
*/
|
|
118
|
+
holdVar: string;
|
|
119
|
+
/**
|
|
120
|
+
* How much room to reserve on the size host while the overlay is up.
|
|
121
|
+
*
|
|
122
|
+
* `'measure'` freezes whatever height it currently has — right for an overlay
|
|
123
|
+
* that appears over a grid which is ABOUT to lose its rows. A length string
|
|
124
|
+
* sets that height outright, which is what an overlay shown over an already
|
|
125
|
+
* empty grid needs: there is nothing left to measure but a header.
|
|
126
|
+
*
|
|
127
|
+
* A FUNCTION is called after `headVar` has been published, for a caller whose
|
|
128
|
+
* answer depends on it. Passing the string it would have returned instead reads
|
|
129
|
+
* the header offset from the PREVIOUS pass — zero on the first one — which is
|
|
130
|
+
* a whole header's worth of room short.
|
|
131
|
+
*/
|
|
132
|
+
hold: 'measure' | string | (() => string);
|
|
133
|
+
/**
|
|
134
|
+
* When to measure the header into `headVar`.
|
|
135
|
+
*
|
|
136
|
+
* `'sticky'` publishes it only for a frozen header, and `0` otherwise — right
|
|
137
|
+
* for a small glyph that may sit over rows quite happily, and only has to clear
|
|
138
|
+
* a header that refuses to scroll away.
|
|
139
|
+
*
|
|
140
|
+
* `'always'` publishes it whatever the header does. An overlay whose content is
|
|
141
|
+
* a block of text has to clear the header at rest as well as while scrolling:
|
|
142
|
+
* with `0` it starts at the table's top and the first line lands ON the header
|
|
143
|
+
* row. Costs a slightly generous offset once a non-sticky header has scrolled
|
|
144
|
+
* away, which is invisible; the alternative is text over the column names.
|
|
145
|
+
*/
|
|
146
|
+
measureHead?: 'sticky' | 'always';
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Give back everything an overlay reserved, from the hosts it remembers.
|
|
150
|
+
*
|
|
151
|
+
* Safe to call on an element that never applied anything, and safe to call after
|
|
152
|
+
* it has been removed from the DOM — which is the point.
|
|
153
|
+
*/
|
|
154
|
+
export declare function releaseOverlayHost(el: HTMLElement): void;
|
|
155
|
+
/**
|
|
156
|
+
* Make the host a positioning context, publish the header offset, reserve the
|
|
157
|
+
* space and stretch the overlay — or undo all four.
|
|
158
|
+
*
|
|
159
|
+
* **The order is load-bearing, and each step feeds the next.** The header offset
|
|
160
|
+
* goes first because a configured hold may be a function of it. The hold goes
|
|
161
|
+
* next because the stretch measures the scroll region the hold has just resized —
|
|
162
|
+
* do it the other way round and the overlay is stretched to the height the table
|
|
163
|
+
* had before any room was made, which on an empty grid is a header-high strip.
|
|
164
|
+
*/
|
|
165
|
+
export declare function applyOverlayHost(el: HTMLElement, on: boolean, opts: OverlayHostOptions): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SortOrder } from './mono-data-grid.js';
|
|
2
|
+
/**
|
|
3
|
+
* Pure sort-cycle helpers shared by `mono-table-sort` and `mono-table-th` so the
|
|
4
|
+
* two header controls behave identically. Kept dependency-free (no Lit/DOM) so
|
|
5
|
+
* both cores can import them.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The next direction when a sortable header is clicked.
|
|
9
|
+
* - default cycle: `null → asc → desc → null`
|
|
10
|
+
* - `noClear`: `asc ↔ desc` (never returns to `null`)
|
|
11
|
+
*/
|
|
12
|
+
export declare function nextOrder(current: SortOrder, noClear?: boolean): SortOrder;
|
|
13
|
+
/** `aria-sort` value for the parent header cell. */
|
|
14
|
+
export declare function ariaSort(current: SortOrder): string;
|
|
15
|
+
/**
|
|
16
|
+
* Native tooltip text shown on hover — reflects the current sort direction and,
|
|
17
|
+
* when more than one column is sorted, this column's precedence (which the
|
|
18
|
+
* `<sup>` badge shows visually).
|
|
19
|
+
*/
|
|
20
|
+
export declare function sortTitle(current: SortOrder, seq?: number, total?: number): string;
|