adp-web-components 0.3.19 → 0.3.21
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/{branch-slot-dropdown_15.cjs.entry.js → branch-date-dropdown_17.cjs.entry.js} +961 -70
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +9 -9
- package/dist/cjs/flexible-container.cjs.entry.js +3 -3
- 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-input_7.cjs.entry.js +19 -17
- 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-DL7oNhTD.js → functions-COlPGX7F.js} +44 -19
- package/dist/cjs/general-form.cjs.entry.js +6 -6
- package/dist/cjs/general-inquiry-form.cjs.entry.js +6 -6
- package/dist/cjs/{get-local-language-BuK1vyX4.js → get-local-language-rWhci9Es.js} +1 -1
- package/dist/cjs/{get-mock-files-D0TNQtTV.js → get-mock-files-Cceb_318.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 +2 -2
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +3 -3
- package/dist/cjs/{mappers-BlH-TAo7.js → mappers-DnWgECCv.js} +54 -18
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +6 -6
- package/dist/cjs/shift-accordion.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/shift-tabs_2.cjs.entry.js +10 -10
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +6 -6
- package/dist/cjs/test-drive-form.cjs.entry.js +6 -6
- package/dist/cjs/vehicle-accessories_8.cjs.entry.js +21 -21
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +17 -18
- package/dist/collection/collection-manifest.json +2 -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/flexible-container.js +2 -2
- 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/loading-spinner.js +1 -1
- package/dist/collection/components/components/shift-accordion.js +1 -1
- package/dist/collection/components/components/shift-checkbox.js +1 -1
- package/dist/collection/components/components/shift-portal.css +1 -1
- package/dist/collection/components/components/shift-select-dropdown.js +2 -2
- package/dist/collection/components/components/shift-select.js +3 -3
- 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/branch-date-dropdown.css +1 -0
- package/dist/collection/components/form-elements/branch-date-dropdown.js +682 -0
- package/dist/collection/components/form-elements/branch-date-picker.css +1 -0
- package/dist/collection/components/form-elements/branch-date-picker.js +1197 -0
- package/dist/collection/components/form-elements/branch-slot-dropdown.css +1 -1
- package/dist/collection/components/form-elements/branch-slot-dropdown.js +11 -6
- package/dist/collection/components/form-elements/branch-slot-picker.css +1 -1
- package/dist/collection/components/form-elements/branch-slot-picker.js +166 -18
- 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.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +1 -1
- package/dist/collection/components/form-elements/form-file.js +2 -2
- package/dist/collection/components/form-elements/form-input.js +6 -4
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-phone-number.js +4 -2
- package/dist/collection/components/form-elements/form-picker-input.js +6 -4
- 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-structure.js +3 -2
- 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 +6 -4
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
- package/dist/collection/components/form-elements/form-vin-input.js +6 -4
- package/dist/collection/components/forms/defaults/mappers.js +54 -18
- package/dist/collection/components/forms/defaults/style.css +1 -1
- package/dist/collection/components/forms/general-form.js +2 -2
- package/dist/collection/components/forms/general-inquiry.js +2 -2
- package/dist/collection/components/forms/service-booking.js +2 -2
- package/dist/collection/components/forms/ssc-lookup.js +2 -2
- package/dist/collection/components/forms/test-drive.js +2 -2
- package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +15 -16
- 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 +5 -5
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +6 -6
- 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-timeline.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-timeline.js +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.css +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/functions.js +42 -18
- package/dist/collection/global/lib/slot-day-rules.js +65 -0
- package/dist/collection/templates/assets/favicon.svg +17 -0
- package/dist/collection/templates/forms/docs-content/params.js +1199 -0
- package/dist/collection/templates/forms/docs-content/structure.js +1153 -0
- package/dist/collection/templates/forms/docs-content/theming.js +1240 -0
- package/dist/collection/templates/harness.js +595 -84
- package/dist/collection/templates/highlight.js +194 -0
- package/dist/collection/templates/nav.js +320 -0
- package/dist/collection/templates/site-header.js +642 -0
- package/dist/collection/templates/site-locales.js +771 -0
- package/dist/components/branch-date-dropdown.d.ts +11 -0
- package/dist/components/branch-date-dropdown.js +5 -0
- package/dist/components/branch-date-picker.d.ts +11 -0
- package/dist/components/branch-date-picker.js +5 -0
- package/dist/components/branch-slot-dropdown.js +1 -1
- package/dist/components/branch-slot-picker.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--lk4OUJg.js +5 -0
- package/dist/components/p-3450p9UN.js +5 -0
- package/dist/components/{p-Dd_Xnn2b.js → p-3kY-T9ID.js} +1 -1
- package/dist/components/p-40jijfEq.js +5 -0
- package/dist/components/{p-_apNp6J3.js → p-BJrbtmnU.js} +1 -1
- package/dist/components/p-BTt7sEhA.js +5 -0
- package/dist/components/p-BcbFXFPI.js +5 -0
- package/dist/components/{p-DpXLfNHS.js → p-BgJljKxp.js} +1 -1
- package/dist/components/{p-1fzw9lBq.js → p-BiTpOAiT.js} +1 -1
- package/dist/components/p-BoQgpmtN.js +5 -0
- package/dist/components/p-BpHkd1L9.js +5 -0
- package/dist/components/{p-CC16uGpN.js → p-BwKzJeLy.js} +1 -1
- package/dist/components/{p-C8S2P4sw.js → p-BwcxrN3h.js} +1 -1
- package/dist/components/{p-CwbJMZVZ.js → p-C1I6zBo7.js} +1 -1
- package/dist/components/{p-DcMgXNpe.js → p-CC5K40ze.js} +1 -1
- package/dist/components/{p-B8hl68AM.js → p-CDdYNb7K.js} +1 -1
- package/dist/components/p-CE9wNugx.js +5 -0
- package/dist/components/p-CU0gZwVU.js +5 -0
- package/dist/components/{p-BdPZ7u2w.js → p-CUTQhKeo.js} +1 -1
- package/dist/components/{p-BbQAkWw4.js → p-CXigg5tn.js} +1 -1
- package/dist/components/p-CYuQunRn.js +5 -0
- package/dist/components/{p-B9xLzbPr.js → p-Ce2mazYo.js} +1 -1
- package/dist/components/p-CjQ2hRI-.js +5 -0
- package/dist/components/{p-l2FHTMzv.js → p-CjdYtmBI.js} +1 -1
- package/dist/components/{p-C6U9Fs9H.js → p-CmIFPUXD.js} +1 -1
- package/dist/components/{p-ClT5CzCZ.js → p-CsXGhc7r.js} +1 -1
- package/dist/components/{p-7Gq_FyNj.js → p-D1JLecvO.js} +1 -1
- package/dist/components/p-DDhVlLOx.js +5 -0
- package/dist/components/{p-D7Sj02XY.js → p-DFKEx7TJ.js} +1 -1
- package/dist/components/p-DQSUv7pB.js +5 -0
- package/dist/components/{p-Bb2xDuqh.js → p-DU9WzEFX.js} +1 -1
- package/dist/components/{p-LkNhSGDO.js → p-DaQOYb2R.js} +1 -1
- package/dist/components/p-Dd_3uKgv.js +5 -0
- package/dist/components/{p-DbnN292R.js → p-DdgLsuaX.js} +1 -1
- package/dist/components/p-DeeDRJ2C.js +5 -0
- package/dist/components/{p-Dsk1SNut.js → p-Dl0BmrLe.js} +1 -1
- package/dist/components/{p-B2w49gNR.js → p-Dsu3xdDz.js} +1 -1
- package/dist/components/{p-B7G2HjX0.js → p-Dts2Iuoc.js} +1 -1
- package/dist/components/p-DvcOTV3l.js +5 -0
- package/dist/components/{p-BaZAgTxG.js → p-HpXp7TBt.js} +1 -1
- package/dist/components/p-KSvRVGk-.js +5 -0
- package/dist/components/{p-BKzXBxxc.js → p-O0AragmD.js} +1 -1
- package/dist/components/{p-CL5G_ZDE.js → p-OdEwTuBq.js} +1 -1
- package/dist/components/{p-R_rAJ4hF.js → p-UeoCFDF-.js} +1 -1
- package/dist/components/{p-Qh1y1RV2.js → p-Wfd6v4yE.js} +1 -1
- package/dist/components/p-g-v1c-Sz.js +5 -0
- package/dist/components/{p-DtZM3yHS.js → p-kvRYCMvP.js} +1 -1
- package/dist/components/p-nX_t9aCK.js +5 -0
- package/dist/components/p-yWyKiQgx.js +5 -0
- package/dist/components/p-zeGxLJvE.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-checkbox.js +1 -1
- package/dist/components/shift-portal.js +1 -1
- package/dist/components/shift-select-dropdown.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/vehicle-warranty-timeline.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/{branch-slot-dropdown_15.entry.js → branch-date-dropdown_17.entry.js} +960 -71
- package/dist/esm/dead-stock-lookup_3.entry.js +9 -9
- package/dist/esm/flexible-container.entry.js +3 -3
- package/dist/esm/form-checkbox.entry.js +2 -2
- package/dist/esm/form-date-picker.entry.js +5 -5
- package/dist/esm/form-input_7.entry.js +19 -17
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/{functions-Ccrile_u.js → functions-DJ_k25ew.js} +44 -20
- package/dist/esm/general-form.entry.js +6 -6
- package/dist/esm/general-inquiry-form.entry.js +6 -6
- package/dist/esm/{get-local-language-oNw84Rsz.js → get-local-language-Bx6zWD91.js} +1 -1
- package/dist/esm/{get-mock-files-C26lznN1.js → get-mock-files-BBSjMVMQ.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 +2 -2
- package/dist/esm/manufacturer-part-lookup.entry.js +3 -3
- package/dist/esm/{mappers-9IKbvPiR.js → mappers-CZs2R7k6.js} +54 -18
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +6 -6
- package/dist/esm/shift-accordion.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/shift-tabs_2.entry.js +10 -10
- package/dist/esm/ssc-lookup-form.entry.js +6 -6
- package/dist/esm/test-drive-form.entry.js +6 -6
- package/dist/esm/vehicle-accessories_8.entry.js +21 -21
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +17 -18
- package/dist/integration-manifest.json +1 -1
- package/dist/shift-components/{p-BugYpTL6.js → p--hCDlSpp.js} +1 -1
- package/dist/shift-components/p-020fbe81.entry.js +5 -0
- package/dist/shift-components/p-0398f3c4.entry.js +5 -0
- package/dist/shift-components/{p-0da97a29.entry.js → p-10882717.entry.js} +1 -1
- package/dist/shift-components/p-165ff895.entry.js +5 -0
- package/dist/shift-components/{p-d59276b6.entry.js → p-1a0b40e6.entry.js} +1 -1
- package/dist/shift-components/{p-e90c354a.entry.js → p-1be40385.entry.js} +1 -1
- package/dist/shift-components/{p-31718ec2.entry.js → p-327774de.entry.js} +1 -1
- package/dist/shift-components/{p-urLq-GEs.js → p-3YRvA44H.js} +1 -1
- package/dist/shift-components/{p-323ffb6e.entry.js → p-79e08717.entry.js} +1 -1
- package/dist/shift-components/{p-34e9053b.entry.js → p-7b1c5abb.entry.js} +1 -1
- package/dist/shift-components/{p-30e84a3b.entry.js → p-7e89d3fc.entry.js} +1 -1
- package/dist/shift-components/{p-729d8d4b.entry.js → p-7f2e2763.entry.js} +1 -1
- package/dist/shift-components/{p-eb265a3e.entry.js → p-81257775.entry.js} +1 -1
- package/dist/shift-components/{p-3aad8840.entry.js → p-8870420e.entry.js} +1 -1
- package/dist/shift-components/{p-c9ba7fd5.entry.js → p-8d205235.entry.js} +1 -1
- package/dist/shift-components/{p-09a0fd99.entry.js → p-95a4096f.entry.js} +1 -1
- package/dist/shift-components/p-B9INqdFT.js +5 -0
- package/dist/shift-components/p-DwFtCPcT.js +5 -0
- package/dist/shift-components/{p-d58404bd.entry.js → p-a0dc1bcc.entry.js} +1 -1
- package/dist/shift-components/{p-53cd54e8.entry.js → p-a1b97bce.entry.js} +1 -1
- package/dist/shift-components/p-bd1a0763.entry.js +5 -0
- package/dist/shift-components/{p-a15fdf1e.entry.js → p-c197b86b.entry.js} +1 -1
- package/dist/shift-components/{p-63713eae.entry.js → p-c2512cb2.entry.js} +1 -1
- package/dist/shift-components/{p-f2a546db.entry.js → p-cc900265.entry.js} +1 -1
- package/dist/shift-components/{p-1355934b.entry.js → p-d23d9d1f.entry.js} +1 -1
- package/dist/shift-components/p-ddf6c6f6.entry.js +5 -0
- package/dist/shift-components/{p-68722c7b.entry.js → p-e02f3a3f.entry.js} +1 -1
- package/dist/shift-components/{p-9b13a82b.entry.js → p-e72947e0.entry.js} +1 -1
- package/dist/shift-components/p-f30a355a.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/stencil-docs.json +1677 -12
- package/dist/templates/production-host/vehicle-service-history.html +14 -0
- package/dist/types/components/form-elements/branch-date-dropdown.d.ts +74 -0
- package/dist/types/components/form-elements/branch-date-picker.d.ts +174 -0
- package/dist/types/components/form-elements/branch-slot-dropdown.d.ts +6 -0
- package/dist/types/components/form-elements/branch-slot-picker.d.ts +27 -0
- package/dist/types/components/forms/defaults/mappers.d.ts +15 -9
- package/dist/types/components.d.ts +533 -6
- package/dist/types/features/form-hook/functions.d.ts +14 -0
- package/dist/types/global/lib/slot-day-rules.d.ts +25 -0
- package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/warrantyTimeline/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +2 -2
- package/package.json +6 -1
- package/dist/components/p-6RmAcc2q.js +0 -5
- package/dist/components/p-8jIkK-Kb.js +0 -5
- package/dist/components/p-BUepGDZV.js +0 -5
- package/dist/components/p-B__72-PA.js +0 -5
- package/dist/components/p-Bj3cvdzl.js +0 -5
- package/dist/components/p-BvMcY9Sk.js +0 -5
- package/dist/components/p-C-yTwaAA.js +0 -5
- package/dist/components/p-C8B9jarP.js +0 -5
- package/dist/components/p-CCounVqq.js +0 -5
- package/dist/components/p-CIPh05sT.js +0 -5
- package/dist/components/p-CKwgX_v0.js +0 -5
- package/dist/components/p-CPBmhspv.js +0 -5
- package/dist/components/p-Cm94OAx9.js +0 -5
- package/dist/components/p-DWjIts4C.js +0 -5
- package/dist/components/p-DeipsN8N.js +0 -5
- package/dist/components/p-DkagL-e-.js +0 -5
- package/dist/components/p-G7teNuSi.js +0 -5
- package/dist/shift-components/p-12e295ba.entry.js +0 -5
- package/dist/shift-components/p-138af7f3.entry.js +0 -5
- package/dist/shift-components/p-327fddd8.entry.js +0 -5
- package/dist/shift-components/p-8374f629.entry.js +0 -5
- package/dist/shift-components/p-awXOnuq1.js +0 -5
- package/dist/shift-components/p-c25a6c0d.entry.js +0 -5
- package/dist/shift-components/p-dacdff2a.entry.js +0 -5
- package/dist/shift-components/p-hABirfUj.js +0 -5
- /package/dist/collection/templates/{vehicle-lookup → prototypes}/prototype-assets/extended-warranty/adp-logo.svg +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Day-level availability rules shared by the two booking pickers.
|
|
7
|
+
*
|
|
8
|
+
* The calendar endpoint already omits days a branch is closed, so a day it
|
|
9
|
+
* never returns is simply absent. These rules cover what the endpoint cannot
|
|
10
|
+
* express: a weekday a deployment never takes bookings on, and one-off blackout
|
|
11
|
+
* dates — a holiday, a stock-take, a branch-wide event.
|
|
12
|
+
*
|
|
13
|
+
* A day matched here is rendered *disabled* rather than dropped, so a customer
|
|
14
|
+
* can see the day exists and is merely not bookable, instead of wondering why
|
|
15
|
+
* their calendar skips a date.
|
|
16
|
+
*/
|
|
17
|
+
/** Accepts `[5, 6]`, `"5,6"`, `"5 6"` or `"[5,6]"` — 0 is Sunday, 6 Saturday. */
|
|
18
|
+
export function parseWeekdayList(input) {
|
|
19
|
+
return parseList(input)
|
|
20
|
+
.map(entry => parseInt(entry, 10))
|
|
21
|
+
.filter(day => Number.isInteger(day) && day >= 0 && day <= 6);
|
|
22
|
+
}
|
|
23
|
+
/** Accepts an array or a comma/space separated string of `YYYY-MM-DD` dates. */
|
|
24
|
+
export function parseDateList(input) {
|
|
25
|
+
return parseList(input).filter(entry => /^\d{4}-\d{2}-\d{2}$/.test(entry));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `2026-08-13` → 0 (Sunday) … 6 (Saturday).
|
|
29
|
+
*
|
|
30
|
+
* Built at midday on purpose: a midnight Date in a negative-offset zone rolls
|
|
31
|
+
* back a day, which would shift every weekday by one.
|
|
32
|
+
*/
|
|
33
|
+
export function weekdayOf(date) {
|
|
34
|
+
const [year, month, day] = date.split('-').map(part => parseInt(part, 10));
|
|
35
|
+
return new Date(year, month - 1, day, 12).getDay();
|
|
36
|
+
}
|
|
37
|
+
/** True when the day exists but must not be selectable. */
|
|
38
|
+
export function isDayBlocked(date, weekdays, dates) {
|
|
39
|
+
if (dates.includes(date))
|
|
40
|
+
return true;
|
|
41
|
+
return weekdays.length ? weekdays.includes(weekdayOf(date)) : false;
|
|
42
|
+
}
|
|
43
|
+
function parseList(input) {
|
|
44
|
+
if (input === null || input === undefined || input === '')
|
|
45
|
+
return [];
|
|
46
|
+
if (Array.isArray(input))
|
|
47
|
+
return input.map(entry => `${entry}`.trim()).filter(Boolean);
|
|
48
|
+
const text = `${input}`.trim();
|
|
49
|
+
// Props arriving as HTML attributes lose their type, and a host copying a
|
|
50
|
+
// value out of a config file will hand over the JSON form verbatim.
|
|
51
|
+
if (text.startsWith('[')) {
|
|
52
|
+
try {
|
|
53
|
+
const parsed = JSON.parse(text);
|
|
54
|
+
if (Array.isArray(parsed))
|
|
55
|
+
return parsed.map(entry => `${entry}`.trim()).filter(Boolean);
|
|
56
|
+
}
|
|
57
|
+
catch (_a) {
|
|
58
|
+
/* fall through to the separator split */
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return text
|
|
62
|
+
.split(/[\s,]+/)
|
|
63
|
+
.map(entry => entry.trim())
|
|
64
|
+
.filter(Boolean);
|
|
65
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="ADP">
|
|
2
|
+
<title>ADP</title>
|
|
3
|
+
<!--
|
|
4
|
+
The A of the ADP wordmark, cropped out of the same path the CSS mask uses, on
|
|
5
|
+
the brand gold. The full wordmark was tried first and is a smudge at 16px —
|
|
6
|
+
2.42:1 letterboxed into a square leaves the letters about five pixels tall.
|
|
7
|
+
Cropping to two letters reads as "AI", so it is the A alone.
|
|
8
|
+
|
|
9
|
+
The gold tile is kept in both themes rather than inverting: it carries its own
|
|
10
|
+
contrast (11.5:1 ink on gold) and a favicon that changes with the OS theme is
|
|
11
|
+
a tab the reader stops recognising.
|
|
12
|
+
-->
|
|
13
|
+
<rect width="64" height="64" rx="14" fill="#F9CB4B"/>
|
|
14
|
+
<svg viewBox="180 600 760 800" x="12" y="12" width="40" height="40" preserveAspectRatio="xMidYMid meet">
|
|
15
|
+
<path fill="#2A2000" d="m755 1406.8l-249.3-761.5-248.2 761.5v-1.1q-6.8 17-19.2 28.3-11.4 10.2-28.4 10.2-9 0-18.1-1.1-7.9-2.3-17-4.6h1.1q-64.5-20.4-47.5-72.5l258.3-785.3q5.7-18.1 19.3-30.6 14.7-12.5 34-14.7 19.2-3.4 37.4-4.6 18.1-2.2 28.3-2.2 10.2 0 28.3 2.2 18.2 1.2 37.4 3.4 15.9 2.3 30.6 17 15.9 14.8 23.8 29.5 63.5 194.9 128.1 393.2 65.7 197.2 129.2 392.1 15.8 52.1-47.6 72.5-9.1 2.3-17 4.6-6.8 1.1-15.9 1.1-15.9 0-29.5-10.2-12.4-11.3-18.1-28.3zm-164.3-244.8q0 36.3-26.1 62.3-24.9 25-61.2 25-36.2 0-61.1-25-25-26-25-62.3 0-36.3 25-61.2 24.9-26.1 61.1-26.1 36.3 0 61.2 26.1 26.1 24.9 26.1 61.2zm640.3 158.6h154.1q41.9 0 58.9-23.7 17-23.8 17-53.3v-519q0-28.3-17-52.1-17-23.8-58.9-23.8h-265.2l-1.1 738.8q0 24.9-19.3 39.7-19.3 14.7-47.6 14.7-66.8 0-66.8-54.4v-785.3q0-40.8 20.4-54.4 21.5-13.6 50.9-13.6h357q29.5 0 61.2 12.5 31.7 12.4 61.2 31.7h-1.1q29.4 21.5 45.3 56.7 15.8 34 15.8 79.3v538.3q0 91.7-61.1 137.1-29.5 21.5-61.2 34-30.6 11.3-60.1 11.3h-190.4q-19.2 0-30.6-15.9-10.2-15.8-10.2-41.9 0-56.7 48.8-56.7zm938.2-219.8h-156.3q-19.3 0-30.6-14.7-10.2-15.9-10.2-42 0-57.7 47.6-57.7h120.1q41.9 0 58.9-23.8 18.1-23.8 18.1-52.2v-185.8q0-28.3-18.1-52.1-17-23.8-58.9-23.8h-238v739.9q0 54.4-68 54.4-65.7 0-65.7-54.4v-786.4q0-40.8 20.4-54.4 20.4-13.6 49.9-13.6h330.8q28.4 0 60.1 12.5 31.7 12.4 61.2 31.7h-1.1q29.4 21.5 45.3 56.7 15.9 34 15.9 79.3v205.1q0 91.8-61.2 137.1-29.5 21.5-60.1 32.9-30.6 11.3-60.1 11.3z"/>
|
|
16
|
+
</svg>
|
|
17
|
+
</svg>
|