@public-ui/components 4.5.0-rc.8 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/custom-elements.json +1 -1
- package/dist/cjs/{Heading-yiwXjRrz.js → Heading-CFe7VL6f.js} +3 -3
- package/dist/cjs/{Heading-yiwXjRrz.js.map → Heading-CFe7VL6f.js.map} +1 -1
- package/dist/cjs/{api-BDT5xkx5.js → api-kNqVTMqf.js} +8 -8
- package/dist/cjs/{api-BDT5xkx5.js.map → api-kNqVTMqf.js.map} +1 -1
- package/dist/cjs/{api-BI1qXrGa.js → api-n8IopicV.js} +12 -12
- package/dist/cjs/{api-BI1qXrGa.js.map → api-n8IopicV.js.map} +1 -1
- package/dist/cjs/{app-globals-DPVGNVgE.js → app-globals-KA8S4Kl9.js} +4 -4
- package/dist/cjs/{app-globals-DPVGNVgE.js.map → app-globals-KA8S4Kl9.js.map} +1 -1
- package/dist/cjs/{base-CaQNXZrN.js → base-B07RMt0-.js} +5 -5
- package/dist/cjs/{base-CaQNXZrN.js.map → base-B07RMt0-.js.map} +1 -1
- package/dist/cjs/{base-DlsemYqM.js → base-Bw44v5Il.js} +4 -4
- package/dist/cjs/{base-DlsemYqM.js.map → base-Bw44v5Il.js.map} +1 -1
- package/dist/cjs/{base-FZ2Hemhr.js → base-DGx5qxja.js} +16 -16
- package/dist/cjs/{base-FZ2Hemhr.js.map → base-DGx5qxja.js.map} +1 -1
- package/dist/cjs/{base-B_M9Y7nD.js → base-Og0FJHrO.js} +4 -4
- package/dist/cjs/{base-B_M9Y7nD.js.map → base-Og0FJHrO.js.map} +1 -1
- package/dist/cjs/{base-web-component-BK8X1O8C.js → base-web-component-9l9kVbBw.js} +5 -5
- package/dist/cjs/{base-web-component-BK8X1O8C.js.map → base-web-component-9l9kVbBw.js.map} +1 -1
- package/dist/cjs/{base-web-component-GLk66TOu.js → base-web-component-MA3Hmf00.js} +7 -7
- package/dist/cjs/{base-web-component-GLk66TOu.js.map → base-web-component-MA3Hmf00.js.map} +1 -1
- package/dist/cjs/{behavior-BEaXHesG.js → behavior-CddJDVDz.js} +3 -3
- package/dist/cjs/{behavior-BEaXHesG.js.map → behavior-CddJDVDz.js.map} +1 -1
- package/dist/cjs/{component-Bc8fDajy.js → component-8M23HGR8.js} +5 -5
- package/dist/cjs/{component-Bc8fDajy.js.map → component-8M23HGR8.js.map} +1 -1
- package/dist/cjs/{component-CPVFCnaN.js → component-B1t_MP4V.js} +7 -7
- package/dist/cjs/{component-CPVFCnaN.js.map → component-B1t_MP4V.js.map} +1 -1
- package/dist/cjs/{component-Dw6Tq7Wb.js → component-B92xMW4N.js} +4 -4
- package/dist/cjs/{component-Dw6Tq7Wb.js.map → component-B92xMW4N.js.map} +1 -1
- package/dist/cjs/{component-3EZdZbDH.js → component-BGdViN9u.js} +3 -3
- package/dist/cjs/{component-3EZdZbDH.js.map → component-BGdViN9u.js.map} +1 -1
- package/dist/cjs/{component-Bj4QdlXm.js → component-BZKcc9iM.js} +5 -5
- package/dist/cjs/{component-Bj4QdlXm.js.map → component-BZKcc9iM.js.map} +1 -1
- package/dist/cjs/{component-CAkixzEQ.js → component-C8WDkeRK.js} +3 -3
- package/dist/cjs/{component-CAkixzEQ.js.map → component-C8WDkeRK.js.map} +1 -1
- package/dist/cjs/{component-Du98sklA.js → component-CESKZB76.js} +3 -3
- package/dist/cjs/{component-Du98sklA.js.map → component-CESKZB76.js.map} +1 -1
- package/dist/cjs/{component-Be3QHUyC.js → component-CQRRF1jV.js} +3 -3
- package/dist/cjs/{component-Be3QHUyC.js.map → component-CQRRF1jV.js.map} +1 -1
- package/dist/cjs/{component-B96XYPtn.js → component-D7IXFVHR.js} +4 -4
- package/dist/cjs/{component-B96XYPtn.js.map → component-D7IXFVHR.js.map} +1 -1
- package/dist/cjs/{component-BUCx7i5o.js → component-Dzx6SM5K.js} +7 -7
- package/dist/cjs/{component-BUCx7i5o.js.map → component-Dzx6SM5K.js.map} +1 -1
- package/dist/cjs/{component-Dd-PS3jp.js → component-K9JCKLMC.js} +4 -4
- package/dist/cjs/{component-Dd-PS3jp.js.map → component-K9JCKLMC.js.map} +1 -1
- package/dist/cjs/{component-DjDOgcWW.js → component-inHq7qad.js} +5 -5
- package/dist/cjs/{component-DjDOgcWW.js.map → component-inHq7qad.js.map} +1 -1
- package/dist/cjs/{dev.utils-DybQ4euF.js → dev.utils-CIsKrkDZ.js} +3 -3
- package/dist/cjs/{dev.utils-DybQ4euF.js.map → dev.utils-CIsKrkDZ.js.map} +1 -1
- package/dist/cjs/{devtools-Bw5sQJOl.js → devtools-DEHRYx1J.js} +4 -4
- package/dist/cjs/{devtools-Bw5sQJOl.js.map → devtools-DEHRYx1J.js.map} +1 -1
- package/dist/cjs/{field-control-4CnbMR0i.js → field-control-gMhh35Xz.js} +8 -8
- package/dist/cjs/{field-control-4CnbMR0i.js.map → field-control-gMhh35Xz.js.map} +1 -1
- package/dist/cjs/{group-BCkxYeMA.js → group-eUk7QHkH.js} +5 -5
- package/dist/cjs/{group-BCkxYeMA.js.map → group-eUk7QHkH.js.map} +1 -1
- package/dist/cjs/{index-RAfZF5x0.js → index-CjTDipy9.js} +3 -3
- package/dist/cjs/index-CjTDipy9.js.map +1 -0
- package/dist/cjs/{input-7t7ZvgAy.js → input-D1hDtOel.js} +5 -5
- package/dist/cjs/{input-7t7ZvgAy.js.map → input-D1hDtOel.js.map} +1 -1
- package/dist/cjs/{input-container-BUK2Fp_t.js → input-container-C9wW0ZFj.js} +7 -7
- package/dist/cjs/{input-container-BUK2Fp_t.js.map → input-container-C9wW0ZFj.js.map} +1 -1
- package/dist/cjs/{item-K1SS6pAu.js → item-C6TgTi4l.js} +4 -4
- package/dist/cjs/{item-K1SS6pAu.js.map → item-C6TgTi4l.js.map} +1 -1
- package/dist/cjs/{item-DO176juh.js → item-D2TI8Iec.js} +4 -4
- package/dist/cjs/{item-DO176juh.js.map → item-D2TI8Iec.js.map} +1 -1
- package/dist/cjs/{item-D8Zz2ROC.js → item-DoAJ6Wmk.js} +3 -3
- package/dist/cjs/{item-D8Zz2ROC.js.map → item-DoAJ6Wmk.js.map} +1 -1
- package/dist/cjs/{item-BInO5rWQ.js → item-se0KVw5y.js} +8 -8
- package/dist/cjs/{item-BInO5rWQ.js.map → item-se0KVw5y.js.map} +1 -1
- package/dist/cjs/kol-abbr.cjs.entry.js +2 -2
- package/dist/cjs/kol-accordion.cjs.entry.js +7 -7
- package/dist/cjs/kol-alert.cjs.entry.js +11 -11
- package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js +10 -10
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +9 -9
- package/dist/cjs/kol-button-link.cjs.entry.js +10 -10
- package/dist/cjs/kol-button.cjs.entry.js +10 -10
- package/dist/cjs/kol-card.cjs.entry.js +11 -11
- package/dist/cjs/kol-click-button.cjs.entry.js +2 -2
- package/dist/cjs/kol-combobox.cjs.entry.js +18 -18
- package/dist/cjs/kol-details.cjs.entry.js +7 -7
- package/dist/cjs/kol-dialog.cjs.entry.js +13 -13
- package/dist/cjs/kol-drawer.cjs.entry.js +12 -12
- package/dist/cjs/kol-form.cjs.entry.js +12 -12
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +3 -3
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +17 -17
- package/dist/cjs/kol-input-color.cjs.entry.js +18 -18
- package/dist/cjs/kol-input-date.cjs.entry.js +18 -18
- package/dist/cjs/kol-input-email.cjs.entry.js +20 -20
- package/dist/cjs/kol-input-file.cjs.entry.js +17 -17
- package/dist/cjs/kol-input-number.cjs.entry.js +18 -18
- package/dist/cjs/kol-input-password.cjs.entry.js +20 -20
- package/dist/cjs/kol-input-radio.cjs.entry.js +17 -17
- package/dist/cjs/kol-input-range.cjs.entry.js +18 -18
- package/dist/cjs/kol-input-text.cjs.entry.js +20 -20
- package/dist/cjs/kol-kolibri.cjs.entry.js +2 -2
- package/dist/cjs/kol-link-button.cjs.entry.js +10 -10
- package/dist/cjs/kol-link.cjs.entry.js +10 -10
- package/dist/cjs/kol-meter.cjs.entry.js +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +13 -13
- package/dist/cjs/kol-nav.cjs.entry.js +13 -13
- package/dist/cjs/kol-pagination.cjs.entry.js +18 -18
- package/dist/cjs/kol-popover-button.cjs.entry.js +11 -11
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-quote.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +17 -17
- package/dist/cjs/kol-single-select.cjs.entry.js +18 -18
- package/dist/cjs/kol-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/kol-skip-nav.cjs.entry.js +9 -9
- package/dist/cjs/kol-spin.cjs.entry.js +3 -3
- package/dist/cjs/kol-split-button.cjs.entry.js +12 -12
- package/dist/cjs/kol-table-stateful.cjs.entry.js +25 -25
- package/dist/cjs/kol-table-stateless.cjs.entry.js +19 -19
- package/dist/cjs/kol-tabs.cjs.entry.js +9 -9
- package/dist/cjs/kol-textarea.cjs.entry.js +17 -17
- package/dist/cjs/kol-toast-container.cjs.entry.js +11 -11
- package/dist/cjs/kol-toolbar.cjs.entry.js +11 -11
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +4 -4
- package/dist/cjs/kol-tree-item.cjs.entry.js +9 -9
- package/dist/cjs/kol-tree.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +9 -9
- package/dist/cjs/kolibri.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{resolve-props-BBVQo_N5.js → resolve-props-JqnN_2MF.js} +3 -3
- package/dist/cjs/{resolve-props-BBVQo_N5.js.map → resolve-props-JqnN_2MF.js.map} +1 -1
- package/dist/cjs/{scroll-lock-zJbOf1Xr.js → scroll-lock-CxkP-oj1.js} +3 -3
- package/dist/cjs/{scroll-lock-zJbOf1Xr.js.map → scroll-lock-CxkP-oj1.js.map} +1 -1
- package/dist/cjs/{suggestions-quLXODgi.js → suggestions-BDfdREI5.js} +4 -4
- package/dist/cjs/{suggestions-quLXODgi.js.map → suggestions-BDfdREI5.js.map} +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/{toggle-handler-CENFGRWT.js → toggle-handler-Bm0e15f-.js} +5 -5
- package/dist/cjs/{toggle-handler-CENFGRWT.js.map → toggle-handler-Bm0e15f-.js.map} +1 -1
- package/dist/collection/components/accordion/style.css +2 -2
- package/dist/collection/components/alert/style.css +2 -2
- package/dist/collection/components/badge/style.css +2 -2
- package/dist/collection/components/breadcrumb/style.css +2 -2
- package/dist/collection/components/button/style.css +2 -2
- package/dist/collection/components/button-link/style.css +2 -2
- package/dist/collection/components/card/style.css +2 -2
- package/dist/collection/components/combobox/style.css +2 -2
- package/dist/collection/components/details/style.css +2 -2
- package/dist/collection/components/dialog/style.css +2 -2
- package/dist/collection/components/drawer/style.css +2 -2
- package/dist/collection/components/form/style.css +2 -2
- package/dist/collection/components/icon/style.css +2 -2
- package/dist/collection/components/input-checkbox/style.css +2 -2
- package/dist/collection/components/input-color/style.css +2 -2
- package/dist/collection/components/input-date/style.css +2 -2
- package/dist/collection/components/input-email/style.css +2 -2
- package/dist/collection/components/input-file/style.css +2 -2
- package/dist/collection/components/input-number/style.css +2 -2
- package/dist/collection/components/input-password/style.css +2 -2
- package/dist/collection/components/input-radio/style.css +2 -2
- package/dist/collection/components/input-range/style.css +2 -2
- package/dist/collection/components/input-text/style.css +2 -2
- package/dist/collection/components/link/style.css +2 -2
- package/dist/collection/components/link-button/style.css +2 -2
- package/dist/collection/components/modal/style.css +2 -2
- package/dist/collection/components/nav/style.css +2 -2
- package/dist/collection/components/pagination/style.css +2 -2
- package/dist/collection/components/popover-button/style.css +2 -2
- package/dist/collection/components/select/style.css +2 -2
- package/dist/collection/components/single-select/style.css +2 -2
- package/dist/collection/components/skip-nav/style.css +2 -2
- package/dist/collection/components/split-button/style.css +2 -2
- package/dist/collection/components/table-stateful/style.css +2 -2
- package/dist/collection/components/table-stateless/style.css +2 -2
- package/dist/collection/components/tabs/style.css +2 -2
- package/dist/collection/components/textarea/style.css +2 -2
- package/dist/collection/components/toaster/style.css +2 -2
- package/dist/collection/components/toolbar/style.css +2 -2
- package/dist/collection/components/tree-item/style.css +2 -2
- package/dist/collection/components/version/style.css +2 -2
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-dialog.js +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/esm/{Heading-BctDgC7M.js → Heading-DYEtnAIe.js} +3 -3
- package/dist/{kolibri/Heading-BctDgC7M.js.map → esm/Heading-DYEtnAIe.js.map} +1 -1
- package/dist/esm/{api-B6fEjFVl.js → api-Bhr2ic7C.js} +12 -12
- package/dist/{kolibri/api-B6fEjFVl.js.map → esm/api-Bhr2ic7C.js.map} +1 -1
- package/dist/esm/{api-T-JuZMlj.js → api-DwdE0qU0.js} +8 -8
- package/dist/esm/{api-T-JuZMlj.js.map → api-DwdE0qU0.js.map} +1 -1
- package/dist/esm/{app-globals-CvvWI2x9.js → app-globals-DlrwRj26.js} +4 -4
- package/dist/esm/{app-globals-CvvWI2x9.js.map → app-globals-DlrwRj26.js.map} +1 -1
- package/dist/esm/{base-Dvr4F_Pr.js → base-BwsdAVVP.js} +16 -16
- package/dist/{kolibri/base-Dvr4F_Pr.js.map → esm/base-BwsdAVVP.js.map} +1 -1
- package/dist/esm/{base-BbVXW6YI.js → base-CQQKxfxv.js} +4 -4
- package/dist/{kolibri/base-BbVXW6YI.js.map → esm/base-CQQKxfxv.js.map} +1 -1
- package/dist/esm/{base-BARjFMg1.js → base-CdUYL1Y_.js} +5 -5
- package/dist/esm/{base-BARjFMg1.js.map → base-CdUYL1Y_.js.map} +1 -1
- package/dist/esm/{base-D8yYjJsn.js → base-D5a-Ls-4.js} +4 -4
- package/dist/{kolibri/base-D8yYjJsn.js.map → esm/base-D5a-Ls-4.js.map} +1 -1
- package/dist/esm/{base-web-component-DU3hnIWD.js → base-web-component-6IoFcVM9.js} +7 -7
- package/dist/{kolibri/base-web-component-DU3hnIWD.js.map → esm/base-web-component-6IoFcVM9.js.map} +1 -1
- package/dist/esm/{base-web-component-BzB5tP9s.js → base-web-component-CyCs0EpM.js} +5 -5
- package/dist/{kolibri/base-web-component-BzB5tP9s.js.map → esm/base-web-component-CyCs0EpM.js.map} +1 -1
- package/dist/esm/{behavior-CbqCHL6O.js → behavior-COQhqcG7.js} +3 -3
- package/dist/{kolibri/behavior-CbqCHL6O.js.map → esm/behavior-COQhqcG7.js.map} +1 -1
- package/dist/esm/{component-d1d-AIsY.js → component-BOFlST8N.js} +5 -5
- package/dist/{kolibri/component-d1d-AIsY.js.map → esm/component-BOFlST8N.js.map} +1 -1
- package/dist/esm/{component-DKS73hKY.js → component-C4dhT4Ba.js} +3 -3
- package/dist/{kolibri/component-DKS73hKY.js.map → esm/component-C4dhT4Ba.js.map} +1 -1
- package/dist/esm/{component-BaD1OTyv.js → component-C9cJK7Cf.js} +5 -5
- package/dist/esm/{component-BaD1OTyv.js.map → component-C9cJK7Cf.js.map} +1 -1
- package/dist/esm/{component-BjWF1SyZ.js → component-CBkrKKXd.js} +7 -7
- package/dist/esm/{component-BjWF1SyZ.js.map → component-CBkrKKXd.js.map} +1 -1
- package/dist/esm/{component-Ch6fss2f.js → component-CHz6TLzY.js} +5 -5
- package/dist/esm/{component-Ch6fss2f.js.map → component-CHz6TLzY.js.map} +1 -1
- package/dist/esm/{component-CmBM-Y1C.js → component-CODtL04S.js} +7 -7
- package/dist/esm/{component-CmBM-Y1C.js.map → component-CODtL04S.js.map} +1 -1
- package/dist/esm/{component-DhBTawyT.js → component-D30YHxgS.js} +3 -3
- package/dist/esm/{component-DhBTawyT.js.map → component-D30YHxgS.js.map} +1 -1
- package/dist/esm/{component-G9vQ1mQA.js → component-DXmRJdLc.js} +4 -4
- package/dist/{kolibri/component-G9vQ1mQA.js.map → esm/component-DXmRJdLc.js.map} +1 -1
- package/dist/esm/{component-QCFfSS76.js → component-DoCNds1d.js} +4 -4
- package/dist/{kolibri/component-QCFfSS76.js.map → esm/component-DoCNds1d.js.map} +1 -1
- package/dist/esm/{component-CvhmYY4a.js → component-fK2EUkFf.js} +4 -4
- package/dist/esm/{component-CvhmYY4a.js.map → component-fK2EUkFf.js.map} +1 -1
- package/dist/esm/{component-sf_0WjJF.js → component-kDR4_xf0.js} +3 -3
- package/dist/{kolibri/component-sf_0WjJF.js.map → esm/component-kDR4_xf0.js.map} +1 -1
- package/dist/esm/{component-D0iTurA_.js → component-kxFmDVse.js} +3 -3
- package/dist/esm/{component-D0iTurA_.js.map → component-kxFmDVse.js.map} +1 -1
- package/dist/esm/{dev.utils-BGy8dbtQ.js → dev.utils-DDqySnXB.js} +3 -3
- package/dist/{kolibri/dev.utils-BGy8dbtQ.js.map → esm/dev.utils-DDqySnXB.js.map} +1 -1
- package/dist/esm/{devtools-CZ8Mnmwl.js → devtools-CjmOcVsT.js} +4 -4
- package/dist/{kolibri/devtools-CZ8Mnmwl.js.map → esm/devtools-CjmOcVsT.js.map} +1 -1
- package/dist/esm/{field-control-CLnFuMmy.js → field-control-Dkru7B-M.js} +8 -8
- package/dist/esm/{field-control-CLnFuMmy.js.map → field-control-Dkru7B-M.js.map} +1 -1
- package/dist/esm/{group-BAOmF5Ok.js → group-CXJiUqKv.js} +5 -5
- package/dist/{kolibri/group-BAOmF5Ok.js.map → esm/group-CXJiUqKv.js.map} +1 -1
- package/dist/esm/{index-DAKQV03B.js → index-wY4pHWJG.js} +3 -3
- package/dist/esm/index-wY4pHWJG.js.map +1 -0
- package/dist/esm/{input-D2i1QEbL.js → input-C_ZwHs-7.js} +5 -5
- package/dist/esm/{input-D2i1QEbL.js.map → input-C_ZwHs-7.js.map} +1 -1
- package/dist/esm/{input-container-wQm8-W3s.js → input-container-CBl9xcK-.js} +7 -7
- package/dist/{kolibri/input-container-wQm8-W3s.js.map → esm/input-container-CBl9xcK-.js.map} +1 -1
- package/dist/esm/{item-Dkm57tce.js → item-BacIXvMT.js} +4 -4
- package/dist/esm/{item-Dkm57tce.js.map → item-BacIXvMT.js.map} +1 -1
- package/dist/esm/{item-DbLIGnc9.js → item-DewHrd_f.js} +4 -4
- package/dist/{kolibri/item-DbLIGnc9.js.map → esm/item-DewHrd_f.js.map} +1 -1
- package/dist/esm/{item-DuBSR8BS.js → item-lEB6GAqe.js} +3 -3
- package/dist/esm/{item-DuBSR8BS.js.map → item-lEB6GAqe.js.map} +1 -1
- package/dist/esm/{item-DJ8LXOMv.js → item-nGiqyOvt.js} +8 -8
- package/dist/{kolibri/item-DJ8LXOMv.js.map → esm/item-nGiqyOvt.js.map} +1 -1
- package/dist/esm/kol-abbr.entry.js +2 -2
- package/dist/esm/kol-accordion.entry.js +7 -7
- package/dist/esm/kol-alert.entry.js +11 -11
- package/dist/esm/kol-avatar.entry.js +1 -1
- package/dist/esm/kol-badge.entry.js +10 -10
- package/dist/esm/kol-breadcrumb.entry.js +9 -9
- package/dist/esm/kol-button-link.entry.js +10 -10
- package/dist/esm/kol-button.entry.js +10 -10
- package/dist/esm/kol-card.entry.js +11 -11
- package/dist/esm/kol-click-button.entry.js +2 -2
- package/dist/esm/kol-combobox.entry.js +18 -18
- package/dist/esm/kol-details.entry.js +7 -7
- package/dist/esm/kol-dialog.entry.js +13 -13
- package/dist/esm/kol-drawer.entry.js +12 -12
- package/dist/esm/kol-form.entry.js +12 -12
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +3 -3
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +17 -17
- package/dist/esm/kol-input-color.entry.js +18 -18
- package/dist/esm/kol-input-date.entry.js +18 -18
- package/dist/esm/kol-input-email.entry.js +20 -20
- package/dist/esm/kol-input-file.entry.js +17 -17
- package/dist/esm/kol-input-number.entry.js +18 -18
- package/dist/esm/kol-input-password.entry.js +20 -20
- package/dist/esm/kol-input-radio.entry.js +17 -17
- package/dist/esm/kol-input-range.entry.js +18 -18
- package/dist/esm/kol-input-text.entry.js +20 -20
- package/dist/esm/kol-kolibri.entry.js +2 -2
- package/dist/esm/kol-link-button.entry.js +10 -10
- package/dist/esm/kol-link.entry.js +10 -10
- package/dist/esm/kol-meter.entry.js +1 -1
- package/dist/esm/kol-modal.entry.js +13 -13
- package/dist/esm/kol-nav.entry.js +13 -13
- package/dist/esm/kol-pagination.entry.js +18 -18
- package/dist/esm/kol-popover-button.entry.js +11 -11
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-quote.entry.js +1 -1
- package/dist/esm/kol-select.entry.js +17 -17
- package/dist/esm/kol-single-select.entry.js +18 -18
- package/dist/esm/kol-skeleton.entry.js +2 -2
- package/dist/esm/kol-skip-nav.entry.js +9 -9
- package/dist/esm/kol-spin.entry.js +3 -3
- package/dist/esm/kol-split-button.entry.js +12 -12
- package/dist/esm/kol-table-stateful.entry.js +25 -25
- package/dist/esm/kol-table-stateless.entry.js +19 -19
- package/dist/esm/kol-tabs.entry.js +9 -9
- package/dist/esm/kol-textarea.entry.js +17 -17
- package/dist/esm/kol-toast-container.entry.js +11 -11
- package/dist/esm/kol-toolbar.entry.js +11 -11
- package/dist/esm/kol-tooltip-wc.entry.js +4 -4
- package/dist/esm/kol-tree-item.entry.js +9 -9
- package/dist/esm/kol-tree.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +9 -9
- package/dist/esm/kolibri.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{resolve-props-BTiKxg-8.js → resolve-props-DrFDeILa.js} +3 -3
- package/dist/{kolibri/resolve-props-BTiKxg-8.js.map → esm/resolve-props-DrFDeILa.js.map} +1 -1
- package/dist/esm/{scroll-lock-DRNyw9qH.js → scroll-lock-BotxOlMX.js} +3 -3
- package/dist/{kolibri/scroll-lock-DRNyw9qH.js.map → esm/scroll-lock-BotxOlMX.js.map} +1 -1
- package/dist/esm/{suggestions-CG-TuGC4.js → suggestions-CX5S2xAI.js} +4 -4
- package/dist/esm/{suggestions-CG-TuGC4.js.map → suggestions-CX5S2xAI.js.map} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{toggle-handler-aTxO0Wem.js → toggle-handler-VctiltrE.js} +5 -5
- package/dist/esm/{toggle-handler-aTxO0Wem.js.map → toggle-handler-VctiltrE.js.map} +1 -1
- package/dist/kolibri/{Heading-BctDgC7M.js → Heading-DYEtnAIe.js} +2 -2
- package/dist/{esm/Heading-BctDgC7M.js.map → kolibri/Heading-DYEtnAIe.js.map} +1 -1
- package/dist/kolibri/api-Bhr2ic7C.js +5 -0
- package/dist/{esm/api-B6fEjFVl.js.map → kolibri/api-Bhr2ic7C.js.map} +1 -1
- package/dist/kolibri/api-DwdE0qU0.js +5 -0
- package/dist/kolibri/{api-T-JuZMlj.js.map → api-DwdE0qU0.js.map} +1 -1
- package/dist/kolibri/app-globals-DlrwRj26.js +5 -0
- package/dist/kolibri/{app-globals-CvvWI2x9.js.map → app-globals-DlrwRj26.js.map} +1 -1
- package/dist/kolibri/{base-Dvr4F_Pr.js → base-BwsdAVVP.js} +2 -2
- package/dist/{esm/base-Dvr4F_Pr.js.map → kolibri/base-BwsdAVVP.js.map} +1 -1
- package/dist/kolibri/{base-BbVXW6YI.js → base-CQQKxfxv.js} +2 -2
- package/dist/{esm/base-BbVXW6YI.js.map → kolibri/base-CQQKxfxv.js.map} +1 -1
- package/dist/kolibri/{base-BARjFMg1.js → base-CdUYL1Y_.js} +2 -2
- package/dist/kolibri/{base-BARjFMg1.js.map → base-CdUYL1Y_.js.map} +1 -1
- package/dist/kolibri/{base-D8yYjJsn.js → base-D5a-Ls-4.js} +2 -2
- package/dist/{esm/base-D8yYjJsn.js.map → kolibri/base-D5a-Ls-4.js.map} +1 -1
- package/dist/kolibri/{base-web-component-DU3hnIWD.js → base-web-component-6IoFcVM9.js} +2 -2
- package/dist/{esm/base-web-component-DU3hnIWD.js.map → kolibri/base-web-component-6IoFcVM9.js.map} +1 -1
- package/dist/kolibri/{base-web-component-BzB5tP9s.js → base-web-component-CyCs0EpM.js} +2 -2
- package/dist/{esm/base-web-component-BzB5tP9s.js.map → kolibri/base-web-component-CyCs0EpM.js.map} +1 -1
- package/dist/kolibri/{behavior-CbqCHL6O.js → behavior-COQhqcG7.js} +2 -2
- package/dist/{esm/behavior-CbqCHL6O.js.map → kolibri/behavior-COQhqcG7.js.map} +1 -1
- package/dist/kolibri/{component-d1d-AIsY.js → component-BOFlST8N.js} +2 -2
- package/dist/{esm/component-d1d-AIsY.js.map → kolibri/component-BOFlST8N.js.map} +1 -1
- package/dist/kolibri/{component-DKS73hKY.js → component-C4dhT4Ba.js} +2 -2
- package/dist/{esm/component-DKS73hKY.js.map → kolibri/component-C4dhT4Ba.js.map} +1 -1
- package/dist/kolibri/component-C9cJK7Cf.js +5 -0
- package/dist/kolibri/{component-BaD1OTyv.js.map → component-C9cJK7Cf.js.map} +1 -1
- package/dist/kolibri/{component-BjWF1SyZ.js → component-CBkrKKXd.js} +2 -2
- package/dist/kolibri/{component-BjWF1SyZ.js.map → component-CBkrKKXd.js.map} +1 -1
- package/dist/kolibri/{component-Ch6fss2f.js → component-CHz6TLzY.js} +2 -2
- package/dist/kolibri/{component-Ch6fss2f.js.map → component-CHz6TLzY.js.map} +1 -1
- package/dist/kolibri/component-CODtL04S.js +5 -0
- package/dist/kolibri/{component-CmBM-Y1C.js.map → component-CODtL04S.js.map} +1 -1
- package/dist/kolibri/{component-DhBTawyT.js → component-D30YHxgS.js} +2 -2
- package/dist/kolibri/{component-DhBTawyT.js.map → component-D30YHxgS.js.map} +1 -1
- package/dist/kolibri/{component-G9vQ1mQA.js → component-DXmRJdLc.js} +2 -2
- package/dist/{esm/component-G9vQ1mQA.js.map → kolibri/component-DXmRJdLc.js.map} +1 -1
- package/dist/kolibri/{component-QCFfSS76.js → component-DoCNds1d.js} +2 -2
- package/dist/{esm/component-QCFfSS76.js.map → kolibri/component-DoCNds1d.js.map} +1 -1
- package/dist/kolibri/{component-CvhmYY4a.js → component-fK2EUkFf.js} +2 -2
- package/dist/kolibri/{component-CvhmYY4a.js.map → component-fK2EUkFf.js.map} +1 -1
- package/dist/kolibri/{component-sf_0WjJF.js → component-kDR4_xf0.js} +2 -2
- package/dist/{esm/component-sf_0WjJF.js.map → kolibri/component-kDR4_xf0.js.map} +1 -1
- package/dist/kolibri/{component-D0iTurA_.js → component-kxFmDVse.js} +2 -2
- package/dist/kolibri/{component-D0iTurA_.js.map → component-kxFmDVse.js.map} +1 -1
- package/dist/kolibri/{dev.utils-BGy8dbtQ.js → dev.utils-DDqySnXB.js} +2 -2
- package/dist/{esm/dev.utils-BGy8dbtQ.js.map → kolibri/dev.utils-DDqySnXB.js.map} +1 -1
- package/dist/kolibri/{devtools-CZ8Mnmwl.js → devtools-CjmOcVsT.js} +2 -2
- package/dist/{esm/devtools-CZ8Mnmwl.js.map → kolibri/devtools-CjmOcVsT.js.map} +1 -1
- package/dist/kolibri/field-control-Dkru7B-M.js +5 -0
- package/dist/kolibri/{field-control-CLnFuMmy.js.map → field-control-Dkru7B-M.js.map} +1 -1
- package/dist/kolibri/{group-BAOmF5Ok.js → group-CXJiUqKv.js} +2 -2
- package/dist/{esm/group-BAOmF5Ok.js.map → kolibri/group-CXJiUqKv.js.map} +1 -1
- package/dist/kolibri/{index-DAKQV03B.js → index-wY4pHWJG.js} +2 -2
- package/dist/kolibri/index-wY4pHWJG.js.map +1 -0
- package/dist/kolibri/input-C_ZwHs-7.js +5 -0
- package/dist/kolibri/{input-D2i1QEbL.js.map → input-C_ZwHs-7.js.map} +1 -1
- package/dist/kolibri/input-container-CBl9xcK-.js +5 -0
- package/dist/{esm/input-container-wQm8-W3s.js.map → kolibri/input-container-CBl9xcK-.js.map} +1 -1
- package/dist/kolibri/item-BacIXvMT.js +5 -0
- package/dist/kolibri/{item-Dkm57tce.js.map → item-BacIXvMT.js.map} +1 -1
- package/dist/kolibri/item-DewHrd_f.js +5 -0
- package/dist/{esm/item-DbLIGnc9.js.map → kolibri/item-DewHrd_f.js.map} +1 -1
- package/dist/kolibri/item-lEB6GAqe.js +5 -0
- package/dist/kolibri/{item-DuBSR8BS.js.map → item-lEB6GAqe.js.map} +1 -1
- package/dist/kolibri/{item-DJ8LXOMv.js → item-nGiqyOvt.js} +2 -2
- package/dist/{esm/item-DJ8LXOMv.js.map → kolibri/item-nGiqyOvt.js.map} +1 -1
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-click-button.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-dialog.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-meter.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-skeleton.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/resolve-props-DrFDeILa.js +5 -0
- package/dist/{esm/resolve-props-BTiKxg-8.js.map → kolibri/resolve-props-DrFDeILa.js.map} +1 -1
- package/dist/kolibri/{scroll-lock-DRNyw9qH.js → scroll-lock-BotxOlMX.js} +2 -2
- package/dist/{esm/scroll-lock-DRNyw9qH.js.map → kolibri/scroll-lock-BotxOlMX.js.map} +1 -1
- package/dist/kolibri/{suggestions-CG-TuGC4.js → suggestions-CX5S2xAI.js} +2 -2
- package/dist/kolibri/{suggestions-CG-TuGC4.js.map → suggestions-CX5S2xAI.js.map} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/toggle-handler-VctiltrE.js +5 -0
- package/dist/kolibri/{toggle-handler-aTxO0Wem.js.map → toggle-handler-VctiltrE.js.map} +1 -1
- package/package.json +3 -3
- package/dist/cjs/index-RAfZF5x0.js.map +0 -1
- package/dist/esm/index-DAKQV03B.js.map +0 -1
- package/dist/kolibri/api-B6fEjFVl.js +0 -5
- package/dist/kolibri/api-T-JuZMlj.js +0 -5
- package/dist/kolibri/app-globals-CvvWI2x9.js +0 -5
- package/dist/kolibri/component-BaD1OTyv.js +0 -5
- package/dist/kolibri/component-CmBM-Y1C.js +0 -5
- package/dist/kolibri/field-control-CLnFuMmy.js +0 -5
- package/dist/kolibri/index-DAKQV03B.js.map +0 -1
- package/dist/kolibri/input-D2i1QEbL.js +0 -5
- package/dist/kolibri/input-container-wQm8-W3s.js +0 -5
- package/dist/kolibri/item-DbLIGnc9.js +0 -5
- package/dist/kolibri/item-Dkm57tce.js +0 -5
- package/dist/kolibri/item-DuBSR8BS.js +0 -5
- package/dist/kolibri/resolve-props-BTiKxg-8.js +0 -5
- package/dist/kolibri/toggle-handler-aTxO0Wem.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o}from"./index-
|
|
5
|
-
//# sourceMappingURL=component-
|
|
4
|
+
import{h as o}from"./index-wY4pHWJG.js";import{S as t}from"./component-DoCNds1d.js";const l=({label:l,badgeText:e,id:i,refFloating:a})=>o("div",{class:"kol-tooltip__floating",hidden:l.length===0,ref:a},o("div",{class:"kol-tooltip__arrow"}),o(t,{class:"kol-tooltip__content",badgeText:e,id:i,label:l}));export{l as T};
|
|
5
|
+
//# sourceMappingURL=component-fK2EUkFf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-fK2EUkFf.js","sources":["src/internal/functional-components/tooltip/component.tsx"],"sourcesContent":["import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport type { TooltipAlignPropType } from '../../../schema';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport { SpanFC } from '../span/component';\nimport type { TooltipApi } from './api';\n\ntype TooltipFCProps = Pick<FunctionalComponentProps<TooltipApi>, 'label'> & {\n\tbadgeText?: string;\n\tid?: string;\n\talign?: TooltipAlignPropType;\n\trefFloating: (el?: HTMLDivElement) => void;\n};\n\nexport const TooltipFC: FC<TooltipFCProps> = ({ label, badgeText, id, refFloating }) => {\n\treturn (\n\t\t<div class=\"kol-tooltip__floating\" hidden={label.length === 0} ref={refFloating}>\n\t\t\t<div class=\"kol-tooltip__arrow\" />\n\t\t\t<SpanFC class=\"kol-tooltip__content\" badgeText={badgeText} id={id} label={label} />\n\t\t</div>\n\t);\n};\n"],"names":[],"mappings":";;;;;;AAeO,MAAM,SAAS,GAAuB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,KAAI;IACtF,QACC,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,uBAAuB,EAAC,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,GAAG,EAAE,WAAW,EAAA,EAC9E,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,oBAAoB,EAAG,CAAA,EAClC,CAAC,CAAA,MAAM,IAAC,KAAK,EAAC,sBAAsB,EAAC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAI,CAAA,CAC9E;AAER;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import"./common-BqpMtheU.js";import{h as s}from"./index-
|
|
5
|
-
//# sourceMappingURL=component-
|
|
4
|
+
import"./common-BqpMtheU.js";import{h as s}from"./index-wY4pHWJG.js";const i=(s,i)=>{let o="";if(Array.isArray(s)){s.forEach((s=>{o+="kol-"+i+"--"+s+" "}))}return o};const o=({description:i,descriptionId:o})=>i?s("span",{class:"visually-hidden",id:o},i):null;export{o as A,i as c};
|
|
5
|
+
//# sourceMappingURL=component-kDR4_xf0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-kDR4_xf0.js","sources":["src/schema/props/variant-class-name.ts","src/internal/functional-components/aria-description-span/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchOptions } from '../utils';\nimport { watchValidator } from '../utils';\nimport { isString } from '../validators';\n\nexport type VariantClassNamePropType = string | string[];\n\nexport type PropVariantClassName = {\n\tvariant: VariantClassNamePropType;\n};\n\nconst SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{3,60}$/;\nconst isValidArrayOrString = (value: unknown) =>\n\t(Array.isArray(value) && value.every(isSafeClassName)) || (isString(value, 1) && (value as string).split(' ').every(isSafeClassName));\nconst isSafeClassName = (value: unknown) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);\nconst SAFE_CLASS_NAME_ALLOWED = new Set([SAFE_CLASS_NAME_RE.source]);\n\nconst beforePatchString = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_variant')) {\n\t\tconst variants = component.nextState?.get('_variant');\n\t\tlet nextStateVariants: VariantClassNamePropType = [];\n\t\tif (isString(variants, 1)) {\n\t\t\tnextStateVariants = (variants as string).split(' ');\n\t\t} else if (Array.isArray(variants)) {\n\t\t\tnextStateVariants = variants;\n\t\t}\n\t\tcomponent.nextState?.set('_variant', nextStateVariants);\n\t}\n};\n\nexport const validateVariantClassName = (component: Generic.Element.Component, value?: VariantClassNamePropType, options: WatchOptions = {}): void => {\n\twatchValidator(component, '_variant', isValidArrayOrString, SAFE_CLASS_NAME_ALLOWED, value, {\n\t\t...options,\n\t\tdefaultValue: [],\n\t\thooks: {\n\t\t\tafterPatch: options.hooks?.afterPatch,\n\t\t\tbeforePatch: (nextValue, nextState, component, key) => {\n\t\t\t\tif (typeof options.hooks?.beforePatch === 'function') {\n\t\t\t\t\toptions.hooks?.beforePatch(nextValue, nextState, component, key);\n\t\t\t\t}\n\t\t\t\tbeforePatchString(component);\n\t\t\t},\n\t\t},\n\t});\n};\n\nexport const classNameFromVariant = (variants: VariantClassNamePropType | undefined, componentName: string): string => {\n\tlet className = '';\n\n\tif (Array.isArray(variants)) {\n\t\tvariants.forEach((variant) => {\n\t\t\tclassName += 'kol-' + componentName + '--' + variant + ' ';\n\t\t});\n\t}\n\treturn className;\n};\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\ntype AriaDescriptionSpanFCProps = {\n\t/**\n\t * The (already trimmed) description text. Falsy renders nothing — the description is\n\t * optional, and an empty `aria-describedby` target would be pointless.\n\t */\n\tdescription: string | undefined;\n\t/**\n\t * The id referenced by the interactive element's `aria-describedby`.\n\t */\n\tdescriptionId: string;\n};\n\n/**\n * Visually-hidden `aria-describedby` target, shared by `ButtonFC` and `LinkFC`.\n *\n * Must be a sibling of the interactive element, not a child of it — the description is\n * referenced from outside via `aria-describedby`, not folded into the accessible name.\n */\nexport const AriaDescriptionSpanFC: FC<AriaDescriptionSpanFCProps> = ({ description, descriptionId }) =>\n\tdescription ? (\n\t\t<span class=\"visually-hidden\" id={descriptionId}>\n\t\t\t{description}\n\t\t</span>\n\t) : null;\n"],"names":[],"mappings":";;;;;;MA+Ca,oBAAoB,GAAG,CAAC,QAA8C,EAAE,aAAqB,KAAY;IACrH,IAAI,SAAS,GAAG,EAAE;AAElB,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;AAC5B,QAAA,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,KAAI;YAC5B,SAAS,IAAI,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,OAAO,GAAG,GAAG;AAC3D,SAAC,CAAC;;AAEH,IAAA,OAAO,SAAS;AACjB;;ACnCa,MAAA,qBAAqB,GAAmC,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,KACnG,WAAW,IACV,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,iBAAiB,EAAC,EAAE,EAAE,aAAa,EAC7C,EAAA,WAAW,CACN,IACJ;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{h as o}from"./index-
|
|
5
|
-
//# sourceMappingURL=component-
|
|
4
|
+
import{h as o}from"./index-wY4pHWJG.js";import{b as t}from"./bem-registry-CX5kvaqt.js";const s=t.forBlock("kol-click-button");const n=s();const l=s("label");const c=({label:t,handleClick:s,refButton:c})=>o("button",{class:n,ref:c,onClick:s,onKeyDown:o=>o.preventDefault()},o("span",{class:l},t));export{c as C};
|
|
5
|
+
//# sourceMappingURL=component-kxFmDVse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-kxFmDVse.js","sources":["src/internal/functional-components/click-button/component.tsx"],"sourcesContent":["import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { ClickButtonApi } from './api';\n\nconst clickButtonBem = bem.forBlock('kol-click-button');\nconst BEM_CLASS_CLICK_BUTTON = clickButtonBem();\nconst BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');\n\nexport const ClickButtonFC: FC<FunctionalComponentProps<ClickButtonApi>> = ({ label, handleClick, refButton }) => (\n\t<button class={BEM_CLASS_CLICK_BUTTON} ref={refButton} onClick={handleClick} onKeyDown={(event) => event.preventDefault()}>\n\t\t<span class={BEM_CLASS_CLICK_BUTTON__LABEL}>{label}</span>\n\t</button>\n);\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,cAAc,GAAG,GAAG,CAAC,QAAQ,CAAC,kBAAkB,CAAC;AACvD,MAAM,sBAAsB,GAAG,cAAc,EAAE;AAC/C,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,CAAC;AAEtD,MAAM,aAAa,GAAiD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAC5G,cAAQ,KAAK,EAAE,sBAAsB,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAAA,EACxH,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,6BAA6B,EAAA,EAAG,KAAK,CAAQ,CAClD;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{L as t,q as n,t as e,v as o,x as s,y as i}from"./common-BqpMtheU.js";import{E as r}from"./index-
|
|
5
|
-
//# sourceMappingURL=dev.utils-
|
|
4
|
+
import{L as t,q as n,t as e,v as o,x as s,y as i}from"./common-BqpMtheU.js";import{E as r}from"./index-wY4pHWJG.js";const a=()=>{try{const t=n();if(!t||typeof t.querySelector!=="function"){return}const s=t.querySelector('meta[name="kolibri"]');if(s&&s.hasAttribute("content")){const t=s.getAttribute("content");if(typeof t==="string"){e(t.includes("experimental-mode=true"));o(t.includes("color-contrast-analysis=true"))}}}catch(t){}};const c=()=>{let t=s().KoliBri;if(t===undefined){t={};Object.defineProperty(s(),"KoliBri",{value:t,writable:false})}return t};const u=()=>{a();t.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:true})};const l=()=>{if(c().adviceShown!==true){Object.defineProperty(c(),"adviceShown",{get:function(){return true}});t.debug(`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`)}};let f=()=>Math.floor(Math.random()*16777215).toString(16);if(i()){f=()=>"nonce"}const p=t=>`${t}-${f()}`;const m=(t,n)=>{const e=t.lastIndexOf("-");if(e===-1)return`${t}-${n}`;const o=t.slice(e+1);const s=o==="nonce"||/^[0-9a-f]+$/.test(o);return s?`${t.slice(0,e)}-${n}-${o}`:`${t}-${n}`};export{m as a,p as c,u as i,f as n,l as r};
|
|
5
|
+
//# sourceMappingURL=dev.utils-DDqySnXB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.utils-
|
|
1
|
+
{"version":3,"file":"dev.utils-DDqySnXB.js","sources":["src/utils/dev.utils.ts"],"sourcesContent":["import { Log, getDocument, isTestMode, setColorContrastAnalysis, setExperimentalMode } from '../schema';\n\nimport { Env } from '@stencil/core';\nimport { getWindow } from '../schema';\n\nconst initMeta = (): void => {\n\ttry {\n\t\tconst document = getDocument();\n\t\tif (!document || typeof document.querySelector !== 'function') {\n\t\t\treturn; // Skip meta initialization if document is not available\n\t\t}\n\n\t\tconst meta = document.querySelector('meta[name=\"kolibri\"]');\n\t\tif (meta && meta.hasAttribute('content')) {\n\t\t\tconst content = meta.getAttribute('content');\n\t\t\tif (typeof content === 'string') {\n\t\t\t\tsetExperimentalMode(content.includes('experimental-mode=true'));\n\t\t\t\tsetColorContrastAnalysis(content.includes('color-contrast-analysis=true'));\n\t\t\t}\n\t\t}\n\t} catch {\n\t\t// Ignore meta initialization errors in test/SSR environments\n\t}\n};\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nexport { getKoliBri };\n\nexport const initKoliBri = (): void => {\n\tinitMeta();\n\tLog.debug(\n\t\t`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,\n\t\t{\n\t\t\tforceLog: true,\n\t\t},\n\t);\n};\n\nexport const renderDevAdvice = (): void => {\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(getKoliBri(), 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`,\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (isTestMode()) {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n\nexport const createUniqueId = (prefix: string): string => `${prefix}-${nonce()}`;\n\nexport const createRelatedUniqueId = (baseId: string, suffix: string): string => {\n\tconst separatorIndex = baseId.lastIndexOf('-');\n\tif (separatorIndex === -1) return `${baseId}-${suffix}`;\n\tconst lastSegment = baseId.slice(separatorIndex + 1);\n\tconst isNonce = lastSegment === 'nonce' || /^[0-9a-f]+$/.test(lastSegment);\n\treturn isNonce ? `${baseId.slice(0, separatorIndex)}-${suffix}-${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,N as a,O as r,p as c,P as f,C as d,Q as p}from"./common-BqpMtheU.js";import{i as u,r as m}from"./dev.utils-
|
|
5
|
-
//# sourceMappingURL=devtools-
|
|
4
|
+
import{I as t,L as o,q as i,x as e,J as n,H as s,M as l,N as a,O as r,p as c,P as f,C as d,Q as p}from"./common-BqpMtheU.js";import{i as u,r as m}from"./dev.utils-DDqySnXB.js";import"./index-wY4pHWJG.js";const v=()=>{let t=e().KoliBri;if(t===undefined){t={};Object.defineProperty(e(),"KoliBri",{value:t,writable:false})}return t};function L(t,i){try{Object.defineProperty(v(),t,{get:function(){return i}})}catch(i){o.debug(`KoliBri property ${t} is already bind.`)}}const y=(t,i)=>o.debug(`${t} ${i?"":"not "}activated`);const h=()=>{u();if(t()){m();L("a11yColorContrast",n);L("querySelector",s);L("querySelectorAll",l);L("querySelectorColors",a);L("utils",(function(){return r}));L("parseJson",c);L("stringifyJson",f);y("Development mode",t());y("Experimental mode",d());y("Color contrast analysis",p());setTimeout((()=>{try{const t=i();const o=t===null||t===void 0?void 0:t.body;if(t&&o&&typeof t.createElement==="function"){const i=t.createElement("svg");i.setAttribute("aria-label","KoliBri-DevTools");i.setAttribute("xmlns","http://www.w3.org/2000/svg");i.setAttribute("role","toolbar");i.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;");i.innerHTML=`<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>`;o.appendChild(i)}}catch(t){o.debug(["Could not initialize DevTools UI (likely in SSR/test environment):",t])}}),100);if(p()){const t=setTimeout((()=>{clearTimeout(t);try{const t=i();const o=t===null||t===void 0?void 0:t.body;if(t&&o&&typeof t.createElement==="function"){setInterval((()=>{r.queryHtmlElementColors(t.createElement("div"),n(o),false,false)}),1e4)}}catch(t){o.debug(["Could not initialize color contrast analysis:",t])}}),2500)}}};export{h as initialize};
|
|
5
|
+
//# sourceMappingURL=devtools-CjmOcVsT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-
|
|
1
|
+
{"version":3,"file":"devtools-CjmOcVsT.js","sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tisDevMode,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (isDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tmetaModeLog('Development mode', isDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\t// Delay DOM manipulation to ensure document is ready\n\t\tsetTimeout(() => {\n\t\t\ttry {\n\t\t\t\tconst document = getDocument();\n\t\t\t\tconst body = document?.body;\n\n\t\t\t\t// Only proceed if we have a valid document and body\n\t\t\t\tif (document && body && typeof document.createElement === 'function') {\n\t\t\t\t\tconst div = document.createElement('svg');\n\t\t\t\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\t\t\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\t\t\t\tdiv.setAttribute('role', 'toolbar');\n\t\t\t\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\t\t\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\t\t\t\tbody.appendChild(div);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tLog.debug(['Could not initialize DevTools UI (likely in SSR/test environment):', error]);\n\t\t\t}\n\t\t}, 100);\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\ttry {\n\t\t\t\t\tconst document = getDocument();\n\t\t\t\t\tconst body = document?.body;\n\t\t\t\t\tif (document && body && typeof document.createElement === 'function') {\n\t\t\t\t\t\tsetInterval(() => {\n\t\t\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(document.createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t\t\t}, 10000);\n\t\t\t\t\t}\n\t\t\t\t} catch (error) {\n\t\t\t\t\tLog.debug(['Could not initialize color contrast analysis:', error]);\n\t\t\t\t}\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"names":[],"mappings":";;;;;;;AAiBA,MAAM,UAAU,GAAG,MAA8B;AAChD,IAAA,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,OAAO;AACjC,IAAA,IAAI,OAAO,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,EAAE;AACZ,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;AAC7C,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,KAAK;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sBAAsB,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC;yBAChH,EAAE,KAAK,CAAC;;;gBAET,OAAO,KAAK,EAAE;oBACf,GAAG,CAAC,KAAK,CAAC,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;;aAEpE,EAAE,IAAI,CAAC;;;AAqBX;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
|
3
|
+
*/
|
|
4
|
+
import{a as o}from"./tslib.es6-QNbPBOk5.js";import{h as e}from"./index-wY4pHWJG.js";import"./common-BqpMtheU.js";import{s as l,b as t}from"./component-DoCNds1d.js";import{a as s,g as i,b as a,i as r}from"./api-Bhr2ic7C.js";import{b as n}from"./bem-registry-CX5kvaqt.js";import{a as d}from"./dev.utils-DDqySnXB.js";import{B as c}from"./component-D30YHxgS.js";import{T as b}from"./component-fK2EUkFf.js";const p=n.forBlock("kol-field-control");const f=({hideLabel:o,label:e,renderNoTooltip:t})=>!t&&!l(e)&&o===true;const m=(n,m)=>{const{class:h,id:g,label:u,hint:j,hideLabel:y,labelAlign:k,infoPopover:B,accessKey:N,shortKey:v,tooltipAlign:T,disabled:K,msg:O,touched:q,required:P,readOnly:x,renderNoHint:C,renderNoTooltip:A,labelProps:D,refInput:H,refTooltip:L}=n,_=o(n,["class","id","label","hint","hideLabel","labelAlign","infoPopover","accessKey","shortKey","tooltipAlign","disabled","msg","touched","required","readOnly","renderNoHint","renderNoTooltip","labelProps","refInput","refTooltip"]);const F=l(u);const I=f({hideLabel:y,label:u,renderNoTooltip:A});const S=t(N,v);const E=r(O,q);const U=()=>e("div",{class:p("input"),ref:H},m);const X=()=>I?e("div",{class:"kol-form-field__tooltip"},e(b,{badgeText:S||"",label:u,align:T,id:d(g,"label"),refFloating:L})):null;const Y=()=>e(a,Object.assign({},D,{id:g,baseClassName:"kol-field-control",class:y?"kol-field-control__label--visually-hidden":undefined,omitId:I,hasExpertSlot:F,label:u,accessKey:N,shortKey:v,infoPopover:B}));return e(c,Object.assign({block:"kol-field-control",modifiers:Object.assign(Object.assign({disabled:Boolean(K),required:Boolean(P),touched:Boolean(q),"hide-label":Boolean(y),"read-only":Boolean(x)},E?{[i(O)]:true}:{}),{"label-align-left":k==="left","label-align-right":k==="right"}),class:h},_),k==="left"?[Y(),U(),X()]:[U(),X(),Y()],!C&&e(s,{baseClassName:"kol-field-control",id:g,hint:j}))};export{m as F,f as i};
|
|
5
|
+
//# sourceMappingURL=field-control-Dkru7B-M.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-control-
|
|
1
|
+
{"version":3,"file":"field-control-Dkru7B-M.js","sources":["src/internal/functional-components/form-field/field-control.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC, type VNode } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { LabelAlignPropType, MsgPropType, Stringified, TooltipAlignPropType } from '../../../schema';\nimport { buildBadgeTextString, getMsgType, isMsgDefinedAndInputTouched, showExpertSlot } from '../../../schema';\nimport { bem } from '../../../schema/bem-registry';\nimport { createRelatedUniqueId } from '../../../utils/dev.utils';\nimport { BemRootNodeFC } from '../bem-root-node/component';\nimport { TooltipFC } from '../tooltip/component';\nimport { FormFieldHintFC } from './hint';\nimport { FormFieldLabelFC, type FormFieldInfoPopover, type FormFieldLabelFCProps } from './label';\n\nconst fieldControlBem = bem.forBlock('kol-field-control');\n\nexport type FieldControlFCProps = Omit<JSXBase.HTMLAttributes<HTMLDivElement>, 'id' | 'ref'> & {\n\tid: string;\n\tlabel: string;\n\thint?: string;\n\thideLabel?: boolean;\n\tlabelAlign?: LabelAlignPropType;\n\tinfoPopover?: FormFieldInfoPopover;\n\taccessKey?: string;\n\tshortKey?: string;\n\ttooltipAlign?: TooltipAlignPropType;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\trequired?: boolean;\n\treadOnly?: boolean;\n\trenderNoHint?: boolean;\n\trenderNoTooltip?: boolean;\n\t/** Attributes of the label, e.g. a `mousedown` handler or the access key badge. */\n\tlabelProps?: Pick<FormFieldLabelFCProps, 'onMouseDown' | 'showBadge'>;\n\t/** Receives the `__input` wrapper, the reference element of the label tooltip. */\n\trefInput?: (el?: HTMLDivElement) => void;\n\t/** Receives the floating element of the label tooltip. */\n\trefTooltip: (el?: HTMLDivElement) => void;\n};\n\n/**\n * Whether the control shows its label as a tooltip instead of a visible label: with `hideLabel`,\n * unless the tooltip is disabled or the label is given through the expert slot.\n */\nexport const isFieldControlLabelShownAsTooltip = ({\n\thideLabel,\n\tlabel,\n\trenderNoTooltip,\n}: Pick<FieldControlFCProps, 'hideLabel' | 'label' | 'renderNoTooltip'>): boolean => !renderNoTooltip && !showExpertSlot(label) && hideLabel === true;\n\n/**\n * Stateless row of a checkbox or of one radio option: the control, its label and its hint. With\n * `labelAlign: 'left'` the label comes first. The web component owns the label tooltip and connects\n * it through `refInput` and `refTooltip`.\n *\n * With the tooltip, the label stays visually hidden and leaves its ID to the tooltip. The tooltip\n * wrapper uses the class `kol-form-field__tooltip`, which the themes style.\n */\nexport const FieldControlFC: FC<FieldControlFCProps> = (props, children) => {\n\tconst {\n\t\tclass: classNames,\n\t\tid,\n\t\tlabel,\n\t\thint,\n\t\thideLabel,\n\t\tlabelAlign,\n\t\tinfoPopover,\n\t\taccessKey,\n\t\tshortKey,\n\t\ttooltipAlign,\n\t\tdisabled,\n\t\tmsg,\n\t\ttouched,\n\t\trequired,\n\t\treadOnly,\n\t\trenderNoHint,\n\t\trenderNoTooltip,\n\t\tlabelProps,\n\t\trefInput,\n\t\trefTooltip,\n\t\t...other\n\t} = props;\n\n\tconst hasExpertSlot = showExpertSlot(label);\n\tconst showTooltip = isFieldControlLabelShownAsTooltip({ hideLabel, label, renderNoTooltip });\n\tconst badgeText = buildBadgeTextString(accessKey, shortKey);\n\tconst showMsg = isMsgDefinedAndInputTouched(msg, touched);\n\n\tconst renderInput = (): VNode => (\n\t\t<div class={fieldControlBem('input')} ref={refInput}>\n\t\t\t{children}\n\t\t</div>\n\t);\n\tconst renderTooltip = (): VNode | null =>\n\t\tshowTooltip ? (\n\t\t\t<div class=\"kol-form-field__tooltip\">\n\t\t\t\t<TooltipFC badgeText={badgeText || ''} label={label} align={tooltipAlign} id={createRelatedUniqueId(id, 'label')} refFloating={refTooltip} />\n\t\t\t</div>\n\t\t) : null;\n\tconst renderLabel = (): VNode => (\n\t\t<FormFieldLabelFC\n\t\t\t{...labelProps}\n\t\t\tid={id}\n\t\t\tbaseClassName=\"kol-field-control\"\n\t\t\tclass={hideLabel ? 'kol-field-control__label--visually-hidden' : undefined}\n\t\t\tomitId={showTooltip}\n\t\t\thasExpertSlot={hasExpertSlot}\n\t\t\tlabel={label}\n\t\t\taccessKey={accessKey}\n\t\t\tshortKey={shortKey}\n\t\t\tinfoPopover={infoPopover}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<BemRootNodeFC\n\t\t\tblock=\"kol-field-control\"\n\t\t\tmodifiers={{\n\t\t\t\tdisabled: Boolean(disabled),\n\t\t\t\trequired: Boolean(required),\n\t\t\t\ttouched: Boolean(touched),\n\t\t\t\t'hide-label': Boolean(hideLabel),\n\t\t\t\t'read-only': Boolean(readOnly),\n\t\t\t\t...(showMsg ? { [getMsgType(msg) as 'default' | 'error' | 'info' | 'success' | 'warning']: true } : {}),\n\t\t\t\t'label-align-left': labelAlign === 'left',\n\t\t\t\t'label-align-right': labelAlign === 'right',\n\t\t\t}}\n\t\t\tclass={classNames}\n\t\t\t{...other}\n\t\t>\n\t\t\t{labelAlign === 'left' ? [renderLabel(), renderInput(), renderTooltip()] : [renderInput(), renderTooltip(), renderLabel()]}\n\t\t\t{!renderNoHint && <FormFieldHintFC baseClassName=\"kol-field-control\" id={id} hint={hint} />}\n\t\t</BemRootNodeFC>\n\t);\n};\n"],"names":[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AE,UAAU,KAAK,MAAM,EACzC,mBAAmB,EAAE,UAAU,KAAK,OAAO,EAAA,CAAA,EAE5C,KAAK,EAAE,UAAU,IACb,KAAK,CAAA,EAER,UAAU,KAAK,MAAM,GAAG,CAAC,WAAW,EAAE,EAAE,WAAW,EAAE,EAAE,aAAa,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,CAAC,EACzH,CAAC,YAAY,IAAI,CAAA,CAAC,eAAe,EAAC,EAAA,aAAa,EAAC,mBAAmB,EAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAI,CAAA,CAC5E;AAElB;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import{c as s,n as e}from"./base-web-component-3R1Dy3QK.js";import{h as i}from"./index-
|
|
5
|
-
//# sourceMappingURL=group-
|
|
4
|
+
import{c as s,n as e}from"./base-web-component-3R1Dy3QK.js";import{h as i}from"./index-wY4pHWJG.js";import{g as t}from"./block-bem-DxQXsOt3.js";import{a as o}from"./dev.utils-DDqySnXB.js";import{B as n}from"./api-Bhr2ic7C.js";import{b as r}from"./bem-registry-CX5kvaqt.js";const a=s("hasClearButton",true,e);const h=t("kol-custom-suggestions-options-group");const d=t("kol-custom-suggestions-option");const l=({blockSuggestionMouseOver:s,onKeyDown:e,style:t,hidden:o,id:n},r)=>i("ul",{id:n,role:"listbox",style:t,class:h({"cursor-hidden":s,open:!o}),hidden:o,onKeyDown:e},r);const c=(s,e)=>{if(!(e===null||e===void 0?void 0:e.trim()))return s;const t=new RegExp(`(${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");const o=s.split(t);return o.map(((s,e)=>e%2===1?i("mark",null,s):s))};const u=({disabled:s,id:e,index:t,ref:o,selected:n,onClick:r,onMouseOver:a,onFocus:h,onKeyDown:l,option:u,searchTerm:f})=>i("li",{id:e,key:`-${t}`,ref:o,"data-index":t,tabIndex:-1,role:"option","aria-selected":n?"true":undefined,"aria-disabled":s?"true":undefined,onClick:r,onMouseOver:a,onFocus:h,class:d({disabled:Boolean(s)}),onKeyDown:l},i("span",null,c(String(u),f||"")));class f extends n{constructor(){super(...arguments);this.focusedIndex=-1;this.clearButtonFocused=false;this.optionRefs=[];this.handleClearButtonFocus=()=>{this.clearButtonFocused=true};this.handleClearButtonBlur=()=>{this.clearButtonFocused=false}}getOptionId(s){return o(this.id,`option-${s}`)}getActiveDescendant(){return this.isOpen&&this.focusedIndex>=0?this.getOptionId(this.focusedIndex):undefined}focusOption(s){var e;this.focusedIndex=s;(e=this.optionRefs[s])===null||e===void 0?void 0:e.focus()}moveFocusWrapping(s){let e=this.focusedIndex+s;const i=this.getOptionCount();if(e>=i){e=0}if(e<0){e=i-1}this.focusOption(e)}moveFocusSkippingDisabled(s,e,i){const t=this.getOptionCount();let o=this.focusedIndex+s;for(let s=0;s<t;s++){if(o>=t){o=0}if(o<0){o=t-1}if(!i(o)){this.focusOption(o);return}o+=e}}handleListboxEvent(s,e,i){var t;s.preventDefault();if(e!==undefined){this.isOpen=e;if(!e){(t=this.ctaRef.el)===null||t===void 0?void 0:t.focus()}}i===null||i===void 0?void 0:i()}handleListboxKeyDown(s){var e,i;switch(s.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=true;this.handleListboxEvent(s,true,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":{this.blockSuggestionMouseOver=true;const e=this.isOpen;this.handleListboxEvent(s,true,(()=>e?this.moveFocus(-1,-1):this.focusLastOption()));break}case"Tab":if(this.isOpen){this.isOpen=false;(e=this.ctaRef.el)===null||e===void 0?void 0:e.focus()}break;case"Esc":case"Escape":if(this.isOpen){s.preventDefault();this.isOpen=false;(i=this.ctaRef.el)===null||i===void 0?void 0:i.focus()}break;case" ":case"Enter":case"NumpadEnter":this.handleConfirmKey(s);break;case"Home":if(this.isOpen){this.blockSuggestionMouseOver=true;this.handleListboxEvent(s,undefined,(()=>this.focusFirstOption()))}break;case"End":if(this.isOpen){this.blockSuggestionMouseOver=true;this.handleListboxEvent(s,undefined,(()=>this.focusLastOption()))}break;case"PageUp":this.blockSuggestionMouseOver=true;this.handleListboxEvent(s,undefined,(()=>this.isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=true;this.handleListboxEvent(s,undefined,(()=>this.isOpen&&this.moveFocus(10,-1)));break}}handleListboxMouseMove(){this.blockSuggestionMouseOver=false}}const p={"kol-combobox":r.forBlock("kol-combobox")("group"),"kol-single-select":r.forBlock("kol-single-select")("group")};const b=({block:s},e)=>i("div",{class:p[s]},e);export{f as B,u as C,b as L,l as a,a as h};
|
|
5
|
+
//# sourceMappingURL=group-CXJiUqKv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-BAOmF5Ok.js","sources":["src/internal/props/has-clear-button.ts","src/internal/functional-components/form-field/custom-suggestions.tsx","src/internal/functional-components/listbox/base-web-component.tsx","src/internal/functional-components/listbox/group.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeBoolean } from './helpers/normalizers';\n\n/**\n * Clear button prop of `kol-combobox` and `kol-single-select`\n *\n * Description:\n * Shows a button that clears the value while the field has one.\n */\nexport type HasClearButtonProp = SimpleProp<'hasClearButton', boolean>;\nexport const hasClearButtonProp = createPropDefinition<HasClearButtonProp>('hasClearButton', true, normalizeBoolean);\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../../schema';\nimport { getBlockBem } from '../bem-root-node/block-bem';\n\nconst optionsGroupBem = getBlockBem('kol-custom-suggestions-options-group');\nconst optionBem = getBlockBem('kol-custom-suggestions-option');\n\nexport type CustomSuggestionsOptionsGroupFCProps = JSXBase.HTMLAttributes<HTMLUListElement> & {\n\t/** Hides the mouse cursor while the keyboard moves through the options. */\n\tblockSuggestionMouseOver: boolean;\n};\n\nexport type CustomSuggestionsOptionFCProps = JSXBase.HTMLAttributes<HTMLLIElement> & {\n\tdisabled: boolean;\n\t/** Unique per field, because the input references the focused option with `aria-activedescendant`. */\n\tid: string;\n\tindex: number;\n\toption: W3CInputValue;\n\tselected: boolean;\n\t/** Marked in the option text, case-insensitive. */\n\tsearchTerm?: string;\n\tref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;\n};\n\n/** Listbox of the custom suggestions of `kol-combobox` and `kol-single-select`; `hidden` closes it. */\nexport const CustomSuggestionsOptionsGroupFC: FC<CustomSuggestionsOptionsGroupFCProps> = (\n\t{ blockSuggestionMouseOver, onKeyDown, style, hidden, id },\n\tchildren,\n) => (\n\t<ul\n\t\tid={id}\n\t\trole=\"listbox\"\n\t\tstyle={style}\n\t\tclass={optionsGroupBem({ 'cursor-hidden': blockSuggestionMouseOver, open: !hidden })}\n\t\thidden={hidden}\n\t\tonKeyDown={onKeyDown}\n\t>\n\t\t{children}\n\t</ul>\n);\n\nconst highlightSearchTerm = (text: string, searchTerm: string) => {\n\tif (!searchTerm?.trim()) return text;\n\n\tconst regex = new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')})`, 'gi');\n\tconst parts = text.split(regex);\n\n\treturn parts.map((part, partIndex) => (partIndex % 2 === 1 ? <mark>{part}</mark> : part));\n};\n\n/**\n * One option of the custom suggestions. It is focusable (`tabIndex=-1`), so the keyboard moves the\n * real focus into the list.\n */\nexport const CustomSuggestionsOptionFC: FC<CustomSuggestionsOptionFCProps> = ({\n\tdisabled,\n\tid,\n\tindex,\n\tref,\n\tselected,\n\tonClick,\n\tonMouseOver,\n\tonFocus,\n\tonKeyDown,\n\toption,\n\tsearchTerm,\n}) => (\n\t<li\n\t\tid={id}\n\t\tkey={`-${index}`}\n\t\tref={ref}\n\t\tdata-index={index}\n\t\ttabIndex={-1}\n\t\trole=\"option\"\n\t\taria-selected={selected ? 'true' : undefined}\n\t\taria-disabled={disabled ? 'true' : undefined}\n\t\tonClick={onClick}\n\t\tonMouseOver={onMouseOver}\n\t\tonFocus={onFocus}\n\t\tclass={optionBem({ disabled: Boolean(disabled) })}\n\t\tonKeyDown={onKeyDown}\n\t>\n\t\t<span>{highlightSearchTerm(String(option), searchTerm || '')}</span>\n\t</li>\n);\n","import { createRelatedUniqueId } from '../../../utils/dev.utils';\nimport type { CtaRef } from '../../../utils/element-interaction';\nimport type { FormFieldBaseApi } from '../form-field/api';\nimport { BaseFormFieldWebComponent } from '../form-field/base-web-component';\n\n/**\n * Shared orchestrator implementation of the fields with a custom listbox, `kol-combobox` and\n * `kol-single-select`: the open state, the focused option, the keyboard navigation and the clear\n * button state.\n *\n * The keyboard moves the real focus onto the options (`<li tabIndex=-1>`). Where the two fields\n * differ, the concrete element implements the hooks: how the focus moves, which options are first\n * and last, and what Enter, NumpadEnter and Space do. The concrete element keeps what Stencil has to\n * see in the component class itself (DD16), including the `@Listen` handlers, which delegate here.\n */\nexport abstract class BaseListboxWebComponent<Api extends FormFieldBaseApi> extends BaseFormFieldWebComponent<Api> {\n\t/** Declared with `@State()` by the concrete class. */\n\tpublic abstract isOpen: boolean;\n\t/** Hides the mouse cursor and ignores hovering while the keyboard moves through the options; declared with `@State()`. */\n\tpublic abstract blockSuggestionMouseOver: boolean;\n\n\tprotected abstract readonly ctaRef: CtaRef<HTMLInputElement>;\n\t/** Declared with `@State()` by the concrete class. */\n\tpublic abstract id: string;\n\n\t/** Index of the focused option, `-1` for none. */\n\tprotected focusedIndex = -1;\n\t/** Whether the clear button has the focus, so Enter and Space clear the value. */\n\tprotected clearButtonFocused = false;\n\tprotected optionRefs: HTMLLIElement[] = [];\n\n\t/** Number of the options in the listbox. */\n\tprotected abstract getOptionCount(): number;\n\n\t/** Moves the focus by `delta` options; `searchStep` is the direction to skip disabled options in. */\n\tprotected abstract moveFocus(delta: number, searchStep?: number): void;\n\tprotected abstract focusFirstOption(): void;\n\tprotected abstract focusLastOption(): void;\n\t/** Enter, NumpadEnter and Space. */\n\tprotected abstract handleConfirmKey(event: KeyboardEvent): void;\n\n\t/** ID of the option at `index`, unique per field. */\n\tprotected getOptionId(index: number): string {\n\t\treturn createRelatedUniqueId(this.id, `option-${index}`);\n\t}\n\n\t/** Value of `aria-activedescendant` on the input: the focused option of the open list. */\n\tprotected getActiveDescendant(): string | undefined {\n\t\treturn this.isOpen && this.focusedIndex >= 0 ? this.getOptionId(this.focusedIndex) : undefined;\n\t}\n\n\tprotected focusOption(index: number): void {\n\t\tthis.focusedIndex = index;\n\t\tthis.optionRefs[index]?.focus();\n\t}\n\n\t/** Moves the focus and wraps around at both ends. */\n\tprotected moveFocusWrapping(delta: number): void {\n\t\tlet index = this.focusedIndex + delta;\n\t\tconst count = this.getOptionCount();\n\t\tif (index >= count) {\n\t\t\tindex = 0;\n\t\t}\n\t\tif (index < 0) {\n\t\t\tindex = count - 1;\n\t\t}\n\t\tthis.focusOption(index);\n\t}\n\n\t/**\n\t * Moves the focus, wraps around at both ends and skips disabled options in the direction of\n\t * `searchStep`. Without an enabled option the focus stays.\n\t */\n\tprotected moveFocusSkippingDisabled(delta: number, searchStep: number, isDisabled: (index: number) => boolean): void {\n\t\tconst count = this.getOptionCount();\n\t\tlet index = this.focusedIndex + delta;\n\n\t\tfor (let iteration = 0; iteration < count; iteration++) {\n\t\t\tif (index >= count) {\n\t\t\t\tindex = 0;\n\t\t\t}\n\t\t\tif (index < 0) {\n\t\t\t\tindex = count - 1;\n\t\t\t}\n\t\t\tif (!isDisabled(index)) {\n\t\t\t\tthis.focusOption(index);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tindex += searchStep;\n\t\t}\n\t}\n\n\t/** Prevents the default action, sets the open state (closing focuses the input) and runs `callback`. */\n\tprotected handleListboxEvent(event: KeyboardEvent, isOpen?: boolean, callback?: () => void): void {\n\t\tevent.preventDefault();\n\t\tif (isOpen !== undefined) {\n\t\t\tthis.isOpen = isOpen;\n\t\t\tif (!isOpen) {\n\t\t\t\tthis.ctaRef.el?.focus();\n\t\t\t}\n\t\t}\n\t\tcallback?.();\n\t}\n\n\t/** Keyboard navigation of the listbox, registered by the concrete element with `@Listen('keydown')`. */\n\tprotected handleListboxKeyDown(event: KeyboardEvent): void {\n\t\tswitch (event.key) {\n\t\t\tcase 'Down':\n\t\t\tcase 'ArrowDown':\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tthis.handleListboxEvent(event, true, () => this.moveFocus(1));\n\t\t\t\tbreak;\n\t\t\tcase 'Up':\n\t\t\tcase 'ArrowUp': {\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tconst wasOpen = this.isOpen;\n\t\t\t\tthis.handleListboxEvent(event, true, () => (wasOpen ? this.moveFocus(-1, -1) : this.focusLastOption()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Tab':\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tthis.isOpen = false;\n\t\t\t\t\tthis.ctaRef.el?.focus();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Esc':\n\t\t\tcase 'Escape':\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tthis.isOpen = false;\n\t\t\t\t\tthis.ctaRef.el?.focus();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ' ':\n\t\t\tcase 'Enter':\n\t\t\tcase 'NumpadEnter':\n\t\t\t\tthis.handleConfirmKey(event);\n\t\t\t\tbreak;\n\t\t\tcase 'Home':\n\t\t\t\t// With a closed list, Home and End move the caret of the input.\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.focusFirstOption());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'End':\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.focusLastOption());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'PageUp':\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.isOpen && this.moveFocus(-10));\n\t\t\t\tbreak;\n\t\t\tcase 'PageDown':\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.isOpen && this.moveFocus(10, -1));\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/** Mouse movement ends the keyboard mode of the listbox; registered with `@Listen('mousemove')`. */\n\tprotected handleListboxMouseMove(): void {\n\t\tthis.blockSuggestionMouseOver = false;\n\t}\n\n\tprotected readonly handleClearButtonFocus = (): void => {\n\t\tthis.clearButtonFocused = true;\n\t};\n\n\tprotected readonly handleClearButtonBlur = (): void => {\n\t\tthis.clearButtonFocused = false;\n\t};\n}\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\n\nconst GROUP_CLASSES = {\n\t'kol-combobox': bem.forBlock('kol-combobox')('group'),\n\t'kol-single-select': bem.forBlock('kol-single-select')('group'),\n} as const;\n\nexport type ListboxGroupFCProps = {\n\t/** Block of the listbox field the group belongs to. */\n\tblock: keyof typeof GROUP_CLASSES;\n};\n\n/** Groups the input of a listbox field with its clear button and its toggle. */\nexport const ListboxGroupFC: FC<ListboxGroupFCProps> = ({ block }, children) => <div class={GROUP_CLASSES[block]}>{children}</div>;\n"],"names":[],"mappings":";;;;;;;;;;AAWO,MAAM,kBAAkB,GAAG,oBAAoB,CAAqB,gBAAgB,EAAE,IAAI,EAAE,gBAAgB;;ACNnH,MAAM,eAAe,GAAG,WAAW,CAAC,sCAAsC,CAAC;AAC3E,MAAM,SAAS,GAAG,WAAW,CAAC,+BAA+B,CAAC;AAoBvD,MAAM,+BAA+B,GAA6C,CACx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wB,GAAG,KAAK;;AAUtC;;ACzKD,MAAM,aAAa,GAAG;IACrB,cAAc,EAAE,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC;IACrD,mBAAmB,EAAE,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC;CACtD;AAQH,MAAM,cAAc,GAA4B,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,KAAK,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,EAAA,EAAG,QAAQ;;;;"}
|
|
1
|
+
{"version":3,"file":"group-CXJiUqKv.js","sources":["src/internal/props/has-clear-button.ts","src/internal/functional-components/form-field/custom-suggestions.tsx","src/internal/functional-components/listbox/base-web-component.tsx","src/internal/functional-components/listbox/group.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeBoolean } from './helpers/normalizers';\n\n/**\n * Clear button prop of `kol-combobox` and `kol-single-select`\n *\n * Description:\n * Shows a button that clears the value while the field has one.\n */\nexport type HasClearButtonProp = SimpleProp<'hasClearButton', boolean>;\nexport const hasClearButtonProp = createPropDefinition<HasClearButtonProp>('hasClearButton', true, normalizeBoolean);\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../../schema';\nimport { getBlockBem } from '../bem-root-node/block-bem';\n\nconst optionsGroupBem = getBlockBem('kol-custom-suggestions-options-group');\nconst optionBem = getBlockBem('kol-custom-suggestions-option');\n\nexport type CustomSuggestionsOptionsGroupFCProps = JSXBase.HTMLAttributes<HTMLUListElement> & {\n\t/** Hides the mouse cursor while the keyboard moves through the options. */\n\tblockSuggestionMouseOver: boolean;\n};\n\nexport type CustomSuggestionsOptionFCProps = JSXBase.HTMLAttributes<HTMLLIElement> & {\n\tdisabled: boolean;\n\t/** Unique per field, because the input references the focused option with `aria-activedescendant`. */\n\tid: string;\n\tindex: number;\n\toption: W3CInputValue;\n\tselected: boolean;\n\t/** Marked in the option text, case-insensitive. */\n\tsearchTerm?: string;\n\tref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;\n};\n\n/** Listbox of the custom suggestions of `kol-combobox` and `kol-single-select`; `hidden` closes it. */\nexport const CustomSuggestionsOptionsGroupFC: FC<CustomSuggestionsOptionsGroupFCProps> = (\n\t{ blockSuggestionMouseOver, onKeyDown, style, hidden, id },\n\tchildren,\n) => (\n\t<ul\n\t\tid={id}\n\t\trole=\"listbox\"\n\t\tstyle={style}\n\t\tclass={optionsGroupBem({ 'cursor-hidden': blockSuggestionMouseOver, open: !hidden })}\n\t\thidden={hidden}\n\t\tonKeyDown={onKeyDown}\n\t>\n\t\t{children}\n\t</ul>\n);\n\nconst highlightSearchTerm = (text: string, searchTerm: string) => {\n\tif (!searchTerm?.trim()) return text;\n\n\tconst regex = new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')})`, 'gi');\n\tconst parts = text.split(regex);\n\n\treturn parts.map((part, partIndex) => (partIndex % 2 === 1 ? <mark>{part}</mark> : part));\n};\n\n/**\n * One option of the custom suggestions. It is focusable (`tabIndex=-1`), so the keyboard moves the\n * real focus into the list.\n */\nexport const CustomSuggestionsOptionFC: FC<CustomSuggestionsOptionFCProps> = ({\n\tdisabled,\n\tid,\n\tindex,\n\tref,\n\tselected,\n\tonClick,\n\tonMouseOver,\n\tonFocus,\n\tonKeyDown,\n\toption,\n\tsearchTerm,\n}) => (\n\t<li\n\t\tid={id}\n\t\tkey={`-${index}`}\n\t\tref={ref}\n\t\tdata-index={index}\n\t\ttabIndex={-1}\n\t\trole=\"option\"\n\t\taria-selected={selected ? 'true' : undefined}\n\t\taria-disabled={disabled ? 'true' : undefined}\n\t\tonClick={onClick}\n\t\tonMouseOver={onMouseOver}\n\t\tonFocus={onFocus}\n\t\tclass={optionBem({ disabled: Boolean(disabled) })}\n\t\tonKeyDown={onKeyDown}\n\t>\n\t\t<span>{highlightSearchTerm(String(option), searchTerm || '')}</span>\n\t</li>\n);\n","import { createRelatedUniqueId } from '../../../utils/dev.utils';\nimport type { CtaRef } from '../../../utils/element-interaction';\nimport type { FormFieldBaseApi } from '../form-field/api';\nimport { BaseFormFieldWebComponent } from '../form-field/base-web-component';\n\n/**\n * Shared orchestrator implementation of the fields with a custom listbox, `kol-combobox` and\n * `kol-single-select`: the open state, the focused option, the keyboard navigation and the clear\n * button state.\n *\n * The keyboard moves the real focus onto the options (`<li tabIndex=-1>`). Where the two fields\n * differ, the concrete element implements the hooks: how the focus moves, which options are first\n * and last, and what Enter, NumpadEnter and Space do. The concrete element keeps what Stencil has to\n * see in the component class itself (DD16), including the `@Listen` handlers, which delegate here.\n */\nexport abstract class BaseListboxWebComponent<Api extends FormFieldBaseApi> extends BaseFormFieldWebComponent<Api> {\n\t/** Declared with `@State()` by the concrete class. */\n\tpublic abstract isOpen: boolean;\n\t/** Hides the mouse cursor and ignores hovering while the keyboard moves through the options; declared with `@State()`. */\n\tpublic abstract blockSuggestionMouseOver: boolean;\n\n\tprotected abstract readonly ctaRef: CtaRef<HTMLInputElement>;\n\t/** Declared with `@State()` by the concrete class. */\n\tpublic abstract id: string;\n\n\t/** Index of the focused option, `-1` for none. */\n\tprotected focusedIndex = -1;\n\t/** Whether the clear button has the focus, so Enter and Space clear the value. */\n\tprotected clearButtonFocused = false;\n\tprotected optionRefs: HTMLLIElement[] = [];\n\n\t/** Number of the options in the listbox. */\n\tprotected abstract getOptionCount(): number;\n\n\t/** Moves the focus by `delta` options; `searchStep` is the direction to skip disabled options in. */\n\tprotected abstract moveFocus(delta: number, searchStep?: number): void;\n\tprotected abstract focusFirstOption(): void;\n\tprotected abstract focusLastOption(): void;\n\t/** Enter, NumpadEnter and Space. */\n\tprotected abstract handleConfirmKey(event: KeyboardEvent): void;\n\n\t/** ID of the option at `index`, unique per field. */\n\tprotected getOptionId(index: number): string {\n\t\treturn createRelatedUniqueId(this.id, `option-${index}`);\n\t}\n\n\t/** Value of `aria-activedescendant` on the input: the focused option of the open list. */\n\tprotected getActiveDescendant(): string | undefined {\n\t\treturn this.isOpen && this.focusedIndex >= 0 ? this.getOptionId(this.focusedIndex) : undefined;\n\t}\n\n\tprotected focusOption(index: number): void {\n\t\tthis.focusedIndex = index;\n\t\tthis.optionRefs[index]?.focus();\n\t}\n\n\t/** Moves the focus and wraps around at both ends. */\n\tprotected moveFocusWrapping(delta: number): void {\n\t\tlet index = this.focusedIndex + delta;\n\t\tconst count = this.getOptionCount();\n\t\tif (index >= count) {\n\t\t\tindex = 0;\n\t\t}\n\t\tif (index < 0) {\n\t\t\tindex = count - 1;\n\t\t}\n\t\tthis.focusOption(index);\n\t}\n\n\t/**\n\t * Moves the focus, wraps around at both ends and skips disabled options in the direction of\n\t * `searchStep`. Without an enabled option the focus stays.\n\t */\n\tprotected moveFocusSkippingDisabled(delta: number, searchStep: number, isDisabled: (index: number) => boolean): void {\n\t\tconst count = this.getOptionCount();\n\t\tlet index = this.focusedIndex + delta;\n\n\t\tfor (let iteration = 0; iteration < count; iteration++) {\n\t\t\tif (index >= count) {\n\t\t\t\tindex = 0;\n\t\t\t}\n\t\t\tif (index < 0) {\n\t\t\t\tindex = count - 1;\n\t\t\t}\n\t\t\tif (!isDisabled(index)) {\n\t\t\t\tthis.focusOption(index);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tindex += searchStep;\n\t\t}\n\t}\n\n\t/** Prevents the default action, sets the open state (closing focuses the input) and runs `callback`. */\n\tprotected handleListboxEvent(event: KeyboardEvent, isOpen?: boolean, callback?: () => void): void {\n\t\tevent.preventDefault();\n\t\tif (isOpen !== undefined) {\n\t\t\tthis.isOpen = isOpen;\n\t\t\tif (!isOpen) {\n\t\t\t\tthis.ctaRef.el?.focus();\n\t\t\t}\n\t\t}\n\t\tcallback?.();\n\t}\n\n\t/** Keyboard navigation of the listbox, registered by the concrete element with `@Listen('keydown')`. */\n\tprotected handleListboxKeyDown(event: KeyboardEvent): void {\n\t\tswitch (event.key) {\n\t\t\tcase 'Down':\n\t\t\tcase 'ArrowDown':\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tthis.handleListboxEvent(event, true, () => this.moveFocus(1));\n\t\t\t\tbreak;\n\t\t\tcase 'Up':\n\t\t\tcase 'ArrowUp': {\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tconst wasOpen = this.isOpen;\n\t\t\t\tthis.handleListboxEvent(event, true, () => (wasOpen ? this.moveFocus(-1, -1) : this.focusLastOption()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'Tab':\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tthis.isOpen = false;\n\t\t\t\t\tthis.ctaRef.el?.focus();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Esc':\n\t\t\tcase 'Escape':\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tthis.isOpen = false;\n\t\t\t\t\tthis.ctaRef.el?.focus();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ' ':\n\t\t\tcase 'Enter':\n\t\t\tcase 'NumpadEnter':\n\t\t\t\tthis.handleConfirmKey(event);\n\t\t\t\tbreak;\n\t\t\tcase 'Home':\n\t\t\t\t// With a closed list, Home and End move the caret of the input.\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.focusFirstOption());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'End':\n\t\t\t\tif (this.isOpen) {\n\t\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.focusLastOption());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'PageUp':\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.isOpen && this.moveFocus(-10));\n\t\t\t\tbreak;\n\t\t\tcase 'PageDown':\n\t\t\t\tthis.blockSuggestionMouseOver = true;\n\t\t\t\tthis.handleListboxEvent(event, undefined, () => this.isOpen && this.moveFocus(10, -1));\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/** Mouse movement ends the keyboard mode of the listbox; registered with `@Listen('mousemove')`. */\n\tprotected handleListboxMouseMove(): void {\n\t\tthis.blockSuggestionMouseOver = false;\n\t}\n\n\tprotected readonly handleClearButtonFocus = (): void => {\n\t\tthis.clearButtonFocused = true;\n\t};\n\n\tprotected readonly handleClearButtonBlur = (): void => {\n\t\tthis.clearButtonFocused = false;\n\t};\n}\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\n\nconst GROUP_CLASSES = {\n\t'kol-combobox': bem.forBlock('kol-combobox')('group'),\n\t'kol-single-select': bem.forBlock('kol-single-select')('group'),\n} as const;\n\nexport type ListboxGroupFCProps = {\n\t/** Block of the listbox field the group belongs to. */\n\tblock: keyof typeof GROUP_CLASSES;\n};\n\n/** Groups the input of a listbox field with its clear button and its toggle. */\nexport const ListboxGroupFC: FC<ListboxGroupFCProps> = ({ block }, children) => <div class={GROUP_CLASSES[block]}>{children}</div>;\n"],"names":[],"mappings":";;;;;;;;;;AAWO,MAAM,kBAAkB,GAAG,oBAAoB,CAAqB,gBAAgB,EAAE,IAAI,EAAE,gBAAgB;;ACNnH,MAAM,eAAe,GAAG,WAAW,CAAC,sCAAsC,CAAC;AAC3E,MAAM,SAAS,GAAG,WAAW,CAAC,+BAA+B,CAAC;AAoBvD,MAAM,+BAA+B,GAA6C,CACxF,EAAE,wBAAwB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAC1D,QAAQ,MAER,CACC,CAAA,IAAA,EAAA,EAAA,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,SAAS,E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,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC;CACtD;AAQH,MAAM,cAAc,GAA4B,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,KAAK,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,EAAA,EAAG,QAAQ;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
|
3
3
|
*/
|
|
4
|
-
import"./common-BqpMtheU.js";const e="kolibri";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,state:true,updatable:true};const n={kolibriVersion:"4.5.0
|
|
4
|
+
import"./common-BqpMtheU.js";const e="kolibri";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,state:true,updatable:true};const n={kolibriVersion:"4.5.0"};var r=Object.defineProperty;var i=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:true})};var s="http://www.w3.org/2000/svg";var o="http://www.w3.org/1999/xhtml";var l=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(l||{});var f=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(f||{});var a="type";var c="value";var u="serialized:";var v=(e,t)=>{var n;const r=t.t;const i=Object.entries((n=r.i)!=null?n:{});i.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const i=d(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.o.has(n)?t.o.get(n):r}}))};function d(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var p=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var h=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.l=e;if(n.t.u&512&&t.state){v(e,n)}};var $=(e,t)=>{const n={u:0,$hostElement$:e,t,o:new Map,v:new Map};{n.p=new Promise((e=>n.h=e))}{n.$=new Promise((e=>n.m=e));e["s-p"]=[];e["s-rc"]=[]}{n.j=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var m=(e,t)=>t in e;var y=(e,t)=>(0,console.error)(e,t);var b=new Map;var w=(e,t,n)=>{const r=e.S.replace(/-/g,"_");const i=e.O;if(!i){return void 0}const s=b.get(i);if(s){return s[r]}
|
|
5
5
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{b.set(i,e)}return e[r]}),(e=>{y(e,t.$hostElement$)}))};var g=new Map;var j=[];var S="r";var O="o";var k="s";var x="t";var E="c";var C="s-id";var I="sty-id";var M="c-id";var N="{visibility:hidden}.hydrated{visibility:inherit}";var U="slot-fb{display:contents}slot-fb[hidden]{display:none}";var P="http://www.w3.org/1999/xlink";var L=typeof window!=="undefined"?window:{};var R={u:0,k:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var A=(()=>{var e;let t=false;try{(e=L.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var D=e=>Promise.resolve(e);var V=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var W=V?(()=>!!L.document&&Object.getOwnPropertyDescriptor(L.document.adoptedStyleSheets,"length").writable)():false;var z=e=>D().then(e);var F=e=>{e=typeof e;return e==="object"||e==="function"};function _(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var B=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var H=class e{static fromLocalValue(t){const n=t[a];const r=c in t?t[c]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,i]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const s=e.fromLocalValue(i);t.set(r,s)}return t;case"object":const i={};for(const[t,n]of r){i[t]=e.fromLocalValue(n)}return i;case"regexp":const{pattern:s,flags:o}=r;return new RegExp(s,o);case"set":const l=new Set;for(const t of r){l.add(e.fromLocalValue(t))}return l;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(a)){return false}const t=e[a];const n=Object.values({...l,...f}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(c)}return true}};var T={};i(T,{err:()=>Y,map:()=>G,ok:()=>q,unwrap:()=>J,unwrapErr:()=>K});var q=e=>({isOk:true,isErr:false,value:e});var Y=e=>({isOk:false,isErr:true,value:e});function G(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>q(e)))}else{return q(n)}}if(e.isErr){const t=e.value;return Y(t)}throw"should never get here"}var J=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};function Q(e){if(typeof e!=="string"||!e.startsWith(u)){return e}return H.fromLocalValue(JSON.parse(atob(e.slice(u.length))))}function X(e){return void 0}var Z;function ee(e){var t;const n=this.attachShadow({mode:"open"});if(Z===void 0)Z=(t=X())!=null?t:null;if(Z){if(W){n.adoptedStyleSheets.push(Z)}else{n.adoptedStyleSheets=[...n.adoptedStyleSheets,Z]}}}var te=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var ne=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const i=document.createTextNode("");i["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const s=t["s-cr"].parentNode;const o=se(s,"appendChild");if(typeof r!=="undefined"){i["s-oo"]=r;const e=se(s,"childNodes");const t=[i];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>o.call(s,e)))}else{o.call(s,i)}e["s-ol"]=i;e["s-sh"]=t["s-hn"]};var re=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ie(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const i=this["s-cr"].parentElement;const s=i.__childNodes?i.childNodes:te(i.childNodes);s.forEach((e=>{if(r===re(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function se(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var oe=(e,t="")=>{{return()=>{}}};var le=(e,t)=>{{return()=>{}}};var fe=new WeakMap;var ae=(e,t,n)=>{let r=g.get(e);if(V&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}g.set(e,r)};var ce=(e,t,n)=>{var r;const i=ve(t,n);const s=g.get(i);if(!L.document){return i}e=e.nodeType===11?e:L.document;if(s){if(typeof s==="string"){e=e.head||e;let n=fe.get(e);let o;if(!n){fe.set(e,n=new Set)}if(!n.has(i)){if(e.host&&(o=e.querySelector(`[${I}="${i}"]`))){o.innerHTML=s}else{o=L.document.createElement("style");o.innerHTML=s;const n=(r=R.C)!=null?r:_(L.document);if(n!=null){o.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(V){const t=new CSSStyleSheet;t.replaceSync(s);if(W){e.adoptedStyleSheets.unshift(t)}else{e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(o)}}}else{e.append(o)}}if(t.u&1){e.insertBefore(o,null)}}if(t.u&4){o.innerHTML+=U}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(s)){if(W){e.adoptedStyleSheets.push(s)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}}return i};var ue=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const i=oe("attachStyles",t.S);const s=ce(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.I);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}i()};var ve=(e,t)=>"sc-"+(t&&e.u&32?e.S+"-"+t:e.S);var de=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var pe=()=>{if(!L.document){return}const e=L.document.querySelectorAll(`[${I}]`);let t=0;for(;t<e.length;t++){ae(e[t].getAttribute(I),de(e[t].innerHTML),true)}};var he=(e,t,...n)=>{let r=null;let i=null;let s=false;let o=false;const l=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!F(r)){r=String(r)}if(s&&o){l[l.length-1].M+=r}else{l.push(s?$e(null,r):r)}o=s}}};f(n);if(t){if(t.key){i=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,l,be)}const a=$e(e,null);a.N=t;if(l.length>0){a.U=l}{a.P=i}return a};var $e=(e,t)=>{const n={u:0,L:e,M:t,R:null,U:null};{n.N=null}{n.P=null}return n};var me={};var ye=e=>e&&e.L===me;var be={forEach:(e,t)=>e.map(we).forEach(t),map:(e,t)=>e.map(we).map(t).map(ge)};var we=e=>({vattrs:e.N,vchildren:e.U,vkey:e.P,vname:e.A,vtag:e.L,vtext:e.M});var ge=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return he(e.vtag,t,...e.vchildren||[])}const t=$e(e.vtag,e.vtext);t.N=e.vattrs;t.U=e.vchildren;t.P=e.vkey;t.A=e.vname;return t};var je=(e,t,n,r)=>{var i,s;const o=oe("hydrateClient",t);const l=e.shadowRoot;const f=[];const a=[];const c=[];const u=l?[]:null;const v=$e(t,null);v.R=e;if(L.document&&(!R.D||!R.D.size)){Oe(L.document.body,R.D=new Map)}e[C]=n;e.removeAttribute(C);r.V=Se(v,f,a,u,e,e,n,c);let d=0;const h=f.length;let $;for(d;d<h;d++){$=f[d];const n=$.W+"."+$.F;const r=R.D.get(n);const s=$.R;if(!l){s["s-hn"]=t.toUpperCase();if($.L==="slot"){s["s-cr"]=e["s-cr"]}}else if(((i=$.L)==null?void 0:i.toString().includes("-"))&&$.L!=="slot-fb"&&!$.R.shadowRoot){const t=p($.R);if(t){const n=ve(t.t,$.R.getAttribute("s-mode"));const r=L.document.querySelector(`style[sty-id="${n}"]`);if(r){e.shadowRoot.append(r.cloneNode(true))}}}if($.L==="slot"){$.A=$.R["s-sn"]||$.R["name"]||null;if($.U){$.u|=2;if(!$.R.childNodes.length){$.U.forEach((e=>{$.R.appendChild(e.R)}))}}else{$.u|=1}}if(r&&r.isConnected){if(r.parentElement.shadowRoot&&r["s-en"]===""){r.parentNode.insertBefore(s,r.nextSibling)}r.parentNode.removeChild(r);if(!l){s["s-oo"]=parseInt($.F)}}if(r&&!r["s-id"]){R.D.delete(n)}}const m=[];const y=c.length;let b=0;let w;let g;let j;let S;for(b;b<y;b++){w=c[b];if(!w||!w.length)continue;j=w.length;g=0;for(g;g<j;g++){S=w[g];if(!m[S.hostId]){m[S.hostId]=R.D.get(S.hostId)}if(!m[S.hostId])continue;const e=m[S.hostId];if(e.shadowRoot&&S.node.parentElement!==e){e.appendChild(S.node)}if(!e.shadowRoot||!l){if(!S.slot["s-cr"]){S.slot["s-cr"]=e["s-cr"];if(!S.slot["s-cr"]&&e.shadowRoot){S.slot["s-cr"]=e}else{S.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}}ne(S.node,S.slot,false,S.node["s-oo"]);if(((s=S.node.parentElement)==null?void 0:s.shadowRoot)&&S.node["getAttribute"]&&S.node.getAttribute("slot")){S.node.removeAttribute("slot")}}}}if(l){let t=0;const n=u.length;if(n){for(t;t<n;t++){const e=u[t];if(e){l.appendChild(e)}}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8&&!e.nodeValue||e.nodeType===3&&!e.wholeText.trim()){e.parentNode.removeChild(e)}}}))}}r.$hostElement$=e;o()};var Se=(e,t,n,r,i,s,o,l=[])=>{let f;let a;let c;let u;if(s.nodeType===1){f=s.getAttribute(M);if(f){a=f.split(".");if(a[0]===o||a[0]==="0"){c=ke({u:0,W:a[0],F:a[1],_:a[2],B:a[3],L:s.tagName.toLowerCase(),R:s,N:{class:s.className||""}});t.push(c);s.removeAttribute(M);if(!e.U){e.U=[]}const i=c.R.getAttribute("s-sn");if(typeof i==="string"){if(c.L==="slot-fb"){xe(i,a[2],c,s,e,t,n,r,l)}c.R["s-sn"]=i;c.R.removeAttribute("s-sn")}if(c.B!==void 0){e.U[c.B]=c}e=c;if(r&&c._==="0"){r[c.B]=c.R}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){Se(e,t,n,r,i,s.shadowRoot.childNodes[u],o,l)}}const v=s.__childNodes||s.childNodes;for(u=v.length-1;u>=0;u--){Se(e,t,n,r,i,v[u],o,l)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===o||a[1]==="0"){f=a[0];c=ke({W:a[1],F:a[2],_:a[3],B:a[4]||"0",R:s,N:null,U:null,P:null,A:null,L:null,M:null});if(f===x){c.R=Ce(s,3);if(c.R&&c.R.nodeType===3){c.M=c.R.textContent;t.push(c);s.remove();if(o===c.W){if(!e.U){e.U=[]}e.U[c.B]=c}if(r&&c._==="0"){r[c.B]=c.R}}}else if(f===E){c.R=Ce(s,8);if(c.R&&c.R.nodeType===8){t.push(c);s.remove()}}else if(c.W===o){if(f===k){const i=s["s-sn"]=a[5]||"";xe(i,a[2],c,s,e,t,n,r,l)}else if(f===S){if(r){s.remove()}}}}}else if(e&&e.L==="style"){const t=$e(null,s.textContent);t.R=s;t.B="0";e.U=[t]}else{if(s.nodeType===3&&!s.wholeText.trim()&&!s["s-nr"]){s.remove()}}return e};var Oe=(e,t)=>{if(e.nodeType===1){const n=e[C]||e.getAttribute(C);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){Oe(e.shadowRoot.childNodes[r],t)}}const i=e.__childNodes||e.childNodes;for(r=0;r<i.length;r++){Oe(i[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===O){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ke=e=>{const t={u:0,W:null,F:null,_:null,B:"0",R:null,N:null,U:null,P:null,A:null,L:null,M:null};return{...t,...e}};function xe(e,t,n,r,i,s,o,l,f){r["s-sr"]=true;n.A=e||null;n.L="slot";const a=(i==null?void 0:i.R)?i.R["s-id"]||i.R.getAttribute("s-id"):"";if(l&&L.document){const s=n.R=L.document.createElement(n.L);if(n.A){n.R.setAttribute("name",e)}if(i.R.shadowRoot&&a&&a!==n.W){se(i.R,"insertBefore")(s,se(i.R,"children")[0])}else{se(se(r,"parentNode"),"insertBefore")(s,r)}Ee(f,t,e,r,n.W);r.remove();if(n._==="0"){l[n.B]=n.R}}else{const s=n.R;const o=a&&a!==n.W&&i.R.shadowRoot;Ee(f,t,e,r,o?a:n.W);ie(r);if(o){i.R.insertBefore(s,i.R.children[0])}}s.push(n);o.push(n);if(!i.U){i.U=[]}i.U[n.B]=n}var Ee=(e,t,n,r,i)=>{var s,o;let l=r.nextSibling;e[t]=e[t]||[];if(!l||((s=l.nodeValue)==null?void 0:s.startsWith(k+".")))return;do{if(l&&((l["getAttribute"]&&l.getAttribute("slot")||l["s-sn"])===n||n===""&&!l["s-sn"]&&(!l["getAttribute"]||!l.getAttribute("slot"))&&(l.nodeType===8||l.nodeType===3))){l["s-sn"]=n;e[t].push({slot:r,node:l,hostId:i})}l=l==null?void 0:l.nextSibling}while(l&&!((o=l.nodeValue)==null?void 0:o.startsWith(k+".")))};var Ce=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Ie=e=>{const t=B(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Ie("::slotted");Ie(":host");Ie(":host-context");var Me=e=>j.map((t=>t(e))).find((e=>!!e));var Ne=e=>j.push(e);var Ue=(e,t,n)=>{if(typeof e==="string"&&e.startsWith(u)){e=Q(e);return e}if(e!=null&&!F(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Pe=e=>{var t;return(t=p(e))==null?void 0:t.$hostElement$};var Le=(e,t,n)=>{const r=Pe(e);return{emit:e=>Re(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var Re=(e,t,n)=>{const r=R.ce(t,n);e.dispatchEvent(r);return r};var Ae=(e,t,n,r,i,s,o)=>{if(n===r){return}let l=m(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const i=Ve(n);let s=Ve(r);if((e["s-si"]||e["s-sc"])&&o){const n=e["s-sc"]||e["s-si"];s.push(n);i.forEach((e=>{if(e.startsWith(n))s.push(e)}));s=[...new Set(s)].filter((e=>e));t.add(...s)}else{t.remove(...i.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!i.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(m(L,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const i=t.endsWith(We);t=t.replace(ze,"");if(n){R.rel(e,t,n,i)}if(r){R.ael(e,t,r,i)}}}else{const o=F(r);if((l||o&&r!==null)&&!i){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){l=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(P,t)}else{e.removeAttribute(t)}}}else if((!l||s&4||i)&&!o&&e.nodeType===1){r=r===true?"":r;if(a){e.setAttributeNS(P,t,r)}else{e.setAttribute(t,r)}}}};var De=/\s/;var Ve=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(De)};var We="Capture";var ze=new RegExp(We+"$");var Fe=(e,t,n,r)=>{const i=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const s=e&&e.N||{};const o=t.N||{};{for(const e of _e(Object.keys(s))){if(!(e in o)){Ae(i,e,s[e],void 0,n,t.u,r)}}}for(const e of _e(Object.keys(o))){Ae(i,e,s[e],o[e],n,t.u,r)}};function _e(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Be;var He=false;var Te=(e,t,n)=>{const r=t.U[n];let i=0;let l;let f;if(r.M!==null){l=r.R=L.document.createTextNode(r.M)}else{if(!He){He=r.L==="svg"}if(!L.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}l=r.R=L.document.createElementNS(He?s:o,r.L);if(He&&r.L==="foreignObject"){He=false}{Fe(null,r,He)}if(r.U){for(i=0;i<r.U.length;++i){f=Te(e,r,i);if(f){l.appendChild(f)}}}{if(r.L==="svg"){He=false}else if(l.tagName==="foreignObject"){He=true}}}l["s-hn"]=Be;return l};var qe=(e,t,n,r,i,s)=>{let o=e;let l;if(o.shadowRoot&&o.tagName===Be){o=o.shadowRoot}for(;i<=s;++i){if(r[i]){l=Te(null,n,i);if(l){r[i].R=l;Xe(o,l,t)}}}};var Ye=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.R;Qe(t);if(e){e.remove()}}}};var Ge=(e,t,n,r,i=false)=>{let s=0;let o=0;let l=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let p=r[v];let h;let $;while(s<=a&&o<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=r[++o]}else if(p==null){p=r[--v]}else if(Je(c,d,i)){Ke(c,d,i);c=t[++s];d=r[++o]}else if(Je(u,p,i)){Ke(u,p,i);u=t[--a];p=r[--v]}else if(Je(c,p,i)){Ke(c,p,i);Xe(e,c.R,u.R.nextSibling);c=t[++s];p=r[--v]}else if(Je(u,d,i)){Ke(u,d,i);Xe(e,u.R,c.R);u=t[--a];d=r[++o]}else{l=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].P!==null&&t[f].P===d.P){l=f;break}}}if(l>=0){$=t[l];if($.L!==d.L){h=Te(t&&t[o],n,l)}else{Ke($,d,i);t[l]=void 0;h=$.R}d=r[++o]}else{h=Te(t&&t[o],n,o);d=r[++o]}if(h){{Xe(c.R.parentNode,h,c.R)}}}}if(s>a){qe(e,r[v+1]==null?null:r[v+1].R,n,r,o,v)}else if(o>v){Ye(t,s,a)}};var Je=(e,t,n=false)=>{if(e.L===t.L){if(!n){return e.P===t.P}if(n&&!e.P&&t.P){e.P=t.P}return true}return false};var Ke=(e,n,r=false)=>{const i=n.R=e.R;const s=e.U;const o=n.U;const l=n.L;const f=n.M;if(f===null){{He=l==="svg"?true:l==="foreignObject"?false:He}{Fe(e,n,He,r)}if(s!==null&&o!==null){Ge(i,s,n,o,r)}else if(o!==null){if(e.M!==null){i.textContent=""}qe(i,null,n,o,0,o.length-1)}else if(!r&&t.updatable&&s!==null){Ye(s,0,s.length-1)}else if(r&&t.updatable&&s!==null&&o===null){n.U=s}if(He&&l==="svg"){He=false}}else if(e.M!==f){i.data=f}};var Qe=e=>{{e.N&&e.N.ref&&e.N.ref(null);e.U&&e.U.map(Qe)}};var Xe=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Ze=(e,t,n=false)=>{const r=e.$hostElement$;const i=e.t;const s=e.V||$e(null,null);const o=ye(t);const l=o?t:he(null,null,t);Be=r.tagName;if(i.H){l.N=l.N||{};i.H.forEach((([e,t])=>{{l.N[t]=r[e]}}))}if(n&&l.N){for(const e of Object.keys(l.N)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){l.N[e]=r[e]}}}l.L=null;l.u|=4;e.V=l;l.R=s.R=r.shadowRoot||r;Ke(s,l,n)};var et=(e,t)=>{if(t&&!e.T&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.T=()=>{t["s-p"].splice(n-1,1);r()})))}};var tt=(e,t)=>{if(e.u&4){e.u|=512;return}et(e,e.q);const n=()=>nt(e,t);if(t){queueMicrotask((()=>{n()}));return}return n()};var nt=(e,t)=>{const n=e.$hostElement$;const r=oe("scheduleUpdate",e.t.S);const i=e.l;if(!i){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{{e.u|=256;if(e.Y){e.Y.map((([e,t])=>ct(i,e,t,n)));e.Y=void 0}}if(e.j.length){e.j.forEach((e=>e(n)))}}s=ct(i,"componentWillLoad",void 0,n)}else{s=ct(i,"componentWillUpdate",void 0,n)}s=rt(s,(()=>ct(i,"componentWillRender",void 0,n)));r();return rt(s,(()=>st(e,i,t)))};var rt=(e,t)=>it(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var it=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var st=async(e,t,n)=>{var r;const i=e.$hostElement$;const s=oe("update",e.t.S);const o=i["s-rc"];if(n){ue(e)}const l=oe("render",e.t.S);{ot(e,t,i,n)}if(o){o.map((e=>e()));i["s-rc"]=void 0}l();s();{const t=(r=i["s-p"])!=null?r:[];const n=()=>lt(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var ot=(e,t,n,r)=>{try{t=t.render&&t.render();{e.u|=2}{{{Ze(e,t,r)}}}}catch(t){y(t,e.$hostElement$)}return null};var lt=e=>{const t=e.t.S;const n=e.$hostElement$;const r=oe("postUpdate",t);const i=e.l;const s=e.q;ct(i,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{ut(n)}ct(i,"componentDidLoad",void 0,n);r();{e.m(n);if(!s){at()}}}else{ct(i,"componentDidUpdate",void 0,n);r()}{e.h(n)}{if(e.T){e.T();e.T=void 0}if(e.u&512){z((()=>tt(e,false)))}e.u&=-517}};var ft=e=>{var t;{const n=p(e);const r=(t=n==null?void 0:n.$hostElement$)==null?void 0:t.isConnected;if(r&&(n.u&(2|16))===2){tt(n,false)}return r}};var at=t=>{var n;z((()=>Re(L,"appload",{detail:{namespace:e}})));{if((n=R.D)==null?void 0:n.size){R.D.clear()}}};var ct=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){y(e,r)}}return void 0};var ut=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var vt=(e,t)=>p(e).o.get(t);var dt=(e,t,n,r)=>{const i=p(e);if(!i){return}if(!i){throw new Error(`Couldn't find host element for "${r.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const s=i.$hostElement$;const o=i.o.get(t);const l=i.u;const f=i.l;n=Ue(n,r.i[t][0]);const a=Number.isNaN(o)&&Number.isNaN(n);const c=n!==o&&!a;if((!(l&8)||o===void 0)&&c){i.o.set(t,n);if(f){if(r.G&&l&128){const e=r.G[t];if(e){e.map((e=>{try{f[e](n,o,t)}catch(e){y(e,s)}}))}}if((l&(2|16))===2){if(f.componentShouldUpdate){if(f.componentShouldUpdate(n,o,t)===false){return}}tt(i,false)}}}};var pt=(e,n,r)=>{var i,s;const o=e.prototype;if(n.i||t.propChangeCallback){{if(e.watchers&&!n.G){n.G=e.watchers}if(e.deserializers&&!n.J){n.J=e.deserializers}if(e.serializers&&!n.K){n.K=e.serializers}}const l=Object.entries((i=n.i)!=null?i:{});l.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:s}=Object.getOwnPropertyDescriptor(o,e)||{};if(i)n.i[e][0]|=2048;if(s)n.i[e][0]|=4096;if(r&1||!i){Object.defineProperty(o,e,{get(){{if((n.i[e][0]&2048)===0){return vt(this,e)}const t=p(this);const r=t?t.l:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(i){const o=p(this);if(!o){return}if(s){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.o.get(e)){i=o.o.get(e)}s.apply(this,[Ue(i,t)]);i=t&32?this[e]:o.$hostElement$[e];dt(this,e,i,n);return}{if((r&1)===0||(n.i[e][0]&4096)===0){dt(this,e,i,n);if(r&1&&!o.l){o.j.push((()=>{if(n.i[e][0]&4096&&o.l[e]!==o.o.get(e)){o.l[e]=i}}))}return}const s=()=>{const r=o.l[e];if(!o.o.get(e)&&r){o.o.set(e,r)}o.l[e]=Ue(i,t);dt(this,e,o.l[e],n)};if(o.l){s()}else{o.j.push((()=>{s()}))}}}})}else if(r&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const r=p(this);return(n=r==null?void 0:r.p)==null?void 0:n.then((()=>{var n;return(n=r.l)==null?void 0:n[e](...t)}))}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,i,s){R.jmp((()=>{var f;const a=r.get(e);const c=p(this);if(this.hasOwnProperty(a)&&t.lazyLoad){s=this[a];delete this[a]}if(o.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==s){return}else if(a==null){const t=c==null?void 0:c.u;if(c&&t&&!(t&8)&&t&128&&s!==i){const t=c.l;const r=(f=n.G)==null?void 0:f[e];r==null?void 0:r.forEach((n=>{if(t[n]!=null){t[n].call(t,s,i,e)}}))}return}const u=l.find((([e])=>e===a));if(u&&u[1][0]&4){s=s===null||s==="false"?false:true}const v=Object.getOwnPropertyDescriptor(o,a);if(s!=this[a]&&(!v.get||!!v.set)){this[a]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.G)!=null?s:{}),...l.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var i;const s=t[1]||e;r.set(s,e);if(t[0]&512){(i=n.H)==null?void 0:i.push([e,s])}return s}))]))}}return e};var ht=async(e,t,n,r)=>{let i;if((t.u&32)===0){t.u|=32;const r=n.O;if(r){const r=w(n,t);if(r&&"then"in r){const e=le();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.S}#${t.I}" was not found`)}if(!i.isProxied){{n.G=i.watchers;n.K=i.serializers;n.J=i.deserializers}pt(i,n,2);i.isProxied=true}const s=oe("createInstance",n.S);{t.u|=8}try{new i(t)}catch(t){y(t,e)}{t.u&=-9}{t.u|=128}s();$t(t.l,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(i&&i.style){let r;if(typeof i.style==="string"){r=i.style}else if(typeof i.style!=="string"){t.I=Me(e);if(t.I){r=i.style[t.I]}}const s=ve(n,t.I);if(!g.has(s)){const e=oe("registerStyles",n.S);ae(s,r,!!(n.u&1));e()}}}const s=t.q;const o=()=>tt(t,true);if(s&&s["s-rc"]){s["s-rc"].push(o)}else{o()}};var $t=(e,t)=>{{ct(e,"connectedCallback",void 0,t)}};var mt=e=>{if((R.u&1)===0){const t=p(e);if(!t){return}const n=t.t;const r=oe("connectedCallback",n.S);if(!(t.u&1)){t.u|=1;let r;{r=e.getAttribute(C);if(r){if(n.u&1){const t=ce(e.shadowRoot,n,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}je(e,n.S,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){et(t,t.q=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t];e[t]=n}}))}{ht(e,t,n)}}else{jt(e,t,n.X);if(t==null?void 0:t.l){$t(t.l,e)}else if(t==null?void 0:t.$){t.$.then((()=>$t(t.l,e)))}}r()}};var yt=(e,t)=>{{ct(e,"disconnectedCallback",void 0,t||e)}};var bt=async e=>{if((R.u&1)===0){const t=p(e);{if(t==null?void 0:t.Z){t.Z.map((e=>e()));t.Z=void 0}}if(t==null?void 0:t.l){yt(t.l,e)}else if(t==null?void 0:t.$){t.$.then((()=>yt(t.l,e)))}}if(fe.has(e)){fe.delete(e)}if(e.shadowRoot&&fe.has(e.shadowRoot)){fe.delete(e.shadowRoot)}};var wt=(e,t={})=>{var n;if(!L.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=oe();const i=[];const s=t.exclude||[];const o=L.customElements;const l=L.document.head;const f=l.querySelector("meta[charset]");const a=L.document.createElement("style");const c=[];let u;let v=true;Object.assign(R,t);R.k=new URL(t.resourcesUrl||"./",L.document.baseURI).href;{R.u|=2}{pe()}let d=false;e.map((e=>{e[1].map((n=>{var r,l,f;const a={u:n[0],S:n[1],i:n[2],X:n[3]};if(a.u&4){d=true}{a.i=n[2]}{a.X=n[3]}{a.H=[]}{a.G=(r=n[4])!=null?r:{};a.K=(l=n[5])!=null?l:{};a.J=(f=n[6])!=null?f:{}}const h=t.transformTagName?t.transformTagName(a.S):a.S;const m=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;$(e,a);if(a.u&1){{if(!e.shadowRoot){ee.call(e,a)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${a.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=p(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;jt(this,e,a.X)}if(u){clearTimeout(u);u=null}if(v){c.push(this)}else{R.jmp((()=>mt(this)))}}disconnectedCallback(){R.jmp((()=>bt(this)));R.raf((()=>{var e;const t=p(this);if(!t){return}const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.V)==null?void 0:e.R)instanceof Node&&!t.V.R.isConnected){delete t.V.R}}))}componentOnReady(){var e;return(e=p(this))==null?void 0:e.$}};a.O=e[0];if(!s.includes(h)&&!o.get(h)){i.push(h);o.define(h,pt(m,a,1))}}))}));if(i.length>0){if(d){a.textContent+=U}{a.textContent+=i.sort()+N}if(a.innerHTML.length){a.setAttribute("data-styles","");const e=(n=R.C)!=null?n:_(L.document);if(e!=null){a.setAttribute("nonce",e)}l.insertBefore(a,f?f.nextSibling:l.firstChild)}}v=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{R.jmp((()=>u=setTimeout(at,30)))}}r()};var gt=(e,t)=>t;var jt=(e,t,n,r)=>{if(n&&L.document){n.map((([n,r,i])=>{const s=Ot(L.document,e,n);const o=St(t,i);const l=kt(n);R.ael(s,r,o,l);(t.Z=t.Z||[]).push((()=>R.rel(s,r,o,l)))}))}};var St=(e,t)=>n=>{var r;try{{if(e.u&256){(r=e.l)==null?void 0:r[t](n)}else{(e.Y=e.Y||[]).push([t,n])}}}catch(t){y(t,e.$hostElement$)}};var Ot=(e,t,n)=>{if(n&8){return L}return t};var kt=e=>A?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var xt=e=>R.C=e;export{n as E,gt as F,me as H,Ne as a,wt as b,Le as c,ft as f,Pe as g,he as h,D as p,h as r,xt as s};
|
|
6
|
-
//# sourceMappingURL=index-
|
|
6
|
+
//# sourceMappingURL=index-wY4pHWJG.js.map
|