@public-ui/components 4.7.0-rc.0 → 4.7.0-rc.1
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 +24 -24
- package/dist/cjs/{Heading-BiIgkzH8.js → Heading-DgfHX8iO.js} +2 -2
- package/dist/cjs/{api-CYf8xdSs.js → api-Bco3zhNl.js} +30 -30
- package/dist/cjs/{app-globals-BYAPmvIk.js → app-globals-BfjEc9BA.js} +5 -5
- package/dist/cjs/{base-CUUvWtsB.js → base-BlhVYuZN.js} +14 -14
- package/dist/cjs/{base-BmhaEyug.js → base-CaTF8Lsq.js} +10 -10
- package/dist/cjs/{base-BpyecmRJ.js → base-CaYE9fE3.js} +70 -36
- package/dist/cjs/{base--a0QJmk3.js → base-DRkg3lke.js} +13 -13
- package/dist/cjs/{base-web-component-BompEaD1.js → base-web-component-BF8Oc_jN.js} +1 -1
- package/dist/cjs/{base-web-component-ZnP9FmYh.js → base-web-component-CBcdTiXS.js} +11 -11
- package/dist/cjs/{base-web-component-CWIPg0xv.js → base-web-component-CZJc9Ld3.js} +15 -15
- package/dist/cjs/{behavior-O4U6x6z7.js → behavior-BsDVus9x.js} +9 -9
- package/dist/cjs/{behavior-CFLTEANn.js → behavior-DnJZI13z.js} +9 -9
- package/dist/cjs/{behavior-DSFpiPZZ.js → behavior-OgRkvokv.js} +6 -6
- package/dist/cjs/{bem-registry-CtnO3zCW.js → bem-registry-_oyuMzRs.js} +2 -2
- package/dist/cjs/{bootstrap-DOzWgRGX.js → bootstrap-jLvMy9on.js} +5 -5
- package/dist/cjs/{color-BAx-7-VH.js → color-CBtx0JEd.js} +4 -4
- package/dist/cjs/{component-DUJYVdRR.js → component-6M5X_cZt.js} +6 -6
- package/dist/cjs/{component-BhAlZY9F.js → component-BG4f8vbN.js} +6 -6
- package/dist/cjs/{component-TQvy83J2.js → component-BZT4ABhJ.js} +14 -14
- package/dist/cjs/{component-7ByD-KGA.js → component-Bf1srWgT.js} +4 -4
- package/dist/cjs/{component-DWb8RKVo.js → component-CYZ74d6d.js} +9 -9
- package/dist/cjs/{component-BsX1-89D.js → component-CZATN7e7.js} +10 -10
- package/dist/cjs/{component-Dd3qxReW.js → component-CcR692_g.js} +5 -5
- package/dist/cjs/{component-B2tj_1JK.js → component-DD4gW4Wv.js} +3 -3
- package/dist/cjs/{component-BOtCtyyw.js → component-DELokt1e.js} +7 -7
- package/dist/cjs/{component-STJidyBV.js → component-G9OBs93q.js} +15 -15
- package/dist/cjs/{component-C4QeEJ1-.js → component-b8Mw23VK.js} +5 -5
- package/dist/cjs/{contrast-DOAdZqCp.js → contrast-Dq0rQJv4.js} +5 -5
- package/dist/cjs/{controller-D66Eq44x.js → controller-CYSgD2og.js} +16 -16
- package/dist/cjs/{dev.utils-DlmiDtkx.js → dev.utils-DbZjSMB_.js} +10 -10
- package/dist/cjs/{devtools-C41YtdU_.js → devtools-Cf9tA39t.js} +24 -24
- package/dist/cjs/{disabled-BdFhTB-H.js → disabled-iY2F8CXF.js} +1 -1
- package/dist/cjs/{field-control-S9RwdD26.js → field-control-C23Zk-tt.js} +8 -8
- package/dist/cjs/{group-C00FoXnX.js → group-CLctawrF.js} +5 -5
- package/dist/cjs/{has-closer--ijHuPZy.js → has-closer-DmnD5ziV.js} +1 -1
- package/dist/cjs/{href-BD4uBwDL.js → href-CPwjE6oZ.js} +1 -1
- package/dist/cjs/{i18n-4lKONPdP.js → i18n--y6dSQBm.js} +3 -3
- package/dist/cjs/{i18n-CuXZ7SEi.js → i18n-bT7xr2k5.js} +4 -4
- package/dist/cjs/{id-BM9KgE0w.js → id-hO96Hkhh.js} +1 -1
- package/dist/cjs/{index-DRjg_lHL.js → index-B302UiQS.js} +2 -2
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-0s6YjmaC.js → input-CypPMvU-.js} +5 -5
- package/dist/cjs/{input-container-DYp04csT.js → input-container-jziuknSu.js} +16 -16
- package/dist/cjs/{item-xUIdEroQ.js → item-BkH81iun.js} +8 -8
- package/dist/cjs/{item-CRgD35fr.js → item-DO5SWoIT.js} +8 -8
- package/dist/cjs/{item-BKyAM3Uo.js → item-DyUR8LQP.js} +24 -24
- package/dist/cjs/{item-DWAwMGWB.js → item-FIjcvq4Y.js} +14 -14
- package/dist/cjs/kol-abbr.cjs.entry.js +8 -8
- package/dist/cjs/kol-accordion.cjs.entry.js +18 -18
- package/dist/cjs/kol-alert.cjs.entry.js +27 -27
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -20
- package/dist/cjs/kol-badge.cjs.entry.js +29 -29
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +33 -33
- package/dist/cjs/kol-button-link.cjs.entry.js +26 -26
- package/dist/cjs/kol-button.cjs.entry.js +26 -26
- package/dist/cjs/kol-card.cjs.entry.js +57 -96
- package/dist/cjs/kol-combobox.cjs.entry.js +77 -77
- package/dist/cjs/kol-details.cjs.entry.js +18 -18
- package/dist/cjs/kol-dialog.cjs.entry.js +33 -33
- package/dist/cjs/kol-drawer.cjs.entry.js +32 -32
- package/dist/cjs/kol-form.cjs.entry.js +28 -28
- package/dist/cjs/kol-heading.cjs.entry.js +15 -15
- package/dist/cjs/kol-icon.cjs.entry.js +12 -12
- package/dist/cjs/kol-image.cjs.entry.js +20 -20
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +70 -70
- package/dist/cjs/kol-input-color.cjs.entry.js +57 -57
- package/dist/cjs/kol-input-date.cjs.entry.js +70 -70
- package/dist/cjs/kol-input-email.cjs.entry.js +75 -75
- package/dist/cjs/kol-input-file.cjs.entry.js +52 -52
- package/dist/cjs/kol-input-number.cjs.entry.js +72 -72
- package/dist/cjs/kol-input-password.cjs.entry.js +74 -74
- package/dist/cjs/kol-input-radio.cjs.entry.js +53 -53
- package/dist/cjs/kol-input-range.cjs.entry.js +58 -58
- package/dist/cjs/kol-input-text.cjs.entry.js +87 -87
- package/dist/cjs/kol-kolibri.cjs.entry.js +8 -8
- package/dist/cjs/kol-link-button.cjs.entry.js +36 -36
- package/dist/cjs/kol-link.cjs.entry.js +34 -34
- package/dist/cjs/kol-meter.cjs.entry.js +19 -25
- package/dist/cjs/kol-modal.cjs.entry.js +33 -33
- package/dist/cjs/kol-nav.cjs.entry.js +38 -38
- package/dist/cjs/kol-pagination.cjs.entry.js +57 -57
- package/dist/cjs/kol-popover-button.cjs.entry.js +60 -95
- package/dist/cjs/kol-progress.cjs.entry.js +18 -21
- package/dist/cjs/kol-quote.cjs.entry.js +13 -13
- package/dist/cjs/kol-select.cjs.entry.js +63 -63
- package/dist/cjs/kol-single-select.cjs.entry.js +78 -78
- package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -32
- package/dist/cjs/kol-spin.cjs.entry.js +23 -23
- package/dist/cjs/kol-split-button.cjs.entry.js +30 -30
- package/dist/cjs/kol-table-stateful.cjs.entry.js +112 -101
- package/dist/cjs/kol-table-stateless.cjs.entry.js +55 -55
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -36
- package/dist/cjs/kol-textarea.cjs.entry.js +70 -70
- package/dist/cjs/kol-toast-container.cjs.entry.js +22 -22
- package/dist/cjs/kol-toolbar.cjs.entry.js +45 -45
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +13 -13
- package/dist/cjs/kol-tree-item.cjs.entry.js +31 -31
- package/dist/cjs/kol-tree.cjs.entry.js +10 -10
- package/dist/cjs/kol-version.cjs.entry.js +23 -23
- package/dist/cjs/kolibri.cjs.js +4 -4
- package/dist/cjs/{label-BA98eiFj.js → label-D2VlEzVW.js} +3 -3
- package/dist/cjs/{label-hints-BE4LQ_Av.js → label-hints-CeYTIMWM.js} +4 -4
- package/dist/cjs/{label-lang-segment-C5U5gEca.js → label-lang-segment-n4JXXvXq.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-x1D8V34g.js → label-with-expert-slot-BMZi_Wf-.js} +3 -3
- package/dist/cjs/{level-CX2p0n7U.js → level-zFWeAW3T.js} +1 -1
- package/dist/cjs/{link-target-B1N4Je6O.js → link-target-CHHUlWut.js} +1 -1
- package/dist/cjs/{links-SN0jipdB.js → links-DNq836FP.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{multiple-Dl_RoQ-P.js → multiple-CqTw5Zl-.js} +1 -1
- package/dist/cjs/{number-value-DO-0brWb.js → number-value-CI4C8lZR.js} +3 -2
- package/dist/cjs/{open-BQ2n_Z5t.js → open-CMvvGqsm.js} +1 -1
- package/dist/cjs/{options-B49Y2jkm.js → options-TlEddxWf.js} +3 -3
- package/dist/cjs/{orientation-DKdQrdXN.js → orientation-Bw6xTtO9.js} +1 -1
- package/dist/cjs/{placeholder-E5zS-kqO.js → placeholder-DuCgyrEW.js} +1 -1
- package/dist/cjs/{common-CzGJx0nT.js → prop.validators-C4SLGjLp.js} +24 -91
- package/dist/cjs/{props-from-config-8bawgofo.js → props-from-config-DaGKZuLa.js} +66 -71
- package/dist/cjs/{read-only-YsES5bfT.js → read-only-5clAe4ux.js} +1 -1
- package/dist/cjs/{required-BvWmptNq.js → required-G3fEcN7P.js} +1 -1
- package/dist/cjs/{resolve-props-DUeggpV2.js → resolve-props-Bbb07BLa.js} +8 -8
- package/dist/cjs/{resolve-props-CHqmeYxD.js → resolve-props-Csah9JNe.js} +8 -8
- package/dist/cjs/{rows-BBmwZt2C.js → rows-DTo_lgOT.js} +1 -1
- package/dist/cjs/{scroll-lock-3znuNdTX.js → scroll-lock-BhxtYYKV.js} +3 -3
- package/dist/cjs/{smart-button-B3OCsLLZ.js → smart-button-BN5aGm8g.js} +3 -3
- package/dist/cjs/{spell-check-DuFxddUB.js → spell-check-Dv6XW8fA.js} +1 -1
- package/dist/cjs/{src-Cl2qHbxL.js → src-BaxsjPdd.js} +1 -1
- package/dist/cjs/{step-Bf3TCVBv.js → step-yJC7o2qO.js} +1 -1
- package/dist/cjs/{suggestions-C4B_eROV.js → suggestions-Bk2UPut-.js} +3 -3
- package/dist/cjs/{suggestions-BjKRoku9.js → suggestions-Bn2BAzI8.js} +4 -4
- package/dist/cjs/test-component.cjs.entry.js +2 -2
- package/dist/cjs/{toggle-handler-DEpykyv_.js → toggle-handler-BXGDSkBB.js} +9 -9
- package/dist/cjs/{unique-nav-labels-CNpNvloU.js → unique-nav-labels-CNsmbg7l.js} +3 -3
- package/dist/cjs/{unit-gLQjiSkI.js → unit-Zuxajtin.js} +1 -1
- package/dist/cjs/{validators-DNveqLx4.js → validators-DRNw98Il.js} +1 -1
- package/dist/cjs/{value-string-JMz269Bn.js → value-string-BEW6PiK0.js} +1 -1
- package/dist/cjs/{width-_6rleKWl.js → width-BMlp2iV4.js} +1 -1
- package/dist/collection/components/abbr/component.js +1 -1
- package/dist/collection/components/accordion/component.js +1 -1
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/component.js +3 -3
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/avatar/component.js +4 -7
- package/dist/collection/components/badge/component.js +4 -4
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/component.js +3 -3
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/base.js +1 -1
- package/dist/collection/components/button/component.js +3 -3
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/component.js +3 -3
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/component.js +53 -18
- package/dist/collection/components/card/style.css +2 -2
- package/dist/collection/components/combobox/component.js +115 -115
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/component.js +1 -1
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/component.js +5 -5
- package/dist/collection/components/dialog/style.css +2 -2
- package/dist/collection/components/drawer/component.js +3 -3
- package/dist/collection/components/drawer/style.css +2 -2
- package/dist/collection/components/form/component.js +3 -3
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/heading/component.js +4 -4
- package/dist/collection/components/icon/component.js +3 -3
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +39 -39
- package/dist/collection/components/input-checkbox/component.js +111 -111
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +39 -39
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +78 -78
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +86 -86
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +34 -34
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +68 -68
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +87 -87
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/component.js +36 -36
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/component.js +39 -39
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +145 -145
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/kolibri/component.js +1 -1
- package/dist/collection/components/link/base.js +1 -1
- package/dist/collection/components/link/component.js +26 -26
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/component.js +27 -27
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/meter/component.js +6 -12
- package/dist/collection/components/modal/component.js +5 -5
- package/dist/collection/components/modal/style.css +2 -2
- package/dist/collection/components/nav/component.js +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/component.js +85 -85
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/component.js +40 -11
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/progress/component.js +5 -8
- package/dist/collection/components/public-api/contract.js +46 -6
- package/dist/collection/components/quote/component.js +5 -5
- package/dist/collection/components/select/component.js +61 -61
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/component.js +134 -134
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/component.js +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/spin/component.js +29 -29
- package/dist/collection/components/spin/style.css +8 -1
- package/dist/collection/components/split-button/component.js +5 -5
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +107 -113
- package/dist/collection/components/table-stateful/style.css +11 -4
- package/dist/collection/components/table-stateless/base.js +7 -1
- package/dist/collection/components/table-stateless/component.js +53 -53
- package/dist/collection/components/table-stateless/style.css +11 -4
- package/dist/collection/components/tabs/component.js +12 -12
- package/dist/collection/components/tabs/style.css +3 -3
- package/dist/collection/components/textarea/component.js +88 -88
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/shadow.js +3 -3
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/component.js +33 -33
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tooltip/component.js +1 -1
- package/dist/collection/components/tree/component.js +2 -2
- package/dist/collection/components/tree-item/component.js +35 -35
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/component.js +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/collection/global/script.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/internal/functional-components/breadcrumb/link-item.js +2 -2
- package/dist/collection/internal/functional-components/button/item.js +3 -3
- package/dist/collection/internal/functional-components/counter/api.js +1 -1
- package/dist/collection/internal/functional-components/dialog/item.js +2 -2
- package/dist/collection/{components → internal/functional-components}/form/controller.js +2 -2
- package/dist/collection/internal/functional-components/form/error-link-item.js +2 -2
- package/dist/collection/internal/functional-components/form-field/base-web-component.js +7 -7
- package/dist/collection/internal/functional-components/form-field/msg.js +2 -2
- package/dist/collection/internal/functional-components/form-field/number-value.js +1 -1
- package/dist/collection/internal/functional-components/link/api.js +1 -1
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/link/item.js +3 -3
- package/dist/collection/internal/functional-components/pagination/item.js +1 -1
- package/dist/collection/internal/functional-components/popover-button/item.js +2 -2
- package/dist/collection/internal/functional-components/progress/api.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/api.js +1 -1
- package/dist/collection/internal/functional-components/skip-nav/link-item.js +2 -2
- package/dist/collection/internal/functional-components/table-stateful/component.js +17 -0
- package/dist/collection/internal/functional-components/table-stateful/model.js +11 -7
- package/dist/collection/internal/functional-components/table-stateless/component.js +6 -3
- package/dist/collection/internal/functional-components/table-stateless/selection-tooltip-item.js +29 -0
- package/dist/collection/internal/functional-components/table-stateless/settings.js +2 -2
- package/dist/collection/internal/functional-components/tabs/button-item.js +2 -2
- package/dist/collection/internal/functional-components/text-input/base-web-component.js +1 -1
- package/dist/collection/internal/functional-components/toolbar/{item.js → entry-item.js} +5 -5
- package/dist/collection/internal/props/helpers/factory.js +1 -1
- package/dist/collection/internal/props/helpers/normalizers.js +2 -5
- package/dist/collection/internal/props/index.js +0 -1
- package/dist/collection/locales/de.js +2 -2
- package/dist/collection/locales/en.js +2 -2
- package/dist/collection/schema/components/index.js +0 -30
- package/dist/collection/schema/props/accept.js +1 -7
- package/dist/collection/schema/props/access-key.js +1 -7
- package/dist/collection/schema/props/active.js +1 -7
- package/dist/collection/schema/props/adjust-height.js +1 -7
- package/dist/collection/schema/props/alert-type.js +0 -7
- package/dist/collection/schema/props/align.js +0 -4
- package/dist/collection/schema/props/allow-multi-sort.js +1 -7
- package/dist/collection/schema/props/alt.js +1 -7
- package/dist/collection/schema/props/alternative-button-link-role.js +1 -8
- package/dist/collection/schema/props/aria-controls.js +1 -7
- package/dist/collection/schema/props/aria-current-value.js +1 -10
- package/dist/collection/schema/props/aria-description.js +1 -7
- package/dist/collection/schema/props/aria-expanded.js +1 -7
- package/dist/collection/schema/props/aria-labelledby.js +6 -4
- package/dist/collection/schema/props/aria-owns.js +1 -9
- package/dist/collection/schema/props/aria-selected.js +1 -7
- package/dist/collection/schema/props/auto-complete.js +0 -6
- package/dist/collection/schema/props/badge-text.js +1 -7
- package/dist/collection/schema/props/button-callbacks.js +1 -7
- package/dist/collection/schema/props/button-type.js +1 -8
- package/dist/collection/schema/props/button-variant.js +1 -10
- package/dist/collection/schema/props/checked.js +1 -7
- package/dist/collection/schema/props/collapsible.js +1 -7
- package/dist/collection/schema/props/color.js +1 -14
- package/dist/collection/schema/props/current-length.js +1 -7
- package/dist/collection/schema/props/custom-class.js +1 -9
- package/dist/collection/schema/props/disabled.js +1 -15
- package/dist/collection/schema/props/download.js +1 -7
- package/dist/collection/schema/props/error-list.js +1 -14
- package/dist/collection/schema/props/has-closer.js +1 -7
- package/dist/collection/schema/props/has-compact-button.js +1 -7
- package/dist/collection/schema/props/has-counter.js +1 -7
- package/dist/collection/schema/props/has-create-button.js +1 -7
- package/dist/collection/schema/props/has-icons-when-expanded.js +1 -7
- package/dist/collection/schema/props/has-settings-menu.js +1 -7
- package/dist/collection/schema/props/has-value.js +1 -7
- package/dist/collection/schema/props/hide-label.js +1 -7
- package/dist/collection/schema/props/hide-msg.js +1 -7
- package/dist/collection/schema/props/hint.js +1 -7
- package/dist/collection/schema/props/href.js +1 -7
- package/dist/collection/schema/props/icons-input-checkbox.js +1 -18
- package/dist/collection/schema/props/icons.js +0 -43
- package/dist/collection/schema/props/id.js +1 -7
- package/dist/collection/schema/props/image-sizes.js +1 -7
- package/dist/collection/schema/props/image-source.js +1 -7
- package/dist/collection/schema/props/image-srcset.js +1 -7
- package/dist/collection/schema/props/indeterminate.js +1 -7
- package/dist/collection/schema/props/index.js +4 -0
- package/dist/collection/schema/props/inline.js +1 -7
- package/dist/collection/schema/props/label-align.js +1 -8
- package/dist/collection/schema/props/label.js +0 -35
- package/dist/collection/schema/props/link-on-callbacks.js +1 -8
- package/dist/collection/schema/props/link-target.js +1 -7
- package/dist/collection/schema/props/loading.js +1 -8
- package/dist/collection/schema/props/max-length-behavior.js +1 -8
- package/dist/collection/schema/props/max-length.js +1 -7
- package/dist/collection/schema/props/max.js +1 -7
- package/dist/collection/schema/props/modal.js +1 -7
- package/dist/collection/schema/props/msg.js +1 -24
- package/dist/collection/schema/props/multiple.js +1 -7
- package/dist/collection/schema/props/name.js +1 -7
- package/dist/collection/schema/props/open.js +1 -7
- package/dist/collection/schema/props/options.js +1 -11
- package/dist/collection/schema/props/orientation.js +1 -10
- package/dist/collection/schema/props/pagination-position.js +1 -10
- package/dist/collection/schema/props/pattern.js +1 -7
- package/dist/collection/schema/props/placeholder.js +1 -7
- package/dist/collection/schema/props/popover-align.js +1 -7
- package/dist/collection/schema/props/read-only.js +1 -7
- package/dist/collection/schema/props/required.js +1 -7
- package/dist/collection/schema/props/resize-textarea.js +0 -9
- package/dist/collection/schema/props/rows.js +1 -7
- package/dist/collection/schema/props/short-key.js +1 -7
- package/dist/collection/schema/props/show.js +1 -7
- package/dist/collection/schema/props/spell-check.js +1 -9
- package/dist/collection/schema/props/suggestions.js +1 -16
- package/dist/collection/schema/props/tab-behavior.js +1 -8
- package/dist/collection/schema/props/tab-index.js +1 -16
- package/dist/collection/schema/props/table-callbacks.js +1 -10
- package/dist/collection/schema/props/table-data-foot.js +1 -21
- package/dist/collection/schema/props/table-data.js +1 -21
- package/dist/collection/schema/props/table-fixed-cols.js +1 -14
- package/dist/collection/schema/props/table-header-cells.js +1 -36
- package/dist/collection/schema/props/table-selection.js +1 -22
- package/dist/collection/schema/props/toolbar-items.js +1 -21
- package/dist/collection/schema/props/tooltip-align.js +1 -7
- package/dist/collection/schema/props/touched.js +1 -7
- package/dist/collection/schema/props/type-input-date.js +0 -7
- package/dist/collection/schema/props/type-input-text.js +0 -7
- package/dist/collection/schema/props/unit.js +1 -7
- package/dist/collection/schema/props/variant/dialog.js +1 -8
- package/dist/collection/schema/props/variant/modal.js +1 -4
- package/dist/collection/schema/props/variant/password-variant.js +1 -8
- package/dist/collection/schema/props/variant-alert.js +0 -7
- package/dist/collection/schema/props/variant-class-name.js +0 -33
- package/dist/collection/schema/props/variant-input-checkbox.js +0 -7
- package/dist/collection/schema/props/variant-progress.js +0 -7
- package/dist/collection/schema/props/visibility-toggle.js +1 -7
- package/dist/collection/schema/props/width.js +1 -7
- package/dist/collection/schema/utils/contrast.js +1 -1
- package/dist/collection/schema/utils/prop.validators.js +1 -132
- package/dist/collection/schema/validators/common.js +4 -0
- package/dist/collection/schema/validators/index.js +0 -1
- package/dist/collection/utils/dev.utils.js +1 -2
- package/dist/collection/utils/testing/logged-messages.js +4 -0
- package/dist/collection/utils/testing/snapshot-input-testing.js +1 -1
- package/dist/collection/utils/testing/snapshot-testing.js +2 -1
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component3.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/base3.js +1 -1
- package/dist/components/base4.js +1 -1
- package/dist/components/behavior.js +1 -1
- package/dist/components/behavior2.js +1 -1
- package/dist/components/behavior3.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/bootstrap.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/dev.utils.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/item.js +1 -1
- package/dist/components/item2.js +1 -1
- package/dist/components/item3.js +1 -1
- package/dist/components/item4.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-meter.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/label-hints.js +1 -1
- package/dist/components/label-lang-segment.js +1 -1
- package/dist/components/label-with-expert-slot.js +1 -1
- package/dist/components/level.js +1 -1
- package/dist/components/links.js +1 -1
- package/dist/components/number-value.js +1 -1
- package/dist/components/props-from-config.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/components/unit.js +1 -1
- package/dist/components/validators.js +1 -1
- package/dist/esm/{Heading-DDS-lyOB.js → Heading-Cjeak0Ip.js} +2 -2
- package/dist/esm/{api-MBSY9afi.js → api-lgc52EwH.js} +27 -27
- package/dist/esm/{app-globals-DytcyM_s.js → app-globals-CJI5vjfG.js} +3 -3
- package/dist/esm/{base-D-me6QDT.js → base-4vZOpHqg.js} +12 -12
- package/dist/esm/{base-D7-iAVBu.js → base-CrFm3Vt_.js} +66 -32
- package/dist/esm/{base-DP9yHJOV.js → base-DyVivWCE.js} +12 -12
- package/dist/esm/{base-DZBnXHZh.js → base-jUFiFkFq.js} +10 -10
- package/dist/esm/{base-web-component-DwY54ppZ.js → base-web-component-BhT6Ab3x.js} +15 -15
- package/dist/esm/{base-web-component-BLA2cpyz.js → base-web-component-Ci40K_CL.js} +9 -9
- package/dist/esm/{base-web-component-Bh2NCN7p.js → base-web-component-puo2mSiH.js} +1 -1
- package/dist/esm/{behavior-DUy0X7U1.js → behavior-BOUrKwXj.js} +5 -5
- package/dist/esm/{behavior-Cw8QfOcm.js → behavior-BeStbAbq.js} +6 -6
- package/dist/esm/{behavior-DmR4WVXd.js → behavior-vf9LgKnJ.js} +5 -5
- package/dist/esm/{bem-registry-SKACeCny.js → bem-registry-jPrVOPGX.js} +1 -1
- package/dist/esm/{bootstrap-Bp7i4RJQ.js → bootstrap-tModZ1Zn.js} +2 -2
- package/dist/esm/{color-CnRQPMm_.js → color-BBs35rDv.js} +3 -3
- package/dist/esm/{component-vxdandl4.js → component-8rE7KeIV.js} +9 -9
- package/dist/esm/{component-LadkF9an.js → component-B2hvPtlq.js} +3 -3
- package/dist/esm/{component-Bldy_ShO.js → component-BGqaexiY.js} +5 -5
- package/dist/esm/{component-D5yKRPCZ.js → component-C3fJM1FJ.js} +4 -4
- package/dist/esm/{component-DxnezN7K.js → component-C5YYCLBG.js} +5 -5
- package/dist/esm/{component-ZJiUl6kZ.js → component-CYv5K14M.js} +14 -14
- package/dist/esm/{component-BC1TpQVD.js → component-ComtEOJP.js} +10 -10
- package/dist/esm/{component-BUzgs8fh.js → component-CtnZeJ8i.js} +14 -14
- package/dist/esm/{component-B4CDonzN.js → component-CuBrmISS.js} +7 -7
- package/dist/esm/{component-Cj3P_f35.js → component-CuPl7i5J.js} +5 -5
- package/dist/esm/{component-DisuGN16.js → component-DzwUKDj3.js} +6 -6
- package/dist/esm/{contrast-pfwNxK_L.js → contrast-DiGJSn0q.js} +2 -2
- package/dist/esm/{controller-CZcQ57AP.js → controller-BNVDUbSt.js} +1 -1
- package/dist/esm/{dev.utils-DM7Qhcet.js → dev.utils-CS2a1Xpz.js} +2 -2
- package/dist/esm/{devtools-CxUqjh1N.js → devtools-DDKKBFlN.js} +3 -3
- package/dist/esm/{disabled-C2DzYwwy.js → disabled-CnKpxKzf.js} +1 -1
- package/dist/esm/{field-control-CQJgDAKK.js → field-control-BRw1DpB2.js} +8 -8
- package/dist/esm/{group-DCoICCiG.js → group-CeF4yHhL.js} +5 -5
- package/dist/esm/{has-closer-x20C4xl3.js → has-closer-DYgccfEw.js} +1 -1
- package/dist/esm/{href-vIF4eC7d.js → href-BJ2DdiWo.js} +1 -1
- package/dist/esm/{i18n-BRgvVqCf.js → i18n-6bNr_AKM.js} +4 -4
- package/dist/esm/{i18n-BLkzMf6D.js → i18n-DsSD0Coa.js} +2 -2
- package/dist/esm/{id-lCAtMmMx.js → id-BBQitGSa.js} +1 -1
- package/dist/esm/{index-8-BSSKQL.js → index-BFGAlyrC.js} +2 -2
- package/dist/esm/index.js +7 -7
- package/dist/esm/{input-C4yo-d7N.js → input-Br0RXmck.js} +5 -5
- package/dist/esm/{input-container-Cb2xJUCl.js → input-container-C8HGQnts.js} +7 -7
- package/dist/esm/{item-C2HHBTvm.js → item-BHmWBVJU.js} +7 -7
- package/dist/esm/{item-BANfM_Mo.js → item-C0BsuFnx.js} +21 -21
- package/dist/esm/{item-gvmzMXYb.js → item-CKABE_5V.js} +13 -13
- package/dist/esm/{item-H09kNXn9.js → item-D-uF2_uB.js} +7 -7
- package/dist/esm/kol-abbr.entry.js +8 -8
- package/dist/esm/kol-accordion.entry.js +17 -17
- package/dist/esm/kol-alert.entry.js +27 -27
- package/dist/esm/kol-avatar.entry.js +17 -20
- package/dist/esm/kol-badge.entry.js +26 -26
- package/dist/esm/kol-breadcrumb.entry.js +30 -30
- package/dist/esm/kol-button-link.entry.js +26 -26
- package/dist/esm/kol-button.entry.js +26 -26
- package/dist/esm/kol-card.entry.js +58 -97
- package/dist/esm/kol-combobox.entry.js +77 -77
- package/dist/esm/kol-details.entry.js +17 -17
- package/dist/esm/kol-dialog.entry.js +33 -33
- package/dist/esm/kol-drawer.entry.js +32 -32
- package/dist/esm/kol-form.entry.js +27 -27
- package/dist/esm/kol-heading.entry.js +15 -15
- package/dist/esm/kol-icon.entry.js +12 -12
- package/dist/esm/kol-image.entry.js +20 -20
- package/dist/esm/kol-input-checkbox.entry.js +70 -70
- package/dist/esm/kol-input-color.entry.js +57 -57
- package/dist/esm/kol-input-date.entry.js +69 -69
- package/dist/esm/kol-input-email.entry.js +75 -75
- package/dist/esm/kol-input-file.entry.js +52 -52
- package/dist/esm/kol-input-number.entry.js +71 -71
- package/dist/esm/kol-input-password.entry.js +73 -73
- package/dist/esm/kol-input-radio.entry.js +53 -53
- package/dist/esm/kol-input-range.entry.js +58 -58
- package/dist/esm/kol-input-text.entry.js +87 -87
- package/dist/esm/kol-kolibri.entry.js +8 -8
- package/dist/esm/kol-link-button.entry.js +35 -35
- package/dist/esm/kol-link.entry.js +34 -34
- package/dist/esm/kol-meter.entry.js +19 -25
- package/dist/esm/kol-modal.entry.js +33 -33
- package/dist/esm/kol-nav.entry.js +36 -36
- package/dist/esm/kol-pagination.entry.js +57 -57
- package/dist/esm/kol-popover-button.entry.js +60 -95
- package/dist/esm/kol-progress.entry.js +18 -21
- package/dist/esm/kol-quote.entry.js +13 -13
- package/dist/esm/kol-select.entry.js +63 -63
- package/dist/esm/kol-single-select.entry.js +78 -78
- package/dist/esm/kol-skip-nav.entry.js +30 -30
- package/dist/esm/kol-spin.entry.js +23 -23
- package/dist/esm/kol-split-button.entry.js +30 -30
- package/dist/esm/kol-table-stateful.entry.js +108 -97
- package/dist/esm/kol-table-stateless.entry.js +55 -55
- package/dist/esm/kol-tabs.entry.js +32 -32
- package/dist/esm/kol-textarea.entry.js +70 -70
- package/dist/esm/kol-toast-container.entry.js +21 -21
- package/dist/esm/kol-toolbar.entry.js +42 -42
- package/dist/esm/kol-tooltip-wc.entry.js +13 -13
- package/dist/esm/kol-tree-item.entry.js +31 -31
- package/dist/esm/kol-tree.entry.js +10 -10
- package/dist/esm/kol-version.entry.js +23 -23
- package/dist/esm/kolibri.js +5 -5
- package/dist/esm/{label-mr5joqaQ.js → label-DQC6csvN.js} +3 -3
- package/dist/esm/{label-hints-BUADjqKF.js → label-hints-Y3Zh7X3N.js} +2 -2
- package/dist/esm/{label-lang-segment-B13iL7iy.js → label-lang-segment-BnLCd3lO.js} +2 -2
- package/dist/esm/{label-with-expert-slot-BVqi0_Fb.js → label-with-expert-slot-BxbzJ0aJ.js} +3 -3
- package/dist/esm/{level-eGeMFn0b.js → level-BaaaBkKR.js} +1 -1
- package/dist/esm/{link-target-DEH-wAmf.js → link-target-BgH0UuzW.js} +1 -1
- package/dist/esm/{links-Dy9WkOJ-.js → links-DnB1I1Gi.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{multiple-F8uOX8RD.js → multiple-CoXuIBC5.js} +1 -1
- package/dist/esm/{number-value-DncK2_pC.js → number-value-MjxRVb0R.js} +2 -1
- package/dist/esm/{open-DoPXNruj.js → open-DBrDqNNt.js} +1 -1
- package/dist/esm/{options-DcIQ-KB2.js → options-CQrFWcRm.js} +2 -2
- package/dist/esm/{orientation-tX0FldEu.js → orientation-Dd57TF4f.js} +1 -1
- package/dist/esm/{placeholder-BPZ2sQEB.js → placeholder-C2TRH0yn.js} +1 -1
- package/dist/esm/{common-BdSzSIXg.js → prop.validators-kX7xC6qj.js} +23 -91
- package/dist/esm/{props-from-config-LBgEHmcL.js → props-from-config-B_k4h7ak.js} +56 -60
- package/dist/esm/{read-only-9BPUG7r4.js → read-only-Do20HzKS.js} +1 -1
- package/dist/esm/{required-DBJ4iW2e.js → required-DBer2Rxa.js} +1 -1
- package/dist/esm/{resolve-props-BQa6SjZU.js → resolve-props-BzL6wFWn.js} +8 -8
- package/dist/esm/{resolve-props-0xfjG6h5.js → resolve-props-DUtwGFZS.js} +7 -7
- package/dist/esm/{rows-DuYJeJT7.js → rows-CA8QgHMZ.js} +1 -1
- package/dist/esm/{scroll-lock-CIv7iOPB.js → scroll-lock-Ch4ulFTS.js} +3 -3
- package/dist/esm/{smart-button-p4avK7MS.js → smart-button-BB671N1B.js} +2 -2
- package/dist/esm/{spell-check-Bvc-Peew.js → spell-check-F1_tx4iu.js} +1 -1
- package/dist/esm/{src-CVwlo_cY.js → src-CkojG2tS.js} +1 -1
- package/dist/esm/{step-oCposIuI.js → step-CTjZRMNh.js} +1 -1
- package/dist/esm/{suggestions-fWMdnACm.js → suggestions-By7hmqB7.js} +3 -3
- package/dist/esm/{suggestions-BsWy2U2z.js → suggestions-G70JmX5_.js} +2 -2
- package/dist/esm/test-component.entry.js +2 -2
- package/dist/esm/{toggle-handler-CtJ2Z7Us.js → toggle-handler-Cx8yn4d5.js} +9 -9
- package/dist/esm/{unique-nav-labels-CZIyOzqJ.js → unique-nav-labels-Civ833r0.js} +2 -2
- package/dist/esm/{unit-YqluIXsF.js → unit-JYCI5y5-.js} +1 -1
- package/dist/esm/{validators-ByUMEUYD.js → validators-CAtXsuiZ.js} +1 -1
- package/dist/esm/{value-string-Baqhc_TX.js → value-string-Dz7Sa2ex.js} +1 -1
- package/dist/esm/{width-BJNhiv_8.js → width-BikKpAHu.js} +1 -1
- package/dist/kolibri/Heading-Cjeak0Ip.js +4 -0
- package/dist/kolibri/api-lgc52EwH.js +4 -0
- package/dist/kolibri/app-globals-CJI5vjfG.js +4 -0
- package/dist/kolibri/base-4vZOpHqg.js +4 -0
- package/dist/kolibri/base-CrFm3Vt_.js +4 -0
- package/dist/kolibri/base-DyVivWCE.js +4 -0
- package/dist/kolibri/base-jUFiFkFq.js +4 -0
- package/dist/kolibri/base-web-component-BhT6Ab3x.js +4 -0
- package/dist/kolibri/base-web-component-Ci40K_CL.js +4 -0
- package/dist/kolibri/{base-web-component-Bh2NCN7p.js → base-web-component-puo2mSiH.js} +1 -1
- package/dist/kolibri/behavior-BOUrKwXj.js +4 -0
- package/dist/kolibri/behavior-BeStbAbq.js +4 -0
- package/dist/kolibri/behavior-vf9LgKnJ.js +4 -0
- package/dist/kolibri/bem-registry-jPrVOPGX.js +4 -0
- package/dist/kolibri/bootstrap-tModZ1Zn.js +4 -0
- package/dist/kolibri/color-BBs35rDv.js +4 -0
- package/dist/kolibri/component-8rE7KeIV.js +4 -0
- package/dist/kolibri/component-B2hvPtlq.js +4 -0
- package/dist/kolibri/component-BGqaexiY.js +4 -0
- package/dist/kolibri/component-C3fJM1FJ.js +4 -0
- package/dist/kolibri/{component-DxnezN7K.js → component-C5YYCLBG.js} +1 -1
- package/dist/kolibri/component-CYv5K14M.js +4 -0
- package/dist/kolibri/component-ComtEOJP.js +4 -0
- package/dist/kolibri/component-CtnZeJ8i.js +4 -0
- package/dist/kolibri/component-CuBrmISS.js +4 -0
- package/dist/kolibri/component-CuPl7i5J.js +4 -0
- package/dist/kolibri/component-DzwUKDj3.js +4 -0
- package/dist/kolibri/contrast-DiGJSn0q.js +4 -0
- package/dist/kolibri/controller-BNVDUbSt.js +4 -0
- package/dist/kolibri/dev.utils-CS2a1Xpz.js +4 -0
- package/dist/kolibri/devtools-DDKKBFlN.js +4 -0
- package/dist/kolibri/disabled-CnKpxKzf.js +4 -0
- package/dist/kolibri/field-control-BRw1DpB2.js +4 -0
- package/dist/kolibri/{group-DCoICCiG.js → group-CeF4yHhL.js} +1 -1
- package/dist/kolibri/has-closer-DYgccfEw.js +4 -0
- package/dist/kolibri/href-BJ2DdiWo.js +4 -0
- package/dist/kolibri/i18n-6bNr_AKM.js +4 -0
- package/dist/kolibri/i18n-DsSD0Coa.js +4 -0
- package/dist/kolibri/id-BBQitGSa.js +4 -0
- package/dist/kolibri/index-BFGAlyrC.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-Br0RXmck.js +4 -0
- package/dist/kolibri/input-container-C8HGQnts.js +4 -0
- package/dist/kolibri/item-BHmWBVJU.js +4 -0
- package/dist/kolibri/item-C0BsuFnx.js +4 -0
- package/dist/kolibri/item-CKABE_5V.js +4 -0
- package/dist/kolibri/item-D-uF2_uB.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/label-DQC6csvN.js +4 -0
- package/dist/kolibri/label-hints-Y3Zh7X3N.js +4 -0
- package/dist/kolibri/label-lang-segment-BnLCd3lO.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BxbzJ0aJ.js +4 -0
- package/dist/kolibri/level-BaaaBkKR.js +4 -0
- package/dist/kolibri/link-target-BgH0UuzW.js +4 -0
- package/dist/kolibri/links-DnB1I1Gi.js +4 -0
- package/dist/kolibri/multiple-CoXuIBC5.js +4 -0
- package/dist/kolibri/number-value-MjxRVb0R.js +4 -0
- package/dist/kolibri/open-DBrDqNNt.js +4 -0
- package/dist/kolibri/options-CQrFWcRm.js +4 -0
- package/dist/kolibri/{orientation-tX0FldEu.js → orientation-Dd57TF4f.js} +1 -1
- package/dist/kolibri/placeholder-C2TRH0yn.js +4 -0
- package/dist/kolibri/prop.validators-kX7xC6qj.js +4 -0
- package/dist/kolibri/props-from-config-B_k4h7ak.js +4 -0
- package/dist/kolibri/read-only-Do20HzKS.js +4 -0
- package/dist/kolibri/required-DBer2Rxa.js +4 -0
- package/dist/kolibri/resolve-props-BzL6wFWn.js +4 -0
- package/dist/kolibri/resolve-props-DUtwGFZS.js +4 -0
- package/dist/kolibri/rows-CA8QgHMZ.js +4 -0
- package/dist/kolibri/{scroll-lock-CIv7iOPB.js → scroll-lock-Ch4ulFTS.js} +1 -1
- package/dist/kolibri/smart-button-BB671N1B.js +4 -0
- package/dist/kolibri/spell-check-F1_tx4iu.js +4 -0
- package/dist/kolibri/src-CkojG2tS.js +4 -0
- package/dist/kolibri/step-CTjZRMNh.js +4 -0
- package/dist/kolibri/suggestions-By7hmqB7.js +4 -0
- package/dist/kolibri/suggestions-G70JmX5_.js +4 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-Cx8yn4d5.js +4 -0
- package/dist/kolibri/unique-nav-labels-Civ833r0.js +4 -0
- package/dist/kolibri/unit-JYCI5y5-.js +4 -0
- package/dist/kolibri/validators-CAtXsuiZ.js +4 -0
- package/dist/kolibri/value-string-Dz7Sa2ex.js +4 -0
- package/dist/kolibri/{width-BJNhiv_8.js → width-BikKpAHu.js} +1 -1
- package/dist/types/components/accordion/component.d.ts +2 -2
- package/dist/types/components/alert/component.d.ts +2 -2
- package/dist/types/components/badge/component.d.ts +2 -2
- package/dist/types/components/breadcrumb/component.d.ts +2 -2
- package/dist/types/components/button/base.d.ts +1 -1
- package/dist/types/components/button/component.d.ts +2 -2
- package/dist/types/components/button-link/component.d.ts +2 -2
- package/dist/types/components/card/component.d.ts +12 -5
- package/dist/types/components/combobox/component.d.ts +10 -10
- package/dist/types/components/details/component.d.ts +2 -2
- package/dist/types/components/dialog/base.d.ts +1 -1
- package/dist/types/components/dialog/component.d.ts +3 -3
- package/dist/types/components/drawer/component.d.ts +2 -2
- package/dist/types/components/form/component.d.ts +2 -2
- package/dist/types/components/heading/component.d.ts +2 -2
- package/dist/types/components/image/component.d.ts +2 -2
- package/dist/types/components/input-checkbox/component.d.ts +9 -9
- package/dist/types/components/input-color/component.d.ts +4 -4
- package/dist/types/components/input-date/component.d.ts +6 -6
- package/dist/types/components/input-email/component.d.ts +8 -8
- package/dist/types/components/input-file/component.d.ts +4 -4
- package/dist/types/components/input-number/component.d.ts +6 -6
- package/dist/types/components/input-password/component.d.ts +8 -8
- package/dist/types/components/input-radio/component.d.ts +5 -5
- package/dist/types/components/input-range/component.d.ts +4 -4
- package/dist/types/components/input-text/component.d.ts +12 -12
- package/dist/types/components/kolibri/component.d.ts +2 -2
- package/dist/types/components/link/component.d.ts +4 -4
- package/dist/types/components/link-button/component.d.ts +4 -4
- package/dist/types/components/modal/component.d.ts +3 -3
- package/dist/types/components/nav/component.d.ts +2 -2
- package/dist/types/components/pagination/component.d.ts +8 -8
- package/dist/types/components/popover-button/component.d.ts +10 -3
- package/dist/types/components/public-api/contract.d.ts +7 -2
- package/dist/types/components/select/component.d.ts +6 -6
- package/dist/types/components/single-select/component.d.ts +10 -10
- package/dist/types/components/skip-nav/component.d.ts +2 -2
- package/dist/types/components/spin/component.d.ts +2 -2
- package/dist/types/components/split-button/component.d.ts +2 -2
- package/dist/types/components/table-stateful/component.d.ts +7 -8
- package/dist/types/components/table-stateless/base.d.ts +2 -0
- package/dist/types/components/table-stateless/component.d.ts +7 -7
- package/dist/types/components/tabs/component.d.ts +3 -3
- package/dist/types/components/textarea/component.d.ts +8 -8
- package/dist/types/components/toaster/shadow.d.ts +5 -3
- package/dist/types/components/toolbar/component.d.ts +6 -6
- package/dist/types/components/tree/component.d.ts +2 -2
- package/dist/types/components/tree-item/component.d.ts +4 -4
- package/dist/types/components/version/component.d.ts +2 -2
- package/dist/types/components.d.ts +48 -56
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/functional-components/abbr/api.d.ts +1 -1
- package/dist/types/internal/functional-components/alert/api.d.ts +1 -1
- package/dist/types/internal/functional-components/avatar/api.d.ts +2 -2
- package/dist/types/internal/functional-components/badge/api.d.ts +2 -26
- package/dist/types/internal/functional-components/base-web-component.d.ts +1 -1
- package/dist/types/internal/functional-components/breadcrumb/api.d.ts +1 -1
- package/dist/types/internal/functional-components/button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/card/api.d.ts +2 -2
- package/dist/types/internal/functional-components/collapsible/api.d.ts +2 -2
- package/dist/types/internal/functional-components/combobox/api.d.ts +4 -4
- package/dist/types/internal/functional-components/counter/api.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/api.d.ts +2 -2
- package/dist/types/internal/functional-components/dialog/component.d.ts +1 -1
- package/dist/types/internal/functional-components/dialog/item.d.ts +1 -1
- package/dist/types/internal/functional-components/drawer/api.d.ts +2 -2
- package/dist/types/internal/functional-components/form/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
- package/dist/types/internal/functional-components/form-field/api.d.ts +3 -3
- package/dist/types/internal/functional-components/form-field/base-web-component.d.ts +2 -2
- package/dist/types/internal/functional-components/form-field/number-value.d.ts +1 -1
- package/dist/types/internal/functional-components/form-field/select-value.d.ts +1 -1
- package/dist/types/internal/functional-components/generic-types.d.ts +2 -2
- package/dist/types/internal/functional-components/heading/api.d.ts +2 -2
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/image/api.d.ts +2 -2
- package/dist/types/internal/functional-components/input-checkbox/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-color/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-date/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-email/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-file/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-number/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-password/api.d.ts +4 -28
- package/dist/types/internal/functional-components/input-radio/api.d.ts +3 -3
- package/dist/types/internal/functional-components/input-range/api.d.ts +4 -4
- package/dist/types/internal/functional-components/input-text/api.d.ts +4 -28
- package/dist/types/internal/functional-components/kolibri/api.d.ts +1 -1
- package/dist/types/internal/functional-components/link/api.d.ts +2 -2
- package/dist/types/internal/functional-components/meter/api.d.ts +3 -3
- package/dist/types/internal/functional-components/nav/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/component.d.ts +1 -1
- package/dist/types/internal/functional-components/popover/api.d.ts +1 -1
- package/dist/types/internal/functional-components/popover-button/api.d.ts +2 -2
- package/dist/types/internal/functional-components/progress/api.d.ts +3 -3
- package/dist/types/internal/functional-components/quote/api.d.ts +2 -2
- package/dist/types/internal/functional-components/select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/single-select/api.d.ts +4 -4
- package/dist/types/internal/functional-components/skip-nav/api.d.ts +1 -1
- package/dist/types/internal/functional-components/spin/api.d.ts +1 -1
- package/dist/types/internal/functional-components/split-button/api.d.ts +1 -1
- package/dist/types/internal/functional-components/table-stateful/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateful/component.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
- package/dist/types/internal/functional-components/table-stateless/component.d.ts +2 -0
- package/dist/types/internal/functional-components/table-stateless/selection-tooltip-item.d.ts +10 -0
- package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +1 -1
- package/dist/types/internal/functional-components/tabs/api.d.ts +2 -2
- package/dist/types/internal/functional-components/text-input/api.d.ts +4 -28
- package/dist/types/internal/functional-components/textarea/api.d.ts +4 -4
- package/dist/types/internal/functional-components/toolbar/api.d.ts +3 -3
- package/dist/types/internal/functional-components/toolbar/{item.d.ts → entry-item.d.ts} +1 -1
- package/dist/types/internal/functional-components/tooltip/api.d.ts +2 -2
- package/dist/types/internal/functional-components/tree/api.d.ts +1 -1
- package/dist/types/internal/functional-components/tree-item/api.d.ts +2 -2
- package/dist/types/internal/functional-components/version/api.d.ts +1 -1
- package/dist/types/internal/props/breadcrumb-links.d.ts +1 -1
- package/dist/types/internal/props/helpers/iso-date.d.ts +1 -5
- package/dist/types/internal/props/helpers/normalizers.d.ts +1 -2
- package/dist/types/internal/props/index.d.ts +1 -1
- package/dist/types/internal/props/info-popover.d.ts +1 -1
- package/dist/types/internal/props/input-date-max.d.ts +1 -1
- package/dist/types/internal/props/input-date-min.d.ts +1 -1
- package/dist/types/internal/props/nav-links.d.ts +1 -1
- package/dist/types/internal/props/skip-nav-links.d.ts +1 -1
- package/dist/types/internal/props/smart-button.d.ts +1 -25
- package/dist/types/internal/props/value-input-date.d.ts +1 -1
- package/dist/types/schema/components/alert.d.ts +2 -8
- package/dist/types/schema/components/badge.d.ts +3 -16
- package/dist/types/schema/components/breadcrumb.d.ts +0 -15
- package/dist/types/schema/components/button.d.ts +3 -3
- package/dist/types/schema/components/card.d.ts +0 -9
- package/dist/types/schema/components/form.d.ts +0 -13
- package/dist/types/schema/components/index.d.ts +0 -30
- package/dist/types/schema/components/link.d.ts +2 -2
- package/dist/types/schema/components/pagination.d.ts +1 -15
- package/dist/types/schema/components/popover-button.d.ts +3 -6
- package/dist/types/schema/components/table.d.ts +4 -34
- package/dist/types/schema/components/tabs.d.ts +3 -21
- package/dist/types/schema/components/textarea.d.ts +0 -28
- package/dist/types/schema/components/toaster.d.ts +0 -10
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/accept.d.ts +0 -3
- package/dist/types/schema/props/access-key.d.ts +0 -2
- package/dist/types/schema/props/active.d.ts +0 -3
- package/dist/types/schema/props/adjust-height.d.ts +0 -2
- package/dist/types/schema/props/alert-type.d.ts +0 -2
- package/dist/types/schema/props/align.d.ts +0 -2
- package/dist/types/schema/props/allow-multi-sort.d.ts +0 -3
- package/dist/types/schema/props/alt.d.ts +0 -3
- package/dist/types/schema/props/alternative-button-link-role.d.ts +1 -5
- package/dist/types/schema/props/aria-controls.d.ts +0 -2
- package/dist/types/schema/props/aria-current-value.d.ts +1 -5
- package/dist/types/schema/props/aria-description.d.ts +0 -2
- package/dist/types/schema/props/aria-expanded.d.ts +0 -2
- package/dist/types/schema/props/aria-owns.d.ts +0 -2
- package/dist/types/schema/props/aria-selected.d.ts +0 -2
- package/dist/types/schema/props/auto-complete.d.ts +0 -2
- package/dist/types/schema/props/badge-text.d.ts +0 -2
- package/dist/types/schema/props/button-callbacks.d.ts +0 -3
- package/dist/types/schema/props/button-type.d.ts +1 -5
- package/dist/types/schema/props/button-variant.d.ts +1 -5
- package/dist/types/schema/props/checked.d.ts +0 -2
- package/dist/types/schema/props/collapsible.d.ts +0 -2
- package/dist/types/schema/props/color.d.ts +0 -4
- package/dist/types/schema/props/current-length.d.ts +0 -3
- package/dist/types/schema/props/custom-class.d.ts +0 -2
- package/dist/types/schema/props/disabled.d.ts +0 -2
- package/dist/types/schema/props/download.d.ts +0 -2
- package/dist/types/schema/props/error-list.d.ts +0 -2
- package/dist/types/schema/props/has-closer.d.ts +0 -2
- package/dist/types/schema/props/has-compact-button.d.ts +0 -2
- package/dist/types/schema/props/has-counter.d.ts +0 -3
- package/dist/types/schema/props/has-create-button.d.ts +0 -2
- package/dist/types/schema/props/has-icons-when-expanded.d.ts +0 -2
- package/dist/types/schema/props/has-settings-menu.d.ts +0 -2
- package/dist/types/schema/props/has-value.d.ts +0 -3
- package/dist/types/schema/props/hide-label.d.ts +0 -3
- package/dist/types/schema/props/hide-msg.d.ts +0 -3
- package/dist/types/schema/props/hint.d.ts +0 -2
- package/dist/types/schema/props/href.d.ts +2 -4
- package/dist/types/schema/props/icons-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/icons.d.ts +0 -3
- package/dist/types/schema/props/id.d.ts +0 -2
- package/dist/types/schema/props/image-sizes.d.ts +0 -3
- package/dist/types/schema/props/image-source.d.ts +0 -3
- package/dist/types/schema/props/image-srcset.d.ts +0 -3
- package/dist/types/schema/props/indeterminate.d.ts +0 -2
- package/dist/types/schema/props/index.d.ts +4 -0
- package/dist/types/schema/props/inline.d.ts +0 -3
- package/dist/types/schema/props/label-align.d.ts +1 -5
- package/dist/types/schema/props/label.d.ts +3 -7
- package/dist/types/schema/props/link-on-callbacks.d.ts +0 -2
- package/dist/types/schema/props/link-target.d.ts +0 -2
- package/dist/types/schema/props/loading.d.ts +1 -5
- package/dist/types/schema/props/max-length-behavior.d.ts +1 -5
- package/dist/types/schema/props/max-length.d.ts +0 -3
- package/dist/types/schema/props/max.d.ts +0 -4
- package/dist/types/schema/props/modal.d.ts +0 -2
- package/dist/types/schema/props/msg.d.ts +0 -2
- package/dist/types/schema/props/multiple.d.ts +0 -3
- package/dist/types/schema/props/name.d.ts +0 -3
- package/dist/types/schema/props/open.d.ts +0 -3
- package/dist/types/schema/props/options.d.ts +0 -4
- package/dist/types/schema/props/orientation.d.ts +1 -5
- package/dist/types/schema/props/pagination-position.d.ts +1 -5
- package/dist/types/schema/props/pattern.d.ts +0 -3
- package/dist/types/schema/props/placeholder.d.ts +0 -3
- package/dist/types/schema/props/popover-align.d.ts +0 -2
- package/dist/types/schema/props/read-only.d.ts +0 -2
- package/dist/types/schema/props/required.d.ts +0 -2
- package/dist/types/schema/props/resize-textarea.d.ts +0 -2
- package/dist/types/schema/props/rows.d.ts +0 -2
- package/dist/types/schema/props/short-key.d.ts +0 -2
- package/dist/types/schema/props/show.d.ts +0 -3
- package/dist/types/schema/props/spell-check.d.ts +0 -2
- package/dist/types/schema/props/suggestions.d.ts +0 -2
- package/dist/types/schema/props/tab-behavior.d.ts +1 -5
- package/dist/types/schema/props/tab-index.d.ts +0 -2
- package/dist/types/schema/props/table-callbacks.d.ts +1 -4
- package/dist/types/schema/props/table-data-foot.d.ts +0 -3
- package/dist/types/schema/props/table-data.d.ts +0 -3
- package/dist/types/schema/props/table-fixed-cols.d.ts +0 -2
- package/dist/types/schema/props/table-header-cells.d.ts +0 -2
- package/dist/types/schema/props/table-selection.d.ts +0 -2
- package/dist/types/schema/props/toolbar-items.d.ts +0 -2
- package/dist/types/schema/props/tooltip-align.d.ts +0 -2
- package/dist/types/schema/props/touched.d.ts +0 -2
- package/dist/types/schema/props/type-input-date.d.ts +4 -2
- package/dist/types/schema/props/type-input-text.d.ts +0 -2
- package/dist/types/schema/props/unit.d.ts +0 -2
- package/dist/types/schema/props/variant/dialog.d.ts +1 -5
- package/dist/types/schema/props/variant/modal.d.ts +0 -1
- package/dist/types/schema/props/variant/password-variant.d.ts +1 -5
- package/dist/types/schema/props/variant-alert.d.ts +0 -2
- package/dist/types/schema/props/variant-class-name.d.ts +0 -3
- package/dist/types/schema/props/variant-input-checkbox.d.ts +0 -2
- package/dist/types/schema/props/variant-progress.d.ts +0 -2
- package/dist/types/schema/props/visibility-toggle.d.ts +0 -3
- package/dist/types/schema/props/width.d.ts +0 -3
- package/dist/types/schema/types/button-link-text.d.ts +4 -4
- package/dist/types/schema/utils/prop.validators.d.ts +11 -34
- package/dist/types/schema/validators/common.d.ts +2 -0
- package/dist/types/schema/validators/index.d.ts +0 -1
- package/dist/types/utils/testing/logged-messages.d.ts +1 -0
- package/dist/types/utils/testing/snapshot-input-testing.d.ts +2 -1
- package/dist/types/utils/testing/snapshot-testing.d.ts +4 -1
- package/doc/badge.md +6 -6
- package/doc/combobox.md +23 -23
- package/doc/input-checkbox.md +2 -2
- package/doc/input-color.md +22 -22
- package/doc/input-date.md +28 -28
- package/doc/input-email.md +30 -30
- package/doc/input-file.md +22 -22
- package/doc/input-number.md +28 -28
- package/doc/input-password.md +29 -29
- package/doc/input-radio.md +19 -19
- package/doc/input-range.md +24 -24
- package/doc/input-text.md +31 -31
- package/doc/select.md +24 -24
- package/doc/single-select.md +24 -24
- package/doc/table-stateful.md +16 -16
- package/doc/tabs.md +1 -1
- package/doc/textarea.md +29 -29
- package/package.json +6 -5
- package/vscode-custom-data.json +50 -138
- package/dist/collection/components/card/base.js +0 -79
- package/dist/collection/components/popover-button/base.js +0 -69
- package/dist/collection/schema/components/accordion.js +0 -1
- package/dist/collection/schema/components/button-link.js +0 -1
- package/dist/collection/schema/components/collapsible.js +0 -1
- package/dist/collection/schema/components/combobox.js +0 -1
- package/dist/collection/schema/components/details.js +0 -1
- package/dist/collection/schema/components/dialog.js +0 -1
- package/dist/collection/schema/components/drawer.js +0 -1
- package/dist/collection/schema/components/heading.js +0 -1
- package/dist/collection/schema/components/input-checkbox.js +0 -1
- package/dist/collection/schema/components/input-color.js +0 -1
- package/dist/collection/schema/components/input-date.js +0 -1
- package/dist/collection/schema/components/input-email.js +0 -1
- package/dist/collection/schema/components/input-file.js +0 -1
- package/dist/collection/schema/components/input-number.js +0 -1
- package/dist/collection/schema/components/input-password.js +0 -1
- package/dist/collection/schema/components/input-radio.js +0 -1
- package/dist/collection/schema/components/input-range.js +0 -1
- package/dist/collection/schema/components/input-text.js +0 -1
- package/dist/collection/schema/components/kolibri.js +0 -1
- package/dist/collection/schema/components/link-button.js +0 -1
- package/dist/collection/schema/components/modal.js +0 -1
- package/dist/collection/schema/components/nav.js +0 -1
- package/dist/collection/schema/components/select.js +0 -1
- package/dist/collection/schema/components/single-select.js +0 -1
- package/dist/collection/schema/components/skip-nav.js +0 -1
- package/dist/collection/schema/components/split-button.js +0 -1
- package/dist/collection/schema/components/tableStateless.js +0 -1
- package/dist/collection/schema/components/toolbar.js +0 -1
- package/dist/collection/schema/components/tree-item.js +0 -1
- package/dist/collection/schema/components/tree.js +0 -1
- package/dist/collection/schema/components/version.js +0 -1
- package/dist/collection/schema/validators/alignment.js +0 -10
- package/dist/collection/utils/testing/legacy-component.js +0 -16
- package/dist/kolibri/Heading-DDS-lyOB.js +0 -4
- package/dist/kolibri/api-MBSY9afi.js +0 -4
- package/dist/kolibri/app-globals-DytcyM_s.js +0 -4
- package/dist/kolibri/base-D-me6QDT.js +0 -4
- package/dist/kolibri/base-D7-iAVBu.js +0 -4
- package/dist/kolibri/base-DP9yHJOV.js +0 -4
- package/dist/kolibri/base-DZBnXHZh.js +0 -4
- package/dist/kolibri/base-web-component-BLA2cpyz.js +0 -4
- package/dist/kolibri/base-web-component-DwY54ppZ.js +0 -4
- package/dist/kolibri/behavior-Cw8QfOcm.js +0 -4
- package/dist/kolibri/behavior-DUy0X7U1.js +0 -4
- package/dist/kolibri/behavior-DmR4WVXd.js +0 -4
- package/dist/kolibri/bem-registry-SKACeCny.js +0 -4
- package/dist/kolibri/bootstrap-Bp7i4RJQ.js +0 -4
- package/dist/kolibri/color-CnRQPMm_.js +0 -4
- package/dist/kolibri/common-BdSzSIXg.js +0 -4
- package/dist/kolibri/component-B4CDonzN.js +0 -4
- package/dist/kolibri/component-BC1TpQVD.js +0 -4
- package/dist/kolibri/component-BUzgs8fh.js +0 -4
- package/dist/kolibri/component-Bldy_ShO.js +0 -4
- package/dist/kolibri/component-Cj3P_f35.js +0 -4
- package/dist/kolibri/component-D5yKRPCZ.js +0 -4
- package/dist/kolibri/component-DisuGN16.js +0 -4
- package/dist/kolibri/component-LadkF9an.js +0 -4
- package/dist/kolibri/component-ZJiUl6kZ.js +0 -4
- package/dist/kolibri/component-vxdandl4.js +0 -4
- package/dist/kolibri/contrast-pfwNxK_L.js +0 -4
- package/dist/kolibri/controller-CZcQ57AP.js +0 -4
- package/dist/kolibri/dev.utils-DM7Qhcet.js +0 -4
- package/dist/kolibri/devtools-CxUqjh1N.js +0 -4
- package/dist/kolibri/disabled-C2DzYwwy.js +0 -4
- package/dist/kolibri/field-control-CQJgDAKK.js +0 -4
- package/dist/kolibri/has-closer-x20C4xl3.js +0 -4
- package/dist/kolibri/href-vIF4eC7d.js +0 -4
- package/dist/kolibri/i18n-BLkzMf6D.js +0 -4
- package/dist/kolibri/i18n-BRgvVqCf.js +0 -4
- package/dist/kolibri/id-lCAtMmMx.js +0 -4
- package/dist/kolibri/index-8-BSSKQL.js +0 -6
- package/dist/kolibri/input-C4yo-d7N.js +0 -4
- package/dist/kolibri/input-container-Cb2xJUCl.js +0 -4
- package/dist/kolibri/item-BANfM_Mo.js +0 -4
- package/dist/kolibri/item-C2HHBTvm.js +0 -4
- package/dist/kolibri/item-H09kNXn9.js +0 -4
- package/dist/kolibri/item-gvmzMXYb.js +0 -4
- package/dist/kolibri/label-hints-BUADjqKF.js +0 -4
- package/dist/kolibri/label-lang-segment-B13iL7iy.js +0 -4
- package/dist/kolibri/label-mr5joqaQ.js +0 -4
- package/dist/kolibri/label-with-expert-slot-BVqi0_Fb.js +0 -4
- package/dist/kolibri/level-eGeMFn0b.js +0 -4
- package/dist/kolibri/link-target-DEH-wAmf.js +0 -4
- package/dist/kolibri/links-Dy9WkOJ-.js +0 -4
- package/dist/kolibri/multiple-F8uOX8RD.js +0 -4
- package/dist/kolibri/number-value-DncK2_pC.js +0 -4
- package/dist/kolibri/open-DoPXNruj.js +0 -4
- package/dist/kolibri/options-DcIQ-KB2.js +0 -4
- package/dist/kolibri/placeholder-BPZ2sQEB.js +0 -4
- package/dist/kolibri/props-from-config-LBgEHmcL.js +0 -4
- package/dist/kolibri/read-only-9BPUG7r4.js +0 -4
- package/dist/kolibri/required-DBJ4iW2e.js +0 -4
- package/dist/kolibri/resolve-props-0xfjG6h5.js +0 -4
- package/dist/kolibri/resolve-props-BQa6SjZU.js +0 -4
- package/dist/kolibri/rows-DuYJeJT7.js +0 -4
- package/dist/kolibri/smart-button-p4avK7MS.js +0 -4
- package/dist/kolibri/spell-check-Bvc-Peew.js +0 -4
- package/dist/kolibri/src-CVwlo_cY.js +0 -4
- package/dist/kolibri/step-oCposIuI.js +0 -4
- package/dist/kolibri/suggestions-BsWy2U2z.js +0 -4
- package/dist/kolibri/suggestions-fWMdnACm.js +0 -4
- package/dist/kolibri/toggle-handler-CtJ2Z7Us.js +0 -4
- package/dist/kolibri/unique-nav-labels-CZIyOzqJ.js +0 -4
- package/dist/kolibri/unit-YqluIXsF.js +0 -4
- package/dist/kolibri/validators-ByUMEUYD.js +0 -4
- package/dist/kolibri/value-string-Baqhc_TX.js +0 -4
- package/dist/types/components/card/base.d.ts +0 -27
- package/dist/types/components/popover-button/base.d.ts +0 -21
- package/dist/types/schema/components/accordion.d.ts +0 -11
- package/dist/types/schema/components/button-link.d.ts +0 -7
- package/dist/types/schema/components/collapsible.d.ts +0 -7
- package/dist/types/schema/components/combobox.d.ts +0 -26
- package/dist/types/schema/components/details.d.ts +0 -11
- package/dist/types/schema/components/dialog.d.ts +0 -21
- package/dist/types/schema/components/drawer.d.ts +0 -17
- package/dist/types/schema/components/heading.d.ts +0 -17
- package/dist/types/schema/components/input-checkbox.d.ts +0 -25
- package/dist/types/schema/components/input-color.d.ts +0 -25
- package/dist/types/schema/components/input-date.d.ts +0 -34
- package/dist/types/schema/components/input-email.d.ts +0 -31
- package/dist/types/schema/components/input-file.d.ts +0 -22
- package/dist/types/schema/components/input-number.d.ts +0 -33
- package/dist/types/schema/components/input-password.d.ts +0 -31
- package/dist/types/schema/components/input-radio.d.ts +0 -22
- package/dist/types/schema/components/input-range.d.ts +0 -27
- package/dist/types/schema/components/input-text.d.ts +0 -33
- package/dist/types/schema/components/kolibri.d.ts +0 -21
- package/dist/types/schema/components/link-button.d.ts +0 -7
- package/dist/types/schema/components/modal.d.ts +0 -4
- package/dist/types/schema/components/nav.d.ts +0 -16
- package/dist/types/schema/components/select.d.ts +0 -24
- package/dist/types/schema/components/single-select.d.ts +0 -24
- package/dist/types/schema/components/skip-nav.d.ts +0 -16
- package/dist/types/schema/components/split-button.d.ts +0 -9
- package/dist/types/schema/components/tableStateless.d.ts +0 -24
- package/dist/types/schema/components/toolbar.d.ts +0 -11
- package/dist/types/schema/components/tree-item.d.ts +0 -12
- package/dist/types/schema/components/tree.d.ts +0 -10
- package/dist/types/schema/components/version.d.ts +0 -10
- package/dist/types/schema/validators/alignment.d.ts +0 -3
- package/dist/types/utils/testing/legacy-component.d.ts +0 -4
- package/dist/cjs/{ariaCurrentService-3051l6MI.js → aria-current-service-3051l6MI.js} +0 -0
- package/dist/collection/{components/link/ariaCurrentService.js → internal/functional-components/link/aria-current-service.js} +0 -0
- package/dist/collection/internal/functional-components/pagination/{page-size-select.js → select-item.js} +9 -9
- package/dist/collection/{components → internal/functional-components}/tree/open-items-cache.js +0 -0
- package/dist/components/{ariaCurrentService.js → aria-current-service.js} +0 -0
- package/dist/esm/{ariaCurrentService-YoLNpD5S.js → aria-current-service-YoLNpD5S.js} +0 -0
- package/dist/kolibri/{ariaCurrentService-YoLNpD5S.js → aria-current-service-YoLNpD5S.js} +0 -0
- package/dist/types/{components → internal/functional-components}/form/controller.d.ts +0 -0
- package/dist/types/{components/link/ariaCurrentService.d.ts → internal/functional-components/link/aria-current-service.d.ts} +0 -0
- package/dist/types/internal/functional-components/pagination/{page-size-select.d.ts → select-item.d.ts} +1 -1
- /package/dist/types/{components → internal/functional-components}/tree/open-items-cache.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as e,h as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as l,v as n}from"./base4.js";const a=e(class extends l{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.externalLabelElements=[],this.hasScrollbar=!1,this.rowKeys=new Map,this.settingsChangedCounter=0,this.stickyColsDisabled=!1,this._ariaLabelledby=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._headers=void 0,this._headerCells=void 0,this._loading=void 0,this._on=void 0,this._selection=void 0,this._hasSettingsMenu=void 0,this._variant=void 0}watchAriaLabelledby(e){this.resolveExternalLabel(e)}watchData(e){this.applyData(e)}watchDataFoot(e){this.applyDataFoot(e)}watchFixedCols(e){this.applyFixedCols(e)}watchHeaders(e){this.applyHeaders(e||this._headerCells)}watchHeaderCells(e){this.applyHeaders(this._headers?this._headers:e)}watchLabel(e){this.applyLabel(e)}watchLoading(e){this.applyLoading(e)}watchOn(e){this.applyOn(e)}watchSelection(e){this.applySelection(e)}watchHasSettingsMenu(e){this.applyHasSettingsMenu(e)}watchVariant(e){this.applyVariant(e)}componentWillLoad(){this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchSelection(this._selection),this.watchVariant(this._variant),this.resolveExternalLabel(this._ariaLabelledby)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentDidRender(){this.updateScrollbarState(),this.syncTableItems()}disconnectedCallback(){this.teardownTable()}onChangeHeaderCells(e){this.applyChangedHeaderCells(e)}onKeydown(e){this.moveCheckboxFocus(e)}resolveExternalLabel(e){this.externalLabelElements=n(this,this.host,e),this.syncTableLabel(this.externalLabelElements)}render(){return o(t,{key:"bb1a7795ada8bb245d843907db73202203f2e170"},this.renderTableStatelessFC())}get host(){return this}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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 { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @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; } .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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: ""; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-table-stateless",{_ariaLabelledby:[1,"_aria-labelledby"],_data:[1],_dataFoot:[1,"_data-foot"],_fixedCols:[16],_headers:[1],_headerCells:[1,"_header-cells"],_label:[1],_loading:[4],_on:[16],_selection:[1],_hasSettingsMenu:[4,"_has-settings-menu"],_variant:[1],externalLabelElements:[32],hasScrollbar:[32],rowKeys:[32],settingsChangedCounter:[32],stickyColsDisabled:[32]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}]),r=a,s=function(){"undefined"!=typeof customElements&&["kol-table-stateless"].forEach((e=>{"kol-table-stateless"===e&&(customElements.get(i(e))||customElements.define(i(e),a))}))};export{r as KolTableStateless,s as defineCustomElement}
|
|
4
|
+
import{proxyCustomElement as e,h as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import"./bem-registry.js";import{B as l,v as n}from"./base4.js";const a=e(class extends l{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.externalLabelElements=[],this.hasScrollbar=!1,this.rowKeys=new Map,this.settingsChangedCounter=0,this.stickyColsDisabled=!1,this._ariaLabelledby=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._hasSettingsMenu=void 0,this._headerCells=void 0,this._headers=void 0,this._loading=void 0,this._on=void 0,this._selection=void 0,this._variant=void 0}watchAriaLabelledby(e){this.resolveExternalLabel(e)}watchData(e){this.applyData(e)}watchDataFoot(e){this.applyDataFoot(e)}watchFixedCols(e){this.applyFixedCols(e)}watchHasSettingsMenu(e){this.applyHasSettingsMenu(e)}watchHeaderCells(e){this.applyHeaders(this._headers?this._headers:e)}watchHeaders(e){this.applyHeaders(e||this._headerCells)}watchLabel(e){this.applyLabel(e)}watchLoading(e){this.applyLoading(e)}watchOn(e){this.applyOn(e)}watchSelection(e){this.applySelection(e)}watchVariant(e){this.applyVariant(e)}componentWillLoad(){this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchSelection(this._selection),this.watchVariant(this._variant),this.watchAriaLabelledby(this._ariaLabelledby)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentDidRender(){this.updateScrollbarState(),this.syncTableItems()}disconnectedCallback(){this.teardownTable()}onChangeHeaderCells(e){this.applyChangedHeaderCells(e)}onKeydown(e){this.moveCheckboxFocus(e)}resolveExternalLabel(e){this.externalLabelElements=n(this,this.host,e),this.syncTableLabel(this.externalLabelElements)}render(){return o(t,{key:"eb0975e79e8621ef9e6c09556780fa8856aa5c46"},this.renderTableStatelessFC())}get host(){return this}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_headerCells:[{watchHeaderCells:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795524209947"); src: url("kolicons.eot?t=1795524209947#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795524209947") format("woff2"), url("kolicons.woff?t=1795524209947") format("woff"), url("kolicons.ttf?t=1795524209947") format("truetype"), url("kolicons.svg?t=1795524209947#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 { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: var(--kol-spin-color, var(--kol-theme-spin-color-start, white)); clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @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; } .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-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: ""; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-right) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-table-stateless",{_ariaLabelledby:[1,"_aria-labelledby"],_data:[1],_dataFoot:[1,"_data-foot"],_fixedCols:[16],_hasSettingsMenu:[4,"_has-settings-menu"],_headerCells:[1,"_header-cells"],_headers:[1],_label:[1],_loading:[4],_on:[16],_selection:[1],_variant:[1],externalLabelElements:[32],hasScrollbar:[32],rowKeys:[32],settingsChangedCounter:[32],stickyColsDisabled:[32]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_headerCells:[{watchHeaderCells:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_variant:[{watchVariant:0}]}]),r=a,s=function(){"undefined"!=typeof customElements&&["kol-table-stateless"].forEach((e=>{"kol-table-stateless"===e&&(customElements.get(i(e))||customElements.define(i(e),a))}))};export{r as KolTableStateless,s as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{C as l,s,b as r,g as c,I as h}from"./bem-registry.js";import{a as d,T as b}from"./behavior.js";import{c as u,n as f,o as k,i as p,b as m,f as g,I as v,B as _}from"./props-from-config.js";import{l as y}from"./label.js";import{n as w,c as x}from"./dev.utils.js";import{d as B,K as C}from"./events.js";import{r as T}from"./resolve-props.js";import{B as z}from"./component8.js";import{t as j}from"./i18n.js";import{K as $}from"./keyboard.js";import{c as I,d as S,a as A}from"./element-interaction.js";const K=u("hasCreateButton",!1,f),L=u("selected",0,k),O=["select-automatic","select-manual"],D=u("behavior","select-automatic",(t=>m(t)),(t=>p(t,O))),H=u("tabs",[],(t=>g(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),P=u("on",{},(t=>{const o=v(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),F={required:[y,H],optional:[d,K,L,D,P]},G=()=>{const t=new b(a.stateLess),o=w();let e,i,n,l;const r=(t,o)=>{n&&B(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(s(o,l),n(o,i)),r(C.click,i)},h=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),r(C.mousedown)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),r(C.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),r(C.blur)},f=t=>{n=t},k=t=>{l=t};return{getButton:(n,a)=>(e=T(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:d,handleMouseDown:h,refButton:k,refTooltip:t.setTooltipElementRef}),refBox:f}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},R=r.forBlock("kol-tabs"),E=R("button-create"),M=R("button-group"),N=R("content"),V=R("tab"),W=R("tablist"),q=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:h,tabButtons:d}=o;return t(_,{block:"kol-tabs",modifiers:{["align-"+e]:!0},class:i,ref:h},t("div",{class:M},t("div",{"aria-label":r,class:W,role:"tablist",tabIndex:-1,onKeyDown:l,onFocusout:t=>{t.relatedTarget instanceof Node&&t.currentTarget.contains(t.relatedTarget)||a()}},d.map((({buttonProps:o,refBox:e})=>t("div",{class:V,ref:e},t(z,Object.assign({},o)))))),s&&t("div",{class:E,ref:n.refBox},t(z,Object.assign({},n.buttonProps)))),t("div",{class:N,ref:c}))},U=o(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=j("kol-new")+" …",this.ctaRef=I(),this.id=x("tabs"),this.tabButtonItems=[],this.createButtonItem=G(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=F,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);c("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case $.ArrowRight:this.goToNextTab(t);break;case $.ArrowLeft:this.goToPreviousTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&B(this.host,C.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){D.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){P.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),D.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),y.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),P.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=h(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&B(this.host,C.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name","tabpanel-slot-"+i),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot","tabpanel-slot-"+i)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){L.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){H.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>G())),this.syncSelected()}))}render(){return t(e,{key:"f42c56ba7918ef6a33a6a354e2f9c4de5ca8fcb4"},t(q,{key:"9691fd92c0782719c4c343e663cde270c907449c",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'}}},[801,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],focus:[64],click:[64]},void 0,{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}]);n([S("ctaRef")],U.prototype,"focus",null),n([A("ctaRef")],U.prototype,"click",null);const J=U,Q=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach((t=>{"kol-tabs"===t&&(customElements.get(i(t))||customElements.define(i(t),U))}))};export{J as KolTabs,Q as defineCustomElement}
|
|
4
|
+
import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{t as a}from"./i18n.js";import{B as l}from"./base-web-component.js";import{D as s,s as r,b as c,g as h,J as d}from"./bem-registry.js";import{a as b,T as u}from"./behavior.js";import{c as f,n as k,m as p,i as m,b as g,f as v,H as _,B as y}from"./props-from-config.js";import{l as w}from"./label.js";import{c as x}from"./dev.utils.js";import{d as B,K as T}from"./events.js";import{r as C}from"./resolve-props.js";import{B as z}from"./component8.js";import{K as j}from"./keyboard.js";import{c as $,d as S,a as A}from"./element-interaction.js";const D=f("hasCreateButton",!1,k),H=f("selected",0,p),K=["select-automatic","select-manual"],L=f("behavior","select-automatic",(t=>g(t)),(t=>m(t,K))),O=f("tabs",[],(t=>v(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>s("KolTabs",o.length)}),I=f("on",{},(t=>{const o=_(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),P={required:[w,O],optional:[b,D,H,L,I]},F=()=>{const t=new u(l.stateLess),o=x("aria-description");let e,i,n,a;const s=(t,o)=>{n&&B(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(r(o,a),n(o,i)),s(T.click,i)},h=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),s(T.mousedown)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),s(T.focus)},b=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),s(T.blur)},f=t=>{n=t},k=t=>{a=t};return{getButton:(n,a)=>(e=C(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:b,handleClick:c,handleFocus:d,handleMouseDown:h,refButton:k,refTooltip:t.setTooltipElementRef}),refBox:f}),getButtonElement:()=>a,syncListeners:()=>{a&&t.syncListeners(void 0,a,!0)},destroy:()=>{t.destroy()}}},G=c.forBlock("kol-tabs"),R=G("button-create"),E=G("button-group"),M=G("content"),N=G("tab"),V=G("tablist"),W=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:h,tabButtons:d}=o;return t(y,{block:"kol-tabs",modifiers:{["align-"+e]:!0},class:i,ref:h},t("div",{class:E},t("div",{"aria-label":r,class:V,role:"tablist",tabIndex:-1,onKeyDown:l,onFocusout:t=>{t.relatedTarget instanceof Node&&t.currentTarget.contains(t.relatedTarget)||a()}},d.map((({buttonProps:o,refBox:e})=>t("div",{class:N,ref:e},t(z,Object.assign({},o)))))),s&&t("div",{class:R,ref:n.refBox},t(z,Object.assign({},n.buttonProps)))),t("div",{class:M,ref:c}))},q=o(class extends l{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=a("kol-new")+" …",this.ctaRef=$(),this.id=x("tabs"),this.tabButtonItems=[],this.createButtonItem=F(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=P,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);h("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case j.ArrowRight:this.goToNextTab(t);break;case j.ArrowLeft:this.goToPreviousTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&B(this.host,T.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){b.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){L.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){D.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){w.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){I.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){this.watchAlign(this._align),this.watchBehavior(this._behavior),this.watchHasCreateButton(this._hasCreateButton),this.watchLabel(this._label),this.watchOn(this._on),this.watchSelected(this._selected),this.watchTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=d(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&B(this.host,T.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name","tabpanel-slot-"+i),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot","tabpanel-slot-"+i)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){H.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){O.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>F())),this.syncSelected()}))}render(){return t(e,{key:"2ee664ae8501ca8b20b4d49c718d51b7af07a753"},t(W,{key:"a76e6c126da52bb3cca077f123a6e559142a7737",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795524209947"); src: url("kolicons.eot?t=1795524209947#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795524209947") format("woff2"), url("kolicons.woff?t=1795524209947") format("woff"), url("kolicons.ttf?t=1795524209947") format("truetype"), url("kolicons.svg?t=1795524209947#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-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs--align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'}}},[801,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],focus:[64],click:[64]},void 0,{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}]);n([S("ctaRef")],q.prototype,"focus",null),n([A("ctaRef")],q.prototype,"click",null);const J=q,U=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach((t=>{"kol-tabs"===t&&(customElements.get(i(t))||customElements.define(i(t),q))}))};export{J as KolTabs,U as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a,_ as n}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{B as r}from"./base-web-component.js";import{C as s}from"./behavior2.js";import{h,g as c,I as d}from"./input-container.js";import{i as k,g as u,c as m,f as b,B as f,F as p}from"./base-web-component2.js";import"./bem-registry.js";import{c as _,n as g,b as w,i as v,e as y,g as x}from"./props-from-config.js";import{a as j,d as z,v as L}from"./component2.js";import{p as T}from"./placeholder.js";import{r as B}from"./read-only.js";import{r as C}from"./required.js";import{r as H}from"./rows.js";import{s as K}from"./spell-check.js";import{s as O}from"./value-string.js";import{c as A}from"./dev.utils.js";import{c as q,d as D,a as M}from"./element-interaction.js";const R=["vertical","none"],S=_("adjustHeight",!1,g),V=_("resize","vertical",(function(t){const e=w(t);if(v(e,R))return e;throw Error("Invalid resize option: "+e)})),P=e=>{const{class:o,msg:i,touched:n,readonly:l,disabled:r,required:s,ariaDescribedBy:h,hideLabel:c,label:d}=e,b=a(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),f=Object.assign(Object.assign({class:y(x("kol-textarea")(Object.assign({disabled:!!r,required:!!s,touched:!!n,readonly:!!l},k(i,n)?{[u(i)]:!0}:{})),o),required:s,disabled:r,readonly:l},m({ariaDescribedBy:h,hideLabel:c,label:d})),b);return t("textarea",Object.assign({},f))},I={required:[...b.required],optional:[...b.optional,j,S,h,T,B,C,V,H,z,K,O,L]},E=e(class extends f{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=A("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.counter=new s(r.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=I,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var e,o;this.handleFocus(t),this.counter.retriggerAria(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=t=>{var e,o;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(o=null===(e=this.ctaRef.el)||void 0===e?void 0:e.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){j.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){S.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var e,o;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){T.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){B.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){V.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){C.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){H.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){z.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){K.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;this.applyValue(t),this.counter.update(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)}watchVariant(t){L.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),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.watchVariant(this._variant),this.watchIcons(this._icons),this.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,e;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,e;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){const{overflow:e,padding:o}=t.style;t.style.overflow="hidden",t.style.padding="0";const i=t.rows,a=t.clientHeight/i;t.rows=1;const n=Math.round(t.scrollHeight/a);t.rows=i,t.style.overflow=e,t.style.padding=o;const l=this.minRows;return l&&l>n?l:n}getTextareaProps(){const t=this.id,e=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),e?{"aria-keyshortcuts":e}:{})}applyValue(t){O.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=!!this.getRenderProp("value"),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=c({icons:this.getRenderProp("icons")});return t(o,{key:"f213a17cb37e5957ab505f30bb9a16f4d540277a"},t(p,Object.assign({key:"f30d7ffa05b8f88949b05967af1270a26de84dff"},this.getFormFieldProps({class:y("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"0d9be56a253943f934a0e0c00f4c879ce50459e5",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},t(P,Object.assign({key:"2151d1aa605a6fd3c3899b106270fc16c432d0dc"},this.getTextareaProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-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-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-textarea { width: 100%; } }'}}},[545,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([D("ctaRef")],E.prototype,"focus",null),n([M("ctaRef")],E.prototype,"click",null);const G=E,F=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach((t=>{"kol-textarea"===t&&(customElements.get(i(t))||customElements.define(i(t),E))}))};export{G as KolTextarea,F as defineCustomElement}
|
|
4
|
+
import{h as e,proxyCustomElement as t,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a,_ as n}from"./tslib.es6.js";import{B as l}from"./base-web-component.js";import{C as r}from"./behavior2.js";import{h as s,g as h,I as c}from"./input-container.js";import{i as d,g as k,c as u,f as m,B as b,F as p}from"./base-web-component2.js";import"./bem-registry.js";import{c as f,n as _,b as g,i as w,e as v,g as y}from"./props-from-config.js";import{a as x,d as j,v as z}from"./component2.js";import{p as L}from"./placeholder.js";import{r as T}from"./read-only.js";import{r as B}from"./required.js";import{r as C}from"./rows.js";import{s as H}from"./spell-check.js";import{s as K}from"./value-string.js";import{v as O}from"./access-and-short-key.js";import{c as A}from"./dev.utils.js";import{c as q,d as D,a as M}from"./element-interaction.js";const R=["vertical","none"],S=f("adjustHeight",!1,_),V=f("resize","vertical",(function(e){const t=g(e);if(w(t,R))return t;throw Error("Invalid resize option: "+t)})),P=t=>{const{class:o,msg:i,touched:n,readonly:l,disabled:r,required:s,ariaDescribedBy:h,hideLabel:c,label:m}=t,b=a(t,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),p=Object.assign(Object.assign({class:v(y("kol-textarea")(Object.assign({disabled:!!r,required:!!s,touched:!!n,readonly:!!l},d(i,n)?{[k(i)]:!0}:{})),o),required:s,disabled:r,readonly:l},u({ariaDescribedBy:h,hideLabel:c,label:m})),b);return e("textarea",Object.assign({},p))},I={required:[...m.required],optional:[...m.optional,x,S,s,L,T,B,V,C,j,H,K,z]},E=t(class extends b{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.id=A("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.counter=new r(l.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=I,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hasCounter=!1,this._hideLabel=!1,this._hideMsg=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._resize="vertical",this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=e=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(e))},this.handleTextareaChange=e=>{this.handleChange(e)},this.handleTextareaFocus=e=>{var t,o;this.handleFocus(e),this.counter.retriggerAria(null!==(o=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=e=>{var t,o;this.handleKeyDown(e),this.counter.handleKeyDown(e,null!==(o=null===(t=this.ctaRef.el)||void 0===t?void 0:t.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(e){x.apply(e,(e=>this.setRenderProp("accessKey",e))),O(e,this._shortKey)}watchAdjustHeight(e){S.apply(e,(e=>this.setRenderProp("adjustHeight",e)))}watchAriaDetails(e){this.applyAriaDetails(e)}watchDisabled(e){this.applyDisabled(e)}watchHasCounter(e){this.counter.watchHasCounter(e),this.needsImmediateCounterUpdate=!0}watchHideLabel(e){this.applyHideLabel(e)}watchHideMsg(e){this.applyHideMsg(e)}watchHint(e){this.applyHint(e)}watchIcons(e){s.apply(e,(e=>this.setRenderProp("icons",e)))}watchInfoPopover(e){this.applyInfoPopover(e)}watchLabel(e){this.applyLabel(e)}watchMaxLength(e){var t,o;this.counter.watchMaxLength(e),this.counter.updateImmediate(null!==(o=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==o?o:0)}watchMaxLengthBehavior(e){this.counter.watchMaxLengthBehavior(e),this.needsImmediateCounterUpdate=!0}watchMsg(e){this.applyMsg(e)}watchName(e){this.applyName(e)}watchOn(e){this.applyOn(e)}watchPlaceholder(e){L.apply(e,(e=>this.setRenderProp("placeholder",e)))}watchReadOnly(e){T.apply(e,(e=>this.setRenderProp("readOnly",e)))}watchRequired(e){B.apply(e,(e=>this.setRenderProp("required",e)))}watchResize(e){V.apply(e,(e=>this.setRenderProp("resize",e)))}watchRows(e){C.apply(e,(e=>{this.setRenderProp("rows",e),this.isWritingRows||(this.minRows=e)}))}watchShortKey(e){j.apply(e,(e=>this.setRenderProp("shortKey",e))),O(this._accessKey,e)}watchSpellCheck(e){H.apply(e,(e=>this.setRenderProp("spellCheck",e)))}watchSyncValueBySelector(e){this.applySyncValueBySelector(e)}watchTooltipAlign(e){this.applyTooltipAlign(e)}watchTouched(e){this.applyTouched(e)}watchValue(e){var t;this.applyValue(e),this.counter.update(null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0)}watchVariant(e){z.apply(e,(e=>this.setRenderProp("variant",e)))}getValue(){var e;return Promise.resolve(null===(e=this.ctaRef.el)||void 0===e?void 0:e.value)}focus(e){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),this.watchDisabled(this._disabled),this.watchHasCounter(this._hasCounter),this.watchHideLabel(this._hideLabel),this.watchHideMsg(this._hideMsg),this.watchHint(this._hint),this.watchIcons(this._icons),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.watchMsg(this._msg),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchTouched(this._touched),this.watchVariant(this._variant),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var e,t;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(t=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==t?t:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var e,t;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(t=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==t?t:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(e){this.isWritingRows=!0,this._rows=e,this.isWritingRows=!1}measureTextareaRows(e){const{overflow:t,padding:o}=e.style;e.style.overflow="hidden",e.style.padding="0";const i=e.rows,a=e.clientHeight/i;e.rows=1;const n=Math.round(e.scrollHeight/a);e.rows=i,e.style.overflow=t,e.style.padding=o;const l=this.minRows;return l&&l>n?l:n}getTextareaProps(){const e=this.id,t=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(e),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:e,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),t?{"aria-keyshortcuts":t}:{})}applyValue(e){K.apply(e,(e=>this.setRenderProp("value",e))),this.hasValue=!!this.getRenderProp("value"),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const t=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=h({icons:this.getRenderProp("icons")});return e(o,{key:"608f726bd954196189c70e02e0d75575f43c6602"},e(p,Object.assign({key:"91460c244656de82d71b28f04e23def1f17bd783"},this.getFormFieldProps({class:v("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),e(c,{key:"95a053769e2e1a6886792797e69388f1296857b8",disabled:t,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},e(P,Object.assign({key:"89fab612f936a25b5ee4947376f7dce284abe60b"},this.getTextareaProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hasCounter:[{watchHasCounter:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_resize:[{watchResize:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795524209947"); src: url("kolicons.eot?t=1795524209947#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795524209947") format("woff2"), url("kolicons.woff?t=1795524209947") format("woff"), url("kolicons.ttf?t=1795524209947") format("truetype"), url("kolicons.svg?t=1795524209947#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-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-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-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-textarea { width: 100%; } }'}}},[545,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hasCounter:[4,"_has-counter"],_hideLabel:[4,"_hide-label"],_hideMsg:[4,"_hide-msg"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_required:[4],_resize:[1],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hasCounter:[{watchHasCounter:0}],_hideLabel:[{watchHideLabel:0}],_hideMsg:[{watchHideMsg:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_required:[{watchRequired:0}],_resize:[{watchResize:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([D("ctaRef")],E.prototype,"focus",null),n([M("ctaRef")],E.prototype,"click",null);const G=E,F=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach((e=>{"kol-textarea"===e&&(customElements.get(i(e))||customElements.define(i(e),E))}))};export{G as KolTextarea,F as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,proxyCustomElement as e,HTMLElement as t,Host as n,transformTag as i}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{c as a,n as r}from"./dev.utils.js";import{f as s}from"./component-names.js";import{a as c}from"./tslib.es6.js";import{A as d}from"./component.js";import{e as k}from"./props-from-config.js";import{L as b}from"./bem-registry.js";const m=e=>{var{status:t,toast:n,onClose:i}=e,l=c(e,["status","toast","onClose"]);const{type:s,label:b,description:m,variant:f}=n;return o("div",{class:k("kol-toast-item","kol-toast-item--"+t)},o(d,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:r(),handleCloserClick:i,hasCloser:!0,headingId:a("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:s,variant:f||"card"},o("div",Object.assign({},l),m)))},f=e(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=l("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const e={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:a("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[e,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===e.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(e)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((e=>o.every((o=>o.id!==e.id))))}),o.forEach((o=>{var e,t;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(t=(e=o.toast).onClose)||void 0===t||t.call(e)}))}),300)}return Promise.resolve()}componentWillLoad(){b.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const e=this.state._toastStates.find((e=>e.id===o.id));e&&"removing"!==e.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((e=>e.id===o.id?Object.assign(Object.assign({},e),{status:"removing"}):e))}),setTimeout((()=>{var e,t;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((e=>e.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(t=(e=o.toast).onClose)||void 0===t||t.call(e)}),300))}handleToastRef(o,e){e&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(e,{close:()=>this.handleClose(o)}))}render(){return o(n,{key:"7c3623651b8bb10e3b8b7670a53605890d04b9be",class:"kol-toast-container"},this.state._toastStates.length>1&&o(s,{key:"3bfb7ef93ead485aa7a2588ab92b4a49371fe80b",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((e=>o(m,{key:e.id,onClose:()=>this.handleClose(e),ref:o=>this.handleToastRef(e,o),toast:e.toast,status:e.status}))))}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),h=f,u=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach((o=>{"kol-toast-container"===o&&(customElements.get(i(o))||customElements.define(i(o),f))}))};export{h as KolToastContainer,u as defineCustomElement}
|
|
4
|
+
import{h as o,proxyCustomElement as e,HTMLElement as t,Host as n,transformTag as i}from"@stencil/core/internal/client";import{f as l}from"./component-names.js";import{a}from"./tslib.es6.js";import{A as r}from"./component.js";import{e as s}from"./props-from-config.js";import{c,n as d}from"./dev.utils.js";import{t as k}from"./i18n.js";import{L as b}from"./bem-registry.js";const f=e=>{var{status:t,toast:n,onClose:i}=e,l=a(e,["status","toast","onClose"]);const{type:k,label:b,description:f,variant:m}=n;return o("div",{class:s("kol-toast-item","kol-toast-item--"+t)},o(r,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:d(),handleCloserClick:i,hasCloser:!0,headingId:c("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:k,variant:m||"card"},o("div",Object.assign({},l),f)))},m=e(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=k("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const e={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:c("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[e,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===e.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(e)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((e=>o.every((o=>o.id!==e.id))))}),o.forEach((o=>{var e,t;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(t=(e=o.toast).onClose)||void 0===t||t.call(e)}))}),300)}return Promise.resolve()}componentWillLoad(){b.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const e=this.state._toastStates.find((e=>e.id===o.id));e&&"removing"!==e.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((e=>e.id===o.id?Object.assign(Object.assign({},e),{status:"removing"}):e))}),setTimeout((()=>{var e,t;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((e=>e.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(t=(e=o.toast).onClose)||void 0===t||t.call(e)}),300))}handleToastRef(o,e){e&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(e,{close:()=>this.handleClose(o)}))}render(){return o(n,{key:"f7a8147ed0ba31fe89704afd1a0eb13bf8209f33",class:"kol-toast-container"},this.state._toastStates.length>1&&o(l,{key:"0611d7b339230f2b4486ebcc7ecfb89055e07df2",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((e=>o(f,{key:e.id,onClose:()=>this.handleClose(e),ref:o=>this.handleToastRef(e,o),toast:e.toast,status:e.status}))))}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795524209947"); src: url("kolicons.eot?t=1795524209947#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795524209947") format("woff2"), url("kolicons.woff?t=1795524209947") format("woff"), url("kolicons.ttf?t=1795524209947") format("truetype"), url("kolicons.svg?t=1795524209947#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; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),h=m,u=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach((o=>{"kol-toast-container"===o&&(customElements.get(i(o))||customElements.define(i(o),m))}))};export{h as KolToastContainer,u as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l,X as r,s as a}from"./bem-registry.js";import{c as s,f as c,B as d}from"./props-from-config.js";import{l as k}from"./label.js";import{o as b}from"./orientation.js";import{B as h}from"./component8.js";import{L as f}from"./component5.js";import{p as m,a as u}from"./controller.js";import{n as p}from"./dev.utils.js";import{c as g,b as y,s as x}from"./element-interaction.js";import{d as _,K as v}from"./events.js";import{r as w}from"./resolve-props.js";import{r as j}from"./resolve-props2.js";import{T as z}from"./behavior.js";import{K as T}from"./keyboard.js";import{d as I,s as C}from"./element-focus.js";import{o as B}from"./ariaCurrentService.js";const O=s("items",[],(o=>c(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),E={required:[k,O],optional:[b]},F=l.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:n,label:i,location:l,orientation:r})=>o(d,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":i},n.map(((e,n)=>((e,t,n,i)=>{const l=t!==n||e.disabled?-1:0;return o("div",{class:F,key:t,ref:e.refWrapper},"link"===e.type?o(f,Object.assign({},e.getFcProps(l,i))):"button"===e.type?o(h,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,n,t,l)))),D=[T.ArrowUp,T.ArrowDown,T.ArrowRight,T.ArrowLeft],G=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=E,this._orientation=void 0}watchLabel(o){k.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){O.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,n,l;const s=new z(i.stateLess),c=g(),d=p();let k;const b=o,h=j(Object.assign(Object.assign({},b),{_inline:null!==(t=b._inline)&&void 0!==t&&t,_variant:null!==(l=null!==(n=b._variant)&&void 0!==n?n:r("buttonVariantDefault",e()))&&void 0!==l?l:"normal"}));s.componentWillLoad({label:h.label.length>0?h.label:h.href,align:h.tooltipAlign});const f=o=>{s.hideTooltip(),h.disabled?o.preventDefault():("function"==typeof h.on.onClick&&(a(o,c.el),h.on.onClick(o,h.href)),k&&_(k,v.click,h.href))};return{type:"link",disabled:h.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},h),{ariaCurrent:""!==t&&t===h.href?h.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:f,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?h.tabIndex:e}),refWrapper:o=>{k=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new z(i.stateLess),n=g(),l=p();let r;const s=w(o,e()),c=o._value;t.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,e)=>{r&&_(r,o,e)},k=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===s.type?m({form:r}):"reset"===s.type?u({form:r}):"function"==typeof s.on.onClick&&(a(o,n.el),s.on.onClick(o,c)),d(v.click,c)},b=o=>{var e,t;null===(t=(e=s.on).onMouseDown)||void 0===t||t.call(e,o),d(v.mousedown)},h=o=>{var e,t;null===(t=(e=s.on).onFocus)||void 0===t||t.call(e,o),d(v.focus)},f=o=>{var e,t;null===(t=(e=s.on).onBlur)||void 0===t||t.call(e,o),d(v.blur)};return{type:"button",disabled:s.disabled,getElement:()=>n.el,getFcProps:e=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:f,handleClick:k,handleFocus:h,handleMouseDown:b,refButton:n,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:e}),refWrapper:o=>{r=o},syncListeners:()=>{n.el&&t.syncListeners(void 0,n.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=g();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){b.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return I(this.host,(()=>C(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return y(this.host,(async()=>x(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=B((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!D.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const n=this.findNextEnabledItemIndex(this.currentIndex,t===T.ArrowUp||t===T.ArrowLeft?-1:1);void 0!==n&&n!==this.currentIndex&&(this.currentIndex=n,null===(e=this.itemRecords[n].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let n=1;n<=t;n++){const i=((o+e*n)%t+t)%t;if(!this.itemRecords[i].disabled)return i}}render(){return o(t,{key:"10c807156e0a9f91b26ffb26ac01768029106dab"},o(L,{key:"7ebbb8a2e88664afddf0c66e046003b21ba0e3d5",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795160658049"); src: url("kolicons.eot?t=1795160658049#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795160658049") format("woff2"), url("kolicons.woff?t=1795160658049") format("woff"), url("kolicons.ttf?t=1795160658049") format("truetype"), url("kolicons.svg?t=1795160658049#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: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: ""; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],currentIndex:[32],itemRecords:[32],location:[32],focus:[64],click:[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}]),K=G,R=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach((o=>{"kol-toolbar"===o&&(customElements.get(n(o))||customElements.define(n(o),G))}))};export{K as KolToolbar,R as defineCustomElement}
|
|
4
|
+
import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{o as l}from"./aria-current-service.js";import{b as r,X as a,s}from"./bem-registry.js";import{c,f as d,B as k}from"./props-from-config.js";import{l as b}from"./label.js";import{o as h}from"./orientation.js";import{B as f}from"./component8.js";import{L as m}from"./component5.js";import{c as u}from"./dev.utils.js";import{c as p,b as g,s as y}from"./element-interaction.js";import{d as x,K as _}from"./events.js";import{r as v}from"./resolve-props.js";import{p as w,a as j}from"./controller.js";import{r as z}from"./resolve-props2.js";import{T}from"./behavior.js";import{K as I}from"./keyboard.js";import{d as C,s as B}from"./element-focus.js";const O=c("items",[],(o=>d(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),E={required:[b,O],optional:[h]},F=r.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:n,label:i,location:l,orientation:r})=>o(k,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":i},n.map(((e,n)=>((e,t,n,i)=>{const l=t!==n||e.disabled?-1:0;return o("div",{class:F,key:t,ref:e.refWrapper},"link"===e.type?o(m,Object.assign({},e.getFcProps(l,i))):"button"===e.type?o(f,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,n,t,l)))),D=[I.ArrowUp,I.ArrowDown,I.ArrowRight,I.ArrowLeft],G=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=E,this._orientation=void 0}watchItems(o){O.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,n,l;const r=new T(i.stateLess),c=p(),d=u("aria-description");let k;const b=o,h=z(Object.assign(Object.assign({},b),{_inline:null!==(t=b._inline)&&void 0!==t&&t,_variant:null!==(l=null!==(n=b._variant)&&void 0!==n?n:a("buttonVariantDefault",e()))&&void 0!==l?l:"normal"}));r.componentWillLoad({label:h.label.length>0?h.label:h.href,align:h.tooltipAlign});const f=o=>{r.hideTooltip(),h.disabled?o.preventDefault():("function"==typeof h.on.onClick&&(s(o,c.el),h.on.onClick(o,h.href)),k&&x(k,_.click,h.href))};return{type:"link",disabled:h.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},h),{ariaCurrent:""!==t&&t===h.href?h.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:f,refAnchor:c,refTooltip:r.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?h.tabIndex:e}),refWrapper:o=>{k=o},syncListeners:()=>{c.el&&r.syncListeners(void 0,c.el,!0)},destroy:()=>r.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new T(i.stateLess),n=p(),l=u("aria-description");let r;const a=v(o,e()),c=o._value;t.componentWillLoad({label:a.label,align:a.tooltipAlign});const d=(o,e)=>{r&&x(r,o,e)},k=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===a.type?w({form:r}):"reset"===a.type?j({form:r}):"function"==typeof a.on.onClick&&(s(o,n.el),a.on.onClick(o,c)),d(_.click,c)},b=o=>{var e,t;null===(t=(e=a.on).onMouseDown)||void 0===t||t.call(e,o),d(_.mousedown)},h=o=>{var e,t;null===(t=(e=a.on).onFocus)||void 0===t||t.call(e,o),d(_.focus)},f=o=>{var e,t;null===(t=(e=a.on).onBlur)||void 0===t||t.call(e,o),d(_.blur)};return{type:"button",disabled:a.disabled,getElement:()=>n.el,getFcProps:e=>Object.assign(Object.assign({},a),{ariaDescriptionId:l,handleBlur:f,handleClick:k,handleFocus:h,handleMouseDown:b,refButton:n,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?a.tabIndex:e}),refWrapper:o=>{r=o},syncListeners:()=>{n.el&&t.syncListeners(void 0,n.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=p();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchLabel(o){b.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchOrientation(o){h.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return C(this.host,(()=>B(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return g(this.host,(async()=>y(o)))}componentWillLoad(){this.watchItems(this._items),this.watchLabel(this._label),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=l((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!D.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const n=this.findNextEnabledItemIndex(this.currentIndex,t===I.ArrowUp||t===I.ArrowLeft?-1:1);void 0!==n&&n!==this.currentIndex&&(this.currentIndex=n,null===(e=this.itemRecords[n].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let n=1;n<=t;n++){const i=((o+e*n)%t+t)%t;if(!this.itemRecords[i].disabled)return i}}render(){return o(t,{key:"be9329e1ce66d612786d37de6cc0737ac6752852"},o(L,{key:"c2f50bfe51a2e7abe35dccfae6cb0e60e9f949d9",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return this}static get watchers(){return{_items:[{watchItems:0}],_label:[{watchLabel:0}],_orientation:[{watchOrientation:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .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=1795524209947"); src: url("kolicons.eot?t=1795524209947#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795524209947") format("woff2"), url("kolicons.woff?t=1795524209947") format("woff"), url("kolicons.ttf?t=1795524209947") format("truetype"), url("kolicons.svg?t=1795524209947#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: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: ""; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: ""; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-toolbar",{_items:[16],_label:[1],_orientation:[1],currentIndex:[32],itemRecords:[32],location:[32],focus:[64],click:[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{_items:[{watchItems:0}],_label:[{watchLabel:0}],_orientation:[{watchOrientation:0}]}]),K=G,R=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach((o=>{"kol-toolbar"===o&&(customElements.get(n(o))||customElements.define(n(o),G))}))};export{K as KolToolbar,R as defineCustomElement}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{proxyCustomElement as i,HTMLElement as t,h as e,Host as l,transformTag as o}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{T as d}from"./behavior.js";import{T as n}from"./component9.js";const s=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.tooltipBehavior=new d(a.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,e;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return e(l,{key:"
|
|
4
|
+
import{proxyCustomElement as i,HTMLElement as t,h as e,Host as l,transformTag as o}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{T as d}from"./behavior.js";import{T as n}from"./component9.js";const s=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.tooltipBehavior=new d(a.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,e;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return e(l,{key:"1cac679536fc6ec7c91eba429dfc9153acf35f93",class:"kol-tooltip"},e(n,{key:"e8eec345c7525c61df179c7fcaade8f5aa6c8dcc",label:this.tooltipBehavior.getRenderProp("label"),badgeText:this._badgeText,id:this.tooltipBehavior.getRenderProp("id"),refFloating:i=>{var t;return null===(t=this.tooltipBehavior)||void 0===t?void 0:t.setTooltipElementRef(i)}}))}get host(){return this}static get watchers(){return{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}},[0,"kol-tooltip-wc",{_badgeText:[1,"_badge-text"],_align:[1],_id:[1],_label:[1],hideTooltip:[64]},void 0,{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}]),c=s,r=function(){"undefined"!=typeof customElements&&["kol-tooltip-wc"].forEach((i=>{"kol-tooltip-wc"===i&&(customElements.get(o(i))||customElements.define(o(i),s))}))};export{c as KolTooltipWc,r as defineCustomElement}
|