adp-web-components 0.1.84 → 0.1.86
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 +7 -7
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/form-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/form-dialog_13.cjs.entry.js +4568 -40
- package/dist/cjs/{form-input-CfVsbpFP.js → form-input-cvIkC0L1.js} +1 -1
- package/dist/cjs/form-input_5.cjs.entry.js +356 -0
- package/dist/cjs/form-switch.cjs.entry.js +4 -4
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/functions-D5J5cdK2.js +298 -0
- package/dist/cjs/general-form.cjs.entry.js +19 -20
- package/dist/cjs/general-inquiry-form.cjs.entry.js +19 -20
- package/dist/cjs/{get-language-from-url-DoohcPbK.js → get-language-from-url-Ct6kvnEu.js} +8 -5
- package/dist/cjs/{get-local-language-zK9ue0lN.js → get-local-language-CWfRQqOw.js} +1 -1
- package/dist/cjs/{get-mock-files-DRVrAMed.js → get-mock-files-DG4Nk29D.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/{state-object-CX8v4Go5.js → mappers-C82gH1dw.js} +1 -11
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +19 -20
- package/dist/cjs/shift-checkbox.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +12 -12
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +19 -20
- package/dist/cjs/test-drive-form.cjs.entry.js +19 -20
- package/dist/cjs/{validation-BAHdEc4w.js → validation-jJwLyk27.js} +1 -7
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +19 -19
- package/dist/cjs/vehicle-lookup.cjs.entry.js +4 -4
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +17 -27
- package/dist/cjs/{white-loader-kSznMo_u.js → white-loader-D6sR0fOI.js} +3 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/components/empty.css +1 -1
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-checkbox.js +1 -1
- package/dist/collection/components/components/shift-select.css +1 -0
- package/dist/collection/components/components/shift-select.js +568 -0
- 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.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/components/form-input-prefix.js +3 -1
- 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 +130 -30
- package/dist/collection/components/form-elements/form-picker-input.js +2 -2
- package/dist/collection/components/form-elements/form-select.js +12 -73
- 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-structure.js +1 -1
- 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/mappers.js +1 -7
- package/dist/collection/components/forms/defaults/style.css +1 -1
- package/dist/collection/components/forms/defaults/validation.js +1 -7
- package/dist/collection/components/forms/general-form.js +4 -6
- package/dist/collection/components/forms/general-inquiry.js +4 -6
- package/dist/collection/components/forms/service-booking.js +4 -6
- package/dist/collection/components/forms/ssc-lookup.js +4 -6
- package/dist/collection/components/forms/test-drive.js +4 -6
- package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +1 -8
- package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation/validations.js +0 -5
- package/dist/collection/components/forms/vehicle-quotation.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +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.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +1 -1
- 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-lookup.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +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 +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +8 -5
- package/dist/collection/features/form-hook/functions.js +0 -1
- package/dist/collection/features/form-hook/phone-validator.js +1 -41
- 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-04wNXJ_q.js +5 -0
- package/dist/components/p-4n_cgPjf.js +5 -0
- package/dist/components/p-8XSbLgc1.js +5 -0
- package/dist/components/p-B8X9IaVO.js +5 -0
- package/dist/components/p-BDgNqOMe.js +5 -0
- package/dist/components/p-BFxBL1n-.js +5 -0
- package/dist/components/p-BUnCuQVo.js +5 -0
- package/dist/components/p-BV90NnNh.js +5 -0
- package/dist/components/p-BY5Ji84D.js +5 -0
- package/dist/components/{p-CNzel4L2.js → p-BgttkHzs.js} +1 -1
- package/dist/components/p-Bk0lC2Er.js +5 -0
- package/dist/components/p-C2TMzq3P.js +5 -0
- package/dist/components/p-C5obPa8c.js +5 -0
- package/dist/components/{p-BgC7TfjM.js → p-CAvWNw8_.js} +1 -1
- package/dist/components/{p-B9DO0698.js → p-CHjkTvcK.js} +1 -1
- package/dist/components/p-CJbV4CRN.js +5 -0
- package/dist/components/p-CKWUV8sc.js +5 -0
- package/dist/components/p-CO0Weo2C.js +5 -0
- package/dist/components/p-CQ1pe5_N.js +5 -0
- package/dist/components/p-CSltLdDZ.js +5 -0
- package/dist/components/p-CVP-Kfuq.js +5 -0
- package/dist/components/p-CX0MCoJm.js +5 -0
- package/dist/components/p-CZPaKPho.js +5 -0
- package/dist/components/p-CxL9hBt2.js +5 -0
- package/dist/components/p-D1sSrUE7.js +5 -0
- package/dist/components/p-D5Vp16LE.js +5 -0
- package/dist/components/p-DAOx9Qnb.js +5 -0
- package/dist/components/p-DEniRp-Y.js +5 -0
- package/dist/components/p-DNT9N8sa.js +5 -0
- package/dist/components/p-DdJblbUj.js +5 -0
- package/dist/components/{p-BV8ZkPEF.js → p-DqaISuxu.js} +1 -1
- package/dist/components/p-E1MRBxpY.js +5 -0
- package/dist/components/p-EVz2SQxD.js +5 -0
- package/dist/components/p-KlUIwQJ_.js +5 -0
- package/dist/components/p-NC__PzEk.js +5 -0
- package/dist/components/p-OMoAsmX4.js +5 -0
- package/dist/components/p-R9s5HIai.js +5 -0
- package/dist/components/p-Rs-gwVEC.js +5 -0
- package/dist/components/p-Toqpa7YK.js +5 -0
- package/dist/components/p-ZTF1sGMh.js +5 -0
- package/dist/components/p-ajNVZbZb.js +5 -0
- package/dist/components/p-lM8Wndby.js +5 -0
- package/dist/components/p-nzjwgyi2.js +5 -0
- package/dist/components/p-rgNGWak-.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-select.d.ts +11 -0
- package/dist/components/shift-select.js +5 -0
- 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 +7 -7
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +4 -4
- package/dist/esm/form-date-picker.entry.js +5 -5
- package/dist/esm/form-dialog_13.entry.js +4569 -41
- package/dist/esm/{form-input-BZhw7_xV.js → form-input-Dcr-Pd8b.js} +1 -1
- package/dist/esm/form-input_5.entry.js +350 -0
- package/dist/esm/form-switch.entry.js +4 -4
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/functions-DtSiZ2w7.js +287 -0
- package/dist/esm/general-form.entry.js +10 -11
- package/dist/esm/general-inquiry-form.entry.js +10 -11
- package/dist/esm/{get-language-from-url-X9X1Ax8Z.js → get-language-from-url-C-Rb5RW0.js} +8 -5
- package/dist/esm/{get-local-language-CDB3-v5P.js → get-local-language-TggqJhkD.js} +1 -1
- package/dist/esm/{get-mock-files-CaGwKZM4.js → get-mock-files-CqnoWX3h.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/{state-object-YMqxT3DF.js → mappers-Bk5UgY3t.js} +2 -11
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +10 -11
- package/dist/esm/shift-checkbox.entry.js +2 -2
- package/dist/esm/shift-components.js +1 -1
- 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 +1 -1
- package/dist/esm/shift-tabs_2.entry.js +12 -12
- package/dist/esm/ssc-lookup-form.entry.js +10 -11
- package/dist/esm/test-drive-form.entry.js +10 -11
- package/dist/esm/{validation-DI1MnYKr.js → validation-oieVWBn1.js} +1 -7
- package/dist/esm/vehicle-accessories_7.entry.js +19 -19
- package/dist/esm/vehicle-lookup.entry.js +4 -4
- package/dist/esm/vehicle-quotation-form.entry.js +8 -18
- package/dist/esm/{white-loader-CG4JPVdv.js → white-loader-DG6pqLQw.js} +3 -1
- package/dist/mocks/generated/broker-dealer/part-lookup.json +127 -0
- package/dist/mocks/generated/broker-dealer/vehicle-lookup.json +275 -0
- package/dist/shift-components/p-0f6a4a2c.entry.js +5 -0
- package/dist/shift-components/p-1c18a25e.entry.js +5 -0
- package/dist/shift-components/p-29cb1041.entry.js +5 -0
- package/dist/shift-components/p-3123d3fd.entry.js +5 -0
- package/dist/shift-components/p-411f777f.entry.js +5 -0
- package/dist/shift-components/{p-3d1e5f22.entry.js → p-5ce126f7.entry.js} +1 -1
- package/dist/shift-components/p-5db9ae4b.entry.js +5 -0
- package/dist/shift-components/p-800d78fe.entry.js +5 -0
- package/dist/shift-components/p-8882ac0f.entry.js +5 -0
- package/dist/shift-components/{p-BJJ8dVwO.js → p-B8VkFyfR.js} +1 -1
- package/dist/shift-components/p-BuurMgGN.js +5 -0
- package/dist/shift-components/{p-Be3Jd2wI.js → p-Bvk_2TgY.js} +1 -1
- package/dist/shift-components/p-DQUCHNJ-.js +5 -0
- package/dist/shift-components/p-DlOwT0yg.js +5 -0
- package/dist/shift-components/{p-DT8y6uYH.js → p-EubhneKo.js} +1 -1
- package/dist/shift-components/p-YbxvNbN5.js +5 -0
- package/dist/shift-components/p-a4abc248.entry.js +5 -0
- package/dist/shift-components/p-a9f6c258.entry.js +5 -0
- package/dist/shift-components/p-adb7282c.entry.js +5 -0
- package/dist/shift-components/p-b6518621.entry.js +5 -0
- package/dist/shift-components/p-ca014643.entry.js +5 -0
- package/dist/shift-components/p-cc033f27.entry.js +5 -0
- package/dist/shift-components/p-ccb80e4d.entry.js +5 -0
- package/dist/shift-components/p-cf23180a.entry.js +5 -0
- 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-df8df3ab.entry.js +5 -0
- package/dist/shift-components/{p-76fe6d18.entry.js → p-e225d38c.entry.js} +1 -1
- package/dist/shift-components/p-e3252106.entry.js +5 -0
- package/dist/shift-components/p-f6b6e66e.entry.js +5 -0
- package/dist/shift-components/p-f6f9027f.entry.js +5 -0
- 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 +41 -0
- package/dist/types/components/form-elements/form-phone-number.d.ts +19 -3
- package/dist/types/components/form-elements/form-select.d.ts +3 -9
- package/dist/types/components/forms/defaults/mappers.d.ts +1 -1
- package/dist/types/components/forms/defaults/validation.d.ts +1 -3
- package/dist/types/components/forms/vehicle-quotation/element-mapper.d.ts +2 -3
- package/dist/types/components/forms/vehicle-quotation/validations.d.ts +3 -3
- package/dist/types/components.d.ts +123 -4
- package/dist/types/features/form-hook/interface.d.ts +1 -0
- package/dist/types/features/form-hook/phone-validator.d.ts +1 -2
- package/package.json +1 -1
- package/dist/cjs/form-input_4.cjs.entry.js +0 -319
- package/dist/cjs/phone-validator-Bi9emAzR.js +0 -4791
- package/dist/collection/components/forms/defaults/state-object.js +0 -5
- package/dist/components/p-3U517ERo.js +0 -5
- package/dist/components/p-9SYAxR5D.js +0 -5
- package/dist/components/p-B0MhGaG1.js +0 -5
- package/dist/components/p-B9pETmLI.js +0 -5
- package/dist/components/p-BJu-gvWT.js +0 -5
- package/dist/components/p-BSODiZ3e.js +0 -5
- package/dist/components/p-BYlmz8H8.js +0 -5
- package/dist/components/p-BaXSdgrz.js +0 -5
- package/dist/components/p-BbYlJcJL.js +0 -5
- package/dist/components/p-BbZZSs2z.js +0 -5
- package/dist/components/p-Be6aBWtX.js +0 -5
- package/dist/components/p-Bru6COhI.js +0 -5
- package/dist/components/p-BxeKiQ5h.js +0 -5
- package/dist/components/p-C0-JyFe2.js +0 -5
- package/dist/components/p-CDynFOo9.js +0 -5
- package/dist/components/p-CRB1QtlE.js +0 -5
- package/dist/components/p-CRuaQMX0.js +0 -5
- package/dist/components/p-CnzWHmTp.js +0 -5
- package/dist/components/p-Cr6RxvjN.js +0 -5
- package/dist/components/p-CvwANsMG.js +0 -5
- package/dist/components/p-D6G60Qle.js +0 -5
- package/dist/components/p-DNwpXqOm.js +0 -5
- package/dist/components/p-DYdL_Qjt.js +0 -5
- package/dist/components/p-D_aPhtf6.js +0 -5
- package/dist/components/p-DaR1VHdR.js +0 -5
- package/dist/components/p-DqPjMHKd.js +0 -5
- package/dist/components/p-DrRm2GeC.js +0 -5
- package/dist/components/p-JZv7UYk_.js +0 -5
- package/dist/components/p-MW_RDlUT.js +0 -5
- package/dist/components/p-Sl_Dlac0.js +0 -5
- package/dist/components/p-V4RS2bVl.js +0 -5
- package/dist/components/p-d53FlScY.js +0 -5
- package/dist/components/p-jy9nZx0Y.js +0 -5
- package/dist/components/p-l6FwCuo4.js +0 -5
- package/dist/components/p-nSzOFNku.js +0 -5
- package/dist/components/p-okkx_Dxf.js +0 -5
- package/dist/components/p-pgyBiEEk.js +0 -5
- package/dist/components/p-uERtY6Fc.js +0 -5
- package/dist/components/p-zPFPWP-C.js +0 -5
- package/dist/esm/form-input_4.entry.js +0 -314
- package/dist/esm/phone-validator-BtVkeXq8.js +0 -4779
- package/dist/shift-components/p-11d17669.entry.js +0 -5
- package/dist/shift-components/p-19ed338d.entry.js +0 -5
- package/dist/shift-components/p-3058431e.entry.js +0 -5
- package/dist/shift-components/p-342d0174.entry.js +0 -5
- package/dist/shift-components/p-3c9fc400.entry.js +0 -5
- package/dist/shift-components/p-3e83654e.entry.js +0 -5
- package/dist/shift-components/p-54f0635f.entry.js +0 -5
- package/dist/shift-components/p-58b67b80.entry.js +0 -5
- package/dist/shift-components/p-60e77a30.entry.js +0 -5
- package/dist/shift-components/p-676836bc.entry.js +0 -5
- package/dist/shift-components/p-73d4e1db.entry.js +0 -5
- package/dist/shift-components/p-78ebd5aa.entry.js +0 -5
- package/dist/shift-components/p-7PtHUjhE.js +0 -5
- package/dist/shift-components/p-7fd11913.entry.js +0 -5
- package/dist/shift-components/p-B1_PA5hq.js +0 -5
- package/dist/shift-components/p-CIoBnd96.js +0 -5
- package/dist/shift-components/p-CN6bh2lr.js +0 -5
- package/dist/shift-components/p-Cm_2J53u.js +0 -5
- package/dist/shift-components/p-b7ccfb5d.entry.js +0 -5
- package/dist/shift-components/p-c35b5c7e.entry.js +0 -5
- package/dist/shift-components/p-cdea798f.entry.js +0 -5
- package/dist/shift-components/p-e1994b6f.entry.js +0 -5
- package/dist/shift-components/p-e2ced3b0.entry.js +0 -5
- package/dist/shift-components/p-e42c0a58.entry.js +0 -5
- package/dist/shift-components/p-f4dbe8aa.entry.js +0 -5
- package/dist/shift-components/p-fb4a3ba5.entry.js +0 -5
- package/dist/shift-components/p-fe87b5dc.entry.js +0 -5
- package/dist/types/components/forms/defaults/state-object.d.ts +0 -6
|
@@ -16,7 +16,7 @@ export class ShiftCheckbox {
|
|
|
16
16
|
return this.inputRef.checked;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '1b0695ab21e84a255edd876af5b55943ee755f13', translate: "no" }, h("label", { key: 'b8a796467521f4e628dafec2bd053c4ed6e93791', part: "shift-checkbox", class: cn('relative flex items-center cursor-pointer select-none', { 'opacity-75 cursor-default': this.disabled }) }, h("input", { key: '4ebf3e8bece7a580dcb49f97320971416332fa52', type: "checkbox", value: "true", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.onChange, class: "shift-checkbox peer hidden" }), h("span", { key: 'bccc0b223e30d0233736002bcf1175dacb1a4c72', class: "relative size-[22px] rounded-[6px] flex items-center justify-center text-transparent peer-checked:text-white [&_.check-icon]:scale-0 peer-checked:[&_.check-icon]:scale-100 transition bg-transparent !duration-300 border-2 peer-checked:bg-blue-500 border-gray-400 peer-checked:border-blue-500 overflow-hidden" }, h(CheckIcon, { key: '5b114a9ab2d84c5984e0c7bff7757e9ae23ea9ae', class: "check-icon transition !duration-300 stroke-[3px]" })), h("span", { key: 'b581e9663db8269a8a6d7ddfde0f5826d63a0fe6', class: "ms-2 text-gray-700" }, this.label))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "shift-checkbox"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1 @@
|
|
|
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}.block{display:block}.flex{display:flex}.min-w-\[30px\]{min-width:30px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.capitalize{text-transform:capitalize}.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}.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}.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%}.\!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}.mx-auto{margin-left:auto;margin-right:auto}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mt-\[32px\]{margin-top:32px}.inline-flex{display:inline-flex}.h-\[50px\]{height:50px}.w-fit{width:fit-content}.max-w-full{max-width:100%}.flex-wrap{flex-wrap:wrap}.items-stretch{align-items:stretch}.gap-\[8px\]{gap:8px}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-\[\#f6f6f6\]{--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-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}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\[16px\]{font-size:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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))}.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}.me-1{margin-inline-end:.25rem}.mb-\[12px\]{margin-bottom:12px}.w-\[500px\]{width:500px}.max-w-\[250px\]{max-width:250px}.max-w-\[96vw\]{max-width:96vw}.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)}
|
|
@@ -0,0 +1,568 @@
|
|
|
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
|
+
import { ArrowUpIcon } from "../../global/assets/arrow-up-icon";
|
|
10
|
+
import { AddIcon } from "../../global/assets/add-icon";
|
|
11
|
+
export class ShiftSelect {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.hasTick = true;
|
|
14
|
+
this.hasArrow = true;
|
|
15
|
+
this.searchValue = '';
|
|
16
|
+
this.isOpen = false;
|
|
17
|
+
this.selectedValue = '';
|
|
18
|
+
this.clearable = false;
|
|
19
|
+
this.options = [];
|
|
20
|
+
this.reverseOptions = false;
|
|
21
|
+
this.forceOpenUpwards = false;
|
|
22
|
+
this.openUpwards = false;
|
|
23
|
+
this.toggleDropdown = () => {
|
|
24
|
+
if (this.isOpen && !this.searchable)
|
|
25
|
+
this.updateContext({ isOpen: false });
|
|
26
|
+
else
|
|
27
|
+
this.adjustDropdownPosition();
|
|
28
|
+
};
|
|
29
|
+
this.closeDropdown = (event) => {
|
|
30
|
+
if (!this.el.contains(event.target)) {
|
|
31
|
+
this.updateContext({ isOpen: false });
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
this.handleResize = () => {
|
|
35
|
+
if (this.isOpen) {
|
|
36
|
+
this.adjustDropdownPosition();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
this.onSearchInput = (event) => {
|
|
40
|
+
const target = event.target;
|
|
41
|
+
this.updateContext({ searchValue: target.value, selectedValue: '' });
|
|
42
|
+
};
|
|
43
|
+
this.clearInput = () => {
|
|
44
|
+
this.updateContext({ searchValue: '', selectedValue: '' });
|
|
45
|
+
const selectButton = this.el.getElementsByClassName('form-input-select')[0];
|
|
46
|
+
selectButton.focus();
|
|
47
|
+
if (!this.isOpen)
|
|
48
|
+
this.adjustDropdownPosition();
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
async componentDidLoad() {
|
|
52
|
+
document.addEventListener('click', this.closeDropdown);
|
|
53
|
+
document.addEventListener('keydown', this.handleKeyDown.bind(this));
|
|
54
|
+
window.addEventListener('resize', this.handleResize);
|
|
55
|
+
}
|
|
56
|
+
adjustDropdownPosition() {
|
|
57
|
+
requestAnimationFrame(() => {
|
|
58
|
+
const selectButton = this.el.getElementsByClassName('form-input-select')[0];
|
|
59
|
+
const selectContainer = this.el.getElementsByClassName('form-select-container')[0];
|
|
60
|
+
const rect = selectButton.getBoundingClientRect();
|
|
61
|
+
const spaceBelow = window.innerHeight - rect.bottom - 20; // 20 is padding
|
|
62
|
+
this.openUpwards = spaceBelow < selectContainer.getBoundingClientRect().height || this.forceOpenUpwards;
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
this.updateContext({ isOpen: true });
|
|
65
|
+
}, 10);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
handleKeyDown(event) {
|
|
69
|
+
if (!this.isOpen)
|
|
70
|
+
return;
|
|
71
|
+
if (event.key === 'Escape') {
|
|
72
|
+
this.updateContext({ isOpen: false });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async disconnectedCallback() {
|
|
76
|
+
document.removeEventListener('click', this.closeDropdown);
|
|
77
|
+
document.removeEventListener('keydown', this.handleKeyDown.bind(this));
|
|
78
|
+
window.removeEventListener('resize', this.handleResize);
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
const selectedItem = this.options.find(item => this.selectedValue === item.value);
|
|
82
|
+
return (h(Host, { key: '08bf24aa2d919f5ce28dac3f0cd3c14879d86049', translate: "no" }, h("div", { key: '672d7685dc79f8738e4846d07db52a9dff63bc6e', part: `${this.name}-container form-input-container`, class: cn('form-input-container', { open: this.isOpen, disabled: this.disableInput, disableInput: this.disableInput }) }, h("slot", { key: '6cb72636e64d578009e1ddd3598f61aaa8bfaa0c' }), h("input", { key: '0fed4953de58ec04f6ef3f9ca512f8a25f1bc87b', 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', {
|
|
83
|
+
'form-input-error-style': this.isError,
|
|
84
|
+
}) }), h("div", { key: 'e1388edd8279196614712aed3529f5901a22720c', 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("div", { key: '7dd018430bd09e03f3d45b400e61cbbe4b9a4d3c', part: cn(`${this.name}-select-container form-select-container`, {
|
|
85
|
+
'form-select-container-upwards': this.openUpwards || this.forceOpenUpwards,
|
|
86
|
+
'form-select-container-downwards': !this.openUpwards && !this.forceOpenUpwards,
|
|
87
|
+
}), class: cn('form-select-container', {
|
|
88
|
+
upwards: this.openUpwards || this.forceOpenUpwards,
|
|
89
|
+
downwards: !this.openUpwards && !this.forceOpenUpwards,
|
|
90
|
+
}) }, !!this.options.length &&
|
|
91
|
+
(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: cn(`${this.name}-select-option form-select-option`, { 'form-select-option-selected': this.selectedValue === option.value }), onClick: () => this.handleSelection(option), class: cn('form-select-option', {
|
|
92
|
+
selected: this.selectedValue === option.value,
|
|
93
|
+
}) }, this.renderOption ? (this.renderOption(option, this.selectedValue === option.value)) : (h("div", { part: `${this.name}-select-option-label form-select-option-label`, class: "form-select-option-label" }, option.label)), this.hasTick && h(TickIcon, { part: `${this.name}-tick-icon`, class: "form-select-option-tick" })))), !this.options.length && (h("div", { key: '9fe470cfa70e1e544c4816b06a78d617fb702f6a', part: `${this.name}-select-empty-container form-select-empty-container`, class: cn('form-select-empty-container', { error: this.fetchingErrorText }) }, this.fetchingErrorText, !this.fetchingErrorText &&
|
|
94
|
+
(this.isLoading ? h("img", { part: `${this.name}-select-spinner form-select-spinner`, class: "form-select-spinner", src: Loader }) : this.noSelectionText)))))));
|
|
95
|
+
}
|
|
96
|
+
static get is() { return "shift-select"; }
|
|
97
|
+
static get originalStyleUrls() {
|
|
98
|
+
return {
|
|
99
|
+
"$": ["shift-select.css"]
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
static get styleUrls() {
|
|
103
|
+
return {
|
|
104
|
+
"$": ["shift-select.css"]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static get properties() {
|
|
108
|
+
return {
|
|
109
|
+
"name": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"attribute": "name",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
126
|
+
"reflect": false
|
|
127
|
+
},
|
|
128
|
+
"hasTick": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"attribute": "has-tick",
|
|
131
|
+
"mutable": false,
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "boolean",
|
|
134
|
+
"resolved": "boolean",
|
|
135
|
+
"references": {}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": ""
|
|
142
|
+
},
|
|
143
|
+
"getter": false,
|
|
144
|
+
"setter": false,
|
|
145
|
+
"reflect": false,
|
|
146
|
+
"defaultValue": "true"
|
|
147
|
+
},
|
|
148
|
+
"hasArrow": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"attribute": "has-arrow",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "boolean",
|
|
154
|
+
"resolved": "boolean",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": ""
|
|
162
|
+
},
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false,
|
|
165
|
+
"reflect": false,
|
|
166
|
+
"defaultValue": "true"
|
|
167
|
+
},
|
|
168
|
+
"searchValue": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"attribute": "search-value",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "string",
|
|
174
|
+
"resolved": "string",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": ""
|
|
182
|
+
},
|
|
183
|
+
"getter": false,
|
|
184
|
+
"setter": false,
|
|
185
|
+
"reflect": false,
|
|
186
|
+
"defaultValue": "''"
|
|
187
|
+
},
|
|
188
|
+
"isError": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"attribute": "is-error",
|
|
191
|
+
"mutable": false,
|
|
192
|
+
"complexType": {
|
|
193
|
+
"original": "boolean",
|
|
194
|
+
"resolved": "boolean",
|
|
195
|
+
"references": {}
|
|
196
|
+
},
|
|
197
|
+
"required": false,
|
|
198
|
+
"optional": true,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"getter": false,
|
|
204
|
+
"setter": false,
|
|
205
|
+
"reflect": false
|
|
206
|
+
},
|
|
207
|
+
"searchable": {
|
|
208
|
+
"type": "boolean",
|
|
209
|
+
"attribute": "searchable",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "boolean",
|
|
213
|
+
"resolved": "boolean",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"getter": false,
|
|
223
|
+
"setter": false,
|
|
224
|
+
"reflect": false
|
|
225
|
+
},
|
|
226
|
+
"isLoading": {
|
|
227
|
+
"type": "boolean",
|
|
228
|
+
"attribute": "is-loading",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "boolean",
|
|
232
|
+
"resolved": "boolean",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": true,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"getter": false,
|
|
242
|
+
"setter": false,
|
|
243
|
+
"reflect": false
|
|
244
|
+
},
|
|
245
|
+
"placeholder": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"attribute": "placeholder",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "string",
|
|
251
|
+
"resolved": "string",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": true,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [],
|
|
258
|
+
"text": ""
|
|
259
|
+
},
|
|
260
|
+
"getter": false,
|
|
261
|
+
"setter": false,
|
|
262
|
+
"reflect": false
|
|
263
|
+
},
|
|
264
|
+
"disableInput": {
|
|
265
|
+
"type": "boolean",
|
|
266
|
+
"attribute": "disable-input",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "boolean",
|
|
270
|
+
"resolved": "boolean",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": true,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": ""
|
|
278
|
+
},
|
|
279
|
+
"getter": false,
|
|
280
|
+
"setter": false,
|
|
281
|
+
"reflect": false
|
|
282
|
+
},
|
|
283
|
+
"isOpen": {
|
|
284
|
+
"type": "boolean",
|
|
285
|
+
"attribute": "is-open",
|
|
286
|
+
"mutable": false,
|
|
287
|
+
"complexType": {
|
|
288
|
+
"original": "boolean",
|
|
289
|
+
"resolved": "boolean",
|
|
290
|
+
"references": {}
|
|
291
|
+
},
|
|
292
|
+
"required": false,
|
|
293
|
+
"optional": false,
|
|
294
|
+
"docs": {
|
|
295
|
+
"tags": [],
|
|
296
|
+
"text": ""
|
|
297
|
+
},
|
|
298
|
+
"getter": false,
|
|
299
|
+
"setter": false,
|
|
300
|
+
"reflect": false,
|
|
301
|
+
"defaultValue": "false"
|
|
302
|
+
},
|
|
303
|
+
"noSelectionText": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"attribute": "no-selection-text",
|
|
306
|
+
"mutable": false,
|
|
307
|
+
"complexType": {
|
|
308
|
+
"original": "string",
|
|
309
|
+
"resolved": "string",
|
|
310
|
+
"references": {}
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"optional": true,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [],
|
|
316
|
+
"text": ""
|
|
317
|
+
},
|
|
318
|
+
"getter": false,
|
|
319
|
+
"setter": false,
|
|
320
|
+
"reflect": false
|
|
321
|
+
},
|
|
322
|
+
"selectedValue": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"attribute": "selected-value",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "string",
|
|
328
|
+
"resolved": "string",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": ""
|
|
336
|
+
},
|
|
337
|
+
"getter": false,
|
|
338
|
+
"setter": false,
|
|
339
|
+
"reflect": false,
|
|
340
|
+
"defaultValue": "''"
|
|
341
|
+
},
|
|
342
|
+
"clearable": {
|
|
343
|
+
"type": "boolean",
|
|
344
|
+
"attribute": "clearable",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "boolean",
|
|
348
|
+
"resolved": "boolean",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": true,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": ""
|
|
356
|
+
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
359
|
+
"reflect": false,
|
|
360
|
+
"defaultValue": "false"
|
|
361
|
+
},
|
|
362
|
+
"options": {
|
|
363
|
+
"type": "unknown",
|
|
364
|
+
"attribute": "options",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "FormSelectItem[]",
|
|
368
|
+
"resolved": "FormSelectItem[]",
|
|
369
|
+
"references": {
|
|
370
|
+
"FormSelectItem": {
|
|
371
|
+
"location": "global",
|
|
372
|
+
"id": "global::FormSelectItem"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": ""
|
|
381
|
+
},
|
|
382
|
+
"getter": false,
|
|
383
|
+
"setter": false,
|
|
384
|
+
"defaultValue": "[]"
|
|
385
|
+
},
|
|
386
|
+
"reverseOptions": {
|
|
387
|
+
"type": "boolean",
|
|
388
|
+
"attribute": "reverse-options",
|
|
389
|
+
"mutable": false,
|
|
390
|
+
"complexType": {
|
|
391
|
+
"original": "boolean",
|
|
392
|
+
"resolved": "boolean",
|
|
393
|
+
"references": {}
|
|
394
|
+
},
|
|
395
|
+
"required": false,
|
|
396
|
+
"optional": true,
|
|
397
|
+
"docs": {
|
|
398
|
+
"tags": [],
|
|
399
|
+
"text": ""
|
|
400
|
+
},
|
|
401
|
+
"getter": false,
|
|
402
|
+
"setter": false,
|
|
403
|
+
"reflect": false,
|
|
404
|
+
"defaultValue": "false"
|
|
405
|
+
},
|
|
406
|
+
"forceOpenUpwards": {
|
|
407
|
+
"type": "boolean",
|
|
408
|
+
"attribute": "force-open-upwards",
|
|
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
|
+
},
|
|
426
|
+
"fetchingErrorText": {
|
|
427
|
+
"type": "any",
|
|
428
|
+
"attribute": "fetching-error-text",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "string | boolean",
|
|
432
|
+
"resolved": "boolean | string",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": true,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"text": ""
|
|
440
|
+
},
|
|
441
|
+
"getter": false,
|
|
442
|
+
"setter": false,
|
|
443
|
+
"reflect": false
|
|
444
|
+
},
|
|
445
|
+
"handleSelection": {
|
|
446
|
+
"type": "unknown",
|
|
447
|
+
"attribute": "handle-selection",
|
|
448
|
+
"mutable": false,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "(option: FormSelectItem) => void",
|
|
451
|
+
"resolved": "(option: FormSelectItem) => void",
|
|
452
|
+
"references": {
|
|
453
|
+
"FormSelectItem": {
|
|
454
|
+
"location": "global",
|
|
455
|
+
"id": "global::FormSelectItem"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"required": false,
|
|
460
|
+
"optional": false,
|
|
461
|
+
"docs": {
|
|
462
|
+
"tags": [],
|
|
463
|
+
"text": ""
|
|
464
|
+
},
|
|
465
|
+
"getter": false,
|
|
466
|
+
"setter": false
|
|
467
|
+
},
|
|
468
|
+
"onSelection": {
|
|
469
|
+
"type": "unknown",
|
|
470
|
+
"attribute": "on-selection",
|
|
471
|
+
"mutable": false,
|
|
472
|
+
"complexType": {
|
|
473
|
+
"original": "(newSelection: FormSelectItem) => void",
|
|
474
|
+
"resolved": "(newSelection: FormSelectItem) => void",
|
|
475
|
+
"references": {
|
|
476
|
+
"FormSelectItem": {
|
|
477
|
+
"location": "global",
|
|
478
|
+
"id": "global::FormSelectItem"
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
"required": false,
|
|
483
|
+
"optional": true,
|
|
484
|
+
"docs": {
|
|
485
|
+
"tags": [],
|
|
486
|
+
"text": ""
|
|
487
|
+
},
|
|
488
|
+
"getter": false,
|
|
489
|
+
"setter": false
|
|
490
|
+
},
|
|
491
|
+
"renderOption": {
|
|
492
|
+
"type": "unknown",
|
|
493
|
+
"attribute": "render-option",
|
|
494
|
+
"mutable": false,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "(option: FormSelectItem, isSelected) => any",
|
|
497
|
+
"resolved": "(option: FormSelectItem, isSelected: any) => any",
|
|
498
|
+
"references": {
|
|
499
|
+
"FormSelectItem": {
|
|
500
|
+
"location": "global",
|
|
501
|
+
"id": "global::FormSelectItem"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": true,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": ""
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false
|
|
513
|
+
},
|
|
514
|
+
"fullRenderOption": {
|
|
515
|
+
"type": "unknown",
|
|
516
|
+
"attribute": "full-render-option",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "(option: FormSelectItem, isSelected, handleSelection) => any",
|
|
520
|
+
"resolved": "(option: FormSelectItem, isSelected: any, handleSelection: any) => any",
|
|
521
|
+
"references": {
|
|
522
|
+
"FormSelectItem": {
|
|
523
|
+
"location": "global",
|
|
524
|
+
"id": "global::FormSelectItem"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"required": false,
|
|
529
|
+
"optional": true,
|
|
530
|
+
"docs": {
|
|
531
|
+
"tags": [],
|
|
532
|
+
"text": ""
|
|
533
|
+
},
|
|
534
|
+
"getter": false,
|
|
535
|
+
"setter": false
|
|
536
|
+
},
|
|
537
|
+
"updateContext": {
|
|
538
|
+
"type": "unknown",
|
|
539
|
+
"attribute": "update-context",
|
|
540
|
+
"mutable": false,
|
|
541
|
+
"complexType": {
|
|
542
|
+
"original": "(newValues: Partial<{ isOpen: boolean; searchValue: string; selectedValue: string }>) => void",
|
|
543
|
+
"resolved": "(newValues: Partial<{ isOpen: boolean; searchValue: string; selectedValue: string; }>) => void",
|
|
544
|
+
"references": {
|
|
545
|
+
"Partial": {
|
|
546
|
+
"location": "global",
|
|
547
|
+
"id": "global::Partial"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"required": false,
|
|
552
|
+
"optional": false,
|
|
553
|
+
"docs": {
|
|
554
|
+
"tags": [],
|
|
555
|
+
"text": ""
|
|
556
|
+
},
|
|
557
|
+
"getter": false,
|
|
558
|
+
"setter": false
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
static get states() {
|
|
563
|
+
return {
|
|
564
|
+
"openUpwards": {}
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
static get elementRef() { return "el"; }
|
|
568
|
+
}
|
|
@@ -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: 'bb296cbb3e8ca2d23bdfde378220cbfd9f7fcb43', translate: "no" }, h("flexible-container", { key: '488fc550280ac1e0f44c56dbccd0aefaca7d3c1b', 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: '6eb3154f4ffe47e44490566d3832fe63038cc9fa', translate: "no" }, h("label", { key: '3893c7b0dec68b954174bfc38e8fad5cc097f353', part: "shift-checkbox", class: cn('relative flex items-center cursor-pointer select-none', { 'opacity-75 cursor-default': this.disabled }) }, h("input", { key: '05248f71415c5fcb08968929dbd488b6c7002d2e', type: "checkbox", value: "true", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.onChange, class: "shift-checkbox peer hidden" }), h("div", { key: '2a3a617a43b9b637c0b2b3e8c1b50cf233bb5960', 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: 'a7bc307e2892c7addd7422844ebb92f9fef7bbac', 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: '3c0a20cf788a1368451e6d872702afece834ab26', class: "ms-2 text-gray-700" }, this.label))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "shift-switch"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -22,7 +22,7 @@ export class ShiftTabContent {
|
|
|
22
22
|
newElement.classList.add('slide-content-in');
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'fb05a73f2ff6d3260b7caeeaeaa79bc990a90a21', translate: "no" }, h("flexible-container", { key: '939e63dfb225498d98d9e8cec42f03d4b51d7a88' }, Object.entries(this.components).map(([componentName, component]) => (h("div", { onAnimationEnd: () => this.clearAnimationClasses(componentName), class: cn('!w-full transition !duration-0', `tab-${componentName}`, {
|
|
26
26
|
'absolute opacity-0 top-0 !pointer-events-none [&_*]:!pointer-events-none translate-x-[-200%] translate-y-[200%]': componentName !== this.activeComponent,
|
|
27
27
|
}) }, component))))));
|
|
28
28
|
}
|