adp-web-components 0.1.89 → 0.1.91
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/dead-stock-lookup_3.cjs.entry.js +9 -9
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/form-dialog_13.cjs.entry.js +41 -34
- package/dist/cjs/form-input_6.cjs.entry.js +482 -0
- package/dist/cjs/form-switch.cjs.entry.js +2 -2
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/{functions-BQEvU17H.js → functions-b8tFLJfq.js} +1 -1
- package/dist/cjs/general-form.cjs.entry.js +5 -5
- package/dist/cjs/general-inquiry-form.cjs.entry.js +5 -5
- package/dist/cjs/{get-local-language-DsQELiJS.js → get-local-language-DNAZjtmK.js} +1 -1
- package/dist/cjs/{get-mock-files-Ch_kovG_.js → get-mock-files-B3F99_oV.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +3 -3
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +5 -5
- package/dist/cjs/shift-accordion.cjs.entry.js +1 -1
- package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-select-dropdown.cjs.entry.js +51 -0
- package/dist/cjs/shift-slider.cjs.entry.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +2 -2
- package/dist/cjs/shift-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/shift-tabs_2.cjs.entry.js +10 -10
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +5 -5
- package/dist/cjs/test-drive-form.cjs.entry.js +5 -5
- package/dist/cjs/tick-icon-5nsAUzj6.js +12 -0
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +15 -15
- package/dist/cjs/vehicle-lookup.cjs.entry.js +2 -2
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +5 -5
- package/dist/cjs/{white-loader-D6sR0fOI.js → white-loader-Ca6EPcsj.js} +0 -4
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/components/empty.css +1 -1
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/shift-accordion.css +1 -1
- package/dist/collection/components/components/shift-portal.css +1 -0
- package/dist/collection/components/components/shift-portal.js +124 -0
- package/dist/collection/components/components/shift-select-dropdown.css +1 -0
- package/dist/collection/components/components/shift-select-dropdown.js +355 -0
- package/dist/collection/components/components/shift-select.css +1 -1
- package/dist/collection/components/components/shift-select.js +135 -228
- package/dist/collection/components/components/shift-slider.js +1 -1
- package/dist/collection/components/components/shift-switch.js +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tab-content.js +1 -1
- package/dist/collection/components/components/shift-tabs.js +2 -2
- package/dist/collection/components/form-elements/form-checkbox.js +1 -1
- package/dist/collection/components/form-elements/form-date-picker-legacy.js +4 -4
- package/dist/collection/components/form-elements/form-dialog.js +3 -3
- package/dist/collection/components/form-elements/form-file.js +2 -2
- package/dist/collection/components/form-elements/form-input.js +2 -2
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-phone-number.js +7 -1
- package/dist/collection/components/form-elements/form-picker-input.js +2 -2
- package/dist/collection/components/form-elements/form-shadow-input.js +1 -1
- package/dist/collection/components/form-elements/form-stepper-control.js +2 -2
- package/dist/collection/components/form-elements/form-stepper-submit.js +2 -2
- package/dist/collection/components/form-elements/form-stepper.js +1 -1
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
- package/dist/collection/components/form-elements/form-vin-input.js +2 -2
- package/dist/collection/components/forms/defaults/style.css +1 -1
- package/dist/collection/components/forms/general-form.js +2 -2
- package/dist/collection/components/forms/general-inquiry.js +2 -2
- package/dist/collection/components/forms/service-booking.js +2 -2
- package/dist/collection/components/forms/ssc-lookup.js +2 -2
- package/dist/collection/components/forms/test-drive.js +2 -2
- package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +2 -2
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.css +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/global/lib/get-custom-classes-for-portal.js +41 -0
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-date-picker.js +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-file.js +1 -1
- package/dist/components/form-input-preview.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.js +1 -1
- package/dist/components/form-picker-input.js +1 -1
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.js +1 -1
- package/dist/components/form-stepper-control.js +1 -1
- package/dist/components/form-stepper-submit.js +1 -1
- package/dist/components/form-stepper.js +1 -1
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/form-time-picker.js +1 -1
- package/dist/components/form-vin-input.js +1 -1
- package/dist/components/general-form.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/{p-ArK8It5m.js → p--anxcjtN.js} +1 -1
- package/dist/components/p-7zVWuLAq.js +5 -0
- package/dist/components/p-B-Wb2O9M.js +5 -0
- package/dist/components/p-BM4tew8G.js +5 -0
- package/dist/components/p-BUS2YqxZ.js +5 -0
- package/dist/components/{p-DNtYvtOI.js → p-BV90NnNh.js} +1 -1
- package/dist/components/p-BX94Wv8p.js +5 -0
- package/dist/components/p-BXMyUNO3.js +5 -0
- package/dist/components/{p-u6pKoWLI.js → p-BXXhyo8T.js} +1 -1
- package/dist/components/{p-KjXwWDZQ.js → p-BaAv91r7.js} +1 -1
- package/dist/components/p-BkQCx7i0.js +5 -0
- package/dist/components/p-BqR8Ws-B.js +5 -0
- package/dist/components/{p-i1k5GlNe.js → p-Bu-zIHAI.js} +1 -1
- package/dist/components/p-BxnICZU9.js +5 -0
- package/dist/components/{p-DYLaj78t.js → p-C2hvMeLJ.js} +1 -1
- package/dist/components/{p-DBiBGgSi.js → p-C44H0Rnu.js} +1 -1
- package/dist/components/{p-CPU26qzy.js → p-CGyBRij0.js} +1 -1
- package/dist/components/p-CK23iS-3.js +5 -0
- package/dist/components/p-CMcJt0YF.js +5 -0
- package/dist/components/p-CNZcXdUu.js +5 -0
- package/dist/components/p-CPXxiK6w.js +5 -0
- package/dist/components/p-CR6lda7Y.js +5 -0
- package/dist/components/{p-CYHdG6Qt.js → p-CSITVd7T.js} +1 -1
- package/dist/components/{p-DzOUDDc-.js → p-Ca4tNXFJ.js} +1 -1
- package/dist/components/{p-DX2CofC-.js → p-Cj5IMvmY.js} +1 -1
- package/dist/components/{p-BJMPwAS4.js → p-D0Kv9fuX.js} +1 -1
- package/dist/components/p-D7BV0VvA.js +5 -0
- package/dist/components/{p-w4ZaoqpI.js → p-DB8VkFjT.js} +1 -1
- package/dist/components/p-DHCNR72p.js +5 -0
- package/dist/components/{p-CVtvnaxh.js → p-DbZXHOdd.js} +1 -1
- package/dist/components/p-Dh4Zl2o6.js +5 -0
- package/dist/components/p-Dsdar5Wr.js +5 -0
- package/dist/components/p-Mcvs6zfL.js +5 -0
- package/dist/components/p-UPh8uhqc.js +5 -0
- package/dist/components/{p-CkpaEkN9.js → p-VbjDlhNs.js} +1 -1
- package/dist/components/p-XpRw_7oy.js +5 -0
- package/dist/components/p-ZtVXd0tH.js +5 -0
- package/dist/components/{p-BYHZx5uv.js → p-c3X39K7X.js} +1 -1
- package/dist/components/{p-CtIGw5Py.js → p-hPoTeCL3.js} +1 -1
- package/dist/components/{p-o71PUaO_.js → p-iv-7fJhX.js} +1 -1
- package/dist/components/p-ydh-g5_d.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-checkbox.js +1 -1
- package/dist/components/shift-portal.d.ts +11 -0
- package/dist/components/shift-portal.js +5 -0
- package/dist/components/shift-select-dropdown.d.ts +11 -0
- package/dist/components/shift-select-dropdown.js +5 -0
- package/dist/components/shift-select.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-switch.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/ssc-lookup-form.js +1 -1
- package/dist/components/test-drive-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-sale-information.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +9 -9
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +2 -2
- package/dist/esm/form-date-picker.entry.js +5 -5
- package/dist/esm/form-dialog_13.entry.js +41 -34
- package/dist/esm/form-input_6.entry.js +475 -0
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/{functions-B1v3Y3PD.js → functions-ChlnhZY4.js} +1 -1
- package/dist/esm/general-form.entry.js +5 -5
- package/dist/esm/general-inquiry-form.entry.js +5 -5
- package/dist/esm/{get-local-language-MJAuQ90s.js → get-local-language-DkHdgkup.js} +1 -1
- package/dist/esm/{get-mock-files-UHBAgIbo.js → get-mock-files-BsX01omE.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +3 -3
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +5 -5
- package/dist/esm/shift-accordion.entry.js +1 -1
- package/dist/esm/shift-checkbox.entry.js +1 -1
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-select-dropdown.entry.js +49 -0
- package/dist/esm/shift-slider.entry.js +1 -1
- package/dist/esm/shift-switch.entry.js +2 -2
- package/dist/esm/shift-tab-content.entry.js +2 -2
- package/dist/esm/shift-tabs_2.entry.js +10 -10
- package/dist/esm/ssc-lookup-form.entry.js +5 -5
- package/dist/esm/test-drive-form.entry.js +5 -5
- package/dist/esm/tick-icon-Dbjn6jAI.js +10 -0
- package/dist/esm/vehicle-accessories_7.entry.js +15 -15
- package/dist/esm/vehicle-lookup.entry.js +2 -2
- package/dist/esm/vehicle-quotation-form.entry.js +5 -5
- package/dist/esm/{white-loader-DG6pqLQw.js → white-loader-r3AUTEZM.js} +1 -4
- package/dist/shift-components/p-0680a239.entry.js +5 -0
- package/dist/shift-components/{p-99992c2d.entry.js → p-141add0d.entry.js} +1 -1
- package/dist/shift-components/p-1dbffda3.entry.js +5 -0
- package/dist/shift-components/p-22d9da03.entry.js +5 -0
- package/dist/shift-components/p-2ca566ae.entry.js +5 -0
- package/dist/shift-components/p-2cc056e3.entry.js +5 -0
- package/dist/shift-components/{p-b8b6b722.entry.js → p-32f402bb.entry.js} +1 -1
- package/dist/shift-components/p-528b17c9.entry.js +5 -0
- package/dist/shift-components/{p-9f9d0aea.entry.js → p-56ed2239.entry.js} +1 -1
- package/dist/shift-components/{p-f66436ad.entry.js → p-5d8a2df9.entry.js} +1 -1
- package/dist/shift-components/p-675dd4e6.entry.js +5 -0
- package/dist/shift-components/p-679edab6.entry.js +5 -0
- package/dist/shift-components/p-6dc0119d.entry.js +5 -0
- package/dist/shift-components/p-8a641004.entry.js +5 -0
- package/dist/shift-components/{p-c18fe44e.entry.js → p-8d733785.entry.js} +1 -1
- package/dist/shift-components/p-9f270488.entry.js +5 -0
- package/dist/shift-components/{p-jdZ57Y3w.js → p-BMKSfYIH.js} +1 -1
- package/dist/shift-components/p-CqxKslQ7.js +5 -0
- package/dist/shift-components/p-Cu7M4VEk.js +5 -0
- package/dist/shift-components/{p-KuiqTtK2.js → p-Di5DPSdR.js} +1 -1
- package/dist/shift-components/p-a7bb4ec2.entry.js +5 -0
- package/dist/shift-components/{p-8882ac0f.entry.js → p-a9a7db2b.entry.js} +1 -1
- package/dist/shift-components/p-b37bf318.entry.js +5 -0
- package/dist/shift-components/p-c0e734ef.entry.js +5 -0
- package/dist/shift-components/{p-DUiUHme5.js → p-c5JXmb7U.js} +1 -1
- package/dist/shift-components/p-d26301cf.entry.js +5 -0
- package/dist/shift-components/p-d7bcd6e3.entry.js +5 -0
- package/dist/shift-components/{p-e56bd484.entry.js → p-df8df3ab.entry.js} +1 -1
- package/dist/shift-components/{p-e3252106.entry.js → p-e6ab3eb6.entry.js} +1 -1
- package/dist/shift-components/p-ed19150f.entry.js +5 -0
- package/dist/shift-components/p-f199867c.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/shift-portal.d.ts +11 -0
- package/dist/types/components/components/shift-select-dropdown.d.ts +21 -0
- package/dist/types/components/components/shift-select.d.ts +13 -13
- package/dist/types/components.d.ts +147 -7
- package/dist/types/global/lib/get-custom-classes-for-portal.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/form-input_5.cjs.entry.js +0 -513
- package/dist/components/p-B6bE5CEN.js +0 -5
- package/dist/components/p-BkglssXx.js +0 -5
- package/dist/components/p-BmRMywlk.js +0 -5
- package/dist/components/p-C-kUF3QP.js +0 -5
- package/dist/components/p-CFTdmLbm.js +0 -5
- package/dist/components/p-CFhlz8IF.js +0 -5
- package/dist/components/p-CHWsC3aq.js +0 -5
- package/dist/components/p-CVuCTSsS.js +0 -5
- package/dist/components/p-CbbptSIU.js +0 -5
- package/dist/components/p-ClkayFkp.js +0 -5
- package/dist/components/p-CtMnPmGu.js +0 -5
- package/dist/components/p-DAHfTGDA.js +0 -5
- package/dist/components/p-DLdCqPsf.js +0 -5
- package/dist/components/p-DUVw6Tes.js +0 -5
- package/dist/components/p-DdYrGMrh.js +0 -5
- package/dist/components/p-DhzbL3P1.js +0 -5
- package/dist/components/p-DvHMZ9Hw.js +0 -5
- package/dist/components/p-ndgld65V.js +0 -5
- package/dist/components/p-nr2gMO4t.js +0 -5
- package/dist/components/p-oZ5plka6.js +0 -5
- package/dist/components/p-v06jfND4.js +0 -5
- package/dist/components/p-zIBheGW9.js +0 -5
- package/dist/esm/form-input_5.entry.js +0 -507
- package/dist/shift-components/p-0dae5673.entry.js +0 -5
- package/dist/shift-components/p-523a3324.entry.js +0 -5
- package/dist/shift-components/p-526cd30b.entry.js +0 -5
- package/dist/shift-components/p-802bed13.entry.js +0 -5
- package/dist/shift-components/p-82c6bb9d.entry.js +0 -5
- package/dist/shift-components/p-8a68034d.entry.js +0 -5
- package/dist/shift-components/p-95079e76.entry.js +0 -5
- package/dist/shift-components/p-a5d2b8a8.entry.js +0 -5
- package/dist/shift-components/p-abcc1645.entry.js +0 -5
- package/dist/shift-components/p-b6544b27.entry.js +0 -5
- package/dist/shift-components/p-bcaf164f.entry.js +0 -5
- package/dist/shift-components/p-c014a4e8.entry.js +0 -5
- package/dist/shift-components/p-d3f53eb3.entry.js +0 -5
- package/dist/shift-components/p-d722ae36.entry.js +0 -5
- package/dist/shift-components/p-d92f3e82.entry.js +0 -5
- package/dist/shift-components/p-da38699e.entry.js +0 -5
- package/dist/shift-components/p-fe99efa8.entry.js +0 -5
- package/dist/shift-components/p-veklgezh.js +0 -5
|
@@ -4,147 +4,77 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
|
-
import Loader from "~assets/loader.svg";
|
|
8
|
-
import { TickIcon } from "../../global/assets/tick-icon";
|
|
9
7
|
import { ArrowUpIcon } from "../../global/assets/arrow-up-icon";
|
|
10
8
|
import { AddIcon } from "../../global/assets/add-icon";
|
|
11
|
-
|
|
12
|
-
@keyframes spin-animation { to { transform: rotate(360deg); } }
|
|
13
|
-
|
|
14
|
-
.form-select-container {
|
|
15
|
-
z-index: 10;
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
pointer-events: none;
|
|
19
|
-
position: fixed;
|
|
20
|
-
background-color: #fff;
|
|
21
|
-
border: 1px solid rgb(226 232 240);
|
|
22
|
-
border-radius: 0.375rem;
|
|
23
|
-
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
|
|
24
|
-
opacity: 0;
|
|
25
|
-
transition-property: opacity;
|
|
26
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
27
|
-
transition-duration: 0.3s;
|
|
28
|
-
max-height: 250px;
|
|
29
|
-
overflow: auto;
|
|
30
|
-
width: var(--dropdown-width, auto);
|
|
31
|
-
}
|
|
32
|
-
.form-select-container.open {
|
|
33
|
-
opacity: 1;
|
|
34
|
-
pointer-events: auto;
|
|
35
|
-
}
|
|
36
|
-
.form-select-container.upwards {
|
|
37
|
-
transform: translateY(-100%);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.form-select-option {
|
|
41
|
-
display: flex;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
align-items: center;
|
|
44
|
-
text-align: start;
|
|
45
|
-
padding: 0.5rem 1rem;
|
|
46
|
-
background: none;
|
|
47
|
-
border: none;
|
|
48
|
-
width: 100%;
|
|
49
|
-
font: inherit;
|
|
50
|
-
color: inherit;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
.form-select-option:hover {
|
|
54
|
-
background-color: rgb(241 245 249);
|
|
55
|
-
}
|
|
56
|
-
.form-select-option.selected {
|
|
57
|
-
background-color: rgb(226 232 240);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.form-select-option-tick {
|
|
61
|
-
width: 1.25rem;
|
|
62
|
-
height: 1.25rem;
|
|
63
|
-
opacity: 0;
|
|
64
|
-
transition-property: opacity;
|
|
65
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
66
|
-
transition-duration: 0.3s;
|
|
67
|
-
}
|
|
68
|
-
.form-select-option.selected .form-select-option-tick {
|
|
69
|
-
opacity: 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.form-select-empty-container {
|
|
73
|
-
height: 100px;
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
}
|
|
78
|
-
.form-select-empty-container.error {
|
|
79
|
-
color: rgb(239 68 68);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.form-select-spinner {
|
|
83
|
-
animation: spin-animation 2s linear infinite;
|
|
84
|
-
width: 22px;
|
|
85
|
-
height: 22px;
|
|
86
|
-
}
|
|
87
|
-
`;
|
|
9
|
+
import getCustomClassesForPortal from "../../global/lib/get-custom-classes-for-portal";
|
|
88
10
|
export class ShiftSelect {
|
|
89
11
|
constructor() {
|
|
90
12
|
this.hasTick = true;
|
|
91
13
|
this.hasArrow = true;
|
|
14
|
+
this.gap = 8;
|
|
92
15
|
this.searchValue = '';
|
|
16
|
+
this.name = '';
|
|
93
17
|
this.isOpen = false;
|
|
94
18
|
this.selectedValue = '';
|
|
95
19
|
this.clearable = false;
|
|
20
|
+
this.searchable = false;
|
|
96
21
|
this.options = [];
|
|
97
22
|
this.reverseOptions = false;
|
|
98
23
|
this.forceOpenUpwards = false;
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
24
|
+
this.dropdownAncestorClasses = '';
|
|
25
|
+
this.dropdownEl = null;
|
|
26
|
+
this.boundKeyDown = (e) => this.handleKeyDown(e);
|
|
27
|
+
this.setDropdownRef = (el) => {
|
|
28
|
+
this.dropdownEl = el;
|
|
29
|
+
};
|
|
101
30
|
this.toggleDropdown = () => {
|
|
102
31
|
if (this.isOpen && !this.searchable)
|
|
103
32
|
this.updateContext({ isOpen: false });
|
|
104
33
|
else
|
|
105
|
-
this.
|
|
34
|
+
this.openDropdown();
|
|
35
|
+
};
|
|
36
|
+
this.openDropdown = () => {
|
|
37
|
+
this.adjustDropdownPosition();
|
|
38
|
+
this.updateContext({ isOpen: true });
|
|
39
|
+
};
|
|
40
|
+
this.adjustDropdownPosition = () => {
|
|
41
|
+
const dropdown = this.dropdownEl;
|
|
42
|
+
const input = this.getInputEl();
|
|
43
|
+
if (!dropdown || !input)
|
|
44
|
+
return;
|
|
45
|
+
const inputRect = input.getBoundingClientRect();
|
|
46
|
+
if (!this.isInputInView(inputRect)) {
|
|
47
|
+
this.updateContext({ isOpen: false });
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
dropdown.style.setProperty('--shift-select-width', `${inputRect.width}px`);
|
|
51
|
+
const dropdownHeight = dropdown.offsetHeight;
|
|
52
|
+
const spaceBelow = window.innerHeight - inputRect.bottom - this.gap;
|
|
53
|
+
const spaceAbove = inputRect.top - this.gap;
|
|
54
|
+
const openUpwards = this.forceOpenUpwards || (spaceBelow < dropdownHeight && spaceAbove > spaceBelow);
|
|
55
|
+
const top = openUpwards ? inputRect.top - dropdownHeight - this.gap : inputRect.bottom + this.gap;
|
|
56
|
+
dropdown.style.setProperty('--shift-select-left', `${inputRect.left}px`);
|
|
57
|
+
dropdown.style.setProperty('--shift-select-top', `${top}px`);
|
|
106
58
|
};
|
|
107
59
|
this.closeDropdown = (event) => {
|
|
108
60
|
const path = event.composedPath();
|
|
109
|
-
if (path.includes(this.el)
|
|
61
|
+
if (path.includes(this.el))
|
|
62
|
+
return;
|
|
63
|
+
if (this.dropdownEl && path.includes(this.dropdownEl))
|
|
110
64
|
return;
|
|
111
65
|
this.updateContext({ isOpen: false });
|
|
112
66
|
};
|
|
113
67
|
this.handleResize = () => {
|
|
114
|
-
if (this.isOpen)
|
|
115
|
-
this.
|
|
116
|
-
}
|
|
68
|
+
if (this.isOpen)
|
|
69
|
+
this.adjustDropdownPosition();
|
|
117
70
|
};
|
|
118
71
|
this.handleScroll = (event) => {
|
|
119
72
|
if (!this.isOpen)
|
|
120
73
|
return;
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
123
|
-
return;
|
|
124
|
-
if (this.scrollRafId)
|
|
74
|
+
const target = event.target;
|
|
75
|
+
if (this.dropdownEl && (this.dropdownEl === target || this.dropdownEl.contains(target)))
|
|
125
76
|
return;
|
|
126
|
-
this.
|
|
127
|
-
this.scrollRafId = null;
|
|
128
|
-
if (!this.isOpen)
|
|
129
|
-
return;
|
|
130
|
-
const selectButton = this.el.getElementsByClassName('form-input-select')[0];
|
|
131
|
-
if (!selectButton)
|
|
132
|
-
return;
|
|
133
|
-
const rect = selectButton.getBoundingClientRect();
|
|
134
|
-
const isVisible = rect.bottom > 0 && rect.top < window.innerHeight && rect.right > 0 && rect.left < window.innerWidth;
|
|
135
|
-
if (!isVisible) {
|
|
136
|
-
this.updateContext({ isOpen: false });
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
const container = this.getDropdownEl();
|
|
140
|
-
if (!container)
|
|
141
|
-
return;
|
|
142
|
-
const spaceBelow = window.innerHeight - rect.bottom - 20;
|
|
143
|
-
this.openUpwards = spaceBelow < container.getBoundingClientRect().height || this.forceOpenUpwards;
|
|
144
|
-
container.style.left = `${rect.left}px`;
|
|
145
|
-
container.style.setProperty('--dropdown-width', `${rect.width}px`);
|
|
146
|
-
container.style.top = this.openUpwards ? `${rect.top - 8}px` : `${rect.bottom + 8}px`;
|
|
147
|
-
});
|
|
77
|
+
this.adjustDropdownPosition();
|
|
148
78
|
};
|
|
149
79
|
this.onSearchInput = (event) => {
|
|
150
80
|
const target = event.target;
|
|
@@ -155,100 +85,55 @@ export class ShiftSelect {
|
|
|
155
85
|
const selectButton = this.el.getElementsByClassName('form-input-select')[0];
|
|
156
86
|
selectButton.focus();
|
|
157
87
|
if (!this.isOpen)
|
|
158
|
-
this.
|
|
88
|
+
this.openDropdown();
|
|
159
89
|
};
|
|
160
90
|
}
|
|
161
91
|
async componentDidLoad() {
|
|
162
|
-
this.portalEl = document.createElement('div');
|
|
163
|
-
this.portalEl.classList.add('shift-select-portal');
|
|
164
|
-
this.portalShadow = this.portalEl.attachShadow({ mode: 'open' });
|
|
165
|
-
const style = document.createElement('style');
|
|
166
|
-
style.textContent = PORTAL_STYLES;
|
|
167
|
-
this.portalShadow.appendChild(style);
|
|
168
|
-
document.body.appendChild(this.portalEl);
|
|
169
|
-
// Move the dropdown that Stencil just rendered into the portal
|
|
170
|
-
this.moveToPortal();
|
|
171
92
|
document.addEventListener('click', this.closeDropdown);
|
|
172
|
-
document.addEventListener('keydown', this.
|
|
93
|
+
document.addEventListener('keydown', this.boundKeyDown);
|
|
173
94
|
window.addEventListener('resize', this.handleResize);
|
|
174
95
|
window.addEventListener('scroll', this.handleScroll, true);
|
|
96
|
+
this.dropdownAncestorClasses = `${this.name}-select ${getCustomClassesForPortal(this.el)}`;
|
|
175
97
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
// Before Stencil renders, move the dropdown back so vdom diffing works
|
|
179
|
-
if (!this.portalShadow)
|
|
180
|
-
return;
|
|
181
|
-
const dropdown = this.portalShadow.querySelector('.form-select-container');
|
|
182
|
-
const container = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelector('.form-input-container');
|
|
183
|
-
if (dropdown && container) {
|
|
184
|
-
container.appendChild(dropdown);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
componentDidRender() {
|
|
188
|
-
// After Stencil patched the DOM, move the dropdown back to the portal
|
|
189
|
-
this.moveToPortal();
|
|
190
|
-
}
|
|
191
|
-
moveToPortal() {
|
|
192
|
-
if (!this.portalShadow)
|
|
193
|
-
return;
|
|
194
|
-
const dropdown = this.el.querySelector('.form-select-container');
|
|
195
|
-
if (!dropdown)
|
|
196
|
-
return;
|
|
197
|
-
this.portalShadow.appendChild(dropdown);
|
|
198
|
-
dropdown.classList.toggle('open', this.isOpen);
|
|
199
|
-
}
|
|
200
|
-
getDropdownEl() {
|
|
201
|
-
var _a;
|
|
202
|
-
return (_a = this.portalShadow) === null || _a === void 0 ? void 0 : _a.querySelector('.form-select-container');
|
|
98
|
+
getInputEl() {
|
|
99
|
+
return this.el.getElementsByClassName('form-input-select')[0];
|
|
203
100
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
const selectButton = this.el.getElementsByClassName('form-input-select')[0];
|
|
207
|
-
const selectContainer = this.getDropdownEl();
|
|
208
|
-
if (!selectButton || !selectContainer)
|
|
209
|
-
return;
|
|
210
|
-
const rect = selectButton.getBoundingClientRect();
|
|
211
|
-
selectContainer.style.setProperty('--dropdown-width', `${rect.width}px`);
|
|
212
|
-
selectContainer.style.left = `${rect.left}px`;
|
|
213
|
-
const spaceBelow = window.innerHeight - rect.bottom - 20;
|
|
214
|
-
const openUp = spaceBelow < selectContainer.getBoundingClientRect().height || this.forceOpenUpwards;
|
|
215
|
-
this.openUpwards = openUp;
|
|
216
|
-
selectContainer.style.top = openUp ? `${rect.top - 8}px` : `${rect.bottom + 8}px`;
|
|
217
|
-
setTimeout(() => {
|
|
218
|
-
this.updateContext({ isOpen: true });
|
|
219
|
-
}, 10);
|
|
220
|
-
});
|
|
101
|
+
isInputInView(rect) {
|
|
102
|
+
return rect.bottom > 0 && rect.top < window.innerHeight && rect.right > 0 && rect.left < window.innerWidth;
|
|
221
103
|
}
|
|
222
104
|
handleKeyDown(event) {
|
|
223
105
|
if (!this.isOpen)
|
|
224
106
|
return;
|
|
225
|
-
if (event.key === 'Escape')
|
|
107
|
+
if (event.key === 'Escape')
|
|
226
108
|
this.updateContext({ isOpen: false });
|
|
227
|
-
}
|
|
228
109
|
}
|
|
229
110
|
async disconnectedCallback() {
|
|
230
|
-
var _a;
|
|
231
111
|
document.removeEventListener('click', this.closeDropdown);
|
|
232
|
-
document.removeEventListener('keydown', this.
|
|
112
|
+
document.removeEventListener('keydown', this.boundKeyDown);
|
|
233
113
|
window.removeEventListener('resize', this.handleResize);
|
|
234
114
|
window.removeEventListener('scroll', this.handleScroll, true);
|
|
235
|
-
(_a = this.portalEl) === null || _a === void 0 ? void 0 : _a.remove();
|
|
236
115
|
}
|
|
237
116
|
render() {
|
|
238
117
|
const selectedItem = this.options.find(item => this.selectedValue === item.value);
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
118
|
+
const dropdownProps = {
|
|
119
|
+
name: this.name,
|
|
120
|
+
isOpen: this.isOpen,
|
|
121
|
+
options: this.options,
|
|
122
|
+
hasTick: this.hasTick,
|
|
123
|
+
hasArrow: this.hasArrow,
|
|
124
|
+
isLoading: this.isLoading,
|
|
125
|
+
renderOption: this.renderOption,
|
|
126
|
+
selectedValue: this.selectedValue,
|
|
127
|
+
setElementRef: this.setDropdownRef,
|
|
128
|
+
reverseOptions: this.reverseOptions,
|
|
129
|
+
noSelectionText: this.noSelectionText,
|
|
130
|
+
handleSelection: this.handleSelection,
|
|
131
|
+
fullRenderOption: this.fullRenderOption,
|
|
132
|
+
fetchingErrorText: this.fetchingErrorText,
|
|
133
|
+
};
|
|
134
|
+
return (h(Host, { key: '2b17badf9dc04a007506c13f3492f95fcde05a32', translate: "no" }, h("div", { key: '9781ef1f10ef59e6bbdb9d16c5a0979717775305', part: `${this.name}-container form-input-container`, class: cn('form-input-container', { open: this.isOpen, disabled: this.disableInput, disableInput: this.disableInput }) }, h("slot", { key: '0b28b79cc3f84944ddddf6b74da85747581ec905' }), h("input", { key: '91410cca11198865fb3ad37c3b78d69a61577f76', type: "text", disabled: this.disableInput, part: `${this.name}-input-select form-input-select`, value: this.searchable ? this.searchValue : (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) || '', readOnly: !this.searchable, onInput: this.onSearchInput, onClick: this.toggleDropdown, placeholder: this.placeholder, class: cn('form-input-style form-input-select', {
|
|
135
|
+
'form-input-error-style': this.isError,
|
|
136
|
+
}) }), h("div", { key: '144ba08cf7d2d6df14ccc646221487c6297a1c3e', part: `${this.name}-select-icon-container form-input-select-icon-container`, class: cn('form-input-select-icon-container cursor-pointer', { 'pointer-events-none!': !((selectedItem || this.searchValue) && this.clearable) }) }, (selectedItem || this.searchValue) && this.clearable ? (h(AddIcon, { part: `${this.name}-cross-icon`, onClick: this.clearInput, class: "form-input-select-icon cross" })) : (this.hasArrow && h(ArrowUpIcon, { part: `${this.name}-arrow-icon select-arrow`, class: "cursor-pointer form-input-select-icon pointer-events-none! arrow" }))), h("shift-portal", { key: '6a780f671c8304bcb25ebc281a5eb7186a2356ba', tag: "shift-select-dropdown", inheritedClasses: this.dropdownAncestorClasses, componentProps: dropdownProps }))));
|
|
252
137
|
}
|
|
253
138
|
static get is() { return "shift-select"; }
|
|
254
139
|
static get originalStyleUrls() {
|
|
@@ -263,13 +148,13 @@ export class ShiftSelect {
|
|
|
263
148
|
}
|
|
264
149
|
static get properties() {
|
|
265
150
|
return {
|
|
266
|
-
"
|
|
267
|
-
"type": "
|
|
268
|
-
"attribute": "
|
|
151
|
+
"hasTick": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"attribute": "has-tick",
|
|
269
154
|
"mutable": false,
|
|
270
155
|
"complexType": {
|
|
271
|
-
"original": "
|
|
272
|
-
"resolved": "
|
|
156
|
+
"original": "boolean",
|
|
157
|
+
"resolved": "boolean",
|
|
273
158
|
"references": {}
|
|
274
159
|
},
|
|
275
160
|
"required": false,
|
|
@@ -280,11 +165,12 @@ export class ShiftSelect {
|
|
|
280
165
|
},
|
|
281
166
|
"getter": false,
|
|
282
167
|
"setter": false,
|
|
283
|
-
"reflect": false
|
|
168
|
+
"reflect": false,
|
|
169
|
+
"defaultValue": "true"
|
|
284
170
|
},
|
|
285
|
-
"
|
|
171
|
+
"hasArrow": {
|
|
286
172
|
"type": "boolean",
|
|
287
|
-
"attribute": "has-
|
|
173
|
+
"attribute": "has-arrow",
|
|
288
174
|
"mutable": false,
|
|
289
175
|
"complexType": {
|
|
290
176
|
"original": "boolean",
|
|
@@ -302,13 +188,13 @@ export class ShiftSelect {
|
|
|
302
188
|
"reflect": false,
|
|
303
189
|
"defaultValue": "true"
|
|
304
190
|
},
|
|
305
|
-
"
|
|
306
|
-
"type": "
|
|
307
|
-
"attribute": "
|
|
191
|
+
"gap": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"attribute": "gap",
|
|
308
194
|
"mutable": false,
|
|
309
195
|
"complexType": {
|
|
310
|
-
"original": "
|
|
311
|
-
"resolved": "
|
|
196
|
+
"original": "number",
|
|
197
|
+
"resolved": "number",
|
|
312
198
|
"references": {}
|
|
313
199
|
},
|
|
314
200
|
"required": false,
|
|
@@ -320,7 +206,7 @@ export class ShiftSelect {
|
|
|
320
206
|
"getter": false,
|
|
321
207
|
"setter": false,
|
|
322
208
|
"reflect": false,
|
|
323
|
-
"defaultValue": "
|
|
209
|
+
"defaultValue": "8"
|
|
324
210
|
},
|
|
325
211
|
"searchValue": {
|
|
326
212
|
"type": "string",
|
|
@@ -342,28 +228,29 @@ export class ShiftSelect {
|
|
|
342
228
|
"reflect": false,
|
|
343
229
|
"defaultValue": "''"
|
|
344
230
|
},
|
|
345
|
-
"
|
|
346
|
-
"type": "
|
|
347
|
-
"attribute": "
|
|
231
|
+
"name": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"attribute": "name",
|
|
348
234
|
"mutable": false,
|
|
349
235
|
"complexType": {
|
|
350
|
-
"original": "
|
|
351
|
-
"resolved": "
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string",
|
|
352
238
|
"references": {}
|
|
353
239
|
},
|
|
354
240
|
"required": false,
|
|
355
|
-
"optional":
|
|
241
|
+
"optional": false,
|
|
356
242
|
"docs": {
|
|
357
243
|
"tags": [],
|
|
358
244
|
"text": ""
|
|
359
245
|
},
|
|
360
246
|
"getter": false,
|
|
361
247
|
"setter": false,
|
|
362
|
-
"reflect": false
|
|
248
|
+
"reflect": false,
|
|
249
|
+
"defaultValue": "''"
|
|
363
250
|
},
|
|
364
|
-
"
|
|
251
|
+
"isError": {
|
|
365
252
|
"type": "boolean",
|
|
366
|
-
"attribute": "
|
|
253
|
+
"attribute": "is-error",
|
|
367
254
|
"mutable": false,
|
|
368
255
|
"complexType": {
|
|
369
256
|
"original": "boolean",
|
|
@@ -371,7 +258,7 @@ export class ShiftSelect {
|
|
|
371
258
|
"references": {}
|
|
372
259
|
},
|
|
373
260
|
"required": false,
|
|
374
|
-
"optional":
|
|
261
|
+
"optional": true,
|
|
375
262
|
"docs": {
|
|
376
263
|
"tags": [],
|
|
377
264
|
"text": ""
|
|
@@ -516,6 +403,26 @@ export class ShiftSelect {
|
|
|
516
403
|
"reflect": false,
|
|
517
404
|
"defaultValue": "false"
|
|
518
405
|
},
|
|
406
|
+
"searchable": {
|
|
407
|
+
"type": "boolean",
|
|
408
|
+
"attribute": "searchable",
|
|
409
|
+
"mutable": false,
|
|
410
|
+
"complexType": {
|
|
411
|
+
"original": "boolean",
|
|
412
|
+
"resolved": "boolean",
|
|
413
|
+
"references": {}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": true,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": ""
|
|
420
|
+
},
|
|
421
|
+
"getter": false,
|
|
422
|
+
"setter": false,
|
|
423
|
+
"reflect": false,
|
|
424
|
+
"defaultValue": "false"
|
|
425
|
+
},
|
|
519
426
|
"options": {
|
|
520
427
|
"type": "unknown",
|
|
521
428
|
"attribute": "options",
|
|
@@ -613,7 +520,7 @@ export class ShiftSelect {
|
|
|
613
520
|
}
|
|
614
521
|
}
|
|
615
522
|
},
|
|
616
|
-
"required":
|
|
523
|
+
"required": true,
|
|
617
524
|
"optional": false,
|
|
618
525
|
"docs": {
|
|
619
526
|
"tags": [],
|
|
@@ -650,8 +557,8 @@ export class ShiftSelect {
|
|
|
650
557
|
"attribute": "render-option",
|
|
651
558
|
"mutable": false,
|
|
652
559
|
"complexType": {
|
|
653
|
-
"original": "(option: FormSelectItem, isSelected) => any",
|
|
654
|
-
"resolved": "(option: FormSelectItem, isSelected:
|
|
560
|
+
"original": "(option: FormSelectItem, isSelected: boolean) => any",
|
|
561
|
+
"resolved": "(option: FormSelectItem, isSelected: boolean) => any",
|
|
655
562
|
"references": {
|
|
656
563
|
"FormSelectItem": {
|
|
657
564
|
"location": "global",
|
|
@@ -668,22 +575,22 @@ export class ShiftSelect {
|
|
|
668
575
|
"getter": false,
|
|
669
576
|
"setter": false
|
|
670
577
|
},
|
|
671
|
-
"
|
|
578
|
+
"updateContext": {
|
|
672
579
|
"type": "unknown",
|
|
673
|
-
"attribute": "
|
|
580
|
+
"attribute": "update-context",
|
|
674
581
|
"mutable": false,
|
|
675
582
|
"complexType": {
|
|
676
|
-
"original": "(
|
|
677
|
-
"resolved": "(
|
|
583
|
+
"original": "(newValues: Partial<{ isOpen: boolean; searchValue: string; selectedValue: string }>) => void",
|
|
584
|
+
"resolved": "(newValues: Partial<{ isOpen: boolean; searchValue: string; selectedValue: string; }>) => void",
|
|
678
585
|
"references": {
|
|
679
|
-
"
|
|
586
|
+
"Partial": {
|
|
680
587
|
"location": "global",
|
|
681
|
-
"id": "global::
|
|
588
|
+
"id": "global::Partial"
|
|
682
589
|
}
|
|
683
590
|
}
|
|
684
591
|
},
|
|
685
|
-
"required":
|
|
686
|
-
"optional":
|
|
592
|
+
"required": true,
|
|
593
|
+
"optional": false,
|
|
687
594
|
"docs": {
|
|
688
595
|
"tags": [],
|
|
689
596
|
"text": ""
|
|
@@ -691,22 +598,22 @@ export class ShiftSelect {
|
|
|
691
598
|
"getter": false,
|
|
692
599
|
"setter": false
|
|
693
600
|
},
|
|
694
|
-
"
|
|
601
|
+
"fullRenderOption": {
|
|
695
602
|
"type": "unknown",
|
|
696
|
-
"attribute": "
|
|
603
|
+
"attribute": "full-render-option",
|
|
697
604
|
"mutable": false,
|
|
698
605
|
"complexType": {
|
|
699
|
-
"original": "(
|
|
700
|
-
"resolved": "(
|
|
606
|
+
"original": "(option: FormSelectItem, isSelected: boolean, handleSelection: (option: FormSelectItem) => void) => any",
|
|
607
|
+
"resolved": "(option: FormSelectItem, isSelected: boolean, handleSelection: (option: FormSelectItem) => void) => any",
|
|
701
608
|
"references": {
|
|
702
|
-
"
|
|
609
|
+
"FormSelectItem": {
|
|
703
610
|
"location": "global",
|
|
704
|
-
"id": "global::
|
|
611
|
+
"id": "global::FormSelectItem"
|
|
705
612
|
}
|
|
706
613
|
}
|
|
707
614
|
},
|
|
708
615
|
"required": false,
|
|
709
|
-
"optional":
|
|
616
|
+
"optional": true,
|
|
710
617
|
"docs": {
|
|
711
618
|
"tags": [],
|
|
712
619
|
"text": ""
|
|
@@ -718,7 +625,7 @@ export class ShiftSelect {
|
|
|
718
625
|
}
|
|
719
626
|
static get states() {
|
|
720
627
|
return {
|
|
721
|
-
"
|
|
628
|
+
"dropdownAncestorClasses": {}
|
|
722
629
|
};
|
|
723
630
|
}
|
|
724
631
|
static get elementRef() { return "el"; }
|
|
@@ -22,7 +22,7 @@ export class ShiftSlider {
|
|
|
22
22
|
this.flexibleContainerRef.stopAnimation = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '397213055ce52dc719cb6fdb86c40c87ce0e1b18', translate: "no" }, h("flexible-container", { key: '40e2ca466424bc148cf141196e36b40fccaac62f', stopAnimation: true, classes: "relative" }, this.components.map((listElement, idx) => (h("div", { class: cn('w-full transition !duration-1000', 'element-number-' + idx, {
|
|
26
26
|
'opacity-0 absolute top-0 !pointer-events-none [&_*]:!pointer-events-none': this.activeIndex !== idx,
|
|
27
27
|
'translate-x-[110%]': this.activeIndex < idx,
|
|
28
28
|
'-translate-x-[110%]': this.activeIndex > idx,
|
|
@@ -15,7 +15,7 @@ export class ShiftSwitch {
|
|
|
15
15
|
return this.inputRef.checked;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'e4f6023057aa7424cbab3355432a81fe87590ea1', translate: "no" }, h("label", { key: 'd5a04311e4277ec506a7d67f96a90b2cf1c32020', part: "shift-checkbox", class: cn('relative flex items-center cursor-pointer select-none', { 'opacity-75 cursor-default': this.disabled }) }, h("input", { key: '048f29e9353bcd70bf279b4ea7faffb28cd933c8', type: "checkbox", value: "true", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.onChange, class: "shift-checkbox peer hidden" }), h("div", { key: 'a06df4b712843212b09a24012ce94158a3bb1ecd', class: "relative w-[50px] h-[24px] rounded-full border-2 border-blue-300 bg-blue-100 peer-checked:bg-blue-500 peer-checked:[&_div]:translate-x-[28px] peer-checked:border-blue-500 transition-colors duration-300" }, h("div", { key: 'f215c885dd85038a329446b6e58a195803dc4d0f', class: "absolute top-[-2px] left-[-2px] size-[24px] rounded-full bg-white shadow-md transition-all duration-300 peer-checked:bg-blue-500" })), h("span", { key: 'ab1c17ebab61aa808136c1d2bac087cc1205f727', class: "ms-2 text-gray-700" }, this.label))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "shift-switch"; }
|
|
21
21
|
static get originalStyleUrls() {
|