adp-web-components 0.0.13 → 0.0.16
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/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
- package/dist/cjs/app-globals-26499410.js +33 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +3 -4
- package/dist/cjs/distributor-lookup.cjs.entry.js +3 -4
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +1046 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +5 -5
- package/dist/cjs/form-input.cjs.entry.js +2 -2
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
- package/dist/cjs/{index-d4b5214c.js → index-97b8da6d.js} +289 -8
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +3 -4
- package/dist/cjs/shift-components.cjs.js +3 -3
- package/dist/cjs/vehicle-lookup.cjs.entry.js +168 -0
- package/dist/collection/collection-manifest.json +8 -6
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -1
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +2 -2
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -1
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +3 -3
- package/dist/collection/components/form-input/form-input.js +1 -1
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -1
- package/dist/collection/components/service-history/service-history.css +1 -1
- package/dist/collection/components/service-history/service-history.js +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -3
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +366 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -1
- package/dist/collection/components/warranty-details/warranty-details.css +1 -1
- package/dist/collection/components/warranty-details/warranty-details.js +1 -1
- package/dist/collection/global/lib/middleware.js +26 -0
- package/dist/collection/global/lib/validate-vin.js +62 -0
- 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/dynamic-redeem.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-05871c28.js +5 -0
- package/dist/components/p-23551e81.js +5 -0
- package/dist/components/p-325b6857.js +5 -0
- package/dist/components/{p-50f73226.js → p-3bf0339d.js} +1 -1
- package/dist/components/p-514c4736.js +5 -0
- package/dist/components/{p-2b0cc0c6.js → p-8385e385.js} +1 -1
- package/dist/components/p-be0a5ab5.js +5 -0
- package/dist/components/p-c8eef708.js +5 -0
- package/dist/components/p-da533bd7.js +5 -0
- package/dist/components/p-e46b126e.js +5 -0
- package/dist/components/p-f1ffc23d.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-lookup.d.ts +11 -0
- package/dist/components/vehicle-lookup.js +5 -0
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/{loader-027b88af.js → Loading-d050617c.js} +9 -1
- package/dist/esm/app-globals-7790014c.js +31 -0
- package/dist/esm/dead-stock-lookup.entry.js +3 -4
- package/dist/esm/distributor-lookup.entry.js +3 -4
- package/dist/esm/dynamic-claim_6.entry.js +1037 -0
- package/dist/esm/dynamic-redeem.entry.js +5 -5
- package/dist/esm/form-input.entry.js +2 -2
- package/dist/esm/general-inquiry-form.entry.js +2 -2
- package/dist/esm/{index-ef54644b.js → index-ff1dab22.js} +289 -8
- package/dist/esm/loader.js +4 -4
- package/dist/esm/manufacturer-lookup.entry.js +3 -4
- package/dist/esm/shift-components.js +4 -4
- package/dist/esm/vehicle-lookup.entry.js +164 -0
- package/dist/shift-components/{p-894e7518.entry.js → p-15e82b1a.entry.js} +1 -1
- package/dist/shift-components/p-1a727cfd.entry.js +5 -0
- package/dist/shift-components/p-2bb4415e.entry.js +5 -0
- package/dist/shift-components/p-3f3b41b4.entry.js +5 -0
- package/dist/shift-components/{p-8e818568.entry.js → p-4c3f2850.entry.js} +1 -1
- package/dist/shift-components/p-4ca95c3d.entry.js +5 -0
- package/dist/shift-components/p-65939a2f.js +5 -0
- package/dist/shift-components/p-7177b6f0.entry.js +5 -0
- package/dist/shift-components/p-8b198a04.entry.js +5 -0
- package/dist/shift-components/p-a92f02d4.js +5 -0
- package/dist/shift-components/p-f37b60d5.js +6 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +32 -0
- package/dist/types/components.d.ts +46 -2
- package/dist/types/global/lib/middleware.d.ts +0 -0
- package/dist/types/global/lib/validate-vin.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +3 -0
- package/package.json +1 -1
- package/readme.md +2 -91
- package/dist/cjs/Loading-ee1a2ceb.js +0 -16
- package/dist/cjs/app-globals-3813fb46.js +0 -9
- package/dist/cjs/dynamic-claim.cjs.entry.js +0 -306
- package/dist/cjs/image-expansion-a9c9c6f7.js +0 -77
- package/dist/cjs/paint-thickness.cjs.entry.js +0 -118
- package/dist/cjs/service-history.cjs.entry.js +0 -103
- package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -122
- package/dist/cjs/vehicle-specification.cjs.entry.js +0 -98
- package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
- package/dist/cjs/warranty-details.cjs.entry.js +0 -257
- package/dist/components/p-4dc47f5f.js +0 -5
- package/dist/components/p-8375923d.js +0 -5
- package/dist/components/p-a454210b.js +0 -5
- package/dist/esm/Loading-61648252.js +0 -14
- package/dist/esm/app-globals-8befa224.js +0 -7
- package/dist/esm/dynamic-claim.entry.js +0 -302
- package/dist/esm/image-expansion-08c4bf0d.js +0 -73
- package/dist/esm/paint-thickness.entry.js +0 -114
- package/dist/esm/service-history.entry.js +0 -99
- package/dist/esm/vehicle-accessories.entry.js +0 -118
- package/dist/esm/vehicle-specification.entry.js +0 -94
- package/dist/esm/vehicleInformation-f7290628.js +0 -50
- package/dist/esm/warranty-details.entry.js +0 -253
- package/dist/shift-components/p-517b3e04.js +0 -5
- package/dist/shift-components/p-65e6ab8e.js +0 -5
- package/dist/shift-components/p-6b21ce2d.entry.js +0 -5
- package/dist/shift-components/p-7d85e912.entry.js +0 -5
- package/dist/shift-components/p-7f258017.entry.js +0 -5
- package/dist/shift-components/p-9653e992.entry.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-c4fad245.js +0 -5
- package/dist/shift-components/p-ca1e2e5b.entry.js +0 -5
- package/dist/shift-components/p-d1b9cd93.entry.js +0 -5
- package/dist/shift-components/p-d5ff7544.js +0 -5
- package/dist/shift-components/p-d6f40c8d.entry.js +0 -5
- package/dist/shift-components/p-e05acce1.entry.js +0 -5
- package/dist/shift-components/p-e97316d2.js +0 -6
- package/dist/shift-components/p-faa8070a.entry.js +0 -5
- package/dist/shift-components/p-feb3df85.entry.js +0 -5
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
+
const index = require('./index-97b8da6d.js');
|
|
8
|
+
const cn = require('./cn-f559f9e5.js');
|
|
9
|
+
|
|
7
10
|
const loaderSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIKICAgIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1sb2FkZXIiPgogICAgPHBhdGggZD0iTTEyIDJ2NCIgLz4KICAgIDxwYXRoIGQ9Im0xNi4yIDcuOCAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTE4IDEyaDQiIC8+CiAgICA8cGF0aCBkPSJtMTYuMiAxNi4yIDIuOSAyLjkiIC8+CiAgICA8cGF0aCBkPSJNMTIgMTh2NCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgMTkuMSAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTIgMTJoNCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgNC45IDIuOSAyLjkiIC8+Cjwvc3ZnPg==';
|
|
8
11
|
|
|
12
|
+
function Loading({ isLoading }) {
|
|
13
|
+
return (index.h("div", { class: cn.cn('size-full transition-all z-50 duration-100 flex items-center justify-center pointer-events-none absolute ', { 'opacity-0': !isLoading }) },
|
|
14
|
+
index.h("img", { class: "animate-spin-2s size-[40px]", src: loaderSvg })));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.Loading = Loading;
|
|
9
18
|
exports.loaderSvg = loaderSvg;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
(function () {
|
|
8
|
+
if (!window['blazorInvoke']) {
|
|
9
|
+
window['blazorInvoke'] = function (selector, functionName, ...args) {
|
|
10
|
+
const element = document.querySelector(selector);
|
|
11
|
+
if (!element) {
|
|
12
|
+
console.error(`Element with selector "${selector}" not found.`);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (typeof element[functionName] !== 'function') {
|
|
16
|
+
console.error(`Function "${functionName}" not found on the element.`);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
return element[functionName](...args);
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
console.error(`Error invoking function "${functionName}" on element "${selector}":`, error);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
console.log('Global blazorInvoke initialized.');
|
|
27
|
+
}
|
|
28
|
+
})();
|
|
29
|
+
const globalFn = () => { };
|
|
30
|
+
|
|
31
|
+
const globalScripts = globalFn;
|
|
32
|
+
|
|
33
|
+
exports.globalScripts = globalScripts;
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-97b8da6d.js');
|
|
10
10
|
const partInformation = require('./partInformation-07651204.js');
|
|
11
|
-
const Loading = require('./Loading-
|
|
11
|
+
const Loading = require('./Loading-20e4ef35.js');
|
|
12
12
|
const cn = require('./cn-f559f9e5.js');
|
|
13
|
-
require('./loader-baf2418b.js');
|
|
14
13
|
|
|
15
14
|
const deadStockLookupCss = "*,: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-scroll-snap-strictness:proximity;--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;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-scroll-snap-strictness:proximity;--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;}/*! 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}.mb-\\[10px\\]{margin-bottom:10px}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.table{display:table}.size-\\[22px\\]{height:22px;width:22px}.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%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.transform{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}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.rounded-md{border-radius:.375rem}.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))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[20px\\]{padding-left:20px;padding-right:20px}.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-left{text-align:left}.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))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/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)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.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}";
|
|
16
15
|
const DeadStockLookupStyle0 = deadStockLookupCss;
|
|
@@ -102,7 +101,7 @@ const DeadStockLookup = class {
|
|
|
102
101
|
}
|
|
103
102
|
render() {
|
|
104
103
|
var _a, _b;
|
|
105
|
-
return (index.h(index.Host, { key: '
|
|
104
|
+
return (index.h(index.Host, { key: '5afafb701488fe12ae7510942bb0abfee53f1d81' }, index.h("div", { key: 'c35e2b2b6dc469803dcacfe72c64f242eb71fc66', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'c887e169746b873d1faabc2dc7fcb6ac9b36088b' }, index.h(Loading.Loading, { key: '6895759b25d925520984a6a911646d154aeb6f1e', isLoading: this.state.includes('loading') }), index.h("div", { key: '53b1e3bbdd9d76d7f3adb31db67fc35578c5db31', class: cn.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) && (index.h("div", { key: '70e777c2e43cb5f702d14604e5daa3d24fe4b793', class: "py-[16px]" }, index.h("div", { key: '9b082979188f3ceebe6287e4618b81482025265d', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '858736a530a1eeb27be15bb6ce74d90eac69854a' }, index.h("div", { key: '34446c3dee2e3bb9e98eb095efb88f31eb068695', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'eb5644f27f839b85aba52bf1cb4e369030c95bcf', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Dead stock"), (_b = (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.deadStock) === null || _b === void 0 ? void 0 :
|
|
106
105
|
_b.map(deadStock => (index.h("div", { key: deadStock.companyIntegrationID, class: "py-[10px] px-[20px]" }, index.h("div", { "aria-expanded": "false", style: { height: closedAccordionHeight }, class: "border shadow transition-all duration-500 overflow-hidden rounded-md mb-[10px] border-[#d6d8dc]" }, index.h("button", { onClick: this.toggleAccordion, style: { height: closedAccordionHeight }, class: "w-full flex px-[10px] justify-between items-center text-slate-800" }, index.h("strong", null, deadStock.companyName), index.h("span", { class: "icon text-slate-800 transition-transform duration-500" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-[22px]" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z" })))), index.h("div", { class: "content" }, index.h("table", { class: "w-full overflow-auto relative border-collapse" }, index.h("thead", null, index.h("tr", null, index.h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Branch"), index.h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Available Qty"))), index.h("tbody", null, deadStock === null || deadStock === void 0 ? void 0 : deadStock.branchDeadStock.map(branchDeadStock => (index.h("tr", { class: "transition-colors border-b border-[#d6d8dc] last:border-none duration-100 hover:bg-slate-100", key: branchDeadStock.companyBranchIntegrationID }, index.h("td", { class: cn.cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, branchDeadStock.companyBranchName), index.h("td", { class: cn.cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, index.h("strong", null, branchDeadStock.quantity))))))))))))))))))));
|
|
107
106
|
}
|
|
108
107
|
get el() { return index.getElement(this); }
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
|
-
const index = require('./index-
|
|
10
|
-
const Loading = require('./Loading-
|
|
9
|
+
const index = require('./index-97b8da6d.js');
|
|
10
|
+
const Loading = require('./Loading-20e4ef35.js');
|
|
11
11
|
const cn = require('./cn-f559f9e5.js');
|
|
12
12
|
const partInformation = require('./partInformation-07651204.js');
|
|
13
|
-
require('./loader-baf2418b.js');
|
|
14
13
|
|
|
15
14
|
const distributorLookupCss = "*,: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-scroll-snap-strictness:proximity;--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;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-scroll-snap-strictness:proximity;--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;}/*! 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}";
|
|
16
15
|
const DistributorLookupStyle0 = distributorLookupCss;
|
|
@@ -100,7 +99,7 @@ const DistributorLookup = class {
|
|
|
100
99
|
const displayDistributer = this.partInformation
|
|
101
100
|
? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
|
|
102
101
|
: false;
|
|
103
|
-
return (index.h(index.Host, { key: '
|
|
102
|
+
return (index.h(index.Host, { key: '79c2ce86ba515ef9bc26e6ee0d337be842cee5f1' }, index.h("div", { key: 'f48591eaa1b5440d50ac9566907e1d771022de7c', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '381e363eec8c71ca7a639338c4ffb99a483542aa' }, index.h(Loading.Loading, { key: '5f59b51bff60f4a2ffb840c6e61697e67577074e', isLoading: this.state.includes('loading') }), index.h("div", { key: '8b7dc79b0731e99139720ab43153070279437991', class: cn.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) && (index.h("div", { key: 'dd1701dcb27b0436b1c6d13c6e35f603911eb373', class: "py-[16px]" }, index.h("div", { key: '8a94e43ebfaff59a1000b6fd253b2c8b1172c87c', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '9ac28a4b1fddea36b41cdad10244f95aa94bc400' }, index.h("div", { key: '1e1e65f06b0e30d6d7a087d412c9d5e54337ee17', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '7b675eb6ca2cd95dbbaebb3aebbbc54ac7340417', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), index.h("div", { key: 'a4c2b16157f953406c5f14f7fd1e04112455b1eb', class: "py-[10px] flex flex-col gap-[15px]" }, index.h("div", { key: '9e0f362dcb01d78b78fbc3b27af289721fe7b1d7', class: "flex gap-[50px]" }, infoRow1.map(({ label, value }) => (index.h("div", { key: label, class: "flex flex-col flex-1" }, index.h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), index.h("div", { class: "py-[10px] px-0" }, value))))), index.h("div", { key: '6f031fb75275a7e91d76a9af02f2beb205dd2537', class: "flex gap-[50px]" }, infoRow2.map(({ label, value }) => (index.h("div", { key: label, class: "flex flex-col flex-1" }, index.h("strong", { class: "py-[10px] px-0 border-b border-b-[grey]" }, label), index.h("div", { class: "py-[10px] px-0" }, value)))), index.h("div", { key: '7a442c3e03c340e85810930ad0b47bf6f9e02619', class: "flex-1" })))), displayDistributer && (index.h("div", { key: '6fd4a90e0606586f300d49f224a4e2d43dacfd59', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'edd8c06e7f8e88507005bb5c0349985251161cf2', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), index.h("div", { key: '482ebf02eb1bcb4f179d71d9b9d0ee68b1df0765', class: "flex flex-col gap-[15px]" }, index.h("table", { key: '6df53c5a8af361cfb9b7805d904894774465eca2', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '80de5117fb5c3d88df9f3b2d978ab53b0a3d1ab6', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '6a41439bc02d475cd8b3f3f5aeb6d8893219a164' }, ['Location', 'Availability'].map(title => (index.h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), index.h("tbody", { key: 'a0752f0ac86dbc23f1a44fcef1a258bffc37cb6c' }, (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.stockParts.map(stock => (index.h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, index.h("td", { class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), index.h("td", { class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, index.h("div", { class: cn.cn('text-[red]', {
|
|
104
103
|
'text-[green]': stock.quantityLookUpResult === 'Available',
|
|
105
104
|
'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
|
|
106
105
|
}) }, index.h("strong", null, stock.quantityLookUpResult === 'Available'
|