adp-web-components 0.1.95 → 0.1.97
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 +6 -6
- 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 +1 -1
- package/dist/cjs/form-dialog_13.cjs.entry.js +70 -39
- package/dist/cjs/form-input_7.cjs.entry.js +21 -56
- 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-CYt4MC4O.js → functions-BNf0StT8.js} +7 -5
- package/dist/cjs/general-form.cjs.entry.js +4 -4
- package/dist/cjs/general-inquiry-form.cjs.entry.js +4 -4
- package/dist/cjs/get-custom-classes-for-portal-nUMg-jyA.js +66 -0
- package/dist/cjs/{get-local-language-CTLrW1mZ.js → get-local-language-xDrf-Pax.js} +1 -1
- package/dist/cjs/{get-mock-files-cBy4t0Y4.js → get-mock-files-Nwz-JLss.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 +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/part-lookup.cjs.entry.js +1 -1
- package/dist/cjs/service-booking-form.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/test-drive-form.cjs.entry.js +4 -4
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +22 -22
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +4 -4
- 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-portal.css +1 -1
- package/dist/collection/components/components/shift-select-dropdown.js +23 -2
- package/dist/collection/components/components/shift-select.js +25 -3
- 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-dialog.css +1 -0
- package/dist/collection/components/form-elements/form-dialog.js +74 -36
- 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-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-structure.js +34 -12
- 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/general-form.js +18 -8
- package/dist/collection/components/forms/general-inquiry.js +18 -8
- package/dist/collection/components/forms/service-booking.js +18 -8
- package/dist/collection/components/forms/ssc-lookup.js +18 -8
- package/dist/collection/components/forms/test-drive.js +18 -8
- package/dist/collection/components/forms/vehicle-quotation.js +18 -8
- 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-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.js +1 -1
- package/dist/collection/features/form-hook/functions.js +6 -4
- 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-7iMaOrRU.js +5 -0
- package/dist/components/p-B6_UaLsH.js +5 -0
- package/dist/components/{p-DCuh4v5y.js → p-B6kPlqXZ.js} +1 -1
- package/dist/components/{p-S-WWqwj9.js → p-BDboqlCz.js} +1 -1
- package/dist/components/{p-DSX1Us0c.js → p-BKJy6MMD.js} +1 -1
- package/dist/components/{p-DiGTQUJr.js → p-BPCEcoZS.js} +1 -1
- package/dist/components/p-BRV0XF96.js +5 -0
- package/dist/components/{p-CHjkTvcK.js → p-Bf6EK9YV.js} +1 -1
- package/dist/components/p-Bg7C87Dc.js +5 -0
- package/dist/components/p-BjyqToCQ.js +5 -0
- package/dist/components/p-BpLjiP1H.js +5 -0
- package/dist/components/p-C1xgsXlk.js +5 -0
- package/dist/components/{p-Bl8zY3kj.js → p-C7BOZxW7.js} +1 -1
- package/dist/components/{p-Qd3zHHYx.js → p-CAmDkgfX.js} +1 -1
- package/dist/components/{p-8XSbLgc1.js → p-CGeFd8lu.js} +1 -1
- package/dist/components/p-CK3nnfXh.js +5 -0
- package/dist/components/p-CY5MOfMW.js +5 -0
- package/dist/components/{p-BeOEDREH.js → p-Cd4UQoqr.js} +1 -1
- package/dist/components/{p-BfSLirTu.js → p-CdtUuz6z.js} +1 -1
- package/dist/components/p-CidXN-k7.js +5 -0
- package/dist/components/p-CjWmQ8Tx.js +5 -0
- package/dist/components/{p-DXCJFLLQ.js → p-Ct4cdeKN.js} +1 -1
- package/dist/components/{p-CQdw408H.js → p-D1T_MvB4.js} +1 -1
- package/dist/components/p-D58F4aUL.js +5 -0
- package/dist/components/{p-B0xMgfJJ.js → p-DADK-xj6.js} +1 -1
- package/dist/components/p-DU9Q7NXG.js +5 -0
- package/dist/components/p-DW4cIsIJ.js +5 -0
- package/dist/components/{p-c1Zq_0um.js → p-DZx_3Y5o.js} +1 -1
- package/dist/components/{p-BP8P669a.js → p-DdOUzyv-.js} +1 -1
- package/dist/components/p-DgLtjdg2.js +5 -0
- package/dist/components/{p-CAvWNw8_.js → p-DkZGX-N1.js} +1 -1
- package/dist/components/p-DtoEd_IF.js +5 -0
- package/dist/components/p-DtuPf1ij.js +5 -0
- package/dist/components/{p-DD0qhrt2.js → p-Dw5GW_tB.js} +1 -1
- package/dist/components/p-DyPly33K.js +5 -0
- package/dist/components/{p-DTJIfJgH.js → p-GlTEeCW0.js} +1 -1
- package/dist/components/{p-pv_eeP1A.js → p-KtBTftkz.js} +1 -1
- package/dist/components/{p-rVEApql-.js → p-PoX4mn6o.js} +1 -1
- package/dist/components/p-R2mf4lkx.js +5 -0
- package/dist/components/p-UPIaMOLN.js +5 -0
- package/dist/components/p-kZwU9Rop.js +5 -0
- package/dist/components/p-zwt4_06d.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-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-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 +6 -6
- 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 +1 -1
- package/dist/esm/form-dialog_13.entry.js +68 -37
- package/dist/esm/form-input_7.entry.js +20 -55
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/{functions-D5Ow6NRY.js → functions-02hscAqf.js} +7 -5
- package/dist/esm/general-form.entry.js +4 -4
- package/dist/esm/general-inquiry-form.entry.js +4 -4
- package/dist/esm/get-custom-classes-for-portal-C8vUoPOJ.js +61 -0
- package/dist/esm/{get-local-language-Cg1kM-eQ.js → get-local-language-BH9461v_.js} +1 -1
- package/dist/esm/{get-mock-files-DJVqyVvQ.js → get-mock-files-DrvijdNh.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 +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +2 -2
- package/dist/esm/part-lookup.entry.js +1 -1
- package/dist/esm/service-booking-form.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/test-drive-form.entry.js +4 -4
- package/dist/esm/vehicle-accessories_7.entry.js +22 -22
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +4 -4
- package/dist/shift-components/{p-e475da59.entry.js → p-06674687.entry.js} +1 -1
- package/dist/shift-components/{p-DKoYN-d5.js → p-0FfozbjW.js} +1 -1
- package/dist/shift-components/{p-18e078ce.entry.js → p-1136fcd1.entry.js} +1 -1
- package/dist/shift-components/{p-7a69c2a0.entry.js → p-27b89ac6.entry.js} +1 -1
- package/dist/shift-components/{p-5602be47.entry.js → p-3c15ed12.entry.js} +1 -1
- package/dist/shift-components/p-3ed72ed3.entry.js +5 -0
- package/dist/shift-components/{p-ca5d8aee.entry.js → p-4e810a5e.entry.js} +1 -1
- package/dist/shift-components/{p-a4abc248.entry.js → p-4f1f339c.entry.js} +1 -1
- package/dist/shift-components/{p-6cd4f287.entry.js → p-540dd074.entry.js} +1 -1
- package/dist/shift-components/p-564c3c25.entry.js +5 -0
- package/dist/shift-components/{p-03dda4f6.entry.js → p-57540b56.entry.js} +1 -1
- package/dist/shift-components/p-579760b4.entry.js +5 -0
- package/dist/shift-components/{p-d6d554a3.entry.js → p-60c66df4.entry.js} +1 -1
- package/dist/shift-components/p-6129aed5.entry.js +5 -0
- package/dist/shift-components/{p-720ce0a9.entry.js → p-90c84129.entry.js} +1 -1
- package/dist/shift-components/{p-d76089e6.entry.js → p-9fdef84c.entry.js} +1 -1
- package/dist/shift-components/p-Bbe3UtPe.js +5 -0
- package/dist/shift-components/{p-Txt63jX3.js → p-BtB_puCT.js} +1 -1
- package/dist/shift-components/p-DrhV5Rg0.js +5 -0
- package/dist/shift-components/{p-b368cd08.entry.js → p-a01f6c4d.entry.js} +1 -1
- package/dist/shift-components/{p-06b24750.entry.js → p-a5f6f3d2.entry.js} +1 -1
- package/dist/shift-components/p-a70a1ff0.entry.js +5 -0
- package/dist/shift-components/{p-95bf365c.entry.js → p-cefcd394.entry.js} +1 -1
- package/dist/shift-components/p-d92ba259.entry.js +5 -0
- package/dist/shift-components/{p-fc575c22.entry.js → p-e73ba6e0.entry.js} +1 -1
- package/dist/shift-components/{p-e225d38c.entry.js → p-f58bffcd.entry.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/shift-select-dropdown.d.ts +1 -0
- package/dist/types/components/components/shift-select.d.ts +1 -0
- package/dist/types/components/form-elements/form-dialog.d.ts +5 -4
- package/dist/types/components/form-elements/form-structure.d.ts +4 -3
- package/dist/types/components/forms/general-form.d.ts +2 -2
- package/dist/types/components/forms/general-inquiry.d.ts +2 -2
- package/dist/types/components/forms/service-booking.d.ts +2 -2
- package/dist/types/components/forms/ssc-lookup.d.ts +2 -2
- package/dist/types/components/forms/test-drive.d.ts +2 -2
- package/dist/types/components/forms/vehicle-quotation.d.ts +2 -2
- package/dist/types/components.d.ts +96 -30
- package/dist/types/features/form-hook/functions.d.ts +2 -2
- package/dist/types/features/form-hook/interface.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/white-loader-D6sR0fOI.js +0 -27
- package/dist/components/p-1R-24Zh5.js +0 -5
- package/dist/components/p-4Ijmci6B.js +0 -5
- package/dist/components/p-B5N_v6sg.js +0 -5
- package/dist/components/p-BNhKw0yC.js +0 -5
- package/dist/components/p-BYtOGdGo.js +0 -5
- package/dist/components/p-Bcz3n1xT.js +0 -5
- package/dist/components/p-BfKCUS0-.js +0 -5
- package/dist/components/p-BryDDToW.js +0 -5
- package/dist/components/p-CBsu1KXy.js +0 -5
- package/dist/components/p-CD1V39Lh.js +0 -5
- package/dist/components/p-COMI3d6r.js +0 -5
- package/dist/components/p-Cf3NPhfR.js +0 -5
- package/dist/components/p-D-wXh_Is.js +0 -5
- package/dist/components/p-DV6mC6J4.js +0 -5
- package/dist/components/p-DaOvTgD5.js +0 -5
- package/dist/components/p-E2uLfnsr.js +0 -5
- package/dist/components/p-TjsrgyQa.js +0 -5
- package/dist/components/p-iSBBAT9i.js +0 -5
- package/dist/components/p-vYsQIgz_.js +0 -5
- package/dist/components/p-xQWVTrv0.js +0 -5
- package/dist/components/p-yMs3as_j.js +0 -5
- package/dist/esm/white-loader-DG6pqLQw.js +0 -23
- package/dist/shift-components/p-0ffcada1.entry.js +0 -5
- package/dist/shift-components/p-3a94b350.entry.js +0 -5
- package/dist/shift-components/p-6ccbaf3a.entry.js +0 -5
- package/dist/shift-components/p-C9q_Up-v.js +0 -5
- package/dist/shift-components/p-bbdda3c0.entry.js +0 -5
- package/dist/shift-components/p-c0190a65.entry.js +0 -5
- package/dist/shift-components/p-e3c6d844.entry.js +0 -5
- package/dist/shift-components/p-veklgezh.js +0 -5
|
@@ -7,13 +7,19 @@ import generalSchema from "../../locales/general/type";
|
|
|
7
7
|
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
8
8
|
import { renderStructure } from "../../features/form-hook/index";
|
|
9
9
|
import cn from "../../global/lib/cn";
|
|
10
|
+
import getCustomClassesForPortal from "../../global/lib/get-custom-classes-for-portal";
|
|
10
11
|
export class FormStructure {
|
|
11
12
|
constructor() {
|
|
12
13
|
// #region Localization
|
|
13
14
|
this.formLocale = {};
|
|
14
15
|
this.language = 'en';
|
|
15
16
|
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, generalSchema.getDefault());
|
|
17
|
+
this.isLoading = false;
|
|
18
|
+
this.errorMessage = '';
|
|
19
|
+
this.successMessage = '';
|
|
20
|
+
this.fields = {};
|
|
16
21
|
this.currentStep = 1;
|
|
22
|
+
this.dialogClasses = '';
|
|
17
23
|
}
|
|
18
24
|
async componentWillLoad() {
|
|
19
25
|
this.form.formStructure = this;
|
|
@@ -24,6 +30,7 @@ export class FormStructure {
|
|
|
24
30
|
this.locale = Object.assign({ sharedLocales }, locale);
|
|
25
31
|
}
|
|
26
32
|
async componentDidLoad() {
|
|
33
|
+
this.dialogClasses = getCustomClassesForPortal(this.el);
|
|
27
34
|
setTimeout(() => {
|
|
28
35
|
var _a;
|
|
29
36
|
if (typeof ((_a = this.form.context) === null || _a === void 0 ? void 0 : _a.structureRendered) === 'boolean')
|
|
@@ -31,7 +38,7 @@ export class FormStructure {
|
|
|
31
38
|
}, 300);
|
|
32
39
|
}
|
|
33
40
|
render() {
|
|
34
|
-
var _a, _b, _c, _d;
|
|
41
|
+
var _a, _b, _c, _d, _e, _f;
|
|
35
42
|
const [locale] = this.form.getFormLocale();
|
|
36
43
|
const generalProps = {
|
|
37
44
|
form: this.form,
|
|
@@ -43,7 +50,17 @@ export class FormStructure {
|
|
|
43
50
|
if (!this.structure)
|
|
44
51
|
return h("form-structure-error", { language: this.language });
|
|
45
52
|
const { formController, resetFormErrorMessage } = this.form;
|
|
46
|
-
|
|
53
|
+
const dialogParams = {
|
|
54
|
+
form: this.form,
|
|
55
|
+
message: this.errorMessage,
|
|
56
|
+
isError: !!this.errorMessage,
|
|
57
|
+
dialogClosed: resetFormErrorMessage,
|
|
58
|
+
successMessage: this.successMessage,
|
|
59
|
+
closeText: (_a = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _a === void 0 ? void 0 : _a.close,
|
|
60
|
+
};
|
|
61
|
+
return (h(Host, { translate: "no" }, h("form", Object.assign({ id: this.formId, class: "relative", dir: (_c = (_b = this === null || this === void 0 ? void 0 : this.locale) === null || _b === void 0 ? void 0 : _b.sharedLocales) === null || _c === void 0 ? void 0 : _c.direction }, formController), h("div", { class: "fixed top-10 left-10 size-20 overflow-hidden translate-x-5 translate-y-7" },
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
false && h("form-dialog", null), h("shift-portal", { tag: "form-dialog", inheritedClasses: this.dialogClasses, componentProps: dialogParams })), h("div", { part: "form-structure-form-container" }, !((_d = this === null || this === void 0 ? void 0 : this.structure) === null || _d === void 0 ? void 0 : _d.steps) && renderStructure(this.structure, this.formElementMapper, generalProps, this.fields, -2), !!((_e = this === null || this === void 0 ? void 0 : this.structure) === null || _e === void 0 ? void 0 : _e.steps) && (h("div", { part: "form-stepper-container", class: "overflow-hidden" }, renderStructure(this.structure, this.formElementMapper, generalProps, this.fields, -1), h("div", { class: "grid grid-cols-1 grid-rows-1" }, (_f = this === null || this === void 0 ? void 0 : this.structure) === null || _f === void 0 ? void 0 : _f.steps.map((_, i) => (h("div", { class: cn('col-start-1 row-start-1 transition-all !duration-700', {
|
|
47
64
|
'pointer-events-none! *:pointer-events-none!': this.currentStep !== i + 1,
|
|
48
65
|
'translate-x-full rtl:-translate-x-full opacity-0': this.currentStep < i + 1,
|
|
49
66
|
'translate-x-0 opacity-100': this.currentStep === i + 1,
|
|
@@ -145,7 +162,8 @@ export class FormStructure {
|
|
|
145
162
|
},
|
|
146
163
|
"getter": false,
|
|
147
164
|
"setter": false,
|
|
148
|
-
"reflect": false
|
|
165
|
+
"reflect": false,
|
|
166
|
+
"defaultValue": "false"
|
|
149
167
|
},
|
|
150
168
|
"form": {
|
|
151
169
|
"type": "unknown",
|
|
@@ -162,7 +180,7 @@ export class FormStructure {
|
|
|
162
180
|
}
|
|
163
181
|
}
|
|
164
182
|
},
|
|
165
|
-
"required":
|
|
183
|
+
"required": true,
|
|
166
184
|
"optional": false,
|
|
167
185
|
"docs": {
|
|
168
186
|
"tags": [],
|
|
@@ -188,7 +206,8 @@ export class FormStructure {
|
|
|
188
206
|
},
|
|
189
207
|
"getter": false,
|
|
190
208
|
"setter": false,
|
|
191
|
-
"reflect": false
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"defaultValue": "''"
|
|
192
211
|
},
|
|
193
212
|
"successMessage": {
|
|
194
213
|
"type": "string",
|
|
@@ -207,7 +226,8 @@ export class FormStructure {
|
|
|
207
226
|
},
|
|
208
227
|
"getter": false,
|
|
209
228
|
"setter": false,
|
|
210
|
-
"reflect": false
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"defaultValue": "''"
|
|
211
231
|
},
|
|
212
232
|
"fields": {
|
|
213
233
|
"type": "unknown",
|
|
@@ -219,13 +239,14 @@ export class FormStructure {
|
|
|
219
239
|
"references": {}
|
|
220
240
|
},
|
|
221
241
|
"required": false,
|
|
222
|
-
"optional":
|
|
242
|
+
"optional": false,
|
|
223
243
|
"docs": {
|
|
224
244
|
"tags": [],
|
|
225
245
|
"text": ""
|
|
226
246
|
},
|
|
227
247
|
"getter": false,
|
|
228
|
-
"setter": false
|
|
248
|
+
"setter": false,
|
|
249
|
+
"defaultValue": "{}"
|
|
229
250
|
},
|
|
230
251
|
"structure": {
|
|
231
252
|
"type": "unknown",
|
|
@@ -242,7 +263,7 @@ export class FormStructure {
|
|
|
242
263
|
}
|
|
243
264
|
}
|
|
244
265
|
},
|
|
245
|
-
"required":
|
|
266
|
+
"required": true,
|
|
246
267
|
"optional": false,
|
|
247
268
|
"docs": {
|
|
248
269
|
"tags": [],
|
|
@@ -266,7 +287,7 @@ export class FormStructure {
|
|
|
266
287
|
}
|
|
267
288
|
}
|
|
268
289
|
},
|
|
269
|
-
"required":
|
|
290
|
+
"required": true,
|
|
270
291
|
"optional": false,
|
|
271
292
|
"docs": {
|
|
272
293
|
"tags": [],
|
|
@@ -280,10 +301,11 @@ export class FormStructure {
|
|
|
280
301
|
static get states() {
|
|
281
302
|
return {
|
|
282
303
|
"locale": {},
|
|
283
|
-
"
|
|
284
|
-
"
|
|
304
|
+
"currentStep": {},
|
|
305
|
+
"dialogClasses": {}
|
|
285
306
|
};
|
|
286
307
|
}
|
|
308
|
+
static get elementRef() { return "el"; }
|
|
287
309
|
static get watchers() {
|
|
288
310
|
return [{
|
|
289
311
|
"propName": "language",
|
|
@@ -23,9 +23,9 @@ export class FormSubmit {
|
|
|
23
23
|
var _a, _b;
|
|
24
24
|
const [locale, language] = this.form.getFormLocale();
|
|
25
25
|
const submitText = ((_b = (_a = this.localization) === null || _a === void 0 ? void 0 : _a[language]) === null || _b === void 0 ? void 0 : _b.label) || getNestedValue(locale, this.submitTextKey) || getNestedValue(locale, 'sharedFormLocales.submit') || 'Submit';
|
|
26
|
-
return (h("button", { key: '
|
|
26
|
+
return (h("button", { key: 'fff4d600bbd5d763c1dc729bf1c612a5f7fe5623', type: "submit", formnovalidate: true, part: buttonSubscriberKey, disabled: this.isLoading, class: cn('form-submit', {
|
|
27
27
|
loading: this.isLoading,
|
|
28
|
-
}) }, h("div", { key: '
|
|
28
|
+
}) }, h("div", { key: '235f661718242a13a728d6a12e0ddf81f2bde93c', part: "form-submit-text", class: "opacity-0 form-submit-text-style" }, submitText), h("div", { key: 'd7af78fa5c655ff1d1b013a74807086bfa8e46cc', part: "form-submit-text", class: "form-submit-text-style form-submit-text-position" }, submitText), h("div", { key: '3130f4af9974bccfdea631e3c691fd77b131ee99', part: "form-submit-loading-container", class: "form-submit-loading-container" }, h("img", { key: 'b0c227aa980303625ea29cc2729a8ebeea4f868a', part: "form-submit-loading-icon", class: "form-submit-loading-icon", src: Loader }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "form-submit"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -28,7 +28,7 @@ export class FormSwitch {
|
|
|
28
28
|
render() {
|
|
29
29
|
const { disabled, meta, errorMessage, isError } = this.form.getInputState(this.name);
|
|
30
30
|
const { label, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '92d7f317d96e7b36e2a7663b444ee8f1919296bd', translate: "no" }, h("div", { key: 'a7e4934cf0b37618ee31a3a61c42ebed2050b661', part: `${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, disabled) }, h("div", { key: '8c36ef229b3c4987f93cc89dc313f6886cf61a34', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("shift-switch", { key: '795b5c1b4481a9e7154e29e6d68d2fd05235dd8a', name: this.name, label: label, class: "form-switch" })), h(FormErrorMessage, { key: '4067feb88d06e319a7ec1471e7039e8d3cf1a28b', name: this.name, isError: isError, errorMessage: errorTextMessage }))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "form-switch"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
@@ -40,9 +40,9 @@ export class FormTextArea {
|
|
|
40
40
|
const { disabled, isRequired, meta, isError, errorMessage } = this.form.getInputState(this.name);
|
|
41
41
|
const { label, placeholder, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
|
|
42
42
|
const isDisabled = disabled || this.isLoading || !!this.staticValue || this.isDisabled;
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '9511bfe5619bafc4163cdbfd89d2d08a87fe22e6', translate: "no" }, h("label", { key: 'fd16e45d96684b83c75668099a76778c6cc62bab', part: `form-textarea ${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: isDisabled }) }, h(FormInputLabel, { key: '1a1bbc7a6c88c46b5af38ff262000ca9ad40e973', name: this.name, isRequired: isRequired, label: label }), h("div", { key: '3092b156c035898f630ed784ee03cea5724b5146', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("textarea", { key: '08391dee242045a8519e638f47038cdb78038754', name: this.name, disabled: isDisabled, placeholder: placeholder, part: `${this.name}-textarea form-input-textarea`, class: cn('form-input-style form-input-textarea-style', partKeyPrefix + this.name, {
|
|
44
44
|
'form-input-error-style': isError,
|
|
45
|
-
}) }, this.defaultValue)), h("div", { key: '
|
|
45
|
+
}) }, this.defaultValue)), h("div", { key: 'c11992b3a6678685d703bf1960ec528aa927d175', class: "-mt-1" }, h(FormErrorMessage, { key: '3f0333480102fe0cafce08106f41937adec9a74b', name: this.name, isError: isError, errorMessage: errorTextMessage })))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "form-text-area"; }
|
|
48
48
|
static get originalStyleUrls() {
|
|
@@ -133,22 +133,22 @@ export class FormTimePicker {
|
|
|
133
133
|
const step = this.minuteStep || 1;
|
|
134
134
|
const hours = Array.from({ length: 24 }, (_, i) => i);
|
|
135
135
|
const minutes = Array.from({ length: Math.ceil(60 / step) }, (_, i) => i * step);
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: 'aa012157dac8a14dd01944db8b1489790d4ad02e', translate: "no" }, h("label", { key: '38f72e929048edc4aba9af053bb1b1870a4956f7', part: this.name, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: isDisabled }) }, h(FormInputLabel, { key: 'ffa0922187e136a7ba76ee7aa8c00fcb48ebbfed', isRequired: isRequired, label: label }), h("form-shadow-input", { key: '89b0bd6f775cbea09f0c3a1ba14b174da2858c6a', name: this.name, form: this.form, value: this.selectedValue }), h("div", { key: '437ee5851f97672e7717551ec23f28eabbf4b661', part: `${this.name}-container form-input-container`, class: cn('form-input-container', { open: this.isOpen }) }, h("input", { key: 'b7c11fe9a8533cd2885a3e550b677d840bc608ac', type: "text", readOnly: true, disabled: isDisabled, value: this.selectedValue, onClick: this.toggleDropdown, part: `${this.name}-input form-input`, placeholder: placeholder || (meta === null || meta === void 0 ? void 0 : meta.placeholder), class: cn('form-input-style form-input-select', {
|
|
137
137
|
'form-input-error-style': isError,
|
|
138
|
-
}) }), h("span", { key: '
|
|
138
|
+
}) }), h("span", { key: '6e883330afb3dd40aac8c4fcd189bf305d9b354f', part: `${this.name}-icon form-time-picker-icon`, class: "form-input-icon form-input-icon-end" }, h("svg", { key: 'df77e1df7d90ef7426f9737272876a315504bb6c', "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "size-full" }, h("circle", { key: '8f62390c75bd7965df8f2540307bb6d0dcc51172', cx: "12", cy: "12", r: "10" }), h("polyline", { key: 'd8d7e33e91ed206ce73ef8d0bcaed557d9dca713', points: "12 6 12 12 16 14" }))), h("div", { key: 'd87d251f9bcb76da849d90e337ea830af055dce6', part: `${this.name}-dropdown form-time-picker-dropdown`, class: cn('form-picker-dropdown', {
|
|
139
139
|
upwards: this.openUpwards,
|
|
140
140
|
downwards: !this.openUpwards,
|
|
141
|
-
}) }, h("div", { key: '
|
|
141
|
+
}) }, h("div", { key: '6bc203b9575ebcde413b568a7d27b3c37c58d580', class: "form-time-picker-columns" }, h("div", { key: '146415d5c850c194083588592cac09e592f5d07d', class: "form-time-picker-column form-time-picker-hours" }, h("div", { key: '8e2cbe50f3d9c472ae7fac91fae708887a01414a', class: "form-time-picker-column-header" }, "HH"), hours.map(hour => {
|
|
142
142
|
const hourDisabled = this.isHourDisabled(hour);
|
|
143
143
|
return (h("button", { type: "button", disabled: hourDisabled, onClick: () => this.selectHour(hour), part: cn('form-time-picker-option', { 'form-time-picker-option-selected': hour === selectedHour }), class: cn('form-time-picker-option', {
|
|
144
144
|
selected: hour === selectedHour,
|
|
145
145
|
}) }, String(hour).padStart(2, '0')));
|
|
146
|
-
})), h("div", { key: '
|
|
146
|
+
})), h("div", { key: '041c080f9c8a1b2763213eb931009db8ddbe8959', class: "form-time-picker-column form-time-picker-minutes" }, h("div", { key: 'ced0146aa458a7e464c1cba58f99ae16a914fcee', class: "form-time-picker-column-header" }, "MM"), minutes.map(minute => {
|
|
147
147
|
const minuteDisabled = selectedHour >= 0 ? this.isMinuteDisabled(selectedHour, minute) : false;
|
|
148
148
|
return (h("button", { type: "button", disabled: minuteDisabled, onClick: () => this.selectMinute(minute), part: cn('form-time-picker-option', { 'form-time-picker-option-selected': minute === selectedMinute }), class: cn('form-time-picker-option', {
|
|
149
149
|
selected: minute === selectedMinute,
|
|
150
150
|
}) }, String(minute).padStart(2, '0')));
|
|
151
|
-
}))))), h(FormErrorMessage, { key: '
|
|
151
|
+
}))))), h(FormErrorMessage, { key: '141634d0d563f76cd863370c2dd29cfcc17cef10', name: this.name, isError: isError, errorMessage: locale[errorMessage] || errorMessage }))));
|
|
152
152
|
}
|
|
153
153
|
static get is() { return "form-time-picker"; }
|
|
154
154
|
static get originalStyleUrls() {
|
|
@@ -52,9 +52,9 @@ export class FormVinInput {
|
|
|
52
52
|
const { label, placeholder, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
|
|
53
53
|
const isDisabled = disabled || this.isLoading || !!this.staticValue || this.isDisabled;
|
|
54
54
|
const extractorTitle = ((_b = (_a = this.localization) === null || _a === void 0 ? void 0 : _a[language]) === null || _b === void 0 ? void 0 : _b.scan) || ((_j = (_g = (_f = (_e = (_d = (_c = this.form) === null || _c === void 0 ? void 0 : _c.context) === null || _d === void 0 ? void 0 : _d.structure) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.localization) === null || _g === void 0 ? void 0 : _g[(_h = this.form.context) === null || _h === void 0 ? void 0 : _h.language]) === null || _j === void 0 ? void 0 : _j['vin-scan']) || 'Scan Your VIN';
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '364ebf9fd3e0a3f9c87c972cb6a4a5b7900e0452', translate: "no" }, h("label", { key: 'fce676eb0aecc9b986342fe607376069057bd744', part: this.name, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: isDisabled }) }, h(FormInputLabel, { key: '4b7d388aa66825c073d6fa834651fc4a69f87267', isRequired: isRequired, label: label }), h("div", { key: 'd089dc7c99eedebcf45675bb86b7b3725ec19cd1', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h(FormInputPrefix, { key: 'bd04e9c5724926831f32d79d6a2bc81ec27768ed', name: this.name, direction: (_k = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _k === void 0 ? void 0 : _k.direction, prefix: this.inputPrefix }), h("input", Object.assign({ key: 'e4039de54c6f2711883a3ae4dadd861e7f402a6f' }, this.inputProps, { name: this.name, disabled: isDisabled, defaultValue: this.defaultValue, part: `${this.name}-input form-input`, placeholder: placeholder || (meta === null || meta === void 0 ? void 0 : meta.placeholder), style: Object.assign({}, (this.prefixWidth ? { [((_l = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _l === void 0 ? void 0 : _l.direction) === 'rtl' ? 'paddingRight' : 'paddingLeft']: `${this.prefixWidth}px` } : {})), class: cn('form-input-style !uppercase', part, {
|
|
56
56
|
'form-input-error-style': isError,
|
|
57
|
-
}) })), !!this.scannerIcon && (this.useOcr || this.readSticker) && (h("button", { key: '
|
|
57
|
+
}) })), !!this.scannerIcon && (this.useOcr || this.readSticker) && (h("button", { key: 'dab3447ecfe92901450264009f038684ff38ee5b', type: "button", disabled: isDisabled, part: cn('vin-validator', part + '-vin'), onClick: () => { var _a; return (_a = this === null || this === void 0 ? void 0 : this.el.getElementsByTagName('vin-extractor')[0]) === null || _a === void 0 ? void 0 : _a.open(); }, class: "absolute transition-all duration-500 disabled:!pointer-events-none disabled:!opacity-0 flex justify-center items-center end-3.5 !text-[#576675] enabled:hover:!text-black/85 aspect-square h-[70%] top-1/2 -translate-y-1/2" }, this.scannerIcon === 'qr-code' && h(QrCodeScanIcon, { key: '8dc9d3e0335cd49dc16f0ab1dd95ec00b9b3d803', class: "size-[90%] text-inherit" }), this.scannerIcon === 'camera' && h(CameraIcon, { key: 'f07803288a58b6dc26a44f60153dd290dad74cdf', class: "size-[90%] text-inherit" })))), h(FormErrorMessage, { key: 'b897abcd66f8adf248273a2261dacd942b04ec95', name: this.name, isError: isError, errorMessage: errorTextMessage })), (this.useOcr || this.readSticker) && (h("div", { key: '0617aaceb5315d2690414ed82907e09c2aff9bf3', class: "absolute" }, h("vin-extractor", { key: '63349a42a5d9e076c5e287dcbce21962c0e8e401', verbose: true, manualCapture: true, useOcr: this.useOcr, title: extractorTitle, skipValidation: false, readSticker: this.readSticker, ocrEndpoint: this.ocrEndpoint, onExtract: newVin => {
|
|
58
58
|
var _a, _b;
|
|
59
59
|
this.inputRef.value = newVin;
|
|
60
60
|
(_a = this.form) === null || _a === void 0 ? void 0 : _a.validateInput(this === null || this === void 0 ? void 0 : this.name);
|
|
@@ -56,9 +56,9 @@ export class GeneralForm {
|
|
|
56
56
|
// #endregion
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '4cff9c631ab2d7849dcaed0f0f89946dc3882953', translate: "no" }, h("div", { key: 'b1455288d93506594cb53c3ee2a530c32e2f3d47', part: cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, h("div", { key: '526d10ed7814fb2fd468b841fcdb6f6eae528eb9', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '3b94fe2aaa173039e935ef7ac3448cb25ee43135', part: "form-loader-container", class: cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
60
60
|
'opacity-0': this.structureRendered,
|
|
61
|
-
}) }, h(LoaderIcon, { key: '
|
|
61
|
+
}) }, h(LoaderIcon, { key: '645beddd1ce29dc6c6c6882179d42096fa85516f', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: 'ed87dd39df7626112ab3634cf0a73bba987798ee', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '5e79eab92c3ee41b79daf0bb3151b6fedbcb6246', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, h("slot", { key: '913103eb25c711c5f8712b9479cc24755333d507' }))))))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "general-form"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,9 +196,14 @@ export class GeneralForm {
|
|
|
196
196
|
"attribute": "error-callback",
|
|
197
197
|
"mutable": false,
|
|
198
198
|
"complexType": {
|
|
199
|
-
"original": "(error: any, message: string) => void",
|
|
200
|
-
"resolved": "(error: any, message: string) => void",
|
|
201
|
-
"references": {
|
|
199
|
+
"original": "(error: any, message: string) => Promise<void | boolean>",
|
|
200
|
+
"resolved": "(error: any, message: string) => Promise<boolean | void>",
|
|
201
|
+
"references": {
|
|
202
|
+
"Promise": {
|
|
203
|
+
"location": "global",
|
|
204
|
+
"id": "global::Promise"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
202
207
|
},
|
|
203
208
|
"required": false,
|
|
204
209
|
"optional": false,
|
|
@@ -214,9 +219,14 @@ export class GeneralForm {
|
|
|
214
219
|
"attribute": "success-callback",
|
|
215
220
|
"mutable": false,
|
|
216
221
|
"complexType": {
|
|
217
|
-
"original": "(data: any, message?: string) => void",
|
|
218
|
-
"resolved": "(data: any, message?: string) => void",
|
|
219
|
-
"references": {
|
|
222
|
+
"original": "(data: any, message?: string) => Promise<void | boolean>",
|
|
223
|
+
"resolved": "(data: any, message?: string) => Promise<boolean | void>",
|
|
224
|
+
"references": {
|
|
225
|
+
"Promise": {
|
|
226
|
+
"location": "global",
|
|
227
|
+
"id": "global::Promise"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
220
230
|
},
|
|
221
231
|
"required": false,
|
|
222
232
|
"optional": false,
|
|
@@ -73,9 +73,9 @@ export class GeneralInquiryForm {
|
|
|
73
73
|
// #endregion
|
|
74
74
|
render() {
|
|
75
75
|
var _a, _b;
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '39598a1a3a3ae705a61f07a0076d3f5fed464c42', translate: "no" }, h("div", { key: '43c5341daac65a8cf670fb831801f580b1885926', part: cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, h("div", { key: '14b61f96ce31dd8aea290ff2bf083532b0504f1e', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '93d17b3d1b43e7757c369366250e652f07e3651a', part: "form-loader-container", class: cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
77
77
|
'opacity-0': this.structureRendered,
|
|
78
|
-
}) }, h(LoaderIcon, { key: '
|
|
78
|
+
}) }, h(LoaderIcon, { key: 'd8d201d06b25fe471a8b89a585190d7395f2d807', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '68c447269e5c70314fdc5ba3d9134a67dacaeba5', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '3384548010c30a6a305337336e8396e04bf12fcc', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, h("slot", { key: '1095e9b4752a59e7615f28c90f131a7d40fa80eb' }))))))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "general-inquiry-form"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -213,9 +213,14 @@ export class GeneralInquiryForm {
|
|
|
213
213
|
"attribute": "error-callback",
|
|
214
214
|
"mutable": false,
|
|
215
215
|
"complexType": {
|
|
216
|
-
"original": "(error: any, message: string) => void",
|
|
217
|
-
"resolved": "(error: any, message: string) => void",
|
|
218
|
-
"references": {
|
|
216
|
+
"original": "(error: any, message: string) => Promise<void | boolean>",
|
|
217
|
+
"resolved": "(error: any, message: string) => Promise<boolean | void>",
|
|
218
|
+
"references": {
|
|
219
|
+
"Promise": {
|
|
220
|
+
"location": "global",
|
|
221
|
+
"id": "global::Promise"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
219
224
|
},
|
|
220
225
|
"required": false,
|
|
221
226
|
"optional": false,
|
|
@@ -231,9 +236,14 @@ export class GeneralInquiryForm {
|
|
|
231
236
|
"attribute": "success-callback",
|
|
232
237
|
"mutable": false,
|
|
233
238
|
"complexType": {
|
|
234
|
-
"original": "(data: any, message?: string) => void",
|
|
235
|
-
"resolved": "(data: any, message?: string) => void",
|
|
236
|
-
"references": {
|
|
239
|
+
"original": "(data: any, message?: string) => Promise<void | boolean>",
|
|
240
|
+
"resolved": "(data: any, message?: string) => Promise<boolean | void>",
|
|
241
|
+
"references": {
|
|
242
|
+
"Promise": {
|
|
243
|
+
"location": "global",
|
|
244
|
+
"id": "global::Promise"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
237
247
|
},
|
|
238
248
|
"required": false,
|
|
239
249
|
"optional": false,
|
|
@@ -56,9 +56,9 @@ export class ServiceBookingForm {
|
|
|
56
56
|
// #endregion
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '89c2448c8ee822529161be0550e42f2568e6f1f4', translate: "no" }, h("div", { key: '2dfa2b9ce75a3589ea5e1acfea35a19c5a30a4ac', part: cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, h("div", { key: '43527e6b2eb4e761206a7ef91ffc10cdae4f5ecd', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '4caaf6ee9076fb6d23bfd5dc87669b5a499fb9df', part: "form-loader-container", class: cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
60
60
|
'opacity-0': this.structureRendered,
|
|
61
|
-
}) }, h(LoaderIcon, { key: '
|
|
61
|
+
}) }, h(LoaderIcon, { key: '9f3750087251e5624838d1c4c313d6013cfce5ab', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '4b7f50f44daf28f5af1ea04e4c3ea994fef5476f', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '70a7b4b1672a324f0df9dda1a509a701e1063ae6', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, h("slot", { key: 'd483e94ade69394b2dc362bf3ac04cf341d8f9b8' }))))))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "service-booking-form"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,9 +196,14 @@ export class ServiceBookingForm {
|
|
|
196
196
|
"attribute": "error-callback",
|
|
197
197
|
"mutable": false,
|
|
198
198
|
"complexType": {
|
|
199
|
-
"original": "(error: any, message: string) => void",
|
|
200
|
-
"resolved": "(error: any, message: string) => void",
|
|
201
|
-
"references": {
|
|
199
|
+
"original": "(error: any, message: string) => Promise<void | boolean>",
|
|
200
|
+
"resolved": "(error: any, message: string) => Promise<boolean | void>",
|
|
201
|
+
"references": {
|
|
202
|
+
"Promise": {
|
|
203
|
+
"location": "global",
|
|
204
|
+
"id": "global::Promise"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
202
207
|
},
|
|
203
208
|
"required": false,
|
|
204
209
|
"optional": false,
|
|
@@ -214,9 +219,14 @@ export class ServiceBookingForm {
|
|
|
214
219
|
"attribute": "success-callback",
|
|
215
220
|
"mutable": false,
|
|
216
221
|
"complexType": {
|
|
217
|
-
"original": "(data: any, message?: string) => void",
|
|
218
|
-
"resolved": "(data: any, message?: string) => void",
|
|
219
|
-
"references": {
|
|
222
|
+
"original": "(data: any, message?: string) => Promise<void | boolean>",
|
|
223
|
+
"resolved": "(data: any, message?: string) => Promise<boolean | void>",
|
|
224
|
+
"references": {
|
|
225
|
+
"Promise": {
|
|
226
|
+
"location": "global",
|
|
227
|
+
"id": "global::Promise"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
220
230
|
},
|
|
221
231
|
"required": false,
|
|
222
232
|
"optional": false,
|
|
@@ -67,9 +67,9 @@ export class SSCLookupForm {
|
|
|
67
67
|
// #endregion
|
|
68
68
|
render() {
|
|
69
69
|
var _a, _b;
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '5bf780577b542c9391ea846bb8184bbcb9a7be45', translate: "no" }, h("div", { key: '28ba40f28f86cc87fe1139d58b8823655a5b8825', part: cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, h("div", { key: 'c1e75853e048f2c0685872ec936f1cbf60fc9b3f', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: 'c1643fb440c1ff9033ca478c228e51431af83cae', part: "form-loader-container", class: cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
71
71
|
'opacity-0': this.structureRendered,
|
|
72
|
-
}) }, h(LoaderIcon, { key: '
|
|
72
|
+
}) }, h(LoaderIcon, { key: '597c77841a4899ab7092e954745f0a4cee4f8845', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: 'c6f7cfbd04b78029de56c0cc18a6e46f7b6e9332', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '7402530884f60323b36b915c74cdfec2c797e937', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, h("slot", { key: '0d995c8a07e30b0273827a682976e803943481cd' }))))))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "ssc-lookup-form"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -207,9 +207,14 @@ export class SSCLookupForm {
|
|
|
207
207
|
"attribute": "error-callback",
|
|
208
208
|
"mutable": false,
|
|
209
209
|
"complexType": {
|
|
210
|
-
"original": "(error: any, message: string) => void",
|
|
211
|
-
"resolved": "(error: any, message: string) => void",
|
|
212
|
-
"references": {
|
|
210
|
+
"original": "(error: any, message: string) => Promise<void | boolean>",
|
|
211
|
+
"resolved": "(error: any, message: string) => Promise<boolean | void>",
|
|
212
|
+
"references": {
|
|
213
|
+
"Promise": {
|
|
214
|
+
"location": "global",
|
|
215
|
+
"id": "global::Promise"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
213
218
|
},
|
|
214
219
|
"required": false,
|
|
215
220
|
"optional": false,
|
|
@@ -225,9 +230,14 @@ export class SSCLookupForm {
|
|
|
225
230
|
"attribute": "success-callback",
|
|
226
231
|
"mutable": false,
|
|
227
232
|
"complexType": {
|
|
228
|
-
"original": "(data: any, message?: string) => void",
|
|
229
|
-
"resolved": "(data: any, message?: string) => void",
|
|
230
|
-
"references": {
|
|
233
|
+
"original": "(data: any, message?: string) => Promise<void | boolean>",
|
|
234
|
+
"resolved": "(data: any, message?: string) => Promise<boolean | void>",
|
|
235
|
+
"references": {
|
|
236
|
+
"Promise": {
|
|
237
|
+
"location": "global",
|
|
238
|
+
"id": "global::Promise"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
231
241
|
},
|
|
232
242
|
"required": false,
|
|
233
243
|
"optional": false,
|
|
@@ -56,9 +56,9 @@ export class TestDriveForm {
|
|
|
56
56
|
// #endregion
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '0501b291a3ec179915ba0586be7acf469fe0b24b', translate: "no" }, h("div", { key: '7a5f87e0084838e3c243bebbb817642bdc21c011', part: cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, h("div", { key: 'f8670aaa521041222bc2963d4f509d64138f27f3', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: 'f8f1073cd82fb9106c80ec0b1e69ec533afb479b', part: "form-loader-container", class: cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
60
60
|
'opacity-0': this.structureRendered,
|
|
61
|
-
}) }, h(LoaderIcon, { key: '
|
|
61
|
+
}) }, h(LoaderIcon, { key: '8e5a05a0b47f3f8338e797d20656b2f4c1d7343f', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: '12c11fa78c85cf946d0fa8cfab0031b5c1709b8d', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '423a2877898ddb74bdc2eef17ba05d2e91243878', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, h("slot", { key: '1a5a870e7c5ca4e2067894a5e25170d7ebfb488a' }))))))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "test-drive-form"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,9 +196,14 @@ export class TestDriveForm {
|
|
|
196
196
|
"attribute": "error-callback",
|
|
197
197
|
"mutable": false,
|
|
198
198
|
"complexType": {
|
|
199
|
-
"original": "(error: any, message: string) => void",
|
|
200
|
-
"resolved": "(error: any, message: string) => void",
|
|
201
|
-
"references": {
|
|
199
|
+
"original": "(error: any, message: string) => Promise<void | boolean>",
|
|
200
|
+
"resolved": "(error: any, message: string) => Promise<boolean | void>",
|
|
201
|
+
"references": {
|
|
202
|
+
"Promise": {
|
|
203
|
+
"location": "global",
|
|
204
|
+
"id": "global::Promise"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
202
207
|
},
|
|
203
208
|
"required": false,
|
|
204
209
|
"optional": false,
|
|
@@ -214,9 +219,14 @@ export class TestDriveForm {
|
|
|
214
219
|
"attribute": "success-callback",
|
|
215
220
|
"mutable": false,
|
|
216
221
|
"complexType": {
|
|
217
|
-
"original": "(data: any, message?: string) => void",
|
|
218
|
-
"resolved": "(data: any, message?: string) => void",
|
|
219
|
-
"references": {
|
|
222
|
+
"original": "(data: any, message?: string) => Promise<void | boolean>",
|
|
223
|
+
"resolved": "(data: any, message?: string) => Promise<boolean | void>",
|
|
224
|
+
"references": {
|
|
225
|
+
"Promise": {
|
|
226
|
+
"location": "global",
|
|
227
|
+
"id": "global::Promise"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
220
230
|
},
|
|
221
231
|
"required": false,
|
|
222
232
|
"optional": false,
|
|
@@ -142,9 +142,9 @@ export class VehicleQuotationForm {
|
|
|
142
142
|
// #endregion
|
|
143
143
|
render() {
|
|
144
144
|
var _a, _b;
|
|
145
|
-
return (h(Host, { key: '
|
|
145
|
+
return (h(Host, { key: 'fec28435d7dafd1cf92b0fa5109caed38f8566f3', translate: "no" }, h("div", { key: '400a878e0946c95718474424408d053d448811e2', part: `shift-form vehicle-quotation-${(_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme}` }, h("div", { key: '3266ef4ac8d982099cd7ffa10d961b0ffb26a088', part: "form-container", class: "relative min-h-[150px]" }, h("div", { key: '3f538ea84510680680943ad563b18d6b2ba795f0', part: "form-loader-container", class: cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
146
146
|
'opacity-0': this.structureRendered,
|
|
147
|
-
}) }, h(LoaderIcon, { key: '
|
|
147
|
+
}) }, h(LoaderIcon, { key: '21277ee2020ca457e057a44d615a7c2a5a078876', part: "form-loader-icon", class: "img" })), h("flexible-container", { key: 'c88ef8663f91ba871119a7753be8a7e4995af36a', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (h("form-structure", { key: '23b33ac7d2577a685d2457dc019b9a779ce89b10', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: vehicleQuotationElements, successMessage: this.locale['Form submitted successfully.'] }, h("slot", { key: '77c7ec01920adc553fee0893e2394ec26e2aeaad' }))))))));
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "vehicle-quotation-form"; }
|
|
150
150
|
static get encapsulation() { return "shadow"; }
|
|
@@ -282,9 +282,14 @@ export class VehicleQuotationForm {
|
|
|
282
282
|
"attribute": "error-callback",
|
|
283
283
|
"mutable": false,
|
|
284
284
|
"complexType": {
|
|
285
|
-
"original": "(error: any, message: string) => void",
|
|
286
|
-
"resolved": "(error: any, message: string) => void",
|
|
287
|
-
"references": {
|
|
285
|
+
"original": "(error: any, message: string) => Promise<void | boolean>",
|
|
286
|
+
"resolved": "(error: any, message: string) => Promise<boolean | void>",
|
|
287
|
+
"references": {
|
|
288
|
+
"Promise": {
|
|
289
|
+
"location": "global",
|
|
290
|
+
"id": "global::Promise"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
288
293
|
},
|
|
289
294
|
"required": false,
|
|
290
295
|
"optional": false,
|
|
@@ -300,9 +305,14 @@ export class VehicleQuotationForm {
|
|
|
300
305
|
"attribute": "success-callback",
|
|
301
306
|
"mutable": false,
|
|
302
307
|
"complexType": {
|
|
303
|
-
"original": "(data: any, message?: string) => void",
|
|
304
|
-
"resolved": "(data: any, message?: string) => void",
|
|
305
|
-
"references": {
|
|
308
|
+
"original": "(data: any, message?: string) => Promise<void | boolean>",
|
|
309
|
+
"resolved": "(data: any, message?: string) => Promise<boolean | void>",
|
|
310
|
+
"references": {
|
|
311
|
+
"Promise": {
|
|
312
|
+
"location": "global",
|
|
313
|
+
"id": "global::Promise"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
306
316
|
},
|
|
307
317
|
"required": false,
|
|
308
318
|
"optional": false,
|
|
@@ -90,11 +90,11 @@ export class DeadStockLookup {
|
|
|
90
90
|
// #endregion
|
|
91
91
|
render() {
|
|
92
92
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '65d6641ec87c3e96e69e0170af74ab8f92614b11', translate: "no" }, h(VehicleInfoLayout, { key: 'c935526cf59894895b1005d044cf3319059518ae', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_a = this.partLookup) === null || _a === void 0 ? void 0 : _a.partNumber, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: 'a096bdf32e4a759540123eebffebbda5dc95a760', class: "p-[16px]" }, h("div", { key: '64ac5c457017f8c55b070533002a0ad30380958a', class: "pb-[16px]" }, h(DeadStockItem, { locale: this.locale, key: "first-dead-stock", toggleAccordion: this.toggleAccordion, isOpened: !this.isLoading && ((_c = (_b = this.partLookup) === null || _b === void 0 ? void 0 : _b.deadStock) === null || _c === void 0 ? void 0 : _c.length) > 0 ? this.openedAccordions.includes((_e = (_d = this.partLookup) === null || _d === void 0 ? void 0 : _d.deadStock[0]) === null || _e === void 0 ? void 0 : _e.companyName) : false, item: ((_g = (_f = this.partLookup) === null || _f === void 0 ? void 0 : _f.deadStock) === null || _g === void 0 ? void 0 : _g.length) > 0
|
|
94
94
|
? (_h = this.partLookup) === null || _h === void 0 ? void 0 : _h.deadStock[0]
|
|
95
95
|
: { companyName: !!this.partLookup && !((_j = this.partLookup) === null || _j === void 0 ? void 0 : _j.deadStock) ? this.locale.sharedLocales.noData : '' }, icon: (!this.partLookup && !((_k = this.partLookup) === null || _k === void 0 ? void 0 : _k.deadStock) && h("div", null)) ||
|
|
96
96
|
(!!this.partLookup && !((_l = this.partLookup) === null || _l === void 0 ? void 0 : _l.deadStock) && h(EmptyTableIcon, null)) ||
|
|
97
|
-
(!!this.partLookup && !!((_m = this.partLookup) === null || _m === void 0 ? void 0 : _m.deadStock) && h(ArrowUpIcon, null)) })), h("flexible-container", { key: '
|
|
97
|
+
(!!this.partLookup && !!((_m = this.partLookup) === null || _m === void 0 ? void 0 : _m.deadStock) && h(ArrowUpIcon, null)) })), h("flexible-container", { key: '037176d9aa0af1982b45c99b7b5b73b87df466d1', isOpened: this.newItemsHasBeenRendered }, h("div", { key: 'dca1df7070d355f6d646522fcf6b53ffe03f7729', class: "flex flex-col gap-[16px]" }, ((_p = (_o = this.partLookup) === null || _o === void 0 ? void 0 : _o.deadStock) === null || _p === void 0 ? void 0 : _p.length) > 1 &&
|
|
98
98
|
((_q = this.partLookup) === null || _q === void 0 ? void 0 : _q.deadStock.slice(1).map(deadStock => (h(DeadStockItem, { item: deadStock, locale: this.locale, icon: h(ArrowUpIcon, null), toggleAccordion: this.toggleAccordion, isOpened: this.openedAccordions.includes(deadStock === null || deadStock === void 0 ? void 0 : deadStock.companyName) }))))))))));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "dead-stock-lookup"; }
|