@public-ui/sample-react 3.0.1-rc.0 → 3.0.2-6ae0104cda0b7b19a5b0d6bbc5f990b9fe544fa0.0
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/README.md +12 -1
- package/dist/assets/Alert-c6ac1427-DOfUkHaF.js +4 -0
- package/dist/assets/Alert-c6ac1427-DOfUkHaF.js.map +1 -0
- package/dist/assets/Collapsible-7be44a00-Vua4x5sY.js +4 -0
- package/dist/assets/Collapsible-7be44a00-Vua4x5sY.js.map +1 -0
- package/dist/assets/CustomSuggestionsOptionsGroup-cdea277e-DtoT6Jun.js +4 -0
- package/dist/assets/CustomSuggestionsOptionsGroup-cdea277e-DtoT6Jun.js.map +1 -0
- package/dist/assets/FieldControlStateWrapper-6c17f96e-BZsAZmNU.js +4 -0
- package/dist/assets/FieldControlStateWrapper-6c17f96e-BZsAZmNU.js.map +1 -0
- package/dist/assets/Heading-31a470a8-xZ2htjK-.js +4 -0
- package/dist/assets/Heading-31a470a8-xZ2htjK-.js.map +1 -0
- package/dist/assets/Icon-e36657fc--rOM4tlI.js +4 -0
- package/dist/assets/Icon-e36657fc--rOM4tlI.js.map +1 -0
- package/dist/assets/Input-b352cf7a-BVqPCCYM.js +4 -0
- package/dist/assets/Input-b352cf7a-BVqPCCYM.js.map +1 -0
- package/dist/assets/InputStateWrapper-38536b7a-BrxwLyBV.js +4 -0
- package/dist/assets/InputStateWrapper-38536b7a-BrxwLyBV.js.map +1 -0
- package/dist/assets/InternalUnderlinedBadgeText-b1330190-CrZl4qii.js +4 -0
- package/dist/assets/InternalUnderlinedBadgeText-b1330190-CrZl4qii.js.map +1 -0
- package/dist/assets/Span-88b22574-D3JlD8if.js +4 -0
- package/dist/assets/Span-88b22574-D3JlD8if.js.map +1 -0
- package/dist/assets/access-and-short-key-f743a5c4-iouwab3k.js +4 -0
- package/dist/assets/access-and-short-key-f743a5c4-iouwab3k.js.map +1 -0
- package/dist/assets/align-d2572387-DI9nOt4Y.js +4 -0
- package/dist/assets/align-d2572387-DI9nOt4Y.js.map +1 -0
- package/dist/assets/align-floating-elements-526ce555-C-ErQpJj.js +4 -0
- package/dist/assets/align-floating-elements-526ce555-C-ErQpJj.js.map +1 -0
- package/dist/assets/associated.controller-22684481-jJ8t48t4.js +4 -0
- package/dist/assets/associated.controller-22684481-jJ8t48t4.js.map +1 -0
- package/dist/assets/clsx-09a06a12-BT_IL7Fz.js +4 -0
- package/dist/assets/clsx-09a06a12-BT_IL7Fz.js.map +1 -0
- package/dist/assets/color-1228dab7-DVtaQVOY.js +4 -0
- package/dist/assets/color-1228dab7-DVtaQVOY.js.map +1 -0
- package/dist/assets/controller-7a002c8f-DFOQfk1N.js +4 -0
- package/dist/assets/controller-7a002c8f-DFOQfk1N.js.map +1 -0
- package/dist/assets/controller-8b5dbe81-M5KQSfGS.js +4 -0
- package/dist/assets/controller-8b5dbe81-M5KQSfGS.js.map +1 -0
- package/dist/assets/controller-ac40e13c-DBZm65Tm.js +4 -0
- package/dist/assets/controller-ac40e13c-DBZm65Tm.js.map +1 -0
- package/dist/assets/controller-cf01f031-D7lkfdMH.js +4 -0
- package/dist/assets/controller-cf01f031-D7lkfdMH.js.map +1 -0
- package/dist/assets/controller-icon-0d71a8a2-CJHcZTLy.js +4 -0
- package/dist/assets/controller-icon-0d71a8a2-CJHcZTLy.js.map +1 -0
- package/dist/assets/custom-class-d73b81b1-BmhegLj3.js +4 -0
- package/dist/assets/custom-class-d73b81b1-BmhegLj3.js.map +1 -0
- package/dist/assets/dev.utils-ffecab2f-B6ua6rhn.js +16 -0
- package/dist/assets/dev.utils-ffecab2f-B6ua6rhn.js.map +1 -0
- package/dist/assets/devtools-a4e8658c-CJfmGy3d.js +16 -0
- package/dist/assets/devtools-a4e8658c-CJfmGy3d.js.map +1 -0
- package/dist/assets/disabled-e1038f54-4wrcSfjB.js +4 -0
- package/dist/assets/disabled-e1038f54-4wrcSfjB.js.map +1 -0
- package/dist/assets/getRenderStates-c4bde254-CYVR9JvL.js +4 -0
- package/dist/assets/getRenderStates-c4bde254-CYVR9JvL.js.map +1 -0
- package/dist/assets/has-closer-798e8f4d-Bye-nyIY.js +4 -0
- package/dist/assets/has-closer-798e8f4d-Bye-nyIY.js.map +1 -0
- package/dist/assets/has-counter-3fc44829-CCRydB93.js +4 -0
- package/dist/assets/has-counter-3fc44829-CCRydB93.js.map +1 -0
- package/dist/assets/hide-label-8b3a8709-nXBnK-Oy.js +4 -0
- package/dist/assets/hide-label-8b3a8709-nXBnK-Oy.js.map +1 -0
- package/dist/assets/href-d9ccbbdf-CcijbtoR.js +4 -0
- package/dist/assets/href-d9ccbbdf-CcijbtoR.js.map +1 -0
- package/dist/assets/i18n-260f0fe9-CwpuaVcz.js +4 -0
- package/dist/assets/i18n-260f0fe9-CwpuaVcz.js.map +1 -0
- package/dist/assets/icons-a9c52ed8-D9SonY16.js +4 -0
- package/dist/assets/icons-a9c52ed8-D9SonY16.js.map +1 -0
- package/dist/assets/image-source-8079f8a5-BZ3KT3RY.js +4 -0
- package/dist/assets/image-source-8079f8a5-BZ3KT3RY.js.map +1 -0
- package/dist/assets/index-B9gfbckw.css +1 -0
- package/dist/assets/index-BxGEzp9g.js +13291 -0
- package/dist/assets/index-BxGEzp9g.js.map +1 -0
- package/dist/assets/isArray-7a60fa7f-CQEkOYWk.js +4 -0
- package/dist/assets/isArray-7a60fa7f-CQEkOYWk.js.map +1 -0
- package/dist/assets/isObject-ffcbbb76-CLygU1TZ.js +4 -0
- package/dist/assets/isObject-ffcbbb76-CLygU1TZ.js.map +1 -0
- package/dist/assets/keyboard-2483c6de-Bn_Qh8Bq.js +4 -0
- package/dist/assets/keyboard-2483c6de-Bn_Qh8Bq.js.map +1 -0
- package/dist/assets/kol-abbr.entry-Bolm0NSt.js +216 -0
- package/dist/assets/kol-abbr.entry-Bolm0NSt.js.map +1 -0
- package/dist/assets/kol-accordion.entry-NoLwBLXC.js +224 -0
- package/dist/assets/kol-accordion.entry-NoLwBLXC.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-CbxVql6I.js +4 -0
- package/dist/assets/kol-alert-wc.entry-CbxVql6I.js.map +1 -0
- package/dist/assets/kol-alert.entry-oMLt3M6A.js +237 -0
- package/dist/assets/kol-alert.entry-oMLt3M6A.js.map +1 -0
- package/dist/assets/kol-avatar-wc.entry-D0nQClaJ.js +4 -0
- package/dist/assets/kol-avatar-wc.entry-D0nQClaJ.js.map +1 -0
- package/dist/assets/kol-avatar.entry-CgmrnpAn.js +202 -0
- package/dist/assets/kol-avatar.entry-CgmrnpAn.js.map +1 -0
- package/dist/assets/kol-badge.entry-Car2yz6I.js +227 -0
- package/dist/assets/kol-badge.entry-Car2yz6I.js.map +1 -0
- package/dist/assets/kol-breadcrumb.entry-BbdxiKPe.js +261 -0
- package/dist/assets/kol-breadcrumb.entry-BbdxiKPe.js.map +1 -0
- package/dist/assets/kol-button-link.entry-BKKTNDbj.js +242 -0
- package/dist/assets/kol-button-link.entry-BKKTNDbj.js.map +1 -0
- package/dist/assets/kol-button-wc.entry-DH--JlTs.js +4 -0
- package/dist/assets/kol-button-wc.entry-DH--JlTs.js.map +1 -0
- package/dist/assets/kol-button.entry-CKqITeIp.js +237 -0
- package/dist/assets/kol-button.entry-CKqITeIp.js.map +1 -0
- package/dist/assets/kol-card-wc.entry-DWClffrm.js +4 -0
- package/dist/assets/kol-card-wc.entry-DWClffrm.js.map +1 -0
- package/dist/assets/kol-card.entry-DPlr_u2l.js +229 -0
- package/dist/assets/kol-card.entry-DPlr_u2l.js.map +1 -0
- package/dist/assets/kol-combobox.entry-DR0CYgcm.js +335 -0
- package/dist/assets/kol-combobox.entry-DR0CYgcm.js.map +1 -0
- package/dist/assets/kol-details.entry-GW2BQsHQ.js +235 -0
- package/dist/assets/kol-details.entry-GW2BQsHQ.js.map +1 -0
- package/dist/assets/kol-drawer.entry-DCNITre-.js +279 -0
- package/dist/assets/kol-drawer.entry-DCNITre-.js.map +1 -0
- package/dist/assets/kol-form.entry-B6wQPmvT.js +265 -0
- package/dist/assets/kol-form.entry-B6wQPmvT.js.map +1 -0
- package/dist/assets/kol-heading.entry-Bh0LVZ8r.js +172 -0
- package/dist/assets/kol-heading.entry-Bh0LVZ8r.js.map +1 -0
- package/dist/assets/kol-icon.entry-DDUeLFov.js +2375 -0
- package/dist/assets/kol-icon.entry-DDUeLFov.js.map +1 -0
- package/dist/assets/kol-image.entry-D139KTNt.js +179 -0
- package/dist/assets/kol-image.entry-D139KTNt.js.map +1 -0
- package/dist/assets/kol-input-checkbox.entry-BTHRrX3e.js +419 -0
- package/dist/assets/kol-input-checkbox.entry-BTHRrX3e.js.map +1 -0
- package/dist/assets/kol-input-color.entry-CBuWOuNt.js +317 -0
- package/dist/assets/kol-input-color.entry-CBuWOuNt.js.map +1 -0
- package/dist/assets/kol-input-date.entry-B-P73Y2F.js +298 -0
- package/dist/assets/kol-input-date.entry-B-P73Y2F.js.map +1 -0
- package/dist/assets/kol-input-email.entry-BJq-PnKX.js +298 -0
- package/dist/assets/kol-input-email.entry-BJq-PnKX.js.map +1 -0
- package/dist/assets/kol-input-file.entry-BEopF7uk.js +332 -0
- package/dist/assets/kol-input-file.entry-BEopF7uk.js.map +1 -0
- package/dist/assets/kol-input-number.entry-CLKym-3l.js +298 -0
- package/dist/assets/kol-input-number.entry-CLKym-3l.js.map +1 -0
- package/dist/assets/kol-input-password.entry-1qJ7jmfb.js +303 -0
- package/dist/assets/kol-input-password.entry-1qJ7jmfb.js.map +1 -0
- package/dist/assets/kol-input-radio.entry-DrwI6ZMB.js +421 -0
- package/dist/assets/kol-input-radio.entry-DrwI6ZMB.js.map +1 -0
- package/dist/assets/kol-input-range.entry-CJXC3J9H.js +347 -0
- package/dist/assets/kol-input-range.entry-CJXC3J9H.js.map +1 -0
- package/dist/assets/kol-input-text.entry-CY8L9IPH.js +298 -0
- package/dist/assets/kol-input-text.entry-CY8L9IPH.js.map +1 -0
- package/dist/assets/kol-kolibri.entry-BcwV7PIb.js +183 -0
- package/dist/assets/kol-kolibri.entry-BcwV7PIb.js.map +1 -0
- package/dist/assets/kol-link-button.entry-e6trlanR.js +237 -0
- package/dist/assets/kol-link-button.entry-e6trlanR.js.map +1 -0
- package/dist/assets/kol-link-wc.entry-BPBco_9m.js +4 -0
- package/dist/assets/kol-link-wc.entry-BPBco_9m.js.map +1 -0
- package/dist/assets/kol-link.entry-BUFKoQMT.js +242 -0
- package/dist/assets/kol-link.entry-BUFKoQMT.js.map +1 -0
- package/dist/assets/kol-modal.entry-Cyr5DKeA.js +233 -0
- package/dist/assets/kol-modal.entry-Cyr5DKeA.js.map +1 -0
- package/dist/assets/kol-nav.entry-JD2qWkrz.js +249 -0
- package/dist/assets/kol-nav.entry-JD2qWkrz.js.map +1 -0
- package/dist/assets/kol-pagination.entry-BI_mjf3q.js +238 -0
- package/dist/assets/kol-pagination.entry-BI_mjf3q.js.map +1 -0
- package/dist/assets/kol-popover-button-wc.entry-DIGauqmI.js +4 -0
- package/dist/assets/kol-popover-button-wc.entry-DIGauqmI.js.map +1 -0
- package/dist/assets/kol-popover-button.entry-DCP1GoCg.js +247 -0
- package/dist/assets/kol-popover-button.entry-DCP1GoCg.js.map +1 -0
- package/dist/assets/kol-popover-wc.entry-CXkKVW2d.js +4 -0
- package/dist/assets/kol-popover-wc.entry-CXkKVW2d.js.map +1 -0
- package/dist/assets/kol-progress.entry-CkhxJKsa.js +255 -0
- package/dist/assets/kol-progress.entry-CkhxJKsa.js.map +1 -0
- package/dist/assets/kol-quote.entry-BIoA91Tr.js +200 -0
- package/dist/assets/kol-quote.entry-BIoA91Tr.js.map +1 -0
- package/dist/assets/kol-select.entry-DASgh1Xe.js +311 -0
- package/dist/assets/kol-select.entry-DASgh1Xe.js.map +1 -0
- package/dist/assets/kol-single-select.entry-DegCl63J.js +353 -0
- package/dist/assets/kol-single-select.entry-DegCl63J.js.map +1 -0
- package/dist/assets/kol-skip-nav.entry-DwyWcCR4.js +194 -0
- package/dist/assets/kol-skip-nav.entry-DwyWcCR4.js.map +1 -0
- package/dist/assets/kol-spin.entry-_1OKxYRN.js +306 -0
- package/dist/assets/kol-spin.entry-_1OKxYRN.js.map +1 -0
- package/dist/assets/kol-split-button.entry-Bkfuv_xP.js +271 -0
- package/dist/assets/kol-split-button.entry-Bkfuv_xP.js.map +1 -0
- package/dist/assets/kol-table-settings-wc.entry-CFUgvICA.js +4 -0
- package/dist/assets/kol-table-settings-wc.entry-CFUgvICA.js.map +1 -0
- package/dist/assets/kol-table-stateful.entry-DmV6R2D_.js +448 -0
- package/dist/assets/kol-table-stateful.entry-DmV6R2D_.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-szSirmOC.js +4 -0
- package/dist/assets/kol-table-stateless-wc.entry-szSirmOC.js.map +1 -0
- package/dist/assets/kol-table-stateless.entry-V9E0aeig.js +423 -0
- package/dist/assets/kol-table-stateless.entry-V9E0aeig.js.map +1 -0
- package/dist/assets/kol-tabs.entry-v7AG7Od0.js +267 -0
- package/dist/assets/kol-tabs.entry-v7AG7Od0.js.map +1 -0
- package/dist/assets/kol-textarea.entry-DFI96nB0.js +297 -0
- package/dist/assets/kol-textarea.entry-DFI96nB0.js.map +1 -0
- package/dist/assets/kol-toast-container.entry-D26dl9Na.js +248 -0
- package/dist/assets/kol-toast-container.entry-D26dl9Na.js.map +1 -0
- package/dist/assets/kol-toolbar.entry--cPwOelv.js +252 -0
- package/dist/assets/kol-toolbar.entry--cPwOelv.js.map +1 -0
- package/dist/assets/kol-tooltip-wc.entry-mX2sItm1.js +4 -0
- package/dist/assets/kol-tooltip-wc.entry-mX2sItm1.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-BnsDO5G4.js +4 -0
- package/dist/assets/kol-tree-item-wc.entry-BnsDO5G4.js.map +1 -0
- package/dist/assets/kol-tree-item.entry-BiO_MDuu.js +210 -0
- package/dist/assets/kol-tree-item.entry-BiO_MDuu.js.map +1 -0
- package/dist/assets/kol-tree-wc.entry-BqTSZkHX.js +4 -0
- package/dist/assets/kol-tree-wc.entry-BqTSZkHX.js.map +1 -0
- package/dist/assets/kol-tree.entry-ByHZJvRG.js +183 -0
- package/dist/assets/kol-tree.entry-ByHZJvRG.js.map +1 -0
- package/dist/assets/kol-version.entry-DetW64yz.js +172 -0
- package/dist/assets/kol-version.entry-DetW64yz.js.map +1 -0
- package/dist/assets/label-bf9966d0-pCJpRuFg.js +4 -0
- package/dist/assets/label-bf9966d0-pCJpRuFg.js.map +1 -0
- package/dist/assets/link-variant-47605ebe-0e_wRIHE.js +4 -0
- package/dist/assets/link-variant-47605ebe-0e_wRIHE.js.map +1 -0
- package/dist/assets/markdown-f827f2ac-Bx43QwDK.js +19 -0
- package/dist/assets/markdown-f827f2ac-Bx43QwDK.js.map +1 -0
- package/dist/assets/open-385de2c9-DTNDalEs.js +4 -0
- package/dist/assets/open-385de2c9-DTNDalEs.js.map +1 -0
- package/dist/assets/orientation-409d844a-BuWPBQG6.js +4 -0
- package/dist/assets/orientation-409d844a-BuWPBQG6.js.map +1 -0
- package/dist/assets/rows-225b4f43-B09e0zQR.js +4 -0
- package/dist/assets/rows-225b4f43-B09e0zQR.js.map +1 -0
- package/dist/assets/show-fabfe6d7-rZfDjDAg.js +4 -0
- package/dist/assets/show-fabfe6d7-rZfDjDAg.js.map +1 -0
- package/dist/assets/spell-check-5559a801-CEPGzlkS.js +4 -0
- package/dist/assets/spell-check-5559a801-CEPGzlkS.js.map +1 -0
- package/dist/assets/suggestions-198125b7-wniQEHUf.js +4 -0
- package/dist/assets/suggestions-198125b7-wniQEHUf.js.map +1 -0
- package/dist/assets/table-settings-c12356ed-D4V9jYmE.js +4 -0
- package/dist/assets/table-settings-c12356ed-D4V9jYmE.js.map +1 -0
- package/dist/assets/test-component.entry-DKKgP7qk.js +4 -0
- package/dist/assets/test-component.entry-DKKgP7qk.js.map +1 -0
- package/dist/assets/tooltip-align-465a8590-Ci7UXASQ.js +4 -0
- package/dist/assets/tooltip-align-465a8590-Ci7UXASQ.js.map +1 -0
- package/dist/assets/tslib.es6-1173d062-BAJoBDh7.js +4 -0
- package/dist/assets/tslib.es6-1173d062-BAJoBDh7.js.map +1 -0
- package/dist/assets/unique-nav-labels-e20db0b7-RV5vUSWs.js +4 -0
- package/dist/assets/unique-nav-labels-e20db0b7-RV5vUSWs.js.map +1 -0
- package/dist/assets/validation-152ea092-CgEo5ZRb.js +4 -0
- package/dist/assets/validation-152ea092-CgEo5ZRb.js.map +1 -0
- package/dist/assets/validation-9d549145-Bc-7ITR2.js +4 -0
- package/dist/assets/validation-9d549145-Bc-7ITR2.js.map +1 -0
- package/dist/index.html +15 -14
- package/index.html +29 -0
- package/package.json +39 -59
- package/src/components/abbr/basic.tsx +1 -1
- package/src/components/button-link/basic.tsx +9 -4
- package/src/components/drawer/basic.tsx +26 -5
- package/src/components/heading/routes.ts +2 -0
- package/src/components/heading/secondary.tsx +20 -0
- package/src/components/input-radio/horizontal.tsx +2 -2
- package/src/components/input-radio/partials/cases.tsx +0 -13
- package/src/components/link/basic.tsx +13 -11
- package/src/components/table/horizontal-scrollbar.tsx +2 -2
- package/src/components/tabs/create-button.tsx +42 -0
- package/src/components/tabs/routes.ts +2 -0
- package/src/components/toolbar/basic.tsx +39 -36
- package/src/react.main.tsx +3 -3
- package/src/style.scss +1 -2
- package/tsconfig.json +2 -1
- package/unocss.config.ts +248 -149
- package/vite.config.ts +32 -0
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -33
- package/.gitignore +0 -41
- package/.prettierignore +0 -4
- package/dist/1006.js +0 -2
- package/dist/1006.js.LICENSE.txt +0 -3
- package/dist/1752.js +0 -2
- package/dist/1752.js.LICENSE.txt +0 -3
- package/dist/1932.js +0 -2
- package/dist/1932.js.LICENSE.txt +0 -3
- package/dist/2069.js +0 -2
- package/dist/2069.js.LICENSE.txt +0 -3
- package/dist/2113.js +0 -2
- package/dist/2113.js.LICENSE.txt +0 -3
- package/dist/2212.js +0 -2
- package/dist/2212.js.LICENSE.txt +0 -3
- package/dist/2231.js +0 -2
- package/dist/2231.js.LICENSE.txt +0 -3
- package/dist/2321.js +0 -2
- package/dist/2321.js.LICENSE.txt +0 -3
- package/dist/2596.js +0 -2
- package/dist/2596.js.LICENSE.txt +0 -3
- package/dist/2827.js +0 -2
- package/dist/2827.js.LICENSE.txt +0 -3
- package/dist/2894.js +0 -2
- package/dist/2894.js.LICENSE.txt +0 -3
- package/dist/3099.js +0 -2
- package/dist/3099.js.LICENSE.txt +0 -3
- package/dist/3151.js +0 -2
- package/dist/3151.js.LICENSE.txt +0 -3
- package/dist/3203.js +0 -2
- package/dist/3203.js.LICENSE.txt +0 -3
- package/dist/3540.js +0 -2
- package/dist/3540.js.LICENSE.txt +0 -3
- package/dist/373.js +0 -2
- package/dist/373.js.LICENSE.txt +0 -3
- package/dist/3874.js +0 -2
- package/dist/3874.js.LICENSE.txt +0 -3
- package/dist/3918.js +0 -2
- package/dist/3918.js.LICENSE.txt +0 -3
- package/dist/3920.js +0 -2
- package/dist/3920.js.LICENSE.txt +0 -3
- package/dist/4030.js +0 -2
- package/dist/4030.js.LICENSE.txt +0 -3
- package/dist/4048.js +0 -2
- package/dist/4048.js.LICENSE.txt +0 -3
- package/dist/4201.js +0 -2
- package/dist/4201.js.LICENSE.txt +0 -3
- package/dist/4389.js +0 -2
- package/dist/4389.js.LICENSE.txt +0 -3
- package/dist/4587.js +0 -2
- package/dist/4587.js.LICENSE.txt +0 -3
- package/dist/4611.js +0 -2
- package/dist/4611.js.LICENSE.txt +0 -3
- package/dist/4641.js +0 -2
- package/dist/4641.js.LICENSE.txt +0 -3
- package/dist/4656.js +0 -2
- package/dist/4656.js.LICENSE.txt +0 -3
- package/dist/4694.js +0 -2
- package/dist/4694.js.LICENSE.txt +0 -3
- package/dist/4876.js +0 -2
- package/dist/4876.js.LICENSE.txt +0 -3
- package/dist/5249.js +0 -2
- package/dist/5249.js.LICENSE.txt +0 -3
- package/dist/5301.js +0 -2
- package/dist/5301.js.LICENSE.txt +0 -3
- package/dist/5690.js +0 -2
- package/dist/5690.js.LICENSE.txt +0 -3
- package/dist/5746.js +0 -2
- package/dist/5746.js.LICENSE.txt +0 -3
- package/dist/6047.js +0 -2
- package/dist/6047.js.LICENSE.txt +0 -3
- package/dist/6066.js +0 -2
- package/dist/6066.js.LICENSE.txt +0 -3
- package/dist/6256.js +0 -2
- package/dist/6256.js.LICENSE.txt +0 -3
- package/dist/6304.js +0 -2
- package/dist/6304.js.LICENSE.txt +0 -3
- package/dist/6509.js +0 -2
- package/dist/6509.js.LICENSE.txt +0 -3
- package/dist/6781.js +0 -2
- package/dist/6781.js.LICENSE.txt +0 -3
- package/dist/6790.js +0 -2
- package/dist/6790.js.LICENSE.txt +0 -3
- package/dist/6984.js +0 -2
- package/dist/6984.js.LICENSE.txt +0 -3
- package/dist/7013.js +0 -2
- package/dist/7013.js.LICENSE.txt +0 -3
- package/dist/7178.js +0 -2
- package/dist/7178.js.LICENSE.txt +0 -3
- package/dist/7347.js +0 -2
- package/dist/7347.js.LICENSE.txt +0 -3
- package/dist/7444.js +0 -2
- package/dist/7444.js.LICENSE.txt +0 -3
- package/dist/7533.js +0 -2
- package/dist/7533.js.LICENSE.txt +0 -3
- package/dist/7535.js +0 -2
- package/dist/7535.js.LICENSE.txt +0 -3
- package/dist/775.js +0 -2
- package/dist/775.js.LICENSE.txt +0 -3
- package/dist/8065.js +0 -2
- package/dist/8065.js.LICENSE.txt +0 -3
- package/dist/8137.js +0 -2
- package/dist/8137.js.LICENSE.txt +0 -3
- package/dist/8180.js +0 -2
- package/dist/8180.js.LICENSE.txt +0 -3
- package/dist/8192.js +0 -2
- package/dist/8192.js.LICENSE.txt +0 -3
- package/dist/8246.js +0 -1
- package/dist/833.js +0 -2
- package/dist/833.js.LICENSE.txt +0 -3
- package/dist/8378.js +0 -2
- package/dist/8378.js.LICENSE.txt +0 -3
- package/dist/8605.js +0 -2
- package/dist/8605.js.LICENSE.txt +0 -3
- package/dist/8625.js +0 -2
- package/dist/8625.js.LICENSE.txt +0 -3
- package/dist/907.js +0 -2
- package/dist/907.js.LICENSE.txt +0 -3
- package/dist/9108.js +0 -2
- package/dist/9108.js.LICENSE.txt +0 -3
- package/dist/9255.js +0 -2
- package/dist/9255.js.LICENSE.txt +0 -3
- package/dist/9322.js +0 -2
- package/dist/9322.js.LICENSE.txt +0 -3
- package/dist/9581.js +0 -2
- package/dist/9581.js.LICENSE.txt +0 -3
- package/dist/9719.js +0 -2
- package/dist/9719.js.LICENSE.txt +0 -3
- package/dist/9731.js +0 -2
- package/dist/9731.js.LICENSE.txt +0 -3
- package/dist/9930.js +0 -2
- package/dist/9930.js.LICENSE.txt +0 -3
- package/dist/9938.js +0 -2
- package/dist/9938.js.LICENSE.txt +0 -3
- package/dist/main.css +0 -4
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -64
- package/prettier.config.js +0 -5
- package/public/index.html +0 -29
- package/webpack.config.js +0 -32
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import{r as S,s as h,w as _,ab as w,n as x,p as m,a as u,h as c,ac as D,d as P,ad as z,H as C,g as T,o as j,v as O}from"./index-BxGEzp9g.js";import{t as f}from"./i18n-260f0fe9-CwpuaVcz.js";import{C as k}from"./keyboard-2483c6de-Bn_Qh8Bq.js";import{v as E,a as A,b as F,c as W,d as M}from"./table-settings-c12356ed-D4V9jYmE.js";import{v as H}from"./label-bf9966d0-pCJpRuFg.js";/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/const v=["top","bottom","both"],K=(t,n)=>{_(t,"_paginationPosition",e=>typeof e=="string"&&v.includes(e),new Set([`PaginationPositionPropType {${v.join(", ")}`]),n,{defaultValue:"bottom"})},L=`@charset "UTF-8";
|
|
4
|
+
/*
|
|
5
|
+
* This file contains all rules for accessibility.
|
|
6
|
+
*/
|
|
7
|
+
@layer kol-global {
|
|
8
|
+
:host {
|
|
9
|
+
/*
|
|
10
|
+
* Minimum size of interactive elements.
|
|
11
|
+
*/
|
|
12
|
+
--a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));
|
|
13
|
+
/*
|
|
14
|
+
* No element should be used without a background and font color whose contrast ratio has
|
|
15
|
+
* not been checked. By initially setting the background color to white and the font color
|
|
16
|
+
* to black, the contrast ratio is ensured and explicit adjustment is forced.
|
|
17
|
+
*/
|
|
18
|
+
background-color: white;
|
|
19
|
+
color: black;
|
|
20
|
+
}
|
|
21
|
+
* {
|
|
22
|
+
/*
|
|
23
|
+
* This rule enables the word dividing for all texts. That is important for high zoom levels.
|
|
24
|
+
*/
|
|
25
|
+
hyphens: auto;
|
|
26
|
+
/*
|
|
27
|
+
* Verdana is an accessible font that can be used without requiring additional loading time.
|
|
28
|
+
*/
|
|
29
|
+
font-family: Verdana;
|
|
30
|
+
/*
|
|
31
|
+
* Letter spacing is required for all texts.
|
|
32
|
+
*/
|
|
33
|
+
letter-spacing: inherit;
|
|
34
|
+
/*
|
|
35
|
+
* This rule enables the word dividing for all texts. That is important for high zoom levels.
|
|
36
|
+
*/
|
|
37
|
+
word-break: break-word;
|
|
38
|
+
/*
|
|
39
|
+
* Word spacing is required for all texts.
|
|
40
|
+
*/
|
|
41
|
+
word-spacing: inherit;
|
|
42
|
+
}
|
|
43
|
+
/*
|
|
44
|
+
* All interactive elements should have a minimum size of rem(44).
|
|
45
|
+
*/
|
|
46
|
+
/* input:not([type='checkbox'], [type='radio'], [type='range']), */
|
|
47
|
+
/* option, */
|
|
48
|
+
/* select, */
|
|
49
|
+
/* textarea, */
|
|
50
|
+
[role=button],
|
|
51
|
+
button:not([role=link]),
|
|
52
|
+
.kol-input .input {
|
|
53
|
+
min-height: var(--a11y-min-size);
|
|
54
|
+
min-width: var(--a11y-min-size);
|
|
55
|
+
}
|
|
56
|
+
/*
|
|
57
|
+
* Some interactive elements should not inherit the font-family and font-size.
|
|
58
|
+
*/
|
|
59
|
+
a,
|
|
60
|
+
button,
|
|
61
|
+
h1,
|
|
62
|
+
h2,
|
|
63
|
+
h3,
|
|
64
|
+
h4,
|
|
65
|
+
h5,
|
|
66
|
+
h6,
|
|
67
|
+
input,
|
|
68
|
+
option,
|
|
69
|
+
select,
|
|
70
|
+
textarea {
|
|
71
|
+
/*
|
|
72
|
+
* All elements should inherit the font family from his parent element.
|
|
73
|
+
*/
|
|
74
|
+
font-family: inherit;
|
|
75
|
+
/*
|
|
76
|
+
* All elements should inherit the font size from his parent element.
|
|
77
|
+
*/
|
|
78
|
+
font-size: inherit;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Sometimes we need the semantic element for accessibility reasons,
|
|
83
|
+
* but we don't want to show it.
|
|
84
|
+
*
|
|
85
|
+
* - https://www.a11yproject.com/posts/how-to-hide-content/
|
|
86
|
+
*/
|
|
87
|
+
.visually-hidden {
|
|
88
|
+
clip: rect(0 0 0 0);
|
|
89
|
+
clip-path: inset(50%);
|
|
90
|
+
height: 1px;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
position: absolute;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
width: 1px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@layer kol-global {
|
|
98
|
+
/*
|
|
99
|
+
* Dieses CSS stellt sicher, dass der Standard-Style
|
|
100
|
+
* von A und Button resettet werden.
|
|
101
|
+
*/
|
|
102
|
+
:is(a, button) {
|
|
103
|
+
background-color: transparent;
|
|
104
|
+
border: none;
|
|
105
|
+
margin: 0;
|
|
106
|
+
padding: 0;
|
|
107
|
+
width: 100%;
|
|
108
|
+
/* 100% needed for custom width from outside */
|
|
109
|
+
}
|
|
110
|
+
/*
|
|
111
|
+
* Ensure elements with hidden attribute to be actually not visible
|
|
112
|
+
* @see https://meowni.ca/hidden.is.a.lie.html
|
|
113
|
+
*/
|
|
114
|
+
[hidden] {
|
|
115
|
+
display: none !important;
|
|
116
|
+
}
|
|
117
|
+
.badge-text-hint {
|
|
118
|
+
background-color: lightgray;
|
|
119
|
+
color: black;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
@layer kol-global {
|
|
123
|
+
:host {
|
|
124
|
+
font-size: rem(16);
|
|
125
|
+
/*
|
|
126
|
+
* The max-width is needed to prevent the table from overflowing the
|
|
127
|
+
* parent node, if the table is wider than the parent node.
|
|
128
|
+
*/
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
}
|
|
131
|
+
* {
|
|
132
|
+
/*
|
|
133
|
+
* We prefer to box-sizing: border-box for all elements.
|
|
134
|
+
*/
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
}
|
|
137
|
+
.kol-span {
|
|
138
|
+
/* KolSpan is a layout component with icons in all directions and a label text in the middle. */
|
|
139
|
+
display: grid;
|
|
140
|
+
place-items: center;
|
|
141
|
+
/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */
|
|
142
|
+
}
|
|
143
|
+
.kol-span__container {
|
|
144
|
+
display: flex;
|
|
145
|
+
place-items: center;
|
|
146
|
+
}
|
|
147
|
+
a,
|
|
148
|
+
button {
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
151
|
+
.kol-span .kol-span__label--hide-label .kol-span__label {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
154
|
+
/* Reset browser agent style. */
|
|
155
|
+
button:disabled {
|
|
156
|
+
color: unset;
|
|
157
|
+
}
|
|
158
|
+
.disabled label,
|
|
159
|
+
.disabled:focus-within label,
|
|
160
|
+
[aria-disabled=true],
|
|
161
|
+
[aria-disabled=true]:focus,
|
|
162
|
+
[disabled],
|
|
163
|
+
[disabled]:focus {
|
|
164
|
+
cursor: not-allowed;
|
|
165
|
+
opacity: 0.5;
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
[aria-disabled=true]:focus .kol-span,
|
|
169
|
+
[disabled]:focus .kol-span {
|
|
170
|
+
outline: none !important;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
@layer kol-component {
|
|
174
|
+
:host {
|
|
175
|
+
display: block;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
@layer kol-component {
|
|
179
|
+
.kol-tooltip {
|
|
180
|
+
display: contents;
|
|
181
|
+
}
|
|
182
|
+
.kol-tooltip__floating {
|
|
183
|
+
animation-duration: 0.25s;
|
|
184
|
+
animation-iteration-count: 1;
|
|
185
|
+
animation-name: fadeInOpacity;
|
|
186
|
+
animation-timing-function: ease-in;
|
|
187
|
+
display: none;
|
|
188
|
+
position: fixed;
|
|
189
|
+
visibility: hidden;
|
|
190
|
+
/* Avoid layout interference - see https://floating-ui.com/docs/computePosition */
|
|
191
|
+
top: 0;
|
|
192
|
+
left: 0;
|
|
193
|
+
max-width: 90vw;
|
|
194
|
+
max-height: 90vh;
|
|
195
|
+
/* Can be used to specify the tooltip-width from the outside. Unset by default. */
|
|
196
|
+
width: var(--kol-tooltip-width);
|
|
197
|
+
}
|
|
198
|
+
.kol-tooltip__arrow {
|
|
199
|
+
background-color: #fff;
|
|
200
|
+
color: #000;
|
|
201
|
+
height: calc(10rem / var(--kolibri-root-font-size, 16));
|
|
202
|
+
position: absolute;
|
|
203
|
+
transform: rotate(45deg);
|
|
204
|
+
width: calc(10rem / var(--kolibri-root-font-size, 16));
|
|
205
|
+
z-index: 999;
|
|
206
|
+
}
|
|
207
|
+
.kol-tooltip__content {
|
|
208
|
+
background-color: #fff;
|
|
209
|
+
color: #000;
|
|
210
|
+
position: relative;
|
|
211
|
+
z-index: 1000;
|
|
212
|
+
}
|
|
213
|
+
@keyframes fadeInOpacity {
|
|
214
|
+
0% {
|
|
215
|
+
opacity: 0;
|
|
216
|
+
}
|
|
217
|
+
100% {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
@layer kol-component {
|
|
223
|
+
.kol-alert {
|
|
224
|
+
display: grid;
|
|
225
|
+
}
|
|
226
|
+
.kol-alert__container {
|
|
227
|
+
place-items: center;
|
|
228
|
+
display: flex;
|
|
229
|
+
}
|
|
230
|
+
.kol-alert__container-content {
|
|
231
|
+
flex-grow: 1;
|
|
232
|
+
}
|
|
233
|
+
.kol-alert__closer {
|
|
234
|
+
/* Visible with forced colors */
|
|
235
|
+
outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
@layer kol-component {
|
|
239
|
+
:host {
|
|
240
|
+
display: inline-block;
|
|
241
|
+
}
|
|
242
|
+
.kol-button {
|
|
243
|
+
font-style: calc(16rem / var(--kolibri-root-font-size, 16));
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
place-items: center;
|
|
246
|
+
text-align: center;
|
|
247
|
+
text-decoration-line: none;
|
|
248
|
+
}
|
|
249
|
+
.kol-button::before {
|
|
250
|
+
/* Render zero-width character as first element to set the baseline correctly. */
|
|
251
|
+
content: "";
|
|
252
|
+
}
|
|
253
|
+
.kol-button__text {
|
|
254
|
+
margin: auto;
|
|
255
|
+
width: 100%;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
@layer kol-component {
|
|
259
|
+
.kol-popover-button__button {
|
|
260
|
+
display: inline-block;
|
|
261
|
+
}
|
|
262
|
+
.kol-popover-button__popover {
|
|
263
|
+
border: 1px solid #000;
|
|
264
|
+
margin: 0;
|
|
265
|
+
padding: 0;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
@layer kol-component {
|
|
269
|
+
.kol-table-settings {
|
|
270
|
+
background: #fff;
|
|
271
|
+
position: absolute;
|
|
272
|
+
right: 0;
|
|
273
|
+
top: 0;
|
|
274
|
+
z-index: 1;
|
|
275
|
+
}
|
|
276
|
+
.kol-table-settings__columns-container {
|
|
277
|
+
margin-top: calc(16rem / var(--kolibri-root-font-size, 16));
|
|
278
|
+
max-height: calc(200rem / var(--kolibri-root-font-size, 16));
|
|
279
|
+
overflow: auto;
|
|
280
|
+
}
|
|
281
|
+
.kol-table-settings__columns {
|
|
282
|
+
align-items: center;
|
|
283
|
+
display: grid;
|
|
284
|
+
gap: calc(8rem / var(--kolibri-root-font-size, 16));
|
|
285
|
+
grid-auto-rows: min-content;
|
|
286
|
+
grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;
|
|
287
|
+
overflow: hidden;
|
|
288
|
+
}
|
|
289
|
+
.kol-table-settings__column {
|
|
290
|
+
display: contents;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
@layer kol-component {
|
|
294
|
+
.kol-table {
|
|
295
|
+
display: block;
|
|
296
|
+
max-width: 100%;
|
|
297
|
+
position: relative;
|
|
298
|
+
}
|
|
299
|
+
.kol-table__scroll-container {
|
|
300
|
+
overflow-x: auto;
|
|
301
|
+
overflow-y: hidden;
|
|
302
|
+
}
|
|
303
|
+
.kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {
|
|
304
|
+
/* @see https://remysharp.com/til/css/focus-ring-default-styles */
|
|
305
|
+
outline: 5px auto Highlight;
|
|
306
|
+
outline: 5px auto -webkit-focus-ring-color;
|
|
307
|
+
outline-offset: 2px;
|
|
308
|
+
}
|
|
309
|
+
.kol-table__table {
|
|
310
|
+
width: 100%;
|
|
311
|
+
}
|
|
312
|
+
.kol-table__caption {
|
|
313
|
+
text-align: start;
|
|
314
|
+
min-height: var(--a11y-min-size);
|
|
315
|
+
padding-right: var(--a11y-min-size);
|
|
316
|
+
}
|
|
317
|
+
.kol-table__focus-element {
|
|
318
|
+
font-size: 0;
|
|
319
|
+
}
|
|
320
|
+
.kol-table__sort-button .kol-button {
|
|
321
|
+
color: inherit;
|
|
322
|
+
}
|
|
323
|
+
.kol-table__body {
|
|
324
|
+
text-align: left;
|
|
325
|
+
}
|
|
326
|
+
.kol-table__body .kol-button__text {
|
|
327
|
+
justify-items: start;
|
|
328
|
+
}
|
|
329
|
+
.kol-table__cell--align-left {
|
|
330
|
+
text-align: left;
|
|
331
|
+
}
|
|
332
|
+
.kol-table__cell--align-left .kol-button__text {
|
|
333
|
+
justify-items: start;
|
|
334
|
+
}
|
|
335
|
+
.kol-table__cell--align-center {
|
|
336
|
+
text-align: center;
|
|
337
|
+
}
|
|
338
|
+
.kol-table__cell--align-center .kol-button__text {
|
|
339
|
+
justify-items: center;
|
|
340
|
+
}
|
|
341
|
+
.kol-table__cell--align-right {
|
|
342
|
+
text-align: right;
|
|
343
|
+
}
|
|
344
|
+
.kol-table__cell--align-right .kol-button__text {
|
|
345
|
+
justify-items: end;
|
|
346
|
+
}
|
|
347
|
+
.kol-table__cell--selection {
|
|
348
|
+
width: var(--a11y-min-size);
|
|
349
|
+
height: var(--a11y-min-size);
|
|
350
|
+
white-space: nowrap;
|
|
351
|
+
}
|
|
352
|
+
.kol-table__spacer {
|
|
353
|
+
display: none;
|
|
354
|
+
}
|
|
355
|
+
.kol-table__selection-label {
|
|
356
|
+
align-items: center;
|
|
357
|
+
cursor: pointer;
|
|
358
|
+
display: flex;
|
|
359
|
+
height: var(--a11y-min-size);
|
|
360
|
+
justify-content: center;
|
|
361
|
+
position: relative;
|
|
362
|
+
width: var(--a11y-min-size);
|
|
363
|
+
}
|
|
364
|
+
.kol-table__selection-label--disabled {
|
|
365
|
+
cursor: not-allowed;
|
|
366
|
+
}
|
|
367
|
+
.kol-table__selection-icon {
|
|
368
|
+
display: block;
|
|
369
|
+
inset: auto;
|
|
370
|
+
position: absolute;
|
|
371
|
+
z-index: 1;
|
|
372
|
+
}
|
|
373
|
+
.kol-table__selection-input {
|
|
374
|
+
appearance: none;
|
|
375
|
+
border-style: solid;
|
|
376
|
+
cursor: pointer;
|
|
377
|
+
margin: 0;
|
|
378
|
+
}
|
|
379
|
+
.kol-table__selection-input:disabled {
|
|
380
|
+
cursor: not-allowed;
|
|
381
|
+
}
|
|
382
|
+
.kol-table__selection-input:before {
|
|
383
|
+
content: "";
|
|
384
|
+
}
|
|
385
|
+
.kol-table__selection-input--checkbox {
|
|
386
|
+
position: relative;
|
|
387
|
+
display: flex;
|
|
388
|
+
height: calc(var(--a11y-min-size) / 2);
|
|
389
|
+
width: calc(var(--a11y-min-size) / 2);
|
|
390
|
+
align-items: center;
|
|
391
|
+
justify-content: center;
|
|
392
|
+
background-color: rgb(255, 255, 255);
|
|
393
|
+
border-width: 2px;
|
|
394
|
+
line-height: 1.5;
|
|
395
|
+
transition: all 0.5s ease 0s;
|
|
396
|
+
}
|
|
397
|
+
.kol-table__selection-input--radio {
|
|
398
|
+
display: flex;
|
|
399
|
+
border-width: 2px;
|
|
400
|
+
border-radius: 100%;
|
|
401
|
+
height: 1.5em;
|
|
402
|
+
min-height: 1.5em;
|
|
403
|
+
min-width: 1.5em;
|
|
404
|
+
padding: 0;
|
|
405
|
+
width: 1.5em;
|
|
406
|
+
}
|
|
407
|
+
.kol-table__selection-input--radio:before {
|
|
408
|
+
border-radius: 100%;
|
|
409
|
+
margin: auto;
|
|
410
|
+
height: 0.75em;
|
|
411
|
+
width: 0.75em;
|
|
412
|
+
}
|
|
413
|
+
.kol-table__selection-input--radio:checked:before {
|
|
414
|
+
background-color: #000;
|
|
415
|
+
}
|
|
416
|
+
@media (forced-colors: active) {
|
|
417
|
+
.kol-table__selection-input--radio:checked:before {
|
|
418
|
+
/* Give it a visible background in forced colors mode */
|
|
419
|
+
background-color: selectedItem !important;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
@layer kol-component {
|
|
424
|
+
.kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {
|
|
425
|
+
display: grid;
|
|
426
|
+
place-items: center;
|
|
427
|
+
}
|
|
428
|
+
@media (min-width: 1024px) {
|
|
429
|
+
.kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {
|
|
430
|
+
grid-auto-flow: column;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
.kol-pagination {
|
|
434
|
+
display: flex;
|
|
435
|
+
flex-wrap: wrap;
|
|
436
|
+
}
|
|
437
|
+
@media (min-width: 1024px) {
|
|
438
|
+
.kol-pagination {
|
|
439
|
+
display: flex;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
@media (max-width: 1024px) {
|
|
443
|
+
.kol-pagination {
|
|
444
|
+
flex-direction: column;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}`,V=L,I=[10,20,50,100],y=t=>t===!0||t===""||typeof t=="object"&&t!==null,N=class{constructor(t){S(this,t),this.catchRef=n=>{this.tableWcRef=n},this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this.handlePagination={onClick:(n,e)=>{var i;typeof((i=this.state._pagination._on)===null||i===void 0?void 0:i.onClick)=="function"&&this.state._pagination._on.onClick(n,e),h(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePage:(n,e)=>{var i;typeof((i=this.state._pagination._on)===null||i===void 0?void 0:i.onChangePage)=="function"&&this.state._pagination._on.onChangePage(n,e),h(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:e}))},onChangePageSize:(n,e)=>{var i;typeof((i=this.state._pagination._on)===null||i===void 0?void 0:i.onChangePageSize)=="function"&&this.state._pagination._on.onChangePageSize(n,e),h(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:e})),h(this,"_pageSize",e)}},this.onSelectionChange=n=>{n.stopPropagation()},this.updateSortedData=()=>{if(this.disableSort){h(this,"_sortedData",this.state._data);return}const n=[...this.state._data];this.sortData.length>0&&n.sort((e,i)=>{for(let a=0;a<this.sortData.length;a++){const o=this.sortData[a],r=o.compareFn(e,i);if(r!==0)return o.direction==="ASC"?r:-r}return 0}),h(this,"_sortedData",n)},this._allowMultiSort=void 0,this._data=void 0,this._dataFoot=void 0,this._headers=void 0,this._label=void 0,this._minWidth=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._tableSettings=void 0,this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom"}}validateAllowMultiSort(t){_(this,"_allowMultiSort",()=>!0,new Set(["boolean"]),t,{defaultValue:!1})}validateData(t){E(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){A(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){K(this,t)}changeCellSort(t){var n;if(typeof t.compareFn=="function"){!this.state._allowMultiSort&&t.key!==((n=this.sortData[0])===null||n===void 0?void 0:n.key)&&(this.sortData=[]);const e=this.sortData.findIndex(i=>i.key===t.key);if(e>=0){const i=this.sortData[e];switch(i.direction){case"ASC":i.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:i.direction="ASC";break}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData()}}validateHeaders(t){w(t,()=>{j(t,()=>{try{t=m(t)}catch{}_(this,"_headers",n=>typeof n=="object"&&n!==null,new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:n=>{var e,i,a,o;const r=g=>{let p=!1;g.forEach(l=>{const s=l.key;if(!s)return;const b=l.sortDirection;(b==="ASC"||b==="DESC")&&typeof l.compareFn=="function"&&((this.state._allowMultiSort||this.sortData.length===0)&&this.sortData.push({label:l.label,key:s,compareFn:l.compareFn,direction:b}),p=!0)}),p&&setTimeout(()=>this.updateSortedData())},d=n;(e=d.horizontal)===null||e===void 0||e.forEach(r),(i=d.vertical)===null||i===void 0||i.forEach(r),d.horizontal&&d.vertical&&((a=d.horizontal)===null||a===void 0?void 0:a.length)>0&&((o=d.vertical)===null||o===void 0?void 0:o.length)>0&&(this.disableSort=!0,O("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)"))}}})})})}validateLabel(t){H(this,t,{required:!0})}validateMinWidth(t){x(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){F(this,t)}validateOn(t){W(this,t)}validateTableSettings(t){M(this,t)}validatePagination(t){try{t=m(t)}catch{}this.showPagination=y(t),_(this,"_pagination",y,new Set(["boolean","KoliBriTablePagination"]),t,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var t;(t=this.tableWcRef)===null||t===void 0||t.addEventListener(u.selectionChange,this.onSelectionChange)}disconnectedCallback(){var t;(t=this.tableWcRef)===null||t===void 0||t.removeEventListener(u.selectionChange,this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings)}selectDisplayedData(t,n,e){return typeof n=="number"&&n>0&&typeof e=="number"&&e>0?(this.pageStartSlice=n*(e-1),this.pageEndSlice=n*e>t.length?t.length:n*e,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(t){const n=f("kol-table-pagination-label",{placeholders:{label:`${this.state._label} (${f(`kol-pagination-position-${t}`)})`}});return c("div",{class:`kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}`},c("span",null,f("kol-table-visible-range",{placeholders:{start:this.pageEndSlice>0?(this.pageStartSlice+1).toString():"0",end:this.pageEndSlice.toString(),total:this.state._pagination&&this.state._pagination._max>0?this.state._pagination._max.toString():Array.isArray(this.state._data)?this.state._data.length.toString():"0"}})),c("div",{class:"kol-table-stateful__pagination-wrapper"},c(D,{class:"test",_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||I,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:n})))}getHeaderCellSortState(t){if(!this.disableSort&&typeof t.compareFn=="function"){if(t.key){const n=this.sortData.find(e=>e.key===t.key);if(n!=null&&n.direction)return n.direction}return"NOS"}}handleSort({key:t}){const n=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find(e=>e.key===t);n&&this.changeCellSort(n)}getSelectedData(t){var n;const e=this.state._selection;if(e){const i=(n=e.keyPropertyName)!==null&&n!==void 0?n:"id",a=this.state._sortedData.filter(o=>t.includes(o[i]));if((e==null?void 0:e.multiple)===!1)return a[0];if(i)return a}return null}handleSelectionChange(t,n){var e;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:typeof n=="object"?n:[n]})}));const a=this.getSelectedData(n);typeof((e=this.state._on)===null||e===void 0?void 0:e[k.onSelectionChange])=="function"&&this.state._on[k.onSelectionChange](t,a),this.host&&P(this.host,u.selectionChange,a)}async getSelection(){var t;const n=((t=this.state._selection)===null||t===void 0?void 0:t.selectedKeys)||[];return this.getSelectedData(n)}render(){var t,n,e,i,a,o;const r=this.selectDisplayedData(this.state._sortedData,this.showPagination?(n=(t=this.state._pagination)===null||t===void 0?void 0:t._pageSize)!==null&&n!==void 0?n:10:this.state._sortedData.length,this.state._pagination._page||1),d=this._paginationPosition==="top"||this._paginationPosition==="both"?this.renderPagination("top"):null,g=this._paginationPosition==="bottom"||this._paginationPosition==="both"?this.renderPagination("bottom"):null,p={horizontal:(i=(e=this.state._headers.horizontal)===null||e===void 0?void 0:e.map(l=>l.map(s=>Object.assign(Object.assign({},s),{sortDirection:this.getHeaderCellSortState(s)}))))!==null&&i!==void 0?i:[],vertical:(o=(a=this.state._headers.vertical)===null||a===void 0?void 0:a.map(l=>l.map(s=>Object.assign(Object.assign({},s),{sortDirection:this.getHeaderCellSortState(s)}))))!==null&&o!==void 0?o:[]};return c(C,{key:"807cc711bfe34ca458ec8aecb858234761e8a1de",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&d,c(z,{key:"2d5f259e75c6f178a06237bef92bc72d3b182ec5",ref:this.catchRef,_data:r,_headerCells:p,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(l,s)=>{this.handleSort(s)},onSelectionChange:(l,s)=>{this.handleSelectionChange(l,s)}},_selection:this.state._selection,_tableSettings:this.state._tableSettings}),this.pageEndSlice>0&&this.showPagination&&g)}get host(){return T(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_tableSettings:["validateTableSettings"],_pagination:["validatePagination"]}}};N.style={default:V};export{N as kol_table_stateful};
|
|
448
|
+
//# sourceMappingURL=kol-table-stateful.entry-DmV6R2D_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kol-table-stateful.entry-DmV6R2D_.js","sources":["../../../../components/dist/esm/kol-table-stateful.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, H as Host, g as getElement } from './index-02bdb302.js';\nimport { m as KolPaginationTag, n as KolTableStatelessWcTag } from './component-names-553d8bfa.js';\nimport { t as translate } from './i18n-260f0fe9.js';\nimport { w as watchValidator, l as setState, M as emptyStringByArrayHandler, B as watchString, k as parseJson, o as objectObjectHandler, D as devHint } from './index-ebe5a881.js';\nimport { C as Callback } from './keyboard-2483c6de.js';\nimport { K as KolEvent, d as dispatchDomEvent } from './events-bad0a075.js';\nimport { v as validateTableData, a as validateTableDataFoot, b as validateTableSelection, c as validateTableStatefulCallbacks, d as validateTableSettings } from './table-settings-c12356ed.js';\nimport { v as validateLabel } from './label-bf9966d0.js';\nimport './i18n-45224cc3.js';\n\nconst paginationPositionPropTypeOptions = ['top', 'bottom', 'both'];\nconst validatePaginationPosition = (component, value) => {\n watchValidator(component, `_paginationPosition`, (value) => typeof value === 'string' && paginationPositionPropTypeOptions.includes(value), new Set([`PaginationPositionPropType {${paginationPositionPropTypeOptions.join(', ')}`]), value, {\n defaultValue: 'bottom',\n });\n};\n\nconst defaultStyleCss = \"@charset \\\"UTF-8\\\";\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-global {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without a background and font color whose contrast ratio has\\n * not been checked. By initially setting the background color to white and the font color\\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n background-color: white;\\n color: black;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /*\\n * All interactive elements should have a minimum size of rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n [role=button],\\n button:not([role=link]),\\n .kol-input .input {\\n min-height: var(--a11y-min-size);\\n min-width: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n }\\n}\\n/**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n.visually-hidden {\\n clip: rect(0 0 0 0);\\n clip-path: inset(50%);\\n height: 1px;\\n overflow: hidden;\\n position: absolute;\\n white-space: nowrap;\\n width: 1px;\\n}\\n\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n border: none;\\n margin: 0;\\n padding: 0;\\n width: 100%;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n background-color: lightgray;\\n color: black;\\n }\\n}\\n@layer kol-global {\\n :host {\\n font-size: rem(16);\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: grid;\\n place-items: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n place-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n cursor: not-allowed;\\n opacity: 0.5;\\n outline: none;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n animation-duration: 0.25s;\\n animation-iteration-count: 1;\\n animation-name: fadeInOpacity;\\n animation-timing-function: ease-in;\\n display: none;\\n position: fixed;\\n visibility: hidden;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n max-width: 90vw;\\n max-height: 90vh;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width);\\n }\\n .kol-tooltip__arrow {\\n background-color: #fff;\\n color: #000;\\n height: calc(10rem / var(--kolibri-root-font-size, 16));\\n position: absolute;\\n transform: rotate(45deg);\\n width: calc(10rem / var(--kolibri-root-font-size, 16));\\n z-index: 999;\\n }\\n .kol-tooltip__content {\\n background-color: #fff;\\n color: #000;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes fadeInOpacity {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n place-items: center;\\n display: flex;\\n }\\n .kol-alert__container-content {\\n flex-grow: 1;\\n }\\n .kol-alert__closer {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: inline-block;\\n }\\n .kol-button {\\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\\n display: inline-flex;\\n place-items: center;\\n text-align: center;\\n text-decoration-line: none;\\n }\\n .kol-button::before {\\n /* Render zero-width character as first element to set the baseline correctly. */\\n content: \\\"\\\";\\n }\\n .kol-button__text {\\n margin: auto;\\n width: 100%;\\n }\\n}\\n@layer kol-component {\\n .kol-popover-button__button {\\n display: inline-block;\\n }\\n .kol-popover-button__popover {\\n border: 1px solid #000;\\n margin: 0;\\n padding: 0;\\n }\\n}\\n@layer kol-component {\\n .kol-table-settings {\\n background: #fff;\\n position: absolute;\\n right: 0;\\n top: 0;\\n z-index: 1;\\n }\\n .kol-table-settings__columns-container {\\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\\n overflow: auto;\\n }\\n .kol-table-settings__columns {\\n align-items: center;\\n display: grid;\\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\\n grid-auto-rows: min-content;\\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\\n overflow: hidden;\\n }\\n .kol-table-settings__column {\\n display: contents;\\n }\\n}\\n@layer kol-component {\\n .kol-table {\\n display: block;\\n max-width: 100%;\\n position: relative;\\n }\\n .kol-table__scroll-container {\\n overflow-x: auto;\\n overflow-y: hidden;\\n }\\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\\n outline: 5px auto Highlight;\\n outline: 5px auto -webkit-focus-ring-color;\\n outline-offset: 2px;\\n }\\n .kol-table__table {\\n width: 100%;\\n }\\n .kol-table__caption {\\n text-align: start;\\n min-height: var(--a11y-min-size);\\n padding-right: var(--a11y-min-size);\\n }\\n .kol-table__focus-element {\\n font-size: 0;\\n }\\n .kol-table__sort-button .kol-button {\\n color: inherit;\\n }\\n .kol-table__body {\\n text-align: left;\\n }\\n .kol-table__body .kol-button__text {\\n justify-items: start;\\n }\\n .kol-table__cell--align-left {\\n text-align: left;\\n }\\n .kol-table__cell--align-left .kol-button__text {\\n justify-items: start;\\n }\\n .kol-table__cell--align-center {\\n text-align: center;\\n }\\n .kol-table__cell--align-center .kol-button__text {\\n justify-items: center;\\n }\\n .kol-table__cell--align-right {\\n text-align: right;\\n }\\n .kol-table__cell--align-right .kol-button__text {\\n justify-items: end;\\n }\\n .kol-table__cell--selection {\\n width: var(--a11y-min-size);\\n height: var(--a11y-min-size);\\n white-space: nowrap;\\n }\\n .kol-table__spacer {\\n display: none;\\n }\\n .kol-table__selection-label {\\n align-items: center;\\n cursor: pointer;\\n display: flex;\\n height: var(--a11y-min-size);\\n justify-content: center;\\n position: relative;\\n width: var(--a11y-min-size);\\n }\\n .kol-table__selection-label--disabled {\\n cursor: not-allowed;\\n }\\n .kol-table__selection-icon {\\n display: block;\\n inset: auto;\\n position: absolute;\\n z-index: 1;\\n }\\n .kol-table__selection-input {\\n appearance: none;\\n border-style: solid;\\n cursor: pointer;\\n margin: 0;\\n }\\n .kol-table__selection-input:disabled {\\n cursor: not-allowed;\\n }\\n .kol-table__selection-input:before {\\n content: \\\"\\\";\\n }\\n .kol-table__selection-input--checkbox {\\n position: relative;\\n display: flex;\\n height: calc(var(--a11y-min-size) / 2);\\n width: calc(var(--a11y-min-size) / 2);\\n align-items: center;\\n justify-content: center;\\n background-color: rgb(255, 255, 255);\\n border-width: 2px;\\n line-height: 1.5;\\n transition: all 0.5s ease 0s;\\n }\\n .kol-table__selection-input--radio {\\n display: flex;\\n border-width: 2px;\\n border-radius: 100%;\\n height: 1.5em;\\n min-height: 1.5em;\\n min-width: 1.5em;\\n padding: 0;\\n width: 1.5em;\\n }\\n .kol-table__selection-input--radio:before {\\n border-radius: 100%;\\n margin: auto;\\n height: 0.75em;\\n width: 0.75em;\\n }\\n .kol-table__selection-input--radio:checked:before {\\n background-color: #000;\\n }\\n @media (forced-colors: active) {\\n .kol-table__selection-input--radio:checked:before {\\n /* Give it a visible background in forced colors mode */\\n background-color: selectedItem !important;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\\n display: grid;\\n place-items: center;\\n }\\n @media (min-width: 1024px) {\\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\\n grid-auto-flow: column;\\n }\\n }\\n .kol-pagination {\\n display: flex;\\n flex-wrap: wrap;\\n }\\n @media (min-width: 1024px) {\\n .kol-pagination {\\n display: flex;\\n }\\n }\\n @media (max-width: 1024px) {\\n .kol-pagination {\\n flex-direction: column;\\n }\\n }\\n}\";\nconst KolTableStatefulDefaultStyle0 = defaultStyleCss;\n\nconst PAGINATION_OPTIONS = [10, 20, 50, 100];\nconst paginationValidator = (value) => value === true || value === '' || (typeof value === 'object' && value !== null);\nconst KolTableStateful = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.catchRef = (ref) => {\n this.tableWcRef = ref;\n };\n this.sortData = [];\n this.showPagination = false;\n this.pageStartSlice = 0;\n this.pageEndSlice = 10;\n this.disableSort = false;\n this.handlePagination = {\n onClick: (event, page) => {\n var _a;\n if (typeof ((_a = this.state._pagination._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {\n this.state._pagination._on.onClick(event, page);\n }\n setState(this, '_pagination', Object.assign(Object.assign({}, this.state._pagination), { _page: page }));\n },\n onChangePage: (event, page) => {\n var _a;\n if (typeof ((_a = this.state._pagination._on) === null || _a === void 0 ? void 0 : _a.onChangePage) === 'function') {\n this.state._pagination._on.onChangePage(event, page);\n }\n setState(this, '_pagination', Object.assign(Object.assign({}, this.state._pagination), { _page: page }));\n },\n onChangePageSize: (event, pageSize) => {\n var _a;\n if (typeof ((_a = this.state._pagination._on) === null || _a === void 0 ? void 0 : _a.onChangePageSize) === 'function') {\n this.state._pagination._on.onChangePageSize(event, pageSize);\n }\n setState(this, '_pagination', Object.assign(Object.assign({}, this.state._pagination), { _pageSize: pageSize }));\n setState(this, '_pageSize', pageSize);\n },\n };\n this.onSelectionChange = (event) => {\n event.stopPropagation();\n };\n this.updateSortedData = () => {\n if (this.disableSort) {\n setState(this, '_sortedData', this.state._data);\n return;\n }\n const sortedData = [...this.state._data];\n if (this.sortData.length > 0) {\n sortedData.sort((a, b) => {\n for (let index = 0; index < this.sortData.length; index++) {\n const data = this.sortData[index];\n const result = data.compareFn(a, b);\n if (result !== 0) {\n return data.direction === 'ASC' ? result : -result;\n }\n }\n return 0;\n });\n }\n setState(this, '_sortedData', sortedData);\n };\n this._allowMultiSort = undefined;\n this._data = undefined;\n this._dataFoot = undefined;\n this._headers = undefined;\n this._label = undefined;\n this._minWidth = undefined;\n this._pagination = undefined;\n this._paginationPosition = 'bottom';\n this._selection = undefined;\n this._on = undefined;\n this._tableSettings = undefined;\n this.state = {\n _allowMultiSort: false,\n _data: [],\n _dataFoot: [],\n _headers: {\n horizontal: [],\n vertical: [],\n },\n _label: '',\n _minWidth: 'auto',\n _pagination: {\n _page: 1,\n _pageSize: 10,\n _max: 0,\n },\n _sortedData: [],\n _paginationPosition: 'bottom',\n };\n }\n validateAllowMultiSort(value) {\n watchValidator(this, '_allowMultiSort', () => true, new Set(['boolean']), value, {\n defaultValue: false,\n });\n }\n validateData(value) {\n validateTableData(this, value, {\n afterPatch: () => {\n setTimeout(this.updateSortedData);\n },\n });\n }\n validateDataFoot(value) {\n validateTableDataFoot(this, value, {\n afterPatch: () => {\n setTimeout(this.updateSortedData);\n },\n });\n }\n validatePaginationPosition(value) {\n validatePaginationPosition(this, value);\n }\n changeCellSort(headerCell) {\n var _a;\n if (typeof headerCell.compareFn === 'function') {\n if (!this.state._allowMultiSort && headerCell.key !== ((_a = this.sortData[0]) === null || _a === void 0 ? void 0 : _a.key)) {\n this.sortData = [];\n }\n const index = this.sortData.findIndex((value) => value.key === headerCell.key);\n if (index >= 0) {\n const settings = this.sortData[index];\n switch (settings.direction) {\n case 'ASC':\n settings.direction = 'DESC';\n break;\n case 'DESC':\n this.sortData.splice(index, 1);\n break;\n default:\n settings.direction = 'ASC';\n break;\n }\n }\n else if (headerCell.key) {\n this.sortData.push({\n label: headerCell.label,\n key: headerCell.key,\n compareFn: headerCell.compareFn,\n direction: 'ASC',\n });\n }\n this.updateSortedData();\n }\n }\n validateHeaders(value) {\n emptyStringByArrayHandler(value, () => {\n objectObjectHandler(value, () => {\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n watchValidator(this, '_headers', (value) => typeof value === 'object' && value !== null, new Set(['KoliBriTableHeaders']), value, {\n hooks: {\n beforePatch: (nextValue) => {\n var _a, _b, _c, _d;\n const applySort = (headers) => {\n let hasSortedCells = false;\n headers.forEach((cell) => {\n const key = cell.key;\n if (!key) {\n return;\n }\n const sortDirection = cell.sortDirection;\n if (sortDirection === 'ASC' || sortDirection === 'DESC') {\n if (typeof cell.compareFn === 'function') {\n if (this.state._allowMultiSort || this.sortData.length === 0) {\n this.sortData.push({ label: cell.label, key, compareFn: cell.compareFn, direction: sortDirection });\n }\n hasSortedCells = true;\n }\n }\n });\n if (hasSortedCells) {\n setTimeout(() => this.updateSortedData());\n }\n };\n const headers = nextValue;\n (_a = headers.horizontal) === null || _a === void 0 ? void 0 : _a.forEach(applySort);\n (_b = headers.vertical) === null || _b === void 0 ? void 0 : _b.forEach(applySort);\n if (headers.horizontal && headers.vertical && ((_c = headers.horizontal) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((_d = headers.vertical) === null || _d === void 0 ? void 0 : _d.length) > 0) {\n this.disableSort = true;\n devHint(`Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)`);\n }\n },\n },\n });\n });\n });\n }\n validateLabel(value) {\n validateLabel(this, value, {\n required: true,\n });\n }\n validateMinWidth(value) {\n watchString(this, '_minWidth', value, {\n defaultValue: undefined,\n });\n }\n validateSelection(value) {\n validateTableSelection(this, value);\n }\n validateOn(value) {\n validateTableStatefulCallbacks(this, value);\n }\n validateTableSettings(value) {\n validateTableSettings(this, value);\n }\n validatePagination(value) {\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n this.showPagination = paginationValidator(value);\n watchValidator(this, '_pagination', paginationValidator, new Set(['boolean', 'KoliBriTablePagination']), value, {\n defaultValue: {\n _page: 1,\n _pageSize: 10,\n _max: 0,\n },\n });\n }\n componentDidLoad() {\n var _a;\n (_a = this.tableWcRef) === null || _a === void 0 ? void 0 : _a.addEventListener(KolEvent.selectionChange, this.onSelectionChange);\n }\n disconnectedCallback() {\n var _a;\n (_a = this.tableWcRef) === null || _a === void 0 ? void 0 : _a.removeEventListener(KolEvent.selectionChange, this.onSelectionChange);\n }\n componentWillLoad() {\n this.validateAllowMultiSort(this._allowMultiSort);\n this.validateData(this._data);\n this.validateDataFoot(this._dataFoot);\n this.validateHeaders(this._headers);\n this.validateLabel(this._label);\n this.validateMinWidth(this._minWidth);\n this.validateOn(this._on);\n this.validatePagination(this._pagination);\n this.validatePaginationPosition(this._paginationPosition);\n this.validateSelection(this._selection);\n this.validateTableSettings(this._tableSettings);\n }\n selectDisplayedData(data, pageSize, page) {\n if (typeof pageSize === 'number' && pageSize > 0 && typeof page === 'number' && page > 0) {\n this.pageStartSlice = pageSize * (page - 1);\n this.pageEndSlice = pageSize * page > data.length ? data.length : pageSize * page;\n return data.slice(this.pageStartSlice, this.pageEndSlice);\n }\n else {\n this.pageStartSlice = 0;\n this.pageEndSlice = data.length;\n return data;\n }\n }\n renderPagination(position) {\n const label = translate('kol-table-pagination-label', {\n placeholders: {\n label: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,\n },\n });\n return (h(\"div\", { class: `kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}` }, h(\"span\", null, translate('kol-table-visible-range', {\n placeholders: {\n start: this.pageEndSlice > 0 ? (this.pageStartSlice + 1).toString() : '0',\n end: this.pageEndSlice.toString(),\n total: this.state._pagination && this.state._pagination._max > 0\n ? this.state._pagination._max.toString()\n : Array.isArray(this.state._data)\n ? this.state._data.length.toString()\n : '0',\n },\n })), h(\"div\", { class: \"kol-table-stateful__pagination-wrapper\" }, h(KolPaginationTag, { class: \"test\", _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: \"bottom\", _max: this.state._pagination._max || this.state._pagination._max || this.state._data.length, _label: label }))));\n }\n getHeaderCellSortState(headerCell) {\n if (!this.disableSort && typeof headerCell.compareFn === 'function') {\n if (headerCell.key) {\n const data = this.sortData.find((value) => value.key === headerCell.key);\n if (data === null || data === void 0 ? void 0 : data.direction) {\n return data.direction;\n }\n }\n return 'NOS';\n }\n }\n handleSort({ key }) {\n const headerCell = [...(this.state._headers.horizontal || []).flat(), ...(this.state._headers.vertical || []).flat()].find((cell) => cell.key === key);\n if (headerCell) {\n this.changeCellSort(headerCell);\n }\n }\n getSelectedData(selectedKeys) {\n var _a;\n const selection = this.state._selection;\n if (selection) {\n const keyPropertyName = (_a = selection.keyPropertyName) !== null && _a !== void 0 ? _a : 'id';\n const data = this.state._sortedData.filter((item) => selectedKeys.includes(item[keyPropertyName]));\n if ((selection === null || selection === void 0 ? void 0 : selection.multiple) === false) {\n return data[0];\n }\n if (keyPropertyName)\n return data;\n }\n return null;\n }\n handleSelectionChange(event, value) {\n var _a;\n const selection = this.state._selection;\n if (selection)\n this.state = Object.assign(Object.assign({}, this.state), { _selection: Object.assign(Object.assign({}, selection), { selectedKeys: typeof value === 'object' ? value : [value] }) });\n const selectedData = this.getSelectedData(value);\n if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a[Callback.onSelectionChange]) === 'function') {\n this.state._on[Callback.onSelectionChange](event, selectedData);\n }\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.selectionChange, selectedData);\n }\n }\n async getSelection() {\n var _a;\n const selectedKeys = ((_a = this.state._selection) === null || _a === void 0 ? void 0 : _a.selectedKeys) || [];\n return this.getSelectedData(selectedKeys);\n }\n render() {\n var _a, _b, _c, _d, _e, _f;\n const displayedData = this.selectDisplayedData(this.state._sortedData, this.showPagination ? ((_b = (_a = this.state._pagination) === null || _a === void 0 ? void 0 : _a._pageSize) !== null && _b !== void 0 ? _b : 10) : this.state._sortedData.length, this.state._pagination._page || 1);\n const paginationTop = this._paginationPosition === 'top' || this._paginationPosition === 'both' ? this.renderPagination('top') : null;\n const paginationBottom = this._paginationPosition === 'bottom' || this._paginationPosition === 'both' ? this.renderPagination('bottom') : null;\n const headerCells = {\n horizontal: (_d = (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) }))))) !== null && _d !== void 0 ? _d : [],\n vertical: (_f = (_e = this.state._headers.vertical) === null || _e === void 0 ? void 0 : _e.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) }))))) !== null && _f !== void 0 ? _f : [],\n };\n return (h(Host, { key: '807cc711bfe34ca458ec8aecb858234761e8a1de', class: \"kol-table-stateful\" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, h(KolTableStatelessWcTag, { key: '2d5f259e75c6f178a06237bef92bc72d3b182ec5', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {\n onSort: (_, payload) => {\n this.handleSort(payload);\n },\n onSelectionChange: (event, value) => {\n this.handleSelectionChange(event, value);\n },\n }, _selection: this.state._selection, _tableSettings: this.state._tableSettings }), this.pageEndSlice > 0 && this.showPagination && paginationBottom));\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_allowMultiSort\": [\"validateAllowMultiSort\"],\n \"_data\": [\"validateData\"],\n \"_dataFoot\": [\"validateDataFoot\"],\n \"_paginationPosition\": [\"validatePaginationPosition\"],\n \"_headers\": [\"validateHeaders\"],\n \"_label\": [\"validateLabel\"],\n \"_minWidth\": [\"validateMinWidth\"],\n \"_selection\": [\"validateSelection\"],\n \"_on\": [\"validateOn\"],\n \"_tableSettings\": [\"validateTableSettings\"],\n \"_pagination\": [\"validatePagination\"]\n }; }\n};\nKolTableStateful.style = {\n default: KolTableStatefulDefaultStyle0\n};\n\nexport { KolTableStateful as kol_table_stateful };\n\n//# sourceMappingURL=kol-table-stateful.entry.js.map"],"names":["paginationPositionPropTypeOptions","validatePaginationPosition","component","value","watchValidator","defaultStyleCss","KolTableStatefulDefaultStyle0","PAGINATION_OPTIONS","paginationValidator","KolTableStateful","hostRef","registerInstance","ref","event","page","_a","setState","pageSize","sortedData","a","b","index","data","result","validateTableData","validateTableDataFoot","headerCell","settings","emptyStringByArrayHandler","objectObjectHandler","parseJson","nextValue","_b","_c","_d","applySort","headers","hasSortedCells","cell","key","sortDirection","devHint","validateLabel","watchString","validateTableSelection","validateTableStatefulCallbacks","validateTableSettings","KolEvent","position","label","translate","h","KolPaginationTag","selectedKeys","selection","keyPropertyName","item","selectedData","Callback","dispatchDomEvent","_e","_f","displayedData","paginationTop","paginationBottom","headerCells","row","column","Host","KolTableStatelessWcTag","_","payload","getElement"],"mappings":"wXAAA;AAAA;AAAA,GAaA,MAAMA,EAAoC,CAAC,MAAO,SAAU,MAAM,EAC5DC,EAA6B,CAACC,EAAWC,IAAU,CACrDC,EAAeF,EAAW,sBAAwBC,GAAU,OAAOA,GAAU,UAAYH,EAAkC,SAASG,CAAK,EAAG,IAAI,IAAI,CAAC,+BAA+BH,EAAkC,KAAK,IAAI,CAAC,EAAE,CAAC,EAAGG,EAAO,CACzO,aAAc,QACtB,CAAK,CACL,EAEME,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAW,CAAE,MAAO,CAC3B,gBAAmB,CAAC,wBAAwB,EAC5C,MAAS,CAAC,cAAc,EACxB,UAAa,CAAC,kBAAkB,EAChC,oBAAuB,CAAC,4BAA4B,EACpD,SAAY,CAAC,iBAAiB,EAC9B,OAAU,CAAC,eAAe,EAC1B,UAAa,CAAC,kBAAkB,EAChC,WAAc,CAAC,mBAAmB,EAClC,IAAO,CAAC,YAAY,EACpB,eAAkB,CAAC,uBAAuB,EAC1C,YAAe,CAAC,oBAAoB,CAC5C,CAAM,CACN,EACA/D,EAAiB,MAAQ,CACrB,QAASH,CACb"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as Ke,h as u,s as He,d as Z,a as Q,i as V,K as ee,F as Me,e as ze,ap as Fe,g as Ie,ab as We,w as we,o as Le,p as Ne}from"./index-BxGEzp9g.js";import{c as S}from"./clsx-09a06a12-BT_IL7Fz.js";import{t as te}from"./i18n-260f0fe9-CwpuaVcz.js";import{C as ae}from"./keyboard-2483c6de-Bn_Qh8Bq.js";import{n as ie}from"./dev.utils-ffecab2f-B6ua6rhn.js";import{v as Be,a as Ge,e as Ue,b as qe,d as Xe}from"./table-settings-c12356ed-D4V9jYmE.js";import{i as x,b as K,r as w,a as F,S as ne,f as Je}from"./isArray-7a60fa7f-CQEkOYWk.js";import{i as Ce}from"./isObject-ffcbbb76-CLygU1TZ.js";import{v as Ye}from"./label-bf9966d0-pCJpRuFg.js";/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/const Ze=(e,t)=>{We(t,()=>{Le(t,()=>{try{t=Ne(t)}catch{}we(e,"_headerCells",a=>typeof a=="object"&&a!==null&&(a.horizontal===void 0||Array.isArray(a.horizontal)&&a.horizontal.find(i=>!Array.isArray(i))===void 0)&&(a.vertical===void 0||Array.isArray(a.vertical)&&a.vertical.find(i=>!Array.isArray(i))===void 0)&&!0,new Set(["TableHeaderCellsPropType"]),t)})})};var Qe="[object AsyncFunction]",Ve="[object Function]",et="[object GeneratorFunction]",tt="[object Proxy]";function $e(e){if(!Ce(e))return!1;var t=K(e);return t==Ve||t==et||t==Qe||t==tt}var at=w["__core-js_shared__"];const N=at;var re=function(){var e=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function it(e){return!!re&&re in e}var nt=Function.prototype,rt=nt.toString;function k(e){if(e!=null){try{return rt.call(e)}catch{}try{return e+""}catch{}}return""}var ot=/[\\^$.*+?()[\]{}|]/g,st=/^\[object .+?Constructor\]$/,lt=Function.prototype,ct=Object.prototype,dt=lt.toString,ht=ct.hasOwnProperty,ut=RegExp("^"+dt.call(ht).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ft(e){if(!Ce(e)||it(e))return!1;var t=$e(e)?ut:st;return t.test(k(e))}function _t(e,t){return e==null?void 0:e[t]}function O(e,t){var a=_t(e,t);return ft(a)?a:void 0}var pt=O(w,"WeakMap");const U=pt;var bt=9007199254740991,vt=/^(?:0|[1-9]\d*)$/;function gt(e,t){var a=typeof e;return t=t??bt,!!t&&(a=="number"||a!="symbol"&&vt.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){return e===t||e!==e&&t!==t}var yt=9007199254740991;function Ee(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yt}function mt(e){return e!=null&&Ee(e.length)&&!$e(e)}var St=Object.prototype;function Tt(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||St;return e===a}function At(e,t){for(var a=-1,i=Array(e);++a<e;)i[a]=t(a);return i}var wt="[object Arguments]";function oe(e){return x(e)&&K(e)==wt}var De=Object.prototype,Ct=De.hasOwnProperty,$t=De.propertyIsEnumerable,kt=oe(function(){return arguments}())?oe:function(e){return x(e)&&Ct.call(e,"callee")&&!$t.call(e,"callee")};const Et=kt;function Dt(){return!1}var Oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,se=Oe&&typeof module=="object"&&module&&!module.nodeType&&module,Ot=se&&se.exports===Oe,le=Ot?w.Buffer:void 0,Pt=le?le.isBuffer:void 0,xt=Pt||Dt;const q=xt;var jt="[object Arguments]",Rt="[object Array]",Kt="[object Boolean]",Ht="[object Date]",Mt="[object Error]",zt="[object Function]",Ft="[object Map]",It="[object Number]",Wt="[object Object]",Lt="[object RegExp]",Nt="[object Set]",Bt="[object String]",Gt="[object WeakMap]",Ut="[object ArrayBuffer]",qt="[object DataView]",Xt="[object Float32Array]",Jt="[object Float64Array]",Yt="[object Int8Array]",Zt="[object Int16Array]",Qt="[object Int32Array]",Vt="[object Uint8Array]",ea="[object Uint8ClampedArray]",ta="[object Uint16Array]",aa="[object Uint32Array]",p={};p[Xt]=p[Jt]=p[Yt]=p[Zt]=p[Qt]=p[Vt]=p[ea]=p[ta]=p[aa]=!0;p[jt]=p[Rt]=p[Ut]=p[Kt]=p[qt]=p[Ht]=p[Mt]=p[zt]=p[Ft]=p[It]=p[Wt]=p[Lt]=p[Nt]=p[Bt]=p[Gt]=!1;function ia(e){return x(e)&&Ee(e.length)&&!!p[K(e)]}function na(e){return function(t){return e(t)}}var Pe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P=Pe&&typeof module=="object"&&module&&!module.nodeType&&module,ra=P&&P.exports===Pe,B=ra&&Je.process,oa=function(){try{var e=P&&P.require&&P.require("util").types;return e||B&&B.binding&&B.binding("util")}catch{}}();const ce=oa;var de=ce&&ce.isTypedArray,sa=de?na(de):ia;const xe=sa;var la=Object.prototype,ca=la.hasOwnProperty;function da(e,t){var a=F(e),i=!a&&Et(e),r=!a&&!i&&q(e),n=!a&&!i&&!r&&xe(e),o=a||i||r||n,s=o?At(e.length,String):[],l=s.length;for(var c in e)ca.call(e,c)&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||gt(c,l)))&&s.push(c);return s}function ha(e,t){return function(a){return e(t(a))}}var ua=ha(Object.keys,Object);const fa=ua;var _a=Object.prototype,pa=_a.hasOwnProperty;function ba(e){if(!Tt(e))return fa(e);var t=[];for(var a in Object(e))pa.call(e,a)&&a!="constructor"&&t.push(a);return t}function va(e){return mt(e)?da(e):ba(e)}var ga=O(Object,"create");const j=ga;function ya(){this.__data__=j?j(null):{},this.size=0}function ma(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sa="__lodash_hash_undefined__",Ta=Object.prototype,Aa=Ta.hasOwnProperty;function wa(e){var t=this.__data__;if(j){var a=t[e];return a===Sa?void 0:a}return Aa.call(t,e)?t[e]:void 0}var Ca=Object.prototype,$a=Ca.hasOwnProperty;function ka(e){var t=this.__data__;return j?t[e]!==void 0:$a.call(t,e)}var Ea="__lodash_hash_undefined__";function Da(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=j&&t===void 0?Ea:t,this}function $(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var i=e[t];this.set(i[0],i[1])}}$.prototype.clear=ya;$.prototype.delete=ma;$.prototype.get=wa;$.prototype.has=ka;$.prototype.set=Da;function Oa(){this.__data__=[],this.size=0}function W(e,t){for(var a=e.length;a--;)if(ke(e[a][0],t))return a;return-1}var Pa=Array.prototype,xa=Pa.splice;function ja(e){var t=this.__data__,a=W(t,e);if(a<0)return!1;var i=t.length-1;return a==i?t.pop():xa.call(t,a,1),--this.size,!0}function Ra(e){var t=this.__data__,a=W(t,e);return a<0?void 0:t[a][1]}function Ka(e){return W(this.__data__,e)>-1}function Ha(e,t){var a=this.__data__,i=W(a,e);return i<0?(++this.size,a.push([e,t])):a[i][1]=t,this}function T(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var i=e[t];this.set(i[0],i[1])}}T.prototype.clear=Oa;T.prototype.delete=ja;T.prototype.get=Ra;T.prototype.has=Ka;T.prototype.set=Ha;var Ma=O(w,"Map");const R=Ma;function za(){this.size=0,this.__data__={hash:new $,map:new(R||T),string:new $}}function Fa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function L(e,t){var a=e.__data__;return Fa(t)?a[typeof t=="string"?"string":"hash"]:a.map}function Ia(e){var t=L(this,e).delete(e);return this.size-=t?1:0,t}function Wa(e){return L(this,e).get(e)}function La(e){return L(this,e).has(e)}function Na(e,t){var a=L(this,e),i=a.size;return a.set(e,t),this.size+=a.size==i?0:1,this}function E(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var i=e[t];this.set(i[0],i[1])}}E.prototype.clear=za;E.prototype.delete=Ia;E.prototype.get=Wa;E.prototype.has=La;E.prototype.set=Na;function Ba(e,t){for(var a=-1,i=t.length,r=e.length;++a<i;)e[r+a]=t[a];return e}function Ga(){this.__data__=new T,this.size=0}function Ua(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function qa(e){return this.__data__.get(e)}function Xa(e){return this.__data__.has(e)}var Ja=200;function Ya(e,t){var a=this.__data__;if(a instanceof T){var i=a.__data__;if(!R||i.length<Ja-1)return i.push([e,t]),this.size=++a.size,this;a=this.__data__=new E(i)}return a.set(e,t),this.size=a.size,this}function A(e){var t=this.__data__=new T(e);this.size=t.size}A.prototype.clear=Ga;A.prototype.delete=Ua;A.prototype.get=qa;A.prototype.has=Xa;A.prototype.set=Ya;function Za(e,t){for(var a=-1,i=e==null?0:e.length,r=0,n=[];++a<i;){var o=e[a];t(o,a,e)&&(n[r++]=o)}return n}function Qa(){return[]}var Va=Object.prototype,ei=Va.propertyIsEnumerable,he=Object.getOwnPropertySymbols,ti=he?function(e){return e==null?[]:(e=Object(e),Za(he(e),function(t){return ei.call(e,t)}))}:Qa;const ai=ti;function ii(e,t,a){var i=t(e);return F(e)?i:Ba(i,a(e))}function ue(e){return ii(e,va,ai)}var ni=O(w,"DataView");const X=ni;var ri=O(w,"Promise");const J=ri;var oi=O(w,"Set");const Y=oi;var fe="[object Map]",si="[object Object]",_e="[object Promise]",pe="[object Set]",be="[object WeakMap]",ve="[object DataView]",li=k(X),ci=k(R),di=k(J),hi=k(Y),ui=k(U),C=K;(X&&C(new X(new ArrayBuffer(1)))!=ve||R&&C(new R)!=fe||J&&C(J.resolve())!=_e||Y&&C(new Y)!=pe||U&&C(new U)!=be)&&(C=function(e){var t=K(e),a=t==si?e.constructor:void 0,i=a?k(a):"";if(i)switch(i){case li:return ve;case ci:return fe;case di:return _e;case hi:return pe;case ui:return be}return t});const ge=C;var fi=w.Uint8Array;const ye=fi;var _i="__lodash_hash_undefined__";function pi(e){return this.__data__.set(e,_i),this}function bi(e){return this.__data__.has(e)}function I(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new E;++t<a;)this.add(e[t])}I.prototype.add=I.prototype.push=pi;I.prototype.has=bi;function vi(e,t){for(var a=-1,i=e==null?0:e.length;++a<i;)if(t(e[a],a,e))return!0;return!1}function gi(e,t){return e.has(t)}var yi=1,mi=2;function je(e,t,a,i,r,n){var o=a&yi,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=n.get(e),g=n.get(t);if(c&&g)return c==t&&g==e;var _=-1,d=!0,b=a&mi?new I:void 0;for(n.set(e,t),n.set(t,e);++_<s;){var h=e[_],f=t[_];if(i)var y=o?i(f,h,_,t,e,n):i(h,f,_,e,t,n);if(y!==void 0){if(y)continue;d=!1;break}if(b){if(!vi(t,function(v,m){if(!gi(b,m)&&(h===v||r(h,v,a,i,n)))return b.push(m)})){d=!1;break}}else if(!(h===f||r(h,f,a,i,n))){d=!1;break}}return n.delete(e),n.delete(t),d}function Si(e){var t=-1,a=Array(e.size);return e.forEach(function(i,r){a[++t]=[r,i]}),a}function Ti(e){var t=-1,a=Array(e.size);return e.forEach(function(i){a[++t]=i}),a}var Ai=1,wi=2,Ci="[object Boolean]",$i="[object Date]",ki="[object Error]",Ei="[object Map]",Di="[object Number]",Oi="[object RegExp]",Pi="[object Set]",xi="[object String]",ji="[object Symbol]",Ri="[object ArrayBuffer]",Ki="[object DataView]",me=ne?ne.prototype:void 0,G=me?me.valueOf:void 0;function Hi(e,t,a,i,r,n,o){switch(a){case Ki:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ri:return!(e.byteLength!=t.byteLength||!n(new ye(e),new ye(t)));case Ci:case $i:case Di:return ke(+e,+t);case ki:return e.name==t.name&&e.message==t.message;case Oi:case xi:return e==t+"";case Ei:var s=Si;case Pi:var l=i&Ai;if(s||(s=Ti),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;i|=wi,o.set(e,t);var g=je(s(e),s(t),i,r,n,o);return o.delete(e),g;case ji:if(G)return G.call(e)==G.call(t)}return!1}var Mi=1,zi=Object.prototype,Fi=zi.hasOwnProperty;function Ii(e,t,a,i,r,n){var o=a&Mi,s=ue(e),l=s.length,c=ue(t),g=c.length;if(l!=g&&!o)return!1;for(var _=l;_--;){var d=s[_];if(!(o?d in t:Fi.call(t,d)))return!1}var b=n.get(e),h=n.get(t);if(b&&h)return b==t&&h==e;var f=!0;n.set(e,t),n.set(t,e);for(var y=o;++_<l;){d=s[_];var v=e[d],m=t[d];if(i)var D=o?i(m,v,d,t,e,n):i(v,m,d,e,t,n);if(!(D===void 0?v===m||r(v,m,a,i,n):D)){f=!1;break}y||(y=d=="constructor")}if(f&&!y){var H=e.constructor,M=t.constructor;H!=M&&"constructor"in e&&"constructor"in t&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(f=!1)}return n.delete(e),n.delete(t),f}var Wi=1,Se="[object Arguments]",Te="[object Array]",z="[object Object]",Li=Object.prototype,Ae=Li.hasOwnProperty;function Ni(e,t,a,i,r,n){var o=F(e),s=F(t),l=o?Te:ge(e),c=s?Te:ge(t);l=l==Se?z:l,c=c==Se?z:c;var g=l==z,_=c==z,d=l==c;if(d&&q(e)){if(!q(t))return!1;o=!0,g=!1}if(d&&!g)return n||(n=new A),o||xe(e)?je(e,t,a,i,r,n):Hi(e,t,l,a,i,r,n);if(!(a&Wi)){var b=g&&Ae.call(e,"__wrapped__"),h=_&&Ae.call(t,"__wrapped__");if(b||h){var f=b?e.value():e,y=h?t.value():t;return n||(n=new A),r(f,y,a,i,n)}}return d?(n||(n=new A),Ii(e,t,a,i,r,n)):!1}function Re(e,t,a,i,r){return e===t?!0:e==null||t==null||!x(e)&&!x(t)?e!==e&&t!==t:Ni(e,t,a,i,Re,r)}function Bi(e,t){return Re(e,t)}const Gi=/^\d+(\.\d+)?([a-z]+|%)?$/,Ui=(e,t,a)=>{we(e,"_minWidth",i=>typeof i=="string"&&Gi.test(i),new Set(["String","/^\\d+(\\.\\d+)?([a-z]+|%)?$/"]),t,a)},an=class{constructor(e){Ke(this,e),this.horizontal=!0,this.cellsToRenderTimeouts=new Map,this.dataToKeyMap=new Map,this.checkboxRefs=[],this.renderTableRow=(t,a,i,r=!1)=>{var n,o;let s=String(a);return this.horizontal&&(!((n=t[0])===null||n===void 0)&&n.data)&&(s=(o=this.getDataKey(t[0].data))!==null&&o!==void 0?o:s),u("tr",{class:S("kol-table__row",{"kol-table__row--body":!r,"kol-table__row--footer":r}),key:`row-${s}`},this.renderSelectionCell(t,a),t.map((l,c)=>this.renderTableCell(l,a,c,i)))},this.renderTableCell=(t,a,i,r)=>{const n=this.getColumnSettings(t);if(n&&!n.visible)return"";let o=`${a}-${i}-${t.label}`;if(t.data){const s=this.getDataKey(t.data);o=s?`${s}-${this.horizontal?i:a}`:o}return t.headerCell?this.renderHeadingCell(t,a,i,r):u("td",{key:`cell-${o}`,class:S("kol-table__cell kol-table__cell--body",{[`kol-table__cell--align-${t.textAlign}`]:t.textAlign}),colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:n!=null&&n.width?`${n.width}ch`:t.width},ref:typeof t.render=="function"?s=>{this.cellRender(t,s)}:void 0},typeof t.render!="function"?t.label:"")},this.state={_data:[],_headerCells:{horizontal:[],vertical:[]},_label:"",_minWidth:"auto"},this.tableDivElementHasScrollbar=!1,this.previousHeaderCells=void 0,this._data=void 0,this._dataFoot=void 0,this._headerCells=void 0,this._label=void 0,this._minWidth=void 0,this._on=void 0,this._selection=void 0,this._tableSettings=void 0}validateData(e){Be(this,e,{beforePatch:t=>{this.updateDataToKeyMap(t)}})}validateDataFoot(e){Ge(this,e)}validateHeaderCells(e){Ze(this,e),Bi(this.previousHeaderCells,this.state._headerCells)||this.initializeTableSettings(),this.previousHeaderCells=this.state._headerCells}validateLabel(e){Ye(this,e,{required:!0})}validateMinWidth(e){Ui(this,e)}validateOn(e){Ue(this,e)}validateSelection(e){qe(this,e)}validateTableSettings(e){Xe(this,e)}handleKeyDown(e){var t;if(e.key==="ArrowUp"||e.key==="ArrowDown"){const a=(t=this.tableDivElement)===null||t===void 0?void 0:t.querySelector(":focus");let i=this.checkboxRefs.indexOf(a);i>-1&&(e.preventDefault(),e.key==="ArrowDown"?(i=(i+1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()):e.key==="ArrowUp"&&(e.preventDefault(),i=(i+this.checkboxRefs.length-1)%this.checkboxRefs.length,this.checkboxRefs[i].focus()))}}componentDidRender(){this.checkDivElementScrollbar()}componentDidLoad(){this.tableDivElement&&ResizeObserver&&(this.tableDivElementResizeObserver=new ResizeObserver(this.checkDivElementScrollbar.bind(this)),this.tableDivElementResizeObserver.observe(this.tableDivElement))}handleSettingsChange(e){He(this,"_tableSettings",e.detail)}disconnectedCallback(){var e;(e=this.tableDivElementResizeObserver)===null||e===void 0||e.disconnect()}checkDivElementScrollbar(){this.tableDivElement&&(this.tableDivElementHasScrollbar=this.tableDivElement.scrollWidth>this.tableDivElement.clientWidth)}updateDataToKeyMap(e){e.forEach(t=>{this.dataToKeyMap.has(t)||this.dataToKeyMap.set(t,ie())}),this.dataToKeyMap.forEach((t,a)=>{e.includes(a)||this.dataToKeyMap.delete(a)})}getDataKey(e){return this.dataToKeyMap.get(e)}cellRender(e,t){t&&(clearTimeout(this.cellsToRenderTimeouts.get(t)),this.cellsToRenderTimeouts.set(t,setTimeout(()=>{if(typeof e.render=="function"){const a=e.render(t,e,e.data,this.state._data);typeof a=="string"&&(t.textContent=a)}})))}getNumberOfCols(e,t){let a=0;return e.forEach(i=>{let r=0;Array.isArray(i)&&i.forEach(n=>{var o;return r+=(o=n.colSpan)!==null&&o!==void 0?o:1}),a<r&&(a=r)}),a===0&&(a=t.length),a}getNumberOfRows(e,t){var a;let i=0;return e.forEach(r=>{let n=0;Array.isArray(r)&&r.forEach(o=>{var s;return n+=(s=o.rowSpan)!==null&&s!==void 0?s:1}),i<n&&(i=n)}),i===0?i=t.length:i-=((a=this.state._dataFoot)===null||a===void 0?void 0:a.length)||0,i}getThePrimaryHeadersWithKeysIfExists(e){const t=[];return e.forEach(a=>{a.forEach(i=>{typeof i.key=="string"&&t.push(i)})}),t}getPrimaryHeaders(e){var t,a;let i=this.getThePrimaryHeadersWithKeysIfExists((t=e.horizontal)!==null&&t!==void 0?t:[]);return this.horizontal=!0,i.length===0&&(i=this.getThePrimaryHeadersWithKeysIfExists((a=e.vertical)!==null&&a!==void 0?a:[]),i.length>0&&(this.horizontal=!1)),i}getColumnPositionMap(){var e;const t=new Map;return(e=this.state._tableSettings)===null||e===void 0||e.columns.forEach(a=>{t.set(a.key,a.position)}),t}sortByColumnPosition(e){const t=this.getColumnPositionMap();return[...e].sort((a,i)=>{var r,n,o,s;const l=(n=t.get((r=a.key)!==null&&r!==void 0?r:""))!==null&&n!==void 0?n:Number.MAX_SAFE_INTEGER,c=(s=t.get((o=i.key)!==null&&o!==void 0?o:""))!==null&&s!==void 0?s:Number.MAX_SAFE_INTEGER;return l-c})}createDataField(e,t,a){var i;t.horizontal=Array.isArray(t==null?void 0:t.horizontal)?t.horizontal:[],t.vertical=Array.isArray(t==null?void 0:t.vertical)?t.vertical:[];const r=this.getPrimaryHeaders(t),n=this.getNumberOfCols(t.horizontal,e);let o=this.getNumberOfRows(t.vertical,e),s=0;a&&(s=o,o+=((i=this.state._dataFoot)===null||i===void 0?void 0:i.length)||0);const l=[],c=[],g=[];t.vertical.forEach((d,b)=>{c[b]=0,g[b]=[]});const _=this.sortByColumnPosition(r);for(let d=s;d<o;d++){const b=[];t.vertical.forEach((h,f)=>{let y=0;if(g[f].forEach(v=>y+=v),y<=d){const v=h[d-y+c[f]];if(typeof v=="object"){b.push(Object.assign(Object.assign({},v),{headerCell:!0,data:{}}));let m=1;if(typeof v.rowSpan=="number"&&v.rowSpan>1&&(m=v.rowSpan),g[f].push(m),typeof v.colSpan=="number"&&v.colSpan>1)for(let D=1;D<v.colSpan;D++)g[f+D].push(m);c[f]++}}});for(let h=0;h<n;h++)if(this.horizontal===!0){const f=a&&this.state._dataFoot?this.state._dataFoot[d-s]:e[d];typeof _[h]=="object"&&_[h]!==null&&typeof _[h].key=="string"&&typeof f=="object"&&f!==null&&b.push(Object.assign(Object.assign({},_[h]),{colSpan:void 0,data:f,label:f[_[h].key],rowSpan:void 0}))}else typeof _[d]=="object"&&_[d]!==null&&typeof _[d].key=="string"&&typeof e[h]=="object"&&e[h]!==null&&b.push(Object.assign(Object.assign({},_[d]),{colSpan:void 0,data:e[h],label:e[h][_[d].key],rowSpan:void 0}));l.push(b)}if(e.length===0){let d=0,b=0;Array.isArray(t.horizontal)&&t.horizontal.length>0&&t.horizontal[0].forEach(f=>{d+=f.colSpan||1}),Array.isArray(t.vertical)&&t.vertical.length>0&&(d-=t.vertical.length,t.vertical[0].forEach(f=>{b+=f.rowSpan||1}));const h={colSpan:d,label:te("kol-no-entries"),render:void 0,rowSpan:Math.max(b,1)};l.length===0?l.push([h]):l[0].push(h)}return l}handleSelectionChangeCallbackAndEvent(e,t){var a;typeof((a=this.state._on)===null||a===void 0?void 0:a[ae.onSelectionChange])=="function"&&this.state._on[ae.onSelectionChange](e,t),this.host&&Z(this.host,Q.selectionChange,t)}initializeTableSettings(){if(this._tableSettings)return;const e=this.getPrimaryHeaders(this.state._headerCells);this.state._tableSettings||(this.state._tableSettings={columns:[]}),this.state._tableSettings.columns=e.filter(t=>t.key).map((t,a)=>{var i;return{key:(i=t.key)!==null&&i!==void 0?i:ie(),label:t.label,position:a,visible:!0}})}componentWillLoad(){this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaderCells(this._headerCells),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validateOn(this._on),this.validateSelection(this._selection),this.validateTableSettings(this._tableSettings)}renderSelectionCell(e,t){var a,i,r;const n=this.state._selection;if(!n)return"";const o=this.getSelectionKeyPropertyName(),s=(a=e[0])===null||a===void 0?void 0:a.data;if(!s)return"";const l=s[o],c=n.multiple||n.multiple===void 0,g=(i=n==null?void 0:n.selectedKeys)===null||i===void 0?void 0:i.includes(l),_=(r=n==null?void 0:n.disabledKeys)===null||r===void 0?void 0:r.includes(l),d=n.label(s),b={name:"selection",checked:g,disabled:_,id:l,"aria-label":d};return u("td",{key:`tbody-${t}-selection`,class:"kol-table__cell kol-table__cell--selection"},u("div",{class:S("kol-table__selection",{"kol-table__selection--checked":g})},c?u("label",{class:S("kol-table__selection-label",{"kol-table__selection-label--disabled":_})},u(V,{class:"kol-table__selection-icon",_icons:`codicon ${g?"codicon-check":""}`,_label:""}),u("input",Object.assign({class:S("kol-table__selection-input kol-table__selection-input--checkbox"),ref:h=>h&&this.checkboxRefs.push(h)},b,{type:"checkbox",onInput:h=>{var f,y;const v=g?(y=n==null?void 0:n.selectedKeys)===null||y===void 0?void 0:y.filter(m=>m!==l):[...(f=n==null?void 0:n.selectedKeys)!==null&&f!==void 0?f:[],l];this.handleSelectionChangeCallbackAndEvent(h,v??[])}}))):u("label",{class:"kol-table__selection-label"},u("input",Object.assign({class:S("kol-table__selection-input kol-table__selection-input--radio")},b,{type:"radio",onInput:h=>{this.handleSelectionChangeCallbackAndEvent(h,l)}}))),u(ee,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${l}-label`,_label:d})))}getColumnSettings(e){var t;return(t=this.state._tableSettings)===null||t===void 0?void 0:t.columns.find(a=>a.key===e.key)}getSelectionKeyPropertyName(){var e,t;return(t=(e=this.state._selection)===null||e===void 0?void 0:e.keyPropertyName)!==null&&t!==void 0?t:"id"}getDataWithSelectionEnabled(){const e=this.getSelectionKeyPropertyName();return this.state._data.filter(t=>{var a,i;return!(!((i=(a=this.state._selection)===null||a===void 0?void 0:a.disabledKeys)===null||i===void 0)&&i.includes(t[e]))})}getSelectedKeysWithoutDisabledKeys(){var e,t;return(t=(e=this.state._selection)===null||e===void 0?void 0:e.selectedKeys)===null||t===void 0?void 0:t.filter(a=>{var i,r;return!(!((r=(i=this.state._selection)===null||i===void 0?void 0:i.disabledKeys)===null||r===void 0)&&r.includes(a))})}getSelectedKeysWithDisabledKeysOnly(){var e,t;return(t=(e=this.state._selection)===null||e===void 0?void 0:e.selectedKeys)===null||t===void 0?void 0:t.filter(a=>{var i,r;return(r=(i=this.state._selection)===null||i===void 0?void 0:i.disabledKeys)===null||r===void 0?void 0:r.includes(a)})}getRevertedSelection(e){var t;const a=this.getSelectionKeyPropertyName(),i=(t=this.getSelectedKeysWithDisabledKeysOnly())!==null&&t!==void 0?t:[];return e&&i.push(...this.getDataWithSelectionEnabled().map(r=>r==null?void 0:r[a])),i}getTableMinWidth(){var e,t;const a=(t=(e=this.state._tableSettings)===null||e===void 0?void 0:e.columns.filter(i=>i.visible).reduce((i,r)=>{var n;return i+((n=r.width)!==null&&n!==void 0?n:0)},0))!==null&&t!==void 0?t:0;return this.state._minWidth==="auto"?`${a}ch`:`max(${this.state._minWidth}, ${a}ch)`}renderHeadingSelectionCell(){var e,t;const a=this.state._selection;if(!a||!a.multiple&&a.multiple!==void 0)return u("th",{class:"kol-table__cell kol-table__cell--header",key:"thead-0"});const i=(t=(e=this.getSelectedKeysWithoutDisabledKeys())===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0,r=this.getDataWithSelectionEnabled().length,n=i===r,o=i!==0&&!n;let s="kol-table-selection-indeterminate";n&&!o&&(s="kol-table-selection-none"),i===0&&(s="kol-table-selection-all");const l=te(s);return u("th",{key:"thead-0-selection",class:"kol-table__cell kol-table__cell--header"},u("div",{class:S("kol-table__selection",{"kol-table__selection--indeterminate":o,"kol-table__selection--checked":n})},u("label",{class:"kol-table__selection-label"},u(V,{class:"kol-table__selection-icon",_icons:`codicon ${o?"codicon-remove":n?"codicon-check":""}`,_label:""}),u("input",{class:S("kol-table__selection-input kol-table__selection-input--checkbox"),"data-testid":"selection-checkbox-all",ref:c=>c&&this.checkboxRefs.push(c),name:"selection",checked:n&&!o,indeterminate:o,"aria-label":l,type:"checkbox",onInput:c=>{this.handleSelectionChangeCallbackAndEvent(c,this.getRevertedSelection(!n))}})),u(ee,{"aria-hidden":"true",class:"kol-table__selection-input-tooltip",_align:"right",_id:`${s}-label`,_label:l})))}renderHeaderTdCell(){return u(Me,null,Array.isArray(this.state._headerCells.horizontal)&&this.state._headerCells.horizontal.length>0&&Array.isArray(this.state._headerCells.vertical)&&this.state._headerCells.vertical.length>0&&Array.isArray(this.state._headerCells.horizontal)&&u("td",{"aria-hidden":"true",colSpan:this.state._headerCells.vertical.length,rowSpan:this.state._headerCells.horizontal.length}))}renderHeadingCell(e,t,a,i){const r=this.getColumnSettings(e);if(r&&!r.visible)return"";let n,o="codicon codicon-fold";if(e.sortDirection)switch(e.sortDirection){case"ASC":o="codicon codicon-chevron-up",n="ascending";break;case"DESC":o="codicon codicon-chevron-down",n="descending";break}const s=i?"row":typeof e.colSpan=="number"&&e.colSpan>1?"colgroup":"col";return u("th",{key:`${t}-${a}-${e.label}`,class:S("kol-table__cell kol-table__cell--header",{[`kol-table__cell--align-${e.textAlign}`]:e.textAlign,[`kol-table__cell--${n}`]:n}),scope:s,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:r!=null&&r.width?`${r.width}ch`:e.width},"aria-sort":n,"data-sort":`sort-${e.sortDirection}`},e.sortDirection?u(ze,{class:"kol-table__sort-button",exportparts:"icon",_icons:{right:o},_label:e.label,_on:{onClick:l=>{var c;typeof((c=this.state._on)===null||c===void 0?void 0:c.onSort)=="function"&&e.key&&e.sortDirection&&this.state._on.onSort(l,{key:e.key,currentSortDirection:e.sortDirection}),this.host&&Z(this.host,Q.sort,{key:e.key,currentSortDirection:e.sortDirection})}}}):e.label)}renderSpacer(e,t){var a,i;const r=((a=this.state._headerCells.vertical)===null||a===void 0?void 0:a.length)||0,n=(i=t==null?void 0:t[0])===null||i===void 0?void 0:i.reduce((s,l)=>s+(l.colSpan||1),0),o=this.state._selection?1:0;return u("tr",{"aria-hidden":"true",class:S("kol-table__spacer",`kol-table__spacer--${e}`)},u("td",{class:S(`kol-table__spacer-line kol-table__spacer-line--${e}`),colSpan:r+n+o}))}renderFoot(){if(!this.state._dataFoot||this.state._dataFoot.length===0)return null;const e=this.createDataField(this.state._dataFoot,this.state._headerCells,!0);return u("tfoot",{class:"kol-table__footer"},[this.renderSpacer("foot",e),e.map((t,a)=>this.renderTableRow(t,a,!0,!0))])}render(){var e;const t=this.createDataField(this.state._data,this.state._headerCells);this.checkboxRefs=[];const a=(e=this.state._headerCells.horizontal)===null||e===void 0?void 0:e.map(i=>this.sortByColumnPosition(i));return u("div",{key:"55c1614208608e7206bfde32af951f066267b629",class:"kol-table"},u(Fe,{key:"a6a176a7a90d134c6c99fae76b14d0dd6523a88b",_tableSettings:this.state._tableSettings}),u("div",{key:"7d1498c5925016efc03772480936bfd2d8d9bd27",ref:i=>this.tableDivElement=i,class:"kol-table__scroll-container",tabindex:this.tableDivElementHasScrollbar?"-1":void 0},u("table",{key:"41097ebc50e0913333e017d43206778c031add65",class:"kol-table__table",style:{minWidth:this.getTableMinWidth()}},u("div",{key:"f0539b67aa7c7ef1271a67dd22c741e4a6f60d4e",class:"kol-table__focus-element",tabindex:this.tableDivElementHasScrollbar?"0":void 0,"aria-describedby":"caption"}," "),u("caption",{key:"7199792f023995a8964efaa2b9f11b79780717b1",class:"kol-table__caption",id:"caption"},this.state._label),Array.isArray(a)&&u("thead",{key:"86242ee062afb71d654b7e64698dca8178012bc3",class:"kol-table__head"},[a.map((i,r)=>u("tr",{class:"kol-table__head-row",key:`thead-${r}`},this.state._selection&&this.renderHeadingSelectionCell(),r===0&&this.renderHeaderTdCell(),Array.isArray(i)&&i.map((n,o)=>this.renderHeadingCell(n,r,o,!1)))),this.renderSpacer("head",a)]),u("tbody",{key:"b7866fe3430029ea01b05d747ea49e42c577d10c",class:"kol-table__body"},t.map((i,r)=>this.renderTableRow(i,r,!0))),this.renderFoot())))}get host(){return Ie(this)}static get watchers(){return{_data:["validateData"],_dataFoot:["validateDataFoot"],_headerCells:["validateHeaderCells"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_on:["validateOn"],_selection:["validateSelection"],_tableSettings:["validateTableSettings"]}}};export{an as kol_table_stateless_wc};
|
|
4
|
+
//# sourceMappingURL=kol-table-stateless-wc.entry-szSirmOC.js.map
|