@public-ui/components 4.6.0-rc.2 → 4.6.0-rc.3
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/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +3 -3
- package/dist/cjs/{Heading-CmnijhLd.js → Heading-DqZXie2T.js} +1 -1
- package/dist/cjs/{api-Bg7hdIrJ.js → api-Cc1hT-oO.js} +19 -18
- package/dist/cjs/{app-globals-BwYPSMbG.js → app-globals-DtXiFJRj.js} +2 -2
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
- package/dist/cjs/{base-JFyPasp9.js → base-B-wbGF-X.js} +20 -29
- package/dist/cjs/{base-ob1X79UM.js → base-BKsPSdXS.js} +5 -5
- package/dist/cjs/{base-BVhV5HmV.js → base-BjiXfuju.js} +4 -4
- package/dist/cjs/{base-CQB0r-ZQ.js → base-CoMrpiHg.js} +4 -4
- package/dist/cjs/{base-web-component-dI9FmFIm.js → base-web-component-BXtl3Nmq.js} +5 -5
- package/dist/cjs/{base-web-component-DBcJrpRb.js → base-web-component-DApRK7Vs.js} +6 -6
- package/dist/cjs/{behavior-CUmF8rJf.js → behavior-DIv2ciyM.js} +1 -1
- package/dist/cjs/{behavior-DujaVCwV.js → behavior-DtHCmCCv.js} +2 -2
- package/dist/cjs/{behavior-B5wr2A8R.js → behavior-GG5TOrTV.js} +3 -10
- package/dist/cjs/{bem-registry-B6QoNC9E.js → bem-registry-h_moyLBn.js} +39 -0
- package/dist/cjs/{block-bem-ByCgFI2B.js → block-bem-BVBM34Tu.js} +1 -1
- package/dist/cjs/{component-DFhuXUqv.js → component-BE_fK-Xu.js} +7 -7
- package/dist/cjs/{component-DprHBKdZ.js → component-BOI4FdZE.js} +3 -3
- package/dist/cjs/{component-Doln6Ltn.js → component-C9B-yJ93.js} +3 -3
- package/dist/cjs/{component-BexD3069.js → component-CNNGo5gU.js} +6 -6
- package/dist/cjs/{component-1J4G5HmZ.js → component-CVLJJvvd.js} +6 -6
- package/dist/cjs/{component-BilLJFfC.js → component-Cnc2NyzE.js} +2 -2
- package/dist/cjs/{component-Cqp00Tb9.js → component-CsnTf_45.js} +6 -6
- package/dist/cjs/{component-Bza8hlo-.js → component-CxwSVBBv.js} +7 -7
- package/dist/cjs/{component-DGVc4bOy.js → component-D0uxhuF3.js} +4 -4
- package/dist/cjs/{component-DkV9oPCL.js → component-DNQW0lG8.js} +2 -2
- package/dist/cjs/{component-CjXcCX2V.js → component-DfGgpwuP.js} +2 -2
- package/dist/cjs/{component-Cbbx7Z6c.js → component-DlyhBQIa.js} +3 -3
- package/dist/cjs/{dev.utils-Bx4sgPsr.js → dev.utils-DTQy7QrG.js} +1 -1
- package/dist/cjs/{devtools-BXBKJice.js → devtools-BAChPN0l.js} +2 -2
- package/dist/cjs/{field-control-B95uzQnW.js → field-control-Bxj6Xuu8.js} +7 -7
- package/dist/cjs/{group-DGS7K6Ja.js → group-BUdQbdkp.js} +5 -5
- package/dist/cjs/{index-Ccvyz7Rq.js → index-BaB_2Z5W.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{input-BKXEykG_.js → input-CtqTozTO.js} +4 -4
- package/dist/cjs/{input-container-CWb_kRbs.js → input-container-BcwbGU2R.js} +6 -6
- package/dist/cjs/{item-wr5KfPYM.js → item-BLrLbhAD.js} +6 -6
- package/dist/cjs/{item-DgNTEUz3.js → item-BXt0-A5j.js} +8 -8
- package/dist/cjs/{item-C4Boh5Cz.js → item-BYKMN41a.js} +3 -3
- package/dist/cjs/{item-vDMQvV0t.js → item-DJ-XUS77.js} +3 -3
- package/dist/cjs/kol-abbr.cjs.entry.js +4 -4
- package/dist/cjs/kol-accordion.cjs.entry.js +9 -9
- package/dist/cjs/kol-alert.cjs.entry.js +14 -14
- package/dist/cjs/kol-avatar.cjs.entry.js +2 -2
- package/dist/cjs/kol-badge.cjs.entry.js +14 -14
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +12 -12
- package/dist/cjs/kol-button-link.cjs.entry.js +14 -14
- package/dist/cjs/kol-button.cjs.entry.js +14 -14
- package/dist/cjs/kol-card.cjs.entry.js +15 -15
- package/dist/cjs/kol-combobox.cjs.entry.js +24 -24
- package/dist/cjs/kol-details.cjs.entry.js +9 -9
- package/dist/cjs/kol-dialog.cjs.entry.js +17 -17
- package/dist/cjs/kol-drawer.cjs.entry.js +16 -16
- package/dist/cjs/kol-form.cjs.entry.js +14 -14
- package/dist/cjs/kol-heading.cjs.entry.js +4 -4
- package/dist/cjs/kol-icon.cjs.entry.js +4 -4
- package/dist/cjs/kol-image.cjs.entry.js +2 -2
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +42 -41
- package/dist/cjs/kol-input-color.cjs.entry.js +33 -32
- package/dist/cjs/kol-input-date.cjs.entry.js +31 -30
- package/dist/cjs/kol-input-email.cjs.entry.js +36 -35
- package/dist/cjs/kol-input-file.cjs.entry.js +28 -27
- package/dist/cjs/kol-input-number.cjs.entry.js +32 -31
- package/dist/cjs/kol-input-password.cjs.entry.js +30 -29
- package/dist/cjs/kol-input-radio.cjs.entry.js +27 -27
- package/dist/cjs/kol-input-range.cjs.entry.js +27 -27
- package/dist/cjs/kol-input-text.cjs.entry.js +29 -28
- package/dist/cjs/kol-kolibri.cjs.entry.js +4 -4
- package/dist/cjs/kol-link-button.cjs.entry.js +13 -13
- package/dist/cjs/kol-link.cjs.entry.js +13 -13
- package/dist/cjs/kol-meter.cjs.entry.js +4 -4
- package/dist/cjs/kol-modal.cjs.entry.js +17 -17
- package/dist/cjs/kol-nav.cjs.entry.js +17 -17
- package/dist/cjs/kol-pagination.cjs.entry.js +24 -24
- package/dist/cjs/kol-popover-button.cjs.entry.js +15 -15
- package/dist/cjs/kol-progress.cjs.entry.js +4 -4
- package/dist/cjs/kol-quote.cjs.entry.js +2 -2
- package/dist/cjs/kol-select.cjs.entry.js +27 -27
- package/dist/cjs/kol-single-select.cjs.entry.js +24 -24
- package/dist/cjs/kol-skip-nav.cjs.entry.js +12 -12
- package/dist/cjs/kol-spin.cjs.entry.js +5 -5
- package/dist/cjs/kol-split-button.cjs.entry.js +17 -17
- package/dist/cjs/kol-table-stateful.cjs.entry.js +33 -34
- package/dist/cjs/kol-table-stateless.cjs.entry.js +26 -27
- package/dist/cjs/kol-tabs.cjs.entry.js +13 -13
- package/dist/cjs/kol-textarea.cjs.entry.js +25 -25
- package/dist/cjs/kol-toast-container.cjs.entry.js +13 -13
- package/dist/cjs/kol-toolbar.cjs.entry.js +15 -15
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +6 -6
- package/dist/cjs/kol-tree-item.cjs.entry.js +16 -13
- package/dist/cjs/kol-tree.cjs.entry.js +17 -6
- package/dist/cjs/kol-version.cjs.entry.js +11 -11
- package/dist/cjs/kolibri.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{resolve-props-pZBj0tIz.js → resolve-props-B7klWjLx.js} +2 -2
- package/dist/cjs/{resolve-props-B_ytLWBO.js → resolve-props-c-uwDulF.js} +2 -2
- package/dist/cjs/{scroll-lock-DguXX-Em.js → scroll-lock-daUQqmx_.js} +2 -2
- package/dist/cjs/{suggestions-C6Q3kj5J.js → suggestions-D3snLGL_.js} +2 -2
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-BaOOa9I5.js → toggle-handler-B0xib7fH.js} +4 -4
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/style.css +5 -2
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/style.css +5 -2
- package/dist/collection/components/drawer/style.css +5 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/input-checkbox/component.js +13 -11
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +6 -4
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +5 -3
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +4 -1
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +6 -3
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +6 -4
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +5 -2
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +4 -2
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/modal/style.css +5 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +3 -5
- package/dist/collection/components/table-stateful/style.css +5 -2
- package/dist/collection/components/table-stateless/component.js +3 -5
- package/dist/collection/components/table-stateless/style.css +5 -2
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tree/component.js +15 -4
- package/dist/collection/components/tree-item/component.js +5 -2
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
- package/dist/collection/schema/bem-registry.js +39 -0
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-labelledby.js +3 -12
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/components/aria-labelledby.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/esm/{Heading-C_CwXDMp.js → Heading-GZb1f2pZ.js} +1 -1
- package/dist/esm/{api-DGiFM9p0.js → api-CBPlj155.js} +18 -17
- package/dist/esm/{app-globals-sZHZyXjD.js → app-globals-DRl9A82c.js} +2 -2
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
- package/dist/esm/{base-B4sGK9cX.js → base-BByRnpRm.js} +5 -5
- package/dist/esm/{base-DTKJ1Z06.js → base-C7BBsrYZ.js} +21 -30
- package/dist/esm/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +4 -4
- package/dist/esm/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +4 -4
- package/dist/esm/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +5 -5
- package/dist/esm/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +6 -6
- package/dist/esm/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
- package/dist/esm/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +2 -2
- package/dist/esm/{behavior-CkPQGfgo.js → behavior-ewHvUWVk.js} +4 -10
- package/dist/esm/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +39 -0
- package/dist/esm/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
- package/dist/esm/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +4 -4
- package/dist/esm/{component-B16Fbp3W.js → component-B3OziaRC.js} +6 -6
- package/dist/esm/{component-Bc2pdOk1.js → component-By8ggItU.js} +6 -6
- package/dist/esm/{component-DAQzDMY8.js → component-CF8uFG0A.js} +7 -7
- package/dist/esm/{component-B05zRrM0.js → component-Ccv2lqNq.js} +2 -2
- package/dist/esm/{component-BI8jDgBz.js → component-Cmi6iGfA.js} +7 -7
- package/dist/esm/{component-C79oAu7a.js → component-D4-NVnsT.js} +2 -2
- package/dist/esm/{component-W1KZI4h4.js → component-D6_K50vT.js} +3 -3
- package/dist/esm/{component-CldKbBUh.js → component-D6lo0LzE.js} +3 -3
- package/dist/esm/{component-oUQcgxDj.js → component-D9NreIlK.js} +3 -3
- package/dist/esm/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +6 -6
- package/dist/esm/{component-Clz6b6ho.js → component-EDDTMC-J.js} +2 -2
- package/dist/esm/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
- package/dist/esm/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +2 -2
- package/dist/esm/{field-control-DsQHa0v9.js → field-control-0TRmF7Ea.js} +7 -7
- package/dist/esm/{group-DUVsgWxS.js → group-DapkT_Yh.js} +5 -5
- package/dist/esm/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{input-C0Li7DsE.js → input-CDUCo1S5.js} +4 -4
- package/dist/esm/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +6 -6
- package/dist/esm/{item-8RKFpmbd.js → item-B0oQTeju.js} +3 -3
- package/dist/esm/{item-DHZGDrAn.js → item-Boe3t0Dm.js} +6 -6
- package/dist/esm/{item-CnJMuEyl.js → item-BvnZc8uV.js} +3 -3
- package/dist/esm/{item-CxVe5INa.js → item-UgJ2uikD.js} +8 -8
- package/dist/esm/kol-abbr.entry.js +4 -4
- package/dist/esm/kol-accordion.entry.js +9 -9
- package/dist/esm/kol-alert.entry.js +14 -14
- package/dist/esm/kol-avatar.entry.js +2 -2
- package/dist/esm/kol-badge.entry.js +14 -14
- package/dist/esm/kol-breadcrumb.entry.js +12 -12
- package/dist/esm/kol-button-link.entry.js +14 -14
- package/dist/esm/kol-button.entry.js +14 -14
- package/dist/esm/kol-card.entry.js +15 -15
- package/dist/esm/kol-combobox.entry.js +24 -24
- package/dist/esm/kol-details.entry.js +9 -9
- package/dist/esm/kol-dialog.entry.js +17 -17
- package/dist/esm/kol-drawer.entry.js +16 -16
- package/dist/esm/kol-form.entry.js +14 -14
- package/dist/esm/kol-heading.entry.js +4 -4
- package/dist/esm/kol-icon.entry.js +4 -4
- package/dist/esm/kol-image.entry.js +2 -2
- package/dist/esm/kol-input-checkbox.entry.js +42 -41
- package/dist/esm/kol-input-color.entry.js +33 -32
- package/dist/esm/kol-input-date.entry.js +31 -30
- package/dist/esm/kol-input-email.entry.js +36 -35
- package/dist/esm/kol-input-file.entry.js +28 -27
- package/dist/esm/kol-input-number.entry.js +32 -31
- package/dist/esm/kol-input-password.entry.js +30 -29
- package/dist/esm/kol-input-radio.entry.js +27 -27
- package/dist/esm/kol-input-range.entry.js +27 -27
- package/dist/esm/kol-input-text.entry.js +29 -28
- package/dist/esm/kol-kolibri.entry.js +4 -4
- package/dist/esm/kol-link-button.entry.js +13 -13
- package/dist/esm/kol-link.entry.js +13 -13
- package/dist/esm/kol-meter.entry.js +4 -4
- package/dist/esm/kol-modal.entry.js +17 -17
- package/dist/esm/kol-nav.entry.js +17 -17
- package/dist/esm/kol-pagination.entry.js +24 -24
- package/dist/esm/kol-popover-button.entry.js +15 -15
- package/dist/esm/kol-progress.entry.js +4 -4
- package/dist/esm/kol-quote.entry.js +2 -2
- package/dist/esm/kol-select.entry.js +27 -27
- package/dist/esm/kol-single-select.entry.js +24 -24
- package/dist/esm/kol-skip-nav.entry.js +12 -12
- package/dist/esm/kol-spin.entry.js +5 -5
- package/dist/esm/kol-split-button.entry.js +17 -17
- package/dist/esm/kol-table-stateful.entry.js +33 -34
- package/dist/esm/kol-table-stateless.entry.js +26 -27
- package/dist/esm/kol-tabs.entry.js +13 -13
- package/dist/esm/kol-textarea.entry.js +25 -25
- package/dist/esm/kol-toast-container.entry.js +13 -13
- package/dist/esm/kol-toolbar.entry.js +15 -15
- package/dist/esm/kol-tooltip-wc.entry.js +6 -6
- package/dist/esm/kol-tree-item.entry.js +16 -13
- package/dist/esm/kol-tree.entry.js +17 -6
- package/dist/esm/kol-version.entry.js +11 -11
- package/dist/esm/kolibri.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{resolve-props-Bj6IaybL.js → resolve-props-DTXKtzir.js} +2 -2
- package/dist/esm/{resolve-props-02J6OCRf.js → resolve-props-kM9N-fzf.js} +2 -2
- package/dist/esm/{scroll-lock-B6hVv8A8.js → scroll-lock-Bv-U2FHM.js} +2 -2
- package/dist/esm/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +2 -2
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-3qaN2kmt.js → toggle-handler-mPlmvrq7.js} +4 -4
- package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
- package/dist/kolibri/api-CBPlj155.js +4 -0
- package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
- package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
- package/dist/kolibri/base-BByRnpRm.js +4 -0
- package/dist/kolibri/base-C7BBsrYZ.js +4 -0
- package/dist/kolibri/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +1 -1
- package/dist/kolibri/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +1 -1
- package/dist/kolibri/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +1 -1
- package/dist/kolibri/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +1 -1
- package/dist/kolibri/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
- package/dist/kolibri/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +1 -1
- package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
- package/dist/kolibri/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +1 -1
- package/dist/kolibri/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
- package/dist/kolibri/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +1 -1
- package/dist/kolibri/component-B3OziaRC.js +4 -0
- package/dist/kolibri/{component-Bc2pdOk1.js → component-By8ggItU.js} +1 -1
- package/dist/kolibri/component-CF8uFG0A.js +4 -0
- package/dist/kolibri/component-Ccv2lqNq.js +4 -0
- package/dist/kolibri/component-Cmi6iGfA.js +4 -0
- package/dist/kolibri/component-D4-NVnsT.js +4 -0
- package/dist/kolibri/{component-W1KZI4h4.js → component-D6_K50vT.js} +1 -1
- package/dist/kolibri/component-D6lo0LzE.js +4 -0
- package/dist/kolibri/{component-oUQcgxDj.js → component-D9NreIlK.js} +1 -1
- package/dist/kolibri/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +1 -1
- package/dist/kolibri/component-EDDTMC-J.js +4 -0
- package/dist/kolibri/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
- package/dist/kolibri/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +1 -1
- package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
- package/dist/kolibri/{group-DUVsgWxS.js → group-DapkT_Yh.js} +1 -1
- package/dist/kolibri/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-CDUCo1S5.js +4 -0
- package/dist/kolibri/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +1 -1
- package/dist/kolibri/item-B0oQTeju.js +4 -0
- package/dist/kolibri/item-Boe3t0Dm.js +4 -0
- package/dist/kolibri/item-BvnZc8uV.js +4 -0
- package/dist/kolibri/item-UgJ2uikD.js +4 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
- package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
- package/dist/kolibri/scroll-lock-Bv-U2FHM.js +4 -0
- package/dist/kolibri/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
- package/dist/types/components/table-stateful/component.d.ts +0 -1
- package/dist/types/components/table-stateless/component.d.ts +0 -1
- package/dist/types/components/tree/component.d.ts +1 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
- package/dist/types/schema/bem-registry.d.ts +49 -0
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/doc/table-stateful.md +16 -16
- package/doc/table-stateless.md +14 -14
- package/package.json +1 -1
- package/vscode-custom-data.json +2 -2
- package/dist/kolibri/Heading-C_CwXDMp.js +0 -4
- package/dist/kolibri/api-DGiFM9p0.js +0 -4
- package/dist/kolibri/app-globals-sZHZyXjD.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/base-B4sGK9cX.js +0 -4
- package/dist/kolibri/base-DTKJ1Z06.js +0 -4
- package/dist/kolibri/behavior-CkPQGfgo.js +0 -4
- package/dist/kolibri/component-B05zRrM0.js +0 -4
- package/dist/kolibri/component-B16Fbp3W.js +0 -4
- package/dist/kolibri/component-BI8jDgBz.js +0 -4
- package/dist/kolibri/component-C79oAu7a.js +0 -4
- package/dist/kolibri/component-CldKbBUh.js +0 -4
- package/dist/kolibri/component-Clz6b6ho.js +0 -4
- package/dist/kolibri/component-DAQzDMY8.js +0 -4
- package/dist/kolibri/field-control-DsQHa0v9.js +0 -4
- package/dist/kolibri/input-C0Li7DsE.js +0 -4
- package/dist/kolibri/item-8RKFpmbd.js +0 -4
- package/dist/kolibri/item-CnJMuEyl.js +0 -4
- package/dist/kolibri/item-CxVe5INa.js +0 -4
- package/dist/kolibri/item-DHZGDrAn.js +0 -4
- package/dist/kolibri/resolve-props-02J6OCRf.js +0 -4
- package/dist/kolibri/resolve-props-Bj6IaybL.js +0 -4
- package/dist/kolibri/scroll-lock-B6hVv8A8.js +0 -4
- package/dist/kolibri/toggle-handler-3qaN2kmt.js +0 -4
package/doc/table-stateful.md
CHANGED
|
@@ -11,22 +11,22 @@ The **Table** component is primarily used for the clear presentation of data set
|
|
|
11
11
|
|
|
12
12
|
## Properties
|
|
13
13
|
|
|
14
|
-
| Property | Attribute | Description
|
|
15
|
-
| ----------------------- | ---------------------- |
|
|
16
|
-
| `_allowMultiSort` | `_allow-multi-sort` | Defines whether to allow multi sort.
|
|
17
|
-
| `_ariaLabelledby` | `_aria-labelledby` | References an external element by ID that serves as the accessible label for this table.
|
|
18
|
-
| `_data` _(required)_ | `_data` | Defines the primary table data.
|
|
19
|
-
| `_dataFoot` | `_data-foot` | Defines the data for the table footer.
|
|
20
|
-
| `_fixedCols` | -- | Defines the fixed number of columns from start and end of the table
|
|
21
|
-
| `_hasSettingsMenu` | `_has-settings-menu` | Enables the settings menu if true (default: false).
|
|
22
|
-
| `_headers` _(required)_ | `_headers` | Defines the horizontal and vertical table headers.
|
|
23
|
-
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).
|
|
24
|
-
| `_loading` | `_loading` | Wether the table shows a loading spinner (default: false).
|
|
25
|
-
| `_on` | -- | Defines the callback functions for table events.
|
|
26
|
-
| `_pagination` | `_pagination` | Defines whether to show the data distributed over multiple pages.
|
|
27
|
-
| `_paginationPosition` | `_pagination-position` | Controls the position of the pagination.
|
|
28
|
-
| `_selection` | `_selection` | Defines how rows can be selected and the current selection.
|
|
29
|
-
| `_variant` | `_variant` | Defines which variant should be used for presentation.
|
|
14
|
+
| Property | Attribute | Description | Type | Default |
|
|
15
|
+
| ----------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
16
|
+
| `_allowMultiSort` | `_allow-multi-sort` | Defines whether to allow multi sort. | `boolean \| undefined` | `undefined` |
|
|
17
|
+
| `_ariaLabelledby` | `_aria-labelledby` | References an external element by ID that serves as the accessible label for this table. The component resolves the IDs and sets them as element references (`ariaLabelledByElements`) on the native `<table>` inside the shadow root, because IDREF attributes cannot cross that boundary. Desktop screen readers (NVDA, JAWS with Chrome/Firefox) follow the references; VoiceOver and TalkBack do not — use `_label` instead. | `string \| undefined` | `undefined` |
|
|
18
|
+
| `_data` _(required)_ | `_data` | Defines the primary table data. | `KoliBriTableDataType[] \| string` | `undefined` |
|
|
19
|
+
| `_dataFoot` | `_data-foot` | Defines the data for the table footer. | `KoliBriTableDataType[] \| string \| undefined` | `undefined` |
|
|
20
|
+
| `_fixedCols` | -- | Defines the fixed number of columns from start and end of the table | `[number, number] \| undefined` | `undefined` |
|
|
21
|
+
| `_hasSettingsMenu` | `_has-settings-menu` | Enables the settings menu if true (default: false). | `boolean \| undefined` | `undefined` |
|
|
22
|
+
| `_headers` _(required)_ | `_headers` | Defines the horizontal and vertical table headers. | `string \| { horizontal?: KoliBriTableHeaderCellWithLogic[][] \| undefined; vertical?: KoliBriTableHeaderCellWithLogic[][] \| undefined; }` | `undefined` |
|
|
23
|
+
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). | `LabelSegment[] \| string` | `undefined` |
|
|
24
|
+
| `_loading` | `_loading` | Wether the table shows a loading spinner (default: false). | `boolean \| undefined` | `undefined` |
|
|
25
|
+
| `_on` | -- | Defines the callback functions for table events. | `undefined \| { onSelectionChange?: EventValueOrEventCallback<Event, StatefulSelectionChangeEventPayload> \| undefined; }` | `undefined` |
|
|
26
|
+
| `_pagination` | `_pagination` | Defines whether to show the data distributed over multiple pages. | `boolean \| string \| undefined \| { _page: number; } & { _on?: KoliBriPaginationButtonCallbacks \| undefined; _page?: number \| undefined; _label?: string \| undefined; _max?: number \| undefined; _boundaryCount?: number \| undefined; _hasButtons?: boolean \| Stringified<PaginationHasButton> \| undefined; _pageSize?: number \| undefined; _pageSizeOptions?: Stringified<number[]> \| undefined; _siblingCount?: number \| undefined; _customClass?: string \| undefined; _tooltipAlign?: AlignPropType \| undefined; }` | `undefined` |
|
|
27
|
+
| `_paginationPosition` | `_pagination-position` | Controls the position of the pagination. | `"both" \| "bottom" \| "top" \| undefined` | `'bottom'` |
|
|
28
|
+
| `_selection` | `_selection` | Defines how rows can be selected and the current selection. | `string \| undefined \| ({ disabledKeys?: KoliBriTableSelectionKeys \| undefined; keyPropertyName?: string \| undefined; label: (row: KoliBriTableDataType) => string; multiple?: boolean \| undefined; selectedKeys?: KoliBriTableSelectionKeys \| undefined; })` | `undefined` |
|
|
29
|
+
| `_variant` | `_variant` | Defines which variant should be used for presentation. | `string \| string[] \| undefined` | `undefined` |
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
## Methods
|
package/doc/table-stateless.md
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property | Attribute | Description
|
|
11
|
-
| --------------------- | -------------------- |
|
|
12
|
-
| `_ariaLabelledby` | `_aria-labelledby` | References an external element by ID that serves as the accessible label for this table.
|
|
13
|
-
| `_data` _(required)_ | `_data` | Defines the primary table data.
|
|
14
|
-
| `_dataFoot` | `_data-foot` | Defines the data for the table footer.
|
|
15
|
-
| `_fixedCols` | -- | Defines the fixed number of columns from start and end of the table
|
|
16
|
-
| `_hasSettingsMenu` | `_has-settings-menu` | Enables the settings menu if true (default: false).
|
|
17
|
-
| `_headerCells` | `_header-cells` | <span class="text-red-500">**[DEPRECATED]**</span> Will be removed in the future. Use _headers instead. Defines the horizontal and vertical table headers.<br/><br/>
|
|
18
|
-
| `_headers` | `_headers` | Defines the horizontal and vertical table headers.
|
|
19
|
-
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).
|
|
20
|
-
| `_loading` | `_loading` | Wether the table shows a loading spinner (default: false).
|
|
21
|
-
| `_on` | -- | Defines the callback functions for table events.
|
|
22
|
-
| `_selection` | `_selection` | Defines how rows can be selected and the current selection.
|
|
23
|
-
| `_variant` | `_variant` | Defines which variant should be used for presentation.
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| --------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
12
|
+
| `_ariaLabelledby` | `_aria-labelledby` | References an external element by ID that serves as the accessible label for this table. The component resolves the IDs and sets them as element references (`ariaLabelledByElements`) on the native `<table>` inside the shadow root, because IDREF attributes cannot cross that boundary. Desktop screen readers (NVDA, JAWS with Chrome/Firefox) follow the references; VoiceOver and TalkBack do not — use `_label` instead. | `string \| undefined` | `undefined` |
|
|
13
|
+
| `_data` _(required)_ | `_data` | Defines the primary table data. | `KoliBriTableDataType[] \| string` | `undefined` |
|
|
14
|
+
| `_dataFoot` | `_data-foot` | Defines the data for the table footer. | `KoliBriTableDataType[] \| string \| undefined` | `undefined` |
|
|
15
|
+
| `_fixedCols` | -- | Defines the fixed number of columns from start and end of the table | `[number, number] \| undefined` | `undefined` |
|
|
16
|
+
| `_hasSettingsMenu` | `_has-settings-menu` | Enables the settings menu if true (default: false). | `boolean \| undefined` | `undefined` |
|
|
17
|
+
| `_headerCells` | `_header-cells` | <span class="text-red-500">**[DEPRECATED]**</span> Will be removed in the future. Use _headers instead. Defines the horizontal and vertical table headers.<br/><br/> | `string \| undefined \| { horizontal?: KoliBriTableHeaderCell[][] \| undefined; vertical?: KoliBriTableHeaderCell[][] \| undefined; }` | `undefined` |
|
|
18
|
+
| `_headers` | `_headers` | Defines the horizontal and vertical table headers. | `string \| undefined \| { horizontal?: KoliBriTableHeaderCell[][] \| undefined; vertical?: KoliBriTableHeaderCell[][] \| undefined; }` | `undefined` |
|
|
19
|
+
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). | `LabelSegment[] \| string` | `undefined` |
|
|
20
|
+
| `_loading` | `_loading` | Wether the table shows a loading spinner (default: false). | `boolean \| undefined` | `undefined` |
|
|
21
|
+
| `_on` | -- | Defines the callback functions for table events. | `undefined \| { onSort?: EventValueOrEventCallback<MouseEvent, SortEventPayload> \| undefined; onSelectionChange?: EventValueOrEventCallback<Event, KoliBriTableSelectionKeys> \| undefined; onChangeHeaderCells?: EventValueOrEventCallback<Event, TableHeaderCells> \| undefined; }` | `undefined` |
|
|
22
|
+
| `_selection` | `_selection` | Defines how rows can be selected and the current selection. | `string \| undefined \| ({ disabledKeys?: KoliBriTableSelectionKeys \| undefined; keyPropertyName?: string \| undefined; label: (row: KoliBriTableDataType) => string; multiple?: boolean \| undefined; selectedKeys?: KoliBriTableSelectionKeys \| undefined; })` | `undefined` |
|
|
23
|
+
| `_variant` | `_variant` | Defines which variant should be used for presentation. | `string \| string[] \| undefined` | `undefined` |
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
----------------------------------------------
|
package/package.json
CHANGED
package/vscode-custom-data.json
CHANGED
|
@@ -3095,7 +3095,7 @@
|
|
|
3095
3095
|
},
|
|
3096
3096
|
{
|
|
3097
3097
|
"name": "_aria-labelledby",
|
|
3098
|
-
"description": "References an external element by ID that serves as the accessible label for this table.\
|
|
3098
|
+
"description": "References an external element by ID that serves as the accessible label for this table.\nThe component resolves the IDs and sets them as element references (`ariaLabelledByElements`)\non the native `<table>` inside the shadow root, because IDREF attributes cannot cross that\nboundary. Desktop screen readers (NVDA, JAWS with Chrome/Firefox) follow the references;\nVoiceOver and TalkBack do not — use `_label` instead."
|
|
3099
3099
|
},
|
|
3100
3100
|
{
|
|
3101
3101
|
"name": "_data",
|
|
@@ -3159,7 +3159,7 @@
|
|
|
3159
3159
|
"attributes": [
|
|
3160
3160
|
{
|
|
3161
3161
|
"name": "_aria-labelledby",
|
|
3162
|
-
"description": "References an external element by ID that serves as the accessible label for this table.\
|
|
3162
|
+
"description": "References an external element by ID that serves as the accessible label for this table.\nThe component resolves the IDs and sets them as element references (`ariaLabelledByElements`)\non the native `<table>` inside the shadow root, because IDREF attributes cannot cross that\nboundary. Desktop screen readers (NVDA, JAWS with Chrome/Firefox) follow the references;\nVoiceOver and TalkBack do not — use `_label` instead."
|
|
3163
3163
|
},
|
|
3164
3164
|
{
|
|
3165
3165
|
"name": "_data",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-Dulj0jro.js";import{c as l}from"./clsx-COFh-Vc8.js";const a=1;function r(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const o=(o,n)=>{var{class:c,level:t=a}=o,i=e(o,["class","level"]);const d=r(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(a,r)=>{var{class:o}=a,n=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",o)},n),r)},c=(r,c)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=r,j=e(r,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const h=Object.assign({level:i},j);if(!t)return s(o,Object.assign({class:l(d,"kol-headline--single")},h),c);const{class:b}=p,g=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",b)},g);return s("hgroup",Object.assign({},k),s(o,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},h),c),s(n,Object.assign({},u),t))};export{c as K,r as g}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as i,j as t,D as o}from"./common-BdSzSIXg.js";import{S as s,b as l,s as r}from"./component-oUQcgxDj.js";import{r as a}from"./aria-labelledby-CLehu03h.js";import{c as n,n as d,b as h,a as c,t as p}from"./props-from-config-ytxYrJUY.js";import{a as u,c as m,n as b}from"./dev.utils-DDWOHUcg.js";import{K as v,d as f}from"./events-CRHxtwup.js";import{F as g,a as y}from"./behavior-CkPQGfgo.js";import{d as j}from"./disabled-BZXlWAgK.js";import{j as B,h as _,e as L}from"./component-C79oAu7a.js";import{l as O}from"./label-with-expert-slot-BbZ9nx0l.js";import{n as x}from"./component-B16Fbp3W.js";import{B as D}from"./base-web-component-CC_gpyDb.js";import{c as C}from"./item-8RKFpmbd.js";import{c as F}from"./item-DHZGDrAn.js";import{T}from"./behavior-Bb7JYoUn.js";import{h as K}from"./index-Dulj0jro.js";import{t as N}from"./i18n-ePBcLlCr.js";import{b as A}from"./bem-registry-DQUGxdIS.js";import{c as P}from"./clsx-COFh-Vc8.js";import{B as k}from"./component-B05zRrM0.js";import{T as w}from"./component-W1KZI4h4.js";import{P as I}from"./component-Bc2pdOk1.js";import{A as H}from"./component-BI8jDgBz.js";function M(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const q=n("hideMsg",!1,d),z=n("hint","",h),E=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),U=c(),$=n("msg",void 0,(function(e){if("string"==typeof e)try{return i(e)}catch(i){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&o(e._description,1))})),Q=n("touched",!1,d),R=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?K("span",Object.assign({class:P(`${l}__hint`,o),id:u(t||"","hint")},r),s):null},W=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:p,omitId:m,showBadge:b=!0,readOnly:v,infoPopover:f}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!p&&c,j=!1===b?void 0:l(n,d);return K(t,Object.assign({},g,{class:P(`${r}__label`,a),id:y||m?void 0:u(o,"label"),hidden:y,htmlFor:"legend"===t?void 0:o}),K(s,{class:`${r}__label-text`,label:p?"":null!=h?h:"",badgeText:j},K("slot",{name:"expert"})),!p&&v&&K("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",N("kol-readonly"),")"),!p&&f&&K("span",null,K(I,Object.assign({},f.popoverButton),K("div",{class:"kol-popover-button__popover--styled"},f.content))))},Z=t=>{var o,s,{alert:l,hideMsg:r,msg:a,id:n,class:d}=t,h=e(t,["alert","hideMsg","msg","id","class"]);const c=function(e){if("string"==typeof e)try{return i(e)}catch(i){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return K(H,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:P("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:b(),handleCloserClick:()=>{},hasCloser:!1,headingId:m("alert-heading"),id:u(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},G=A.forBlock("kol-form-field"),Y=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,J=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},V=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:b,hideLabel:v,label:f,infoPopover:g,hint:y,accessKey:j,shortKey:_,counter:L,readOnly:O,touched:x,maxLength:D,ariaDescribedBy:C,showBadge:F,tooltipAlign:T,variant:A,component:I="div",orientation:H,refInput:S,refTooltip:q}=i,z=e(i,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),E=r(f),U=M(m,x),$=l(j,_),Q=Y({hideLabel:v,label:f,renderNoTooltip:s}),V="fieldset"===I;return K(k,Object.assign({component:I,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(x),"hide-label":Boolean(v),"read-only":Boolean(O),"hidden-msg":Boolean(b)},U?J(m):{}),class:P(A&&B(A,"form-field"),p),disabled:!(!V||!c)||void 0,"aria-describedby":C},z),!o&&K(W,{component:V?"legend":"label",class:V?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:E,hideLabel:v,label:f,accessKey:j,shortKey:_,readOnly:O,showBadge:F,infoPopover:g}),K("div",{class:G("input",{"orientation-horizontal":"horizontal"===H,"orientation-vertical":"vertical"===H}),ref:S},t,Q&&K("div",{class:G("tooltip")},K(w,{badgeText:$||"",label:f,align:T,id:u(n,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&K("div",{class:G("counter")},K("span",{"aria-hidden":"true",class:G("counter"),ref:L.visualRef}),K("span",{"aria-live":"polite",class:"visually-hidden",id:u(n,"counter"),ref:L.ariaRef})),U&&K(Z,{id:n,alert:h,hideMsg:b,msg:m}),!a&&K(R,{id:n,hint:y}),"number"==typeof D&&!L&&K("span",{id:u(n,"character-limit-hint"),class:"visually-hidden"},N("kol-character-limit-hint",{placeholders:{limit:String(D)}})))};class X extends D{constructor(){super(...arguments),this.tooltipBehavior=new T(D.stateLess),this.smartButton=C((()=>this.host)),this.infoPopover=F({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(v.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(v.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(v.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(v.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(v.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new g(D.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const i=this.shared.getRenderProp("infoPopover");if(!i)return;const{_content:t}=i,o=e(i,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:t}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){y.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=a(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){j.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){_.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){z.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){E.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){O.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){$.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){x.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){U.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){L.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){Q.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&f(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(v.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(u(e,"msg")),a&&n.push(u(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return Y({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),m=c.getRenderProp("label"),b=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(b),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(u(p,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:m,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:a,accessKey:i,shortKey:t,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:b,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?p(t):void 0}}const ie={required:[O],optional:[y,j,_,q,z,E,U,$,x,L,Q]};export{X as B,V as F,R as a,W as b,ee as c,ie as f,S as g,M as i}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{L as o,d as t,w as a}from"./common-BdSzSIXg.js";import{a as r}from"./index-Dulj0jro.js";const s=(()=>{r((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,a(o))}catch(o){}return"default"})),import("./devtools-B0kEE_za.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{s as g}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
const n=(n,o)=>{const t=(null!=o?o:"").trim().split(/\s+/).filter(Boolean);if(!t.length)return[];const e=null==n?void 0:n.getRootNode();return t.map((n=>"undefined"!=typeof Document&&e instanceof Document?e.getElementById(n):"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e.querySelector(`#${(n=>{var o;return(null===(o=globalThis.CSS)||void 0===o?void 0:o.escape)?globalThis.CSS.escape(n):n.replace(/[^a-zA-Z0-9_-]/g,"\\$&")})(n)}`):"undefined"!=typeof document?document.getElementById(n):null)).filter((n=>!!n))},o=n=>{const o=null==n?void 0:n.attachInternals;if(o)try{return o.call(n)}catch(n){return}};export{o as a,n as r}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as s}from"./index-Dulj0jro.js";import{s as i,X as t}from"./common-BdSzSIXg.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{b as o,e,a as h,n as l,c as r,d as p,B as n}from"./component-B16Fbp3W.js";import{F as d}from"./behavior-CkPQGfgo.js";import{T as m}from"./behavior-Bb7JYoUn.js";import{a as c,b as y,c as b,f as u,g as f,h as v,s as j,i as C,l as x,d as B,t as A,e as I,v as g}from"./component-C79oAu7a.js";import{d as D}from"./disabled-BZXlWAgK.js";import{i as K}from"./id-BI0ZuK17.js";import"./props-from-config-ytxYrJUY.js";import{l as S}from"./label-with-expert-slot-BbZ9nx0l.js";import{v as T}from"./access-and-short-key-ijzCZfHm.js";import{c as H}from"./element-interaction-sGYdEpmv.js";import{d as P,K as w}from"./events-CRHxtwup.js";import{p as F,a as L}from"./controller-CZcQ57AP.js";class E extends a{constructor(){super(...arguments),this.ctaRef=H(),this.propsConfig=o,this.tooltipBehavior=new m(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)F({form:this.host});else if("reset"===t)L({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&P(this.host,w.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&P(this.host,w.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&P(this.host,w.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&P(this.host,w.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){c.apply(s,(s=>this.setRenderProp("accessKey",s))),T(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){e.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){D.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){j.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){K.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){C.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){S.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){x.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){B.apply(s,(s=>this.setRenderProp("shortKey",s))),T(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?A.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){I.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){p.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;g.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(n,Object.assign({},this.getButtonFCProps()))}}export{E as B}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{r as t}from"./aria-labelledby-CLehu03h.js";import{G as e,L as o,p as l}from"./common-BdSzSIXg.js";import{h as i,F as s,f as n}from"./index-Dulj0jro.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{c as r}from"./item-8RKFpmbd.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-CnJMuEyl.js";import{c as h,e as b,n as u,a as p,r as v,t as f,v as m}from"./props-from-config-ytxYrJUY.js";import{l as y}from"./label-lang-segment-iVD9hoM3.js";import{v as g,j as k}from"./component-C79oAu7a.js";import{c as j,d as C,e as S}from"./component-names-Dhbtt0mX.js";import{t as w}from"./i18n-ePBcLlCr.js";import{b as _}from"./bem-registry-DQUGxdIS.js";import{B as x}from"./component-B05zRrM0.js";import{B as O}from"./component-B16Fbp3W.js";import{I as $}from"./component-Clz6b6ho.js";import{L as D}from"./component-DAQzDMY8.js";import{r as F}from"./component-oUQcgxDj.js";import{S as L}from"./component-CldKbBUh.js";import{T as B}from"./component-W1KZI4h4.js";import{a as z}from"./tslib.es6-QNbPBOk5.js";import{n as I,c as A}from"./dev.utils-DDWOHUcg.js";import{d as M,K as T}from"./events-CRHxtwup.js";import{A as E}from"./component-BI8jDgBz.js";import{l as H}from"./level-DsQ_pcyD.js";import{c as K}from"./element-interaction-sGYdEpmv.js";import{u as P,l as N,d as W,D as R}from"./scroll-lock-B6hVv8A8.js";import{h as U}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as G,w as Y}from"./width-C1_yZHyL.js";import{r as Q,C as V}from"./component-Ct11K0Gv.js";import{T as J}from"./behavior-Bb7JYoUn.js";import{C as X}from"./keyboard-DNd73LVa.js";const Z=(l,i,s,n)=>{const a=t=>"string"==typeof t||void 0===t;if(e(l,"_ariaLabelledby",a,new Set(["string"]),n),!a(n))return[];const r=t(i,n);if(s){try{s.ariaLabelledByElements=r}catch(t){}o.debug(["WebComponent internals",s])}return r},q=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=h("fixedCols",[0,0],(t=>b(t)),(t=>2===t.length&&t.every(q))),et=h("hasSettingsMenu",!1,u),ot=p();function lt(t){const e="string"==typeof t?l(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=h("data",[],lt,it),nt=h("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=h("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?l(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:o=[],vertical:i=[]}=e;if(!at(o)||!at(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:o,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),ct=h("loading",!1,u),dt=h("selection",!1,(function(t){const e="string"==typeof t?l(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ht={required:[y,st],optional:[tt,et,ot,nt,rt,ct,dt,g]},bt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ut=t=>{const e=bt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=bt(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===mt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},gt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},kt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ft(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},Ct=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},St=t=>void 0===t?[]:Array.isArray(t)?t:[t],wt=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},_t=t=>{const e=t?St(t.selectedKeys):[];return{disabledKeys:new Set((t?St(t.disabledKeys):[]).map(String)),keyPropertyName:wt(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=_.forBlock("kol-table"),$t=Ot("body"),Dt=Ot("cell-actions"),Ft=Ot("cell-states"),Lt=Ot("footer"),Bt=Ot("head"),zt=Ot("head-row"),It=Ot("scroll-container"),At=Ot("selection-icon"),Mt=Ot("selection-input-tooltip"),Tt=Ot("sort"),Et=Ot("sort-button"),Ht=Ot("sort-order"),Kt=Ot("table"),Pt=`${Ot("focus-element")} ${Ot("caption")}`,Nt="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Rt=(t,e,o)=>({left:"left"===e?gt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?gt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Ut=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Gt=t=>{const e=w("kol-sort");return"number"==typeof t&&t>0?`${e} – ${w("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Yt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Wt(t,l),{left:u,right:p}=Rt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:Ot("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:Tt},i(O,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Gt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Et}))),d&&i("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Qt=(t,e,o,l,s=!1)=>i("tr",{class:Ot("row",{body:!s,footer:s}),key:`row-${Ut(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},i("div",{class:Ot("selection",{checked:b})},d?i("label",{class:Ot("selection-label",{disabled:u})},i($,{class:At,icons:"kolicon "+(b?"kolicon-check":""),label:""}),i("input",Object.assign({class:Ot("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:Ot("selection-label")},i("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:Mt},i(B,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,s)=>((t,e,o,l,s)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Yt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Wt(t,l),{left:u,right:p}=Rt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ot("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:Dt},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(O,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(D,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const s=e[l];return s?i("div",{class:Ft},s.map(((t,e)=>"badge"===t.type?i(j,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Vt=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},i("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},Jt=t=>{const e=v(ht,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:b,refScrollContainer:u,refTable:p,selection:m,stickyColsDisabled:y,variant:g}=e,j=w("kol-no-entries"),C=ut(d),S=vt(d.horizontal,o),_=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,S,a,y),maxCols:S,primaryHeaders:C,selectionModel:_t(m),translateNoEntries:j}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:j,primaryHeaders:C}),D=0===n.length;return i(x,{block:"kol-table",class:k(g,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:u,class:It,tabindex:r?D?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":D?Nt:void 0,class:Kt,style:{minWidth:Ct(d)}},D&&i("caption",{class:Pt,id:Nt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},F(h)),i("thead",{class:Bt},[d.horizontal.map(((t,e)=>i("tr",{class:zt,key:`thead-${e}`},m&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},w("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===xt(e,s).length,r=0!==n&&!a;let c;return c=w(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},w("kol-table-selection")),i("div",{class:Ot("selection",{checked:a,indeterminate:r})},i("label",{class:Ot("selection-label")},i($,{class:At,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:Ot("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...xt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:Mt},i(B,{label:c,badgeText:"",refFloating:()=>{}}))))})(_),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return i(s,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return i("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(_),Array.isArray(t)&&t.map(((t,o)=>Yt(_,t,e,o,!1)))))),Vt(_,"head",d.horizontal)]),i("tbody",{class:$t},i("div",{class:Ot("loader",{shown:b})},i(L,{label:w(b?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:b,variant:"cycle"})),O.map(((t,e)=>Qt(_,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Lt},[Vt(t,"foot",n),n.map(((t,e)=>Qt(r,t,e,!0,!0)))])})(_))))},Xt=({dialog:t,card:e},o)=>i(R,Object.assign({},t),e?i(V,Object.assign({},e),o):o),Zt=_.forBlock("kol-table")("settings"),qt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=w("kol-table-settings"),l=w("kol-table-settings-cancel"),s=w("kol-table-settings-apply"),n=w("kol-table-settings-error-all-invisible");let d,h=!1,b=!1;const u=()=>{h=!0,e()},p=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=K(),l=K(),i=new J(a.stateLess),s=I(),n=A("dialog-heading"),r={};let c,h=!0,b={};const u=t=>!d||M(d,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;U(t),t.defaultPrevented||(null===(e=b.onCancel)||void 0===e||e.call(b,t),t.defaultPrevented||u(T.cancel)||t.preventDefault())},g=t=>{var e;t.target===o.el&&(P(r),null===(e=b.onClose)||void 0===e||e.call(b),u(T.close))},k=()=>{i.hideTooltip(),p(),u(T.close)};return{getFcProps:e=>{var a,r,d;let u="",p=0,j="blank",C="100%";y.apply(e.label,(t=>{u=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),G.apply(e.on,(t=>{b=t})),m.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),Y.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const S="card"===j;return S&&!c&&(c=Q(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:g,label:f(u),labelledBy:S?n:void 0,modal:h,refDialog:o,width:C},card:S&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:u,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&N(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:p,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{p(),P(r),i.destroy()}}})(t,u),g=A("alert-heading"),k=I();let j,_=[],x=[],$=null;const D=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},F=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),u()},L=(t,e)=>{const o=[...D()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),F(o)},B=t=>{if(t.preventDefault(),!D().some((t=>!1!==t.visible)))return $=n,void u();if(d){$=null,_=x.map((t=>t.map((t=>Object.assign({},t))))),u();const t=x.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=z(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));M(d,T.changeHeaderCells,t),v.close()}},R=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),b=h,h=!1},render:t=>{var e;b||t===j||(j=t,_=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=D();return i("div",{class:Zt,ref:R},i("div",{class:"kol-table-settings"},i(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(Xt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},$&&i("div",{class:"kol-table-settings__error-message"},i(E,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:g,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:B},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(S,{_checked:!1!==t.visible,_label:w(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=D().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));F(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(C,{_hideLabel:!0,_value:qt(t.width),_label:w("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=qt(Number(e)),l=D().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));F(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(O,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:w(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return L(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),i(O,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:w(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return L(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=_.map((t=>[...t])),$=null,u(),void v.close())}}))),i(O,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class oe extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if(this.cellRenderTimeouts.delete(e),"function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.cellRenderTimeouts.forEach((t=>clearTimeout(t))),this.cellRenderTimeouts.clear(),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){st.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:I()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,o.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Nt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[X.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ut(r).cells,d=vt(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[X.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&M(this.host,T.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[X.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&M(this.host,T.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(Jt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}}export{oe as B,nt as a,st as t,Z as v}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{g as t}from"./bootstrap-tgQ2nQQI.js";import{C as e,e as i,k as s}from"./common-BdSzSIXg.js";import{c as o,b as a}from"./props-from-config-ytxYrJUY.js";import{n}from"./component-B16Fbp3W.js";import{B as r}from"./behavior-Bb7JYoUn.js";const l=o("ariaDetails","",a),c=o("syncValueBySelector",void 0,a),u={optional:[l,n,c]},h=new Set(["KOL-COMBOBOX","KOL-INPUT-CHECKBOX","KOL-INPUT-COLOR","KOL-INPUT-DATE","KOL-INPUT-EMAIL","KOL-INPUT-FILE","KOL-INPUT-NUMBER","KOL-INPUT-PASSWORD","KOL-INPUT-RADIO","KOL-INPUT-RANGE","KOL-INPUT-TEXT","KOL-SELECT","KOL-SINGLE-SELECT","KOL-TEXTAREA"]);class d extends r{constructor(s,{host:o,type:a,name:n}){var r,l,c,d,f;super(s,u),this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.host=this.findHostWithShadowRoot(o),this.type=a,(null===(r=t())||void 0===r?void 0:r.reflectInputValues)&&h.has(null!==(c=null===(l=this.host)||void 0===l?void 0:l.tagName)&&void 0!==c?c:"")&&n&&(null===(d=this.host)||void 0===d||d.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.formAssociated=this.createFormAssociatedElement(),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(f=this.host)||void 0===f||f.appendChild(this.formAssociated))}componentWillLoad(t){this.watchName(t.name),this.watchSyncValueBySelector(t.syncValueBySelector),this.watchAriaDetails(t.ariaDetails)}watchAriaDetails(t){l.apply(t,(t=>this.setRenderProp("ariaDetails",t)))}watchName(t){n.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}watchSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){this.setRenderProp("syncValueBySelector",t);const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}setNameAttribute(t){this.setAttribute("name",this.formAssociated,t)}createFormAssociatedElement(){switch(this.type){case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":{const t=document.createElement("input");return t.setAttribute("type",this.type),t}case"select":{const t=document.createElement("select");return t.setAttribute("multiple",""),t}case"textarea":return document.createElement("textarea");default:{const t=document.createElement("input");return t.setAttribute("type","hidden"),t}}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;){const e=t.parentNode;t=11===(null==e?void 0:e.nodeType)&&"host"in e?e.host:1===(null==e?void 0:e.nodeType)?e:void 0}return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?i.files=t:i.value="";break;case"select":"SELECT"===i.tagName?this.syncSelectOptions(t,i):this.syncValueAttribute(e,i);break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:this.syncValueAttribute(e,i)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const i=this.tryToStringifyValue(t);if("string"==typeof i){const t=document.createElement("option");t.setAttribute("value",i),t.setAttribute("selected",""),e.appendChild(t)}}))}syncValueAttribute(t,e){"string"==typeof t?(e.setAttribute("value",t),e.value=t):(e.removeAttribute("value"),e.value="")}}export{d as F,l as a}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as o}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-Dulj0jro.js";import{c}from"./clsx-COFh-Vc8.js";import{g as r}from"./block-bem-BGIVcYJu.js";const m=(m,t)=>{var{block:i,modifiers:e,class:a,component:l="div"}=m,n=o(m,["block","modifiers","class","component"]);const b=r(i);return s(l,Object.assign({class:c(b(e),a)},n),t)};export{m as B}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a}from"./tslib.es6-QNbPBOk5.js";import{h as e}from"./index-Dulj0jro.js";import"./common-BdSzSIXg.js";import{c as o,i as s,u as i,a as t,b as r,r as n,t as l}from"./props-from-config-ytxYrJUY.js";import{a as d,b as c,c as p,f as m,g as u,h as b,i as f,l as h,d as x,s as v,t as j,e as y,v as g,A as B,j as I}from"./component-C79oAu7a.js";import{b as D}from"./bem-registry-DQUGxdIS.js";import{c as C}from"./clsx-COFh-Vc8.js";import{B as k}from"./component-B05zRrM0.js";import{S as w}from"./component-oUQcgxDj.js";import{T as K}from"./component-W1KZI4h4.js";import{d as S}from"./disabled-BZXlWAgK.js";import{i as F}from"./id-BI0ZuK17.js";import{l as T}from"./label-with-expert-slot-BbZ9nx0l.js";const A=["dialog","false","grid","listbox","menu","tree","true"],E=o("ariaHasPopup","",(function(a){if(""===a)return"";if(s(a,A))return a;throw new Error(`Invalid aria-haspopup value: expected one of ${A.join(", ")}, got ${JSON.stringify(a)}`)})),M=o("ariaSelected","",(function(a){return i(a,"aria-selected")})),O=t(),P=["button","reset","submit"],Z=o("type","button",(function(a){const e=r(a);if(s(e,P))return e;throw new Error(`Invalid button type: ${e}`)}),(a=>P.includes(a))),H=o("name","",r),L={required:[T],optional:[d,c,p,m,E,M,O,Z,u,S,b,F,f,h,H,x,v,j,y,g]},Q=D.forBlock("kol-button"),U=Q("interactive-element"),$=Q("text"),z=Q("tooltip"),J=o=>{const s=n(L,o),{accessKey:i,ariaControls:t,ariaDescription:r,ariaDescriptionId:d,ariaExpanded:c,ariaHasPopup:p,ariaSelected:m,class:u,customClass:b,disabled:f,handleBlur:h,handleClick:x,handleFocus:v,handleMouseDown:j,hideLabel:y,icons:g,id:D,inline:S,label:F,name:T,refButton:A,refTooltip:E,role:M,shortKey:O,tabIndex:P,type:Z,variant:H}=s,Q=a(s,["accessKey","ariaControls","ariaDescription","ariaDescriptionId","ariaExpanded","ariaHasPopup","ariaSelected","class","customClass","disabled","handleBlur","handleClick","handleFocus","handleMouseDown","hideLabel","icons","id","inline","label","name","refButton","refTooltip","role","shortKey","tabIndex","type","variant","on","tooltipAlign"]),J=i||O,N=l(F).length>0,W=r.trim().length>0;return e(k,Object.assign({block:"kol-button",class:C(u,{[I(H,"button")]:H.length>0,[b]:b.length>0}),modifiers:{disabled:f,"hide-label":y,inline:!0===S,standalone:!1===S}},Q),e("button",{ref:A,accessKey:i||void 0,"aria-controls":t||void 0,"aria-describedby":W?d:void 0,"aria-expanded":c||void 0,"aria-haspopup":p||void 0,"aria-keyshortcuts":O||void 0,"aria-label":y&&N?l(F):void 0,"aria-selected":m||void 0,class:U,disabled:f,id:D||void 0,name:T||void 0,onBlur:h,onClick:x,onFocus:v,onMouseDown:j,role:M||void 0,tabIndex:P,type:Z},e(w,{class:$,badgeText:J,icons:g,hideLabel:y,label:F},e("slot",{name:"expert",slot:"expert"}))),y&&N&&e("div",{class:z},e(K,{badgeText:J,label:F,refFloating:E})),W&&e(B,{description:r,descriptionId:d}))};export{J as B,M as a,L as b,O as c,Z as d,E as e,H as n}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as o}from"./tslib.es6-QNbPBOk5.js";import{h as l,F as e}from"./index-Dulj0jro.js";import{g as r}from"./Heading-C_CwXDMp.js";import{t as a}from"./i18n-ePBcLlCr.js";import"./common-BdSzSIXg.js";import{t as s}from"./props-from-config-ytxYrJUY.js";import{b as i}from"./bem-registry-DQUGxdIS.js";import{c as n}from"./clsx-COFh-Vc8.js";import{B as t}from"./component-B05zRrM0.js";import{B as c}from"./component-B16Fbp3W.js";import{r as d}from"./component-oUQcgxDj.js";import{I as p}from"./component-Clz6b6ho.js";const m=i.forBlock("kol-alert")("icon"),f={error:{label:a("kol-error"),icon:"kolicon-alert-error"},info:{label:a("kol-info"),icon:"kolicon-alert-info"},warning:{label:a("kol-warning"),icon:"kolicon-alert-warning"},success:{label:a("kol-success"),icon:"kolicon-alert-success"},default:{label:a("kol-message"),icon:"kolicon-alert-info"}},b=({type:o="default"})=>{const r=f[o||"default"];return l(e,null,l("span",{class:"visually-hidden"},r.label),l(p,{class:m,label:"",icons:r.icon}))},k=i.forBlock("kol-alert"),u=k("closer"),h=k("content"),C=void 0,j=(e,i)=>{const{alert:p,class:m,closerAriaDescriptionId:f,handleCloserClick:j,hasCloser:g,headingId:v,label:y,level:B,refCloserButton:D,refCloserTooltip:I,type:x,variant:w}=e,A=o(e,["alert","class","closerAriaDescriptionId","handleCloserClick","hasCloser","headingId","label","level","refCloserButton","refCloserTooltip","type","variant"]),F=a("kol-close-alert"),S=r(null!=B?B:0);return l(t,Object.assign({block:"kol-alert",class:m,modifiers:{hasCloser:!0===g,[`type-${x}`]:!0,[`variant-${w}`]:!0},role:p?"alert":void 0},A),l(b,{type:x}),!!(null==y?void 0:y.length)&&l(S,{class:n("kol-headline",`kol-headline--${S}`,k("heading",{[`h${B}`]:!0}),"kol-headline--single"),id:v},d(y)),g&&l(c,{accessKey:"",ariaControls:"",ariaDescription:s(y),ariaDescriptionId:f,ariaExpanded:C,ariaHasPopup:"",ariaSelected:C,class:n(u,"kol-close-button"),customClass:"",disabled:!1,handleBlur:()=>{},handleClick:j,handleFocus:()=>{},handleMouseDown:()=>{},hideLabel:!0,icons:{left:{icon:"kolicon-cross"}},id:"",inline:!1,label:F,name:"",on:{},refButton:D,refTooltip:I,role:C,shortKey:"",tabIndex:C,tooltipAlign:"top",type:"button",variant:["normal"]}),l("div",{"aria-describedby":(null==y?void 0:y.length)?v:void 0,class:h},i))};export{j as A}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{n as r}from"./common-BdSzSIXg.js";import{c as t,b as n,u as o,n as e,i as a,w as s,o as i}from"./props-from-config-ytxYrJUY.js";import{a as f}from"./validators-CTjxOidB.js";import{c as u}from"./component-W1KZI4h4.js";import{h as c}from"./index-Dulj0jro.js";const l=(r,t)=>{let n="";return Array.isArray(r)&&r.forEach((r=>{n+="kol-"+t+"--"+r+" "})),n},p=t("accessKey","",n),d=t("ariaControls","",n),m=t("ariaDescription","",n),y=t("ariaExpanded","",(function(r){return o(r,"aria-expanded")})),b=t("customClass","",n,(function(r){return""===r||f(r)})),g=t("hideLabel",!1,e),j=t("inline",!0,e),h=["tab","treeitem"],v=t("role","",(function(r){if(""===r)return"";if(a(r,h))return r;throw new Error(`Invalid role: expected one of ${h.join(", ")}, got ${JSON.stringify(r)}`)})),x=t("shortKey","",n),I=t("icons",{},(function(r){if(!r||"string"==typeof r&&""===r)return{};if("string"==typeof r&&/^[{[]/.test(r.trim()))return s(r);if("string"==typeof r)return n(r);if("object"==typeof r)return s(r);throw new Error("Invalid icons: "+typeof r)}),(function(r){return"string"==typeof r?r.length>0:"object"==typeof r&&null!==r})),w=t("tabIndex",0,i,void 0,{hints:(t,n)=>{"number"==typeof n&&n>0&&r(`Positive tabIndex values ("${n}") can disrupt the natural tab order. Use 0 for tabbable elements or rely on DOM order.`)}}),A=u("tooltipAlign","right"),C=t("variant",[],(function(r){return Array.isArray(r)?r:"string"==typeof r?r.split(" "):[]}),(function(r){return 0===r.length||r.every(f)})),D=({description:r,descriptionId:t})=>r?c("span",{class:"visually-hidden",id:t},r):null;export{D as A,p as a,d as b,m as c,x as d,A as e,y as f,b as g,g as h,j as i,l as j,v as l,I as s,w as t,C as v}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as s,F as r}from"./index-Dulj0jro.js";import{t as a}from"./i18n-ePBcLlCr.js";import{b as n}from"./bem-registry-DQUGxdIS.js";import{B as o}from"./component-B05zRrM0.js";import{c as e,n as t,b as l,r as i}from"./props-from-config-ytxYrJUY.js";import"./common-BdSzSIXg.js";import{l as c}from"./label-B-Dr7VaP.js";const p=e("show",!1,t),m=["dot","cycle","none"],u=e("variant","dot",(s=>{const r=l(s);if(m.includes(r))return r;throw new Error(`Invalid spin variant: ${r}`)}),(()=>!0)),d={optional:[c,p,u]},f=n.forBlock("kol-spin"),j=f("loader"),b=["1","2","3","neutral"],y=n=>{const{show:e,label:t,variant:l}=i(d,n);return s(o,{block:"kol-spin"},e?s(r,null,s("span",{class:f("spinner",{[l]:!0})},function(r){switch(r){case"cycle":return s("span",{class:j});case"none":return s("slot",{name:"expert"});default:return b.map((r=>s("span",{class:f("spinner-element",{[r]:!0})})))}}(l)),s("span",{"aria-busy":"true",class:"visually-hidden",role:"alert"},t||a("kol-action-running"))):s("span",{"aria-busy":"false",class:"visually-hidden",role:"alert"},t||a("kol-action-done")))};export{y as S,p as a,d as s,u as v}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as s}from"./tslib.es6-QNbPBOk5.js";import{h as o}from"./index-Dulj0jro.js";import{b as i}from"./bem-registry-DQUGxdIS.js";import{c as r}from"./clsx-COFh-Vc8.js";const a=i.forBlock("kol-icon"),l=a(),e=a("icon"),t=i=>{var{class:a,icons:t,label:c}=i,n=s(i,["class","icons","label"]);const m=(null==c?void 0:c.length)>0;return o("i",Object.assign({},n,{"aria-hidden":m?void 0:"true","aria-label":m?c:void 0,class:r(l,e,t,a),role:m?"img":"presentation"}))};export{t as I}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as o}from"./index-Dulj0jro.js";import{t as a}from"./i18n-ePBcLlCr.js";import{e}from"./common-BdSzSIXg.js";import{c as s,b as i,a as r,r as t,t as n}from"./props-from-config-ytxYrJUY.js";import{a as l,b as d,c,f as p,g as m,h as f,s as b,i as k,l as v,d as j,t as h,e as x,v as g,A as u,j as y}from"./component-C79oAu7a.js";import{b as C}from"./bem-registry-DQUGxdIS.js";import{c as w}from"./clsx-COFh-Vc8.js";import{p as I}from"./element-interaction-sGYdEpmv.js";import{B as _}from"./component-B05zRrM0.js";import{I as D}from"./component-Clz6b6ho.js";import{S as A}from"./component-oUQcgxDj.js";import{T as B}from"./component-W1KZI4h4.js";import{d as K}from"./disabled-BZXlWAgK.js";import{h as L}from"./href-CxokGOJ2.js";import{l as O}from"./label-with-expert-slot-BbZ9nx0l.js";import{l as S}from"./link-target-D7lYILOV.js";const T=["date","location","page","step","time","true","false"],Y=s("ariaCurrentValue","page",(function(o){const a=i(o);return T.includes(a)?a:"page"})),z=s("ariaOwns","",i),G=s("download",void 0,i),U=r(),V={required:[L],optional:[l,d,Y,c,p,z,m,K,G,f,b,k,O,U,v,S,j,h,x,g]},Z=C.forBlock("kol-link"),$=(s,i)=>{const{accessKey:r,ariaControls:l,ariaCurrent:d,ariaDescription:c,ariaDescriptionId:p,ariaExpanded:m,ariaOwns:f,class:b,customClass:k,disabled:v,download:j,handleAnchorClick:h,hideLabel:x,href:g,icons:C,inline:K,label:L,on:O,ref:S,refAnchor:T,refTooltip:Y,role:z,shortKey:G,tabIndex:U,target:$,variant:E,expertSlot:F}=t(V,s),J=a("kol-open-link-in-tab"),M="string"==typeof $&&$.length>0&&"_self"!==$,Q={href:"string"==typeof g&&g.length>0?g:"javascript:void(0);",target:"string"==typeof $&&$.length>0?$:void 0,rel:M?"noopener":void 0,download:"string"==typeof j?j:void 0};!0===x&&""===n(L)&&e("[KolLink] An aria-label must be set when _hide-label is set.");const W=null==c?void 0:c.trim(),X=z||void 0;return o(_,{block:"kol-link",ref:S,class:w(b,{[k]:E.includes("custom")&&k.length>0,[y(E,"link")]:E.length>0}),modifiers:{disabled:!0===v,"external-link":M,"hide-label":!0===x,inline:!0===K,standalone:!1===K}},o("a",Object.assign({ref:T},Q,{href:Q.href,accessKey:r||void 0,"aria-current":d||void 0,"aria-controls":l||void 0,"aria-describedby":W?p:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":""===m?void 0:m,"aria-owns":f||void 0,"aria-label":x&&""!==n(L)?`${n(L)}${M?` (${J})`:""}`:void 0,"aria-keyshortcuts":G||void 0,class:Z("interactive-element")},O,{onClick:h,onMouseDown:v?I:void 0,role:X,tabIndex:v?-1:U}),o(A,{class:"kol-link__text",badgeText:r||G,icons:C,hideLabel:x,label:F?"":L||g},i.length>0?i:o("slot",{name:"expert",slot:"expert"})),M&&o(D,{class:"kol-link__icon",label:x?"":J,icons:"kolicon-link-external","aria-hidden":x})),!0===x&&!F&&o("div",{class:"kol-link__tooltip"},o(B,{badgeText:r||G||"",label:""!==n(L)?L:"string"==typeof g?g:"",refFloating:Y})),W&&o(u,{description:W,descriptionId:p}))};export{$ as L,Y as a,U as b,z as c,G as d,V as l}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as o}from"./index-Dulj0jro.js";import"./common-BdSzSIXg.js";import{s as l,b as i}from"./component-oUQcgxDj.js";import{a,g as r,b as s,i as t}from"./api-DGiFM9p0.js";import{b as n}from"./bem-registry-DQUGxdIS.js";import{a as d}from"./dev.utils-DDWOHUcg.js";import{B as b}from"./component-B05zRrM0.js";import{T as c}from"./component-W1KZI4h4.js";const p=n.forBlock("kol-field-control"),m=({hideLabel:e,label:o,renderNoTooltip:i})=>!i&&!l(o)&&!0===e,f=(n,f)=>{const{class:h,id:g,label:j,hint:u,hideLabel:y,labelAlign:B,infoPopover:N,accessKey:k,shortKey:v,tooltipAlign:O,disabled:T,msg:K,touched:x,required:D,readOnly:I,renderNoHint:P,renderNoTooltip:A,labelProps:L,refInput:S,refTooltip:_}=n,q=e(n,["class","id","label","hint","hideLabel","labelAlign","infoPopover","accessKey","shortKey","tooltipAlign","disabled","msg","touched","required","readOnly","renderNoHint","renderNoTooltip","labelProps","refInput","refTooltip"]),F=l(j),H=m({hideLabel:y,label:j,renderNoTooltip:A}),Q=i(k,v),U=t(K,x),z=()=>o("div",{class:p("input"),ref:S},f),C=()=>H?o("div",{class:"kol-form-field__tooltip"},o(c,{badgeText:Q||"",label:j,align:O,id:d(g,"label"),refFloating:_})):null,G=()=>o(s,Object.assign({},L,{id:g,baseClassName:"kol-field-control",class:y?"kol-field-control__label--visually-hidden":void 0,omitId:H,hasExpertSlot:F,label:j,accessKey:k,shortKey:v,infoPopover:N}));return o(b,Object.assign({block:"kol-field-control",modifiers:Object.assign(Object.assign({disabled:Boolean(T),required:Boolean(D),touched:Boolean(x),"hide-label":Boolean(y),"read-only":Boolean(I)},U?{[r(K)]:!0}:{}),{"label-align-left":"left"===B,"label-align-right":"right"===B}),class:h},q),"left"===B?[G(),z(),C()]:[z(),C(),G()],!P&&o(a,{baseClassName:"kol-field-control",id:g,hint:u}))};export{f as F,m as i}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s,F as a}from"./index-Dulj0jro.js";import"./common-BdSzSIXg.js";import{i as o,g as i,c as l}from"./api-DGiFM9p0.js";import{c as r}from"./clsx-COFh-Vc8.js";import{a as t}from"./dev.utils-DDWOHUcg.js";import{g as d}from"./block-bem-BGIVcYJu.js";const c=c=>{const{class:b,msg:n,required:u,disabled:m,touched:p,readonly:j,ariaDescribedBy:g,hideLabel:B,label:y,suggestions:f,value:h}=c,D=e(c,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),O=Object.assign(Object.assign({class:r(d("kol-input")(Object.assign({disabled:Boolean(m),required:Boolean(u),touched:Boolean(p),readonly:Boolean(j)},o(n,p)?{[i(n)]:!0}:{})),b),required:u,disabled:m,readonly:j,type:"text",list:f&&"string"==typeof D.id?t(D.id,"list"):void 0},l({ariaDescribedBy:g,hideLabel:B,label:y})),D);return s(a,null,s("input",Object.assign({},O,{value:h})),f)};export{c as I}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{p as o,a as e}from"./controller-CZcQ57AP.js";import{s}from"./common-BdSzSIXg.js";import{n as t}from"./dev.utils-DDWOHUcg.js";import{c as r}from"./element-interaction-sGYdEpmv.js";import{d as n,K as l}from"./events-CRHxtwup.js";import{B as i}from"./base-web-component-CC_gpyDb.js";import{T as a}from"./behavior-Bb7JYoUn.js";import{r as m}from"./resolve-props-Bj6IaybL.js";const c=c=>{const d=new a(i.stateLess),p=r(),u=t();let v,f,j;const b=(o,e)=>{j&&n(j,o,e)},g=t=>{if(t.stopPropagation(),d.hideTooltip(),"submit"===(null==v?void 0:v.type))o({form:j});else if("reset"===(null==v?void 0:v.type))e({form:j});else{const o=null==v?void 0:v.on.onClick;"function"==typeof o&&(s(t,p.el),o(t,f))}b(l.click,f)},B=o=>{var e,s;null===(s=null==v?void 0:(e=v.on).onMouseDown)||void 0===s||s.call(e,o),b(l.mousedown)},h=o=>{var e,s;null===(s=null==v?void 0:(e=v.on).onFocus)||void 0===s||s.call(e,o),b(l.focus)},y=o=>{var e,s;null===(s=null==v?void 0:(e=v.on).onBlur)||void 0===s||s.call(e,o),b(l.blur)},C=o=>{o&&(j=o)};return{getFcProps:(o,e)=>(v=m(o,c()),f=o._value,d.componentWillLoad({label:v.label,align:v.tooltipAlign}),Object.assign(Object.assign(Object.assign({},v),e),{ariaDescriptionId:u,handleBlur:y,handleClick:g,handleFocus:h,handleMouseDown:B,ref:C,refButton:p,refTooltip:d.setTooltipElementRef})),getElement:()=>p.el,getRootElement:()=>j,syncListeners:()=>{p.el&&d.syncListeners(void 0,p.el,!0)},destroy:()=>{d.destroy()}}};export{c}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{o}from"./ariaCurrentService-YoLNpD5S.js";import{s as r}from"./common-BdSzSIXg.js";import{n as t}from"./dev.utils-DDWOHUcg.js";import{c as e}from"./element-interaction-sGYdEpmv.js";import{d as n,K as s}from"./events-CRHxtwup.js";import{B as i}from"./base-web-component-CC_gpyDb.js";import{T as l}from"./behavior-Bb7JYoUn.js";import{r as c}from"./resolve-props-02J6OCRf.js";const p=p=>{const a=new l(i.stateLess),m=e(),f=t();let d,u,v,j="",b=!1;const g=()=>"string"==typeof(null==d?void 0:d.href)?d.href:"",C=()=>{const o=null==d?void 0:d.label;return"string"==typeof o&&o.length>0?o:g()},y=o=>{const r=o===(null==d?void 0:d.href)?d.ariaCurrentValue:"";j!==r&&(j=r,b||p())},D=o=>{if(a.hideTooltip(),!0===(null==d?void 0:d.disabled))return void o.preventDefault();const t=g(),e=null==d?void 0:d.on;"function"==typeof(null==e?void 0:e.onClick)&&(r(o,m.el),e.onClick(o,t)),u&&n(u,s.click,t)},O=o=>{o&&(u=o)};return{getFcProps:(r,t)=>(d=c(r),v||(b=!0,v=o(y),b=!1),a.componentWillLoad({label:C(),align:d.tooltipAlign}),Object.assign(Object.assign(Object.assign({},d),t),{ariaCurrent:j,ariaDescriptionId:f,expertSlot:""===r._label,handleAnchorClick:D,ref:O,refAnchor:m,refTooltip:a.setTooltipElementRef})),syncListeners:()=>{m.el&&a.syncListeners(void 0,m.el,!0)},destroy:()=>{null==v||v(),v=void 0,a.destroy()}}};export{p as c}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as t}from"./index-Dulj0jro.js";import{t as e}from"./i18n-ePBcLlCr.js";import{p as s,S as o}from"./common-BdSzSIXg.js";import{c as i,C as a,a as n,r as l,t as r,d as p}from"./props-from-config-ytxYrJUY.js";import{b as u}from"./bem-registry-DQUGxdIS.js";import{B as c}from"./component-B05zRrM0.js";import{B as g}from"./component-B16Fbp3W.js";import{d as h,K as d}from"./events-CRHxtwup.js";import{r as m,a as b}from"./unique-nav-labels-CxFUYSVY.js";import{g as v,e as f}from"./component-C79oAu7a.js";import{l as C}from"./label-B-Dr7VaP.js";import{c as y}from"./item-8RKFpmbd.js";import{c as S}from"./item-pool-BOxAYePG.js";import{c as z}from"./dev.utils-DDWOHUcg.js";import{c as j}from"./element-interaction-sGYdEpmv.js";import{B as k,s as x}from"./base-web-component-CKgIOZqi.js";const O=i("boundaryCount",1,(t=>Math.max(0,t))),B=i("page",0,a),_=i("pageSize",1,a),P=/^\[object Object\]$/,A=i("pageSizeOptions",[],(function(t){if(""===t||"string"==typeof t&&P.test(t))throw new Error("Unreflected page size options");const e="string"==typeof t?s(t):t;if(Array.isArray(e)&&e.every((t=>"number"==typeof t)))return e.map((t=>({label:`${t}`,value:t})));throw new Error("Invalid page size options")})),$=n(),w=["first","last","next","previous"],D=t=>({first:t,last:t,next:t,previous:t}),F=i("hasButtons",D(!0),(function t(e){if("boolean"==typeof e)return D(e);if("object"==typeof e&&null!==e){const t={};return w.forEach((s=>{const o=e[s];"boolean"==typeof o&&(t[s]=o)})),t}if("string"==typeof e){const o=s(e);return"object"==typeof o&&null!==o?t(o):D(!1)}throw new Error("Invalid pagination buttons")})),I=i("max",0,a),M=i("siblingCount",1,(t=>Math.max(0,t))),Y={required:[C,B,$,I],optional:[O,v,A,_,F,M,f]},E=(t,e=1)=>Math.ceil(t/e),H=(t,e)=>{var s,o;return e.length>0?null!==(o=null===(s=e.find((e=>e.value===t)))||void 0===s?void 0:s.value)&&void 0!==o?o:e[0].value:t},K=(t,e,s,o)=>{const i=[];let a=!1;for(let n=1;n<=e;n++)n<=s||n>e-s||n>=t-o&&n<=t+o?(a=!0,i.push({page:n,selected:n===t})):a?(a=!1,i.push("separator")):i.push(null);return i},U=u.forBlock("kol-pagination"),q={left:"kolicon-chevron-double-left"},G={left:"kolicon-chevron-left"},L={right:"kolicon-chevron-right"},R={right:"kolicon-chevron-double-right"},T=(V=navigator.language||"de-DE").includes("-")?V:`${V}-${V.toUpperCase()}`;var V;const W=new Intl.NumberFormat(T,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}),J=s=>{const{boundaryCount:o,customClass:i,getButtonFcProps:a,handlePageClick:n,hasButtons:p,label:u,max:c,navigationCallbacks:h,page:d,pageSize:m,pageSizeOptions:b,renderPageSizeSelect:v,siblingCount:f,tooltipAlign:C}=l(Y,s),y=E(c,m),{start:S,end:z}=((t,e,s)=>{const o=t*e;return{start:Math.max(0,(t-1)*e+1),end:s<o?s:o}})(d,m,c),j=(e,s,o,n)=>t("li",null,t(g,Object.assign({},a(`navigation-${e}`,{_customClass:i,_disabled:n,_icons:s,_hideLabel:!0,_label:o,_on:h[e],_tooltipAlign:C},{class:U("button",{[e]:!0})}))));return[t("span",{role:"status","aria-live":"polite",class:U("entries")},e("kol-table-visible-range",{placeholders:{start:W.format(S),end:W.format(z),total:W.format(c)}})),t("nav",{class:U("navigation"),"aria-label":r(u)},t("ul",{class:U("navigation-list")},p.first&&j("first",q,e("kol-page-first"),d<=1),p.previous&&j("previous",G,e("kol-page-back"),d<=1),K(d,y,o,f).map(((s,o)=>null===s?null:"separator"===s?t("li",{key:o+1<d?"separator-left":"separator-right"},t("span",{class:U("separator"),"aria-hidden":"true"})):((s,o)=>{const l=W.format(s),r=`${e("kol-page")} ${l}`;return t("li",{key:`page-${s}`},t(g,Object.assign({},o?a(`page-${s}`,{_ariaDescription:r,_customClass:i,_label:l},{"aria-current":"page",class:`${U("button",{selected:!0})} selected`}):a(`page-${s}`,{_ariaDescription:r,_customClass:i,_label:l,_on:{onClick:t=>n(t,s)}},{class:U("button",{numbers:!0})}))))})(s.page,s.selected))),p.next&&j("next",L,e("kol-page-next"),y<=d),p.last&&j("last",R,e("kol-page-last"),y<=d))),(null==b?void 0:b.length)>0&&t("div",{class:"page-size"},t("div",{class:U("page-size-select")},v({label:e("kol-entries-per-site"),options:b,value:m})))]},Q=e=>t(c,{block:"kol-pagination"},t(J,Object.assign({},e)));class X extends k{constructor(t,e){super(),this.getHost=t,this.requestRender=e,this._disabled=!1,this._multiple=!1,this.ctaRef=j(),this.id=z("select"),this.loaded=!1,this.focused=!1,this.touched=!1,this.propsConfig=x,this.initFormAssociation("select")}get host(){var t;return null===(t=this.getHost)||void 0===t?void 0:t.call(this)}get inputHasFocus(){return this.focused}set inputHasFocus(t){t!==this.focused&&(this.focused=t,this.requestRender())}get _touched(){return this.touched}set _touched(t){t!==this.touched&&(this.touched=!0===t,this.applyTouched(t),this.requestRender())}get _value(){return this.value}set _value(t){t!==this.value&&(this.value=t,this.applyValue(t),this.requestRender())}getAccessKeyProp(){}getShortKeyProp(){}render(t){return this.loaded?this.update(t):this.load(t),this.renderSelectField()}sync(){this.syncFormField()}destroy(){this.destroyFormField()}load(t){this.passed=t,this._on=t.on,this.value=t.value,this.applyAriaDetails(void 0),this.applyName(void 0),this.applySyncValueBySelector(void 0),this.applyTouched(!1),this.applyAccessKey(void 0),this.applyMsg(void 0),this.applyDisabled(!1),this.applyHideMsg(!1),this.applyHideLabel(!1),this.applyHint(""),this.applyInfoPopover(void 0),this.applyLabel(t.label),this.applyShortKey(void 0),this.applyOn(t.on),this.applyTooltipAlign("top"),this.applyVariant(void 0),this.applyTabIndex(void 0),this.applyIcons(void 0),this.applyOptions(t.options),this.applyMultiple(!1),this.applyRequired(!1),this.applyRows(void 0),this.applyValue(t.value),this.loaded=!0}update(t){const e=this.passed;this.passed=t,t.label!==e.label&&this.applyLabel(t.label),t.options!==e.options&&this.applyOptions(t.options),t.on!==e.on&&(this._on=t.on,this.applyOn(t.on)),t.value!==e.value&&t.value!==this.value&&(this.value=t.value,this.applyValue(t.value))}}const Z=["boundaryCount","customClass","hasButtons","on","page","pageSize","pageSizeOptions","siblingCount","tooltipAlign","max","label"],N=t=>{var s;const i=null!==(s=t.store)&&void 0!==s?s:(()=>{const t=p(Y);return{get:e=>t[e],set:(e,s)=>{t[e]=s}}})(),a=e("kol-pagination"),n=S((()=>y(t.getEventTarget)),(t=>t.syncListeners()),(t=>t.destroy())),l=(t,e,s)=>n.get(t).getFcProps(e,s),r=S((()=>new X(t.getEventTarget,t.requestRender)),(t=>t.sync()),(t=>t.destroy()));let u,c=1,g={};i.set("label",a);const z=(e,s)=>{setTimeout((()=>{var o,a;null===(a=(o=i.get("on")).onChangePage)||void 0===a||a.call(o,e,s);const n=t.getEventTarget();n&&h(n,d.changePage,s)}))},j=(t,e,s)=>{const a=((t,e,s)=>{if(s>0){const o=E(s,e);if(o>0){if(t>o)return o;if(t<1)return 1}}})(t,e,s);void 0!==a&&(i.set("page",a),z(o,a))},k=t=>{null!=t&&_.apply(t,(t=>{const e=H(t,i.get("pageSizeOptions"));i.set("pageSize",e),j(i.get("page"),e,i.get("max"))}))},x=(t,e,s)=>{e||m(i.get("label")),C.apply(t,(t=>i.set("label",null!=t?t:a)),s),b(i.get("label"))},P=(e,s)=>{var o,a;u=s,null===(a=(o=i.get("on")).onClick)||void 0===a||a.call(o,e,s);const n=t.getEventTarget();n&&h(n,d.click,s),z(e,s)},w=(e,s)=>{const o=parseInt(s);o>0&&c!==o&&(k(o),c=o,t.requestRender(),setTimeout((()=>{var s,o;const a=c;null===(o=(s=i.get("on")).onChangePageSize)||void 0===o||o.call(s,e,a);const n=t.getEventTarget();n&&h(n,d.changePageSize,a)})))},D={onChange:w},K=t=>r.get("page-size").render(Object.assign(Object.assign({},t),{on:D})),U={first:{onClick:t=>P(t,1)},last:{onClick:t=>P(t,E(i.get("max"),i.get("pageSize")))},next:{onClick:t=>P(t,i.get("page")+1)},previous:{onClick:t=>P(t,i.get("page")-1)}},q={applyBoundaryCount:t=>O.apply(t,(t=>i.set("boundaryCount",t))),applyCustomClass:t=>v.apply(t,(t=>i.set("customClass",t))),applyHasButtons:t=>F.apply(t,(t=>i.set("hasButtons",Object.assign(Object.assign({},i.get("hasButtons")),t)))),applyLabel:(t,e)=>x(t,!1,e),applyMax:t=>{null!=t&&I.apply(t,(t=>{i.set("max",t),j(i.get("page"),i.get("pageSize"),t)}))},applyOn:t=>$.apply(t,(t=>i.set("on",t))),applyPage:t=>{null!=t&&B.apply(t,(t=>{i.set("page",t),j(t,i.get("pageSize"),i.get("max"))}))},applyPageSize:t=>{k(t),c=t},applyPageSizeOptions:t=>A.apply(t,(t=>{let e;i.set("pageSizeOptions",t),t.length>0&&(e=H(i.get("pageSize"),t),i.set("pageSize",e)),j(i.get("page"),e,i.get("max"))})),applySiblingCount:t=>M.apply(t,(t=>i.set("siblingCount",t))),applyTooltipAlign:t=>f.apply(null!=t?t:"top",(t=>i.set("tooltipAlign",t))),load:t=>{g=Object.assign({},t),q.applyBoundaryCount(t.boundaryCount),q.applyCustomClass(t.customClass),q.applyHasButtons(t.hasButtons),x(t.label,!0),q.applyOn(t.on),q.applyPage(t.page),q.applyPageSize(t.pageSize),q.applyPageSizeOptions(t.pageSizeOptions),q.applySiblingCount(t.siblingCount),q.applyTooltipAlign(t.tooltipAlign),q.applyMax(t.max),q.applyPage(t.page)},update:t=>{for(const e of Z)t[e]!==g[e]&&(g=Object.assign(Object.assign({},g),{[e]:t[e]}),"pageSize"===e&&t.pageSize===c||G[e](t[e]))},getFcProps:()=>(n.beginRender(),r.beginRender(),{boundaryCount:i.get("boundaryCount"),customClass:i.get("customClass"),getButtonFcProps:l,handlePageClick:P,handlePageSizeChange:w,hasButtons:i.get("hasButtons"),label:i.get("label"),max:i.get("max"),navigationCallbacks:U,on:i.get("on"),page:i.get("page"),pageSize:i.get("pageSize"),pageSizeOptions:i.get("pageSizeOptions"),renderPageSizeSelect:K,siblingCount:i.get("siblingCount"),tooltipAlign:i.get("tooltipAlign")}),sync:()=>{n.endRender(),r.endRender(),(()=>{if(void 0===u||u!==i.get("page"))return;u=void 0;const t=n.get(`page-${i.get("page")}`).getElement(),e=null==t?void 0:t.getRootNode(),s=!(null==e?void 0:e.activeElement)&&(null===document.activeElement||document.activeElement===document.body);(null==t?void 0:t.isConnected)&&s&&t.focus()})()},destroy:()=>{m(i.get("label")),n.destroy(),r.destroy()}},G={boundaryCount:q.applyBoundaryCount,customClass:q.applyCustomClass,hasButtons:q.applyHasButtons,label:q.applyLabel,max:q.applyMax,on:q.applyOn,page:q.applyPage,pageSize:q.applyPageSize,pageSizeOptions:q.applyPageSizeOptions,siblingCount:q.applySiblingCount,tooltipAlign:q.applyTooltipAlign};return q};export{Q as P,N as c,Y as p}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{X as o}from"./common-BdSzSIXg.js";import{n as s,c as t}from"./dev.utils-DDWOHUcg.js";import{c as a}from"./element-interaction-sGYdEpmv.js";import{d as r,K as e}from"./events-CRHxtwup.js";import{e as n,a as m,c as i,d as p,n as l}from"./component-B16Fbp3W.js";import{d as c}from"./disabled-BZXlWAgK.js";import{a as d,c as b,g as j,h as f,i as v,l as g,d as u,s as B,t as O,e as w,v as x}from"./component-C79oAu7a.js";import{d as y}from"./props-from-config-ytxYrJUY.js";import{l as D}from"./label-with-expert-slot-BbZ9nx0l.js";import{p as h,a as C}from"./component-Bc2pdOk1.js";import{B as Y}from"./base-web-component-CC_gpyDb.js";import{r as I}from"./resolve-props-Bj6IaybL.js";import{T as K}from"./behavior-Bb7JYoUn.js";import{i as U}from"./id-BI0ZuK17.js";const W={required:[D],optional:[d,b,n,m,i,p,j,c,f,U,v,g,l,h,u,B,O,w,x]},Z=n=>{var m;const i=new C(Y.stateLess),l=new K(Y.stateLess),d=a();let b,j;const g=y(W);delete g.tabIndex;const u=o=>{c.apply(o,(o=>{g.disabled=o}))};u(n.disabled),f.apply(n.hideLabel,(o=>{g.hideLabel=o})),B.apply(n.icons,(o=>{g.icons=o})),v.apply(!1,(o=>{g.inline=o})),w.apply("top",(o=>{g.tooltipAlign=o})),p.apply("button",(o=>{g.type=o})),D.apply(n.label,(o=>{g.label=o}));let O=h.getDefaultValue();h.apply(n.popoverAlign,(o=>{O=o})),g.popoverAlign=O,i.componentWillLoad({align:O}),x.apply(null!==(m=o("buttonVariantDefault",n.getFlagHost()))&&void 0!==m?m:"normal",(o=>{g.variant=o})),g.ariaDescriptionId=s(),g.popoverId=t("popover");const U=o=>{const s=n.getEventTarget?n.getEventTarget():j;s&&r(s,o)},Z=o=>{n.setOpen("open"===o.newState)};g.handleClick=o=>{o.stopPropagation(),l.hideTooltip(),i.setShow(!n.getOpen()),U(e.click)},g.handleMouseDown=()=>U(e.mousedown),g.handleFocus=()=>U(e.focus),g.handleBlur=()=>U(e.blur),g.refButton=o=>{d(o),i.setTriggerElement(o)},g.refPopover=o=>{b=o,i.setPopoverElementRef(o)},g.refTooltip=l.setTooltipElementRef;const _=o=>{j=o},A=()=>{l.componentWillLoad({label:g.label,align:g.tooltipAlign})};return A(),{getFcProps:o=>(o&&(o=>{var s,t;const a=I(Object.assign(Object.assign({},o),{_on:void 0,_variant:null!==(s=o._variant)&&void 0!==s?s:"normal"}),n.getFlagHost());g.accessKey=a.accessKey,g.ariaDescription=a.ariaDescription,g.customClass=a.customClass,g.disabled=a.disabled,g.hideLabel=a.hideLabel,g.icons=a.icons,g.id=a.id,g.inline=a.inline,g.label=a.label,g.name=a.name,g.shortKey=a.shortKey,g.tabIndex=a.tabIndex,g.tooltipAlign=a.tooltipAlign,g.type=a.type,g.variant=a.variant,h.apply(null!==(t=o._popoverAlign)&&void 0!==t?t:"bottom",(o=>{g.popoverAlign=o,i.watchAlign(o)})),A()})(o),Object.assign(Object.assign({},g),{popoverOpen:n.getOpen(),ref:_})),hide:()=>i.setShow(!1),setDisabled:u,syncListeners:()=>{d.el&&l.syncListeners(void 0,d.el,!0),null==b||b.addEventListener("toggle",Z)},destroy:()=>{l.destroy(),b&&(b.removeEventListener("toggle",Z),b=void 0),i.destroy()}}};export{Z as c}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{v as a}from"./access-and-short-key-ijzCZfHm.js";import"./common-BdSzSIXg.js";import{a as s,b as o,c as r,f as i,g as t,h as l,s as e,i as n,l as m,d,e as p,v as f,t as c}from"./component-C79oAu7a.js";import{l as u,a as b,c as j,d as h,b as v}from"./component-DAQzDMY8.js";import{d as g}from"./disabled-BZXlWAgK.js";import{h as x}from"./href-CxokGOJ2.js";import{d as C}from"./props-from-config-ytxYrJUY.js";import{l as y}from"./label-with-expert-slot-BbZ9nx0l.js";import{l as A}from"./link-target-D7lYILOV.js";function D(D){var Y,k,w,z;const B=C(u),I=a=>s=>{B[a]=s};return x.apply(D._href,I("href")),s.apply(D._accessKey,I("accessKey")),o.apply(D._ariaControls,I("ariaControls")),b.apply(D._ariaCurrentValue,I("ariaCurrentValue")),r.apply(D._ariaDescription,I("ariaDescription")),i.apply(D._ariaExpanded,I("ariaExpanded")),j.apply(D._ariaOwns,I("ariaOwns")),t.apply(D._customClass,I("customClass")),g.apply(null!==(Y=D._disabled)&&void 0!==Y&&Y,I("disabled")),h.apply(D._download,I("download")),l.apply(null!==(k=D._hideLabel)&&void 0!==k&&k,I("hideLabel")),e.apply(D._icons,I("icons")),n.apply(null===(w=D._inline)||void 0===w||w,I("inline")),y.apply(D._label,I("label")),v.apply(D._on,I("on")),m.apply(D._role,I("role")),d.apply(D._shortKey,I("shortKey")),A.apply(D._target,I("target")),p.apply(null!==(z=D._tooltipAlign)&&void 0!==z?z:"right",I("tooltipAlign")),f.apply(D._variant,I("variant")),"number"==typeof D._tabIndex?c.apply(D._tabIndex,I("tabIndex")):B.tabIndex=void 0,a(D._accessKey,D._shortKey),B}export{D as r}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{X as a}from"./common-BdSzSIXg.js";import{a as o,b as s,c as i,f as t,g as l,h as n,i as r,l as e,d,s as m,e as p,t as u,v as c}from"./component-C79oAu7a.js";import{b,a as f,c as v,d as j,n as x}from"./component-B16Fbp3W.js";import{d as g}from"./disabled-BZXlWAgK.js";import{i as y}from"./id-BI0ZuK17.js";import{d as B}from"./props-from-config-ytxYrJUY.js";import{l as h}from"./label-with-expert-slot-BbZ9nx0l.js";function K(K,A){var C,I,S,Z,D,W,X;const Y=B(b),w=a=>o=>{Y[a]=o};return h.apply(K._label,w("label")),o.apply(K._accessKey,w("accessKey")),s.apply(K._ariaControls,w("ariaControls")),i.apply(K._ariaDescription,w("ariaDescription")),t.apply(K._ariaExpanded,w("ariaExpanded")),f.apply(K._ariaSelected,w("ariaSelected")),v.apply(K._on,w("on")),j.apply(null!==(C=K._type)&&void 0!==C?C:"button",w("type")),l.apply(K._customClass,w("customClass")),g.apply(null!==(I=K._disabled)&&void 0!==I&&I,w("disabled")),n.apply(null!==(S=K._hideLabel)&&void 0!==S&&S,w("hideLabel")),y.apply(K._id,w("id")),r.apply(null!==(Z=K._inline)&&void 0!==Z&&Z,w("inline")),e.apply(K._role,w("role")),x.apply(K._name,w("name")),d.apply(K._shortKey,w("shortKey")),m.apply(K._icons,w("icons")),p.apply(null!==(D=K._tooltipAlign)&&void 0!==D?D:"top",w("tooltipAlign")),"number"==typeof K._tabIndex?u.apply(K._tabIndex,w("tabIndex")):Y.tabIndex=void 0,c.apply(null!==(X=null!==(W=K._variant)&&void 0!==W?W:a("buttonVariantDefault",A))&&void 0!==X?X:"normal",w("variant")),Y}export{K as r}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{h as o}from"./index-Dulj0jro.js";import{b as e}from"./bem-registry-DQUGxdIS.js";import{c as l}from"./clsx-COFh-Vc8.js";const n=e.forBlock("kol-dialog"),d=e.forBlock("kol-modal"),i=o=>l(n(),d(),n(o),d(o)),a=(e,n)=>{const{blockClass:d,class:i,handleCancel:a,handleClose:t,label:r,labelledBy:s,modal:f,refDialog:c,width:u}=e;return o("dialog",{"aria-label":s?void 0:r,"aria-labelledby":s,"aria-modal":f?"true":"false",class:l(d,i),onCancel:a,onClose:t,ref:c,style:u?{width:u}:void 0},n)},t=new Set;let r=null,s=null;function f(o){if("undefined"!=typeof document&&"undefined"!=typeof window&&!t.has(o)){if(0===t.size){const o=document.documentElement;r=o.style.getPropertyValue("overflow"),s=o.style.getPropertyValue("padding-right");const e=window.innerWidth-o.clientWidth;if(e>0){const l=Number.parseFloat(window.getComputedStyle(o).paddingRight)||0;o.style.setProperty("padding-right",`${l+e}px`)}o.style.setProperty("overflow","hidden")}t.add(o)}}function c(o){if("undefined"!=typeof document&&"undefined"!=typeof window&&t.delete(o)&&0===t.size){const o=document.documentElement;r?o.style.setProperty("overflow",r):o.style.removeProperty("overflow"),s?o.style.setProperty("padding-right",s):o.style.removeProperty("padding-right"),r=null,s=null}}export{a as D,i as d,f as l,c as u}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import"./common-BdSzSIXg.js";import{l as e}from"./level-DsQ_pcyD.js";import{a as o}from"./props-from-config-ytxYrJUY.js";import{d as s}from"./disabled-BZXlWAgK.js";import{l as n}from"./label-lang-segment-iVD9hoM3.js";import{o as i}from"./open-CNHJhHsy.js";import{h as t}from"./index-Dulj0jro.js";import{K as a}from"./Heading-C_CwXDMp.js";import{c as r}from"./clsx-COFh-Vc8.js";import{p as l}from"./element-interaction-sGYdEpmv.js";import{g as d}from"./block-bem-BGIVcYJu.js";import{S as m}from"./component-oUQcgxDj.js";import{d as c,K as p}from"./events-CRHxtwup.js";const u=o(),f={optional:[u,s,e,i],required:[n]},v=({block:e,contentClass:o,controlId:s,detailsOpen:n,disabled:i,expanded:c,handleToggle:p,headingId:u,icons:f,label:v,level:g,refHeadingButton:b,transitionMs:j},D)=>{const x=d(e);return t("details",{class:x({disabled:!0===i,open:!0===c}),open:!0===n,style:{"--collapsible-transition-duration":`${j}ms`}},t("summary",{"aria-controls":s,"aria-disabled":!0===i?"true":void 0,class:x("heading"),id:u,onClick:p,onMouseDown:!0===i?l:void 0,ref:b,tabIndex:!0===i?-1:void 0},t(a,{level:null!=g?g:0},t(m,{icons:f,label:v}))),t("div",{class:x("wrapper")},t("div",{class:x("wrapper-animation")},t("div",{"aria-hidden":!1===c?"true":void 0,"aria-labelledby":u,class:r(x("content"),o),id:s,role:"region"},D))))},g=300;function b({getTransitionMs:e,setDetailsOpen:o,setExpanded:s}){let n,i;const t=()=>{null==n||n(),n=void 0,clearTimeout(i),i=void 0};return{syncOpen(a,r){if(t(),a)return o(!0),void(r?n=function(e){if("function"==typeof requestAnimationFrame){const o=requestAnimationFrame(e);return()=>cancelAnimationFrame(o)}const o=setTimeout(e,0);return()=>clearTimeout(o)}((()=>s(!0))):s(!0));s(!1),r?i=setTimeout((()=>o(!1)),e()):o(!1)},dispose:t}}function j({getHost:e,getOn:o,isDisabled:s,isOpen:n,setOpen:i}){return t=>{if(t.preventDefault(),s())return;const a=!n();i(a),setTimeout((()=>{var s,n;const i=e();i&&(c(i,p.click,a),c(i,p.toggle,a));const r=o();null===(s=r.onClick)||void 0===s||s.call(r,t,a),null===(n=r.onToggle)||void 0===n||n.call(r,t,a)}),25)}}export{v as C,g as D,j as a,f as b,b as c,u as d}
|