adp-web-components 0.1.69 → 0.1.71
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 +1 -1
- 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_8.cjs.entry.js +8 -8
- package/dist/cjs/form-input_4.cjs.entry.js +8 -5
- package/dist/cjs/form-switch.cjs.entry.js +1 -1
- package/dist/cjs/form-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/general-inquiry-form.cjs.entry.js +3 -3
- package/dist/cjs/{get-local-language-Cen-CaAS.js → get-local-language-CrGMNJyx.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/{loader-icon-DDFoc4iC.js → loader-icon-BTRe-EkU.js} +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +1 -1
- package/dist/cjs/service-booking-form.cjs.entry.js +3 -3
- package/dist/cjs/shift-checkbox.cjs.entry.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 +2 -2
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +3 -3
- package/dist/cjs/{state-object-P-Iq2rJH.js → state-object-DC2JjJcf.js} +12 -7
- package/dist/cjs/test-drive-form.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +8 -8
- package/dist/cjs/vehicle-lookup.cjs.entry.js +2 -2
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +10 -7
- 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/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/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +4 -1
- package/dist/collection/components/forms/defaults/mappers.js +3 -3
- package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +8 -5
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- 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-service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/global/lib/populate-items.js +8 -3
- 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-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-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-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-5vCnW15q.js → p-0xcR950E.js} +1 -1
- package/dist/components/{p-s1egbQvB.js → p-2CMkowBx.js} +1 -1
- package/dist/components/{p-DZp-jErv.js → p-8XSbLgc1.js} +1 -1
- package/dist/components/{p-DUVWBnA9.js → p-B5f2dpEy.js} +1 -1
- package/dist/components/{p-BxThjPHO.js → p-B9DO0698.js} +1 -1
- package/dist/components/{p-BR4OFzVP.js → p-BBYPaQBK.js} +1 -1
- package/dist/components/p-BGzp0k11.js +5 -0
- package/dist/components/{p-qrgJk9wz.js → p-BLFDdJWV.js} +1 -1
- package/dist/components/{p-UCSAYvqq.js → p-BlGKvTMT.js} +1 -1
- package/dist/components/{p-BS9Sy4l-.js → p-BmyNDE_E.js} +1 -1
- package/dist/components/{p-Dj8Ee7hQ.js → p-Bw_VvuFc.js} +1 -1
- package/dist/components/{p-l_zY6q-j.js → p-BxuggWJc.js} +1 -1
- package/dist/components/p-CEOpVFS4.js +5 -0
- package/dist/components/{p-DBGnUep_.js → p-CRhdQvF0.js} +1 -1
- package/dist/components/{p-MF_Mhmek.js → p-CVR4TrpD.js} +1 -1
- package/dist/components/{p-PmX2Y4Vl.js → p-CWVjZ_Vg.js} +1 -1
- package/dist/components/{p-CrJpwlcT.js → p-CZzCbI9_.js} +1 -1
- package/dist/components/{p-D4jWMiB1.js → p-CnU-FAvr.js} +1 -1
- package/dist/components/{p-CL7WvF4L.js → p-Ctn6qJSb.js} +1 -1
- package/dist/components/{p-C_yzUJkF.js → p-D5TUOBeG.js} +1 -1
- package/dist/components/p-DJaWpqrV.js +5 -0
- package/dist/components/{p-CtOJ_zjn.js → p-DL1ZwCZy.js} +1 -1
- package/dist/components/{p-CYk4_3GI.js → p-DRqirHEl.js} +1 -1
- package/dist/components/{p-BNxNkaWr.js → p-DTSxLKHX.js} +1 -1
- package/dist/components/{p-DUqTj2gi.js → p-DWWN4ooP.js} +1 -1
- package/dist/components/{p-CZAQDwlb.js → p-DWuvZsGI.js} +1 -1
- package/dist/components/{p-CpDHXuPB.js → p-Db4o0Qpx.js} +1 -1
- package/dist/components/{p-CaTpKLTA.js → p-DbcLXe18.js} +1 -1
- package/dist/components/{p-CSP0hpyv.js → p-DiqiT5wD.js} +1 -1
- package/dist/components/{p-BJVKwMQT.js → p-DyNlA71C.js} +1 -1
- package/dist/components/{p-CSaunwNy.js → p-TR2srg3G.js} +1 -1
- package/dist/components/{p-DM8BoqLf.js → p-Uit3uqMQ.js} +1 -1
- package/dist/components/{p-D_eB5U40.js → p-c05QCGD9.js} +1 -1
- package/dist/components/{p-BFIEwYxz.js → p-h28ATSQb.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-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/esm/dead-stock-lookup_3.entry.js +1 -1
- 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_8.entry.js +8 -8
- package/dist/esm/form-input_4.entry.js +8 -5
- package/dist/esm/form-switch.entry.js +1 -1
- package/dist/esm/form-time-picker.entry.js +1 -1
- package/dist/esm/general-inquiry-form.entry.js +3 -3
- package/dist/esm/{get-local-language-BA-mxji9.js → get-local-language-CDa5dIz4.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/{loader-icon-CrkrQoZC.js → loader-icon-DEUB-nef.js} +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +1 -1
- package/dist/esm/part-lookup.entry.js +1 -1
- package/dist/esm/service-booking-form.entry.js +3 -3
- package/dist/esm/shift-checkbox.entry.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 +2 -2
- package/dist/esm/ssc-lookup-form.entry.js +3 -3
- package/dist/esm/{state-object-DAC-YAZL.js → state-object-Ogxin4e1.js} +12 -7
- package/dist/esm/test-drive-form.entry.js +3 -3
- package/dist/esm/vehicle-accessories_7.entry.js +8 -8
- package/dist/esm/vehicle-lookup.entry.js +2 -2
- package/dist/esm/vehicle-quotation-form.entry.js +10 -7
- package/dist/shift-components/p-0e27b251.entry.js +5 -0
- package/dist/shift-components/p-15e10305.entry.js +5 -0
- package/dist/shift-components/{p-c94a8a2a.entry.js → p-2c5165b8.entry.js} +1 -1
- package/dist/shift-components/{p-1314318c.entry.js → p-2fe3538e.entry.js} +1 -1
- package/dist/shift-components/{p-71390e8e.entry.js → p-398ca2dd.entry.js} +1 -1
- package/dist/shift-components/{p-0e787552.entry.js → p-4238fe6e.entry.js} +1 -1
- package/dist/shift-components/p-4461d611.entry.js +5 -0
- package/dist/shift-components/{p-57383665.entry.js → p-623d5c3d.entry.js} +1 -1
- package/dist/shift-components/{p-f9d25f53.entry.js → p-6433c2ae.entry.js} +1 -1
- package/dist/shift-components/{p-ed1e7ad1.entry.js → p-66ef506a.entry.js} +1 -1
- package/dist/shift-components/{p-69ff8945.entry.js → p-76fe6d18.entry.js} +1 -1
- package/dist/shift-components/p-C5yZUyec.js +5 -0
- package/dist/shift-components/{p-DJUFyE7i.js → p-CpPMv1bM.js} +1 -1
- package/dist/shift-components/{p-3ba867f7.entry.js → p-a4abc248.entry.js} +1 -1
- package/dist/shift-components/{p-8a108e47.entry.js → p-ad9a34aa.entry.js} +1 -1
- package/dist/shift-components/{p-1e7a67f8.entry.js → p-b2721d2b.entry.js} +1 -1
- package/dist/shift-components/{p-7972fca8.entry.js → p-b90e8298.entry.js} +1 -1
- package/dist/shift-components/{p-13ba1767.entry.js → p-ba2b46c2.entry.js} +1 -1
- package/dist/shift-components/{p-bf8073aa.entry.js → p-c0758cce.entry.js} +1 -1
- package/dist/shift-components/{p-2c02f614.entry.js → p-c2f8916b.entry.js} +1 -1
- package/dist/shift-components/{p-f2a4ac7c.entry.js → p-c342b9d1.entry.js} +1 -1
- package/dist/shift-components/{p-2a9fdd57.entry.js → p-d637c69b.entry.js} +1 -1
- package/dist/shift-components/{p-dfa74829.entry.js → p-da9862ea.entry.js} +1 -1
- package/dist/shift-components/{p-d4fd929c.entry.js → p-e962f341.entry.js} +1 -1
- package/dist/shift-components/{p-2b170c48.entry.js → p-f4914abc.entry.js} +1 -1
- package/dist/shift-components/{p-BDOonna-.js → p-rMLckxTx.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/global/lib/populate-items.d.ts +3 -3
- package/package.json +1 -1
- package/dist/components/p-BgJinsB1.js +0 -5
- package/dist/components/p-C2_nbD-_.js +0 -5
- package/dist/components/p-FQ2AsScl.js +0 -5
- package/dist/shift-components/p-83b7765e.entry.js +0 -5
- package/dist/shift-components/p-DZEsUMU0.js +0 -5
- package/dist/shift-components/p-b1c84fb2.entry.js +0 -5
- package/dist/shift-components/p-f23ef5c3.entry.js +0 -5
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var index = require('./index-CmK48vN3.js');
|
|
8
8
|
require('./types-B3WMBBhs.js');
|
|
9
9
|
var index$1 = require('./index-D5c513Xn.js');
|
|
10
|
-
var loaderIcon = require('./loader-icon-
|
|
10
|
+
var loaderIcon = require('./loader-icon-BTRe-EkU.js');
|
|
11
11
|
var cn = require('./cn-BHnqYtun.js');
|
|
12
12
|
var calendarDaysIcon = require('./calendar-days-icon-C2lFWgOC.js');
|
|
13
13
|
var decodeTimeOffset = require('./decode-time-offset-DqzP0mck.js');
|
|
@@ -61,12 +61,17 @@ const VehicleImageViewer = ({ form }) => {
|
|
|
61
61
|
index.h("img", { alt: "vehicle image", part: "vehicle-image", src: imageSrcBase64, style: { 'border-radius': '6px', 'transition': 'opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);', 'opacity': isLoading ? '0' : '1' } }))));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
+
const getObjectValue = (obj, path) => {
|
|
65
|
+
if (typeof path === 'string')
|
|
66
|
+
return getNestedValue.getNestedValue(obj, path);
|
|
67
|
+
return path.map(itemPath => getNestedValue.getNestedValue(obj, itemPath)).find(value => value != null);
|
|
68
|
+
};
|
|
64
69
|
const populateItems = (data, setup, hasMeta) => {
|
|
65
70
|
const options = [];
|
|
66
|
-
const baseOptions =
|
|
71
|
+
const baseOptions = getObjectValue(data, setup.items);
|
|
67
72
|
baseOptions.forEach(item => {
|
|
68
|
-
const value =
|
|
69
|
-
const label =
|
|
73
|
+
const value = getObjectValue(item, setup['item-value']);
|
|
74
|
+
const label = getObjectValue(item, setup['item-label']);
|
|
70
75
|
const newItemObject = { value: (setup === null || setup === void 0 ? void 0 : setup.useNamedValue) ? label : value, label };
|
|
71
76
|
newItemObject.meta = Object.assign({}, item);
|
|
72
77
|
options.push(newItemObject);
|
|
@@ -101,13 +106,13 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
|
|
|
101
106
|
const res = await response.json();
|
|
102
107
|
options = res.data;
|
|
103
108
|
options = options.map((vehicle, idx) => {
|
|
104
|
-
var _a, _b, _c;
|
|
109
|
+
var _a, _b, _c, _d, _e;
|
|
105
110
|
if (!props.defaultValue && paramValue && (((_a = vehicle === null || vehicle === void 0 ? void 0 : vehicle.GradeName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === paramValue || ((_b = `${vehicle.id}`) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === paramValue))
|
|
106
111
|
defaultIndex = idx;
|
|
107
112
|
return {
|
|
108
113
|
label: vehicle.attributes.GradeName,
|
|
109
|
-
value: (props === null || props === void 0 ? void 0 : props.useNamedValue) ? `${(_c = vehicle === null || vehicle === void 0 ? void 0 : vehicle.attributes) === null || _c === void 0 ? void 0 : _c.GradeName}` : `${vehicle.id}`,
|
|
110
|
-
meta: Object.assign(Object.assign({}, vehicle), { image: vehicle.attributes.Cover.data.attributes.url }),
|
|
114
|
+
value: (props === null || props === void 0 ? void 0 : props.useNamedValue) ? `${(vehicle === null || vehicle === void 0 ? void 0 : vehicle.GradeName) || ((_c = vehicle === null || vehicle === void 0 ? void 0 : vehicle.attributes) === null || _c === void 0 ? void 0 : _c.GradeName)}` : `${vehicle.id}`,
|
|
115
|
+
meta: Object.assign(Object.assign({}, vehicle), { image: ((_d = vehicle === null || vehicle === void 0 ? void 0 : vehicle.Cover) === null || _d === void 0 ? void 0 : _d.url) || ((_e = vehicle.attributes.Cover.data.attributes) === null || _e === void 0 ? void 0 : _e.url) }),
|
|
111
116
|
};
|
|
112
117
|
});
|
|
113
118
|
}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
var index = require('./index-CmK48vN3.js');
|
|
8
|
-
var loaderIcon = require('./loader-icon-
|
|
8
|
+
var loaderIcon = require('./loader-icon-BTRe-EkU.js');
|
|
9
9
|
var cn = require('./cn-BHnqYtun.js');
|
|
10
10
|
var validation$1 = require('./validation-DEdJb-KL.js');
|
|
11
11
|
var types = require('./types-B3WMBBhs.js');
|
|
12
12
|
var getLanguageFromUrl = require('./get-language-from-url-DSzX4HQt.js');
|
|
13
|
-
var stateObject$1 = require('./state-object-
|
|
14
|
-
require('./get-local-language-
|
|
13
|
+
var stateObject$1 = require('./state-object-DC2JjJcf.js');
|
|
14
|
+
require('./get-local-language-CrGMNJyx.js');
|
|
15
15
|
require('./index-D5c513Xn.js');
|
|
16
16
|
require('./validate-vin-CJDIXpJO.js');
|
|
17
17
|
require('./calendar-days-icon-C2lFWgOC.js');
|