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
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { BranchSlotDay
|
|
8
|
+
import { BranchSlotDay } from "./components/form-elements/branch-slot-dropdown";
|
|
9
|
+
import { BranchDateDropdownCopy, BranchDateStep } from "./components/form-elements/branch-date-dropdown";
|
|
9
10
|
import { FormHook } from "./features/form-hook/form-hook";
|
|
10
11
|
import { ErrorKeys, LanguageKeys, SharedLocales } from "./features/multi-lingual/index";
|
|
11
12
|
import { FormElementMapper, FormElementStructure, FormHook as FormHook1, FormInputLocalization, FormSelectFetcher, FormSelectItem } from "./features/form-hook/index";
|
|
12
13
|
import { BranchSlotSelection } from "./components/form-elements/branch-slot-picker";
|
|
14
|
+
import { BranchSlotDay as BranchSlotDay1, BranchSlotDropdownCopy } from "./components/form-elements/branch-slot-dropdown";
|
|
15
|
+
import { BranchSlotSelection as BranchSlotSelection1 } from "./components/form-elements/branch-slot-picker";
|
|
13
16
|
import { Endpoint } from "./global/lib/fetch-from";
|
|
14
17
|
import { BlazorInvokableFunction, DotNetObjectReference } from "./features/blazor-ref/index";
|
|
15
18
|
import { PartLookupDTO } from "./global/types/generated/part/part-lookup-dto";
|
|
@@ -28,11 +31,14 @@ import { ItemClaimDTO } from "./global/types/generated/vehicle-lookup/item-claim
|
|
|
28
31
|
import { ActiveElement as ActiveElement1 } from "./components/vehicle-lookup/vehicle-lookup";
|
|
29
32
|
import { VehicleWarrantyDetails } from "./components/vehicle-lookup/vehicle-warranty-details";
|
|
30
33
|
import { vehicleQuotationElementNames } from "./components/forms/vehicle-quotation/element-mapper";
|
|
31
|
-
export { BranchSlotDay
|
|
34
|
+
export { BranchSlotDay } from "./components/form-elements/branch-slot-dropdown";
|
|
35
|
+
export { BranchDateDropdownCopy, BranchDateStep } from "./components/form-elements/branch-date-dropdown";
|
|
32
36
|
export { FormHook } from "./features/form-hook/form-hook";
|
|
33
37
|
export { ErrorKeys, LanguageKeys, SharedLocales } from "./features/multi-lingual/index";
|
|
34
38
|
export { FormElementMapper, FormElementStructure, FormHook as FormHook1, FormInputLocalization, FormSelectFetcher, FormSelectItem } from "./features/form-hook/index";
|
|
35
39
|
export { BranchSlotSelection } from "./components/form-elements/branch-slot-picker";
|
|
40
|
+
export { BranchSlotDay as BranchSlotDay1, BranchSlotDropdownCopy } from "./components/form-elements/branch-slot-dropdown";
|
|
41
|
+
export { BranchSlotSelection as BranchSlotSelection1 } from "./components/form-elements/branch-slot-picker";
|
|
36
42
|
export { Endpoint } from "./global/lib/fetch-from";
|
|
37
43
|
export { BlazorInvokableFunction, DotNetObjectReference } from "./features/blazor-ref/index";
|
|
38
44
|
export { PartLookupDTO } from "./global/types/generated/part/part-lookup-dto";
|
|
@@ -52,6 +58,191 @@ export { ActiveElement as ActiveElement1 } from "./components/vehicle-lookup/veh
|
|
|
52
58
|
export { VehicleWarrantyDetails } from "./components/vehicle-lookup/vehicle-warranty-details";
|
|
53
59
|
export { vehicleQuotationElementNames } from "./components/forms/vehicle-quotation/element-mapper";
|
|
54
60
|
export namespace Components {
|
|
61
|
+
/**
|
|
62
|
+
* Panel half of `branch-date-picker`.
|
|
63
|
+
* Two panes on one horizontal track — a month grid, then that day's times —
|
|
64
|
+
* rather than the two stacked sections `branch-slot-dropdown` uses. Only one
|
|
65
|
+
* decision is on screen at a time, which is the point of the date-picker
|
|
66
|
+
* variant: a customer who has met a month calendar before recognises step one
|
|
67
|
+
* immediately, and step two arrives already scoped to the day they picked.
|
|
68
|
+
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
69
|
+
* `--branch-date-*` variables the picker sets, exactly as the slot panel is.
|
|
70
|
+
*/
|
|
71
|
+
interface BranchDateDropdown {
|
|
72
|
+
/**
|
|
73
|
+
* @default ''
|
|
74
|
+
*/
|
|
75
|
+
"activeDate": string;
|
|
76
|
+
/**
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
"canGoNext": boolean;
|
|
80
|
+
/**
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
"canGoPrev": boolean;
|
|
84
|
+
"copy": BranchDateDropdownCopy;
|
|
85
|
+
/**
|
|
86
|
+
* Bookable days, already de-duplicated, sorted and rule-marked by the picker.
|
|
87
|
+
* @default []
|
|
88
|
+
*/
|
|
89
|
+
"days": BranchSlotDay[];
|
|
90
|
+
/**
|
|
91
|
+
* @default 'ltr'
|
|
92
|
+
*/
|
|
93
|
+
"direction": string;
|
|
94
|
+
"displayTime": (raw: string) => string;
|
|
95
|
+
"formatDay": (date: string, options: Intl.DateTimeFormatOptions) => string;
|
|
96
|
+
"formatMonth": (monthKey: string) => string;
|
|
97
|
+
"formatWeekday": (weekday: number) => string;
|
|
98
|
+
"handleBack": () => void;
|
|
99
|
+
"handleDate": (date: string) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Tapping the sheet scrim. Unused above 600px, where the scrim is hidden.
|
|
102
|
+
*/
|
|
103
|
+
"handleDismiss"?: () => void;
|
|
104
|
+
"handleMonth": (delta: number) => void;
|
|
105
|
+
"handleRetry": () => void;
|
|
106
|
+
"handleTime": (raw: string) => void;
|
|
107
|
+
/**
|
|
108
|
+
* @default ''
|
|
109
|
+
*/
|
|
110
|
+
"idleText"?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
"isOpen": boolean;
|
|
115
|
+
/**
|
|
116
|
+
* `1` when the last month change went forward, `-1` back. Drives the slide.
|
|
117
|
+
* @default 1
|
|
118
|
+
*/
|
|
119
|
+
"monthDirection": number;
|
|
120
|
+
/**
|
|
121
|
+
* The month on screen, as `YYYY-MM`.
|
|
122
|
+
* @default ''
|
|
123
|
+
*/
|
|
124
|
+
"monthKey": string;
|
|
125
|
+
/**
|
|
126
|
+
* @default ''
|
|
127
|
+
*/
|
|
128
|
+
"name"?: string;
|
|
129
|
+
/**
|
|
130
|
+
* @default ''
|
|
131
|
+
*/
|
|
132
|
+
"selectedRaw": string;
|
|
133
|
+
"setElementRef"?: (el: HTMLElement | null) => void;
|
|
134
|
+
/**
|
|
135
|
+
* @default 'idle'
|
|
136
|
+
*/
|
|
137
|
+
"status": 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
138
|
+
/**
|
|
139
|
+
* @default 'date'
|
|
140
|
+
*/
|
|
141
|
+
"step": BranchDateStep;
|
|
142
|
+
/**
|
|
143
|
+
* @default ''
|
|
144
|
+
*/
|
|
145
|
+
"today": string;
|
|
146
|
+
/**
|
|
147
|
+
* `0` Sunday … `6` Saturday — resolved from the locale by the picker.
|
|
148
|
+
* @default 1
|
|
149
|
+
*/
|
|
150
|
+
"weekStart": number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Branch-aware booking slot field, month-calendar variant.
|
|
154
|
+
* Same contract and same data as `branch-slot-picker` — the same endpoint, the
|
|
155
|
+
* same `slotChange` payload, the same standalone-without-a-form behaviour. The
|
|
156
|
+
* difference is entirely in the panel: a month grid first, then that day's
|
|
157
|
+
* times, on a sliding track. Customers who have never used a horizontal day
|
|
158
|
+
* strip have used a month calendar, and the second step arrives already scoped
|
|
159
|
+
* to one day rather than sitting under the first.
|
|
160
|
+
* The two are meant to be interchangeable, so a deployment can pick whichever
|
|
161
|
+
* its audience reads faster without anything downstream changing.
|
|
162
|
+
*/
|
|
163
|
+
interface BranchDatePicker {
|
|
164
|
+
"branchId": string;
|
|
165
|
+
"brandId": string;
|
|
166
|
+
/**
|
|
167
|
+
* Full URL of the calendar endpoint, e.g. `https://…/api/public/calendar`.
|
|
168
|
+
*/
|
|
169
|
+
"calendarApi": string;
|
|
170
|
+
"closeDropdown": () => Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Integration ids. The field stays idle until all four are present.
|
|
173
|
+
*/
|
|
174
|
+
"companyId": string;
|
|
175
|
+
/**
|
|
176
|
+
* How far ahead to ask. The endpoint caps its own response at 15 days.
|
|
177
|
+
* @default 30
|
|
178
|
+
*/
|
|
179
|
+
"daysAhead": number;
|
|
180
|
+
/**
|
|
181
|
+
* Preselects a slot, in the same `YYYY-MM-DDTHH:mm` form the field emits.
|
|
182
|
+
*/
|
|
183
|
+
"defaultValue"?: string;
|
|
184
|
+
"departmentId": string;
|
|
185
|
+
/**
|
|
186
|
+
* One-off blackout dates as `YYYY-MM-DD`, same accepted shapes as above.
|
|
187
|
+
*/
|
|
188
|
+
"disabledDates"?: string | string[];
|
|
189
|
+
/**
|
|
190
|
+
* Weekdays the branch never books on, `0` Sunday … `6` Saturday. Accepts an array or a `"5,6"` string. Matching days stay on the grid, struck through, rather than being dropped — see `~lib/slot-day-rules`.
|
|
191
|
+
*/
|
|
192
|
+
"disabledWeekdays"?: string | number[];
|
|
193
|
+
/**
|
|
194
|
+
* Optional — omit for standalone use and listen to `slotChange` instead.
|
|
195
|
+
*/
|
|
196
|
+
"form"?: FormHook<any>;
|
|
197
|
+
/**
|
|
198
|
+
* Gap between the trigger and the panel, matching shift-select's default.
|
|
199
|
+
* @default 8
|
|
200
|
+
*/
|
|
201
|
+
"gap": number;
|
|
202
|
+
/**
|
|
203
|
+
* @default false
|
|
204
|
+
*/
|
|
205
|
+
"isDisabled": boolean;
|
|
206
|
+
/**
|
|
207
|
+
* @default false
|
|
208
|
+
*/
|
|
209
|
+
"isRequired": boolean;
|
|
210
|
+
"label"?: string;
|
|
211
|
+
/**
|
|
212
|
+
* @default 'en'
|
|
213
|
+
*/
|
|
214
|
+
"language": LanguageKeys;
|
|
215
|
+
/**
|
|
216
|
+
* @default {}
|
|
217
|
+
*/
|
|
218
|
+
"localization"?: FormInputLocalization;
|
|
219
|
+
/**
|
|
220
|
+
* Tallest the panel may get before its panes scroll. Also capped to the viewport.
|
|
221
|
+
* @default 460
|
|
222
|
+
*/
|
|
223
|
+
"maxPanelHeight": number;
|
|
224
|
+
/**
|
|
225
|
+
* Floor for the panel width on desktop. The panel is portaled to `<body>` and positioned fixed, so it is free to be wider than the field — and than the form around it — which is the point: seven columns stop reading as a calendar much below this, and form fields are routinely narrower.
|
|
226
|
+
* @default 380
|
|
227
|
+
*/
|
|
228
|
+
"minPanelWidth": number;
|
|
229
|
+
/**
|
|
230
|
+
* Field name. Only meaningful when `form` is supplied.
|
|
231
|
+
* @default 'bookingDate'
|
|
232
|
+
*/
|
|
233
|
+
"name": string;
|
|
234
|
+
"openDropdown": () => Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Lets a host force a refetch, e.g. after a token refresh.
|
|
237
|
+
*/
|
|
238
|
+
"refresh": () => Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* First column of the grid, `0` Sunday … `6` Saturday. Left unset it comes from the active locale, which is right far more often than any constant.
|
|
241
|
+
*/
|
|
242
|
+
"weekStartsOn"?: number;
|
|
243
|
+
"wrapperClass": string;
|
|
244
|
+
"wrapperId": string;
|
|
245
|
+
}
|
|
55
246
|
/**
|
|
56
247
|
* Panel half of `branch-slot-picker`.
|
|
57
248
|
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
@@ -68,7 +259,7 @@ export namespace Components {
|
|
|
68
259
|
/**
|
|
69
260
|
* @default []
|
|
70
261
|
*/
|
|
71
|
-
"days":
|
|
262
|
+
"days": BranchSlotDay1[];
|
|
72
263
|
/**
|
|
73
264
|
* @default 'ltr'
|
|
74
265
|
*/
|
|
@@ -135,6 +326,14 @@ export namespace Components {
|
|
|
135
326
|
*/
|
|
136
327
|
"defaultValue"?: string;
|
|
137
328
|
"departmentId": string;
|
|
329
|
+
/**
|
|
330
|
+
* One-off blackout dates as `YYYY-MM-DD`, same accepted shapes as above.
|
|
331
|
+
*/
|
|
332
|
+
"disabledDates"?: string | string[];
|
|
333
|
+
/**
|
|
334
|
+
* Weekdays the branch never books on, `0` Sunday … `6` Saturday. Accepts an array or a `"5,6"` string. Matching days stay visible but unselectable — see `~lib/slot-day-rules` for why they are not simply dropped.
|
|
335
|
+
*/
|
|
336
|
+
"disabledWeekdays"?: string | number[];
|
|
138
337
|
/**
|
|
139
338
|
* Optional — omit for standalone use and listen to `slotChange` instead.
|
|
140
339
|
*/
|
|
@@ -161,6 +360,16 @@ export namespace Components {
|
|
|
161
360
|
* @default {}
|
|
162
361
|
*/
|
|
163
362
|
"localization"?: FormInputLocalization;
|
|
363
|
+
/**
|
|
364
|
+
* Tallest the panel may get before it scrolls. Also capped to the viewport.
|
|
365
|
+
* @default 460
|
|
366
|
+
*/
|
|
367
|
+
"maxPanelHeight": number;
|
|
368
|
+
/**
|
|
369
|
+
* Floor for the panel width on desktop. The panel is portaled to `<body>` and positioned fixed, so it is free to be wider than the field — and than the form around it — which is the point: a two-column form gives the field ~320px, which squeezed the day strip and the time grid into something that read as clipped. Capped to the viewport at open time.
|
|
370
|
+
* @default 420
|
|
371
|
+
*/
|
|
372
|
+
"minPanelWidth": number;
|
|
164
373
|
/**
|
|
165
374
|
* Field name. Only meaningful when `form` is supplied.
|
|
166
375
|
* @default 'bookingSlot'
|
|
@@ -1611,11 +1820,59 @@ export namespace Components {
|
|
|
1611
1820
|
"verbose": boolean;
|
|
1612
1821
|
}
|
|
1613
1822
|
}
|
|
1823
|
+
export interface BranchDatePickerCustomEvent<T> extends CustomEvent<T> {
|
|
1824
|
+
detail: T;
|
|
1825
|
+
target: HTMLBranchDatePickerElement;
|
|
1826
|
+
}
|
|
1614
1827
|
export interface BranchSlotPickerCustomEvent<T> extends CustomEvent<T> {
|
|
1615
1828
|
detail: T;
|
|
1616
1829
|
target: HTMLBranchSlotPickerElement;
|
|
1617
1830
|
}
|
|
1618
1831
|
declare global {
|
|
1832
|
+
/**
|
|
1833
|
+
* Panel half of `branch-date-picker`.
|
|
1834
|
+
* Two panes on one horizontal track — a month grid, then that day's times —
|
|
1835
|
+
* rather than the two stacked sections `branch-slot-dropdown` uses. Only one
|
|
1836
|
+
* decision is on screen at a time, which is the point of the date-picker
|
|
1837
|
+
* variant: a customer who has met a month calendar before recognises step one
|
|
1838
|
+
* immediately, and step two arrives already scoped to the day they picked.
|
|
1839
|
+
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
1840
|
+
* `--branch-date-*` variables the picker sets, exactly as the slot panel is.
|
|
1841
|
+
*/
|
|
1842
|
+
interface HTMLBranchDateDropdownElement extends Components.BranchDateDropdown, HTMLStencilElement {
|
|
1843
|
+
}
|
|
1844
|
+
var HTMLBranchDateDropdownElement: {
|
|
1845
|
+
prototype: HTMLBranchDateDropdownElement;
|
|
1846
|
+
new (): HTMLBranchDateDropdownElement;
|
|
1847
|
+
};
|
|
1848
|
+
interface HTMLBranchDatePickerElementEventMap {
|
|
1849
|
+
"slotChange": BranchSlotSelection;
|
|
1850
|
+
}
|
|
1851
|
+
/**
|
|
1852
|
+
* Branch-aware booking slot field, month-calendar variant.
|
|
1853
|
+
* Same contract and same data as `branch-slot-picker` — the same endpoint, the
|
|
1854
|
+
* same `slotChange` payload, the same standalone-without-a-form behaviour. The
|
|
1855
|
+
* difference is entirely in the panel: a month grid first, then that day's
|
|
1856
|
+
* times, on a sliding track. Customers who have never used a horizontal day
|
|
1857
|
+
* strip have used a month calendar, and the second step arrives already scoped
|
|
1858
|
+
* to one day rather than sitting under the first.
|
|
1859
|
+
* The two are meant to be interchangeable, so a deployment can pick whichever
|
|
1860
|
+
* its audience reads faster without anything downstream changing.
|
|
1861
|
+
*/
|
|
1862
|
+
interface HTMLBranchDatePickerElement extends Components.BranchDatePicker, HTMLStencilElement {
|
|
1863
|
+
addEventListener<K extends keyof HTMLBranchDatePickerElementEventMap>(type: K, listener: (this: HTMLBranchDatePickerElement, ev: BranchDatePickerCustomEvent<HTMLBranchDatePickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1864
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1865
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1866
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1867
|
+
removeEventListener<K extends keyof HTMLBranchDatePickerElementEventMap>(type: K, listener: (this: HTMLBranchDatePickerElement, ev: BranchDatePickerCustomEvent<HTMLBranchDatePickerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1868
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1869
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1870
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1871
|
+
}
|
|
1872
|
+
var HTMLBranchDatePickerElement: {
|
|
1873
|
+
prototype: HTMLBranchDatePickerElement;
|
|
1874
|
+
new (): HTMLBranchDatePickerElement;
|
|
1875
|
+
};
|
|
1619
1876
|
/**
|
|
1620
1877
|
* Panel half of `branch-slot-picker`.
|
|
1621
1878
|
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
@@ -1630,7 +1887,7 @@ declare global {
|
|
|
1630
1887
|
new (): HTMLBranchSlotDropdownElement;
|
|
1631
1888
|
};
|
|
1632
1889
|
interface HTMLBranchSlotPickerElementEventMap {
|
|
1633
|
-
"slotChange":
|
|
1890
|
+
"slotChange": BranchSlotSelection1;
|
|
1634
1891
|
}
|
|
1635
1892
|
/**
|
|
1636
1893
|
* Branch-aware booking slot field.
|
|
@@ -1988,6 +2245,8 @@ declare global {
|
|
|
1988
2245
|
new (): HTMLVinExtractorElement;
|
|
1989
2246
|
};
|
|
1990
2247
|
interface HTMLElementTagNameMap {
|
|
2248
|
+
"branch-date-dropdown": HTMLBranchDateDropdownElement;
|
|
2249
|
+
"branch-date-picker": HTMLBranchDatePickerElement;
|
|
1991
2250
|
"branch-slot-dropdown": HTMLBranchSlotDropdownElement;
|
|
1992
2251
|
"branch-slot-picker": HTMLBranchSlotPickerElement;
|
|
1993
2252
|
"dead-stock-lookup": HTMLDeadStockLookupElement;
|
|
@@ -2047,6 +2306,189 @@ declare global {
|
|
|
2047
2306
|
}
|
|
2048
2307
|
}
|
|
2049
2308
|
declare namespace LocalJSX {
|
|
2309
|
+
/**
|
|
2310
|
+
* Panel half of `branch-date-picker`.
|
|
2311
|
+
* Two panes on one horizontal track — a month grid, then that day's times —
|
|
2312
|
+
* rather than the two stacked sections `branch-slot-dropdown` uses. Only one
|
|
2313
|
+
* decision is on screen at a time, which is the point of the date-picker
|
|
2314
|
+
* variant: a customer who has met a month calendar before recognises step one
|
|
2315
|
+
* immediately, and step two arrives already scoped to the day they picked.
|
|
2316
|
+
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
2317
|
+
* `--branch-date-*` variables the picker sets, exactly as the slot panel is.
|
|
2318
|
+
*/
|
|
2319
|
+
interface BranchDateDropdown {
|
|
2320
|
+
/**
|
|
2321
|
+
* @default ''
|
|
2322
|
+
*/
|
|
2323
|
+
"activeDate"?: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* @default false
|
|
2326
|
+
*/
|
|
2327
|
+
"canGoNext"?: boolean;
|
|
2328
|
+
/**
|
|
2329
|
+
* @default false
|
|
2330
|
+
*/
|
|
2331
|
+
"canGoPrev"?: boolean;
|
|
2332
|
+
"copy": BranchDateDropdownCopy;
|
|
2333
|
+
/**
|
|
2334
|
+
* Bookable days, already de-duplicated, sorted and rule-marked by the picker.
|
|
2335
|
+
* @default []
|
|
2336
|
+
*/
|
|
2337
|
+
"days"?: BranchSlotDay[];
|
|
2338
|
+
/**
|
|
2339
|
+
* @default 'ltr'
|
|
2340
|
+
*/
|
|
2341
|
+
"direction"?: string;
|
|
2342
|
+
"displayTime": (raw: string) => string;
|
|
2343
|
+
"formatDay": (date: string, options: Intl.DateTimeFormatOptions) => string;
|
|
2344
|
+
"formatMonth": (monthKey: string) => string;
|
|
2345
|
+
"formatWeekday": (weekday: number) => string;
|
|
2346
|
+
"handleBack": () => void;
|
|
2347
|
+
"handleDate": (date: string) => void;
|
|
2348
|
+
/**
|
|
2349
|
+
* Tapping the sheet scrim. Unused above 600px, where the scrim is hidden.
|
|
2350
|
+
*/
|
|
2351
|
+
"handleDismiss"?: () => void;
|
|
2352
|
+
"handleMonth": (delta: number) => void;
|
|
2353
|
+
"handleRetry": () => void;
|
|
2354
|
+
"handleTime": (raw: string) => void;
|
|
2355
|
+
/**
|
|
2356
|
+
* @default ''
|
|
2357
|
+
*/
|
|
2358
|
+
"idleText"?: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* @default false
|
|
2361
|
+
*/
|
|
2362
|
+
"isOpen"?: boolean;
|
|
2363
|
+
/**
|
|
2364
|
+
* `1` when the last month change went forward, `-1` back. Drives the slide.
|
|
2365
|
+
* @default 1
|
|
2366
|
+
*/
|
|
2367
|
+
"monthDirection"?: number;
|
|
2368
|
+
/**
|
|
2369
|
+
* The month on screen, as `YYYY-MM`.
|
|
2370
|
+
* @default ''
|
|
2371
|
+
*/
|
|
2372
|
+
"monthKey"?: string;
|
|
2373
|
+
/**
|
|
2374
|
+
* @default ''
|
|
2375
|
+
*/
|
|
2376
|
+
"name"?: string;
|
|
2377
|
+
/**
|
|
2378
|
+
* @default ''
|
|
2379
|
+
*/
|
|
2380
|
+
"selectedRaw"?: string;
|
|
2381
|
+
"setElementRef"?: (el: HTMLElement | null) => void;
|
|
2382
|
+
/**
|
|
2383
|
+
* @default 'idle'
|
|
2384
|
+
*/
|
|
2385
|
+
"status"?: 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
2386
|
+
/**
|
|
2387
|
+
* @default 'date'
|
|
2388
|
+
*/
|
|
2389
|
+
"step"?: BranchDateStep;
|
|
2390
|
+
/**
|
|
2391
|
+
* @default ''
|
|
2392
|
+
*/
|
|
2393
|
+
"today"?: string;
|
|
2394
|
+
/**
|
|
2395
|
+
* `0` Sunday … `6` Saturday — resolved from the locale by the picker.
|
|
2396
|
+
* @default 1
|
|
2397
|
+
*/
|
|
2398
|
+
"weekStart"?: number;
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* Branch-aware booking slot field, month-calendar variant.
|
|
2402
|
+
* Same contract and same data as `branch-slot-picker` — the same endpoint, the
|
|
2403
|
+
* same `slotChange` payload, the same standalone-without-a-form behaviour. The
|
|
2404
|
+
* difference is entirely in the panel: a month grid first, then that day's
|
|
2405
|
+
* times, on a sliding track. Customers who have never used a horizontal day
|
|
2406
|
+
* strip have used a month calendar, and the second step arrives already scoped
|
|
2407
|
+
* to one day rather than sitting under the first.
|
|
2408
|
+
* The two are meant to be interchangeable, so a deployment can pick whichever
|
|
2409
|
+
* its audience reads faster without anything downstream changing.
|
|
2410
|
+
*/
|
|
2411
|
+
interface BranchDatePicker {
|
|
2412
|
+
"branchId"?: string;
|
|
2413
|
+
"brandId"?: string;
|
|
2414
|
+
/**
|
|
2415
|
+
* Full URL of the calendar endpoint, e.g. `https://…/api/public/calendar`.
|
|
2416
|
+
*/
|
|
2417
|
+
"calendarApi"?: string;
|
|
2418
|
+
/**
|
|
2419
|
+
* Integration ids. The field stays idle until all four are present.
|
|
2420
|
+
*/
|
|
2421
|
+
"companyId"?: string;
|
|
2422
|
+
/**
|
|
2423
|
+
* How far ahead to ask. The endpoint caps its own response at 15 days.
|
|
2424
|
+
* @default 30
|
|
2425
|
+
*/
|
|
2426
|
+
"daysAhead"?: number;
|
|
2427
|
+
/**
|
|
2428
|
+
* Preselects a slot, in the same `YYYY-MM-DDTHH:mm` form the field emits.
|
|
2429
|
+
*/
|
|
2430
|
+
"defaultValue"?: string;
|
|
2431
|
+
"departmentId"?: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* One-off blackout dates as `YYYY-MM-DD`, same accepted shapes as above.
|
|
2434
|
+
*/
|
|
2435
|
+
"disabledDates"?: string | string[];
|
|
2436
|
+
/**
|
|
2437
|
+
* Weekdays the branch never books on, `0` Sunday … `6` Saturday. Accepts an array or a `"5,6"` string. Matching days stay on the grid, struck through, rather than being dropped — see `~lib/slot-day-rules`.
|
|
2438
|
+
*/
|
|
2439
|
+
"disabledWeekdays"?: string | number[];
|
|
2440
|
+
/**
|
|
2441
|
+
* Optional — omit for standalone use and listen to `slotChange` instead.
|
|
2442
|
+
*/
|
|
2443
|
+
"form"?: FormHook<any>;
|
|
2444
|
+
/**
|
|
2445
|
+
* Gap between the trigger and the panel, matching shift-select's default.
|
|
2446
|
+
* @default 8
|
|
2447
|
+
*/
|
|
2448
|
+
"gap"?: number;
|
|
2449
|
+
/**
|
|
2450
|
+
* @default false
|
|
2451
|
+
*/
|
|
2452
|
+
"isDisabled"?: boolean;
|
|
2453
|
+
/**
|
|
2454
|
+
* @default false
|
|
2455
|
+
*/
|
|
2456
|
+
"isRequired"?: boolean;
|
|
2457
|
+
"label"?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* @default 'en'
|
|
2460
|
+
*/
|
|
2461
|
+
"language"?: LanguageKeys;
|
|
2462
|
+
/**
|
|
2463
|
+
* @default {}
|
|
2464
|
+
*/
|
|
2465
|
+
"localization"?: FormInputLocalization;
|
|
2466
|
+
/**
|
|
2467
|
+
* Tallest the panel may get before its panes scroll. Also capped to the viewport.
|
|
2468
|
+
* @default 460
|
|
2469
|
+
*/
|
|
2470
|
+
"maxPanelHeight"?: number;
|
|
2471
|
+
/**
|
|
2472
|
+
* Floor for the panel width on desktop. The panel is portaled to `<body>` and positioned fixed, so it is free to be wider than the field — and than the form around it — which is the point: seven columns stop reading as a calendar much below this, and form fields are routinely narrower.
|
|
2473
|
+
* @default 380
|
|
2474
|
+
*/
|
|
2475
|
+
"minPanelWidth"?: number;
|
|
2476
|
+
/**
|
|
2477
|
+
* Field name. Only meaningful when `form` is supplied.
|
|
2478
|
+
* @default 'bookingDate'
|
|
2479
|
+
*/
|
|
2480
|
+
"name"?: string;
|
|
2481
|
+
/**
|
|
2482
|
+
* Fires on every confirmed day+time selection. The standalone contract.
|
|
2483
|
+
*/
|
|
2484
|
+
"onSlotChange"?: (event: BranchDatePickerCustomEvent<BranchSlotSelection>) => void;
|
|
2485
|
+
/**
|
|
2486
|
+
* First column of the grid, `0` Sunday … `6` Saturday. Left unset it comes from the active locale, which is right far more often than any constant.
|
|
2487
|
+
*/
|
|
2488
|
+
"weekStartsOn"?: number;
|
|
2489
|
+
"wrapperClass"?: string;
|
|
2490
|
+
"wrapperId"?: string;
|
|
2491
|
+
}
|
|
2050
2492
|
/**
|
|
2051
2493
|
* Panel half of `branch-slot-picker`.
|
|
2052
2494
|
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
@@ -2063,7 +2505,7 @@ declare namespace LocalJSX {
|
|
|
2063
2505
|
/**
|
|
2064
2506
|
* @default []
|
|
2065
2507
|
*/
|
|
2066
|
-
"days"?:
|
|
2508
|
+
"days"?: BranchSlotDay1[];
|
|
2067
2509
|
/**
|
|
2068
2510
|
* @default 'ltr'
|
|
2069
2511
|
*/
|
|
@@ -2129,6 +2571,14 @@ declare namespace LocalJSX {
|
|
|
2129
2571
|
*/
|
|
2130
2572
|
"defaultValue"?: string;
|
|
2131
2573
|
"departmentId"?: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* One-off blackout dates as `YYYY-MM-DD`, same accepted shapes as above.
|
|
2576
|
+
*/
|
|
2577
|
+
"disabledDates"?: string | string[];
|
|
2578
|
+
/**
|
|
2579
|
+
* Weekdays the branch never books on, `0` Sunday … `6` Saturday. Accepts an array or a `"5,6"` string. Matching days stay visible but unselectable — see `~lib/slot-day-rules` for why they are not simply dropped.
|
|
2580
|
+
*/
|
|
2581
|
+
"disabledWeekdays"?: string | number[];
|
|
2132
2582
|
/**
|
|
2133
2583
|
* Optional — omit for standalone use and listen to `slotChange` instead.
|
|
2134
2584
|
*/
|
|
@@ -2155,6 +2605,16 @@ declare namespace LocalJSX {
|
|
|
2155
2605
|
* @default {}
|
|
2156
2606
|
*/
|
|
2157
2607
|
"localization"?: FormInputLocalization;
|
|
2608
|
+
/**
|
|
2609
|
+
* Tallest the panel may get before it scrolls. Also capped to the viewport.
|
|
2610
|
+
* @default 460
|
|
2611
|
+
*/
|
|
2612
|
+
"maxPanelHeight"?: number;
|
|
2613
|
+
/**
|
|
2614
|
+
* Floor for the panel width on desktop. The panel is portaled to `<body>` and positioned fixed, so it is free to be wider than the field — and than the form around it — which is the point: a two-column form gives the field ~320px, which squeezed the day strip and the time grid into something that read as clipped. Capped to the viewport at open time.
|
|
2615
|
+
* @default 420
|
|
2616
|
+
*/
|
|
2617
|
+
"minPanelWidth"?: number;
|
|
2158
2618
|
/**
|
|
2159
2619
|
* Field name. Only meaningful when `form` is supplied.
|
|
2160
2620
|
* @default 'bookingSlot'
|
|
@@ -2163,7 +2623,7 @@ declare namespace LocalJSX {
|
|
|
2163
2623
|
/**
|
|
2164
2624
|
* Fires on every confirmed day+time selection. The standalone contract.
|
|
2165
2625
|
*/
|
|
2166
|
-
"onSlotChange"?: (event: BranchSlotPickerCustomEvent<
|
|
2626
|
+
"onSlotChange"?: (event: BranchSlotPickerCustomEvent<BranchSlotSelection1>) => void;
|
|
2167
2627
|
"wrapperClass"?: string;
|
|
2168
2628
|
"wrapperId"?: string;
|
|
2169
2629
|
}
|
|
@@ -3515,6 +3975,44 @@ declare namespace LocalJSX {
|
|
|
3515
3975
|
"verbose"?: boolean;
|
|
3516
3976
|
}
|
|
3517
3977
|
|
|
3978
|
+
interface BranchDateDropdownAttributes {
|
|
3979
|
+
"name": string;
|
|
3980
|
+
"isOpen": boolean;
|
|
3981
|
+
"direction": string;
|
|
3982
|
+
"status": 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
3983
|
+
"monthKey": string;
|
|
3984
|
+
"monthDirection": number;
|
|
3985
|
+
"canGoPrev": boolean;
|
|
3986
|
+
"canGoNext": boolean;
|
|
3987
|
+
"step": BranchDateStep;
|
|
3988
|
+
"activeDate": string;
|
|
3989
|
+
"selectedRaw": string;
|
|
3990
|
+
"today": string;
|
|
3991
|
+
"weekStart": number;
|
|
3992
|
+
"idleText": string;
|
|
3993
|
+
}
|
|
3994
|
+
interface BranchDatePickerAttributes {
|
|
3995
|
+
"name": string;
|
|
3996
|
+
"calendarApi": string;
|
|
3997
|
+
"companyId": string;
|
|
3998
|
+
"branchId": string;
|
|
3999
|
+
"departmentId": string;
|
|
4000
|
+
"brandId": string;
|
|
4001
|
+
"daysAhead": number;
|
|
4002
|
+
"disabledWeekdays": string | number[];
|
|
4003
|
+
"disabledDates": string | string[];
|
|
4004
|
+
"weekStartsOn": number;
|
|
4005
|
+
"gap": number;
|
|
4006
|
+
"minPanelWidth": number;
|
|
4007
|
+
"maxPanelHeight": number;
|
|
4008
|
+
"label": string;
|
|
4009
|
+
"wrapperId": string;
|
|
4010
|
+
"wrapperClass": string;
|
|
4011
|
+
"isRequired": boolean;
|
|
4012
|
+
"isDisabled": boolean;
|
|
4013
|
+
"language": LanguageKeys;
|
|
4014
|
+
"defaultValue": string;
|
|
4015
|
+
}
|
|
3518
4016
|
interface BranchSlotDropdownAttributes {
|
|
3519
4017
|
"name": string;
|
|
3520
4018
|
"isOpen": boolean;
|
|
@@ -3532,7 +4030,11 @@ declare namespace LocalJSX {
|
|
|
3532
4030
|
"departmentId": string;
|
|
3533
4031
|
"brandId": string;
|
|
3534
4032
|
"daysAhead": number;
|
|
4033
|
+
"disabledWeekdays": string | number[];
|
|
4034
|
+
"disabledDates": string | string[];
|
|
3535
4035
|
"gap": number;
|
|
4036
|
+
"minPanelWidth": number;
|
|
4037
|
+
"maxPanelHeight": number;
|
|
3536
4038
|
"label": string;
|
|
3537
4039
|
"wrapperId": string;
|
|
3538
4040
|
"wrapperClass": string;
|
|
@@ -4103,6 +4605,8 @@ declare namespace LocalJSX {
|
|
|
4103
4605
|
}
|
|
4104
4606
|
|
|
4105
4607
|
interface IntrinsicElements {
|
|
4608
|
+
"branch-date-dropdown": Omit<BranchDateDropdown, keyof BranchDateDropdownAttributes> & { [K in keyof BranchDateDropdown & keyof BranchDateDropdownAttributes]?: BranchDateDropdown[K] } & { [K in keyof BranchDateDropdown & keyof BranchDateDropdownAttributes as `attr:${K}`]?: BranchDateDropdownAttributes[K] } & { [K in keyof BranchDateDropdown & keyof BranchDateDropdownAttributes as `prop:${K}`]?: BranchDateDropdown[K] };
|
|
4609
|
+
"branch-date-picker": Omit<BranchDatePicker, keyof BranchDatePickerAttributes> & { [K in keyof BranchDatePicker & keyof BranchDatePickerAttributes]?: BranchDatePicker[K] } & { [K in keyof BranchDatePicker & keyof BranchDatePickerAttributes as `attr:${K}`]?: BranchDatePickerAttributes[K] } & { [K in keyof BranchDatePicker & keyof BranchDatePickerAttributes as `prop:${K}`]?: BranchDatePicker[K] };
|
|
4106
4610
|
"branch-slot-dropdown": Omit<BranchSlotDropdown, keyof BranchSlotDropdownAttributes> & { [K in keyof BranchSlotDropdown & keyof BranchSlotDropdownAttributes]?: BranchSlotDropdown[K] } & { [K in keyof BranchSlotDropdown & keyof BranchSlotDropdownAttributes as `attr:${K}`]?: BranchSlotDropdownAttributes[K] } & { [K in keyof BranchSlotDropdown & keyof BranchSlotDropdownAttributes as `prop:${K}`]?: BranchSlotDropdown[K] };
|
|
4107
4611
|
"branch-slot-picker": Omit<BranchSlotPicker, keyof BranchSlotPickerAttributes> & { [K in keyof BranchSlotPicker & keyof BranchSlotPickerAttributes]?: BranchSlotPicker[K] } & { [K in keyof BranchSlotPicker & keyof BranchSlotPickerAttributes as `attr:${K}`]?: BranchSlotPickerAttributes[K] } & { [K in keyof BranchSlotPicker & keyof BranchSlotPickerAttributes as `prop:${K}`]?: BranchSlotPicker[K] };
|
|
4108
4612
|
"dead-stock-lookup": Omit<DeadStockLookup, keyof DeadStockLookupAttributes> & { [K in keyof DeadStockLookup & keyof DeadStockLookupAttributes]?: DeadStockLookup[K] } & { [K in keyof DeadStockLookup & keyof DeadStockLookupAttributes as `attr:${K}`]?: DeadStockLookupAttributes[K] } & { [K in keyof DeadStockLookup & keyof DeadStockLookupAttributes as `prop:${K}`]?: DeadStockLookup[K] };
|
|
@@ -4165,6 +4669,29 @@ export { LocalJSX as JSX };
|
|
|
4165
4669
|
declare module "@stencil/core" {
|
|
4166
4670
|
export namespace JSX {
|
|
4167
4671
|
interface IntrinsicElements {
|
|
4672
|
+
/**
|
|
4673
|
+
* Panel half of `branch-date-picker`.
|
|
4674
|
+
* Two panes on one horizontal track — a month grid, then that day's times —
|
|
4675
|
+
* rather than the two stacked sections `branch-slot-dropdown` uses. Only one
|
|
4676
|
+
* decision is on screen at a time, which is the point of the date-picker
|
|
4677
|
+
* variant: a customer who has met a month calendar before recognises step one
|
|
4678
|
+
* immediately, and step two arrives already scoped to the day they picked.
|
|
4679
|
+
* Mounted on `document.body` by `shift-portal` and positioned through the
|
|
4680
|
+
* `--branch-date-*` variables the picker sets, exactly as the slot panel is.
|
|
4681
|
+
*/
|
|
4682
|
+
"branch-date-dropdown": LocalJSX.IntrinsicElements["branch-date-dropdown"] & JSXBase.HTMLAttributes<HTMLBranchDateDropdownElement>;
|
|
4683
|
+
/**
|
|
4684
|
+
* Branch-aware booking slot field, month-calendar variant.
|
|
4685
|
+
* Same contract and same data as `branch-slot-picker` — the same endpoint, the
|
|
4686
|
+
* same `slotChange` payload, the same standalone-without-a-form behaviour. The
|
|
4687
|
+
* difference is entirely in the panel: a month grid first, then that day's
|
|
4688
|
+
* times, on a sliding track. Customers who have never used a horizontal day
|
|
4689
|
+
* strip have used a month calendar, and the second step arrives already scoped
|
|
4690
|
+
* to one day rather than sitting under the first.
|
|
4691
|
+
* The two are meant to be interchangeable, so a deployment can pick whichever
|
|
4692
|
+
* its audience reads faster without anything downstream changing.
|
|
4693
|
+
*/
|
|
4694
|
+
"branch-date-picker": LocalJSX.IntrinsicElements["branch-date-picker"] & JSXBase.HTMLAttributes<HTMLBranchDatePickerElement>;
|
|
4168
4695
|
/**
|
|
4169
4696
|
* Panel half of `branch-slot-picker`.
|
|
4170
4697
|
* Mounted on `document.body` by `shift-portal` and positioned through the
|