@cscfi/csc-ui 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{c-autocomplete_34.cjs.entry.js → c-autocomplete_35.cjs.entry.js} +59 -34
- package/dist/cjs/c-autocomplete_35.cjs.entry.js.map +1 -0
- package/dist/cjs/c-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/c-modal.cjs.entry.js +5 -10
- package/dist/cjs/c-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/c-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/c-option-value.cjs.entry.js +1 -1
- package/dist/cjs/c-pagination.cjs.entry.js +1 -1
- package/dist/cjs/c-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/c-row.cjs.entry.js +1 -1
- package/dist/cjs/c-slider.cjs.entry.js +1 -1
- package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/c-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/c-status.cjs.entry.js +1 -1
- package/dist/cjs/c-step.cjs.entry.js +1 -1
- package/dist/cjs/c-steps.cjs.entry.js +1 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +1 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper.entry.cjs.js.map +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-buttons.entry.cjs.js.map +1 -1
- package/dist/cjs/c-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/c-tab-items.cjs.entry.js +1 -1
- package/dist/cjs/c-tab.cjs.entry.js +1 -1
- package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/c-tabs.cjs.entry.js +1 -1
- package/dist/cjs/c-tag.cjs.entry.js +1 -1
- package/dist/cjs/c-tags.cjs.entry.js +1 -1
- package/dist/cjs/c-toast.cjs.entry.js +1 -1
- package/dist/cjs/c-toasts.cjs.entry.js +2 -2
- package/dist/cjs/csc-ui.cjs.js +1 -1
- package/dist/cjs/index-BTBT6v3v.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +5 -2
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
- package/dist/collection/components/c-backdrop/c-backdrop.js +2 -2
- package/dist/collection/components/c-backdrop/c-backdrop.js.map +1 -1
- package/dist/collection/components/c-button/c-button.js +5 -2
- package/dist/collection/components/c-button/c-button.js.map +1 -1
- package/dist/collection/components/c-checkbox/c-checkbox.js +9 -3
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
- package/dist/collection/components/c-dropdown/c-dropdown.js +6 -3
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
- package/dist/collection/components/c-input/c-input.js +10 -4
- package/dist/collection/components/c-input/c-input.js.map +1 -1
- package/dist/collection/components/c-main/c-main.js +1 -1
- package/dist/collection/components/c-main/c-main.js.map +1 -1
- package/dist/collection/components/c-menu/c-menu.js +1 -1
- package/dist/collection/components/c-menu-items/c-menu-items.js +1 -1
- package/dist/collection/components/c-message/c-message.js +1 -1
- package/dist/collection/components/c-modal/c-modal.js +5 -10
- package/dist/collection/components/c-modal/c-modal.js.map +1 -1
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +1 -1
- package/dist/collection/components/c-option/c-option.js +1 -1
- package/dist/collection/components/c-option-value/c-option-value.js +1 -1
- package/dist/collection/components/c-otp-input/c-otp-input.js +31 -4
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
- package/dist/collection/components/c-page/c-page.js +1 -1
- package/dist/collection/components/c-pagination/c-pagination.js +1 -1
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +1 -1
- package/dist/collection/components/c-radio/c-radio.js +1 -1
- package/dist/collection/components/c-radio-group/c-radio-group.js +5 -2
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
- package/dist/collection/components/c-ripple/c-ripple.js +1 -1
- package/dist/collection/components/c-row/c-row.js +1 -1
- package/dist/collection/components/c-select/c-select.js +6 -3
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +2 -2
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +2 -2
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +1 -1
- package/dist/collection/components/c-slider/c-slider.js +13 -4
- package/dist/collection/components/c-slider/c-slider.js.map +1 -1
- package/dist/collection/components/c-spacer/c-spacer.js +1 -1
- package/dist/collection/components/c-spinner/c-spinner.js +1 -1
- package/dist/collection/components/c-status/c-status.js +1 -1
- package/dist/collection/components/c-step/c-step.js +1 -1
- package/dist/collection/components/c-steps/c-steps.js +1 -1
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +1 -1
- package/dist/collection/components/c-swiper/c-swiper.js +5 -2
- package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +5 -2
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
- package/dist/collection/components/c-switch/c-switch.js +5 -2
- package/dist/collection/components/c-switch/c-switch.js.map +1 -1
- package/dist/collection/components/c-tab/c-tab.js +5 -2
- package/dist/collection/components/c-tab/c-tab.js.map +1 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +5 -2
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
- package/dist/collection/components/c-tab-item/c-tab-item.js +1 -1
- package/dist/collection/components/c-tab-items/c-tab-items.js +1 -1
- package/dist/collection/components/c-table/c-table.js +1 -1
- package/dist/collection/components/c-tabs/c-tabs.js +1 -1
- package/dist/collection/components/c-tag/c-tag.js +1 -1
- package/dist/collection/components/c-tags/c-tags.js +1 -1
- package/dist/collection/components/c-text-field/c-text-field.js +13 -4
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
- package/dist/collection/components/c-toast/c-toast.js +1 -1
- package/dist/collection/components/c-toasts/c-toasts.js +2 -2
- package/dist/collection/components/c-toolbar/c-toolbar.js +1 -1
- package/dist/components/c-autocomplete.js +7 -7
- package/dist/components/c-autocomplete.js.map +1 -1
- package/dist/components/c-backdrop.js +1 -1
- package/dist/components/c-button.js +3 -3
- package/dist/components/c-button.js.map +1 -1
- package/dist/components/c-card.js +3 -3
- package/dist/components/c-checkbox.js +1 -1
- package/dist/components/c-data-table.js +9 -9
- package/dist/components/c-dropdown.js +1 -1
- package/dist/components/c-icon-button.js +1 -1
- package/dist/components/c-input.js +1 -1
- package/dist/components/c-list-item.js +1 -1
- package/dist/components/c-loader.js +1 -1
- package/dist/components/c-main.js +8 -2
- package/dist/components/c-main.js.map +1 -1
- package/dist/components/c-menu-items.js +1 -1
- package/dist/components/c-menu.js +1 -1
- package/dist/components/c-message.js +1 -1
- package/dist/components/c-modal.js +6 -17
- package/dist/components/c-modal.js.map +1 -1
- package/dist/components/c-navigation-button.js +4 -4
- package/dist/components/c-option-value.js +1 -1
- package/dist/components/c-option.js +1 -1
- package/dist/components/c-otp-input.js +6 -4
- package/dist/components/c-otp-input.js.map +1 -1
- package/dist/components/c-page.js +1 -1
- package/dist/components/c-pagination.js +1 -1
- package/dist/components/c-progress-bar.js +1 -1
- package/dist/components/c-radio-group.js +3 -3
- package/dist/components/c-radio-group.js.map +1 -1
- package/dist/components/c-radio.js +1 -1
- package/dist/components/c-ripple.js +1 -1
- package/dist/components/c-row.js +1 -1
- package/dist/components/c-select.js +8 -8
- package/dist/components/c-select.js.map +1 -1
- package/dist/components/c-side-navigation-item.js +4 -4
- package/dist/components/c-side-navigation-title.js +1 -1
- package/dist/components/c-side-navigation.js +5 -5
- package/dist/components/c-slider.js +1 -1
- package/dist/components/c-slider.js.map +1 -1
- package/dist/components/c-spacer.js +1 -1
- package/dist/components/c-spinner.js +1 -1
- package/dist/components/c-status.js +1 -1
- package/dist/components/c-step.js +1 -1
- package/dist/components/c-steps.js +1 -1
- package/dist/components/c-sub-navigation-item.js +3 -3
- package/dist/components/c-swiper-tab.js +2 -2
- package/dist/components/c-swiper-tab.js.map +1 -1
- package/dist/components/c-swiper.js +4 -4
- package/dist/components/c-swiper.js.map +1 -1
- package/dist/components/c-switch.js +2 -2
- package/dist/components/c-switch.js.map +1 -1
- package/dist/components/c-tab-buttons.js +1 -1
- package/dist/components/c-tab-buttons.js.map +1 -1
- package/dist/components/c-tab-item.js +1 -1
- package/dist/components/c-tab-items.js +1 -1
- package/dist/components/c-tab.js +2 -2
- package/dist/components/c-tab.js.map +1 -1
- package/dist/components/c-table.js +1 -1
- package/dist/components/c-tabs.js +4 -4
- package/dist/components/c-tag.js +4 -4
- package/dist/components/c-tags.js +1 -1
- package/dist/components/c-text-field.js +3 -3
- package/dist/components/c-text-field.js.map +1 -1
- package/dist/components/c-toast.js +1 -1
- package/dist/components/c-toasts.js +3 -3
- package/dist/components/c-toolbar.js +1 -1
- package/dist/components/{p-DIuWEWhF.js → p-B1qgNVwl.js} +5 -5
- package/dist/components/{p-DIuWEWhF.js.map → p-B1qgNVwl.js.map} +1 -1
- package/dist/components/{p-Bvm7zYsQ.js → p-BCgTj9pp.js} +4 -4
- package/dist/components/{p-Bvm7zYsQ.js.map → p-BCgTj9pp.js.map} +1 -1
- package/dist/components/{p-BAiDvAZH.js → p-BWp2ldC5.js} +3 -3
- package/dist/components/{p-BAiDvAZH.js.map → p-BWp2ldC5.js.map} +1 -1
- package/dist/components/{p-B-GTME5E.js → p-BoFU7Vlp.js} +4 -4
- package/dist/components/{p-B-GTME5E.js.map → p-BoFU7Vlp.js.map} +1 -1
- package/dist/components/{p-ExNJeaZY.js → p-BrYqG6_f.js} +3 -3
- package/dist/components/{p-ExNJeaZY.js.map → p-BrYqG6_f.js.map} +1 -1
- package/dist/components/{p-Cv2W5q7M.js → p-CFPfmHLA.js} +4 -4
- package/dist/components/{p-Cv2W5q7M.js.map → p-CFPfmHLA.js.map} +1 -1
- package/dist/components/{p-BxBOCrL_.js → p-CSoWw_-h.js} +3 -3
- package/dist/components/{p-BxBOCrL_.js.map → p-CSoWw_-h.js.map} +1 -1
- package/dist/components/{p-DeeeJrXJ.js → p-CxpHiGGi.js} +5 -5
- package/dist/components/{p-DeeeJrXJ.js.map → p-CxpHiGGi.js.map} +1 -1
- package/dist/components/{p-DX6GfaSG.js → p-D6wozX_5.js} +3 -3
- package/dist/components/{p-DX6GfaSG.js.map → p-D6wozX_5.js.map} +1 -1
- package/dist/components/{p-BYbFnpva.js → p-D8otgxt3.js} +3 -3
- package/dist/components/{p-BYbFnpva.js.map → p-D8otgxt3.js.map} +1 -1
- package/dist/components/{p-CFKNgBS9.js → p-DEHCeGjr.js} +3 -3
- package/dist/components/{p-CFKNgBS9.js.map → p-DEHCeGjr.js.map} +1 -1
- package/dist/components/{p-D99sVq9W.js → p-DoU8xThq.js} +4 -4
- package/dist/components/{p-D99sVq9W.js.map → p-DoU8xThq.js.map} +1 -1
- package/dist/components/{p-ChRag9Cq.js → p-DpnXN7-j.js} +3 -3
- package/dist/components/{p-ChRag9Cq.js.map → p-DpnXN7-j.js.map} +1 -1
- package/dist/components/{p-DjjLlh1Q.js → p-VXxIMujl.js} +8 -8
- package/dist/components/{p-DjjLlh1Q.js.map → p-VXxIMujl.js.map} +1 -1
- package/dist/csc-ui/c-modal.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-slider.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-swiper-tab.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-swiper.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-tab-buttons.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-tab.entry.esm.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/p-021ec44b.entry.js +2 -0
- package/dist/csc-ui/p-021ec44b.entry.js.map +1 -0
- package/dist/csc-ui/{p-7dcaf7e2.entry.js → p-1b1d64f3.entry.js} +2 -2
- package/dist/csc-ui/{p-6c3f75f1.entry.js → p-3446156f.entry.js} +2 -2
- package/dist/csc-ui/{p-5d7cb21b.entry.js → p-41b53c95.entry.js} +2 -2
- package/dist/csc-ui/{p-55c851c7.entry.js → p-4b9fc284.entry.js} +2 -2
- package/dist/csc-ui/{p-0ce74b50.entry.js → p-774e25ed.entry.js} +2 -2
- package/dist/csc-ui/{p-fb91bce3.entry.js → p-7869709f.entry.js} +2 -2
- package/dist/csc-ui/p-7869709f.entry.js.map +1 -0
- package/dist/csc-ui/{p-ee61b0f5.entry.js → p-7a4dc6da.entry.js} +2 -2
- package/dist/csc-ui/{p-ee61b0f5.entry.js.map → p-7a4dc6da.entry.js.map} +1 -1
- package/dist/csc-ui/{p-3ffb48e3.entry.js → p-7f778e0a.entry.js} +2 -2
- package/dist/csc-ui/{p-3ffb48e3.entry.js.map → p-7f778e0a.entry.js.map} +1 -1
- package/dist/csc-ui/{p-18e0bac0.entry.js → p-82e5b6a3.entry.js} +2 -2
- package/dist/csc-ui/{p-b92fa51d.entry.js → p-8707c1c5.entry.js} +2 -2
- package/dist/csc-ui/{p-f938bf7f.entry.js → p-8ac910a3.entry.js} +2 -2
- package/dist/csc-ui/{p-97f3194f.entry.js → p-95967094.entry.js} +2 -2
- package/dist/csc-ui/{p-97f3194f.entry.js.map → p-95967094.entry.js.map} +1 -1
- package/dist/csc-ui/{p-71d271a9.entry.js → p-a27a5f80.entry.js} +2 -2
- package/dist/csc-ui/{p-a4d10c24.entry.js → p-bbe0ceb3.entry.js} +2 -2
- package/dist/csc-ui/{p-294c51c0.entry.js → p-c1637cf7.entry.js} +2 -2
- package/dist/csc-ui/{p-35136773.entry.js → p-c791bc22.entry.js} +2 -2
- package/dist/csc-ui/{p-0bab4741.entry.js → p-caad0875.entry.js} +2 -2
- package/dist/csc-ui/{p-3b8431a3.entry.js → p-cb8d7a64.entry.js} +2 -2
- package/dist/csc-ui/{p-7b8caa28.entry.js → p-ce764150.entry.js} +2 -2
- package/dist/csc-ui/{p-7b8caa28.entry.js.map → p-ce764150.entry.js.map} +1 -1
- package/dist/csc-ui/p-cfb2bb1e.entry.js +2 -0
- package/dist/csc-ui/p-cfb2bb1e.entry.js.map +1 -0
- package/dist/csc-ui/{p-2659814c.entry.js → p-fd75e786.entry.js} +2 -2
- package/dist/esm/{c-autocomplete_34.entry.js → c-autocomplete_35.entry.js} +59 -35
- package/dist/esm/c-autocomplete_35.entry.js.map +1 -0
- package/dist/esm/c-menu_2.entry.js +2 -2
- package/dist/esm/c-modal.entry.js +5 -10
- package/dist/esm/c-modal.entry.js.map +1 -1
- package/dist/esm/c-option-value.entry.js +1 -1
- package/dist/esm/c-pagination.entry.js +1 -1
- package/dist/esm/c-progress-bar.entry.js +1 -1
- package/dist/esm/c-row.entry.js +1 -1
- package/dist/esm/c-slider.entry.js +1 -1
- package/dist/esm/c-slider.entry.js.map +1 -1
- package/dist/esm/c-status.entry.js +1 -1
- package/dist/esm/c-step.entry.js +1 -1
- package/dist/esm/c-steps.entry.js +1 -1
- package/dist/esm/c-swiper-tab.entry.js +1 -1
- package/dist/esm/c-swiper-tab.entry.js.map +1 -1
- package/dist/esm/c-swiper.entry.js +1 -1
- package/dist/esm/c-swiper.entry.js.map +1 -1
- package/dist/esm/c-tab-buttons.entry.js +1 -1
- package/dist/esm/c-tab-buttons.entry.js.map +1 -1
- package/dist/esm/c-tab-item.entry.js +1 -1
- package/dist/esm/c-tab-items.entry.js +1 -1
- package/dist/esm/c-tab.entry.js +1 -1
- package/dist/esm/c-tab.entry.js.map +1 -1
- package/dist/esm/c-tabs.entry.js +1 -1
- package/dist/esm/c-tag.entry.js +1 -1
- package/dist/esm/c-tags.entry.js +1 -1
- package/dist/esm/c-toast.entry.js +1 -1
- package/dist/esm/c-toasts.entry.js +2 -2
- package/dist/esm/csc-ui.js +1 -1
- package/dist/esm/index-gSzSMY-c.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +1 -0
- package/dist/types/components.d.ts +52 -0
- package/package.json +1 -1
- package/vscode-data.json +4 -0
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +0 -1
- package/dist/cjs/c-backdrop.cjs.entry.js +0 -31
- package/dist/cjs/c-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/c-backdrop.entry.cjs.js.map +0 -1
- package/dist/csc-ui/c-backdrop.entry.esm.js.map +0 -1
- package/dist/csc-ui/p-2113737d.entry.js +0 -2
- package/dist/csc-ui/p-2113737d.entry.js.map +0 -1
- package/dist/csc-ui/p-3d8aa031.entry.js +0 -2
- package/dist/csc-ui/p-3d8aa031.entry.js.map +0 -1
- package/dist/csc-ui/p-42f25668.entry.js +0 -2
- package/dist/csc-ui/p-42f25668.entry.js.map +0 -1
- package/dist/csc-ui/p-fb91bce3.entry.js.map +0 -1
- package/dist/esm/c-autocomplete_34.entry.js.map +0 -1
- package/dist/esm/c-backdrop.entry.js +0 -29
- package/dist/esm/c-backdrop.entry.js.map +0 -1
- /package/dist/csc-ui/{p-7dcaf7e2.entry.js.map → p-1b1d64f3.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-6c3f75f1.entry.js.map → p-3446156f.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-5d7cb21b.entry.js.map → p-41b53c95.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-55c851c7.entry.js.map → p-4b9fc284.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-0ce74b50.entry.js.map → p-774e25ed.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-18e0bac0.entry.js.map → p-82e5b6a3.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-b92fa51d.entry.js.map → p-8707c1c5.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-f938bf7f.entry.js.map → p-8ac910a3.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-71d271a9.entry.js.map → p-a27a5f80.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-a4d10c24.entry.js.map → p-bbe0ceb3.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-294c51c0.entry.js.map → p-c1637cf7.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-35136773.entry.js.map → p-c791bc22.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-0bab4741.entry.js.map → p-caad0875.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-3b8431a3.entry.js.map → p-cb8d7a64.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-2659814c.entry.js.map → p-fd75e786.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s,H as e,g as o}from"./p-gSzSMY-c.js";import{CToastPosition as i,CToastType as n}from"./index.esm.js";const a="html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{left:0;max-width:100%;min-width:30vw;pointer-events:none;position:fixed;right:0;width:640px;z-index:10000}:host>div{display:grid;gap:12px;grid-template-columns:1fr;padding:12px}:host(.absolute){position:absolute}:host(.bottom){bottom:0}:host(.top){top:0}:host(.right){justify-content:end;left:auto;right:0}:host(.left){justify-content:start;left:0;right:auto}:host(.center){justify-content:center;margin:0 auto !important}";const r=class{constructor(s){t(this,s);this.absolute=false;this.horizontal="center";this.vertical="bottom";this.messages=[];this._getDefaultOptions=()=>({type:n.Info,duration:6e3,persistent:false,indeterminate:false,position:i.Fixed,progress:false,id:`c-toast-item-${r._uniqueId}`})}async addToast(t){const s=this.messages.filter((t=>t.custom));if(t.custom&&s.length>0){console.warn(`Custom toast messages are restricted to 1 visible message due to slot reflection limitations.`)}else{r._uniqueId+=1;requestAnimationFrame((()=>{const s=this._getDefaultOptions();this.messages=[...this.messages,Object.assign(Object.assign(Object.assign({},s),t),{duration:+(t===null||t===void 0?void 0:t.duration)>0?+t.duration:s.duration})]}))}}async removeToast(t){const s=this.el.shadowRoot.querySelector(`#c-toast--${t}`);s===null||s===void 0?void 0:s.closeToast()}_onMessageClose(t){this._removeMessage(t.detail.id)}_removeMessage(t){const s=this.el.shadowRoot.querySelector(`#c-toast--${t}`);s===null||s===void 0?void 0:s.remove();const e=this.el.shadowRoot.querySelectorAll("c-toast").length;if(e===0){this.messages=[].slice()}}_renderMessage(t){return s("c-toast",{message:t,onClose:t=>this._onMessageClose(t)},t.custom&&s("slot",null))}componentWillLoad(){r._uniqueId+=1}render(){return s(e,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s,H as e,g as o}from"./p-gSzSMY-c.js";import{CToastPosition as i,CToastType as n}from"./index.esm.js";const a="html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{left:0;max-width:100%;min-width:30vw;pointer-events:none;position:fixed;right:0;width:640px;z-index:10000}:host>div{display:grid;gap:12px;grid-template-columns:1fr;padding:12px}:host(.absolute){position:absolute}:host(.bottom){bottom:0}:host(.top){top:0}:host(.right){justify-content:end;left:auto;right:0}:host(.left){justify-content:start;left:0;right:auto}:host(.center){justify-content:center;margin:0 auto !important}";const r=class{constructor(s){t(this,s);this.absolute=false;this.horizontal="center";this.vertical="bottom";this.messages=[];this._getDefaultOptions=()=>({type:n.Info,duration:6e3,persistent:false,indeterminate:false,position:i.Fixed,progress:false,id:`c-toast-item-${r._uniqueId}`})}async addToast(t){const s=this.messages.filter((t=>t.custom));if(t.custom&&s.length>0){console.warn(`Custom toast messages are restricted to 1 visible message due to slot reflection limitations.`)}else{r._uniqueId+=1;requestAnimationFrame((()=>{const s=this._getDefaultOptions();this.messages=[...this.messages,Object.assign(Object.assign(Object.assign({},s),t),{duration:+(t===null||t===void 0?void 0:t.duration)>0?+t.duration:s.duration})]}))}}async removeToast(t){const s=this.el.shadowRoot.querySelector(`#c-toast--${t}`);s===null||s===void 0?void 0:s.closeToast()}_onMessageClose(t){this._removeMessage(t.detail.id)}_removeMessage(t){const s=this.el.shadowRoot.querySelector(`#c-toast--${t}`);s===null||s===void 0?void 0:s.remove();const e=this.el.shadowRoot.querySelectorAll("c-toast").length;if(e===0){this.messages=[].slice()}}_renderMessage(t){return s("c-toast",{message:t,onClose:t=>this._onMessageClose(t)},t.custom&&s("slot",null))}componentWillLoad(){r._uniqueId+=1}render(){return s(e,{key:"6dd7f4433e71d10e65b5bd7ca99c209841a665d7",class:{absolute:this.absolute,[this.vertical]:true,[this.horizontal]:true}},s("div",{key:"e4c3ab0722789255b2aeb1b1e2e02d732d8e08cd"},this.messages.map((t=>this._renderMessage(t)))))}get el(){return o(this)}};r._uniqueId=0;r.style=a;export{r as c_toasts};
|
|
2
|
+
//# sourceMappingURL=p-fd75e786.entry.js.map
|
|
@@ -259,7 +259,7 @@ const CAutocomplete = class {
|
|
|
259
259
|
}
|
|
260
260
|
render() {
|
|
261
261
|
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
262
|
-
return (h(Host, { key: '
|
|
262
|
+
return (h(Host, { key: '78ffcfd591a16d2991b1517d0500edac131b31e4' }, h("c-dropdown", { key: '7bb4696ca59c247ad154887f9dac664bca78b762', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "autocomplete", onKeyDown: (event) => this._handleKeyDown(event) }, h("c-input", { key: '02bd0f888b2f6436479da3ed0f03720971ccb419', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.query, variant: "select" }, h("slot", { key: '6bc336aa7167ffb104e242db04e4a873c8d43b20', name: "pre", slot: "pre" }), h("div", { key: 'a495b0508898a4687e300dcdff4cefe3213543b1', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading && this.value && this._renderReset(), !this.loading && !this.value && this._renderChevron(), h("slot", { key: '994932ecf1ee214b8d96c996a268a34682a8a2bc', onSlotchange: () => this._handleSlotChange() })), h("slot", { key: '2e967acc2e86985103fb4ee48ef4a5ca78d91c8f', name: "post", slot: "post" })))));
|
|
263
263
|
}
|
|
264
264
|
static get formAssociated() { return true; }
|
|
265
265
|
get el() { return getElement(this); }
|
|
@@ -270,6 +270,29 @@ const CAutocomplete = class {
|
|
|
270
270
|
CAutocomplete._uniqueId = 0;
|
|
271
271
|
CAutocomplete.style = cAutocompleteCss;
|
|
272
272
|
|
|
273
|
+
const cBackdropCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-backdrop) .c-backdrop{display:block;position:fixed;inset:0;z-index:1000;background-color:rgba(0, 0, 0, 0.5);opacity:0;pointer-events:none}:host(c-backdrop) .c-backdrop.c-backdrop--blur{backdrop-filter:blur(4px)}@media (prefers-reduced-motion: no-preference){:host(c-backdrop) .c-backdrop.opening{animation:backdrop-fadein 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) forwards}:host(c-backdrop) .c-backdrop.closing{animation:backdrop-fadeout 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) forwards}}@keyframes backdrop-fadein{from{opacity:0}to{opacity:1}}@keyframes backdrop-fadeout{from{opacity:1}to{opacity:0}}";
|
|
274
|
+
|
|
275
|
+
const CBackdrop = class {
|
|
276
|
+
constructor(hostRef) {
|
|
277
|
+
registerInstance(this, hostRef);
|
|
278
|
+
this.disableBackdropBlur = false;
|
|
279
|
+
this.blur = true;
|
|
280
|
+
}
|
|
281
|
+
onValueChange(value) {
|
|
282
|
+
this.blur = !value;
|
|
283
|
+
}
|
|
284
|
+
render() {
|
|
285
|
+
return (h(Host, { key: 'f7967b4eb4801a361b05df1f26b1314d090ddd64' }, h("div", { key: 'c93b3ad493209ac4d1e3e2724b47a5fe8c6d0faf', class: {
|
|
286
|
+
'c-backdrop': true,
|
|
287
|
+
'c-backdrop--blur': this.blur,
|
|
288
|
+
} })));
|
|
289
|
+
}
|
|
290
|
+
static get watchers() { return {
|
|
291
|
+
"disableBackdropBlur": ["onValueChange"]
|
|
292
|
+
}; }
|
|
293
|
+
};
|
|
294
|
+
CBackdrop.style = cBackdropCss;
|
|
295
|
+
|
|
273
296
|
const cBadgeCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-badge-background-color:var(--c-badge-background-color, var(--c-warning-600));--_c-badge-text-color:var(--c-badge-text-color, var(--c-white));--_c-badge-border-color:var(--c-badge-border-color, var(--c-white));align-items:center;background-color:var(--_c-badge-background-color);border-radius:16px;box-shadow:0 0 0 2px var(--_c-badge-border-color);color:var(--_c-badge-text-color);display:flex;font-size:12px;height:16px;justify-content:center;justify-items:center;line-height:1;min-width:16px;padding:0 4px;pointer-events:none;position:absolute;right:-6px;top:-6px;z-index:2}";
|
|
274
297
|
|
|
275
298
|
const CBadge = class {
|
|
@@ -411,7 +434,7 @@ const CButton = class {
|
|
|
411
434
|
default: 24,
|
|
412
435
|
large: 28,
|
|
413
436
|
};
|
|
414
|
-
return (h(Host, Object.assign({ key: '
|
|
437
|
+
return (h(Host, Object.assign({ key: '1e7fd3d5ed864159709a2e34ec23fa62830e84b8', class: hostClasses }, hostAttributes), h(Tag, Object.assign({ key: '372d34c304df775577e9165ae24b88f299a38d2c' }, attributes, linkAttributes), h("div", { key: '3ab7cc2472bda14f499a520c4dd53a0543ead5ba', class: contentClasses, ref: (el) => (this._container = el) }, h("div", { key: '929fbd77601b9f58d7d0002e4213a50ae495dfd0', class: innerClasses }, this.loading && (h("div", { key: '90e97a37732c2903b718c11439232f563294eb7d', class: "c-button__loader" }, h("c-spinner", { key: '277ee152de7e3c61891c52ee51f771f85df0a5ed', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), h("slot", { key: '7b6a4797d7bd515f8171b8d83a3c3a5b30c3be81' })), this._containerhasDescriptionSlot && (h("div", { key: '479ed7791480a8ac29864b53cad7db65826eba3f', class: descriptionSlotClasses }, h("slot", { key: '634af8d8b67366d3e28f9eefd961c5cc68d1b34c', name: "description" })))), h("c-ripple", { key: '670f5e91b610d7e7d19684a725cfec20d0537eec', ref: (el) => (this._rippleElement = el) }))));
|
|
415
438
|
}
|
|
416
439
|
get hostElement() { return getElement(this); }
|
|
417
440
|
};
|
|
@@ -605,7 +628,7 @@ const CCheckbox = class {
|
|
|
605
628
|
'c-checkbox__label--indeterminate': this.indeterminate,
|
|
606
629
|
};
|
|
607
630
|
const slotHasContent = !!this.el.childNodes.length;
|
|
608
|
-
return (h(Host, { key: '
|
|
631
|
+
return (h(Host, { key: 'e39e3e681c8b1267e58182872f704cb048e14daa' }, h("div", { key: '83a582b3231bfafc6f3deabe3b5cad87c1dac99c', class: wrapperClasses }, h("input", Object.assign({ key: '9b20de6459795c6b8f41d1aa31212fa8dc071bf6', class: "visuallyhidden", id: "checkbox" }, (!!this.hostName ? { name: this.hostName } : {}), { type: "checkbox", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), checked: this.checked ? true : undefined, disabled: this.disabled, onChange: (event) => this._toggleState(event) })), h("label", { key: 'ef2eb908f56cab3de39a53270a95cea892db99ec', class: labelClasses, htmlFor: "checkbox" }, h("div", { key: 'f260766abb707826ac5498301a2966d6f714c66f', class: "ripple", ref: (el) => (this._container = el) }, h("svg", { key: '8d43f917054de11772dd246871947a2291086d4a', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (h("path", { key: '448595e010c4292f113b58837f6dca92522b6acd', class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" })), this.indeterminate && (h("path", { key: 'd88bb390971e37d265a2ac5676cf890ebca09729', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), h("c-ripple", { key: '67101de46a7627092f9280756fe8b310a95e2635', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (h("div", { key: '186fa5f1b2aeb8750a72e4be36c8182b1fe8b903', class: "c-checkbox__label-content" }, !!this.label ? this.label : h("slot", null), this.required && h("span", { key: '6b9f54993ec9bcc98780bf36401ce6aaf887e78e', class: "required" }, "\u00A0*"))))), !this.hideDetails && (h("c-message", { key: '1a73cca7a518fcd65370f67b09ba6ae257e0eb15', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
|
|
609
632
|
}
|
|
610
633
|
static get formAssociated() { return true; }
|
|
611
634
|
get el() { return getElement(this); }
|
|
@@ -913,10 +936,10 @@ const CDropdown = class {
|
|
|
913
936
|
this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
|
|
914
937
|
this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
|
|
915
938
|
}
|
|
916
|
-
return (h(Host, { key: '
|
|
939
|
+
return (h(Host, { key: 'b58ae0fe3d90bd8e263d984c8adfcd7ba69542b2' }, h("slot", { key: '90e86251b83b8de59558cfb60ac3df1cf2eb5854', name: "default" }), h("div", { key: '4b379e54ce1cb488198afc6840d51966141f9755', class: "dummy", ref: (el) => (this._dummyElement = el) }), h("dialog", { key: '6a1dd0a47539925e47795ab76d37f51501850531', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, h("div", { key: 'eeb468dd141e5ac7a93c70b7cac582fdcd9709af', onClick: (event) => event.stopPropagation() }, h("div", { key: '11ac444328a818e98b37d4a6bdc65ad7d19b327d', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '640c66fc88bb98cdb62dc3af65158efde0dbdf5e', class: "input-top-wrapper" }, h("slot", { key: '2e703c88def55ef621585e27195a214383a6c12f', name: "input-top" })), h("ul", { key: '65851489643b542324542640957607e3a32a0b0d', ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), h("div", { key: 'f9ec6613e04c8e21edf653575bf7f5f3d6dd8e4a', class: {
|
|
917
940
|
active: this._openedOnTop,
|
|
918
941
|
'input-bottom-wrapper': true,
|
|
919
|
-
} }, h("slot", { key: '
|
|
942
|
+
} }, h("slot", { key: '2929820c1e7111840188de878064e894301996f4', name: "input-bottom" }))))));
|
|
920
943
|
}
|
|
921
944
|
get el() { return getElement(this); }
|
|
922
945
|
static get watchers() { return {
|
|
@@ -1198,9 +1221,9 @@ const CInput = class {
|
|
|
1198
1221
|
filled: !!this.value,
|
|
1199
1222
|
[`c-input--${this.variant}`]: true,
|
|
1200
1223
|
};
|
|
1201
|
-
return (h(Host, { key: '
|
|
1224
|
+
return (h(Host, { key: 'f8c8304a7e5f6a0877f25f2b7b05abaf1eb23179', disabled: this.disabled }, h("div", { key: 'b212f0ba4c1000bf0b2bfe1aca234805711f57ab', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'a1b0297c42dbf3e703c230295475f127a3a7e28d', class: containerClasses }, h("div", { key: '00264009b65a422c2bd15f43faf9d42663319fec', class: "c-input__control" }, h("div", { key: '547508cab3a12ed1bf6a08227e94d534f35d9ade', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), h("div", { key: '94972f5043b342ebe707b6e414312e8bfc755ef7', class: "c-input__field", style: {
|
|
1202
1225
|
'--_c-input-label-position': this.preSlotWidth + 'px',
|
|
1203
|
-
} }, h("slot", { key: '
|
|
1226
|
+
} }, h("slot", { key: 'ec60946cb3fca05831d61f26884a17a6608e2cb1', name: "pre" }), this._renderLabel(), h("slot", { key: '8444580d01b12ccf10f1c7adec7dc22dab33b19f' }))), this.variant === 'select' && h("slot", { key: '5617c313953ec9a336ef09635e916ee7b75a1687', name: "dropdown" }), !this.hideDetails && (h("c-message", { key: '3958358864da3d8d858d45c2f63ac7dbbb53f654', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
|
|
1204
1227
|
}
|
|
1205
1228
|
get el() { return getElement(this); }
|
|
1206
1229
|
static get watchers() { return {
|
|
@@ -1250,7 +1273,7 @@ const CMain = class {
|
|
|
1250
1273
|
this.disableLayout = false;
|
|
1251
1274
|
}
|
|
1252
1275
|
render() {
|
|
1253
|
-
return (h("main", { key: 'f2b4cdb7aa5b0cc94a7fc6825f1a52c459a342e7', class: { dashboard: !this.disableLayout } }, h("slot", { key: '67f3c2e2939563d626d675b31b4b77ede223c7e6' })));
|
|
1276
|
+
return (h("main", { key: 'f2b4cdb7aa5b0cc94a7fc6825f1a52c459a342e7', class: { dashboard: !this.disableLayout } }, h("slot", { key: '67f3c2e2939563d626d675b31b4b77ede223c7e6' }), h("c-backdrop", { key: '06da3e95b1276275ff272eff37462410d2f954e0' })));
|
|
1254
1277
|
}
|
|
1255
1278
|
};
|
|
1256
1279
|
CMain.style = cMainCss;
|
|
@@ -1301,7 +1324,7 @@ const CMessage = class {
|
|
|
1301
1324
|
'c-message-item': true,
|
|
1302
1325
|
[`c-message-item--${this.messageOptions.type}`]: true,
|
|
1303
1326
|
};
|
|
1304
|
-
return (h(Host, { key: '
|
|
1327
|
+
return (h(Host, { key: '83c81bba9bbbeb92a4a2ccfb66c481c66e16185d' }, h("div", { key: 'b934057f3e3b04b8a8f3965aa9faf515d39faea9', class: classes }, h("div", { key: '6f0e59f5cd2e42526facb5b2bf8fee23343da154', class: messageClasses }, this.messageOptions.content))));
|
|
1305
1328
|
}
|
|
1306
1329
|
static get watchers() { return {
|
|
1307
1330
|
"valid": ["onValidChange"],
|
|
@@ -1318,7 +1341,7 @@ const CNavigationButton = class {
|
|
|
1318
1341
|
registerInstance(this, hostRef);
|
|
1319
1342
|
}
|
|
1320
1343
|
render() {
|
|
1321
|
-
return (h(Host, { key: '
|
|
1344
|
+
return (h(Host, { key: '8f3b90980f450983cc708744d45ee0549cf56b0f', tabindex: 0 }, h("c-icon-button", { key: 'fc1a843bf19d557f1251e04f5b87a409762da6b4', text: true }, h("c-icon", { key: 'bda13f341954e31d7e34dda1ead91aa398fdb4d3', path: mdiMenu }))));
|
|
1322
1345
|
}
|
|
1323
1346
|
};
|
|
1324
1347
|
CNavigationButton.style = cNavigationButtonCss;
|
|
@@ -1332,7 +1355,7 @@ const COption = class {
|
|
|
1332
1355
|
this.disabled = false;
|
|
1333
1356
|
}
|
|
1334
1357
|
render() {
|
|
1335
|
-
return (h(Host, { key: '
|
|
1358
|
+
return (h(Host, { key: '46cd05f078679cdfbd55c5173e93389dcfc3f3b5', tabindex: "-1" }, h("slot", { key: '72c92990a0b53f80e111658c186017ec890f62b9' })));
|
|
1336
1359
|
}
|
|
1337
1360
|
};
|
|
1338
1361
|
COption.style = cOptionCss;
|
|
@@ -1351,6 +1374,7 @@ const COtpInput = class {
|
|
|
1351
1374
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
1352
1375
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
1353
1376
|
}
|
|
1377
|
+
this.hasAutofocus = false;
|
|
1354
1378
|
this.hideDetails = false;
|
|
1355
1379
|
this.hint = '';
|
|
1356
1380
|
this.length = 6;
|
|
@@ -1472,7 +1496,7 @@ const COtpInput = class {
|
|
|
1472
1496
|
this.internals.setFormValue(value);
|
|
1473
1497
|
}
|
|
1474
1498
|
_renderInput(index) {
|
|
1475
|
-
return (h("input", { id: `${this.id}--input-${index + 1}`, ref: (el) => (this._inputs[index] = el), "aria-label": `Enter code - digit number - ${index + 1} of ${this.length}`, type: "tel", maxlength: "1", onFocus: () => this._onFocus(index), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index === 0 && this._onPaste(event) }));
|
|
1499
|
+
return (h("input", { id: `${this.id}--input-${index + 1}`, ref: (el) => (this._inputs[index] = el), "aria-label": `Enter code - digit number - ${index + 1} of ${this.length}`, type: "tel", maxlength: "1", autofocus: this.hasAutofocus && index === 0, onFocus: () => this._onFocus(index), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index === 0 && this._onPaste(event) }));
|
|
1476
1500
|
}
|
|
1477
1501
|
componentWillLoad() {
|
|
1478
1502
|
COtpInput._uniqueId += 1;
|
|
@@ -1486,9 +1510,9 @@ const COtpInput = class {
|
|
|
1486
1510
|
'c-otp-input': true,
|
|
1487
1511
|
'c-otp-input--hide-details': this.hideDetails,
|
|
1488
1512
|
};
|
|
1489
|
-
return (h(Host, { key: '
|
|
1513
|
+
return (h(Host, { key: 'e62a5a6bc8be164741be5de5e56f4caa3114c94b', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, h("div", { key: 'a4b5e9e538d243160acab91d2fbc98caa76cb2db', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '9e4fdca998c939f1a338a71a1ad6a8c12117ecc8', class: classes }, new Array(this.length)
|
|
1490
1514
|
.fill(0)
|
|
1491
|
-
.map((_, index) => this._renderInput(index)), h("c-message", { key: '
|
|
1515
|
+
.map((_, index) => this._renderInput(index)), h("c-message", { key: '242bcb26947d04adc90f2f6f130935f0e2c14f89', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
|
|
1492
1516
|
}
|
|
1493
1517
|
static get formAssociated() { return true; }
|
|
1494
1518
|
static get watchers() { return {
|
|
@@ -1518,7 +1542,7 @@ const CPage = class {
|
|
|
1518
1542
|
this.el.onscroll = this._onScroll.bind(this);
|
|
1519
1543
|
}
|
|
1520
1544
|
render() {
|
|
1521
|
-
return (h(Host, { key: '
|
|
1545
|
+
return (h(Host, { key: '64a48abe5194fc8e9a81fc612dc73cf81f37d81e' }, this.scrollIndicator && (h("div", { key: 'fb7bc3775164bae600d304ec7b69bd5318cc2b5c', ref: (el) => (this._scrollIndicator = el), class: "scroll-indicator" })), h("div", { key: '048dcd8262ecff37e84db36288cd30821468fd94', class: "c-page__container" }, h("slot", { key: '87efc0f8bdf6575136b0f78e6a366ec1e548a3e4' })), h("slot", { key: '8daf870130fac624434a45cb220105f40a69f5ae', name: "footer" })));
|
|
1522
1546
|
}
|
|
1523
1547
|
get el() { return getElement(this); }
|
|
1524
1548
|
};
|
|
@@ -1533,7 +1557,7 @@ const CRadio = class {
|
|
|
1533
1557
|
this.disabled = false;
|
|
1534
1558
|
}
|
|
1535
1559
|
render() {
|
|
1536
|
-
return h(Host, { key: '
|
|
1560
|
+
return h(Host, { key: '2bffd79db7c727caf48c27ae7bb0c4057a341af7' });
|
|
1537
1561
|
}
|
|
1538
1562
|
};
|
|
1539
1563
|
CRadio.style = cRadioCss;
|
|
@@ -1643,7 +1667,7 @@ const CRadioGroup = class {
|
|
|
1643
1667
|
'c-radio-group--inline': this.inline,
|
|
1644
1668
|
'c-radio-group--error': !this.valid,
|
|
1645
1669
|
};
|
|
1646
|
-
return (h("div", { key: '
|
|
1670
|
+
return (h("div", { key: 'd2f54d06878288a72aa6942d14c01c7e6bc3df10', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (h("label", { key: 'c7b7bf2954d1067005e9f657e457ca3cdd41f16a', class: "c-radio-group__label" }, !!this.label && this.label, h("slot", { key: 'b370e53676b25c7dba65c5f3cbf5df51236c824c', onSlotchange: this._handleSlotChange }), this.required && h("span", { key: '18d5dc15b3250a4db72ae5cc53568b15f6bacf20', class: "required" }, "\u00A0*"))), h("div", { key: 'f55c832bf94323ef84881825ef0e8fa93ddf6a06', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (h("c-message", { key: '51866d16297ee42dab390124593b30efa412b277', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
|
|
1647
1671
|
}
|
|
1648
1672
|
static get formAssociated() { return true; }
|
|
1649
1673
|
get el() { return getElement(this); }
|
|
@@ -1691,7 +1715,7 @@ const CRipple = class {
|
|
|
1691
1715
|
return radius * 2;
|
|
1692
1716
|
}
|
|
1693
1717
|
render() {
|
|
1694
|
-
return (h(Host, { key: '
|
|
1718
|
+
return (h(Host, { key: '0d97a7836c85cdbcd146fe8d8329e38a89446ba6', "aria-hidden": "true" }, h("div", { key: 'b28442ba5209235b6ac197eef3257e9ded282233', ref: (el) => (this._rippleElement = el), class: "c-ripple" })));
|
|
1695
1719
|
}
|
|
1696
1720
|
get el() { return getElement(this); }
|
|
1697
1721
|
};
|
|
@@ -2014,12 +2038,12 @@ const CSelect = class {
|
|
|
2014
2038
|
}
|
|
2015
2039
|
render() {
|
|
2016
2040
|
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
2017
|
-
return (h(Host, { key: '
|
|
2041
|
+
return (h(Host, { key: '3b99fcbb5727c2f3e407c48c929dca8ed9d10cc5' }, h("c-dropdown", { key: '2780b008e84ae1ebee603c64b41c35759c404543', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, h("c-input", { key: '7c74fb6e9f7317ba234a1279951ae343c2b5c223', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, h("slot", { key: 'c3baf2fc33fb9b8ac8afc9b2769919974adfc0fc', name: "pre", slot: "pre" }), h("div", { key: '9f65c632f013cbcfc422279cb759bea112990fab', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
|
|
2018
2042
|
this.value &&
|
|
2019
2043
|
this.clearable &&
|
|
2020
2044
|
this._renderReset(), !this.loading &&
|
|
2021
2045
|
(!this.value || !this.clearable) &&
|
|
2022
|
-
this._renderChevron(), h("slot", { key: '
|
|
2046
|
+
this._renderChevron(), h("slot", { key: '9f1d227a09a449fc4d36a47c940825a8d378201a', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '223fe933687d7b98d0596380e46ce1b0cb157957', name: "post", slot: "post" })))));
|
|
2023
2047
|
}
|
|
2024
2048
|
static get formAssociated() { return true; }
|
|
2025
2049
|
get el() { return getElement(this); }
|
|
@@ -2095,10 +2119,10 @@ const CSideNavigation = class {
|
|
|
2095
2119
|
'c-side-navigation__content--mobile': !!this.mobile,
|
|
2096
2120
|
'c-side-navigation__content--desktop': !this.mobile,
|
|
2097
2121
|
};
|
|
2098
|
-
return (h(Host, { key: '
|
|
2122
|
+
return (h(Host, { key: 'cf2fa277c8ccdac4101f31644e4db5068fc05db7', class: { desktop: !this.mobile } }, h("div", { key: '60e6f8dc715dad39d9a83057bb561135027e625c', class: containerClasses }, h("nav", { key: '3ea6eefa300e4e7207ee9ea6f33d832b73089fec', ref: (el) => (this._containerElement = el), class: classes, role: "menubar" }, this.mobile && (h("div", { key: '72c1fca035c1daa2f3343bc0be73121db17f8dde', class: "c-side-navigation__burger" }, h("c-icon-button", { key: '3bf4f02c9413244f457b34e46014ca2fc2a7e5d5', text: true, inverted: true, onClick: () => this._closeMenu() }, h("span", { key: '717ec7f476ead0e4f587ff0f5e605d5f253b2313', class: "visuallyhidden" }, "Close sidemenu"), h("c-icon", { key: '5618860c176a3cdab9d9f61296fa4a2fbff7abe2', path: mdiArrowRight })))), h("div", { key: 'a913ef3f51e33c4a3c75d9ba2e1b20bb95707293', class: {
|
|
2099
2123
|
'c-side-navigation__wrapper': true,
|
|
2100
2124
|
'c-side-navigation__wrapper--mobile': !!this.mobile,
|
|
2101
|
-
} }, h("slot", { key: '
|
|
2125
|
+
} }, h("slot", { key: '5f49917e05cce01e40a4ee956616b6a906fc5a47' }), h("div", { key: 'ef2d8c5a734e3c03685259f2afc906d4a91c22b4', class: "vertical-spacer" }), h("slot", { key: '63e03f24f76aa310f674ded85a0be81d2fa8a432', name: "bottom" })))), this.menuVisible && this.mobile && (h("div", { key: '3a51049487f8b8bad81e0cd8760a1bd12ed8af78', class: "c-overlay c-fade-in", onClick: () => this._closeMenu() }))));
|
|
2102
2126
|
}
|
|
2103
2127
|
get host() { return getElement(this); }
|
|
2104
2128
|
};
|
|
@@ -2203,10 +2227,10 @@ const CSideNavigationItem = class {
|
|
|
2203
2227
|
}
|
|
2204
2228
|
const Tag = !!this.href ? 'a' : 'div';
|
|
2205
2229
|
const itemParams = Object.assign({}, (!!this.href ? { href: this.href, target: this.target } : {}));
|
|
2206
|
-
return (h(Host, Object.assign({ key: '
|
|
2230
|
+
return (h(Host, Object.assign({ key: 'acadf1e69d3dbdef68b98d6f594d76bb10b6ce7d' }, a11y, { class: classes, onClick: (e) => this._redirect(e), onKeyDown: (e) => this._redirect(e) }), h("div", { key: '501bce072d81b99d60cac6c11c4ea39b9b75a8ae' }, h(Tag, Object.assign({ key: '411f2d331d06251c88c9035aaf4b326006b920ca' }, itemParams, { class: {
|
|
2207
2231
|
'c-side-navigation-item__header': true,
|
|
2208
2232
|
'c-side-navigation-item__header--expandable': this._slotHasContent,
|
|
2209
|
-
} }), this._slotHasContent && (h("c-icon", { key: '
|
|
2233
|
+
} }), this._slotHasContent && (h("c-icon", { key: 'fd3558e471e7a998b5610421444f04601903314b', class: "svg", path: mdiChevronRight })), h("div", { key: 'ae8c2082b44eae3b9032a011fa53a66ab5ddd980', class: "c-side-navigation-item__slot" }, h("slot", { key: '019be2a2bfc1271794a235cfeada9acfc8e5d6c4' }))), this._slotHasContent && (h("nav", { key: '24d51f07844e7aa21fc5803541dd7d2ee2fa0a26', role: "menubar", "aria-label": this._ariaLabel, "aria-expanded": (_b = (!!this.active)) === null || _b === void 0 ? void 0 : _b.toString(), class: subNavigationClasses }, h("slot", { key: '7ba1a4ab3d9441264a8c5ef7b905f8fbcaf9c8cd', name: "sub-item" }))), h("c-loader", { key: 'b3978b41f5c82af0da3e91f2c4b03a254d266ead', size: 32, hide: !this.loading, style: { pointerEvents: 'none' } }))));
|
|
2210
2234
|
}
|
|
2211
2235
|
get hostElement() { return getElement(this); }
|
|
2212
2236
|
static get watchers() { return {
|
|
@@ -2222,7 +2246,7 @@ const CSideNavigationTitle = class {
|
|
|
2222
2246
|
registerInstance(this, hostRef);
|
|
2223
2247
|
}
|
|
2224
2248
|
render() {
|
|
2225
|
-
return (h(Host, { key: '
|
|
2249
|
+
return (h(Host, { key: '5a9cb157a0f93d52f8d10a8dfc1e24dd4d2389b8' }, h("div", { key: 'fa154b3b8d6035a8799659f5bd4deb5c331d77ef' }, h("slot", { key: '09db250ce1a776b351f42982cf41cc80654bac98' }))));
|
|
2226
2250
|
}
|
|
2227
2251
|
};
|
|
2228
2252
|
CSideNavigationTitle.style = cSideNavigationTitleCss;
|
|
@@ -2234,7 +2258,7 @@ const CSpacer = class {
|
|
|
2234
2258
|
registerInstance(this, hostRef);
|
|
2235
2259
|
}
|
|
2236
2260
|
render() {
|
|
2237
|
-
return h(Host, { key: '
|
|
2261
|
+
return h(Host, { key: 'e89076f37431dd269837869d22bd4075d0f922e8' });
|
|
2238
2262
|
}
|
|
2239
2263
|
};
|
|
2240
2264
|
CSpacer.style = cSpacerCss;
|
|
@@ -2259,7 +2283,7 @@ const CSpinner = class {
|
|
|
2259
2283
|
'--c-width': `${this.width}px`,
|
|
2260
2284
|
'--c-color': this.color,
|
|
2261
2285
|
};
|
|
2262
|
-
return (h(Host, { key: '
|
|
2286
|
+
return (h(Host, { key: 'efe40e6b92dda652ea62cc2fe740bd1eb55c0d45', class: "c-spinner", style: style }, h("svg", { key: '2b3c0b6ddd22670947f5de8cb9079cc250c9b19a' }, h("circle", Object.assign({ key: '5d20ffa28666b2741631e77d367a08cfeb9c2beb' }, iconParams)))));
|
|
2263
2287
|
}
|
|
2264
2288
|
};
|
|
2265
2289
|
CSpinner.style = cSpinnerCss;
|
|
@@ -2298,7 +2322,7 @@ const CSubNavigationItem = class {
|
|
|
2298
2322
|
if (this.active) {
|
|
2299
2323
|
a11y['aria-current'] = 'page';
|
|
2300
2324
|
}
|
|
2301
|
-
return (h(Host, Object.assign({ key: '
|
|
2325
|
+
return (h(Host, Object.assign({ key: '7bcb5b48a0708791cfecb6eb74b7d032094b82f1' }, a11y, { class: { active: this.active }, onClick: (e) => this._redirect(e), onKeyDown: (e) => this._redirect(e) }), h("div", { key: '6d5573a8c1abf9a034a533a37e7cc5f7bd052ee9', class: "c-sub-navigation-item__wrapper" }, h("div", { key: 'd4d925ff49e1f5ae59bbc4889581575befe28b0c', class: "c-sub-navigation-item" }, h("div", { key: '9cb1cf4adf966e68e77a5cf8963ce6b466779d05', class: "c-sub-navigation-item__content" }, h("div", { key: '22b5c70461cdf1ee925b309bfd54c46e22df9c2a', class: "c-sub-navigation-item__slot" }, h("slot", { key: 'c825be38425afb8fd0c81c896953e766edb6edbd' })), this.active && (h("span", { key: '3e2df9eaba4a255e91d854a453f2748f2b9ecd3d', class: "visuallyhidden" }, ", Current page"))), h("c-loader", { key: '2490254c91b820b3b52a19c81b5894c8fd218296', size: 32, hide: !this.loading, style: { pointerEvents: 'none' } })))));
|
|
2302
2326
|
}
|
|
2303
2327
|
get element() { return getElement(this); }
|
|
2304
2328
|
};
|
|
@@ -2356,7 +2380,7 @@ const CSwitch = class {
|
|
|
2356
2380
|
'c-switch__slider--disabled': !!this.hostDisabled,
|
|
2357
2381
|
'c-switch__slider--loading': !!this.loading,
|
|
2358
2382
|
};
|
|
2359
|
-
return (h("label", { key: '
|
|
2383
|
+
return (h("label", { key: '8edbf7e102d095f7f99f551194b5e8cc9cd4295e', class: classes, htmlFor: this.hostId }, h("div", { key: '9e9ee24c8bc184ae103d52d4f4bfaed7114f37ef', class: "c-switch__input" }, h("input", { key: '07c6760cb1f52fbac8cdd37c4eaf4d91a6885eb2', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), h("span", { key: '4e9e0002bb766cbf7523a75fbeb7e39010391b71', class: sliderClasses }, h("c-spinner", { key: '95181bac9d370b8e478882e8032baa097e641223', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (h("div", { class: "c-switch__label" }, h("slot", null), this.required && h("span", { class: "required" }, "\u00A0*"))) : null));
|
|
2360
2384
|
}
|
|
2361
2385
|
static get formAssociated() { return true; }
|
|
2362
2386
|
get host() { return getElement(this); }
|
|
@@ -2401,7 +2425,7 @@ const CTable = class {
|
|
|
2401
2425
|
});
|
|
2402
2426
|
}
|
|
2403
2427
|
render() {
|
|
2404
|
-
return (h(Host, { key: '
|
|
2428
|
+
return (h(Host, { key: '1caa0fcb5e04827c8c5f6e3bd89e008e7f64bf5a' }, h("slot", { key: '6210b499f5a1a075a778210851c7247c2aa10075' })));
|
|
2405
2429
|
}
|
|
2406
2430
|
get el() { return getElement(this); }
|
|
2407
2431
|
};
|
|
@@ -2534,7 +2558,7 @@ const CTextField = class {
|
|
|
2534
2558
|
return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
|
|
2535
2559
|
}
|
|
2536
2560
|
render() {
|
|
2537
|
-
return (h(Host, { key: '
|
|
2561
|
+
return (h(Host, { key: 'fbea1b9772e6645ad58ec5c6053bf4bffb334bd4' }, h("c-input", { key: '49653ab482514878109ed6676a813b5eb6225c77', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: '59374c213df7e0326c3e57994478c9debce20bb0', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: '2beef5e2fd8b0c23c6dd4ddd119e57a931512175', name: "post" }))));
|
|
2538
2562
|
}
|
|
2539
2563
|
static get formAssociated() { return true; }
|
|
2540
2564
|
get hiddenEl() { return getElement(this); }
|
|
@@ -2549,12 +2573,12 @@ const CToolbar = class {
|
|
|
2549
2573
|
registerInstance(this, hostRef);
|
|
2550
2574
|
}
|
|
2551
2575
|
render() {
|
|
2552
|
-
return (h(Host, { key: '
|
|
2576
|
+
return (h(Host, { key: '6d1f7727af44345f862431bca227169058e406be' }, h("div", { key: '5d7bb41c416763d92cf160d8b4a40958b8e0ee7e', class: "c-toolbar" }, h("slot", { key: 'b492e064ca153cc6496e89afe075a7d54f226750' })), h("div", { key: '04c24f6bc33b66eb004bf124830aabb457708d06', class: "spacer" })));
|
|
2553
2577
|
}
|
|
2554
2578
|
};
|
|
2555
2579
|
CToolbar.style = cToolbarCss;
|
|
2556
2580
|
|
|
2557
|
-
export { CAutocomplete as c_autocomplete, CBadge as c_badge, CButton as c_button, CCard as c_card, CCardActions as c_card_actions, CCardContent as c_card_content, CCardTitle as c_card_title, CCheckbox as c_checkbox, CCscLogo as c_csc_logo, CDropdown as c_dropdown, CIcon as c_icon, CIconButton as c_icon_button, CInput as c_input, CLoader as c_loader, CMain as c_main, CMessage as c_message, CNavigationButton as c_navigation_button, COption as c_option, COtpInput as c_otp_input, CPage as c_page, CRadio as c_radio, CRadioGroup as c_radio_group, CRipple as c_ripple, CSelect as c_select, CSideNavigation as c_side_navigation, CSideNavigationItem as c_side_navigation_item, CSideNavigationTitle as c_side_navigation_title, CSpacer as c_spacer, CSpinner as c_spinner, CSubNavigationItem as c_sub_navigation_item, CSwitch as c_switch, CTable as c_table, CTextField as c_text_field, CToolbar as c_toolbar };
|
|
2558
|
-
//# sourceMappingURL=c-autocomplete.c-badge.c-button.c-card.c-card-actions.c-card-content.c-card-title.c-checkbox.c-csc-logo.c-dropdown.c-icon.c-icon-button.c-input.c-loader.c-main.c-message.c-navigation-button.c-option.c-otp-input.c-page.c-radio.c-radio-group.c-ripple.c-select.c-side-navigation.c-side-navigation-item.c-side-navigation-title.c-spacer.c-spinner.c-sub-navigation-item.c-switch.c-table.c-text-field.c-toolbar.entry.js.map
|
|
2581
|
+
export { CAutocomplete as c_autocomplete, CBackdrop as c_backdrop, CBadge as c_badge, CButton as c_button, CCard as c_card, CCardActions as c_card_actions, CCardContent as c_card_content, CCardTitle as c_card_title, CCheckbox as c_checkbox, CCscLogo as c_csc_logo, CDropdown as c_dropdown, CIcon as c_icon, CIconButton as c_icon_button, CInput as c_input, CLoader as c_loader, CMain as c_main, CMessage as c_message, CNavigationButton as c_navigation_button, COption as c_option, COtpInput as c_otp_input, CPage as c_page, CRadio as c_radio, CRadioGroup as c_radio_group, CRipple as c_ripple, CSelect as c_select, CSideNavigation as c_side_navigation, CSideNavigationItem as c_side_navigation_item, CSideNavigationTitle as c_side_navigation_title, CSpacer as c_spacer, CSpinner as c_spinner, CSubNavigationItem as c_sub_navigation_item, CSwitch as c_switch, CTable as c_table, CTextField as c_text_field, CToolbar as c_toolbar };
|
|
2582
|
+
//# sourceMappingURL=c-autocomplete.c-backdrop.c-badge.c-button.c-card.c-card-actions.c-card-content.c-card-title.c-checkbox.c-csc-logo.c-dropdown.c-icon.c-icon-button.c-input.c-loader.c-main.c-message.c-navigation-button.c-option.c-otp-input.c-page.c-radio.c-radio-group.c-ripple.c-select.c-side-navigation.c-side-navigation-item.c-side-navigation-title.c-spacer.c-spinner.c-sub-navigation-item.c-switch.c-table.c-text-field.c-toolbar.entry.js.map
|
|
2559
2583
|
|
|
2560
|
-
//# sourceMappingURL=c-
|
|
2584
|
+
//# sourceMappingURL=c-autocomplete_35.entry.js.map
|