@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 } from 'lit';
|
|
2
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
3
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
4
|
+
/** Public surface added by the loading-overlay core mixin. */
|
|
5
|
+
export declare class MonoTableLoadingCoreInterface extends MonoTableControllerCoreInterface {
|
|
6
|
+
minDuration: number;
|
|
7
|
+
loading: boolean | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* `MonoTableLoadingCore` — render-mode-agnostic logic for `mono-table-loading`, a
|
|
11
|
+
* drop-in spinner overlay shown over the table whenever the bound controller is
|
|
12
|
+
* fetching (sort / search / paging / reload / save). Place it in the
|
|
13
|
+
* `.mono-table-scroll` wrapper, or inside the `<table>` wrapped in a `<caption>`
|
|
14
|
+
* (a bare custom-element child of `<table>` is invalid HTML — see the tag doc),
|
|
15
|
+
* and bind the controller with `:data-grid.prop` — no `v-show` wiring.
|
|
16
|
+
*
|
|
17
|
+
* It reads `dataGrid.loading` **synchronously on every controller notify** (not in
|
|
18
|
+
* an async render) so it can't miss a fast query whose `loading` flips back before
|
|
19
|
+
* Lit re-renders, and holds the overlay for a small minimum duration
|
|
20
|
+
* (`min-duration`, default 350ms) so the feedback is always perceptible. The
|
|
21
|
+
* overlay itself is toggled by an imperative `data-loading` attribute + CSS — the
|
|
22
|
+
* element never needs to re-render for the state to flip.
|
|
23
|
+
*
|
|
24
|
+
* "Just works" details, applied to the nearest overlay host — the enclosing
|
|
25
|
+
* `.mono-table-scroll` if present, else the `<table>`:
|
|
26
|
+
* - makes it a positioning context (`position: relative`) so the absolute overlay
|
|
27
|
+
* covers it (the consumer adds nothing);
|
|
28
|
+
* - holds the grid's height while active, so a source that momentarily clears its rows
|
|
29
|
+
* mid-query can't collapse it to a thin strip. The hold goes on the nearest BLOCK box (the
|
|
30
|
+
* scroll wrapper, else the table's parent) — never on the `<table>`, which would distribute
|
|
31
|
+
* the height over its rows and stretch the header instead of reserving space.
|
|
32
|
+
*
|
|
33
|
+
* MANUAL mode: set `loading` (`:loading="isBusy"`) and the element follows THAT instead of the
|
|
34
|
+
* controller — for a busy state the controller can't see (several requests, a save in a store,
|
|
35
|
+
* a page with no controller at all). `true` shows, `false` hides, whatever the controller says;
|
|
36
|
+
* `null` / `undefined` (or no attribute) hands it back to the controller. `min-duration` holds
|
|
37
|
+
* for both sources.
|
|
38
|
+
*
|
|
39
|
+
* SSR-safe: all DOM/timer work is guarded behind `isServer`.
|
|
40
|
+
*/
|
|
41
|
+
export declare const MonoTableLoadingCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableLoadingCoreInterface> & T;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTableLoading_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-loading-core.js').MonoTableLoadingCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Light-DOM `mono-table-loading` (default build, `@mono-lit/helper/ui/table`). A
|
|
5
|
+
* drop-in loading overlay — place it inside your `<table>` (or `.mono-table-scroll`)
|
|
6
|
+
* and bind the controller with `:data-grid.prop`; it auto-shows a spinner over
|
|
7
|
+
* the rows region whenever the controller is fetching and freezes the grid height
|
|
8
|
+
* so it can't collapse mid-query. Renders into the host
|
|
9
|
+
* (`createRenderRoot`→`this`, styled by the global `dist/ui/index.css`); all logic
|
|
10
|
+
* lives in `MonoTableLoadingCore`, shared with the shadow build.
|
|
11
|
+
*
|
|
12
|
+
* Place it in the `.mono-table-scroll` wrapper, or INSIDE the `<table>` wrapped in
|
|
13
|
+
* a row section — drop it straight into `<tbody>`.
|
|
14
|
+
*
|
|
15
|
+
* `<table>`'s content model permits only `caption`/`colgroup`/`thead`/`tbody`/`tfoot`,
|
|
16
|
+
* and a row section permits only `<tr>`, so a bare custom-element child of either is
|
|
17
|
+
* invalid: Vue's compiler warns, and the HTML parser foster-parents it out of the
|
|
18
|
+
* table on hydration. The element handles that itself — on connect it wraps itself in
|
|
19
|
+
* a zero-height `<tr class="mono-table-loading-row" mono-loading-row><td colspan>`, so the markup you
|
|
20
|
+
* write stays one line and the overlay stays inside the table.
|
|
21
|
+
*
|
|
22
|
+
* It covers the `<table>`, NOT the scroll wrapper, and that is what makes it survive
|
|
23
|
+
* scrolling: an absolutely positioned descendant of a scroll container scrolls WITH
|
|
24
|
+
* the content, so covering the wrapper would pin the dim to the scroll origin at the
|
|
25
|
+
* scrollport's size and let rows show through beside it. The spinner is
|
|
26
|
+
* `position: sticky`, so it stays in view on a table far wider or longer than its
|
|
27
|
+
* region.
|
|
28
|
+
*
|
|
29
|
+
* A `<caption>` or a `<td>` you wrote yourself is left alone — both are valid hosts,
|
|
30
|
+
* so existing markup keeps working unchanged.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <div class="mono-table-scroll" mono-table-scroll>
|
|
34
|
+
* <table class="mono-table" mono-table>
|
|
35
|
+
* <caption><mono-table-loading :data-grid.prop="table" /></caption>
|
|
36
|
+
* <thead>…</thead>
|
|
37
|
+
* <tbody>…rows…</tbody>
|
|
38
|
+
* </table>
|
|
39
|
+
* </div>
|
|
40
|
+
*/
|
|
41
|
+
export declare class MonoTableLoading extends MonoTableLoading_base {
|
|
42
|
+
static styles: import('lit').CSSResult[];
|
|
43
|
+
protected createRenderRoot(): HTMLElement;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'mono-table-loading': MonoTableLoading;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTableLoadingShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-loading-core.js').MonoTableLoadingCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Shadow-DOM `mono-shadow-table-loading` (SSR build, `@mono-lit/helper/ui/shadow/table`).
|
|
5
|
+
* Renders the spinner into a real shadow root; the `host: 'mono-table-loading'`
|
|
6
|
+
* rewrite turns the overlay's element-selector rules into `:host` so the shadow
|
|
7
|
+
* sheet self-contains the overlay styling. The `loading` state is client-only, so
|
|
8
|
+
* SSR emits an inert (hidden) host. Shares all logic via `MonoTableLoadingCore`.
|
|
9
|
+
*/
|
|
10
|
+
export declare class MonoTableLoadingShadow extends MonoTableLoadingShadow_base {
|
|
11
|
+
static styles: import('lit').CSSResult[];
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
3
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
4
|
+
/** Public surface added by the page-size core mixin. */
|
|
5
|
+
export declare class MonoTablePageSizeCoreInterface extends MonoTableControllerCoreInterface {
|
|
6
|
+
sizes: Array<number | 'all'> | string;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* `MonoTablePageSizeCore` — render-mode-agnostic logic for `mono-table-page-size`:
|
|
11
|
+
* a native `<select>` of page-size options wired to the controller. No slots, no
|
|
12
|
+
* icons — light and shadow share the full `render()`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MonoTablePageSizeCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTablePageSizeCoreInterface> & T;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTablePageSize_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-page-size-core.js').MonoTablePageSizeCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Light-DOM `mono-table-page-size` (default build, `@mono-lit/helper/ui/table`).
|
|
5
|
+
* All logic lives in `MonoTablePageSizeCore`; the shadow build shares the mixin.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MonoTablePageSize extends MonoTablePageSize_base {
|
|
8
|
+
static styles: import('lit').CSSResult[];
|
|
9
|
+
protected createRenderRoot(): HTMLElement;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'mono-table-page-size': MonoTablePageSize;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTablePageSizeShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-page-size-core.js').MonoTablePageSizeCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Shadow-DOM `mono-table-page-size` (SSR build, `@mono-lit/helper/ui/shadow/table`).
|
|
5
|
+
* Shares all logic with the light build via `MonoTablePageSizeCore`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MonoTablePageSizeShadow extends MonoTablePageSizeShadow_base {
|
|
8
|
+
static styles: import('lit').CSSResult[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
3
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
4
|
+
export type TablePagingType = 'standard' | 'infinity-scroll' | 'virtual-scroll';
|
|
5
|
+
/** Public surface added by the paging core mixin. */
|
|
6
|
+
export declare class MonoTablePagingCoreInterface extends MonoTableControllerCoreInterface {
|
|
7
|
+
type: TablePagingType;
|
|
8
|
+
siblings: number;
|
|
9
|
+
simple: boolean;
|
|
10
|
+
size?: number;
|
|
11
|
+
rowHeight: number;
|
|
12
|
+
scrollTarget?: string;
|
|
13
|
+
threshold: number;
|
|
14
|
+
overscan: number;
|
|
15
|
+
prevIcon: string;
|
|
16
|
+
nextIcon: string;
|
|
17
|
+
protected _renderIcon(direction: 'prev' | 'next'): TemplateResult;
|
|
18
|
+
}
|
|
19
|
+
/** Defaults the shadow build tests against before swapping in its inline SVG. */
|
|
20
|
+
export declare const DEFAULT_PREV_ICON = "i-mdi-chevron-left";
|
|
21
|
+
export declare const DEFAULT_NEXT_ICON = "i-mdi-chevron-right";
|
|
22
|
+
export declare const MonoTablePagingCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTablePagingCoreInterface> & T;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MonoGroupNode } from './grouping.js';
|
|
3
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
4
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
5
|
+
/** Public surface added by the group-paging core mixin. */
|
|
6
|
+
export declare class MonoTablePagingGroupCoreInterface extends MonoTableControllerCoreInterface {
|
|
7
|
+
group?: MonoGroupNode | string;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
siblings: number;
|
|
10
|
+
simple: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* `MonoTablePagingGroupCore` — render-mode-agnostic logic for
|
|
14
|
+
* `mono-table-paging-group`: paginates the rows inside ONE group. Extends the
|
|
15
|
+
* controller base with group-paging registration on connect / disconnect /
|
|
16
|
+
* group-path change. No slots, no icons — light and shadow share `render()`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MonoTablePagingGroupCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTablePagingGroupCoreInterface> & T;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTablePagingGroup_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-paging-group-core.js').MonoTablePagingGroupCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Light-DOM `mono-table-paging-group` (default build, `@mono-lit/helper/ui/table`).
|
|
5
|
+
* Paginates the rows inside a single group. All logic lives in
|
|
6
|
+
* `MonoTablePagingGroupCore`; the shadow build shares the mixin.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <mono-table-paging-group :data-grid.prop="table" :group.prop="node" page-size="5" />
|
|
10
|
+
*/
|
|
11
|
+
export declare class MonoTablePagingGroup extends MonoTablePagingGroup_base {
|
|
12
|
+
static styles: import('lit').CSSResult[];
|
|
13
|
+
protected createRenderRoot(): HTMLElement;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'mono-table-paging-group': MonoTablePagingGroup;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTablePagingGroupShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-paging-group-core.js').MonoTablePagingGroupCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Shadow-DOM `mono-table-paging-group` (SSR build, `@mono-lit/helper/ui/shadow/table`).
|
|
5
|
+
* Shares all logic with the light build via `MonoTablePagingGroupCore`. Renders
|
|
6
|
+
* `nothing` server-side (no controller), so its host SSRs empty and only
|
|
7
|
+
* materializes after hydration binds the controller + group.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MonoTablePagingGroupShadow extends MonoTablePagingGroupShadow_base {
|
|
10
|
+
static styles: import('lit').CSSResult[];
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTablePaging_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-paging-core.js').MonoTablePagingCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Light-DOM `mono-table-paging` (default build, `@mono-lit/helper/ui/table`).
|
|
5
|
+
* All logic lives in `MonoTablePagingCore`; the shadow build shares the mixin.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MonoTablePaging extends MonoTablePaging_base {
|
|
8
|
+
static styles: import('lit').CSSResult[];
|
|
9
|
+
protected createRenderRoot(): HTMLElement;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'mono-table-paging': MonoTablePaging;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTablePagingShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-paging-core.js').MonoTablePagingCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Shadow-DOM `mono-table-paging` (SSR build, `@mono-lit/helper/ui/shadow/table`).
|
|
5
|
+
* Shares all logic with the light build via `MonoTablePagingCore`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MonoTablePagingShadow extends MonoTablePagingShadow_base {
|
|
8
|
+
static styles: import('lit').CSSResult[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
3
|
+
import { MonoSearchValue } from '../../search/data-search.js';
|
|
4
|
+
import { InputCssClass, InputColor, InputSize, InputValidationState, InputVariant } from '../input/input-types.js';
|
|
5
|
+
import { CssSizeValue } from '../../composables/css-size';
|
|
6
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
7
|
+
/** Per-build icon hooks the search core delegates to. */
|
|
8
|
+
export type TableSearchIconName = 'search' | 'close' | 'chevron';
|
|
9
|
+
/** Public surface added by the search core mixin. */
|
|
10
|
+
export declare class MonoTableSearchCoreInterface extends MonoTableControllerCoreInterface {
|
|
11
|
+
/** Fields a term matches — replaces `monoDataGrid({ searchExpr })`. */
|
|
12
|
+
searchValue: MonoSearchValue;
|
|
13
|
+
/** Alias of {@link searchValue}, under the grid option's older name. */
|
|
14
|
+
searchExpr: MonoSearchValue;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
debounce: number;
|
|
18
|
+
noIcon: boolean;
|
|
19
|
+
size: InputSize;
|
|
20
|
+
color: InputColor;
|
|
21
|
+
variant: InputVariant;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
clearable: boolean;
|
|
24
|
+
autofocus: boolean;
|
|
25
|
+
label: string;
|
|
26
|
+
helperText: string;
|
|
27
|
+
validationState: InputValidationState;
|
|
28
|
+
validationMessage: string;
|
|
29
|
+
error: boolean;
|
|
30
|
+
errorMessage: string;
|
|
31
|
+
success: boolean;
|
|
32
|
+
successMessage: string;
|
|
33
|
+
name: string;
|
|
34
|
+
autocomplete: string;
|
|
35
|
+
inputmode: string;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
maxLength?: number;
|
|
38
|
+
ariaLabelText?: string;
|
|
39
|
+
width?: CssSizeValue;
|
|
40
|
+
height?: CssSizeValue;
|
|
41
|
+
minWidth?: CssSizeValue;
|
|
42
|
+
maxWidth?: CssSizeValue;
|
|
43
|
+
minHeight?: CssSizeValue;
|
|
44
|
+
maxHeight?: CssSizeValue;
|
|
45
|
+
cssClass: InputCssClass;
|
|
46
|
+
cssClassName: string;
|
|
47
|
+
focus(options?: FocusOptions): void;
|
|
48
|
+
blur(): void;
|
|
49
|
+
protected renderIcon(name: TableSearchIconName): TemplateResult;
|
|
50
|
+
protected _renderFilterSlotContent(): TemplateResult;
|
|
51
|
+
protected _onFilterSlotChange(e: Event): void;
|
|
52
|
+
protected _setFilterSlotted(value: boolean): void;
|
|
53
|
+
protected _filterPanelRoot(): ParentNode | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* `MonoTableSearchCore` — render-mode-agnostic logic for `mono-table-search`: a
|
|
57
|
+
* debounced search box wired to the controller.
|
|
58
|
+
*
|
|
59
|
+
* It renders **`mono-input`'s markup and class names** (`.mono-input` →
|
|
60
|
+
* `.mono-input-field` → `.mono-input-native`) rather than a bespoke box, so the
|
|
61
|
+
* whole size × color × variant matrix in `input.css` applies verbatim and a
|
|
62
|
+
* search sitting beside a `<mono-input>` in a toolbar matches it exactly. That is
|
|
63
|
+
* also why the prop names, attribute names and converters below mirror
|
|
64
|
+
* `input-core.ts` — markup is portable between the two elements.
|
|
65
|
+
*
|
|
66
|
+
* Deliberately NOT taken from `InputProps`: `type` (pinned to `search`),
|
|
67
|
+
* `required` / `pattern` / `min` / `max` / `step` (form-submit constraints with no
|
|
68
|
+
* meaning for a filter), and `value` / `modelValue` — the debounce below plus the
|
|
69
|
+
* controller own the search term.
|
|
70
|
+
*
|
|
71
|
+
* The magnifier and clear glyphs are delegated to `renderIcon()` (light: UnoCSS
|
|
72
|
+
* `.mono-icon i-mdi-*`; shadow: inline SVG) so the chrome is otherwise identical.
|
|
73
|
+
*/
|
|
74
|
+
export declare const MonoTableSearchCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableSearchCoreInterface> & T;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { TableSearchIconName } from './mono-table-search-core.js';
|
|
3
|
+
declare const MonoTableSearch_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-search-core.js').MonoTableSearchCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Light-DOM `mono-table-search` (default build, `@mono-lit/helper/ui/table`).
|
|
6
|
+
* The icons use the global UnoCSS `.mono-icon i-mdi-*`. All other logic lives in
|
|
7
|
+
* `MonoTableSearchCore`; the shadow build shares the mixin.
|
|
8
|
+
*
|
|
9
|
+
* The element renders `mono-input`'s classes, whose rules ship in the same global
|
|
10
|
+
* `dist/ui/index.css` — so no extra stylesheet is needed for the light build.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MonoTableSearch extends MonoTableSearch_base {
|
|
13
|
+
static styles: import('lit').CSSResult[];
|
|
14
|
+
protected createRenderRoot(): HTMLElement;
|
|
15
|
+
/**
|
|
16
|
+
* Light-DOM slot capture (mirrors `mono-dropdown-table`): a real `<slot>` can't
|
|
17
|
+
* project when the render root IS the host, so the `slot="filter-builder"`
|
|
18
|
+
* child is captured here, lifted out of the host, and re-appended into the
|
|
19
|
+
* `[data-mono-slot]` placeholder the core renders. The node is MOVED (not
|
|
20
|
+
* cloned), so a Vue-authored `<mono-filter-builder>` keeps its reactivity.
|
|
21
|
+
*/
|
|
22
|
+
private _slotsCaptured;
|
|
23
|
+
private _filterSlots;
|
|
24
|
+
connectedCallback(): void;
|
|
25
|
+
private _captureFilterSlot;
|
|
26
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
27
|
+
protected renderIcon(name: TableSearchIconName): TemplateResult;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'mono-table-search': MonoTableSearch;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { TableSearchIconName } from './mono-table-search-core.js';
|
|
3
|
+
declare const MonoTableSearchShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-search-core.js').MonoTableSearchCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Shadow-DOM `mono-table-search` (SSR build, `@mono-lit/helper/ui/shadow/table`).
|
|
6
|
+
* The icons are inline SVG — the global `.mono-icon`/`i-mdi-*` utility CSS can't
|
|
7
|
+
* reach a shadow root. Shares all other logic via `MonoTableSearchCore`.
|
|
8
|
+
*
|
|
9
|
+
* The element renders `mono-input`'s classes, and a shadow root can't see the
|
|
10
|
+
* page stylesheet, so `input.css` is adopted alongside `table.css` — input first
|
|
11
|
+
* so table rules can still override. `input.css`'s bare `mono-input { }` selector
|
|
12
|
+
* simply never matches in here, which is harmless.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MonoTableSearchShadow extends MonoTableSearchShadow_base {
|
|
15
|
+
static styles: import('lit').CSSResult[];
|
|
16
|
+
protected renderIcon(name: TableSearchIconName): TemplateResult;
|
|
17
|
+
/** Shadow build projects the slotted filter-builder through a native `<slot>`. */
|
|
18
|
+
protected _renderFilterSlotContent(): TemplateResult;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { SortOrder } from './mono-data-grid.js';
|
|
3
|
+
import { MonoTableMenuCoreInterface } from './table-menu-core.js';
|
|
4
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
5
|
+
/** Slot regions the sort control lays out. */
|
|
6
|
+
export type TableSortSlotName = 'label';
|
|
7
|
+
/** Per-build icon hook the sort core delegates to. */
|
|
8
|
+
export type TableSortIconName = 'chevron';
|
|
9
|
+
/** Public surface added by the sort core mixin. */
|
|
10
|
+
export declare class MonoTableSortCoreInterface extends MonoTableMenuCoreInterface {
|
|
11
|
+
field: string;
|
|
12
|
+
caption: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
enable: boolean;
|
|
15
|
+
noClear: boolean;
|
|
16
|
+
showIcon: boolean;
|
|
17
|
+
protected renderSlot(name: TableSortSlotName): TemplateResult;
|
|
18
|
+
protected renderIcon(name: TableSortIconName): TemplateResult;
|
|
19
|
+
/** Active sort direction, or null. Read by the builds' `renderIcon`. */
|
|
20
|
+
protected get _current(): SortOrder;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `MonoTableSortCore` — render-mode-agnostic logic for `mono-table-sort`: a
|
|
24
|
+
* column-header sort control whose arrow cycles a SINGLE key `asc → desc → none`
|
|
25
|
+
* (or `asc ↔ desc` with `no-clear`), while right-clicking the header cell opens
|
|
26
|
+
* the `Sort ›` menu — the only place a multi-key sort can be built. The header
|
|
27
|
+
* label is delegated to a `renderSlot('label')`
|
|
28
|
+
* hook (light: a `[data-mono-slot]` placeholder filled with captured nodes;
|
|
29
|
+
* shadow: native `<slot>`) and the up/down chevrons to `renderIcon('chevron')`
|
|
30
|
+
* (light: `i-mdi-chevron-*`; shadow: inline SVG).
|
|
31
|
+
*
|
|
32
|
+
* `updated()` reflects the sort state onto the parent `<th>`/`<td>` via
|
|
33
|
+
* `closest()` — guarded by `isServer` (lit) so it never runs during SSR.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MonoTableSortCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableSortCoreInterface> & T;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { TableSortSlotName, TableSortIconName } from './mono-table-sort-core.js';
|
|
3
|
+
declare const MonoTableSort_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-sort-core.js').MonoTableSortCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Light-DOM `mono-table-sort` (default build, `@mono-lit/helper/ui/table`). A sort
|
|
6
|
+
* control for a column header — place it inside a native `<th>`.
|
|
7
|
+
*
|
|
8
|
+
* Light-DOM Lit replaces the host's children on render, so the user's label
|
|
9
|
+
* nodes are captured once in `connectedCallback` and re-appended into the
|
|
10
|
+
* `[data-mono-slot="label"]` placeholder after each render (reusing the same
|
|
11
|
+
* nodes instead of re-rendering the text, which would otherwise duplicate it).
|
|
12
|
+
* The sort indicator is a single global UnoCSS icon that swaps with the direction
|
|
13
|
+
* (neutral `i-fluent-arrow-sort-16-filled` → `i-ri-arrow-up-long-fill` /
|
|
14
|
+
* `i-ri-arrow-down-long-fill`). All other logic lives in `MonoTableSortCore`; the
|
|
15
|
+
* shadow build shares the mixin.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <th><mono-table-sort :data-grid.prop="table" field="Nama">Name</mono-table-sort></th>
|
|
19
|
+
*/
|
|
20
|
+
export declare class MonoTableSort extends MonoTableSort_base {
|
|
21
|
+
static styles: import('lit').CSSResult[];
|
|
22
|
+
protected createRenderRoot(): HTMLElement;
|
|
23
|
+
/** The captured label nodes (the element's original light-DOM children). */
|
|
24
|
+
private _buckets;
|
|
25
|
+
private _slotsCaptured;
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
28
|
+
protected renderSlot(_name: TableSortSlotName): TemplateResult;
|
|
29
|
+
protected renderIcon(_name: TableSortIconName): TemplateResult;
|
|
30
|
+
private _captureSlots;
|
|
31
|
+
private _placeSlot;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'mono-table-sort': MonoTableSort;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { TableSortSlotName, TableSortIconName } from './mono-table-sort-core.js';
|
|
3
|
+
declare const MonoTableSortShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-sort-core.js').MonoTableSortCoreInterface> & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Shadow-DOM `mono-table-sort` (SSR build, `@mono-lit/helper/ui/shadow/table`). The
|
|
6
|
+
* header label projects through a native `<slot>`; the sort indicator is a single
|
|
7
|
+
* inline SVG that swaps with the direction (the global `i-*` utility CSS can't
|
|
8
|
+
* reach a shadow root) — the fluent neutral glyph and the ri up/down arrows,
|
|
9
|
+
* matching the light build. Shares all other logic via `MonoTableSortCore`.
|
|
10
|
+
*
|
|
11
|
+
* DSD inside a `<th>` parses fine — the custom element wraps the label, and the
|
|
12
|
+
* projected slot content is inline flow content.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MonoTableSortShadow extends MonoTableSortShadow_base {
|
|
15
|
+
static styles: import('lit').CSSResult[];
|
|
16
|
+
protected renderSlot(_name: TableSortSlotName): TemplateResult;
|
|
17
|
+
protected renderIcon(_name: TableSortIconName): TemplateResult;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MonoTableControllerCoreInterface } from './table-controller-core.js';
|
|
3
|
+
import { MonoSummaryType } from './mono-data-grid.js';
|
|
4
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
5
|
+
/** Public surface added by the summary core mixin. */
|
|
6
|
+
export declare class MonoTableSummaryCoreInterface extends MonoTableControllerCoreInterface {
|
|
7
|
+
field?: string;
|
|
8
|
+
type?: MonoSummaryType;
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `MonoTableSummaryCore` — render-mode-agnostic logic for `mono-table-summary`: an
|
|
13
|
+
* aggregate footer cell. The aggregate (type + formatting) is configured centrally
|
|
14
|
+
* in `monoDataGrid(data, { summary: [...] })`; this element only names which
|
|
15
|
+
* summary to show (`field`, optionally `type`/`name`) and renders the controller's
|
|
16
|
+
* formatted result, re-rendering whenever the controller notifies.
|
|
17
|
+
*
|
|
18
|
+
* A `field` with no central spec falls back to a `sum` (the controller
|
|
19
|
+
* auto-registers a default), so a bare `<mono-table-summary field="Price">` also
|
|
20
|
+
* works with zero config.
|
|
21
|
+
*
|
|
22
|
+
* No slots, no icons — light and shadow share the full `render()`.
|
|
23
|
+
*
|
|
24
|
+
* SSR-safe: `dataGrid` is undefined on the server, so it renders an empty shell.
|
|
25
|
+
*/
|
|
26
|
+
export declare const MonoTableSummaryCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableSummaryCoreInterface> & T;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTableSummary_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-summary-core.js').MonoTableSummaryCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Light-DOM `mono-table-summary` (default build, `@mono-lit/helper/ui/table`). An
|
|
5
|
+
* aggregate footer cell — drop it into a `<tfoot>` cell in the column you want
|
|
6
|
+
* summarized and bind the controller with `:data-grid.prop`. The aggregate is
|
|
7
|
+
* configured centrally in `monoDataGrid(data, { summary: [...] })`; this element
|
|
8
|
+
* only names which one to show. Add `mono-table-sticky-foot` to the `<table>` to
|
|
9
|
+
* keep the footer pinned while the body scrolls.
|
|
10
|
+
*
|
|
11
|
+
* Renders into the host (`createRenderRoot`→`this`, styled by the global
|
|
12
|
+
* `dist/ui/index.css`). All logic lives in `MonoTableSummaryCore`; the shadow
|
|
13
|
+
* build shares the mixin. Both register the same tag, so a document loads one.
|
|
14
|
+
*/
|
|
15
|
+
export declare class MonoTableSummary extends MonoTableSummary_base {
|
|
16
|
+
static styles: import('lit').CSSResult[];
|
|
17
|
+
protected createRenderRoot(): HTMLElement;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'mono-table-summary': MonoTableSummary;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const MonoTableSummaryShadow_base: import('../../composables/hybird-prop').Constructor<import('./mono-table-summary-core.js').MonoTableSummaryCoreInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Shadow-DOM `mono-shadow-table-summary` (the opt-in SSR build,
|
|
5
|
+
* `@mono-lit/helper/ui/shadow/table`). Renders into a real shadow root so
|
|
6
|
+
* `@lit-labs/ssr` can serialize it to Declarative Shadow DOM. Shares all logic
|
|
7
|
+
* with the light build via `MonoTableSummaryCore`. Registers the `mono-shadow-*`
|
|
8
|
+
* tag — DISTINCT from the light `<mono-table-summary>` — so both can coexist.
|
|
9
|
+
*/
|
|
10
|
+
export declare class MonoTableSummaryShadow extends MonoTableSummaryShadow_base {
|
|
11
|
+
static styles: import('lit').CSSResult[];
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { MonoColumnSort, MonoDateFilter, MonoEditableTrigger, MonoHeaderFilter, SortOrder } from './mono-data-grid.js';
|
|
3
|
+
import { MonoTableMenuCoreInterface } from './table-menu-core.js';
|
|
4
|
+
import { Constructor } from '../../composables/hybird-prop';
|
|
5
|
+
/** Slot regions the header cell lays out. */
|
|
6
|
+
export type TableThSlotName = 'label';
|
|
7
|
+
/** Per-build icon hook the header core delegates to. */
|
|
8
|
+
export type TableThIconName = 'chevron' | 'funnel';
|
|
9
|
+
/**
|
|
10
|
+
* Horizontal alignment for a column's HEADER cell.
|
|
11
|
+
*
|
|
12
|
+
* Numeric columns are the reason this exists: their bodies are right-aligned by the consumer
|
|
13
|
+
* while the caption stayed left, so every money column read as misaligned.
|
|
14
|
+
*/
|
|
15
|
+
export type TableThAlign = 'left' | 'center' | 'right';
|
|
16
|
+
/** Public surface added by the header-cell core mixin. */
|
|
17
|
+
export declare class MonoTableThCoreInterface extends MonoTableMenuCoreInterface {
|
|
18
|
+
field: string;
|
|
19
|
+
caption: string;
|
|
20
|
+
sort?: boolean | MonoColumnSort;
|
|
21
|
+
editable: boolean;
|
|
22
|
+
editableTrigger?: MonoEditableTrigger;
|
|
23
|
+
required: boolean;
|
|
24
|
+
headerFilter: boolean | MonoHeaderFilter;
|
|
25
|
+
dateFilter: boolean | MonoDateFilter;
|
|
26
|
+
align?: TableThAlign;
|
|
27
|
+
width?: string | number;
|
|
28
|
+
height?: string | number;
|
|
29
|
+
protected renderSlot(name: TableThSlotName): TemplateResult;
|
|
30
|
+
protected renderIcon(name: TableThIconName): TemplateResult;
|
|
31
|
+
/** Active sort direction for this column, or null. Read by the builds' `renderIcon`. */
|
|
32
|
+
protected get _current(): SortOrder;
|
|
33
|
+
/** Whether this column has an active header filter. Read by the builds' `renderIcon`. */
|
|
34
|
+
protected get _filtered(): boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* `MonoTableThCore` — render-mode-agnostic logic for `mono-table-th`, the unified
|
|
38
|
+
* column-header cell. It declares a column's `field`/`caption`, folds the sort
|
|
39
|
+
* behavior into a single `:sort.prop` object (`{ order?, noClear?, disabled? }`),
|
|
40
|
+
* marks a column editable (`editable`), and — with `header-filter` — adds a
|
|
41
|
+
* DevExtreme-style **header filter**: a funnel icon (or the header's right-click
|
|
42
|
+
* menu → "Header Filter") opens a panel of the column's distinct values (fetched
|
|
43
|
+
* via the controller's `distinctValues`, i.e. an OData `$apply=groupby`) with
|
|
44
|
+
* checkboxes; checking some + Apply calls `dataGrid.setColumnFilter(field, values)`.
|
|
45
|
+
*
|
|
46
|
+
* Gestures are fixed, not configurable, and both features split the same way: the
|
|
47
|
+
* ICON (sort arrow / filter funnel) acts on ONE column, replacing whatever else
|
|
48
|
+
* was sorted or filtered, while RIGHT-CLICK always opens the menu, whose `Sort ›`
|
|
49
|
+
* / `Header Filter ›` rows combine columns. One carry-over: once the menu has
|
|
50
|
+
* started a combination and something is still sorted / filtered, the icons
|
|
51
|
+
* combine too — the grid remembers the gesture (`sortCombining` /
|
|
52
|
+
* `columnFilterCombining`) until the last key / filter is gone.
|
|
53
|
+
*
|
|
54
|
+
* The standalone `mono-table-sort` element is unchanged and still supported.
|
|
55
|
+
*/
|
|
56
|
+
export declare const MonoTableThCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoTableThCoreInterface> & T;
|