adp-web-components 0.1.91 → 0.1.92
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 +33 -40
- package/dist/cjs/form-input_5.cjs.entry.js +356 -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-b8tFLJfq.js → functions-BcBbkzL6.js} +1 -1
- package/dist/cjs/general-form.cjs.entry.js +4 -4
- package/dist/cjs/general-inquiry-form.cjs.entry.js +4 -4
- package/dist/cjs/{get-local-language-DNAZjtmK.js → get-local-language-sCkc_K_8.js} +1 -1
- package/dist/cjs/{get-mock-files-B3F99_oV.js → get-mock-files-DGMAbyvT.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.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 +4 -4
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-slider.cjs.entry.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/shift-tabs_2.cjs.entry.js +12 -12
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +4 -4
- package/dist/cjs/test-drive-form.cjs.entry.js +4 -4
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +22 -22
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +4 -4
- package/dist/cjs/{white-loader-Ca6EPcsj.js → white-loader-D6sR0fOI.js} +4 -0
- package/dist/collection/collection-manifest.json +3 -5
- 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/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-select.css +1 -1
- package/dist/collection/components/components/shift-select.js +79 -143
- 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.css +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 +1 -7
- 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/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.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.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- 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/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/p-4n_cgPjf.js +5 -0
- package/dist/components/{p-8XSbLgc1.js → p-7KuxV1pj.js} +1 -1
- package/dist/components/{p-BaAv91r7.js → p-B2H-izCC.js} +1 -1
- package/dist/components/{p-CGyBRij0.js → p-BC7pYSay.js} +1 -1
- package/dist/components/p-BDgNqOMe.js +5 -0
- package/dist/components/p-BFxBL1n-.js +5 -0
- package/dist/components/{p--anxcjtN.js → p-B_1QNRA2.js} +1 -1
- package/dist/components/{p-DbZXHOdd.js → p-B_7bdsor.js} +1 -1
- package/dist/components/{p-CSITVd7T.js → p-Bsn8rxcC.js} +1 -1
- package/dist/components/{p-hPoTeCL3.js → p-BwZofSQu.js} +1 -1
- package/dist/components/p-C2TMzq3P.js +5 -0
- package/dist/components/p-C5obPa8c.js +5 -0
- package/dist/components/p-C7i1JVaS.js +5 -0
- package/dist/components/p-CJbV4CRN.js +5 -0
- package/dist/components/{p-Cj5IMvmY.js → p-COH94uX-.js} +1 -1
- package/dist/components/p-CSltLdDZ.js +5 -0
- package/dist/{shift-components/p-Di5DPSdR.js → components/p-Cic_1puI.js} +1 -1
- package/dist/components/{p-D0Kv9fuX.js → p-Co98OoE3.js} +1 -1
- package/dist/components/p-Cpb0OzSF.js +5 -0
- package/dist/components/{p-Bu-zIHAI.js → p-CsuBjpjo.js} +1 -1
- package/dist/components/{p-DB8VkFjT.js → p-CwgDa5sB.js} +1 -1
- package/dist/components/p-D5Vp16LE.js +5 -0
- package/dist/components/{p-C44H0Rnu.js → p-DDX5q2Fm.js} +1 -1
- package/dist/components/{p-Dsdar5Wr.js → p-DNKJ9Gpf.js} +1 -1
- package/dist/components/{p-BXXhyo8T.js → p-Dc4u6eoB.js} +1 -1
- package/dist/components/p-DhG0_3DF.js +5 -0
- package/dist/components/{p-CK23iS-3.js → p-DucZQVtB.js} +1 -1
- package/dist/components/p-E1MRBxpY.js +5 -0
- package/dist/components/p-EVz2SQxD.js +5 -0
- package/dist/components/{p-c3X39K7X.js → p-KcQy9v5A.js} +1 -1
- package/dist/components/{p-Ca4tNXFJ.js → p-KlUIwQJ_.js} +1 -1
- package/dist/components/p-NC__PzEk.js +5 -0
- package/dist/components/{p-BM4tew8G.js → p-PRgsmV2e.js} +1 -1
- package/dist/components/{p-VbjDlhNs.js → p-Rs-gwVEC.js} +1 -1
- package/dist/components/p-Toqpa7YK.js +5 -0
- package/dist/components/{p-C2hvMeLJ.js → p-ZTF1sGMh.js} +1 -1
- package/dist/components/p-c7yLxgPd.js +5 -0
- package/dist/components/p-nzjwgyi2.js +5 -0
- package/dist/components/p-rgNGWak-.js +5 -0
- package/dist/components/p-z4-2WE8c.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-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 +33 -40
- package/dist/esm/form-input_5.entry.js +350 -0
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/{functions-ChlnhZY4.js → functions-D3wFeBqU.js} +1 -1
- package/dist/esm/general-form.entry.js +4 -4
- package/dist/esm/general-inquiry-form.entry.js +4 -4
- package/dist/esm/{get-local-language-DkHdgkup.js → get-local-language-BW8rAVV4.js} +1 -1
- package/dist/esm/{get-mock-files-BsX01omE.js → get-mock-files-DxorS6dV.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.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 +4 -4
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-slider.entry.js +1 -1
- package/dist/esm/shift-switch.entry.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +2 -2
- package/dist/esm/shift-tabs_2.entry.js +12 -12
- package/dist/esm/ssc-lookup-form.entry.js +4 -4
- package/dist/esm/test-drive-form.entry.js +4 -4
- package/dist/esm/vehicle-accessories_7.entry.js +22 -22
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +4 -4
- package/dist/esm/{white-loader-r3AUTEZM.js → white-loader-DG6pqLQw.js} +4 -1
- package/dist/shift-components/{p-d26301cf.entry.js → p-1370b8bc.entry.js} +1 -1
- package/dist/shift-components/{p-9f270488.entry.js → p-199f09f8.entry.js} +1 -1
- package/dist/shift-components/p-1c18a25e.entry.js +5 -0
- package/dist/shift-components/{p-a4abc248.entry.js → p-20eb5ff0.entry.js} +1 -1
- package/dist/shift-components/{p-b37bf318.entry.js → p-317faf0a.entry.js} +1 -1
- package/dist/shift-components/{p-a7bb4ec2.entry.js → p-346813c8.entry.js} +1 -1
- package/dist/shift-components/{p-8a641004.entry.js → p-488c83a1.entry.js} +1 -1
- package/dist/shift-components/{p-32f402bb.entry.js → p-92a9c9a3.entry.js} +1 -1
- package/dist/shift-components/{p-c0e734ef.entry.js → p-989f276b.entry.js} +1 -1
- package/dist/{components/p-iv-7fJhX.js → shift-components/p-B_A35oZ8.js} +1 -1
- package/dist/shift-components/{p-c5JXmb7U.js → p-CCGkMsCL.js} +1 -1
- package/dist/shift-components/{p-BMKSfYIH.js → p-D4LrXE7s.js} +1 -1
- package/dist/shift-components/{p-22d9da03.entry.js → p-acac5d36.entry.js} +1 -1
- package/dist/shift-components/p-aecc3391.entry.js +5 -0
- package/dist/shift-components/{p-141add0d.entry.js → p-c282daf5.entry.js} +1 -1
- package/dist/shift-components/p-cf23180a.entry.js +5 -0
- package/dist/shift-components/{p-f199867c.entry.js → p-d167df2f.entry.js} +1 -1
- package/dist/shift-components/p-d6619b20.entry.js +5 -0
- package/dist/shift-components/p-d6dfb9bd.entry.js +5 -0
- package/dist/shift-components/p-db6d5662.entry.js +5 -0
- package/dist/shift-components/{p-d7bcd6e3.entry.js → p-df495b4c.entry.js} +1 -1
- package/dist/shift-components/{p-e6ab3eb6.entry.js → p-e3252106.entry.js} +1 -1
- package/dist/shift-components/{p-a9a7db2b.entry.js → p-e6d12b88.entry.js} +1 -1
- package/dist/shift-components/{p-56ed2239.entry.js → p-e7c16fa8.entry.js} +1 -1
- package/dist/shift-components/{p-5d8a2df9.entry.js → p-f29f1105.entry.js} +1 -1
- package/dist/shift-components/p-f6b6e66e.entry.js +5 -0
- package/dist/shift-components/{p-6dc0119d.entry.js → p-f6f9027f.entry.js} +1 -1
- package/dist/shift-components/p-veklgezh.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/shift-select.d.ts +6 -14
- package/dist/types/components.d.ts +7 -147
- package/package.json +1 -1
- package/dist/cjs/form-input_6.cjs.entry.js +0 -482
- package/dist/cjs/shift-select-dropdown.cjs.entry.js +0 -51
- package/dist/cjs/tick-icon-5nsAUzj6.js +0 -12
- package/dist/collection/components/components/shift-portal.css +0 -1
- package/dist/collection/components/components/shift-portal.js +0 -124
- package/dist/collection/components/components/shift-select-dropdown.css +0 -1
- package/dist/collection/components/components/shift-select-dropdown.js +0 -355
- package/dist/collection/global/lib/get-custom-classes-for-portal.js +0 -41
- package/dist/components/p-7zVWuLAq.js +0 -5
- package/dist/components/p-B-Wb2O9M.js +0 -5
- package/dist/components/p-BUS2YqxZ.js +0 -5
- package/dist/components/p-BX94Wv8p.js +0 -5
- package/dist/components/p-BXMyUNO3.js +0 -5
- package/dist/components/p-BkQCx7i0.js +0 -5
- package/dist/components/p-BqR8Ws-B.js +0 -5
- package/dist/components/p-BxnICZU9.js +0 -5
- package/dist/components/p-CMcJt0YF.js +0 -5
- package/dist/components/p-CNZcXdUu.js +0 -5
- package/dist/components/p-CPXxiK6w.js +0 -5
- package/dist/components/p-CR6lda7Y.js +0 -5
- package/dist/components/p-D7BV0VvA.js +0 -5
- package/dist/components/p-DHCNR72p.js +0 -5
- package/dist/components/p-Dh4Zl2o6.js +0 -5
- package/dist/components/p-Mcvs6zfL.js +0 -5
- package/dist/components/p-UPh8uhqc.js +0 -5
- package/dist/components/p-XpRw_7oy.js +0 -5
- package/dist/components/p-ZtVXd0tH.js +0 -5
- package/dist/components/p-ydh-g5_d.js +0 -5
- package/dist/components/shift-portal.d.ts +0 -11
- package/dist/components/shift-portal.js +0 -5
- package/dist/components/shift-select-dropdown.d.ts +0 -11
- package/dist/components/shift-select-dropdown.js +0 -5
- package/dist/esm/form-input_6.entry.js +0 -475
- package/dist/esm/shift-select-dropdown.entry.js +0 -49
- package/dist/esm/tick-icon-Dbjn6jAI.js +0 -10
- package/dist/shift-components/p-0680a239.entry.js +0 -5
- package/dist/shift-components/p-1dbffda3.entry.js +0 -5
- package/dist/shift-components/p-2ca566ae.entry.js +0 -5
- package/dist/shift-components/p-2cc056e3.entry.js +0 -5
- package/dist/shift-components/p-528b17c9.entry.js +0 -5
- package/dist/shift-components/p-675dd4e6.entry.js +0 -5
- package/dist/shift-components/p-679edab6.entry.js +0 -5
- package/dist/shift-components/p-CqxKslQ7.js +0 -5
- package/dist/shift-components/p-Cu7M4VEk.js +0 -5
- package/dist/shift-components/p-ed19150f.entry.js +0 -5
- package/dist/types/components/components/shift-portal.d.ts +0 -11
- package/dist/types/components/components/shift-select-dropdown.d.ts +0 -21
- package/dist/types/global/lib/get-custom-classes-for-portal.d.ts +0 -1
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
var index = require('./index-CmK48vN3.js');
|
|
8
|
-
var cn = require('./cn-BHnqYtun.js');
|
|
9
|
-
var loader = require('./loader-jtAYWeFG.js');
|
|
10
|
-
var tickIcon = require('./tick-icon-5nsAUzj6.js');
|
|
11
|
-
|
|
12
|
-
const shiftSelectDropdownCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.z-\\[551\\]{z-index:551}.block{display:block}.flex{display:flex}.hidden{display:none}.\\!size-\\[22px\\]{height:22px!important;width:22px!important}.size-5{height:1.25rem;width:1.25rem}.h-\\[100px\\]{height:100px}.max-h-\\[250px\\]{max-height:250px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:.375rem}.border{border-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-start{text-align:start}.capitalize{text-transform:capitalize}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}:host{all:initial!important;display:block;font-family:inherit!important;font-family:Noto Kufi Arabic,Nunito,Roboto,Arial,sans-serif!important}*,:host *{font-family:inherit!important}.shift-select-container{--tw-bg-opacity:1;--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;flex-direction:column;left:var(--shift-select-left,0);max-height:250px;opacity:0;overflow:auto;pointer-events:none;position:fixed;top:var(--shift-select-top,0);transition-duration:.3s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--shift-select-width,auto);z-index:551}.shift-select-container-open{opacity:1;pointer-events:auto}.shift-select-option{align-items:center;display:flex;justify-content:space-between;padding:.5rem 1rem;text-align:start}.shift-select-option:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.shift-select-option-selected{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.shift-select-option-tick{height:1.25rem;opacity:0;transition-duration:.3s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.shift-select-option-tick-selected{opacity:1}.shift-select-empty-container{align-items:center;display:flex;height:100px;justify-content:center}.shift-select-empty-container-error{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}@keyframes spin-animation{to{transform:rotate(1turn)}}.shift-select-spinner{animation:spin-animation 2s linear infinite;height:22px!important;width:22px!important}.phone-country-selection-select-container{width:200px!important}.custom-shift-select-country-option{background:transparent;display:flex;flex-direction:row;gap:8px;overflow:hidden}.shift-select-country-code-label{display:block;min-width:30px;text-transform:capitalize}.static{position:static}";
|
|
13
|
-
|
|
14
|
-
const ShiftSelectDropdown = class {
|
|
15
|
-
constructor(hostRef) {
|
|
16
|
-
index.registerInstance(this, hostRef);
|
|
17
|
-
this.hasTick = true;
|
|
18
|
-
this.hasArrow = true;
|
|
19
|
-
this.name = '';
|
|
20
|
-
this.isOpen = false;
|
|
21
|
-
this.selectedValue = '';
|
|
22
|
-
this.options = [];
|
|
23
|
-
this.reverseOptions = false;
|
|
24
|
-
this.containerEl = null;
|
|
25
|
-
}
|
|
26
|
-
componentDidLoad() {
|
|
27
|
-
var _a;
|
|
28
|
-
(_a = this.setElementRef) === null || _a === void 0 ? void 0 : _a.call(this, this.containerEl);
|
|
29
|
-
}
|
|
30
|
-
disconnectedCallback() {
|
|
31
|
-
var _a;
|
|
32
|
-
(_a = this.setElementRef) === null || _a === void 0 ? void 0 : _a.call(this, null);
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
const containerIdentifiers = cn.cn(`${this.name}-select-container shift-select-container`, {
|
|
36
|
-
'shift-select-container-open': this.isOpen,
|
|
37
|
-
});
|
|
38
|
-
const selectButtonIdentifiers = (option) => cn.cn(`${this.name}-select-option shift-select-option`, { 'shift-select-option-selected': this.selectedValue === option.value });
|
|
39
|
-
const tickIdentifiers = (option) => cn.cn(`${this.name}-tick-icon shift-select-option-tick`, {
|
|
40
|
-
'shift-select-option-tick-selected': this.selectedValue === option.value,
|
|
41
|
-
});
|
|
42
|
-
const emptyContainerIdentifier = cn.cn(`${this.name}-select-empty-container shift-select-empty-container`, { 'shift-select-empty-container-error': this.fetchingErrorText });
|
|
43
|
-
const spinnerIdentifiers = cn.cn(`${this.name}-select-spinner shift-select-spinner`);
|
|
44
|
-
const optionLabelIdentifier = cn.cn(`${this.name}-select-option-label shift-select-option-label`);
|
|
45
|
-
return (index.h(index.Host, { key: '2fe679acd490412150dfa2c7d77acf37cde5e5a4' }, index.h("div", { key: '291b72ea5945821740dc9c9fe40b2b5c65a1ac86', onWheel: e => e.stopPropagation(), onTouchMove: e => e.stopPropagation(), ref: el => (this.containerEl = el), part: containerIdentifiers, class: containerIdentifiers }, !!this.options.length &&
|
|
46
|
-
(this.reverseOptions ? [...this.options].reverse() : this.options).map(option => this.fullRenderOption ? (this.fullRenderOption(option, this.selectedValue === option.value, this.handleSelection)) : (index.h("button", { type: "button", part: selectButtonIdentifiers(option), class: selectButtonIdentifiers(option), onClick: () => this.handleSelection(option) }, this.renderOption ? (this.renderOption(option, this.selectedValue === option.value)) : (index.h("div", { part: optionLabelIdentifier, class: optionLabelIdentifier }, option.label)), this.hasTick && index.h(tickIcon.TickIcon, { part: tickIdentifiers(option), class: tickIdentifiers(option) })))), !this.options.length && (index.h("div", { key: 'eba47101554f4834deac006521f2124c8f503c32', part: emptyContainerIdentifier, class: emptyContainerIdentifier }, this.fetchingErrorText, !this.fetchingErrorText && (this.isLoading ? index.h("img", { part: spinnerIdentifiers, class: spinnerIdentifiers, src: loader.loaderSvg }) : this.noSelectionText))))));
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
ShiftSelectDropdown.style = shiftSelectDropdownCss;
|
|
50
|
-
|
|
51
|
-
exports.shift_select_dropdown = ShiftSelectDropdown;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
var index = require('./index-CmK48vN3.js');
|
|
8
|
-
|
|
9
|
-
const TickIcon = props => (index.h("svg", Object.assign({ fill: "none", "stroke-width": "2", viewBox: "0 0 24 24" }, props, { stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
10
|
-
index.h("path", { d: "M20 6 9 17l-5-5" })));
|
|
11
|
-
|
|
12
|
-
exports.TickIcon = TickIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.static{position:static}.relative{position:relative}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.cursor-pointer{cursor:pointer}.resize{resize:both}.block{display:block}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hidden{display:none}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.flex{display:flex}.h-full{height:100%}.min-h-\[150px\]{min-height:150px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.\!h-auto{height:auto!important}.min-w-full{min-width:100%}.overflow-hidden{overflow:hidden}.\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\!duration-0{transition-duration:0s!important}.\!duration-500{transition-duration:.5s!important}.fixed{position:fixed}.bottom-4{bottom:1rem}.left-1\/2{left:50%}.z-10{z-index:10}.z-\[9999\]{z-index:9999}.aspect-video{aspect-ratio:16/9}.size-8{height:2rem;width:2rem}.size-\[32px\]{height:32px;width:32px}.size-full{height:100%;width:100%}.h-\[100dvh\]{height:100dvh}.h-\[60px\]{height:60px}.min-h-full{min-height:100%}.w-\[100dvw\]{width:100dvw}.w-\[100px\]{width:100px}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-spin{animation:spin 1s linear infinite}.justify-between{justify-content:space-between}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-slate-500{--tw-border-opacity:1;border-color:rgb(100 116 139/var(--tw-border-opacity,1))}.border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/30{background-color:rgba(0,0,0,.3)}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.object-cover{object-fit:cover}.object-center{object-position:center}.p-1{padding:.25rem}.p-\[16px\]{padding:16px}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.hover\:border-slate-700:hover{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.hover\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.hover\:text-slate-700:hover{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.disabled\:bg-white\/75:disabled{background-color:hsla(0,0%,100%,.75)}@media (min-width:768px){.md\:relative{position:relative}.md\:h-auto{height:auto}.md\:w-\[600px\]{width:600px}.md\:\!translate-x-0{--tw-translate-x:0px!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.md\:overflow-hidden{overflow:hidden}.md\:rounded-lg{border-radius:.5rem}.md\:border-none{border-style:none}.md\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.md\:py-\[8px\]{padding-bottom:8px;padding-top:8px}.md\:text-\[24px\]{font-size:24px}.md\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.md\:\!opacity-100{opacity:1!important}.md\:transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.md\:duration-300{transition-duration:.3s}.md\:hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}}.h-\[200px\]{height:200px}.text-\[26px\]{font-size:26px}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.flex-col{flex-direction:column}.gap-\[16px\]{gap:16px}.pb-\[16px\]{padding-bottom:16px}.me-1{margin-inline-end:.25rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.inline-flex{display:inline-flex}.flex-wrap{flex-wrap:wrap}.items-stretch{align-items:stretch}.gap-\[8px\]{gap:8px}.overflow-auto{overflow:auto}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.p-\[2px\]{padding:2px}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\[16px\]{font-size:16px}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}@media (min-width:768px){.md\:justify-between{justify-content:space-between}}.\[\&\>div\]\:grow>div{flex-grow:1}.mx-auto{margin-left:auto;margin-right:auto}.me-2{margin-inline-end:.5rem}.mt-\[32px\]{margin-top:32px}.h-\[50px\]{height:50px}.w-fit{width:fit-content}.max-w-full{max-width:100%}.overflow-x-auto{overflow-x:auto}.bg-\[\#f6f6f6\]{--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity,1))}.px-\[16px\]{padding-left:16px;padding-right:16px}.font-bold{font-weight:700}.text-\[green\]{--tw-text-opacity:1;color:rgb(0 128 0/var(--tw-text-opacity,1))}.text-\[orange\]{--tw-text-opacity:1;color:rgb(255 165 0/var(--tw-text-opacity,1))}.text-\[red\]{--tw-text-opacity:1;color:rgb(255 0 0/var(--tw-text-opacity,1))}.mb-\[12px\]{margin-bottom:12px}.w-\[500px\]{width:500px}.max-w-\[250px\]{max-width:250px}.max-w-\[96vw\]{max-width:96vw}.gap-2{gap:.5rem}.gap-\[32px\]{gap:32px}.rounded-md{border-radius:.375rem}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.py-\[12px\]{padding-bottom:12px}.pt-\[12px\],.py-\[12px\]{padding-top:12px}.pt-\[32px\]{padding-top:32px}.pt-\[8px\]{padding-top:8px}.text-\[20px\]{font-size:20px}.text-xl{font-size:1.25rem;line-height:1.75rem}.even\:bg-slate-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:bg-sky-100\/50:hover{background-color:rgba(224,242,254,.5)}.\!pointer-events-none{pointer-events:none!important}.\!w-full{width:100%!important}.translate-x-\[-200\%\]{--tw-translate-x:-200%}.translate-x-\[-200\%\],.translate-y-\[200\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[200\%\]{--tw-translate-y:200%}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\[\&_\*\]\:\!pointer-events-none *{pointer-events:none!important}.my-auto{margin-bottom:auto;margin-top:auto}.grid{display:grid}.size-\[28px\]{height:28px;width:28px}.min-w-0{min-width:0}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.place-items-center{place-items:center}.rounded{border-radius:.25rem}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity,1))}.bg-sky-200{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity,1))}.bg-slate-200\/70{background-color:rgba(226,232,240,.7)}.px-\[12px\]{padding-left:12px;padding-right:12px}.px-\[6px\]{padding-left:6px;padding-right:6px}.px-\[8px\]{padding-left:8px;padding-right:8px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.text-\[13px\]{font-size:13px}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.last\:border-b-0:last-child{border-bottom-width:0}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-sky-200:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity,1))}.hover\:bg-slate-200\/70:hover{background-color:rgba(226,232,240,.7)}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
export class ShiftPortal {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.tag = '';
|
|
4
|
-
this.inheritedClasses = '';
|
|
5
|
-
this.componentProps = {};
|
|
6
|
-
this.portaledElement = null;
|
|
7
|
-
this.setComponentsParams = async () => {
|
|
8
|
-
var _a;
|
|
9
|
-
if (!this.portaledElement)
|
|
10
|
-
return;
|
|
11
|
-
this.portaledElement.className = this.inheritedClasses;
|
|
12
|
-
for (const [key, value] of Object.entries((_a = this.componentProps) !== null && _a !== void 0 ? _a : {})) {
|
|
13
|
-
this.portaledElement[key] = value;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
async updateComponentParams() {
|
|
18
|
-
await this.setComponentsParams();
|
|
19
|
-
}
|
|
20
|
-
async componentWillLoad() {
|
|
21
|
-
if (!this.tag)
|
|
22
|
-
return;
|
|
23
|
-
this.portaledElement = document.createElement(this.tag);
|
|
24
|
-
document.body.appendChild(this.portaledElement);
|
|
25
|
-
await this.setComponentsParams();
|
|
26
|
-
}
|
|
27
|
-
disconnectedCallback() {
|
|
28
|
-
if (this.portaledElement && this.portaledElement.parentNode) {
|
|
29
|
-
this.portaledElement.parentNode.removeChild(this.portaledElement);
|
|
30
|
-
}
|
|
31
|
-
this.portaledElement = null;
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
static get is() { return "shift-portal"; }
|
|
37
|
-
static get originalStyleUrls() {
|
|
38
|
-
return {
|
|
39
|
-
"$": ["shift-portal.css"]
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
static get styleUrls() {
|
|
43
|
-
return {
|
|
44
|
-
"$": ["shift-portal.css"]
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
static get properties() {
|
|
48
|
-
return {
|
|
49
|
-
"tag": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"attribute": "tag",
|
|
52
|
-
"mutable": false,
|
|
53
|
-
"complexType": {
|
|
54
|
-
"original": "string",
|
|
55
|
-
"resolved": "string",
|
|
56
|
-
"references": {}
|
|
57
|
-
},
|
|
58
|
-
"required": false,
|
|
59
|
-
"optional": false,
|
|
60
|
-
"docs": {
|
|
61
|
-
"tags": [],
|
|
62
|
-
"text": ""
|
|
63
|
-
},
|
|
64
|
-
"getter": false,
|
|
65
|
-
"setter": false,
|
|
66
|
-
"reflect": false,
|
|
67
|
-
"defaultValue": "''"
|
|
68
|
-
},
|
|
69
|
-
"inheritedClasses": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"attribute": "inherited-classes",
|
|
72
|
-
"mutable": false,
|
|
73
|
-
"complexType": {
|
|
74
|
-
"original": "string",
|
|
75
|
-
"resolved": "string",
|
|
76
|
-
"references": {}
|
|
77
|
-
},
|
|
78
|
-
"required": false,
|
|
79
|
-
"optional": false,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [],
|
|
82
|
-
"text": ""
|
|
83
|
-
},
|
|
84
|
-
"getter": false,
|
|
85
|
-
"setter": false,
|
|
86
|
-
"reflect": false,
|
|
87
|
-
"defaultValue": "''"
|
|
88
|
-
},
|
|
89
|
-
"componentProps": {
|
|
90
|
-
"type": "unknown",
|
|
91
|
-
"attribute": "component-props",
|
|
92
|
-
"mutable": false,
|
|
93
|
-
"complexType": {
|
|
94
|
-
"original": "Record<string, any>",
|
|
95
|
-
"resolved": "{ [x: string]: any; }",
|
|
96
|
-
"references": {
|
|
97
|
-
"Record": {
|
|
98
|
-
"location": "global",
|
|
99
|
-
"id": "global::Record"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"required": false,
|
|
104
|
-
"optional": false,
|
|
105
|
-
"docs": {
|
|
106
|
-
"tags": [],
|
|
107
|
-
"text": ""
|
|
108
|
-
},
|
|
109
|
-
"getter": false,
|
|
110
|
-
"setter": false,
|
|
111
|
-
"defaultValue": "{}"
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
static get watchers() {
|
|
116
|
-
return [{
|
|
117
|
-
"propName": "componentProps",
|
|
118
|
-
"methodName": "updateComponentParams"
|
|
119
|
-
}, {
|
|
120
|
-
"propName": "inheritedClasses",
|
|
121
|
-
"methodName": "updateComponentParams"
|
|
122
|
-
}];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.z-\[551\]{z-index:551}.block{display:block}.flex{display:flex}.hidden{display:none}.\!size-\[22px\]{height:22px!important;width:22px!important}.size-5{height:1.25rem;width:1.25rem}.h-\[100px\]{height:100px}.max-h-\[250px\]{max-height:250px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:.375rem}.border{border-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-start{text-align:start}.capitalize{text-transform:capitalize}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}:host{all:initial!important;display:block;font-family:inherit!important;font-family:Noto Kufi Arabic,Nunito,Roboto,Arial,sans-serif!important}*,:host *{font-family:inherit!important}.shift-select-container{--tw-bg-opacity:1;--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;flex-direction:column;left:var(--shift-select-left,0);max-height:250px;opacity:0;overflow:auto;pointer-events:none;position:fixed;top:var(--shift-select-top,0);transition-duration:.3s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--shift-select-width,auto);z-index:551}.shift-select-container-open{opacity:1;pointer-events:auto}.shift-select-option{align-items:center;display:flex;justify-content:space-between;padding:.5rem 1rem;text-align:start}.shift-select-option:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.shift-select-option-selected{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.shift-select-option-tick{height:1.25rem;opacity:0;transition-duration:.3s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1.25rem}.shift-select-option-tick-selected{opacity:1}.shift-select-empty-container{align-items:center;display:flex;height:100px;justify-content:center}.shift-select-empty-container-error{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}@keyframes spin-animation{to{transform:rotate(1turn)}}.shift-select-spinner{animation:spin-animation 2s linear infinite;height:22px!important;width:22px!important}.phone-country-selection-select-container{width:200px!important}.custom-shift-select-country-option{background:transparent;display:flex;flex-direction:row;gap:8px;overflow:hidden}.shift-select-country-code-label{display:block;min-width:30px;text-transform:capitalize}.static{position:static}
|
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import { Host, h } from "@stencil/core";
|
|
6
|
-
import cn from "../../global/lib/cn";
|
|
7
|
-
import Loader from "~assets/loader.svg";
|
|
8
|
-
import { TickIcon } from "../../global/assets/tick-icon";
|
|
9
|
-
export class ShiftSelectDropdown {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.hasTick = true;
|
|
12
|
-
this.hasArrow = true;
|
|
13
|
-
this.name = '';
|
|
14
|
-
this.isOpen = false;
|
|
15
|
-
this.selectedValue = '';
|
|
16
|
-
this.options = [];
|
|
17
|
-
this.reverseOptions = false;
|
|
18
|
-
this.containerEl = null;
|
|
19
|
-
}
|
|
20
|
-
componentDidLoad() {
|
|
21
|
-
var _a;
|
|
22
|
-
(_a = this.setElementRef) === null || _a === void 0 ? void 0 : _a.call(this, this.containerEl);
|
|
23
|
-
}
|
|
24
|
-
disconnectedCallback() {
|
|
25
|
-
var _a;
|
|
26
|
-
(_a = this.setElementRef) === null || _a === void 0 ? void 0 : _a.call(this, null);
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
const containerIdentifiers = cn(`${this.name}-select-container shift-select-container`, {
|
|
30
|
-
'shift-select-container-open': this.isOpen,
|
|
31
|
-
});
|
|
32
|
-
const selectButtonIdentifiers = (option) => cn(`${this.name}-select-option shift-select-option`, { 'shift-select-option-selected': this.selectedValue === option.value });
|
|
33
|
-
const tickIdentifiers = (option) => cn(`${this.name}-tick-icon shift-select-option-tick`, {
|
|
34
|
-
'shift-select-option-tick-selected': this.selectedValue === option.value,
|
|
35
|
-
});
|
|
36
|
-
const emptyContainerIdentifier = cn(`${this.name}-select-empty-container shift-select-empty-container`, { 'shift-select-empty-container-error': this.fetchingErrorText });
|
|
37
|
-
const spinnerIdentifiers = cn(`${this.name}-select-spinner shift-select-spinner`);
|
|
38
|
-
const optionLabelIdentifier = cn(`${this.name}-select-option-label shift-select-option-label`);
|
|
39
|
-
return (h(Host, { key: '2fe679acd490412150dfa2c7d77acf37cde5e5a4' }, h("div", { key: '291b72ea5945821740dc9c9fe40b2b5c65a1ac86', onWheel: e => e.stopPropagation(), onTouchMove: e => e.stopPropagation(), ref: el => (this.containerEl = el), part: containerIdentifiers, class: containerIdentifiers }, !!this.options.length &&
|
|
40
|
-
(this.reverseOptions ? [...this.options].reverse() : this.options).map(option => this.fullRenderOption ? (this.fullRenderOption(option, this.selectedValue === option.value, this.handleSelection)) : (h("button", { type: "button", part: selectButtonIdentifiers(option), class: selectButtonIdentifiers(option), onClick: () => this.handleSelection(option) }, this.renderOption ? (this.renderOption(option, this.selectedValue === option.value)) : (h("div", { part: optionLabelIdentifier, class: optionLabelIdentifier }, option.label)), this.hasTick && h(TickIcon, { part: tickIdentifiers(option), class: tickIdentifiers(option) })))), !this.options.length && (h("div", { key: 'eba47101554f4834deac006521f2124c8f503c32', part: emptyContainerIdentifier, class: emptyContainerIdentifier }, this.fetchingErrorText, !this.fetchingErrorText && (this.isLoading ? h("img", { part: spinnerIdentifiers, class: spinnerIdentifiers, src: Loader }) : this.noSelectionText))))));
|
|
41
|
-
}
|
|
42
|
-
static get is() { return "shift-select-dropdown"; }
|
|
43
|
-
static get encapsulation() { return "shadow"; }
|
|
44
|
-
static get originalStyleUrls() {
|
|
45
|
-
return {
|
|
46
|
-
"$": ["shift-select-dropdown.css"]
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
static get styleUrls() {
|
|
50
|
-
return {
|
|
51
|
-
"$": ["shift-select-dropdown.css"]
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
static get properties() {
|
|
55
|
-
return {
|
|
56
|
-
"hasTick": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"attribute": "has-tick",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "boolean",
|
|
62
|
-
"resolved": "boolean",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": ""
|
|
70
|
-
},
|
|
71
|
-
"getter": false,
|
|
72
|
-
"setter": false,
|
|
73
|
-
"reflect": false,
|
|
74
|
-
"defaultValue": "true"
|
|
75
|
-
},
|
|
76
|
-
"hasArrow": {
|
|
77
|
-
"type": "boolean",
|
|
78
|
-
"attribute": "has-arrow",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "boolean",
|
|
82
|
-
"resolved": "boolean",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": ""
|
|
90
|
-
},
|
|
91
|
-
"getter": false,
|
|
92
|
-
"setter": false,
|
|
93
|
-
"reflect": false,
|
|
94
|
-
"defaultValue": "true"
|
|
95
|
-
},
|
|
96
|
-
"name": {
|
|
97
|
-
"type": "string",
|
|
98
|
-
"attribute": "name",
|
|
99
|
-
"mutable": false,
|
|
100
|
-
"complexType": {
|
|
101
|
-
"original": "string",
|
|
102
|
-
"resolved": "string",
|
|
103
|
-
"references": {}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": true,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": ""
|
|
110
|
-
},
|
|
111
|
-
"getter": false,
|
|
112
|
-
"setter": false,
|
|
113
|
-
"reflect": false,
|
|
114
|
-
"defaultValue": "''"
|
|
115
|
-
},
|
|
116
|
-
"isLoading": {
|
|
117
|
-
"type": "boolean",
|
|
118
|
-
"attribute": "is-loading",
|
|
119
|
-
"mutable": false,
|
|
120
|
-
"complexType": {
|
|
121
|
-
"original": "boolean",
|
|
122
|
-
"resolved": "boolean",
|
|
123
|
-
"references": {}
|
|
124
|
-
},
|
|
125
|
-
"required": false,
|
|
126
|
-
"optional": true,
|
|
127
|
-
"docs": {
|
|
128
|
-
"tags": [],
|
|
129
|
-
"text": ""
|
|
130
|
-
},
|
|
131
|
-
"getter": false,
|
|
132
|
-
"setter": false,
|
|
133
|
-
"reflect": false
|
|
134
|
-
},
|
|
135
|
-
"isOpen": {
|
|
136
|
-
"type": "boolean",
|
|
137
|
-
"attribute": "is-open",
|
|
138
|
-
"mutable": false,
|
|
139
|
-
"complexType": {
|
|
140
|
-
"original": "boolean",
|
|
141
|
-
"resolved": "boolean",
|
|
142
|
-
"references": {}
|
|
143
|
-
},
|
|
144
|
-
"required": false,
|
|
145
|
-
"optional": false,
|
|
146
|
-
"docs": {
|
|
147
|
-
"tags": [],
|
|
148
|
-
"text": ""
|
|
149
|
-
},
|
|
150
|
-
"getter": false,
|
|
151
|
-
"setter": false,
|
|
152
|
-
"reflect": false,
|
|
153
|
-
"defaultValue": "false"
|
|
154
|
-
},
|
|
155
|
-
"noSelectionText": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"attribute": "no-selection-text",
|
|
158
|
-
"mutable": false,
|
|
159
|
-
"complexType": {
|
|
160
|
-
"original": "string",
|
|
161
|
-
"resolved": "string",
|
|
162
|
-
"references": {}
|
|
163
|
-
},
|
|
164
|
-
"required": false,
|
|
165
|
-
"optional": true,
|
|
166
|
-
"docs": {
|
|
167
|
-
"tags": [],
|
|
168
|
-
"text": ""
|
|
169
|
-
},
|
|
170
|
-
"getter": false,
|
|
171
|
-
"setter": false,
|
|
172
|
-
"reflect": false
|
|
173
|
-
},
|
|
174
|
-
"selectedValue": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"attribute": "selected-value",
|
|
177
|
-
"mutable": false,
|
|
178
|
-
"complexType": {
|
|
179
|
-
"original": "string",
|
|
180
|
-
"resolved": "string",
|
|
181
|
-
"references": {}
|
|
182
|
-
},
|
|
183
|
-
"required": false,
|
|
184
|
-
"optional": false,
|
|
185
|
-
"docs": {
|
|
186
|
-
"tags": [],
|
|
187
|
-
"text": ""
|
|
188
|
-
},
|
|
189
|
-
"getter": false,
|
|
190
|
-
"setter": false,
|
|
191
|
-
"reflect": false,
|
|
192
|
-
"defaultValue": "''"
|
|
193
|
-
},
|
|
194
|
-
"options": {
|
|
195
|
-
"type": "unknown",
|
|
196
|
-
"attribute": "options",
|
|
197
|
-
"mutable": false,
|
|
198
|
-
"complexType": {
|
|
199
|
-
"original": "FormSelectItem[]",
|
|
200
|
-
"resolved": "FormSelectItem[]",
|
|
201
|
-
"references": {
|
|
202
|
-
"FormSelectItem": {
|
|
203
|
-
"location": "import",
|
|
204
|
-
"path": "~features/form-hook",
|
|
205
|
-
"id": "src/features/form-hook/index.ts::FormSelectItem"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"required": false,
|
|
210
|
-
"optional": false,
|
|
211
|
-
"docs": {
|
|
212
|
-
"tags": [],
|
|
213
|
-
"text": ""
|
|
214
|
-
},
|
|
215
|
-
"getter": false,
|
|
216
|
-
"setter": false,
|
|
217
|
-
"defaultValue": "[]"
|
|
218
|
-
},
|
|
219
|
-
"reverseOptions": {
|
|
220
|
-
"type": "boolean",
|
|
221
|
-
"attribute": "reverse-options",
|
|
222
|
-
"mutable": false,
|
|
223
|
-
"complexType": {
|
|
224
|
-
"original": "boolean",
|
|
225
|
-
"resolved": "boolean",
|
|
226
|
-
"references": {}
|
|
227
|
-
},
|
|
228
|
-
"required": false,
|
|
229
|
-
"optional": false,
|
|
230
|
-
"docs": {
|
|
231
|
-
"tags": [],
|
|
232
|
-
"text": ""
|
|
233
|
-
},
|
|
234
|
-
"getter": false,
|
|
235
|
-
"setter": false,
|
|
236
|
-
"reflect": false,
|
|
237
|
-
"defaultValue": "false"
|
|
238
|
-
},
|
|
239
|
-
"fetchingErrorText": {
|
|
240
|
-
"type": "any",
|
|
241
|
-
"attribute": "fetching-error-text",
|
|
242
|
-
"mutable": false,
|
|
243
|
-
"complexType": {
|
|
244
|
-
"original": "string | boolean",
|
|
245
|
-
"resolved": "boolean | string",
|
|
246
|
-
"references": {}
|
|
247
|
-
},
|
|
248
|
-
"required": false,
|
|
249
|
-
"optional": true,
|
|
250
|
-
"docs": {
|
|
251
|
-
"tags": [],
|
|
252
|
-
"text": ""
|
|
253
|
-
},
|
|
254
|
-
"getter": false,
|
|
255
|
-
"setter": false,
|
|
256
|
-
"reflect": false
|
|
257
|
-
},
|
|
258
|
-
"setElementRef": {
|
|
259
|
-
"type": "unknown",
|
|
260
|
-
"attribute": "set-element-ref",
|
|
261
|
-
"mutable": false,
|
|
262
|
-
"complexType": {
|
|
263
|
-
"original": "(el: HTMLElement | null) => void",
|
|
264
|
-
"resolved": "(el: HTMLElement) => void",
|
|
265
|
-
"references": {
|
|
266
|
-
"HTMLElement": {
|
|
267
|
-
"location": "global",
|
|
268
|
-
"id": "global::HTMLElement"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
"required": false,
|
|
273
|
-
"optional": true,
|
|
274
|
-
"docs": {
|
|
275
|
-
"tags": [],
|
|
276
|
-
"text": ""
|
|
277
|
-
},
|
|
278
|
-
"getter": false,
|
|
279
|
-
"setter": false
|
|
280
|
-
},
|
|
281
|
-
"handleSelection": {
|
|
282
|
-
"type": "unknown",
|
|
283
|
-
"attribute": "handle-selection",
|
|
284
|
-
"mutable": false,
|
|
285
|
-
"complexType": {
|
|
286
|
-
"original": "(option: FormSelectItem) => void",
|
|
287
|
-
"resolved": "(option: FormSelectItem) => void",
|
|
288
|
-
"references": {
|
|
289
|
-
"FormSelectItem": {
|
|
290
|
-
"location": "import",
|
|
291
|
-
"path": "~features/form-hook",
|
|
292
|
-
"id": "src/features/form-hook/index.ts::FormSelectItem"
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
"required": true,
|
|
297
|
-
"optional": false,
|
|
298
|
-
"docs": {
|
|
299
|
-
"tags": [],
|
|
300
|
-
"text": ""
|
|
301
|
-
},
|
|
302
|
-
"getter": false,
|
|
303
|
-
"setter": false
|
|
304
|
-
},
|
|
305
|
-
"renderOption": {
|
|
306
|
-
"type": "unknown",
|
|
307
|
-
"attribute": "render-option",
|
|
308
|
-
"mutable": false,
|
|
309
|
-
"complexType": {
|
|
310
|
-
"original": "(option: FormSelectItem, isSelected: boolean) => any",
|
|
311
|
-
"resolved": "(option: FormSelectItem, isSelected: boolean) => any",
|
|
312
|
-
"references": {
|
|
313
|
-
"FormSelectItem": {
|
|
314
|
-
"location": "import",
|
|
315
|
-
"path": "~features/form-hook",
|
|
316
|
-
"id": "src/features/form-hook/index.ts::FormSelectItem"
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"required": false,
|
|
321
|
-
"optional": true,
|
|
322
|
-
"docs": {
|
|
323
|
-
"tags": [],
|
|
324
|
-
"text": ""
|
|
325
|
-
},
|
|
326
|
-
"getter": false,
|
|
327
|
-
"setter": false
|
|
328
|
-
},
|
|
329
|
-
"fullRenderOption": {
|
|
330
|
-
"type": "unknown",
|
|
331
|
-
"attribute": "full-render-option",
|
|
332
|
-
"mutable": false,
|
|
333
|
-
"complexType": {
|
|
334
|
-
"original": "(option: FormSelectItem, isSelected: boolean, handleSelection: (option: FormSelectItem) => void) => any",
|
|
335
|
-
"resolved": "(option: FormSelectItem, isSelected: boolean, handleSelection: (option: FormSelectItem) => void) => any",
|
|
336
|
-
"references": {
|
|
337
|
-
"FormSelectItem": {
|
|
338
|
-
"location": "import",
|
|
339
|
-
"path": "~features/form-hook",
|
|
340
|
-
"id": "src/features/form-hook/index.ts::FormSelectItem"
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
"required": false,
|
|
345
|
-
"optional": true,
|
|
346
|
-
"docs": {
|
|
347
|
-
"tags": [],
|
|
348
|
-
"text": ""
|
|
349
|
-
},
|
|
350
|
-
"getter": false,
|
|
351
|
-
"setter": false
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
const appendClasses = (currentValue, value) => {
|
|
6
|
-
if (value === null || value === void 0 ? void 0 : value.length)
|
|
7
|
-
return `${currentValue} ${Array.from(value).join(' ')}`;
|
|
8
|
-
return currentValue;
|
|
9
|
-
};
|
|
10
|
-
export default function getCustomClassesForPortal(element) {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
|
-
let current = element;
|
|
13
|
-
let finaleClass = '';
|
|
14
|
-
let foundHostParent = false;
|
|
15
|
-
while (current && !foundHostParent) {
|
|
16
|
-
const root = (_a = current.getRootNode) === null || _a === void 0 ? void 0 : _a.call(current);
|
|
17
|
-
if (((_b = current.part) === null || _b === void 0 ? void 0 : _b.contains('shift-form')) ||
|
|
18
|
-
((_c = current.classList) === null || _c === void 0 ? void 0 : _c.contains('shift-form')) ||
|
|
19
|
-
((_d = current.part) === null || _d === void 0 ? void 0 : _d.contains('shift-component')) ||
|
|
20
|
-
((_e = current.classList) === null || _e === void 0 ? void 0 : _e.contains('shift-component'))) {
|
|
21
|
-
finaleClass = appendClasses(finaleClass, (_f = current === null || current === void 0 ? void 0 : current.part) !== null && _f !== void 0 ? _f : null);
|
|
22
|
-
finaleClass = appendClasses(finaleClass, (_g = current === null || current === void 0 ? void 0 : current.classList) !== null && _g !== void 0 ? _g : null);
|
|
23
|
-
}
|
|
24
|
-
if (current.parentElement) {
|
|
25
|
-
current = current.parentElement;
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
if (root instanceof ShadowRoot) {
|
|
29
|
-
current = root.host;
|
|
30
|
-
if (!!finaleClass)
|
|
31
|
-
foundHostParent = true;
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
if (foundHostParent && current) {
|
|
37
|
-
finaleClass = appendClasses(finaleClass, (_h = current === null || current === void 0 ? void 0 : current.part) !== null && _h !== void 0 ? _h : null);
|
|
38
|
-
finaleClass = appendClasses(finaleClass, (_j = current === null || current === void 0 ? void 0 : current.classList) !== null && _j !== void 0 ? _j : null);
|
|
39
|
-
}
|
|
40
|
-
return finaleClass === null || finaleClass === void 0 ? void 0 : finaleClass.replaceAll(' ', ' ');
|
|
41
|
-
}
|