@public-ui/sample-react 3.0.8-rc.1 → 3.0.8-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/dist/assets/Alert-_tq2FoQ5-C1jHNIsn.js +2 -0
- package/dist/assets/{Alert-B3jx2jlL-CpK4XYwv.js.map → Alert-_tq2FoQ5-C1jHNIsn.js.map} +1 -1
- package/dist/assets/Collapsible-CDwlCzFc-BJkAAwIm.js +2 -0
- package/dist/assets/{Collapsible-DOnIFY33-C7y7f3JI.js.map → Collapsible-CDwlCzFc-BJkAAwIm.js.map} +1 -1
- package/dist/assets/CustomSuggestionsOptionsGroup-tYcs0PjI-CsqAr_N-.js +2 -0
- package/dist/assets/{CustomSuggestionsOptionsGroup-BiywiWxx-DQ9nE4it.js.map → CustomSuggestionsOptionsGroup-tYcs0PjI-CsqAr_N-.js.map} +1 -1
- package/dist/assets/FieldControlStateWrapper-DPS47DdW-DKvRNw11.js +2 -0
- package/dist/assets/{FieldControlStateWrapper-oMcmUdOF-B8QKONc0.js.map → FieldControlStateWrapper-DPS47DdW-DKvRNw11.js.map} +1 -1
- package/dist/assets/FormFieldStateWrapper-CXX3L-J--DRs0eOw7.js +2 -0
- package/dist/assets/{FormFieldStateWrapper-BBrHIwy9-BzgygwAM.js.map → FormFieldStateWrapper-CXX3L-J--DRs0eOw7.js.map} +1 -1
- package/dist/assets/Heading-ClMNjISM-CgG5k5qN.js +2 -0
- package/dist/assets/{Heading-DqUSmJEO-DIKZMp_1.js.map → Heading-ClMNjISM-CgG5k5qN.js.map} +1 -1
- package/dist/assets/Icon-DbAAa0Pk-Bzk6m_XY.js +2 -0
- package/dist/assets/Icon-DbAAa0Pk-Bzk6m_XY.js.map +1 -0
- package/dist/assets/Input-BeGyOfuS-DWLh7l-3.js +2 -0
- package/dist/assets/{Input-D-UExd4D-B4jTCA4a.js.map → Input-BeGyOfuS-DWLh7l-3.js.map} +1 -1
- package/dist/assets/InputStateWrapper-DhEnE4BK-DtYr-2kk.js +2 -0
- package/dist/assets/{InputStateWrapper-WDItQP2r-V63Dodsk.js.map → InputStateWrapper-DhEnE4BK-DtYr-2kk.js.map} +1 -1
- package/dist/assets/InternalUnderlinedBadgeText-DoYMr6GR-BA3snmms.js +2 -0
- package/dist/assets/{InternalUnderlinedBadgeText-CodJXcQG-DfoTu4tD.js.map → InternalUnderlinedBadgeText-DoYMr6GR-BA3snmms.js.map} +1 -1
- package/dist/assets/Span-B8GtyhT--Udo4oazi.js +2 -0
- package/dist/assets/{Span-BUH9xZLf-DN5AV_nd.js.map → Span-B8GtyhT--Udo4oazi.js.map} +1 -1
- package/dist/assets/access-and-short-key-B37XLwy2-De__J-zl.js +2 -0
- package/dist/assets/{access-and-short-key-B37XLwy2-BYe6swmD.js.map → access-and-short-key-B37XLwy2-De__J-zl.js.map} +1 -1
- package/dist/assets/align-D-ifSKu8-m7uQ8kL7.js +2 -0
- package/dist/assets/{align-D-ifSKu8-CvAiOM-B.js.map → align-D-ifSKu8-m7uQ8kL7.js.map} +1 -1
- package/dist/assets/align-floating-elements-BkpeqvtE-CcAAx6MR.js +2 -0
- package/dist/assets/{align-floating-elements-BkpeqvtE-BcmMSXRr.js.map → align-floating-elements-BkpeqvtE-CcAAx6MR.js.map} +1 -1
- package/dist/assets/associated.controller-ByY2WiIp-CjYpfkJI.js +2 -0
- package/dist/assets/{associated.controller-ByY2WiIp-DV7ybZcT.js.map → associated.controller-ByY2WiIp-CjYpfkJI.js.map} +1 -1
- package/dist/assets/auto-complete-mCkUnxg2-BGSYdXqz.js +2 -0
- package/dist/assets/{auto-complete-mCkUnxg2-BDdjwEw7.js.map → auto-complete-mCkUnxg2-BGSYdXqz.js.map} +1 -1
- package/dist/assets/clsx-eK3rPvPS-B-dksMZM.js +2 -0
- package/dist/assets/clsx-eK3rPvPS-B-dksMZM.js.map +1 -0
- package/dist/assets/color-BOIEtqEM-RWCxOMKL.js +2 -0
- package/dist/assets/{color-BOIEtqEM-BTQ7xdfG.js.map → color-BOIEtqEM-RWCxOMKL.js.map} +1 -1
- package/dist/assets/controller-C5Ill7ej-DE5g-KDp.js +2 -0
- package/dist/assets/{controller-C5Ill7ej-DzyV3_0t.js.map → controller-C5Ill7ej-DE5g-KDp.js.map} +1 -1
- package/dist/assets/controller-Cxj0GMIA-PVv4YdX9.js +2 -0
- package/dist/assets/{controller-CzLzXDtQ-Ckhaz-yw.js.map → controller-Cxj0GMIA-PVv4YdX9.js.map} +1 -1
- package/dist/assets/controller-DdswdfgO-DW0S6gXk.js +2 -0
- package/dist/assets/{controller-CBNM6BpO-CC9nU4-9.js.map → controller-DdswdfgO-DW0S6gXk.js.map} +1 -1
- package/dist/assets/controller-icon-DIQMFP0b-C_n_kwj4.js +2 -0
- package/dist/assets/{controller-icon-DNLRSXZr-CPxyQcqV.js.map → controller-icon-DIQMFP0b-C_n_kwj4.js.map} +1 -1
- package/dist/assets/controller-xTkXmOlE-CCwLeoT0.js +2 -0
- package/dist/assets/{controller-BPnEmeBr-DUhUWQOB.js.map → controller-xTkXmOlE-CCwLeoT0.js.map} +1 -1
- package/dist/assets/custom-class-nuoQ9Aml-CTIH156Q.js +2 -0
- package/dist/assets/{custom-class-nuoQ9Aml-DnnJ0Vrm.js.map → custom-class-nuoQ9Aml-CTIH156Q.js.map} +1 -1
- package/dist/assets/{dev.utils-BB49mRnl-Coh5w7FN.js → dev.utils-Cn_6kyQ0-n4725Gnv.js} +2 -4
- package/dist/assets/{dev.utils-BB49mRnl-Coh5w7FN.js.map → dev.utils-Cn_6kyQ0-n4725Gnv.js.map} +1 -1
- package/dist/assets/devtools-COtKdu8_-DWZP7Jpv.js +14 -0
- package/dist/assets/{devtools-6yxauOZx-DX8inEpv.js.map → devtools-COtKdu8_-DWZP7Jpv.js.map} +1 -1
- package/dist/assets/disabled-BhpAFgSp-Bd8kdBI3.js +2 -0
- package/dist/assets/{disabled-BhpAFgSp-yj0pxqYS.js.map → disabled-BhpAFgSp-Bd8kdBI3.js.map} +1 -1
- package/dist/assets/has-closer-CQzjaTkv-sN6_yR5U.js +2 -0
- package/dist/assets/{has-closer-CQzjaTkv-C3fdmgwq.js.map → has-closer-CQzjaTkv-sN6_yR5U.js.map} +1 -1
- package/dist/assets/hide-label-B9FhGrWP-Bvjly7dM.js +2 -0
- package/dist/assets/{hide-label-B9FhGrWP-BJriMB-z.js.map → hide-label-B9FhGrWP-Bvjly7dM.js.map} +1 -1
- package/dist/assets/href-rwDd36rS-SKQVKuzD.js +2 -0
- package/dist/assets/{href-rwDd36rS-6LXs-tS-.js.map → href-rwDd36rS-SKQVKuzD.js.map} +1 -1
- package/dist/assets/i18n-C5ifExT3-DAcY3F-T.js +2 -0
- package/dist/assets/{i18n-C5ifExT3-Bgs4IVwr.js.map → i18n-C5ifExT3-DAcY3F-T.js.map} +1 -1
- package/dist/assets/icons-B5i9zwjJ-DHsM9jX2.js +2 -0
- package/dist/assets/{icons-B5i9zwjJ-Cl1klTta.js.map → icons-B5i9zwjJ-DHsM9jX2.js.map} +1 -1
- package/dist/assets/image-source-BfBEJ0rX-CgjwcmPn.js +2 -0
- package/dist/assets/{image-source-BfBEJ0rX-ZCtqKxfP.js.map → image-source-BfBEJ0rX-CgjwcmPn.js.map} +1 -1
- package/dist/assets/{index-eI_RdheT.js → index-BuTEZuln.js} +195 -280
- package/dist/assets/index-BuTEZuln.js.map +1 -0
- package/dist/assets/isObject-DvSELytj-DhzEQer1.js +2 -0
- package/dist/assets/{isObject-DvSELytj-B0RigBxT.js.map → isObject-DvSELytj-DhzEQer1.js.map} +1 -1
- package/dist/assets/keyboard-D6PoWr38-BGYQJqo4.js +2 -0
- package/dist/assets/{keyboard-D6PoWr38-Bn_Qh8Bq.js.map → keyboard-D6PoWr38-BGYQJqo4.js.map} +1 -1
- package/dist/assets/{kol-abbr.entry-BXGdym2u.js → kol-abbr.entry-Ca98NmwE.js} +2 -4
- package/dist/assets/{kol-abbr.entry-BXGdym2u.js.map → kol-abbr.entry-Ca98NmwE.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-C2fyzA5x.js → kol-accordion.entry-CVj1ttdc.js} +22 -19
- package/dist/assets/kol-accordion.entry-CVj1ttdc.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-DKWmTbsy.js +2 -0
- package/dist/assets/{kol-alert-wc.entry-CVSKyNvN.js.map → kol-alert-wc.entry-DKWmTbsy.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-tGSQAb_G.js → kol-alert.entry-Dd8hC8Eo.js} +2 -4
- package/dist/assets/{kol-alert.entry-tGSQAb_G.js.map → kol-alert.entry-Dd8hC8Eo.js.map} +1 -1
- package/dist/assets/kol-avatar-wc.entry-BMzt_h0u.js +2 -0
- package/dist/assets/{kol-avatar-wc.entry-kdfwoLDo.js.map → kol-avatar-wc.entry-BMzt_h0u.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-CICDuG1z.js → kol-avatar.entry-BLxTJQeK.js} +2 -4
- package/dist/assets/{kol-avatar.entry-CICDuG1z.js.map → kol-avatar.entry-BLxTJQeK.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-Ixg7qkjb.js → kol-badge.entry-tgnBfo7R.js} +2 -4
- package/dist/assets/{kol-badge.entry-Ixg7qkjb.js.map → kol-badge.entry-tgnBfo7R.js.map} +1 -1
- package/dist/assets/{kol-breadcrumb.entry-CDt91QTM.js → kol-breadcrumb.entry-BddiExwe.js} +5 -7
- package/dist/assets/{kol-breadcrumb.entry-CDt91QTM.js.map → kol-breadcrumb.entry-BddiExwe.js.map} +1 -1
- package/dist/assets/{kol-button-link.entry-DkRSFtAa.js → kol-button-link.entry-DEK1d0qR.js} +5 -7
- package/dist/assets/{kol-button-link.entry-DkRSFtAa.js.map → kol-button-link.entry-DEK1d0qR.js.map} +1 -1
- package/dist/assets/kol-button-wc.entry-C8yV6jGM.js +2 -0
- package/dist/assets/kol-button-wc.entry-C8yV6jGM.js.map +1 -0
- package/dist/assets/{kol-button.entry-e9CnmeIX.js → kol-button.entry-qE0k3ZTb.js} +2 -4
- package/dist/assets/{kol-button.entry-e9CnmeIX.js.map → kol-button.entry-qE0k3ZTb.js.map} +1 -1
- package/dist/assets/kol-card-wc.entry-C-z4BIVN.js +2 -0
- package/dist/assets/{kol-card-wc.entry-C9CAN65K.js.map → kol-card-wc.entry-C-z4BIVN.js.map} +1 -1
- package/dist/assets/{kol-card.entry-GoVFQkQV.js → kol-card.entry-B2kwvfXi.js} +2 -4
- package/dist/assets/{kol-card.entry-GoVFQkQV.js.map → kol-card.entry-B2kwvfXi.js.map} +1 -1
- package/dist/assets/{kol-combobox.entry-dS2OMUOQ.js → kol-combobox.entry-Ze0RcIoZ.js} +2 -4
- package/dist/assets/{kol-combobox.entry-dS2OMUOQ.js.map → kol-combobox.entry-Ze0RcIoZ.js.map} +1 -1
- package/dist/assets/{kol-details.entry-DDxZwwkB.js → kol-details.entry-J9bgzUpd.js} +22 -19
- package/dist/assets/kol-details.entry-J9bgzUpd.js.map +1 -0
- package/dist/assets/{kol-drawer.entry-D22uOyvh.js → kol-drawer.entry-DxZK9jjV.js} +2 -4
- package/dist/assets/{kol-drawer.entry-D22uOyvh.js.map → kol-drawer.entry-DxZK9jjV.js.map} +1 -1
- package/dist/assets/{kol-form.entry-BuZzGEhw.js → kol-form.entry-ri3O2a-x.js} +5 -7
- package/dist/assets/{kol-form.entry-BuZzGEhw.js.map → kol-form.entry-ri3O2a-x.js.map} +1 -1
- package/dist/assets/{kol-heading.entry-sj3MaX_s.js → kol-heading.entry-DMHhD9v6.js} +2 -4
- package/dist/assets/{kol-heading.entry-sj3MaX_s.js.map → kol-heading.entry-DMHhD9v6.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-jQCkrbaD.js → kol-icon.entry-CTApNM6n.js} +2 -4
- package/dist/assets/{kol-icon.entry-jQCkrbaD.js.map → kol-icon.entry-CTApNM6n.js.map} +1 -1
- package/dist/assets/{kol-image.entry-doEhTiMG.js → kol-image.entry-B_QL-YCn.js} +2 -4
- package/dist/assets/{kol-image.entry-doEhTiMG.js.map → kol-image.entry-B_QL-YCn.js.map} +1 -1
- package/dist/assets/{kol-input-checkbox.entry-Y1JBufAY.js → kol-input-checkbox.entry-BsatM7mL.js} +2 -4
- package/dist/assets/{kol-input-checkbox.entry-Y1JBufAY.js.map → kol-input-checkbox.entry-BsatM7mL.js.map} +1 -1
- package/dist/assets/{kol-input-color.entry-B72OUO18.js → kol-input-color.entry-xmUhxMU2.js} +2 -4
- package/dist/assets/{kol-input-color.entry-B72OUO18.js.map → kol-input-color.entry-xmUhxMU2.js.map} +1 -1
- package/dist/assets/{kol-input-date.entry-Dud9ibG4.js → kol-input-date.entry-Dw0xWCQQ.js} +2 -4
- package/dist/assets/{kol-input-date.entry-Dud9ibG4.js.map → kol-input-date.entry-Dw0xWCQQ.js.map} +1 -1
- package/dist/assets/{kol-input-email.entry-Cg16-JbU.js → kol-input-email.entry-BGNAeaQS.js} +2 -4
- package/dist/assets/{kol-input-email.entry-Cg16-JbU.js.map → kol-input-email.entry-BGNAeaQS.js.map} +1 -1
- package/dist/assets/{kol-input-file.entry-BsaenVFA.js → kol-input-file.entry-DeWIxtal.js} +2 -4
- package/dist/assets/{kol-input-file.entry-BsaenVFA.js.map → kol-input-file.entry-DeWIxtal.js.map} +1 -1
- package/dist/assets/{kol-input-number.entry-wVs1Iriw.js → kol-input-number.entry-DiDWqAVo.js} +2 -4
- package/dist/assets/{kol-input-number.entry-wVs1Iriw.js.map → kol-input-number.entry-DiDWqAVo.js.map} +1 -1
- package/dist/assets/{kol-input-password.entry-KbGjSbcz.js → kol-input-password.entry-CpUEHo7Z.js} +2 -4
- package/dist/assets/{kol-input-password.entry-KbGjSbcz.js.map → kol-input-password.entry-CpUEHo7Z.js.map} +1 -1
- package/dist/assets/{kol-input-radio.entry-BMEa_V-t.js → kol-input-radio.entry-jw_C092O.js} +2 -4
- package/dist/assets/{kol-input-radio.entry-BMEa_V-t.js.map → kol-input-radio.entry-jw_C092O.js.map} +1 -1
- package/dist/assets/{kol-input-range.entry-BVPQ1sGe.js → kol-input-range.entry-Cl-5Hp_h.js} +8 -10
- package/dist/assets/{kol-input-range.entry-BVPQ1sGe.js.map → kol-input-range.entry-Cl-5Hp_h.js.map} +1 -1
- package/dist/assets/{kol-input-text.entry-CX1fABJx.js → kol-input-text.entry-DnIDHhSG.js} +2 -4
- package/dist/assets/{kol-input-text.entry-CX1fABJx.js.map → kol-input-text.entry-DnIDHhSG.js.map} +1 -1
- package/dist/assets/{kol-kolibri.entry-fGqZCcLu.js → kol-kolibri.entry-DoCsfU3f.js} +2 -4
- package/dist/assets/{kol-kolibri.entry-fGqZCcLu.js.map → kol-kolibri.entry-DoCsfU3f.js.map} +1 -1
- package/dist/assets/{kol-link-button.entry-C45vYSWD.js → kol-link-button.entry-6eYTrbuk.js} +2 -4
- package/dist/assets/{kol-link-button.entry-C45vYSWD.js.map → kol-link-button.entry-6eYTrbuk.js.map} +1 -1
- package/dist/assets/kol-link-wc.entry-D_hKlnQV.js +2 -0
- package/dist/assets/kol-link-wc.entry-D_hKlnQV.js.map +1 -0
- package/dist/assets/{kol-link.entry-8uY8Q-03.js → kol-link.entry-CWLDaaZy.js} +5 -7
- package/dist/assets/{kol-link.entry-8uY8Q-03.js.map → kol-link.entry-CWLDaaZy.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-CSqFk2st.js → kol-modal.entry-DGNz310R.js} +2 -4
- package/dist/assets/{kol-modal.entry-CSqFk2st.js.map → kol-modal.entry-DGNz310R.js.map} +1 -1
- package/dist/assets/{kol-nav.entry-0WLu000b.js → kol-nav.entry-BZmSt3QT.js} +2 -4
- package/dist/assets/{kol-nav.entry-0WLu000b.js.map → kol-nav.entry-BZmSt3QT.js.map} +1 -1
- package/dist/assets/kol-pagination-wc.entry-BY6DxY8v.js +2 -0
- package/dist/assets/{kol-pagination-wc.entry-CORQhAn3.js.map → kol-pagination-wc.entry-BY6DxY8v.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-BOqPOK-6.js → kol-pagination.entry-BHzSat7I.js} +2 -4
- package/dist/assets/{kol-pagination.entry-BOqPOK-6.js.map → kol-pagination.entry-BHzSat7I.js.map} +1 -1
- package/dist/assets/kol-popover-button-wc.entry-CnHcr7iG.js +2 -0
- package/dist/assets/kol-popover-button-wc.entry-CnHcr7iG.js.map +1 -0
- package/dist/assets/{kol-popover-button.entry-BHKt94om.js → kol-popover-button.entry-SITr22dj.js} +2 -4
- package/dist/assets/{kol-popover-button.entry-BHKt94om.js.map → kol-popover-button.entry-SITr22dj.js.map} +1 -1
- package/dist/assets/kol-popover-wc.entry-Df2oV0iS.js +2 -0
- package/dist/assets/kol-popover-wc.entry-Df2oV0iS.js.map +1 -0
- package/dist/assets/{kol-progress.entry-CKX3Wl53.js → kol-progress.entry-Dqn91hGj.js} +2 -4
- package/dist/assets/{kol-progress.entry-CKX3Wl53.js.map → kol-progress.entry-Dqn91hGj.js.map} +1 -1
- package/dist/assets/{kol-quote.entry-cYDQlLm8.js → kol-quote.entry-CPhsXysu.js} +5 -7
- package/dist/assets/{kol-quote.entry-cYDQlLm8.js.map → kol-quote.entry-CPhsXysu.js.map} +1 -1
- package/dist/assets/{kol-select.entry-D_fqI1Z4.js → kol-select.entry-CJltHYsb.js} +5 -5
- package/dist/assets/{kol-select.entry-D_fqI1Z4.js.map → kol-select.entry-CJltHYsb.js.map} +1 -1
- package/dist/assets/{kol-single-select.entry-B90IwfJq.js → kol-single-select.entry-DW7ztTLW.js} +2 -4
- package/dist/assets/{kol-single-select.entry-B90IwfJq.js.map → kol-single-select.entry-DW7ztTLW.js.map} +1 -1
- package/dist/assets/{kol-skip-nav.entry-CAJQR6s2.js → kol-skip-nav.entry-BCOwBz1G.js} +2 -4
- package/dist/assets/{kol-skip-nav.entry-CAJQR6s2.js.map → kol-skip-nav.entry-BCOwBz1G.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-B7fLQZhB.js → kol-spin.entry-CEmCFF7S.js} +2 -4
- package/dist/assets/{kol-spin.entry-B7fLQZhB.js.map → kol-spin.entry-CEmCFF7S.js.map} +1 -1
- package/dist/assets/{kol-split-button.entry-DKsfV8AQ.js → kol-split-button.entry-Ctd5jyPI.js} +2 -4
- package/dist/assets/{kol-split-button.entry-DKsfV8AQ.js.map → kol-split-button.entry-Ctd5jyPI.js.map} +1 -1
- package/dist/assets/kol-table-settings-wc.entry-B2ZwmPGq.js +2 -0
- package/dist/assets/kol-table-settings-wc.entry-B2ZwmPGq.js.map +1 -0
- package/dist/assets/{kol-table-stateful.entry-B3qans91.js → kol-table-stateful.entry-Ba9uSrz6.js} +10 -12
- package/dist/assets/kol-table-stateful.entry-Ba9uSrz6.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-CGXysMVA.js +2 -0
- package/dist/assets/kol-table-stateless-wc.entry-CGXysMVA.js.map +1 -0
- package/dist/assets/{kol-table-stateless.entry-DBshRF30.js → kol-table-stateless.entry-YhaMnp4B.js} +9 -11
- package/dist/assets/{kol-table-stateless.entry-DBshRF30.js.map → kol-table-stateless.entry-YhaMnp4B.js.map} +1 -1
- package/dist/assets/{kol-tabs.entry-B152mWmM.js → kol-tabs.entry-mE5SZu3Q.js} +2 -4
- package/dist/assets/{kol-tabs.entry-B152mWmM.js.map → kol-tabs.entry-mE5SZu3Q.js.map} +1 -1
- package/dist/assets/{kol-textarea.entry-IHBB0d0G.js → kol-textarea.entry-DE_zhgxC.js} +2 -4
- package/dist/assets/{kol-textarea.entry-IHBB0d0G.js.map → kol-textarea.entry-DE_zhgxC.js.map} +1 -1
- package/dist/assets/{kol-toast-container.entry-DYMMpfht.js → kol-toast-container.entry-CGD7xhUg.js} +2 -4
- package/dist/assets/{kol-toast-container.entry-DYMMpfht.js.map → kol-toast-container.entry-CGD7xhUg.js.map} +1 -1
- package/dist/assets/{kol-toolbar.entry-C-tuRWz4.js → kol-toolbar.entry-DznY3MjX.js} +2 -4
- package/dist/assets/{kol-toolbar.entry-C-tuRWz4.js.map → kol-toolbar.entry-DznY3MjX.js.map} +1 -1
- package/dist/assets/kol-tooltip-wc.entry-DRyimBL1.js +2 -0
- package/dist/assets/kol-tooltip-wc.entry-DRyimBL1.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-CoMmy4ch.js +2 -0
- package/dist/assets/{kol-tree-item-wc.entry-DF1UVCR9.js.map → kol-tree-item-wc.entry-CoMmy4ch.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-CrtqSunZ.js → kol-tree-item.entry-C1Cvugxa.js} +2 -4
- package/dist/assets/{kol-tree-item.entry-CrtqSunZ.js.map → kol-tree-item.entry-C1Cvugxa.js.map} +1 -1
- package/dist/assets/kol-tree-wc.entry-DvWb2Cnp.js +2 -0
- package/dist/assets/{kol-tree-wc.entry-W78R5mQZ.js.map → kol-tree-wc.entry-DvWb2Cnp.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-BQ54UK_P.js → kol-tree.entry-DPeZpWkp.js} +2 -4
- package/dist/assets/{kol-tree.entry-BQ54UK_P.js.map → kol-tree.entry-DPeZpWkp.js.map} +1 -1
- package/dist/assets/{kol-version.entry-CZSJ5tK4.js → kol-version.entry-DFhhtCxD.js} +2 -4
- package/dist/assets/{kol-version.entry-CZSJ5tK4.js.map → kol-version.entry-DFhhtCxD.js.map} +1 -1
- package/dist/assets/label-Dnmzb2S_-BK9SA9Jq.js +2 -0
- package/dist/assets/{label-Dnmzb2S_-C6oOQMoX.js.map → label-Dnmzb2S_-BK9SA9Jq.js.map} +1 -1
- package/dist/assets/link-variant-DQEKOyAU-ty-Pag5O.js +2 -0
- package/dist/assets/{link-variant-DQEKOyAU-CimbCc47.js.map → link-variant-DQEKOyAU-ty-Pag5O.js.map} +1 -1
- package/dist/assets/{markdown-BSkXjaSn-BUAa9WIw.js → markdown-BSkXjaSn-BHK7SX3w.js} +9 -11
- package/dist/assets/{markdown-BSkXjaSn-BUAa9WIw.js.map → markdown-BSkXjaSn-BHK7SX3w.js.map} +1 -1
- package/dist/assets/max-length-behavior-nTw1Zuyf-CI04vACS.js +2 -0
- package/dist/assets/{max-length-behavior-nTw1Zuyf-bF2paNt-.js.map → max-length-behavior-nTw1Zuyf-CI04vACS.js.map} +1 -1
- package/dist/assets/multiple-Cj3JQafH-Ze4jmwWo.js +2 -0
- package/dist/assets/{multiple-Cj3JQafH-Czk0lM_M.js.map → multiple-Cj3JQafH-Ze4jmwWo.js.map} +1 -1
- package/dist/assets/open-CbvHO4XG-DAegQoyg.js +2 -0
- package/dist/assets/{open-CbvHO4XG-DePuJaK7.js.map → open-CbvHO4XG-DAegQoyg.js.map} +1 -1
- package/dist/assets/orientation-eCMt8CD1-BhRcIajB.js +2 -0
- package/dist/assets/{orientation-eCMt8CD1-Cxl5Veb6.js.map → orientation-eCMt8CD1-BhRcIajB.js.map} +1 -1
- package/dist/assets/placeholder-BVhy3BzI-BP7N1w_Y.js +2 -0
- package/dist/assets/{placeholder-BVhy3BzI-Bat_cmDW.js.map → placeholder-BVhy3BzI-BP7N1w_Y.js.map} +1 -1
- package/dist/assets/read-only-BetTuumR-ihKif8dG.js +2 -0
- package/dist/assets/{read-only-BetTuumR-DcIqbAM5.js.map → read-only-BetTuumR-ihKif8dG.js.map} +1 -1
- package/dist/assets/required-CnTTpFCN-B2iPaQx3.js +2 -0
- package/dist/assets/{required-CnTTpFCN-BhidbL6i.js.map → required-CnTTpFCN-B2iPaQx3.js.map} +1 -1
- package/dist/assets/reuse-CX4AQDkS-BaVSFETn.js +2 -0
- package/dist/assets/{reuse-CX4AQDkS-Cyh-fyjG.js.map → reuse-CX4AQDkS-BaVSFETn.js.map} +1 -1
- package/dist/assets/rows-DtS-0sp9-B-8AOHgP.js +2 -0
- package/dist/assets/{rows-DtS-0sp9-DSXcPgoI.js.map → rows-DtS-0sp9-B-8AOHgP.js.map} +1 -1
- package/dist/assets/show-DdPK3aM7-BpdV4dND.js +2 -0
- package/dist/assets/{show-DdPK3aM7-CNZWML3e.js.map → show-DdPK3aM7-BpdV4dND.js.map} +1 -1
- package/dist/assets/spell-check-B9ot-4t--BD_RlJla.js +2 -0
- package/dist/assets/{spell-check-B9ot-4t--DmfTTBH_.js.map → spell-check-B9ot-4t--BD_RlJla.js.map} +1 -1
- package/dist/assets/suggestions-B-jLvT4L-reYC-zny.js +2 -0
- package/dist/assets/{suggestions-B-jLvT4L-efz5Sf5P.js.map → suggestions-B-jLvT4L-reYC-zny.js.map} +1 -1
- package/dist/assets/table-settings-DxLvhwRE-CqJUqP24.js +2 -0
- package/dist/assets/{table-settings-DxLvhwRE-Dtwj2TBP.js.map → table-settings-DxLvhwRE-CqJUqP24.js.map} +1 -1
- package/dist/assets/test-component.entry-D48GYwxH.js +2 -0
- package/dist/assets/{test-component.entry-eM1a6VNV.js.map → test-component.entry-D48GYwxH.js.map} +1 -1
- package/dist/assets/tooltip-align-Cnin7S26-BEYuObSl.js +2 -0
- package/dist/assets/{tooltip-align-Cnin7S26-AW7yAE8m.js.map → tooltip-align-Cnin7S26-BEYuObSl.js.map} +1 -1
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js +2 -0
- package/dist/assets/{tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js.map → tooltip-open-tracking-rBbBgPWP-DRkgcff2.js.map} +1 -1
- package/dist/assets/tslib.es6-CxX45GIN-BGVaTf34.js +2 -0
- package/dist/assets/{tslib.es6-CxX45GIN-BAJoBDh7.js.map → tslib.es6-CxX45GIN-BGVaTf34.js.map} +1 -1
- package/dist/assets/unique-nav-labels-CrfmPC99-1FskP638.js +2 -0
- package/dist/assets/{unique-nav-labels-CrfmPC99-CmHtQQWJ.js.map → unique-nav-labels-CrfmPC99-1FskP638.js.map} +1 -1
- package/dist/assets/validation-BfjI5un_-CCNoZkKk.js +2 -0
- package/dist/assets/{validation-BfjI5un_-DyOefHOM.js.map → validation-BfjI5un_-CCNoZkKk.js.map} +1 -1
- package/dist/assets/validation-aqgnZOL6-D_UnhLX9.js +2 -0
- package/dist/assets/{validation-aqgnZOL6-CiuUkt-y.js.map → validation-aqgnZOL6-D_UnhLX9.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +24 -26
- package/src/components/accordion/basic.tsx +9 -5
- package/src/components/button/icons.tsx +0 -1
- package/src/components/input-number/number-formatter.tsx +156 -7
- package/src/components/input-text/text-formatter.tsx +129 -102
- package/src/components/table/predefined-settings.tsx +3 -3
- package/src/components/table/routes.ts +2 -0
- package/src/components/table/settings-column-options.tsx +58 -0
- package/src/components/table/stateless-with-settings-menu.tsx +58 -6
- package/src/scenarios/appointment-form/AppointmentForm.tsx +115 -97
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +83 -75
- package/src/scenarios/appointment-form/DistrictForm.tsx +49 -49
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +110 -144
- package/src/scenarios/appointment-form/Summary.tsx +11 -10
- package/src/scenarios/appointment-form/formUtils.ts +26 -7
- package/src/scenarios/sample-form-with-validation.tsx +37 -69
- package/dist/assets/Alert-B3jx2jlL-CpK4XYwv.js +0 -4
- package/dist/assets/Collapsible-DOnIFY33-C7y7f3JI.js +0 -4
- package/dist/assets/CustomSuggestionsOptionsGroup-BiywiWxx-DQ9nE4it.js +0 -4
- package/dist/assets/FieldControlStateWrapper-oMcmUdOF-B8QKONc0.js +0 -4
- package/dist/assets/FormFieldStateWrapper-BBrHIwy9-BzgygwAM.js +0 -4
- package/dist/assets/Heading-DqUSmJEO-DIKZMp_1.js +0 -4
- package/dist/assets/Icon-B-YLFbev-CY5SUbVp.js +0 -4
- package/dist/assets/Icon-B-YLFbev-CY5SUbVp.js.map +0 -1
- package/dist/assets/Input-D-UExd4D-B4jTCA4a.js +0 -4
- package/dist/assets/InputStateWrapper-WDItQP2r-V63Dodsk.js +0 -4
- package/dist/assets/InternalUnderlinedBadgeText-CodJXcQG-DfoTu4tD.js +0 -4
- package/dist/assets/Span-BUH9xZLf-DN5AV_nd.js +0 -4
- package/dist/assets/access-and-short-key-B37XLwy2-BYe6swmD.js +0 -4
- package/dist/assets/align-D-ifSKu8-CvAiOM-B.js +0 -4
- package/dist/assets/align-floating-elements-BkpeqvtE-BcmMSXRr.js +0 -4
- package/dist/assets/associated.controller-ByY2WiIp-DV7ybZcT.js +0 -4
- package/dist/assets/auto-complete-mCkUnxg2-BDdjwEw7.js +0 -4
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js +0 -4
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js.map +0 -1
- package/dist/assets/color-BOIEtqEM-BTQ7xdfG.js +0 -4
- package/dist/assets/controller-BPnEmeBr-DUhUWQOB.js +0 -4
- package/dist/assets/controller-C5Ill7ej-DzyV3_0t.js +0 -4
- package/dist/assets/controller-CBNM6BpO-CC9nU4-9.js +0 -4
- package/dist/assets/controller-CzLzXDtQ-Ckhaz-yw.js +0 -4
- package/dist/assets/controller-icon-DNLRSXZr-CPxyQcqV.js +0 -4
- package/dist/assets/custom-class-nuoQ9Aml-DnnJ0Vrm.js +0 -4
- package/dist/assets/devtools-6yxauOZx-DX8inEpv.js +0 -16
- package/dist/assets/disabled-BhpAFgSp-yj0pxqYS.js +0 -4
- package/dist/assets/has-closer-CQzjaTkv-C3fdmgwq.js +0 -4
- package/dist/assets/hide-label-B9FhGrWP-BJriMB-z.js +0 -4
- package/dist/assets/href-rwDd36rS-6LXs-tS-.js +0 -4
- package/dist/assets/i18n-C5ifExT3-Bgs4IVwr.js +0 -4
- package/dist/assets/icons-B5i9zwjJ-Cl1klTta.js +0 -4
- package/dist/assets/image-source-BfBEJ0rX-ZCtqKxfP.js +0 -4
- package/dist/assets/index-eI_RdheT.js.map +0 -1
- package/dist/assets/isObject-DvSELytj-B0RigBxT.js +0 -4
- package/dist/assets/keyboard-D6PoWr38-Bn_Qh8Bq.js +0 -4
- package/dist/assets/kol-accordion.entry-C2fyzA5x.js.map +0 -1
- package/dist/assets/kol-alert-wc.entry-CVSKyNvN.js +0 -4
- package/dist/assets/kol-avatar-wc.entry-kdfwoLDo.js +0 -4
- package/dist/assets/kol-button-wc.entry-C-WJFnRY.js +0 -4
- package/dist/assets/kol-button-wc.entry-C-WJFnRY.js.map +0 -1
- package/dist/assets/kol-card-wc.entry-C9CAN65K.js +0 -4
- package/dist/assets/kol-details.entry-DDxZwwkB.js.map +0 -1
- package/dist/assets/kol-link-wc.entry-Cu8UIPVC.js +0 -4
- package/dist/assets/kol-link-wc.entry-Cu8UIPVC.js.map +0 -1
- package/dist/assets/kol-pagination-wc.entry-CORQhAn3.js +0 -4
- package/dist/assets/kol-popover-button-wc.entry-C60_RoHY.js +0 -4
- package/dist/assets/kol-popover-button-wc.entry-C60_RoHY.js.map +0 -1
- package/dist/assets/kol-popover-wc.entry-Dx4s6wZE.js +0 -4
- package/dist/assets/kol-popover-wc.entry-Dx4s6wZE.js.map +0 -1
- package/dist/assets/kol-table-settings-wc.entry-LyPiAJYK.js +0 -4
- package/dist/assets/kol-table-settings-wc.entry-LyPiAJYK.js.map +0 -1
- package/dist/assets/kol-table-stateful.entry-B3qans91.js.map +0 -1
- package/dist/assets/kol-table-stateless-wc.entry-DvT8TSM0.js +0 -4
- package/dist/assets/kol-table-stateless-wc.entry-DvT8TSM0.js.map +0 -1
- package/dist/assets/kol-tooltip-wc.entry-C7ImnDzr.js +0 -4
- package/dist/assets/kol-tooltip-wc.entry-C7ImnDzr.js.map +0 -1
- package/dist/assets/kol-tree-item-wc.entry-DF1UVCR9.js +0 -4
- package/dist/assets/kol-tree-wc.entry-W78R5mQZ.js +0 -4
- package/dist/assets/label-Dnmzb2S_-C6oOQMoX.js +0 -4
- package/dist/assets/link-variant-DQEKOyAU-CimbCc47.js +0 -4
- package/dist/assets/max-length-behavior-nTw1Zuyf-bF2paNt-.js +0 -4
- package/dist/assets/multiple-Cj3JQafH-Czk0lM_M.js +0 -4
- package/dist/assets/open-CbvHO4XG-DePuJaK7.js +0 -4
- package/dist/assets/orientation-eCMt8CD1-Cxl5Veb6.js +0 -4
- package/dist/assets/placeholder-BVhy3BzI-Bat_cmDW.js +0 -4
- package/dist/assets/read-only-BetTuumR-DcIqbAM5.js +0 -4
- package/dist/assets/required-CnTTpFCN-BhidbL6i.js +0 -4
- package/dist/assets/reuse-CX4AQDkS-Cyh-fyjG.js +0 -4
- package/dist/assets/rows-DtS-0sp9-DSXcPgoI.js +0 -4
- package/dist/assets/show-DdPK3aM7-CNZWML3e.js +0 -4
- package/dist/assets/spell-check-B9ot-4t--DmfTTBH_.js +0 -4
- package/dist/assets/suggestions-B-jLvT4L-efz5Sf5P.js +0 -4
- package/dist/assets/table-settings-DxLvhwRE-Dtwj2TBP.js +0 -4
- package/dist/assets/test-component.entry-eM1a6VNV.js +0 -4
- package/dist/assets/tooltip-align-Cnin7S26-AW7yAE8m.js +0 -4
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js +0 -4
- package/dist/assets/tslib.es6-CxX45GIN-BAJoBDh7.js +0 -4
- package/dist/assets/unique-nav-labels-CrfmPC99-CmHtQQWJ.js +0 -4
- package/dist/assets/validation-BfjI5un_-DyOefHOM.js +0 -4
- package/dist/assets/validation-aqgnZOL6-CiuUkt-y.js +0 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var f=typeof global=="object"&&global&&global.Object===Object&&global,l=typeof self=="object"&&self&&self.Object===Object&&self,s=f||l||Function("return this")(),n=s.Symbol,a=Object.prototype,g=a.hasOwnProperty,j=a.toString,r=n?n.toStringTag:void 0;function y(t){var e=g.call(t,r),i=t[r];try{t[r]=void 0;var c=!0}catch{}var b=j.call(t);return c&&(e?t[r]=i:delete t[r]),b}var u=Object.prototype,O=u.toString;function d(t){return O.call(t)}var S="[object Null]",T="[object Undefined]",o=n?n.toStringTag:void 0;function v(t){return t==null?t===void 0?T:S:o&&o in Object(t)?y(t):d(t)}function h(t){return t!=null&&typeof t=="object"}var m=Array.isArray;function w(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}export{n as S,h as a,m as b,v as c,f,w as i,s as r};
|
|
2
|
+
//# sourceMappingURL=isObject-DvSELytj-DhzEQer1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isObject-DvSELytj-
|
|
1
|
+
{"version":3,"file":"isObject-DvSELytj-DhzEQer1.js","sources":["../../../../components/dist/esm/isObject-DvSELytj.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\n/** Used for built-in method references. */\nvar objectProto$1 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto$1.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString$1 = objectProto$1.toString;\n\n/** Built-in value references. */\nvar symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag$1),\n tag = value[symToStringTag$1];\n\n try {\n value[symToStringTag$1] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString$1.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag$1] = tag;\n } else {\n delete value[symToStringTag$1];\n }\n }\n return result;\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport { Symbol as S, isObjectLike as a, isArray as b, baseGetTag as c, freeGlobal as f, isObject as i, root as r };\n//# sourceMappingURL=isObject-DvSELytj.js.map\n\n//# sourceMappingURL=isObject-DvSELytj.js.map"],"names":["freeGlobal","freeSelf","root","Symbol","objectProto$1","hasOwnProperty","nativeObjectToString$1","symToStringTag$1","getRawTag","value","isOwn","tag","unmasked","result","objectProto","nativeObjectToString","objectToString","nullTag","undefinedTag","symToStringTag","baseGetTag","isObjectLike","isArray","isObject","type"],"mappings":"AAIG,IAACA,EAAa,OAAO,QAAU,UAAY,QAAU,OAAO,SAAW,QAAU,OAGhFC,EAAW,OAAO,MAAQ,UAAY,MAAQ,KAAK,SAAW,QAAU,KAGxEC,EAAOF,GAAcC,GAAY,SAAS,aAAa,EAAC,EAGxDE,EAASD,EAAK,OAGdE,EAAgB,OAAO,UAGvBC,EAAiBD,EAAc,eAO/BE,EAAyBF,EAAc,SAGvCG,EAAmBJ,EAASA,EAAO,YAAc,OASrD,SAASK,EAAUC,EAAO,CACxB,IAAIC,EAAQL,EAAe,KAAKI,EAAOF,CAAgB,EACnDI,EAAMF,EAAMF,CAAgB,EAEhC,GAAI,CACFE,EAAMF,CAAgB,EAAI,OAC1B,IAAIK,EAAW,EACjB,MAAY,CAAC,CAEb,IAAIC,EAASP,EAAuB,KAAKG,CAAK,EAC9C,OAAIG,IACEF,EACFD,EAAMF,CAAgB,EAAII,EAE1B,OAAOF,EAAMF,CAAgB,GAG1BM,CACT,CAGA,IAAIC,EAAc,OAAO,UAOrBC,EAAuBD,EAAY,SASvC,SAASE,EAAeP,EAAO,CAC7B,OAAOM,EAAqB,KAAKN,CAAK,CACxC,CAGA,IAAIQ,EAAU,gBACVC,EAAe,qBAGfC,EAAiBhB,EAASA,EAAO,YAAc,OASnD,SAASiB,EAAWX,EAAO,CACzB,OAAIA,GAAS,KACJA,IAAU,OAAYS,EAAeD,EAEtCE,GAAkBA,KAAkB,OAAOV,CAAK,EACpDD,EAAUC,CAAK,EACfO,EAAeP,CAAK,CAC1B,CA0BA,SAASY,EAAaZ,EAAO,CAC3B,OAAOA,GAAS,MAAQ,OAAOA,GAAS,QAC1C,CAyBG,IAACa,EAAU,MAAM,QA2BpB,SAASC,EAASd,EAAO,CACvB,IAAIe,EAAO,OAAOf,EAClB,OAAOA,GAAS,OAASe,GAAQ,UAAYA,GAAQ,WACvD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var n;(function(o){o.onBlur="onBlur",o.onChange="onChange",o.onChangePage="onChangePage",o.onClick="onClick",o.onClose="onClose",o.onDblClick="onDblClick",o.onFocus="onFocus",o.onInput="onInput",o.onKeyDown="onKeyDown",o.onKeyPress="onKeyPress",o.onKeyUp="onKeyUp",o.onMouseDown="onMouseDown",o.onMouseMove="onMouseMove",o.onMouseOut="onMouseOut",o.onMouseOver="onMouseOver",o.onMouseUp="onMouseUp",o.onReset="onReset",o.onSelect="onSelect",o.onSelectionChange="onSelectionChange",o.onChangePageSize="onChangePageSize",o.onSort="onSort",o.onSubmit="onSubmit",o.onToggle="onToggle"})(n||(n={}));var e;(function(o){o.ArrowDown="ArrowDown",o.ArrowLeft="ArrowLeft",o.ArrowRight="ArrowRight",o.ArrowUp="ArrowUp",o.Enter="Enter",o.Space=" "})(e||(e={}));export{n as C,e as K};
|
|
2
|
+
//# sourceMappingURL=keyboard-D6PoWr38-BGYQJqo4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-D6PoWr38-
|
|
1
|
+
{"version":3,"file":"keyboard-D6PoWr38-BGYQJqo4.js","sources":["../../../../components/dist/esm/keyboard-D6PoWr38.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nvar Callback;\n(function (Callback) {\n Callback[\"onBlur\"] = \"onBlur\";\n Callback[\"onChange\"] = \"onChange\";\n Callback[\"onChangePage\"] = \"onChangePage\";\n Callback[\"onClick\"] = \"onClick\";\n Callback[\"onClose\"] = \"onClose\";\n Callback[\"onDblClick\"] = \"onDblClick\";\n Callback[\"onFocus\"] = \"onFocus\";\n Callback[\"onInput\"] = \"onInput\";\n Callback[\"onKeyDown\"] = \"onKeyDown\";\n Callback[\"onKeyPress\"] = \"onKeyPress\";\n Callback[\"onKeyUp\"] = \"onKeyUp\";\n Callback[\"onMouseDown\"] = \"onMouseDown\";\n Callback[\"onMouseMove\"] = \"onMouseMove\";\n Callback[\"onMouseOut\"] = \"onMouseOut\";\n Callback[\"onMouseOver\"] = \"onMouseOver\";\n Callback[\"onMouseUp\"] = \"onMouseUp\";\n Callback[\"onReset\"] = \"onReset\";\n Callback[\"onSelect\"] = \"onSelect\";\n Callback[\"onSelectionChange\"] = \"onSelectionChange\";\n Callback[\"onChangePageSize\"] = \"onChangePageSize\";\n Callback[\"onSort\"] = \"onSort\";\n Callback[\"onSubmit\"] = \"onSubmit\";\n Callback[\"onToggle\"] = \"onToggle\";\n})(Callback || (Callback = {}));\n\nvar KeyboardKey;\n(function (KeyboardKey) {\n KeyboardKey[\"ArrowDown\"] = \"ArrowDown\";\n KeyboardKey[\"ArrowLeft\"] = \"ArrowLeft\";\n KeyboardKey[\"ArrowRight\"] = \"ArrowRight\";\n KeyboardKey[\"ArrowUp\"] = \"ArrowUp\";\n KeyboardKey[\"Enter\"] = \"Enter\";\n KeyboardKey[\"Space\"] = \" \";\n})(KeyboardKey || (KeyboardKey = {}));\n\nexport { Callback as C, KeyboardKey as K };\n//# sourceMappingURL=keyboard-D6PoWr38.js.map\n\n//# sourceMappingURL=keyboard-D6PoWr38.js.map"],"names":["Callback","KeyboardKey"],"mappings":"AAGG,IAACA,GACH,SAAUA,EAAU,CACjBA,EAAS,OAAY,SACrBA,EAAS,SAAc,WACvBA,EAAS,aAAkB,eAC3BA,EAAS,QAAa,UACtBA,EAAS,QAAa,UACtBA,EAAS,WAAgB,aACzBA,EAAS,QAAa,UACtBA,EAAS,QAAa,UACtBA,EAAS,UAAe,YACxBA,EAAS,WAAgB,aACzBA,EAAS,QAAa,UACtBA,EAAS,YAAiB,cAC1BA,EAAS,YAAiB,cAC1BA,EAAS,WAAgB,aACzBA,EAAS,YAAiB,cAC1BA,EAAS,UAAe,YACxBA,EAAS,QAAa,UACtBA,EAAS,SAAc,WACvBA,EAAS,kBAAuB,oBAChCA,EAAS,iBAAsB,mBAC/BA,EAAS,OAAY,SACrBA,EAAS,SAAc,WACvBA,EAAS,SAAc,UAC3B,GAAGA,IAAaA,EAAW,CAAA,EAAG,EAE3B,IAACC,GACH,SAAUA,EAAa,CACpBA,EAAY,UAAe,YAC3BA,EAAY,UAAe,YAC3BA,EAAY,WAAgB,aAC5BA,EAAY,QAAa,UACzBA,EAAY,MAAW,QACvBA,EAAY,MAAW,GAC3B,GAAGA,IAAgBA,EAAc,CAAA,EAAG"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import{r as t,h as n,K as o,H as i}from"./index-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/const l=`/*
|
|
1
|
+
import{r as t,h as n,K as o,H as i}from"./index-BuTEZuln.js";import{v as a}from"./label-Dnmzb2S_-BK9SA9Jq.js";const l=`/*
|
|
4
2
|
* This file defines the layer order for all CSS layers used in KoliBri.
|
|
5
3
|
* The order is important as it determines the cascade priority.
|
|
6
4
|
*
|
|
@@ -261,4 +259,4 @@ import{r as t,h as n,K as o,H as i}from"./index-eI_RdheT.js";import{v as a}from"
|
|
|
261
259
|
}
|
|
262
260
|
}
|
|
263
261
|
}`,r=class{constructor(e){t(this,e),this.state={_label:""}}render(){return n(i,{key:"7f764ad6e259ac460dcd1f133da2ef8ad41b74b7",class:"kol-abbr"},n("abbr",{key:"3f49be16f6bbbd0d2cbd953319f6b23a8766a241",tabIndex:this.state._label?0:void 0},n("slot",{key:"81175d6ce9217f34e4faaa6aa08597e63f07389e"})),this.state._label?n(o,{"aria-hidden":"true",_label:this.state._label}):null)}validateLabel(e){a(this,e)}componentWillLoad(){this.validateLabel(this._label)}static get watchers(){return{_label:["validateLabel"]}}};r.style={default:l};export{r as kol_abbr};
|
|
264
|
-
//# sourceMappingURL=kol-abbr.entry-
|
|
262
|
+
//# sourceMappingURL=kol-abbr.entry-Ca98NmwE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-abbr.entry-BXGdym2u.js","sources":["../../../../components/dist/esm/kol-abbr.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, H as Host } from './index-BG8JuXph.js';\nimport { a as KolTooltipWcTag } from './component-names-CkE54Ym7.js';\nimport './common-Dd0zJQbD.js';\nimport { v as validateLabel } from './label-Dnmzb2S_.js';\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n opacity: 0;\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n animation-direction: normal;\\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\\n animation-fill-mode: forwards;\\n animation-iteration-count: 1;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__floating.hide {\\n animation-name: hideTooltip;\\n }\\n .kol-tooltip__floating.show {\\n animation-name: showTooltip;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes hideTooltip {\\n 0% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n display: none;\\n }\\n }\\n @keyframes showTooltip {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\";\n\nconst KolAbbr = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.state = {\n _label: '',\n };\n }\n render() {\n return (h(Host, { key: '7f764ad6e259ac460dcd1f133da2ef8ad41b74b7', class: \"kol-abbr\" }, h(\"abbr\", { key: '3f49be16f6bbbd0d2cbd953319f6b23a8766a241', tabIndex: this.state._label ? 0 : undefined }, h(\"slot\", { key: '81175d6ce9217f34e4faaa6aa08597e63f07389e' })), this.state._label ? h(KolTooltipWcTag, { \"aria-hidden\": \"true\", _label: this.state._label }) : null));\n }\n validateLabel(value) {\n validateLabel(this, value);\n }\n componentWillLoad() {\n this.validateLabel(this._label);\n }\n static get watchers() { return {\n \"_label\": [\"validateLabel\"]\n }; }\n};\nKolAbbr.style = {\n default: defaultStyleCss\n};\n\nexport { KolAbbr as kol_abbr };\n//# sourceMappingURL=kol-abbr.entry.js.map\n"],"names":["defaultStyleCss","KolAbbr","hostRef","registerInstance","h","Host","KolTooltipWcTag","value","validateLabel"],"mappings":"8GAAA;AAAA;AAAA,GAQA,MAAMA,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAElBC,EAAU,KAAM,CAClB,YAAYC,EAAS,CACjBC,EAAiB,KAAMD,CAAO,EAC9B,KAAK,MAAQ,CACT,OAAQ,EACpB,CACI,CACA,QAAS,CACL,OAAQE,EAAEC,EAAM,CAAE,IAAK,2CAA4C,MAAO,UAAU,EAAID,EAAE,OAAQ,CAAE,IAAK,2CAA4C,SAAU,KAAK,MAAM,OAAS,EAAI,MAAS,EAAIA,EAAE,OAAQ,CAAE,IAAK,0CAA0C,CAAE,CAAC,EAAG,KAAK,MAAM,OAASA,EAAEE,EAAiB,CAAE,cAAe,OAAQ,OAAQ,KAAK,MAAM,MAAM,CAAE,EAAI,IAAI,CAC5W,CACA,cAAcC,EAAO,CACjBC,EAAc,KAAMD,CAAK,CAC7B,CACA,mBAAoB,CAChB,KAAK,cAAc,KAAK,MAAM,CAClC,CACA,WAAW,UAAW,CAAE,MAAO,CAC3B,OAAU,CAAC,eAAe,CAClC,CAAO,CACP,EACAN,EAAQ,MAAQ,CACZ,QAASD,CACb"}
|
|
1
|
+
{"version":3,"file":"kol-abbr.entry-Ca98NmwE.js","sources":["../../../../components/dist/esm/kol-abbr.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, H as Host } from './index-pomHlJYE.js';\nimport { a as KolTooltipWcTag } from './component-names-CkE54Ym7.js';\nimport './common-Dd0zJQbD.js';\nimport { v as validateLabel } from './label-Dnmzb2S_.js';\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n opacity: 0;\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n animation-direction: normal;\\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\\n animation-fill-mode: forwards;\\n animation-iteration-count: 1;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__floating.hide {\\n animation-name: hideTooltip;\\n }\\n .kol-tooltip__floating.show {\\n animation-name: showTooltip;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes hideTooltip {\\n 0% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n display: none;\\n }\\n }\\n @keyframes showTooltip {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\";\n\nconst KolAbbr = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.state = {\n _label: '',\n };\n }\n render() {\n return (h(Host, { key: '7f764ad6e259ac460dcd1f133da2ef8ad41b74b7', class: \"kol-abbr\" }, h(\"abbr\", { key: '3f49be16f6bbbd0d2cbd953319f6b23a8766a241', tabIndex: this.state._label ? 0 : undefined }, h(\"slot\", { key: '81175d6ce9217f34e4faaa6aa08597e63f07389e' })), this.state._label ? h(KolTooltipWcTag, { \"aria-hidden\": \"true\", _label: this.state._label }) : null));\n }\n validateLabel(value) {\n validateLabel(this, value);\n }\n componentWillLoad() {\n this.validateLabel(this._label);\n }\n static get watchers() { return {\n \"_label\": [\"validateLabel\"]\n }; }\n};\nKolAbbr.style = {\n default: defaultStyleCss\n};\n\nexport { KolAbbr as kol_abbr };\n//# sourceMappingURL=kol-abbr.entry.js.map\n"],"names":["defaultStyleCss","KolAbbr","hostRef","registerInstance","h","Host","KolTooltipWcTag","value","validateLabel"],"mappings":"8GAQA,MAAMA,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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,KAAMD,CAAK,CAC7B,CACA,mBAAoB,CAChB,KAAK,cAAc,KAAK,MAAM,CAClC,CACA,WAAW,UAAW,CAAE,MAAO,CAC3B,OAAU,CAAC,eAAe,CAClC,CAAO,CACP,EACAN,EAAQ,MAAQ,CACZ,QAASD,CACb"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import{r,d,a as c,h as a,g as h,w as p,f as l}from"./index-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/const w=(n,t)=>{p(n,"_on",e=>typeof e=="object"&&e!==null,new Set(["AccordionCallbacksPropType {Events.onClick}"]),t)},y=`/*
|
|
1
|
+
import{r,d,a as c,h as a,g as h,w as p,f as l}from"./index-BuTEZuln.js";import{K as m}from"./Collapsible-CDwlCzFc-BJkAAwIm.js";import{v as b}from"./disabled-BhpAFgSp-Bd8kdBI3.js";import{v as f}from"./label-Dnmzb2S_-BK9SA9Jq.js";import{v as u}from"./open-CbvHO4XG-DAegQoyg.js";import{n as g}from"./dev.utils-Cn_6kyQ0-n4725Gnv.js";import{w as v}from"./validation-aqgnZOL6-D_UnhLX9.js";import"./tslib.es6-CxX45GIN-BGVaTf34.js";import"./clsx-eK3rPvPS-B-dksMZM.js";import"./Heading-ClMNjISM-CgG5k5qN.js";const y=(n,t)=>{p(n,"_on",e=>typeof e=="object"&&e!==null,new Set(["AccordionCallbacksPropType {Events.onClick}"]),t)},w=`/*
|
|
4
2
|
* This file defines the layer order for all CSS layers used in KoliBri.
|
|
5
3
|
* The order is important as it determines the cascade priority.
|
|
6
4
|
*
|
|
@@ -206,18 +204,14 @@ import{r,d,a as c,h as a,g as h,w as p,f as l}from"./index-eI_RdheT.js";import{K
|
|
|
206
204
|
}
|
|
207
205
|
/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */
|
|
208
206
|
@layer kol-component {
|
|
209
|
-
.collapsible {
|
|
210
|
-
/* @see https://github.com/public-ui/kolibri/issues/5952 */
|
|
211
|
-
/*
|
|
212
|
-
* Inside a button, the caption text is always centered.
|
|
213
|
-
* So we have to align the text to the left.
|
|
214
|
-
*/
|
|
215
|
-
}
|
|
216
207
|
@media (prefers-reduced-motion) {
|
|
217
208
|
.collapsible__wrapper-animation, .collapsible__wrapper {
|
|
218
209
|
transition-duration: 0s;
|
|
219
210
|
}
|
|
220
211
|
}
|
|
212
|
+
.collapsible {
|
|
213
|
+
/* @see https://github.com/public-ui/kolibri/issues/5952 */
|
|
214
|
+
}
|
|
221
215
|
@media print {
|
|
222
216
|
:not(.collapsible--open) .collapsible__wrapper-animation {
|
|
223
217
|
display: none;
|
|
@@ -231,29 +225,38 @@ import{r,d,a as c,h as a,g as h,w as p,f as l}from"./index-eI_RdheT.js";import{K
|
|
|
231
225
|
transition: grid-template-rows 0.3s;
|
|
232
226
|
}
|
|
233
227
|
.collapsible__wrapper-animation {
|
|
228
|
+
opacity: 0;
|
|
229
|
+
transform: scaleY(0);
|
|
230
|
+
transform-origin: top;
|
|
234
231
|
min-height: 0;
|
|
235
|
-
/**
|
|
236
|
-
* The \`overflow: hidden\` ensures that the content is not visible during the animated
|
|
237
|
-
* opening and closing. This should also cut off overlays containing content, but it
|
|
238
|
-
*does not.
|
|
239
|
-
*/
|
|
240
|
-
overflow: hidden;
|
|
241
232
|
/* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */
|
|
242
233
|
visibility: hidden;
|
|
243
|
-
transition: visibility 0.3s;
|
|
234
|
+
transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
|
|
244
235
|
}
|
|
245
236
|
.collapsible--open .collapsible__wrapper {
|
|
246
237
|
grid-template-rows: 1fr;
|
|
247
238
|
}
|
|
248
239
|
.collapsible--open .collapsible__wrapper-animation {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
transform: scaleY(1);
|
|
249
242
|
visibility: visible;
|
|
250
243
|
}
|
|
244
|
+
.collapsible {
|
|
245
|
+
/*
|
|
246
|
+
* Inside a button, the caption text is always centered.
|
|
247
|
+
* So we have to align the text to the left.
|
|
248
|
+
*/
|
|
249
|
+
}
|
|
251
250
|
.collapsible__heading-button button .kol-span {
|
|
252
251
|
align-items: flex-start;
|
|
253
252
|
}
|
|
253
|
+
.collapsible--open:focus-within {
|
|
254
|
+
position: relative;
|
|
255
|
+
z-index: 100;
|
|
256
|
+
}
|
|
254
257
|
}`;l(`[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.
|
|
255
258
|
|
|
256
259
|
- onClick auf der KolAccordion anwenden
|
|
257
260
|
- Click-Event prüft den _open-Status der Accordions
|
|
258
|
-
- Logik Öffnet und Schließt entsprechend`);l("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const _=class{constructor(n){r(this,n),this.nonce=g(),this.catchRef=t=>{this.buttonWcRef=t},this.handleOnClick=t=>{this._open=!this._open,setTimeout(()=>{var e,o;(o=(e=this.state._on)===null||e===void 0?void 0:e.onClick)===null||o===void 0||o.call(e,t,this._open===!0),this.host&&d(this.host,c.click,this._open===!0)})},this._disabled=!1,this._level=0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async kolFocus(){var n;await((n=this.buttonWcRef)===null||n===void 0?void 0:n.kolFocus())}render(){const{_open:n,_label:t,_disabled:e,_level:o}=this.state,i="kol-accordion",s={id:this.nonce,label:t,open:n,disabled:e,level:o,onClick:this.handleOnClick,class:i,HeadingProps:{class:`${i}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${i}__heading-button`},ContentProps:{class:`${i}__content`,wrapperClass:`${i}__wrapper`,animationClass:`${i}__wrapper-animation`}};return a(m,Object.assign({key:"750cf0bb226ec5139c7098bd44e2a64546888a32"},s),a("slot",{key:"08908025b6753ebe36defc6e2d210736eabff629"}))}validateDisabled(n){b(this,n)}validateLabel(n){
|
|
259
|
-
//# sourceMappingURL=kol-accordion.entry-
|
|
261
|
+
- Logik Öffnet und Schließt entsprechend`);l("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const _=class{constructor(n){r(this,n),this.nonce=g(),this.catchRef=t=>{this.buttonWcRef=t},this.handleOnClick=t=>{this._open=!this._open,setTimeout(()=>{var e,o;(o=(e=this.state._on)===null||e===void 0?void 0:e.onClick)===null||o===void 0||o.call(e,t,this._open===!0),this.host&&d(this.host,c.click,this._open===!0)})},this._disabled=!1,this._level=0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async kolFocus(){var n;await((n=this.buttonWcRef)===null||n===void 0?void 0:n.kolFocus())}render(){const{_open:n,_label:t,_disabled:e,_level:o}=this.state,i="kol-accordion",s={id:this.nonce,label:t,open:n,disabled:e,level:o,onClick:this.handleOnClick,class:i,HeadingProps:{class:`${i}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${i}__heading-button`},ContentProps:{class:`${i}__content`,wrapperClass:`${i}__wrapper`,animationClass:`${i}__wrapper-animation`}};return a(m,Object.assign({key:"750cf0bb226ec5139c7098bd44e2a64546888a32"},s),a("slot",{key:"08908025b6753ebe36defc6e2d210736eabff629"}))}validateDisabled(n){b(this,n)}validateLabel(n){f(this,n,{required:!0})}validateLevel(n){v(this,n)}validateOn(n){y(this,n)}validateOpen(n){u(this,n)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open)}get host(){return h(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};_.style={default:w};export{_ as kol_accordion};
|
|
262
|
+
//# sourceMappingURL=kol-accordion.entry-CVj1ttdc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kol-accordion.entry-CVj1ttdc.js","sources":["../../../../components/dist/esm/kol-accordion.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, g as getElement } from './index-pomHlJYE.js';\nimport { K as KolCollapsibleFc } from './Collapsible-CDwlCzFc.js';\nimport { w as watchValidator, f as featureHint } from './common-Dd0zJQbD.js';\nimport { v as validateDisabled } from './disabled-BhpAFgSp.js';\nimport { v as validateLabel } from './label-Dnmzb2S_.js';\nimport { v as validateOpen } from './open-CbvHO4XG.js';\nimport { n as nonce } from './dev.utils-Cn_6kyQ0.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-9-skLO0f.js';\nimport { w as watchHeadingLevel } from './validation-aqgnZOL6.js';\nimport './tslib.es6-CxX45GIN.js';\nimport './clsx-eK3rPvPS.js';\nimport './component-names-CkE54Ym7.js';\nimport './Heading-ClMNjISM.js';\n\nconst validateAccordionCallbacks = (component, value) => {\n watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['AccordionCallbacksPropType {Events.onClick}']), value);\n};\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\\n@layer kol-component {\\n @media (prefers-reduced-motion) {\\n .collapsible__wrapper-animation, .collapsible__wrapper {\\n transition-duration: 0s;\\n }\\n }\\n .collapsible {\\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\\n }\\n @media print {\\n :not(.collapsible--open) .collapsible__wrapper-animation {\\n display: none;\\n }\\n }\\n .collapsible__wrapper {\\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\\n transform: translateZ(0);\\n display: grid;\\n grid-template-rows: 0fr;\\n transition: grid-template-rows 0.3s;\\n }\\n .collapsible__wrapper-animation {\\n opacity: 0;\\n transform: scaleY(0);\\n transform-origin: top;\\n min-height: 0;\\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\\n visibility: hidden;\\n transition: transform 0.3s, opacity 0.3s, visibility 0.3s;\\n }\\n .collapsible--open .collapsible__wrapper {\\n grid-template-rows: 1fr;\\n }\\n .collapsible--open .collapsible__wrapper-animation {\\n opacity: 1;\\n transform: scaleY(1);\\n visibility: visible;\\n }\\n .collapsible {\\n /*\\n * Inside a button, the caption text is always centered.\\n * So we have to align the text to the left.\\n */\\n }\\n .collapsible__heading-button button .kol-span {\\n align-items: flex-start;\\n }\\n .collapsible--open:focus-within {\\n position: relative;\\n z-index: 100;\\n }\\n}\";\n\nfeatureHint(`[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend`);\nfeatureHint(`[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.`);\nconst KolAccordion = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.nonce = nonce();\n this.catchRef = (ref) => {\n this.buttonWcRef = ref;\n };\n this.handleOnClick = (event) => {\n this._open = !this._open;\n setTimeout(() => {\n var _a, _b;\n (_b = (_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event, this._open === true);\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.click, this._open === true);\n }\n });\n };\n this._disabled = false;\n this._level = 0;\n this._open = false;\n this.state = {\n _label: '',\n _level: 0,\n _on: {},\n };\n }\n async kolFocus() {\n var _a;\n await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());\n }\n render() {\n const { _open, _label, _disabled, _level } = this.state;\n const rootClass = 'kol-accordion';\n const props = {\n id: this.nonce,\n label: _label,\n open: _open,\n disabled: _disabled,\n level: _level,\n onClick: this.handleOnClick,\n class: rootClass,\n HeadingProps: { class: `${rootClass}__heading` },\n HeadingButtonProps: {\n ref: this.catchRef,\n class: `${rootClass}__heading-button`,\n },\n ContentProps: {\n class: `${rootClass}__content`,\n wrapperClass: `${rootClass}__wrapper`,\n animationClass: `${rootClass}__wrapper-animation`,\n },\n };\n return (h(KolCollapsibleFc, Object.assign({ key: '750cf0bb226ec5139c7098bd44e2a64546888a32' }, props), h(\"slot\", { key: '08908025b6753ebe36defc6e2d210736eabff629' })));\n }\n validateDisabled(value) {\n validateDisabled(this, value);\n }\n validateLabel(value) {\n validateLabel(this, value, {\n required: true,\n });\n }\n validateLevel(value) {\n watchHeadingLevel(this, value);\n }\n validateOn(on) {\n validateAccordionCallbacks(this, on);\n }\n validateOpen(value) {\n validateOpen(this, value);\n }\n componentWillLoad() {\n this.validateDisabled(this._disabled);\n this.validateLabel(this._label);\n this.validateLevel(this._level);\n this.validateOn(this._on);\n this.validateOpen(this._open);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_disabled\": [\"validateDisabled\"],\n \"_label\": [\"validateLabel\"],\n \"_level\": [\"validateLevel\"],\n \"_on\": [\"validateOn\"],\n \"_open\": [\"validateOpen\"]\n }; }\n};\nKolAccordion.style = {\n default: defaultStyleCss\n};\n\nexport { KolAccordion as kol_accordion };\n//# sourceMappingURL=kol-accordion.entry.js.map\n"],"names":["validateAccordionCallbacks","component","value","watchValidator","defaultStyleCss","featureHint","KolAccordion","hostRef","registerInstance","nonce","ref","event","_a","_b","dispatchDomEvent","KolEvent","_open","_label","_disabled","_level","rootClass","props","h","KolCollapsibleFc","validateDisabled","validateLabel","watchHeadingLevel","on","validateOpen","getElement"],"mappings":"mfAiBA,MAAMA,EAA6B,CAACC,EAAWC,IAAU,CACrDC,EAAeF,EAAW,MAAQC,GAAU,OAAOA,GAAU,UAAYA,IAAU,KAAM,IAAI,IAAI,CAAC,6CAA6C,CAAC,EAAGA,CAAK,CAC5J,EAEME,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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MAAOC,EACP,aAAc,CAAE,MAAO,GAAGA,CAAS,WAAW,EAC9C,mBAAoB,CAChB,IAAK,KAAK,SACV,MAAO,GAAGA,CAAS,kBACnC,EACY,aAAc,CACV,MAAO,GAAGA,CAAS,YACnB,aAAc,GAAGA,CAAS,YAC1B,eAAgB,GAAGA,CAAS,qBAC5C,CACA,EACQ,OAAQE,EAAEC,EAAkB,OAAO,OAAO,CAAE,IAAK,0CAA0C,EAAIF,CAAK,EAAGC,EAAE,OAAQ,CAAE,IAAK,0CAA0C,CAAE,CAAC,CACzK,CACA,iBAAiBpB,EAAO,CACpBsB,EAAiB,KAAMtB,CAAK,CAChC,CACA,cAAcA,EAAO,CACjBuB,EAAc,KAAMvB,EAAO,CACvB,SAAU,EACtB,CAAS,CACL,CACA,cAAcA,EAAO,CACjBwB,EAAkB,KAAMxB,CAAK,CACjC,CACA,WAAWyB,EAAI,CACX3B,EAA2B,KAAM2B,CAAE,CACvC,CACA,aAAazB,EAAO,CAChB0B,EAAa,KAAM1B,CAAK,CAC5B,CACA,mBAAoB,CAChB,KAAK,iBAAiB,KAAK,SAAS,EACpC,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,WAAW,KAAK,GAAG,EACxB,KAAK,aAAa,KAAK,KAAK,CAChC,CACA,IAAI,MAAO,CAAE,OAAO2B,EAAW,IAAI,CAAG,CACtC,WAAW,UAAW,CAAE,MAAO,CAC3B,UAAa,CAAC,kBAAkB,EAChC,OAAU,CAAC,eAAe,EAC1B,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,MAAS,CAAC,cAAc,CAChC,CAAO,CACP,EACAvB,EAAa,MAAQ,CACjB,QAASF,CACb"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as v,d as c,a as p,h as s,m as _,s as f,g as m,w as l}from"./index-BuTEZuln.js";import{K as y}from"./Alert-_tq2FoQ5-C1jHNIsn.js";import{v as b}from"./has-closer-CQzjaTkv-sN6_yR5U.js";import{v as C}from"./label-Dnmzb2S_-BK9SA9Jq.js";import{w as u}from"./validation-aqgnZOL6-D_UnhLX9.js";import"./tslib.es6-CxX45GIN-BGVaTf34.js";import"./i18n-C5ifExT3-DAcY3F-T.js";import"./clsx-eK3rPvPS-B-dksMZM.js";import"./Heading-ClMNjISM-CgG5k5qN.js";const i=["default","info","success","warning","error"],A=t=>typeof t=="string"&&i.includes(t),g=(t,e)=>{l(t,"_type",A,new Set(i),e)},o=["card","msg"],w=t=>typeof t=="string"&&o.includes(t),T=(t,e)=>{l(t,"_variant",w,new Set(o),e)},P=class{constructor(t){v(this,t),this.close=()=>{var e,a;(a=(e=this._on)===null||e===void 0?void 0:e.onClose)===null||a===void 0||a.call(e,new Event("Close")),this.host&&c(this.host,p.close)},this.handleAlertTimeout=()=>{this.validateAlert(!1)},this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0},this.validateOnValue=e=>typeof e=="object"&&e!==null&&typeof e.onClose=="function"}render(){const{_alert:t,_hasCloser:e,_label:a,_level:r,_type:n,_variant:h}=this.state,d={alert:t,hasCloser:e,label:a,level:r,type:n,variant:h,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return s(y,Object.assign({key:"5db3514131f644ab76a9bddc438cdf0af412e6e8"},d),s("slot",{key:"61ef793542ae680a090596e44fcb98b9f4e55708"}))}validateAlert(t){_(this,"_alert",t)}validateHasCloser(t){b(this,t)}validateLabel(t){C(this,t)}validateLevel(t){u(this,t)}validateOn(t){this.validateOnValue(t)&&f(this,"_on",{onClose:t.onClose})}validateType(t){g(this,t)}validateVariant(t){T(this,t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}get host(){return m(this)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}};export{P as kol_alert_wc};
|
|
2
|
+
//# sourceMappingURL=kol-alert-wc.entry-DKWmTbsy.js.map
|
package/dist/assets/{kol-alert-wc.entry-CVSKyNvN.js.map → kol-alert-wc.entry-DKWmTbsy.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-alert-wc.entry-
|
|
1
|
+
{"version":3,"file":"kol-alert-wc.entry-DKWmTbsy.js","sources":["../../../../components/dist/esm/kol-alert-wc.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h, g as getElement } from './index-pomHlJYE.js';\nimport { K as KolAlertFc } from './Alert-_tq2FoQ5.js';\nimport { w as watchValidator, d as watchBoolean, s as setState } from './common-Dd0zJQbD.js';\nimport { v as validateHasCloser } from './has-closer-CQzjaTkv.js';\nimport { v as validateLabel } from './label-Dnmzb2S_.js';\nimport { d as dispatchDomEvent, K as KolEvent } from './events-9-skLO0f.js';\nimport { w as watchHeadingLevel } from './validation-aqgnZOL6.js';\nimport './tslib.es6-CxX45GIN.js';\nimport './clsx-eK3rPvPS.js';\nimport './component-names-CkE54Ym7.js';\nimport './i18n-C5ifExT3.js';\nimport './i18n-ZF6JbdVP.js';\nimport './bem-C27SfH6w.js';\nimport './browser-DiRe0qUf.js';\nimport './Heading-ClMNjISM.js';\n\nconst alertTypeOptions = ['default', 'info', 'success', 'warning', 'error'];\nconst isAlertTypePropType = (value) => {\n return typeof value === 'string' && alertTypeOptions.includes(value);\n};\nconst validateAlertType = (component, value) => {\n watchValidator(component, '_type', isAlertTypePropType, new Set(alertTypeOptions), value);\n};\n\nconst alertVariantOptions = ['card', 'msg'];\nconst isAlertVariantPropType = (value) => {\n return typeof value === 'string' && alertVariantOptions.includes(value);\n};\nconst validateAlertVariant = (component, value) => {\n watchValidator(component, '_variant', isAlertVariantPropType, new Set(alertVariantOptions), value);\n};\n\nconst KolAlertWc = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.close = () => {\n var _a, _b;\n (_b = (_a = this._on) === null || _a === void 0 ? void 0 : _a.onClose) === null || _b === void 0 ? void 0 : _b.call(_a, new Event('Close'));\n if (this.host) {\n dispatchDomEvent(this.host, KolEvent.close);\n }\n };\n this.handleAlertTimeout = () => {\n this.validateAlert(false);\n };\n this._alert = false;\n this._hasCloser = false;\n this._level = 0;\n this._type = 'default';\n this._variant = 'msg';\n this.state = {\n _level: 0,\n };\n this.validateOnValue = (value) => typeof value === 'object' && value !== null && typeof value.onClose === 'function';\n }\n render() {\n const { _alert, _hasCloser, _label, _level, _type, _variant } = this.state;\n const props = {\n alert: _alert,\n hasCloser: _hasCloser,\n label: _label,\n level: _level,\n type: _type,\n variant: _variant,\n onCloserClick: this.close,\n onAlertTimeout: this.handleAlertTimeout,\n };\n return (h(KolAlertFc, Object.assign({ key: '5db3514131f644ab76a9bddc438cdf0af412e6e8' }, props), h(\"slot\", { key: '61ef793542ae680a090596e44fcb98b9f4e55708' })));\n }\n validateAlert(value) {\n watchBoolean(this, '_alert', value);\n }\n validateHasCloser(value) {\n validateHasCloser(this, value);\n }\n validateLabel(value) {\n validateLabel(this, value);\n }\n validateLevel(value) {\n watchHeadingLevel(this, value);\n }\n validateOn(value) {\n if (this.validateOnValue(value)) {\n setState(this, '_on', {\n onClose: value.onClose,\n });\n }\n }\n validateType(value) {\n validateAlertType(this, value);\n }\n validateVariant(value) {\n validateAlertVariant(this, value);\n }\n componentWillLoad() {\n this.validateAlert(this._alert);\n this.validateHasCloser(this._hasCloser);\n this.validateLabel(this._label);\n this.validateLevel(this._level);\n this.validateOn(this._on);\n this.validateType(this._type);\n this.validateVariant(this._variant);\n }\n get host() { return getElement(this); }\n static get watchers() { return {\n \"_alert\": [\"validateAlert\"],\n \"_hasCloser\": [\"validateHasCloser\"],\n \"_label\": [\"validateLabel\"],\n \"_level\": [\"validateLevel\"],\n \"_on\": [\"validateOn\"],\n \"_type\": [\"validateType\"],\n \"_variant\": [\"validateVariant\"]\n }; }\n};\n\nexport { KolAlertWc as kol_alert_wc };\n//# sourceMappingURL=kol-alert-wc.entry.js.map\n"],"names":["alertTypeOptions","isAlertTypePropType","value","validateAlertType","component","watchValidator","alertVariantOptions","isAlertVariantPropType","validateAlertVariant","KolAlertWc","hostRef","registerInstance","_a","_b","dispatchDomEvent","KolEvent","_alert","_hasCloser","_label","_level","_type","_variant","props","h","KolAlertFc","watchBoolean","validateHasCloser","validateLabel","watchHeadingLevel","setState","getElement"],"mappings":"+bAmBA,MAAMA,EAAmB,CAAC,UAAW,OAAQ,UAAW,UAAW,OAAO,EACpEC,EAAuBC,GAClB,OAAOA,GAAU,UAAYF,EAAiB,SAASE,CAAK,EAEjEC,EAAoB,CAACC,EAAWF,IAAU,CAC5CG,EAAeD,EAAW,QAASH,EAAqB,IAAI,IAAID,CAAgB,EAAGE,CAAK,CAC5F,EAEMI,EAAsB,CAAC,OAAQ,KAAK,EACpCC,EAA0BL,GACrB,OAAOA,GAAU,UAAYI,EAAoB,SAASJ,CAAK,EAEpEM,EAAuB,CAACJ,EAAWF,IAAU,CAC/CG,EAAeD,EAAW,WAAYG,EAAwB,IAAI,IAAID,CAAmB,EAAGJ,CAAK,CACrG,EAEMO,EAAa,KAAM,CACrB,YAAYC,EAAS,CACjBC,EAAiB,KAAMD,CAAO,EAC9B,KAAK,MAAQ,IAAM,CACf,IAAIE,EAAIC,GACPA,GAAMD,EAAK,KAAK,OAAS,MAAQA,IAAO,OAAS,OAASA,EAAG,WAAa,MAAQC,IAAO,QAAkBA,EAAG,KAAKD,EAAI,IAAI,MAAM,OAAO,CAAC,EACtI,KAAK,MACLE,EAAiB,KAAK,KAAMC,EAAS,KAAK,CAElD,EACA,KAAK,mBAAqB,IAAM,CAC5B,KAAK,cAAc,EAAK,CAC5B,EACA,KAAK,OAAS,GACd,KAAK,WAAa,GAClB,KAAK,OAAS,EACd,KAAK,MAAQ,UACb,KAAK,SAAW,M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ACtC,WAAW,UAAW,CAAE,MAAO,CAC3B,OAAU,CAAC,eAAe,EAC1B,WAAc,CAAC,mBAAmB,EAClC,OAAU,CAAC,eAAe,EAC1B,OAAU,CAAC,eAAe,EAC1B,IAAO,CAAC,YAAY,EACpB,MAAS,CAAC,cAAc,EACxB,SAAY,CAAC,iBAAiB,CACtC,CAAO,CACP"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import{r as t,h as n,b as o}from"./index-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/const i=`/*
|
|
1
|
+
import{r as t,h as n,b as o}from"./index-BuTEZuln.js";const i=`/*
|
|
4
2
|
* This file defines the layer order for all CSS layers used in KoliBri.
|
|
5
3
|
* The order is important as it determines the cascade priority.
|
|
6
4
|
*
|
|
@@ -282,4 +280,4 @@ import{r as t,h as n,b as o}from"./index-eI_RdheT.js";/*!
|
|
|
282
280
|
outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));
|
|
283
281
|
}
|
|
284
282
|
}`,l=class{constructor(e){t(this,e),this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0}}render(){return n(o,{key:"bf51c76e2d6568eea0d1a0c3047da6987aa249d8",_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},n("slot",{key:"b754666af76f0fcbb15ffeaa4d11b2f61d93abc4"}))}};l.style={default:i};export{l as kol_alert};
|
|
285
|
-
//# sourceMappingURL=kol-alert.entry-
|
|
283
|
+
//# sourceMappingURL=kol-alert.entry-Dd8hC8Eo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-alert.entry-tGSQAb_G.js","sources":["../../../../components/dist/esm/kol-alert.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h } from './index-BG8JuXph.js';\nimport { b as KolAlertWcTag } from './component-names-CkE54Ym7.js';\nimport './common-Dd0zJQbD.js';\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n opacity: 0;\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n animation-direction: normal;\\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\\n animation-fill-mode: forwards;\\n animation-iteration-count: 1;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__floating.hide {\\n animation-name: hideTooltip;\\n }\\n .kol-tooltip__floating.show {\\n animation-name: showTooltip;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes hideTooltip {\\n 0% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n display: none;\\n }\\n }\\n @keyframes showTooltip {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n display: flex;\\n place-items: center;\\n }\\n .kol-alert__container-content {\\n flex-grow: 1;\\n }\\n .kol-alert__closer {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n}\";\n\nconst KolAlert = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this._alert = false;\n this._hasCloser = false;\n this._level = 0;\n this._type = 'default';\n this._variant = 'msg';\n this.state = {\n _level: 0,\n };\n }\n render() {\n return (h(KolAlertWcTag, { key: 'bf51c76e2d6568eea0d1a0c3047da6987aa249d8', _alert: this._alert, _hasCloser: this._hasCloser, _label: this._label, _level: this._level, _on: this._on, _type: this._type, _variant: this._variant }, h(\"slot\", { key: 'b754666af76f0fcbb15ffeaa4d11b2f61d93abc4' })));\n }\n};\nKolAlert.style = {\n default: defaultStyleCss\n};\n\nexport { KolAlert as kol_alert };\n//# sourceMappingURL=kol-alert.entry.js.map\n"],"names":["defaultStyleCss","KolAlert","hostRef","registerInstance","h","KolAlertWcTag"],"mappings":"sDAAA;AAAA;AAAA,GAOA,MAAMA,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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KAAK,OAAS,GACd,KAAK,WAAa,GAClB,KAAK,OAAS,EACd,KAAK,MAAQ,UACb,KAAK,SAAW,MAChB,KAAK,MAAQ,CACT,OAAQ,CACpB,CACI,CACA,QAAS,CACL,OAAQE,EAAEC,EAAe,CAAE,IAAK,2CAA4C,OAAQ,KAAK,OAAQ,WAAY,KAAK,WAAY,OAAQ,KAAK,OAAQ,OAAQ,KAAK,OAAQ,IAAK,KAAK,IAAK,MAAO,KAAK,MAAO,SAAU,KAAK,QAAQ,EAAID,EAAE,OAAQ,CAAE,IAAK,0CAA0C,CAAE,CAAC,CACvS,CACJ,EACAH,EAAS,MAAQ,CACb,QAASD,CACb"}
|
|
1
|
+
{"version":3,"file":"kol-alert.entry-Dd8hC8Eo.js","sources":["../../../../components/dist/esm/kol-alert.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h } from './index-pomHlJYE.js';\nimport { b as KolAlertWcTag } from './component-names-CkE54Ym7.js';\nimport './common-Dd0zJQbD.js';\n\nconst defaultStyleCss = \"/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/* forward the rem function */\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n opacity: 0;\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n animation-direction: normal;\\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\\n animation-fill-mode: forwards;\\n animation-iteration-count: 1;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__floating.hide {\\n animation-name: hideTooltip;\\n }\\n .kol-tooltip__floating.show {\\n animation-name: showTooltip;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes hideTooltip {\\n 0% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n display: none;\\n }\\n }\\n @keyframes showTooltip {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-alert {\\n display: grid;\\n }\\n .kol-alert__container {\\n display: flex;\\n place-items: center;\\n }\\n .kol-alert__container-content {\\n flex-grow: 1;\\n }\\n .kol-alert__closer {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n}\";\n\nconst KolAlert = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this._alert = false;\n this._hasCloser = false;\n this._level = 0;\n this._type = 'default';\n this._variant = 'msg';\n this.state = {\n _level: 0,\n };\n }\n render() {\n return (h(KolAlertWcTag, { key: 'bf51c76e2d6568eea0d1a0c3047da6987aa249d8', _alert: this._alert, _hasCloser: this._hasCloser, _label: this._label, _level: this._level, _on: this._on, _type: this._type, _variant: this._variant }, h(\"slot\", { key: 'b754666af76f0fcbb15ffeaa4d11b2f61d93abc4' })));\n }\n};\nKolAlert.style = {\n default: defaultStyleCss\n};\n\nexport { KolAlert as kol_alert };\n//# sourceMappingURL=kol-alert.entry.js.map\n"],"names":["defaultStyle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-DAcY3F-T.js";const l=t=>t.length===0?"":t[0].toUpperCase(),b=t=>{const a=t.split(/\s+/),r=a[0],e=a[a.length-1];return a.length>=2&&r&&e?`${l(r)}${l(e)}`:l(t)},C=class{constructor(t){s(this,t),this.bgColorStr="#d3d3d3",this.colorStr="#000",this.handleColorChange=a=>{const r=i(a);this.bgColorStr=r.backgroundColor,this.colorStr=r.foregroundColor},this._color="#d3d3d3",this.state={_src:"",_label:"",_color:{backgroundColor:"#d3d3d3",foregroundColor:"#000"}}}render(){return o("div",{key:"04d0b5653648f532391c0b8f611ef3bd7d4e8bbf","aria-label":n("kol-avatar-alt",{placeholders:{name:this.state._label}}),class:"kol-avatar",role:"img",style:{backgroundColor:this.bgColorStr,color:this.colorStr}},this.state._src?o("img",{alt:"","aria-hidden":"true",class:"kol-avatar__image",src:this.state._src}):o("span",{"aria-hidden":"true",class:"kol-avatar__initials"},b(this.state._label.trim())))}validateColor(t){d(this,t,{defaultValue:"#d3d3d3",hooks:{beforePatch:this.handleColorChange}})}validateSrc(t){c(this,t)}validateLabel(t){h(this,t,{required:!0})}componentWillLoad(){this.validateColor(this._color),this.validateSrc(this._src),this.validateLabel(this._label)}static get watchers(){return{_color:["validateColor"],_src:["validateSrc"],_label:["validateLabel"]}}};export{C as kol_avatar_wc};
|
|
2
|
+
//# sourceMappingURL=kol-avatar-wc.entry-BMzt_h0u.js.map
|
package/dist/assets/{kol-avatar-wc.entry-kdfwoLDo.js.map → kol-avatar-wc.entry-BMzt_h0u.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-avatar-wc.entry-
|
|
1
|
+
{"version":3,"file":"kol-avatar-wc.entry-BMzt_h0u.js","sources":["../../../../components/dist/esm/kol-avatar-wc.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h } from './index-pomHlJYE.js';\nimport './common-Dd0zJQbD.js';\nimport { h as handleColorChange, v as validateColor } from './color-BOIEtqEM.js';\nimport { v as validateImageSource } from './image-source-BfBEJ0rX.js';\nimport { v as validateLabel } from './label-Dnmzb2S_.js';\nimport { t as translate } from './i18n-C5ifExT3.js';\nimport './i18n-ZF6JbdVP.js';\n\nconst formatNameAsInitial = (name) => {\n if (name.length === 0) {\n return '';\n }\n return name[0].toUpperCase();\n};\nconst formatLabelAsInitials = (label) => {\n const names = label.split(/\\s+/);\n const first = names[0];\n const last = names[names.length - 1];\n if (names.length >= 2 && first && last) {\n return `${formatNameAsInitial(first)}${formatNameAsInitial(last)}`;\n }\n return formatNameAsInitial(label);\n};\n\nconst KolAvatarWc = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.bgColorStr = '#d3d3d3';\n this.colorStr = '#000';\n this.handleColorChange = (value) => {\n const colorPair = handleColorChange(value);\n this.bgColorStr = colorPair.backgroundColor;\n this.colorStr = colorPair.foregroundColor;\n };\n this._color = '#d3d3d3';\n this.state = {\n _src: '',\n _label: '',\n _color: {\n backgroundColor: '#d3d3d3',\n foregroundColor: '#000',\n },\n };\n }\n render() {\n return (h(\"div\", { key: '04d0b5653648f532391c0b8f611ef3bd7d4e8bbf', \"aria-label\": translate('kol-avatar-alt', { placeholders: { name: this.state._label } }), class: \"kol-avatar\", role: \"img\", style: {\n backgroundColor: this.bgColorStr,\n color: this.colorStr,\n } }, this.state._src ? (h(\"img\", { alt: \"\", \"aria-hidden\": \"true\", class: \"kol-avatar__image\", src: this.state._src })) : (h(\"span\", { \"aria-hidden\": \"true\", class: \"kol-avatar__initials\" }, formatLabelAsInitials(this.state._label.trim())))));\n }\n validateColor(value) {\n validateColor(this, value, {\n defaultValue: '#d3d3d3',\n hooks: {\n beforePatch: this.handleColorChange,\n },\n });\n }\n validateSrc(value) {\n validateImageSource(this, value);\n }\n validateLabel(value) {\n validateLabel(this, value, {\n required: true,\n });\n }\n componentWillLoad() {\n this.validateColor(this._color);\n this.validateSrc(this._src);\n this.validateLabel(this._label);\n }\n static get watchers() { return {\n \"_color\": [\"validateColor\"],\n \"_src\": [\"validateSrc\"],\n \"_label\": [\"validateLabel\"]\n }; }\n};\n\nexport { KolAvatarWc as kol_avatar_wc };\n//# sourceMappingURL=kol-avatar-wc.entry.js.map\n"],"names":["formatNameAsInitial","name","formatLabelAsInitials","label","names","first","last","KolAvatarWc","hostRef","registerInstance","value","colorPair","handleColorChange","h","translate","validateColor","validateImageSource","validateLabel"],"mappings":"gQAWA,MAAMA,EAAuBC,GACrBA,EAAK,SAAW,EACT,GAEJA,EAAK,CAAC,EAAE,YAAW,EAExBC,EAAyBC,GAAU,CACrC,MAAMC,EAAQD,EAAM,MAAM,KAAK,EACzBE,EAAQD,EAAM,CAAC,EACfE,EAAOF,EAAMA,EAAM,OAAS,CAAC,EACnC,OAAIA,EAAM,QAAU,GAAKC,GAASC,EACvB,GAAGN,EAAoBK,CAAK,CAAC,GAAGL,EAAoBM,CAAI,CAAC,GAE7DN,EAAoBG,CAAK,CACpC,EAEMI,EAAc,KAAM,CACtB,YAAYC,EAAS,CACjBC,EAAiB,KAAMD,CAAO,EAC9B,KAAK,WAAa,UAClB,KAAK,SAAW,OAChB,KAAK,kBAAqBE,GAAU,CAChC,MAAMC,EAAYC,EAAkBF,CAAK,EACzC,KAAK,WAAaC,EAAU,gBAC5B,KAAK,SAAWA,EAAU,eAC9B,EACA,KAAK,OAAS,UACd,KAAK,MAAQ,CACT,KAAM,GACN,OAAQ,GACR,OAAQ,CACJ,gBAAiB,UACjB,gBAAiB,MACjC,CACA,CACI,CACA,QAAS,CACL,OAAQE,EAAE,MAAO,CAAE,IAAK,2CAA4C,aAAcC,EAAU,iBAAkB,CAAE,aAAc,CAAE,KAAM,KAAK,MAAM,MAAM,EAAI,EAAG,MAAO,aAAc,KAAM,MAAO,MAAO,CAC/L,gBAAiB,KAAK,WACtB,MAAO,KAAK,QAC5B,CAAa,EAAI,KAAK,MAAM,KAAQD,EAAE,MAAO,CAAE,IAAK,GAAI,cAAe,OAAQ,MAAO,oBAAqB,IAAK,KAAK,MAAM,IAAI,CAAE,EAAMA,EAAE,OAAQ,CAAE,cAAe,OAAQ,MAAO,sBAAsB,EAAIX,EAAsB,KAAK,MAAM,OAAO,KAAI,CAAE,CAAC,CAAE,CACxP,CACA,cAAcQ,EAAO,CACjBK,EAAc,KAAML,EAAO,CACvB,aAAc,UACd,MAAO,CACH,YAAa,KAAK,iBAClC,CACA,CAAS,CACL,CACA,YAAYA,EAAO,CACfM,EAAoB,KAAMN,CAAK,CACnC,CACA,cAAcA,EAAO,CACjBO,EAAc,KAAMP,EAAO,CACvB,SAAU,EACtB,CAAS,CACL,CACA,mBAAoB,CAChB,KAAK,cAAc,KAAK,MAAM,EAC9B,KAAK,YAAY,KAAK,IAAI,EAC1B,KAAK,cAAc,KAAK,MAAM,CAClC,CACA,WAAW,UAAW,CAAE,MAAO,CAC3B,OAAU,CAAC,eAAe,EAC1B,KAAQ,CAAC,aAAa,EACtB,OAAU,CAAC,eAAe,CAClC,CAAO,CACP"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import{r as e,h as t,c as o}from"./index-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/const i=`/* forward the rem function */
|
|
1
|
+
import{r as e,h as t,c as o}from"./index-BuTEZuln.js";const i=`/* forward the rem function */
|
|
4
2
|
/*
|
|
5
3
|
* This file defines the layer order for all CSS layers used in KoliBri.
|
|
6
4
|
* The order is important as it determines the cascade priority.
|
|
@@ -228,4 +226,4 @@ import{r as e,h as t,c as o}from"./index-eI_RdheT.js";/*!
|
|
|
228
226
|
font-size: calc(40 * 1rem / var(--kolibri-root-font-size, 16));
|
|
229
227
|
}
|
|
230
228
|
}`,a=class{constructor(n){e(this,n),this._color="#d3d3d3"}render(){return t(o,{key:"b50d593f2fcc07fb3a1c8a92786df6ddcbc917cf",_color:this._color,_src:this._src,_label:this._label})}};a.style={default:i};export{a as kol_avatar};
|
|
231
|
-
//# sourceMappingURL=kol-avatar.entry-
|
|
229
|
+
//# sourceMappingURL=kol-avatar.entry-BLxTJQeK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-avatar.entry-
|
|
1
|
+
{"version":3,"file":"kol-avatar.entry-BLxTJQeK.js","sources":["../../../../components/dist/esm/kol-avatar.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h } from './index-pomHlJYE.js';\nimport { c as KolAvatarWcTag } from './component-names-CkE54Ym7.js';\nimport './common-Dd0zJQbD.js';\n\nconst defaultStyleCss = \"/* forward the rem function */\\n/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n :host {\\n display: block;\\n }\\n}\\n@layer kol-component {\\n .kol-avatar,\\n .kol-avatar__image,\\n .kol-avatar__initials {\\n border-radius: 50%;\\n }\\n .kol-avatar {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n width: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-avatar__image, .kol-avatar__initials {\\n width: 100%;\\n height: 100%;\\n }\\n .kol-avatar__initials {\\n background-color: inherit;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n font-size: calc(40 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n}\";\n\nconst KolAvatar = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this._color = '#d3d3d3';\n }\n render() {\n return h(KolAvatarWcTag, { key: 'b50d593f2fcc07fb3a1c8a92786df6ddcbc917cf', _color: this._color, _src: this._src, _label: this._label });\n }\n};\nKolAvatar.style = {\n default: defaultStyleCss\n};\n\nexport { KolAvatar as kol_avatar };\n//# sourceMapp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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAElBC,EAAY,KAAM,CACpB,YAAYC,EAAS,CACjBC,EAAiB,KAAMD,CAAO,EAC9B,KAAK,OAAS,SAClB,CACA,QAAS,CACL,OAAOE,EAAEC,EAAgB,CAAE,IAAK,2CAA4C,OAAQ,KAAK,OAAQ,KAAM,KAAK,KAAM,OAAQ,KAAK,MAAM,CAAE,CAC3I,CACJ,EACAJ,EAAU,MAAQ,CACd,QAASD,CACb"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import{r as i,h as o,e as a,o as l,f as r,p as s,s as d}from"./index-
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/const b=`/* forward the rem function */
|
|
1
|
+
import{r as i,h as o,e as a,o as l,f as r,p as s,s as d}from"./index-BuTEZuln.js";import"./Alert-_tq2FoQ5-C1jHNIsn.js";import{c}from"./clsx-eK3rPvPS-B-dksMZM.js";import{h,v as m}from"./color-BOIEtqEM-RWCxOMKL.js";import{v as u}from"./icons-B5i9zwjJ-DHsM9jX2.js";import"./i18n-C5ifExT3-DAcY3F-T.js";import{K as f}from"./Span-B8GtyhT--Udo4oazi.js";import{n as p}from"./dev.utils-Cn_6kyQ0-n4725Gnv.js";import"./tslib.es6-CxX45GIN-BGVaTf34.js";import"./markdown-BSkXjaSn-BHK7SX3w.js";import"./isObject-DvSELytj-DhzEQer1.js";import"./Heading-ClMNjISM-CgG5k5qN.js";import"./Icon-DbAAa0Pk-Bzk6m_XY.js";import"./reuse-CX4AQDkS-BaVSFETn.js";import"./InternalUnderlinedBadgeText-DoYMr6GR-BA3snmms.js";const b=`/* forward the rem function */
|
|
4
2
|
/*
|
|
5
3
|
* This file defines the layer order for all CSS layers used in KoliBri.
|
|
6
4
|
* The order is important as it determines the cascade priority.
|
|
@@ -272,4 +270,4 @@ import{r as i,h as o,e as a,o as l,f as r,p as s,s as d}from"./index-eI_RdheT.js
|
|
|
272
270
|
color: inherit;
|
|
273
271
|
}
|
|
274
272
|
}`;r("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const g=class{constructor(n){i(this,n),this.bgColorStr="#000",this.colorStr="#fff",this.id=p(),this.catchSmartButtonRef=t=>{this.smartButtonRef=t},this._color="#000",this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"},_icons:{}},this.handleColorChange=t=>{const e=h(t);this.bgColorStr=e.backgroundColor,this.colorStr=e.foregroundColor}}renderSmartButton(n){return o(a,{ref:this.catchSmartButtonRef,class:"kol-badge__smart-button",_ariaControls:this.id,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign,_buttonVariant:n._variant})}async kolFocus(){var n;await((n=this.smartButtonRef)===null||n===void 0?void 0:n.kolFocus())}render(){const n=typeof this.state._smartButton=="object"&&this.state._smartButton!==null;return o("span",{key:"5b084075cd532d21ccb5c7a2c7ac5e87632547ed",class:c("kol-badge",{"kol-badge--has-smart-button":typeof this.state._smartButton=="object"&&this.state._smartButton!==null}),style:{backgroundColor:this.bgColorStr,color:this.colorStr}},o(f,{key:"216218e17303892e8c18423134f010a5e9f7f1d9",class:"kol-badge__label",id:n?this.id:void 0,allowMarkdown:!0,icons:this.state._icons,label:this._label}),n&&this.renderSmartButton(this.state._smartButton))}validateIcons(n){u(this,n)}validateColor(n){m(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){l(n,()=>{try{n=s(n)}catch{}d(this,"_smartButton",n)})}componentWillLoad(){this.validateIcons(this._icons),this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}}};g.style={default:b};export{g as kol_badge};
|
|
275
|
-
//# sourceMappingURL=kol-badge.entry-
|
|
273
|
+
//# sourceMappingURL=kol-badge.entry-tgnBfo7R.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kol-badge.entry-Ixg7qkjb.js","sources":["../../../../components/dist/esm/kol-badge.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h } from './index-BG8JuXph.js';\nimport './Alert-B3jx2jlL.js';\nimport { c as clsx } from './clsx-eK3rPvPS.js';\nimport { d as KolButtonWcTag } from './component-names-CkE54Ym7.js';\nimport { f as featureHint, o as objectObjectHandler, p as parseJson, s as setState } from './common-Dd0zJQbD.js';\nimport { h as handleColorChange, v as validateColor } from './color-BOIEtqEM.js';\nimport { v as validateIcons } from './icons-B5i9zwjJ.js';\nimport './i18n-C5ifExT3.js';\nimport { K as KolSpanFc } from './Span-BUH9xZLf.js';\nimport { n as nonce } from './dev.utils-BB49mRnl.js';\nimport './tslib.es6-CxX45GIN.js';\nimport './bem-C27SfH6w.js';\nimport './browser-DiRe0qUf.js';\nimport './Heading-DqUSmJEO.js';\nimport './i18n-ZF6JbdVP.js';\nimport './Icon-B-YLFbev.js';\nimport './reuse-CX4AQDkS.js';\nimport './markdown-BSkXjaSn.js';\nimport './InternalUnderlinedBadgeText-CodJXcQG.js';\nimport './isObject-DvSELytj.js';\n\nconst defaultStyleCss = \"/* forward the rem function */\\n/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n opacity: 0;\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n animation-direction: normal;\\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\\n animation-fill-mode: forwards;\\n animation-iteration-count: 1;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__floating.hide {\\n animation-name: hideTooltip;\\n }\\n .kol-tooltip__floating.show {\\n animation-name: showTooltip;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes hideTooltip {\\n 0% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n display: none;\\n }\\n }\\n @keyframes showTooltip {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-badge {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n display: inline-flex;\\n place-items: center;\\n }\\n .kol-badge .kol-badge__smart-button .button {\\n color: inherit;\\n }\\n}\";\n\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\nconst KolBadge = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.bgColorStr = '#000';\n this.colorStr = '#fff';\n this.id = nonce();\n this.catchSmartButtonRef = (ref) => {\n this.smartButtonRef = ref;\n };\n this._color = '#000';\n this.state = {\n _color: {\n backgroundColor: '#000',\n foregroundColor: '#fff',\n },\n _icons: {},\n };\n this.handleColorChange = (value) => {\n const colorPair = handleColorChange(value);\n this.bgColorStr = colorPair.backgroundColor;\n this.colorStr = colorPair.foregroundColor;\n };\n }\n renderSmartButton(props) {\n return (h(KolButtonWcTag, { ref: this.catchSmartButtonRef, class: \"kol-badge__smart-button\", _ariaControls: this.id, _customClass: props._customClass, _disabled: props._disabled, _hideLabel: true, _icons: props._icons, _id: props._id, _label: props._label, _on: props._on, _tooltipAlign: props._tooltipAlign, _buttonVariant: props._variant }));\n }\n async kolFocus() {\n var _a;\n await ((_a = this.smartButtonRef) === null || _a === void 0 ? void 0 : _a.kolFocus());\n }\n render() {\n const hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;\n return (h(\"span\", { key: '5b084075cd532d21ccb5c7a2c7ac5e87632547ed', class: clsx('kol-badge', {\n 'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,\n }), style: {\n backgroundColor: this.bgColorStr,\n color: this.colorStr,\n } }, h(KolSpanFc, { key: '216218e17303892e8c18423134f010a5e9f7f1d9', class: \"kol-badge__label\", id: hasSmartButton ? this.id : undefined, allowMarkdown: true, icons: this.state._icons, label: this._label }), hasSmartButton && this.renderSmartButton(this.state._smartButton)));\n }\n validateIcons(value) {\n validateIcons(this, value);\n }\n validateColor(value) {\n validateColor(this, value, {\n defaultValue: '#000',\n hooks: {\n beforePatch: this.handleColorChange,\n },\n });\n }\n validateSmartButton(value) {\n objectObjectHandler(value, () => {\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n setState(this, '_smartButton', value);\n });\n }\n componentWillLoad() {\n this.validateIcons(this._icons);\n this.validateColor(this._color);\n this.validateSmartButton(this._smartButton);\n }\n static get watchers() { return {\n \"_icons\": [\"validateIcons\"],\n \"_color\": [\"validateColor\"],\n \"_smartButton\": [\"validateSmartButton\"]\n }; }\n};\nKolBadge.style = {\n default: defaultStyleCss\n};\n\nexport { KolBadge as kol_badge };\n//# sourceMappingURL=kol-badge.entry.js.map\n"],"names":["defaultStyleCss","featureHint","KolBadge","hostRef","registerInstance","nonce","ref","value","colorPair","handleColorChange","props","h","KolButtonWcTag","_a","hasSmartButton","clsx","KolSpanFc","validateIcons","validateColor","objectObjectHandler","parseJson","setState"],"mappings":"mrBAAA;AAAA;AAAA,GAwBA,MAAMA,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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U,CAAC,eAAe,EAC1B,aAAgB,CAAC,qBAAqB,CAC9C,CAAO,CACP,EACAL,EAAS,MAAQ,CACb,QAASF,CACb"}
|
|
1
|
+
{"version":3,"file":"kol-badge.entry-tgnBfo7R.js","sources":["../../../../components/dist/esm/kol-badge.entry.js"],"sourcesContent":["/*!\n * KoliBri - The accessible HTML-Standard\n */\nimport { r as registerInstance, h } from './index-pomHlJYE.js';\nimport './Alert-_tq2FoQ5.js';\nimport { c as clsx } from './clsx-eK3rPvPS.js';\nimport { d as KolButtonWcTag } from './component-names-CkE54Ym7.js';\nimport { f as featureHint, o as objectObjectHandler, p as parseJson, s as setState } from './common-Dd0zJQbD.js';\nimport { h as handleColorChange, v as validateColor } from './color-BOIEtqEM.js';\nimport { v as validateIcons } from './icons-B5i9zwjJ.js';\nimport './i18n-C5ifExT3.js';\nimport { K as KolSpanFc } from './Span-B8GtyhT-.js';\nimport { n as nonce } from './dev.utils-Cn_6kyQ0.js';\nimport './tslib.es6-CxX45GIN.js';\nimport './bem-C27SfH6w.js';\nimport './browser-DiRe0qUf.js';\nimport './Heading-ClMNjISM.js';\nimport './i18n-ZF6JbdVP.js';\nimport './Icon-DbAAa0Pk.js';\nimport './reuse-CX4AQDkS.js';\nimport './markdown-BSkXjaSn.js';\nimport './InternalUnderlinedBadgeText-DoYMr6GR.js';\nimport './isObject-DvSELytj.js';\n\nconst defaultStyleCss = \"/* forward the rem function */\\n/*\\n* This file defines the layer order for all CSS layers used in KoliBri.\\n* The order is important as it determines the cascade priority.\\n*\\n* Layer order (lowest to highest priority):\\n* 1. kol-a11y - Accessibility defaults and requirements\\n* 2. kol-global - Global component styles and resets\\n* 3. kol-component - Component-specific styles\\n* 4. kol-theme-global - Theme-specific global styles\\n* 5. kol-theme-component - Theme-specific component styles\\n*/\\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\\n/*\\n * This file contains all rules for accessibility.\\n */\\n@layer kol-a11y {\\n :host {\\n /*\\n * Minimum size of interactive elements.\\n */\\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\\n /*\\n * No element should be used without verifying the contrast ratio of its background and font colors.\\n * By initially setting the background color to white and the font color to black,\\n * the contrast ratio is ensured and explicit adjustment is forced.\\n */\\n color: black;\\n background-color: white;\\n /*\\n * Verdana is an accessible font that can be used without requiring additional loading time.\\n */\\n font-family: Verdana;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n /*\\n * Text should be aligned left by default to provide a predictable starting point.\\n */\\n text-align: left;\\n }\\n * {\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n hyphens: auto;\\n /*\\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\\n */\\n word-break: break-word;\\n }\\n /*\\n * All interactive elements should have a minimum size of to-rem(44).\\n */\\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\\n /* option, */\\n /* select, */\\n /* textarea, */\\n button,\\n .kol-input .input {\\n min-width: var(--a11y-min-size);\\n min-height: var(--a11y-min-size);\\n }\\n /*\\n * Some interactive elements should not inherit the font-family and font-size.\\n */\\n a,\\n button,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n input,\\n option,\\n select,\\n textarea {\\n /*\\n * All elements should inherit the text color from his parent element.\\n */\\n color: inherit;\\n /*\\n * All elements should inherit the font family from his parent element.\\n */\\n font-family: inherit;\\n /*\\n * All elements should inherit the font size from his parent element.\\n */\\n font-size: inherit;\\n /*\\n * Letter spacing is required for all texts.\\n */\\n letter-spacing: inherit;\\n /*\\n * Word spacing is required for all texts.\\n */\\n word-spacing: inherit;\\n }\\n /**\\n * Sometimes we need the semantic element for accessibility reasons,\\n * but we don't want to show it.\\n *\\n * - https://www.a11yproject.com/posts/how-to-hide-content/\\n */\\n .visually-hidden {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 1px;\\n height: 1px;\\n overflow: hidden;\\n white-space: nowrap;\\n clip-path: inset(50%);\\n }\\n}\\n@layer kol-global {\\n /*\\n * Dieses CSS stellt sicher, dass der Standard-Style\\n * von A und Button resettet werden.\\n */\\n :is(a, button) {\\n background-color: transparent;\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n border: none;\\n /* 100% needed for custom width from outside */\\n }\\n /*\\n * Ensure elements with hidden attribute to be actually not visible\\n * @see https://meowni.ca/hidden.is.a.lie.html\\n */\\n [hidden] {\\n display: none !important;\\n }\\n .badge-text-hint {\\n color: black;\\n background-color: lightgray;\\n }\\n}\\n@layer kol-global {\\n :host {\\n /*\\n * The max-width is needed to prevent the table from overflowing the\\n * parent node, if the table is wider than the parent node.\\n */\\n max-width: 100%;\\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n * {\\n /*\\n * We prefer to box-sizing: border-box for all elements.\\n */\\n box-sizing: border-box;\\n }\\n .kol-span {\\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\\n display: flex;\\n flex-flow: column;\\n align-items: center;\\n justify-content: center;\\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\\n }\\n .kol-span__container {\\n display: flex;\\n align-items: center;\\n }\\n a,\\n button {\\n cursor: pointer;\\n }\\n .kol-span .kol-span__label--hide-label .kol-span__label {\\n display: none;\\n }\\n /* Reset browser agent style. */\\n button:disabled {\\n color: unset;\\n }\\n .disabled label,\\n .disabled:focus-within label,\\n [aria-disabled=true],\\n [aria-disabled=true]:focus,\\n [disabled],\\n [disabled]:focus {\\n opacity: 0.5;\\n outline: none;\\n cursor: not-allowed;\\n }\\n [aria-disabled=true]:focus .kol-span,\\n [disabled]:focus .kol-span {\\n outline: none !important;\\n }\\n}\\n@layer kol-component {\\n .kol-tooltip {\\n display: contents;\\n }\\n .kol-tooltip__floating {\\n opacity: 0;\\n display: none;\\n position: fixed;\\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\\n top: 0;\\n left: 0;\\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\\n width: var(--kol-tooltip-width, max-content);\\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\\n max-width: 90vw;\\n max-height: 90vh;\\n animation-direction: normal;\\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\\n animation-fill-mode: forwards;\\n animation-iteration-count: 1;\\n animation-timing-function: ease-in;\\n }\\n .kol-tooltip__floating.hide {\\n animation-name: hideTooltip;\\n }\\n .kol-tooltip__floating.show {\\n animation-name: showTooltip;\\n }\\n .kol-tooltip__arrow {\\n transform: rotate(45deg);\\n color: #000;\\n background-color: #fff;\\n position: absolute;\\n z-index: 999;\\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\\n }\\n .kol-tooltip__content {\\n color: #000;\\n background-color: #fff;\\n position: relative;\\n z-index: 1000;\\n }\\n @keyframes hideTooltip {\\n 0% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n display: none;\\n }\\n }\\n @keyframes showTooltip {\\n 0% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 1;\\n }\\n }\\n}\\n@layer kol-component {\\n .kol-badge {\\n /* Visible with forced colors */\\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\\n display: inline-flex;\\n place-items: center;\\n }\\n .kol-badge .kol-badge__smart-button .button {\\n color: inherit;\\n }\\n}\";\n\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\nconst KolBadge = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.bgColorStr = '#000';\n this.colorStr = '#fff';\n this.id = nonce();\n this.catchSmartButtonRef = (ref) => {\n this.smartButtonRef = ref;\n };\n this._color = '#000';\n this.state = {\n _color: {\n backgroundColor: '#000',\n foregroundColor: '#fff',\n },\n _icons: {},\n };\n this.handleColorChange = (value) => {\n const colorPair = handleColorChange(value);\n this.bgColorStr = colorPair.backgroundColor;\n this.colorStr = colorPair.foregroundColor;\n };\n }\n renderSmartButton(props) {\n return (h(KolButtonWcTag, { ref: this.catchSmartButtonRef, class: \"kol-badge__smart-button\", _ariaControls: this.id, _customClass: props._customClass, _disabled: props._disabled, _hideLabel: true, _icons: props._icons, _id: props._id, _label: props._label, _on: props._on, _tooltipAlign: props._tooltipAlign, _buttonVariant: props._variant }));\n }\n async kolFocus() {\n var _a;\n await ((_a = this.smartButtonRef) === null || _a === void 0 ? void 0 : _a.kolFocus());\n }\n render() {\n const hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;\n return (h(\"span\", { key: '5b084075cd532d21ccb5c7a2c7ac5e87632547ed', class: clsx('kol-badge', {\n 'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,\n }), style: {\n backgroundColor: this.bgColorStr,\n color: this.colorStr,\n } }, h(KolSpanFc, { key: '216218e17303892e8c18423134f010a5e9f7f1d9', class: \"kol-badge__label\", id: hasSmartButton ? this.id : undefined, allowMarkdown: true, icons: this.state._icons, label: this._label }), hasSmartButton && this.renderSmartButton(this.state._smartButton)));\n }\n validateIcons(value) {\n validateIcons(this, value);\n }\n validateColor(value) {\n validateColor(this, value, {\n defaultValue: '#000',\n hooks: {\n beforePatch: this.handleColorChange,\n },\n });\n }\n validateSmartButton(value) {\n objectObjectHandler(value, () => {\n try {\n value = parseJson(value);\n }\n catch (e) {\n }\n setState(this, '_smartButton', value);\n });\n }\n componentWillLoad() {\n this.validateIcons(this._icons);\n this.validateColor(this._color);\n this.validateSmartButton(this._smartButton);\n }\n static get watchers() { return {\n \"_icons\": [\"validateIcons\"],\n \"_color\": [\"validateColor\"],\n \"_smartButton\": [\"validateSmartButton\"]\n }; }\n};\nKolBadge.style = {\n default: defaultStyleCss\n};\n\nexport { KolBadge as kol_badge };\n//# sourceMappingURL=kol-badge.entry.js.map\n"],"names":["defaultStyleCss","featureHint","KolBadge","hostRef","registerInstance","nonce","ref","value","colorPair","handleColorChange","props","h","KolButtonWcTag","_a","hasSmartButton","clsx","KolSpanFc","validateIcons","validateColor","objectObjectHandler","parseJson","setState"],"mappings":"mrBAwBA,MAAMA,EAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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