adp-web-components 0.0.12 → 0.0.15
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/dead-stock-lookup.cjs.entry.js +24 -13
- package/dist/cjs/distributor-lookup.cjs.entry.js +27 -18
- 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 +2 -2
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +4 -18
- package/dist/cjs/shift-components.cjs.js +2 -2
- package/dist/cjs/vehicle-lookup.cjs.entry.js +133 -0
- package/dist/collection/collection-manifest.json +6 -5
- 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 -16
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +34 -23
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +24 -14
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -14
- package/dist/collection/components/service-history/service-history.css +1 -1
- package/dist/collection/components/service-history/service-history.js +1 -14
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -16
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +244 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -14
- package/dist/collection/components/warranty-details/warranty-details.css +1 -1
- package/dist/collection/components/warranty-details/warranty-details.js +7 -34
- package/dist/collection/global/lib/validate-vin.js +62 -0
- 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/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/dead-stock-lookup.entry.js +24 -13
- package/dist/esm/distributor-lookup.entry.js +27 -18
- 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 +3 -3
- package/dist/esm/manufacturer-lookup.entry.js +4 -18
- package/dist/esm/shift-components.js +3 -3
- package/dist/esm/vehicle-lookup.entry.js +129 -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-8b198a04.entry.js +5 -0
- package/dist/shift-components/p-d577db71.entry.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/part-lookup/dead-stock-lookup.d.ts +2 -3
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +23 -0
- package/dist/types/components/warranty-details/warranty-details.d.ts +1 -2
- package/dist/types/components.d.ts +37 -0
- package/dist/types/global/lib/validate-vin.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +2 -91
- package/dist/cjs/Loading-ee1a2ceb.js +0 -16
- 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 -131
- package/dist/cjs/service-history.cjs.entry.js +0 -116
- package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -135
- package/dist/cjs/vehicle-specification.cjs.entry.js +0 -111
- package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
- package/dist/cjs/warranty-details.cjs.entry.js +0 -281
- 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/dynamic-claim.entry.js +0 -302
- package/dist/esm/image-expansion-08c4bf0d.js +0 -73
- package/dist/esm/paint-thickness.entry.js +0 -127
- package/dist/esm/service-history.entry.js +0 -112
- package/dist/esm/vehicle-accessories.entry.js +0 -131
- package/dist/esm/vehicle-specification.entry.js +0 -107
- package/dist/esm/vehicleInformation-f7290628.js +0 -50
- package/dist/esm/warranty-details.entry.js +0 -277
- package/dist/shift-components/p-2e3e8e97.entry.js +0 -5
- package/dist/shift-components/p-3bfafc40.entry.js +0 -5
- package/dist/shift-components/p-65e6ab8e.js +0 -5
- package/dist/shift-components/p-75ea0e53.entry.js +0 -5
- package/dist/shift-components/p-91eff216.entry.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-c274f4ba.entry.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-d5ff7544.js +0 -5
- package/dist/shift-components/p-e97316d2.js +0 -6
- package/dist/shift-components/p-ec9302fb.entry.js +0 -5
- package/dist/shift-components/p-f21722ce.entry.js +0 -5
- package/dist/shift-components/p-f95c7501.entry.js +0 -5
- package/dist/shift-components/p-feb3df85.entry.js +0 -5
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},h={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},d=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.o?g(b):h.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(v),$(y),(m=v.length>0)&&h.raf(b)},g=e=>d().then(e),S=w(y,!0),k={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>C,ok:()=>E,unwrap:()=>A,unwrapErr:()=>T});var E=e=>({isOk:!0,isErr:!1,value:e}),x=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return x(e.value);throw"should never get here"}var M,P,R,A=e=>{if(e.isOk)return e.value;throw e.value},T=e=>{if(e.isErr)return e.value;throw e.value},H=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?D(null,o):o),r=i)};if(f(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,L);const u=D(e,null);return u.u=t,c.length>0&&(u.h=c),u.p=l,u.m=s,u},D=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},L={forEach:(e,t)=>e.map(U).forEach(t),map:(e,t)=>e.map(U).map(t).map(F)},U=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),F=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),H(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},W=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=W(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=h.ce(t,n);return e.dispatchEvent(o),o},I=new WeakMap,V=e=>"sc-"+e.S,_=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=B(n),s=B(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,u=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(f,t):e.removeAttribute(t)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,u?e.setAttributeNS(f,t,o):e.setAttribute(t,o))}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&h.rel(e,t,n,l),o&&h.ael(e,t,o,l)}}},z=/\s/,B=e=>e?e.split(z):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||k,s=t.u||k;for(const e of X(Object.keys(l)))e in s||_(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))_(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,f=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=a.createTextNode(s.i);else if(1&s.o)i=s.$=a.createTextNode("");else{if(te||(te="svg"===s.v),i=s.$=a.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Y&&2&s.o?"slot-fb":s.v),te&&"foreignObject"===s.v&&(te=!1),Q(null,s,te),i.getRootNode().querySelector("body"),s.h)for(f=0;f<s.h.length;++f)r=ne(e,s,f,i),r&&i.appendChild(r);"svg"===s.v?te=!1:"foreignObject"===i.tagName&&(te=!0)}return i["s-hn"]=R,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=P,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{h.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==R&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}h.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===R&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>!(e.v!==t.v||("slot"===e.v?"k"in e&&n&&8!==e.$.nodeType||e.m!==t.m:!n&&e.p!==t.p)),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,fe=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.v,r=t.i;let c;null===r?(te="svg"===i||"foreignObject"!==i&&te,("slot"!==i||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(h,m,l))fe(h,m,l),h=t[++r],m=o[++c];else if(ie(d,v,l))fe(d,v,l),d=t[--a],v=o[--p];else if(ie(h,v,l))"slot"!==h.v&&"slot"!==v.v||oe(h.$.parentNode,!1),fe(h,v,l),me(e,h.$,d.$.nextSibling),h=t[++r],v=o[--p];else if(ie(d,m,l))"slot"!==h.v&&"slot"!==v.v||oe(d.$.parentNode,!1),fe(d,m,l),me(e,d.$,h.$),d=t[--a],m=o[++c];else{for(f=-1,u=r;u<=a;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){f=u;break}f>=0?(i=t[f],i.v!==m.v?s=ne(t&&t[c],n,f,e):(fe(i,m,l),t[f]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(h.$),s,re(h.$))}r>a?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):!n&&null!==l&&se(l,0,l.length-1),te&&"svg"===i&&(te=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:e.i!==r&&(o.data=r)},ue=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}ue(e)}},ae=[],he=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(de(t,e)){let n=ae.find((e=>e.j===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.j["s-sh"]=l["s-hn"],n.O=l):(t["s-sh"]=l["s-hn"],ae.push({O:l,j:t})),t["s-sr"]&&ae.map((e=>{de(e.j,t["s-sn"])&&(n=ae.find((e=>e.j===t)),n&&!e.O&&(e.O=n.O))}))}else ae.some((e=>e.j===t))||ae.push({j:t})}1===l.nodeType&&he(l)}},de=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.M),S((()=>we(e,t)));e.o|=512},we=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return $e(void 0,(()=>ge(e,n,t)))},$e=(e,t)=>be(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),be=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ge=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.P,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=V(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=I.get(e=e.head||e);if(i||I.set(e,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=h.R)?n:O(a);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Se(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ke(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Se=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.P,f=e.A||D(null,null),u=(e=>e&&e.v===N)(t)?t:H(null,null,t);if(R=r.tagName,n&&u.u)for(const e of Object.keys(u.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.u[e]=r[e]);if(u.v=null,u.o|=4,e.A=u,u.$=f.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),P=r["s-cr"],Z=!1,fe(f,u,n),h.o|=1,ee){he(u.$);for(const e of ae){const t=e.j;if(!t["s-ol"]){const e=a.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ae){const t=e.j,r=e.O;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&ue(u.$),h.o&=-2,ae.length=0,P=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},ke=e=>{const t=e.$hostElement$,n=e.t,o=e.M;64&e.o||(e.o|=64,Ee(t),Oe(n,"componentDidLoad"),e.T(t),o||je()),e.H(t),e.C&&(e.C(),e.C=void 0),512&e.o&&g((()=>ye(e,!1))),e.o&=-517},je=()=>{Ee(a.documentElement),g((()=>G(u,"appload",{detail:{namespace:"shift-components"}})))},Oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Ee=e=>e.classList.add("hydrated"),xe=(e,t,o)=>{var l,i;const r=e.prototype;if(t.D||t.N||e.watchers){e.watchers&&!t.N&&(t.N=e.watchers);const c=Object.entries(null!=(l=t.D)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).L.get(t))(0,e)},set(o){((e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.L.get(t),f=i.o,u=i.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(o,l.D[t][0]),(!(8&f)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.L.set(t,o),u)){if(l.N&&128&f){const e=l.N[t];e&&e.map((e=>{try{u[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&f)&&ye(i,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.U)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){h.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.N)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.N)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},Ce=(e,o={})=>{var l;const f=[],d=o.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],S:o[1],D:o[2],F:o[3]};4&c.o&&(S=!0),c.D=o[2],c.N=null!=(l=o[4])?l:{};const u=c.S,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,P:n,L:new Map};o.U=new Promise((e=>o.H=e)),o.W=new Promise((e=>o.T=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):h.jmp((()=>(e=>{if(!(1&h.o)){const t=n(e),o=t.P,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.W)&&t.W.then((()=>{}));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.M=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
6
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.G}" was not found`);o.isProxied||(n.N=o.watchers,xe(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.M,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}})()))}componentOnReady(){return n(this).W}};c.q=e[0],d.includes(u)||m.get(u)||(f.push(u),m.define(u,xe(v,c,1)))}))})),f.length>0&&(S&&(w.textContent+=c),w.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(l=h.R)?l:O(a);null!=e&&w.setAttribute("nonce",e),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):h.jmp((()=>b=setTimeout(je,30)))},Me=e=>h.R=e;export{N as H,Ce as b,q as c,W as g,H as h,d as p,o as r,Me as s}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{p as e,b as a}from"./p-
|
|
5
|
+
import{p as e,b as a}from"./p-f37b60d5.js";export{s as setNonce}from"./p-f37b60d5.js";import{g as t}from"./p-517b3e04.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-d577db71",[[4,"vehicle-lookup",{activeLookupIndex:[1,"active-lookup-index"],baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],onLoadingStateChanged:[16],fetchVin:[64],getPageContext:[64]},null,{onLoadingStateChanged:["handleLoadingListenerPropChange"]}]]],["p-4c3f2850",[[1,"general-inquiry-form",{isLoading:[32],renderControl:[32]}]]],["p-1a727cfd",[[1,"dead-stock-lookup",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalPartNumber:[32],errorMessage:[32],partInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]],["p-8b198a04",[[1,"distributor-lookup",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalPartNumber:[32],errorMessage:[32],partInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]],["p-4ca95c3d",[[1,"manufacturer-lookup",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],headerTitle:[1,"header-title"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalPartNumber:[32],errorMessage:[32],partInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]],["p-15e82b1a",[[0,"form-input",{name:[1],label:[1],class:[1],isError:[4,"is-error"],disabled:[4],labelClass:[1,"label-class"],errorClass:[1,"error-class"],errorMessage:[1,"error-message"],containerClass:[1,"container-class"]}]]],["p-2bb4415e",[[1,"dynamic-redeem",{vin:[1],item:[16],canceledItems:[16],unInvoicedByBrokerName:[1,"un-invoiced-by-broker-name"],handleScanner:[16],handleQrChanges:[16],loadingStateChange:[16],confirmServiceCancellation:[32],confirmUnInvoicedTBPVehicles:[32],internalVin:[32],isOpened:[32],internalItem:[32],internalCanceledItem:[32],isLoading:[32],quite:[64],getQrValue:[64]},null,{isLoading:["onIsLoadingChange"],canceledItems:["changeInternalCanceledItem"],unInvoicedByBrokerName:["changeConfirmUnInvoicedTBPVehicles"],vin:["changeInternalVin"],item:["changeInternalItem"]}]]],["p-3f3b41b4",[[1,"dynamic-claim",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],isIdle:[32],popupClasses:[32],externalVin:[32],activePopupIndex:[32],vehicleInformation:[32],errorMessage:[32],isLoading:[32],setMockData:[64],setData:[64],fetchData:[64],completeClaim:[64]},null,{isLoading:["onLoadingChange"],vehicleInformation:["resetProgressBar"],popupClasses:["windowScrollListener"]}],[1,"paint-thickness",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],expandedImage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"service-history",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"vehicle-accessories",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],expandedImage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"vehicle-specification",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"warranty-details",{baseUrl:[1,"base-url"],unauthorizedSscLookupBaseUrl:[1,"unauthorized-ssc-lookup-base-url"],isDev:[4,"is-dev"],showSsc:[4,"show-ssc"],queryString:[1,"query-string"],unauthorizedSscLookupQueryString:[1,"unauthorized-ssc-lookup-query-string"],recaptchaKey:[1,"recaptcha-key"],showWarranty:[4,"show-warranty"],cityId:[1,"city-id"],cityIntegrationId:[1,"city-integration-id"],companyId:[1,"company-id"],companyIntegrationId:[1,"company-integration-id"],companyBranchId:[1,"company-branch-id"],companyBranchIntegrationId:[1,"company-branch-integration-id"],userId:[1,"user-id"],brandIntegrationId:[1,"brand-integration-id"],customerName:[1,"customer-name"],customerPhone:[1,"customer-phone"],customerEmail:[1,"customer-email"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],showRecaptcha:[32],unInvoicedByBrokerName:[32],vehicleInformation:[32],checkingUnauthorizedSSC:[32],recaptchaRes:[32],headers:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]]],e))));
|
|
@@ -2,8 +2,8 @@ import { PartInformation } from "../../global/types/part-information";
|
|
|
2
2
|
import { PartInformationInterface } from "../../global/api/partInformation";
|
|
3
3
|
import { AppStates, MockJson } from "../../global/types/components";
|
|
4
4
|
export declare class DeadStockLookup implements PartInformationInterface {
|
|
5
|
-
isDev: boolean;
|
|
6
5
|
baseUrl: string;
|
|
6
|
+
isDev: boolean;
|
|
7
7
|
queryString: string;
|
|
8
8
|
loadingStateChange?: (isLoading: boolean) => void;
|
|
9
9
|
loadedResponse?: (response: PartInformation) => void;
|
|
@@ -11,15 +11,14 @@ export declare class DeadStockLookup implements PartInformationInterface {
|
|
|
11
11
|
externalPartNumber?: string;
|
|
12
12
|
errorMessage?: string;
|
|
13
13
|
partInformation?: PartInformation;
|
|
14
|
-
activeIndex: number | null;
|
|
15
14
|
abortController: AbortController;
|
|
16
15
|
networkTimeoutRef: ReturnType<typeof setTimeout>;
|
|
17
16
|
el: HTMLElement;
|
|
18
17
|
private handleSettingData;
|
|
19
|
-
toggleAccordion(index: number): void;
|
|
20
18
|
setData(newData: PartInformation | string, headers?: any): Promise<void>;
|
|
21
19
|
fetchData(partNumber?: string, headers?: any): Promise<void>;
|
|
22
20
|
loadingListener(): Promise<void>;
|
|
23
21
|
setMockData(newMockData: MockJson<PartInformation>): Promise<void>;
|
|
22
|
+
private toggleAccordion;
|
|
24
23
|
render(): any;
|
|
25
24
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WarrantyDetails } from "../warranty-details/warranty-details";
|
|
2
|
+
import { VehicleAccessories } from "../vehicle-accessories/vehicle-accessories";
|
|
3
|
+
import { VehicleSpecification } from "../vehicle-specification/vehicle-specification";
|
|
4
|
+
import { ServiceHistory } from "../service-history/service-history";
|
|
5
|
+
import { PaintThickness } from "../paint-thickness/paint-thickness";
|
|
6
|
+
import { DynamicClaim } from "../dynamic-claim/dynamic-claim";
|
|
7
|
+
export declare class VehicleLookup {
|
|
8
|
+
activeLookupIndex?: string;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
isDev: boolean;
|
|
11
|
+
queryString: string;
|
|
12
|
+
onLoadingStateChanged?: (isLoading: boolean) => void;
|
|
13
|
+
el: HTMLElement;
|
|
14
|
+
private componentsList;
|
|
15
|
+
componentDidLoad(): Promise<void>;
|
|
16
|
+
handleLoadingListenerPropChange(newProp: any): Promise<void>;
|
|
17
|
+
fetchVin(vin: string, headers?: any): Promise<void>;
|
|
18
|
+
getPageContext(): Promise<{
|
|
19
|
+
componentsList: [VehicleSpecification, VehicleAccessories, WarrantyDetails, ServiceHistory, PaintThickness, DynamicClaim];
|
|
20
|
+
}>;
|
|
21
|
+
private handleLoadData;
|
|
22
|
+
render(): any;
|
|
23
|
+
}
|
|
@@ -34,6 +34,7 @@ export declare class WarrantyDetails implements VehicleInformationInterface {
|
|
|
34
34
|
hasSSC: boolean;
|
|
35
35
|
message: string;
|
|
36
36
|
} | null;
|
|
37
|
+
headers: any;
|
|
37
38
|
abortController: AbortController;
|
|
38
39
|
networkTimeoutRef: ReturnType<typeof setTimeout>;
|
|
39
40
|
private recaptchaIntervalRef;
|
|
@@ -44,8 +45,6 @@ export declare class WarrantyDetails implements VehicleInformationInterface {
|
|
|
44
45
|
fetchData(requestedVin?: string, headers?: any): Promise<void>;
|
|
45
46
|
componentDidLoad(): Promise<void>;
|
|
46
47
|
setMockData(newMockData: MockJson<VehicleInformation>): Promise<void>;
|
|
47
|
-
onShowSscChange(): void;
|
|
48
|
-
onShowWarrantyChange(): void;
|
|
49
48
|
loadingListener(): Promise<void>;
|
|
50
49
|
render(): any;
|
|
51
50
|
}
|
|
@@ -8,9 +8,21 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { PartInformation } from "./global/types/part-information";
|
|
9
9
|
import { MockJson } from "./global/types/components";
|
|
10
10
|
import { ServiceItem, VehicleInformation } from "./global/types/vehicle-information";
|
|
11
|
+
import { VehicleSpecification } from "./components/vehicle-specification/vehicle-specification";
|
|
12
|
+
import { VehicleAccessories } from "./components/vehicle-accessories/vehicle-accessories";
|
|
13
|
+
import { WarrantyDetails } from "./components/warranty-details/warranty-details";
|
|
14
|
+
import { ServiceHistory } from "./components/service-history/service-history";
|
|
15
|
+
import { PaintThickness } from "./components/paint-thickness/paint-thickness";
|
|
16
|
+
import { DynamicClaim } from "./components/dynamic-claim/dynamic-claim";
|
|
11
17
|
export { PartInformation } from "./global/types/part-information";
|
|
12
18
|
export { MockJson } from "./global/types/components";
|
|
13
19
|
export { ServiceItem, VehicleInformation } from "./global/types/vehicle-information";
|
|
20
|
+
export { VehicleSpecification } from "./components/vehicle-specification/vehicle-specification";
|
|
21
|
+
export { VehicleAccessories } from "./components/vehicle-accessories/vehicle-accessories";
|
|
22
|
+
export { WarrantyDetails } from "./components/warranty-details/warranty-details";
|
|
23
|
+
export { ServiceHistory } from "./components/service-history/service-history";
|
|
24
|
+
export { PaintThickness } from "./components/paint-thickness/paint-thickness";
|
|
25
|
+
export { DynamicClaim } from "./components/dynamic-claim/dynamic-claim";
|
|
14
26
|
export namespace Components {
|
|
15
27
|
interface DeadStockLookup {
|
|
16
28
|
"baseUrl": string;
|
|
@@ -108,6 +120,15 @@ export namespace Components {
|
|
|
108
120
|
"setData": (newData: VehicleInformation | string, headers?: any) => Promise<void>;
|
|
109
121
|
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
110
122
|
}
|
|
123
|
+
interface VehicleLookup {
|
|
124
|
+
"activeLookupIndex"?: string;
|
|
125
|
+
"baseUrl": string;
|
|
126
|
+
"fetchVin": (vin: string, headers?: any) => Promise<void>;
|
|
127
|
+
"getPageContext": () => Promise<{ componentsList: [VehicleSpecification, VehicleAccessories, WarrantyDetails, ServiceHistory, PaintThickness, DynamicClaim]; }>;
|
|
128
|
+
"isDev": boolean;
|
|
129
|
+
"onLoadingStateChanged"?: (isLoading: boolean) => void;
|
|
130
|
+
"queryString": string;
|
|
131
|
+
}
|
|
111
132
|
interface VehicleSpecification {
|
|
112
133
|
"baseUrl": string;
|
|
113
134
|
"fetchData": (requestedVin?: string, headers?: any) => Promise<void>;
|
|
@@ -221,6 +242,12 @@ declare global {
|
|
|
221
242
|
prototype: HTMLVehicleAccessoriesElement;
|
|
222
243
|
new (): HTMLVehicleAccessoriesElement;
|
|
223
244
|
};
|
|
245
|
+
interface HTMLVehicleLookupElement extends Components.VehicleLookup, HTMLStencilElement {
|
|
246
|
+
}
|
|
247
|
+
var HTMLVehicleLookupElement: {
|
|
248
|
+
prototype: HTMLVehicleLookupElement;
|
|
249
|
+
new (): HTMLVehicleLookupElement;
|
|
250
|
+
};
|
|
224
251
|
interface HTMLVehicleSpecificationElement extends Components.VehicleSpecification, HTMLStencilElement {
|
|
225
252
|
}
|
|
226
253
|
var HTMLVehicleSpecificationElement: {
|
|
@@ -244,6 +271,7 @@ declare global {
|
|
|
244
271
|
"paint-thickness": HTMLPaintThicknessElement;
|
|
245
272
|
"service-history": HTMLServiceHistoryElement;
|
|
246
273
|
"vehicle-accessories": HTMLVehicleAccessoriesElement;
|
|
274
|
+
"vehicle-lookup": HTMLVehicleLookupElement;
|
|
247
275
|
"vehicle-specification": HTMLVehicleSpecificationElement;
|
|
248
276
|
"warranty-details": HTMLWarrantyDetailsElement;
|
|
249
277
|
}
|
|
@@ -322,6 +350,13 @@ declare namespace LocalJSX {
|
|
|
322
350
|
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
323
351
|
"queryString"?: string;
|
|
324
352
|
}
|
|
353
|
+
interface VehicleLookup {
|
|
354
|
+
"activeLookupIndex"?: string;
|
|
355
|
+
"baseUrl"?: string;
|
|
356
|
+
"isDev"?: boolean;
|
|
357
|
+
"onLoadingStateChanged"?: (isLoading: boolean) => void;
|
|
358
|
+
"queryString"?: string;
|
|
359
|
+
}
|
|
325
360
|
interface VehicleSpecification {
|
|
326
361
|
"baseUrl"?: string;
|
|
327
362
|
"isDev"?: boolean;
|
|
@@ -363,6 +398,7 @@ declare namespace LocalJSX {
|
|
|
363
398
|
"paint-thickness": PaintThickness;
|
|
364
399
|
"service-history": ServiceHistory;
|
|
365
400
|
"vehicle-accessories": VehicleAccessories;
|
|
401
|
+
"vehicle-lookup": VehicleLookup;
|
|
366
402
|
"vehicle-specification": VehicleSpecification;
|
|
367
403
|
"warranty-details": WarrantyDetails;
|
|
368
404
|
}
|
|
@@ -381,6 +417,7 @@ declare module "@stencil/core" {
|
|
|
381
417
|
"paint-thickness": LocalJSX.PaintThickness & JSXBase.HTMLAttributes<HTMLPaintThicknessElement>;
|
|
382
418
|
"service-history": LocalJSX.ServiceHistory & JSXBase.HTMLAttributes<HTMLServiceHistoryElement>;
|
|
383
419
|
"vehicle-accessories": LocalJSX.VehicleAccessories & JSXBase.HTMLAttributes<HTMLVehicleAccessoriesElement>;
|
|
420
|
+
"vehicle-lookup": LocalJSX.VehicleLookup & JSXBase.HTMLAttributes<HTMLVehicleLookupElement>;
|
|
384
421
|
"vehicle-specification": LocalJSX.VehicleSpecification & JSXBase.HTMLAttributes<HTMLVehicleSpecificationElement>;
|
|
385
422
|
"warranty-details": LocalJSX.WarrantyDetails & JSXBase.HTMLAttributes<HTMLWarrantyDetailsElement>;
|
|
386
423
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function validateVin(vin: any): boolean;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<img src="./
|
|
1
|
+
<img src="./documentation/shift-software.png" alt="By Shift software" style="max-width: 333px;">
|
|
2
2
|
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
@@ -12,93 +12,4 @@ The **ADP Web Components** project provides reusable web components designed to
|
|
|
12
12
|
|
|
13
13
|
<br>
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- [Stand Alone Installation (Lazy loading) (Recommended)](#stand-alone-installation)
|
|
18
|
-
- [Bundle Installation](#bundle-installation)
|
|
19
|
-
- [Components List](#components-list)
|
|
20
|
-
|
|
21
|
-
## Stand Alone Installation
|
|
22
|
-
|
|
23
|
-
<div style="border: 1px solid red;border-radius:5px; padding: 10px;font-size: 18px;">
|
|
24
|
-
<b style="color:red;">⚠️ Important:</b> You must use the <b>document.addEventListener('DOMContentLoaded',()=>{})</b> event listener when using standalone components. Because stand alone importing are <b>lazy loaded</b>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<br>
|
|
28
|
-
|
|
29
|
-
```javascript
|
|
30
|
-
document.addEventListener('DOMContentLoaded', () => {});
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
always up-to-date version:
|
|
34
|
-
|
|
35
|
-
```html
|
|
36
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/adp-web-components@latest/dist/components/dynamic-claim.js"></script>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
current version version:
|
|
40
|
-
|
|
41
|
-
```html
|
|
42
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/adp-web-components@0.0.6/dist/components/dynamic-claim.js"></script>
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
This will give you access to single component which you imported from the ADP Web Components library.
|
|
46
|
-
|
|
47
|
-
#### Example Usage
|
|
48
|
-
|
|
49
|
-
Full Code [here](./docs/stand-alone-example.html)
|
|
50
|
-
|
|
51
|
-
```html
|
|
52
|
-
<dynamic-claim is-dev="true" base-url="http://localhost:7174/api/secure-vehicle-lookup-test/" id="dynamic-claim"></dynamic-claim>
|
|
53
|
-
|
|
54
|
-
<script>
|
|
55
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
56
|
-
const dynamicClaim = document.getElementById('dynamic-claim');
|
|
57
|
-
|
|
58
|
-
...
|
|
59
|
-
});
|
|
60
|
-
</script>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Bundle Installation
|
|
64
|
-
|
|
65
|
-
To use the entire component bundle, include the following script in your HTML:
|
|
66
|
-
|
|
67
|
-
always up-to-date version:
|
|
68
|
-
|
|
69
|
-
```html
|
|
70
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/adp-web-components@latest/dist/shift-components/shift-components.esm.js"></script>
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
current version version:
|
|
74
|
-
|
|
75
|
-
```html
|
|
76
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/adp-web-components@0.0.6/dist/shift-components/shift-components.esm.js"></script>
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
This will give you access to all components in the ADP Web Components library.
|
|
80
|
-
|
|
81
|
-
#### Example Usage
|
|
82
|
-
|
|
83
|
-
Full Code [here](./docs/bundle-example.html)
|
|
84
|
-
|
|
85
|
-
```html
|
|
86
|
-
<dynamic-redeem id="dynamic-redeem"></dynamic-redeem>
|
|
87
|
-
<dynamic-claim is-dev="true" base-url="http://localhost:7174/api/secure-vehicle-lookup-test/" id="dynamic-claim"></dynamic-claim>
|
|
88
|
-
|
|
89
|
-
<script>
|
|
90
|
-
const dynamicClaim = document.getElementById('dynamic-claim');
|
|
91
|
-
const dynamicRedeem = document.getElementById('dynamic-redeem');
|
|
92
|
-
|
|
93
|
-
...
|
|
94
|
-
</script>
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Components List
|
|
98
|
-
|
|
99
|
-
This is the complete list of the components with their documentation:
|
|
100
|
-
|
|
101
|
-
- [Dynamic Claim](./src/components/dynamic-claim/readme.md)
|
|
102
|
-
- [Dynamic Redeem](./src/components/dynamic-redeem/readme.md)
|
|
103
|
-
|
|
104
|
-
_Built by [Shift Software](https://shift.software/)_
|
|
15
|
+
Full documentation is available at ./documentation and can be served using [MKDocs tool](https://www.mkdocs.org/).
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
const index = require('./index-d4b5214c.js');
|
|
8
|
-
const loader = require('./loader-baf2418b.js');
|
|
9
|
-
const cn = require('./cn-f559f9e5.js');
|
|
10
|
-
|
|
11
|
-
function Loading({ isLoading }) {
|
|
12
|
-
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 }) },
|
|
13
|
-
index.h("img", { class: "animate-spin-2s size-[40px]", src: loader.loaderSvg })));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
exports.Loading = Loading;
|