@public-ui/components 4.6.0-rc.0 → 4.6.0-rc.2
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 +4 -42
- package/dist/cjs/{Heading-CSxHzc97.js → Heading-CmnijhLd.js} +1 -1
- package/dist/cjs/{api-CgWeKMMq.js → api-Bg7hdIrJ.js} +22 -22
- package/dist/cjs/{app-globals-pY-Cyxgv.js → app-globals-BwYPSMbG.js} +3 -3
- package/dist/cjs/{base-YsLg9vB1.js → base-BVhV5HmV.js} +10 -10
- package/dist/cjs/{base-qwdvh9pf.js → base-CQB0r-ZQ.js} +11 -11
- package/dist/cjs/{base-CYqcl2o4.js → base-JFyPasp9.js} +27 -24
- package/dist/cjs/{base-Bza2102z.js → base-ob1X79UM.js} +13 -14
- package/dist/cjs/{base-web-component-Cp4fQ2Mh.js → base-web-component-DBcJrpRb.js} +15 -15
- package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DXCN-Sp3.js} +1 -1
- package/dist/cjs/{base-web-component-CkEUtzNr.js → base-web-component-dI9FmFIm.js} +10 -10
- package/dist/cjs/{behavior-DV-LMyJJ.js → behavior-B5wr2A8R.js} +7 -7
- package/dist/cjs/{behavior-DvLNQY2U.js → behavior-CUmF8rJf.js} +5 -5
- package/dist/cjs/{behavior-BqwUv55g.js → behavior-DujaVCwV.js} +5 -5
- package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-B6QoNC9E.js} +1 -16
- package/dist/cjs/{block-bem-BI7yfoFU.js → block-bem-ByCgFI2B.js} +1 -1
- package/dist/cjs/{bootstrap-C4lWLUW9.js → bootstrap-HU5YhM_w.js} +2 -2
- package/dist/cjs/{color-BW4t1Cif.js → color-C3xsA3Uk.js} +3 -3
- package/dist/cjs/{common-C-hcIfzh.js → common-CzGJx0nT.js} +31 -30
- package/dist/cjs/{component-CKMtvWhe.js → component-1J4G5HmZ.js} +14 -14
- package/dist/cjs/{component-D_9ZydZA.js → component-BexD3069.js} +15 -13
- package/dist/cjs/{component-CRDSSR7G.js → component-BilLJFfC.js} +5 -5
- package/dist/cjs/{component-BM0H6uUo.js → component-Bza8hlo-.js} +10 -10
- package/dist/cjs/{component-DXBzTkOY.js → component-Cbbx7Z6c.js} +4 -4
- package/dist/cjs/{component-D5PYQ9Ku.js → component-CjXcCX2V.js} +2 -2
- package/dist/cjs/{component-Br2jlQXL.js → component-Cqp00Tb9.js} +8 -8
- package/dist/cjs/{component-B9y7UnKg.js → component-DFhuXUqv.js} +15 -15
- package/dist/cjs/{component-DtmmNGjm.js → component-DGVc4bOy.js} +4 -4
- package/dist/cjs/{component-COEAaB_B.js → component-DkV9oPCL.js} +2 -2
- package/dist/cjs/{component-q87oQHev.js → component-Doln6Ltn.js} +5 -5
- package/dist/cjs/{component-CeT2UQLF.js → component-DprHBKdZ.js} +7 -7
- package/dist/cjs/{contrast-4mAdSLs0.js → contrast-6Nku3lih.js} +2 -2
- package/dist/cjs/{controller-DcinOUmN.js → controller-D66Eq44x.js} +1 -1
- package/dist/cjs/{dev.utils-DOgQN_zk.js → dev.utils-Bx4sgPsr.js} +2 -2
- package/dist/cjs/{devtools-CG9Ov5FS.js → devtools-BXBKJice.js} +3 -3
- package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CilmJ-p-.js} +1 -1
- package/dist/cjs/{field-control-BT1ZyKNR.js → field-control-B95uzQnW.js} +8 -8
- package/dist/cjs/{group-0C7hEZpp.js → group-DGS7K6Ja.js} +7 -7
- package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-iSIrv52u.js} +1 -1
- package/dist/cjs/{href-BBhiVyPb.js → href-xojo1zy_.js} +1 -1
- package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-D7UmRsV8.js} +2 -2
- package/dist/cjs/{i18n-BSWM5nea.js → i18n-DgHI4-xa.js} +2 -0
- package/dist/cjs/{id-D1VZsLkg.js → id-DP-w6i4q.js} +1 -1
- package/dist/cjs/{index-14cLFAPd.js → index-Ccvyz7Rq.js} +24 -43
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-DOHuLJaE.js → input-BKXEykG_.js} +5 -5
- package/dist/cjs/{input-container-Ddovz1-b.js → input-container-CWb_kRbs.js} +8 -8
- package/dist/cjs/{item--tny4oQM.js → item-C4Boh5Cz.js} +5 -5
- package/dist/cjs/{item-aV2WKcK3.js → item-DgNTEUz3.js} +35 -20
- package/dist/cjs/{item-CWoQfEPo.js → item-vDMQvV0t.js} +6 -6
- package/dist/cjs/{item-ZLQ1Yy47.js → item-wr5KfPYM.js} +13 -14
- package/dist/cjs/kol-abbr.cjs.entry.js +13 -12
- package/dist/cjs/kol-accordion.cjs.entry.js +21 -20
- package/dist/cjs/kol-alert.cjs.entry.js +32 -31
- package/dist/cjs/kol-avatar.cjs.entry.js +17 -16
- package/dist/cjs/kol-badge.cjs.entry.js +30 -30
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +32 -31
- package/dist/cjs/kol-button-link.cjs.entry.js +29 -29
- package/dist/cjs/kol-button.cjs.entry.js +29 -29
- package/dist/cjs/kol-card.cjs.entry.js +34 -34
- package/dist/cjs/kol-combobox.cjs.entry.js +46 -46
- package/dist/cjs/kol-details.cjs.entry.js +21 -20
- package/dist/cjs/kol-dialog.cjs.entry.js +37 -37
- package/dist/cjs/kol-drawer.cjs.entry.js +36 -36
- package/dist/cjs/kol-form.cjs.entry.js +30 -30
- package/dist/cjs/kol-heading.cjs.entry.js +15 -14
- package/dist/cjs/kol-icon.cjs.entry.js +20 -16
- package/dist/cjs/kol-image.cjs.entry.js +10 -9
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +41 -41
- package/dist/cjs/kol-input-color.cjs.entry.js +43 -43
- package/dist/cjs/kol-input-date.cjs.entry.js +45 -45
- package/dist/cjs/kol-input-email.cjs.entry.js +48 -48
- package/dist/cjs/kol-input-file.cjs.entry.js +42 -42
- package/dist/cjs/kol-input-number.cjs.entry.js +47 -47
- package/dist/cjs/kol-input-password.cjs.entry.js +46 -46
- package/dist/cjs/kol-input-radio.cjs.entry.js +41 -41
- package/dist/cjs/kol-input-range.cjs.entry.js +43 -43
- package/dist/cjs/kol-input-text.cjs.entry.js +48 -48
- package/dist/cjs/kol-kolibri.cjs.entry.js +13 -12
- package/dist/cjs/kol-link-button.cjs.entry.js +30 -29
- package/dist/cjs/kol-link.cjs.entry.js +30 -29
- package/dist/cjs/kol-meter.cjs.entry.js +20 -22
- package/dist/cjs/kol-modal.cjs.entry.js +37 -37
- package/dist/cjs/kol-nav.cjs.entry.js +38 -38
- package/dist/cjs/kol-pagination.cjs.entry.js +47 -48
- package/dist/cjs/kol-popover-button.cjs.entry.js +30 -30
- package/dist/cjs/kol-progress.cjs.entry.js +21 -17
- package/dist/cjs/kol-quote.cjs.entry.js +12 -11
- package/dist/cjs/kol-select.cjs.entry.js +41 -41
- package/dist/cjs/kol-single-select.cjs.entry.js +53 -48
- package/dist/cjs/kol-skip-nav.cjs.entry.js +32 -31
- package/dist/cjs/kol-spin.cjs.entry.js +17 -16
- package/dist/cjs/kol-split-button.cjs.entry.js +33 -33
- package/dist/cjs/kol-table-stateful.cjs.entry.js +57 -57
- package/dist/cjs/kol-table-stateless.cjs.entry.js +45 -45
- package/dist/cjs/kol-tabs.cjs.entry.js +36 -39
- package/dist/cjs/kol-textarea.cjs.entry.js +48 -46
- package/dist/cjs/kol-toast-container.cjs.entry.js +25 -25
- package/dist/cjs/kol-toolbar.cjs.entry.js +35 -35
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +15 -14
- package/dist/cjs/kol-tree-item.cjs.entry.js +28 -27
- package/dist/cjs/kol-tree.cjs.entry.js +12 -11
- package/dist/cjs/kol-version.cjs.entry.js +27 -27
- package/dist/cjs/kolibri.cjs.js +5 -5
- package/dist/cjs/{label-vVOiX4dC.js → label-D6c6jfqK.js} +3 -3
- package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-q3XenWLW.js} +2 -2
- package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-k4OY9qRY.js} +2 -2
- package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-CJoz7BLw.js} +3 -3
- package/dist/cjs/{level-BAiEYu4U.js → level-B6vFMm9s.js} +1 -1
- package/dist/cjs/{link-target-4AzB3I84.js → link-target-0qSVsAb2.js} +1 -1
- package/dist/cjs/{links-CPNK7VZo.js → links-Ur1e9DOK.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-CCxtzqez.js} +1 -1
- package/dist/cjs/{number-value-B2yoKlvx.js → number-value-DzAHCwlP.js} +1 -1
- package/dist/cjs/{open-CvoX_qxD.js → open-Gxr_K7HK.js} +1 -1
- package/dist/cjs/{options-B2pQC9w2.js → options-BT0m0gRT.js} +2 -2
- package/dist/cjs/{orientation-u2cvwgBc.js → orientation-CeHU4dT8.js} +1 -1
- package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-22xUUFff.js} +1 -1
- package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-D1qhXS9j.js} +1 -1
- package/dist/cjs/{read-only-DfWF-Coi.js → read-only-iHApMQEg.js} +1 -1
- package/dist/cjs/{required-CdXn16dq.js → required-BYdSI25I.js} +1 -1
- package/dist/cjs/{resolve-props-BpLJmK75.js → resolve-props-B_ytLWBO.js} +8 -9
- package/dist/cjs/{resolve-props-DhLgYN4l.js → resolve-props-pZBj0tIz.js} +8 -8
- package/dist/cjs/{rows-Ca5ya9tG.js → rows-C9vBSQK1.js} +1 -1
- package/dist/cjs/{scroll-lock-C7PeigI_.js → scroll-lock-DguXX-Em.js} +2 -2
- package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-DRMmUyQ5.js} +2 -2
- package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CxgvHcGA.js} +1 -1
- package/dist/cjs/{src-C3NG0rLO.js → src-Bmd7gQCS.js} +1 -1
- package/dist/cjs/{step-CZNyTb2h.js → step-CCqgsPCX.js} +1 -1
- package/dist/cjs/{suggestions-CZjGY0Eu.js → suggestions-C6Q3kj5J.js} +3 -3
- package/dist/cjs/{suggestions-BRclldK2.js → suggestions-CoUp7HmN.js} +2 -2
- package/dist/cjs/test-component.cjs.entry.js +4 -3
- package/dist/cjs/{toggle-handler-rQkcX4QY.js → toggle-handler-BaOOa9I5.js} +10 -10
- package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CgxOyb6V.js} +2 -2
- package/dist/cjs/{unit-bsoemclF.js → unit-_oDj-vIB.js} +1 -1
- package/dist/cjs/{validators-DuLdbf2D.js → validators-CpCJvM4r.js} +3 -1
- package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-CKppMGVM.js} +1 -1
- package/dist/cjs/{width-BklaRCqt.js → width-e7f3wHF3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/abbr/component.js +2 -2
- package/dist/collection/components/accordion/component.js +2 -2
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/component.js +4 -3
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/avatar/component.js +2 -2
- package/dist/collection/components/badge/component.js +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/component.js +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/component.js +1 -1
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/component.js +1 -1
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/component.js +2 -2
- package/dist/collection/components/card/style.css +2 -2
- package/dist/collection/components/combobox/component.js +4 -4
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/component.js +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/component.js +2 -2
- package/dist/collection/components/dialog/style.css +2 -2
- package/dist/collection/components/drawer/component.js +2 -2
- package/dist/collection/components/drawer/style.css +2 -2
- package/dist/collection/components/form/component.js +2 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/heading/component.js +2 -2
- package/dist/collection/components/icon/component.js +5 -5
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/image/component.js +2 -2
- package/dist/collection/components/input-checkbox/component.js +3 -3
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/component.js +2 -2
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/component.js +2 -2
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/component.js +1 -1
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/component.js +2 -2
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/component.js +2 -2
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/component.js +1 -1
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/component.js +1 -1
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/component.js +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/component.js +1 -1
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/kolibri/component.js +2 -2
- package/dist/collection/components/link/component.js +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/component.js +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/meter/component.js +2 -2
- package/dist/collection/components/modal/component.js +2 -2
- 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 +8 -10
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/component.js +1 -1
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/progress/component.js +6 -3
- package/dist/collection/components/quote/component.js +2 -2
- package/dist/collection/components/select/component.js +1 -1
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/component.js +10 -6
- 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 +2 -2
- package/dist/collection/components/split-button/component.js +1 -1
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/component.js +3 -3
- package/dist/collection/components/table-stateful/style.css +2 -2
- package/dist/collection/components/table-stateless/base.js +3 -0
- package/dist/collection/components/table-stateless/component.js +2 -2
- package/dist/collection/components/table-stateless/style.css +2 -2
- package/dist/collection/components/tabs/component.js +2 -11
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/component.js +5 -3
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/shadow.js +1 -1
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/component.js +2 -2
- 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 +2 -2
- 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/internal/functional-components/form-field/custom-suggestions.js +1 -1
- package/dist/collection/internal/functional-components/icon/api.js +2 -2
- package/dist/collection/internal/functional-components/link/component.js +1 -1
- package/dist/collection/internal/functional-components/meter/component.js +3 -6
- package/dist/collection/internal/functional-components/pagination/api.js +2 -2
- package/dist/collection/internal/functional-components/pagination/component.js +2 -3
- package/dist/collection/internal/functional-components/pagination/item.js +18 -3
- package/dist/collection/internal/functional-components/progress/component.js +1 -1
- package/dist/collection/internal/functional-components/single-select/component.js +2 -1
- package/dist/collection/internal/functional-components/tabs/component.js +7 -1
- package/dist/collection/internal/props/helpers/validators.js +1 -0
- package/dist/collection/internal/props/index.js +1 -0
- package/dist/collection/internal/props/label-decorative.js +10 -0
- package/dist/collection/locales/de.js +1 -0
- package/dist/collection/locales/en.js +1 -0
- package/dist/collection/schema/bem-registry.js +0 -15
- package/dist/collection/schema/i18n-keys.js +29 -28
- package/dist/components/base-web-component2.js +1 -1
- package/dist/components/base-web-component4.js +1 -1
- package/dist/components/base.js +1 -1
- package/dist/components/base2.js +1 -1
- package/dist/components/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/behavior4.js +1 -1
- package/dist/components/bem-registry.js +1 -1
- package/dist/components/component10.js +1 -1
- package/dist/components/component11.js +1 -1
- package/dist/components/component2.js +1 -1
- package/dist/components/component3.js +1 -1
- package/dist/components/component4.js +1 -1
- package/dist/components/component6.js +1 -1
- package/dist/components/component7.js +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component9.js +1 -1
- package/dist/components/contrast.js +1 -1
- package/dist/components/field-control.js +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/i18n2.js +1 -1
- package/dist/components/input-container.js +1 -1
- package/dist/components/item2.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/label.js +1 -1
- package/dist/components/level.js +1 -1
- package/dist/components/props-from-config.js +1 -1
- package/dist/components/resolve-props.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-Bj2Ma7Tr.js → Heading-C_CwXDMp.js} +1 -1
- package/dist/esm/{api-DhMNvXtN.js → api-DGiFM9p0.js} +20 -20
- package/dist/esm/{app-globals-Dpmwwlv-.js → app-globals-sZHZyXjD.js} +3 -3
- package/dist/esm/{base-DV_Pzm7z.js → base-B4sGK9cX.js} +12 -13
- package/dist/esm/{base-IzdO60L1.js → base-CWrvN3Gt.js} +10 -10
- package/dist/esm/{base-CJ5WCVaj.js → base-DTKJ1Z06.js} +27 -24
- package/dist/esm/{base-Ba-xzpOT.js → base-P1TaQ7Ba.js} +11 -11
- package/dist/esm/{base-web-component-BB3dHStd.js → base-web-component-Bq_B9edx.js} +15 -15
- package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/esm/{base-web-component-ug9DZUOx.js → base-web-component-CKgIOZqi.js} +10 -10
- package/dist/esm/{behavior-B4IW5_Qt.js → behavior-Bb7JYoUn.js} +5 -5
- package/dist/esm/{behavior-BgmZcrK6.js → behavior-CFG1f4KQ.js} +5 -5
- package/dist/esm/{behavior-BMXrK4gj.js → behavior-CkPQGfgo.js} +5 -5
- package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-DQUGxdIS.js} +1 -16
- package/dist/esm/{block-bem-BpQSY04L.js → block-bem-BGIVcYJu.js} +1 -1
- package/dist/esm/{bootstrap-DHXUvPBY.js → bootstrap-tgQ2nQQI.js} +2 -2
- package/dist/esm/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +3 -3
- package/dist/esm/{common-OzsC_6kt.js → common-BdSzSIXg.js} +31 -30
- package/dist/esm/{component-DdIOGRgB.js → component-5Uu-ahLC.js} +4 -4
- package/dist/esm/{component-scm3PBuq.js → component-B05zRrM0.js} +2 -2
- package/dist/esm/{component-Dt6efHXY.js → component-B16Fbp3W.js} +14 -13
- package/dist/esm/{component-BiYFPpjn.js → component-BI8jDgBz.js} +10 -10
- package/dist/esm/{component-Drxdk3mb.js → component-Bc2pdOk1.js} +8 -8
- package/dist/esm/{component-BvvE8aim.js → component-C79oAu7a.js} +5 -5
- package/dist/esm/{component-ChtW1HQv.js → component-CldKbBUh.js} +7 -7
- package/dist/esm/{component-C5QCCLLa.js → component-Clz6b6ho.js} +2 -2
- package/dist/esm/{component-gj7TBL0i.js → component-Ct11K0Gv.js} +14 -14
- package/dist/esm/{component-Ua7-J4C-.js → component-DAQzDMY8.js} +15 -15
- package/dist/esm/{component-BKfXEtN0.js → component-W1KZI4h4.js} +4 -4
- package/dist/esm/{component-C0zMsvYl.js → component-oUQcgxDj.js} +5 -5
- package/dist/esm/{contrast-D78VGPFR.js → contrast-BNoQruBh.js} +2 -2
- package/dist/esm/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/esm/{dev.utils-CwXr_J8N.js → dev.utils-DDWOHUcg.js} +2 -2
- package/dist/esm/{devtools-QEDvmhav.js → devtools-B0kEE_za.js} +3 -3
- package/dist/esm/{disabled-Cqhc40CU.js → disabled-BZXlWAgK.js} +1 -1
- package/dist/esm/{field-control-BOsAM8BW.js → field-control-DsQHa0v9.js} +8 -8
- package/dist/esm/{group-D4WbZY27.js → group-DUVsgWxS.js} +7 -7
- package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DUB0QcS9.js} +1 -1
- package/dist/esm/{href-JqLbNBsW.js → href-CxokGOJ2.js} +1 -1
- package/dist/esm/{i18n-Dl6Jjofb.js → i18n-4J6U3ZDc.js} +2 -0
- package/dist/esm/{i18n-DtLKn3Xt.js → i18n-ePBcLlCr.js} +2 -2
- package/dist/esm/{id-CIYvVaNr.js → id-BI0ZuK17.js} +1 -1
- package/dist/esm/{index-D_P2XoAc.js → index-Dulj0jro.js} +25 -43
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-C0kj1MmP.js → input-C0Li7DsE.js} +5 -5
- package/dist/esm/{input-container-B4TgBfDz.js → input-container-DmtMTcjB.js} +8 -8
- package/dist/esm/{item-e4SzwxHe.js → item-8RKFpmbd.js} +6 -6
- package/dist/esm/{item-DRC1CmzC.js → item-CnJMuEyl.js} +5 -5
- package/dist/esm/{item-WrCdQw7F.js → item-CxVe5INa.js} +35 -20
- package/dist/esm/{item-BMniY_My.js → item-DHZGDrAn.js} +12 -13
- package/dist/esm/kol-abbr.entry.js +13 -12
- package/dist/esm/kol-accordion.entry.js +21 -20
- package/dist/esm/kol-alert.entry.js +32 -31
- package/dist/esm/kol-avatar.entry.js +17 -16
- package/dist/esm/kol-badge.entry.js +30 -30
- package/dist/esm/kol-breadcrumb.entry.js +32 -31
- package/dist/esm/kol-button-link.entry.js +29 -29
- package/dist/esm/kol-button.entry.js +29 -29
- package/dist/esm/kol-card.entry.js +34 -34
- package/dist/esm/kol-combobox.entry.js +46 -46
- package/dist/esm/kol-details.entry.js +21 -20
- package/dist/esm/kol-dialog.entry.js +37 -37
- package/dist/esm/kol-drawer.entry.js +36 -36
- package/dist/esm/kol-form.entry.js +30 -30
- package/dist/esm/kol-heading.entry.js +15 -14
- package/dist/esm/kol-icon.entry.js +20 -16
- package/dist/esm/kol-image.entry.js +10 -9
- package/dist/esm/kol-input-checkbox.entry.js +41 -41
- package/dist/esm/kol-input-color.entry.js +43 -43
- package/dist/esm/kol-input-date.entry.js +45 -45
- package/dist/esm/kol-input-email.entry.js +48 -48
- package/dist/esm/kol-input-file.entry.js +42 -42
- package/dist/esm/kol-input-number.entry.js +47 -47
- package/dist/esm/kol-input-password.entry.js +46 -46
- package/dist/esm/kol-input-radio.entry.js +41 -41
- package/dist/esm/kol-input-range.entry.js +43 -43
- package/dist/esm/kol-input-text.entry.js +48 -48
- package/dist/esm/kol-kolibri.entry.js +13 -12
- package/dist/esm/kol-link-button.entry.js +30 -29
- package/dist/esm/kol-link.entry.js +30 -29
- package/dist/esm/kol-meter.entry.js +20 -22
- package/dist/esm/kol-modal.entry.js +37 -37
- package/dist/esm/kol-nav.entry.js +38 -38
- package/dist/esm/kol-pagination.entry.js +47 -48
- package/dist/esm/kol-popover-button.entry.js +30 -30
- package/dist/esm/kol-progress.entry.js +21 -17
- package/dist/esm/kol-quote.entry.js +12 -11
- package/dist/esm/kol-select.entry.js +41 -41
- package/dist/esm/kol-single-select.entry.js +53 -48
- package/dist/esm/kol-skip-nav.entry.js +32 -31
- package/dist/esm/kol-spin.entry.js +17 -16
- package/dist/esm/kol-split-button.entry.js +33 -33
- package/dist/esm/kol-table-stateful.entry.js +57 -57
- package/dist/esm/kol-table-stateless.entry.js +45 -45
- package/dist/esm/kol-tabs.entry.js +36 -39
- package/dist/esm/kol-textarea.entry.js +48 -46
- package/dist/esm/kol-toast-container.entry.js +25 -25
- package/dist/esm/kol-toolbar.entry.js +35 -35
- package/dist/esm/kol-tooltip-wc.entry.js +15 -14
- package/dist/esm/kol-tree-item.entry.js +28 -27
- package/dist/esm/kol-tree.entry.js +12 -11
- package/dist/esm/kol-version.entry.js +27 -27
- package/dist/esm/kolibri.js +6 -6
- package/dist/esm/{label-BRosRgdX.js → label-B-Dr7VaP.js} +3 -3
- package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-CLMiVvfk.js} +2 -2
- package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-iVD9hoM3.js} +2 -2
- package/dist/esm/{label-with-expert-slot-CicRes-W.js → label-with-expert-slot-BbZ9nx0l.js} +3 -3
- package/dist/esm/{level-CA1s1_Mf.js → level-DsQ_pcyD.js} +1 -1
- package/dist/esm/{link-target-FX94oqMo.js → link-target-D7lYILOV.js} +1 -1
- package/dist/esm/{links-DwucTqcR.js → links-IkK4zoXw.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{multiple-DqrZxybx.js → multiple--ay1C1n3.js} +1 -1
- package/dist/esm/{number-value-B-SJ1dRo.js → number-value-Dl9-2O4r.js} +1 -1
- package/dist/esm/{open-DRRv1KFK.js → open-CNHJhHsy.js} +1 -1
- package/dist/esm/{options-DCaUcfAu.js → options-DwO32GBF.js} +2 -2
- package/dist/esm/{orientation-XNOCaPwy.js → orientation-ChJ0S24M.js} +1 -1
- package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-UxmBJ4Vl.js} +1 -1
- package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/esm/{read-only-Bby9r6ZX.js → read-only-DytZ5HZJ.js} +1 -1
- package/dist/esm/{required-hoaT7UmZ.js → required-BriHhuO4.js} +1 -1
- package/dist/esm/{resolve-props-CqTztQhV.js → resolve-props-02J6OCRf.js} +8 -8
- package/dist/esm/{resolve-props-B-67viId.js → resolve-props-Bj6IaybL.js} +7 -8
- package/dist/esm/{rows-B0x8CR7K.js → rows-I1jrTjzU.js} +1 -1
- package/dist/esm/{scroll-lock-CKnC0y0o.js → scroll-lock-B6hVv8A8.js} +2 -2
- package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +2 -2
- package/dist/esm/{spell-check-DzgftyqL.js → spell-check-BWCnJG5v.js} +1 -1
- package/dist/esm/{src-DaGhmCL1.js → src-ziOwSglN.js} +1 -1
- package/dist/esm/{step-Bdj89bGO.js → step-BcyhvRtu.js} +1 -1
- package/dist/esm/{suggestions-Be1_H9fA.js → suggestions-DaB3FVaz.js} +3 -3
- package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +2 -2
- package/dist/esm/test-component.entry.js +4 -3
- package/dist/esm/{toggle-handler-Cjc991vd.js → toggle-handler-3qaN2kmt.js} +10 -10
- package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-CxFUYSVY.js} +2 -2
- package/dist/esm/{unit-BUhhJbhT.js → unit-1ix-K9SD.js} +1 -1
- package/dist/esm/{validators-BVM40IEr.js → validators-CTjxOidB.js} +3 -2
- package/dist/esm/{value-string-e9pwLcS-.js → value-string-CxDz7dhD.js} +1 -1
- package/dist/esm/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/kolibri/Heading-C_CwXDMp.js +4 -0
- package/dist/kolibri/api-DGiFM9p0.js +4 -0
- package/dist/kolibri/app-globals-sZHZyXjD.js +4 -0
- package/dist/kolibri/base-B4sGK9cX.js +4 -0
- package/dist/kolibri/{base-IzdO60L1.js → base-CWrvN3Gt.js} +1 -1
- package/dist/kolibri/base-DTKJ1Z06.js +4 -0
- package/dist/kolibri/{base-Ba-xzpOT.js → base-P1TaQ7Ba.js} +1 -1
- package/dist/kolibri/{base-web-component-BB3dHStd.js → base-web-component-Bq_B9edx.js} +1 -1
- package/dist/kolibri/{base-web-component-XgI4wUyN.js → base-web-component-CC_gpyDb.js} +1 -1
- package/dist/kolibri/{base-web-component-ug9DZUOx.js → base-web-component-CKgIOZqi.js} +1 -1
- package/dist/kolibri/{behavior-B4IW5_Qt.js → behavior-Bb7JYoUn.js} +1 -1
- package/dist/kolibri/{behavior-BgmZcrK6.js → behavior-CFG1f4KQ.js} +1 -1
- package/dist/kolibri/behavior-CkPQGfgo.js +4 -0
- package/dist/kolibri/bem-registry-DQUGxdIS.js +4 -0
- package/dist/kolibri/{block-bem-BpQSY04L.js → block-bem-BGIVcYJu.js} +1 -1
- package/dist/kolibri/bootstrap-tgQ2nQQI.js +4 -0
- package/dist/kolibri/{color-eAL9I7Wq.js → color-D1gM-F2l.js} +1 -1
- package/dist/kolibri/common-BdSzSIXg.js +4 -0
- package/dist/kolibri/component-5Uu-ahLC.js +4 -0
- package/dist/kolibri/component-B05zRrM0.js +4 -0
- package/dist/kolibri/component-B16Fbp3W.js +4 -0
- package/dist/kolibri/component-BI8jDgBz.js +4 -0
- package/dist/kolibri/{component-Drxdk3mb.js → component-Bc2pdOk1.js} +1 -1
- package/dist/kolibri/component-C79oAu7a.js +4 -0
- package/dist/kolibri/component-CldKbBUh.js +4 -0
- package/dist/kolibri/component-Clz6b6ho.js +4 -0
- package/dist/kolibri/component-Ct11K0Gv.js +4 -0
- package/dist/kolibri/component-DAQzDMY8.js +4 -0
- package/dist/kolibri/component-W1KZI4h4.js +4 -0
- package/dist/kolibri/{component-C0zMsvYl.js → component-oUQcgxDj.js} +1 -1
- package/dist/kolibri/contrast-BNoQruBh.js +4 -0
- package/dist/kolibri/{controller-Cb-96wE-.js → controller-CZcQ57AP.js} +1 -1
- package/dist/kolibri/dev.utils-DDWOHUcg.js +4 -0
- package/dist/kolibri/{devtools-QEDvmhav.js → devtools-B0kEE_za.js} +1 -1
- package/dist/kolibri/disabled-BZXlWAgK.js +4 -0
- package/dist/kolibri/field-control-DsQHa0v9.js +4 -0
- package/dist/kolibri/group-DUVsgWxS.js +4 -0
- package/dist/kolibri/has-closer-DUB0QcS9.js +4 -0
- package/dist/kolibri/href-CxokGOJ2.js +4 -0
- package/dist/kolibri/i18n-4J6U3ZDc.js +4 -0
- package/dist/kolibri/i18n-ePBcLlCr.js +4 -0
- package/dist/kolibri/id-BI0ZuK17.js +4 -0
- package/dist/kolibri/index-Dulj0jro.js +6 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/input-C0Li7DsE.js +4 -0
- package/dist/kolibri/input-container-DmtMTcjB.js +4 -0
- package/dist/kolibri/item-8RKFpmbd.js +4 -0
- package/dist/kolibri/item-CnJMuEyl.js +4 -0
- package/dist/kolibri/item-CxVe5INa.js +4 -0
- package/dist/kolibri/item-DHZGDrAn.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-B-Dr7VaP.js +4 -0
- package/dist/kolibri/label-hints-CLMiVvfk.js +4 -0
- package/dist/kolibri/label-lang-segment-iVD9hoM3.js +4 -0
- package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +4 -0
- package/dist/kolibri/level-DsQ_pcyD.js +4 -0
- package/dist/kolibri/link-target-D7lYILOV.js +4 -0
- package/dist/kolibri/links-IkK4zoXw.js +4 -0
- package/dist/kolibri/multiple--ay1C1n3.js +4 -0
- package/dist/kolibri/number-value-Dl9-2O4r.js +4 -0
- package/dist/kolibri/open-CNHJhHsy.js +4 -0
- package/dist/kolibri/options-DwO32GBF.js +4 -0
- package/dist/kolibri/orientation-ChJ0S24M.js +4 -0
- package/dist/kolibri/placeholder-UxmBJ4Vl.js +4 -0
- package/dist/kolibri/{props-from-config-Ci0dILpz.js → props-from-config-ytxYrJUY.js} +1 -1
- package/dist/kolibri/read-only-DytZ5HZJ.js +4 -0
- package/dist/kolibri/required-BriHhuO4.js +4 -0
- package/dist/kolibri/resolve-props-02J6OCRf.js +4 -0
- package/dist/kolibri/resolve-props-Bj6IaybL.js +4 -0
- package/dist/kolibri/rows-I1jrTjzU.js +4 -0
- package/dist/kolibri/scroll-lock-B6hVv8A8.js +4 -0
- package/dist/kolibri/{smart-button-CS_ZriPt.js → smart-button-DM5g48-g.js} +1 -1
- package/dist/kolibri/spell-check-BWCnJG5v.js +4 -0
- package/dist/kolibri/src-ziOwSglN.js +4 -0
- package/dist/kolibri/step-BcyhvRtu.js +4 -0
- package/dist/kolibri/{suggestions-Be1_H9fA.js → suggestions-DaB3FVaz.js} +1 -1
- package/dist/kolibri/{suggestions-Dy1X-Pc3.js → suggestions-LO267l8F.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/{toggle-handler-Cjc991vd.js → toggle-handler-3qaN2kmt.js} +1 -1
- package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +4 -0
- package/dist/kolibri/unit-1ix-K9SD.js +4 -0
- package/dist/kolibri/validators-CTjxOidB.js +4 -0
- package/dist/kolibri/value-string-CxDz7dhD.js +4 -0
- package/dist/kolibri/{width-CgYY17tL.js → width-C1_yZHyL.js} +1 -1
- package/dist/types/components/pagination/component.d.ts +1 -1
- package/dist/types/components/progress/component.d.ts +1 -0
- package/dist/types/components/single-select/component.d.ts +1 -0
- package/dist/types/components/tabs/component.d.ts +0 -1
- package/dist/types/components.d.ts +3 -97
- package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
- package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
- package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
- package/dist/types/internal/functional-components/pagination/item.d.ts +1 -1
- package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
- package/dist/types/internal/props/helpers/validators.d.ts +2 -1
- package/dist/types/internal/props/index.d.ts +1 -0
- package/dist/types/internal/props/label-decorative.d.ts +4 -0
- package/dist/types/locales/de.d.ts +1 -0
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/schema/bem-registry.d.ts +0 -25
- package/dist/types/schema/components/pagination.d.ts +2 -2
- package/dist/types/schema/i18n-keys.d.ts +29 -28
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/props/label.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/doc/pagination.md +13 -13
- package/doc/table-stateful.md +1 -1
- package/package.json +8 -8
- package/vscode-custom-data.json +0 -13
- package/dist/cjs/component-r497oHWq.js +0 -14
- package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
- package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
- package/dist/cjs/name-D4qpL1m-.js +0 -10
- package/dist/collection/components/click-button/component.js +0 -105
- package/dist/collection/components/skeleton/component.js +0 -215
- package/dist/collection/internal/functional-components/click-button/api.js +0 -7
- package/dist/collection/internal/functional-components/click-button/component.js +0 -9
- package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
- package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
- package/dist/components/component12.js +0 -4
- package/dist/components/kol-click-button.d.ts +0 -11
- package/dist/components/kol-click-button.js +0 -4
- package/dist/components/kol-skeleton.d.ts +0 -11
- package/dist/components/kol-skeleton.js +0 -4
- package/dist/components/name.js +0 -4
- package/dist/esm/component-Db9HadXA.js +0 -12
- package/dist/esm/kol-click-button.entry.js +0 -53
- package/dist/esm/kol-skeleton.entry.js +0 -105
- package/dist/esm/name-B2Yf3EpX.js +0 -8
- package/dist/kolibri/Heading-Bj2Ma7Tr.js +0 -4
- package/dist/kolibri/api-DhMNvXtN.js +0 -4
- package/dist/kolibri/app-globals-Dpmwwlv-.js +0 -4
- package/dist/kolibri/base-CJ5WCVaj.js +0 -4
- package/dist/kolibri/base-DV_Pzm7z.js +0 -4
- package/dist/kolibri/behavior-BMXrK4gj.js +0 -4
- package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
- package/dist/kolibri/bootstrap-DHXUvPBY.js +0 -4
- package/dist/kolibri/common-OzsC_6kt.js +0 -4
- package/dist/kolibri/component-BKfXEtN0.js +0 -4
- package/dist/kolibri/component-BiYFPpjn.js +0 -4
- package/dist/kolibri/component-BvvE8aim.js +0 -4
- package/dist/kolibri/component-C5QCCLLa.js +0 -4
- package/dist/kolibri/component-ChtW1HQv.js +0 -4
- package/dist/kolibri/component-Db9HadXA.js +0 -4
- package/dist/kolibri/component-DdIOGRgB.js +0 -4
- package/dist/kolibri/component-Dt6efHXY.js +0 -4
- package/dist/kolibri/component-Ua7-J4C-.js +0 -4
- package/dist/kolibri/component-gj7TBL0i.js +0 -4
- package/dist/kolibri/component-scm3PBuq.js +0 -4
- package/dist/kolibri/contrast-D78VGPFR.js +0 -4
- package/dist/kolibri/dev.utils-CwXr_J8N.js +0 -4
- package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
- package/dist/kolibri/field-control-BOsAM8BW.js +0 -4
- package/dist/kolibri/group-D4WbZY27.js +0 -4
- package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
- package/dist/kolibri/href-JqLbNBsW.js +0 -4
- package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
- package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
- package/dist/kolibri/id-CIYvVaNr.js +0 -4
- package/dist/kolibri/index-D_P2XoAc.js +0 -6
- package/dist/kolibri/input-C0kj1MmP.js +0 -4
- package/dist/kolibri/input-container-B4TgBfDz.js +0 -4
- package/dist/kolibri/item-BMniY_My.js +0 -4
- package/dist/kolibri/item-DRC1CmzC.js +0 -4
- package/dist/kolibri/item-WrCdQw7F.js +0 -4
- package/dist/kolibri/item-e4SzwxHe.js +0 -4
- package/dist/kolibri/kol-click-button.entry.js +0 -4
- package/dist/kolibri/kol-skeleton.entry.js +0 -4
- package/dist/kolibri/label-BRosRgdX.js +0 -4
- package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
- package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
- package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
- package/dist/kolibri/level-CA1s1_Mf.js +0 -4
- package/dist/kolibri/link-target-FX94oqMo.js +0 -4
- package/dist/kolibri/links-DwucTqcR.js +0 -4
- package/dist/kolibri/multiple-DqrZxybx.js +0 -4
- package/dist/kolibri/name-B2Yf3EpX.js +0 -4
- package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
- package/dist/kolibri/open-DRRv1KFK.js +0 -4
- package/dist/kolibri/options-DCaUcfAu.js +0 -4
- package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
- package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
- package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
- package/dist/kolibri/required-hoaT7UmZ.js +0 -4
- package/dist/kolibri/resolve-props-B-67viId.js +0 -4
- package/dist/kolibri/resolve-props-CqTztQhV.js +0 -4
- package/dist/kolibri/rows-B0x8CR7K.js +0 -4
- package/dist/kolibri/scroll-lock-CKnC0y0o.js +0 -4
- package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
- package/dist/kolibri/src-DaGhmCL1.js +0 -4
- package/dist/kolibri/step-Bdj89bGO.js +0 -4
- package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
- package/dist/kolibri/unit-BUhhJbhT.js +0 -4
- package/dist/kolibri/validators-BVM40IEr.js +0 -4
- package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
- package/dist/types/components/click-button/component.d.ts +0 -15
- package/dist/types/components/skeleton/component.d.ts +0 -26
- package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
- package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
- package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
- package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
- package/doc/skeleton.md +0 -54
|
@@ -21,7 +21,7 @@ export class KolTree extends BaseWebComponent {
|
|
|
21
21
|
this.observeTopLevelItems();
|
|
22
22
|
this.scheduleTreeChange();
|
|
23
23
|
};
|
|
24
|
-
super();
|
|
24
|
+
super(...arguments);
|
|
25
25
|
}
|
|
26
26
|
watchLabel(value) {
|
|
27
27
|
labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
|
|
@@ -233,7 +233,7 @@ export class KolTree extends BaseWebComponent {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
render() {
|
|
236
|
-
return (h(Host, { key: '
|
|
236
|
+
return (h(Host, { key: '46407a67efb548149a62e371713e0da8ec352863', tabindex: "0" }, h(TreeFC, { key: '2725ae9400123f266b59b8c45b82eac3b83cf5f3', handleSlotchange: this.handleSlotchange, label: this.getRenderProp('label') })));
|
|
237
237
|
}
|
|
238
238
|
static get is() { return "kol-tree"; }
|
|
239
239
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class KolTreeItem extends BaseWebComponent {
|
|
|
37
37
|
const open = this.open;
|
|
38
38
|
void this.focus().then(() => this.setOpen(!open));
|
|
39
39
|
};
|
|
40
|
-
super();
|
|
40
|
+
super(...arguments);
|
|
41
41
|
}
|
|
42
42
|
watchActive(value) {
|
|
43
43
|
activeProp.apply(value, (v) => this.setRenderProp('active', v));
|
|
@@ -123,7 +123,7 @@ export class KolTreeItem extends BaseWebComponent {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '52b3ee0d7b7d593abeaf27e782a5e3ed384d710f' }, h(TreeItemFC, { key: '8acfdb55c45f3245ca7df0839c734188dcaea5bd', active: this.getRenderProp('active'), ariaCurrent: this.ariaCurrent, groupId: this.groupId, handleAnchorClick: this.handleAnchorClick, handleSlotchange: this.handleSlotchange, handleToggleClick: this.handleToggleClick, hasChildren: this.hasChildren, href: this.getRenderProp('href'), label: this.getRenderProp('label'), level: this.level, open: this.open, refAnchor: this.anchorRef })));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "kol-tree-item"; }
|
|
129
129
|
static get encapsulation() { return "shadow"; }
|
|
@@ -289,8 +289,8 @@
|
|
|
289
289
|
}
|
|
290
290
|
@font-face {
|
|
291
291
|
font-family: "kolicons";
|
|
292
|
-
src: url("kolicons.eot?t=
|
|
293
|
-
src: url("kolicons.eot?t=
|
|
292
|
+
src: url("kolicons.eot?t=1794582088003"); /* IE9*/
|
|
293
|
+
src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); /* iOS 4.1- */
|
|
294
294
|
}
|
|
295
295
|
@layer kol-component {
|
|
296
296
|
[class^=kolicon-], [class*=" kolicon-"] {
|
|
@@ -14,7 +14,7 @@ const VERSION_ICON = { left: { icon: 'kolicon-version', label: translate('kol-ve
|
|
|
14
14
|
export class KolVersion extends BaseWebComponent {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.propsConfig = versionPropsConfig;
|
|
17
|
-
super();
|
|
17
|
+
super(...arguments);
|
|
18
18
|
}
|
|
19
19
|
watchLabel(value) {
|
|
20
20
|
labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
|
|
@@ -23,7 +23,7 @@ export class KolVersion extends BaseWebComponent {
|
|
|
23
23
|
labelProp.apply(this._label, (v) => this.setRenderProp('label', v), this.isRequired('label'));
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '41f3fe21b34ed55fe622cc212cec754c5110292e' }, h(VersionFC, { key: '3239e582b5e207e28c4a2cf92d730278f21afd0b', color: VERSION_COLOR, icons: VERSION_ICON, label: this.getRenderProp('label') })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "kol-version"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -289,8 +289,8 @@
|
|
|
289
289
|
}
|
|
290
290
|
@font-face {
|
|
291
291
|
font-family: "kolicons";
|
|
292
|
-
src: url("kolicons.eot?t=
|
|
293
|
-
src: url("kolicons.eot?t=
|
|
292
|
+
src: url("kolicons.eot?t=1794582088003"); /* IE9*/
|
|
293
|
+
src: url("kolicons.eot?t=1794582088003#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794582088003") format("woff2"), url("kolicons.woff?t=1794582088003") format("woff"), url("kolicons.ttf?t=1794582088003") format("truetype"), url("kolicons.svg?t=1794582088003#kolicons") format("svg"); /* iOS 4.1- */
|
|
294
294
|
}
|
|
295
295
|
@layer kol-component {
|
|
296
296
|
[class^=kolicon-], [class*=" kolicon-"] {
|
|
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
import { getBlockBem } from "../bem-root-node/block-bem";
|
|
6
6
|
const optionsGroupBem = getBlockBem('kol-custom-suggestions-options-group');
|
|
7
7
|
const optionBem = getBlockBem('kol-custom-suggestions-option');
|
|
8
|
-
export const CustomSuggestionsOptionsGroupFC = ({ blockSuggestionMouseOver, onKeyDown, style, hidden, id }, children) => (h("ul", { id: id, role: "listbox", style: style, class: optionsGroupBem({ 'cursor-hidden': blockSuggestionMouseOver, open: !hidden }), hidden: hidden, onKeyDown: onKeyDown }, children));
|
|
8
|
+
export const CustomSuggestionsOptionsGroupFC = ({ 'aria-labelledby': ariaLabelledBy, blockSuggestionMouseOver, onKeyDown, style, hidden, id }, children) => (h("ul", { "aria-labelledby": ariaLabelledBy, id: id, role: "listbox", style: style, class: optionsGroupBem({ 'cursor-hidden': blockSuggestionMouseOver, open: !hidden }), hidden: hidden, onKeyDown: onKeyDown }, children));
|
|
9
9
|
const highlightSearchTerm = (text, searchTerm) => {
|
|
10
10
|
if (!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()))
|
|
11
11
|
return text;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import { iconsProp,
|
|
4
|
+
import { iconsProp, labelDecorativeProp } from "../../props";
|
|
5
5
|
export const iconPropsConfig = {
|
|
6
|
-
required: [iconsProp,
|
|
6
|
+
required: [iconsProp, labelDecorativeProp],
|
|
7
7
|
};
|
|
@@ -40,5 +40,5 @@ export const LinkFC = (props, children) => {
|
|
|
40
40
|
'hide-label': hideLabel === true,
|
|
41
41
|
inline: inline === true,
|
|
42
42
|
standalone: inline === false,
|
|
43
|
-
} }, h("a", Object.assign({ ref: refAnchor }, tagAttrs, { href: tagAttrs.href, accessKey: accessKey || undefined, "aria-current": ariaCurrent || undefined, "aria-controls": ariaControls || undefined, "aria-describedby": trimmedAriaDescription ? ariaDescriptionId : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-expanded": ariaExpanded === '' ? undefined : ariaExpanded, "aria-owns": ariaOwns || undefined, "aria-label": hideLabel && trimLabel(label) !== '' ? `${trimLabel(label)}${isExternal ? ` (${translateOpenLinkInTab})` : ''}` : undefined, "aria-keyshortcuts": shortKey || undefined, class: linkBem('interactive-element') }, on, { onClick: handleAnchorClick, onMouseDown: disabled ? preventFocus : undefined, role: roleValue, tabIndex: disabled ? -1 : tabIndex }), h(SpanFC, { class: "kol-link__text", badgeText: accessKey || shortKey, icons: icons, hideLabel: hideLabel, label: expertSlot ? '' : label || href }, children.length > 0 ? children : h("slot", { name: "expert", slot: "expert" })), isExternal && (h(IconFC, { class: "kol-link__icon", label: hideLabel ? '' : translateOpenLinkInTab, icons: 'kolicon-link-external', "aria-hidden": hideLabel }))), hideLabel === true && !expertSlot && (h("div", { class: "kol-link__tooltip" }, h(TooltipFC, { badgeText: accessKey || shortKey || '', label:
|
|
43
|
+
} }, h("a", Object.assign({ ref: refAnchor }, tagAttrs, { href: tagAttrs.href, accessKey: accessKey || undefined, "aria-current": ariaCurrent || undefined, "aria-controls": ariaControls || undefined, "aria-describedby": trimmedAriaDescription ? ariaDescriptionId : undefined, "aria-disabled": disabled ? 'true' : undefined, "aria-expanded": ariaExpanded === '' ? undefined : ariaExpanded, "aria-owns": ariaOwns || undefined, "aria-label": hideLabel && trimLabel(label) !== '' ? `${trimLabel(label)}${isExternal ? ` (${translateOpenLinkInTab})` : ''}` : undefined, "aria-keyshortcuts": shortKey || undefined, class: linkBem('interactive-element') }, on, { onClick: handleAnchorClick, onMouseDown: disabled ? preventFocus : undefined, role: roleValue, tabIndex: disabled ? -1 : tabIndex }), h(SpanFC, { class: "kol-link__text", badgeText: accessKey || shortKey, icons: icons, hideLabel: hideLabel, label: expertSlot ? '' : label || href }, children.length > 0 ? children : h("slot", { name: "expert", slot: "expert" })), isExternal && (h(IconFC, { class: "kol-link__icon", label: hideLabel ? '' : translateOpenLinkInTab, icons: 'kolicon-link-external', "aria-hidden": hideLabel }))), hideLabel === true && !expertSlot && (h("div", { class: "kol-link__tooltip" }, h(TooltipFC, { badgeText: accessKey || shortKey || '', label: trimLabel(label) !== '' ? label : typeof href === 'string' ? href : '', refFloating: refTooltip }))), trimmedAriaDescription && h(AriaDescriptionSpanFC, { description: trimmedAriaDescription, descriptionId: ariaDescriptionId })));
|
|
44
44
|
};
|
|
@@ -10,15 +10,12 @@ const meterBem = bem.forBlock('kol-meter');
|
|
|
10
10
|
function getMeterState(value, min, max, low, high, optimum) {
|
|
11
11
|
const effectiveLow = low !== null && low !== void 0 ? low : min;
|
|
12
12
|
const effectiveHigh = high !== null && high !== void 0 ? high : max;
|
|
13
|
-
|
|
14
|
-
const inMidRegion = value >= effectiveLow && value <= effectiveHigh;
|
|
15
|
-
return inMidRegion ? 'optimum' : 'suboptimal';
|
|
16
|
-
}
|
|
13
|
+
const effectiveOptimum = optimum !== null && optimum !== void 0 ? optimum : (min + max) / 2;
|
|
17
14
|
const inLowRegion = value < effectiveLow;
|
|
18
15
|
const inHighRegion = value > effectiveHigh;
|
|
19
16
|
const inMidRegion = !inLowRegion && !inHighRegion;
|
|
20
|
-
const optimumInLow =
|
|
21
|
-
const optimumInHigh =
|
|
17
|
+
const optimumInLow = effectiveOptimum < effectiveLow;
|
|
18
|
+
const optimumInHigh = effectiveOptimum > effectiveHigh;
|
|
22
19
|
if (optimumInLow) {
|
|
23
20
|
if (inLowRegion)
|
|
24
21
|
return 'optimum';
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { boundaryCountProp, customClassProp, labelProp, pageProp, pageSizeOptionsProp, pageSizeProp, paginationCallbacksProp, paginationHasButtonsProp, paginationMaxProp, siblingCountProp, tooltipAlignProp, } from "../../props";
|
|
5
5
|
export const paginationPropsConfig = {
|
|
6
|
-
required: [pageProp, paginationCallbacksProp, paginationMaxProp],
|
|
7
|
-
optional: [boundaryCountProp, customClassProp,
|
|
6
|
+
required: [labelProp, pageProp, paginationCallbacksProp, paginationMaxProp],
|
|
7
|
+
optional: [boundaryCountProp, customClassProp, pageSizeOptionsProp, pageSizeProp, paginationHasButtonsProp, siblingCountProp, tooltipAlignProp],
|
|
8
8
|
};
|
|
@@ -5,7 +5,6 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
import { translate } from "../../../i18n";
|
|
6
6
|
import { trimLabel } from "../../../schema";
|
|
7
7
|
import { bem } from "../../../schema/bem-registry";
|
|
8
|
-
import { nonce } from "../../../utils/dev.utils";
|
|
9
8
|
import { BemRootNodeFC } from "../bem-root-node/component";
|
|
10
9
|
import { ButtonFC } from "../button/component";
|
|
11
10
|
import { resolveFcProps } from "../props-from-config";
|
|
@@ -38,7 +37,7 @@ export const PaginationContentFC = (props) => {
|
|
|
38
37
|
const pageButton = (item, selected) => {
|
|
39
38
|
const pageText = NUMBER_FORMATTER.format(item);
|
|
40
39
|
const ariaDescription = `${translate('kol-page')} ${pageText}`;
|
|
41
|
-
return (h("li", { key:
|
|
40
|
+
return (h("li", { key: `page-${item}` }, selected ? (h(ButtonFC, Object.assign({}, getButtonFcProps(`page-${item}`, { _ariaDescription: ariaDescription, _customClass: customClass, _label: pageText }, { 'aria-current': 'page', class: `${paginationBem('button', { selected: true })} selected` })))) : (h(ButtonFC, Object.assign({}, getButtonFcProps(`page-${item}`, {
|
|
42
41
|
_ariaDescription: ariaDescription,
|
|
43
42
|
_customClass: customClass,
|
|
44
43
|
_label: pageText,
|
|
@@ -53,7 +52,7 @@ export const PaginationContentFC = (props) => {
|
|
|
53
52
|
total: NUMBER_FORMATTER.format(max),
|
|
54
53
|
},
|
|
55
54
|
})),
|
|
56
|
-
h("nav", { class: paginationBem('navigation'), "aria-label": trimLabel(label) }, h("ul", { class: paginationBem('navigation-list') }, hasButtons.first && navigationButton('first', leftDoubleArrowIcon, translate('kol-page-first'), page <= 1), hasButtons.previous && navigationButton('previous', leftSingleArrowIcon, translate('kol-page-back'), page <= 1), getPageItems(page, count, boundaryCount, siblingCount).map((item) => item === null ? null : item === 'separator' ? (h("li", { key:
|
|
55
|
+
h("nav", { class: paginationBem('navigation'), "aria-label": trimLabel(label) }, h("ul", { class: paginationBem('navigation-list') }, hasButtons.first && navigationButton('first', leftDoubleArrowIcon, translate('kol-page-first'), page <= 1), hasButtons.previous && navigationButton('previous', leftSingleArrowIcon, translate('kol-page-back'), page <= 1), getPageItems(page, count, boundaryCount, siblingCount).map((item, index) => item === null ? null : item === 'separator' ? (h("li", { key: index + 1 < page ? 'separator-left' : 'separator-right' }, h("span", { class: paginationBem('separator'), "aria-hidden": "true" }))) : (pageButton(item.page, item.selected))), hasButtons.next && navigationButton('next', rightSingleArrowIcon, translate('kol-page-next'), count <= page), hasButtons.last && navigationButton('last', rightDoubleArrowIcon, translate('kol-page-last'), count <= page))),
|
|
57
56
|
(pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions.length) > 0 && (h("div", { class: "page-size" }, h("div", { class: paginationBem('page-size-select') }, renderPageSizeSelect({ label: translate('kol-entries-per-site'), options: pageSizeOptions, value: pageSize })))),
|
|
58
57
|
];
|
|
59
58
|
};
|
|
@@ -43,6 +43,7 @@ export const createPaginationItem = (options) => {
|
|
|
43
43
|
const pageSizeSelects = createItemPool(() => new PageSizeSelect(options.getEventTarget, options.requestRender), (select) => select.sync(), (select) => select.destroy());
|
|
44
44
|
let pageSizeValue = 1;
|
|
45
45
|
let applied = {};
|
|
46
|
+
let pendingFocusPage;
|
|
46
47
|
store.set('label', translatePagination);
|
|
47
48
|
const reportPageChange = (event, page) => {
|
|
48
49
|
setTimeout(() => {
|
|
@@ -71,15 +72,28 @@ export const createPaginationItem = (options) => {
|
|
|
71
72
|
syncPage(store.get('page'), resolved, store.get('max'));
|
|
72
73
|
});
|
|
73
74
|
};
|
|
74
|
-
const applyLabel = (value, initial) => {
|
|
75
|
+
const applyLabel = (value, initial, required) => {
|
|
75
76
|
if (!initial) {
|
|
76
77
|
removeNavLabel(store.get('label'));
|
|
77
78
|
}
|
|
78
|
-
labelProp.apply(value !== null &&
|
|
79
|
+
labelProp.apply(value, (v) => store.set('label', v !== null && v !== void 0 ? v : translatePagination), required);
|
|
79
80
|
addNavLabel(store.get('label'));
|
|
80
81
|
};
|
|
82
|
+
const restorePageFocus = () => {
|
|
83
|
+
if (pendingFocusPage === undefined || pendingFocusPage !== store.get('page')) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
pendingFocusPage = undefined;
|
|
87
|
+
const button = buttons.get(`page-${store.get('page')}`).getElement();
|
|
88
|
+
const root = button === null || button === void 0 ? void 0 : button.getRootNode();
|
|
89
|
+
const focusLost = !(root === null || root === void 0 ? void 0 : root.activeElement) && (document.activeElement === null || document.activeElement === document.body);
|
|
90
|
+
if ((button === null || button === void 0 ? void 0 : button.isConnected) && focusLost) {
|
|
91
|
+
button.focus();
|
|
92
|
+
}
|
|
93
|
+
};
|
|
81
94
|
const handlePageClick = (event, page) => {
|
|
82
95
|
var _a, _b;
|
|
96
|
+
pendingFocusPage = page;
|
|
83
97
|
(_b = (_a = store.get('on')).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event, page);
|
|
84
98
|
const target = options.getEventTarget();
|
|
85
99
|
if (target) {
|
|
@@ -116,7 +130,7 @@ export const createPaginationItem = (options) => {
|
|
|
116
130
|
applyBoundaryCount: (value) => boundaryCountProp.apply(value, (v) => store.set('boundaryCount', v)),
|
|
117
131
|
applyCustomClass: (value) => customClassProp.apply(value, (v) => store.set('customClass', v)),
|
|
118
132
|
applyHasButtons: (value) => paginationHasButtonsProp.apply(value, (v) => store.set('hasButtons', Object.assign(Object.assign({}, store.get('hasButtons')), v))),
|
|
119
|
-
applyLabel: (value) => applyLabel(value, false),
|
|
133
|
+
applyLabel: (value, required) => applyLabel(value, false, required),
|
|
120
134
|
applyMax: (value) => {
|
|
121
135
|
if (value === undefined || value === null) {
|
|
122
136
|
return;
|
|
@@ -201,6 +215,7 @@ export const createPaginationItem = (options) => {
|
|
|
201
215
|
sync: () => {
|
|
202
216
|
buttons.endRender();
|
|
203
217
|
pageSizeSelects.endRender();
|
|
218
|
+
restorePageFocus();
|
|
204
219
|
},
|
|
205
220
|
destroy: () => {
|
|
206
221
|
removeNavLabel(store.get('label'));
|
|
@@ -34,5 +34,5 @@ export const ProgressFC = (props) => {
|
|
|
34
34
|
const liveValueText = isPercentage
|
|
35
35
|
? translate('kol-live-value', { placeholders: { value: String(liveProgressValue), unit } })
|
|
36
36
|
: translate('kol-live-value-bounded', { placeholders: { value: String(liveProgressValue), max: String(max), unit } });
|
|
37
|
-
return (h("div", { class: progressBem() }, h("div", { "aria-hidden": "true", class: progressBem(variant === 'cycle' ? 'cycle' : 'bar') }, variant === 'bar' && label && h("div", { class: progressBem('bar-label') }, renderLabelWithLang(label)), createProgressSVG(variant, max, value), variant === 'cycle' && (h("div", { class: progressBem('cycle-text') }, label && h("div", { class: progressBem('cycle-label') }, renderLabelWithLang(label)), h("div", { class: progressBem('cycle-value') }, `${displayValue} ${unit}`))), variant === 'bar' && (h("div", { class: progressBem('bar-value'), style: { width: valueColumnWidth } }, displayValue)), variant === 'bar' && h("div", { class: progressBem('bar-unit') }, unit)), h("progress", { "aria-busy": value < max ? 'true' : 'false', "aria-label": trimLabel(label), class: "visually-hidden", max: max, value: value }), h("span", { "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, liveValueText)));
|
|
37
|
+
return (h("div", { class: progressBem() }, h("div", { "aria-hidden": "true", class: progressBem(variant === 'cycle' ? 'cycle' : 'bar') }, variant === 'bar' && label && h("div", { class: progressBem('bar-label') }, renderLabelWithLang(label)), createProgressSVG(variant, max, value), variant === 'cycle' && (h("div", { class: progressBem('cycle-text') }, label && h("div", { class: progressBem('cycle-label') }, renderLabelWithLang(label)), h("div", { class: progressBem('cycle-value') }, `${displayValue} ${unit}`))), variant === 'bar' && (h("div", { class: progressBem('bar-value'), style: { width: valueColumnWidth } }, displayValue)), variant === 'bar' && h("div", { class: progressBem('bar-unit') }, unit)), h("progress", { "aria-busy": value < max ? 'true' : 'false', "aria-label": trimLabel(label) || translate('kol-progress'), class: "visually-hidden", max: max, value: value }), h("span", { "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, liveValueText)));
|
|
38
38
|
};
|
|
@@ -9,4 +9,5 @@ const customSuggestionsToggleBem = bem.forBlock('kol-custom-suggestions-toggle')
|
|
|
9
9
|
export const BEM_CLASS_SINGLE_SELECT__DELETE = singleSelectBem('delete');
|
|
10
10
|
const BEM_CLASS_SINGLE_SELECT__NO_RESULTS_MESSAGE = singleSelectBem('no-results-message');
|
|
11
11
|
export const SingleSelectToggleFC = ({ disabled, handleClick }) => (h(IconFC, { icons: "kolicon-chevron-down", label: "", class: customSuggestionsToggleBem({ disabled }), onClick: handleClick }));
|
|
12
|
-
export const SingleSelectNoResultsFC = ({ message }) =>
|
|
12
|
+
export const SingleSelectNoResultsFC = ({ message }) => h("div", { class: BEM_CLASS_SINGLE_SELECT__NO_RESULTS_MESSAGE }, message, " ");
|
|
13
|
+
export const SingleSelectNoResultsStatusFC = ({ message }) => (h("span", { class: "visually-hidden", role: "status" }, message));
|
|
@@ -13,5 +13,11 @@ const BEM_CLASS_TABS__TAB = tabsBem('tab');
|
|
|
13
13
|
const BEM_CLASS_TABS__TABLIST = tabsBem('tablist');
|
|
14
14
|
export const TabsFC = (props) => {
|
|
15
15
|
const { align, class: hostClass, createButton, handleBlur, handleKeyDown, hasCreateButton, label, refContent, refRoot, tabButtons } = props;
|
|
16
|
-
|
|
16
|
+
const handleFocusOut = (event) => {
|
|
17
|
+
const tablist = event.currentTarget;
|
|
18
|
+
if (!(event.relatedTarget instanceof Node && tablist.contains(event.relatedTarget))) {
|
|
19
|
+
handleBlur();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return (h(BemRootNodeFC, { block: "kol-tabs", modifiers: { [`align-${align}`]: true }, class: hostClass, ref: refRoot }, h("div", { class: BEM_CLASS_TABS__BUTTON_GROUP }, h("div", { "aria-label": label, class: BEM_CLASS_TABS__TABLIST, role: "tablist", tabIndex: -1, onKeyDown: handleKeyDown, onFocusout: handleFocusOut }, tabButtons.map(({ buttonProps, refBox }) => (h("div", { class: BEM_CLASS_TABS__TAB, ref: refBox }, h(ButtonFC, Object.assign({}, buttonProps)))))), hasCreateButton && (h("div", { class: BEM_CLASS_TABS__BUTTON_CREATE, ref: createButton.refBox }, h(ButtonFC, Object.assign({}, createButton.buttonProps))))), h("div", { class: BEM_CLASS_TABS__CONTENT, ref: refContent })));
|
|
17
23
|
};
|
|
@@ -7,3 +7,4 @@ export const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLAS
|
|
|
7
7
|
export const isValidLabel = isValidLabelString;
|
|
8
8
|
export { isValidLabelSegments };
|
|
9
9
|
export const isValidLabelWithExpertSlot = (value) => value === '' || isValidLabelSegments(value);
|
|
10
|
+
export const isValidLabelDecorative = (value) => value === '' || isValidLabel(value);
|
|
@@ -72,6 +72,7 @@ export * from './input-text-type';
|
|
|
72
72
|
export * from './kolibri-color';
|
|
73
73
|
export * from './label';
|
|
74
74
|
export * from './label-align';
|
|
75
|
+
export * from './label-decorative';
|
|
75
76
|
export * from './label-lang-segment';
|
|
76
77
|
export * from './label-with-expert-slot';
|
|
77
78
|
export * from './labeled';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import { createPropDefinition } from "./helpers/factory";
|
|
5
|
+
import { normalizeString } from "./helpers/normalizers";
|
|
6
|
+
import { isValidLabelDecorative } from "./helpers/validators";
|
|
7
|
+
import { labelHints } from "./hints/label-hints";
|
|
8
|
+
export const labelDecorativeProp = createPropDefinition('label', undefined, normalizeString, isValidLabelDecorative, {
|
|
9
|
+
hints: labelHints,
|
|
10
|
+
});
|
|
@@ -46,6 +46,7 @@ export default {
|
|
|
46
46
|
pagination: 'Paginierung',
|
|
47
47
|
'pagination-position-bottom': 'unten',
|
|
48
48
|
'pagination-position-top': 'oben',
|
|
49
|
+
progress: 'Fortschritt',
|
|
49
50
|
readonly: 'schreibgeschützt',
|
|
50
51
|
'show-password': 'Passwort einblenden',
|
|
51
52
|
'show-suggestions': 'Vorschläge anzeigen',
|
|
@@ -169,21 +169,6 @@ const BEM = {
|
|
|
169
169
|
},
|
|
170
170
|
modifiers: null,
|
|
171
171
|
},
|
|
172
|
-
'kol-skeleton': {
|
|
173
|
-
elements: {
|
|
174
|
-
actions: { modifiers: null },
|
|
175
|
-
container: { modifiers: null },
|
|
176
|
-
counter: { modifiers: null },
|
|
177
|
-
name: { modifiers: null },
|
|
178
|
-
},
|
|
179
|
-
modifiers: new Set(['has-name', 'is-hidden']),
|
|
180
|
-
},
|
|
181
|
-
'kol-click-button': {
|
|
182
|
-
elements: {
|
|
183
|
-
label: { modifiers: null },
|
|
184
|
-
},
|
|
185
|
-
modifiers: null,
|
|
186
|
-
},
|
|
187
172
|
'kol-span': {
|
|
188
173
|
elements: {
|
|
189
174
|
container: { modifiers: null },
|
|
@@ -47,32 +47,33 @@ export var KeyEnum;
|
|
|
47
47
|
KeyEnum[KeyEnum["pagination"] = 41] = "pagination";
|
|
48
48
|
KeyEnum[KeyEnum["pagination-position-bottom"] = 42] = "pagination-position-bottom";
|
|
49
49
|
KeyEnum[KeyEnum["pagination-position-top"] = 43] = "pagination-position-top";
|
|
50
|
-
KeyEnum[KeyEnum["
|
|
51
|
-
KeyEnum[KeyEnum["
|
|
52
|
-
KeyEnum[KeyEnum["show-
|
|
53
|
-
KeyEnum[KeyEnum["
|
|
54
|
-
KeyEnum[KeyEnum["
|
|
55
|
-
KeyEnum[KeyEnum["
|
|
56
|
-
KeyEnum[KeyEnum["
|
|
57
|
-
KeyEnum[KeyEnum["table-data-
|
|
58
|
-
KeyEnum[KeyEnum["table-
|
|
59
|
-
KeyEnum[KeyEnum["table-
|
|
60
|
-
KeyEnum[KeyEnum["table-selection
|
|
61
|
-
KeyEnum[KeyEnum["table-selection-
|
|
62
|
-
KeyEnum[KeyEnum["table-selection-
|
|
63
|
-
KeyEnum[KeyEnum["table-
|
|
64
|
-
KeyEnum[KeyEnum["table-settings
|
|
65
|
-
KeyEnum[KeyEnum["table-settings-
|
|
66
|
-
KeyEnum[KeyEnum["table-settings-
|
|
67
|
-
KeyEnum[KeyEnum["table-settings-column-
|
|
68
|
-
KeyEnum[KeyEnum["table-settings-column-
|
|
69
|
-
KeyEnum[KeyEnum["table-settings-
|
|
70
|
-
KeyEnum[KeyEnum["table-settings-
|
|
71
|
-
KeyEnum[KeyEnum["table-settings-move-
|
|
72
|
-
KeyEnum[KeyEnum["table-settings-
|
|
73
|
-
KeyEnum[KeyEnum["table-
|
|
74
|
-
KeyEnum[KeyEnum["table-
|
|
75
|
-
KeyEnum[KeyEnum["
|
|
76
|
-
KeyEnum[KeyEnum["
|
|
77
|
-
KeyEnum[KeyEnum["
|
|
50
|
+
KeyEnum[KeyEnum["progress"] = 44] = "progress";
|
|
51
|
+
KeyEnum[KeyEnum["readonly"] = 45] = "readonly";
|
|
52
|
+
KeyEnum[KeyEnum["show-password"] = 46] = "show-password";
|
|
53
|
+
KeyEnum[KeyEnum["show-suggestions"] = 47] = "show-suggestions";
|
|
54
|
+
KeyEnum[KeyEnum["sort"] = 48] = "sort";
|
|
55
|
+
KeyEnum[KeyEnum["split-button-dropdown-label-open"] = 49] = "split-button-dropdown-label-open";
|
|
56
|
+
KeyEnum[KeyEnum["success"] = 50] = "success";
|
|
57
|
+
KeyEnum[KeyEnum["table-data-loading"] = 51] = "table-data-loading";
|
|
58
|
+
KeyEnum[KeyEnum["table-data-loaded"] = 52] = "table-data-loaded";
|
|
59
|
+
KeyEnum[KeyEnum["table-pagination-label"] = 53] = "table-pagination-label";
|
|
60
|
+
KeyEnum[KeyEnum["table-selection"] = 54] = "table-selection";
|
|
61
|
+
KeyEnum[KeyEnum["table-selection-all"] = 55] = "table-selection-all";
|
|
62
|
+
KeyEnum[KeyEnum["table-selection-indeterminate"] = 56] = "table-selection-indeterminate";
|
|
63
|
+
KeyEnum[KeyEnum["table-selection-none"] = 57] = "table-selection-none";
|
|
64
|
+
KeyEnum[KeyEnum["table-settings"] = 58] = "table-settings";
|
|
65
|
+
KeyEnum[KeyEnum["table-settings-apply"] = 59] = "table-settings-apply";
|
|
66
|
+
KeyEnum[KeyEnum["table-settings-cancel"] = 60] = "table-settings-cancel";
|
|
67
|
+
KeyEnum[KeyEnum["table-settings-column-hidable"] = 61] = "table-settings-column-hidable";
|
|
68
|
+
KeyEnum[KeyEnum["table-settings-column-not-hidable"] = 62] = "table-settings-column-not-hidable";
|
|
69
|
+
KeyEnum[KeyEnum["table-settings-column-width"] = 63] = "table-settings-column-width";
|
|
70
|
+
KeyEnum[KeyEnum["table-settings-error-all-invisible"] = 64] = "table-settings-error-all-invisible";
|
|
71
|
+
KeyEnum[KeyEnum["table-settings-move-down"] = 65] = "table-settings-move-down";
|
|
72
|
+
KeyEnum[KeyEnum["table-settings-move-up"] = 66] = "table-settings-move-up";
|
|
73
|
+
KeyEnum[KeyEnum["table-settings-not-move"] = 67] = "table-settings-not-move";
|
|
74
|
+
KeyEnum[KeyEnum["table-sort-order"] = 68] = "table-sort-order";
|
|
75
|
+
KeyEnum[KeyEnum["table-visible-range"] = 69] = "table-visible-range";
|
|
76
|
+
KeyEnum[KeyEnum["toast-close-all"] = 70] = "toast-close-all";
|
|
77
|
+
KeyEnum[KeyEnum["version"] = 71] = "version";
|
|
78
|
+
KeyEnum[KeyEnum["warning"] = 72] = "warning";
|
|
78
79
|
})(KeyEnum || (KeyEnum = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{a as s,F as l}from"./behavior3.js";import{d as r}from"./disabled.js";import{h as a,e as n,j as d}from"./component3.js";import{c as h,n as c,b as p,a as u,t as m}from"./props-from-config.js";import{l as v}from"./label-with-expert-slot.js";import{n as b}from"./name.js";import{a as f}from"./tslib.es6.js";import{S as g,b as y,s as j}from"./component7.js";import{r as _}from"./aria-labelledby.js";import{a as B,c as L,n as O}from"./dev.utils.js";import{K as T,d as F}from"./events.js";import{B as N}from"./base-web-component.js";import{c as x}from"./item.js";import{c as K}from"./item2.js";import{T as k}from"./behavior.js";import{h as w}from"@stencil/core/internal/client";import{t as A}from"./i18n.js";import{c as P}from"./clsx.js";import{B as C}from"./component.js";import{T as H}from"./component11.js";import{P as D}from"./behavior4.js";import{A as I}from"./component2.js";function M(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const q=h("hideMsg",!1,c),E=h("hint","",p),$=h("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=u(),R=h("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=h("touched",!1,c),G={required:[v],optional:[s,r,a,q,E,$,z,R,b,n,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=f(e,["id","class","hint","baseClassName"]);return o?w("span",Object.assign({class:P(`${s}__hint`,t),id:B(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=f(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const v=!d&&n,b=!1===c?void 0:y(l,r);return w(i,Object.assign({},m,{class:P(`${o}__label`,s),id:v||h?void 0:B(t,"label"),hidden:v,htmlFor:"legend"===i?void 0:t}),w(g,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:b},w("slot",{name:"expert"})),!d&&p&&w("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",A("kol-readonly"),")"),!d&&u&&w("span",null,w(D,Object.assign({},u.popoverButton),w("div",{class:"kol-popover-button__popover--styled"},u.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=f(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return w(I,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:P("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:O(),handleCloserClick:()=>{},hasCloser:!1,headingId:L("alert-heading"),id:B(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!j(i)&&!0===e,Y=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:a,disabled:n,class:h,msg:c,hideMsg:p,hideLabel:u,label:m,infoPopover:v,hint:b,accessKey:g,shortKey:_,counter:L,readOnly:O,touched:T,maxLength:F,ariaDescribedBy:N,showBadge:x,tooltipAlign:K,variant:k,component:D="div",orientation:I,refInput:S,refTooltip:q}=e,E=f(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),$=j(m),z=M(c,T),R=y(g,_),V=X({hideLabel:u,label:m,renderNoTooltip:o}),G="fieldset"===D;return w(C,Object.assign({component:D,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(n),required:Boolean(r),touched:Boolean(T),"hide-label":Boolean(u),"read-only":Boolean(O),"hidden-msg":Boolean(p)},z?Y(c):{}),class:P(k&&d(k,"form-field"),h),disabled:!(!G||!n)||void 0,"aria-describedby":N},E),!t&&w(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:u,label:m,accessKey:g,shortKey:_,readOnly:O,showBadge:x,infoPopover:v}),w("div",{class:W("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},i,V&&w("div",{class:W("tooltip")},w(H,{badgeText:R||"",label:m,align:K,id:B(l,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&w("div",{class:W("counter")},w("span",{"aria-hidden":"true",class:W("counter"),ref:L.visualRef}),w("span",{"aria-live":"polite",class:"visually-hidden",id:B(l,"counter"),ref:L.ariaRef})),z&&w(U,{id:l,alert:a,hideMsg:p,msg:c}),!s&&w(J,{id:l,hint:b}),"number"==typeof F&&!L&&w("span",{id:B(l,"character-limit-hint"),class:"visually-hidden"},A("kol-character-limit-hint",{placeholders:{limit:String(F)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const ie=class extends N{constructor(){super(...arguments),this.tooltipBehavior=new k(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=K({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(T.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(T.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(T.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new l(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=f(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){s.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=_(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){r.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){a.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){v.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){b.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){n.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&F(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(T.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(B(e,"msg")),a&&n.push(B(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return X({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(y(i,t)||""),this.tooltipBehavior.watchId(B(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,S as g,M as i}
|
|
4
|
+
import{p as e,k as i,H as t,b as o}from"./bem-registry.js";import{a as s,F as l}from"./behavior3.js";import{d as r}from"./disabled.js";import{h as a,e as n,j as d}from"./component3.js";import{c as h,n as c,b as p,a as u,t as m}from"./props-from-config.js";import{l as v}from"./label-with-expert-slot.js";import{n as b}from"./component9.js";import{a as f}from"./tslib.es6.js";import{S as g,b as y,s as j}from"./component7.js";import{r as _}from"./aria-labelledby.js";import{a as B,c as L,n as O}from"./dev.utils.js";import{K as T,d as F}from"./events.js";import{B as N}from"./base-web-component.js";import{c as x}from"./item.js";import{c as K}from"./item2.js";import{T as k}from"./behavior.js";import{h as w}from"@stencil/core/internal/client";import{t as A}from"./i18n.js";import{c as P}from"./clsx.js";import{B as C}from"./component.js";import{T as H}from"./component10.js";import{P as D}from"./behavior4.js";import{A as I}from"./component2.js";function M(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const q=h("hideMsg",!1,c),E=h("hint","",p),$=h("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),z=u(),R=h("msg",void 0,(function(i){if("string"==typeof i)try{return e(i)}catch(e){return i}return i}),(function(e){return void 0===e||("string"==typeof e?e.length>0:i(e)&&t(e._description,1))})),V=h("touched",!1,c),G={required:[v],optional:[s,r,a,q,E,$,z,R,b,n,V]},J=e=>{var{id:i,class:t,hint:o,baseClassName:s="kol-form-field"}=e,l=f(e,["id","class","hint","baseClassName"]);return o?w("span",Object.assign({class:P(`${s}__hint`,t),id:B(i||"","hint")},l),o):null},Q=e=>{var{component:i="label",id:t,baseClassName:o="kol-form-field",class:s,accessKey:l,shortKey:r,label:a,hideLabel:n,hasExpertSlot:d,omitId:h,showBadge:c=!0,readOnly:p,infoPopover:u}=e,m=f(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const v=!d&&n,b=!1===c?void 0:y(l,r);return w(i,Object.assign({},m,{class:P(`${o}__label`,s),id:v||h?void 0:B(t,"label"),hidden:v,htmlFor:"legend"===i?void 0:t}),w(g,{class:`${o}__label-text`,label:d?"":null!=a?a:"",badgeText:b},w("slot",{name:"expert"})),!d&&p&&w("span",{class:`${o}__label__read-only`,"aria-hidden":"true"},"(",A("kol-readonly"),")"),!d&&u&&w("span",null,w(D,Object.assign({},u.popoverButton),w("div",{class:"kol-popover-button__popover--styled"},u.content))))},U=i=>{var t,o,{alert:s,hideMsg:l,msg:r,id:a,class:n}=i,d=f(i,["alert","hideMsg","msg","id","class"]);const h=function(i){if("string"==typeof i)try{return e(i)}catch(e){return{_description:i,_type:"error"}}return i&&"object"==typeof i&&!("_type"in i)?Object.assign(Object.assign({},i),{_type:"error"}):i}(r);return w(I,Object.assign({alert:!l&&(null!==(t=null==h?void 0:h._alert)&&void 0!==t?t:!0===s),class:P("kol-form-field__msg",l&&"visually-hidden",n),closerAriaDescriptionId:O(),handleCloserClick:()=>{},hasCloser:!1,headingId:L("alert-heading"),id:B(a,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(o=null==h?void 0:h._type)&&void 0!==o?o:"error",variant:"msg"},d),(null==h?void 0:h._description)||void 0)},W=o.forBlock("kol-form-field"),X=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!j(i)&&!0===e,Y=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},Z=(e,i)=>{const{renderNoLabel:t,renderNoTooltip:o,renderNoHint:s,id:l,required:r,alert:a,disabled:n,class:h,msg:c,hideMsg:p,hideLabel:u,label:m,infoPopover:v,hint:b,accessKey:g,shortKey:_,counter:L,readOnly:O,touched:T,maxLength:F,ariaDescribedBy:N,showBadge:x,tooltipAlign:K,variant:k,component:D="div",orientation:I,refInput:S,refTooltip:q}=e,E=f(e,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),$=j(m),z=M(c,T),R=y(g,_),V=X({hideLabel:u,label:m,renderNoTooltip:o}),G="fieldset"===D;return w(C,Object.assign({component:D,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(n),required:Boolean(r),touched:Boolean(T),"hide-label":Boolean(u),"read-only":Boolean(O),"hidden-msg":Boolean(p)},z?Y(c):{}),class:P(k&&d(k,"form-field"),h),disabled:!(!G||!n)||void 0,"aria-describedby":N},E),!t&&w(Q,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:l,hasExpertSlot:$,hideLabel:u,label:m,accessKey:g,shortKey:_,readOnly:O,showBadge:x,infoPopover:v}),w("div",{class:W("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},i,V&&w("div",{class:W("tooltip")},w(H,{badgeText:R||"",label:m,align:K,id:B(l,"label"),refFloating:q}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&w("div",{class:W("counter")},w("span",{"aria-hidden":"true",class:W("counter"),ref:L.visualRef}),w("span",{"aria-live":"polite",class:"visually-hidden",id:B(l,"counter"),ref:L.ariaRef})),z&&w(U,{id:l,alert:a,hideMsg:p,msg:c}),!s&&w(J,{id:l,hint:b}),"number"==typeof F&&!L&&w("span",{id:B(l,"character-limit-hint"),class:"visually-hidden"},A("kol-character-limit-hint",{placeholders:{limit:String(F)}})))};function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?m(t):void 0}}const ie=class extends N{constructor(){super(...arguments),this.tooltipBehavior=new k(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=K({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(T.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(T.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(T.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(T.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new l(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const e=this.shared.getRenderProp("infoPopover");if(!e)return;const{_content:i}=e,t=f(e,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},t),{_hideLabel:!0,_inline:!0})),content:i}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){s.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=_(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){r.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){a.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){q.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){E.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){$.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){v.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){R.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){b.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){z.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){n.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){V.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&F(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(T.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(B(e,"msg")),a&&n.push(B(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return X({hideLabel:e.getRenderProp("hideLabel"),label:m(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:l,readOnly:r,renderNoLabel:a,renderNoTooltip:n,required:d}){const h=this.shared,c=h.getState("id"),p=h.getRenderProp("label"),u=h.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(u),this.tooltipBehavior.watchBadgeText(y(i,t)||""),this.tooltipBehavior.watchId(B(c,"label")),this.tooltipBehavior.watchLabel(p)):this.tooltipBehavior.destroy(),{id:c,disabled:h.getRenderProp("disabled"),msg:h.getRenderProp("msg"),hint:h.getRenderProp("hint"),label:p,hideLabel:h.getRenderProp("hideLabel"),hideMsg:h.getRenderProp("hideMsg"),touched:h.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:d,readOnly:r,accessKey:i,shortKey:t,maxLength:l,counter:s,variant:o,class:e,tooltipAlign:u,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:a,renderNoTooltip:n,refInput:n?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}};export{ie as B,Z as F,J as a,Q as b,ee as c,G as f,S as g,M as i}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./component3.js";import{h as a,g as l,I as n}from"./input-container.js";import{
|
|
4
|
+
import{h as e,p as s}from"./bem-registry.js";import{a as t,d as i,t as o,v as r}from"./component3.js";import{h as a,g as l,I as n}from"./input-container.js";import{q as d,s as h,c}from"./props-from-config.js";import{m as p}from"./multiple.js";import{r as u}from"./required.js";import{r as b}from"./rows.js";import{f as m,i as v,g as y,c as f,B as j,F as O}from"./base-web-component2.js";import{h as g,Fragment as A}from"@stencil/core/internal/client";import{v as B}from"./access-and-short-key.js";import{c as w}from"./clsx.js";import{f as K}from"./options.js";import{a as q}from"./tslib.es6.js";import{g as P}from"./block-bem.js";const k=s=>{if("object"==typeof s&&null!==s){if("string"==typeof s.label&&s.label.length>0)return s.disabled=!0===s.disabled,s.label=`${s.label}`.trim(),!1===d(s.label,3)&&!1===h(s.label)&&e(`A differing Aria-Label (${s.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(s.options)||void 0===s.options.find((e=>!1===k(e)));if("number"==typeof s.label)return!0}return!1},x=c("options",[],(function(e){const t="string"==typeof e?s(e):e;if(Array.isArray(t)&&t.every((e=>k(e))))return t;throw new Error("Invalid select options")})),L=c("value",[],(e=>Array.isArray(e)?e:[e])),$={required:[...m.required],optional:[...m.optional,t,a,p,x,u,b,L,i,o,r]},D=P("kol-select"),E=e=>{var{class:s,index:t,selectedValue:i,selected:o,value:r,label:a,disabled:l}=e,n=q(e,["class","index","selectedValue","selected","value","label","disabled"]);const d=void 0===i?[]:Array.isArray(i)?i:[i],h=o||d.includes(r);return g("option",Object.assign({class:w(D("option",{selected:Boolean(h),disabled:Boolean(l)}),s),selected:h,disabled:l,value:t},n),a)},I=({preKey:e,options:s,disabled:t,value:i,OptionProps:o={},OptionGroupProps:r={}})=>(null==s?void 0:s.length)?g(A,null,s.map(((s,a)=>{const l=[e,`-${a}`].join("");if("options"in s){const e=Boolean(t||s.disabled),{label:a}=s,n=q(s,["label"]);return g("optgroup",Object.assign({class:D("optgroup",{disabled:e}),key:l},r,{label:null==a?void 0:a.toString(),disabled:e}),g(I,Object.assign({OptionGroupProps:r,OptionProps:o,value:i,preKey:l},n,{disabled:e})))}return"value"in s?g(E,Object.assign({key:l},o,{index:l,selectedValue:i},s,{disabled:Boolean(t||s.disabled)})):null}))):null,V=e=>{const{class:s,msg:t,touched:i,disabled:o,required:r,options:a,value:l,OptionProps:n,OptionGroupProps:d,ariaDescribedBy:h,hideLabel:c,label:p}=e,u=q(e,["class","msg","touched","disabled","required","options","value","OptionProps","OptionGroupProps","ariaDescribedBy","hideLabel","label"]),b=Object.assign(Object.assign({class:w(D(Object.assign({disabled:Boolean(o),required:Boolean(r),touched:Boolean(i)},v(t,i)?{[y(t)]:!0}:{})),s),required:r,disabled:o},f({ariaDescribedBy:h,hideLabel:c,label:p})),u);return g("select",Object.assign({},b),g(I,{OptionGroupProps:d,OptionProps:n,disabled:o,options:a,value:l}))},G=(e,s,t)=>{const i=Array.isArray(e);if(s){if(void 0!==e&&!i)throw new Error(`↑ The schema for the property (_value) is not valid for multiple mode. Expected an array. The value will not be changed. (${t} = ${JSON.stringify(e)})`)}else if(i)throw new Error(`↑ The schema for the property (_value) is not valid for single mode. Expected a single value. The value will not be changed. (${t} = ${JSON.stringify(e)})`)},S=(e,s=!1)=>e.flatMap((e=>"options"in e&&Array.isArray(e.options)?S(e.options,Boolean(s||e.disabled)):[Object.assign(Object.assign({},e),{disabled:Boolean(s||e.disabled)})])),T=(e,s,t)=>{if(0===s.length)return e;const i=S(s),o=i.map((e=>e.value)),r=e.every((e=>o.includes(e)))?e:e.filter((e=>o.includes(e)));if(!1===t&&0===r.length){const e=i.find((e=>!0!==e.disabled));return e?[e.value]:r}return r},C=class extends j{constructor(){super(...arguments),this.keyOptionMap=new Map,this.hasValue=!0,this.handleSelectInput=e=>{var s;const t=Array.from((null===(s=this.ctaRef.el)||void 0===s?void 0:s.options)||[]).filter((e=>e.selected)).map((e=>{var s;return null===(s=this.keyOptionMap.get(e.value))||void 0===s?void 0:s.value}));if(this._multiple)this._value=t,this.handleInput(e,t);else{const s=t.length>0?t[0]:void 0;this._value=s,this.handleInput(e,s)}},this.handleSelectChange=e=>{const s=this._value;this.handleChange(e,s),this.hasValue=!!s}}applyAccessKey(e){t.apply(e,(e=>this.setRenderProp("accessKey",e))),B(e,this.getShortKeyProp())}applyShortKey(e){i.apply(e,(e=>this.setRenderProp("shortKey",e))),B(this.getAccessKeyProp(),e)}applyIcons(e){a.apply(e,(e=>this.setRenderProp("icons",e)))}applyMultiple(e){G(this._value,!0===e,"current"),p.apply(e,(e=>{this.setRenderProp("multiple",e),this.setRenderProp("value",T(this.getRenderProp("value"),this.getRenderProp("options"),this._multiple))}))}applyOptions(e){x.apply(e,(e=>{this.setRenderProp("options",e),e.length>0&&(this.keyOptionMap.clear(),K(this.keyOptionMap,e),this.setRenderProp("value",T(this.getRenderProp("value"),e,this._multiple)))}))}applyRequired(e){u.apply(e,(e=>this.setRenderProp("required",e)))}applyRows(e){b.apply(e,(e=>this.setRenderProp("rows",e)))}applyTabIndex(e){o.apply(e,(e=>this.setRenderProp("tabIndex",e)))}applyValue(e){G(e,!0===this._multiple,"received");const s=e=>{const s=T(e,this.getRenderProp("options"),this._multiple);this.setRenderProp("value",s),this.formAssociation.setFormAssociatedValue(this.getModelValue())};null===e?s([null]):L.apply(e,s)}applyVariant(e){r.apply(e,(e=>this.setRenderProp("variant",e)))}getModelValue(){const e=this.getRenderProp("value");return this._multiple?e:Array.isArray(e)&&e.length>0?e[0]:e}getSelectProps(){const{ariaDescribedBy:e,hasError:s}=this.getAria(),t=this.getRenderProp("multiple"),i=this.getRenderProp("shortKey");return Object.assign(Object.assign({id:this.getState("id"),hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),options:this.getRenderProp("options"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,"aria-invalid":s?"true":void 0,ariaDescribedBy:e,size:t?this.getRenderProp("rows"):void 0,multiple:t,required:this.getRenderProp("required"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")},i?{"aria-keyshortcuts":i}:{}),{ref:this.ctaRef,onBlur:this.handleBlur,onChange:this.handleSelectChange,onClick:this.handleClick,onFocus:this.handleFocus,onInput:this.handleSelectInput,onKeyDown:this.handleKeyDown})}renderSelectField(){const e=this.getRenderProp("disabled"),{startAdornment:s,endAdornment:t}=l({icons:this.getRenderProp("icons")});return g(O,Object.assign({},this.getFormFieldProps({class:w("kol-form-field-select",{"kol-form-field--has-value":this.hasValue}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")}),{onClick:()=>{var e;return null===(e=this.ctaRef.el)||void 0===e?void 0:e.focus()}}),g(n,{disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:s,endAdornment:t},g(V,Object.assign({},this.getSelectProps()))))}};export{C as B,$ as s}
|
package/dist/components/base.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,
|
|
4
|
+
import{h as s}from"@stencil/core/internal/client";import{s as i,X as t}from"./bem-registry.js";import{B as a}from"./base-web-component.js";import{b as e,e as o,a as h,n as l,c as r,d as n,B as p}from"./component9.js";import{F as d}from"./behavior3.js";import{T as c}from"./behavior.js";import{a as m,b as y,c as b,f as u,g as f,h as v,s as j,i as x,l as A,d as C,t as I,e as B,v as g}from"./component3.js";import{d as D}from"./disabled.js";import{i as K}from"./id.js";import"./props-from-config.js";import{l as T}from"./label-with-expert-slot.js";import{v as S}from"./access-and-short-key.js";import{c as L}from"./element-interaction.js";import{d as w,K as F}from"./events.js";import{p as H,a as P}from"./controller.js";const E=class extends a{constructor(){super(...arguments),this.ctaRef=L(),this.propsConfig=e,this.tooltipBehavior=new c(this.stateAccess),this.handleClick=s=>{s.stopPropagation(),this.tooltipBehavior.hideTooltip();const t=this.getRenderProp("type");if("submit"===t)H({form:this.host});else if("reset"===t)P({form:this.host});else{this.formAssociation.setFormAssociatedValue(this.formValue);const t=this.getRenderProp("on").onClick;"function"==typeof t&&(i(s,this.ctaRef.el),t(s,this.formValue))}this.host&&w(this.host,F.click,this.formValue)},this.handleMouseDown=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onMouseDown)||void 0===t||t.call(i,s),this.host&&w(this.host,F.mousedown)},this.handleFocus=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onFocus)||void 0===t||t.call(i,s),this.host&&w(this.host,F.focus)},this.handleBlur=s=>{var i,t;null===(t=(i=this.getRenderProp("on")).onBlur)||void 0===t||t.call(i,s),this.host&&w(this.host,F.blur)}}initFormAssociation(){this.formAssociation=new d(a.stateLess,{host:this.host,type:"button"})}unsetButtonTabIndex(){this.unsetRenderProp("tabIndex")}initTooltipBehavior(){this.tooltipBehavior.componentWillLoad({label:this.getRenderProp("label"),align:this.getRenderProp("tooltipAlign")})}syncTooltipListeners(){this.ctaRef.el&&this.tooltipBehavior.syncListeners(void 0,this.ctaRef.el,!0)}destroyTooltipBehavior(){this.tooltipBehavior.destroy()}applyAccessKey(s,i){m.apply(s,(s=>this.setRenderProp("accessKey",s))),S(s,i)}applyAriaControls(s){y.apply(s,(s=>this.setRenderProp("ariaControls",s)))}applyAriaDescription(s){b.apply(s,(s=>this.setRenderProp("ariaDescription",s)))}applyAriaExpanded(s){u.apply(s,(s=>this.setRenderProp("ariaExpanded",s)))}applyAriaHasPopup(s){o.apply(s,(s=>this.setRenderProp("ariaHasPopup",s)))}applyAriaSelected(s){h.apply(s,(s=>this.setRenderProp("ariaSelected",s)))}applyCustomClass(s){f.apply(s,(s=>this.setRenderProp("customClass",s)))}applyDisabled(s){D.apply(s,(s=>this.setRenderProp("disabled",s)))}applyHideLabel(s){v.apply(s,(s=>this.setRenderProp("hideLabel",s)))}applyIcons(s){j.apply(s,(s=>this.setRenderProp("icons",s)))}applyId(s){K.apply(s,(s=>this.setRenderProp("id",s)))}applyInline(s){x.apply(s,(s=>this.setRenderProp("inline",s)))}applyLabel(s){T.apply(s,(s=>{this.setRenderProp("label",s),this.tooltipBehavior.watchLabel(s)}),this.isRequired("label"))}applyName(s){l.apply(s,(s=>this.setRenderProp("name",s))),this.formAssociation.watchName(s)}applyOn(s){r.apply(s,(s=>this.setRenderProp("on",s)))}applyRole(s){A.apply(s,(s=>this.setRenderProp("role",s)))}applyShortKey(s,i){C.apply(s,(s=>this.setRenderProp("shortKey",s))),S(i,s)}applySyncValueBySelector(s){this.formAssociation.watchSyncValueBySelector(s)}applyTabIndex(s){"number"==typeof s?I.apply(s,(s=>this.setRenderProp("tabIndex",s))):this.unsetRenderProp("tabIndex")}applyTooltipAlign(s){B.apply(null!=s?s:"top",(s=>{this.setRenderProp("tooltipAlign",s),this.tooltipBehavior.watchAlign(s)}))}applyType(s){n.apply(s,(s=>this.setRenderProp("type",s)))}applyValue(s){this.formValue=s,this.formAssociation.setFormAssociatedValue(s)}applyVariant(s){var i;g.apply(null!==(i=null!=s?s:t("buttonVariantDefault",this.host))&&void 0!==i?i:"normal",(s=>this.setRenderProp("variant",s)))}getButtonFCProps(){return{accessKey:this.getRenderProp("accessKey"),ariaControls:this.getRenderProp("ariaControls"),ariaDescription:this.getRenderProp("ariaDescription"),ariaDescriptionId:this.getState("ariaDescriptionId"),ariaExpanded:this.getRenderProp("ariaExpanded"),ariaHasPopup:this.getRenderProp("ariaHasPopup"),ariaSelected:this.getRenderProp("ariaSelected"),customClass:this.getRenderProp("customClass"),disabled:this.getRenderProp("disabled"),handleBlur:this.handleBlur,handleClick:this.handleClick,handleFocus:this.handleFocus,handleMouseDown:this.handleMouseDown,hideLabel:this.getRenderProp("hideLabel"),icons:this.getRenderProp("icons"),id:this.getRenderProp("id"),inline:this.getRenderProp("inline"),label:this.getRenderProp("label"),name:this.getRenderProp("name"),on:this.getRenderProp("on"),refButton:this.ctaRef,refTooltip:this.tooltipBehavior.setTooltipElementRef,role:this.getRenderProp("role"),shortKey:this.getRenderProp("shortKey"),tabIndex:this.getRenderProp("tabIndex"),tooltipAlign:this.getRenderProp("tooltipAlign"),type:this.getRenderProp("type"),variant:this.getRenderProp("variant")}}renderButtonFC(){return s(p,Object.assign({},this.getButtonFCProps()))}};export{E as B}
|
package/dist/components/base2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./component8.js";import"./bem-registry.js";import{l}from"./level.js";import{d as h,w as a}from"./width.js";import{
|
|
4
|
+
import{h as i}from"@stencil/core/internal/client";import{B as s}from"./base-web-component.js";import{r as t,C as o}from"./component8.js";import"./bem-registry.js";import{l}from"./level.js";import{d as h,w as a}from"./width.js";import{C as e,t as r}from"./props-from-config.js";import{l as n}from"./label-lang-segment.js";import{u as d,l as p,D as m,d as v}from"./scroll-lock.js";import{T as c}from"./behavior.js";import{c as u}from"./element-interaction.js";import{d as b,K as f}from"./events.js";import{h as g}from"./tooltip-open-tracking.js";const C={required:[n],optional:[h,l,e,a]},j=class extends s{constructor(){super(...arguments),this.dialogRef=u(),this.cardCloseButtonRef=u(),this.cardCloseTooltipBehavior=new c(this.stateAccess),this.propsConfig=C,this.handleCancel=i=>{var s,t;g(i),i.defaultPrevented||(null===(t=(s=this.getRenderProp("on")).onCancel)||void 0===t||t.call(s,i),i.defaultPrevented||this.host&&!b(this.host,f.cancel)&&i.preventDefault())},this.handleClose=i=>{var s,t,o,l;i.target===this.dialogRef.el&&(d(this),null===(t=(s=this.getRenderProp("on")).onClose)||void 0===t||t.call(s),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!1),this.host&&(b(this.host,f.close),b(this.host,f.toggle)))},this.handleCardClose=()=>{this.cardCloseTooltipBehavior.hideTooltip(),this.closeDialog(),this.host&&b(this.host,f.close)}}initCardCloseButton(){this.cardCloseButtonProps=t(this.host),this.cardCloseTooltipBehavior.componentWillLoad({label:this.cardCloseButtonProps.label,align:this.cardCloseButtonProps.tooltipAlign})}syncCardCloseTooltipListeners(){this.cardCloseButtonRef.el&&this.cardCloseTooltipBehavior.syncListeners(void 0,this.cardCloseButtonRef.el,!0)}teardownDialog(){this.closeDialog(),d(this),this.cardCloseTooltipBehavior.destroy()}applyLabel(i){n.apply(i,(i=>this.setRenderProp("label",i)),this.isRequired("label"))}applyLevel(i){l.apply(i,(i=>this.setRenderProp("level",i)))}applyOn(i){h.apply(i,(i=>this.setRenderProp("on",i)))}applyVariant(i){e.apply(i,(i=>this.setRenderProp("variant",i)))}applyWidth(i){a.apply(i,(i=>this.setRenderProp("width",i)))}showDialog(i){var s,t,o,l;const h=this.dialogRef.el;(null==h?void 0:h.open)||(this.setState("modal",i),i?(null===(s=null==h?void 0:h.showModal)||void 0===s||s.call(h),h&&p(this)):null===(t=null==h?void 0:h.show)||void 0===t||t.call(h),null===(l=(o=this.getRenderProp("on")).onToggle)||void 0===l||l.call(o,!0),this.host&&b(this.host,f.toggle))}closeDialog(){var i,s;null===(s=null===(i=this.dialogRef.el)||void 0===i?void 0:i.close)||void 0===s||s.call(i)}buildCardProps(){return{ariaDescriptionId:this.getState("ariaDescriptionId"),closeButtonProps:this.cardCloseButtonProps,handleClose:this.handleCardClose,hasCloser:!0,headingId:this.getState("headingId"),label:this.getRenderProp("label"),level:this.getRenderProp("level"),refCloseButton:this.cardCloseButtonRef,refTooltip:this.cardCloseTooltipBehavior.setTooltipElementRef}}renderDialogFC(){const s=this.getRenderProp("variant"),t="card"===s;return i(m,{blockClass:v(s),handleCancel:this.handleCancel,handleClose:this.handleClose,label:r(this.getRenderProp("label")),labelledBy:t?this.getState("headingId"):void 0,modal:this.getState("modal"),refDialog:this.dialogRef,width:this.getRenderProp("width")},t?i(o,Object.assign({},this.buildCardProps()),this.renderSlot()):this.renderSlot())}};export{j as B}
|