adp-web-components 0.0.11 → 0.0.13
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.cjs.entry.js +27 -15
- package/dist/cjs/distributor-lookup.cjs.entry.js +30 -20
- package/dist/cjs/dynamic-claim.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +7 -20
- package/dist/cjs/paint-thickness.cjs.entry.js +8 -21
- package/dist/cjs/{partInformation-2a6a018b.js → partInformation-07651204.js} +2 -2
- package/dist/cjs/service-history.cjs.entry.js +6 -19
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/vehicle-accessories.cjs.entry.js +8 -21
- package/dist/cjs/vehicle-specification.cjs.entry.js +6 -19
- package/dist/cjs/{vehicleInformation-4c1dcaf2.js → vehicleInformation-35c470fc.js} +5 -5
- package/dist/cjs/warranty-details.cjs.entry.js +10 -34
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +16 -8
- package/dist/collection/components/paint-thickness/paint-thickness.js +17 -22
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +49 -30
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +39 -21
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +16 -21
- package/dist/collection/components/service-history/service-history.js +15 -20
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +17 -22
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +15 -20
- package/dist/collection/components/warranty-details/warranty-details.js +21 -40
- package/dist/collection/global/api/partInformation.js +2 -2
- package/dist/collection/global/api/vehicleInformation.js +5 -5
- package/dist/collection/templates/vehicle-lookup.js +163 -96
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-4f08bcb8.js +5 -0
- package/dist/components/p-c4fad245.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/dead-stock-lookup.entry.js +27 -15
- package/dist/esm/distributor-lookup.entry.js +30 -20
- package/dist/esm/dynamic-claim.entry.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-lookup.entry.js +7 -20
- package/dist/esm/paint-thickness.entry.js +8 -21
- package/dist/esm/{partInformation-73ece994.js → partInformation-096a8f55.js} +2 -2
- package/dist/esm/service-history.entry.js +6 -19
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/vehicle-accessories.entry.js +8 -21
- package/dist/esm/vehicle-specification.entry.js +6 -19
- package/dist/esm/{vehicleInformation-f1081f83.js → vehicleInformation-f7290628.js} +5 -5
- package/dist/esm/warranty-details.entry.js +10 -34
- package/dist/shift-components/p-4f08bcb8.js +5 -0
- package/dist/shift-components/p-6b21ce2d.entry.js +5 -0
- package/dist/shift-components/p-7d85e912.entry.js +5 -0
- package/dist/shift-components/p-7f258017.entry.js +5 -0
- package/dist/shift-components/p-9653e992.entry.js +5 -0
- package/dist/shift-components/p-c4fad245.js +5 -0
- package/dist/shift-components/p-ca1e2e5b.entry.js +5 -0
- package/dist/shift-components/p-d1b9cd93.entry.js +5 -0
- package/dist/shift-components/p-d6f40c8d.entry.js +5 -0
- package/dist/shift-components/p-e05acce1.entry.js +5 -0
- package/dist/shift-components/p-faa8070a.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/dynamic-claim/dynamic-claim.d.ts +2 -2
- package/dist/types/components/paint-thickness/paint-thickness.d.ts +2 -2
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +4 -5
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +2 -2
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +2 -2
- package/dist/types/components/service-history/service-history.d.ts +2 -2
- package/dist/types/components/vehicle-accessories/vehicle-accessories.d.ts +2 -2
- package/dist/types/components/vehicle-specification/vehicle-specification.d.ts +2 -2
- package/dist/types/components/warranty-details/warranty-details.d.ts +3 -4
- package/dist/types/components.d.ts +18 -18
- package/dist/types/global/api/partInformation.d.ts +1 -1
- package/dist/types/global/api/vehicleInformation.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/p-5df9bc5f.js +0 -5
- package/dist/components/p-d265c109.js +0 -5
- package/dist/shift-components/p-15f86441.entry.js +0 -5
- package/dist/shift-components/p-1ae3a61f.entry.js +0 -5
- package/dist/shift-components/p-5df9bc5f.js +0 -5
- package/dist/shift-components/p-8c261972.entry.js +0 -5
- package/dist/shift-components/p-9bd4471c.entry.js +0 -5
- package/dist/shift-components/p-9f790b14.entry.js +0 -5
- package/dist/shift-components/p-c113792c.entry.js +0 -5
- package/dist/shift-components/p-d265c109.js +0 -5
- package/dist/shift-components/p-dc9845ed.entry.js +0 -5
- package/dist/shift-components/p-e32b0798.entry.js +0 -5
- package/dist/shift-components/p-f759c597.entry.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-\[40px\]{height:40px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\[15px\]{gap:15px}.gap-\[50px\]{gap:50px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.border-b-\[gray\],.border-b-\[grey\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-0{padding-left:0;padding-right:0}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-\[green\]{--tw-text-opacity:1;color:rgb(0 128 0/var(--tw-text-opacity,1))}.text-\[orange\]{--tw-text-opacity:1;color:rgb(255 165 0/var(--tw-text-opacity,1))}.text-\[red\]{--tw-text-opacity:1;color:rgb(255 0 0/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.last\:border-none:last-child{border-style:none}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\[40px\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}
|
|
@@ -22,7 +22,7 @@ export class DistributorLookup {
|
|
|
22
22
|
handleSettingData(response) {
|
|
23
23
|
this.partInformation = response;
|
|
24
24
|
}
|
|
25
|
-
async setData(newData) {
|
|
25
|
+
async setData(newData, headers = {}) {
|
|
26
26
|
clearTimeout(this.networkTimeoutRef);
|
|
27
27
|
if (this.abortController)
|
|
28
28
|
this.abortController.abort();
|
|
@@ -33,7 +33,6 @@ export class DistributorLookup {
|
|
|
33
33
|
this.externalPartNumber = partNumber;
|
|
34
34
|
try {
|
|
35
35
|
if (!partNumber || partNumber.trim().length === 0) {
|
|
36
|
-
//this.componentHeight = '0px';
|
|
37
36
|
this.state = 'idle';
|
|
38
37
|
return;
|
|
39
38
|
}
|
|
@@ -46,7 +45,7 @@ export class DistributorLookup {
|
|
|
46
45
|
scopedTimeoutRef = setTimeout(r, 700);
|
|
47
46
|
this.networkTimeoutRef = scopedTimeoutRef;
|
|
48
47
|
});
|
|
49
|
-
const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }) : newData;
|
|
48
|
+
const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
|
|
50
49
|
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
51
50
|
if (!partResponse)
|
|
52
51
|
throw new Error('Wrong response format');
|
|
@@ -63,22 +62,10 @@ export class DistributorLookup {
|
|
|
63
62
|
this.errorMessage = error.message;
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
async fetchData(
|
|
67
|
-
await this.setData(
|
|
65
|
+
async fetchData(partNumber = this.externalPartNumber, headers = {}) {
|
|
66
|
+
await this.setData(partNumber, headers);
|
|
68
67
|
}
|
|
69
|
-
//calculateHeight(componentState: string) {
|
|
70
|
-
// if (componentState.includes('loading') && this.componentHeight === '0px') {
|
|
71
|
-
// this.componentHeight = '100px';
|
|
72
|
-
// } else if (componentState !== 'idle') {
|
|
73
|
-
// setTimeout(() => {
|
|
74
|
-
// this.componentHeight = `${this.wrapperRef.clientHeight}px`;
|
|
75
|
-
// }, 50);
|
|
76
|
-
// } else {
|
|
77
|
-
// this.componentHeight = '0px';
|
|
78
|
-
// }
|
|
79
|
-
//}
|
|
80
68
|
async loadingListener() {
|
|
81
|
-
//this.calculateHeight(newState);
|
|
82
69
|
if (this.loadingStateChange)
|
|
83
70
|
this.loadingStateChange(this.state.includes('loading'));
|
|
84
71
|
}
|
|
@@ -87,7 +74,30 @@ export class DistributorLookup {
|
|
|
87
74
|
}
|
|
88
75
|
render() {
|
|
89
76
|
var _a;
|
|
90
|
-
|
|
77
|
+
const infoRow1 = this.partInformation
|
|
78
|
+
? [
|
|
79
|
+
{ label: 'Description', value: this.partInformation.stockParts[0].partDescription },
|
|
80
|
+
{ label: 'Product Group', value: this.partInformation.stockParts[0].group },
|
|
81
|
+
{ label: 'Price', value: this.partInformation.stockParts[0].price },
|
|
82
|
+
]
|
|
83
|
+
: [];
|
|
84
|
+
const infoRow2 = this.partInformation
|
|
85
|
+
? [
|
|
86
|
+
{ label: 'Superseded To', value: this.partInformation.stockParts[0].supersededTo },
|
|
87
|
+
{ label: 'Superseded From', value: this.partInformation.stockParts[0].supersededFrom },
|
|
88
|
+
]
|
|
89
|
+
: [];
|
|
90
|
+
const displayDistributer = this.partInformation
|
|
91
|
+
? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
|
|
92
|
+
: false;
|
|
93
|
+
return (h(Host, { key: '3c5a08da9bb6d8c0bbdf11a6c0ead0b8b3ece4fd' }, h("div", { key: 'dcbc04f9ece2c0a837bb89819606be82b0e625d5', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'b70cd016c852fcb6cece1f6be2f037d7af80f0be' }, h(Loading, { key: 'e404e25b376251fd9cb1b6bf8e520db09b0e6cc5', isLoading: this.state.includes('loading') }), h("div", { key: '33620d5b42941efe1d4f962d4df4d98aac8bdc15', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'f8fcc173188f6cbdfcf6da841ad6556b1a105d8d', class: "py-[16px]" }, h("div", { key: '7c2837559f70060bc3f133a0818299bd590bfb79', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: 'ad5eb569a94d00437c949317a6085e0df88911e1' }, h("div", { key: '159eb5d8c3e27a47352711b72f7364320a036adf', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '239a82c459a749aaef876be1f29651e4938e28ef', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), h("div", { key: 'fc013a900a27b19650727cea7bb724c71e2efd20', class: "py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '8621fa1329cb3373ac95cc155541322172a853a4', class: "flex gap-[50px]" }, infoRow1.map(({ label, value }) => (h("div", { key: label, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))), h("div", { key: 'b0df20fbafbb582eb26dd24021f636190ddad458', class: "flex gap-[50px]" }, infoRow2.map(({ label, value }) => (h("div", { key: label, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b border-b-[grey]" }, label), h("div", { class: "py-[10px] px-0" }, value)))), h("div", { key: '4d8824a39a0390e354863354c7d9edb8bdf3b28f', class: "flex-1" })))), displayDistributer && (h("div", { key: 'ad80b9e8a12cae61a5f734d13d51c07133667b2a', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '706d7fa5a761d47f93cfd6d6135f5b9eeff0c63a', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), h("div", { key: 'e660afe492e8722e22d1c2e96fbab51899549800', class: "flex flex-col gap-[15px]" }, h("table", { key: 'ff93c641d7c31b163957aa28086b3f4f49477b88', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'bfc5d1fe90425b6bfa964adf94b5291f29f5a05b', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: 'c162b0953b301b7cea3be6023ffe1cd51d145f54' }, ['Location', 'Availability'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'd4650b04d2292edbf185bedb4d34f065e04e0589' }, (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.stockParts.map(stock => (h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, h("div", { class: cn('text-[red]', {
|
|
94
|
+
'text-[green]': stock.quantityLookUpResult === 'Available',
|
|
95
|
+
'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
|
|
96
|
+
}) }, h("strong", null, stock.quantityLookUpResult === 'Available'
|
|
97
|
+
? 'Available'
|
|
98
|
+
: stock.quantityLookUpResult === 'PartiallyAvailable'
|
|
99
|
+
? 'Partially Available'
|
|
100
|
+
: 'Not Available'))))))))))))))))));
|
|
91
101
|
}
|
|
92
102
|
static get is() { return "distributor-lookup"; }
|
|
93
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -207,11 +217,15 @@ export class DistributorLookup {
|
|
|
207
217
|
return {
|
|
208
218
|
"setData": {
|
|
209
219
|
"complexType": {
|
|
210
|
-
"signature": "(newData: PartInformation | string) => Promise<void>",
|
|
220
|
+
"signature": "(newData: PartInformation | string, headers?: any) => Promise<void>",
|
|
211
221
|
"parameters": [{
|
|
212
222
|
"name": "newData",
|
|
213
223
|
"type": "string | PartInformation",
|
|
214
224
|
"docs": ""
|
|
225
|
+
}, {
|
|
226
|
+
"name": "headers",
|
|
227
|
+
"type": "any",
|
|
228
|
+
"docs": ""
|
|
215
229
|
}],
|
|
216
230
|
"references": {
|
|
217
231
|
"Promise": {
|
|
@@ -237,11 +251,15 @@ export class DistributorLookup {
|
|
|
237
251
|
},
|
|
238
252
|
"fetchData": {
|
|
239
253
|
"complexType": {
|
|
240
|
-
"signature": "(
|
|
254
|
+
"signature": "(partNumber?: string, headers?: any) => Promise<void>",
|
|
241
255
|
"parameters": [{
|
|
242
|
-
"name": "
|
|
256
|
+
"name": "partNumber",
|
|
243
257
|
"type": "string",
|
|
244
258
|
"docs": ""
|
|
259
|
+
}, {
|
|
260
|
+
"name": "headers",
|
|
261
|
+
"type": "any",
|
|
262
|
+
"docs": ""
|
|
245
263
|
}],
|
|
246
264
|
"references": {
|
|
247
265
|
"Promise": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.h-\[40px\]{height:40px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\[15px\]{gap:15px}.gap-\[50px\]{gap:50px}.overflow-hidden{overflow:hidden}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.border-b-\[grey\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-\[16px\]{padding-left:16px;padding-right:16px}.px-\[30px\]{padding-left:30px;padding-right:30px}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\[40px\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}.duration-100{transition-duration:.1s}
|
|
@@ -23,7 +23,7 @@ export class ManufacturerLookup {
|
|
|
23
23
|
handleSettingData(response) {
|
|
24
24
|
this.partInformation = response;
|
|
25
25
|
}
|
|
26
|
-
async setData(newData) {
|
|
26
|
+
async setData(newData, headers = {}) {
|
|
27
27
|
clearTimeout(this.networkTimeoutRef);
|
|
28
28
|
if (this.abortController)
|
|
29
29
|
this.abortController.abort();
|
|
@@ -34,7 +34,6 @@ export class ManufacturerLookup {
|
|
|
34
34
|
this.externalPartNumber = partNumber;
|
|
35
35
|
try {
|
|
36
36
|
if (!partNumber || partNumber.trim().length === 0) {
|
|
37
|
-
//this.componentHeight = '0px';
|
|
38
37
|
this.state = 'idle';
|
|
39
38
|
return;
|
|
40
39
|
}
|
|
@@ -47,7 +46,7 @@ export class ManufacturerLookup {
|
|
|
47
46
|
scopedTimeoutRef = setTimeout(r, 700);
|
|
48
47
|
this.networkTimeoutRef = scopedTimeoutRef;
|
|
49
48
|
});
|
|
50
|
-
const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }) : newData;
|
|
49
|
+
const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
|
|
51
50
|
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
52
51
|
if (!partResponse)
|
|
53
52
|
throw new Error('Wrong response format');
|
|
@@ -64,22 +63,10 @@ export class ManufacturerLookup {
|
|
|
64
63
|
this.errorMessage = error.message;
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
|
-
async fetchData(
|
|
68
|
-
await this.setData(
|
|
66
|
+
async fetchData(partNumber = this.externalPartNumber, headers = {}) {
|
|
67
|
+
await this.setData(partNumber, headers);
|
|
69
68
|
}
|
|
70
|
-
//calculateHeight(componentState: string) {
|
|
71
|
-
// if (componentState.includes('loading') && this.componentHeight === '0px') {
|
|
72
|
-
// this.componentHeight = '100px';
|
|
73
|
-
// } else if (componentState !== 'idle') {
|
|
74
|
-
// setTimeout(() => {
|
|
75
|
-
// this.componentHeight = `${this.wrapperRef.clientHeight}px`;
|
|
76
|
-
// }, 50);
|
|
77
|
-
// } else {
|
|
78
|
-
// this.componentHeight = '0px';
|
|
79
|
-
// }
|
|
80
|
-
//}
|
|
81
69
|
async loadingListener() {
|
|
82
|
-
//this.calculateHeight(newState);
|
|
83
70
|
if (this.loadingStateChange)
|
|
84
71
|
this.loadingStateChange(this.state.includes('loading'));
|
|
85
72
|
}
|
|
@@ -87,7 +74,7 @@ export class ManufacturerLookup {
|
|
|
87
74
|
mockData = newMockData;
|
|
88
75
|
}
|
|
89
76
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '9cec65cb5b6300b130e8af6faf83e5e5218fcc1e' }, h("div", { key: '8d7661403efd16aeed5b4e481dbe01889e781b9d', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '2c0f35bc4bb0eb202b03d68f394a8b61aa45765f' }, h(Loading, { key: '5b501d52c3d36b5a0faa7447d8ee2884e5eedd9d', isLoading: this.state.includes('loading') }), h("div", { key: '0e9f54293dcf20797371b4788e45864d62517ed4', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: '1d295e9c0540942d84806c0a3e262b82f3a25ad5', class: "py-[16px]" }, h("div", { key: '59b91062e6270eb984945abb2f876e49bb2c827f', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '029fd4596e57bcaf22fe99af0b2df0d99918a9de' }, h("div", { key: '4238846980d8a390ad522e916f0d5ee0f9b566bb', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'ac90d7513b742b8a1300e9a2f337fd1a22fbf8d5', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: 'cd8b5a2f0e1c0c2db8d7c6750727e4a8e03b601e', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '0cdfe3fd454e8a7ca19dd962cf9e1c3d2a156b2c', class: "flex gap-[50px]" }, h("div", { key: '03710ca72597273ef45dd40a12bc8c87c92c2ee6', class: "flex flex-col flex-1" }, h("strong", { key: '9121a29035dc3cb0624b814417eb2ae01fdd28ad', class: "py-[10px] border-b border-b-[grey]" }, "Description"), h("div", { key: '6278922b721b4b63b7d99ff1fd0490dee8a9dfc2', class: "py-[10px]" }, this.partInformation.tmcPart.partDescription)), h("div", { key: 'f3e651ba7f50de00873739f2b4bbb91d1835f792', class: "flex flex-col flex-1" }, h("strong", { key: '7351da14f1ac55180f18cbfafbc47ce44e7104cf', class: "py-[10px] border-b border-b-[grey]" }, "Product Group"), h("div", { key: '8869a8228b33fdc154f4a06d437ea7b6cddd73ed', class: "py-[10px]" }, this.partInformation.tmcPart.group)), h("div", { key: '19060b17fd4f1bd3ec7798915f35fac0f65694cc', class: "flex-1" })))))))))));
|
|
91
78
|
}
|
|
92
79
|
static get is() { return "manufacturer-lookup"; }
|
|
93
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -225,11 +212,15 @@ export class ManufacturerLookup {
|
|
|
225
212
|
return {
|
|
226
213
|
"setData": {
|
|
227
214
|
"complexType": {
|
|
228
|
-
"signature": "(newData: PartInformation | string) => Promise<void>",
|
|
215
|
+
"signature": "(newData: PartInformation | string, headers?: any) => Promise<void>",
|
|
229
216
|
"parameters": [{
|
|
230
217
|
"name": "newData",
|
|
231
218
|
"type": "string | PartInformation",
|
|
232
219
|
"docs": ""
|
|
220
|
+
}, {
|
|
221
|
+
"name": "headers",
|
|
222
|
+
"type": "any",
|
|
223
|
+
"docs": ""
|
|
233
224
|
}],
|
|
234
225
|
"references": {
|
|
235
226
|
"Promise": {
|
|
@@ -255,11 +246,15 @@ export class ManufacturerLookup {
|
|
|
255
246
|
},
|
|
256
247
|
"fetchData": {
|
|
257
248
|
"complexType": {
|
|
258
|
-
"signature": "(
|
|
249
|
+
"signature": "(partNumber?: string, headers?: any) => Promise<void>",
|
|
259
250
|
"parameters": [{
|
|
260
|
-
"name": "
|
|
251
|
+
"name": "partNumber",
|
|
261
252
|
"type": "string",
|
|
262
253
|
"docs": ""
|
|
254
|
+
}, {
|
|
255
|
+
"name": "headers",
|
|
256
|
+
"type": "any",
|
|
257
|
+
"docs": ""
|
|
263
258
|
}],
|
|
264
259
|
"references": {
|
|
265
260
|
"Promise": {
|
|
@@ -24,7 +24,7 @@ export class ServiceHistory {
|
|
|
24
24
|
response.serviceHistory = [];
|
|
25
25
|
this.vehicleInformation = response;
|
|
26
26
|
}
|
|
27
|
-
async setData(newData) {
|
|
27
|
+
async setData(newData, headers = {}) {
|
|
28
28
|
clearTimeout(this.networkTimeoutRef);
|
|
29
29
|
if (this.abortController)
|
|
30
30
|
this.abortController.abort();
|
|
@@ -35,7 +35,6 @@ export class ServiceHistory {
|
|
|
35
35
|
this.externalVin = vin;
|
|
36
36
|
try {
|
|
37
37
|
if (!vin || vin.trim().length === 0) {
|
|
38
|
-
//this.componentHeight = '0px';
|
|
39
38
|
this.state = 'idle';
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
@@ -48,7 +47,7 @@ export class ServiceHistory {
|
|
|
48
47
|
scopedTimeoutRef = setTimeout(r, 700);
|
|
49
48
|
this.networkTimeoutRef = scopedTimeoutRef;
|
|
50
49
|
});
|
|
51
|
-
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }) : newData;
|
|
50
|
+
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
52
51
|
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
53
52
|
if (!vehicleResponse)
|
|
54
53
|
throw new Error('Wrong response format');
|
|
@@ -65,22 +64,10 @@ export class ServiceHistory {
|
|
|
65
64
|
this.errorMessage = error.message;
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
|
-
async fetchData(requestedVin = this.externalVin) {
|
|
69
|
-
await this.setData(requestedVin);
|
|
67
|
+
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
68
|
+
await this.setData(requestedVin, headers);
|
|
70
69
|
}
|
|
71
|
-
//calculateHeight(componentState: string) {
|
|
72
|
-
// if (componentState.includes('loading') && this.componentHeight === '0px') {
|
|
73
|
-
// this.componentHeight = '100px';
|
|
74
|
-
// } else if (componentState !== 'idle') {
|
|
75
|
-
// setTimeout(() => {
|
|
76
|
-
// this.componentHeight = `${this.wrapperRef.clientHeight}px`;
|
|
77
|
-
// }, 50);
|
|
78
|
-
// } else {
|
|
79
|
-
// this.componentHeight = '0px';
|
|
80
|
-
// }
|
|
81
|
-
//}
|
|
82
70
|
async loadingListener() {
|
|
83
|
-
//this.calculateHeight(newState);
|
|
84
71
|
if (this.loadingStateChange)
|
|
85
72
|
this.loadingStateChange(this.state.includes('loading'));
|
|
86
73
|
}
|
|
@@ -89,7 +76,7 @@ export class ServiceHistory {
|
|
|
89
76
|
}
|
|
90
77
|
render() {
|
|
91
78
|
var _a, _b, _c, _d;
|
|
92
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '41626d52c1a46c5aa17d924c740ff128c717db72' }, h("div", { key: '148b48b3511bbb0edcb06c95f432cec3794bb8be', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '83af30eb9e1bb760b7d0524b5868b98390ae67c0' }, h(Loading, { key: '6f4a0f5c66407fc24ba9ffc624d3d2e37abca2f6', isLoading: this.state.includes('loading') }), h("div", { key: 'f16ed2ccb8a9e3bcd8f71eaf05fb3c4a28eb0a16', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'ffba94045d0641ffad445c78173ef139e133ae8d', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '710d22f3233b428cafab34984cc562e46fa92d8b', class: "py-[16px]" }, h("div", { key: 'b036ab0231e60c66a24757b23ec5acceeca359f9', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '64fd2439a7edc45b552a7e7ea2a6583b9376b57b', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'dec74cb4310d310094fa9958b0c3991f476d9bb8', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Service History"), h("div", { key: 'bc17bcd99593f7a86c00c6fbed2a9cc3c516eae7', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: '8d5a0902e8a13909867f0f138bbd629ad97b8b3e', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: '9121de3dbcdd6ceb6e88380d15ba3a0885626af3', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '492edb0969f9774ff1fa78af9fdb4bab3f240e23', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '91bb78d8f37c12c20f331ec55f76d362572bfcee' }, ['Branch', 'Dealer', 'Invoice No.', 'Date', 'Service Type', 'Odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: '6019cc8f4ad18c13b3b082fe87da6a2bfab65773' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
|
|
93
80
|
var _a;
|
|
94
81
|
return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
95
82
|
'!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
|
|
@@ -214,11 +201,15 @@ export class ServiceHistory {
|
|
|
214
201
|
return {
|
|
215
202
|
"setData": {
|
|
216
203
|
"complexType": {
|
|
217
|
-
"signature": "(newData: VehicleInformation | string) => Promise<void>",
|
|
204
|
+
"signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
|
|
218
205
|
"parameters": [{
|
|
219
206
|
"name": "newData",
|
|
220
207
|
"type": "string | VehicleInformation",
|
|
221
208
|
"docs": ""
|
|
209
|
+
}, {
|
|
210
|
+
"name": "headers",
|
|
211
|
+
"type": "any",
|
|
212
|
+
"docs": ""
|
|
222
213
|
}],
|
|
223
214
|
"references": {
|
|
224
215
|
"Promise": {
|
|
@@ -244,11 +235,15 @@ export class ServiceHistory {
|
|
|
244
235
|
},
|
|
245
236
|
"fetchData": {
|
|
246
237
|
"complexType": {
|
|
247
|
-
"signature": "(requestedVin?: string) => Promise<void>",
|
|
238
|
+
"signature": "(requestedVin?: string, headers?: any) => Promise<void>",
|
|
248
239
|
"parameters": [{
|
|
249
240
|
"name": "requestedVin",
|
|
250
241
|
"type": "string",
|
|
251
242
|
"docs": ""
|
|
243
|
+
}, {
|
|
244
|
+
"name": "headers",
|
|
245
|
+
"type": "any",
|
|
246
|
+
"docs": ""
|
|
252
247
|
}],
|
|
253
248
|
"references": {
|
|
254
249
|
"Promise": {
|
|
@@ -36,7 +36,7 @@ export class VehicleAccessories {
|
|
|
36
36
|
response.accessories = [];
|
|
37
37
|
this.vehicleInformation = response;
|
|
38
38
|
}
|
|
39
|
-
async setData(newData) {
|
|
39
|
+
async setData(newData, headers = {}) {
|
|
40
40
|
clearTimeout(this.networkTimeoutRef);
|
|
41
41
|
if (this.abortController)
|
|
42
42
|
this.abortController.abort();
|
|
@@ -47,7 +47,6 @@ export class VehicleAccessories {
|
|
|
47
47
|
this.externalVin = vin;
|
|
48
48
|
try {
|
|
49
49
|
if (!vin || vin.trim().length === 0) {
|
|
50
|
-
//this.componentHeight = '0px';
|
|
51
50
|
this.state = 'idle';
|
|
52
51
|
return;
|
|
53
52
|
}
|
|
@@ -60,7 +59,7 @@ export class VehicleAccessories {
|
|
|
60
59
|
scopedTimeoutRef = setTimeout(r, 700);
|
|
61
60
|
this.networkTimeoutRef = scopedTimeoutRef;
|
|
62
61
|
});
|
|
63
|
-
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }) : newData;
|
|
62
|
+
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
64
63
|
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
65
64
|
if (!vehicleResponse)
|
|
66
65
|
throw new Error('Wrong response format');
|
|
@@ -77,22 +76,10 @@ export class VehicleAccessories {
|
|
|
77
76
|
this.errorMessage = error.message;
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
async fetchData(requestedVin = this.externalVin) {
|
|
81
|
-
await this.setData(requestedVin);
|
|
79
|
+
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
80
|
+
await this.setData(requestedVin, headers);
|
|
82
81
|
}
|
|
83
|
-
//calculateHeight(componentState: string) {
|
|
84
|
-
// if (componentState.includes('loading') && this.componentHeight === '0px') {
|
|
85
|
-
// this.componentHeight = '100px';
|
|
86
|
-
// } else if (componentState !== 'idle') {
|
|
87
|
-
// setTimeout(() => {
|
|
88
|
-
// this.componentHeight = `${this.wrapperRef.clientHeight}px`;
|
|
89
|
-
// }, 50);
|
|
90
|
-
// } else {
|
|
91
|
-
// this.componentHeight = '0px';
|
|
92
|
-
// }
|
|
93
|
-
//}
|
|
94
82
|
async loadingListener() {
|
|
95
|
-
//this.calculateHeight(newState);
|
|
96
83
|
if (this.loadingStateChange)
|
|
97
84
|
this.loadingStateChange(this.state.includes('loading'));
|
|
98
85
|
}
|
|
@@ -102,7 +89,7 @@ export class VehicleAccessories {
|
|
|
102
89
|
render() {
|
|
103
90
|
var _a, _b;
|
|
104
91
|
const accessories = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.accessories : [];
|
|
105
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '7e5394e3dad05815f3a514a342f7afbe11a8d4c1' }, h("div", { key: '1d3fea9972e6827680908bc1becb9be17a4305db', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '853e8ff5ad5adf557db5805fc6cc841d7ee224d0' }, h(Loading, { key: '46cdabae84cf49eb88b277bf55b45f233cf28021', isLoading: this.state.includes('loading') }), h("div", { key: '948f2861dcf3e7a8b94f84400a75f681f405122a', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '2b53f6a05b1beab10a9436435969bfc0bc383cae', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '90d5c9e6f1efd3cef3994d2d7ccd6d278d424a76', class: "py-[16px]" }, h("div", { key: '4cd2e9823137e6a7b861fea69f13a6a0343929b2', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '9481a97632f581c0b3ebdf0df9086730d10dfdc1', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '649fa9917501f66fa2380e3557c5e86ad26d7f89', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Vehicle Accessories"), h("div", { key: '262a67208efe49dbb113c7925cf6b6ae835b3f0c', class: "h-0 overflow-auto flex-1" }, !accessories.length && h("div", { key: 'ec443d025b8ca3e50f397ffb1c66e5b280e42f70', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!accessories.length && (h("table", { key: '48d6e63959a8732972b89ca514b72d5677eb4447', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'b9cdc265accdb543d14bacc09756e2a7ac44e6e8', class: "top-0 font-bold z-40 sticky bg-white" }, h("tr", { key: '2951863ff3d03fa9eab980acd348d2ae352cc1b4' }, ['Part Number', 'Description', 'Image'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: '7106dfb61229963e59d800f630a0e351be1d680f' }, accessories.map((accessory, idx) => {
|
|
106
93
|
var _a;
|
|
107
94
|
return (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: accessory.partNumber }, ['partNumber', 'description'].map(key => {
|
|
108
95
|
var _a;
|
|
@@ -112,9 +99,9 @@ export class VehicleAccessories {
|
|
|
112
99
|
}), h("td", { class: cn('px-[10px] py-[10px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
113
100
|
'!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
|
|
114
101
|
}) }, h("button", { onClick: ({ target }) => this.openImage(target, accessory.image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, h("img", { src: Eye }), h("span", { class: "text-white" }, "Expand")), h("img", { class: "w-auto h-auto max-w-[133px] max-h-[133px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: accessory.image })))));
|
|
115
|
-
})), h("div", { key: '
|
|
102
|
+
})), h("div", { key: 'a16654412c64f0811caf281bc9a10b4325143f74', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-50 left-0 opacity-0 bg-black/40 transition-all duration-400', {
|
|
116
103
|
'pointer-events-auto opacity-100 delay-200': this.expandedImage,
|
|
117
|
-
}) }, h("button", { key: '
|
|
104
|
+
}) }, h("button", { key: '2a1f6a6de320d464b549be5c8d0955743eab0c1a', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: '9806406418b9a2588b18a9659a183b494d2dc029', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: 'e52ccc81db9fad6cde21438bae24ac06ed06d886', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: '9db20d318e852a02ad255e5dc463d5ffd3135eb5', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
|
|
118
105
|
}
|
|
119
106
|
static get is() { return "vehicle-accessories"; }
|
|
120
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -235,11 +222,15 @@ export class VehicleAccessories {
|
|
|
235
222
|
return {
|
|
236
223
|
"setData": {
|
|
237
224
|
"complexType": {
|
|
238
|
-
"signature": "(newData: VehicleInformation | string) => Promise<void>",
|
|
225
|
+
"signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
|
|
239
226
|
"parameters": [{
|
|
240
227
|
"name": "newData",
|
|
241
228
|
"type": "string | VehicleInformation",
|
|
242
229
|
"docs": ""
|
|
230
|
+
}, {
|
|
231
|
+
"name": "headers",
|
|
232
|
+
"type": "any",
|
|
233
|
+
"docs": ""
|
|
243
234
|
}],
|
|
244
235
|
"references": {
|
|
245
236
|
"Promise": {
|
|
@@ -265,11 +256,15 @@ export class VehicleAccessories {
|
|
|
265
256
|
},
|
|
266
257
|
"fetchData": {
|
|
267
258
|
"complexType": {
|
|
268
|
-
"signature": "(requestedVin?: string) => Promise<void>",
|
|
259
|
+
"signature": "(requestedVin?: string, headers?: any) => Promise<void>",
|
|
269
260
|
"parameters": [{
|
|
270
261
|
"name": "requestedVin",
|
|
271
262
|
"type": "string",
|
|
272
263
|
"docs": ""
|
|
264
|
+
}, {
|
|
265
|
+
"name": "headers",
|
|
266
|
+
"type": "any",
|
|
267
|
+
"docs": ""
|
|
273
268
|
}],
|
|
274
269
|
"references": {
|
|
275
270
|
"Promise": {
|