adp-web-components 0.0.11
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/LICENSE +21 -0
- package/dist/cjs/Loading-ee1a2ceb.js +16 -0
- package/dist/cjs/app-globals-3813fb46.js +9 -0
- package/dist/cjs/cn-f559f9e5.js +2588 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +103 -0
- package/dist/cjs/distributor-lookup.cjs.entry.js +109 -0
- package/dist/cjs/dynamic-claim.cjs.entry.js +306 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +145 -0
- package/dist/cjs/form-input.cjs.entry.js +36 -0
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2280 -0
- package/dist/cjs/image-expansion-a9c9c6f7.js +77 -0
- package/dist/cjs/index-d4b5214c.js +1331 -0
- package/dist/cjs/index.cjs.js +6 -0
- package/dist/cjs/loader-baf2418b.js +9 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +109 -0
- package/dist/cjs/paint-thickness.cjs.entry.js +131 -0
- package/dist/cjs/partInformation-2a6a018b.js +34 -0
- package/dist/cjs/service-history.cjs.entry.js +116 -0
- package/dist/cjs/shift-components.cjs.js +29 -0
- package/dist/cjs/vehicle-accessories.cjs.entry.js +135 -0
- package/dist/cjs/vehicle-specification.cjs.entry.js +111 -0
- package/dist/cjs/vehicleInformation-4c1dcaf2.js +52 -0
- package/dist/cjs/warranty-details.cjs.entry.js +281 -0
- package/dist/collection/collection-manifest.json +23 -0
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -0
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +521 -0
- package/dist/collection/components/dynamic-claim/icons/cancelled.svg +8 -0
- package/dist/collection/components/dynamic-claim/icons/expired.svg +9 -0
- package/dist/collection/components/dynamic-claim/icons/pending.svg +9 -0
- package/dist/collection/components/dynamic-claim/icons/processed.svg +9 -0
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -0
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +334 -0
- package/dist/collection/components/form-input/form-input.css +1 -0
- package/dist/collection/components/form-input/form-input.js +209 -0
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.css +1 -0
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +46 -0
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -0
- package/dist/collection/components/paint-thickness/paint-thickness.js +323 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +294 -0
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -0
- package/dist/collection/components/part-lookup/distributor-lookup.js +299 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +317 -0
- package/dist/collection/components/parts/Loading.js +10 -0
- package/dist/collection/components/service-history/service-history.css +1 -0
- package/dist/collection/components/service-history/service-history.js +306 -0
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -0
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +327 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +301 -0
- package/dist/collection/components/warranty-details/assets/check.svg +4 -0
- package/dist/collection/components/warranty-details/assets/loader.svg +11 -0
- package/dist/collection/components/warranty-details/assets/x-mark.svg +4 -0
- package/dist/collection/components/warranty-details/components/CardsContainer.js +9 -0
- package/dist/collection/components/warranty-details/components/Loading.js +10 -0
- package/dist/collection/components/warranty-details/components/SSCTable.js +13 -0
- package/dist/collection/components/warranty-details/components/StatusCard.js +11 -0
- package/dist/collection/components/warranty-details/warranty-details.css +1 -0
- package/dist/collection/components/warranty-details/warranty-details.js +709 -0
- package/dist/collection/global/api/partInformation.js +30 -0
- package/dist/collection/global/api/vehicleInformation.js +48 -0
- package/dist/collection/global/assets/eye.svg +5 -0
- package/dist/collection/global/assets/loader.svg +11 -0
- package/dist/collection/global/lib/cn.js +9 -0
- package/dist/collection/global/lib/form-hook.js +118 -0
- package/dist/collection/global/lib/image-expansion.js +69 -0
- package/dist/collection/global/lib/utils.js +7 -0
- package/dist/collection/global/types/components.js +1 -0
- package/dist/collection/global/types/part-information.js +1 -0
- package/dist/collection/global/types/vehicle-information.js +5 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/templates/mock-data.js +4132 -0
- package/dist/collection/templates/parts/mock-data.js +221 -0
- package/dist/collection/templates/vehicle-lookup.js +218 -0
- package/dist/collection/templates/warranty-mock-data.js +2982 -0
- package/dist/components/dead-stock-lookup.d.ts +11 -0
- package/dist/components/dead-stock-lookup.js +5 -0
- package/dist/components/distributor-lookup.d.ts +11 -0
- package/dist/components/distributor-lookup.js +5 -0
- package/dist/components/dynamic-claim.d.ts +11 -0
- package/dist/components/dynamic-claim.js +5 -0
- package/dist/components/dynamic-redeem.d.ts +11 -0
- package/dist/components/dynamic-redeem.js +5 -0
- package/dist/components/form-input.d.ts +11 -0
- package/dist/components/form-input.js +5 -0
- package/dist/components/general-inquiry-form.d.ts +11 -0
- package/dist/components/general-inquiry-form.js +5 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +5 -0
- package/dist/components/manufacturer-lookup.d.ts +11 -0
- package/dist/components/manufacturer-lookup.js +5 -0
- package/dist/components/p-2b0cc0c6.js +5 -0
- package/dist/components/p-4dc47f5f.js +5 -0
- package/dist/components/p-50f73226.js +5 -0
- package/dist/components/p-5df9bc5f.js +5 -0
- package/dist/components/p-8375923d.js +5 -0
- package/dist/components/p-98d9e7ab.js +5 -0
- package/dist/components/p-a454210b.js +5 -0
- package/dist/components/p-d265c109.js +5 -0
- package/dist/components/p-d5ff7544.js +5 -0
- package/dist/components/paint-thickness.d.ts +11 -0
- package/dist/components/paint-thickness.js +5 -0
- package/dist/components/service-history.d.ts +11 -0
- package/dist/components/service-history.js +5 -0
- package/dist/components/vehicle-accessories.d.ts +11 -0
- package/dist/components/vehicle-accessories.js +5 -0
- package/dist/components/vehicle-specification.d.ts +11 -0
- package/dist/components/vehicle-specification.js +5 -0
- package/dist/components/warranty-details.d.ts +11 -0
- package/dist/components/warranty-details.js +5 -0
- package/dist/esm/Loading-61648252.js +14 -0
- package/dist/esm/app-globals-8befa224.js +7 -0
- package/dist/esm/cn-cc419b94.js +2586 -0
- package/dist/esm/dead-stock-lookup.entry.js +99 -0
- package/dist/esm/distributor-lookup.entry.js +105 -0
- package/dist/esm/dynamic-claim.entry.js +302 -0
- package/dist/esm/dynamic-redeem.entry.js +141 -0
- package/dist/esm/form-input.entry.js +32 -0
- package/dist/esm/general-inquiry-form.entry.js +2276 -0
- package/dist/esm/image-expansion-08c4bf0d.js +73 -0
- package/dist/esm/index-ef54644b.js +1302 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/loader-027b88af.js +7 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/manufacturer-lookup.entry.js +105 -0
- package/dist/esm/paint-thickness.entry.js +127 -0
- package/dist/esm/partInformation-73ece994.js +32 -0
- package/dist/esm/service-history.entry.js +112 -0
- package/dist/esm/shift-components.js +24 -0
- package/dist/esm/vehicle-accessories.entry.js +131 -0
- package/dist/esm/vehicle-specification.entry.js +107 -0
- package/dist/esm/vehicleInformation-f1081f83.js +50 -0
- package/dist/esm/warranty-details.entry.js +277 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/shift-components/index.esm.js +4 -0
- package/dist/shift-components/p-15f86441.entry.js +5 -0
- package/dist/shift-components/p-1ae3a61f.entry.js +5 -0
- package/dist/shift-components/p-517b3e04.js +5 -0
- package/dist/shift-components/p-5df9bc5f.js +5 -0
- package/dist/shift-components/p-65e6ab8e.js +5 -0
- package/dist/shift-components/p-894e7518.entry.js +5 -0
- package/dist/shift-components/p-8c261972.entry.js +5 -0
- package/dist/shift-components/p-8e818568.entry.js +5 -0
- package/dist/shift-components/p-98d9e7ab.js +5 -0
- package/dist/shift-components/p-9bd4471c.entry.js +5 -0
- package/dist/shift-components/p-9f790b14.entry.js +5 -0
- package/dist/shift-components/p-a21e2e2e.js +5 -0
- package/dist/shift-components/p-c113792c.entry.js +5 -0
- package/dist/shift-components/p-d265c109.js +5 -0
- package/dist/shift-components/p-d5ff7544.js +5 -0
- package/dist/shift-components/p-dc9845ed.entry.js +5 -0
- package/dist/shift-components/p-e32b0798.entry.js +5 -0
- package/dist/shift-components/p-e97316d2.js +6 -0
- package/dist/shift-components/p-f759c597.entry.js +5 -0
- package/dist/shift-components/p-feb3df85.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +5 -0
- package/dist/types/components/dynamic-claim/dynamic-claim.d.ts +48 -0
- package/dist/types/components/dynamic-redeem/dynamic-redeem.d.ts +34 -0
- package/dist/types/components/form-input/form-input.d.ts +14 -0
- package/dist/types/components/general-inquiry-form/general-inquiry-form.d.ts +21 -0
- package/dist/types/components/paint-thickness/paint-thickness.d.ts +28 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +25 -0
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -0
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +24 -0
- package/dist/types/components/parts/Loading.d.ts +5 -0
- package/dist/types/components/service-history/service-history.d.ts +23 -0
- package/dist/types/components/vehicle-accessories/vehicle-accessories.d.ts +28 -0
- package/dist/types/components/vehicle-specification/vehicle-specification.d.ts +22 -0
- package/dist/types/components/warranty-details/components/CardsContainer.d.ts +8 -0
- package/dist/types/components/warranty-details/components/Loading.d.ts +5 -0
- package/dist/types/components/warranty-details/components/SSCTable.d.ts +6 -0
- package/dist/types/components/warranty-details/components/StatusCard.d.ts +10 -0
- package/dist/types/components/warranty-details/warranty-details.d.ts +51 -0
- package/dist/types/components.d.ts +388 -0
- package/dist/types/global/api/partInformation.d.ts +19 -0
- package/dist/types/global/api/vehicleInformation.d.ts +33 -0
- package/dist/types/global/lib/cn.d.ts +2 -0
- package/dist/types/global/lib/form-hook.d.ts +54 -0
- package/dist/types/global/lib/image-expansion.d.ts +9 -0
- package/dist/types/global/lib/utils.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +4 -0
- package/dist/types/global/types/part-information.d.ts +30 -0
- package/dist/types/global/types/vehicle-information.d.ts +162 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/loader/cdn.js +5 -0
- package/loader/index.cjs.js +5 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +5 -0
- package/loader/index.js +6 -0
- package/loader/package.json +11 -0
- package/package.json +61 -0
- package/readme.md +104 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
const eyeSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIgogICAgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWV5ZSI+CiAgICA8cGF0aCBkPSJNMi4wNjIgMTIuMzQ4YTEgMSAwIDAgMSAwLS42OTYgMTAuNzUgMTAuNzUgMCAwIDEgMTkuODc2IDAgMSAxIDAgMCAxIDAgLjY5NiAxMC43NSAxMC43NSAwIDAgMS0xOS44NzYgMCIgLz4KICAgIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjMiIC8+Cjwvc3ZnPg==';
|
|
8
|
+
|
|
9
|
+
function openImageViewer(context, target, imageSrc) {
|
|
10
|
+
if (context.expandedImage === imageSrc)
|
|
11
|
+
return;
|
|
12
|
+
context.originalImage = target;
|
|
13
|
+
const expandedImageRef = context.el.shadowRoot.getElementById('expanded-image');
|
|
14
|
+
expandedImageRef.src = target.src;
|
|
15
|
+
document.addEventListener('keydown', context.closeImageListener);
|
|
16
|
+
const rect = target.getBoundingClientRect();
|
|
17
|
+
document.body.style.overflow = 'hidden';
|
|
18
|
+
Object.assign(expandedImageRef.style, {
|
|
19
|
+
top: `${rect.top}px`,
|
|
20
|
+
pointerEvents: 'auto',
|
|
21
|
+
left: `${rect.left}px`,
|
|
22
|
+
transitionDuration: '0s',
|
|
23
|
+
width: `${rect.width}px`,
|
|
24
|
+
height: `${rect.height}px`,
|
|
25
|
+
});
|
|
26
|
+
setTimeout(() => {
|
|
27
|
+
const naturalWidth = target.naturalWidth;
|
|
28
|
+
const naturalHeight = target.naturalHeight;
|
|
29
|
+
const maxWidth = window.innerWidth - 160;
|
|
30
|
+
const maxHeight = window.innerHeight - 32;
|
|
31
|
+
const aspectRatio = naturalWidth / naturalHeight;
|
|
32
|
+
let width, height;
|
|
33
|
+
if (maxWidth / aspectRatio <= maxHeight) {
|
|
34
|
+
width = maxWidth;
|
|
35
|
+
height = maxWidth / aspectRatio;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
height = maxHeight;
|
|
39
|
+
width = maxHeight * aspectRatio;
|
|
40
|
+
}
|
|
41
|
+
expandedImageRef.style.transitionDuration = '0.3s';
|
|
42
|
+
Object.assign(expandedImageRef.style, {
|
|
43
|
+
opacity: '1',
|
|
44
|
+
width: `${width}px`,
|
|
45
|
+
height: `${height}px`,
|
|
46
|
+
top: `${(window.innerHeight - height) / 2}px`,
|
|
47
|
+
left: `${(window.innerWidth - width) / 2}px`,
|
|
48
|
+
});
|
|
49
|
+
context.expandedImage = imageSrc;
|
|
50
|
+
}, 200);
|
|
51
|
+
}
|
|
52
|
+
function closeImageViewer(context, event) {
|
|
53
|
+
if (event && event.key !== 'Escape')
|
|
54
|
+
return;
|
|
55
|
+
document.removeEventListener('keydown', context.closeImageListener);
|
|
56
|
+
const expandedImageRef = context.el.shadowRoot.getElementById('expanded-image');
|
|
57
|
+
const rect = context.originalImage.getBoundingClientRect();
|
|
58
|
+
Object.assign(expandedImageRef.style, {
|
|
59
|
+
top: `${rect.top}px`,
|
|
60
|
+
pointerEvents: 'none',
|
|
61
|
+
left: `${rect.left}px`,
|
|
62
|
+
width: `${rect.width}px`,
|
|
63
|
+
height: `${rect.height}px`,
|
|
64
|
+
transitionDuration: '0.3s',
|
|
65
|
+
});
|
|
66
|
+
setTimeout(() => {
|
|
67
|
+
expandedImageRef.src = '';
|
|
68
|
+
expandedImageRef.style.opacity = '0';
|
|
69
|
+
expandedImageRef.style.transitionDuration = '0s';
|
|
70
|
+
}, 300);
|
|
71
|
+
document.body.style.overflow = '';
|
|
72
|
+
context.expandedImage = null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
exports.closeImageViewer = closeImageViewer;
|
|
76
|
+
exports.eyeSvg = eyeSvg;
|
|
77
|
+
exports.openImageViewer = openImageViewer;
|