@cscfi/csc-ui 3.0.2 → 3.0.4
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} +51 -27
- package/dist/cjs/c-autocomplete_35.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-title.cjs.entry.js +1 -1
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -1
- package/dist/cjs/c-login-card-title.entry.cjs.js.map +1 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/c-modal.cjs.entry.js +14 -11
- 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-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.cjs.entry.js +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +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-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-backdrop/c-backdrop.js +2 -2
- package/dist/collection/components/c-backdrop/c-backdrop.js.map +1 -1
- package/dist/collection/components/c-card-title/c-card-title.css +1 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.css +1 -0
- 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 +14 -11
- 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 +2 -2
- 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 +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 +2 -2
- 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 +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 +1 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +1 -1
- package/dist/collection/components/c-switch/c-switch.js +1 -1
- package/dist/collection/components/c-tab/c-tab.js +1 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +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 +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 +5 -5
- package/dist/components/c-backdrop.js +1 -1
- package/dist/components/c-button.js +2 -2
- package/dist/components/c-card-title.js +1 -1
- package/dist/components/c-card-title.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-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-login-card-title.js +1 -1
- package/dist/components/c-login-card-title.js.map +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 +15 -18
- 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 +3 -3
- 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.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 +7 -7
- 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-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.js +4 -4
- package/dist/components/c-switch.js +2 -2
- package/dist/components/c-tab-buttons.js +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-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-toast.js +1 -1
- package/dist/components/c-toasts.js +3 -3
- package/dist/components/c-toolbar.js +1 -1
- package/dist/components/{p-BylTQ7VG.js → p-B1qgNVwl.js} +3 -3
- package/dist/components/{p-BylTQ7VG.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-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-BkP7vhXP.js → p-CxpHiGGi.js} +4 -4
- package/dist/components/{p-BkP7vhXP.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-login-card-title.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-modal.entry.esm.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- 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-357e261b.entry.js +2 -0
- package/dist/csc-ui/p-357e261b.entry.js.map +1 -0
- package/dist/csc-ui/{p-7323c19f.entry.js → p-39f34048.entry.js} +2 -2
- package/dist/csc-ui/{p-7323c19f.entry.js.map → p-39f34048.entry.js.map} +1 -1
- 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-49bd4d5d.entry.js → p-7869709f.entry.js} +2 -2
- package/dist/csc-ui/{p-1af49cd8.entry.js → p-7a4dc6da.entry.js} +2 -2
- package/dist/csc-ui/{p-ea1bcd6c.entry.js → p-7f778e0a.entry.js} +2 -2
- 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-7574f00f.entry.js → p-95967094.entry.js} +2 -2
- package/dist/csc-ui/{p-71d271a9.entry.js → p-a27a5f80.entry.js} +2 -2
- package/dist/csc-ui/p-aa0620ba.entry.js +2 -0
- package/dist/csc-ui/p-aa0620ba.entry.js.map +1 -0
- 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-a8ea6c44.entry.js → p-ce764150.entry.js} +2 -2
- 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} +51 -28
- package/dist/esm/c-autocomplete_35.entry.js.map +1 -0
- package/dist/esm/c-login-card-title.entry.js +1 -1
- package/dist/esm/c-login-card-title.entry.js.map +1 -1
- package/dist/esm/c-menu_2.entry.js +2 -2
- package/dist/esm/c-modal.entry.js +14 -11
- 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-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.entry.js +1 -1
- package/dist/esm/c-tab-buttons.entry.js +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-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-modal/c-modal.d.ts +1 -0
- package/package.json +1 -1
- 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-aea7f08c.entry.js +0 -2
- package/dist/csc-ui/p-aea7f08c.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-49bd4d5d.entry.js.map → p-7869709f.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-1af49cd8.entry.js.map → p-7a4dc6da.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-ea1bcd6c.entry.js.map → p-7f778e0a.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-7574f00f.entry.js.map → p-95967094.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-a8ea6c44.entry.js.map → p-ce764150.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-2659814c.entry.js.map → p-fd75e786.entry.js.map} +0 -0
|
@@ -15,7 +15,7 @@ const CStep$1 = proxyCustomElement(class CStep extends H {
|
|
|
15
15
|
'c-step': true,
|
|
16
16
|
'c-step--complete': this.complete,
|
|
17
17
|
};
|
|
18
|
-
return (h("div", { key: '
|
|
18
|
+
return (h("div", { key: 'd65f209bfc3a701e1b5c80d7d5868dcc48935859', class: rootClasses }, h("div", { key: '2312b85c823afe33d8c2dbb441a0b01258b6022f', class: "c-step__indicator" }, !this.complete && (h("div", { key: 'b6004e078b56e490ff7ce781e90b5d8d8752a4a8', class: { dot: true, current: this.current } })), this.complete && (h("div", { key: 'b8f06b933e1331072678a415a1299dc2fc612dd4', class: "complete" }, h("svg", { key: '0ec3e5a9c79bbeab6ce407c25340e30f8b4eb6a6', viewBox: "0 0 100 100" }, h("path", { key: '15728ab814266bfdae8e60edb5d8a13a6d667e24', class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" }))))), h("div", { key: '977bf89a21ddaf2c002cc684b66b129d541cbdff', class: "c-step__label" }, h("slot", { key: '61b5e2ef150807c0c10c0e76230131d16e486884' }))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return cStepCss; }
|
|
21
21
|
}, [1, "c-step", {
|
|
@@ -61,7 +61,7 @@ const CSteps$1 = proxyCustomElement(class CSteps extends H {
|
|
|
61
61
|
`;
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '2b88cee8bdd6d69c81a667a1e4d008ea33e09b94', tabindex: "0" }, this._stepElements && (h("span", { key: 'bd512f57cf6ab6fec27b8a5a3bd1a8a5ff825700', class: "visuallyhidden" }, this._getA11yMessage(this._stepElements.length, +this.value))), h("div", { key: '6a4847a5f6fa86f01aa1143504b278a9f23f9509', class: "c-steps", "aria-hidden": "true" }, h("slot", { key: '1fdde35e7f63acde28a3b4aefdeddeba7629d143' })), this.isMobile && (h("div", { key: '55279c07864316d5c75fdbc96ae69ee69bdee415', class: "c-steps__label", "aria-hidden": "true" }, this.label))));
|
|
65
65
|
}
|
|
66
66
|
get host() { return this; }
|
|
67
67
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { d as defineCustomElement$3 } from './p-
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$3 } from './p-BWp2ldC5.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
4
4
|
|
|
5
5
|
const cSubNavigationItemCss = "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-sub-navigation-item){--_c-sub-navigation-item-text-color:var(\n --c-sub-navigation-item-text-color,\n var(--c-text-body)\n );--_c-sub-navigation-item-background-color:var(\n --c-sub-navigation-item-background-color,\n var(--c-transparent)\n );--_c-sub-navigation-item-background-color-hover:var(\n --c-sub-navigation-item-background-color-hover,\n var(--c-primary-100)\n );--_c-sub-navigation-item-text-color-active:var(\n --c-sub-navigation-item-text-color-active,\n var(--c-primary-600)\n );--_c-sub-navigation-item-background-color-active:var(\n --c-sub-navigation-item-background-color-active,\n var(--c-white)\n );--_c-sub-navigation-item-sub-item-background-color-active:var(\n --c-sub-navigation-item-sub-item-background-color-active,\n var(--c-primary-100)\n );--_c-sub-navigation-item-sub-item-background-color-hover:var(\n --c-sub-navigation-item-sub-item-background-color-hover,\n var(--c-primary-100)\n );--_c-sub-navigation-item-sub-item-background-color:var(\n --c-sub-navigation-item-sub-item-background-color,\n var(--c-transparent)\n );--_c-sub-navigation-item-sub-item-text-color-active:var(\n --c-sub-navigation-item-sub-item-text-color-active,\n var(--c-primary-600)\n );--_c-sub-navigation-item-sub-item-text-color:var(\n --c-sub-navigation-item-sub-item-text-color,\n var(--c-text-body)\n )}:host(.c-sub-navigation-item--sub-level){--_c-sub-navigation-item-background-color:var(\n --_c-sub-navigation-item-sub-item-background-color\n );--_c-sub-navigation-item-text-color:var(\n --_c-sub-navigation-item-sub-item-text-color\n );--_c-sub-navigation-item-background-color-hover:var(\n --_c-sub-navigation-item-sub-item-background-color-hover\n );--_c-sub-navigation-item-text-color-active:var(\n --_c-sub-navigation-item-sub-item-text-color-active\n );--_c-sub-navigation-item-background-color-active:var(\n --_c-sub-navigation-item-sub-item-background-color-active\n )}.c-sub-navigation-item{align-items:center;background-color:var(--_c-sub-navigation-item-background-color);border-radius:4px;color:var(--_c-sub-navigation-item-text-color);cursor:pointer;display:flex;font-weight:400;line-height:46px;margin:0 8px;overflow:hidden;padding-left:34px;position:relative;transition:background-color 0.2s ease-in;user-select:none}.c-sub-navigation-item__wrapper{padding:2px 0}.c-sub-navigation-item__content{display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-sub-navigation-item__content::before{background-color:var(--_c-sub-navigation-item-text-color-active);content:\"\";height:100%;left:0;position:absolute;top:0;transform:translateZ(0) translateX(-8px);transition:transform 0.2s ease-in-out;width:8px}.c-sub-navigation-item:hover{background-color:var(--_c-sub-navigation-item-background-color-hover);color:var(--_c-sub-navigation-item-text-color-active)}:host(.active) .c-sub-navigation-item{background-color:var(--_c-sub-navigation-item-background-color-active)}:host(.active) .c-sub-navigation-item__content::before{transform:translateZ(0) translateX(0)}::slotted(span){margin-right:8px;font-size:20px;line-height:1}:host(:host:focus),:host(:host:focus) .c-sub-navigation-item{outline:none}:host(:host:focus-visible) .c-sub-navigation-item{outline:2px var(--_c-sub-navigation-item-text-color-active) solid;outline-offset:2px}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-sub-navigation-item__slot{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-sub-navigation-item__slot slot{display:flex;gap:8px;align-items:center}";
|
|
6
6
|
|
|
@@ -38,7 +38,7 @@ const CSubNavigationItem$1 = proxyCustomElement(class CSubNavigationItem extends
|
|
|
38
38
|
if (this.active) {
|
|
39
39
|
a11y['aria-current'] = 'page';
|
|
40
40
|
}
|
|
41
|
-
return (h(Host, Object.assign({ key: '
|
|
41
|
+
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' } })))));
|
|
42
42
|
}
|
|
43
43
|
get element() { return this; }
|
|
44
44
|
static get style() { return cSubNavigationItemCss; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-DEHCeGjr.js';
|
|
3
3
|
|
|
4
4
|
const cSwiperTabCss = "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-swiper-tab){--_c-swiper-tab-background-color-active:var(--c-swiper-tab-background-color-active, var(--c-primary-600));--_c-swiper-tab-background-color-disabled:var(--c-swiper-tab-background-color-disabled, var(--c-tertiary-100));--_c-swiper-tab-background-color:var(--c-swiper-tab-background-color, var(--c-primary-200));--_c-swiper-tab-hover-color:var(--c-swiper-tab-hover-color, var(--c-primary-100));--_c-swiper-tab-text-color-active:var(--c-swiper-tab-text-color-active, var(--c-white));--_c-swiper-tab-text-color-disabled:var(--c-swiper-tab-text-color-disabled, var(--c-tertiary-600));--_c-swiper-tab-text-color:var(--c-swiper-tab-text-color, var(--c-primary-600));border-radius:8px;width:100%;height:100%;outline:none;text-decoration:none;user-select:none;display:grid;align-content:stretch;padding:4px;background-color:transparent;border:none}:host(:focus){outline:2px var(--_c-swiper-tab-background-color-active) solid;outline-offset:-2px}@supports selector(:focus-visible){:host(:focus){outline:none}}:host(:focus-visible){outline:2px var(--_c-swiper-tab-background-color-active) solid;outline-offset:-2px}.c-swiper-tab{height:100%}.c-swiper-tab:hover:not(.c-swiper-tab--active):not(.c-swiper-tab--disabled) .c-swiper-tab__content{background-color:var(--_c-swiper-tab-hover-color)}.c-swiper-tab__content{border-radius:6px;background-color:var(--_c-swiper-tab-background-color);color:var(--_c-swiper-tab-text-color);cursor:pointer;transition:background-color 0.2s ease-in-out;display:grid;gap:4px;grid-template-columns:1fr;line-height:1.5;padding:16px;align-content:start;position:relative;overflow:hidden;height:100%}.c-swiper-tab__header{line-height:38px;font-size:24px;display:grid;grid-template-columns:1fr auto;gap:16px}.c-swiper-tab__description{align-items:start;opacity:0.67}.c-swiper-tab--disabled .c-swiper-tab__content{background:var(--_c-swiper-tab-background-color-disabled);color:var(--_c-swiper-tab-text-color-disabled);cursor:default !important;pointer-events:none}.c-swiper-tab--active .c-swiper-tab__content{background-color:var(--_c-swiper-tab-background-color-active);color:var(--_c-swiper-tab-text-color-active);pointer-events:none}.c-swiper-tab--active .c-swiper-tab__content:hover{background-color:var(--_c-swiper-tab-background-color-active)}.c-swiper-tab svg{fill:currentColor;height:38px;width:38px}";
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ const CSwiperTab$1 = proxyCustomElement(class CSwiperTab extends H {
|
|
|
30
30
|
'aria-posinset': this.position,
|
|
31
31
|
tabindex: this.active ? 0 : -1,
|
|
32
32
|
};
|
|
33
|
-
return (h(Host, Object.assign({ key: '
|
|
33
|
+
return (h(Host, Object.assign({ key: '3dbe445aaff07ede2070a14f032b52aca37ddf4c' }, a11y, { role: "tab" }), h("div", { key: 'acf35d9a5137175b09e63f137544b12541a4b5d6', id: this.hostId, class: classes }, h("div", { key: 'e2c0bfa034b78e7573467cdacfcff4d21c283d8c', class: "c-swiper-tab__content", ref: (el) => (this._container = el) }, h("div", { key: 'd6e94f1587b6f551d226e23d16685c9e16872f12', class: "c-swiper-tab__header" }, this.label, h("slot", { key: 'a158f8740fea910225134b197ad3b7ce3af763ae', name: "icon" })), h("div", { key: '82c9cd50f88f226898d94625d7ec5a6c693ccf07', class: "c-swiper-tab__description" }, h("slot", { key: '8d8369663a75ea6f5a66851948e8cf23a2f809ae' })), h("c-ripple", { key: '24ceb0bd3b3ca343c273647d0e1a0ff46e61f52b', ref: (el) => (this._rippleElement = el) })))));
|
|
34
34
|
}
|
|
35
35
|
get el() { return this; }
|
|
36
36
|
static get style() { return cSwiperTabCss; }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h } from './p-Fv9YCUj3.js';
|
|
2
2
|
import { d as mdiChevronLeft, e as mdiChevronRight } from './p-DIfvdGsO.js';
|
|
3
3
|
import { d as defineCustomElement$5 } from './p-DKhrqMh8.js';
|
|
4
|
-
import { d as defineCustomElement$4 } from './p-
|
|
5
|
-
import { d as defineCustomElement$3 } from './p-
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
+
import { d as defineCustomElement$4 } from './p-BCgTj9pp.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './p-DEHCeGjr.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* SSR Window 4.0.2
|
|
@@ -4172,7 +4172,7 @@ const CSwiper$1 = proxyCustomElement(class CSwiper extends H {
|
|
|
4172
4172
|
CSwiper._uniqueId += 1;
|
|
4173
4173
|
}
|
|
4174
4174
|
render() {
|
|
4175
|
-
return (h("div", { key: '
|
|
4175
|
+
return (h("div", { key: '201f2d65b4a8f1384f7621fb840c835c188f7d80', class: "c-swiper swiper" }, h("div", { key: 'bc28f328ddc3e1a2ad5bfca5d3acf9d88d3be55d', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '27aeebbe6e05d5e370442650f63810032e1b8abe', class: "swiper-container", ref: (el) => (this._container = el) }, h("div", { key: '8a35faa991788a7a0df760ae914747434af589ff', role: "tablist", class: "swiper-wrapper", ref: (el) => (this._wrapper = el) }, h("slot", { key: '8cf057b9bad99a673181be305c34b25757c94838' })), h("div", { key: 'af7b0bf2eea8e4462eeeb13eb30be69e6bbe206f', class: "c-swiper__navigation" }, h("c-icon-button", { key: '62f6a239d83b4eab3afe33054c841636ae691712', "aria-disabled": this.isBeginning ? 'true' : 'false', "aria-label": "previous page", class: "c-icon-button--prev", disabled: this.isBeginning, size: "small", ghost: true }, h("span", { key: 'b53d3394a4397dbf7ad598d22353d359be690c19', class: "visuallyhidden" }, "Previous", h("span", { key: '9ad4925591289065688ff34d412e8c1363d09ac6' }, "page")), h("svg", { key: '0fefbf5a174996e6a3744a622f364a2e1e8104fd', width: "24", height: "24", viewBox: "0 0 24 24" }, h("path", { key: '8dedd11017e71763d87c1201966ed5b87ec7e0d6', d: mdiChevronLeft }))), h("c-icon-button", { key: '0f7f41ece6ca471aad6bf6f802d73c615d2f1a75', "aria-disabled": this.isEnd ? 'true' : 'false', "aria-label": "next page", class: "c-icon-button--next", disabled: this.isEnd, size: "small", ghost: true }, h("span", { key: 'c7ca70e6881ad2fecfdd48504d011127abe41416', class: "visuallyhidden" }, "Next", h("span", { key: 'd72874bb86167b846287b849cfeaa9ce6ebbceb7' }, "page")), h("svg", { key: 'b5bf75db8da3dee97c69c9cfcd1e113e5a9d6cbb', width: "24", height: "24", viewBox: "0 0 24 24" }, h("path", { key: '0d09a4b57777e3e025b2ce53e62327dee2d89387', d: mdiChevronRight })))))));
|
|
4176
4176
|
}
|
|
4177
4177
|
static get style() { return cSwiperCss; }
|
|
4178
4178
|
}, [4, "c-swiper", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
3
3
|
|
|
4
4
|
const cSwitchCss = "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-switch){--_c-switch-border-color:var(--c-switch-border-color, var(--c-tertiary-600));--_c-switch-handle-color:var(--c-switch-handle-color, var(--c-tertiary-600));--_c-switch-slider-color:var(--c-switch-slider-color, var(--c-transparent));--_c-switch-border-color-disabled:var(--c-switch-border-color-disabled, var(--c-transparent));--_c-switch-handle-color-disabled:var(--c-switch-handle-color-disabled, var(--c-tertiary-500));--_c-switch-slider-color-disabled:var(--c-switch-slider-color-disabled, var(--c-tertiary-200));--_c-switch-border-color-active:var(--c-switch-border-color-active, var(--c-primary-600));--_c-switch-handle-color-active:var(--c-switch-handle-color-active, var(--c-white));--_c-switch-slider-color-active:var(--c-switch-slider-color-active, var(--c-primary-600));--_c-switch-border-color-active-disabled:var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));--_c-switch-handle-color-active-disabled:var(--c-switch-handle-color-active-disabled, var(--c-white));--_c-switch-slider-color-active-disabled:var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));display:inline-block}.c-switch{--_c-switch-handle-margin:5px;--_c-switch-pointer:pointer;--_c-switch-height:22px;--_c-switch-width:44px;--_c-switch-handle-size:calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));--_c-switch-handle-position-active:calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );backface-visibility:hidden;transform:translate3d(0, 0, 0);display:inline-grid;height:var(--_c-switch-height);position:relative;grid-template-columns:1fr;gap:12px;align-items:center}.c-switch--disabled{--_c-switch-pointer:default;--_c-switch-handle-color:var(--_c-switch-handle-color-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-disabled);--_c-switch-border-color:var(--_c-switch-border-color-disabled);--c-error-600:var(--c-tertiary-400);color:var(--c-tertiary-500)}.c-switch--disabled c-spinner{--c-color:var(--_c-switch-handle-color-disabled) !important}.c-switch--label{grid-template-columns:var(--_c-switch-width) auto}.c-switch__label span.required{color:var(--c-error-600)}.c-switch__input{height:var(--_c-switch-height);position:relative;width:var(--_c-switch-width);align-self:start}.c-switch__slider{background-color:var(--_c-switch-slider-color);border-radius:var(--_c-switch-height);box-shadow:inset 0 0 0 2px var(--_c-switch-border-color);inset:0;cursor:var(--_c-switch-pointer);position:absolute;transform-origin:50% 50%;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider::before{background-color:var(--_c-switch-handle-color);border-radius:50%;bottom:var(--_c-switch-handle-margin);content:\"\";height:var(--_c-switch-handle-size);left:var(--_c-switch-handle-margin);position:absolute;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:var(--_c-switch-handle-size)}.c-switch__slider c-spinner{--c-color:var(--_c-switch-handle-color) !important;pointer-events:none;z-index:2;position:absolute;left:4px;top:0;opacity:0;transition:all 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider--loading c-spinner{opacity:1}.c-switch__slider--loading::before{opacity:0}.c-switch input{height:0;opacity:0;width:0}.c-switch input:checked+.c-switch__slider{--_c-switch-handle-color:var(--_c-switch-handle-color-active);--_c-switch-slider-color:var(--_c-switch-slider-color-active);--_c-switch-border-color:var(--_c-switch-border-color-active)}.c-switch input:checked+.c-switch__slider::before{transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider c-spinner{--c-color:var(--_c-switch-handle-color-active) !important;transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider--disabled{--_c-switch-handle-color:var(--_c-switch-handle-color-active-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-active-disabled);--_c-switch-border-color:var(--_c-switch-border-color-active-disabled)}.c-switch input:checked+.c-switch__slider--disabled c-spinner{--c-color:var(--_c-switch-handle-color-active-disabled) !important}.c-switch input:focus+.c-switch__slider{outline:none}.c-switch input:focus-visible+.c-switch__slider{outline:2px var(--c-primary-600) solid;outline-offset:2px}";
|
|
5
5
|
|
|
@@ -49,7 +49,7 @@ const CSwitch$1 = proxyCustomElement(class CSwitch extends H {
|
|
|
49
49
|
'c-switch__slider--disabled': !!this.hostDisabled,
|
|
50
50
|
'c-switch__slider--loading': !!this.loading,
|
|
51
51
|
};
|
|
52
|
-
return (h("label", { key: '
|
|
52
|
+
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));
|
|
53
53
|
}
|
|
54
54
|
static get formAssociated() { return true; }
|
|
55
55
|
get host() { return this; }
|
|
@@ -117,7 +117,7 @@ const CTabButtons$1 = proxyCustomElement(class CTabButtons extends H {
|
|
|
117
117
|
'c-tab-buttons': true,
|
|
118
118
|
disabled: this.hostDisabled,
|
|
119
119
|
};
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: '65f9cf6c51060b59b33dc6ffd478ccb9cf8f9ca6', class: classes }, h("slot", { key: 'bfc1fac2d2e082342a70e6530fd3c5ebb3ea5b85' })));
|
|
121
121
|
}
|
|
122
122
|
get el() { return this; }
|
|
123
123
|
static get watchers() { return {
|
|
@@ -27,7 +27,7 @@ const CTabItem$1 = proxyCustomElement(class CTabItem extends H {
|
|
|
27
27
|
const attributes = {
|
|
28
28
|
role: 'tabpanel',
|
|
29
29
|
};
|
|
30
|
-
return (h(Host, Object.assign({ key: '
|
|
30
|
+
return (h(Host, Object.assign({ key: 'cb97fdbbc89518e790e7e34216b3017f1331cfa2' }, attributes), h("div", { key: '435a5e7399c5d9ac686eccee700d750282c39ab3', class: { active: this.active } }, h("slot", { key: 'fff8a0898cc549ad24cb430bcb27f0625ccba803' }))));
|
|
31
31
|
}
|
|
32
32
|
get el() { return this; }
|
|
33
33
|
static get style() { return cTabItemCss; }
|
|
@@ -61,7 +61,7 @@ const CTabItems$1 = proxyCustomElement(class CTabItems extends H {
|
|
|
61
61
|
this._resizeObserver.observe(this.el);
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'fd4c5f444b245e8d5a70077b57ee4136aa8b87cb' }, h("div", { key: 'ecc9c830cc4022f50f81a29dd2eb2478464c712b' }, h("slot", { key: '7cf60453db9308b84a89a74cc54dd674a2efbd98' }))));
|
|
65
65
|
}
|
|
66
66
|
get el() { return this; }
|
|
67
67
|
static get watchers() { return {
|
package/dist/components/c-tab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-DEHCeGjr.js';
|
|
3
3
|
|
|
4
4
|
const cTabCss = "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-tab-border-color-active:var(--c-tab-border-color-active, var(--_c-tab-text-color));--_c-tab-background-color-hover:var(--c-tab-background-color-hover, var(--c-primary-100));--_c-tab-outline-color:var(--c-tab-outline-color, var(--_c-tab-text-color));--_c-tab-text-color:var(--c-tab-text-color, var(--c-primary-600));display:block;user-select:none;min-width:min-content;flex-grow:1}:host div.c-tab__content{align-items:center;justify-content:center;display:flex;height:100%;width:100%;max-width:100%;overflow:hidden;padding-inline:12px;position:relative;text-overflow:ellipsis;white-space:nowrap}:host(:focus){outline:none}:host(:focus-visible){border-radius:4px;outline:2px var(--_c-tab-outline-color) solid;outline-offset:2px}:host([role=tab][aria-disabled=true]){cursor:default !important}slot{pointer-events:none}:host(.c-tab){align-items:center;color:var(--_c-tab-text-color);cursor:pointer;display:inline-flex;font-weight:600;height:52px;justify-content:center;overflow:hidden;position:relative}:host(.c-tab:hover){background-color:var(--_c-tab-background-color-hover)}:host(.c-tab--active:hover){background-color:transparent !important}:host(.c-tab--disabled){color:var(--c-tertiary-500);cursor:default;opacity:0.75;pointer-events:none}:host(.c-tab button){appearance:none;background-color:transparent;border:none;color:inherit;cursor:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;height:100%;overflow:hidden;position:relative;width:100%}";
|
|
5
5
|
|
|
@@ -43,7 +43,7 @@ const CTab$1 = proxyCustomElement(class CTab extends H {
|
|
|
43
43
|
role: 'tab',
|
|
44
44
|
tabindex: this.active && !this.disabled ? 0 : -1,
|
|
45
45
|
};
|
|
46
|
-
return (h(Host, Object.assign({ key: '
|
|
46
|
+
return (h(Host, Object.assign({ key: '580df1cd1a986e22b62b246c20b7fb70944ff5c9' }, a11y, { id: this.hostId, "data-value": this.value, class: classes, onClick: this._onClick }), h("div", { key: 'b9d2f3c21a5956da16793e49e96606fd2bb870b2', class: "c-tab__content" }, h("slot", { key: 'f3ebf35769eda15f880f2233d7df8840806a6715' })), h("c-ripple", { key: 'fcb039ef2716a2a452427e6321c185cb44f828f7', ref: (el) => (this._rippleElement = el) })));
|
|
47
47
|
}
|
|
48
48
|
get element() { return this; }
|
|
49
49
|
static get style() { return cTabCss; }
|
|
@@ -36,7 +36,7 @@ const CTable$1 = proxyCustomElement(class CTable extends H {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '1caa0fcb5e04827c8c5f6e3bd89e008e7f64bf5a' }, h("slot", { key: '6210b499f5a1a075a778210851c7247c2aa10075' })));
|
|
40
40
|
}
|
|
41
41
|
get el() { return this; }
|
|
42
42
|
static get style() { return cTableCss; }
|
|
@@ -2,9 +2,9 @@ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
|
2
2
|
import { q as mdiArrowLeft, p as mdiArrowRight } from './p-DIfvdGsO.js';
|
|
3
3
|
import { d as defineCustomElement$6 } from './p-DKhrqMh8.js';
|
|
4
4
|
import { d as defineCustomElement$5 } from './p-Cmy8x1XB.js';
|
|
5
|
-
import { d as defineCustomElement$4 } from './p-
|
|
6
|
-
import { d as defineCustomElement$3 } from './p-
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
5
|
+
import { d as defineCustomElement$4 } from './p-BCgTj9pp.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-DEHCeGjr.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
8
8
|
|
|
9
9
|
const cTabsCss = "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-tabs){--_c-tabs-border-color:var(--c-tabs-border-color, var(--c-tertiary-200));--_c-tabs-indicator-color:var(--c-tabs-indicator-color, var(--c-primary-600));--_c-tabs-transition-speed:0.001ms;display:block;width:100%;transform:translateX(0%);max-width:100%}:host(.c-tabs) .c-tabs__container{display:grid;grid-template-columns:1fr;align-items:center;gap:4px;--c-icon-button-border-radius:4px}:host(.c-tabs) .c-tabs__tabs{display:flex;overflow:hidden;padding:4px;position:relative;margin:-4px}:host(.c-tabs) .c-tabs__tabs::after{position:absolute;content:\"\";bottom:4px;inset-inline:0;height:1px;background-color:var(--_c-tabs-border-color)}:host(.c-tabs) .c-tabs__scroll{transform:translateX(var(--_c-tabs-scroll-position-x));transition:transform var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);display:flex;margin:0;padding:0;position:relative;flex-grow:1}:host(.c-tabs) .c-tabs__scroll::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:3px;scale:var(--_c-tabs-indicator-width, 0.125) 1;opacity:0.01;translate:var(--_c-tabs-indicator-left, 0) 0;transform-origin:left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs) .c-tabs__content{display:flex}:host(.c-tabs) ::slotted(c-tab-buttons){flex-grow:1}:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:end}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:center}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--vertical.c-tabs--mobile){grid-template-columns:1fr}:host(.c-tabs.c-tabs--vertical){display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr}:host(.c-tabs.c-tabs--vertical) .c-tabs__tabs::after{display:none}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab-items){position:relative;min-height:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll{display:grid;max-width:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::after{display:none}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::before{content:\"\";position:absolute;width:4px;top:0;bottom:0;right:0;scale:1 var(--_c-tabs-indicator-width, 0.125);opacity:0.01;translate:0 var(--_c-tabs-indicator-top, 0);transform-origin:top left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab){box-shadow:inset -1px 0 0 0 var(--_c-tabs-border-color);padding-inline:24px;justify-content:start;max-width:100%;min-width:100%}:host(.c-tabs.c-tabs--buttons) .c-tabs__tabs::after,:host(.c-tabs.c-tabs--buttons) .c-tabs__scroll::after{display:none}:host(.c-tabs--borderless) ::slotted(c-tab){box-shadow:none}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::after{opacity:1}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::before{opacity:1}:host(.c-tabs.c-tabs--overflow) .c-tabs__container{grid-template-columns:auto 1fr auto}";
|
|
10
10
|
|
|
@@ -410,7 +410,7 @@ const CTabs$1 = proxyCustomElement(class CTabs extends H {
|
|
|
410
410
|
'c-tabs--mobile': this.isMobile,
|
|
411
411
|
[`c-tabs--justify-${this.justify}`]: true,
|
|
412
412
|
};
|
|
413
|
-
return (h(Host, { key: '
|
|
413
|
+
return (h(Host, { key: '1594e6244cef2e9b456b21d1659c590f1eadb2a5', role: "tablist", class: classes }, h("div", { key: '31458e8269c57e5e2f7babc5433ff34877f04dbb', class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (h("c-icon-button", { key: '1db6dbe430b511b9355d9c10e7870a1f55498139', size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, h("c-icon", { key: '61369a607c9690aee79937fd68fa36b2061a8939', path: mdiArrowLeft }))), h("div", { key: 'ba3ecd1acf0d7b7bc8ab2e959836d524526bb317', ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, h("div", { key: '55414dcdc7527430cdaea328b3755742b5a837af', ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, h("slot", { key: 'eaf5122d6c7376339ce3b8d32439d2c7f152a4b7' }))), this.isOverflowing && !this.vertical && (h("c-icon-button", { key: '43030acec8acf929f6bac13c074549c4eba6069a', size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, h("c-icon", { key: '3a24c0f3e72eb9e1937c22056fbc1a89d4d3317b', path: mdiArrowRight })))), h("div", { key: '00665c22dadc4a611ec21281b786ee20780e6cfe', class: "c-tabs__content" }, h("slot", { key: '43f1d27ff20842278ae19f44f484313833fc7d03', name: "items" }))));
|
|
414
414
|
}
|
|
415
415
|
get el() { return this; }
|
|
416
416
|
static get watchers() { return {
|
package/dist/components/c-tag.js
CHANGED
|
@@ -2,9 +2,9 @@ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
|
2
2
|
import { h as mdiClose } from './p-DIfvdGsO.js';
|
|
3
3
|
import { d as defineCustomElement$6 } from './p-DKhrqMh8.js';
|
|
4
4
|
import { d as defineCustomElement$5 } from './p-Cmy8x1XB.js';
|
|
5
|
-
import { d as defineCustomElement$4 } from './p-
|
|
6
|
-
import { d as defineCustomElement$3 } from './p-
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
5
|
+
import { d as defineCustomElement$4 } from './p-BCgTj9pp.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-DEHCeGjr.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
8
8
|
|
|
9
9
|
const cTagCss = "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-tag-background-color-active-hover:var(--c-tag-background-color-active-hover, var(--c-primary-400));--_c-tag-background-color-active:var(--c-tag-background-color-active, var(--_c-tag-text-color));--_c-tag-background-color-hover:var(--c-tag-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-tag-background-color:var(--c-tag-background-color, var(--c-transparent));--_c-tag-badge-background-color-active:var(--c-tag-badge-background-color-active, var(--_c-tag-text-color-active));--_c-tag-badge-background-color:var(--c-tag-badge-background-color, var(--_c-tag-background-color-active));--_c-tag-badge-text-color-active:var(--c-tag-badge-text-color-active, var(--_c-tag-text-color));--_c-tag-badge-text-color:var(--c-tag-badge-text-color, var(--_c-tag-text-color-active));--_c-tag-border-color:var(--c-tag-border-color, var(--_c-tag-text-color));--_c-tag-text-color-active:var(--c-tag-text-color-active, var(--c-white));--_c-tag-text-color:var(--c-tag-text-color, var(--c-primary-600));--_c-tag-border-radius:var(--c-tag-border-radius, 999px);--c-tag-min-height:28px;--c-tag-padding-y:4px;--c-tag-padding-x:12px;--c-tag-padding:var(--c-tag-padding-y) var(--c-tag-padding-x);--c-tag-badge-size:20px;--c-tag-icon-button-offset:0;--c-icon-button-outline-offset:0;border-radius:var(--_c-tag-border-radius)}:host>div{align-items:center;background:var(--_c-tag-background-color);border-radius:var(--_c-tag-border-radius);box-shadow:inset 0 0 0 1px var(--_c-tag-border-color);color:var(--_c-tag-text-color);cursor:pointer;display:inline-flex;font-size:14px;font-weight:400;gap:8px;justify-content:center;line-height:1;min-height:var(--c-tag-min-height);min-width:48px;padding:var(--c-tag-padding);transform:translate3d(0, 0, 0);transition:background-color 0.2s ease;user-select:none}:host c-icon-button{--_c-icon-button-height:20px;--_c-icon-button-width:20px;--_c-icon-button-background-color:var(--c-transparent);--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-hover:var(--_c-tag-background-color-active);margin:var(--c-tag-icon-button-offset)}:host c-icon-button:hover{--_c-icon-button-text-color:var(--_c-tag-text-color-active)}:host(:host:hover)>div{background-color:var(--_c-tag-background-color-hover)}:host>div[data-badge]{padding-left:var(--c-tag-padding-y)}:host>div[data-badge]::before{content:attr(data-badge);background-color:var(--_c-tag-badge-background-color);border-radius:calc(var(--_c-tag-border-radius) - var(--c-tag-padding-y));color:var(--_c-tag-badge-text-color);display:inline-grid;font-size:12px;height:var(--c-tag-badge-size);line-height:1;min-width:var(--c-tag-badge-size);padding:0 4px;place-content:center}:host(.c-tag--active)>div[data-badge]::before{background-color:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--closeable)>div{padding-right:var(--c-tag-padding-y)}:host(.c-tag--block)>div{flex-basis:100%}:host(.c-tag--fit)>div{flex-grow:1}:host(.c-tag--flat)>div{pointer-events:none}:host(.c-tag--small){--c-tag-min-height:20px;--c-tag-padding-y:2px;--c-tag-padding-x:8px;--c-tag-badge-size:16px;--c-tag-icon-button-offset:1px 0 0}:host(.c-tag--small) c-icon-button{--_c-icon-button-height:16px;--_c-icon-button-width:16px}:host([data-badge].c-tag--small)>div{padding-left:var(--c-tag-padding-y)}:host(:focus){outline:none}:host(:focus-visible){outline:2px var(--_c-tag-border-color) solid;outline-offset:2px;z-index:1}:host(.c-tag--active)>div{background:var(--_c-tag-background-color-active);color:var(--_c-tag-text-color-active);--c-icon-button-outline-color:var(--c-white)}:host(.c-tag--active .c-tag__badge)>div{background:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--active:hover)>div{background:var(--_c-tag-background-color-active-hover);box-shadow:none;--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}:host(.c-tag--active) c-icon-button{--_c-icon-button-text-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}";
|
|
10
10
|
|
|
@@ -40,7 +40,7 @@ const CTag$1 = proxyCustomElement(class CTag extends H {
|
|
|
40
40
|
const hostParams = Object.assign({ tabindex: this.flat ? -1 : 0 }, (!this.flat && {
|
|
41
41
|
role: 'button',
|
|
42
42
|
}));
|
|
43
|
-
return (h(Host, Object.assign({ key: '
|
|
43
|
+
return (h(Host, Object.assign({ key: '652b7b74c86d98e1a4878944883627e1d17bef2b' }, hostParams, { class: hostClasses }), h("div", Object.assign({ key: '30771323df80cadbcd69cea6c4ddb59047dd4090' }, (hasBadge ? { 'data-badge': this.badge } : {})), h("slot", { key: '1b70cf6dd9c0f495021e29f47577cbc6028dc7a4' }), this.closeable && (h("c-icon-button", { key: '1ddbcd81e0204345c126b2b73af188abe01d4d5d', onClick: () => this._onClose() }, h("c-icon", { key: '0d50551aae9fd49893c1ae7a703ca772fdaa581e', size: 16, path: mdiClose }))))));
|
|
44
44
|
}
|
|
45
45
|
static get style() { return cTagCss; }
|
|
46
46
|
}, [1, "c-tag", {
|
|
@@ -18,7 +18,7 @@ const CTags$1 = proxyCustomElement(class CTags extends H {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '0b52666fc0780347740355190998e4fdd30b6afe' }, h("slot", { key: '24236ffd7c9e1d10a0634eff08b591af63cab68a' })));
|
|
22
22
|
}
|
|
23
23
|
get el() { return this; }
|
|
24
24
|
static get style() { return cTagsCss; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
2
|
import { r as mdiEye, s as mdiEyeOff, t as mdiCalendar } from './p-DIfvdGsO.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-B1qgNVwl.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-BrYqG6_f.js';
|
|
5
5
|
|
|
6
6
|
const cTextFieldCss = "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}:root,:host{--_c-text-field-active-color:var(--c-text-field-active-color, var(--c-primary-600));--_c-text-field-inactive-color:var(--c-text-field-inactive-color, var(--c-tertiary-600));--_c-text-field-background-color:var(--c-text-field-background-color, var(--c-transparent));--_c-text-field-text-color:var(--c-text-field-text-color, var(--c-text-body));--_c-text-field-placeholder-color:var(--c-text-field-placeholder-color, var(--c-tertiary-500));--_c-text-field-shadow-active-color:var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));--_c-text-field-shadow-background-color:var(--c-text-field-shadow-background-color, var(--c-white));--_c-text-field-shadow-text-color:var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));--_c-text-field-shadow-placeholder-color:var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color))}.c-input{--_c-input-active-color:var(--_c-text-field-active-color);--_c-input-inactive-color:var(--_c-text-field-inactive-color);--_c-input-background-color:var(--_c-text-field-background-color);--_c-input-text-color:var(--_c-text-field-text-color);--_c-input-placeholder-color:var(--_c-text-field-placeholder-color);--_c-input-shadow-active-color:var(--_c-text-field-shadow-active-color);--_c-input-shadow-background-color:var(--_c-text-field-shadow-background-color);--_c-input-shadow-text-color:var(--_c-text-field-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-text-field-shadow-placeholder-color)}.c-input__password-toggle,.c-input__date-toggle{cursor:pointer;fill:currentColor;height:22px;width:22px}.c-input__password-toggle--disabled,.c-input__date-toggle--disabled{cursor:not-allowed;fill:var(--c-tertiary-500)}.c-input input[type=date]{opacity:0}.c-input input[type=date]::-webkit-calendar-picker-indicator,.c-input input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}.c-input input[type=date]:focus,.c-input input[type=date].c-input__input--filled{opacity:1}";
|
|
7
7
|
|
|
@@ -126,7 +126,7 @@ const CTextField$1 = proxyCustomElement(class CTextField extends H {
|
|
|
126
126
|
return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
|
|
127
127
|
}
|
|
128
128
|
render() {
|
|
129
|
-
return (h(Host, { key: '
|
|
129
|
+
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" }))));
|
|
130
130
|
}
|
|
131
131
|
static get formAssociated() { return true; }
|
|
132
132
|
get hiddenEl() { return this; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
2
|
import { d as defineCustomElement$3 } from './p-Cmy8x1XB.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-D8otgxt3.js';
|
|
4
4
|
|
|
5
5
|
var CToastType;
|
|
6
6
|
(function (CToastType) {
|
|
@@ -83,11 +83,11 @@ const CToasts$1 = proxyCustomElement(class CToasts extends H {
|
|
|
83
83
|
CToasts._uniqueId += 1;
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: '6dd7f4433e71d10e65b5bd7ca99c209841a665d7', class: {
|
|
87
87
|
absolute: this.absolute,
|
|
88
88
|
[this.vertical]: true,
|
|
89
89
|
[this.horizontal]: true,
|
|
90
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: 'e4c3ab0722789255b2aeb1b1e2e02d732d8e08cd' }, this.messages.map((message) => this._renderMessage(message)))));
|
|
91
91
|
}
|
|
92
92
|
get el() { return this; }
|
|
93
93
|
static get style() { return cToastsCss; }
|
|
@@ -9,7 +9,7 @@ const CToolbar$1 = proxyCustomElement(class CToolbar extends H {
|
|
|
9
9
|
this.__attachShadow();
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '6d1f7727af44345f862431bca227169058e406be' }, h("div", { key: '5d7bb41c416763d92cf160d8b4a40958b8e0ee7e', class: "c-toolbar" }, h("slot", { key: 'b492e064ca153cc6496e89afe075a7d54f226750' })), h("div", { key: '04c24f6bc33b66eb004bf124830aabb457708d06', class: "spacer" })));
|
|
13
13
|
}
|
|
14
14
|
static get style() { return cToolbarCss; }
|
|
15
15
|
}, [1, "c-toolbar"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-BrYqG6_f.js';
|
|
3
3
|
|
|
4
4
|
const cInputCss = "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-input){--_c-input-inactive-color:var(--c-tertiary-600);--_c-input-active-color:var(--c-primary-600);--_c-input-background-color:var(--c-transparent);--_c-input-text-color:var(--c-text-body);--_c-input-placeholder-color:var(--c-tertiary-500);--_c-input-shadow-active-color:var(--_c-input-active-color);--_c-input-shadow-background-color:var(--c-white);--_c-input-shadow-text-color:var(--_c-input-text-color);--_c-input-shadow-placeholder-color:var(--_c-input-placeholder-color);--_c-input-error-color:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-input{--_c-input-border-width:1px;align-items:flex-start;border-radius:4px;display:flex;flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;letter-spacing:normal;max-width:100%;text-align:left}.c-input input,.c-input select,.c-input textarea{background:none;border:0;display:inline-block;font-family:var(--c-font-family);font-size:16px;line-height:1;margin:0;padding:0;vertical-align:middle;white-space:normal}.c-input input,.c-input textarea{box-sizing:content-box;background-color:transparent;border:none;color:var(--_c-input-text-color);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%}.c-input input[type=checkbox],.c-input input[type=radio],.c-input select{box-sizing:border-box}.c-input input[type=search]{appearance:textfield;box-sizing:content-box}.c-input ::-webkit-search-decoration{display:none}.c-input textarea{margin-top:4px;min-height:44px;overflow:auto;padding:8px 12px 8px 0;resize:vertical;vertical-align:top;white-space:pre-wrap}.c-input input{max-height:32px;padding:8px 0}.c-input input:focus,.c-input input:active,.c-input input[aria-expanded=true],.c-input textarea:focus,.c-input textarea:active{outline:none}.c-input .c-input__content{align-items:center;display:flex;width:100%}.c-input .c-input__content slot{display:none}.c-input .c-input__content c-icon-button{aspect-ratio:1;margin-right:-6px}.c-input__control{border-radius:inherit;color:currentColor;display:flex;flex-flow:column wrap;flex-grow:1;gap:8px;height:auto;min-width:0;width:100%;position:relative}.c-input__slot{align-items:stretch;background:transparent;border-radius:inherit;color:inherit;cursor:text;display:flex;min-height:44px;padding:0 12px;position:relative;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:100%}.c-input__field{align-items:center;display:flex;flex:1 1 auto;gap:8px;position:relative}.c-input__field input,.c-input__field textarea{flex:1;outline:0}.c-input__field label{font-size:16px;height:20px;left:0;letter-spacing:normal;line-height:20px;max-width:90%;min-height:8px;overflow:hidden;pointer-events:none;position:absolute;right:auto;text-overflow:ellipsis;top:12px;transform-origin:top left;transform:translateX(var(--_c-input-label-position)) translateY(0) scale(1);transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1) 0.08s;white-space:nowrap}.c-input__field label.active{transform:translateY(-18px) scale(0.75)}.c-input__field label span{color:var(--c-error-600)}.c-input--select input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-input--select .c-input__slot{cursor:pointer}.c-input fieldset{background-color:var(--_c-input-background-color);border-collapse:collapse;border-color:var(--_c-input-inactive-color);border-radius:inherit;border-style:solid;border-width:var(--_c-input-border-width);inset:0;margin:0;padding:0 0 0 8px;pointer-events:none;position:absolute;transition-duration:0.15s;transition-property:color;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1)}.c-input fieldset legend{float:none;line-height:11px;margin-left:-1px;padding:0;text-align:left;transition:width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:0}.c-input fieldset legend.active{width:var(--_c-input-legend-width)}.c-input--shadow .c-input__slot{background-color:var(--_c-input-shadow-background-color);box-shadow:rgba(0, 0, 0, 0.15) 0 5px 15px 0}.c-input--shadow .c-input__slot input,.c-input--shadow .c-input__slot textarea{color:var(--_c-input-shadow-text-color)}.c-input--shadow .c-input__slot:focus-within{outline:2px var(--_c-input-active-color) solid}.c-input--shadow .c-input__slot:focus-within c-icon{--c-icon-color:var(--_c-input-shadow-active-color) !important}.c-input--shadow input::placeholder,.c-input--shadow textarea::placeholder{color:var(--_c-input-shadow-placeholder-color);opacity:1}.c-input--disabled input,.c-input--disabled textarea,.c-input--disabled fieldset,.c-input--disabled label{--_c-input-error-color:var(--c-tertiary-500);color:var(--c-tertiary-500)}.c-input--textarea .c-input__field{margin-right:-12px}.c-input ::placeholder{color:var(--_c-input-placeholder-color);opacity:1}.c-input:focus-within,.c-input--active,.c-input:not(.c-input--disabled):active{--_c-input-border-width:2px;color:var(--_c-input-active-color)}.c-input:focus-within fieldset,.c-input--active fieldset,.c-input:not(.c-input--disabled):active fieldset{border-color:var(--_c-input-active-color)}.c-input:focus-within label,.c-input--active label,.c-input:not(.c-input--disabled):active label{color:var(--_c-input-active-color);transform:translateX(0) translateY(-18px) scale(0.75)}.c-input:focus-within legend,.c-input--active legend,.c-input:not(.c-input--disabled):active legend{width:var(--_c-input-legend-width)}.c-input.active:not(.filled) .c-input-menu__input{position:relative}.c-input.active:not(.filled) .c-input-menu__input::after{display:flex;align-items:center;position:absolute;inset:0;content:attr(data-placeholder);pointer-events:none;color:var(--_c-input-placeholder-color)}.c-input--error{color:var(--c-error-600)}.c-input--error fieldset{border-color:var(--c-error-600) !important}.c-input--error label{color:var(--c-error-600) !important}.c-input--error:focus-within{color:var(--c-error-600)}";
|
|
5
5
|
|
|
@@ -278,6 +278,6 @@ function defineCustomElement() {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
export { CInput as C, defineCustomElement as d };
|
|
281
|
-
//# sourceMappingURL=p-
|
|
281
|
+
//# sourceMappingUR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GAC3B,CACH,CACG,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/c-input/c-input.scss?tag=c-input","src/components/c-input/c-input.tsx"],"sourcesContent":[":host(c-input) {\n --_c-input-inactive-color: var(--c-tertiary-600);\n --_c-input-active-color: var(--c-primary-600);\n --_c-input-background-color: var(--c-transparent);\n --_c-input-text-color: var(--c-text-body);\n --_c-input-placeholder-color: var(--c-tertiary-500);\n --_c-input-shadow-active-color: var(--_c-input-active-color);\n --_c-input-shadow-background-color: var(--c-white);\n --_c-input-shadow-text-color: var(--_c-input-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-input-placeholder-color);\n\n // private\n --_c-input-error-color: var(--c-error-600);\n}\n\n.visuallyhidden {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.c-input {\n $this: &;\n\n --_c-input-border-width: 1px;\n\n align-items: flex-start;\n border-radius: 4px;\n display: flex;\n flex: 1 1 auto;\n font-family: var(--c-font-family);\n font-size: 16px;\n letter-spacing: normal;\n max-width: 100%;\n text-align: left;\n\n input,\n select,\n textarea {\n background: none;\n border: 0;\n display: inline-block;\n font-family: var(--c-font-family);\n font-size: 16px;\n line-height: 1;\n margin: 0;\n padding: 0;\n vertical-align: middle;\n white-space: normal;\n }\n\n input,\n textarea {\n box-sizing: content-box;\n background-color: transparent;\n border: none;\n color: var(--_c-input-text-color);\n flex: 1 1 auto;\n font-family: var(--c-font-family);\n font-size: 16px;\n line-height: 20px;\n max-width: 100%;\n min-width: 0;\n width: 100%;\n }\n\n input[type=\"checkbox\"],\n input[type=\"radio\"],\n select {\n box-sizing: border-box;\n }\n\n input[type=\"search\"] {\n appearance: textfield;\n box-sizing: content-box;\n }\n\n ::-webkit-search-decoration {\n display: none;\n }\n\n textarea {\n margin-top: 4px;\n min-height: 44px;\n overflow: auto;\n padding: 8px 12px 8px 0;\n resize: vertical;\n vertical-align: top;\n white-space: pre-wrap;\n }\n\n input {\n max-height: 32px;\n padding: 8px 0;\n }\n\n input:focus,\n input:active,\n input[aria-expanded=\"true\"],\n textarea:focus,\n textarea:active {\n outline: none;\n }\n\n .c-input__content {\n align-items: center;\n display: flex;\n width: 100%;\n\n slot {\n display: none;\n }\n\n c-icon-button {\n aspect-ratio: 1;\n margin-right: -6px;\n }\n }\n\n &__control {\n border-radius: inherit;\n color: currentColor;\n display: flex;\n flex-flow: column wrap;\n flex-grow: 1;\n gap: 8px;\n height: auto;\n min-width: 0;\n width: 100%;\n position: relative;\n }\n\n &__slot {\n align-items: stretch;\n background: transparent;\n border-radius: inherit;\n color: inherit;\n cursor: text;\n display: flex;\n min-height: 44px;\n padding: 0 12px;\n position: relative;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: 100%;\n }\n\n &__field {\n align-items: center;\n display: flex;\n flex: 1 1 auto;\n gap: 8px;\n position: relative;\n\n input,\n textarea {\n flex: 1;\n outline: 0;\n }\n\n label {\n font-size: 16px;\n height: 20px;\n left: 0;\n letter-spacing: normal;\n line-height: 20px;\n max-width: 90%;\n min-height: 8px;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n right: auto;\n text-overflow: ellipsis;\n top: 12px;\n transform-origin: top left;\n transform: translateX(var(--_c-input-label-position)) translateY(0)\n scale(1);\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) 0.08s;\n white-space: nowrap;\n\n &.active {\n transform: translateY(-18px) scale(0.75);\n }\n\n span {\n color: var(--c-error-600);\n }\n }\n }\n\n &--select {\n input {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .c-input__slot {\n cursor: pointer;\n }\n }\n\n fieldset {\n background-color: var(--_c-input-background-color);\n border-collapse: collapse;\n border-color: var(--_c-input-inactive-color);\n border-radius: inherit;\n border-style: solid;\n border-width: var(--_c-input-border-width);\n inset: 0;\n margin: 0;\n padding: 0 0 0 8px;\n pointer-events: none;\n position: absolute;\n transition-duration: 0.15s;\n transition-property: color;\n transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);\n\n legend {\n float: none;\n line-height: 11px;\n margin-left: -1px;\n padding: 0;\n text-align: left;\n transition: width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: 0;\n\n &.active {\n width: var(--_c-input-legend-width);\n }\n }\n }\n\n &--shadow {\n #{$this} {\n &__slot {\n background-color: var(--_c-input-shadow-background-color);\n box-shadow: rgba(0, 0, 0, 0.15) 0 5px 15px 0;\n\n input,\n textarea {\n color: var(--_c-input-shadow-text-color);\n }\n\n &:focus-within {\n outline: 2px var(--_c-input-active-color) solid;\n\n c-icon {\n --c-icon-color: var(--_c-input-shadow-active-color) !important;\n }\n }\n }\n }\n\n input::placeholder,\n textarea::placeholder {\n color: var(--_c-input-shadow-placeholder-color);\n opacity: 1;\n }\n }\n\n &--disabled {\n input,\n textarea,\n fieldset,\n label {\n --_c-input-error-color: var(--c-tertiary-500);\n\n color: var(--c-tertiary-500);\n }\n }\n\n &--textarea {\n #{$this} {\n &__field {\n margin-right: -12px;\n }\n }\n }\n\n ::placeholder {\n color: var(--_c-input-placeholder-color);\n opacity: 1;\n }\n\n &:focus-within,\n &--active,\n &:not(.c-input--disabled):active {\n --_c-input-border-width: 2px;\n\n color: var(--_c-input-active-color);\n\n fieldset {\n border-color: var(--_c-input-active-color);\n }\n\n label {\n color: var(--_c-input-active-color);\n transform: translateX(0) translateY(-18px) scale(0.75);\n }\n\n legend {\n width: var(--_c-input-legend-width);\n }\n }\n\n &.active:not(.filled) {\n .c-input-menu__input {\n position: relative;\n\n &::after {\n display: flex;\n align-items: center;\n position: absolute;\n inset: 0;\n content: attr(data-placeholder);\n pointer-events: none;\n color: var(--_c-input-placeholder-color);\n }\n }\n }\n\n &--error {\n color: var(--c-error-600);\n\n fieldset {\n border-color: var(--c-error-600) !important;\n }\n\n label {\n color: var(--c-error-600) !important;\n }\n\n &:focus-within {\n color: var(--c-error-600);\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n Element,\n Watch,\n Method,\n} from '@stencil/core';\nimport { CAutocompleteItem, CSelectItem } from '../../types';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-input',\n styleUrl: 'c-input.scss',\n shadow: false,\n})\nexport class CInput {\n @Element() el!: HTMLCInputElement;\n\n /**\n * Active state\n */\n @Prop() active = false;\n\n /**\n * Auto focus the input\n * @name autofocus\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the input element\n */\n @Prop() inputId: string;\n\n /**\n * Items for the dropdown\n */\n @Prop() items: CSelectItem[];\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type: string;\n\n /**\n * Set the validíty of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop() value: string | number | boolean | CSelectItem | CAutocompleteItem;\n\n /**\n * Variant\n */\n @Prop() variant: 'text' | 'select' = 'text';\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n /**\n * Emit click to the parent\n * @private\n */\n @Event({ bubbles: false }) itemClick: EventEmitter;\n\n /**\n * Emit close to the parent\n * @private\n */\n @Event({ bubbles: false }) dropdownClose: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @State() statusText = '';\n\n @State() currentIndex: number = null;\n\n @Watch('valid')\n onValidChange() {\n if (this.validateOnBlur && !this._hasBlurred) return;\n\n this._setAriaDescriptionId();\n }\n\n @Watch('validation')\n onValidationMessageChange() {\n this._updateStatusText();\n }\n\n @Watch('value')\n onValueChange(value) {\n if (!value) {\n this._onReset();\n }\n }\n\n @Watch('placeholder')\n onPlaceholderChange(placeholder) {\n if (placeholder) this._onReset();\n }\n\n private _hasBlurred = false;\n\n private _labelRef: HTMLLabelElement;\n\n private _debounce = null;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n /**\n * @private\n */\n @Method()\n async reset() {\n this._onReset();\n }\n\n componentDidLoad() {\n if (this.automaticFocus) {\n setTimeout(() => {\n this._onFocus(false);\n }, 500);\n }\n\n this._calculateElementWidths();\n this._setAriaDescriptionId();\n\n if (this.label) {\n this._observer.observe(this._labelRef);\n }\n\n this.inputField?.addEventListener('focus', () => this._onFocus(false));\n this.inputField?.addEventListener('blur', () => this._onBlur());\n this.inputField?.addEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n // hide the placeholder text initially if there is a label\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.label || !this.placeholder ? '' : this.placeholder;\n\n this.inputField.title = this.label ?? this.placeholder;\n\n requestAnimationFrame(() => {\n const container = this.inputField.closest(\n '.c-input-menu__input',\n ) as HTMLDivElement;\n\n if (!container) return;\n\n container.dataset.placeholder = this.placeholder;\n });\n }\n }\n\n disconnectedCallback() {\n this.inputField?.removeEventListener('focus', () => this._onFocus(false));\n this.inputField?.removeEventListener('blur', () => this._onBlur());\n this.inputField?.removeEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n this._observer.disconnect();\n\n this._dropdownElement?.remove();\n }\n\n get isActive() {\n return !!this.value || typeof this.value === 'boolean' || this.isFocused;\n }\n\n private _setAriaDescriptionId() {\n this.inputField.removeAttribute('aria-describedby');\n\n let type = null;\n\n if (this.valid && !this.value && this.hint) {\n type = 'hint';\n }\n\n if (!this.valid) {\n type = 'error';\n }\n\n if (type) {\n this.inputField.setAttribute(\n 'aria-describedby',\n `${type}-${this.inputId}`,\n );\n }\n }\n\n private _observer = new IntersectionObserver(\n (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n this._calculateElementWidths();\n observer.unobserve(entry.target);\n }\n });\n },\n { threshold: 1 },\n );\n\n private _calculateElementWidths() {\n this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;\n this.preSlotWidth = this.inputField.offsetLeft;\n }\n\n private _onBlur = () => {\n // delay the blur event to prevent the label from 'flashing' on c-select selection\n setTimeout(() => {\n this.isFocused = false;\n\n this._hasBlurred = true;\n\n // show the label if there's no label or value\n this._onReset();\n }, 100);\n };\n\n private _onFocus = (click = true) => {\n if (this.disabled) return;\n\n this.isFocused = true;\n\n this.inputField?.focus();\n\n if (click) {\n this.inputField?.click();\n\n if (this.variant === 'select') {\n this.itemClick.emit();\n }\n }\n\n // show the label if there's no value\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.value || !this.placeholder ? '' : this.placeholder;\n }\n };\n\n private _onReset() {\n if (this.inputField) {\n if (\n !!this.placeholder &&\n !this.value &&\n (this.active || this.isFocused)\n ) {\n this.inputField.placeholder = this.placeholder;\n\n return;\n }\n\n this.inputField.placeholder =\n !this.label && !this.value && !!this.placeholder\n ? this.placeholder\n : '';\n }\n }\n\n /**\n * Prevent non numeric values in the numeric fields\n */\n private _preventNonNumericalInput(event: KeyboardEvent) {\n if (this.type !== 'number') return;\n\n if (!event.key.match(/^[0-9,\\.-]+$/)) {\n event.preventDefault();\n }\n }\n\n private _renderBorders() {\n if (this.shadow) return;\n\n const classes = {\n active: this.isActive || this.active,\n };\n\n return (\n <fieldset aria-hidden=\"true\">\n <legend\n class={classes}\n style={{\n '--_c-input-legend-width': this.labelWidth + 'px',\n }}\n >\n <span class=\"notranslate\"></span>\n </legend>\n </fieldset>\n );\n }\n\n private _renderLabel() {\n if (!this.label) return;\n\n const classes = {\n active: this.isActive,\n };\n\n return (\n <label\n htmlFor={this.inputId}\n ref={(el) => (this._labelRef = el as HTMLLabelElement)}\n class={classes}\n >\n {this.label}\n {this.required && <span> *</span>}\n </label>\n );\n }\n\n get inputField() {\n return this.el?.querySelector('.c-input__input') as\n | HTMLInputElement\n | HTMLTextAreaElement;\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = this.valid ? '' : `Error: ${this.validation}`;\n\n this._debounce = null;\n }, 1400);\n }\n\n render() {\n const containerClasses = {\n 'c-input': true,\n 'c-input--disabled': this.disabled,\n 'c-input--shadow': this.shadow,\n 'c-input--textarea': this.rows > 1,\n 'c-input--error': !this.valid,\n 'c-input--active': this.isFocused || this.active,\n filled: !!this.value,\n [`c-input--${this.variant}`]: true,\n };\n\n return (\n <Host disabled={this.disabled}>\n <div\n id={'announce-' + this.inputId}\n class=\"visuallyhidden\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n {this.statusText}\n </div>\n\n <div class={containerClasses}>\n <div class=\"c-input__control\">\n <div class=\"c-input__slot\" onClick={() => this._onFocus()}>\n {this._renderBorders()}\n\n <div\n class=\"c-input__field\"\n style={{\n '--_c-input-label-position': this.preSlotWidth + 'px',\n }}\n >\n <slot name=\"pre\"></slot>\n\n {this._renderLabel()}\n\n <slot></slot>\n </div>\n </div>\n\n {this.variant === 'select' && <slot name=\"dropdown\"></slot>}\n\n {!this.hideDetails && (\n <c-message\n hint={this.hint}\n inputId={this.inputId}\n valid={this.valid}\n validation={this.validation}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-B1qgNVwl.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,+7LAA+7L;;MCsBp8L,MAAM,GAAAA,kBAAA,CAAA,MAAA,MAAA,SAAAC,CAAA,CAAA;AALnB,IAAA,WAAA,GAAA;;;;;;AAWU,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAMY,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AAKhD,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAKhB,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAKnB,QAAA,IAAI,CAAA,IAAA,GAAG,EAAE;AAqBT,QAAA,IAAY,CAAA,YAAA,GAAG,CAAC;AAUhB,QAAA,IAAG,CAAA,GAAA,GAAW,IAAI;AAKlB,QAAA,IAAG,CAAA,GAAA,GAAW,IAAI;AAelB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAKhB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAKhB,QAAA,IAAI,CAAA,IAAA,GAAG,CAAC;AAKR,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAKd,QAAA,IAAI,CAAA,IAAA,GAAW,IAAI;AAUnB,QAAA,IAAK,CAAA,KAAA,GAAG,IAAI;AAKZ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAKhB,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AAKtB,QAAA,IAAU,CAAA,UAAA,GAAG,gBAAgB;AAU7B,QAAA,IAAO,CAAA,OAAA,GAAsB,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AA,0CAAA,EAAA,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,UAAU,EAAE,IAAI,CAAC,UAAU,GAC3B,CACH,CACG,CACF,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/c-input/c-input.scss?tag=c-input","src/components/c-input/c-input.tsx"],"sourcesContent":[":host(c-input) {\n --_c-input-inactive-color: var(--c-tertiary-600);\n --_c-input-active-color: var(--c-primary-600);\n --_c-input-background-color: var(--c-transparent);\n --_c-input-text-color: var(--c-text-body);\n --_c-input-placeholder-color: var(--c-tertiary-500);\n --_c-input-shadow-active-color: var(--_c-input-active-color);\n --_c-input-shadow-background-color: var(--c-white);\n --_c-input-shadow-text-color: var(--_c-input-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-input-placeholder-color);\n\n // private\n --_c-input-error-color: var(--c-error-600);\n}\n\n.visuallyhidden {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.c-input {\n $this: &;\n\n --_c-input-border-width: 1px;\n\n align-items: flex-start;\n border-radius: 4px;\n display: flex;\n flex: 1 1 auto;\n font-family: var(--c-font-family);\n font-size: 16px;\n letter-spacing: normal;\n max-width: 100%;\n text-align: left;\n\n input,\n select,\n textarea {\n background: none;\n border: 0;\n display: inline-block;\n font-family: var(--c-font-family);\n font-size: 16px;\n line-height: 1;\n margin: 0;\n padding: 0;\n vertical-align: middle;\n white-space: normal;\n }\n\n input,\n textarea {\n box-sizing: content-box;\n background-color: transparent;\n border: none;\n color: var(--_c-input-text-color);\n flex: 1 1 auto;\n font-family: var(--c-font-family);\n font-size: 16px;\n line-height: 20px;\n max-width: 100%;\n min-width: 0;\n width: 100%;\n }\n\n input[type=\"checkbox\"],\n input[type=\"radio\"],\n select {\n box-sizing: border-box;\n }\n\n input[type=\"search\"] {\n appearance: textfield;\n box-sizing: content-box;\n }\n\n ::-webkit-search-decoration {\n display: none;\n }\n\n textarea {\n margin-top: 4px;\n min-height: 44px;\n overflow: auto;\n padding: 8px 12px 8px 0;\n resize: vertical;\n vertical-align: top;\n white-space: pre-wrap;\n }\n\n input {\n max-height: 32px;\n padding: 8px 0;\n }\n\n input:focus,\n input:active,\n input[aria-expanded=\"true\"],\n textarea:focus,\n textarea:active {\n outline: none;\n }\n\n .c-input__content {\n align-items: center;\n display: flex;\n width: 100%;\n\n slot {\n display: none;\n }\n\n c-icon-button {\n aspect-ratio: 1;\n margin-right: -6px;\n }\n }\n\n &__control {\n border-radius: inherit;\n color: currentColor;\n display: flex;\n flex-flow: column wrap;\n flex-grow: 1;\n gap: 8px;\n height: auto;\n min-width: 0;\n width: 100%;\n position: relative;\n }\n\n &__slot {\n align-items: stretch;\n background: transparent;\n border-radius: inherit;\n color: inherit;\n cursor: text;\n display: flex;\n min-height: 44px;\n padding: 0 12px;\n position: relative;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: 100%;\n }\n\n &__field {\n align-items: center;\n display: flex;\n flex: 1 1 auto;\n gap: 8px;\n position: relative;\n\n input,\n textarea {\n flex: 1;\n outline: 0;\n }\n\n label {\n font-size: 16px;\n height: 20px;\n left: 0;\n letter-spacing: normal;\n line-height: 20px;\n max-width: 90%;\n min-height: 8px;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n right: auto;\n text-overflow: ellipsis;\n top: 12px;\n transform-origin: top left;\n transform: translateX(var(--_c-input-label-position)) translateY(0)\n scale(1);\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) 0.08s;\n white-space: nowrap;\n\n &.active {\n transform: translateY(-18px) scale(0.75);\n }\n\n span {\n color: var(--c-error-600);\n }\n }\n }\n\n &--select {\n input {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .c-input__slot {\n cursor: pointer;\n }\n }\n\n fieldset {\n background-color: var(--_c-input-background-color);\n border-collapse: collapse;\n border-color: var(--_c-input-inactive-color);\n border-radius: inherit;\n border-style: solid;\n border-width: var(--_c-input-border-width);\n inset: 0;\n margin: 0;\n padding: 0 0 0 8px;\n pointer-events: none;\n position: absolute;\n transition-duration: 0.15s;\n transition-property: color;\n transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);\n\n legend {\n float: none;\n line-height: 11px;\n margin-left: -1px;\n padding: 0;\n text-align: left;\n transition: width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: 0;\n\n &.active {\n width: var(--_c-input-legend-width);\n }\n }\n }\n\n &--shadow {\n #{$this} {\n &__slot {\n background-color: var(--_c-input-shadow-background-color);\n box-shadow: rgba(0, 0, 0, 0.15) 0 5px 15px 0;\n\n input,\n textarea {\n color: var(--_c-input-shadow-text-color);\n }\n\n &:focus-within {\n outline: 2px var(--_c-input-active-color) solid;\n\n c-icon {\n --c-icon-color: var(--_c-input-shadow-active-color) !important;\n }\n }\n }\n }\n\n input::placeholder,\n textarea::placeholder {\n color: var(--_c-input-shadow-placeholder-color);\n opacity: 1;\n }\n }\n\n &--disabled {\n input,\n textarea,\n fieldset,\n label {\n --_c-input-error-color: var(--c-tertiary-500);\n\n color: var(--c-tertiary-500);\n }\n }\n\n &--textarea {\n #{$this} {\n &__field {\n margin-right: -12px;\n }\n }\n }\n\n ::placeholder {\n color: var(--_c-input-placeholder-color);\n opacity: 1;\n }\n\n &:focus-within,\n &--active,\n &:not(.c-input--disabled):active {\n --_c-input-border-width: 2px;\n\n color: var(--_c-input-active-color);\n\n fieldset {\n border-color: var(--_c-input-active-color);\n }\n\n label {\n color: var(--_c-input-active-color);\n transform: translateX(0) translateY(-18px) scale(0.75);\n }\n\n legend {\n width: var(--_c-input-legend-width);\n }\n }\n\n &.active:not(.filled) {\n .c-input-menu__input {\n position: relative;\n\n &::after {\n display: flex;\n align-items: center;\n position: absolute;\n inset: 0;\n content: attr(data-placeholder);\n pointer-events: none;\n color: var(--_c-input-placeholder-color);\n }\n }\n }\n\n &--error {\n color: var(--c-error-600);\n\n fieldset {\n border-color: var(--c-error-600) !important;\n }\n\n label {\n color: var(--c-error-600) !important;\n }\n\n &:focus-within {\n color: var(--c-error-600);\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n Element,\n Watch,\n Method,\n} from '@stencil/core';\nimport { CAutocompleteItem, CSelectItem } from '../../types';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-input',\n styleUrl: 'c-input.scss',\n shadow: false,\n})\nexport class CInput {\n @Element() el!: HTMLCInputElement;\n\n /**\n * Active state\n */\n @Prop() active = false;\n\n /**\n * Auto focus the input\n * @name autofocus\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the input element\n */\n @Prop() inputId: string;\n\n /**\n * Items for the dropdown\n */\n @Prop() items: CSelectItem[];\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type: string;\n\n /**\n * Set the validíty of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop() value: string | number | boolean | CSelectItem | CAutocompleteItem;\n\n /**\n * Variant\n */\n @Prop() variant: 'text' | 'select' = 'text';\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n /**\n * Emit click to the parent\n * @private\n */\n @Event({ bubbles: false }) itemClick: EventEmitter;\n\n /**\n * Emit close to the parent\n * @private\n */\n @Event({ bubbles: false }) dropdownClose: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @State() statusText = '';\n\n @State() currentIndex: number = null;\n\n @Watch('valid')\n onValidChange() {\n if (this.validateOnBlur && !this._hasBlurred) return;\n\n this._setAriaDescriptionId();\n }\n\n @Watch('validation')\n onValidationMessageChange() {\n this._updateStatusText();\n }\n\n @Watch('value')\n onValueChange(value) {\n if (!value) {\n this._onReset();\n }\n }\n\n @Watch('placeholder')\n onPlaceholderChange(placeholder) {\n if (placeholder) this._onReset();\n }\n\n private _hasBlurred = false;\n\n private _labelRef: HTMLLabelElement;\n\n private _debounce = null;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n /**\n * @private\n */\n @Method()\n async reset() {\n this._onReset();\n }\n\n componentDidLoad() {\n if (this.automaticFocus) {\n setTimeout(() => {\n this._onFocus(false);\n }, 500);\n }\n\n this._calculateElementWidths();\n this._setAriaDescriptionId();\n\n if (this.label) {\n this._observer.observe(this._labelRef);\n }\n\n this.inputField?.addEventListener('focus', () => this._onFocus(false));\n this.inputField?.addEventListener('blur', () => this._onBlur());\n this.inputField?.addEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n // hide the placeholder text initially if there is a label\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.label || !this.placeholder ? '' : this.placeholder;\n\n this.inputField.title = this.label ?? this.placeholder;\n\n requestAnimationFrame(() => {\n const container = this.inputField.closest(\n '.c-input-menu__input',\n ) as HTMLDivElement;\n\n if (!container) return;\n\n container.dataset.placeholder = this.placeholder;\n });\n }\n }\n\n disconnectedCallback() {\n this.inputField?.removeEventListener('focus', () => this._onFocus(false));\n this.inputField?.removeEventListener('blur', () => this._onBlur());\n this.inputField?.removeEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n this._observer.disconnect();\n\n this._dropdownElement?.remove();\n }\n\n get isActive() {\n return !!this.value || typeof this.value === 'boolean' || this.isFocused;\n }\n\n private _setAriaDescriptionId() {\n this.inputField.removeAttribute('aria-describedby');\n\n let type = null;\n\n if (this.valid && !this.value && this.hint) {\n type = 'hint';\n }\n\n if (!this.valid) {\n type = 'error';\n }\n\n if (type) {\n this.inputField.setAttribute(\n 'aria-describedby',\n `${type}-${this.inputId}`,\n );\n }\n }\n\n private _observer = new IntersectionObserver(\n (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n this._calculateElementWidths();\n observer.unobserve(entry.target);\n }\n });\n },\n { threshold: 1 },\n );\n\n private _calculateElementWidths() {\n this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;\n this.preSlotWidth = this.inputField.offsetLeft;\n }\n\n private _onBlur = () => {\n // delay the blur event to prevent the label from 'flashing' on c-select selection\n setTimeout(() => {\n this.isFocused = false;\n\n this._hasBlurred = true;\n\n // show the label if there's no label or value\n this._onReset();\n }, 100);\n };\n\n private _onFocus = (click = true) => {\n if (this.disabled) return;\n\n this.isFocused = true;\n\n this.inputField?.focus();\n\n if (click) {\n this.inputField?.click();\n\n if (this.variant === 'select') {\n this.itemClick.emit();\n }\n }\n\n // show the label if there's no value\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.value || !this.placeholder ? '' : this.placeholder;\n }\n };\n\n private _onReset() {\n if (this.inputField) {\n if (\n !!this.placeholder &&\n !this.value &&\n (this.active || this.isFocused)\n ) {\n this.inputField.placeholder = this.placeholder;\n\n return;\n }\n\n this.inputField.placeholder =\n !this.label && !this.value && !!this.placeholder\n ? this.placeholder\n : '';\n }\n }\n\n /**\n * Prevent non numeric values in the numeric fields\n */\n private _preventNonNumericalInput(event: KeyboardEvent) {\n if (this.type !== 'number') return;\n\n if (!event.key.match(/^[0-9,\\.-]+$/)) {\n event.preventDefault();\n }\n }\n\n private _renderBorders() {\n if (this.shadow) return;\n\n const classes = {\n active: this.isActive || this.active,\n };\n\n return (\n <fieldset aria-hidden=\"true\">\n <legend\n class={classes}\n style={{\n '--_c-input-legend-width': this.labelWidth + 'px',\n }}\n >\n <span class=\"notranslate\"></span>\n </legend>\n </fieldset>\n );\n }\n\n private _renderLabel() {\n if (!this.label) return;\n\n const classes = {\n active: this.isActive,\n };\n\n return (\n <label\n htmlFor={this.inputId}\n ref={(el) => (this._labelRef = el as HTMLLabelElement)}\n class={classes}\n >\n {this.label}\n {this.required && <span> *</span>}\n </label>\n );\n }\n\n get inputField() {\n return this.el?.querySelector('.c-input__input') as\n | HTMLInputElement\n | HTMLTextAreaElement;\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = this.valid ? '' : `Error: ${this.validation}`;\n\n this._debounce = null;\n }, 1400);\n }\n\n render() {\n const containerClasses = {\n 'c-input': true,\n 'c-input--disabled': this.disabled,\n 'c-input--shadow': this.shadow,\n 'c-input--textarea': this.rows > 1,\n 'c-input--error': !this.valid,\n 'c-input--active': this.isFocused || this.active,\n filled: !!this.value,\n [`c-input--${this.variant}`]: true,\n };\n\n return (\n <Host disabled={this.disabled}>\n <div\n id={'announce-' + this.inputId}\n class=\"visuallyhidden\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n {this.statusText}\n </div>\n\n <div class={containerClasses}>\n <div class=\"c-input__control\">\n <div class=\"c-input__slot\" onClick={() => this._onFocus()}>\n {this._renderBorders()}\n\n <div\n class=\"c-input__field\"\n style={{\n '--_c-input-label-position': this.preSlotWidth + 'px',\n }}\n >\n <slot name=\"pre\"></slot>\n\n {this._renderLabel()}\n\n <slot></slot>\n </div>\n </div>\n\n {this.variant === 'select' && <slot name=\"dropdown\"></slot>}\n\n {!this.hideDetails && (\n <c-message\n hint={this.hint}\n inputId={this.inputId}\n valid={this.valid}\n validation={this.validation}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|