@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
|
-
import{r as e,h as o,H as t,g as i}from"./index-Dulj0jro.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{X as l}from"./common-BdSzSIXg.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{D as r,c as s,a as c,b as d,d as h,C as k}from"./toggle-handler-3qaN2kmt.js";import{l as b}from"./level-DsQ_pcyD.js";import{d as p}from"./disabled-BZXlWAgK.js";import"./props-from-config-ytxYrJUY.js";import{l as f}from"./label-lang-segment-iVD9hoM3.js";import{o as m}from"./open-CNHJhHsy.js";import{c as u,a as g}from"./dev.utils-DDWOHUcg.js";import{d as _,a as y,c as w}from"./element-interaction-sGYdEpmv.js";import"./Heading-C_CwXDMp.js";import"./clsx-COFh-Vc8.js";import"./block-bem-BGIVcYJu.js";import"./bem-registry-DQUGxdIS.js";import"./component-oUQcgxDj.js";import"./component-Clz6b6ho.js";import"./events-CRHxtwup.js";import"./label-hints-CLMiVvfk.js";import"./element-focus-BIRmGg5W.js";const x=class extends a{constructor(o){super(...arguments),new.target===x&&e(this,o),this.detailsId=u("details"),this.controlId=g(this.detailsId,"control"),this.detailsOpen=!1,this.expanded=!1,this.headingId=g(this.detailsId,"heading"),this.transitionMs=r,this.ctaRef=w((()=>!0===this.getRenderProp("disabled"))),this.hasLoaded=!1,this.openAnimation=s({getTransitionMs:()=>this.transitionMs,setDetailsOpen:e=>this.detailsOpen=e,setExpanded:e=>this.expanded=e}),this.handleToggle=c({getHost:()=>this.host,getOn:()=>this.getRenderProp("on"),isDisabled:()=>!0===this.getRenderProp("disabled"),isOpen:()=>!0===this.getRenderProp("open"),setOpen:e=>this._open=e}),this.propsConfig=d,this._disabled=!1,this._level=0,this._on=void 0,this._open=!1}watchDisabled(e){p.apply(e,(e=>this.setRenderProp("disabled",e)))}watchLabel(e){f.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchLevel(e){b.apply(e,(e=>this.setRenderProp("level",e)))}watchOn(e){h.apply(e,(e=>this.setRenderProp("on",e)))}watchOpen(e){m.apply(e,(e=>{this.setRenderProp("open",e),this.openAnimation.syncOpen(e,this.hasLoaded)}))}focus(e){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){var e;this.transitionMs=null!==(e=l("collapsibleTransitionMs",this.host))&&void 0!==e?e: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 o(t,{key:"b5a35968058d7262f0d4fc0f1d13b49e02f4033e"},o(k,{key:"f82fdcb5684df1d8d2182fd142c41941a53350c3",block:"kol-details",contentClass:"indented-text",controlId:this.controlId,detailsOpen:this.detailsOpen,disabled:this.getRenderProp("disabled"),expanded:this.expanded,handleToggle:this.handleToggle,headingId:this.headingId,icons:"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},o("slot",{key:"33775c434926dcb6dfa6471c80f39ffe5aabc29c"})))}get host(){return i(this)}static get watchers(){return{_disabled:[{watchDisabled:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}}};n([_("ctaRef")],x.prototype,"focus",null),n([y("ctaRef")],x.prototype,"click",null),x.style={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 { :host { display: inline-block; } .kol-details { } .kol-details__heading { display: flex; min-height: var(--a11y-min-size); } .kol-details__heading:not([aria-disabled=true]) { cursor: pointer; } .kol-details__heading { } .kol-details__heading::before { content: ""; } .kol-details__heading { } .kol-details__heading > .kol-headline { display: flex; flex: 1; margin: 0; text-align: left; font-weight: 400; } .kol-details__heading > .kol-headline > .kol-span { flex: 1 0 100%; align-items: flex-start; } @media (prefers-reduced-motion) { .kol-details__wrapper-animation, .kol-details__wrapper { transition: none !important; } } .kol-details { } @media print { .kol-details:not(.kol-details--open) .kol-details__wrapper-animation { display: none; } } .kol-details__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-details__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-details--open .kol-details__wrapper { grid-template-rows: 1fr; } .kol-details--open .kol-details__wrapper-animation { opacity: 1; transform: scaleY(1); visibility: visible; } .kol-details--open:focus-within { position: relative; z-index: 100; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-details--open .kol-details__heading .kol-icon { transform: rotate(90deg); } }'};export{x as kol_details}
|
|
4
|
+
import{r as e,h as o,H as t,g as i}from"./index-DEcM8BEc.js";import{_ as n}from"./tslib.es6-QNbPBOk5.js";import{X as l}from"./common-BdSzSIXg.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import{D as r,c as s,a as c,b as d,d as h,C as k}from"./toggle-handler-mPlmvrq7.js";import{l as b}from"./level-DsQ_pcyD.js";import{d as p}from"./disabled-BZXlWAgK.js";import"./props-from-config-ytxYrJUY.js";import{l as f}from"./label-lang-segment-iVD9hoM3.js";import{o as m}from"./open-CNHJhHsy.js";import{c as u,a as g}from"./dev.utils-BwYCy1rP.js";import{d as _,a as y,c as w}from"./element-interaction-sGYdEpmv.js";import"./Heading-GZb1f2pZ.js";import"./clsx-COFh-Vc8.js";import"./block-bem-D3ixJyOY.js";import"./bem-registry-D1KgKnyz.js";import"./component-D9NreIlK.js";import"./component-EDDTMC-J.js";import"./events-CRHxtwup.js";import"./label-hints-CLMiVvfk.js";import"./element-focus-BIRmGg5W.js";const v=class extends a{constructor(o){super(...arguments),new.target===v&&e(this,o),this.detailsId=u("details"),this.controlId=g(this.detailsId,"control"),this.detailsOpen=!1,this.expanded=!1,this.headingId=g(this.detailsId,"heading"),this.transitionMs=r,this.ctaRef=w((()=>!0===this.getRenderProp("disabled"))),this.hasLoaded=!1,this.openAnimation=s({getTransitionMs:()=>this.transitionMs,setDetailsOpen:e=>this.detailsOpen=e,setExpanded:e=>this.expanded=e}),this.handleToggle=c({getHost:()=>this.host,getOn:()=>this.getRenderProp("on"),isDisabled:()=>!0===this.getRenderProp("disabled"),isOpen:()=>!0===this.getRenderProp("open"),setOpen:e=>this._open=e}),this.propsConfig=d,this._disabled=!1,this._level=0,this._on=void 0,this._open=!1}watchDisabled(e){p.apply(e,(e=>this.setRenderProp("disabled",e)))}watchLabel(e){f.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchLevel(e){b.apply(e,(e=>this.setRenderProp("level",e)))}watchOn(e){h.apply(e,(e=>this.setRenderProp("on",e)))}watchOpen(e){m.apply(e,(e=>{this.setRenderProp("open",e),this.openAnimation.syncOpen(e,this.hasLoaded)}))}focus(e){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){var e;this.transitionMs=null!==(e=l("collapsibleTransitionMs",this.host))&&void 0!==e?e: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 o(t,{key:"b5a35968058d7262f0d4fc0f1d13b49e02f4033e"},o(k,{key:"f82fdcb5684df1d8d2182fd142c41941a53350c3",block:"kol-details",contentClass:"indented-text",controlId:this.controlId,detailsOpen:this.detailsOpen,disabled:this.getRenderProp("disabled"),expanded:this.expanded,handleToggle:this.handleToggle,headingId:this.headingId,icons:"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},o("slot",{key:"33775c434926dcb6dfa6471c80f39ffe5aabc29c"})))}get host(){return i(this)}static get watchers(){return{_disabled:[{watchDisabled:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}}};n([_("ctaRef")],v.prototype,"focus",null),n([y("ctaRef")],v.prototype,"click",null),v.style={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 { :host { display: inline-block; } .kol-details { } .kol-details__heading { display: flex; min-height: var(--a11y-min-size); } .kol-details__heading:not([aria-disabled=true]) { cursor: pointer; } .kol-details__heading { } .kol-details__heading::before { content: ""; } .kol-details__heading { } .kol-details__heading > .kol-headline { display: flex; flex: 1; margin: 0; text-align: left; font-weight: 400; } .kol-details__heading > .kol-headline > .kol-span { flex: 1 0 100%; align-items: flex-start; } @media (prefers-reduced-motion) { .kol-details__wrapper-animation, .kol-details__wrapper { transition: none !important; } } .kol-details { } @media print { .kol-details:not(.kol-details--open) .kol-details__wrapper-animation { display: none; } } .kol-details__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-details__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-details--open .kol-details__wrapper { grid-template-rows: 1fr; } .kol-details--open .kol-details__wrapper-animation { opacity: 1; transform: scaleY(1); visibility: visible; } .kol-details--open:focus-within { position: relative; z-index: 100; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-details--open .kol-details__heading .kol-icon { transform: rotate(90deg); } }'};export{v as kol_details}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as o,h as e,H as t,g as i}from"./index-Dulj0jro.js";import{n,c as l}from"./dev.utils-DDWOHUcg.js";import{B as r}from"./base-CWrvN3Gt.js";import"./common-BdSzSIXg.js";import"./base-web-component-CC_gpyDb.js";import"./props-from-config-ytxYrJUY.js";import"./component-Ct11K0Gv.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./resolve-props-Bj6IaybL.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-W1KZI4h4.js";import"./bem-registry-DQUGxdIS.js";import"./component-oUQcgxDj.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./component-Clz6b6ho.js";import"./component-B16Fbp3W.js";import"./component-B05zRrM0.js";import"./block-bem-BGIVcYJu.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./Heading-C_CwXDMp.js";import"./level-DsQ_pcyD.js";import"./has-closer-DUB0QcS9.js";import"./href-CxokGOJ2.js";import"./label-lang-segment-iVD9hoM3.js";import"./link-target-D7lYILOV.js";import"./width-C1_yZHyL.js";import"./scroll-lock-B6hVv8A8.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./events-CRHxtwup.js";const a=class extends r{constructor(e){super(...arguments),new.target===a&&o(this,e),this.ariaDescriptionId=n(),this.headingId=l("dialog-heading"),this.modal=!0,this._level=0,this._on=void 0,this._variant="blank",this._width="100%"}watchLabel(o){this.applyLabel(o)}watchLevel(o){this.applyLevel(o)}watchOn(o){this.applyOn(o)}watchVariant(o){this.applyVariant(o)}watchWidth(o){this.applyWidth(o)}async openModal(){await this.showModal()}async showModal(){await this.show(!0)}show(o=!1){return this.showDialog(o),Promise.resolve()}close(){return this.closeDialog(),Promise.resolve()}async closeModal(){return await this.close(),Promise.resolve()}componentWillLoad(){this.initCardCloseButton(),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchVariant(this._variant),this.watchWidth(this._width)}componentDidRender(){this.syncCardCloseTooltipListeners()}disconnectedCallback(){this.teardownDialog()}renderSlot(){return e("slot",null)}render(){return e(t,{key:"77a90db335d0d9d277fc8acd3fde91e3ac0a7309"},this.renderDialogFC())}get host(){return i(this)}static get watchers(){return{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_variant:[{watchVariant:0}],_width:[{watchWidth:0}]}}};a.style={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-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } }'};export{a as kol_dialog}
|
|
4
|
+
import{r as o,h as e,H as t,g as i}from"./index-DEcM8BEc.js";import{n,c as l}from"./dev.utils-BwYCy1rP.js";import{B as r}from"./base-Dtxcvto_.js";import"./common-BdSzSIXg.js";import"./base-web-component-CC_gpyDb.js";import"./props-from-config-ytxYrJUY.js";import"./component-DAk3R8NN.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./resolve-props-DTXKtzir.js";import"./component-D4-NVnsT.js";import"./validators-CTjxOidB.js";import"./component-D6_K50vT.js";import"./bem-registry-D1KgKnyz.js";import"./component-D9NreIlK.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./component-EDDTMC-J.js";import"./component-B3OziaRC.js";import"./component-Ccv2lqNq.js";import"./block-bem-D3ixJyOY.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./Heading-GZb1f2pZ.js";import"./level-DsQ_pcyD.js";import"./has-closer-DUB0QcS9.js";import"./href-CxokGOJ2.js";import"./label-lang-segment-iVD9hoM3.js";import"./link-target-D7lYILOV.js";import"./width-C1_yZHyL.js";import"./scroll-lock-Bv-U2FHM.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./events-CRHxtwup.js";const a=class extends r{constructor(e){super(...arguments),new.target===a&&o(this,e),this.ariaDescriptionId=n(),this.headingId=l("dialog-heading"),this.modal=!0,this._level=0,this._on=void 0,this._variant="blank",this._width="100%"}watchLabel(o){this.applyLabel(o)}watchLevel(o){this.applyLevel(o)}watchOn(o){this.applyOn(o)}watchVariant(o){this.applyVariant(o)}watchWidth(o){this.applyWidth(o)}async openModal(){await this.showModal()}async showModal(){await this.show(!0)}show(o=!1){return this.showDialog(o),Promise.resolve()}close(){return this.closeDialog(),Promise.resolve()}async closeModal(){return await this.close(),Promise.resolve()}componentWillLoad(){this.initCardCloseButton(),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchVariant(this._variant),this.watchWidth(this._width)}componentDidRender(){this.syncCardCloseTooltipListeners()}disconnectedCallback(){this.teardownDialog()}renderSlot(){return e("slot",null)}render(){return e(t,{key:"77a90db335d0d9d277fc8acd3fde91e3ac0a7309"},this.renderDialogFC())}get host(){return i(this)}static get watchers(){return{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_variant:[{watchVariant:0}],_width:[{watchWidth:0}]}}};a.style={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-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } }'};export{a as kol_dialog}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as e,H as t,g as i}from"./index-Dulj0jro.js";import{B as n}from"./base-web-component-CC_gpyDb.js";import{C as l,r}from"./component-Ct11K0Gv.js";import"./common-BdSzSIXg.js";import{l as a}from"./level-DsQ_pcyD.js";import{a as s,T as c}from"./behavior-Bb7JYoUn.js";import{c as d,r as h}from"./props-from-config-ytxYrJUY.js";import{h as p}from"./has-closer-DUB0QcS9.js";import{l as k}from"./label-lang-segment-iVD9hoM3.js";import{b}from"./bem-registry-DQUGxdIS.js";import{B as f}from"./component-B05zRrM0.js";import{D as m,u,l as g}from"./scroll-lock-B6hVv8A8.js";import{o as _}from"./open-CNHJhHsy.js";import{n as w,c as v}from"./dev.utils-DDWOHUcg.js";import{c as y}from"./element-interaction-sGYdEpmv.js";import{d as x,K as j}from"./events-CRHxtwup.js";import{h as C}from"./tooltip-open-tracking-D3tCiiGP.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./resolve-props-Bj6IaybL.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-W1KZI4h4.js";import"./component-oUQcgxDj.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./component-Clz6b6ho.js";import"./component-B16Fbp3W.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./Heading-C_CwXDMp.js";import"./href-CxokGOJ2.js";import"./link-target-D7lYILOV.js";import"./block-bem-BGIVcYJu.js";import"./element-focus-BIRmGg5W.js";const B=d("on",{},(function(o){if("object"!=typeof o||null===o)throw new Error("Invalid on callbacks: expected object, got "+typeof o);const{onCancel:e,onClose:t,onToggle:i}=o,n={};return"function"==typeof e&&(n.onCancel=e),"function"==typeof t&&(n.onClose=t),"function"==typeof i&&(n.onToggle=i),n})),D={required:[k],optional:[s,B,p,a]},z=b.forBlock("kol-drawer"),I=z("content"),T=z("dialog"),O=(e,t)=>{const{align:i,cardProps:n,expanded:r,handleAnimationEnd:a,handleCancel:s,handleClose:c,headingId:d,label:p,modal:k,refDialog:b,refWrapper:u}=h(D,e);return o(f,{block:"kol-drawer"},o(m,{blockClass:T,handleCancel:s,handleClose:c,label:p,labelledBy:d,modal:k,refDialog:b},o("div",{class:z("wrapper",{[i]:!0,"is-closing":!r,open:r}),onAnimationEnd:a,ref:u},o(l,Object.assign({},n),o("div",{class:I},t)))))},G=class extends n{constructor(o){super(...arguments),new.target===G&&e(this,o),this.ariaDescriptionId=w(),this.expanded=!1,this.headingId=v("drawer-heading"),this.modal=!0,this.dialogRef=y(),this.wrapperRef=y(),this.cardCloseButtonRef=y(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=D,this._align=void 0,this._hasCloser=!1,this._level=0,this._on=void 0,this._open=void 0,this.handleAnimationEnd=o=>{var e,t;o.animationName.includes("slideOut")&&(null===(t=null===(e=this.dialogRef.el)||void 0===e?void 0:e.close)||void 0===t||t.call(e))},this.handleCancel=o=>{var e,t;C(o),o.defaultPrevented||(null===(t=(e=this.getRenderProp("on")).onCancel)||void 0===t||t.call(e,o),o.defaultPrevented||this.host&&!x(this.host,j.cancel)&&o.preventDefault())},this.handleClose=o=>{var e,t;if(o.target!==this.dialogRef.el)return;u(this),this.closeDrawer();const i=this.getRenderProp("on");null===(e=i.onClose)||void 0===e||e.call(i),null===(t=i.onToggle)||void 0===t||t.call(i,!1),this.host&&(x(this.host,j.close),x(this.host,j.toggle))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDrawer()}}watchAlign(o){s.apply(o,(o=>this.setRenderProp("align",o)))}watchHasCloser(o){p.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){B.apply(o,(o=>this.setRenderProp("on",o)))}watchOpen(o){_.apply(o,(o=>{this.setState("expanded",o),this.dialogRef.el&&this.openOrCloseBasedOnState()}))}show(o=!1){return this.showDrawer(o),Promise.resolve()}async showModal(){await this.show(!0)}async open(){await this.show(!1)}close(){return this.closeDrawer(),Promise.resolve()}componentWillLoad(){this.cardCloseButtonProps=r(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:"left"}),this.watchAlign(this._align),this.watchHasCloser(this._hasCloser),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchOpen(this._open)}componentDidLoad(){this.openOrCloseBasedOnState()}componentDidRender(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}disconnectedCallback(){u(this),this.cardCloseTooltipBehavior.destroy()}showDrawer(o){var e,t,i,n;const l=this.dialogRef.el;(null==l?void 0:l.open)||(this.setState("modal",o),this.setState("expanded",!0),o?(null===(e=null==l?void 0:l.showModal)||void 0===e||e.call(l),l&&g(this)):null===(t=null==l?void 0:l.show)||void 0===t||t.call(l),null===(n=(i=this.getRenderProp("on")).onToggle)||void 0===n||n.call(i,!0),this.host&&x(this.host,j.toggle))}closeDrawer(){var o,e;this.setState("expanded",!1);const t=this.wrapperRef.el;t&&"none"===window.getComputedStyle(t).animationName&&(null===(e=null===(o=this.dialogRef.el)||void 0===o?void 0:o.close)||void 0===e||e.call(o))}openOrCloseBasedOnState(){this.getState("expanded")?this.showDrawer(this.getState("modal")):this.closeDrawer()}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}render(){return o(t,{key:"ad4de4ff863ff47eabe84d49a1cec176e5bcbcc4"},o(O,{key:"5efc03976a9adcc7a0fac3477ffe3065496b3eb0",align:this.getRenderProp("align"),ariaDescriptionId:this.getState("ariaDescriptionId"),cardProps:this.buildCardProps(),expanded:this.getState("expanded"),handleAnimationEnd:this.handleAnimationEnd,handleCancel:this.handleCancel,handleClose:this.handleClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),modal:this.getState("modal"),on:this.getRenderProp("on"),refDialog:this.dialogRef,refWrapper:this.wrapperRef},o("slot",{key:"de3f2fb2326f7b3e707c4ad46e3d01b326ab2c27"})))}get host(){return i(this)}static get watchers(){return{_align:[{watchAlign:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}}};G.style={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-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-drawer__dialog { padding: 0; border: none; overscroll-behavior: contain; } .kol-drawer__wrapper { position: fixed; overflow: auto; overscroll-behavior: contain; } .kol-drawer__wrapper--left, .kol-drawer__wrapper--right { top: 0; max-width: 100vw; height: 100vh; } .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content { height: 100%; } .kol-drawer__wrapper--left { left: 0; } .kol-drawer__wrapper--right { right: 0; } .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top { left: 0; width: 100vw; max-height: 100vh; } .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content { width: 100%; } .kol-drawer__wrapper--bottom { bottom: 0; } .kol-drawer__wrapper--top { top: 0; } .kol-drawer__content { position: relative; } .kol-drawer__dialog .kol-card__content { overflow-y: auto; overscroll-behavior: contain; } }'};export{G as kol_drawer}
|
|
4
|
+
import{h as o,r as e,H as t,g as i}from"./index-DEcM8BEc.js";import{B as n}from"./base-web-component-CC_gpyDb.js";import{C as l,r}from"./component-DAk3R8NN.js";import"./common-BdSzSIXg.js";import{l as a}from"./level-DsQ_pcyD.js";import{a as s,T as c}from"./behavior-CKU2tmCj.js";import{c as d,r as h}from"./props-from-config-ytxYrJUY.js";import{h as p}from"./has-closer-DUB0QcS9.js";import{l as k}from"./label-lang-segment-iVD9hoM3.js";import{b as f}from"./bem-registry-D1KgKnyz.js";import{B as b}from"./component-Ccv2lqNq.js";import{D as m,u,l as g}from"./scroll-lock-Bv-U2FHM.js";import{o as _}from"./open-CNHJhHsy.js";import{n as w,c as v}from"./dev.utils-BwYCy1rP.js";import{c as y}from"./element-interaction-sGYdEpmv.js";import{d as x,K as j}from"./events-CRHxtwup.js";import{h as C}from"./tooltip-open-tracking-D3tCiiGP.js";import"./i18n-ePBcLlCr.js";import"./i18n-4J6U3ZDc.js";import"./resolve-props-DTXKtzir.js";import"./component-D4-NVnsT.js";import"./validators-CTjxOidB.js";import"./component-D6_K50vT.js";import"./component-D9NreIlK.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./component-EDDTMC-J.js";import"./component-B3OziaRC.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./label-hints-CLMiVvfk.js";import"./Heading-GZb1f2pZ.js";import"./href-CxokGOJ2.js";import"./link-target-D7lYILOV.js";import"./block-bem-D3ixJyOY.js";import"./element-focus-BIRmGg5W.js";const D=d("on",{},(function(o){if("object"!=typeof o||null===o)throw new Error("Invalid on callbacks: expected object, got "+typeof o);const{onCancel:e,onClose:t,onToggle:i}=o,n={};return"function"==typeof e&&(n.onCancel=e),"function"==typeof t&&(n.onClose=t),"function"==typeof i&&(n.onToggle=i),n})),z={required:[k],optional:[s,D,p,a]},B=f.forBlock("kol-drawer"),T=B("content"),I=B("dialog"),O=(e,t)=>{const{align:i,cardProps:n,expanded:r,handleAnimationEnd:a,handleCancel:s,handleClose:c,headingId:d,label:p,modal:k,refDialog:f,refWrapper:u}=h(z,e);return o(b,{block:"kol-drawer"},o(m,{blockClass:I,handleCancel:s,handleClose:c,label:p,labelledBy:d,modal:k,refDialog:f},o("div",{class:B("wrapper",{[i]:!0,"is-closing":!r,open:r}),onAnimationEnd:a,ref:u},o(l,Object.assign({},n),o("div",{class:T},t)))))},G=class extends n{constructor(o){super(...arguments),new.target===G&&e(this,o),this.ariaDescriptionId=w(),this.expanded=!1,this.headingId=v("drawer-heading"),this.modal=!0,this.dialogRef=y(),this.wrapperRef=y(),this.cardCloseButtonRef=y(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=z,this._align=void 0,this._hasCloser=!1,this._level=0,this._on=void 0,this._open=void 0,this.handleAnimationEnd=o=>{var e,t;o.animationName.includes("slideOut")&&(null===(t=null===(e=this.dialogRef.el)||void 0===e?void 0:e.close)||void 0===t||t.call(e))},this.handleCancel=o=>{var e,t;C(o),o.defaultPrevented||(null===(t=(e=this.getRenderProp("on")).onCancel)||void 0===t||t.call(e,o),o.defaultPrevented||this.host&&!x(this.host,j.cancel)&&o.preventDefault())},this.handleClose=o=>{var e,t;if(o.target!==this.dialogRef.el)return;u(this),this.closeDrawer();const i=this.getRenderProp("on");null===(e=i.onClose)||void 0===e||e.call(i),null===(t=i.onToggle)||void 0===t||t.call(i,!1),this.host&&(x(this.host,j.close),x(this.host,j.toggle))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDrawer()}}watchAlign(o){s.apply(o,(o=>this.setRenderProp("align",o)))}watchHasCloser(o){p.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){D.apply(o,(o=>this.setRenderProp("on",o)))}watchOpen(o){_.apply(o,(o=>{this.setState("expanded",o),this.dialogRef.el&&this.openOrCloseBasedOnState()}))}show(o=!1){return this.showDrawer(o),Promise.resolve()}async showModal(){await this.show(!0)}async open(){await this.show(!1)}close(){return this.closeDrawer(),Promise.resolve()}componentWillLoad(){this.cardCloseButtonProps=r(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:"left"}),this.watchAlign(this._align),this.watchHasCloser(this._hasCloser),this.watchLabel(this._label),this.watchLevel(this._level),this.watchOn(this._on),this.watchOpen(this._open)}componentDidLoad(){this.openOrCloseBasedOnState()}componentDidRender(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}disconnectedCallback(){u(this),this.cardCloseTooltipBehavior.destroy()}showDrawer(o){var e,t,i,n;const l=this.dialogRef.el;(null==l?void 0:l.open)||(this.setState("modal",o),this.setState("expanded",!0),o?(null===(e=null==l?void 0:l.showModal)||void 0===e||e.call(l),l&&g(this)):null===(t=null==l?void 0:l.show)||void 0===t||t.call(l),null===(n=(i=this.getRenderProp("on")).onToggle)||void 0===n||n.call(i,!0),this.host&&x(this.host,j.toggle))}closeDrawer(){var o,e;this.setState("expanded",!1);const t=this.wrapperRef.el;t&&"none"===window.getComputedStyle(t).animationName&&(null===(e=null===(o=this.dialogRef.el)||void 0===o?void 0:o.close)||void 0===e||e.call(o))}openOrCloseBasedOnState(){this.getState("expanded")?this.showDrawer(this.getState("modal")):this.closeDrawer()}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}render(){return o(t,{key:"ad4de4ff863ff47eabe84d49a1cec176e5bcbcc4"},o(O,{key:"5efc03976a9adcc7a0fac3477ffe3065496b3eb0",align:this.getRenderProp("align"),ariaDescriptionId:this.getState("ariaDescriptionId"),cardProps:this.buildCardProps(),expanded:this.getState("expanded"),handleAnimationEnd:this.handleAnimationEnd,handleCancel:this.handleCancel,handleClose:this.handleClose,hasCloser:this.getRenderProp("hasCloser"),headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),modal:this.getState("modal"),on:this.getRenderProp("on"),refDialog:this.dialogRef,refWrapper:this.wrapperRef},o("slot",{key:"de3f2fb2326f7b3e707c4ad46e3d01b326ab2c27"})))}get host(){return i(this)}static get watchers(){return{_align:[{watchAlign:0}],_hasCloser:[{watchHasCloser:0}],_label:[{watchLabel:0}],_level:[{watchLevel:0}],_on:[{watchOn:0}],_open:[{watchOpen:0}]}}};G.style={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-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: ""; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-drawer__dialog { padding: 0; border: none; overscroll-behavior: contain; } .kol-drawer__wrapper { position: fixed; overflow: auto; overscroll-behavior: contain; } .kol-drawer__wrapper--left, .kol-drawer__wrapper--right { top: 0; max-width: 100vw; height: 100vh; } .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content { height: 100%; } .kol-drawer__wrapper--left { left: 0; } .kol-drawer__wrapper--right { right: 0; } .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top { left: 0; width: 100vw; max-height: 100vh; } .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content { width: 100%; } .kol-drawer__wrapper--bottom { bottom: 0; } .kol-drawer__wrapper--top { top: 0; } .kol-drawer__content { position: relative; } .kol-drawer__dialog .kol-card__content { overflow-y: auto; overscroll-behavior: contain; } }'};export{G as kol_drawer}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as e,H as t,g as i}from"./index-Dulj0jro.js";import{B as n}from"./base-web-component-CC_gpyDb.js";import{s as l}from"./common-BdSzSIXg.js";import{c as r,e as a,a as s,d as c}from"./props-from-config-ytxYrJUY.js";import{t as d}from"./i18n-ePBcLlCr.js";import{b as k}from"./bem-registry-DQUGxdIS.js";import{B as f}from"./component-B05zRrM0.js";import{A as m}from"./component-BI8jDgBz.js";import{L as h,l as p,b}from"./component-DAQzDMY8.js";import{n as u,c as g}from"./dev.utils-DDWOHUcg.js";import{h as y}from"./href-CxokGOJ2.js";import{l as _}from"./label-with-expert-slot-BbZ9nx0l.js";import{d as x,K as v}from"./events-CRHxtwup.js";import"./i18n-4J6U3ZDc.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./block-bem-BGIVcYJu.js";import"./Heading-C_CwXDMp.js";import"./component-B16Fbp3W.js";import"./component-C79oAu7a.js";import"./validators-CTjxOidB.js";import"./component-W1KZI4h4.js";import"./component-oUQcgxDj.js";import"./component-Clz6b6ho.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./link-target-D7lYILOV.js";import"./label-hints-CLMiVvfk.js";function w(o){if("object"!=typeof o||null===o)return!1;const{message:e,selector:t}=o;return"string"==typeof e&&("string"==typeof t||"function"==typeof t)}const j=r("errorList",[],(o=>a(o)),(o=>o.every(w))),z=s(),T=r("requiredText",!0,(function(o){if("boolean"==typeof o||"string"==typeof o)return o;throw new Error("Invalid requiredText: expected boolean or string, got "+typeof o)})),I={optional:[j,z,T]},B=k.forBlock("kol-form"),C=B("alert"),D=B("link"),L=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i})=>o(m,{alert:!1,class:C,closerAriaDescriptionId:t,handleCloserClick:()=>{},hasCloser:!1,headingId:e,label:d("kol-error-list-message"),level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:"error",variant:"card"},o("nav",{"aria-label":d("kol-error-list")},o("ul",null,i.map(((e,t)=>o("li",{key:t},o("span",{class:D},o(h,Object.assign({},e.fcProps))))))))),G=k.forBlock("kol-form"),q=G("form"),A=G("mandatory-fields-hint"),H=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i,handleReset:n,handleSubmit:l,requiredText:r})=>{const a=!0===r?d("kol-form-description"):"string"==typeof r&&r.length>0?r:"";return o(f,{block:"kol-form"},i.length>0&&o(L,{alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i}),o("form",{class:q,method:"post",onSubmit:l,onReset:n,noValidate:!0},a.length>0&&o("p",{class:A},a),o("slot",null)))},O={behavior:"smooth",block:"nearest"},S=class extends n{constructor(o){super(...arguments),new.target===S&&e(this,o),this.errorLinkItems=[],this.alertHeadingId=g("alert-heading"),this.closerAriaDescriptionId=u(),this.propsConfig=I,this._errorList=void 0,this._on=void 0,this._requiredText=!0,this.handleSubmit=o=>{o.preventDefault();const e=this.getRenderProp("on").onSubmit;"function"==typeof e&&e(o),this.host&&x(this.host,v.submit)},this.handleReset=o=>{o.preventDefault();const e=this.getRenderProp("on").onReset;"function"==typeof e&&e(o),this.host&&x(this.host,v.reset)},this.focusErrorTarget=(o,e)=>{const t=document.querySelector(o);t&&"function"==typeof t.focus&&t.focus(null!=e?e:O)}}watchErrorList(o){j.apply(o,(o=>{this.setRenderProp("errorList",o),this.errorLinkItems=o.map((o=>((o,e)=>{const t=c(p);let i;return t.tabIndex=void 0,y.apply("",(o=>t.href=o)),_.apply(o.message,(o=>t.label=o)),b.apply({onClick:"string"==typeof o.selector?()=>e(String(o.selector),o.options):o.selector},(o=>t.on=o)),t.ariaCurrent="",t.ariaDescriptionId=u(),t.expertSlot=""===o.message,t.handleAnchorClick=o=>{var e;const n=null===(e=t.on)||void 0===e?void 0:e.onClick;"function"==typeof n&&(l(o,i),n(o,t.href))},t.refAnchor=o=>{i=o},t.refTooltip=()=>{},{fcProps:t,focus:o=>null==i?void 0:i.focus(o)}})(o,this.focusErrorTarget)))}))}watchOn(o){z.apply(o,(o=>this.setRenderProp("on",o)))}watchRequiredText(o){T.apply(o,(o=>this.setRenderProp("requiredText",o)))}focusErrorList(o){return setTimeout((()=>{var e;null===(e=this.errorLinkItems[0])||void 0===e||e.focus(null!=o?o:O)}),250),Promise.resolve()}componentWillLoad(){this.watchErrorList(this._errorList),this.watchOn(this._on),this.watchRequiredText(this._requiredText)}render(){return o(t,{key:"2284d41789f347a59938107849bd2e8210b4cd09"},o(H,{key:"1f534946f50caf5d70d43b48dae7deec2105b714",alertHeadingId:this.alertHeadingId,closerAriaDescriptionId:this.closerAriaDescriptionId,errorList:this.getRenderProp("errorList"),errorLinkItems:this.errorLinkItems,handleReset:this.handleReset,handleSubmit:this.handleSubmit,on:this.getRenderProp("on"),requiredText:this.getRenderProp("requiredText")}))}get host(){return i(this)}static get watchers(){return{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}}};S.style={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-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-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; } }'};export{S as kol_form}
|
|
4
|
+
import{h as o,r as e,H as t,g as i}from"./index-DEcM8BEc.js";import{B as n}from"./base-web-component-CC_gpyDb.js";import{s as l}from"./common-BdSzSIXg.js";import{c as r,e as a,a as s,d as c}from"./props-from-config-ytxYrJUY.js";import{t as d}from"./i18n-ePBcLlCr.js";import{b as k}from"./bem-registry-D1KgKnyz.js";import{B as f}from"./component-Ccv2lqNq.js";import{A as m}from"./component-Cmi6iGfA.js";import{L as h,l as p,b}from"./component-CF8uFG0A.js";import{n as u,c as g}from"./dev.utils-BwYCy1rP.js";import{h as y}from"./href-CxokGOJ2.js";import{l as _}from"./label-with-expert-slot-BbZ9nx0l.js";import{d as x,K as v}from"./events-CRHxtwup.js";import"./i18n-4J6U3ZDc.js";import"./tslib.es6-QNbPBOk5.js";import"./clsx-COFh-Vc8.js";import"./block-bem-D3ixJyOY.js";import"./Heading-GZb1f2pZ.js";import"./component-B3OziaRC.js";import"./component-D4-NVnsT.js";import"./validators-CTjxOidB.js";import"./component-D6_K50vT.js";import"./component-D9NreIlK.js";import"./component-EDDTMC-J.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./element-interaction-sGYdEpmv.js";import"./element-focus-BIRmGg5W.js";import"./link-target-D7lYILOV.js";import"./label-hints-CLMiVvfk.js";function w(o){if("object"!=typeof o||null===o)return!1;const{message:e,selector:t}=o;return"string"==typeof e&&("string"==typeof t||"function"==typeof t)}const j=r("errorList",[],(o=>a(o)),(o=>o.every(w))),T=s(),z=r("requiredText",!0,(function(o){if("boolean"==typeof o||"string"==typeof o)return o;throw new Error("Invalid requiredText: expected boolean or string, got "+typeof o)})),C={optional:[j,T,z]},I=k.forBlock("kol-form"),B=I("alert"),L=I("link"),D=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i})=>o(m,{alert:!1,class:B,closerAriaDescriptionId:t,handleCloserClick:()=>{},hasCloser:!1,headingId:e,label:d("kol-error-list-message"),level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:"error",variant:"card"},o("nav",{"aria-label":d("kol-error-list")},o("ul",null,i.map(((e,t)=>o("li",{key:t},o("span",{class:L},o(h,Object.assign({},e.fcProps))))))))),G=k.forBlock("kol-form"),q=G("form"),O=G("mandatory-fields-hint"),A=({alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i,handleReset:n,handleSubmit:l,requiredText:r})=>{const a=!0===r?d("kol-form-description"):"string"==typeof r&&r.length>0?r:"";return o(f,{block:"kol-form"},i.length>0&&o(D,{alertHeadingId:e,closerAriaDescriptionId:t,errorLinkItems:i}),o("form",{class:q,method:"post",onSubmit:l,onReset:n,noValidate:!0},a.length>0&&o("p",{class:O},a),o("slot",null)))},E={behavior:"smooth",block:"nearest"},H=class extends n{constructor(o){super(...arguments),new.target===H&&e(this,o),this.errorLinkItems=[],this.alertHeadingId=g("alert-heading"),this.closerAriaDescriptionId=u(),this.propsConfig=C,this._errorList=void 0,this._on=void 0,this._requiredText=!0,this.handleSubmit=o=>{o.preventDefault();const e=this.getRenderProp("on").onSubmit;"function"==typeof e&&e(o),this.host&&x(this.host,v.submit)},this.handleReset=o=>{o.preventDefault();const e=this.getRenderProp("on").onReset;"function"==typeof e&&e(o),this.host&&x(this.host,v.reset)},this.focusErrorTarget=(o,e)=>{const t=document.querySelector(o);t&&"function"==typeof t.focus&&t.focus(null!=e?e:E)}}watchErrorList(o){j.apply(o,(o=>{this.setRenderProp("errorList",o),this.errorLinkItems=o.map((o=>((o,e)=>{const t=c(p);let i;return t.tabIndex=void 0,y.apply("",(o=>t.href=o)),_.apply(o.message,(o=>t.label=o)),b.apply({onClick:"string"==typeof o.selector?()=>e(String(o.selector),o.options):o.selector},(o=>t.on=o)),t.ariaCurrent="",t.ariaDescriptionId=u(),t.expertSlot=""===o.message,t.handleAnchorClick=o=>{var e;const n=null===(e=t.on)||void 0===e?void 0:e.onClick;"function"==typeof n&&(l(o,i),n(o,t.href))},t.refAnchor=o=>{i=o},t.refTooltip=()=>{},{fcProps:t,focus:o=>null==i?void 0:i.focus(o)}})(o,this.focusErrorTarget)))}))}watchOn(o){T.apply(o,(o=>this.setRenderProp("on",o)))}watchRequiredText(o){z.apply(o,(o=>this.setRenderProp("requiredText",o)))}focusErrorList(o){return setTimeout((()=>{var e;null===(e=this.errorLinkItems[0])||void 0===e||e.focus(null!=o?o:E)}),250),Promise.resolve()}componentWillLoad(){this.watchErrorList(this._errorList),this.watchOn(this._on),this.watchRequiredText(this._requiredText)}render(){return o(t,{key:"2284d41789f347a59938107849bd2e8210b4cd09"},o(A,{key:"1f534946f50caf5d70d43b48dae7deec2105b714",alertHeadingId:this.alertHeadingId,closerAriaDescriptionId:this.closerAriaDescriptionId,errorList:this.getRenderProp("errorList"),errorLinkItems:this.errorLinkItems,handleReset:this.handleReset,handleSubmit:this.handleSubmit,on:this.getRenderProp("on"),requiredText:this.getRenderProp("requiredText")}))}get host(){return i(this)}static get watchers(){return{_errorList:[{watchErrorList:0}],_on:[{watchOn:0}],_requiredText:[{watchRequiredText:0}]}}};H.style={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-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-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; } }'};export{H as kol_form}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,r as o,H as t}from"./index-
|
|
4
|
+
import{h as e,r as o,H as t}from"./index-DEcM8BEc.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import"./common-BdSzSIXg.js";import{l}from"./level-DsQ_pcyD.js";import{c as i,b as r,r as n}from"./props-from-config-ytxYrJUY.js";import{l as s}from"./label-with-expert-slot-BbZ9nx0l.js";import{b as d}from"./bem-registry-D1KgKnyz.js";import{c}from"./clsx-COFh-Vc8.js";import{r as b}from"./component-D9NreIlK.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./tslib.es6-QNbPBOk5.js";import"./component-EDDTMC-J.js";const p=i("secondaryHeadline","",r),h={optional:[l,p],required:[s]},k=d.forBlock("kol-heading"),m=d.forBlock("kol-headline"),u=o=>{const{label:t,level:a,secondaryHeadline:l}=n(h,o),i=function(e){return e>=1&&e<=6?`h${e}`:"strong"}(a);return l?e("hgroup",{class:k({group:!0})},e(i,{class:m({[i]:!0,group:!0,primary:!0})},b(t),e("slot",{name:"expert",slot:"expert"})),e("p",{class:m({group:!0,secondary:!0})},l)):e(i,{class:c(k(),m({[i]:!0,single:!0}))},b(t),e("slot",{name:"expert",slot:"expert"}))},f=class extends a{constructor(e){super(...arguments),new.target===f&&o(this,e),this.propsConfig=h,this._level=0,this._secondaryHeadline=void 0}watchLabel(e){s.apply(e,(e=>this.setRenderProp("label",e)),this.isRequired("label"))}watchLevel(e){l.apply(e,(e=>this.setRenderProp("level",e)))}watchSecondaryHeadline(e){p.apply(e,(e=>this.setRenderProp("secondaryHeadline",e)))}componentWillLoad(){s.apply(this._label,(e=>this.setRenderProp("label",e)),this.isRequired("label")),l.apply(this._level,(e=>this.setRenderProp("level",e))),p.apply(this._secondaryHeadline,(e=>this.setRenderProp("secondaryHeadline",e)))}render(){return e(t,{key:"63a24d9208c82a7f3b7cbbe9c2fd475ae2a8a37c"},e(u,{key:"26af307dd787477b1842dfcdab9302c8506ce7bb",label:this.getRenderProp("label"),level:this.getRenderProp("level"),secondaryHeadline:this.getRenderProp("secondaryHeadline")}))}static get watchers(){return{_label:[{watchLabel:0}],_level:[{watchLevel:0}],_secondaryHeadline:[{watchSecondaryHeadline:0}]}}};f.style={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 { .kol-headline--secondary { margin: 0; } }'};export{f as kol_heading}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{r as o,h as e,H as n}from"./index-
|
|
4
|
+
import{r as o,h as e,H as n}from"./index-DEcM8BEc.js";import{B as t}from"./base-web-component-CC_gpyDb.js";import"./common-BdSzSIXg.js";import{c,b as i}from"./props-from-config-ytxYrJUY.js";import{i as r}from"./validators-CTjxOidB.js";import{l}from"./label-hints-CLMiVvfk.js";import{I as s}from"./component-EDDTMC-J.js";import"./tslib.es6-QNbPBOk5.js";import"./bem-registry-D1KgKnyz.js";import"./clsx-COFh-Vc8.js";const a=c("icons","kolicon-logo",i),f=c("label",void 0,i,r,{hints:l}),b={required:[a,f]},k=class extends t{constructor(e){super(...arguments),new.target===k&&o(this,e),this.propsConfig=b}watchIcons(o){a.apply(o,(o=>this.setRenderProp("icons",o)))}watchLabel(o){f.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}componentWillLoad(){a.apply(this._icons,(o=>this.setRenderProp("icons",o))),f.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}render(){return e(n,{key:"a53255b542b20f7d10c3fc81c430f8e49885991b"},e(s,{key:"c5863392f1de5f8c37f8a90458e641141a525528",icons:this.getRenderProp("icons"),label:this.getRenderProp("label")}))}static get watchers(){return{_icons:[{watchIcons:0}],_label:[{watchLabel:0}]}}};k.style={default:'@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}}'};export{k as kol_icon}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,r as t,H as e,g as i}from"./index-
|
|
4
|
+
import{h as o,r as t,H as e,g as i}from"./index-DEcM8BEc.js";import{B as a}from"./base-web-component-CC_gpyDb.js";import"./common-BdSzSIXg.js";import{c as l,b as r,a as s,l as n}from"./props-from-config-ytxYrJUY.js";import{s as d}from"./src-ziOwSglN.js";import{b as c}from"./bem-registry-D1KgKnyz.js";import{d as h,K as b}from"./events-CRHxtwup.js";const k=l("alt","",r,(o=>"string"==typeof o)),u=s(),p=l("sizes","",r),m=l("srcset","",r),g={optional:[u,n,p,m],required:[k,d]},f=c.forBlock("kol-image")(),_=t=>{const{alt:e,loading:i,sizes:a,src:l,srcset:r,handleError:s,handleLoad:n}=t;return o("img",{class:f,alt:e,loading:i,sizes:a||void 0,src:l,srcset:r||void 0,onError:o=>s(o),onLoad:o=>n(o)})},y=class extends a{constructor(o){super(...arguments),new.target===y&&t(this,o),this.propsConfig=g,this._loading=void 0,this._sizes=void 0,this._srcset=void 0,this._on=void 0,this.handleError=o=>{var t,e;null===(e=(t=this.getRenderProp("on")).onError)||void 0===e||e.call(t,o),this.host&&h(this.host,b.error,o)},this.handleLoad=o=>{var t,e;null===(e=(t=this.getRenderProp("on")).onLoad)||void 0===e||e.call(t,o),this.host&&h(this.host,b.load,o)}}watchAlt(o){k.apply(o,(o=>this.setRenderProp("alt",o)))}watchLoading(o){n.apply(o,(o=>this.setRenderProp("loading",o)))}watchSizes(o){p.apply(o,(o=>this.setRenderProp("sizes",o)))}watchSrc(o){d.apply(o,(o=>this.setRenderProp("src",o)))}watchSrcset(o){m.apply(o,(o=>this.setRenderProp("srcset",o)))}watchOn(o){u.apply(o,(o=>this.setRenderProp("on",o)))}componentWillLoad(){k.apply(this._alt,(o=>this.setRenderProp("alt",o))),n.apply(this._loading,(o=>this.setRenderProp("loading",o))),u.apply(this._on,(o=>this.setRenderProp("on",o))),p.apply(this._sizes,(o=>this.setRenderProp("sizes",o))),d.apply(this._src,(o=>this.setRenderProp("src",o))),m.apply(this._srcset,(o=>this.setRenderProp("srcset",o)))}render(){return o(e,{key:"ac348dc672f7785f384470b77120889410349503"},o(_,{key:"0812cc9b1a6770e3462f9d6f7bc33237ccf4dac3",alt:this.getRenderProp("alt"),loading:this.getRenderProp("loading"),sizes:this.getRenderProp("sizes"),src:this.getRenderProp("src"),srcset:this.getRenderProp("srcset"),handleError:this.handleError,handleLoad:this.handleLoad}))}get host(){return i(this)}static get watchers(){return{_alt:[{watchAlt:0}],_loading:[{watchLoading:0}],_sizes:[{watchSizes:0}],_src:[{watchSrc:0}],_srcset:[{watchSrcset:0}],_on:[{watchOn:0}]}}};y.style={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 { .kol-image { display: inline-block; max-width: 100%; max-height: 100%; } }'};export{y as kol_image}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,r as o,H as e,g as i}from"./index-Dulj0jro.js";import{a as n,_ as l}from"./tslib.es6-QNbPBOk5.js";import{v as a}from"./access-and-short-key-ijzCZfHm.js";import{c as r}from"./clsx-COFh-Vc8.js";import{i as s,g as c,f as h,B as d,F as k}from"./api-DGiFM9p0.js";import"./common-BdSzSIXg.js";import{b}from"./bem-registry-DQUGxdIS.js";import{B as m}from"./component-B05zRrM0.js";import{I as p}from"./component-Clz6b6ho.js";import{I as f}from"./input-C0Li7DsE.js";import{F as u}from"./field-control-DsQHa0v9.js";import{a as g,d as _}from"./component-C79oAu7a.js";import{c as y,n as v,b as w}from"./props-from-config-ytxYrJUY.js";import{r as x}from"./required-BriHhuO4.js";import{c as j}from"./dev.utils-DDWOHUcg.js";import{d as z,a as B,c as D}from"./element-interaction-sGYdEpmv.js";import{s as I}from"./controller-CZcQ57AP.js";import"./component-oUQcgxDj.js";import"./aria-labelledby-CLehu03h.js";import"./events-CRHxtwup.js";import"./behavior-CkPQGfgo.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./component-B16Fbp3W.js";import"./component-W1KZI4h4.js";import"./disabled-BZXlWAgK.js";import"./id-BI0ZuK17.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./behavior-Bb7JYoUn.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./base-web-component-CC_gpyDb.js";import"./item-8RKFpmbd.js";import"./resolve-props-Bj6IaybL.js";import"./item-DHZGDrAn.js";import"./component-Bc2pdOk1.js";import"./i18n-ePBcLlCr.js";import"./component-BI8jDgBz.js";import"./Heading-C_CwXDMp.js";import"./block-bem-BGIVcYJu.js";import"./element-focus-BIRmGg5W.js";const C=["button","default","switch"],A=y("value",!0,(t=>t)),K=y("checked",!1,v),T=["checked","indeterminate","unchecked"],L=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(t=>{if("object"==typeof t&&null!==t&&T.some((o=>(t=>"string"==typeof t&&t.length>0)(t[o]))))return t;throw new Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),H=y("indeterminate",!1,v),O=["left","right"],P=y("labelAlign","right",(t=>{const o=w(t);if(O.includes(o))return o;throw new Error(`Invalid label alignment: ${o}`)})),q=y("variant","default",(t=>{const o=w(t);if(C.includes(o))return o;throw new Error(`Invalid checkbox variant: ${o}`)})),V=b.forBlock("kol-checkbox"),G=o=>{var{class:e,variant:i="default",icon:l,inputProps:a}=o,h=n(o,["class","variant","icon","inputProps"]);const{class:d}=a,k=n(a,["class"]);return t(m,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:Boolean(a.checked),indeterminate:Boolean(a.indeterminate),disabled:Boolean(a.disabled),required:Boolean(a.required),touched:Boolean(a.touched)},s(a.msg,a.touched)?{[c(a.msg)]:!0}:{}),class:e},h),t(p,{label:"",icons:l,class:V("icon")}),t(f,Object.assign({class:r(V("input"),d)},k,{type:"checkbox"})))},M={required:[...h.required],optional:[...h.optional,g,A,K,L,H,P,x,_,q]},S=class extends d{constructor(t){super(),new.target===S&&o(this,t),this.id=j("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=D(),this.propsConfig=M,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=t=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(t,this.getModelValue())},this.handleCheckboxChange=t=>{this.handleChange(t,this.getModelValue())},this.handleCheckboxKeyDown=t=>{this.handleKeyDown(t),I(t,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=t=>{this._disabled||this.handleBlur(t)},this.handleLabelMouseDown=t=>{this.inputHasFocus&&t.preventDefault()},this.handleCheckboxMouseDown=t=>{!this.inputHasFocus||t.target instanceof HTMLInputElement||t.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(t){g.apply(t,(t=>this.setRenderProp("accessKey",t))),a(t,this._shortKey)}watchChecked(t){K.apply(t,(t=>this.setRenderProp("checked",t))),this.syncFormAssociatedValue()}watchHideMsg(t){this.applyHideMsg(t)}watchDisabled(t){this.applyDisabled(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){L.apply(t,(t=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),t))))}watchInfoPopover(t){this.applyInfoPopover(t)}watchIndeterminate(t){H.apply(t,(t=>this.setRenderProp("indeterminate",t)))}watchLabel(t){this.applyLabel(t)}watchLabelAlign(t){P.apply(t,(t=>this.setRenderProp("labelAlign",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){x.apply(t,(t=>this.setRenderProp("required",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchShortKey(t){_.apply(t,(t=>this.setRenderProp("shortKey",t))),a(this._accessKey,t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){null==t?this.setRenderProp("value",t):A.apply(t,(t=>this.setRenderProp("value",t))),this.syncFormAssociatedValue()}watchVariant(t){q.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.getModelValue())}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const t=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?t.indeterminate:this.getRenderProp("checked")?t.checked:t.unchecked}getInputProps(){const t=this.getRenderProp("shortKey"),{ariaDescribedBy:o,hasError:e}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:o,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},t?{"aria-keyshortcuts":t}:{}),{class:r({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":e?"true":void 0})}render(){const o=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),n=this.getRenderProp("variant"),l=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,s=this.getRenderProp("required");return t(e,{key:"bafeed8887803973d2cc2db16f49ab91051068d3"},t(k,Object.assign({key:"d0aefcc8b5397cfad069f8949623f0784e0e375c"},this.getFormFieldProps({class:r("kol-input-checkbox",{"kol-input-checkbox--checked":o,"kol-input-checkbox--indeterminate":i,[`kol-input-checkbox--variant-${n}`]:!0,[`kol-input-checkbox--label-align-${this.getRenderProp("labelAlign")}`]:!0}),accessKey:l,shortKey:a,required:s,renderNoLabel:!0,renderNoTooltip:!0})),t(u,Object.assign({key:"c6c073fd12fa8993d637c6841a11a0be38bb78f1",class:r("kol-input-checkbox__field-control",{"kol-input-checkbox__field-control--checked":o,"kol-input-checkbox__field-control--indeterminate":i,[`kol-input-checkbox__field-control--variant-${n}`]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:l,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:s,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),t(G,{key:"bca27ce0967e5672923bd1fbbd4ae31333858fd5",variant:n,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};l([z("ctaRef")],S.prototype,"focus",null),l([B("ctaRef")],S.prototype,"click",null),S.style={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; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'};export{S as kol_input_checkbox}
|
|
4
|
+
import{h as t,r as e,H as o,g as i}from"./index-DEcM8BEc.js";import{a as n,_ as l}from"./tslib.es6-QNbPBOk5.js";import{b as a}from"./bem-registry-D1KgKnyz.js";import{v as r}from"./access-and-short-key-ijzCZfHm.js";import{c as s}from"./clsx-COFh-Vc8.js";import{i as c,g as h,f as d,B as k,F as m}from"./api-CBPlj155.js";import"./common-BdSzSIXg.js";import{B as b}from"./component-Ccv2lqNq.js";import{I as f}from"./component-EDDTMC-J.js";import{I as p}from"./input-CDUCo1S5.js";import{F as u}from"./field-control-0TRmF7Ea.js";import{a as g,d as _}from"./component-D4-NVnsT.js";import{c as y,n as v,b as w}from"./props-from-config-ytxYrJUY.js";import{r as x}from"./required-BriHhuO4.js";import{c as j}from"./dev.utils-BwYCy1rP.js";import{d as z,a as B,c as D}from"./element-interaction-sGYdEpmv.js";import{s as T}from"./controller-CZcQ57AP.js";import"./component-D9NreIlK.js";import"./aria-labelledby-DqJY_4G-.js";import"./events-CRHxtwup.js";import"./disabled-BZXlWAgK.js";import"./label-with-expert-slot-BbZ9nx0l.js";import"./validators-CTjxOidB.js";import"./label-hints-CLMiVvfk.js";import"./component-B3OziaRC.js";import"./component-D6_K50vT.js";import"./id-BI0ZuK17.js";import"./base-web-component-CC_gpyDb.js";import"./item-B0oQTeju.js";import"./behavior-CKU2tmCj.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./label-lang-segment-iVD9hoM3.js";import"./resolve-props-DTXKtzir.js";import"./behavior-ewHvUWVk.js";import"./bootstrap-tgQ2nQQI.js";import"./component-names-Dhbtt0mX.js";import"./i18n-4J6U3ZDc.js";import"./item-Boe3t0Dm.js";import"./component-By8ggItU.js";import"./i18n-ePBcLlCr.js";import"./component-Cmi6iGfA.js";import"./Heading-GZb1f2pZ.js";import"./block-bem-D3ixJyOY.js";import"./element-focus-BIRmGg5W.js";const C=["button","default","switch"],K=y("value",!0,(t=>t)),I=y("checked",!1,v),A=["checked","indeterminate","unchecked"],q=y("icons",{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},(t=>{if("object"==typeof t&&null!==t&&A.some((e=>(t=>"string"==typeof t&&t.length>0)(t[e]))))return t;throw new Error("Expected an object with at least one icon class of checked, indeterminate or unchecked")})),P=y("indeterminate",!1,v),O=["left","right"],L=y("labelAlign","right",(t=>{const e=w(t);if(O.includes(e))return e;throw new Error(`Invalid label alignment: ${e}`)})),V=y("variant","default",(t=>{const e=w(t);if(C.includes(e))return e;throw new Error(`Invalid checkbox variant: ${e}`)})),H=a.forBlock("kol-checkbox"),M=e=>{var{class:o,variant:i="default",icon:l,inputProps:a}=e,r=n(e,["class","variant","icon","inputProps"]);const{class:d}=a,k=n(a,["class"]);return t(b,Object.assign({component:"label",block:"kol-checkbox",modifiers:Object.assign({"variant-button":"button"===i,"variant-default":"default"===i,"variant-switch":"switch"===i,checked:Boolean(a.checked),indeterminate:Boolean(a.indeterminate),disabled:Boolean(a.disabled),required:Boolean(a.required),touched:Boolean(a.touched)},c(a.msg,a.touched)?{[h(a.msg)]:!0}:{}),class:o},r),t(f,{label:"",icons:l,class:H("icon")}),t(p,Object.assign({class:s(H("input"),d)},k,{type:"checkbox"})))},G={required:[...d.required],optional:[...d.optional,g,K,I,q,P,L,x,_,V]},S=a.forBlock("kol-input-checkbox"),E=class extends k{constructor(t){super(),new.target===E&&e(this,t),this.id=j("input-checkbox"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=D(),this.propsConfig=G,this._accessKey=void 0,this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._indeterminate=void 0,this._labelAlign="right",this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._ariaDetails=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.handleCheckboxInput=t=>{this._checked=!this._checked,this._indeterminate=!1,this.handleInput(t,this.getModelValue())},this.handleCheckboxChange=t=>{this.handleChange(t,this.getModelValue())},this.handleCheckboxKeyDown=t=>{this.handleKeyDown(t),T(t,{form:this.host,ref:this.ctaRef.el})},this.handleCheckboxBlur=t=>{this._disabled||this.handleBlur(t)},this.handleLabelMouseDown=t=>{this.inputHasFocus&&t.preventDefault()},this.handleCheckboxMouseDown=t=>{!this.inputHasFocus||t.target instanceof HTMLInputElement||t.preventDefault()},this.initFormAssociation("checkbox",this._name)}watchAccessKey(t){g.apply(t,(t=>this.setRenderProp("accessKey",t))),r(t,this._shortKey)}watchChecked(t){I.apply(t,(t=>this.setRenderProp("checked",t))),this.syncFormAssociatedValue()}watchHideMsg(t){this.applyHideMsg(t)}watchDisabled(t){this.applyDisabled(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){q.apply(t,(t=>this.setRenderProp("icons",Object.assign(Object.assign({},this.getRenderProp("icons")),t))))}watchInfoPopover(t){this.applyInfoPopover(t)}watchIndeterminate(t){P.apply(t,(t=>this.setRenderProp("indeterminate",t)))}watchLabel(t){this.applyLabel(t)}watchLabelAlign(t){L.apply(t,(t=>this.setRenderProp("labelAlign",t)))}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchRequired(t){x.apply(t,(t=>this.setRenderProp("required",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchShortKey(t){_.apply(t,(t=>this.setRenderProp("shortKey",t))),r(this._accessKey,t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){null==t?this.setRenderProp("value",t):K.apply(t,(t=>this.setRenderProp("value",t))),this.syncFormAssociatedValue()}watchVariant(t){V.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this.getModelValue())}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchRequired(this._required),this.watchChecked(this._checked),this.watchIcons(this._icons),this.watchIndeterminate(this._indeterminate),this.watchValue(this._value),this.watchVariant(this._variant),this.watchLabelAlign(this._labelAlign)}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField()}getModelValue(){return this._checked?this.getRenderProp("value"):null}syncFormAssociatedValue(){this.formAssociation.setFormAssociatedValue(this.getModelValue())}getIcon(){const t=this.getRenderProp("icons");return this.getRenderProp("indeterminate")?t.indeterminate:this.getRenderProp("checked")?t.checked:t.unchecked}getInputProps(){const t=this.getRenderProp("shortKey"),{ariaDescribedBy:e,hasError:o}=this.getAria();return Object.assign(Object.assign({id:this.id,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:null==this._name?void 0:this.getRenderProp("name"),ariaDescribedBy:e,required:this.getRenderProp("required"),checked:this.getRenderProp("checked"),indeterminate:this.getRenderProp("indeterminate"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},t?{"aria-keyshortcuts":t}:{}),{class:s({"visually-hidden":"button"===this.getRenderProp("variant")}),ref:this.ctaRef,onBlur:this.handleCheckboxBlur,onChange:this.handleCheckboxChange,onFocus:this.handleFocus,onInput:this.handleCheckboxInput,onKeyDown:this.handleCheckboxKeyDown,"aria-invalid":o?"true":void 0})}render(){const e=this.getRenderProp("checked"),i=this.getRenderProp("indeterminate"),n=this.getRenderProp("variant"),l=this.getRenderProp("accessKey")||void 0,a=this.getRenderProp("shortKey")||void 0,r=this.getRenderProp("required");return t(o,{key:"9d8f9f1a76d6136279e2a16390c26d358de089cf"},t(m,Object.assign({key:"bc3e19723334f11f76b6f41881aae1eb1896e0a7"},this.getFormFieldProps({class:S({checked:e,indeterminate:i,[`variant-${n}`]:!0,[`label-align-${this.getRenderProp("labelAlign")}`]:!0}),accessKey:l,shortKey:a,required:r,renderNoLabel:!0,renderNoTooltip:!0})),t(u,Object.assign({key:"189767fc96708075bd579d260a4d1425fe243a28",class:S("field-control",{checked:e,indeterminate:i,[`variant-${n}`]:!0}),id:this.id,label:this.getRenderProp("label"),hint:this.getRenderProp("hint"),hideLabel:this.getRenderProp("hideLabel"),labelAlign:this.getRenderProp("labelAlign"),infoPopover:this.getInfoPopover(),accessKey:l,shortKey:a,tooltipAlign:this.getRenderProp("tooltipAlign"),disabled:this.getRenderProp("disabled"),msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),required:r,renderNoHint:!0,labelProps:{onMouseDown:this.handleLabelMouseDown}},this.getLabelTooltipRefs()),t(M,{key:"f15b1f35a6abd220c7af82c6e07378d4e88713ff",variant:n,icon:this.getIcon(),onMouseDown:this.handleCheckboxMouseDown,inputProps:this.getInputProps()}))))}get host(){return i(this)}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_checked:[{watchChecked:0}],_hideMsg:[{watchHideMsg:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_indeterminate:[{watchIndeterminate:0}],_label:[{watchLabel:0}],_labelAlign:[{watchLabelAlign:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_required:[{watchRequired:0}],_ariaDetails:[{watchAriaDetails:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}};l([z("ctaRef")],E.prototype,"focus",null),l([B("ctaRef")],E.prototype,"click",null),E.style={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; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-field-control { display: grid; min-height: var(--a11y-min-size); align-items: center; justify-content: left; grid-template-areas: "input label"; grid-template-columns: auto 1fr; grid-template-rows: auto; } .kol-field-control:has(.kol-field-control__hint) { grid-template-areas: "input label" "hint hint"; grid-template-columns: auto 1fr; grid-template-rows: auto auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label) { grid-template-areas: "label input"; grid-template-columns: 1fr auto; grid-template-rows: auto; } .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) { grid-template-areas: "label input" "hint hint"; grid-template-columns: 1fr auto; grid-template-rows: auto auto; } .kol-field-control__input { display: flex; min-height: var(--a11y-min-size); align-items: center; grid-area: input; } .kol-field-control__label { display: flex; min-height: var(--a11y-min-size); flex-grow: 1; align-items: center; cursor: pointer; grid-area: label; } .kol-field-control__label--visually-hidden { display: none; height: 0; margin: 0; padding: 0; visibility: hidden; } .kol-field-control__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-field-control__hint { grid-area: hint; } .kol-field-control--disabled .kol-field-control__label { cursor: not-allowed; } .kol-field-control--required .kol-field-control__label-text:has(.kol-span__slot[hidden])::after, .kol-field-control--required .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-form-field { display: grid; } .kol-form-field__label-text { display: ruby; } .kol-checkbox { display: flex; position: relative; align-items: center; cursor: pointer; } .kol-checkbox--disabled { cursor: not-allowed; } .kol-checkbox .kol-input { background-color: white; border-style: solid; margin: 0; border-width: 2px; appearance: none; cursor: inherit; } .kol-checkbox .kol-input:before { content: ""; } .kol-checkbox--variant-default { position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); justify-content: center; } .kol-checkbox--variant-default .kol-icon { display: none; position: absolute; inset: auto; z-index: 1; pointer-events: none; } .kol-checkbox--variant-default .kol-input { width: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(22 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon { display: block; } .kol-checkbox--variant-switch { position: relative; } .kol-checkbox--variant-switch .kol-input { display: inline-block; position: relative; width: 3.2em; min-width: 3.2em; height: 1.7em; } .kol-checkbox--variant-switch .kol-input::before { background-color: black; position: absolute; top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16)); width: 1.2em; height: 1.2em; transition: 0.5s; } .kol-checkbox--variant-switch .kol-input:checked::before { transform: translateX(1.5em); } .kol-checkbox--variant-switch .kol-input:indeterminate::before { transform: translateX(0.75em); } .kol-checkbox--variant-switch .kol-icon { transform: translate(0, -50%); color: black; display: flex; position: absolute; top: 50%; left: calc(4 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; transition: 0.5s; } .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon { transform: translate(1.5em, -50%); } .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon { transform: translate(0.75em, -50%); } .kol-checkbox--variant-button { min-width: var(--a11y-min-size); } .kol-checkbox--variant-button .kol-icon { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } }'};export{E as kol_input_checkbox}
|