@public-ui/components 4.6.0-rc.2 → 4.6.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +3 -3
- package/dist/cjs/{Heading-CmnijhLd.js → Heading-DqZXie2T.js} +1 -1
- package/dist/cjs/{api-Bg7hdIrJ.js → api-Cc1hT-oO.js} +19 -18
- package/dist/cjs/{app-globals-BwYPSMbG.js → app-globals-DtXiFJRj.js} +2 -2
- package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-By2dgbCn.js} +0 -13
- package/dist/cjs/{base-JFyPasp9.js → base-B-wbGF-X.js} +20 -29
- package/dist/cjs/{base-ob1X79UM.js → base-BKsPSdXS.js} +5 -5
- package/dist/cjs/{base-BVhV5HmV.js → base-BjiXfuju.js} +4 -4
- package/dist/cjs/{base-CQB0r-ZQ.js → base-CoMrpiHg.js} +4 -4
- package/dist/cjs/{base-web-component-dI9FmFIm.js → base-web-component-BXtl3Nmq.js} +5 -5
- package/dist/cjs/{base-web-component-DBcJrpRb.js → base-web-component-DApRK7Vs.js} +6 -6
- package/dist/cjs/{behavior-CUmF8rJf.js → behavior-DIv2ciyM.js} +1 -1
- package/dist/cjs/{behavior-DujaVCwV.js → behavior-DtHCmCCv.js} +2 -2
- package/dist/cjs/{behavior-B5wr2A8R.js → behavior-GG5TOrTV.js} +3 -10
- package/dist/cjs/{bem-registry-B6QoNC9E.js → bem-registry-h_moyLBn.js} +39 -0
- package/dist/cjs/{block-bem-ByCgFI2B.js → block-bem-BVBM34Tu.js} +1 -1
- package/dist/cjs/{component-DFhuXUqv.js → component-BE_fK-Xu.js} +7 -7
- package/dist/cjs/{component-DprHBKdZ.js → component-BOI4FdZE.js} +3 -3
- package/dist/cjs/{component-Doln6Ltn.js → component-C9B-yJ93.js} +3 -3
- package/dist/cjs/{component-BexD3069.js → component-CNNGo5gU.js} +6 -6
- package/dist/cjs/{component-1J4G5HmZ.js → component-CVLJJvvd.js} +6 -6
- package/dist/cjs/{component-BilLJFfC.js → component-Cnc2NyzE.js} +2 -2
- package/dist/cjs/{component-Cqp00Tb9.js → component-CsnTf_45.js} +6 -6
- package/dist/cjs/{component-Bza8hlo-.js → component-CxwSVBBv.js} +7 -7
- package/dist/cjs/{component-DGVc4bOy.js → component-D0uxhuF3.js} +4 -4
- package/dist/cjs/{component-DkV9oPCL.js → component-DNQW0lG8.js} +2 -2
- package/dist/cjs/{component-CjXcCX2V.js → component-DfGgpwuP.js} +2 -2
- package/dist/cjs/{component-Cbbx7Z6c.js → component-DlyhBQIa.js} +3 -3
- package/dist/cjs/{dev.utils-Bx4sgPsr.js → dev.utils-DTQy7QrG.js} +1 -1
- package/dist/cjs/{devtools-BXBKJice.js → devtools-BAChPN0l.js} +2 -2
- package/dist/cjs/{field-control-B95uzQnW.js → field-control-Bxj6Xuu8.js} +7 -7
- package/dist/cjs/{group-DGS7K6Ja.js → group-BUdQbdkp.js} +5 -5
- package/dist/cjs/{index-Ccvyz7Rq.js → index-BaB_2Z5W.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{input-BKXEykG_.js → input-CtqTozTO.js} +4 -4
- package/dist/cjs/{input-container-CWb_kRbs.js → input-container-BcwbGU2R.js} +6 -6
- package/dist/cjs/{item-wr5KfPYM.js → item-BLrLbhAD.js} +6 -6
- package/dist/cjs/{item-DgNTEUz3.js → item-BXt0-A5j.js} +8 -8
- package/dist/cjs/{item-C4Boh5Cz.js → item-BYKMN41a.js} +3 -3
- package/dist/cjs/{item-vDMQvV0t.js → item-DJ-XUS77.js} +3 -3
- package/dist/cjs/kol-abbr.cjs.entry.js +4 -4
- package/dist/cjs/kol-accordion.cjs.entry.js +9 -9
- package/dist/cjs/kol-alert.cjs.entry.js +14 -14
- package/dist/cjs/kol-avatar.cjs.entry.js +2 -2
- package/dist/cjs/kol-badge.cjs.entry.js +14 -14
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +12 -12
- package/dist/cjs/kol-button-link.cjs.entry.js +14 -14
- package/dist/cjs/kol-button.cjs.entry.js +14 -14
- package/dist/cjs/kol-card.cjs.entry.js +15 -15
- package/dist/cjs/kol-combobox.cjs.entry.js +24 -24
- package/dist/cjs/kol-details.cjs.entry.js +9 -9
- package/dist/cjs/kol-dialog.cjs.entry.js +17 -17
- package/dist/cjs/kol-drawer.cjs.entry.js +16 -16
- package/dist/cjs/kol-form.cjs.entry.js +14 -14
- package/dist/cjs/kol-heading.cjs.entry.js +4 -4
- package/dist/cjs/kol-icon.cjs.entry.js +4 -4
- package/dist/cjs/kol-image.cjs.entry.js +2 -2
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +42 -41
- package/dist/cjs/kol-input-color.cjs.entry.js +33 -32
- package/dist/cjs/kol-input-date.cjs.entry.js +31 -30
- package/dist/cjs/kol-input-email.cjs.entry.js +36 -35
- package/dist/cjs/kol-input-file.cjs.entry.js +28 -27
- package/dist/cjs/kol-input-number.cjs.entry.js +32 -31
- package/dist/cjs/kol-input-password.cjs.entry.js +30 -29
- package/dist/cjs/kol-input-radio.cjs.entry.js +27 -27
- package/dist/cjs/kol-input-range.cjs.entry.js +27 -27
- package/dist/cjs/kol-input-text.cjs.entry.js +29 -28
- package/dist/cjs/kol-kolibri.cjs.entry.js +4 -4
- package/dist/cjs/kol-link-button.cjs.entry.js +13 -13
- package/dist/cjs/kol-link.cjs.entry.js +13 -13
- package/dist/cjs/kol-meter.cjs.entry.js +4 -4
- package/dist/cjs/kol-modal.cjs.entry.js +17 -17
- package/dist/cjs/kol-nav.cjs.entry.js +17 -17
- package/dist/cjs/kol-pagination.cjs.entry.js +24 -24
- package/dist/cjs/kol-popover-button.cjs.entry.js +15 -15
- package/dist/cjs/kol-progress.cjs.entry.js +4 -4
- package/dist/cjs/kol-quote.cjs.entry.js +2 -2
- package/dist/cjs/kol-select.cjs.entry.js +27 -27
- package/dist/cjs/kol-single-select.cjs.entry.js +24 -24
- package/dist/cjs/kol-skip-nav.cjs.entry.js +12 -12
- package/dist/cjs/kol-spin.cjs.entry.js +5 -5
- package/dist/cjs/kol-split-button.cjs.entry.js +17 -17
- package/dist/cjs/kol-table-stateful.cjs.entry.js +33 -34
- package/dist/cjs/kol-table-stateless.cjs.entry.js +26 -27
- package/dist/cjs/kol-tabs.cjs.entry.js +13 -13
- package/dist/cjs/kol-textarea.cjs.entry.js +25 -25
- package/dist/cjs/kol-toast-container.cjs.entry.js +13 -13
- package/dist/cjs/kol-toolbar.cjs.entry.js +15 -15
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +6 -6
- package/dist/cjs/kol-tree-item.cjs.entry.js +16 -13
- package/dist/cjs/kol-tree.cjs.entry.js +17 -6
- package/dist/cjs/kol-version.cjs.entry.js +11 -11
- package/dist/cjs/kolibri.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{resolve-props-pZBj0tIz.js → resolve-props-B7klWjLx.js} +2 -2
- package/dist/cjs/{resolve-props-B_ytLWBO.js → resolve-props-c-uwDulF.js} +2 -2
- package/dist/cjs/{scroll-lock-DguXX-Em.js → scroll-lock-daUQqmx_.js} +2 -2
- package/dist/cjs/{suggestions-C6Q3kj5J.js → suggestions-D3snLGL_.js} +2 -2
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-BaOOa9I5.js → toggle-handler-B0xib7fH.js} +4 -4
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/style.css +5 -2
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/style.css +5 -2
- package/dist/collection/components/drawer/style.css +5 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/input-checkbox/component.js +13 -11
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +6 -4
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +5 -3
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +4 -1
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +6 -3
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +6 -4
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +5 -2
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +4 -2
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/modal/style.css +5 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +3 -5
- package/dist/collection/components/table-stateful/style.css +5 -2
- package/dist/collection/components/table-stateless/component.js +3 -5
- package/dist/collection/components/table-stateless/style.css +5 -2
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tree/component.js +15 -4
- package/dist/collection/components/tree-item/component.js +5 -2
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/internal/functional-components/form-association/api.js +2 -2
- package/dist/collection/internal/functional-components/form-association/behavior.js +1 -5
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
- package/dist/collection/schema/bem-registry.js +39 -0
- package/dist/collection/schema/props/aria-details.js +1 -22
- package/dist/collection/schema/props/aria-labelledby.js +3 -12
- package/dist/collection/utils/aria-labelledby.js +0 -12
- package/dist/components/aria-labelledby.js +1 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/esm/{Heading-C_CwXDMp.js → Heading-GZb1f2pZ.js} +1 -1
- package/dist/esm/{api-DGiFM9p0.js → api-CBPlj155.js} +18 -17
- package/dist/esm/{app-globals-sZHZyXjD.js → app-globals-DRl9A82c.js} +2 -2
- package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DqJY_4G-.js} +1 -13
- package/dist/esm/{base-B4sGK9cX.js → base-BByRnpRm.js} +5 -5
- package/dist/esm/{base-DTKJ1Z06.js → base-C7BBsrYZ.js} +21 -30
- package/dist/esm/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +4 -4
- package/dist/esm/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +4 -4
- package/dist/esm/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +5 -5
- package/dist/esm/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +6 -6
- package/dist/esm/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
- package/dist/esm/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +2 -2
- package/dist/esm/{behavior-CkPQGfgo.js → behavior-ewHvUWVk.js} +4 -10
- package/dist/esm/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +39 -0
- package/dist/esm/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
- package/dist/esm/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +4 -4
- package/dist/esm/{component-B16Fbp3W.js → component-B3OziaRC.js} +6 -6
- package/dist/esm/{component-Bc2pdOk1.js → component-By8ggItU.js} +6 -6
- package/dist/esm/{component-DAQzDMY8.js → component-CF8uFG0A.js} +7 -7
- package/dist/esm/{component-B05zRrM0.js → component-Ccv2lqNq.js} +2 -2
- package/dist/esm/{component-BI8jDgBz.js → component-Cmi6iGfA.js} +7 -7
- package/dist/esm/{component-C79oAu7a.js → component-D4-NVnsT.js} +2 -2
- package/dist/esm/{component-W1KZI4h4.js → component-D6_K50vT.js} +3 -3
- package/dist/esm/{component-CldKbBUh.js → component-D6lo0LzE.js} +3 -3
- package/dist/esm/{component-oUQcgxDj.js → component-D9NreIlK.js} +3 -3
- package/dist/esm/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +6 -6
- package/dist/esm/{component-Clz6b6ho.js → component-EDDTMC-J.js} +2 -2
- package/dist/esm/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
- package/dist/esm/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +2 -2
- package/dist/esm/{field-control-DsQHa0v9.js → field-control-0TRmF7Ea.js} +7 -7
- package/dist/esm/{group-DUVsgWxS.js → group-DapkT_Yh.js} +5 -5
- package/dist/esm/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{input-C0Li7DsE.js → input-CDUCo1S5.js} +4 -4
- package/dist/esm/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +6 -6
- package/dist/esm/{item-8RKFpmbd.js → item-B0oQTeju.js} +3 -3
- package/dist/esm/{item-DHZGDrAn.js → item-Boe3t0Dm.js} +6 -6
- package/dist/esm/{item-CnJMuEyl.js → item-BvnZc8uV.js} +3 -3
- package/dist/esm/{item-CxVe5INa.js → item-UgJ2uikD.js} +8 -8
- package/dist/esm/kol-abbr.entry.js +4 -4
- package/dist/esm/kol-accordion.entry.js +9 -9
- package/dist/esm/kol-alert.entry.js +14 -14
- package/dist/esm/kol-avatar.entry.js +2 -2
- package/dist/esm/kol-badge.entry.js +14 -14
- package/dist/esm/kol-breadcrumb.entry.js +12 -12
- package/dist/esm/kol-button-link.entry.js +14 -14
- package/dist/esm/kol-button.entry.js +14 -14
- package/dist/esm/kol-card.entry.js +15 -15
- package/dist/esm/kol-combobox.entry.js +24 -24
- package/dist/esm/kol-details.entry.js +9 -9
- package/dist/esm/kol-dialog.entry.js +17 -17
- package/dist/esm/kol-drawer.entry.js +16 -16
- package/dist/esm/kol-form.entry.js +14 -14
- package/dist/esm/kol-heading.entry.js +4 -4
- package/dist/esm/kol-icon.entry.js +4 -4
- package/dist/esm/kol-image.entry.js +2 -2
- package/dist/esm/kol-input-checkbox.entry.js +42 -41
- package/dist/esm/kol-input-color.entry.js +33 -32
- package/dist/esm/kol-input-date.entry.js +31 -30
- package/dist/esm/kol-input-email.entry.js +36 -35
- package/dist/esm/kol-input-file.entry.js +28 -27
- package/dist/esm/kol-input-number.entry.js +32 -31
- package/dist/esm/kol-input-password.entry.js +30 -29
- package/dist/esm/kol-input-radio.entry.js +27 -27
- package/dist/esm/kol-input-range.entry.js +27 -27
- package/dist/esm/kol-input-text.entry.js +29 -28
- package/dist/esm/kol-kolibri.entry.js +4 -4
- package/dist/esm/kol-link-button.entry.js +13 -13
- package/dist/esm/kol-link.entry.js +13 -13
- package/dist/esm/kol-meter.entry.js +4 -4
- package/dist/esm/kol-modal.entry.js +17 -17
- package/dist/esm/kol-nav.entry.js +17 -17
- package/dist/esm/kol-pagination.entry.js +24 -24
- package/dist/esm/kol-popover-button.entry.js +15 -15
- package/dist/esm/kol-progress.entry.js +4 -4
- package/dist/esm/kol-quote.entry.js +2 -2
- package/dist/esm/kol-select.entry.js +27 -27
- package/dist/esm/kol-single-select.entry.js +24 -24
- package/dist/esm/kol-skip-nav.entry.js +12 -12
- package/dist/esm/kol-spin.entry.js +5 -5
- package/dist/esm/kol-split-button.entry.js +17 -17
- package/dist/esm/kol-table-stateful.entry.js +33 -34
- package/dist/esm/kol-table-stateless.entry.js +26 -27
- package/dist/esm/kol-tabs.entry.js +13 -13
- package/dist/esm/kol-textarea.entry.js +25 -25
- package/dist/esm/kol-toast-container.entry.js +13 -13
- package/dist/esm/kol-toolbar.entry.js +15 -15
- package/dist/esm/kol-tooltip-wc.entry.js +6 -6
- package/dist/esm/kol-tree-item.entry.js +16 -13
- package/dist/esm/kol-tree.entry.js +17 -6
- package/dist/esm/kol-version.entry.js +11 -11
- package/dist/esm/kolibri.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{resolve-props-Bj6IaybL.js → resolve-props-DTXKtzir.js} +2 -2
- package/dist/esm/{resolve-props-02J6OCRf.js → resolve-props-kM9N-fzf.js} +2 -2
- package/dist/esm/{scroll-lock-B6hVv8A8.js → scroll-lock-Bv-U2FHM.js} +2 -2
- package/dist/esm/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +2 -2
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-3qaN2kmt.js → toggle-handler-mPlmvrq7.js} +4 -4
- package/dist/kolibri/Heading-GZb1f2pZ.js +4 -0
- package/dist/kolibri/api-CBPlj155.js +4 -0
- package/dist/kolibri/app-globals-DRl9A82c.js +4 -0
- package/dist/kolibri/aria-labelledby-DqJY_4G-.js +4 -0
- package/dist/kolibri/base-BByRnpRm.js +4 -0
- package/dist/kolibri/base-C7BBsrYZ.js +4 -0
- package/dist/kolibri/{base-P1TaQ7Ba.js → base-DO0KvOv9.js} +1 -1
- package/dist/kolibri/{base-CWrvN3Gt.js → base-Dtxcvto_.js} +1 -1
- package/dist/kolibri/{base-web-component-CKgIOZqi.js → base-web-component-BxXLva5d.js} +1 -1
- package/dist/kolibri/{base-web-component-Bq_B9edx.js → base-web-component-CfPyCJDJ.js} +1 -1
- package/dist/kolibri/{behavior-Bb7JYoUn.js → behavior-CKU2tmCj.js} +1 -1
- package/dist/kolibri/{behavior-CFG1f4KQ.js → behavior-CsNDRS2z.js} +1 -1
- package/dist/kolibri/behavior-ewHvUWVk.js +4 -0
- package/dist/kolibri/{bem-registry-DQUGxdIS.js → bem-registry-D1KgKnyz.js} +1 -1
- package/dist/kolibri/{block-bem-BGIVcYJu.js → block-bem-D3ixJyOY.js} +1 -1
- package/dist/kolibri/{component-5Uu-ahLC.js → component-6l69Jvwl.js} +1 -1
- package/dist/kolibri/component-B3OziaRC.js +4 -0
- package/dist/kolibri/{component-Bc2pdOk1.js → component-By8ggItU.js} +1 -1
- package/dist/kolibri/component-CF8uFG0A.js +4 -0
- package/dist/kolibri/component-Ccv2lqNq.js +4 -0
- package/dist/kolibri/component-Cmi6iGfA.js +4 -0
- package/dist/kolibri/component-D4-NVnsT.js +4 -0
- package/dist/kolibri/{component-W1KZI4h4.js → component-D6_K50vT.js} +1 -1
- package/dist/kolibri/component-D6lo0LzE.js +4 -0
- package/dist/kolibri/{component-oUQcgxDj.js → component-D9NreIlK.js} +1 -1
- package/dist/kolibri/{component-Ct11K0Gv.js → component-DAk3R8NN.js} +1 -1
- package/dist/kolibri/component-EDDTMC-J.js +4 -0
- package/dist/kolibri/{dev.utils-DDWOHUcg.js → dev.utils-BwYCy1rP.js} +1 -1
- package/dist/kolibri/{devtools-B0kEE_za.js → devtools-CGP3Nzsw.js} +1 -1
- package/dist/kolibri/field-control-0TRmF7Ea.js +4 -0
- package/dist/kolibri/{group-DUVsgWxS.js → group-DapkT_Yh.js} +1 -1
- package/dist/kolibri/{index-Dulj0jro.js → index-DEcM8BEc.js} +1 -1
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-CDUCo1S5.js +4 -0
- package/dist/kolibri/{input-container-DmtMTcjB.js → input-container-BipAkWn4.js} +1 -1
- package/dist/kolibri/item-B0oQTeju.js +4 -0
- package/dist/kolibri/item-Boe3t0Dm.js +4 -0
- package/dist/kolibri/item-BvnZc8uV.js +4 -0
- package/dist/kolibri/item-UgJ2uikD.js +4 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/resolve-props-DTXKtzir.js +4 -0
- package/dist/kolibri/resolve-props-kM9N-fzf.js +4 -0
- package/dist/kolibri/scroll-lock-Bv-U2FHM.js +4 -0
- package/dist/kolibri/{suggestions-DaB3FVaz.js → suggestions-D0u80DtA.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-mPlmvrq7.js +4 -0
- package/dist/types/components/table-stateful/component.d.ts +0 -1
- package/dist/types/components/table-stateless/component.d.ts +0 -1
- package/dist/types/components/tree/component.d.ts +1 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/behavior.d.ts +0 -1
- package/dist/types/schema/bem-registry.d.ts +49 -0
- package/dist/types/schema/props/aria-details.d.ts +0 -2
- package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
- package/dist/types/utils/aria-labelledby.d.ts +0 -6
- package/doc/table-stateful.md +16 -16
- package/doc/table-stateless.md +14 -14
- package/package.json +1 -1
- package/vscode-custom-data.json +2 -2
- package/dist/kolibri/Heading-C_CwXDMp.js +0 -4
- package/dist/kolibri/api-DGiFM9p0.js +0 -4
- package/dist/kolibri/app-globals-sZHZyXjD.js +0 -4
- package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
- package/dist/kolibri/base-B4sGK9cX.js +0 -4
- package/dist/kolibri/base-DTKJ1Z06.js +0 -4
- package/dist/kolibri/behavior-CkPQGfgo.js +0 -4
- package/dist/kolibri/component-B05zRrM0.js +0 -4
- package/dist/kolibri/component-B16Fbp3W.js +0 -4
- package/dist/kolibri/component-BI8jDgBz.js +0 -4
- package/dist/kolibri/component-C79oAu7a.js +0 -4
- package/dist/kolibri/component-CldKbBUh.js +0 -4
- package/dist/kolibri/component-Clz6b6ho.js +0 -4
- package/dist/kolibri/component-DAQzDMY8.js +0 -4
- package/dist/kolibri/field-control-DsQHa0v9.js +0 -4
- package/dist/kolibri/input-C0Li7DsE.js +0 -4
- package/dist/kolibri/item-8RKFpmbd.js +0 -4
- package/dist/kolibri/item-CnJMuEyl.js +0 -4
- package/dist/kolibri/item-CxVe5INa.js +0 -4
- package/dist/kolibri/item-DHZGDrAn.js +0 -4
- package/dist/kolibri/resolve-props-02J6OCRf.js +0 -4
- package/dist/kolibri/resolve-props-Bj6IaybL.js +0 -4
- package/dist/kolibri/scroll-lock-B6hVv8A8.js +0 -4
- package/dist/kolibri/toggle-handler-3qaN2kmt.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,i,o={exports:{}},r=(t||(t=1,n=o.exports,i=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},r=null;function l(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(){for(var n=this.getLevel(),o=0;o<i.length;o++){var r=i[o];this[r]=o<n?e:this.methodFactory(r,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(a.call(this),this[e].apply(this,arguments))}}function d(i,o,r){return function(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&n?s:void 0!==console[i]?l(console,i):void 0!==console.log?l(console,"log"):e)}(i)||u.apply(this,arguments)}function c(e,n){var l,s,u,c=this,f="loglevel";function m(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,i=encodeURIComponent(f),o=n.indexOf(i+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o+i.length+1))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=n||d,c.getLevel=function(){return null!=u?u:null!=s?s:l},c.setLevel=function(e,n){return u=p(e),!1!==n&&function(e){var n=(i[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+n+";"}catch(e){}}}(u),a.call(c)},c.setDefaultLevel=function(e){s=p(e),m()||c.setLevel(e,!1)},c.resetLevel=function(){u=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),a.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(r!==c&&(l=p(r.getLevel())),a.call(c),r===c)for(var e in o)o[e].rebuild()},l=p(r?r.getLevel():"WARN");var g=m();null!=g&&(u=p(g)),a.call(c)}(r=new c).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new c(e,r.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return r.noConflict=function(){return typeof window!==t&&window.log===r&&(window.log=f),r},r.getLoggers=function(){return o},r.default=r,r},o.exports?o.exports=i():n.log=i()),o.exports),l=e(r);const s={A11yUi:{CSS_STYLE_CACHE:new Map,FEATURES:{},IS_TEST_ENVIRONMENT:(()=>{const e=typeof process<"u"&&process.env?process.env:{},t="test"===e.NODE_ENV,n="VITEST"in e,i="JEST_WORKER_ID"in e,o="PLAYWRIGHT_TEST_BASE_URL"in e,r="true"===e.CI,l="true"===e.TEST||"true"===e.IS_TEST,s=typeof navigator<"u"&&!0===navigator.webdriver,a=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||n||i||o||r||l||s||a})(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,THEME_FEATURES:{},showAverageTimes:()=>{const e={};for(const[t,n]of s.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[n.totalTime/n.count,n.count];const t=Object.entries(e).sort(((e,t)=>t[1][0]-e[1][0]));return console.table(Object.fromEntries(t.map((([e,[t,n]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:n}])))),e}}};let a=!0,u=!1;const d=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>{if(!(e=>"string"==typeof e&&d.test(e))(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},f=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),m=(e,t,n,i)=>{(i=i??{}).append=i.append??!1,c(e),a&&!u&&(u=!0,l.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let o=s.A11yUi.THEMES.get(e);if(o||(o=new Map,s.A11yUi.THEMES.set(e,o)),i.append&&o.has(t)){const e=o.get(t);o.set(t,f(`${e}${n}`))}else o.set(t,f(n))},p=(e,t,n,i)=>(c(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const r=t[o],l=o.toLowerCase(),s="function"!=typeof i?.transformTagName||["GLOBAL","PROPERTIES"].includes(o)?o:i.transformTagName(l);"string"==typeof r&&r.length>0&&m(e,s.toUpperCase(),r,n)})),e),g=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;typeof ShadowRoot<"u"&&t instanceof ShadowRoot;)t=t.host;return g(t)}}return null},b=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},h=()=>"object"==typeof s.A11yUi.Theme&&null!==s.A11yUi.Theme&&"boolean"==typeof s.A11yUi.Theme.cache&&"object"==typeof s.A11yUi.Theme.encroachCss&&null!==s.A11yUi.Theme.encroachCss&&"string"==typeof s.A11yUi.Theme.encroachCss.mode&&"string"==typeof s.A11yUi.Theme.name,w=e=>{if(h())return s.A11yUi.Theme;{const t={cache:!0,encroachCss:b(),loglevel:"silent",mode:"csr",name:null},n=g(e);return n instanceof HTMLElement&&(t.cache="false"!==n.dataset.themeCache,t.encroachCss=b(n.dataset),t.loglevel="debug"===n.dataset.themeLoglevel?n.dataset.themeLoglevel:"silent",t.mode="ssr"===n.dataset.themeMode?n.dataset.themeMode:"csr",t.name=n.dataset.theme||null),t}},y=()=>h()?s.A11yUi.Theme.name:null,v=(...e)=>{const t={};for(const n of e)n&&Object.assign(t,n);return t},k=(e,t)=>{const n=s.A11yUi.FEATURES[e];if(void 0!==n)return n;const i=(e=>w(e).name)(t??null)??y();if(null!==i){const t=s.A11yUi.THEME_FEATURES[i];if(t&&void 0!==t[e])return t[e]}};let S=!1;const E=(e,t,n={})=>{S||(S=!0,a=!1,typeof window<"u"&&(window.A11yUi=s.A11yUi)),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?((e,t)=>{!1===h()&&("object"!=typeof s.A11yUi.Theme||null===s.A11yUi.Theme||"default"!==s.A11yUi.Theme.name)&&"object"==typeof t&&null!==t&&(t=((e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}))(e,t),"fixed"===t.detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(s.A11yUi.Theme=t,l.info(`[Theming] Theme "${e}" was set as default theme.`))):u||(u=!0,l.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))})(e(((e,t,i,o)=>(o&&(s.A11yUi.THEME_FEATURES[e]=v(s.A11yUi.THEME_FEATURES[e],o)),p(e,t,i,n)))),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,mode:n.theme?.mode,name:n.theme?.name}):l.error("[Theming] An attempt was made to load an incompatible theme.")})),a=!0,n.features&&(s.A11yUi.FEATURES=v(s.A11yUi.FEATURES,n.features)),"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const i=[];return t.forEach((e=>{const t=e();t instanceof Promise&&i.push(t)})),Promise.all(i)},T=new Set,M=new Map,A=/--[^;]+/g,x=/:/,N=typeof MutationObserver<"u";let O=25,L=()=>{O=Math.min(25+20*Math.log2(s.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const j=(e,t)=>{const n=s.A11yUi.THEMES.get(e);if(n instanceof Map){const e=n.get(t);if(void 0!==e)return e}return""},C=(e,t,n,i)=>{const o="debug"===s.A11yUi.Theme?.loglevel,r=o?performance.now():0;if((e=>{const t=e.firstChild;if(t instanceof HTMLStyleElement&&void 0===t.dataset.themingFallback)for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}})(t),((e,t)=>{try{if("ssr"===s.A11yUi.Theme?.mode)throw new Error("SSR");const n=t.filter((e=>"string"==typeof e&&e.length>0)).map((e=>{let t=M.get(e);return t||(t=new CSSStyleSheet,t.replaceSync(e),M.set(e,t)),t}));e.adoptedStyleSheets=n}catch{for(let n=t.length-1;n>=0;n--){const i=t[n];if("string"!=typeof i||0===i.length)continue;const o=t.length-1-n,r=document.createElement("style");switch(r.dataset.themingFallback="",o){case 4:r.dataset.themingBaseA11y="";break;case 3:r.dataset.themingBaseGlobal="";break;case 2:r.dataset.themingBaseComponent="";break;case 1:r.dataset.themingCustomGlobal="";break;case 0:r.dataset.themingCustomComponent="";break;default:r.dataset.themingUnknown=""}r.innerHTML=i,e.insertBefore(r,e.firstChild)}}})(t,n),U(e),requestAnimationFrame(i),o){const t=performance.now()-r,n=s.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);n?(n.count+=1,n.totalTime+=t):s.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:t})}},I=e=>{const t=s.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:n,themeDetails:i}=t;((e,t,n)=>{const i=t.name||"default";let o;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");o=e.shadowRoot}catch{o=e}const r=s.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(r)C(e,o,r,n);else{const r=j(i,"PROPERTIES"),l=j(i,"GLOBAL"),a=j(i,e.tagName);!1===T.has(i)&&((e,t)=>{let n=t.match(A);if(Array.isArray(n)){n=n.filter((e=>x.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${n.join(";")}}`,document.querySelector("head")?.appendChild(t)}T.add(e)})(i,l);const u=[r,l,a];if(((e,t,n)=>{if(!1===n||"before"!==n?.mode&&"after"!==n?.mode)return;const i=Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName));let o;try{o=Array.from(e.adoptedStyleSheets)}catch{o=[]}if(0!==i.length||0!==o.length)if("before"===n.mode){const e=[...o.map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join(""))),...i.map((e=>e.innerHTML))];t.unshift(...e)}else i.forEach((e=>t.push(e.innerHTML))),o.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))})(o,u,t.encroachCss),!0===t.cache){let t=s.A11yUi.CSS_STYLE_CACHE.get(i);t||(t=new Map,s.A11yUi.CSS_STYLE_CACHE.set(i,t)),t.set(e.tagName,u)}C(e,o,u,n)}})(e,i,n)}};let R=(e,t=0)=>{if(t>=100)return;const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?I(e):R(e,t+1)}),O)};const $={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},_={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},q=N?new MutationObserver(((e,t)=>{const n=[];for(const t of e){const e=t.target;e.classList.contains("hydrated")&&s.A11yUi.STYLING_TASK_QUEUE.has(e)&&(I(e),n.push(e))}for(const e of n)t.observe(e,_)})):null;q&&(R=e=>q.observe(e,$),L=()=>{});const F=new Map;let z=(e,t)=>{if(t){const e=F.get(t);if(void 0!==e)return e}const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let i;if(n.endsWith("ms"))i=parseFloat(n);else if(n.endsWith("s"))i=1e3*parseFloat(n);else{const e=parseFloat(n);i=isNaN(e)?0:e}return t&&F.set(t,i),i};s.A11yUi.IS_TEST_ENVIRONMENT&&(z=()=>0);const H=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},U=e=>{s.A11yUi.STYLING_TASK_QUEUE.delete(e),L()},P=(e,t)=>{((e,t)=>{const n=e.style.visibility||null,i=t.name||"default";s.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=z(e,i);t>0?setTimeout((()=>{H(e,n)}),t):H(e,n)},themeDetails:t}),"ssr"!==t.mode&&e.style.setProperty("visibility","hidden","important"),R(e)})(e,{...s.A11yUi.Theme,...t})};class J{Prefix;Key;Tag;createTheme=(e,t,n)=>((e,t,n)=>i=>i(e,t,{append:!1},n))(e,t,n);createTranslation=(e,t)=>((e,t)=>n=>n(e,t))(e,t);constructor(e,t,n){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(n)}}var B,K;!function(e){e[e["action-done"]=0]="action-done",e[e["action-running"]=1]="action-running",e[e["avatar-alt"]=2]="avatar-alt",e[e["character-counter-current"]=3]="character-counter-current",e[e["character-counter-current-of-max"]=4]="character-counter-current-of-max",e[e["character-counter-current-of-max-aria"]=5]="character-counter-current-of-max-aria",e[e["character-counter-max-aria"]=6]="character-counter-max-aria",e[e["character-limit-exceeded"]=7]="character-limit-exceeded",e[e["character-limit-hint"]=8]="character-limit-hint",e[e["character-limit-remaining"]=9]="character-limit-remaining",e[e["clear-search"]=10]="clear-search",e[e.close=11]="close",e[e["close-alert"]=12]="close-alert",e[e["data-browse-text"]=13]="data-browse-text",e[e["delete-selection"]=14]="delete-selection",e[e["entries-per-site"]=15]="entries-per-site",e[e.error=16]="error",e[e["error-list"]=17]="error-list",e[e["error-list-message"]=18]="error-list-message",e[e["filename-text"]=19]="filename-text",e[e["form-description"]=20]="form-description",e[e["hide-password"]=21]="hide-password",e[e.info=22]="info",e[e["kolibri-logo"]=23]="kolibri-logo",e[e["live-value"]=24]="live-value",e[e["live-value-bounded"]=25]="live-value-bounded",e[e.message=26]="message",e[e["meter-state-critical"]=27]="meter-state-critical",e[e["meter-state-optimum"]=28]="meter-state-optimum",e[e["meter-state-suboptimal"]=29]="meter-state-suboptimal",e[e["nav-maximize"]=30]="nav-maximize",e[e["nav-minimize"]=31]="nav-minimize",e[e.new=32]="new",e[e["no-entries"]=33]="no-entries",e[e["no-results-message"]=34]="no-results-message",e[e["open-link-in-tab"]=35]="open-link-in-tab",e[e.page=36]="page",e[e["page-back"]=37]="page-back",e[e["page-first"]=38]="page-first",e[e["page-last"]=39]="page-last",e[e["page-next"]=40]="page-next",e[e.pagination=41]="pagination",e[e["pagination-position-bottom"]=42]="pagination-position-bottom",e[e["pagination-position-top"]=43]="pagination-position-top",e[e.progress=44]="progress",e[e.readonly=45]="readonly",e[e["show-password"]=46]="show-password",e[e["show-suggestions"]=47]="show-suggestions",e[e.sort=48]="sort",e[e["split-button-dropdown-label-open"]=49]="split-button-dropdown-label-open",e[e.success=50]="success",e[e["table-data-loading"]=51]="table-data-loading",e[e["table-data-loaded"]=52]="table-data-loaded",e[e["table-pagination-label"]=53]="table-pagination-label",e[e["table-selection"]=54]="table-selection",e[e["table-selection-all"]=55]="table-selection-all",e[e["table-selection-indeterminate"]=56]="table-selection-indeterminate",e[e["table-selection-none"]=57]="table-selection-none",e[e["table-settings"]=58]="table-settings",e[e["table-settings-apply"]=59]="table-settings-apply",e[e["table-settings-cancel"]=60]="table-settings-cancel",e[e["table-settings-column-hidable"]=61]="table-settings-column-hidable",e[e["table-settings-column-not-hidable"]=62]="table-settings-column-not-hidable",e[e["table-settings-column-width"]=63]="table-settings-column-width",e[e["table-settings-error-all-invisible"]=64]="table-settings-error-all-invisible",e[e["table-settings-move-down"]=65]="table-settings-move-down",e[e["table-settings-move-up"]=66]="table-settings-move-up",e[e["table-settings-not-move"]=67]="table-settings-not-move",e[e["table-sort-order"]=68]="table-sort-order",e[e["table-visible-range"]=69]="table-visible-range",e[e["toast-close-all"]=70]="toast-close-all",e[e.version=71]="version",e[e.warning=72]="warning"}(B||(B={})),function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.dialog=11]="dialog",e[e.drawer=12]="drawer",e[e.form=13]="form",e[e.heading=14]="heading",e[e.icon=15]="icon",e[e.image=16]="image",e[e["input-checkbox"]=17]="input-checkbox",e[e["input-color"]=18]="input-color",e[e["input-date"]=19]="input-date",e[e["input-email"]=20]="input-email",e[e["input-file"]=21]="input-file",e[e["input-number"]=22]="input-number",e[e["input-password"]=23]="input-password",e[e["input-radio"]=24]="input-radio",e[e["input-range"]=25]="input-range",e[e["input-text"]=26]="input-text",e[e.kolibri=27]="kolibri",e[e.link=28]="link",e[e["link-button"]=29]="link-button",e[e.logo=30]="logo",e[e.meter=31]="meter",e[e.modal=32]="modal",e[e.nav=33]="nav",e[e.pagination=34]="pagination",e[e["popover-button"]=35]="popover-button",e[e.progress=36]="progress",e[e.quote=37]="quote",e[e.select=38]="select",e[e["single-select"]=39]="single-select",e[e["skip-nav"]=40]="skip-nav",e[e.spin=41]="spin",e[e["split-button"]=42]="split-button",e[e.symbol=43]="symbol",e[e.table=44]="table",e[e["table-stateful"]=45]="table-stateful",e[e["table-stateless"]=46]="table-stateless",e[e.tabs=47]="tabs",e[e.textarea=48]="textarea",e[e["toast-container"]=49]="toast-container",e[e.toolbar=50]="toolbar",e[e.tooltip=51]="tooltip",e[e.tree=52]="tree",e[e["tree-item"]=53]="tree-item",e[e.version=54]="version"}(K||(K={}));const W=()=>"undefined"!=typeof window?window:{},D=()=>{const e=W();return e&&void 0!==e.document?e.document:{}},G=["development","production","test"];let Y="production";const V=e=>{try{if(!G.includes(e))throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${G.join(", ")}.`);Y=e}catch(e){Y="production"}},Q=()=>{try{return"undefined"!=typeof process&&process.env?process.env.NODE_ENV:void 0}catch(e){return}};V((()=>{const e=Q();return e&&G.includes(e)?e:"production"})());let X=!1,Z=!1;const ee=()=>"development"===Y,te=()=>"test"===Y,ne=()=>!0===X,ie=e=>{X=!0===e},oe=()=>!0===Z,re=e=>{Z=!0===e},le=e=>Array.isArray(e)?e:[e],se=e=>`%c${e}`,ae=(e,t)=>"string"==typeof t&&t.length>0?`${se(e)} | ${t}`:se(e),ue=(e,t)=>[ae(e,null==t?void 0:t.classifier),`color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000;${(null==t?void 0:t.overwriteStyle)||""}`],de=e=>ee()||!0===e,ce=new class{constructor(e){this.label=e}debug(e,t){de(null==t?void 0:t.forceLog)&&console.debug(...ue(this.label,t),...le(e))}info(e,t){de(null==t?void 0:t.forceLog)&&console.info(...ue(this.label,t),...le(e))}trace(e,t){de(null==t?void 0:t.forceLog)&&console.trace(...ue(this.label,t),...le(e))}warn(e,t){de(null==t?void 0:t.forceLog)&&console.warn(...ue(this.label,t),...le(e))}error(e,t){console.error(...ue(this.label,t),...le(e))}throw(e,t){if(de(null==t?void 0:t.forceLog))throw new Error(...ue(this.label,t),...le(e))}}("KoliBri"),fe=new Set,me=e=>{!1===fe.has(e)&&(fe.add(e),ce.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},pe=new Set,ge=e=>{!1===pe.has(e)&&(pe.add(e),ce.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},be=new Set,he=(e,t)=>{(!1===be.has(e)||(null==t?void 0:t.force))&&(be.add(e),ce.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},we=e=>{!1===be.has(e)&&(be.add(e),ce.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},ye=new Set,ve=(e,t=!1)=>{!1===ye.has(e)&&(ye.add(e),ce.debug([e+=!0===t?" ✅":""].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};he("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const ke=new Set,Se=e=>{!1===ke.has(e)&&(ke.add(e),ce.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},Ee=e=>{"string"==typeof e&&""!==e||me("Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},Te=(e,t=8)=>{t>7&&Se(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var Me,Ae,xe,Ne,Oe=1/12.92;function Le(e){return Math.pow((e+.055)/1.055,2.4)}function je(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return.2126*(t<=.03928?t*Oe:Le(t))+.7152*(n<=.03928?n*Oe:Le(n))+.0722*(i<=.03928?i*Oe:Le(i))}function Ce(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n=parseInt(e,16);return[n>>16,n>>8&255,255&n,t]}function Ie(e,t){return function(e,t){return function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}(je(e),je(t))}(Ce(e),Ce(t))}var Re=function(){if(Ne)return xe;Ne=1;var e=Ae?Me:(Ae=1,Me={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]});xe=function(n){var i,o,r=[],l=1;if("string"==typeof n)if(n=n.toLowerCase(),e[n])r=e[n].slice(),o="rgb";else if("transparent"===n)l=0,o="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(n)){var s=n.slice(1);l=1,(d=s.length)<=4?(r=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===d&&(l=parseInt(s[3]+s[3],16)/255)):(r=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===d&&(l=parseInt(s[6]+s[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),o="rgb"}else if(i=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(n)){var a=i[1],u="rgb"===a;o=s=a.replace(/a$/,"");var d="cmyk"===s?4:"gray"===s?1:3;r=i[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,n){if(/%$/.test(e))return n===d?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[n]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==t[e])return t[e]}return parseFloat(e)})),a===s&&r.push(1),l=u||void 0===r[d]?1:r[d],r=r.slice(0,d)}else n.length>10&&/[0-9](?:\s|\/)/.test(n)&&(r=n.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=n.match(/([a-z])/gi).join("").toLowerCase());else isNaN(n)?Array.isArray(n)||n.length?(r=[n[0],n[1],n[2]],o="rgb",l=4===n.length?n[3]:1):n instanceof Object&&(null!=n.r||null!=n.red||null!=n.R?(o="rgb",r=[n.r||n.red||n.R||0,n.g||n.green||n.G||0,n.b||n.blue||n.B||0]):(o="hsl",r=[n.h||n.hue||n.H||0,n.s||n.saturation||n.S||0,n.l||n.lightness||n.L||n.b||n.brightness]),l=n.a||n.alpha||n.opacity||1,null!=n.opacity&&(l/=100)):(o="rgb",r=[n>>>16,(65280&n)>>>8,255&n]);return{space:o,values:r,alpha:l}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return xe}(),$e=e(Re);const _e={min:[0,0,0],max:[255,255,255]};var qe={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,i,o,r,l=e[0]/360,s=e[1]/100,a=e[2]/100,u=0;if(0===s)return[r=255*a,r,r];for(t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];u<3;)(i=l+1/3*-(u-1))<0?i++:i>1&&i--,o[u++]=255*(r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t);return o}};_e.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,l=Math.min(i,o,r),s=Math.max(i,o,r),a=s-l;return s===l?t=0:i===s?t=(o-r)/a:o===s?t=2+(r-i)/a:r===s&&(t=4+(i-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(l+s)/2,[t,100*(s===l?0:n<=.5?a/(s+l):a/(2-s-l)),100*n]};var Fe,ze={exports:{}},He=function(){if(Fe)return ze.exports;function e(e){var n=t(e);return 3==n.length?n.concat(255):(n[3]=Math.round(n[3]),n)}function t(e){return"string"==typeof e?("red"==(t=e=e.toLowerCase())?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0)||function(e){var t=e.replace(/^#/,""),n=t.length;if(3==n||4==n){var o=i(t[0]),r=i(t[1]),l=i(t[2]),s=3==n?255:i(t[3]);if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){var t=e.replace(/^#/,""),n=t.length;if(6==n||8==n){var o=i(t.slice(0,2)),r=i(t.slice(2,4)),l=i(t.slice(4,6)),s=6==n?255:i(t.slice(6,8));if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0);if(-1!=n&&-1!=i&&-1!=r)return[n,i,r,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0),l=o(255*t[3]);if(-1!=n&&-1!=i&&-1!=r&&-1!=l)return[n,i,r,l]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=o(null!=e.r?e.r:null!=e.red?e.red:0,!0),n=o(null!=e.g?e.g:null!=e.green?e.green:0,!0),i=o(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),r=o(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=o(e[0],!0),n=o(e[1],!0),i=o(e[2],!0),r=o(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0)return[e>>16&255,e>>8&255,255&e,e>>24&255]}(e)||[0,0,0,255];var t}function n(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function i(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function o(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return Fe=1,ze.exports=e,ze.exports.arr=e,ze.exports.obj=function(e){var n=t(e);return{r:n[0],g:n[1],b:n[2],a:3==n.length?255:Math.round(n[3])}},ze.exports.css=function(e){var n=t(e);return 3==n.length&&n.push(255),255==n[3]?"rgb("+n[0]+", "+n[1]+", "+n[2]+")":0==n[3]?"rgba("+n[0]+", "+n[1]+", "+n[2]+", 0)":"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+String(n[3]/255).substr(1)+")"},ze.exports.hex=function(e){var i=t(e);3==i.length&&i.push(255);var o=255==i[3],r=n(i[0]),l=n(i[1]),s=n(i[2]),a=function(e,t,n,i){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=o.indexOf(e)&&-1!=o.indexOf(t)&&-1!=o.indexOf(n)&&-1!=o.indexOf(i)}(r,l,s,i=n(Math.round(i[3])));return o?a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0):"#"+r+l+s:a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0)+i.charAt(0):"#"+r+l+s+i},ze.exports.num=function(e){var n=t(e);return 3==n.length?n.push(255):n[3]=Math.round(n[3]),(n[3]<<24>>>0|n[0]<<16|n[1]<<8|n[2])>>>0},ze.exports}(),Ue=e(He);const Pe=/\[object Object\]/,Je=(e,t)=>{"string"==typeof e&&Pe.test(e)||t()},Be=(e,t)=>{ne()&&(ce.debug([e,t]),ce.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},Ke=(e,t,n,i={})=>{var o,r;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map),e.nextHooks.get(t)instanceof Map==0&&e.nextHooks.set(t,new Map),"function"==typeof i.afterPatch&&(null===(o=e.nextHooks.get(t))||void 0===o||o.set("afterPatch",i.afterPatch)),"function"==typeof i.beforePatch&&(null===(r=e.nextHooks.get(t))||void 0===r||r.set("beforePatch",i.beforePatch)),e.nextState.set(t,n),(e=>{var t,n,i;null===(t=e.nextHooks)||void 0===t||t.forEach(((t,n)=>{var i;const o=t.get("beforePatch");"function"==typeof o&&o(null===(i=e.nextState)||void 0===i?void 0:i.get(n),e.nextState,e,n)})),(null===(n=e.nextState)||void 0===n?void 0:n.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(i=e.nextHooks)||void 0===i||i.forEach(((t,n)=>{const i=t.get("afterPatch");"function"==typeof i&&i(e.state[n],e.state,e,n)}))),delete e.nextHooks})(e)};function We(e,t,n,i,o,r={}){if("production"!==Y||"production"!==Q())if(n(o))Ke(e,t,o,r.hooks);else if(void 0===o&&!0!==r.required&&n(r.defaultValue))Ke(e,t,r.defaultValue,r.hooks);else{const n=new Set(i);r.required||n.add(null),((e,t,n,i)=>{he(`[${e.constructor.name}] The property value: (${n}) for '${t}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)})(e,t,o,n)}else void 0!==o?Ke(e,t,o,r.hooks):n(void 0)?Ke(e,t,void 0,r.hooks):!0!==r.required&&n(r.defaultValue)&&Ke(e,t,r.defaultValue,r.hooks)}const De=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw ce.warn(["stringifyJson",e]),ce.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},Ge=/^[{[]/,Ye=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if(Ge.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){ce.warn(["parseJson",e]),ce.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},Ve=(e,t)=>{if(!e)return;const n=new Set,i=[e];let o=0;for(;o<i.length;){const e=i[o++];if(n.has(e))continue;if(n.add(e),t(e))return;const r=Array.from(e.children||[]);for(let e=0;e<r.length;e++)i.push(r[e]);if(e instanceof HTMLElement&&e.shadowRoot&&i.push(e.shadowRoot),e instanceof HTMLSlotElement){const t=e.assignedNodes({flatten:!0});for(let e=0;e<t.length;e++)t[e]instanceof Element&&i.push(t[e])}}},Qe=(e,t)=>((e,t)=>{let n=null;return Ve(t,(t=>!!(t instanceof Element&&t.matches(e))&&(n=t,!0))),n})(e,t||D()),Xe=(e,t)=>((e,t)=>{const n=[];return Ve(t,(t=>(t instanceof Element&&t.matches(e)&&n.push(t),!1))),n})(e,t||D());let Ze=null;const et=()=>(Ze=Ze||{backgroundColor:"#00000000",color:"#00000000",domNode:D().body,level:"Fail",score:1},Ze),tt=/(\d+, ){3}0\)/,nt=(e,t=et())=>{const n=getComputedStyle(e),i=tt.test(n.backgroundColor)?t.backgroundColor:Ue.hex(n.backgroundColor),o=tt.test(n.color)?t.color:Ue.hex(n.color),r=Ie(i,o),l={backgroundColor:i,color:o,domNode:e,level:(s=r,s>=7?"AAA":s>=4.5?"AA":s>=3?"AA Large":"Fail"),score:r};var s;return r<4.5&&ce.error(["Color-Contrast-Error",{backgroundColor:l.backgroundColor,color:l.color,level:l.level,score:l.score},l.domNode]),l},it=(e,t=et())=>{t.domNode instanceof HTMLElement&&(t=nt(t.domNode,t));const n=t.domNode.querySelector(e);if(null===n){const n=t.domNode.querySelectorAll('[class="hydrated"]');for(let i=0;i<n.length&&(t.domNode=n[i],null===(t=it(e,t)).domNode);i++);return t}return nt(n,t)};class ot{static queryHtmlElementColors(e,t,n=!1,i=!0){let o=null;if(!0===n||!1===ot.executionLock)if(!1===n&&(ot.cache.clear(),ot.cache.set(t.domNode,t),ot.executionLock=!0,!0===i&&ce.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)o=t;else{const n=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)n.add(e[t])}const i=t.domNode;if("function"==typeof i.assignedNodes){const e=i.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&n.add(e[t])}const r=t.domNode.children;for(let e=0;e<r.length;e++)n.add(r[e]);const l=Array.from(n);for(let n=0;n<l.length;n++){let i=ot.cache.get(l[n]);void 0===i&&(i=nt(l[n],t)),ot.cache.set(l[n],i);const r=ot.queryHtmlElementColors(e,i,!0,!1);if(null!==r){o=r;break}}}else ce.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===i&&ce.debug(`[KoliBriUtils] Color contrast analysis finished (${ot.cache.size} DOM elements are analysed).`),ot.executionLock=!1,ot.cache.clear()),o}}ot.executionLock=!1,ot.cache=new Map;class rt{}rt.getCssStyle=j,rt.patchTheme=(e,t,n,i)=>p(e,t,n,i),rt.patchThemeTag=(e,t,n,i)=>m(e,t,n,i),rt.querySelector=Qe,rt.querySelectorAll=Xe,rt.stringifyJson=De;const lt=e=>"object"==typeof e&&null!==e,st=(e,t=0)=>"string"==typeof e&&e.length>=t,at=e=>{if("object"!=typeof e||null===e)return st(e,1);for(const t in e)if(!1===st(t,1))return!1;return!0},ut=new Event("StateChange");var dt,ct,ft=e(ct?dt:(ct=1,dt=function(e){return function(t,n){if(!t)return e;var i;"string"==typeof t?i=t:n=t;var o=e;return i&&(o+="__"+i),o+(n?Object.keys(n).reduce((function(e,t){var i=n[t];return i&&(e+=" "+("boolean"==typeof i?o+"--"+t:o+"--"+t+"_"+i)),e}),""):"")}}));const mt=function(){const e=new Map,t=(t,n,i)=>{try{return e.get(t)(n,i)}catch{return e.set(t,ft(t)).get(t)(n,i)}};return t.forBlock=e=>{const n=(n,i)=>t(e,n,i);return n.forElement=n=>i=>t(e,n,i),n},t}(),pt={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-span":{elements:{container:{modifiers:null},icon:{modifiers:new Set(["bottom","left","right","top"])},label:{modifiers:null},slot:{modifiers:null}},modifiers:new Set(["has-badge","hide-label"])},"kol-link":{elements:{"interactive-element":{modifiers:null},icon:{modifiers:null},text:{modifiers:null}},modifiers:new Set(["disabled","external-link","hide-label","inline","standalone"])},"kol-form":{elements:{alert:{modifiers:null},form:{modifiers:null},link:{modifiers:null},"mandatory-fields-hint":{modifiers:null}},modifiers:null},"kol-form-field":{elements:{counter:{modifiers:null},hint:{modifiers:null},input:{modifiers:new Set(["orientation-horizontal","orientation-vertical"])},label:{modifiers:new Set(["legend"])},"label-text":{modifiers:null},msg:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["default","disabled","error","hidden-msg","hide-label","info","msg-type-default","msg-type-error","msg-type-info","msg-type-success","msg-type-warning","radio","read-only","required","success","touched","warning"])},"kol-input":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-input-container":{elements:{adornment:{modifiers:new Set(["end","start"])},button:{modifiers:null},container:{modifiers:null},filename:{modifiers:new Set(["has-file"])},icon:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["default","disabled","error","info","is-dragover","success","warning"])},"kol-field-control":{elements:{hint:{modifiers:null},input:{modifiers:null},label:{modifiers:new Set(["visually-hidden"])},"label-text":{modifiers:null}},modifiers:new Set(["default","disabled","error","hide-label","info","label-align-left","label-align-right","read-only","required","success","touched","warning"])},"kol-checkbox":{elements:{icon:{modifiers:null},input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","indeterminate","info","required","success","touched","variant-button","variant-default","variant-switch","warning"])},"kol-input-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null},"kol-image":{modifiers:null},"kol-popover":{elements:{arrow:{modifiers:new Set(["top","right","bottom","left"])}},modifiers:null},"kol-progress":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-label":{modifiers:null},"bar-progress":{modifiers:null},"bar-unit":{modifiers:null},"bar-value":{modifiers:null},cycle:{modifiers:null},"cycle-background":{modifiers:null},"cycle-border":{modifiers:null},"cycle-label":{modifiers:null},"cycle-progress":{modifiers:null},"cycle-text":{modifiers:null},"cycle-value":{modifiers:null},"cycle-whitespace":{modifiers:null}},modifiers:null},"kol-tooltip":{elements:{arrow:{modifiers:null},content:{modifiers:null},floating:{modifiers:null}},modifiers:null}};export{Ue as A,pt as B,Ie as C,Te as D,J as E,ne as F,at as G,st as H,We as I,Qe as J,B as K,ce as L,ee as M,nt as N,Xe as O,it as P,ot as Q,y as R,ut as S,K as T,De as U,oe as V,k as X,rt as a,mt as b,Ee as c,P as d,ge as e,ve as f,he as g,me as h,V as i,E as j,lt as k,we as l,$e as m,qe as n,Je as o,Ye as p,D as q,_e as r,Be as s,ie as t,Se as u,re as v,w,W as x,te as y,e as z}
|
|
4
|
+
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,i,o={exports:{}},r=(t||(t=1,n=o.exports,i=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},r=null;function l(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(){for(var n=this.getLevel(),o=0;o<i.length;o++){var r=i[o];this[r]=o<n?e:this.methodFactory(r,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(a.call(this),this[e].apply(this,arguments))}}function d(i,o,r){return function(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&n?s:void 0!==console[i]?l(console,i):void 0!==console.log?l(console,"log"):e)}(i)||u.apply(this,arguments)}function c(e,n){var l,s,u,c=this,f="loglevel";function m(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,i=encodeURIComponent(f),o=n.indexOf(i+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o+i.length+1))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=n||d,c.getLevel=function(){return null!=u?u:null!=s?s:l},c.setLevel=function(e,n){return u=p(e),!1!==n&&function(e){var n=(i[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+n+";"}catch(e){}}}(u),a.call(c)},c.setDefaultLevel=function(e){s=p(e),m()||c.setLevel(e,!1)},c.resetLevel=function(){u=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),a.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(r!==c&&(l=p(r.getLevel())),a.call(c),r===c)for(var e in o)o[e].rebuild()},l=p(r?r.getLevel():"WARN");var b=m();null!=b&&(u=p(b)),a.call(c)}(r=new c).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new c(e,r.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return r.noConflict=function(){return typeof window!==t&&window.log===r&&(window.log=f),r},r.getLoggers=function(){return o},r.default=r,r},o.exports?o.exports=i():n.log=i()),o.exports),l=e(r);const s={A11yUi:{CSS_STYLE_CACHE:new Map,FEATURES:{},IS_TEST_ENVIRONMENT:(()=>{const e=typeof process<"u"&&process.env?process.env:{},t="test"===e.NODE_ENV,n="VITEST"in e,i="JEST_WORKER_ID"in e,o="PLAYWRIGHT_TEST_BASE_URL"in e,r="true"===e.CI,l="true"===e.TEST||"true"===e.IS_TEST,s=typeof navigator<"u"&&!0===navigator.webdriver,a=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||n||i||o||r||l||s||a})(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,THEME_FEATURES:{},showAverageTimes:()=>{const e={};for(const[t,n]of s.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[n.totalTime/n.count,n.count];const t=Object.entries(e).sort(((e,t)=>t[1][0]-e[1][0]));return console.table(Object.fromEntries(t.map((([e,[t,n]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:n}])))),e}}};let a=!0,u=!1;const d=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>{if(!(e=>"string"==typeof e&&d.test(e))(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},f=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),m=(e,t,n,i)=>{(i=i??{}).append=i.append??!1,c(e),a&&!u&&(u=!0,l.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let o=s.A11yUi.THEMES.get(e);if(o||(o=new Map,s.A11yUi.THEMES.set(e,o)),i.append&&o.has(t)){const e=o.get(t);o.set(t,f(`${e}${n}`))}else o.set(t,f(n))},p=(e,t,n,i)=>(c(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const r=t[o],l=o.toLowerCase(),s="function"!=typeof i?.transformTagName||["GLOBAL","PROPERTIES"].includes(o)?o:i.transformTagName(l);"string"==typeof r&&r.length>0&&m(e,s.toUpperCase(),r,n)})),e),b=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;typeof ShadowRoot<"u"&&t instanceof ShadowRoot;)t=t.host;return b(t)}}return null},g=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},h=()=>"object"==typeof s.A11yUi.Theme&&null!==s.A11yUi.Theme&&"boolean"==typeof s.A11yUi.Theme.cache&&"object"==typeof s.A11yUi.Theme.encroachCss&&null!==s.A11yUi.Theme.encroachCss&&"string"==typeof s.A11yUi.Theme.encroachCss.mode&&"string"==typeof s.A11yUi.Theme.name,w=e=>{if(h())return s.A11yUi.Theme;{const t={cache:!0,encroachCss:g(),loglevel:"silent",mode:"csr",name:null},n=b(e);return n instanceof HTMLElement&&(t.cache="false"!==n.dataset.themeCache,t.encroachCss=g(n.dataset),t.loglevel="debug"===n.dataset.themeLoglevel?n.dataset.themeLoglevel:"silent",t.mode="ssr"===n.dataset.themeMode?n.dataset.themeMode:"csr",t.name=n.dataset.theme||null),t}},y=()=>h()?s.A11yUi.Theme.name:null,v=(...e)=>{const t={};for(const n of e)n&&Object.assign(t,n);return t},k=(e,t)=>{const n=s.A11yUi.FEATURES[e];if(void 0!==n)return n;const i=(e=>w(e).name)(t??null)??y();if(null!==i){const t=s.A11yUi.THEME_FEATURES[i];if(t&&void 0!==t[e])return t[e]}};let S=!1;const E=(e,t,n={})=>{S||(S=!0,a=!1,typeof window<"u"&&(window.A11yUi=s.A11yUi)),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?((e,t)=>{!1===h()&&("object"!=typeof s.A11yUi.Theme||null===s.A11yUi.Theme||"default"!==s.A11yUi.Theme.name)&&"object"==typeof t&&null!==t&&(t=((e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}))(e,t),"fixed"===t.detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(s.A11yUi.Theme=t,l.info(`[Theming] Theme "${e}" was set as default theme.`))):u||(u=!0,l.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))})(e(((e,t,i,o)=>(o&&(s.A11yUi.THEME_FEATURES[e]=v(s.A11yUi.THEME_FEATURES[e],o)),p(e,t,i,n)))),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,mode:n.theme?.mode,name:n.theme?.name}):l.error("[Theming] An attempt was made to load an incompatible theme.")})),a=!0,n.features&&(s.A11yUi.FEATURES=v(s.A11yUi.FEATURES,n.features)),"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const i=[];return t.forEach((e=>{const t=e();t instanceof Promise&&i.push(t)})),Promise.all(i)},T=new Set,M=new Map,x=/--[^;]+/g,A=/:/,N=typeof MutationObserver<"u";let O=25,L=()=>{O=Math.min(25+20*Math.log2(s.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const j=(e,t)=>{const n=s.A11yUi.THEMES.get(e);if(n instanceof Map){const e=n.get(t);if(void 0!==e)return e}return""},C=(e,t,n,i)=>{const o="debug"===s.A11yUi.Theme?.loglevel,r=o?performance.now():0;if((e=>{const t=e.firstChild;if(t instanceof HTMLStyleElement&&void 0===t.dataset.themingFallback)for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}})(t),((e,t)=>{try{if("ssr"===s.A11yUi.Theme?.mode)throw new Error("SSR");const n=t.filter((e=>"string"==typeof e&&e.length>0)).map((e=>{let t=M.get(e);return t||(t=new CSSStyleSheet,t.replaceSync(e),M.set(e,t)),t}));e.adoptedStyleSheets=n}catch{for(let n=t.length-1;n>=0;n--){const i=t[n];if("string"!=typeof i||0===i.length)continue;const o=t.length-1-n,r=document.createElement("style");switch(r.dataset.themingFallback="",o){case 4:r.dataset.themingBaseA11y="";break;case 3:r.dataset.themingBaseGlobal="";break;case 2:r.dataset.themingBaseComponent="";break;case 1:r.dataset.themingCustomGlobal="";break;case 0:r.dataset.themingCustomComponent="";break;default:r.dataset.themingUnknown=""}r.innerHTML=i,e.insertBefore(r,e.firstChild)}}})(t,n),U(e),requestAnimationFrame(i),o){const t=performance.now()-r,n=s.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);n?(n.count+=1,n.totalTime+=t):s.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:t})}},I=e=>{const t=s.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:n,themeDetails:i}=t;((e,t,n)=>{const i=t.name||"default";let o;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");o=e.shadowRoot}catch{o=e}const r=s.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(r)C(e,o,r,n);else{const r=j(i,"PROPERTIES"),l=j(i,"GLOBAL"),a=j(i,e.tagName);!1===T.has(i)&&((e,t)=>{let n=t.match(x);if(Array.isArray(n)){n=n.filter((e=>A.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${n.join(";")}}`,document.querySelector("head")?.appendChild(t)}T.add(e)})(i,l);const u=[r,l,a];if(((e,t,n)=>{if(!1===n||"before"!==n?.mode&&"after"!==n?.mode)return;const i=Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName));let o;try{o=Array.from(e.adoptedStyleSheets)}catch{o=[]}if(0!==i.length||0!==o.length)if("before"===n.mode){const e=[...o.map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join(""))),...i.map((e=>e.innerHTML))];t.unshift(...e)}else i.forEach((e=>t.push(e.innerHTML))),o.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))})(o,u,t.encroachCss),!0===t.cache){let t=s.A11yUi.CSS_STYLE_CACHE.get(i);t||(t=new Map,s.A11yUi.CSS_STYLE_CACHE.set(i,t)),t.set(e.tagName,u)}C(e,o,u,n)}})(e,i,n)}};let R=(e,t=0)=>{if(t>=100)return;const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?I(e):R(e,t+1)}),O)};const $={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},_={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},q=N?new MutationObserver(((e,t)=>{const n=[];for(const t of e){const e=t.target;e.classList.contains("hydrated")&&s.A11yUi.STYLING_TASK_QUEUE.has(e)&&(I(e),n.push(e))}for(const e of n)t.observe(e,_)})):null;q&&(R=e=>q.observe(e,$),L=()=>{});const F=new Map;let z=(e,t)=>{if(t){const e=F.get(t);if(void 0!==e)return e}const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let i;if(n.endsWith("ms"))i=parseFloat(n);else if(n.endsWith("s"))i=1e3*parseFloat(n);else{const e=parseFloat(n);i=isNaN(e)?0:e}return t&&F.set(t,i),i};s.A11yUi.IS_TEST_ENVIRONMENT&&(z=()=>0);const H=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},U=e=>{s.A11yUi.STYLING_TASK_QUEUE.delete(e),L()},P=(e,t)=>{((e,t)=>{const n=e.style.visibility||null,i=t.name||"default";s.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=z(e,i);t>0?setTimeout((()=>{H(e,n)}),t):H(e,n)},themeDetails:t}),"ssr"!==t.mode&&e.style.setProperty("visibility","hidden","important"),R(e)})(e,{...s.A11yUi.Theme,...t})};class J{Prefix;Key;Tag;createTheme=(e,t,n)=>((e,t,n)=>i=>i(e,t,{append:!1},n))(e,t,n);createTranslation=(e,t)=>((e,t)=>n=>n(e,t))(e,t);constructor(e,t,n){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(n)}}var B,K;!function(e){e[e["action-done"]=0]="action-done",e[e["action-running"]=1]="action-running",e[e["avatar-alt"]=2]="avatar-alt",e[e["character-counter-current"]=3]="character-counter-current",e[e["character-counter-current-of-max"]=4]="character-counter-current-of-max",e[e["character-counter-current-of-max-aria"]=5]="character-counter-current-of-max-aria",e[e["character-counter-max-aria"]=6]="character-counter-max-aria",e[e["character-limit-exceeded"]=7]="character-limit-exceeded",e[e["character-limit-hint"]=8]="character-limit-hint",e[e["character-limit-remaining"]=9]="character-limit-remaining",e[e["clear-search"]=10]="clear-search",e[e.close=11]="close",e[e["close-alert"]=12]="close-alert",e[e["data-browse-text"]=13]="data-browse-text",e[e["delete-selection"]=14]="delete-selection",e[e["entries-per-site"]=15]="entries-per-site",e[e.error=16]="error",e[e["error-list"]=17]="error-list",e[e["error-list-message"]=18]="error-list-message",e[e["filename-text"]=19]="filename-text",e[e["form-description"]=20]="form-description",e[e["hide-password"]=21]="hide-password",e[e.info=22]="info",e[e["kolibri-logo"]=23]="kolibri-logo",e[e["live-value"]=24]="live-value",e[e["live-value-bounded"]=25]="live-value-bounded",e[e.message=26]="message",e[e["meter-state-critical"]=27]="meter-state-critical",e[e["meter-state-optimum"]=28]="meter-state-optimum",e[e["meter-state-suboptimal"]=29]="meter-state-suboptimal",e[e["nav-maximize"]=30]="nav-maximize",e[e["nav-minimize"]=31]="nav-minimize",e[e.new=32]="new",e[e["no-entries"]=33]="no-entries",e[e["no-results-message"]=34]="no-results-message",e[e["open-link-in-tab"]=35]="open-link-in-tab",e[e.page=36]="page",e[e["page-back"]=37]="page-back",e[e["page-first"]=38]="page-first",e[e["page-last"]=39]="page-last",e[e["page-next"]=40]="page-next",e[e.pagination=41]="pagination",e[e["pagination-position-bottom"]=42]="pagination-position-bottom",e[e["pagination-position-top"]=43]="pagination-position-top",e[e.progress=44]="progress",e[e.readonly=45]="readonly",e[e["show-password"]=46]="show-password",e[e["show-suggestions"]=47]="show-suggestions",e[e.sort=48]="sort",e[e["split-button-dropdown-label-open"]=49]="split-button-dropdown-label-open",e[e.success=50]="success",e[e["table-data-loading"]=51]="table-data-loading",e[e["table-data-loaded"]=52]="table-data-loaded",e[e["table-pagination-label"]=53]="table-pagination-label",e[e["table-selection"]=54]="table-selection",e[e["table-selection-all"]=55]="table-selection-all",e[e["table-selection-indeterminate"]=56]="table-selection-indeterminate",e[e["table-selection-none"]=57]="table-selection-none",e[e["table-settings"]=58]="table-settings",e[e["table-settings-apply"]=59]="table-settings-apply",e[e["table-settings-cancel"]=60]="table-settings-cancel",e[e["table-settings-column-hidable"]=61]="table-settings-column-hidable",e[e["table-settings-column-not-hidable"]=62]="table-settings-column-not-hidable",e[e["table-settings-column-width"]=63]="table-settings-column-width",e[e["table-settings-error-all-invisible"]=64]="table-settings-error-all-invisible",e[e["table-settings-move-down"]=65]="table-settings-move-down",e[e["table-settings-move-up"]=66]="table-settings-move-up",e[e["table-settings-not-move"]=67]="table-settings-not-move",e[e["table-sort-order"]=68]="table-sort-order",e[e["table-visible-range"]=69]="table-visible-range",e[e["toast-close-all"]=70]="toast-close-all",e[e.version=71]="version",e[e.warning=72]="warning"}(B||(B={})),function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.dialog=11]="dialog",e[e.drawer=12]="drawer",e[e.form=13]="form",e[e.heading=14]="heading",e[e.icon=15]="icon",e[e.image=16]="image",e[e["input-checkbox"]=17]="input-checkbox",e[e["input-color"]=18]="input-color",e[e["input-date"]=19]="input-date",e[e["input-email"]=20]="input-email",e[e["input-file"]=21]="input-file",e[e["input-number"]=22]="input-number",e[e["input-password"]=23]="input-password",e[e["input-radio"]=24]="input-radio",e[e["input-range"]=25]="input-range",e[e["input-text"]=26]="input-text",e[e.kolibri=27]="kolibri",e[e.link=28]="link",e[e["link-button"]=29]="link-button",e[e.logo=30]="logo",e[e.meter=31]="meter",e[e.modal=32]="modal",e[e.nav=33]="nav",e[e.pagination=34]="pagination",e[e["popover-button"]=35]="popover-button",e[e.progress=36]="progress",e[e.quote=37]="quote",e[e.select=38]="select",e[e["single-select"]=39]="single-select",e[e["skip-nav"]=40]="skip-nav",e[e.spin=41]="spin",e[e["split-button"]=42]="split-button",e[e.symbol=43]="symbol",e[e.table=44]="table",e[e["table-stateful"]=45]="table-stateful",e[e["table-stateless"]=46]="table-stateless",e[e.tabs=47]="tabs",e[e.textarea=48]="textarea",e[e["toast-container"]=49]="toast-container",e[e.toolbar=50]="toolbar",e[e.tooltip=51]="tooltip",e[e.tree=52]="tree",e[e["tree-item"]=53]="tree-item",e[e.version=54]="version"}(K||(K={}));const W=()=>"undefined"!=typeof window?window:{},D=()=>{const e=W();return e&&void 0!==e.document?e.document:{}},G=["development","production","test"];let Y="production";const V=e=>{try{if(!G.includes(e))throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${G.join(", ")}.`);Y=e}catch(e){Y="production"}},Q=()=>{try{return"undefined"!=typeof process&&process.env?process.env.NODE_ENV:void 0}catch(e){return}};V((()=>{const e=Q();return e&&G.includes(e)?e:"production"})());let X=!1,Z=!1;const ee=()=>"development"===Y,te=()=>"test"===Y,ne=()=>!0===X,ie=e=>{X=!0===e},oe=()=>!0===Z,re=e=>{Z=!0===e},le=e=>Array.isArray(e)?e:[e],se=e=>`%c${e}`,ae=(e,t)=>"string"==typeof t&&t.length>0?`${se(e)} | ${t}`:se(e),ue=(e,t)=>[ae(e,null==t?void 0:t.classifier),`color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000;${(null==t?void 0:t.overwriteStyle)||""}`],de=e=>ee()||!0===e,ce=new class{constructor(e){this.label=e}debug(e,t){de(null==t?void 0:t.forceLog)&&console.debug(...ue(this.label,t),...le(e))}info(e,t){de(null==t?void 0:t.forceLog)&&console.info(...ue(this.label,t),...le(e))}trace(e,t){de(null==t?void 0:t.forceLog)&&console.trace(...ue(this.label,t),...le(e))}warn(e,t){de(null==t?void 0:t.forceLog)&&console.warn(...ue(this.label,t),...le(e))}error(e,t){console.error(...ue(this.label,t),...le(e))}throw(e,t){if(de(null==t?void 0:t.forceLog))throw new Error(...ue(this.label,t),...le(e))}}("KoliBri"),fe=new Set,me=e=>{!1===fe.has(e)&&(fe.add(e),ce.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},pe=new Set,be=e=>{!1===pe.has(e)&&(pe.add(e),ce.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},ge=new Set,he=(e,t)=>{(!1===ge.has(e)||(null==t?void 0:t.force))&&(ge.add(e),ce.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},we=e=>{!1===ge.has(e)&&(ge.add(e),ce.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},ye=new Set,ve=(e,t=!1)=>{!1===ye.has(e)&&(ye.add(e),ce.debug([e+=!0===t?" ✅":""].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};he("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const ke=new Set,Se=e=>{!1===ke.has(e)&&(ke.add(e),ce.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},Ee=e=>{"string"==typeof e&&""!==e||me("Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},Te=(e,t=8)=>{t>7&&Se(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var Me,xe,Ae,Ne,Oe=1/12.92;function Le(e){return Math.pow((e+.055)/1.055,2.4)}function je(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return.2126*(t<=.03928?t*Oe:Le(t))+.7152*(n<=.03928?n*Oe:Le(n))+.0722*(i<=.03928?i*Oe:Le(i))}function Ce(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n=parseInt(e,16);return[n>>16,n>>8&255,255&n,t]}function Ie(e,t){return function(e,t){return function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}(je(e),je(t))}(Ce(e),Ce(t))}var Re=function(){if(Ne)return Ae;Ne=1;var e=xe?Me:(xe=1,Me={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]});Ae=function(n){var i,o,r=[],l=1;if("string"==typeof n)if(n=n.toLowerCase(),e[n])r=e[n].slice(),o="rgb";else if("transparent"===n)l=0,o="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(n)){var s=n.slice(1);l=1,(d=s.length)<=4?(r=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===d&&(l=parseInt(s[3]+s[3],16)/255)):(r=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===d&&(l=parseInt(s[6]+s[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),o="rgb"}else if(i=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(n)){var a=i[1],u="rgb"===a;o=s=a.replace(/a$/,"");var d="cmyk"===s?4:"gray"===s?1:3;r=i[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,n){if(/%$/.test(e))return n===d?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[n]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==t[e])return t[e]}return parseFloat(e)})),a===s&&r.push(1),l=u||void 0===r[d]?1:r[d],r=r.slice(0,d)}else n.length>10&&/[0-9](?:\s|\/)/.test(n)&&(r=n.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=n.match(/([a-z])/gi).join("").toLowerCase());else isNaN(n)?Array.isArray(n)||n.length?(r=[n[0],n[1],n[2]],o="rgb",l=4===n.length?n[3]:1):n instanceof Object&&(null!=n.r||null!=n.red||null!=n.R?(o="rgb",r=[n.r||n.red||n.R||0,n.g||n.green||n.G||0,n.b||n.blue||n.B||0]):(o="hsl",r=[n.h||n.hue||n.H||0,n.s||n.saturation||n.S||0,n.l||n.lightness||n.L||n.b||n.brightness]),l=n.a||n.alpha||n.opacity||1,null!=n.opacity&&(l/=100)):(o="rgb",r=[n>>>16,(65280&n)>>>8,255&n]);return{space:o,values:r,alpha:l}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return Ae}(),$e=e(Re);const _e={min:[0,0,0],max:[255,255,255]};var qe={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,i,o,r,l=e[0]/360,s=e[1]/100,a=e[2]/100,u=0;if(0===s)return[r=255*a,r,r];for(t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];u<3;)(i=l+1/3*-(u-1))<0?i++:i>1&&i--,o[u++]=255*(r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t);return o}};_e.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,l=Math.min(i,o,r),s=Math.max(i,o,r),a=s-l;return s===l?t=0:i===s?t=(o-r)/a:o===s?t=2+(r-i)/a:r===s&&(t=4+(i-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(l+s)/2,[t,100*(s===l?0:n<=.5?a/(s+l):a/(2-s-l)),100*n]};var Fe,ze={exports:{}},He=function(){if(Fe)return ze.exports;function e(e){var n=t(e);return 3==n.length?n.concat(255):(n[3]=Math.round(n[3]),n)}function t(e){return"string"==typeof e?("red"==(t=e=e.toLowerCase())?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0)||function(e){var t=e.replace(/^#/,""),n=t.length;if(3==n||4==n){var o=i(t[0]),r=i(t[1]),l=i(t[2]),s=3==n?255:i(t[3]);if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){var t=e.replace(/^#/,""),n=t.length;if(6==n||8==n){var o=i(t.slice(0,2)),r=i(t.slice(2,4)),l=i(t.slice(4,6)),s=6==n?255:i(t.slice(6,8));if(isNaN(o)||isNaN(r)||isNaN(l)||isNaN(s))return;return[o,r,l,s]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0);if(-1!=n&&-1!=i&&-1!=r)return[n,i,r,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),n=o(t[0],!0),i=o(t[1],!0),r=o(t[2],!0),l=o(255*t[3]);if(-1!=n&&-1!=i&&-1!=r&&-1!=l)return[n,i,r,l]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=o(null!=e.r?e.r:null!=e.red?e.red:0,!0),n=o(null!=e.g?e.g:null!=e.green?e.green:0,!0),i=o(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),r=o(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=o(e[0],!0),n=o(e[1],!0),i=o(e[2],!0),r=o(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=n&&-1!=i&&-1!=r)return[t,n,i,r]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0)return[e>>16&255,e>>8&255,255&e,e>>24&255]}(e)||[0,0,0,255];var t}function n(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function i(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function o(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return Fe=1,ze.exports=e,ze.exports.arr=e,ze.exports.obj=function(e){var n=t(e);return{r:n[0],g:n[1],b:n[2],a:3==n.length?255:Math.round(n[3])}},ze.exports.css=function(e){var n=t(e);return 3==n.length&&n.push(255),255==n[3]?"rgb("+n[0]+", "+n[1]+", "+n[2]+")":0==n[3]?"rgba("+n[0]+", "+n[1]+", "+n[2]+", 0)":"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+String(n[3]/255).substr(1)+")"},ze.exports.hex=function(e){var i=t(e);3==i.length&&i.push(255);var o=255==i[3],r=n(i[0]),l=n(i[1]),s=n(i[2]),a=function(e,t,n,i){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=o.indexOf(e)&&-1!=o.indexOf(t)&&-1!=o.indexOf(n)&&-1!=o.indexOf(i)}(r,l,s,i=n(Math.round(i[3])));return o?a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0):"#"+r+l+s:a?"#"+r.charAt(0)+l.charAt(0)+s.charAt(0)+i.charAt(0):"#"+r+l+s+i},ze.exports.num=function(e){var n=t(e);return 3==n.length?n.push(255):n[3]=Math.round(n[3]),(n[3]<<24>>>0|n[0]<<16|n[1]<<8|n[2])>>>0},ze.exports}(),Ue=e(He);const Pe=/\[object Object\]/,Je=(e,t)=>{"string"==typeof e&&Pe.test(e)||t()},Be=(e,t)=>{ne()&&(ce.debug([e,t]),ce.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},Ke=(e,t,n,i={})=>{var o,r;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map),e.nextHooks.get(t)instanceof Map==0&&e.nextHooks.set(t,new Map),"function"==typeof i.afterPatch&&(null===(o=e.nextHooks.get(t))||void 0===o||o.set("afterPatch",i.afterPatch)),"function"==typeof i.beforePatch&&(null===(r=e.nextHooks.get(t))||void 0===r||r.set("beforePatch",i.beforePatch)),e.nextState.set(t,n),(e=>{var t,n,i;null===(t=e.nextHooks)||void 0===t||t.forEach(((t,n)=>{var i;const o=t.get("beforePatch");"function"==typeof o&&o(null===(i=e.nextState)||void 0===i?void 0:i.get(n),e.nextState,e,n)})),(null===(n=e.nextState)||void 0===n?void 0:n.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(i=e.nextHooks)||void 0===i||i.forEach(((t,n)=>{const i=t.get("afterPatch");"function"==typeof i&&i(e.state[n],e.state,e,n)}))),delete e.nextHooks})(e)};function We(e,t,n,i,o,r={}){if("production"!==Y||"production"!==Q())if(n(o))Ke(e,t,o,r.hooks);else if(void 0===o&&!0!==r.required&&n(r.defaultValue))Ke(e,t,r.defaultValue,r.hooks);else{const n=new Set(i);r.required||n.add(null),((e,t,n,i)=>{he(`[${e.constructor.name}] The property value: (${n}) for '${t}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)})(e,t,o,n)}else void 0!==o?Ke(e,t,o,r.hooks):n(void 0)?Ke(e,t,void 0,r.hooks):!0!==r.required&&n(r.defaultValue)&&Ke(e,t,r.defaultValue,r.hooks)}const De=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw ce.warn(["stringifyJson",e]),ce.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},Ge=/^[{[]/,Ye=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if(Ge.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){ce.warn(["parseJson",e]),ce.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},Ve=(e,t)=>{if(!e)return;const n=new Set,i=[e];let o=0;for(;o<i.length;){const e=i[o++];if(n.has(e))continue;if(n.add(e),t(e))return;const r=Array.from(e.children||[]);for(let e=0;e<r.length;e++)i.push(r[e]);if(e instanceof HTMLElement&&e.shadowRoot&&i.push(e.shadowRoot),e instanceof HTMLSlotElement){const t=e.assignedNodes({flatten:!0});for(let e=0;e<t.length;e++)t[e]instanceof Element&&i.push(t[e])}}},Qe=(e,t)=>((e,t)=>{let n=null;return Ve(t,(t=>!!(t instanceof Element&&t.matches(e))&&(n=t,!0))),n})(e,t||D()),Xe=(e,t)=>((e,t)=>{const n=[];return Ve(t,(t=>(t instanceof Element&&t.matches(e)&&n.push(t),!1))),n})(e,t||D());let Ze=null;const et=()=>(Ze=Ze||{backgroundColor:"#00000000",color:"#00000000",domNode:D().body,level:"Fail",score:1},Ze),tt=/(\d+, ){3}0\)/,nt=(e,t=et())=>{const n=getComputedStyle(e),i=tt.test(n.backgroundColor)?t.backgroundColor:Ue.hex(n.backgroundColor),o=tt.test(n.color)?t.color:Ue.hex(n.color),r=Ie(i,o),l={backgroundColor:i,color:o,domNode:e,level:(s=r,s>=7?"AAA":s>=4.5?"AA":s>=3?"AA Large":"Fail"),score:r};var s;return r<4.5&&ce.error(["Color-Contrast-Error",{backgroundColor:l.backgroundColor,color:l.color,level:l.level,score:l.score},l.domNode]),l},it=(e,t=et())=>{t.domNode instanceof HTMLElement&&(t=nt(t.domNode,t));const n=t.domNode.querySelector(e);if(null===n){const n=t.domNode.querySelectorAll('[class="hydrated"]');for(let i=0;i<n.length&&(t.domNode=n[i],null===(t=it(e,t)).domNode);i++);return t}return nt(n,t)};class ot{static queryHtmlElementColors(e,t,n=!1,i=!0){let o=null;if(!0===n||!1===ot.executionLock)if(!1===n&&(ot.cache.clear(),ot.cache.set(t.domNode,t),ot.executionLock=!0,!0===i&&ce.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)o=t;else{const n=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)n.add(e[t])}const i=t.domNode;if("function"==typeof i.assignedNodes){const e=i.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&n.add(e[t])}const r=t.domNode.children;for(let e=0;e<r.length;e++)n.add(r[e]);const l=Array.from(n);for(let n=0;n<l.length;n++){let i=ot.cache.get(l[n]);void 0===i&&(i=nt(l[n],t)),ot.cache.set(l[n],i);const r=ot.queryHtmlElementColors(e,i,!0,!1);if(null!==r){o=r;break}}}else ce.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===i&&ce.debug(`[KoliBriUtils] Color contrast analysis finished (${ot.cache.size} DOM elements are analysed).`),ot.executionLock=!1,ot.cache.clear()),o}}ot.executionLock=!1,ot.cache=new Map;class rt{}rt.getCssStyle=j,rt.patchTheme=(e,t,n,i)=>p(e,t,n,i),rt.patchThemeTag=(e,t,n,i)=>m(e,t,n,i),rt.querySelector=Qe,rt.querySelectorAll=Xe,rt.stringifyJson=De;const lt=e=>"object"==typeof e&&null!==e,st=(e,t=0)=>"string"==typeof e&&e.length>=t,at=e=>{if("object"!=typeof e||null===e)return st(e,1);for(const t in e)if(!1===st(t,1))return!1;return!0},ut=new Event("StateChange");var dt,ct,ft=e(ct?dt:(ct=1,dt=function(e){return function(t,n){if(!t)return e;var i;"string"==typeof t?i=t:n=t;var o=e;return i&&(o+="__"+i),o+(n?Object.keys(n).reduce((function(e,t){var i=n[t];return i&&(e+=" "+("boolean"==typeof i?o+"--"+t:o+"--"+t+"_"+i)),e}),""):"")}}));const mt=function(){const e=new Map,t=(t,n,i)=>{try{return e.get(t)(n,i)}catch{return e.set(t,ft(t)).get(t)(n,i)}};return t.forBlock=e=>{const n=(n,i)=>t(e,n,i);return n.forElement=n=>i=>t(e,n,i),n},t}(),pt={"kol-abbr":{modifiers:null},"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])},"kol-badge":{elements:{label:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["has-smart-button"])},"kol-version":{modifiers:null},"kol-accordion":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-avatar":{elements:{image:{modifiers:null},initials:{modifiers:null}},modifiers:null},"kol-card":{elements:{"close-button":{modifiers:null},content:{modifiers:null},header:{modifiers:null},link:{modifiers:null}},modifiers:null},"kol-dialog":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-modal":{elements:{blank:{modifiers:null},card:{modifiers:null}},modifiers:null},"kol-button":{elements:{"interactive-element":{modifiers:null},text:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["disabled","hide-label","inline","standalone"])},"kol-breadcrumb":{elements:{icon:{modifiers:null},link:{modifiers:null},list:{modifiers:null},"list-element":{modifiers:null},"list-element-span":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-nav":{elements:{compact:{modifiers:null},entry:{modifiers:new Set(["button","collapsible","link"])},"entry-wrapper":{modifiers:null},list:{modifiers:new Set(["nested","vertical"])},"list-item":{modifiers:new Set(["active","expanded","has-children"])},navigation:{modifiers:null},"toggle-button":{modifiers:null}},modifiers:new Set(["is-compact"])},"kol-kolibri":{elements:{text:{modifiers:null}},modifiers:null},"kol-popover-button":{elements:{popover:{modifiers:null}},modifiers:new Set(["inline","open"])},"kol-details":{elements:{content:{modifiers:null},heading:{modifiers:null},wrapper:{modifiers:null},"wrapper-animation":{modifiers:null}},modifiers:new Set(["disabled","open"])},"kol-drawer":{elements:{content:{modifiers:null},dialog:{modifiers:null},wrapper:{modifiers:new Set(["bottom","is-closing","left","open","right","top"])}},modifiers:null},"kol-heading":{modifiers:new Set(["group"])},"kol-headline":{modifiers:new Set(["group","h1","h2","h3","h4","h5","h6","primary","secondary","single","strong"])},"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null},"kol-meter":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-fill":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-label":{modifiers:null},"bar-state":{modifiers:new Set(["critical","optimum","suboptimal"])},"bar-track":{modifiers:null},unit:{modifiers:null},value:{modifiers:null},"value-unit":{modifiers:null}},modifiers:new Set(["vertical"])},"kol-quote":{elements:{blockquote:{modifiers:null},cite:{modifiers:null},figcaption:{modifiers:null},quote:{modifiers:null}},modifiers:new Set(["block","inline"])},"kol-skip-nav":{elements:{list:{modifiers:null},"list-item":{modifiers:null}},modifiers:null},"kol-span":{elements:{container:{modifiers:null},icon:{modifiers:new Set(["bottom","left","right","top"])},label:{modifiers:null},slot:{modifiers:null}},modifiers:new Set(["has-badge","hide-label"])},"kol-link":{elements:{"interactive-element":{modifiers:null},icon:{modifiers:null},text:{modifiers:null}},modifiers:new Set(["disabled","external-link","hide-label","inline","standalone"])},"kol-form":{elements:{alert:{modifiers:null},form:{modifiers:null},link:{modifiers:null},"mandatory-fields-hint":{modifiers:null}},modifiers:null},"kol-form-field":{elements:{counter:{modifiers:null},hint:{modifiers:null},input:{modifiers:new Set(["orientation-horizontal","orientation-vertical"])},label:{modifiers:new Set(["legend"])},"label-text":{modifiers:null},msg:{modifiers:null},tooltip:{modifiers:null}},modifiers:new Set(["default","disabled","error","hidden-msg","hide-label","info","msg-type-default","msg-type-error","msg-type-info","msg-type-success","msg-type-warning","radio","read-only","required","success","touched","warning"])},"kol-input":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-input-container":{elements:{adornment:{modifiers:new Set(["end","start"])},button:{modifiers:null},container:{modifiers:null},filename:{modifiers:new Set(["has-file"])},icon:{modifiers:null},"smart-button":{modifiers:null}},modifiers:new Set(["default","disabled","error","info","is-dragover","success","warning"])},"kol-field-control":{elements:{hint:{modifiers:null},input:{modifiers:null},label:{modifiers:new Set(["visually-hidden"])},"label-text":{modifiers:null}},modifiers:new Set(["default","disabled","error","hide-label","info","label-align-left","label-align-right","read-only","required","success","touched","warning"])},"kol-checkbox":{elements:{icon:{modifiers:null},input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","indeterminate","info","required","success","touched","variant-button","variant-default","variant-switch","warning"])},"kol-input-checkbox":{elements:{"field-control":{modifiers:new Set(["checked","indeterminate","variant-button","variant-default","variant-switch"])}},modifiers:new Set(["checked","indeterminate","label-align-left","label-align-right","variant-button","variant-default","variant-switch"])},"kol-input-color":{elements:{input:{modifiers:new Set(["color"])}},modifiers:null},"kol-input-date":{modifiers:null},"kol-input-email":{modifiers:null},"kol-input-file":{modifiers:null},"kol-input-number":{elements:{"step-button":{modifiers:null}},modifiers:null},"kol-input-password":{elements:{"password-toggle-button":{modifiers:null}},modifiers:null},"kol-input-radio":{elements:{input:{modifiers:null}},modifiers:new Set(["checked","default","disabled","error","info","required","success","touched","warning"])},"kol-select":{elements:{optgroup:{modifiers:new Set(["disabled"])},option:{modifiers:new Set(["disabled","selected"])}},modifiers:new Set(["default","disabled","error","info","required","success","touched","warning"])},"kol-pagination":{elements:{button:{modifiers:new Set(["first","last","next","numbers","previous","selected"])},entries:{modifiers:null},navigation:{modifiers:null},"navigation-list":{modifiers:null},"page-size-select":{modifiers:null},separator:{modifiers:null}},modifiers:null},"kol-custom-suggestions-option":{modifiers:new Set(["disabled"])},"kol-custom-suggestions-options-group":{modifiers:new Set(["cursor-hidden","open"])},"kol-custom-suggestions-toggle":{modifiers:new Set(["disabled"])},"kol-combobox":{elements:{delete:{modifiers:null},group:{modifiers:null}},modifiers:new Set(["open"])},"kol-combobox-toggle":{modifiers:null},"kol-single-select":{elements:{delete:{modifiers:null},group:{modifiers:null},"no-results-message":{modifiers:null}},modifiers:new Set(["open"])},"kol-input-range":{elements:{input:{modifiers:new Set(["number","range"])},"inputs-wrapper":{modifiers:null}},modifiers:null},"kol-input-text":{elements:{"clear-button":{modifiers:new Set(["hidden"])}},modifiers:null},"kol-split-button":{elements:{button:{modifiers:null},"horizontal-line":{modifiers:null},root:{modifiers:null},"secondary-button":{modifiers:null}},modifiers:null},"kol-spin":{elements:{loader:{modifiers:null},spinner:{modifiers:new Set(["cycle","dot","none"])},"spinner-element":{modifiers:new Set(["1","2","3","neutral"])}},modifiers:null},"kol-table":{elements:{body:{modifiers:null},caption:{modifiers:null},cell:{modifiers:new Set(["actions","align-center","align-justify","align-left","align-right","ascending","body","descending","header","none","other","selection","states","sticky-left","sticky-right"])},"cell-actions":{modifiers:null},"cell-states":{modifiers:null},"focus-element":{modifiers:null},footer:{modifiers:null},head:{modifiers:null},"head-row":{modifiers:null},loader:{modifiers:new Set(["shown"])},row:{modifiers:new Set(["body","footer"])},"scroll-container":{modifiers:null},selection:{modifiers:new Set(["checked","indeterminate"])},"selection-icon":{modifiers:null},"selection-input":{modifiers:new Set(["checkbox","radio"])},"selection-input-tooltip":{modifiers:null},"selection-label":{modifiers:new Set(["disabled"])},settings:{modifiers:null},sort:{modifiers:null},"sort-button":{modifiers:null},"sort-order":{modifiers:null},spacer:{modifiers:new Set(["foot","head"])},"spacer-line":{modifiers:new Set(["foot","head"])},table:{modifiers:null}},modifiers:null},"kol-tabs":{elements:{"button-create":{modifiers:null},"button-group":{modifiers:null},content:{modifiers:null},tab:{modifiers:null},tablist:{modifiers:null}},modifiers:new Set(["align-bottom","align-left","align-right","align-top"])},"kol-textarea":{modifiers:new Set(["default","disabled","error","info","readonly","required","success","touched","warning"])},"kol-toolbar":{elements:{item:{modifiers:null}},modifiers:new Set(["orientation-horizontal","orientation-vertical"])},"kol-tree":{elements:{"treeview-navigation":{modifiers:null}},modifiers:null},"kol-tree-item":{elements:{children:{modifiers:null},link:{modifiers:new Set(["active","first-level"])},"link-inner":{modifiers:null},text:{modifiers:null},"toggle-button":{modifiers:null},"toggle-button-icon":{modifiers:null},"toggle-button-placeholder":{modifiers:null}},modifiers:null},"kol-image":{modifiers:null},"kol-popover":{elements:{arrow:{modifiers:new Set(["top","right","bottom","left"])}},modifiers:null},"kol-progress":{elements:{bar:{modifiers:null},"bar-background":{modifiers:null},"bar-border":{modifiers:null},"bar-label":{modifiers:null},"bar-progress":{modifiers:null},"bar-unit":{modifiers:null},"bar-value":{modifiers:null},cycle:{modifiers:null},"cycle-background":{modifiers:null},"cycle-border":{modifiers:null},"cycle-label":{modifiers:null},"cycle-progress":{modifiers:null},"cycle-text":{modifiers:null},"cycle-value":{modifiers:null},"cycle-whitespace":{modifiers:null}},modifiers:null},"kol-tooltip":{elements:{arrow:{modifiers:null},content:{modifiers:null},floating:{modifiers:null}},modifiers:null}};export{Ue as A,pt as B,Ie as C,Te as D,J as E,ne as F,at as G,st as H,We as I,Qe as J,B as K,ce as L,ee as M,nt as N,Xe as O,it as P,ot as Q,y as R,ut as S,K as T,De as U,oe as V,k as X,rt as a,mt as b,Ee as c,P as d,be as e,ve as f,he as g,me as h,V as i,E as j,lt as k,we as l,$e as m,qe as n,Je as o,Ye as p,D as q,_e as r,Be as s,ie as t,Se as u,re as v,w,W as x,te as y,e as z}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as o,h as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{X as a}from"./bem-registry.js";import{B as l}from"./base-web-component.js";import{D as r,c as s,a as c,b as d,d as h,C as k}from"./toggle-handler.js";import{l as b}from"./level.js";import{d as f}from"./disabled.js";import"./props-from-config.js";import{l as p}from"./label-lang-segment.js";import{o as m}from"./open.js";import{c as u,a as g}from"./dev.utils.js";import{c as _,d as y,a as w}from"./element-interaction.js";const v=o(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.accordionId=u("accordion"),this.controlId=g(this.accordionId,"control"),this.detailsOpen=!1,this.expanded=!1,this.headingId=g(this.accordionId,"heading"),this.transitionMs=r,this.ctaRef=_((()=>!0===this.getRenderProp("disabled"))),this.hasLoaded=!1,this.openAnimation=s({getTransitionMs:()=>this.transitionMs,setDetailsOpen:o=>this.detailsOpen=o,setExpanded:o=>this.expanded=o}),this.handleToggle=c({getHost:()=>this.host,getOn:()=>this.getRenderProp("on"),isDisabled:()=>!0===this.getRenderProp("disabled"),isOpen:()=>!0===this.getRenderProp("open"),setOpen:o=>this._open=o}),this.propsConfig=d,this._disabled=!1,this._level=0,this._on=void 0,this._open=!1}watchDisabled(o){f.apply(o,(o=>this.setRenderProp("disabled",o)))}watchLabel(o){p.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchLevel(o){b.apply(o,(o=>this.setRenderProp("level",o)))}watchOn(o){h.apply(o,(o=>this.setRenderProp("on",o)))}watchOpen(o){m.apply(o,(o=>{this.setRenderProp("open",o),this.openAnimation.syncOpen(o,this.hasLoaded)}))}focus(o){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){var o;this.transitionMs=null!==(o=a("collapsibleTransitionMs",this.host))&&void 0!==o?o:r,this.watchDisabled(this._disabled),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchOpen(this._open)}componentDidLoad(){this.hasLoaded=!0}disconnectedCallback(){this.openAnimation.dispose()}render(){return e(t,{key:"fe83d27f74efae425c3d35782f1714ba8f8c501b"},e(k,{key:"d162255bd8d6d611d60b0f1d05fd2e09adaa01a2",block:"kol-accordion",controlId:this.controlId,detailsOpen:this.detailsOpen,disabled:this.getRenderProp("disabled"),expanded:this.expanded,handleToggle:this.handleToggle,headingId:this.headingId,icons:this.getRenderProp("open")?"kolicon-chevron-down":"kolicon-chevron-right",label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:this.getRenderProp("on"),open:this.getRenderProp("open"),refHeadingButton:this.ctaRef,transitionMs:this.transitionMs},e("slot",{key:"e048d507c3af993c510af9d48ccb1281331ee0fe"})))}get host(){return this}static get watchers(){return{_disabled:[{watchDisabled:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-accordion { } .kol-accordion__heading { display: flex; min-height: var(--a11y-min-size); } .kol-accordion__heading:not([aria-disabled=true]) { cursor: pointer; } .kol-accordion__heading { } .kol-accordion__heading::before { content: ""; } .kol-accordion__heading { } .kol-accordion__heading > .kol-headline { display: flex; flex: 1; margin: 0; text-align: left; font-weight: 400; } .kol-accordion__heading > .kol-headline > .kol-span { flex: 1 0 100%; align-items: flex-start; } @media (prefers-reduced-motion) { .kol-accordion__wrapper-animation, .kol-accordion__wrapper { transition: none !important; } } .kol-accordion { } @media print { .kol-accordion:not(.kol-accordion--open) .kol-accordion__wrapper-animation { display: none; } } .kol-accordion__wrapper { transform: translateZ(0); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows var(--collapsible-transition-duration, 0.3s); } .kol-accordion__wrapper-animation { opacity: 0; transform: scaleY(0); transform-origin: top; min-height: 0; visibility: hidden; transition: transform var(--collapsible-transition-duration, 0.3s), opacity var(--collapsible-transition-duration, 0.3s), visibility var(--collapsible-transition-duration, 0.3s); } .kol-accordion--open .kol-accordion__wrapper { grid-template-rows: 1fr; } .kol-accordion--open .kol-accordion__wrapper-animation { opacity: 1; transform: scaleY(1); visibility: visible; } .kol-accordion--open:focus-within { position: relative; z-index: 100; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } }'}}},[801,"kol-accordion",{_disabled:[4],_label:[1],_level:[2],_on:[16],_open:[1540],controlId:[32],detailsOpen:[32],expanded:[32],headingId:[32],transitionMs:[32],focus:[64],click:[64]},void 0,{_disabled:[{watchDisabled:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}]);n([y("ctaRef")],v.prototype,"focus",null),n([w("ctaRef")],v.prototype,"click",null);const x=v,z=function(){"undefined"!=typeof customElements&&["kol-accordion"].forEach((o=>{"kol-accordion"===o&&(customElements.get(i(o))||customElements.define(i(o),v))}))};export{x as KolAccordion,z as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as o,h as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{X as a}from"./bem-registry.js";import{B as l}from"./base-web-component.js";import{D as r,c as s,a as c,b as d,d as h,C as k}from"./toggle-handler.js";import{l as b}from"./level.js";import{d as f}from"./disabled.js";import"./props-from-config.js";import{l as p}from"./label-lang-segment.js";import{o as m}from"./open.js";import{c as u,a as g}from"./dev.utils.js";import{c as _,d as y,a as w}from"./element-interaction.js";const v=o(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.accordionId=u("accordion"),this.controlId=g(this.accordionId,"control"),this.detailsOpen=!1,this.expanded=!1,this.headingId=g(this.accordionId,"heading"),this.transitionMs=r,this.ctaRef=_((()=>!0===this.getRenderProp("disabled"))),this.hasLoaded=!1,this.openAnimation=s({getTransitionMs:()=>this.transitionMs,setDetailsOpen:o=>this.detailsOpen=o,setExpanded:o=>this.expanded=o}),this.handleToggle=c({getHost:()=>this.host,getOn:()=>this.getRenderProp("on"),isDisabled:()=>!0===this.getRenderProp("disabled"),isOpen:()=>!0===this.getRenderProp("open"),setOpen:o=>this._open=o}),this.propsConfig=d,this._disabled=!1,this._level=0,this._on=void 0,this._open=!1}watchDisabled(o){f.apply(o,(o=>this.setRenderProp("disabled",o)))}watchLabel(o){p.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchLevel(o){b.apply(o,(o=>this.setRenderProp("level",o)))}watchOn(o){h.apply(o,(o=>this.setRenderProp("on",o)))}watchOpen(o){m.apply(o,(o=>{this.setRenderProp("open",o),this.openAnimation.syncOpen(o,this.hasLoaded)}))}focus(o){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){var o;this.transitionMs=null!==(o=a("collapsibleTransitionMs",this.host))&&void 0!==o?o:r,this.watchDisabled(this._disabled),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchOpen(this._open)}componentDidLoad(){this.hasLoaded=!0}disconnectedCallback(){this.openAnimation.dispose()}render(){return e(t,{key:"fe83d27f74efae425c3d35782f1714ba8f8c501b"},e(k,{key:"d162255bd8d6d611d60b0f1d05fd2e09adaa01a2",block:"kol-accordion",controlId:this.controlId,detailsOpen:this.detailsOpen,disabled:this.getRenderProp("disabled"),expanded:this.expanded,handleToggle:this.handleToggle,headingId:this.headingId,icons:this.getRenderProp("open")?"kolicon-chevron-down":"kolicon-chevron-right",label:this.getRenderProp("label"),level:this.getRenderProp("level"),on:this.getRenderProp("on"),open:this.getRenderProp("open"),refHeadingButton:this.ctaRef,transitionMs:this.transitionMs},e("slot",{key:"e048d507c3af993c510af9d48ccb1281331ee0fe"})))}get host(){return this}static get watchers(){return{_disabled:[{watchDisabled:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-accordion { } .kol-accordion__heading { display: flex; min-height: var(--a11y-min-size); } .kol-accordion__heading:not([aria-disabled=true]) { cursor: pointer; } .kol-accordion__heading { } .kol-accordion__heading::before { content: ""; } .kol-accordion__heading { } .kol-accordion__heading > .kol-headline { display: flex; flex: 1; margin: 0; text-align: left; font-weight: 400; } .kol-accordion__heading > .kol-headline > .kol-span { flex: 1 0 100%; align-items: flex-start; } @media (prefers-reduced-motion) { .kol-accordion__wrapper-animation, .kol-accordion__wrapper { transition: none !important; } } .kol-accordion { } @media print { .kol-accordion:not(.kol-accordion--open) .kol-accordion__wrapper-animation { display: none; } } .kol-accordion__wrapper { transform: translateZ(0); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows var(--collapsible-transition-duration, 0.3s); } .kol-accordion__wrapper-animation { opacity: 0; transform: scaleY(0); transform-origin: top; min-height: 0; visibility: hidden; transition: transform var(--collapsible-transition-duration, 0.3s), opacity var(--collapsible-transition-duration, 0.3s), visibility var(--collapsible-transition-duration, 0.3s); } .kol-accordion--open .kol-accordion__wrapper { grid-template-rows: 1fr; } .kol-accordion--open .kol-accordion__wrapper-animation { opacity: 1; transform: scaleY(1); visibility: visible; } .kol-accordion--open:focus-within { position: relative; z-index: 100; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } }'}}},[801,"kol-accordion",{_disabled:[4],_label:[1],_level:[2],_on:[16],_open:[1540],controlId:[32],detailsOpen:[32],expanded:[32],headingId:[32],transitionMs:[32],focus:[64],click:[64]},void 0,{_disabled:[{watchDisabled:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}]);n([y("ctaRef")],v.prototype,"focus",null),n([w("ctaRef")],v.prototype,"click",null);const x=v,z=function(){"undefined"!=typeof customElements&&["kol-accordion"].forEach((o=>{"kol-accordion"===o&&(customElements.get(i(o))||customElements.define(i(o),v))}))};export{x as KolAccordion,z as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as o,forceUpdate as e,h as t,Host as i,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import"./bem-registry.js";import{l as a}from"./level.js";import{c as r,n as s,a as c,b as h}from"./props-from-config.js";import{h as d}from"./has-closer.js";import{l as k}from"./label-lang-segment.js";import{A as f}from"./component2.js";import{B as b}from"./base-web-component.js";import{T as m}from"./behavior.js";import{c as p,n as u}from"./dev.utils.js";import{c as g}from"./element-interaction.js";import{d as _,K as y}from"./events.js";const v=["default","info","success","warning","error"],w=["card","msg"],x=r("alert",!1,s),T=c(),z=r("type","default",(o=>{const e=h(o);if(v.includes(e))return e;throw Error("Invalid alert type: "+e)}),(()=>!0)),C=r("variant","msg",(o=>{const e=h(o);if(w.includes(e))return e;throw Error("Invalid alert variant: "+e)}),(()=>!0)),j={optional:[T,x,z,C,d,k,a]},B=o(class extends b{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.headingId=p("alert-heading"),this.closerAriaDescriptionId=u(),this.translateCloseAlert=l("kol-close-alert"),this.closerRef=g(),this.closerTooltipBehavior=new m(this.stateAccess),this.propsConfig=j,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=0,this._on=void 0,this._type="default",this._variant="msg",this.handleAlertTimeout=()=>{this.watchAlert(!1),e(this)},this.handleCloserClick=o=>{var e,t;o.stopPropagation(),this.closerTooltipBehavior.hideTooltip(),null===(t=(e=this.getRenderProp("on")).onClose)||void 0===t||t.call(e,new Event("Close")),this.host&&_(this.host,y.close)}}watchAlert(o){x.apply(o,(o=>{this.setRenderProp("alert",o),this.syncAlertEffects(o)}))}watchHasCloser(o){d.apply(o,(o=>this.setRenderProp("hasCloser",o)))}watchLabel(o){k.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchLevel(o){a.apply(o,(o=>this.setRenderProp("level",o)))}watchOn(o){T.apply(o,(o=>this.setRenderProp("on",o)))}watchType(o){z.apply(o,(o=>this.setRenderProp("type",o)))}watchVariant(o){C.apply(o,(o=>this.setRenderProp("variant",o)))}componentWillLoad(){this.watchAlert(this._alert),this.watchHasCloser(this._hasCloser),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchType(this._type),this.watchVariant(this._variant),this.closerTooltipBehavior.componentWillLoad({label:this.translateCloseAlert})}componentDidRender(){this.closerRef.el&&this.closerTooltipBehavior.syncListeners(void 0,this.closerRef.el,!0)}disconnectedCallback(){this.closerTooltipBehavior.destroy(),this.syncAlertEffects(!1)}syncAlertEffects(o){if(clearTimeout(this.alertTimeout),o){if("undefined"!=typeof navigator&&"function"==typeof navigator.vibrate){const o=navigator.userActivation;if(((null==o?void 0:o.isActive)||(null==o?void 0:o.hasBeenActive))&&matchMedia("(any-pointer: coarse)").matches)try{navigator.vibrate([100,75,100,75,100])}catch(o){}}this.alertTimeout=setTimeout((()=>this.handleAlertTimeout()),1e4)}}render(){return t(i,{key:"5753d80e812d3a51c88557561e20af9a0a531587"},t(f,{key:"75ecec655beb2cca1c939e0551010642fbd57375",alert:this.getRenderProp("alert"),handleCloserClick:this.handleCloserClick,closerAriaDescriptionId:this.closerAriaDescriptionId,hasCloser:this.getRenderProp("hasCloser"),headingId:this.headingId,label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloserButton:this.closerRef,refCloserTooltip:this.closerTooltipBehavior.setTooltipElementRef,type:this.getRenderProp("type"),variant:this.getRenderProp("variant")},t("slot",{key:"7d714fd6d9ca75dd17eec734f7f0a590f66d860f"})))}get host(){return this}static get watchers(){return{_alert:[{watchAlert:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_type:[{watchType:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } }'}}},[801,"kol-alert",{_alert:[4],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],_on:[16],_type:[1],_variant:[1],headingId:[32],closerAriaDescriptionId:[32]},void 0,{_alert:[{watchAlert:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_type:[{watchType:0}],_variant:[{watchVariant:0}]}]),I=B,A=function(){"undefined"!=typeof customElements&&["kol-alert"].forEach((o=>{"kol-alert"===o&&(customElements.get(n(o))||customElements.define(n(o),B))}))};export{I as KolAlert,A as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as o,forceUpdate as e,h as t,Host as i,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import"./bem-registry.js";import{l as a}from"./level.js";import{c as r,n as s,a as c,b as h}from"./props-from-config.js";import{h as d}from"./has-closer.js";import{l as k}from"./label-lang-segment.js";import{A as f}from"./component2.js";import{B as b}from"./base-web-component.js";import{T as m}from"./behavior.js";import{c as p,n as u}from"./dev.utils.js";import{c as g}from"./element-interaction.js";import{d as _,K as y}from"./events.js";const v=["default","info","success","warning","error"],w=["card","msg"],x=r("alert",!1,s),T=c(),z=r("type","default",(o=>{const e=h(o);if(v.includes(e))return e;throw Error("Invalid alert type: "+e)}),(()=>!0)),C=r("variant","msg",(o=>{const e=h(o);if(w.includes(e))return e;throw Error("Invalid alert variant: "+e)}),(()=>!0)),j={optional:[T,x,z,C,d,k,a]},B=o(class extends b{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.headingId=p("alert-heading"),this.closerAriaDescriptionId=u(),this.translateCloseAlert=l("kol-close-alert"),this.closerRef=g(),this.closerTooltipBehavior=new m(this.stateAccess),this.propsConfig=j,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=0,this._on=void 0,this._type="default",this._variant="msg",this.handleAlertTimeout=()=>{this.watchAlert(!1),e(this)},this.handleCloserClick=o=>{var e,t;o.stopPropagation(),this.closerTooltipBehavior.hideTooltip(),null===(t=(e=this.getRenderProp("on")).onClose)||void 0===t||t.call(e,new Event("Close")),this.host&&_(this.host,y.close)}}watchAlert(o){x.apply(o,(o=>{this.setRenderProp("alert",o),this.syncAlertEffects(o)}))}watchHasCloser(o){d.apply(o,(o=>this.setRenderProp("hasCloser",o)))}watchLabel(o){k.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchLevel(o){a.apply(o,(o=>this.setRenderProp("level",o)))}watchOn(o){T.apply(o,(o=>this.setRenderProp("on",o)))}watchType(o){z.apply(o,(o=>this.setRenderProp("type",o)))}watchVariant(o){C.apply(o,(o=>this.setRenderProp("variant",o)))}componentWillLoad(){this.watchAlert(this._alert),this.watchHasCloser(this._hasCloser),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchType(this._type),this.watchVariant(this._variant),this.closerTooltipBehavior.componentWillLoad({label:this.translateCloseAlert})}componentDidRender(){this.closerRef.el&&this.closerTooltipBehavior.syncListeners(void 0,this.closerRef.el,!0)}disconnectedCallback(){this.closerTooltipBehavior.destroy(),this.syncAlertEffects(!1)}syncAlertEffects(o){if(clearTimeout(this.alertTimeout),o){if("undefined"!=typeof navigator&&"function"==typeof navigator.vibrate){const o=navigator.userActivation;if(((null==o?void 0:o.isActive)||(null==o?void 0:o.hasBeenActive))&&matchMedia("(any-pointer: coarse)").matches)try{navigator.vibrate([100,75,100,75,100])}catch(o){}}this.alertTimeout=setTimeout((()=>this.handleAlertTimeout()),1e4)}}render(){return t(i,{key:"5753d80e812d3a51c88557561e20af9a0a531587"},t(f,{key:"75ecec655beb2cca1c939e0551010642fbd57375",alert:this.getRenderProp("alert"),handleCloserClick:this.handleCloserClick,closerAriaDescriptionId:this.closerAriaDescriptionId,hasCloser:this.getRenderProp("hasCloser"),headingId:this.headingId,label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloserButton:this.closerRef,refCloserTooltip:this.closerTooltipBehavior.setTooltipElementRef,type:this.getRenderProp("type"),variant:this.getRenderProp("variant")},t("slot",{key:"7d714fd6d9ca75dd17eec734f7f0a590f66d860f"})))}get host(){return this}static get watchers(){return{_alert:[{watchAlert:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_type:[{watchType:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: ""; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } }'}}},[801,"kol-alert",{_alert:[4],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],_on:[16],_type:[1],_variant:[1],headingId:[32],closerAriaDescriptionId:[32]},void 0,{_alert:[{watchAlert:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_type:[{watchType:0}],_variant:[{watchVariant:0}]}]),I=B,A=function(){"undefined"!=typeof customElements&&["kol-alert"].forEach((o=>{"kol-alert"===o&&(customElements.get(n(o))||customElements.define(n(o),B))}))};export{I as KolAlert,A as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as o,h as t,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{f as l,s as a,o as r}from"./bem-registry.js";import{c as s}from"./color.js";import"./props-from-config.js";import{l as c}from"./label-with-expert-slot.js";import{s as d}from"./smart-button.js";import{s as h}from"./component3.js";import{B as b}from"./component4.js";import{B as k}from"./base-web-component.js";import{r as f}from"./resolve-props.js";import{T as m}from"./behavior.js";import{c as u,n as p}from"./dev.utils.js";import{c as g,d as _}from"./element-interaction.js";import{d as y,K as v}from"./events.js";const w={required:[c],optional:[s,d,h]};l("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const x=o(class extends k{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.labelId=u("badge-label"),this.ariaDescriptionId=p(),this.ctaRef=g(),this.tooltipBehavior=new m(this.stateAccess),this.propsConfig=w,this._color="#000",this._icons=void 0,this._smartButton=void 0,this.handleClick=o=>{var t;o.stopPropagation(),this.tooltipBehavior.hideTooltip();const e=null===(t=this.smartButtonProps)||void 0===t?void 0:t.on.onClick;"function"==typeof e&&(a(o,this.ctaRef.el),e(o,void 0)),this.host&&y(this.host,v.click)},this.handleMouseDown=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onMouseDown)||void 0===i||i.call(e,o),this.host&&y(this.host,v.mousedown)},this.handleFocus=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onFocus)||void 0===i||i.call(e,o),this.host&&y(this.host,v.focus)},this.handleBlur=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onBlur)||void 0===i||i.call(e,o),this.host&&y(this.host,v.blur)}}watchColor(o){s.apply(o,(o=>this.setRenderProp("color",o)))}watchIcons(o){h.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchSmartButton(o){this.applySmartButton(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this.watchColor(this._color),this.watchIcons(this._icons),this.watchLabel(this._label),this.watchSmartButton(this._smartButton)}componentDidRender(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}disconnectedCallback(){this.tooltipBehavior.destroy()}applySmartButton(o){r(o,(()=>{this.unsetRenderProp("smartButton"),this.smartButtonProps=void 0,null!=o&&d.apply(o,(o=>{this.setRenderProp("smartButton",o),this.smartButtonProps=f(Object.assign(Object.assign({},o),{_hideLabel:!0,_ariaControls:this.labelId}),this.host),this.tooltipBehavior.componentWillLoad({label:this.smartButtonProps.label,align:this.smartButtonProps.tooltipAlign})}))}))}render(){const o=this.getRenderProp("smartButton"),i=this.smartButtonProps;return t(e,{key:"92a82608b8424d8b91480b7dd132afc12fec8717"},t(b,{key:"3a0ec94ab587dc7b6e49f2530ad61d7fb590b501",color:this.getRenderProp("color"),icons:this.getRenderProp("icons"),label:this.getRenderProp("label"),smartButton:"object"==typeof o&&null!==o&&void 0!==i?{ariaDescriptionId:this.ariaDescriptionId,handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,labelId:this.labelId,refSmartButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,resolvedButton:i}:void 0}))}get host(){return this}static get watchers(){return{_color:[{watchColor:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_smartButton:[{watchSmartButton:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-badge { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: flex; align-items: center; justify-content: space-between; } .kol-badge > br { user-select: none; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-badge .kol-badge__smart-button { width: auto; order: 3; } }'}}},[545,"kol-badge",{_color:[1],_icons:[1],_label:[1],_smartButton:[1,"_smart-button"],labelId:[32],ariaDescriptionId:[32],focus:[64]},void 0,{_color:[{watchColor:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_smartButton:[{watchSmartButton:0}]}]);n([_("ctaRef")],x.prototype,"focus",null);const B=x,z=function(){"undefined"!=typeof customElements&&["kol-badge"].forEach((o=>{"kol-badge"===o&&(customElements.get(i(o))||customElements.define(i(o),x))}))};export{B as KolBadge,z as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as o,h as t,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{f as l,s as a,o as r}from"./bem-registry.js";import{c as s}from"./color.js";import"./props-from-config.js";import{l as c}from"./label-with-expert-slot.js";import{s as d}from"./smart-button.js";import{s as h}from"./component3.js";import{B as b}from"./component4.js";import{B as k}from"./base-web-component.js";import{r as f}from"./resolve-props.js";import{T as m}from"./behavior.js";import{c as u,n as p}from"./dev.utils.js";import{c as g,d as _}from"./element-interaction.js";import{d as y,K as v}from"./events.js";const w={required:[c],optional:[s,d,h]};l("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const x=o(class extends k{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.labelId=u("badge-label"),this.ariaDescriptionId=p(),this.ctaRef=g(),this.tooltipBehavior=new m(this.stateAccess),this.propsConfig=w,this._color="#000",this._icons=void 0,this._smartButton=void 0,this.handleClick=o=>{var t;o.stopPropagation(),this.tooltipBehavior.hideTooltip();const e=null===(t=this.smartButtonProps)||void 0===t?void 0:t.on.onClick;"function"==typeof e&&(a(o,this.ctaRef.el),e(o,void 0)),this.host&&y(this.host,v.click)},this.handleMouseDown=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onMouseDown)||void 0===i||i.call(e,o),this.host&&y(this.host,v.mousedown)},this.handleFocus=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onFocus)||void 0===i||i.call(e,o),this.host&&y(this.host,v.focus)},this.handleBlur=o=>{var t,e,i;null===(i=null===(t=this.smartButtonProps)||void 0===t?void 0:(e=t.on).onBlur)||void 0===i||i.call(e,o),this.host&&y(this.host,v.blur)}}watchColor(o){s.apply(o,(o=>this.setRenderProp("color",o)))}watchIcons(o){h.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchSmartButton(o){this.applySmartButton(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.unsetRenderProp("smartButton"),this.watchColor(this._color),this.watchIcons(this._icons),this.watchLabel(this._label),this.watchSmartButton(this._smartButton)}componentDidRender(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}disconnectedCallback(){this.tooltipBehavior.destroy()}applySmartButton(o){r(o,(()=>{this.unsetRenderProp("smartButton"),this.smartButtonProps=void 0,null!=o&&d.apply(o,(o=>{this.setRenderProp("smartButton",o),this.smartButtonProps=f(Object.assign(Object.assign({},o),{_hideLabel:!0,_ariaControls:this.labelId}),this.host),this.tooltipBehavior.componentWillLoad({label:this.smartButtonProps.label,align:this.smartButtonProps.tooltipAlign})}))}))}render(){const o=this.getRenderProp("smartButton"),i=this.smartButtonProps;return t(e,{key:"92a82608b8424d8b91480b7dd132afc12fec8717"},t(b,{key:"3a0ec94ab587dc7b6e49f2530ad61d7fb590b501",color:this.getRenderProp("color"),icons:this.getRenderProp("icons"),label:this.getRenderProp("label"),smartButton:"object"==typeof o&&null!==o&&void 0!==i?{ariaDescriptionId:this.ariaDescriptionId,handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,labelId:this.labelId,refSmartButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,resolvedButton:i}:void 0}))}get host(){return this}static get watchers(){return{_color:[{watchColor:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_smartButton:[{watchSmartButton:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-badge { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: flex; align-items: center; justify-content: space-between; } .kol-badge > br { user-select: none; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-badge .kol-badge__smart-button { width: auto; order: 3; } }'}}},[545,"kol-badge",{_color:[1],_icons:[1],_label:[1],_smartButton:[1,"_smart-button"],labelId:[32],ariaDescriptionId:[32],focus:[64]},void 0,{_color:[{watchColor:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_smartButton:[{watchSmartButton:0}]}]);n([_("ctaRef")],x.prototype,"focus",null);const B=x,z=function(){"undefined"!=typeof customElements&&["kol-badge"].forEach((o=>{"kol-badge"===o&&(customElements.get(i(o))||customElements.define(i(o),x))}))};export{B as KolBadge,z as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,Fragment as e,proxyCustomElement as t,Host as i,transformTag as n}from"@stencil/core/internal/client";import{b as l,s as a,c as r,X as s}from"./bem-registry.js";import{B as c}from"./base-web-component.js";import{c as d}from"./links.js";import{t as k,d as b}from"./props-from-config.js";import{l as m}from"./label.js";import{I as f}from"./component5.js";import{L as h,l as p,a as u,d as g,b as y}from"./component6.js";import{r as _}from"./component7.js";import{v}from"./access-and-short-key.js";import{n as w}from"./dev.utils.js";import{c as x}from"./element-interaction.js";import{d as j,K as z}from"./events.js";import{a as T,b as L,c as B,h as C,s as G,i as I,d as O,t as P,e as E}from"./component3.js";import{d as S}from"./disabled.js";import{h as q}from"./href.js";import{l as F}from"./label-with-expert-slot.js";import{l as K}from"./link-target.js";import{T as D}from"./behavior.js";import{r as H,a as R}from"./unique-nav-labels.js";import{o as U}from"./ariaCurrentService.js";const V=d("KolBreadcrumb"),W={required:[V,m]},A=l.forBlock("kol-breadcrumb"),J=A(),M=A("icon"),N=A("link"),Q=A("list"),X=A("list-element"),Y=A("list-element-span"),Z=A("separator"),$=({label:t,linkItems:i,showCurrentPage:n})=>{const l=i.length-1;return o("nav",{class:J,"aria-label":t},o("ul",{class:Q},0===i.length&&o("li",null,o(f,{class:"kol-breadcrumb_icon",icons:"kolicon-house",label:""}),"…"),i.map(((t,i)=>((t,i,n,l)=>{const a=l?i!==n:i<n-1;if(i===n&&!l)return o(e,null);const{link:r}=t;return o("li",{class:X,key:i},i===n?o("span",{class:Y,"aria-current":"page"},r._hideLabel?o(f,{class:M,icons:"string"==typeof r._icons?r._icons:"kolicon-link",label:r._label?k(r._label):r._href}):o(e,null,_(r._label))):o("div",{class:N},o(h,Object.assign({},t.fcProps))),a&&o(f,{class:Z,icons:"kolicon-chevron-right",label:""}))})(t,i,l,n)))))},oo=t(class extends c{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.showCurrentPage=!0,this.propsConfig=W}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links),this.unsubscribeOnLocationChange=U((o=>{this.linkItems=this.linkItems.map((e=>{var t;const i=o===e.fcProps.href&&null!==(t=e.fcProps.ariaCurrentValue)&&void 0!==t?t:"";return e.fcProps.ariaCurrent===i?e:Object.assign(Object.assign({},e),{fcProps:Object.assign(Object.assign({},e.fcProps),{ariaCurrent:i})})}))}))}componentDidRender(){this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.linkItems.forEach((o=>o.destroy())),H(this.getRenderProp("label"))}applyLabel(o,e=!1){e||H(this.getRenderProp("label")),m.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),r(o),R(this.getRenderProp("label"))}applyLinks(o){V.apply(o,(o=>{this.setRenderProp("links",o),this.linkItems.forEach((o=>o.destroy())),this.linkItems=o.map((o=>((o,e)=>{var t;const i=new D(c.stateLess),n=x(),l=b(p);l.tabIndex=void 0;const r=(o,e)=>o.apply(e,(e=>{l[o.propName]=e}));return r(T,o._accessKey),r(L,o._ariaControls),r(u,o._ariaCurrentValue),r(B,o._ariaDescription),r(S,o._disabled),r(g,o._download),r(C,o._hideLabel),r(q,o._href),r(G,o._icons),r(I,null!==(t=o._inline)&&void 0!==t&&t),r(F,o._label),r(y,o._on),r(O,o._shortKey),"number"==typeof o._tabIndex&&r(P,o._tabIndex),r(K,o._target),r(E,o._tooltipAlign),v(o._accessKey,o._shortKey),i.componentWillLoad({label:(()=>{const o=l.label;if("string"==typeof o&&o.length>0)return o;const e=l.href;return"string"==typeof e?e:""})(),align:l.tooltipAlign}),l.ariaCurrent="",l.ariaDescriptionId=w(),l.expertSlot=""===o._label,l.handleAnchorClick=o=>{if(i.hideTooltip(),!0===l.disabled)return void o.preventDefault();const t="string"==typeof l.href?l.href:"",r=l.on;"function"==typeof(null==r?void 0:r.onClick)&&(a(o,n.el),r.onClick(o,t));const s=e();s&&j(s,z.click,t)},l.refAnchor=o=>{n(o)},l.refTooltip=i.setTooltipElementRef,{link:o,fcProps:l,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return this.showCurrentPage="hide"!==s("breadcrumbCurrentPage",this.host),o(i,{key:"8a8c9137c0491103f54d65dfe8db53c0c7d629b6"},o($,{key:"ab994f68a8b57e4dae385927a592db76907537cc",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems,showCurrentPage:this.showCurrentPage}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794582088003"); src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-breadcrumb__list, .kol-breadcrumb__list-element { display: flex; margin: 0; padding: 0; flex-wrap: wrap; place-items: center; list-style: none; } .kol-breadcrumb__list-element:first-child:last-child { min-height: var(--a11y-min-size); } }'}}},[545,"kol-breadcrumb",{_label:[1],_links:[1],linkItems:[32]},void 0,{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}]),eo=oo,to=function(){"undefined"!=typeof customElements&&["kol-breadcrumb"].forEach((o=>{"kol-breadcrumb"===o&&(customElements.get(n(o))||customElements.define(n(o),oo))}))};export{eo as KolBreadcrumb,to as defineCustomElement}
|
|
4
|
+
import{h as o,Fragment as e,proxyCustomElement as t,Host as i,transformTag as n}from"@stencil/core/internal/client";import{b as l,s as a,c as r,X as s}from"./bem-registry.js";import{B as c}from"./base-web-component.js";import{c as d}from"./links.js";import{t as k,d as b}from"./props-from-config.js";import{l as m}from"./label.js";import{I as f}from"./component5.js";import{L as h,l as p,a as u,d as g,b as y}from"./component6.js";import{r as _}from"./component7.js";import{v}from"./access-and-short-key.js";import{n as w}from"./dev.utils.js";import{c as x}from"./element-interaction.js";import{d as j,K as z}from"./events.js";import{a as T,b as L,c as B,h as C,s as G,i as I,d as O,t as P,e as E}from"./component3.js";import{d as S}from"./disabled.js";import{h as q}from"./href.js";import{l as F}from"./label-with-expert-slot.js";import{l as K}from"./link-target.js";import{T as D}from"./behavior.js";import{r as H,a as R}from"./unique-nav-labels.js";import{o as U}from"./ariaCurrentService.js";const V=d("KolBreadcrumb"),W={required:[V,m]},A=l.forBlock("kol-breadcrumb"),J=A(),M=A("icon"),N=A("link"),Q=A("list"),X=A("list-element"),Y=A("list-element-span"),Z=A("separator"),$=({label:t,linkItems:i,showCurrentPage:n})=>{const l=i.length-1;return o("nav",{class:J,"aria-label":t},o("ul",{class:Q},0===i.length&&o("li",null,o(f,{class:"kol-breadcrumb_icon",icons:"kolicon-house",label:""}),"…"),i.map(((t,i)=>((t,i,n,l)=>{const a=l?i!==n:i<n-1;if(i===n&&!l)return o(e,null);const{link:r}=t;return o("li",{class:X,key:i},i===n?o("span",{class:Y,"aria-current":"page"},r._hideLabel?o(f,{class:M,icons:"string"==typeof r._icons?r._icons:"kolicon-link",label:r._label?k(r._label):r._href}):o(e,null,_(r._label))):o("div",{class:N},o(h,Object.assign({},t.fcProps))),a&&o(f,{class:Z,icons:"kolicon-chevron-right",label:""}))})(t,i,l,n)))))},oo=t(class extends c{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.showCurrentPage=!0,this.propsConfig=W}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links),this.unsubscribeOnLocationChange=U((o=>{this.linkItems=this.linkItems.map((e=>{var t;const i=o===e.fcProps.href&&null!==(t=e.fcProps.ariaCurrentValue)&&void 0!==t?t:"";return e.fcProps.ariaCurrent===i?e:Object.assign(Object.assign({},e),{fcProps:Object.assign(Object.assign({},e.fcProps),{ariaCurrent:i})})}))}))}componentDidRender(){this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.linkItems.forEach((o=>o.destroy())),H(this.getRenderProp("label"))}applyLabel(o,e=!1){e||H(this.getRenderProp("label")),m.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),r(o),R(this.getRenderProp("label"))}applyLinks(o){V.apply(o,(o=>{this.setRenderProp("links",o),this.linkItems.forEach((o=>o.destroy())),this.linkItems=o.map((o=>((o,e)=>{var t;const i=new D(c.stateLess),n=x(),l=b(p);l.tabIndex=void 0;const r=(o,e)=>o.apply(e,(e=>{l[o.propName]=e}));return r(T,o._accessKey),r(L,o._ariaControls),r(u,o._ariaCurrentValue),r(B,o._ariaDescription),r(S,o._disabled),r(g,o._download),r(C,o._hideLabel),r(q,o._href),r(G,o._icons),r(I,null!==(t=o._inline)&&void 0!==t&&t),r(F,o._label),r(y,o._on),r(O,o._shortKey),"number"==typeof o._tabIndex&&r(P,o._tabIndex),r(K,o._target),r(E,o._tooltipAlign),v(o._accessKey,o._shortKey),i.componentWillLoad({label:(()=>{const o=l.label;if("string"==typeof o&&o.length>0)return o;const e=l.href;return"string"==typeof e?e:""})(),align:l.tooltipAlign}),l.ariaCurrent="",l.ariaDescriptionId=w(),l.expertSlot=""===o._label,l.handleAnchorClick=o=>{if(i.hideTooltip(),!0===l.disabled)return void o.preventDefault();const t="string"==typeof l.href?l.href:"",r=l.on;"function"==typeof(null==r?void 0:r.onClick)&&(a(o,n.el),r.onClick(o,t));const s=e();s&&j(s,z.click,t)},l.refAnchor=o=>{n(o)},l.refTooltip=i.setTooltipElementRef,{link:o,fcProps:l,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return this.showCurrentPage="hide"!==s("breadcrumbCurrentPage",this.host),o(i,{key:"8a8c9137c0491103f54d65dfe8db53c0c7d629b6"},o($,{key:"ab994f68a8b57e4dae385927a592db76907537cc",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems,showCurrentPage:this.showCurrentPage}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-breadcrumb__list, .kol-breadcrumb__list-element { display: flex; margin: 0; padding: 0; flex-wrap: wrap; place-items: center; list-style: none; } .kol-breadcrumb__list-element:first-child:last-child { min-height: var(--a11y-min-size); } }'}}},[545,"kol-breadcrumb",{_label:[1],_links:[1],linkItems:[32]},void 0,{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}]),eo=oo,to=function(){"undefined"!=typeof customElements&&["kol-breadcrumb"].forEach((o=>{"kol-breadcrumb"===o&&(customElements.get(n(o))||customElements.define(n(o),oo))}))};export{eo as KolBreadcrumb,to as defineCustomElement}
|