adp-web-components 0.1.57 → 0.1.59
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/decode-time-offset-DqzP0mck.js +37 -0
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/form-date-picker.cjs.entry.js +221 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +809 -0
- package/dist/cjs/{form-input-prefix-BEKoXMuK.js → form-input-label-meHUwu3m.js} +0 -9
- package/dist/cjs/form-input-prefix-RFgXEC1Q.js +18 -0
- package/dist/cjs/form-input_4.cjs.entry.js +31 -14
- package/dist/cjs/form-switch.cjs.entry.js +2 -2
- package/dist/cjs/form-time-picker.cjs.entry.js +165 -0
- package/dist/cjs/general-inquiry-form.cjs.entry.js +11 -9
- package/dist/cjs/{get-local-language-CLEoE4A4.js → get-local-language-CMptyFxH.js} +1 -1
- package/dist/cjs/index-D5c513Xn.js +22147 -0
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/{loader-icon-8WtBJ-H1.js → loader-icon-qrSyqpQO.js} +49 -26
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +3 -3
- package/dist/cjs/part-lookup.cjs.entry.js +3 -3
- package/dist/cjs/service-booking-form.cjs.entry.js +21 -194
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +10 -10
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +11 -9
- package/dist/cjs/state-object-B_0-oj8G.js +243 -0
- package/dist/cjs/test-drive-form.cjs.entry.js +11 -9
- package/dist/cjs/{type-DlWZZ9uC.js → type-B8LchmnL.js} +1 -1
- package/dist/cjs/{type-VgtSVhXd.js → type-BqNpIYcE.js} +1 -1
- package/dist/cjs/{type-CG7yWUpY.js → type-BrzZ5GMr.js} +1 -1
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +24 -24
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +14 -11
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/VehicleImageViewer.js +50 -0
- package/dist/collection/components/form-elements/form-date-picker-legacy.js +498 -0
- package/dist/collection/components/form-elements/form-dialog.js +3 -3
- package/dist/collection/components/form-elements/form-input.js +95 -5
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-phone-number.js +2 -2
- package/dist/collection/components/form-elements/form-picker-input.js +478 -0
- package/dist/collection/components/form-elements/form-shadow-input.js +24 -1
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +397 -0
- package/dist/collection/components/form-elements/form-vin-input.js +5 -4
- package/dist/collection/components/forms/defaults/mappers.js +72 -0
- package/dist/collection/components/forms/defaults/style.css +1 -1
- package/dist/collection/components/forms/defaults/validation.js +29 -1
- package/dist/collection/components/forms/general-inquiry.js +6 -6
- package/dist/collection/components/forms/service-booking.js +21 -21
- package/dist/collection/components/forms/ssc-lookup.js +6 -6
- package/dist/collection/components/forms/test-drive.js +6 -6
- package/dist/collection/components/forms/vehicle-quotation/VehicleImageViewer.js +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +11 -9
- 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-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 +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-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 +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.css +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/functions.js +37 -13
- package/dist/collection/global/assets/calendar-days-icon.js +6 -0
- package/dist/collection/global/assets/clock-8-icon.js +6 -0
- package/dist/collection/global/lib/decode-time-offset.js +32 -0
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-date-picker.d.ts +11 -0
- package/dist/components/form-date-picker.js +5 -0
- package/dist/components/form-dialog.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.d.ts +11 -0
- package/dist/components/form-picker-input.js +5 -0
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.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.d.ts +11 -0
- package/dist/components/form-time-picker.js +5 -0
- package/dist/components/form-vin-input.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-Bi75CV6R.js → p-3WjYFbnU.js} +1 -1
- package/dist/components/p-64G0Y_tC.js +5 -0
- package/dist/components/p-7y7dFWS-.js +5 -0
- package/dist/components/p-BEClgvwe.js +5 -0
- package/dist/components/p-BILW0yP6.js +5 -0
- package/dist/components/p-BTqv9A1K.js +5 -0
- package/dist/components/p-B_QEyJOO.js +5 -0
- package/dist/components/{p-F0WWPE_O.js → p-Bd2-gh8M.js} +1 -1
- package/dist/components/p-BffBGA_K.js +5 -0
- package/dist/components/p-Bon4whdT.js +5 -0
- package/dist/components/{p-CCGW3XAg.js → p-BsFKuBtC.js} +1 -1
- package/dist/components/p-C-4CT4ZF.js +5 -0
- package/dist/components/p-C6WhIy7O.js +5 -0
- package/dist/components/{p-CixlAlH4.js → p-CBXAxKky.js} +1 -1
- package/dist/components/p-CEM5EBP0.js +5 -0
- package/dist/components/p-CHdx52dw.js +5 -0
- package/dist/components/p-CwQEFAEF.js +5 -0
- package/dist/components/p-Cxfsh87m.js +5 -0
- package/dist/components/p-D-tlRZMk.js +5 -0
- package/dist/components/p-D930Q75B.js +5 -0
- package/dist/components/p-DA0taq65.js +5 -0
- package/dist/components/p-DJKERvsE.js +5 -0
- package/dist/components/p-DNn44A0I.js +5 -0
- package/dist/components/{p-DEDxfC7_.js → p-Df56BNKV.js} +1 -1
- package/dist/components/p-DjDUhW2q.js +5 -0
- package/dist/components/{p-Cv4B-c-D.js → p-DkA_i--O.js} +1 -1
- package/dist/components/{p-C9NbnDFD.js → p-DqNmAqS_.js} +1 -1
- package/dist/components/p-DuNp8sSh.js +5 -0
- package/dist/components/p-NEl9bwNq.js +5 -0
- package/dist/components/p-RInF2GNQ.js +5 -0
- package/dist/components/{p-BtR-iDdk.js → p-_C-vBKCe.js} +1 -1
- package/dist/components/p-eTLWmtnI.js +5 -0
- package/dist/components/{p-C3JyRnEg.js → p-vEsQVFLN.js} +1 -1
- package/dist/components/{p-CFfmHNjt.js → p-zofQKKfh.js} +1 -1
- 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-slider.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/decode-time-offset-Cfi43WoV.js +35 -0
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +1 -1
- package/dist/esm/form-date-picker.entry.js +219 -0
- package/dist/esm/form-dialog_8.entry.js +800 -0
- package/dist/esm/{form-input-prefix-uiMTBAZe.js → form-input-label-BhD_T_C5.js} +1 -9
- package/dist/esm/form-input-prefix-C48SfAOK.js +16 -0
- package/dist/esm/form-input_4.entry.js +30 -13
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +163 -0
- package/dist/esm/general-inquiry-form.entry.js +11 -9
- package/dist/esm/{get-local-language-B3oLMQ7x.js → get-local-language-CCj6E27L.js} +1 -1
- package/dist/esm/index-BILW0yP6.js +22145 -0
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/{loader-icon-BT-MqKj_.js → loader-icon-DhBPTC5g.js} +39 -15
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +3 -3
- package/dist/esm/part-lookup.entry.js +3 -3
- package/dist/esm/service-booking-form.entry.js +21 -194
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +10 -10
- package/dist/esm/ssc-lookup-form.entry.js +11 -9
- package/dist/esm/state-object-Cwph5K2Q.js +238 -0
- package/dist/esm/test-drive-form.entry.js +11 -9
- package/dist/esm/{type-B96smKVB.js → type-BluG_k1P.js} +1 -1
- package/dist/esm/{type-CJFFdz9f.js → type-D_rpjbuj.js} +1 -1
- package/dist/esm/{type-BymH_Reb.js → type-zroDKO0U.js} +1 -1
- package/dist/esm/vehicle-accessories_7.entry.js +24 -24
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +14 -11
- package/dist/locales/vehicleLookup/saleInformation/ar.json +1 -1
- package/dist/locales/vehicleLookup/saleInformation/en.json +1 -1
- package/dist/locales/vehicleLookup/saleInformation/ku.json +1 -1
- package/dist/locales/vehicleLookup/saleInformation/ru.json +1 -1
- package/dist/shift-components/p-0a728fec.entry.js +5 -0
- package/dist/shift-components/p-0e630c66.entry.js +5 -0
- package/dist/shift-components/p-0f83786b.entry.js +5 -0
- package/dist/shift-components/p-1c93d5e6.entry.js +5 -0
- package/dist/shift-components/p-26f3e6da.entry.js +5 -0
- package/dist/shift-components/p-3a7196d4.entry.js +5 -0
- package/dist/shift-components/{p-ce1bf4af.entry.js → p-45670df9.entry.js} +1 -1
- package/dist/shift-components/{p-d9234e52.entry.js → p-4aa6f707.entry.js} +1 -1
- package/dist/shift-components/p-50fd9d29.entry.js +5 -0
- package/dist/shift-components/p-63e1e80e.entry.js +5 -0
- package/dist/shift-components/{p-c250576d.entry.js → p-67476178.entry.js} +1 -1
- package/dist/shift-components/p-683f3ab3.entry.js +5 -0
- package/dist/shift-components/p-8700e868.entry.js +5 -0
- package/dist/shift-components/p-90a6803f.entry.js +5 -0
- package/dist/shift-components/{p-DPJOLEPo.js → p-B-8v_CQL.js} +1 -1
- package/dist/shift-components/p-BILW0yP6.js +5 -0
- package/dist/shift-components/{p-C2E0OQuQ.js → p-BK4ZcuiW.js} +1 -1
- package/dist/shift-components/p-BVMG8UaH.js +5 -0
- package/dist/shift-components/{p-BQaoN4EI.js → p-Bfkguwb-.js} +1 -1
- package/dist/shift-components/p-BnQp2Q8E.js +5 -0
- package/dist/shift-components/{p-DitnhRjp.js → p-C3YLTa2J.js} +1 -1
- package/dist/shift-components/p-DXZTo2xz.js +5 -0
- package/dist/shift-components/p-Dgh-j_S7.js +5 -0
- package/dist/shift-components/p-XyQhTm0V.js +5 -0
- package/dist/shift-components/p-b4231e50.entry.js +5 -0
- package/dist/shift-components/p-c7eaf245.entry.js +5 -0
- package/dist/shift-components/{p-6f59eb5f.entry.js → p-d7da1152.entry.js} +1 -1
- package/dist/shift-components/p-f7692371.entry.js +5 -0
- package/dist/shift-components/p-f8ac59ee.entry.js +5 -0
- package/dist/shift-components/p-fac0fdb9.entry.js +5 -0
- package/dist/shift-components/p-fe02d5ed.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/form-elements/VehicleImageViewer.d.ts +7 -0
- package/dist/types/components/form-elements/form-date-picker-legacy.d.ts +44 -0
- package/dist/types/components/form-elements/form-input.d.ts +5 -0
- package/dist/types/components/form-elements/form-picker-input.d.ts +36 -0
- package/dist/types/components/form-elements/form-shadow-input.d.ts +1 -0
- package/dist/types/components/form-elements/form-time-picker-legacy.d.ts +38 -0
- package/dist/types/components/form-elements/form-vin-input.d.ts +1 -1
- package/dist/types/components/forms/defaults/mappers.d.ts +20 -0
- package/dist/types/components/forms/defaults/validation.d.ts +5 -1
- package/dist/types/components/forms/service-booking.d.ts +5 -7
- package/dist/types/components.d.ts +187 -6
- package/dist/types/features/form-hook/functions.d.ts +6 -6
- package/dist/types/global/assets/calendar-days-icon.d.ts +8 -0
- package/dist/types/global/assets/clock-8-icon.d.ts +8 -0
- package/dist/types/global/lib/decode-time-offset.d.ts +6 -0
- package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +2 -2
- package/package.json +2 -1
- package/dist/cjs/form-dialog_2.cjs.entry.js +0 -80
- package/dist/cjs/form-phone-number_5.cjs.entry.js +0 -638
- package/dist/cjs/state-object-BKYoOET2.js +0 -84
- package/dist/components/p-0RPSruUw.js +0 -5
- package/dist/components/p-AXXIpFHS.js +0 -5
- package/dist/components/p-B6oAdbSG.js +0 -5
- package/dist/components/p-B8ficu-2.js +0 -5
- package/dist/components/p-BccOXbO6.js +0 -5
- package/dist/components/p-BiWhrVwg.js +0 -5
- package/dist/components/p-CCnpN4O6.js +0 -5
- package/dist/components/p-CMIWLyy-.js +0 -5
- package/dist/components/p-CTvhIyUe.js +0 -5
- package/dist/components/p-CVPVwYky.js +0 -5
- package/dist/components/p-CY-XNpVl.js +0 -5
- package/dist/components/p-Cfv1Ad7h.js +0 -5
- package/dist/components/p-CmZX4oFn.js +0 -5
- package/dist/components/p-DDwq6NYq.js +0 -5
- package/dist/components/p-DGmPDcfO.js +0 -5
- package/dist/components/p-DnDLOq--.js +0 -5
- package/dist/components/p-Dot72Ksm.js +0 -5
- package/dist/components/p-DwlUO-mQ.js +0 -5
- package/dist/components/p-Dy_xcj4e.js +0 -5
- package/dist/components/p-HU3XmNIl.js +0 -5
- package/dist/components/p-qgWJBcxw.js +0 -5
- package/dist/components/p-uhXr4495.js +0 -5
- package/dist/esm/form-dialog_2.entry.js +0 -77
- package/dist/esm/form-phone-number_5.entry.js +0 -632
- package/dist/esm/state-object-DKRL_FzI.js +0 -79
- package/dist/shift-components/p-0e2d3d93.entry.js +0 -5
- package/dist/shift-components/p-10da80aa.entry.js +0 -5
- package/dist/shift-components/p-1ff500c4.entry.js +0 -5
- package/dist/shift-components/p-361e8b06.entry.js +0 -5
- package/dist/shift-components/p-38bb86f3.entry.js +0 -5
- package/dist/shift-components/p-39914eb3.entry.js +0 -5
- package/dist/shift-components/p-76f94eb5.entry.js +0 -5
- package/dist/shift-components/p-830b1bea.entry.js +0 -5
- package/dist/shift-components/p-835b1234.entry.js +0 -5
- package/dist/shift-components/p-92551553.entry.js +0 -5
- package/dist/shift-components/p-9c01c8ff.entry.js +0 -5
- package/dist/shift-components/p-CaFQm1Ia.js +0 -5
- package/dist/shift-components/p-Cf1rwCRV.js +0 -5
- package/dist/shift-components/p-DpDKQYgQ.js +0 -5
- package/dist/shift-components/p-a2419627.entry.js +0 -5
- package/dist/shift-components/p-a9a116b5.entry.js +0 -5
- package/dist/shift-components/p-bb5c2961.entry.js +0 -5
- package/dist/shift-components/p-bcb6b13e.entry.js +0 -5
- package/dist/shift-components/p-e06782ee.entry.js +0 -5
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { FormHook } from "../../features/form-hook/form-hook";
|
|
2
|
+
import { FormElement } from "../../features/form-hook/interface";
|
|
3
|
+
export declare class FormDatePicker implements FormElement {
|
|
4
|
+
name: string;
|
|
5
|
+
wrapperId: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
form: FormHook<any>;
|
|
9
|
+
wrapperClass: string;
|
|
10
|
+
staticValue?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
language?: string;
|
|
13
|
+
minDate?: string;
|
|
14
|
+
maxDate?: string;
|
|
15
|
+
disabledDates?: (date: Date) => boolean;
|
|
16
|
+
firstDayOfWeek?: number;
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
selectedValue: string;
|
|
19
|
+
viewYear: number;
|
|
20
|
+
viewMonth: number;
|
|
21
|
+
openUpwards: boolean;
|
|
22
|
+
el: HTMLElement;
|
|
23
|
+
componentWillLoad(): Promise<void>;
|
|
24
|
+
onStaticValueChange(newStaticValue?: string): Promise<void>;
|
|
25
|
+
componentDidLoad(): Promise<void>;
|
|
26
|
+
disconnectedCallback(): Promise<void>;
|
|
27
|
+
reset(newValue?: string): void;
|
|
28
|
+
handleOutsideClick: (event: MouseEvent) => void;
|
|
29
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
30
|
+
toggleDropdown: () => void;
|
|
31
|
+
adjustDropdownPosition(): void;
|
|
32
|
+
private toDateString;
|
|
33
|
+
private isDateDisabled;
|
|
34
|
+
private getCalendarDays;
|
|
35
|
+
private getWeekDayNames;
|
|
36
|
+
private getMonthYearTitle;
|
|
37
|
+
private formatDisplayValue;
|
|
38
|
+
private canGoPrev;
|
|
39
|
+
private canGoNext;
|
|
40
|
+
selectDate: (year: number, month: number, day: number) => void;
|
|
41
|
+
prevMonth: () => void;
|
|
42
|
+
nextMonth: () => void;
|
|
43
|
+
render(): any;
|
|
44
|
+
}
|
|
@@ -12,6 +12,10 @@ export declare class FormInput implements FormElement {
|
|
|
12
12
|
inputProps?: any;
|
|
13
13
|
type?: HTMLInputElement['type'];
|
|
14
14
|
defaultValue: string;
|
|
15
|
+
formatter?: (value: string) => string;
|
|
16
|
+
icon?: any;
|
|
17
|
+
iconAction?: () => void;
|
|
18
|
+
iconPosition?: 'start' | 'end';
|
|
15
19
|
prefixWidth: number;
|
|
16
20
|
el: HTMLElement;
|
|
17
21
|
private inputRef;
|
|
@@ -20,5 +24,6 @@ export declare class FormInput implements FormElement {
|
|
|
20
24
|
componentDidLoad(): Promise<void>;
|
|
21
25
|
disconnectedCallback(): Promise<void>;
|
|
22
26
|
reset(newValue?: string): void;
|
|
27
|
+
onInputChange: (event: InputEvent) => void;
|
|
23
28
|
render(): any;
|
|
24
29
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FormHook } from "../../features/form-hook/form-hook";
|
|
2
|
+
import { FormElement } from "../../features/form-hook/interface";
|
|
3
|
+
import { DateTypes } from "../../global/lib/decode-time-offset";
|
|
4
|
+
export declare class FormPickerInput implements FormElement {
|
|
5
|
+
name: string;
|
|
6
|
+
format?: string;
|
|
7
|
+
wrapperId: string;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
form: FormHook<any>;
|
|
11
|
+
inputPrefix: string;
|
|
12
|
+
wrapperClass: string;
|
|
13
|
+
staticValue?: string;
|
|
14
|
+
inputProps?: any;
|
|
15
|
+
max?: string | number[];
|
|
16
|
+
min?: string | number[];
|
|
17
|
+
type?: DateTypes;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
formatter?: (value: string) => string;
|
|
20
|
+
icon?: any;
|
|
21
|
+
iconAction?: () => void;
|
|
22
|
+
iconPosition?: 'start' | 'end';
|
|
23
|
+
prefixWidth: number;
|
|
24
|
+
displayedValue?: string;
|
|
25
|
+
el: HTMLElement;
|
|
26
|
+
private inputRef;
|
|
27
|
+
componentWillLoad(): Promise<void>;
|
|
28
|
+
onStaticValueChange(newStaticValue?: string, notInitialLoad?: boolean): Promise<void>;
|
|
29
|
+
componentDidLoad(): Promise<void>;
|
|
30
|
+
disconnectedCallback(): Promise<void>;
|
|
31
|
+
updateDisplayValue: () => void;
|
|
32
|
+
reset(newValue?: string): void;
|
|
33
|
+
onInputChange: (event: InputEvent) => void;
|
|
34
|
+
onInputClick: () => void;
|
|
35
|
+
render(): any;
|
|
36
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FormHook } from "../../features/form-hook/form-hook";
|
|
2
|
+
import { FormElement } from "../../features/form-hook/interface";
|
|
3
|
+
export declare class FormTimePicker implements FormElement {
|
|
4
|
+
name: string;
|
|
5
|
+
wrapperId: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
form: FormHook<any>;
|
|
9
|
+
wrapperClass: string;
|
|
10
|
+
staticValue?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
minTime?: string;
|
|
13
|
+
maxTime?: string;
|
|
14
|
+
minuteStep?: number;
|
|
15
|
+
isOpen: boolean;
|
|
16
|
+
selectedValue: string;
|
|
17
|
+
openUpwards: boolean;
|
|
18
|
+
el: HTMLElement;
|
|
19
|
+
componentWillLoad(): Promise<void>;
|
|
20
|
+
onStaticValueChange(newStaticValue?: string): Promise<void>;
|
|
21
|
+
componentDidLoad(): Promise<void>;
|
|
22
|
+
disconnectedCallback(): Promise<void>;
|
|
23
|
+
reset(newValue?: string): void;
|
|
24
|
+
handleOutsideClick: (event: MouseEvent) => void;
|
|
25
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
26
|
+
toggleDropdown: () => void;
|
|
27
|
+
adjustDropdownPosition(): void;
|
|
28
|
+
private scrollToSelected;
|
|
29
|
+
private toTimeMinutes;
|
|
30
|
+
private isHourDisabled;
|
|
31
|
+
private isMinuteDisabled;
|
|
32
|
+
private getSelectedHour;
|
|
33
|
+
private getSelectedMinute;
|
|
34
|
+
private formatTime;
|
|
35
|
+
selectHour: (hour: number) => void;
|
|
36
|
+
selectMinute: (minute: number) => void;
|
|
37
|
+
render(): any;
|
|
38
|
+
}
|
|
@@ -13,7 +13,7 @@ export declare class FormVinInput implements FormElement {
|
|
|
13
13
|
defaultValue: string;
|
|
14
14
|
useOcr?: boolean;
|
|
15
15
|
readSticker?: boolean;
|
|
16
|
-
scannerIcon?: '' | 'qr-code';
|
|
16
|
+
scannerIcon?: '' | 'qr-code' | 'camera';
|
|
17
17
|
prefixWidth: number;
|
|
18
18
|
el: HTMLElement;
|
|
19
19
|
private inputRef;
|
|
@@ -17,8 +17,28 @@ export declare const getDefaultMappers: (stateObject: Record<string, any>) => {
|
|
|
17
17
|
vin: ({ props }: {
|
|
18
18
|
props: any;
|
|
19
19
|
}) => any;
|
|
20
|
+
vehicleImage: ({ form }: {
|
|
21
|
+
form: any;
|
|
22
|
+
}) => any;
|
|
20
23
|
phone: ({ props, isLoading }: {
|
|
21
24
|
props: any;
|
|
22
25
|
isLoading: any;
|
|
23
26
|
}) => any;
|
|
27
|
+
vehicle: ({ form, language, props }: {
|
|
28
|
+
form: any;
|
|
29
|
+
language: any;
|
|
30
|
+
props: any;
|
|
31
|
+
}) => any;
|
|
32
|
+
companyBranchId: ({ form, language, props }: {
|
|
33
|
+
form: any;
|
|
34
|
+
language: any;
|
|
35
|
+
props: any;
|
|
36
|
+
}) => any;
|
|
37
|
+
date: ({ props }: {
|
|
38
|
+
props: any;
|
|
39
|
+
}) => any;
|
|
40
|
+
time: ({ language, props }: {
|
|
41
|
+
language: any;
|
|
42
|
+
props: any;
|
|
43
|
+
}) => any;
|
|
24
44
|
};
|
|
@@ -10,11 +10,15 @@ export declare const y: {
|
|
|
10
10
|
condition: (name: string) => string;
|
|
11
11
|
placeholder: (name: string) => string;
|
|
12
12
|
};
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const getDefaultValidations: (stateObject: Record<string, any>) => {
|
|
14
14
|
name: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
15
15
|
lastName: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
16
16
|
message: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
17
17
|
email: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
18
18
|
vin: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
19
19
|
phone: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
20
|
+
vehicle: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
21
|
+
companyBranchId: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
22
|
+
date: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
23
|
+
time: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
20
24
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ServiceBooking } from './service-booking/validations';
|
|
3
|
-
import { FormHook, FormHookInterface, FormElementStructure } from "../../features/form-hook/index";
|
|
1
|
+
import { FormElementStructure, FormHook, FormHookInterface } from "../../features/form-hook/index";
|
|
4
2
|
import { GeneralFormLocal, LanguageKeys, MultiLingual } from "../../features/multi-lingual/index";
|
|
5
|
-
export declare class ServiceBookingForm implements FormHookInterface<
|
|
3
|
+
export declare class ServiceBookingForm implements FormHookInterface<any>, MultiLingual {
|
|
6
4
|
language: LanguageKeys;
|
|
7
5
|
locale: GeneralFormLocal;
|
|
8
6
|
changeLanguage(newLanguage: LanguageKeys): Promise<void>;
|
|
@@ -16,14 +14,14 @@ export declare class ServiceBookingForm implements FormHookInterface<ServiceBook
|
|
|
16
14
|
loadingChanges: (loading: boolean) => void;
|
|
17
15
|
errorCallback: (error: any, message: string) => void;
|
|
18
16
|
successCallback: (data: any, message?: string) => void;
|
|
19
|
-
structure: FormElementStructure<
|
|
17
|
+
structure: FormElementStructure<any> | undefined;
|
|
20
18
|
fields?: object;
|
|
21
19
|
el: HTMLElement;
|
|
22
20
|
setIsLoading(isLoading: boolean): void;
|
|
23
21
|
setErrorCallback(error: any): void;
|
|
24
22
|
setSuccessCallback(data: any): void;
|
|
25
23
|
componentWillLoad(): Promise<void>;
|
|
26
|
-
formSubmit(formValues:
|
|
24
|
+
formSubmit(formValues: any): Promise<void>;
|
|
27
25
|
componentDidLoad(): Promise<void>;
|
|
28
26
|
getForm(): Promise<FormHook<any>>;
|
|
29
27
|
submit(): Promise<void>;
|
|
@@ -36,6 +34,6 @@ export declare class ServiceBookingForm implements FormHookInterface<ServiceBook
|
|
|
36
34
|
disableScrollToTop?: boolean;
|
|
37
35
|
isMobileForm: boolean;
|
|
38
36
|
getMobileToken?: () => string;
|
|
39
|
-
form: FormHook<
|
|
37
|
+
form: FormHook<any>;
|
|
40
38
|
render(): any;
|
|
41
39
|
}
|
|
@@ -12,9 +12,9 @@ import { PartLookupDTO } from "./global/types/generated/part/part-lookup-dto";
|
|
|
12
12
|
import { PartLookupMock } from "./features/part-lookup-components/index";
|
|
13
13
|
import { FormElementMapper, FormElementStructure, FormHook, FormSelectFetcher, FormSelectItem, PhoneValidator } from "./features/form-hook/index";
|
|
14
14
|
import { FormHook as FormHook1 } from "./features/form-hook/form-hook";
|
|
15
|
+
import { DateTypes } from "./global/lib/decode-time-offset";
|
|
15
16
|
import { InformationTableColumn } from "./components/components/information-table";
|
|
16
17
|
import { ActiveElement } from "./components/part-lookup/part-lookup";
|
|
17
|
-
import { serviceBookingElementNames } from "./components/forms/service-booking/element-mapper";
|
|
18
18
|
import { AccordionItem } from "./components/components/shift-accordion";
|
|
19
19
|
import { VehicleLookupDTO } from "./global/types/generated/vehicle-lookup/vehicle-lookup-dto";
|
|
20
20
|
import { VehicleLookupMock } from "./features/vehicle-lookup-component/index";
|
|
@@ -31,9 +31,9 @@ export { PartLookupDTO } from "./global/types/generated/part/part-lookup-dto";
|
|
|
31
31
|
export { PartLookupMock } from "./features/part-lookup-components/index";
|
|
32
32
|
export { FormElementMapper, FormElementStructure, FormHook, FormSelectFetcher, FormSelectItem, PhoneValidator } from "./features/form-hook/index";
|
|
33
33
|
export { FormHook as FormHook1 } from "./features/form-hook/form-hook";
|
|
34
|
+
export { DateTypes } from "./global/lib/decode-time-offset";
|
|
34
35
|
export { InformationTableColumn } from "./components/components/information-table";
|
|
35
36
|
export { ActiveElement } from "./components/part-lookup/part-lookup";
|
|
36
|
-
export { serviceBookingElementNames } from "./components/forms/service-booking/element-mapper";
|
|
37
37
|
export { AccordionItem } from "./components/components/shift-accordion";
|
|
38
38
|
export { VehicleLookupDTO } from "./global/types/generated/vehicle-lookup/vehicle-lookup-dto";
|
|
39
39
|
export { VehicleLookupMock } from "./features/vehicle-lookup-component/index";
|
|
@@ -139,6 +139,27 @@ export namespace Components {
|
|
|
139
139
|
"wrapperClass": string;
|
|
140
140
|
"wrapperId": string;
|
|
141
141
|
}
|
|
142
|
+
interface FormDatePicker {
|
|
143
|
+
"defaultValue"?: string;
|
|
144
|
+
"disabledDates"?: (date: Date) => boolean;
|
|
145
|
+
/**
|
|
146
|
+
* @default 0
|
|
147
|
+
*/
|
|
148
|
+
"firstDayOfWeek"?: number;
|
|
149
|
+
"form": FormHook<any>;
|
|
150
|
+
"isDisabled"?: boolean;
|
|
151
|
+
"isLoading"?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* @default 'en'
|
|
154
|
+
*/
|
|
155
|
+
"language"?: string;
|
|
156
|
+
"maxDate"?: string;
|
|
157
|
+
"minDate"?: string;
|
|
158
|
+
"name": string;
|
|
159
|
+
"staticValue"?: string;
|
|
160
|
+
"wrapperClass": string;
|
|
161
|
+
"wrapperId": string;
|
|
162
|
+
}
|
|
142
163
|
interface FormDialog {
|
|
143
164
|
"closeText": string;
|
|
144
165
|
"dialogClosed": () => void;
|
|
@@ -149,6 +170,13 @@ export namespace Components {
|
|
|
149
170
|
interface FormInput {
|
|
150
171
|
"defaultValue": string;
|
|
151
172
|
"form": FormHook<any>;
|
|
173
|
+
"formatter"?: (value: string) => string;
|
|
174
|
+
"icon"?: any;
|
|
175
|
+
"iconAction"?: () => void;
|
|
176
|
+
/**
|
|
177
|
+
* @default 'end'
|
|
178
|
+
*/
|
|
179
|
+
"iconPosition"?: 'start' | 'end';
|
|
152
180
|
"inputPrefix": string;
|
|
153
181
|
/**
|
|
154
182
|
* @default {}
|
|
@@ -178,6 +206,35 @@ export namespace Components {
|
|
|
178
206
|
"wrapperClass": string;
|
|
179
207
|
"wrapperId": string;
|
|
180
208
|
}
|
|
209
|
+
interface FormPickerInput {
|
|
210
|
+
"defaultValue": string;
|
|
211
|
+
"form": FormHook<any>;
|
|
212
|
+
"format"?: string;
|
|
213
|
+
"formatter"?: (value: string) => string;
|
|
214
|
+
"icon"?: any;
|
|
215
|
+
"iconAction"?: () => void;
|
|
216
|
+
/**
|
|
217
|
+
* @default 'end'
|
|
218
|
+
*/
|
|
219
|
+
"iconPosition"?: 'start' | 'end';
|
|
220
|
+
"inputPrefix": string;
|
|
221
|
+
/**
|
|
222
|
+
* @default {}
|
|
223
|
+
*/
|
|
224
|
+
"inputProps"?: any;
|
|
225
|
+
"isDisabled"?: boolean;
|
|
226
|
+
"isLoading"?: boolean;
|
|
227
|
+
"max"?: string | number[];
|
|
228
|
+
"min"?: string | number[];
|
|
229
|
+
"name": string;
|
|
230
|
+
"staticValue"?: string;
|
|
231
|
+
/**
|
|
232
|
+
* @default 'datetime-local'
|
|
233
|
+
*/
|
|
234
|
+
"type"?: DateTypes;
|
|
235
|
+
"wrapperClass": string;
|
|
236
|
+
"wrapperId": string;
|
|
237
|
+
}
|
|
181
238
|
interface FormSelect {
|
|
182
239
|
/**
|
|
183
240
|
* @default false
|
|
@@ -209,6 +266,10 @@ export namespace Components {
|
|
|
209
266
|
interface FormShadowInput {
|
|
210
267
|
"form": FormHook<any>;
|
|
211
268
|
"name": string;
|
|
269
|
+
/**
|
|
270
|
+
* @default 'string'
|
|
271
|
+
*/
|
|
272
|
+
"type"?: string;
|
|
212
273
|
"value": string;
|
|
213
274
|
}
|
|
214
275
|
interface FormStructure {
|
|
@@ -268,6 +329,22 @@ export namespace Components {
|
|
|
268
329
|
"wrapperClass": string;
|
|
269
330
|
"wrapperId": string;
|
|
270
331
|
}
|
|
332
|
+
interface FormTimePicker {
|
|
333
|
+
"defaultValue"?: string;
|
|
334
|
+
"form": FormHook<any>;
|
|
335
|
+
"isDisabled"?: boolean;
|
|
336
|
+
"isLoading"?: boolean;
|
|
337
|
+
"maxTime"?: string;
|
|
338
|
+
"minTime"?: string;
|
|
339
|
+
/**
|
|
340
|
+
* @default 1
|
|
341
|
+
*/
|
|
342
|
+
"minuteStep"?: number;
|
|
343
|
+
"name": string;
|
|
344
|
+
"staticValue"?: string;
|
|
345
|
+
"wrapperClass": string;
|
|
346
|
+
"wrapperId": string;
|
|
347
|
+
}
|
|
271
348
|
interface FormVinInput {
|
|
272
349
|
"defaultValue": string;
|
|
273
350
|
"form": FormHook<any>;
|
|
@@ -283,7 +360,7 @@ export namespace Components {
|
|
|
283
360
|
/**
|
|
284
361
|
* @default ''
|
|
285
362
|
*/
|
|
286
|
-
"scannerIcon"?: '' | 'qr-code';
|
|
363
|
+
"scannerIcon"?: '' | 'qr-code' | 'camera';
|
|
287
364
|
"staticValue"?: string;
|
|
288
365
|
"useOcr"?: boolean;
|
|
289
366
|
"wrapperClass": string;
|
|
@@ -464,7 +541,7 @@ export namespace Components {
|
|
|
464
541
|
"isMobileForm": boolean;
|
|
465
542
|
"language": LanguageKeys;
|
|
466
543
|
"loadingChanges": (loading: boolean) => void;
|
|
467
|
-
"structure": FormElementStructure<
|
|
544
|
+
"structure": FormElementStructure<any> | undefined;
|
|
468
545
|
"structureUrl"?: string;
|
|
469
546
|
"submit": () => Promise<void>;
|
|
470
547
|
"successCallback": (data: any, message?: string) => void;
|
|
@@ -991,6 +1068,12 @@ declare global {
|
|
|
991
1068
|
prototype: HTMLFormCheckboxElement;
|
|
992
1069
|
new (): HTMLFormCheckboxElement;
|
|
993
1070
|
};
|
|
1071
|
+
interface HTMLFormDatePickerElement extends Components.FormDatePicker, HTMLStencilElement {
|
|
1072
|
+
}
|
|
1073
|
+
var HTMLFormDatePickerElement: {
|
|
1074
|
+
prototype: HTMLFormDatePickerElement;
|
|
1075
|
+
new (): HTMLFormDatePickerElement;
|
|
1076
|
+
};
|
|
994
1077
|
interface HTMLFormDialogElement extends Components.FormDialog, HTMLStencilElement {
|
|
995
1078
|
}
|
|
996
1079
|
var HTMLFormDialogElement: {
|
|
@@ -1009,6 +1092,12 @@ declare global {
|
|
|
1009
1092
|
prototype: HTMLFormPhoneNumberElement;
|
|
1010
1093
|
new (): HTMLFormPhoneNumberElement;
|
|
1011
1094
|
};
|
|
1095
|
+
interface HTMLFormPickerInputElement extends Components.FormPickerInput, HTMLStencilElement {
|
|
1096
|
+
}
|
|
1097
|
+
var HTMLFormPickerInputElement: {
|
|
1098
|
+
prototype: HTMLFormPickerInputElement;
|
|
1099
|
+
new (): HTMLFormPickerInputElement;
|
|
1100
|
+
};
|
|
1012
1101
|
interface HTMLFormSelectElement extends Components.FormSelect, HTMLStencilElement {
|
|
1013
1102
|
}
|
|
1014
1103
|
var HTMLFormSelectElement: {
|
|
@@ -1051,6 +1140,12 @@ declare global {
|
|
|
1051
1140
|
prototype: HTMLFormTextAreaElement;
|
|
1052
1141
|
new (): HTMLFormTextAreaElement;
|
|
1053
1142
|
};
|
|
1143
|
+
interface HTMLFormTimePickerElement extends Components.FormTimePicker, HTMLStencilElement {
|
|
1144
|
+
}
|
|
1145
|
+
var HTMLFormTimePickerElement: {
|
|
1146
|
+
prototype: HTMLFormTimePickerElement;
|
|
1147
|
+
new (): HTMLFormTimePickerElement;
|
|
1148
|
+
};
|
|
1054
1149
|
interface HTMLFormVinInputElement extends Components.FormVinInput, HTMLStencilElement {
|
|
1055
1150
|
}
|
|
1056
1151
|
var HTMLFormVinInputElement: {
|
|
@@ -1218,9 +1313,11 @@ declare global {
|
|
|
1218
1313
|
"distributor-lookup": HTMLDistributorLookupElement;
|
|
1219
1314
|
"flexible-container": HTMLFlexibleContainerElement;
|
|
1220
1315
|
"form-checkbox": HTMLFormCheckboxElement;
|
|
1316
|
+
"form-date-picker": HTMLFormDatePickerElement;
|
|
1221
1317
|
"form-dialog": HTMLFormDialogElement;
|
|
1222
1318
|
"form-input": HTMLFormInputElement;
|
|
1223
1319
|
"form-phone-number": HTMLFormPhoneNumberElement;
|
|
1320
|
+
"form-picker-input": HTMLFormPickerInputElement;
|
|
1224
1321
|
"form-select": HTMLFormSelectElement;
|
|
1225
1322
|
"form-shadow-input": HTMLFormShadowInputElement;
|
|
1226
1323
|
"form-structure": HTMLFormStructureElement;
|
|
@@ -1228,6 +1325,7 @@ declare global {
|
|
|
1228
1325
|
"form-submit": HTMLFormSubmitElement;
|
|
1229
1326
|
"form-switch": HTMLFormSwitchElement;
|
|
1230
1327
|
"form-text-area": HTMLFormTextAreaElement;
|
|
1328
|
+
"form-time-picker": HTMLFormTimePickerElement;
|
|
1231
1329
|
"form-vin-input": HTMLFormVinInputElement;
|
|
1232
1330
|
"general-inquiry-form": HTMLGeneralInquiryFormElement;
|
|
1233
1331
|
"information-table": HTMLInformationTableElement;
|
|
@@ -1340,6 +1438,27 @@ declare namespace LocalJSX {
|
|
|
1340
1438
|
"wrapperClass"?: string;
|
|
1341
1439
|
"wrapperId"?: string;
|
|
1342
1440
|
}
|
|
1441
|
+
interface FormDatePicker {
|
|
1442
|
+
"defaultValue"?: string;
|
|
1443
|
+
"disabledDates"?: (date: Date) => boolean;
|
|
1444
|
+
/**
|
|
1445
|
+
* @default 0
|
|
1446
|
+
*/
|
|
1447
|
+
"firstDayOfWeek"?: number;
|
|
1448
|
+
"form"?: FormHook<any>;
|
|
1449
|
+
"isDisabled"?: boolean;
|
|
1450
|
+
"isLoading"?: boolean;
|
|
1451
|
+
/**
|
|
1452
|
+
* @default 'en'
|
|
1453
|
+
*/
|
|
1454
|
+
"language"?: string;
|
|
1455
|
+
"maxDate"?: string;
|
|
1456
|
+
"minDate"?: string;
|
|
1457
|
+
"name"?: string;
|
|
1458
|
+
"staticValue"?: string;
|
|
1459
|
+
"wrapperClass"?: string;
|
|
1460
|
+
"wrapperId"?: string;
|
|
1461
|
+
}
|
|
1343
1462
|
interface FormDialog {
|
|
1344
1463
|
"closeText"?: string;
|
|
1345
1464
|
"dialogClosed"?: () => void;
|
|
@@ -1350,6 +1469,13 @@ declare namespace LocalJSX {
|
|
|
1350
1469
|
interface FormInput {
|
|
1351
1470
|
"defaultValue"?: string;
|
|
1352
1471
|
"form"?: FormHook<any>;
|
|
1472
|
+
"formatter"?: (value: string) => string;
|
|
1473
|
+
"icon"?: any;
|
|
1474
|
+
"iconAction"?: () => void;
|
|
1475
|
+
/**
|
|
1476
|
+
* @default 'end'
|
|
1477
|
+
*/
|
|
1478
|
+
"iconPosition"?: 'start' | 'end';
|
|
1353
1479
|
"inputPrefix"?: string;
|
|
1354
1480
|
/**
|
|
1355
1481
|
* @default {}
|
|
@@ -1379,6 +1505,35 @@ declare namespace LocalJSX {
|
|
|
1379
1505
|
"wrapperClass"?: string;
|
|
1380
1506
|
"wrapperId"?: string;
|
|
1381
1507
|
}
|
|
1508
|
+
interface FormPickerInput {
|
|
1509
|
+
"defaultValue"?: string;
|
|
1510
|
+
"form"?: FormHook<any>;
|
|
1511
|
+
"format"?: string;
|
|
1512
|
+
"formatter"?: (value: string) => string;
|
|
1513
|
+
"icon"?: any;
|
|
1514
|
+
"iconAction"?: () => void;
|
|
1515
|
+
/**
|
|
1516
|
+
* @default 'end'
|
|
1517
|
+
*/
|
|
1518
|
+
"iconPosition"?: 'start' | 'end';
|
|
1519
|
+
"inputPrefix"?: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* @default {}
|
|
1522
|
+
*/
|
|
1523
|
+
"inputProps"?: any;
|
|
1524
|
+
"isDisabled"?: boolean;
|
|
1525
|
+
"isLoading"?: boolean;
|
|
1526
|
+
"max"?: string | number[];
|
|
1527
|
+
"min"?: string | number[];
|
|
1528
|
+
"name"?: string;
|
|
1529
|
+
"staticValue"?: string;
|
|
1530
|
+
/**
|
|
1531
|
+
* @default 'datetime-local'
|
|
1532
|
+
*/
|
|
1533
|
+
"type"?: DateTypes;
|
|
1534
|
+
"wrapperClass"?: string;
|
|
1535
|
+
"wrapperId"?: string;
|
|
1536
|
+
}
|
|
1382
1537
|
interface FormSelect {
|
|
1383
1538
|
/**
|
|
1384
1539
|
* @default false
|
|
@@ -1410,6 +1565,10 @@ declare namespace LocalJSX {
|
|
|
1410
1565
|
interface FormShadowInput {
|
|
1411
1566
|
"form"?: FormHook<any>;
|
|
1412
1567
|
"name"?: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* @default 'string'
|
|
1570
|
+
*/
|
|
1571
|
+
"type"?: string;
|
|
1413
1572
|
"value"?: string;
|
|
1414
1573
|
}
|
|
1415
1574
|
interface FormStructure {
|
|
@@ -1469,6 +1628,22 @@ declare namespace LocalJSX {
|
|
|
1469
1628
|
"wrapperClass"?: string;
|
|
1470
1629
|
"wrapperId"?: string;
|
|
1471
1630
|
}
|
|
1631
|
+
interface FormTimePicker {
|
|
1632
|
+
"defaultValue"?: string;
|
|
1633
|
+
"form"?: FormHook<any>;
|
|
1634
|
+
"isDisabled"?: boolean;
|
|
1635
|
+
"isLoading"?: boolean;
|
|
1636
|
+
"maxTime"?: string;
|
|
1637
|
+
"minTime"?: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* @default 1
|
|
1640
|
+
*/
|
|
1641
|
+
"minuteStep"?: number;
|
|
1642
|
+
"name"?: string;
|
|
1643
|
+
"staticValue"?: string;
|
|
1644
|
+
"wrapperClass"?: string;
|
|
1645
|
+
"wrapperId"?: string;
|
|
1646
|
+
}
|
|
1472
1647
|
interface FormVinInput {
|
|
1473
1648
|
"defaultValue"?: string;
|
|
1474
1649
|
"form"?: FormHook<any>;
|
|
@@ -1484,7 +1659,7 @@ declare namespace LocalJSX {
|
|
|
1484
1659
|
/**
|
|
1485
1660
|
* @default ''
|
|
1486
1661
|
*/
|
|
1487
|
-
"scannerIcon"?: '' | 'qr-code';
|
|
1662
|
+
"scannerIcon"?: '' | 'qr-code' | 'camera';
|
|
1488
1663
|
"staticValue"?: string;
|
|
1489
1664
|
"useOcr"?: boolean;
|
|
1490
1665
|
"wrapperClass"?: string;
|
|
@@ -1653,7 +1828,7 @@ declare namespace LocalJSX {
|
|
|
1653
1828
|
"isMobileForm"?: boolean;
|
|
1654
1829
|
"language"?: LanguageKeys;
|
|
1655
1830
|
"loadingChanges"?: (loading: boolean) => void;
|
|
1656
|
-
"structure"?: FormElementStructure<
|
|
1831
|
+
"structure"?: FormElementStructure<any> | undefined;
|
|
1657
1832
|
"structureUrl"?: string;
|
|
1658
1833
|
"successCallback"?: (data: any, message?: string) => void;
|
|
1659
1834
|
"theme"?: string;
|
|
@@ -2109,9 +2284,11 @@ declare namespace LocalJSX {
|
|
|
2109
2284
|
"distributor-lookup": DistributorLookup;
|
|
2110
2285
|
"flexible-container": FlexibleContainer;
|
|
2111
2286
|
"form-checkbox": FormCheckbox;
|
|
2287
|
+
"form-date-picker": FormDatePicker;
|
|
2112
2288
|
"form-dialog": FormDialog;
|
|
2113
2289
|
"form-input": FormInput;
|
|
2114
2290
|
"form-phone-number": FormPhoneNumber;
|
|
2291
|
+
"form-picker-input": FormPickerInput;
|
|
2115
2292
|
"form-select": FormSelect;
|
|
2116
2293
|
"form-shadow-input": FormShadowInput;
|
|
2117
2294
|
"form-structure": FormStructure;
|
|
@@ -2119,6 +2296,7 @@ declare namespace LocalJSX {
|
|
|
2119
2296
|
"form-submit": FormSubmit;
|
|
2120
2297
|
"form-switch": FormSwitch;
|
|
2121
2298
|
"form-text-area": FormTextArea;
|
|
2299
|
+
"form-time-picker": FormTimePicker;
|
|
2122
2300
|
"form-vin-input": FormVinInput;
|
|
2123
2301
|
"general-inquiry-form": GeneralInquiryForm;
|
|
2124
2302
|
"information-table": InformationTable;
|
|
@@ -2156,9 +2334,11 @@ declare module "@stencil/core" {
|
|
|
2156
2334
|
"distributor-lookup": LocalJSX.DistributorLookup & JSXBase.HTMLAttributes<HTMLDistributorLookupElement>;
|
|
2157
2335
|
"flexible-container": LocalJSX.FlexibleContainer & JSXBase.HTMLAttributes<HTMLFlexibleContainerElement>;
|
|
2158
2336
|
"form-checkbox": LocalJSX.FormCheckbox & JSXBase.HTMLAttributes<HTMLFormCheckboxElement>;
|
|
2337
|
+
"form-date-picker": LocalJSX.FormDatePicker & JSXBase.HTMLAttributes<HTMLFormDatePickerElement>;
|
|
2159
2338
|
"form-dialog": LocalJSX.FormDialog & JSXBase.HTMLAttributes<HTMLFormDialogElement>;
|
|
2160
2339
|
"form-input": LocalJSX.FormInput & JSXBase.HTMLAttributes<HTMLFormInputElement>;
|
|
2161
2340
|
"form-phone-number": LocalJSX.FormPhoneNumber & JSXBase.HTMLAttributes<HTMLFormPhoneNumberElement>;
|
|
2341
|
+
"form-picker-input": LocalJSX.FormPickerInput & JSXBase.HTMLAttributes<HTMLFormPickerInputElement>;
|
|
2162
2342
|
"form-select": LocalJSX.FormSelect & JSXBase.HTMLAttributes<HTMLFormSelectElement>;
|
|
2163
2343
|
"form-shadow-input": LocalJSX.FormShadowInput & JSXBase.HTMLAttributes<HTMLFormShadowInputElement>;
|
|
2164
2344
|
"form-structure": LocalJSX.FormStructure & JSXBase.HTMLAttributes<HTMLFormStructureElement>;
|
|
@@ -2166,6 +2346,7 @@ declare module "@stencil/core" {
|
|
|
2166
2346
|
"form-submit": LocalJSX.FormSubmit & JSXBase.HTMLAttributes<HTMLFormSubmitElement>;
|
|
2167
2347
|
"form-switch": LocalJSX.FormSwitch & JSXBase.HTMLAttributes<HTMLFormSwitchElement>;
|
|
2168
2348
|
"form-text-area": LocalJSX.FormTextArea & JSXBase.HTMLAttributes<HTMLFormTextAreaElement>;
|
|
2349
|
+
"form-time-picker": LocalJSX.FormTimePicker & JSXBase.HTMLAttributes<HTMLFormTimePickerElement>;
|
|
2169
2350
|
"form-vin-input": LocalJSX.FormVinInput & JSXBase.HTMLAttributes<HTMLFormVinInputElement>;
|
|
2170
2351
|
"general-inquiry-form": LocalJSX.GeneralInquiryForm & JSXBase.HTMLAttributes<HTMLGeneralInquiryFormElement>;
|
|
2171
2352
|
"information-table": LocalJSX.InformationTable & JSXBase.HTMLAttributes<HTMLInformationTableElement>;
|
|
@@ -45,15 +45,15 @@ export type FormGetFormHandler = {
|
|
|
45
45
|
form: FormHook<any>;
|
|
46
46
|
};
|
|
47
47
|
export declare const formGetFormHandler: (formContext: FormGetFormHandler) => Promise<FormHook<any>>;
|
|
48
|
-
export type
|
|
48
|
+
export type HandleFormSubmit = {
|
|
49
49
|
form: FormHook<any>;
|
|
50
50
|
};
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const handleFormSubmit: (formContext: HandleFormSubmit) => Promise<void>;
|
|
52
52
|
export type FormStructureRenderedHandler = {
|
|
53
53
|
formReadyCallback?: () => void;
|
|
54
54
|
};
|
|
55
55
|
export declare const formStructureRenderedHandler: (formContext: FormStructureRenderedHandler, isRendered: boolean) => Promise<void>;
|
|
56
|
-
export type
|
|
56
|
+
export type OnFormSubmit<T> = {
|
|
57
57
|
formValues: T;
|
|
58
58
|
afterSuccess?: (payload: object, header: object) => void;
|
|
59
59
|
context: FormHookInterface<T> & MultiLingual & {
|
|
@@ -65,15 +65,15 @@ export type FormSubmittHandler<T> = {
|
|
|
65
65
|
url: string;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
export declare const
|
|
68
|
+
export declare const onFormSubmit: <T>({ context, formValues, middleware, afterSuccess }: OnFormSubmit<T>) => Promise<void>;
|
|
69
69
|
export declare const functionHooks: {
|
|
70
70
|
formLanguageChange: (formContext: FormLanguageChange, newLanguage: LanguageKeys) => Promise<void>;
|
|
71
71
|
formErrorHandler: (formContext: FormErrorHandler, error: any) => Promise<void>;
|
|
72
|
-
|
|
72
|
+
handleFormSubmit: (formContext: HandleFormSubmit) => Promise<void>;
|
|
73
73
|
formLoadingHandler: (formContext: FormLoadingHandler, isLoading: boolean) => Promise<void>;
|
|
74
74
|
formSuccessHandler: (formContext: FormSuccessHandler, data: any) => Promise<void>;
|
|
75
75
|
formDidLoadHandler: <T, B>(formContext: FormDidLoadHandler<B> & FormHookInterface<B>, validator: AnyObjectSchema) => Promise<void>;
|
|
76
76
|
formGetFormHandler: (formContext: FormGetFormHandler) => Promise<FormHook<any>>;
|
|
77
|
-
|
|
77
|
+
onFormSubmit: <T>({ context, formValues, middleware, afterSuccess }: OnFormSubmit<T>) => Promise<void>;
|
|
78
78
|
formStructureRenderedHandler: (formContext: FormStructureRenderedHandler, isRendered: boolean) => Promise<void>;
|
|
79
79
|
};
|