adp-web-components 0.1.77 → 0.1.79
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 +11 -11
- package/dist/cjs/decode-time-offset-CY6JVxX3.js +37 -0
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/form-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/form-dialog_13.cjs.entry.js +1351 -0
- package/dist/cjs/{form-input-C3gQ_Noj.js → form-input-DH-U4kEM.js} +8 -6
- package/dist/cjs/form-input_4.cjs.entry.js +15 -18
- package/dist/cjs/form-switch.cjs.entry.js +5 -5
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/general-form.cjs.entry.js +83 -0
- package/dist/cjs/general-inquiry-form.cjs.entry.js +19 -19
- package/dist/cjs/{get-language-from-url-Bqqqxz28.js → get-language-from-url-Cr3n1fd0.js} +13 -4
- package/dist/cjs/{get-local-language-BAmoMEw4.js → get-local-language-Ch0JsFp-.js} +2 -2
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/{esm/index-BILW0yP6.js → cjs/loader-icon-j5dMQ4bN.js} +16 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +6 -6
- package/dist/cjs/part-lookup.cjs.entry.js +5 -5
- package/dist/cjs/{loader-icon-OQu1-3ya.js → phone-validator-BUa89UAk.js} +23 -22
- package/dist/cjs/service-booking-form.cjs.entry.js +19 -19
- package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +9 -9
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +19 -19
- package/dist/cjs/{state-object-9UAuyk6N.js → state-object-DY2MVbpe.js} +21 -9
- package/dist/cjs/test-drive-form.cjs.entry.js +19 -19
- package/dist/cjs/{type-BSH0OxyO.js → type-BkehR16K.js} +1 -1
- package/dist/cjs/{type-BvWomz0N.js → type-CjTn3Uuy.js} +1 -1
- package/dist/cjs/{type-CFTS0FUJ.js → type-DhEJjKzj.js} +1 -1
- package/dist/cjs/{types-B3WMBBhs.js → types-DV_cOCRi.js} +18 -0
- package/dist/cjs/{validation-DEdJb-KL.js → validation-N-XMdEIM.js} +15 -2
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +17 -17
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +17 -17
- package/dist/cjs/{white-loader-55klC_ZH.js → white-loader-kSznMo_u.js} +4 -0
- 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/information-table.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/form-file.js +605 -0
- package/dist/collection/components/form-elements/form-input.js +2 -2
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-phone-number.js +2 -2
- package/dist/collection/components/form-elements/form-picker-input.js +2 -2
- package/dist/collection/components/form-elements/form-select.js +1 -1
- package/dist/collection/components/form-elements/form-shadow-input.js +1 -1
- package/dist/collection/components/form-elements/form-stepper-control.js +2 -2
- package/dist/collection/components/form-elements/form-stepper-submit.js +2 -2
- package/dist/collection/components/form-elements/form-stepper.js +1 -1
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
- package/dist/collection/components/form-elements/form-vin-input.js +2 -2
- package/dist/collection/components/forms/defaults/mappers.js +13 -1
- package/dist/collection/components/forms/defaults/validation.js +9 -1
- package/dist/collection/components/forms/general-form.js +490 -0
- package/dist/collection/components/forms/general-inquiry.js +2 -2
- package/dist/collection/components/forms/service-booking.js +2 -2
- package/dist/collection/components/forms/ssc-lookup.js +2 -2
- package/dist/collection/components/forms/test-drive.js +2 -2
- package/dist/collection/components/forms/vehicle-quotation.js +2 -2
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +13 -4
- package/dist/collection/features/form-hook/functions.js +17 -4
- package/dist/collection/features/form-hook/inputs/form-input.js +7 -5
- 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.d.ts +11 -0
- package/dist/components/form-file.js +5 -0
- 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.d.ts +11 -0
- package/dist/components/general-form.js +5 -0
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/{p-7EgXGKIp.js → p-7Ml46qau.js} +1 -1
- package/dist/components/{p-B9DO0698.js → p-B-MZjoBg.js} +1 -1
- package/dist/components/{p-pM1_gpUu.js → p-B-XBWavF.js} +1 -1
- package/dist/components/p-B14TvlWp.js +5 -0
- package/dist/components/p-B1HbKT92.js +5 -0
- package/dist/components/p-B20yJV8N.js +5 -0
- package/dist/components/{p-CnU-FAvr.js → p-B74EVzB0.js} +1 -1
- package/dist/components/p-B882WrlQ.js +5 -0
- package/dist/components/{p-27kjA_Yu.js → p-BLhi8bD5.js} +1 -1
- package/dist/components/p-BN3IFAWI.js +5 -0
- package/dist/components/{p-C34ZMIUx.js → p-BWfCJC3Q.js} +1 -1
- package/dist/components/p-BeL46S5b.js +5 -0
- package/dist/components/p-Bsnu7u9K.js +5 -0
- package/dist/components/{p-CKmHT-QE.js → p-BxeKiQ5h.js} +1 -1
- package/dist/components/p-CEnsN9BF.js +5 -0
- package/dist/components/{p-CRhdQvF0.js → p-COS-bXsj.js} +1 -1
- package/dist/components/{p-Bbn0Tw-8.js → p-CQSAEcTB.js} +1 -1
- package/dist/components/{p-DLXbMIN9.js → p-Ch14UUZ8.js} +1 -1
- package/dist/components/{p-DAqyVen6.js → p-CjrMk4Te.js} +1 -1
- package/dist/components/{p-Bw_VvuFc.js → p-ClKZfnwN.js} +1 -1
- package/dist/components/p-D0oHH_yi.js +5 -0
- package/dist/components/{p-CYyIlZJC.js → p-D7IQ_tmq.js} +1 -1
- package/dist/components/{p-BmyNDE_E.js → p-DATl4ttx.js} +1 -1
- package/dist/components/{p-CWpqw5J1.js → p-DD8S-FqN.js} +1 -1
- package/dist/components/p-DIx4B8Yb.js +5 -0
- package/dist/components/p-DN4c_zdE.js +5 -0
- package/dist/components/p-DQqF8boi.js +5 -0
- package/dist/components/p-DSTKQdoW.js +5 -0
- package/dist/components/p-DT2OVZtH.js +5 -0
- package/dist/components/p-DY9gBU2J.js +5 -0
- package/dist/components/p-DldJIun-.js +5 -0
- package/dist/components/{p-H7Rx-uvh.js → p-DndpWsL0.js} +1 -1
- package/dist/components/p-DwyZCgYl.js +5 -0
- package/dist/components/p-JSG4fAIl.js +5 -0
- package/dist/components/{p-BG1Acvil.js → p-LsPt2IQQ.js} +1 -1
- package/dist/components/{p-DJaWpqrV.js → p-MJwr71KB.js} +1 -1
- package/dist/components/p-MdiEjk1X.js +5 -0
- package/dist/{shift-components/p-CWP4hZcw.js → components/p-YQJevg3-.js} +1 -1
- package/dist/components/p-aHqL2KKd.js +5 -0
- package/dist/components/{p--puhRiiY.js → p-aMPZ6-pL.js} +1 -1
- package/dist/components/{p-CIQ6QH_J.js → p-pckxVoM8.js} +1 -1
- package/dist/components/p-rvbbkr0i.js +5 -0
- package/dist/components/{p-BlA4goTb.js → p-uy_bFOsR.js} +1 -1
- package/dist/components/p-yQwcy8rT.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-slider.js +1 -1
- package/dist/components/shift-switch.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/ssc-lookup-form.js +1 -1
- package/dist/components/test-drive-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-sale-information.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +11 -11
- package/dist/esm/{decode-time-offset-Cfi43WoV.js → decode-time-offset-DFZOybyr.js} +1 -1
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +4 -4
- package/dist/esm/form-date-picker.entry.js +1 -1
- package/dist/esm/form-dialog_13.entry.js +1337 -0
- package/dist/esm/{form-input-C5O2h7ti.js → form-input-DKjuSVBS.js} +8 -6
- package/dist/esm/form-input_4.entry.js +14 -17
- package/dist/esm/form-switch.entry.js +5 -5
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/general-form.entry.js +81 -0
- package/dist/esm/general-inquiry-form.entry.js +11 -11
- package/dist/esm/{get-language-from-url-Ba709Um1.js → get-language-from-url-OJporG8v.js} +13 -4
- package/dist/esm/{get-local-language-BOhWqeWJ.js → get-local-language-Ce9BLJNB.js} +2 -2
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/{cjs/index-D5c513Xn.js → esm/loader-icon-DM4Vm5gX.js} +12 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +6 -6
- package/dist/esm/part-lookup.entry.js +5 -5
- package/dist/esm/{loader-icon-Dsip-ysn.js → phone-validator-DuWpgjxr.js} +22 -20
- package/dist/esm/service-booking-form.entry.js +10 -10
- package/dist/esm/shift-checkbox.entry.js +1 -1
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-switch.entry.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +9 -9
- package/dist/esm/ssc-lookup-form.entry.js +10 -10
- package/dist/esm/{state-object-DAThqvht.js → state-object-BYbNPk-P.js} +17 -5
- package/dist/esm/test-drive-form.entry.js +10 -10
- package/dist/esm/{type-DDlXvsYW.js → type-8o_W9bXK.js} +1 -1
- package/dist/esm/{type-Dw5qeiT3.js → type-C2SCytyp.js} +1 -1
- package/dist/esm/{type-DwvmWsdz.js → type-DCLi-Gh3.js} +1 -1
- package/dist/esm/{types-CWP4hZcw.js → types-BDhR4pDq.js} +18 -1
- package/dist/esm/{validation-iKTmTjB0.js → validation-CjIBF497.js} +11 -3
- package/dist/esm/vehicle-accessories_7.entry.js +17 -17
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +7 -7
- package/dist/esm/{white-loader-BpnYQ3A6.js → white-loader-CG4JPVdv.js} +4 -1
- package/dist/shift-components/{p-76fe6d18.entry.js → p-0174f4a6.entry.js} +1 -1
- package/dist/shift-components/{p-2fe3538e.entry.js → p-0ea039a0.entry.js} +1 -1
- package/dist/shift-components/{p-ca99ff7e.entry.js → p-19b5c5da.entry.js} +1 -1
- package/dist/shift-components/{p-389fbad6.entry.js → p-30d616e8.entry.js} +1 -1
- package/dist/shift-components/p-37bbc653.entry.js +5 -0
- package/dist/shift-components/{p-6b9cc078.entry.js → p-39128baf.entry.js} +1 -1
- package/dist/shift-components/p-3c5f015c.entry.js +5 -0
- package/dist/shift-components/{p-0d80679a.entry.js → p-45232ee9.entry.js} +1 -1
- package/dist/shift-components/p-600141c0.entry.js +5 -0
- package/dist/shift-components/p-6b9c8723.entry.js +5 -0
- package/dist/shift-components/p-6fca3b48.entry.js +5 -0
- package/dist/shift-components/p-74392ec2.entry.js +5 -0
- package/dist/shift-components/p-7PtHUjhE.js +5 -0
- package/dist/shift-components/{p-398ca2dd.entry.js → p-7ce7efb2.entry.js} +1 -1
- package/dist/shift-components/{p-f4914abc.entry.js → p-8049016c.entry.js} +1 -1
- package/dist/shift-components/{p-ad9a34aa.entry.js → p-8c4579f1.entry.js} +1 -1
- package/dist/shift-components/{p-8281a1ba.entry.js → p-9270fdea.entry.js} +1 -1
- package/dist/shift-components/p-95496452.entry.js +5 -0
- package/dist/shift-components/{p-69e9751f.entry.js → p-971f2432.entry.js} +1 -1
- package/dist/{components/p-DkIqSrtn.js → shift-components/p-BDhR4pDq.js} +1 -1
- package/dist/shift-components/p-BffuX06w.js +5 -0
- package/dist/shift-components/{p-Birh6Z1w.js → p-BrJd1o0-.js} +1 -1
- package/dist/shift-components/{p-D6pA5cwZ.js → p-CCt3VwsZ.js} +1 -1
- package/dist/shift-components/{p-XyQhTm0V.js → p-Cv7m_MLQ.js} +1 -1
- package/dist/shift-components/p-D-IGTVAo.js +5 -0
- package/dist/shift-components/p-Dfy8LG6W.js +5 -0
- package/dist/shift-components/p-DgArUiaY.js +5 -0
- package/dist/shift-components/{p-DJSST74z.js → p-DyLtxN1c.js} +1 -1
- package/dist/shift-components/{p-72fb32e6.entry.js → p-b58252b3.entry.js} +1 -1
- package/dist/shift-components/{p-61725969.entry.js → p-b73dc0eb.entry.js} +1 -1
- package/dist/shift-components/{p-969047f1.entry.js → p-d9491f0a.entry.js} +1 -1
- package/dist/shift-components/{p-48622d1c.entry.js → p-ea04ef58.entry.js} +1 -1
- package/dist/shift-components/{p-055c46ae.entry.js → p-fd8cce34.entry.js} +1 -1
- package/dist/shift-components/{p-BVrQRz1r.js → p-nGZ6Nphz.js} +1 -1
- package/dist/shift-components/p-yjI-v4gh.js +5 -0
- package/dist/shift-components/p-zqc-VRCh.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/form-elements/form-file.d.ts +51 -0
- package/dist/types/components/forms/defaults/mappers.d.ts +10 -0
- package/dist/types/components/forms/defaults/validation.d.ts +6 -0
- package/dist/types/components/forms/general-form.d.ts +40 -0
- package/dist/types/components.d.ts +136 -0
- package/dist/types/features/form-hook/form-hook.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/decode-time-offset-DqzP0mck.js +0 -37
- package/dist/cjs/form-dialog_12.cjs.entry.js +0 -1092
- package/dist/components/p-1rMNgTmN.js +0 -5
- package/dist/components/p-B4O925yv.js +0 -5
- package/dist/components/p-B7jki48I.js +0 -5
- package/dist/components/p-B9WVNn55.js +0 -5
- package/dist/components/p-BAXJUlT3.js +0 -5
- package/dist/components/p-BqEpcTHM.js +0 -5
- package/dist/components/p-BrYiFmwV.js +0 -5
- package/dist/components/p-Btio2HOp.js +0 -5
- package/dist/components/p-CGTnKwGx.js +0 -5
- package/dist/components/p-CHFEweyc.js +0 -5
- package/dist/components/p-CIpGuibo.js +0 -5
- package/dist/components/p-CsuuEdZV.js +0 -5
- package/dist/components/p-DBiatJcb.js +0 -5
- package/dist/components/p-DXTNpTRN.js +0 -5
- package/dist/components/p-RgH4pvBx.js +0 -5
- package/dist/components/p-aU8QeNSR.js +0 -5
- package/dist/components/p-bj5xjS7q.js +0 -5
- package/dist/components/p-oOwj68Rk.js +0 -5
- package/dist/components/p-rFExZsrl.js +0 -5
- package/dist/esm/form-dialog_12.entry.js +0 -1079
- package/dist/shift-components/p-56cb9747.entry.js +0 -5
- package/dist/shift-components/p-84b2e4ef.entry.js +0 -5
- package/dist/shift-components/p-9df9af1a.entry.js +0 -5
- package/dist/shift-components/p-BAltXAam.js +0 -5
- package/dist/shift-components/p-BILW0yP6.js +0 -5
- package/dist/shift-components/p-Bp-HDfJB.js +0 -5
- package/dist/shift-components/p-CK-8T86o.js +0 -5
- package/dist/shift-components/p-CfAzoJ2t.js +0 -5
- package/dist/shift-components/p-Cfs-79nK.js +0 -5
- package/dist/shift-components/p-CyHfimfF.js +0 -5
- package/dist/shift-components/p-ae6d8792.entry.js +0 -5
- package/dist/shift-components/p-c0db198d.entry.js +0 -5
- package/dist/shift-components/p-d5fed00e.entry.js +0 -5
|
@@ -171,6 +171,38 @@ export namespace Components {
|
|
|
171
171
|
"isError": boolean;
|
|
172
172
|
"message": string;
|
|
173
173
|
}
|
|
174
|
+
interface FormFile {
|
|
175
|
+
"accept"?: string;
|
|
176
|
+
"accountName"?: string;
|
|
177
|
+
"containerName"?: string;
|
|
178
|
+
"form": FormHook<any>;
|
|
179
|
+
"isDisabled"?: boolean;
|
|
180
|
+
"isLoading"?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* @default {}
|
|
183
|
+
*/
|
|
184
|
+
"localization"?: FormInputLocalization<{
|
|
185
|
+
uploading?: string;
|
|
186
|
+
upload?: string;
|
|
187
|
+
failure?: string;
|
|
188
|
+
success?: string;
|
|
189
|
+
}>;
|
|
190
|
+
"maxSize"?: number;
|
|
191
|
+
/**
|
|
192
|
+
* @default 1
|
|
193
|
+
*/
|
|
194
|
+
"maxUpload": number;
|
|
195
|
+
"name": string;
|
|
196
|
+
"required"?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* @default 'POST'
|
|
199
|
+
*/
|
|
200
|
+
"signMethod": 'POST' | 'PUT';
|
|
201
|
+
"signPrefix"?: string;
|
|
202
|
+
"signUrl"?: string;
|
|
203
|
+
"wrapperClass": string;
|
|
204
|
+
"wrapperId": string;
|
|
205
|
+
}
|
|
174
206
|
interface FormInput {
|
|
175
207
|
"defaultValue": string;
|
|
176
208
|
"form": FormHook<any>;
|
|
@@ -453,6 +485,34 @@ export namespace Components {
|
|
|
453
485
|
"wrapperClass": string;
|
|
454
486
|
"wrapperId": string;
|
|
455
487
|
}
|
|
488
|
+
interface GeneralForm {
|
|
489
|
+
"disableScrollToTop"?: boolean;
|
|
490
|
+
"errorCallback": (error: any, message: string) => void;
|
|
491
|
+
"extraHeader": object;
|
|
492
|
+
"extraPayload": object;
|
|
493
|
+
"fields"?: object;
|
|
494
|
+
"formId"?: string;
|
|
495
|
+
"formReadyCallback"?: () => void;
|
|
496
|
+
"getForm": () => Promise<FormHook<any>>;
|
|
497
|
+
"getMobileToken"?: () => string;
|
|
498
|
+
"gistId"?: string;
|
|
499
|
+
/**
|
|
500
|
+
* @default false
|
|
501
|
+
*/
|
|
502
|
+
"isDev"?: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* @default false
|
|
505
|
+
*/
|
|
506
|
+
"isMobileForm": boolean;
|
|
507
|
+
"language": LanguageKeys;
|
|
508
|
+
"loadingChanges": (loading: boolean) => void;
|
|
509
|
+
"stepChangeCallback"?: (step: number, currentForm?: any) => void;
|
|
510
|
+
"structure": FormElementStructure<any> | undefined;
|
|
511
|
+
"structureUrl"?: string;
|
|
512
|
+
"submit": () => Promise<void>;
|
|
513
|
+
"successCallback": (data: any, message?: string) => void;
|
|
514
|
+
"theme"?: string;
|
|
515
|
+
}
|
|
456
516
|
interface GeneralInquiryForm {
|
|
457
517
|
"disableScrollToTop"?: boolean;
|
|
458
518
|
"errorCallback": (error: any, message: string) => void;
|
|
@@ -1212,6 +1272,12 @@ declare global {
|
|
|
1212
1272
|
prototype: HTMLFormDialogElement;
|
|
1213
1273
|
new (): HTMLFormDialogElement;
|
|
1214
1274
|
};
|
|
1275
|
+
interface HTMLFormFileElement extends Components.FormFile, HTMLStencilElement {
|
|
1276
|
+
}
|
|
1277
|
+
var HTMLFormFileElement: {
|
|
1278
|
+
prototype: HTMLFormFileElement;
|
|
1279
|
+
new (): HTMLFormFileElement;
|
|
1280
|
+
};
|
|
1215
1281
|
interface HTMLFormInputElement extends Components.FormInput, HTMLStencilElement {
|
|
1216
1282
|
}
|
|
1217
1283
|
var HTMLFormInputElement: {
|
|
@@ -1308,6 +1374,12 @@ declare global {
|
|
|
1308
1374
|
prototype: HTMLFormVinInputElement;
|
|
1309
1375
|
new (): HTMLFormVinInputElement;
|
|
1310
1376
|
};
|
|
1377
|
+
interface HTMLGeneralFormElement extends Components.GeneralForm, HTMLStencilElement {
|
|
1378
|
+
}
|
|
1379
|
+
var HTMLGeneralFormElement: {
|
|
1380
|
+
prototype: HTMLGeneralFormElement;
|
|
1381
|
+
new (): HTMLGeneralFormElement;
|
|
1382
|
+
};
|
|
1311
1383
|
interface HTMLGeneralInquiryFormElement extends Components.GeneralInquiryForm, HTMLStencilElement {
|
|
1312
1384
|
}
|
|
1313
1385
|
var HTMLGeneralInquiryFormElement: {
|
|
@@ -1471,6 +1543,7 @@ declare global {
|
|
|
1471
1543
|
"form-checkbox": HTMLFormCheckboxElement;
|
|
1472
1544
|
"form-date-picker": HTMLFormDatePickerElement;
|
|
1473
1545
|
"form-dialog": HTMLFormDialogElement;
|
|
1546
|
+
"form-file": HTMLFormFileElement;
|
|
1474
1547
|
"form-input": HTMLFormInputElement;
|
|
1475
1548
|
"form-input-preview": HTMLFormInputPreviewElement;
|
|
1476
1549
|
"form-phone-number": HTMLFormPhoneNumberElement;
|
|
@@ -1487,6 +1560,7 @@ declare global {
|
|
|
1487
1560
|
"form-text-area": HTMLFormTextAreaElement;
|
|
1488
1561
|
"form-time-picker": HTMLFormTimePickerElement;
|
|
1489
1562
|
"form-vin-input": HTMLFormVinInputElement;
|
|
1563
|
+
"general-form": HTMLGeneralFormElement;
|
|
1490
1564
|
"general-inquiry-form": HTMLGeneralInquiryFormElement;
|
|
1491
1565
|
"information-table": HTMLInformationTableElement;
|
|
1492
1566
|
"loading-spinner": HTMLLoadingSpinnerElement;
|
|
@@ -1630,6 +1704,38 @@ declare namespace LocalJSX {
|
|
|
1630
1704
|
"isError"?: boolean;
|
|
1631
1705
|
"message"?: string;
|
|
1632
1706
|
}
|
|
1707
|
+
interface FormFile {
|
|
1708
|
+
"accept"?: string;
|
|
1709
|
+
"accountName"?: string;
|
|
1710
|
+
"containerName"?: string;
|
|
1711
|
+
"form"?: FormHook<any>;
|
|
1712
|
+
"isDisabled"?: boolean;
|
|
1713
|
+
"isLoading"?: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* @default {}
|
|
1716
|
+
*/
|
|
1717
|
+
"localization"?: FormInputLocalization<{
|
|
1718
|
+
uploading?: string;
|
|
1719
|
+
upload?: string;
|
|
1720
|
+
failure?: string;
|
|
1721
|
+
success?: string;
|
|
1722
|
+
}>;
|
|
1723
|
+
"maxSize"?: number;
|
|
1724
|
+
/**
|
|
1725
|
+
* @default 1
|
|
1726
|
+
*/
|
|
1727
|
+
"maxUpload"?: number;
|
|
1728
|
+
"name"?: string;
|
|
1729
|
+
"required"?: boolean;
|
|
1730
|
+
/**
|
|
1731
|
+
* @default 'POST'
|
|
1732
|
+
*/
|
|
1733
|
+
"signMethod"?: 'POST' | 'PUT';
|
|
1734
|
+
"signPrefix"?: string;
|
|
1735
|
+
"signUrl"?: string;
|
|
1736
|
+
"wrapperClass"?: string;
|
|
1737
|
+
"wrapperId"?: string;
|
|
1738
|
+
}
|
|
1633
1739
|
interface FormInput {
|
|
1634
1740
|
"defaultValue"?: string;
|
|
1635
1741
|
"form"?: FormHook<any>;
|
|
@@ -1912,6 +2018,32 @@ declare namespace LocalJSX {
|
|
|
1912
2018
|
"wrapperClass"?: string;
|
|
1913
2019
|
"wrapperId"?: string;
|
|
1914
2020
|
}
|
|
2021
|
+
interface GeneralForm {
|
|
2022
|
+
"disableScrollToTop"?: boolean;
|
|
2023
|
+
"errorCallback"?: (error: any, message: string) => void;
|
|
2024
|
+
"extraHeader"?: object;
|
|
2025
|
+
"extraPayload"?: object;
|
|
2026
|
+
"fields"?: object;
|
|
2027
|
+
"formId"?: string;
|
|
2028
|
+
"formReadyCallback"?: () => void;
|
|
2029
|
+
"getMobileToken"?: () => string;
|
|
2030
|
+
"gistId"?: string;
|
|
2031
|
+
/**
|
|
2032
|
+
* @default false
|
|
2033
|
+
*/
|
|
2034
|
+
"isDev"?: boolean;
|
|
2035
|
+
/**
|
|
2036
|
+
* @default false
|
|
2037
|
+
*/
|
|
2038
|
+
"isMobileForm"?: boolean;
|
|
2039
|
+
"language"?: LanguageKeys;
|
|
2040
|
+
"loadingChanges"?: (loading: boolean) => void;
|
|
2041
|
+
"stepChangeCallback"?: (step: number, currentForm?: any) => void;
|
|
2042
|
+
"structure"?: FormElementStructure<any> | undefined;
|
|
2043
|
+
"structureUrl"?: string;
|
|
2044
|
+
"successCallback"?: (data: any, message?: string) => void;
|
|
2045
|
+
"theme"?: string;
|
|
2046
|
+
}
|
|
1915
2047
|
interface GeneralInquiryForm {
|
|
1916
2048
|
"disableScrollToTop"?: boolean;
|
|
1917
2049
|
"errorCallback"?: (error: any, message: string) => void;
|
|
@@ -2578,6 +2710,7 @@ declare namespace LocalJSX {
|
|
|
2578
2710
|
"form-checkbox": FormCheckbox;
|
|
2579
2711
|
"form-date-picker": FormDatePicker;
|
|
2580
2712
|
"form-dialog": FormDialog;
|
|
2713
|
+
"form-file": FormFile;
|
|
2581
2714
|
"form-input": FormInput;
|
|
2582
2715
|
"form-input-preview": FormInputPreview;
|
|
2583
2716
|
"form-phone-number": FormPhoneNumber;
|
|
@@ -2594,6 +2727,7 @@ declare namespace LocalJSX {
|
|
|
2594
2727
|
"form-text-area": FormTextArea;
|
|
2595
2728
|
"form-time-picker": FormTimePicker;
|
|
2596
2729
|
"form-vin-input": FormVinInput;
|
|
2730
|
+
"general-form": GeneralForm;
|
|
2597
2731
|
"general-inquiry-form": GeneralInquiryForm;
|
|
2598
2732
|
"information-table": InformationTable;
|
|
2599
2733
|
"loading-spinner": LoadingSpinner;
|
|
@@ -2632,6 +2766,7 @@ declare module "@stencil/core" {
|
|
|
2632
2766
|
"form-checkbox": LocalJSX.FormCheckbox & JSXBase.HTMLAttributes<HTMLFormCheckboxElement>;
|
|
2633
2767
|
"form-date-picker": LocalJSX.FormDatePicker & JSXBase.HTMLAttributes<HTMLFormDatePickerElement>;
|
|
2634
2768
|
"form-dialog": LocalJSX.FormDialog & JSXBase.HTMLAttributes<HTMLFormDialogElement>;
|
|
2769
|
+
"form-file": LocalJSX.FormFile & JSXBase.HTMLAttributes<HTMLFormFileElement>;
|
|
2635
2770
|
"form-input": LocalJSX.FormInput & JSXBase.HTMLAttributes<HTMLFormInputElement>;
|
|
2636
2771
|
"form-input-preview": LocalJSX.FormInputPreview & JSXBase.HTMLAttributes<HTMLFormInputPreviewElement>;
|
|
2637
2772
|
"form-phone-number": LocalJSX.FormPhoneNumber & JSXBase.HTMLAttributes<HTMLFormPhoneNumberElement>;
|
|
@@ -2648,6 +2783,7 @@ declare module "@stencil/core" {
|
|
|
2648
2783
|
"form-text-area": LocalJSX.FormTextArea & JSXBase.HTMLAttributes<HTMLFormTextAreaElement>;
|
|
2649
2784
|
"form-time-picker": LocalJSX.FormTimePicker & JSXBase.HTMLAttributes<HTMLFormTimePickerElement>;
|
|
2650
2785
|
"form-vin-input": LocalJSX.FormVinInput & JSXBase.HTMLAttributes<HTMLFormVinInputElement>;
|
|
2786
|
+
"general-form": LocalJSX.GeneralForm & JSXBase.HTMLAttributes<HTMLGeneralFormElement>;
|
|
2651
2787
|
"general-inquiry-form": LocalJSX.GeneralInquiryForm & JSXBase.HTMLAttributes<HTMLGeneralInquiryFormElement>;
|
|
2652
2788
|
"information-table": LocalJSX.InformationTable & JSXBase.HTMLAttributes<HTMLInformationTableElement>;
|
|
2653
2789
|
"loading-spinner": LocalJSX.LoadingSpinner & JSXBase.HTMLAttributes<HTMLLoadingSpinnerElement>;
|
|
@@ -19,6 +19,7 @@ export declare class FormHook<T> {
|
|
|
19
19
|
[key: string]: string;
|
|
20
20
|
};
|
|
21
21
|
backButtonContexts: any[];
|
|
22
|
+
pendingRequests: Record<string, () => Promise<void>>;
|
|
22
23
|
formController: any;
|
|
23
24
|
formStructure?: FormStructure;
|
|
24
25
|
openDialog: () => void;
|
|
@@ -53,7 +54,7 @@ export declare class FormHook<T> {
|
|
|
53
54
|
submit: () => void;
|
|
54
55
|
getRequiredContext: () => Record<string, boolean>;
|
|
55
56
|
getInputState: <MetaType>(name: string) => Field<MetaType>;
|
|
56
|
-
|
|
57
|
+
signal: (partialSignal: Partial<Field<any>> | Partial<Field<any>>[]) => void;
|
|
57
58
|
validateInput: (name: string) => {
|
|
58
59
|
isError: boolean;
|
|
59
60
|
errorMessage: any;
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
var index = require('./index-D5c513Xn.js');
|
|
8
|
-
|
|
9
|
-
function decodeTimeOffset({ offsets, type, date = index.dateFnsExports.startOfDay(new Date()) }) {
|
|
10
|
-
if (offsets.length > 0)
|
|
11
|
-
date = index.dateFnsExports.addYears(date, offsets[0]);
|
|
12
|
-
if (offsets.length > 1)
|
|
13
|
-
date = index.dateFnsExports.addMonths(date, offsets[1]);
|
|
14
|
-
if (offsets.length > 2)
|
|
15
|
-
date = index.dateFnsExports.addDays(date, offsets[2]);
|
|
16
|
-
if (offsets.length > 3)
|
|
17
|
-
date = index.dateFnsExports.addHours(date, offsets[3]);
|
|
18
|
-
if (offsets.length > 4)
|
|
19
|
-
date = index.dateFnsExports.addMinutes(date, offsets[4]);
|
|
20
|
-
if (offsets.length > 5)
|
|
21
|
-
date = index.dateFnsExports.addSeconds(date, offsets[5]);
|
|
22
|
-
if (type) {
|
|
23
|
-
switch (type) {
|
|
24
|
-
case 'date':
|
|
25
|
-
return index.dateFnsExports.format(date, 'yyyy-MM-dd');
|
|
26
|
-
case 'time':
|
|
27
|
-
return index.dateFnsExports.format(date, 'HH:mm');
|
|
28
|
-
case 'datetime-local':
|
|
29
|
-
return index.dateFnsExports.format(date, "yyyy-MM-dd'T'HH:mm");
|
|
30
|
-
default:
|
|
31
|
-
return date;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return date;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.decodeTimeOffset = decodeTimeOffset;
|