@public-ui/components 5.0.0-beta.0 → 5.1.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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 +324 -66
- package/dist/cjs/{Heading-gKYGJ1tV.js → Heading-DkRJJg18.js} +1 -1
- package/dist/cjs/{align-NV74hwT0.js → align-1ptk-pir.js} +1 -1
- package/dist/cjs/{api-BlwpFlt1.js → api-BHYk3kXB.js} +17 -17
- package/dist/cjs/{api-DyRC0E3C.js → api-Bx-kMwS-.js} +30 -22
- package/dist/cjs/{api-BBdhCCKv.js → api-LDDRsovK.js} +6 -6
- package/dist/cjs/{app-globals-C-QndvUR.js → app-globals-Ccbdxh47.js} +2 -2
- package/dist/cjs/{aria-labelledby-ny809Vdx.js → aria-labelledby-BRMgWRVp.js} +2 -2
- package/dist/cjs/{base-DjGWfEqB.js → base-C39txjCj.js} +44 -36
- package/dist/cjs/{base-C9jeVqnN.js → base-Ctf3_lQs.js} +14 -14
- package/dist/cjs/{base-Cau7nZZw.js → base-DHqHIMP-.js} +12 -12
- package/dist/cjs/{base-zeK_arau.js → base-XB_UlEMi.js} +21 -14
- package/dist/cjs/{base-web-component-BOQatEb9.js → base-web-component-3D1pZRXT.js} +14 -14
- package/dist/cjs/{base-web-component-r0Jr01kf.js → base-web-component-AJHupAXc.js} +9 -9
- package/dist/cjs/{base-web-component-DPBaBA5x.js → base-web-component-C6DKJNGD.js} +54 -28
- package/dist/cjs/{behavior-Djs9V7Si.js → behavior-2xAX1euA.js} +6 -5
- package/dist/cjs/{behavior-P_MOoqmo.js → behavior-B9-IyIXq.js} +4 -4
- package/dist/cjs/{behavior-APmbiQTR.js → behavior-iZBKzFFw.js} +5 -5
- package/dist/cjs/{bootstrap-BbvuwOW2.js → bootstrap-b6PadCf1.js} +1 -1
- package/dist/cjs/{color-CbCW4wyr.js → color-CwbFUaK7.js} +12 -2
- package/dist/cjs/{component-B_EvGSM0.js → component-B9cVUITX.js} +7 -1
- package/dist/cjs/{component-hiip9BeX.js → component-BRvUYbSZ.js} +12 -9
- package/dist/cjs/{component-DK-qYG29.js → component-Bk4Tvby3.js} +2 -2
- package/dist/cjs/{component-x3LvOAC0.js → component-BqIblzhp.js} +1 -1
- package/dist/cjs/{component-Byx8Sl1k.js → component-C9MKHoRd.js} +1 -1
- package/dist/cjs/{component-CyFwKqlx.js → component-DBnZM8w2.js} +23 -10
- package/dist/cjs/{component-DMaPKMLG.js → component-DE4BP8IK.js} +2 -2
- package/dist/cjs/{component-DTToXqth.js → component-Da5C3eFC.js} +3 -3
- package/dist/cjs/{component-w4DHKGRj.js → component-NEiBvvE2.js} +6 -6
- package/dist/cjs/component-X0iN_qoU.js +36 -0
- package/dist/cjs/{component-C-jt8Zgv.js → component-_vYtsFBi.js} +6 -5
- package/dist/cjs/{component-names-EMVnNhTP.js → component-names-BMpML1sX.js} +0 -2
- package/dist/cjs/{contrast-BTU5ne8E.js → contrast-CTEPTNkC.js} +1 -1
- package/dist/cjs/{controller-ncy0x4Nz.js → controller-gDnA0yhI.js} +14 -14
- package/dist/cjs/{dev.utils-r-OFnYmI.js → dev.utils-U3Rfa3Dp.js} +1 -1
- package/dist/cjs/{devtools-BjCHvsaO.js → devtools-B7YU-YbX.js} +2 -2
- package/dist/cjs/{disabled-wIEbt0Gz.js → disabled-DU5r5VLL.js} +1 -1
- package/dist/cjs/{element-focus-D5g3xQN4.js → element-focus-CzkKMwtn.js} +24 -0
- package/dist/cjs/{element-interaction-7FI_z19L.js → element-interaction-BtYQAbhu.js} +1 -1
- package/dist/cjs/{field-control-B2MocM-9.js → field-control-CDGssAUf.js} +6 -6
- package/dist/cjs/{group-DUgI6ORW.js → group-CiakLLar.js} +4 -4
- package/dist/cjs/{has-closer-4Czygcsx.js → has-closer-CNdG-wEk.js} +1 -1
- package/dist/cjs/href-DoAvPFga.js +10 -0
- package/dist/cjs/{index-1NUYc4bH.js → index-C8LQwR1o.js} +1 -5
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{input-tgqPNmdz.js → input-CA-5lqTb.js} +3 -3
- package/dist/cjs/{input-container-Ce6tEgzv.js → input-container-CV02nXgX.js} +6 -6
- package/dist/cjs/{item-do7gGebG.js → item-9oQGuAqH.js} +11 -11
- package/dist/cjs/{item-CdalyKjL.js → item-Dfsg3MMy.js} +16 -25
- package/dist/cjs/{item-CU9y10V3.js → item-dTflpCWB.js} +6 -6
- package/dist/cjs/{item-BDJC0QKy.js → item-eJaPjEL7.js} +5 -5
- package/dist/cjs/kol-abbr.cjs.entry.js +11 -9
- package/dist/cjs/kol-accordion.cjs.entry.js +19 -17
- package/dist/cjs/kol-alert.cjs.entry.js +25 -23
- package/dist/cjs/kol-avatar.cjs.entry.js +19 -14
- package/dist/cjs/kol-badge.cjs.entry.js +31 -28
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +29 -27
- package/dist/cjs/kol-button-link.cjs.entry.js +42 -28
- package/dist/cjs/kol-button.cjs.entry.js +43 -28
- package/dist/cjs/kol-card.cjs.entry.js +37 -33
- package/dist/cjs/kol-click-button.cjs.entry.js +12 -10
- package/dist/cjs/kol-combobox.cjs.entry.js +59 -47
- package/dist/cjs/kol-details.cjs.entry.js +19 -17
- package/dist/cjs/kol-dialog.cjs.entry.js +31 -29
- package/dist/cjs/kol-drawer.cjs.entry.js +35 -31
- package/dist/cjs/kol-form.cjs.entry.js +26 -23
- package/dist/cjs/kol-heading.cjs.entry.js +17 -11
- package/dist/cjs/kol-icon.cjs.entry.js +11 -9
- package/dist/cjs/kol-image.cjs.entry.js +10 -6
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +50 -39
- package/dist/cjs/kol-input-color.cjs.entry.js +55 -47
- package/dist/cjs/kol-input-date.cjs.entry.js +73 -44
- package/dist/cjs/kol-input-email.cjs.entry.js +63 -46
- package/dist/cjs/kol-input-file.cjs.entry.js +53 -40
- package/dist/cjs/kol-input-number.cjs.entry.js +63 -45
- package/dist/cjs/kol-input-password.cjs.entry.js +64 -44
- package/dist/cjs/kol-input-radio.cjs.entry.js +48 -39
- package/dist/cjs/kol-input-range.cjs.entry.js +55 -41
- package/dist/cjs/kol-input-text.cjs.entry.js +68 -46
- package/dist/cjs/kol-kolibri.cjs.entry.js +6 -6
- package/dist/cjs/kol-link-button.cjs.entry.js +36 -23
- package/dist/cjs/kol-link.cjs.entry.js +36 -23
- package/dist/cjs/kol-meter.cjs.entry.js +30 -18
- package/dist/cjs/kol-modal.cjs.entry.js +31 -29
- package/dist/cjs/kol-nav.cjs.entry.js +37 -35
- package/dist/cjs/kol-pagination.cjs.entry.js +45 -41
- package/dist/cjs/kol-popover-button.cjs.entry.js +40 -29
- package/dist/cjs/kol-progress.cjs.entry.js +21 -12
- package/dist/cjs/kol-quote.cjs.entry.js +16 -14
- package/dist/cjs/kol-select.cjs.entry.js +53 -39
- package/dist/cjs/kol-single-select.cjs.entry.js +58 -47
- package/dist/cjs/kol-skeleton.cjs.entry.js +8 -8
- package/dist/cjs/kol-skip-nav.cjs.entry.js +28 -26
- package/dist/cjs/kol-spin.cjs.entry.js +15 -10
- package/dist/cjs/kol-split-button.cjs.entry.js +45 -31
- package/dist/cjs/kol-table-stateful.cjs.entry.js +65 -53
- package/dist/cjs/kol-table-stateless.cjs.entry.js +51 -40
- package/dist/cjs/kol-tabs.cjs.entry.js +31 -27
- package/dist/cjs/kol-textarea.cjs.entry.js +59 -43
- package/dist/cjs/kol-toast-container.cjs.entry.js +13 -14
- package/dist/cjs/kol-toolbar.cjs.entry.js +35 -32
- package/dist/cjs/kol-tree-item.cjs.entry.js +30 -26
- package/dist/cjs/kol-tree.cjs.entry.js +12 -10
- package/dist/cjs/kol-version.cjs.entry.js +17 -16
- package/dist/cjs/kolibri.cjs.js +3 -3
- package/dist/cjs/label-CfuNAHBN.js +14 -0
- package/dist/cjs/{isArray-BOIOdEQh.js → label-Dhv1cJx3.js} +60 -0
- package/dist/cjs/label-hints-CgBCaif9.js +22 -0
- package/dist/cjs/label-lang-segment--yHvPZvF.js +14 -0
- package/dist/cjs/label-with-expert-slot-BdXwXCrc.js +14 -0
- package/dist/cjs/{level-DGDM1aXl.js → level-BmOF3SXd.js} +1 -1
- package/dist/cjs/{link-target-PjKWXgno.js → link-target-CxHe2nvO.js} +1 -1
- package/dist/cjs/{links-0QyGYlHz.js → links-D-6IG8ZN.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{multiple-BoCGiGxR.js → multiple-DwIwRAg_.js} +1 -1
- package/dist/cjs/{name-BZcwC1Zd.js → name-vaRuDIu9.js} +1 -1
- package/dist/cjs/{number-value-aLzn0dDO.js → number-value-DdxcZ3wW.js} +1 -1
- package/dist/cjs/{open-ui_yY8GH.js → open-aeya5Q2h.js} +1 -1
- package/dist/cjs/{options-BRwmqi8M.js → options-DZE1zmTq.js} +1 -1
- package/dist/cjs/{orientation-BcqEqZ3D.js → orientation-DgoLv2WA.js} +1 -1
- package/dist/cjs/{placeholder-CCYSgsip.js → placeholder-CHT6vsaN.js} +1 -1
- package/dist/cjs/{read-only-KKKbZyk5.js → read-only-AeNVMOPS.js} +1 -1
- package/dist/cjs/{required-CeiUcxrv.js → required-DU_lEi_a.js} +1 -1
- package/dist/cjs/{resolve-props-BcGzqFFR.js → resolve-props-Bgqa1y71.js} +7 -7
- package/dist/cjs/{resolve-props-Cv67cUZA.js → resolve-props-gpH7EEKM.js} +7 -7
- package/dist/cjs/{rows-BWBG8nDk.js → rows-C-HHixH0.js} +2 -2
- package/dist/cjs/{scroll-lock-Bs5vb-ss.js → scroll-lock-D7i76ZoY.js} +1 -1
- package/dist/cjs/{smart-button-DQryZ9gX.js → smart-button-eNvMPGW9.js} +1 -1
- package/dist/cjs/{spell-check-DHRle7ui.js → spell-check-DsU1STqx.js} +1 -1
- package/dist/cjs/{src-B6CU1zD0.js → src-BqZDpTCj.js} +1 -1
- package/dist/cjs/{step-kuREYDVE.js → step-CTAiZ5xn.js} +1 -1
- package/dist/cjs/{suggestions-b21ak6-A.js → suggestions-0I18Pk65.js} +1 -1
- package/dist/cjs/{suggestions-B4X9HMr-.js → suggestions-C-QgtY7Q.js} +3 -3
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-AgDdplvI.js → toggle-handler-kx77ZDI9.js} +10 -10
- package/dist/cjs/{unique-nav-labels-CuHbVHx9.js → unique-nav-labels-CaD7vZWy.js} +7 -4
- package/dist/cjs/{unit-DHpzrXY7.js → unit-DmftTbjX.js} +1 -1
- package/dist/cjs/validators-ivurI_Hf.js +15 -0
- package/dist/cjs/{value-string-BtfdnGIb.js → value-string-BFgf4hTO.js} +1 -1
- package/dist/cjs/{variant-CxQO5qFu.js → variant-DidopMGV.js} +5 -7
- package/dist/cjs/{width-DF6eLXIz.js → width-BX3KQodz.js} +5 -2
- package/dist/collection/collection-manifest.json +12 -13
- package/dist/collection/components/@else/all/component.js +1 -1
- package/dist/collection/components/_skeleton/public-api/contract.js +6 -6
- package/dist/collection/components/_skeleton/web-components/click-button/component.js +12 -5
- package/dist/collection/components/_skeleton/web-components/skeleton/component.js +10 -3
- package/dist/collection/components/abbr/component.js +11 -9
- package/dist/collection/components/abbr/style.css +0 -3
- package/dist/collection/components/accordion/component.js +30 -17
- package/dist/collection/components/accordion/style.css +2 -5
- package/dist/collection/components/alert/component.js +33 -18
- package/dist/collection/components/alert/style.css +2 -5
- package/dist/collection/components/avatar/component.js +31 -11
- package/dist/collection/components/avatar/style.css +0 -3
- package/dist/collection/components/badge/component.js +14 -10
- package/dist/collection/components/badge/style.css +2 -5
- package/dist/collection/components/breadcrumb/component.js +4 -4
- package/dist/collection/components/breadcrumb/style.css +2 -5
- package/dist/collection/components/button/base.js +2 -2
- package/dist/collection/components/button/component.js +100 -33
- package/dist/collection/components/button/style.css +2 -5
- package/dist/collection/components/button-link/component.js +91 -42
- package/dist/collection/components/button-link/style.css +2 -5
- package/dist/collection/components/card/base.js +3 -3
- package/dist/collection/components/card/component.js +25 -15
- package/dist/collection/components/card/style.css +2 -5
- package/dist/collection/components/combobox/component.js +139 -57
- package/dist/collection/components/combobox/style.css +3 -7
- package/dist/collection/components/details/component.js +30 -17
- package/dist/collection/components/details/style.css +2 -5
- package/dist/collection/components/dialog/base.js +12 -5
- package/dist/collection/components/dialog/component.js +18 -9
- package/dist/collection/components/dialog/style.css +2 -5
- package/dist/collection/components/drawer/component.js +27 -17
- package/dist/collection/components/drawer/style.css +2 -5
- package/dist/collection/components/form/component.js +7 -3
- package/dist/collection/components/form/controller.js +13 -13
- package/dist/collection/components/form/style.css +2 -5
- package/dist/collection/components/heading/component.js +17 -8
- package/dist/collection/components/heading/style.css +0 -3
- package/dist/collection/components/icon/component.js +12 -5
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +49 -13
- package/dist/collection/components/image/style.css +0 -3
- package/dist/collection/components/input-checkbox/component.js +123 -61
- package/dist/collection/components/input-checkbox/style.css +4 -8
- package/dist/collection/components/input-color/component.js +111 -54
- package/dist/collection/components/input-color/style.css +3 -7
- package/dist/collection/components/input-date/component.js +132 -61
- package/dist/collection/components/input-date/style.css +3 -7
- package/dist/collection/components/input-email/component.js +185 -76
- package/dist/collection/components/input-email/style.css +3 -7
- package/dist/collection/components/input-file/component.js +128 -59
- package/dist/collection/components/input-file/style.css +3 -7
- package/dist/collection/components/input-number/component.js +143 -64
- package/dist/collection/components/input-number/style.css +3 -7
- package/dist/collection/components/input-password/component.js +177 -70
- package/dist/collection/components/input-password/style.css +3 -7
- package/dist/collection/components/input-radio/component.js +86 -43
- package/dist/collection/components/input-radio/style.css +4 -8
- package/dist/collection/components/input-range/component.js +101 -45
- package/dist/collection/components/input-range/style.css +3 -7
- package/dist/collection/components/input-text/component.js +173 -69
- package/dist/collection/components/input-text/style.css +3 -7
- package/dist/collection/components/kolibri/component.js +10 -3
- package/dist/collection/components/kolibri/style.css +0 -3
- package/dist/collection/components/link/base.js +2 -2
- package/dist/collection/components/link/component.js +77 -31
- package/dist/collection/components/link/style.css +2 -5
- package/dist/collection/components/link-button/component.js +67 -25
- package/dist/collection/components/link-button/style.css +2 -5
- package/dist/collection/components/meter/component.js +86 -24
- package/dist/collection/components/meter/style.css +0 -3
- package/dist/collection/components/modal/component.js +18 -9
- package/dist/collection/components/modal/style.css +2 -5
- package/dist/collection/components/nav/component.js +41 -19
- package/dist/collection/components/nav/style.css +2 -5
- package/dist/collection/components/pagination/component.js +34 -9
- package/dist/collection/components/pagination/style.css +3 -7
- package/dist/collection/components/popover-button/component.js +70 -25
- package/dist/collection/components/popover-button/style.css +2 -5
- package/dist/collection/components/progress/component.js +50 -16
- package/dist/collection/components/progress/style.css +0 -3
- package/dist/collection/components/quote/component.js +37 -14
- package/dist/collection/components/quote/style.css +0 -3
- package/dist/collection/components/select/component.js +129 -58
- package/dist/collection/components/select/style.css +3 -7
- package/dist/collection/components/single-select/component.js +129 -55
- package/dist/collection/components/single-select/style.css +3 -7
- package/dist/collection/components/skip-nav/component.js +3 -3
- package/dist/collection/components/skip-nav/style.css +2 -5
- package/dist/collection/components/spin/component.js +30 -10
- package/dist/collection/components/spin/style.css +0 -3
- package/dist/collection/components/split-button/component.js +96 -31
- package/dist/collection/components/split-button/style.css +2 -5
- package/dist/collection/components/table-stateful/component.js +69 -40
- package/dist/collection/components/table-stateful/style.css +3 -7
- package/dist/collection/components/table-stateless/base.js +11 -4
- package/dist/collection/components/table-stateless/component.js +50 -16
- package/dist/collection/components/table-stateless/style.css +2 -5
- package/dist/collection/components/tabs/component.js +19 -8
- package/dist/collection/components/tabs/style.css +2 -5
- package/dist/collection/components/textarea/component.js +172 -69
- package/dist/collection/components/textarea/style.css +3 -7
- package/dist/collection/components/toaster/shadow.js +1 -1
- package/dist/collection/components/toaster/style.css +2 -5
- package/dist/collection/components/toolbar/component.js +15 -6
- package/dist/collection/components/toolbar/style.css +2 -5
- package/dist/collection/components/tree/component.js +3 -3
- package/dist/collection/components/tree/style.css +0 -3
- package/dist/collection/components/tree-item/component.js +15 -11
- package/dist/collection/components/tree-item/style.css +2 -5
- package/dist/collection/components/version/component.js +3 -3
- package/dist/collection/components/version/style.css +2 -5
- package/dist/collection/core/component-names.js +0 -2
- package/dist/collection/core/i18n.js +1 -1
- package/dist/collection/functional-components/index.js +0 -1
- package/dist/collection/internal/functional-components/abbr/api.js +2 -2
- package/dist/collection/internal/functional-components/alert/api.js +2 -2
- package/dist/collection/internal/functional-components/alert/component.js +4 -2
- package/dist/collection/internal/functional-components/avatar/component.js +2 -1
- package/dist/collection/internal/functional-components/base-web-component.js +8 -3
- package/dist/collection/internal/functional-components/breadcrumb/api.js +2 -2
- package/dist/collection/internal/functional-components/breadcrumb/component.js +3 -1
- package/dist/collection/internal/functional-components/button/component.js +3 -3
- package/dist/collection/internal/functional-components/card/api.js +3 -3
- package/dist/collection/internal/functional-components/card/component.js +2 -1
- package/dist/collection/internal/functional-components/click-button/component.js +1 -1
- package/dist/collection/internal/functional-components/collapsible/api.js +2 -2
- package/dist/collection/internal/functional-components/dialog/api.js +2 -2
- package/dist/collection/internal/functional-components/dialog/item.js +4 -3
- package/dist/collection/internal/functional-components/drawer/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -1
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +11 -3
- package/dist/collection/internal/functional-components/form-field/date-value.js +12 -1
- package/dist/collection/internal/functional-components/form-field/default-input-props.js +3 -2
- package/dist/collection/internal/functional-components/heading/component.js +3 -2
- package/dist/collection/internal/functional-components/link/component.js +3 -3
- package/dist/collection/internal/functional-components/meter/api.js +2 -2
- package/dist/collection/internal/functional-components/meter/component.js +11 -6
- package/dist/collection/internal/functional-components/meter/component.test.js +29 -0
- package/dist/collection/internal/functional-components/nav/api.js +2 -2
- package/dist/collection/internal/functional-components/pagination/api.js +2 -11
- package/dist/collection/internal/functional-components/pagination/component.js +2 -1
- package/dist/collection/internal/functional-components/pagination/item.js +2 -2
- package/dist/collection/internal/functional-components/progress/api.js +2 -2
- package/dist/collection/internal/functional-components/progress/component.js +3 -1
- package/dist/collection/internal/functional-components/quote/api.js +2 -2
- package/dist/collection/internal/functional-components/quote/component.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/api.js +2 -2
- package/dist/collection/internal/functional-components/span/api.js +2 -3
- package/dist/collection/internal/functional-components/span/component.js +18 -6
- package/dist/collection/internal/functional-components/span/snapshot.test.js +5 -0
- package/dist/collection/internal/functional-components/table-stateful/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
- package/dist/collection/internal/functional-components/table-stateless/component.js +5 -3
- package/dist/collection/internal/functional-components/table-stateless/table-model.js +3 -3
- package/dist/collection/internal/functional-components/tabs/api.js +2 -2
- package/dist/collection/internal/functional-components/toolbar/api.js +2 -2
- package/dist/collection/internal/functional-components/tooltip/api.js +2 -2
- package/dist/collection/internal/functional-components/tooltip/behavior.js +3 -2
- package/dist/collection/internal/functional-components/tooltip/component.js +1 -1
- package/dist/collection/internal/functional-components/tree/api.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/api.js +2 -2
- package/dist/collection/internal/functional-components/tree-item/component.js +2 -1
- package/dist/collection/internal/props/color.js +10 -0
- package/dist/collection/internal/props/dialog-callbacks.js +4 -1
- package/dist/collection/internal/props/helpers/factory.js +10 -2
- package/dist/collection/internal/props/helpers/normalizers.js +13 -1
- package/dist/collection/internal/props/helpers/validators.js +4 -0
- package/dist/collection/internal/props/hints/label-hints.js +10 -8
- package/dist/collection/internal/props/href.js +1 -2
- package/dist/collection/internal/props/index.js +1 -1
- package/dist/collection/internal/props/label-lang-segment.js +10 -0
- package/dist/collection/internal/props/label-with-expert-slot.js +6 -2
- package/dist/collection/internal/props/label.js +2 -1
- package/dist/collection/internal/props/max-length.js +1 -1
- package/dist/collection/internal/props/rows.js +1 -1
- package/dist/collection/internal/props/tabs.js +1 -1
- package/dist/collection/schema/props/allow-markdown.js +1 -0
- package/dist/collection/schema/props/boundary-count.js +1 -0
- package/dist/collection/schema/props/has-clear-button.js +1 -0
- package/dist/collection/schema/props/high.js +1 -0
- package/dist/collection/schema/props/index.js +19 -0
- package/dist/collection/schema/props/label.js +54 -5
- package/dist/collection/schema/props/labeled.js +1 -0
- package/dist/collection/schema/props/low.js +1 -0
- package/dist/collection/schema/props/min.js +1 -0
- package/dist/collection/schema/props/optimum.js +1 -0
- package/dist/collection/schema/props/page-size.js +1 -0
- package/dist/collection/schema/props/page.js +1 -0
- package/dist/collection/schema/props/secondary-headline.js +1 -0
- package/dist/collection/schema/props/selected.js +1 -0
- package/dist/collection/schema/props/sibling-count.js +1 -0
- package/dist/collection/schema/props/sizes.js +1 -0
- package/dist/collection/schema/props/src.js +1 -0
- package/dist/collection/schema/props/srcset.js +1 -0
- package/dist/collection/schema/props/table-loading.js +1 -0
- package/dist/collection/schema/props/value-number-clamped.js +1 -0
- package/dist/collection/schema/props/value-string.js +1 -0
- package/dist/collection/utils/aria-labelledby.js +2 -2
- package/dist/collection/utils/dev.utils.js +0 -1
- package/dist/collection/utils/element-focus.js +23 -0
- package/dist/collection/utils/element-interaction.js +0 -7
- package/dist/collection/utils/element-themed.js +1 -1
- package/dist/collection/utils/testing/snapshot-input-testing.js +1 -0
- package/dist/collection/utils/unique-nav-labels.js +7 -5
- package/dist/components/api.js +1 -1
- package/dist/components/api2.js +1 -1
- package/dist/components/aria-labelledby.js +1 -1
- package/dist/components/base-web-component.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base3.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior4.js +1 -1
- package/dist/components/color.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/element-focus.js +1 -1
- package/dist/components/field-control.js +1 -1
- package/dist/components/href.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/item4.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar.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-click-button.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-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.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-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-meter.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-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skeleton.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.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/components/label-hints.js +4 -0
- package/dist/components/label-lang-segment.js +4 -0
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +4 -0
- package/dist/components/level.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/toggle-handler.js +1 -1
- package/dist/components/unique-nav-labels.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +4 -0
- package/dist/components/variant.js +1 -1
- package/dist/components/width.js +1 -1
- package/dist/esm/{Heading-0teSdkFq.js → Heading-BSa6BQTS.js} +1 -1
- package/dist/esm/{align-DsFuqEf5.js → align-CR9s255S.js} +1 -1
- package/dist/esm/{api-B9mpTRGa.js → api-BNtfQTYQ.js} +15 -15
- package/dist/esm/{api-CvPkoAAG.js → api-DxF6-oIO.js} +6 -6
- package/dist/esm/{api-hAvZrw9X.js → api-qNAcP_o2.js} +29 -21
- package/dist/esm/{app-globals-Dff_iJYF.js → app-globals-BbKBH3UI.js} +2 -2
- package/dist/esm/{aria-labelledby-BRToXqsQ.js → aria-labelledby-CLehu03h.js} +2 -2
- package/dist/esm/{base-CsJWjTJl.js → base-B-_Cm8wH.js} +39 -31
- package/dist/esm/{base-Df1bwC8d.js → base-MxYtjOUP.js} +21 -14
- package/dist/esm/{base-COT79ELt.js → base-WHbY0uVC.js} +12 -12
- package/dist/esm/{base-7FEvBJ3L.js → base-wY3yC1z6.js} +14 -14
- package/dist/esm/{base-web-component-Bcoukts3.js → base-web-component-B0QkUucC.js} +32 -7
- package/dist/esm/{base-web-component-C1XSz7ML.js → base-web-component-CgbHhshr.js} +9 -9
- package/dist/esm/{base-web-component-cTyj95G-.js → base-web-component-D8x1WFVT.js} +14 -14
- package/dist/esm/{behavior-Zr6qAX7F.js → behavior-BqydGn0c.js} +5 -5
- package/dist/esm/{behavior-BlS6DO8T.js → behavior-DJY-AtON.js} +6 -5
- package/dist/esm/{behavior-BMW-_4Oy.js → behavior-DyHxeIOP.js} +4 -4
- package/dist/esm/{bootstrap-DTVsVq0w.js → bootstrap-ddeYryQr.js} +1 -1
- package/dist/esm/{color-9CMp_pOq.js → color-w3K7aUcU.js} +12 -2
- package/dist/esm/{component-DHl33p9J.js → component-BPRJ0qOM.js} +6 -6
- package/dist/esm/{component-DxddScWx.js → component-BQBWV-Dj.js} +7 -7
- package/dist/esm/{component-DzVHCXnG.js → component-B_u7M1gI.js} +1 -1
- package/dist/esm/{component-BkjWlzLc.js → component-Bk12rjp3.js} +6 -5
- package/dist/esm/{component-BmJGOcby.js → component-D1XWWFos.js} +10 -7
- package/dist/esm/{component-DeWynlzi.js → component-Dfgawulk.js} +2 -2
- package/dist/esm/{component-C_Te18y_.js → component-DsvRA1H3.js} +3 -3
- package/dist/esm/{component-Ik_-HAMT.js → component-PLZiII08.js} +22 -10
- package/dist/esm/{component-CySyXSru.js → component-TFkvNo8L.js} +7 -2
- package/dist/esm/{component-DqHI-AwD.js → component-k7qmCOq7.js} +2 -2
- package/dist/esm/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +0 -2
- package/dist/esm/{component-C9mkZ63L.js → component-u7CHIDOX.js} +1 -1
- package/dist/esm/{contrast-BK5uVXeb.js → contrast-Dtg34nol.js} +1 -1
- package/dist/esm/{controller-Bf-CAo4Q.js → controller-DL8n64W5.js} +14 -14
- package/dist/esm/{dev.utils-BgjegQC8.js → dev.utils-Cl2Ehgvu.js} +1 -1
- package/dist/esm/{devtools-4nOArEGl.js → devtools-BkgDF9Wk.js} +2 -2
- package/dist/esm/{disabled-BaPgTuFO.js → disabled-DU4BpeNO.js} +1 -1
- package/dist/esm/{element-focus-Cp994Rrk.js → element-focus-BIRmGg5W.js} +24 -1
- package/dist/esm/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
- package/dist/esm/{field-control-Brx62dJV.js → field-control-CQRYx4SF.js} +6 -6
- package/dist/esm/{group-Ce5pMiZJ.js → group-D3knBA42.js} +4 -4
- package/dist/esm/{has-closer-C9L79ect.js → has-closer-W6jQEQkV.js} +1 -1
- package/dist/esm/href-DzETOAed.js +8 -0
- package/dist/esm/{index-D5UV99lE.js → index-DqqSYO-1.js} +1 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{input-DjQorwQ5.js → input-BBxRsjm-.js} +3 -3
- package/dist/esm/{input-container-RSmfcRgK.js → input-container-DrzJi_0x.js} +6 -6
- package/dist/esm/{item-Bfk2xd-D.js → item-CJvb0vTK.js} +11 -11
- package/dist/esm/{item-2cprk9ut.js → item-CYZtLav7.js} +6 -6
- package/dist/esm/{item-DMWn_IlJ.js → item-CuotjQUP.js} +5 -5
- package/dist/esm/{item-D9_O5WAR.js → item-DQR44mQ_.js} +16 -25
- package/dist/esm/kol-abbr.entry.js +11 -9
- package/dist/esm/kol-accordion.entry.js +19 -17
- package/dist/esm/kol-alert.entry.js +25 -23
- package/dist/esm/kol-avatar.entry.js +19 -14
- package/dist/esm/kol-badge.entry.js +31 -28
- package/dist/esm/kol-breadcrumb.entry.js +29 -27
- package/dist/esm/kol-button-link.entry.js +42 -28
- package/dist/esm/kol-button.entry.js +43 -28
- package/dist/esm/kol-card.entry.js +37 -33
- package/dist/esm/kol-click-button.entry.js +12 -10
- package/dist/esm/kol-combobox.entry.js +59 -47
- package/dist/esm/kol-details.entry.js +19 -17
- package/dist/esm/kol-dialog.entry.js +31 -29
- package/dist/esm/kol-drawer.entry.js +35 -31
- package/dist/esm/kol-form.entry.js +26 -23
- package/dist/esm/kol-heading.entry.js +17 -11
- package/dist/esm/kol-icon.entry.js +11 -9
- package/dist/esm/kol-image.entry.js +10 -6
- package/dist/esm/kol-input-checkbox.entry.js +50 -39
- package/dist/esm/kol-input-color.entry.js +55 -47
- package/dist/esm/kol-input-date.entry.js +73 -44
- package/dist/esm/kol-input-email.entry.js +63 -46
- package/dist/esm/kol-input-file.entry.js +53 -40
- package/dist/esm/kol-input-number.entry.js +63 -45
- package/dist/esm/kol-input-password.entry.js +64 -44
- package/dist/esm/kol-input-radio.entry.js +48 -39
- package/dist/esm/kol-input-range.entry.js +55 -41
- package/dist/esm/kol-input-text.entry.js +68 -46
- package/dist/esm/kol-kolibri.entry.js +6 -6
- package/dist/esm/kol-link-button.entry.js +36 -23
- package/dist/esm/kol-link.entry.js +36 -23
- package/dist/esm/kol-meter.entry.js +29 -17
- package/dist/esm/kol-modal.entry.js +31 -29
- package/dist/esm/kol-nav.entry.js +37 -35
- package/dist/esm/kol-pagination.entry.js +45 -41
- package/dist/esm/kol-popover-button.entry.js +40 -29
- package/dist/esm/kol-progress.entry.js +20 -11
- package/dist/esm/kol-quote.entry.js +16 -14
- package/dist/esm/kol-select.entry.js +53 -39
- package/dist/esm/kol-single-select.entry.js +58 -47
- package/dist/esm/kol-skeleton.entry.js +8 -8
- package/dist/esm/kol-skip-nav.entry.js +28 -26
- package/dist/esm/kol-spin.entry.js +15 -10
- package/dist/esm/kol-split-button.entry.js +45 -31
- package/dist/esm/kol-table-stateful.entry.js +65 -53
- package/dist/esm/kol-table-stateless.entry.js +51 -40
- package/dist/esm/kol-tabs.entry.js +31 -27
- package/dist/esm/kol-textarea.entry.js +59 -43
- package/dist/esm/kol-toast-container.entry.js +13 -14
- package/dist/esm/kol-toolbar.entry.js +35 -32
- package/dist/esm/kol-tree-item.entry.js +30 -26
- package/dist/esm/kol-tree.entry.js +12 -10
- package/dist/esm/kol-version.entry.js +17 -16
- package/dist/esm/kolibri.js +4 -4
- package/dist/esm/{isArray-CcrBs4JM.js → label-CJRIAbnc.js} +55 -1
- package/dist/esm/label-CPjIrpB0.js +12 -0
- package/dist/esm/label-hints-CGyBuIY6.js +20 -0
- package/dist/esm/label-lang-segment-c3GyH-Op.js +12 -0
- package/dist/esm/label-with-expert-slot-89Cj-cq-.js +12 -0
- package/dist/esm/{level-Df663c7y.js → level-JSbGeBz9.js} +1 -1
- package/dist/esm/{link-target-C7_smSbV.js → link-target-aw_DcyX2.js} +1 -1
- package/dist/esm/{links-B0xbzBwU.js → links-C0RerkBI.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{multiple-CYHm7rd3.js → multiple-DMz1NE8m.js} +1 -1
- package/dist/esm/{name-m3owaZxH.js → name-CWVb8Q5W.js} +1 -1
- package/dist/esm/{number-value-CMedWR58.js → number-value-Bm0uVl62.js} +1 -1
- package/dist/esm/{open-DCGNTmvC.js → open-CnguVIAX.js} +1 -1
- package/dist/esm/{options-CR431ims.js → options-DK9U0D2y.js} +1 -1
- package/dist/esm/{orientation-C9FRNmPD.js → orientation-T7LcUCDT.js} +1 -1
- package/dist/esm/{placeholder-Bwzvbwhh.js → placeholder-C1LF_luk.js} +1 -1
- package/dist/esm/{read-only-C5fDsZVK.js → read-only-DLntjWLi.js} +1 -1
- package/dist/esm/{required-CC0212MQ.js → required-CySt8O-6.js} +1 -1
- package/dist/esm/{resolve-props-CnHCiXuG.js → resolve-props-CECEyL7n.js} +7 -7
- package/dist/esm/{resolve-props-47S-r31C.js → resolve-props-bPGYbQje.js} +7 -7
- package/dist/esm/rows-D2i8Qw0_.js +8 -0
- package/dist/esm/{scroll-lock-DQGTnLvW.js → scroll-lock-BJ_1AYBl.js} +1 -1
- package/dist/esm/{smart-button-BHM06d-t.js → smart-button-BARe7Uqb.js} +1 -1
- package/dist/esm/{spell-check-DiSedaOR.js → spell-check-dMfm8ESK.js} +1 -1
- package/dist/esm/{src-CsLEg--w.js → src-evXzPKgX.js} +1 -1
- package/dist/esm/{step-BxSThOke.js → step-BHPlkf18.js} +1 -1
- package/dist/esm/{suggestions-B79TOsF_.js → suggestions-8D7aWSYG.js} +1 -1
- package/dist/esm/{suggestions-C38q-5JU.js → suggestions-D0ShCnWU.js} +3 -3
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-CQ0FhBmD.js → toggle-handler-WD9E4u31.js} +10 -10
- package/dist/esm/{unique-nav-labels-Bh3w7dCH.js → unique-nav-labels-B5lSg8F6.js} +7 -4
- package/dist/esm/{unit-BgjPEae-.js → unit-B_lrrs5g.js} +1 -1
- package/dist/esm/validators-C9J6nOXq.js +11 -0
- package/dist/esm/{value-string-BDfywbme.js → value-string-Bg_YNL53.js} +1 -1
- package/dist/esm/{variant-PJN56KWi.js → variant-DL7TMWWF.js} +3 -5
- package/dist/esm/{width-CAS8lhOU.js → width-DGMj8F25.js} +5 -2
- package/dist/kolibri/{Heading-0teSdkFq.js → Heading-BSa6BQTS.js} +1 -1
- package/dist/kolibri/{align-DsFuqEf5.js → align-CR9s255S.js} +1 -1
- package/dist/kolibri/api-BNtfQTYQ.js +4 -0
- package/dist/kolibri/api-DxF6-oIO.js +4 -0
- package/dist/kolibri/api-qNAcP_o2.js +4 -0
- package/dist/kolibri/app-globals-BbKBH3UI.js +4 -0
- package/dist/kolibri/aria-labelledby-CLehu03h.js +4 -0
- package/dist/kolibri/base-B-_Cm8wH.js +4 -0
- package/dist/kolibri/base-MxYtjOUP.js +4 -0
- package/dist/kolibri/base-WHbY0uVC.js +4 -0
- package/dist/kolibri/base-wY3yC1z6.js +4 -0
- package/dist/kolibri/base-web-component-B0QkUucC.js +4 -0
- package/dist/kolibri/{base-web-component-C1XSz7ML.js → base-web-component-CgbHhshr.js} +1 -1
- package/dist/kolibri/{base-web-component-cTyj95G-.js → base-web-component-D8x1WFVT.js} +1 -1
- package/dist/kolibri/{behavior-Zr6qAX7F.js → behavior-BqydGn0c.js} +1 -1
- package/dist/kolibri/behavior-DJY-AtON.js +4 -0
- package/dist/kolibri/behavior-DyHxeIOP.js +4 -0
- package/dist/kolibri/bootstrap-ddeYryQr.js +4 -0
- package/dist/kolibri/color-w3K7aUcU.js +4 -0
- package/dist/kolibri/{component-DHl33p9J.js → component-BPRJ0qOM.js} +1 -1
- package/dist/kolibri/component-BQBWV-Dj.js +4 -0
- package/dist/kolibri/{component-DzVHCXnG.js → component-B_u7M1gI.js} +1 -1
- package/dist/kolibri/component-Bk12rjp3.js +4 -0
- package/dist/kolibri/component-D1XWWFos.js +4 -0
- package/dist/kolibri/component-Dfgawulk.js +4 -0
- package/dist/kolibri/{component-C_Te18y_.js → component-DsvRA1H3.js} +1 -1
- package/dist/kolibri/component-PLZiII08.js +4 -0
- package/dist/kolibri/component-TFkvNo8L.js +4 -0
- package/dist/kolibri/{component-DqHI-AwD.js → component-k7qmCOq7.js} +1 -1
- package/dist/kolibri/{component-names-Dhbtt0mX.js → component-names-CrfBV37S.js} +1 -1
- package/dist/kolibri/{component-C9mkZ63L.js → component-u7CHIDOX.js} +1 -1
- package/dist/kolibri/contrast-Dtg34nol.js +4 -0
- package/dist/kolibri/controller-DL8n64W5.js +4 -0
- package/dist/kolibri/{dev.utils-BgjegQC8.js → dev.utils-Cl2Ehgvu.js} +1 -1
- package/dist/kolibri/{devtools-4nOArEGl.js → devtools-BkgDF9Wk.js} +1 -1
- package/dist/kolibri/disabled-DU4BpeNO.js +4 -0
- package/dist/kolibri/element-focus-BIRmGg5W.js +4 -0
- package/dist/kolibri/{element-interaction-Cy9tx3Sx.js → element-interaction-sGYdEpmv.js} +1 -1
- package/dist/kolibri/field-control-CQRYx4SF.js +4 -0
- package/dist/kolibri/{group-Ce5pMiZJ.js → group-D3knBA42.js} +1 -1
- package/dist/kolibri/has-closer-W6jQEQkV.js +4 -0
- package/dist/kolibri/href-DzETOAed.js +4 -0
- package/dist/kolibri/index-DqqSYO-1.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-BBxRsjm-.js +4 -0
- package/dist/kolibri/input-container-DrzJi_0x.js +4 -0
- package/dist/kolibri/item-CJvb0vTK.js +4 -0
- package/dist/kolibri/item-CYZtLav7.js +4 -0
- package/dist/kolibri/item-CuotjQUP.js +4 -0
- package/dist/kolibri/item-DQR44mQ_.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-click-button.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-skeleton.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-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/label-CJRIAbnc.js +4 -0
- package/dist/kolibri/label-CPjIrpB0.js +4 -0
- package/dist/kolibri/label-hints-CGyBuIY6.js +4 -0
- package/dist/kolibri/label-lang-segment-c3GyH-Op.js +4 -0
- package/dist/kolibri/label-with-expert-slot-89Cj-cq-.js +4 -0
- package/dist/kolibri/level-JSbGeBz9.js +4 -0
- package/dist/kolibri/link-target-aw_DcyX2.js +4 -0
- package/dist/kolibri/links-C0RerkBI.js +4 -0
- package/dist/kolibri/multiple-DMz1NE8m.js +4 -0
- package/dist/kolibri/name-CWVb8Q5W.js +4 -0
- package/dist/kolibri/number-value-Bm0uVl62.js +4 -0
- package/dist/kolibri/open-CnguVIAX.js +4 -0
- package/dist/kolibri/{options-CR431ims.js → options-DK9U0D2y.js} +1 -1
- package/dist/kolibri/{orientation-C9FRNmPD.js → orientation-T7LcUCDT.js} +1 -1
- package/dist/kolibri/placeholder-C1LF_luk.js +4 -0
- package/dist/kolibri/read-only-DLntjWLi.js +4 -0
- package/dist/kolibri/required-CySt8O-6.js +4 -0
- package/dist/kolibri/resolve-props-CECEyL7n.js +4 -0
- package/dist/kolibri/resolve-props-bPGYbQje.js +4 -0
- package/dist/kolibri/rows-D2i8Qw0_.js +4 -0
- package/dist/kolibri/{scroll-lock-DQGTnLvW.js → scroll-lock-BJ_1AYBl.js} +1 -1
- package/dist/kolibri/{smart-button-BHM06d-t.js → smart-button-BARe7Uqb.js} +1 -1
- package/dist/kolibri/spell-check-dMfm8ESK.js +4 -0
- package/dist/kolibri/src-evXzPKgX.js +4 -0
- package/dist/kolibri/step-BHPlkf18.js +4 -0
- package/dist/kolibri/suggestions-8D7aWSYG.js +4 -0
- package/dist/kolibri/suggestions-D0ShCnWU.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-WD9E4u31.js +4 -0
- package/dist/kolibri/unique-nav-labels-B5lSg8F6.js +4 -0
- package/dist/kolibri/unit-B_lrrs5g.js +4 -0
- package/dist/kolibri/validators-C9J6nOXq.js +4 -0
- package/dist/kolibri/value-string-Bg_YNL53.js +4 -0
- package/dist/kolibri/variant-DL7TMWWF.js +4 -0
- package/dist/kolibri/width-DGMj8F25.js +4 -0
- package/dist/types/components/_skeleton/public-api/contract.d.ts +1 -6
- package/dist/types/components/_skeleton/web-components/click-button/component.d.ts +3 -3
- package/dist/types/components/_skeleton/web-components/skeleton/component.d.ts +3 -3
- package/dist/types/components/abbr/component.d.ts +3 -3
- package/dist/types/components/accordion/component.d.ts +7 -7
- package/dist/types/components/alert/component.d.ts +7 -7
- package/dist/types/components/avatar/component.d.ts +5 -5
- package/dist/types/components/badge/component.d.ts +3 -3
- package/dist/types/components/button/base.d.ts +6 -6
- package/dist/types/components/button/component.d.ts +13 -13
- package/dist/types/components/button-link/component.d.ts +11 -11
- package/dist/types/components/card/base.d.ts +3 -3
- package/dist/types/components/card/component.d.ts +5 -5
- package/dist/types/components/combobox/component.d.ts +21 -21
- package/dist/types/components/details/component.d.ts +7 -7
- package/dist/types/components/dialog/base.d.ts +3 -3
- package/dist/types/components/dialog/component.d.ts +5 -5
- package/dist/types/components/drawer/component.d.ts +5 -5
- package/dist/types/components/heading/component.d.ts +3 -3
- package/dist/types/components/icon/component.d.ts +3 -2
- package/dist/types/components/image/component.d.ts +9 -8
- package/dist/types/components/input-checkbox/component.d.ts +19 -19
- package/dist/types/components/input-color/component.d.ts +15 -16
- package/dist/types/components/input-date/component.d.ts +17 -17
- package/dist/types/components/input-email/component.d.ts +29 -29
- package/dist/types/components/input-file/component.d.ts +16 -16
- package/dist/types/components/input-number/component.d.ts +19 -19
- package/dist/types/components/input-password/component.d.ts +28 -27
- package/dist/types/components/input-radio/component.d.ts +13 -13
- package/dist/types/components/input-range/component.d.ts +13 -13
- package/dist/types/components/input-text/component.d.ts +26 -25
- package/dist/types/components/kolibri/component.d.ts +3 -3
- package/dist/types/components/link/base.d.ts +5 -5
- package/dist/types/components/link/component.d.ts +9 -9
- package/dist/types/components/link-button/component.d.ts +7 -7
- package/dist/types/components/meter/component.d.ts +17 -16
- package/dist/types/components/modal/component.d.ts +5 -5
- package/dist/types/components/nav/component.d.ts +7 -7
- package/dist/types/components/pagination/component.d.ts +8 -8
- package/dist/types/components/popover-button/component.d.ts +9 -9
- package/dist/types/components/progress/component.d.ts +9 -8
- package/dist/types/components/quote/component.d.ts +7 -6
- package/dist/types/components/select/component.d.ts +19 -19
- package/dist/types/components/single-select/component.d.ts +19 -19
- package/dist/types/components/spin/component.d.ts +5 -4
- package/dist/types/components/split-button/component.d.ts +13 -13
- package/dist/types/components/table-stateful/component.d.ts +9 -9
- package/dist/types/components/table-stateless/base.d.ts +4 -3
- package/dist/types/components/table-stateless/component.d.ts +5 -5
- package/dist/types/components/tabs/component.d.ts +3 -3
- package/dist/types/components/textarea/component.d.ts +27 -27
- package/dist/types/components/toolbar/component.d.ts +3 -3
- package/dist/types/components/tree-item/component.d.ts +3 -3
- package/dist/types/components.d.ts +1350 -973
- package/dist/types/core/component-names.d.ts +0 -1
- package/dist/types/core/i18n.d.ts +1 -1
- package/dist/types/e2e/input-behavior-contract.d.ts +0 -1
- package/dist/types/functional-components/index.d.ts +0 -1
- package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
- package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/api.d.ts +1 -1
- package/dist/types/internal/functional-components/badge/api.d.ts +4 -4
- package/dist/types/internal/functional-components/base-web-component.d.ts +2 -0
- package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
- package/dist/types/internal/functional-components/button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/card/api.d.ts +2 -2
- package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
- package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
- package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
- package/dist/types/internal/functional-components/dialog/item.d.ts +2 -2
- package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
- package/dist/types/internal/functional-components/form/api.d.ts +1 -1
- 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/internal/functional-components/form-field/api.d.ts +3 -3
- package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +2 -0
- package/dist/types/internal/functional-components/form-field/component.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/default-input-props.d.ts +4 -3
- package/dist/types/internal/functional-components/form-field/field-control.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/label.d.ts +2 -1
- package/dist/types/internal/functional-components/generic-types.d.ts +2 -2
- package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/image/api.d.ts +2 -2
- package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-color/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-date/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-email/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-file/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-number/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-password/api.d.ts +6 -6
- package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
- package/dist/types/internal/functional-components/input-text/api.d.ts +6 -6
- package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
- package/dist/types/internal/functional-components/link/api.d.ts +2 -2
- package/dist/types/internal/functional-components/link/item.d.ts +2 -1
- package/dist/types/internal/functional-components/meter/api.d.ts +11 -2
- package/dist/types/internal/functional-components/meter/component.test.d.ts +1 -0
- package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/component.d.ts +1 -1
- package/dist/types/internal/functional-components/pagination/item.d.ts +3 -3
- package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/api.d.ts +11 -2
- package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
- package/dist/types/internal/functional-components/select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/skeleton/api.d.ts +1 -1
- package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
- package/dist/types/internal/functional-components/span/api.d.ts +2 -2
- package/dist/types/internal/functional-components/span/component.d.ts +2 -1
- package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
- package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/component.d.ts +1 -0
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +0 -3
- package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
- package/dist/types/internal/functional-components/text-input/api.d.ts +6 -6
- package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
- package/dist/types/internal/functional-components/toolbar/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tooltip/behavior.d.ts +2 -1
- package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
- package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
- package/dist/types/internal/props/accept.d.ts +2 -1
- package/dist/types/internal/props/access-key.d.ts +3 -2
- package/dist/types/internal/props/active.d.ts +3 -2
- package/dist/types/internal/props/adjust-height.d.ts +3 -2
- package/dist/types/internal/props/alert-callbacks.d.ts +1 -3
- package/dist/types/internal/props/alert-type.d.ts +1 -1
- package/dist/types/internal/props/alert-variant.d.ts +1 -1
- package/dist/types/internal/props/alert.d.ts +3 -2
- package/dist/types/internal/props/allow-markdown.d.ts +3 -2
- package/dist/types/internal/props/allow-multi-sort.d.ts +3 -2
- package/dist/types/internal/props/alt.d.ts +3 -2
- package/dist/types/internal/props/aria-controls.d.ts +3 -2
- package/dist/types/internal/props/aria-current-value.d.ts +1 -1
- package/dist/types/internal/props/aria-description.d.ts +3 -2
- package/dist/types/internal/props/aria-details.d.ts +3 -2
- package/dist/types/internal/props/aria-expanded.d.ts +1 -1
- package/dist/types/internal/props/aria-has-popup.d.ts +1 -1
- package/dist/types/internal/props/aria-owns.d.ts +3 -2
- package/dist/types/internal/props/aria-selected.d.ts +1 -1
- package/dist/types/internal/props/auto-complete.d.ts +1 -1
- package/dist/types/internal/props/badge-text.d.ts +3 -2
- package/dist/types/internal/props/boundary-count.d.ts +3 -2
- package/dist/types/internal/props/breadcrumb-links.d.ts +1 -4
- package/dist/types/internal/props/button-callbacks.d.ts +1 -3
- package/dist/types/internal/props/button-type.d.ts +1 -1
- package/dist/types/internal/props/card-callbacks.d.ts +1 -3
- package/dist/types/internal/props/checkbox-value.d.ts +1 -1
- package/dist/types/internal/props/checked.d.ts +3 -2
- package/dist/types/internal/props/collapsible-callbacks.d.ts +1 -3
- package/dist/types/internal/props/collapsible.d.ts +3 -2
- package/dist/types/internal/props/color.d.ts +1 -1
- package/dist/types/internal/props/custom-class.d.ts +3 -2
- package/dist/types/internal/props/dialog-callbacks.d.ts +1 -1
- package/dist/types/internal/props/disabled.d.ts +3 -2
- package/dist/types/internal/props/download.d.ts +2 -1
- package/dist/types/internal/props/drawer-callbacks.d.ts +1 -1
- package/dist/types/internal/props/error-list.d.ts +1 -1
- package/dist/types/internal/props/fixed-cols.d.ts +1 -1
- package/dist/types/internal/props/form-callbacks.d.ts +1 -3
- package/dist/types/internal/props/has-clear-button.d.ts +3 -2
- package/dist/types/internal/props/has-closer.d.ts +3 -2
- package/dist/types/internal/props/has-compact-button.d.ts +3 -2
- package/dist/types/internal/props/has-counter.d.ts +3 -2
- package/dist/types/internal/props/has-create-button.d.ts +3 -2
- package/dist/types/internal/props/has-icons-when-expanded.d.ts +3 -2
- package/dist/types/internal/props/has-settings-menu.d.ts +3 -2
- package/dist/types/internal/props/helpers/factory.d.ts +13 -6
- package/dist/types/internal/props/helpers/normalizers.d.ts +2 -1
- package/dist/types/internal/props/helpers/validators.d.ts +4 -0
- package/dist/types/internal/props/hide-label.d.ts +3 -2
- package/dist/types/internal/props/hide-msg.d.ts +3 -2
- package/dist/types/internal/props/high.d.ts +3 -2
- package/dist/types/internal/props/hint.d.ts +3 -2
- package/dist/types/internal/props/hints/label-hints.d.ts +2 -1
- package/dist/types/internal/props/horizontal-icons.d.ts +1 -1
- package/dist/types/internal/props/href.d.ts +3 -3
- package/dist/types/internal/props/icons-input-checkbox.d.ts +1 -1
- package/dist/types/internal/props/icons.d.ts +1 -1
- package/dist/types/internal/props/id.d.ts +3 -2
- package/dist/types/internal/props/image-callbacks.d.ts +1 -3
- package/dist/types/internal/props/indeterminate.d.ts +3 -2
- package/dist/types/internal/props/index.d.ts +1 -1
- package/dist/types/internal/props/inline.d.ts +3 -2
- package/dist/types/internal/props/input-date-type.d.ts +1 -1
- package/dist/types/internal/props/input-text-type.d.ts +1 -1
- package/dist/types/internal/props/kolibri-color.d.ts +1 -1
- package/dist/types/internal/props/label-align.d.ts +1 -1
- package/dist/types/internal/props/label-lang-segment.d.ts +4 -0
- package/dist/types/internal/props/label-with-expert-slot.d.ts +3 -2
- package/dist/types/internal/props/label.d.ts +2 -1
- package/dist/types/internal/props/labeled.d.ts +3 -2
- package/dist/types/internal/props/level.d.ts +1 -1
- package/dist/types/internal/props/link-callbacks.d.ts +1 -3
- package/dist/types/internal/props/link-role.d.ts +1 -1
- package/dist/types/internal/props/link-target.d.ts +3 -2
- package/dist/types/internal/props/loading.d.ts +1 -1
- package/dist/types/internal/props/low.d.ts +3 -2
- package/dist/types/internal/props/max-length-behavior.d.ts +1 -1
- package/dist/types/internal/props/max-length.d.ts +2 -1
- package/dist/types/internal/props/max.d.ts +3 -2
- package/dist/types/internal/props/min.d.ts +3 -2
- package/dist/types/internal/props/multiple.d.ts +3 -2
- package/dist/types/internal/props/name.d.ts +3 -2
- package/dist/types/internal/props/nav-links.d.ts +1 -3
- package/dist/types/internal/props/open.d.ts +3 -2
- package/dist/types/internal/props/optimum.d.ts +3 -2
- package/dist/types/internal/props/options-with-optgroup.d.ts +1 -1
- package/dist/types/internal/props/orientation.d.ts +1 -1
- package/dist/types/internal/props/page-size-options.d.ts +1 -1
- package/dist/types/internal/props/page-size.d.ts +3 -2
- package/dist/types/internal/props/page.d.ts +3 -2
- package/dist/types/internal/props/pagination-callbacks.d.ts +1 -3
- package/dist/types/internal/props/pagination-has-buttons.d.ts +1 -1
- package/dist/types/internal/props/pagination-max.d.ts +3 -2
- package/dist/types/internal/props/pagination-position.d.ts +1 -1
- package/dist/types/internal/props/pattern.d.ts +2 -1
- package/dist/types/internal/props/placeholder.d.ts +2 -1
- package/dist/types/internal/props/quote.d.ts +3 -2
- package/dist/types/internal/props/radio-orientation.d.ts +1 -1
- package/dist/types/internal/props/radio-value.d.ts +1 -1
- package/dist/types/internal/props/read-only.d.ts +3 -2
- package/dist/types/internal/props/required-text.d.ts +1 -1
- package/dist/types/internal/props/required.d.ts +3 -2
- package/dist/types/internal/props/resize.d.ts +1 -1
- package/dist/types/internal/props/rows.d.ts +2 -1
- package/dist/types/internal/props/secondary-headline.d.ts +3 -2
- package/dist/types/internal/props/select-value.d.ts +1 -1
- package/dist/types/internal/props/selected.d.ts +3 -2
- package/dist/types/internal/props/short-key.d.ts +3 -2
- package/dist/types/internal/props/show.d.ts +3 -2
- package/dist/types/internal/props/sibling-count.d.ts +3 -2
- package/dist/types/internal/props/sizes.d.ts +3 -2
- package/dist/types/internal/props/skip-nav-links.d.ts +1 -3
- package/dist/types/internal/props/smart-button.d.ts +2 -2
- package/dist/types/internal/props/span-icons.d.ts +1 -1
- package/dist/types/internal/props/spell-check.d.ts +2 -1
- package/dist/types/internal/props/src.d.ts +3 -2
- package/dist/types/internal/props/srcset.d.ts +3 -2
- package/dist/types/internal/props/suggestions.d.ts +1 -1
- package/dist/types/internal/props/sync-value-by-selector.d.ts +2 -1
- package/dist/types/internal/props/tab-behavior.d.ts +1 -1
- package/dist/types/internal/props/tab-index.d.ts +3 -2
- package/dist/types/internal/props/table-data-foot.d.ts +1 -1
- package/dist/types/internal/props/table-data.d.ts +1 -1
- package/dist/types/internal/props/table-headers.d.ts +1 -1
- package/dist/types/internal/props/table-loading.d.ts +3 -2
- package/dist/types/internal/props/table-pagination.d.ts +1 -1
- package/dist/types/internal/props/table-selection.d.ts +1 -1
- package/dist/types/internal/props/table-stateful-headers.d.ts +1 -1
- package/dist/types/internal/props/tabs-callbacks.d.ts +1 -1
- package/dist/types/internal/props/tabs.d.ts +1 -1
- package/dist/types/internal/props/toolbar-items.d.ts +1 -1
- package/dist/types/internal/props/touched.d.ts +3 -2
- package/dist/types/internal/props/unit.d.ts +3 -2
- package/dist/types/internal/props/value-number-clamped.d.ts +4 -3
- package/dist/types/internal/props/value-string.d.ts +2 -1
- package/dist/types/internal/props/variant-dialog.d.ts +1 -1
- package/dist/types/internal/props/variant-input-checkbox.d.ts +1 -1
- package/dist/types/internal/props/variant-progress.d.ts +1 -1
- package/dist/types/internal/props/variant-quote.d.ts +1 -1
- package/dist/types/internal/props/variant-spin.d.ts +1 -1
- package/dist/types/internal/props/variant.d.ts +1 -1
- package/dist/types/internal/props/visibility-toggle.d.ts +3 -2
- package/dist/types/internal/props/width.d.ts +3 -2
- package/dist/types/schema/components/alert.d.ts +2 -2
- package/dist/types/schema/components/badge.d.ts +2 -2
- package/dist/types/schema/components/breadcrumb.d.ts +2 -2
- package/dist/types/schema/components/card.d.ts +2 -2
- package/dist/types/schema/components/collapsible.d.ts +3 -3
- package/dist/types/schema/components/dialog.d.ts +3 -3
- package/dist/types/schema/components/drawer.d.ts +3 -3
- package/dist/types/schema/components/split-button.d.ts +2 -2
- package/dist/types/schema/components/table.d.ts +3 -3
- package/dist/types/schema/components/tableStateless.d.ts +3 -3
- package/dist/types/schema/components/tabs.d.ts +2 -2
- package/dist/types/schema/components/tree-item.d.ts +2 -2
- package/dist/types/schema/props/allow-markdown.d.ts +1 -0
- package/dist/types/schema/props/aria-controls.d.ts +1 -2
- package/dist/types/schema/props/boundary-count.d.ts +1 -0
- package/dist/types/schema/props/has-clear-button.d.ts +1 -0
- package/dist/types/schema/props/has-compact-button.d.ts +1 -2
- package/dist/types/schema/props/high.d.ts +1 -0
- package/dist/types/schema/props/index.d.ts +19 -0
- package/dist/types/schema/props/label.d.ts +16 -2
- package/dist/types/schema/props/labeled.d.ts +1 -0
- package/dist/types/schema/props/low.d.ts +1 -0
- package/dist/types/schema/props/min.d.ts +1 -0
- package/dist/types/schema/props/optimum.d.ts +1 -0
- package/dist/types/schema/props/page-size.d.ts +1 -0
- package/dist/types/schema/props/page.d.ts +1 -0
- package/dist/types/schema/props/secondary-headline.d.ts +1 -0
- package/dist/types/schema/props/selected.d.ts +1 -0
- package/dist/types/schema/props/sibling-count.d.ts +1 -0
- package/dist/types/schema/props/sizes.d.ts +1 -0
- package/dist/types/schema/props/src.d.ts +1 -0
- package/dist/types/schema/props/srcset.d.ts +1 -0
- package/dist/types/schema/props/table-loading.d.ts +1 -0
- package/dist/types/schema/props/value-number-clamped.d.ts +1 -0
- package/dist/types/schema/props/value-string.d.ts +1 -0
- package/dist/types/schema/types/button-link-text.d.ts +4 -4
- package/dist/types/utils/dev.utils.d.ts +0 -2
- package/dist/types/utils/element-focus.d.ts +1 -0
- package/dist/types/utils/element-interaction.d.ts +0 -1
- package/dist/types/utils/element-themed.d.ts +1 -2
- package/dist/types/utils/unique-nav-labels.d.ts +3 -2
- package/doc/abbr.md +3 -3
- package/doc/accordion.md +1 -1
- package/doc/alert.md +1 -1
- package/doc/badge.md +6 -6
- package/doc/breadcrumb.md +4 -4
- package/doc/button-link.md +1 -1
- package/doc/button.md +1 -1
- package/doc/card.md +1 -1
- package/doc/combobox.md +23 -23
- package/doc/details.md +1 -1
- package/doc/dialog.md +1 -1
- package/doc/drawer.md +1 -1
- package/doc/heading.md +5 -5
- package/doc/input-checkbox.md +1 -1
- package/doc/input-color.md +22 -22
- package/doc/input-date.md +28 -28
- package/doc/input-email.md +30 -30
- package/doc/input-file.md +22 -22
- package/doc/input-number.md +28 -28
- package/doc/input-password.md +29 -29
- package/doc/input-radio.md +1 -1
- package/doc/input-range.md +1 -1
- package/doc/input-text.md +31 -31
- package/doc/link-button.md +1 -1
- package/doc/link.md +1 -1
- package/doc/meter.md +1 -1
- package/doc/modal.md +1 -1
- package/doc/popover-button.md +18 -18
- package/doc/progress.md +7 -7
- package/doc/quote.md +6 -6
- package/doc/select.md +24 -24
- package/doc/single-select.md +1 -1
- package/doc/split-button.md +1 -1
- package/doc/table-stateful.md +1 -1
- package/doc/table-stateless.md +1 -1
- package/doc/textarea.md +1 -1
- package/doc/tree-item.md +6 -6
- package/package.json +5 -12
- package/vscode-custom-data.json +20 -20
- package/dist/cjs/component-kxdSa2S4.js +0 -36
- package/dist/cjs/component-plNY-StC.js +0 -13
- package/dist/cjs/href-B2aqb6-P.js +0 -12
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +0 -82
- package/dist/cjs/label-DeUoiK6M.js +0 -39
- package/dist/cjs/label-with-expert-slot-B1k6ppMF.js +0 -10
- package/dist/collection/components/component-list.js +0 -105
- package/dist/collection/components/heading/validation.js +0 -11
- package/dist/collection/components/tooltip/component.js +0 -204
- package/dist/collection/functional-components/Heading/index.js +0 -5
- package/dist/collection/internal/props/hints/index.js +0 -4
- package/dist/collection/internal/props/pagination-label.js +0 -6
- package/dist/collection/schema/components/input.js +0 -4
- package/dist/collection/schema/validators/window.js +0 -4
- package/dist/components/component11.js +0 -4
- package/dist/components/isArray.js +0 -4
- package/dist/components/kol-tooltip-wc.d.ts +0 -11
- package/dist/components/kol-tooltip-wc.js +0 -4
- package/dist/esm/component-YhEwg1LK.js +0 -11
- package/dist/esm/href-OaK1sDT5.js +0 -9
- package/dist/esm/kol-tooltip-wc.entry.js +0 -80
- package/dist/esm/label-BNtqGdMQ.js +0 -35
- package/dist/esm/label-with-expert-slot-aAOUzLo3.js +0 -8
- package/dist/esm/rows-CUHDEUm9.js +0 -8
- package/dist/kolibri/api-B9mpTRGa.js +0 -4
- package/dist/kolibri/api-CvPkoAAG.js +0 -4
- package/dist/kolibri/api-hAvZrw9X.js +0 -4
- package/dist/kolibri/app-globals-Dff_iJYF.js +0 -4
- package/dist/kolibri/aria-labelledby-BRToXqsQ.js +0 -4
- package/dist/kolibri/base-7FEvBJ3L.js +0 -4
- package/dist/kolibri/base-COT79ELt.js +0 -4
- package/dist/kolibri/base-CsJWjTJl.js +0 -4
- package/dist/kolibri/base-Df1bwC8d.js +0 -4
- package/dist/kolibri/base-web-component-Bcoukts3.js +0 -4
- package/dist/kolibri/behavior-BMW-_4Oy.js +0 -4
- package/dist/kolibri/behavior-BlS6DO8T.js +0 -4
- package/dist/kolibri/bootstrap-DTVsVq0w.js +0 -4
- package/dist/kolibri/color-9CMp_pOq.js +0 -4
- package/dist/kolibri/component-BkjWlzLc.js +0 -4
- package/dist/kolibri/component-BmJGOcby.js +0 -4
- package/dist/kolibri/component-CySyXSru.js +0 -4
- package/dist/kolibri/component-DeWynlzi.js +0 -4
- package/dist/kolibri/component-DxddScWx.js +0 -4
- package/dist/kolibri/component-Ik_-HAMT.js +0 -4
- package/dist/kolibri/component-YhEwg1LK.js +0 -4
- package/dist/kolibri/contrast-BK5uVXeb.js +0 -4
- package/dist/kolibri/controller-Bf-CAo4Q.js +0 -4
- package/dist/kolibri/disabled-BaPgTuFO.js +0 -4
- package/dist/kolibri/element-focus-Cp994Rrk.js +0 -4
- package/dist/kolibri/field-control-Brx62dJV.js +0 -4
- package/dist/kolibri/has-closer-C9L79ect.js +0 -4
- package/dist/kolibri/href-OaK1sDT5.js +0 -4
- package/dist/kolibri/index-D5UV99lE.js +0 -6
- package/dist/kolibri/input-DjQorwQ5.js +0 -4
- package/dist/kolibri/input-container-RSmfcRgK.js +0 -4
- package/dist/kolibri/isArray-CcrBs4JM.js +0 -4
- package/dist/kolibri/item-2cprk9ut.js +0 -4
- package/dist/kolibri/item-Bfk2xd-D.js +0 -4
- package/dist/kolibri/item-D9_O5WAR.js +0 -4
- package/dist/kolibri/item-DMWn_IlJ.js +0 -4
- package/dist/kolibri/kol-tooltip-wc.entry.js +0 -4
- package/dist/kolibri/label-BNtqGdMQ.js +0 -4
- package/dist/kolibri/label-with-expert-slot-aAOUzLo3.js +0 -4
- package/dist/kolibri/level-Df663c7y.js +0 -4
- package/dist/kolibri/link-target-C7_smSbV.js +0 -4
- package/dist/kolibri/links-B0xbzBwU.js +0 -4
- package/dist/kolibri/multiple-CYHm7rd3.js +0 -4
- package/dist/kolibri/name-m3owaZxH.js +0 -4
- package/dist/kolibri/number-value-CMedWR58.js +0 -4
- package/dist/kolibri/open-DCGNTmvC.js +0 -4
- package/dist/kolibri/placeholder-Bwzvbwhh.js +0 -4
- package/dist/kolibri/read-only-C5fDsZVK.js +0 -4
- package/dist/kolibri/required-CC0212MQ.js +0 -4
- package/dist/kolibri/resolve-props-47S-r31C.js +0 -4
- package/dist/kolibri/resolve-props-CnHCiXuG.js +0 -4
- package/dist/kolibri/rows-CUHDEUm9.js +0 -4
- package/dist/kolibri/spell-check-DiSedaOR.js +0 -4
- package/dist/kolibri/src-CsLEg--w.js +0 -4
- package/dist/kolibri/step-BxSThOke.js +0 -4
- package/dist/kolibri/suggestions-B79TOsF_.js +0 -4
- package/dist/kolibri/suggestions-C38q-5JU.js +0 -4
- package/dist/kolibri/toggle-handler-CQ0FhBmD.js +0 -4
- package/dist/kolibri/unique-nav-labels-Bh3w7dCH.js +0 -4
- package/dist/kolibri/unit-BgjPEae-.js +0 -4
- package/dist/kolibri/value-string-BDfywbme.js +0 -4
- package/dist/kolibri/variant-PJN56KWi.js +0 -4
- package/dist/kolibri/width-CAS8lhOU.js +0 -4
- package/dist/types/components/component-list.d.ts +0 -7
- package/dist/types/components/heading/validation.d.ts +0 -3
- package/dist/types/components/tooltip/component.d.ts +0 -19
- package/dist/types/functional-components/Heading/index.d.ts +0 -2
- package/dist/types/internal/props/hints/index.d.ts +0 -1
- package/dist/types/internal/props/pagination-label.d.ts +0 -3
- package/dist/types/schema/components/input.d.ts +0 -0
- package/dist/types/schema/validators/window.d.ts +0 -0
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
4
|
import { L as Log } from './common-D03JQJgy.js';
|
|
5
|
+
import { t as trimLabel } from './label-CJRIAbnc.js';
|
|
5
6
|
|
|
6
7
|
const UNIQUE_LABELS = new Set();
|
|
7
8
|
function addNavLabel(ariaLabel) {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
const trimmedLabel = trimLabel(ariaLabel);
|
|
10
|
+
if (UNIQUE_LABELS.has(trimmedLabel)) {
|
|
11
|
+
Log.warn(`There already is a nav element with the label "${trimmedLabel}"`);
|
|
10
12
|
}
|
|
11
13
|
else {
|
|
12
|
-
UNIQUE_LABELS.add(
|
|
14
|
+
UNIQUE_LABELS.add(trimmedLabel);
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
function removeNavLabel(ariaLabel) {
|
|
16
|
-
|
|
18
|
+
const trimmedLabel = trimLabel(ariaLabel);
|
|
19
|
+
UNIQUE_LABELS.delete(trimmedLabel);
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
export { addNavLabel as a, removeNavLabel as r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition,
|
|
4
|
+
import { c as createPropDefinition, p as normalizeNumber, b as normalizeString } from './base-web-component-B0QkUucC.js';
|
|
5
5
|
|
|
6
6
|
const maxProp = createPropDefinition('max', 100, normalizeNumber, (v) => v > 0);
|
|
7
7
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import { d as isValidLabelSegments, g as isValidLabelString } from './label-CJRIAbnc.js';
|
|
5
|
+
|
|
6
|
+
const SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{0,60}$/;
|
|
7
|
+
const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);
|
|
8
|
+
const isValidLabel = isValidLabelString;
|
|
9
|
+
const isValidLabelWithExpertSlot = (value) => value === '' || isValidLabelSegments(value);
|
|
10
|
+
|
|
11
|
+
export { isValidLabelWithExpertSlot as a, isSafeClassName as b, isValidLabel as i };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString } from './base-web-component-
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString } from './base-web-component-B0QkUucC.js';
|
|
5
5
|
|
|
6
6
|
const stringValueProp = createPropDefinition('value', undefined, normalizeString);
|
|
7
7
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString,
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString, j as normalizeBooleanToken, n as normalizeBoolean, i as isEnumOption, m as normalizeObject, h as normalizeInteger } from './base-web-component-B0QkUucC.js';
|
|
5
|
+
import { b as isSafeClassName } from './validators-C9J6nOXq.js';
|
|
5
6
|
import { n as a11yHint } from './common-D03JQJgy.js';
|
|
6
|
-
import { c as createAlignPropDefinition } from './align-
|
|
7
|
+
import { c as createAlignPropDefinition } from './align-CR9s255S.js';
|
|
7
8
|
|
|
8
9
|
const accessKeyProp = createPropDefinition('accessKey', '', normalizeString);
|
|
9
10
|
|
|
@@ -16,9 +17,6 @@ function normalizeAriaExpanded(value) {
|
|
|
16
17
|
}
|
|
17
18
|
const ariaExpandedProp = createPropDefinition('ariaExpanded', '', normalizeAriaExpanded);
|
|
18
19
|
|
|
19
|
-
const SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{0,60}$/;
|
|
20
|
-
const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);
|
|
21
|
-
|
|
22
20
|
function validateCustomClass(value) {
|
|
23
21
|
return value === '' || isSafeClassName(value);
|
|
24
22
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { c as createPropDefinition, b as normalizeString } from './base-web-component-
|
|
4
|
+
import { c as createPropDefinition, b as normalizeString } from './base-web-component-B0QkUucC.js';
|
|
5
5
|
|
|
6
6
|
function normalizeDialogCallbacks(value) {
|
|
7
7
|
if (typeof value !== 'object' || value === null) {
|
|
8
8
|
throw new Error(`Invalid on callbacks: expected object, got ${typeof value}`);
|
|
9
9
|
}
|
|
10
|
-
const { onCancel, onClose } = value;
|
|
10
|
+
const { onCancel, onClose, onToggle } = value;
|
|
11
11
|
const callbacks = {};
|
|
12
12
|
if (typeof onCancel === 'function') {
|
|
13
13
|
callbacks.onCancel = onCancel;
|
|
@@ -15,6 +15,9 @@ function normalizeDialogCallbacks(value) {
|
|
|
15
15
|
if (typeof onClose === 'function') {
|
|
16
16
|
callbacks.onClose = onClose;
|
|
17
17
|
}
|
|
18
|
+
if (typeof onToggle === 'function') {
|
|
19
|
+
callbacks.onToggle = onToggle;
|
|
20
|
+
}
|
|
18
21
|
return callbacks;
|
|
19
22
|
}
|
|
20
23
|
const dialogCallbacksProp = createPropDefinition('on', {}, normalizeDialogCallbacks);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-
|
|
4
|
+
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-DqqSYO-1.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,h=e(r,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const j=Object.assign({level:i},h);if(!t)return s(o,Object.assign({class:l(d,"kol-headline--single")},j),c);const{class:O}=p,b=e(p,["class"]),g=Object.assign({class:l("kol-heading-group",O)},b);return s("hgroup",Object.assign({},g),s(o,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},j),c),s(n,Object.assign({},u),t))};export{c as K,r as g}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{c as t,b as o,i as r}from"./base-web-component-
|
|
4
|
+
import{c as t,b as o,i as r}from"./base-web-component-B0QkUucC.js";const n=["left","right","top","bottom"];function e(e,s){return t(e,s,(t=>{const s=o(t);if(r(s,n))return s;throw new Error(`Invalid ${e} value: ${s}`)}))}export{e as c}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as a}from"./index-DqqSYO-1.js";import{t as o}from"./i18n-DRQl0u--.js";import{e}from"./common-D03JQJgy.js";import{t as i}from"./label-CJRIAbnc.js";import{A as s,T as r,c as t}from"./component-TFkvNo8L.js";import{b as n}from"./bem-registry-BlJAUViA.js";import{c as l}from"./clsx-COFh-Vc8.js";import{p as d}from"./element-interaction-sGYdEpmv.js";import{B as c}from"./component-B_u7M1gI.js";import{I as p}from"./component-u7CHIDOX.js";import{S as m}from"./component-PLZiII08.js";import{a as f,b,c as v,f as k,g as j,h as u,s as g,i as h,l as x,d as y,t as w,e as C,v as D}from"./variant-DL7TMWWF.js";import{c as I,b as _,a as A}from"./base-web-component-B0QkUucC.js";import{d as O}from"./disabled-DU4BpeNO.js";import{h as L}from"./href-DzETOAed.js";import{l as T}from"./label-with-expert-slot-89Cj-cq-.js";import{l as B}from"./link-target-aw_DcyX2.js";const q=["date","location","page","step","time","true","false"],F=I("ariaCurrentValue","page",(function(a){const o=_(a);return q.includes(o)?o:"page"})),J=I("ariaOwns","",_),K=I("download",void 0,_),E=A(),M=n.forBlock("kol-link"),Q=(n,f)=>{const{accessKey:b,ariaControls:v,ariaCurrent:k,ariaDescription:j,ariaDescriptionId:u,ariaExpanded:g,ariaOwns:h,class:x,customClass:y,disabled:w,download:C,handleAnchorClick:D,hideLabel:I,href:_,icons:A,inline:O,label:L,on:T,ref:B,refAnchor:q,refTooltip:F,role:J,shortKey:K,tabIndex:E,target:Q,variant:S,expertSlot:U}=n,V=o("kol-open-link-in-tab"),$="string"==typeof Q&&Q.length>0&&"_self"!==Q,N={href:"string"==typeof _&&_.length>0?_:"javascript:void(0);",target:"string"==typeof Q&&Q.length>0?Q:void 0,rel:$?"noopener":void 0,download:"string"==typeof C?C:void 0};!0===I&&""===i(L)&&e("[KolLink] An aria-label must be set when _hide-label is set.");const R=null==j?void 0:j.trim(),W=J||void 0;return a(c,{block:"kol-link",ref:B,class:l(x,{[y]:S.includes("custom")&&y.length>0,[t(S,"link")]:S.length>0}),modifiers:{disabled:!0===w,"external-link":$,"hide-label":!0===I,inline:!0===O,standalone:!1===O}},a("a",Object.assign({ref:q},N,{accessKey:b||void 0,"aria-current":k||void 0,"aria-controls":v||void 0,"aria-describedby":R?u:void 0,"aria-disabled":w?"true":void 0,"aria-expanded":""===g?void 0:g,"aria-owns":h||void 0,"aria-label":I&&""!==i(L)?`${i(L)}${$?` (${V})`:""}`:void 0,"aria-keyshortcuts":K||void 0,class:M("interactive-element")},T,{onClick:D,onMouseDown:w?d:void 0,role:W,tabIndex:w?-1:E}),a(m,{class:"kol-link__text",badgeText:b||K,icons:A,hideLabel:I,label:U?"":L||_},f.length>0?f:a("slot",{name:"expert",slot:"expert"})),$&&a(p,{class:"kol-link__icon",label:I?"":V,icons:"kolicon-link-external","aria-hidden":I})),!0===I&&!U&&a("div",{class:"kol-link__tooltip"},a(r,{badgeText:b||K||"",label:"string"==typeof L?L:"string"==typeof _?_:"",refFloating:F})),R&&a(s,{description:R,descriptionId:u}))},S={required:[L],optional:[f,b,F,v,k,J,j,O,K,u,g,h,T,E,x,B,y,w,C,D]};export{Q as L,F as a,E as b,J as c,K as d,S as l}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import"./common-D03JQJgy.js";import{a,b as s,c as t,f as r,g as e,h as o,i,l as n,d as p,s as m,t as u,e as c,v as f}from"./variant-DL7TMWWF.js";import{c as l,i as b,j as d,a as j,b as h}from"./base-web-component-B0QkUucC.js";import{d as v}from"./disabled-DU4BpeNO.js";import{i as w}from"./behavior-DJY-AtON.js";import{l as g}from"./label-with-expert-slot-89Cj-cq-.js";import{n as x}from"./name-CWVb8Q5W.js";const D=["dialog","false","grid","listbox","menu","tree","true"],J=l("ariaHasPopup","",(function(a){if(""===a)return"";if(b(a,D))return a;throw new Error(`Invalid aria-haspopup value: expected one of ${D.join(", ")}, got ${JSON.stringify(a)}`)})),W=l("ariaSelected","",(function(a){return d(a,"aria-selected")})),y=j(),C=["button","reset","submit"],N=l("type","button",(function(a){const s=h(a);if(b(s,C))return s;throw new Error(`Invalid button type: ${s}`)}),(a=>C.includes(a))),O={required:[g],optional:[a,s,t,r,J,W,y,N,e,v,o,w,i,n,x,p,m,u,c,f]};export{W as a,O as b,y as c,N as d,J as e}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as t,j as i,D as o}from"./common-D03JQJgy.js";import{S as s,b as r,s as l}from"./component-PLZiII08.js";import{t as a}from"./label-CJRIAbnc.js";import{a as n,c as d,n as h}from"./dev.utils-Cl2Ehgvu.js";import{K as c,d as p}from"./events-BIT-JUP2.js";import{F as u,a as m}from"./behavior-BqydGn0c.js";import{d as b}from"./disabled-DU4BpeNO.js";import{h as v,e as f}from"./variant-DL7TMWWF.js";import{c as g,n as y,b as j,a as B,B as L}from"./base-web-component-B0QkUucC.js";import{l as _}from"./label-with-expert-slot-89Cj-cq-.js";import{n as O}from"./name-CWVb8Q5W.js";import{c as T}from"./item-CYZtLav7.js";import{c as F}from"./item-CJvb0vTK.js";import{T as N}from"./behavior-DJY-AtON.js";import{h as C}from"./index-DqqSYO-1.js";import{t as P}from"./i18n-DRQl0u--.js";import{T as A,c as k}from"./component-TFkvNo8L.js";import{b as x}from"./bem-registry-BlJAUViA.js";import{c as D}from"./clsx-COFh-Vc8.js";import{B as I}from"./component-B_u7M1gI.js";import{P as K}from"./component-BPRJ0qOM.js";import{A as w}from"./component-D1XWWFos.js";function M(e,t){return Boolean(e)&&!0===t}function q(e){var t;return"string"==typeof e?"error":null!==(t=null==e?void 0:e._type)&&void 0!==t?t:"error"}const H=g("hideMsg",!1,y),S=g("hint","",j),J=g("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),E=B(),W=g("msg",void 0,(function(e){if("string"==typeof e)try{return t(e)}catch(t){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&o(e._description,1))})),Q=g("touched",!1,y),$=t=>{var{id:i,class:o,hint:s,baseClassName:r="kol-form-field"}=t,l=e(t,["id","class","hint","baseClassName"]);return s?C("span",Object.assign({class:D(`${r}__hint`,o),id:n(i||"","hint")},l),s):null},R=t=>{var{component:i="label",id:o,baseClassName:l="kol-form-field",class:a,accessKey:d,shortKey:h,label:c,hideLabel:p,hasExpertSlot:u,omitId:m,showBadge:b=!0,readOnly:v,infoPopover:f}=t,g=e(t,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!u&&p,j=!1===b?void 0:r(d,h);return C(i,Object.assign({},g,{class:D(`${l}__label`,a),id:y||m?void 0:n(o,"label"),hidden:y,htmlFor:"legend"===i?void 0:o}),C(s,{class:`${l}__label-text`,label:u?"":null!=c?c:"",badgeText:j},C("slot",{name:"expert"})),!u&&v&&C("span",{class:`${l}__label__read-only`,"aria-hidden":"true"},"(",P("kol-readonly"),")"),!u&&f&&C("span",null,C(K,Object.assign({},f.popoverButton),C("div",{class:"kol-popover-button__popover--styled"},f.content))))},U=i=>{var o,s,{alert:r,hideMsg:l,msg:a,id:c,class:p}=i,u=e(i,["alert","hideMsg","msg","id","class"]);const m=function(e){if("string"==typeof e)try{return t(e)}catch(t){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return C(w,Object.assign({alert:!l&&(null!==(o=null==m?void 0:m._alert)&&void 0!==o?o:!0===r),class:D("kol-form-field__msg",l&&"visually-hidden",p),closerAriaDescriptionId:h(),handleCloserClick:()=>{},hasCloser:!1,headingId:d("alert-heading"),id:n(c,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==m?void 0:m._type)&&void 0!==s?s:"error",variant:"msg"},u),(null==m?void 0:m._description)||void 0)},V=x.forBlock("kol-form-field"),z=({hideLabel:e,label:t,renderNoTooltip:i})=>!i&&!l(t)&&!0===e,Y=e=>{const t=q(e);return{[t]:!0,[`msg-type-${t}`]:!0}},Z=(t,i)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:d,required:h,alert:c,disabled:p,class:u,msg:m,hideMsg:b,hideLabel:v,label:f,infoPopover:g,hint:y,accessKey:j,shortKey:B,counter:L,readOnly:_,touched:O,maxLength:T,ariaDescribedBy:F,showBadge:N,tooltipAlign:x,variant:K,component:w="div",orientation:q,refInput:H,refTooltip:S}=t,J=e(t,["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=l(f),W=M(m,O),Q=r(j,B),Z=z({hideLabel:v,label:f,renderNoTooltip:s}),G="fieldset"===w;return C(I,Object.assign({component:w,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(p),required:Boolean(h),touched:Boolean(O),"hide-label":Boolean(v),"read-only":Boolean(_),"hidden-msg":Boolean(b)},W?Y(m):{}),class:D(K&&k(K,"form-field"),u),disabled:!(!G||!p)||void 0,"aria-describedby":F},J),!o&&C(R,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:d,hasExpertSlot:E,hideLabel:v,label:f,accessKey:j,shortKey:B,readOnly:_,showBadge:N,infoPopover:g}),C("div",{class:V("input",{"orientation-horizontal":"horizontal"===q,"orientation-vertical":"vertical"===q}),ref:H},i,Z&&C("div",{class:V("tooltip")},C(A,{badgeText:Q||"",label:f,align:x,id:n(d,"label"),refFloating:S}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&C("div",{class:V("counter")},C("span",{"data-testid":"input-counter","aria-hidden":"true",class:V("counter"),ref:L.visualRef}),C("span",{"aria-live":"polite",class:"visually-hidden","data-testid":"input-counter-aria",id:n(d,"counter"),ref:L.ariaRef})),W&&C(U,{id:d,alert:c,hideMsg:b,msg:m}),!a&&C($,{id:d,hint:y}),"number"==typeof T&&!L&&C("span",{id:n(d,"character-limit-hint"),class:"visually-hidden"},P("kol-character-limit-hint",{placeholders:{limit:String(T)}})))};class G extends L{constructor(){super(...arguments),this.tooltipBehavior=new N(L.stateLess),this.smartButton=T((()=>this.host)),this.infoPopover=F({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,t)=>{var i,o;e.stopPropagation(),void 0===t&&(t=e.target.value),this.emit(c.change,t),null===(o=null===(i=this._on)||void 0===i?void 0:i.onChange)||void 0===o||o.call(i,e,t)},this.handleInput=(e,t)=>{var i,o;e.stopPropagation(),void 0===t&&(t=e.target.value),this.emit(c.input,t),this.formAssociation.setFormAssociatedValue(t),null===(o=null===(i=this._on)||void 0===i?void 0:i.onInput)||void 0===o||o.call(i,e,t)},this.handleClick=e=>{var t,i;this.emit(c.click),null===(i=null===(t=this._on)||void 0===t?void 0:t.onClick)||void 0===i||i.call(t,e)},this.handleFocus=e=>{var t,i;this.focusEventSent||(this.emit(c.focus),null===(i=null===(t=this._on)||void 0===t?void 0:t.onFocus)||void 0===i||i.call(t,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var t,i;this.emit(c.keydown),null===(i=null===(t=this._on)||void 0===t?void 0:t.onKeyDown)||void 0===i||i.call(t,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,t){this.formAssociation=new u(L.stateLess,{host:this.host,type:e,name:t})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners()}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 t=this.shared.getRenderProp("infoPopover");if(!t)return;const{_content:i}=t,o=e(t,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,t){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:t},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){m.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e)}applyDisabled(e){b.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){v.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){H.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){S.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){J.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){_.apply(!1===e?"":e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){W.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){O.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){E.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){f.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,t;return null!==(t=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==t?t:this.host}emit(e,t){this.eventHost&&p(this.eventHost,e,t)}handleFocusLeave(e){var t,i;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,r=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!r&&(this._touched=!0,this.emit(c.blur),null===(i=null===(t=this._on)||void 0===t?void 0:t.onBlur)||void 0===i||i.call(t,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:t,hint:i,touched:o})=>{const s="string"==typeof t?t:null==t?void 0:t._description,r=Boolean(s&&s.length>0),l="error"===q(t)&&r&&!0===o,a="string"==typeof i&&i.length>0,d=[];return r&&!0===o&&d.push(n(e,"msg")),a&&d.push(n(e,"hint")),{hasError:l,hasHint:a,ariaDescribedBy:d}})({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 z({hideLabel:e.getRenderProp("hideLabel"),label:a(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:t,shortKey:i,variant:o,counter:s,maxLength:l,readOnly:a,renderNoLabel:d,renderNoTooltip:h,required:c}){const p=this.shared,u=p.getState("id"),m=p.getRenderProp("label"),b=p.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(b),this.tooltipBehavior.watchBadgeText(r(t,i)||""),this.tooltipBehavior.watchId(n(u,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:u,disabled:p.getRenderProp("disabled"),msg:p.getRenderProp("msg"),hint:p.getRenderProp("hint"),label:m,hideLabel:p.getRenderProp("hideLabel"),hideMsg:p.getRenderProp("hideMsg"),touched:p.getRenderProp("touched"),showBadge:Boolean(t)||Boolean(i),required:c,readOnly:a,accessKey:t,shortKey:i,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:b,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:d,renderNoTooltip:h,refInput:h?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function X({ariaDescribedBy:e,hideLabel:t,label:i}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":t&&i?a(i):void 0}}const ee={required:[_],optional:[m,b,v,H,S,J,E,W,O,f,Q]};export{G as B,Z as F,$ as a,R as b,X as c,ee as f,q as g,M as i}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{L as o,d as t,w as s}from"./common-D03JQJgy.js";import{a}from"./index-DqqSYO-1.js";const e=(()=>{a((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"})),import("./devtools-BkgDF9Wk.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{e as g}
|
|
@@ -0,0 +1,4 @@
|
|
|
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}
|
|
@@ -0,0 +1,4 @@
|
|
|
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-D03JQJgy.js";import{h as i,F as s,f as n}from"./index-DqqSYO-1.js";import{c as a,e as r,n as c,a as d,B as h,v as b}from"./base-web-component-B0QkUucC.js";import{c as u}from"./item-CYZtLav7.js";import{c as p}from"./item-pool-BOxAYePG.js";import{c as v}from"./item-CuotjQUP.js";import{l as f}from"./label-lang-segment-c3GyH-Op.js";import{v as m}from"./variant-DL7TMWWF.js";import{c as y,d as g,e as k}from"./component-names-CrfBV37S.js";import{t as j}from"./i18n-DRQl0u--.js";import{t as C}from"./label-CJRIAbnc.js";import{c as S,T as w}from"./component-TFkvNo8L.js";import{b as _}from"./bem-registry-BlJAUViA.js";import{B as O}from"./component-B_u7M1gI.js";import{B as x}from"./component-BQBWV-Dj.js";import{I as $}from"./component-u7CHIDOX.js";import{L as B}from"./api-BNtfQTYQ.js";import{r as F}from"./component-PLZiII08.js";import{S as D}from"./component-k7qmCOq7.js";import{a as L}from"./tslib.es6-QNbPBOk5.js";import{n as I,c as T}from"./dev.utils-Cl2Ehgvu.js";import{d as A,K as z}from"./events-BIT-JUP2.js";import{A as E}from"./component-D1XWWFos.js";import{l as M}from"./level-JSbGeBz9.js";import{c as P}from"./element-interaction-sGYdEpmv.js";import{u as H,l as N,d as W,D as J}from"./scroll-lock-BJ_1AYBl.js";import{h as K}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as Q,w as G}from"./width-DGMj8F25.js";import{r as R,C as Y}from"./component-Bk12rjp3.js";import{T as q}from"./behavior-DJY-AtON.js";import{C as U}from"./keyboard-Cnv7zP3N.js";const V=(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},X=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,Z=a("fixedCols",[0,0],(t=>r(t)),(t=>2===t.length&&t.every(X))),tt=a("hasSettingsMenu",!1,c),et=d();function ot(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 lt(t){return t.every((t=>"object"==typeof t&&null!==t))}const it=a("data",[],ot,lt),st=a("dataFoot",[],ot,lt),nt=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),at=a("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(!nt(o)||!nt(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))))})),rt=a("loading",!1,c),ct=a("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))})),dt={required:[f,it],optional:[Z,tt,et,st,at,rt,ct,m]},ht=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),bt=t=>{const e=ht(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=ht(t.vertical);return{cells:o,horizontal:0===o.length}},ut=(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},pt=(t,e)=>{const o=Math.max(0,...t.map((t=>ut(t,"colSpan"))));return 0===o?e.length:o},vt=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},ft=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},mt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===ft(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"===ft(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},yt=(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`},gt=(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},kt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=pt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>ut(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=vt(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},jt=({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(" + ")})`},Ct=t=>void 0===t?[]:Array.isArray(t)?t:[t],St=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},wt=t=>{const e=t?Ct(t.selectedKeys):[];return{disabledKeys:new Set((t?Ct(t.disabledKeys):[]).map(String)),keyPropertyName:St(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},_t=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=_.forBlock("kol-table"),xt=Ot("body"),$t=Ot("cell-actions"),Bt=Ot("cell-states"),Ft=Ot("footer"),Dt=Ot("head"),Lt=Ot("head-row"),It=Ot("scroll-container"),Tt=Ot("selection-icon"),At=Ot("selection-input-tooltip"),zt=Ot("sort"),Et=Ot("sort-button"),Mt=Ot("sort-order"),Pt=Ot("table"),Ht=`${Ot("focus-element")} ${Ot("caption")}`,Nt="caption",Wt=(t,e)=>ft(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Jt=(t,e,o)=>({left:"left"===e?yt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?yt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Kt=(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)},Qt=t=>{const e=j("kol-sort");return"number"==typeof t&&t>0?`${e} – ${j("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Gt=(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}=Jt(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:zt},i(x,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Qt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Et}))),d&&i("span",{"aria-hidden":"true",class:Mt},d)):e.label)},Rt=(t,e,o,l,s=!1)=>i("tr",{class:Ot("row",{body:!s,footer:s}),key:`row-${Kt(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:Tt,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:At},i(w,{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 Gt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=gt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=gt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Wt(t,l),{left:u,right:p}=Jt(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:$t},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(x,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(B,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:Bt},s.map(((t,e)=>"badge"===t.type?i(y,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Yt=(t,e,o)=>{const l=t.headers.vertical.length+vt(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}))},qt=t=>{const{data:e,dataFoot:o,externalLabelElements:l,fixedCols:n,hasScrollbar:a,hasSettingsMenu:r,headers:c,label:d,loading:h,refScrollContainer:b,refTable:u,selection:p,stickyColsDisabled:v,variant:f}=t,m=j("kol-no-entries"),y=bt(c),g=pt(c.horizontal,e),k=Object.assign(Object.assign({},t),{fixedOffsets:mt(y.cells,g,n,v),maxCols:g,primaryHeaders:y,selectionModel:wt(p),translateNoEntries:m}),_=kt({data:e,dataFoot:o,headers:c,isFoot:!1,noEntriesLabel:m,primaryHeaders:y}),x=0===l.length;return i(O,{block:"kol-table",class:S(f,"table")},r&&t.renderSettings(c.horizontal),i("div",{ref:b,class:It,tabindex:a?x?"-1":"0":void 0},i("table",{ref:u,"aria-labelledby":x?Nt:void 0,class:Pt,style:{minWidth:jt(c)}},x&&i("caption",{class:Ht,id:Nt,tabindex:a?"0":void 0},F(d)),i("thead",{class:Dt},[c.horizontal.map(((t,e)=>i("tr",{class:Lt,key:`thead-${e}`},p&&(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"},j("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===_t(e,s).length,r=0!==n&&!a;let c;return c=j(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"},j("kol-table-selection")),i("div",{class:Ot("selection",{checked:a,indeterminate:r})},i("label",{class:Ot("selection-label")},i($,{class:Tt,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(..._t(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:At},i(w,{label:c,badgeText:"",refFloating:()=>{}}))))})(k),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})})(k),Array.isArray(t)&&t.map(((t,o)=>Gt(k,t,e,o,!1)))))),Yt(k,"head",c.horizontal)]),i("tbody",{class:xt},i("div",{class:Ot("loader",{shown:h})},i(D,{label:j(h?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",C(d)),show:h,variant:"cycle"})),_.map(((t,e)=>Rt(k,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=kt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=pt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:mt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Ft},[Yt(t,"foot",n),n.map(((t,e)=>Rt(r,t,e,!0,!0)))])})(k))))},Ut=({dialog:t,card:e},o)=>i(J,Object.assign({},t),e?i(Y,Object.assign({},e),o):o),Vt=()=>{},Xt=_.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=j("kol-table-settings"),l=j("kol-table-settings-cancel"),s=j("kol-table-settings-apply"),n=j("kol-table-settings-error-all-invisible");let a,r=!1,c=!1;const d=()=>{r=!0,e()},v=p((()=>u(t)),(t=>t.syncListeners()),(t=>t.destroy())),m=((t,e)=>{const o=P(),l=P(),i=new q(h.stateLess),s=I(),n=T("dialog-heading"),r={};let c,d=!0,u={};const p=t=>!a||A(a,t),v=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},m=t=>{var e;K(t),t.defaultPrevented||(null===(e=u.onCancel)||void 0===e||e.call(u,t),t.defaultPrevented||p(z.cancel)||t.preventDefault())},y=t=>{var e;t.target===o.el&&(H(r),null===(e=u.onClose)||void 0===e||e.call(u),p(z.close))},g=()=>{i.hideTooltip(),v(),p(z.close)};return{getFcProps:e=>{var a,r,h;let p="",v=0,k="blank",j="100%";f.apply(e.label,(t=>{p=t})),M.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{v=t})),Q.apply(e.on,(t=>{u=t})),b.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{k=t})),G.apply(null!==(h=e.width)&&void 0!==h?h:"100%",(t=>{j=t}));const S="card"===k;return S&&!c&&(c=R(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:W(k),handleCancel:m,handleClose:y,label:C(p),labelledBy:S?n:void 0,modal:d,refDialog:o,width:j},card:S&&c?{ariaDescriptionId:s,closeButtonProps:c,handleBlur:Vt,handleClose:g,handleFocus:Vt,hasCloser:!0,headingId:n,href:"",label:p,level:v,on:{},refCloseButton:l,refCta:Vt,refTooltip:i.setTooltipElementRef,target:""}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(d!==t&&(d=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:v,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{v(),H(r),i.destroy()}}})(t,d),y=T("alert-heading"),S=I();let w,_=[],O=[],$=null;const B=()=>{var t;return null!==(t=O[O.length-1])&&void 0!==t?t:[]},F=t=>{O=O.map(((e,o,l)=>o===l.length-1?t:e)),d()},D=(t,e)=>{const o=[...B()],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)},J=t=>{if(t.preventDefault(),!B().some((t=>!1!==t.visible)))return $=n,void d();if(a){$=null,_=O.map((t=>t.map((t=>Object.assign({},t))))),d();const t=O.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=L(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}))));A(a,z.changeHeaderCells,t),m.close()}},Y=t=>{t&&(a=t)};return{beginRender:()=>{v.beginRender(),c=r,r=!1},render:t=>{var e;c||t===w||(w=t,_=(e=t).map((t=>[...t])),O=e.map((t=>t.map((t=>Object.assign({},t))))));const n=B();return i("div",{class:Xt,ref:Y},i("div",{class:"kol-table-settings"},i(x,Object.assign({},v.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>m.show(!0)}})))),i(Ut,Object.assign({},m.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:S,handleCloserClick:te,hasCloser:!1,headingId:y,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:J},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(k,{_checked:!1!==t.visible,_label:j(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=B().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(g,{_hideLabel:!0,_value:Zt(t.width),_label:j("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=Zt(Number(e)),l=B().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(x,Object.assign({},v.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:j(!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 D(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e},{"data-testid":"table-settings-move-up"}))),i(x,Object.assign({},v.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:j(!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 D(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1},{"data-testid":"table-settings-move-down"})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(x,Object.assign({},v.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(O=_.map((t=>[...t])),$=null,d(),void m.close())}},{"data-testid":"table-settings-cancel"}))),i(x,Object.assign({},v.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"},{"data-testid":"table-settings-apply"}))))))))},sync:()=>{v.endRender(),m.syncListeners()},destroy:()=>{v.destroy(),m.destroy()}}};class oe extends h{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=p((()=>u((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>n(this))),this.linkItems=p((()=>v((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),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("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)}initTableRenderProps(){this.initRenderProps(dt)}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.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){it.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){st.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){Z.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){tt.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){at.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){f.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){rt.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){et.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){ct.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){m.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")[U.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=bt(r).cells,d=pt(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")[U.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&A(this.host,z.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[U.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&A(this.host,z.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(qt,{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,st as a,it as t,V as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as i}from"./index-DqqSYO-1.js";import{v as s,B as t}from"./base-web-component-B0QkUucC.js";import{r as l,C as o}from"./component-Bk12rjp3.js";import"./common-D03JQJgy.js";import{l as a}from"./level-JSbGeBz9.js";import{d as h,w as e}from"./width-DGMj8F25.js";import{l as r}from"./label-lang-segment-c3GyH-Op.js";import{u as n,l as d,d as p,D as m}from"./scroll-lock-BJ_1AYBl.js";import{T as v}from"./behavior-DJY-AtON.js";import{t as c}from"./label-CJRIAbnc.js";import{c as u}from"./element-interaction-sGYdEpmv.js";import{d as b,K as f}from"./events-BIT-JUP2.js";import{h as j}from"./tooltip-open-tracking-D3tCiiGP.js";const g={required:[r],optional:[h,a,s,e]},C=()=>{};class D extends t{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new v(this.stateAccess),this.handleCancel=i=>{var s,t;j(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!b(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,l,o;i.target===this.dialogRef.el&&(n(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(o=(l=this.getRenderProp("on")).onToggle)||void 0===o||o.call(l,!1),this.host&&(b(this.host,f.close),b(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&b(this.host,f.close)}}initDialogRenderProps(){this.initRenderProps(g),this.cardCloseButtonProps=l(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),n(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){r.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){a.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){s.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){e.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,l,o;const a=this.dialogRef.el;(null==a?void 0:a.open)||(this.setState("modal",i),i?(null===(s=null==a?void 0:a.showModal)||void 0===s||s.call(a),a&&d(this)):null===(t=null==a?void 0:a.show)||void 0===t||t.call(a),null===(o=(l=this.getRenderProp("on")).onToggle)||void 0===o||o.call(l,!0),this.host&&b(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleBlur:C,handleClose:this.handleCardClose,handleFocus:C,hasCloser:!0,headingId:this.getState("headingId"),href:"",label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:{},refCloseButton:this.cardCloseButtonRef,refCta:C,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef,target:""}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{blockClass:p(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:c(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}}export{D as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as i}from"./index-DqqSYO-1.js";import{B as s}from"./base-web-component-B0QkUucC.js";import{l as t,a,c as r,d as e,b as o,L as h}from"./api-BNtfQTYQ.js";import{T as n}from"./behavior-DJY-AtON.js";import{s as l}from"./common-D03JQJgy.js";import{a as p,b as d,c,f as y,g as m,h as f,s as b,i as u,l as C,d as x,t as g,e as D,v}from"./variant-DL7TMWWF.js";import{d as A}from"./disabled-DU4BpeNO.js";import{h as j}from"./href-DzETOAed.js";import{l as L}from"./label-with-expert-slot-89Cj-cq-.js";import{l as w}from"./link-target-aw_DcyX2.js";import{c as I}from"./element-interaction-sGYdEpmv.js";import{d as T,K}from"./events-BIT-JUP2.js";import{o as O}from"./ariaCurrentService-YoLNpD5S.js";class B extends s{constructor(){super(...arguments),this.ctaRef=I((()=>!0===this.getRenderProp("disabled"))),this.tooltipBehavior=new n(this.stateAccess),this.handleAnchorClick=i=>{if(this.tooltipBehavior.hideTooltip(),!0===this.getRenderProp("disabled"))return void i.preventDefault();const s=this.getRenderProp("href"),t=this.getRenderProp("on");"function"==typeof(null==t?void 0:t.onClick)&&(l(i,this.ctaRef.el),t.onClick(i,s)),this.host&&T(this.host,K.click,s)},this.setAnchorRef=i=>{this.ctaRef(i)}}initLinkRenderProps(){this.initRenderProps(t),this.unsetRenderProp("tabIndex")}initLinkBehaviors(){this.unsubscribeOnLocationChange=O((i=>{const s=this.getRenderProp("href"),t=this.getRenderProp("ariaCurrentValue"),a=i===s?t:"";this.getState("ariaCurrent")!==a&&this.setState("ariaCurrent",a)})),this.tooltipBehavior.componentWillLoad({label:this.getTooltipLabel(),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyLinkBehaviors(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.tooltipBehavior.destroy()}getTooltipLabel(){const i=this.getRenderProp("label");if("string"==typeof i&&i.length>0)return i;const s=this.getRenderProp("href");return"string"==typeof s?s:""}applyAccessKey(i){p.apply(i,(i=>this.setRenderProp("accessKey",i)))}applyAriaControls(i){d.apply(i,(i=>this.setRenderProp("ariaControls",i)))}applyAriaCurrentValue(i){a.apply(i,(i=>this.setRenderProp("ariaCurrentValue",i)))}applyAriaDescription(i){c.apply(i,(i=>this.setRenderProp("ariaDescription",i)))}applyAriaExpanded(i){y.apply(i,(i=>this.setRenderProp("ariaExpanded",i)))}applyAriaOwns(i){r.apply(i,(i=>this.setRenderProp("ariaOwns",i)))}applyCustomClass(i){m.apply(i,(i=>this.setRenderProp("customClass",i)))}applyDisabled(i){A.apply(i,(i=>this.setRenderProp("disabled",i)))}applyDownload(i){e.apply(i,(i=>this.setRenderProp("download",i)))}applyHideLabel(i){f.apply(i,(i=>this.setRenderProp("hideLabel",i)))}applyHref(i){j.apply(i,(i=>this.setRenderProp("href",i)),this.isRequired("href"))}applyIcons(i){b.apply(i,(i=>this.setRenderProp("icons",i)))}applyInline(i){u.apply(i,(i=>this.setRenderProp("inline",i)))}applyLabel(i){L.apply(i,(s=>{this.setRenderProp("label",s),this.setState("expertSlot",""===i),this.tooltipBehavior.watchLabel(this.getTooltipLabel())}),this.isRequired("label"))}applyOn(i){o.apply(i,(i=>this.setRenderProp("on",i)))}applyRole(i){C.apply(i,(i=>this.setRenderProp("role",i)))}applyShortKey(i){x.apply(i,(i=>this.setRenderProp("shortKey",i)))}applyTabIndex(i){"number"==typeof i?g.apply(i,(i=>this.setRenderProp("tabIndex",i))):this.unsetRenderProp("tabIndex")}applyTarget(i){w.apply(i,(i=>this.setRenderProp("target",i)))}applyTooltipAlign(i){D.apply(i,(i=>{this.setRenderProp("tooltipAlign",i),this.tooltipBehavior.watchAlign(i)}))}applyVariant(i){v.apply(i,(i=>this.setRenderProp("variant",i)))}renderLinkFC(){return i(h,{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaCurrent:this.getState("ariaCurrent"),ariaCurrentValue:this.getRenderProp("ariaCurrentValue"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaOwns:this.getRenderProp("ariaOwns"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),download:this.getRenderProp("download"),handleAnchorClick:this.handleAnchorClick,hideLabel:this.getRenderProp("hideLabel"),href:this.getRenderProp("href"),icons:this.getRenderProp("icons"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refAnchor:this.setAnchorRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),target:this.getRenderProp("target"),tooltipAlign:this.getRenderProp("tooltipAlign"),variant:this.getRenderProp("variant"),expertSlot:this.getState("expertSlot")})}}export{B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{h as s}from"./index-DqqSYO-1.js";import{s as i,X as t}from"./common-D03JQJgy.js";import{B as a}from"./base-web-component-B0QkUucC.js";import{b as e,e as o,a as h,c as l,d as r}from"./api-DxF6-oIO.js";import{B as n}from"./component-BQBWV-Dj.js";import{F as p}from"./behavior-BqydGn0c.js";import{T as d,i as m}from"./behavior-DJY-AtON.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 B,l as D,d as C,t as x,e as A,v as I}from"./variant-DL7TMWWF.js";import{d as T}from"./disabled-DU4BpeNO.js";import{l as g}from"./label-with-expert-slot-89Cj-cq-.js";import{n as K}from"./name-CWVb8Q5W.js";import{v as L}from"./access-and-short-key-ijzCZfHm.js";import{c as S}from"./element-interaction-sGYdEpmv.js";import{d as F,K as P}from"./events-BIT-JUP2.js";import{p as H,a as O}from"./controller-DL8n64W5.js";class V extends a{constructor(){super(...arguments),this.ctaRef=S(),this.tooltipBehavior=new d(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)H({form:this.host});else if("reset"===t)O({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&&F(this.host,P.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&&F(this.host,P.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&F(this.host,P.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&F(this.host,P.blur)}}initFormAssociation(){this.formAssociation=new p(a.stateLess,{host:this.host,type:"button"})}initButtonRenderProps(){this.initRenderProps(e),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))),L(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){o.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){T.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){m.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){B.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){g.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){K.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){l.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){D.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){C.apply(s,(s=>this.setRenderProp("shortKey",s))),L(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?x.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){A.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){r.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;I.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{V as B}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{j as t,k as r,l as n,m as e,r as o}from"./common-D03JQJgy.js";import{b as i,r as u,i as a,f as c,a as s,S as f,c as l}from"./label-CJRIAbnc.js";function v(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function h(t){if(!v(t))return!1;var r=i(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}var b,p=u["__core-js_shared__"],d=(b=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",y=Function.prototype.toString;function j(t){if(null!=t){try{return y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var w=/^\[object .+?Constructor\]$/,g=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return function(t){return!(!v(t)||(r=t,d&&d in r))&&(h(t)?g:w).test(j(t));var r}(n)?n:void 0}var O=m(u,"WeakMap"),$=Object.create,S=function(){function t(){}return function(r){if(!v(r))return{};if($)return $(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),A=function(){try{var t=m(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),N=/^(?:0|[1-9]\d*)$/;function _(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&N.test(t))&&t>-1&&t%1==0&&t<r}function x(t,r){return t===r||t!=t&&r!=r}var E=Object.prototype.hasOwnProperty;function I(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var M=Object.prototype;function P(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||M)}function F(t){return a(t)&&"[object Arguments]"==i(t)}var R=Object.prototype,D=R.hasOwnProperty,k=R.propertyIsEnumerable,J=F(function(){return arguments}())?F:function(t){return a(t)&&D.call(t,"callee")&&!k.call(t,"callee")},T="object"==typeof exports&&exports&&!exports.nodeType&&exports,B=T&&"object"==typeof module&&module&&!module.nodeType&&module,z=B&&B.exports===T?u.Buffer:void 0,C=(z?z.isBuffer:void 0)||function(){return!1},V={};function U(t){return function(r){return t(r)}}V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Arguments]"]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object Boolean]"]=V["[object DataView]"]=V["[object Date]"]=V["[object Error]"]=V["[object Function]"]=V["[object Map]"]=V["[object Number]"]=V["[object Object]"]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object WeakMap]"]=!1;var q="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=q&&"object"==typeof module&&module&&!module.nodeType&&module,K=G&&G.exports===q&&c.process,W=function(){try{return G&&G.require&&G.require("util").types||K&&K.binding&&K.binding("util")}catch(t){}}(),L=W&&W.isTypedArray,Q=L?U(L):function(t){return a(t)&&I(t.length)&&!!V[i(t)]},H=Object.prototype.hasOwnProperty;function X(t,r){return function(n){return t(r(n))}}var Y=X(Object.keys,Object),Z=Object.prototype.hasOwnProperty;function tt(t){return null!=(r=t)&&I(r.length)&&!h(r)?function(t){var r=s(t),n=!r&&J(t),e=!r&&!n&&C(t),o=!r&&!n&&!e&&Q(t),i=r||n||e||o,u=i?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],a=u.length;for(var c in t)!H.call(t,c)||i&&("length"==c||e&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_(c,a))||u.push(c);return u}(t):function(t){if(!P(t))return Y(t);var r=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&r.push(n);return r}(t);var r}var rt=m(Object,"create"),nt=Object.prototype.hasOwnProperty,et=Object.prototype.hasOwnProperty;function ot(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function it(t,r){for(var n=t.length;n--;)if(x(t[n][0],r))return n;return-1}ot.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ot.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},ot.prototype.get=function(t){var r=this.__data__;if(rt){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return nt.call(r,t)?r[t]:void 0},ot.prototype.has=function(t){var r=this.__data__;return rt?void 0!==r[t]:et.call(r,t)},ot.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=rt&&void 0===r?"__lodash_hash_undefined__":r,this};var ut=Array.prototype.splice;function at(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}at.prototype.clear=function(){this.__data__=[],this.size=0},at.prototype.delete=function(t){var r=this.__data__,n=it(r,t);return!(n<0||(n==r.length-1?r.pop():ut.call(r,n,1),--this.size,0))},at.prototype.get=function(t){var r=this.__data__,n=it(r,t);return n<0?void 0:r[n][1]},at.prototype.has=function(t){return it(this.__data__,t)>-1},at.prototype.set=function(t,r){var n=this.__data__,e=it(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};var ct=m(u,"Map");function st(t,r){var n,e,o=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?o["string"==typeof r?"string":"hash"]:o.map}function ft(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}ft.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(ct||at),string:new ot}},ft.prototype.delete=function(t){var r=st(this,t).delete(t);return this.size-=r?1:0,r},ft.prototype.get=function(t){return st(this,t).get(t)},ft.prototype.has=function(t){return st(this,t).has(t)},ft.prototype.set=function(t,r){var n=st(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};var lt=X(Object.getPrototypeOf,Object);function vt(t){var r=this.__data__=new at(t);this.size=r.size}vt.prototype.clear=function(){this.__data__=new at,this.size=0},vt.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,r){var n=this.__data__;if(n instanceof at){var e=n.__data__;if(!ct||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new ft(e)}return n.set(t,r),this.size=n.size,this},"object"==typeof exports&&exports&&!exports.nodeType&&exports&&"object"==typeof module&&module&&!module.nodeType&&module;var ht=Object.prototype.propertyIsEnumerable,bt=Object.getOwnPropertySymbols,pt=bt?function(t){return null==t?[]:(t=Object(t),function(r){for(var n=-1,e=null==r?0:r.length,o=0,i=[];++n<e;){var u=r[n];ht.call(t,u)&&(i[o++]=u)}return i}(bt(t)))}:function(){return[]};var dt=m(u,"DataView"),yt=m(u,"Promise"),jt=m(u,"Set"),wt="[object Map]",gt="[object Promise]",mt="[object Set]",Ot="[object WeakMap]",$t="[object DataView]",St=j(dt),At=j(ct),Nt=j(yt),_t=j(jt),xt=j(O),Et=i;(dt&&Et(new dt(new ArrayBuffer(1)))!=$t||ct&&Et(new ct)!=wt||yt&&Et(yt.resolve())!=gt||jt&&Et(new jt)!=mt||O&&Et(new O)!=Ot)&&(Et=function(t){var r=i(t),n="[object Object]"==r?t.constructor:void 0,e=n?j(n):"";if(e)switch(e){case St:return $t;case At:return wt;case Nt:return gt;case _t:return mt;case xt:return Ot}return r});var It=Object.prototype.hasOwnProperty,Mt=u.Uint8Array;function Pt(t){var r=new t.constructor(t.byteLength);return new Mt(r).set(new Mt(t)),r}var Ft=/\w*$/,Rt=f?f.prototype:void 0,Dt=Rt?Rt.valueOf:void 0;var kt=W&&W.isMap,Jt=kt?U(kt):function(t){return a(t)&&"[object Map]"==Et(t)},Tt=W&&W.isSet,Bt=Tt?U(Tt):function(t){return a(t)&&"[object Set]"==Et(t)},zt="[object Arguments]",Ct="[object Function]",Vt="[object Object]",Ut={};function qt(t,r,n,e,o,i){var u;if(void 0!==u)return u;if(!v(t))return t;var a=s(t);if(a)u=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&It.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t);else{var c=Et(t),f=c==Ct||"[object GeneratorFunction]"==c;if(C(t))return t.slice();if(c==Vt||c==zt||f&&!o)u=f?{}:function(t){return"function"!=typeof t.constructor||P(t)?{}:S(lt(t))}(t);else{if(!Ut[c])return o?t:{};u=function(t,r){var n,e,o,i,u=t.constructor;switch(r){case"[object ArrayBuffer]":return Pt(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i=Pt((o=t).buffer),new o.constructor(i,o.byteOffset,o.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t){var r=Pt(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}(t);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return(e=new(n=t).constructor(n.source,Ft.exec(n))).lastIndex=n.lastIndex,e;case"[object Symbol]":return Dt?Object(Dt.call(t)):{}}}(t,c)}}i||(i=new vt);var l=i.get(t);if(l)return l;i.set(t,u),Bt(t)?t.forEach((function(e){u.add(qt(e,r,n,0,t,i))})):Jt(t)&&t.forEach((function(e,o){u.set(o,qt(e,r,n,0,t,i))}));var h=a?void 0:function(t){return function(t,r,n){var e=tt(t);return s(t)?e:function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}(e,n(t))}(t,0,pt)}(t);return function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n););}(h||t,(function(e,o){h&&(e=t[o=e]),function(t,r,n){var e=t[r];E.call(t,r)&&x(e,n)&&(void 0!==n||r in t)||function(t,r,n){"__proto__"==r&&A?A(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}(t,r,n)}(u,o,qt(e,r,n,0,t,i))})),u}function Gt(t){return qt(t,5)}function Kt(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);throw new TypeError(`Cannot convert ${typeof t} to string`)}function Wt(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return String(t);if(Array.isArray(t)&&t.every(l))return t;throw new TypeError(`Cannot convert ${typeof t} to a label`)}function Lt(t){let r;try{r=Qt(t)}catch(r){throw new Error(`Invalid integer: ${String(t)}`)}return Number.isInteger(r)?r:Math.round(r)}function Qt(t){if("number"==typeof t&&!isNaN(t))return t;if("string"==typeof t&&""!==t.trim()){const r=Number(t);if(!isNaN(r))return r}throw new Error(`Invalid number: ${String(t)}`)}function Ht(t){if("number"==typeof t&&!isNaN(t))return t;throw new Error(`Invalid number: ${String(t)}`)}Ut[zt]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object DataView]"]=Ut["[object Boolean]"]=Ut["[object Date]"]=Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut[Vt]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object Symbol]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Error]"]=Ut[Ct]=Ut["[object WeakMap]"]=!1;const Xt=/^[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/;function Yt(t){return"string"==typeof t&&Xt.test(t)&&Number.isFinite(Number(t))}function Zt(t){if("number"==typeof t)return isNaN(t)?void 0:t;if(Yt(t))return parseFloat(t);throw new Error(`Invalid number: ${t}`)}function tr(t){if("boolean"==typeof t)return t;if("string"==typeof t){const r=t.toLowerCase();if("true"===r||"false"===r)return"true"===r}throw new Error(`Invalid boolean: ${String(t)}`)}function rr(t,r){if(!0===t||"true"===t)return"true";if(!1===t||"false"===t)return"false";if(""===t)return"";throw new Error(`Invalid ${r} value: expected a boolean, got ${JSON.stringify(t)}`)}function nr(t,r){return"string"==typeof t&&r.includes(t)}function er(r){if(t(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n))return n}throw new Error(`Invalid object: ${r}`)}function or(r){if(t(r)&&Array.isArray(r))return r;if("string"==typeof r){const n=JSON.parse(r);if(t(n)&&Array.isArray(n))return n}throw new Error(`Invalid array: ${r}`)}function ir(t){if("object"==typeof t&&null!==t)return t;throw new Error("Invalid on callbacks: expected object, got "+typeof t)}function ur(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}}function ar(t,n,e){const o=e instanceof Error?` (${e.message})`:"";r(`The property value ${ur(n)} for '${t}' is not valid${o}. The value is ignored.`)}function cr(t,n,e,o=()=>!0,i){return{propName:t,getDefaultValue:v(n)?()=>Gt(n):()=>n,normalize:e,validate:o,apply(e,o,u){var a;if(null!=e)try{const r=this.normalize(e);this.validate(r)?(null===(a=null==i?void 0:i.hints)||void 0===a||a.call(i,this.propName,r),o(r)):ar(t,e)}catch(r){ar(t,e,r)}else{if(u&&r(`The required property '_${t}' did not receive a value. The default value is used instead.`),void 0===n)return void o(void 0);const e=this.getDefaultValue();if(!this.validate(e))throw new Error(`Default value ${ur(n)} is invalid for prop definition '${t}'.`);o(e)}}}}function sr(t,r,n,e=()=>!0){return{propName:t,getDefaultValue:v(r)?()=>Gt(r):()=>r,normalize:n,validate:e,apply(n,e,o){if(null!=n)try{const r=this.normalize(n,o);this.validate(r,o)?e(r):ar(t,n)}catch(r){ar(t,n,r)}else{if(void 0===r)return void e(void 0);const n=this.getDefaultValue();if(!this.validate(n,o))throw new Error(`Default value ${ur(r)} is invalid for prop definition '${t}' with dependencies ${ur(o)}.`);e(n)}}}}function fr(){return cr("on",{},(t=>ir(t)))}function lr(t){var r;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments));var i=n(t);if(!i.space)return[];const u="h"===i.space[0]?e.min:o.min,a="h"===i.space[0]?e.max:o.max;return(r=Array(3))[0]=Math.min(Math.max(i.values[0],u[0]),a[0]),r[1]=Math.min(Math.max(i.values[1],u[1]),a[1]),r[2]=Math.min(Math.max(i.values[2],u[2]),a[2]),"h"===i.space[0]&&(r=e.rgb(r)),r.push(Math.min(Math.max(i.alpha,0),1)),r}const vr=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i,hr=t=>"object"==typeof t&&null!==t&&"string"==typeof t.backgroundColor&&"string"==typeof t.foregroundColor,br=t=>{const r=lr(t);if(!Array.isArray(r)||r.length<3)throw new Error(`Invalid KoliBri color: ${t}`);const[n,e,o]=r;return{red:n,green:e,blue:o}},pr=cr("color",br("#003c78"),(t=>{if("string"==typeof t&&vr.test(t))return br(t);const r=hr(t)?t:"string"==typeof t?(t=>{if(t.startsWith("{"))try{const r=JSON.parse(t);return hr(r)?r:void 0}catch(t){return}})(t):void 0;if(r)return br(r.foregroundColor);throw new Error("Invalid KoliBri color: expected a hex string or a color pair.")})),dr=new Set(["eager","lazy"]),yr=cr("loading","lazy",(t=>Kt(t)),(t=>dr.has(t)));function jr(t,r){return t<r.min?r.min:t>r.max?r.max:t}const wr=sr("value",0,((t,r)=>jr(Qt(t),r)),(t=>"number"==typeof t&&!isNaN(t))),gr=Object.assign(Object.assign({},wr),{apply(t,r,n){wr.apply(t,(t=>r(jr(t,n))),n)}}),mr=new Set(["blank","card"]),Or=cr("variant","blank",(t=>Kt(t)),(t=>mr.has(t))),$r=new Set(["block","inline"]),Sr=cr("variant","inline",(t=>Kt(t)),(t=>$r.has(t)));function Ar(t){var r,n;const e={};for(const o of[...null!==(r=t.required)&&void 0!==r?r:[],...null!==(n=t.optional)&&void 0!==n?n:[]])e[o.propName]=o.getDefaultValue();return e}function Nr(){throw new Error("This behavior does not use component state.")}class _r{constructor(){this.rawProps={},this.renderProps={},this.requiredPropNames=new Set,this.setState=(t,r)=>{this[t]=r},this.getState=t=>this[t],this.stateAccess={setState:this.setState,getState:this.getState}}initRenderProps(t){var r;this.renderProps=Ar(t),this.requiredPropNames=new Set((null!==(r=t.required)&&void 0!==r?r:[]).map((t=>t.propName)))}isRequired(t){return this.requiredPropNames.has(t)}setRawProp(t,r){this.rawProps[t]=r}getRawProp(t){return this.rawProps[t]}setRenderProp(t,r){this.renderProps&&(this.renderProps[t]=r)}unsetRenderProp(t){this.renderProps[t]=void 0}getRenderProp(t){return this.renderProps[t]}}_r.stateLess=Object.freeze({setState:Nr,getState:Nr});export{_r as B,fr as a,Kt as b,cr as c,Ar as d,or as e,sr as f,Wt as g,Lt as h,nr as i,rr as j,pr as k,yr as l,er as m,tr as n,Zt as o,Qt as p,Yt as q,lr as r,Ht as s,gr as t,Sr as u,Or as v,ir as w}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{n as e,p as s}from"./common-D03JQJgy.js";import{a as i,d as t,t as o,v as r}from"./variant-
|
|
4
|
+
import{n as e,p as s}from"./common-D03JQJgy.js";import{a as i,d as t,t as o,v as r}from"./variant-DL7TMWWF.js";import{h as a,g as l,I as n}from"./input-container-DrzJi_0x.js";import{c as d}from"./base-web-component-B0QkUucC.js";import{m as h}from"./multiple-DMz1NE8m.js";import{r as c}from"./required-CySt8O-6.js";import{r as p}from"./rows-D2i8Qw0_.js";import{f as u,i as b,g as m,c as v,B as f,F as y}from"./api-qNAcP_o2.js";import{h as j,F as O}from"./index-DqqSYO-1.js";import{v as g}from"./access-and-short-key-ijzCZfHm.js";import{c as B}from"./clsx-COFh-Vc8.js";import{h as A,e as q}from"./label-CJRIAbnc.js";import{f as w}from"./options-B0rBHetL.js";import{a as K}from"./tslib.es6-QNbPBOk5.js";import{g as D}from"./block-bem-DXqmf3Te.js";const P=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===A(s.label,3)&&!1===q(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===P(e)));if("number"==typeof s.label)return!0}return!1},k=d("options",[],(function(e){const i="string"==typeof e?s(e):e;if(Array.isArray(i)&&i.every((e=>P(e))))return i;throw new Error("Invalid select options")})),x=d("value",[],(e=>Array.isArray(e)?e:[e])),L={required:[...u.required],optional:[...u.optional,i,a,h,k,c,p,x,t,o,r]},C=D("kol-select"),E=e=>{var{class:s,index:i,selectedValue:t,selected:o,value:r,label:a,disabled:l}=e,n=K(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===t?[]:Array.isArray(t)?t:[t],h=o||d.includes(r);return j("option",Object.assign({class:B(C("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:i},n),a)},I=({preKey:e,options:s,disabled:i,value:t,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?j(O,null,s.map(((s,a)=>{var l;const n=[e,`-${a}`].join("");if("options"in s){if(!(null===(l=s.options)||void 0===l?void 0:l.length))return null;const e=Boolean(i||s.disabled),{label:a}=s,d=K(s,["label"]);return j("optgroup",Object.assign({class:C("optgroup",{disabled:e}),key:n},r,{label:null==a?void 0:a.toString(),disabled:e}),j(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:t,preKey:n},d,{disabled:e})))}return"value"in s?j(E,Object.assign({key:n},o,{index:n,selectedValue:t},s,{disabled:Boolean(i||s.disabled)})):null}))):null,S=e=>{const{class:s,msg:i,touched:t,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,u=K(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),f=Object.assign(Object.assign({class:B(C(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(t)},b(i,t)?{[m(i)]:!0}:{})),s),required:r,disabled:o},v({ariaDescribedBy:h,hideLabel:c,label:p})),u);return j("select",Object.assign({},f),j(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},T=(e,s,i)=>{const t=Array.isArray(e);if(s){if(void 0!==e&&!t)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${i} = ${JSON.stringify(e)})`)}else if(t)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${i} = ${JSON.stringify(e)})`)},V=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?V(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),$=(e,s,i)=>{if(0===s.length)return e;const t=V(s),o=t.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===i&&0===r.length){const e=t.find((e=>!0!==e.disabled));return e?[e.value]:r}return r};class F extends f{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const i=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=i,this.handleInput(e,i);else{const s=i.length>0?i[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){i.apply(e,(e=>this.setRenderProp("accessKey",e))),g(e,this.getShortKeyProp())}applyShortKey(e){t.apply(e,(e=>this.setRenderProp("shortKey",e))),g(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){T(this._value,!0===e,"current"),h.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",$(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){k.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),w(this.keyOptionMap,e),this.setRenderProp("value",$(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){c.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){p.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){T(e,!0===this._multiple,"received");const s=e=>{const s=$(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):x.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),i=this.getRenderProp("multiple"),t=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:i?this.getRenderProp("rows"):void 0,multiple:i,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},t?{"aria-keyshortcuts":t}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:i}=l({icons:this.getRenderProp("icons")});return j(y,Object.assign({},this.getFormFieldProps({class:B("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),j(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:i},j(S,Object.assign({},this.getSelectProps()))))}}export{F as B,L as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import"./common-D03JQJgy.js";import{a as t,d as s,v as i}from"./variant-
|
|
4
|
+
import"./common-D03JQJgy.js";import{a as t,d as s,v as i}from"./variant-DL7TMWWF.js";import{a as e,S as a}from"./suggestions-D0ShCnWU.js";import{h as o,g as r}from"./input-container-DrzJi_0x.js";import{c as h,b as n,B as l}from"./base-web-component-B0QkUucC.js";import{p as d}from"./placeholder-C1LF_luk.js";import{r as p}from"./read-only-DLntjWLi.js";import{r as u}from"./required-CySt8O-6.js";import{s as c}from"./smart-button-BARe7Uqb.js";import{s as m}from"./value-string-Bg_YNL53.js";import{f as v,B as y}from"./api-qNAcP_o2.js";import{h as j}from"./index-DqqSYO-1.js";import{s as b}from"./controller-DL8n64W5.js";import{v as g}from"./access-and-short-key-ijzCZfHm.js";import{c as O}from"./clsx-COFh-Vc8.js";import{c as f}from"./element-interaction-sGYdEpmv.js";import{C as x}from"./behavior-DyHxeIOP.js";const B=h("pattern",void 0,n),C={required:[...v.required],optional:[...v.optional,t,e,o,B,d,p,u,s,c,m,i]};class L extends y{constructor(){super(...arguments),this.ctaRef=f(),this.counter=new x(l.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.handleTextInput=t=>{this._value=t.target.value,this.handleInput(t)},this.handleTextChange=(t,s)=>{this.handleChange(t,s)},this.handleTextFocus=t=>{var s,i;this.handleFocus(t),this.counter.retriggerAria(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)},this.handleTextKeyDown=t=>{var s,i;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(i=null===(s=this.ctaRef.el)||void 0===s?void 0:s.value.length)&&void 0!==i?i:0),b(t,{form:this.host,ref:this.ctaRef.el})}}get textShared(){return this}initHasValue(){this.hasValue=Boolean(this.textShared.getRenderProp("value"))}didLoadTextInput(){var t,s;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0)}didUpdateTextInput(){var t,s;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(s=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==s?s:0))}destroyTextInput(){this.destroyFormField(),this.counter.destroy()}applyAccessKey(s){t.apply(s,(t=>this.textShared.setRenderProp("accessKey",t))),g(s,this._shortKey)}applyAutoComplete(t){e.apply(t,(t=>this.textShared.setRenderProp("autoComplete",t)))}applyIcons(t){o.apply(t,(t=>this.textShared.setRenderProp("icons",t)))}applyPattern(t){B.apply(t,(t=>this.textShared.setRenderProp("pattern",t)))}applyPlaceholder(t){d.apply(t,(t=>this.textShared.setRenderProp("placeholder",t)))}applyReadOnly(t){p.apply(t,(t=>this.textShared.setRenderProp("readOnly",t)))}applyRequired(t){u.apply(t,(t=>this.textShared.setRenderProp("required",t)))}applyShortKey(t){s.apply(t,(t=>this.textShared.setRenderProp("shortKey",t))),g(this._accessKey,t)}applySmartButton(t){null==t?this.textShared.unsetRenderProp("smartButton"):c.apply(t,(t=>this.textShared.setRenderProp("smartButton",t)))}applyValue(t){var s;this.initValue(t),this.hasValue=Boolean(this.textShared.getRenderProp("value")),this.counter.update(null!==(s=null==t?void 0:t.length)&&void 0!==s?s:0)}initValue(t){m.apply(t,(t=>this.textShared.setRenderProp("value",t))),this.formAssociation.setFormAssociatedValue(this.textShared.getRenderProp("value"))}initMaxLength(t){this.counter.watchMaxLength(t)}applyVariant(t){i.apply(t,(t=>this.textShared.setRenderProp("variant",t)))}applyHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}applyMaxLength(t){var s,i;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(i=null===(s=this._value)||void 0===s?void 0:s.length)&&void 0!==i?i:0)}applyMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}getTextFormFieldProps(t){const s=this.textShared;return this.getFormFieldProps({class:O(t,{"has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:s.getRenderProp("accessKey")||void 0,shortKey:s.getRenderProp("shortKey")||void 0,variant:s.getRenderProp("variant"),required:s.getRenderProp("required"),readOnly:s.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})}getTextInputAdornments(t){return r({icons:this.textShared.getRenderProp("icons"),smartButton:this.getSmartButtonFcProps(this.textShared.getRenderProp("smartButton"),this.textShared.getRenderProp("disabled")),endAdornment:t})}getTextInputProps({type:t,spellcheck:s,multiple:i,suggestions:e},o={}){const r=this.textShared,h=r.getState("id"),n=r.getRenderProp("accessKey"),l=r.getRenderProp("shortKey"),d=r.getRenderProp("placeholder"),p=r.getRenderProp("pattern"),u=this.counter.getMaxLengthAttribute(),c=this.counter.getCharacterLimitHintId(h),{ariaDescribedBy:m,hasError:v}=this.getAria();return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:h,hideLabel:r.getRenderProp("hideLabel"),label:r.getRenderProp("label"),disabled:r.getRenderProp("disabled"),name:r.getRenderProp("name")||void 0},n?{accessKey:n}:{}),void 0!==t?{type:t}:{}),{value:r.getRenderProp("value"),required:r.getRenderProp("required")}),void 0!==u?{maxlength:u}:{}),void 0!==d?{placeholder:d}:{}),{autoComplete:r.getRenderProp("autoComplete")}),void 0!==s?{spellcheck:s}:{}),void 0!==p?{pattern:p}:{}),{readonly:r.getRenderProp("readOnly")}),void 0!==i?{multiple:i}:{}),{touched:r.getRenderProp("touched"),msg:r.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),e&&e.length>0?{suggestions:j(a,{id:h,suggestions:e})}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleTextChange,onClick:this.handleClick,onFocus:this.handleTextFocus,onInput:this.handleTextInput,onKeyDown:this.handleTextKeyDown}),o),{ariaDescribedBy:c?[...m,c]:m,"aria-invalid":v?"true":void 0})}}export{L as B,C as t}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{g as t}from"./bootstrap-
|
|
4
|
+
import{g as t}from"./bootstrap-ddeYryQr.js";import{C as e,e as s,k as i}from"./common-D03JQJgy.js";import{a as o,r as a}from"./aria-labelledby-CLehu03h.js";import{c as n,b as r}from"./base-web-component-B0QkUucC.js";import{n as l}from"./name-CWVb8Q5W.js";import{B as c}from"./behavior-DJY-AtON.js";const h=n("ariaDetails","",r),u=n("syncValueBySelector",void 0,r),d={optional:[h,l,u]},m=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 f extends c{constructor(i,{host:a,type:n,name:r}){var l,c,h,u,f;super(i,d),this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||s(` 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(a),this.type=n,this.internals=o(this.host),(null===(l=t())||void 0===l?void 0:l.reflectInputValues)&&m.has(null!==(h=null===(c=this.host)||void 0===c?void 0:c.tagName)&&void 0!==h?h:"")&&r&&(null===(u=this.host)||void 0===u||u.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){h.apply(t,(t=>this.setRenderProp("ariaDetails",t)));const e=a(this.host,t);if(this.internals)try{this.internals.ariaDetailsElements=e}catch(t){}}watchName(t){l.apply(t,(t=>{this.setRenderProp("name",t),this.setNameAttribute(t)})),void 0===t&&s("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,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){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 i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":"undefined"!=typeof FileList&&t instanceof FileList?s.files=t:s.value="";break;case"select":"SELECT"===s.tagName?this.syncSelectOptions(t,s):this.syncValueAttribute(e,s);break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:this.syncValueAttribute(e,s)}}syncSelectOptions(t,e){e.querySelectorAll("option").forEach((t=>{e.removeChild(t)})),(Array.isArray(t)?t:null==t?[]:[t]).forEach((t=>{const s=this.tryToStringifyValue(t);if("string"==typeof s){const t=document.createElement("option");t.setAttribute("value",s),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{f as F,h as a}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{y as t,q as e}from"./common-D03JQJgy.js";import{t as n,a as i}from"./tooltip-open-tracking-D3tCiiGP.js";import{c as o}from"./align-CR9s255S.js";import{c as r,b as s,d as l}from"./base-web-component-B0QkUucC.js";import{l as a}from"./label-lang-segment-c3GyH-Op.js";const c=o("align","top"),u=r("badgeText","",s),f=r("id","",s),h=Math.min,d=Math.max,m=Math.round,p=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return d(t,h(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function A(t){return"x"===t?"y":"x"}function S(t){return"y"===t?"height":"width"}function T(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function k(t){return A(T(t))}function R(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const O=["left","right"],C=["right","left"],F=["top","bottom"],E=["bottom","top"];function L(t){const e=v(t);return w[e]+t.slice(e.length)}function z(t){return"number"!=typeof t?function(t){var e,n,i,o;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(o=t.left)?o:0}}(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function P(t,e,n){let{reference:i,floating:o}=t;const r=T(e),s=k(e),l=S(s),a=v(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let d;switch(a){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}const m=b(e);return m&&(d[s]+=h*("end"===m?1:-1)*(n&&c?-1:1)),d}async function j(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=x(e,t),m=z(d),p=l[h?"floating"===f?"reference":"floating":f],y=D(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:g,strategy:a}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}const M=new Set(["left","top"]);function $(){return"undefined"!=typeof window}function B(t){return I(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function q(t){var e;return null==(e=(I(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function I(t){return!!$()&&(t instanceof Node||t instanceof H(t).Node)}function N(t){return!!$()&&(t instanceof Element||t instanceof H(t).Element)}function V(t){return!!$()&&(t instanceof HTMLElement||t instanceof H(t).HTMLElement)}function _(t){return!(!$()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof H(t).ShadowRoot)}function G(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==o&&"contents"!==o}function J(t){return/^(table|td|th)$/.test(B(t))}function Q(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const W=/transform|translate|scale|rotate|perspective|filter/,U=/paint|layout|strict|content/,X=t=>!!t&&"none"!==t;let Y;function K(t){const e=N(t)?et(t):t;return X(e.transform)||X(e.translate)||X(e.scale)||X(e.rotate)||X(e.perspective)||!Z()&&(X(e.backdropFilter)||X(e.filter))||W.test(e.willChange||"")||U.test(e.contain||"")}function Z(){return null==Y&&(Y="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Y}function tt(t){return/^(html|body|#document)$/.test(B(t))}function et(t){return H(t).getComputedStyle(t)}function nt(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||_(t)&&t.host||q(t);return _(e)?e.host:e}function ot(t){const e=it(t);return tt(e)?(t.ownerDocument||t).body:V(e)&&G(e)?e:ot(e)}function rt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=ot(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=H(o);if(r){const t=st(s);return e.concat(s,s.visualViewport||[],G(o)?o:[],t&&n?rt(t):[])}return e.concat(o,rt(o,[],n))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=et(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=V(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=m(n)!==r||m(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function at(t){return N(t)?t:t.contextElement}function ct(t){const e=at(t);if(!V(e))return y(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=lt(e);let s=(r?m(n.width):n.width)/i,l=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const ut=y(0);function ft(t){const e=H(t);return Z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=at(t);let s=y(1);e&&(i?N(i)&&(s=ct(i)):s=ct(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===H(t)}(r,n,i)?ft(r):y(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(r&&i){const t=H(r),e=N(i)?H(i):i;let n=t,o=st(n);for(;o&&e!==n;){const t=ct(o),e=o.getBoundingClientRect(),i=et(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,f*=t.y,a+=r,c+=s,n=H(o),o=st(n)}}return D({width:u,height:f,x:a,y:c})}function dt(t,e){const n=nt(t).scrollLeft;return e?e.left+n:ht(q(t)).left+n}function mt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-dt(t,n),y:n.top+e.scrollTop}}function pt(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=H(t),r=q(t),s=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){const t=!Z()||"fixed"===e;i?t||(c=-s.offsetLeft,u=-s.offsetTop):(l=s.width,a=s.height,t&&(c=s.offsetLeft,u=s.offsetTop))}if(dt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(l-=s)}return{width:l,height:a,x:c,y:u}}(t,n,e);else if("document"===e)i=function(t){const e=nt(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+dt(t);const s=-e.scrollTop;return"rtl"===et(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(q(t));else if(N(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ct(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=ft(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return D(i)}function yt(t,e,n){const i=V(e),o=q(e),r="fixed"===n,s=ht(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=y(0);if((i||!r)&&(("body"!==B(e)||G(o))&&(l=nt(e)),i)){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!i&&o&&(a.x=dt(o));const c=!o||i||r?y(0):mt(o,l);return{x:s.left+l.scrollLeft-a.x-c.x,y:s.top+l.scrollTop-a.y-c.y,width:s.width,height:s.height}}function wt(t){return"static"===et(t).position}function gt(t,e){if(!V(t)||"fixed"===et(t).position)return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=H(t);if(Q(t))return n;if(!V(t)){let e=it(t);for(;e&&!tt(e);){if(N(e)&&!wt(e))return e;e=it(e)}return n}let i=gt(t,e);for(;i&&J(i)&&wt(i);)i=gt(i,e);return i&&tt(i)&&wt(i)&&!K(i)?n:i||function(t){let e=it(t);for(;V(e)&&!tt(e);){if(K(e))return e;if(Q(e))return null;e=it(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=q(i),l=!!e&&Q(e.floating);if(i===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=y(1);const u=y(0),f=V(i);if((f||!r)&&(("body"!==B(i)||G(s))&&(a=nt(i)),f)){const t=ht(i);c=ct(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!s||f||r?y(0):mt(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}},getDocumentElement:q,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?Q(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter((t=>N(t)&&"body"!==B(t))),o=null;const r="fixed"===et(t).position;let s=r?it(t):t;for(;N(s)&&!tt(s);){const t=et(s),e=K(s),n=o?o.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?o=t:i=i.filter((t=>t!==s)),s=it(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=pt(e,r[0],o);let l=s.top,a=s.right,c=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=pt(e,r[t],o);l=d(n.top,l),a=h(n.right,a),c=h(n.bottom,c),u=d(n.left,u)}return{width:a-u,height:c-l,x:u,y:l}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ct,isElement:N,isRTL:function(t){return"rtl"===et(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function At(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=at(t),u=o||r?[...c?rt(c):[],...e?rt(e):[]]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n),r&&t.addEventListener("resize",n)}));const f=c&&l?function(t,e,n){let i,o=null;const r=q(t);function s(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function l(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),s();const c=t.getBoundingClientRect(),{left:u,top:f,width:m,height:y}=c;if(n||e(),!m||!y)return;const w={rootMargin:-p(f)+"px "+-p(r.clientWidth-(u+m))+"px "+-p(r.clientHeight-(f+y))+"px "+-p(u)+"px",threshold:d(0,h(1,a))||1};let g=!0;function x(e){const n=e[0].intersectionRatio;if(!bt(c,t.getBoundingClientRect()))return l();if(n!==a){if(!g)return l();n?l(!1,n):i=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,w)}o.observe(t)}const a=H(t),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),s()}}(c,n,r):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&w&&e&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),c&&!a&&w.observe(c),e&&w.observe(e));let g=a?ht(t):null;return a&&function e(){const i=ht(t);g&&!bt(g,i)&&n(),g=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=w)||t.disconnect(),w=null,a&&cancelAnimationFrame(m)}}const St=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=x(t,e),u={x:n,y:i},f=await r.detectOverflow(e,c),h=T(o),d=A(h);let m=u[d],p=u[h];const y=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(m=y(d,m)),l&&(p=y(h,p));const w=a.fn({...e,[d]:m,[h]:p});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[d]:s,[h]:l}}}}}},Tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=x(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=v(o),g=T(l),A=v(l)===l,z=await(null==a.isRTL?void 0:a.isRTL(c.floating)),D=h||(A||!p?[L(l)]:function(t){const e=L(t);return[R(t),e,R(e)]}(l)),P="none"!==m;!h&&P&&D.push(...function(t,e,n,i){const o=b(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?C:O:e?O:C;case"left":case"right":return e?F:E;default:return[]}}(v(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(R)))),r}(l,p,m,z));const j=[l,...D],M=await a.detectOverflow(e,y),$=[];let B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(M[w]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=b(t),o=k(t),r=S(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=L(s)),[s,L(s)]}(o,s,z);$.push(M[t[0]],M[t[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every((t=>t<=0))){var H,q;const t=((null==(H=r.flip)?void 0:H.index)||0)+1,e=j[t];if(e&&("alignment"!==f||g===T(e)||B.every((t=>T(t.placement)!==g||t.overflows[0]>0))))return{data:{index:t,overflows:B},reset:{placement:e}};let n=null==(q=B.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:q.placement;if(!n)switch(d){case"bestFit":{var I;const t=null==(I=B.filter((t=>{if(P){const e=T(t.placement);return e===g||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},kt=async({floatingElement:e,referenceElement:n,arrowElement:i,align:o="top"})=>{var r,s,l;if(!t()){const t=[(l=(null==i?void 0:i.offsetHeight)||10,void 0===l&&(l=0),{name:"offset",options:l,async fn(t){var e,n;const{x:i,y:o,placement:r,middlewareData:s}=t,a=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=v(n),l=b(n),a="y"===T(n),c=M.has(s)?-1:1,u=r&&a?-1:1,f=x(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(d="end"===l?-1*m:m),a?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,l);return r===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:r}}}}),Tt(),St()];i&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=x(t,e)||{};if(null==c)return{};const f=z(u),d={x:n,y:i},m=k(o),p=S(m),y=await s.getDimensions(c),w="y"===m,v=w?"top":"left",A=w?"bottom":"right",T=w?"clientHeight":"clientWidth",R=r.reference[p]+r.reference[m]-d[m]-r.floating[p],O=d[m]-r.reference[m],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let F=C?C[T]:0;F&&await(null==s.isElement?void 0:s.isElement(C))||(F=l.floating[T]||r.floating[p]);const E=R/2-O/2,L=F/2-y[p]/2-1,D=h(f[v],L),P=h(f[A],L),j=F-y[p]-P,M=F/2-y[p]/2+E,$=g(D,M,j),B=!a.arrow&&null!=b(o)&&M!==$&&r.reference[p]/2-(M<D?D:P)-y[p]/2<0,H=B?M<D?M-D:M-j:0;return{[m]:d[m]+H,data:{[m]:$,centerOffset:M-$-H,...B&&{alignmentOffset:H}},reset:B}}}))({element:i}));const{x:a,y:c,middlewareData:u,placement:f}=await((t,e,n)=>{const i=new Map,o=null!=n?n:{},r={...vt,...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:j},a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=P(c,i,a),h=i,d=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:y,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=x?x:f,m[y]={...m[y],...v},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:u,y:f}=P(c,h,a))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}})(t,e,{...o,platform:r})})(n,e,{placement:o,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${a}px`,top:`${c}px`,visibility:"visible"}),i&&((null===(r=u.arrow)||void 0===r?void 0:r.x)?Object.assign(i.style,{left:`${u.arrow.x}px`,top:"bottom"===f?-i.offsetHeight/2+"px":"",bottom:"top"===f?-i.offsetHeight/2+"px":""}):(null===(s=u.arrow)||void 0===s?void 0:s.y)&&Object.assign(i.style,{left:"right"===f?-i.offsetWidth/2+"px":"",right:"left"===f?-i.offsetWidth/2+"px":"",top:`${u.arrow.y}px`}))}},Rt=new Set;let Ot=null;class Ct{constructor(t,e){this.setState=t.setState,this.getState=t.getState,this.renderProps=l(e)}setRenderProp(t,e){this.renderProps[t]=e}getRenderProp(t){return this.renderProps[t]}}const Ft={required:[a],optional:[c,u,f]};class Et extends Ct{constructor(t){super(t,Ft),this.hasFocusIn=!1,this.hasMouseIn=!1,this.isHiddenForCurrentVisit=!1,this.setTooltipElementRef=t=>{this.tooltipElement=t,this.tooltipElement&&this.addListeners(this.tooltipElement)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(t.stopPropagation(),t.preventDefault(),this.hideTooltip())},this.handleMouseEnter=()=>{const t=this.isNewVisit();this.hasMouseIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleMouseLeave=()=>{this.hasMouseIn=!1,this.resetHideFlag(),this.showOrHideTooltip()},this.handleFocusIn=()=>{const t=this.isNewVisit();this.hasFocusIn=!0,t&&(this.isHiddenForCurrentVisit=!1),this.showOrHideTooltip()},this.handleFocusOut=()=>{this.hasFocusIn=!1,this.resetHideFlag(),this.showOrHideTooltip()}}componentWillLoad(t){this.watchLabel(t.label),this.watchAlign(t.align),this.watchBadgeText(t.badgeText),this.watchId(t.id)}watchLabel(t){a.apply(t||void 0,(t=>{this.setRenderProp("label",t)}))}watchAlign(t){c.apply(t,(t=>{this.setRenderProp("align",t)}))}watchBadgeText(t){u.apply(t,(t=>{this.setRenderProp("badgeText",t)}))}watchId(t){f.apply(t,(t=>{this.setRenderProp("id",t)}))}initContext(t){this.previousSibling=t}syncListeners(t,e,n=!1){t&&this.removeListeners(t),e&&(n&&(this.previousSibling=e),this.removeListeners(e),this.addListeners(e))}handleEventListeners(t){this.syncListeners(this.previousSibling,t.previousElementSibling,!0)}hideTooltip(){this.isHiddenForCurrentVisit=!0,this.tooltipElement&&(function(t){if(Rt.delete(t)&&Ot===t){Ot=null;for(const t of Rt)Ot=t;Ot&&Ot.style.setProperty("z-index","1000")}}(this.tooltipElement),n(),this.tooltipElement.classList.remove("show"),this.tooltipElement.classList.add("hide"),this.tooltipElement.addEventListener("animationend",(()=>{var t;(null===(t=this.tooltipElement)||void 0===t?void 0:t.classList.contains("hide"))&&this.tooltipElement.style.removeProperty("display")}),{once:!0}),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),e().removeEventListener("keydown",this.hideTooltipByEscape)}destroy(){clearTimeout(this.overFocusTimeout),this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0),e().removeEventListener("keydown",this.hideTooltipByEscape)}isNewVisit(){return!this.hasMouseIn&&!this.hasFocusIn}resetHideFlag(){this.isNewVisit()&&(this.isHiddenForCurrentVisit=!1)}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await kt({align:this.getRenderProp("align"),arrowElement:this.tooltipElement.querySelector(".kol-tooltip__arrow"),floatingElement:this.tooltipElement,referenceElement:this.previousSibling})}showTooltip(){var t;!this.isHiddenForCurrentVisit&&this.previousSibling&&this.tooltipElement&&(Ot!==(t=this.tooltipElement)&&(Ot&&Ot.style.setProperty("z-index","999"),Rt.delete(t),Rt.add(t),t.style.setProperty("z-index","1000"),Ot=t),i(),this.tooltipElement.classList.remove("hide"),this.tooltipElement.classList.add("show"),this.tooltipElement.style.setProperty("display","block"),e().addEventListener("keydown",this.hideTooltipByEscape),this.cleanupAutoPositioning=At(this.previousSibling,this.tooltipElement,(()=>{this.alignTooltip()})))}showOrHideTooltip(){clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{this.hasMouseIn||this.hasFocusIn?this.showTooltip():this.hideTooltip()}),300)}addListeners(t){t.addEventListener("mouseover",this.handleMouseEnter),t.addEventListener("mouseout",this.handleMouseLeave),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut)}removeListeners(t){t.removeEventListener("mouseover",this.handleMouseEnter),t.removeEventListener("mouseout",this.handleMouseLeave),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut)}}export{Ct as B,Et as T,c as a,kt as b,At as c,f as i}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{a as t}from"./dev.utils-Cl2Ehgvu.js";import"./common-D03JQJgy.js";import{c as e,n as r,p as i,b as a,i as h}from"./base-web-component-B0QkUucC.js";import{B as n}from"./behavior-DJY-AtON.js";import{t as o}from"./i18n-DRQl0u--.js";const s=e("hasCounter",!1,r),c=e("maxLength",void 0,i,(t=>t>=0)),m=["hard","soft"],u=e("maxLengthBehavior","hard",(function(t){const e=a(t);if(h(e,m))return e;throw new Error(`Invalid max length behavior: ${e}`)})),g={optional:[s,c,u]},l=(t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max-aria",{placeholders:{current:String(r),max:String(e)}})},x=(t,e,r)=>"hard"===t&&"number"==typeof e&&r>=e?o("kol-character-counter-max-aria"):"";class d extends n{constructor(t){super(t,g),this.reannounceToggle=!1,this.setVisualRef=t=>{this.visualSpan=t},this.setAriaRef=t=>{this.ariaSpan=t},this.handleKeyDown=(t,e)=>{const{maxLength:r,maxLengthBehavior:i}=this.getLimit();"hard"!==i||"number"!=typeof r||e<r||(t=>1===t.key.length&&!t.ctrlKey&&!t.metaKey&&!t.altKey)(t)&&this.retriggerAria(e)}}componentWillLoad(t){this.watchHasCounter(t.hasCounter),this.watchMaxLength(t.maxLength),this.watchMaxLengthBehavior(t.maxLengthBehavior)}watchHasCounter(t){s.apply(t,(t=>this.setRenderProp("hasCounter",t)))}watchMaxLength(t){c.apply(t,(t=>this.setRenderProp("maxLength",t)))}watchMaxLengthBehavior(t){u.apply(t,(t=>this.setRenderProp("maxLengthBehavior",t)))}hasCounter(){return!0===this.getRenderProp("hasCounter")}hasSoftLimit(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"number"==typeof t&&"soft"===e}getMaxLengthAttribute(){const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return"hard"===e?t:void 0}getCounterProps(){if(!this.hasCounter())return;const{maxLength:t,maxLengthBehavior:e}=this.getLimit();return{maxLength:t,maxLengthBehavior:e,visualRef:this.setVisualRef,ariaRef:this.setAriaRef}}getCharacterLimitHintId(e){return"number"!=typeof this.getRenderProp("maxLength")||this.hasCounter()?void 0:t(e,"character-limit-hint")}update(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e)),1e3)}updateImmediate(t){const e=this.getLimit();this.updateVisual(t,e),clearTimeout(this.debounceTimer),this.updateAria(t,e)}retriggerAria(t){if(!this.ariaSpan)return;const e=this.getLimit();clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.updateAria(t,e,!0)),1e3)}destroy(){clearTimeout(this.debounceTimer)}getLimit(){return{maxLength:this.getRenderProp("maxLength"),maxLengthBehavior:this.getRenderProp("maxLengthBehavior")}}updateVisual(t,{maxLength:e,maxLengthBehavior:r}){this.visualSpan&&(this.visualSpan.innerText=((t,e,r)=>{if("number"!=typeof e)return o("kol-character-counter-current",{placeholders:{current:String(r)}});if("soft"===t){const t=e-r;return t<0?o("kol-character-limit-exceeded",{placeholders:{over:String(Math.abs(t))}}):o("kol-character-limit-remaining",{placeholders:{remaining:String(t)}})}return o("kol-character-counter-current-of-max",{placeholders:{current:String(r),max:String(e)}})})(r,e,t),this.visualSpan.classList.toggle("kol-form-field__counter--exceeded","soft"===r&&"number"==typeof e&&t>e))}updateAria(t,{maxLength:e,maxLengthBehavior:r},i=!1){if(!this.ariaSpan)return;let a=[l(r,e,t),x(r,e,t)].filter(Boolean).join(" ");i&&(this.reannounceToggle=!this.reannounceToggle,this.reannounceToggle&&(a+=" ")),this.ariaSpan.innerText=a}}export{d as C}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{g as o,h as n,L as s}from"./common-D03JQJgy.js";import{s as i}from"./component-names-CrfBV37S.js";import{i as e}from"./i18n-Dl6Jjofb.js";let a,l=!1;const d=async(d,r,t)=>{var u,v;const c="undefined"!=typeof process&&process.env?"production":void 0;o((null==t?void 0:t.environment)||c||"production"),e(null!==(v=null===(u=null==t?void 0:t.translation)||void 0===u?void 0:u.name)&&void 0!==v?v:"de",null==t?void 0:t.translations),(null==t?void 0:t.transformTagName)&&i(null==t?void 0:t.transformTagName);const m=await n(d,r,t);return l=!0,a=t,s.info("Development mode active - Enhanced debugging features available"),m},r=d,t=()=>l,u=()=>a;export{d as b,u as g,t as i,r}
|