adp-web-components 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +31 -27
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +12 -12
- package/dist/cjs/dynamic-redeem.cjs.entry.js +4 -4
- package/dist/cjs/form-input.cjs.entry.js +1 -1
- package/dist/cjs/general-inquiry-form.cjs.entry.js +1 -1
- package/dist/cjs/{get-local-language-2afae4fa.js → get-local-language-72037bc8.js} +2 -1
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/vehicle-lookup.cjs.entry.js +2 -2
- 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/part-lookup/dead-stock-lookup.js +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +12 -10
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +17 -17
- package/dist/collection/components/part-lookup/part-lookup.js +1 -1
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +3 -3
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +3 -3
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +4 -4
- package/dist/collection/components/vehicle-lookup/service-history.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +2 -2
- package/dist/collection/components/vehicle-lookup/warranty-details.js +2 -2
- package/dist/collection/global/api/partInformation.js +2 -0
- package/dist/collection/global/types/locales/error-schema.js +1 -0
- package/dist/collection/templates/part-lookup/mock-data.js +92 -133
- 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/manufacturer-lookup.js +1 -1
- package/dist/components/{p-9c625b44.js → p-044a958e.js} +1 -1
- package/dist/components/{p-2fac364f.js → p-460a3b65.js} +1 -1
- package/dist/components/{p-46262302.js → p-47a14cee.js} +1 -1
- package/dist/components/p-4bbe470a.js +5 -0
- package/dist/components/{p-e69fdb26.js → p-53750997.js} +1 -1
- package/dist/components/{p-5ebb1baa.js → p-54db4b42.js} +1 -1
- package/dist/components/p-886097ea.js +5 -0
- package/dist/components/{p-8927ee20.js → p-954afef8.js} +1 -1
- package/dist/components/{p-88712a6f.js → p-ac5c34c6.js} +1 -1
- package/dist/components/{p-6425b049.js → p-b50330bb.js} +1 -1
- package/dist/components/p-bef4cfc3.js +5 -0
- package/dist/components/p-c8c49f30.js +5 -0
- package/dist/components/{p-0f6fc926.js → p-d9d6e5a3.js} +1 -1
- package/dist/components/p-fab97ac7.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.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_3.entry.js +31 -27
- package/dist/esm/dynamic-claim_6.entry.js +12 -12
- package/dist/esm/dynamic-redeem.entry.js +4 -4
- package/dist/esm/form-input.entry.js +1 -1
- package/dist/esm/general-inquiry-form.entry.js +1 -1
- package/dist/esm/{get-local-language-80211d62.js → get-local-language-a23f3c7b.js} +2 -1
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/vehicle-lookup.entry.js +2 -2
- package/dist/locales/ar.json +1 -0
- package/dist/locales/en.json +1 -0
- package/dist/locales/ku.json +1 -0
- package/dist/locales/ru.json +1 -0
- package/dist/shift-components/p-282f8f6f.js +5 -0
- package/dist/shift-components/{p-ec2994d5.entry.js → p-2cb5d508.entry.js} +1 -1
- package/dist/shift-components/{p-c2c97548.entry.js → p-4a6d30b1.entry.js} +1 -1
- package/dist/shift-components/{p-4f7a3fd9.entry.js → p-56977a12.entry.js} +1 -1
- package/dist/shift-components/p-58849c77.entry.js +5 -0
- package/dist/shift-components/{p-7a5f86b7.entry.js → p-866d61c2.entry.js} +1 -1
- package/dist/shift-components/{p-cde3b164.entry.js → p-b0ad10ce.entry.js} +1 -1
- package/dist/shift-components/{p-005b6da7.entry.js → p-b2ddd0a7.entry.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/global/types/locales/error-schema.d.ts +2 -0
- package/dist/types/global/types/locales/index.d.ts +2 -0
- package/dist/types/global/types/part-information.d.ts +16 -17
- package/package.json +1 -1
- package/dist/components/p-1e3a346b.js +0 -5
- package/dist/components/p-8770a54b.js +0 -5
- package/dist/components/p-e0fe137d.js +0 -5
- package/dist/components/p-e5963c31.js +0 -5
- package/dist/components/p-f99c8b2f.js +0 -5
- package/dist/shift-components/p-01839fa0.js +0 -5
- package/dist/shift-components/p-06f334f6.entry.js +0 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-33ae6859.js';
|
|
6
6
|
import { c as cn } from './cn-cc419b94.js';
|
|
7
|
-
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-
|
|
7
|
+
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-a23f3c7b.js';
|
|
8
8
|
import './index.esm-46e0cdad.js';
|
|
9
9
|
|
|
10
10
|
function validateVin(vin) {
|
|
@@ -186,7 +186,7 @@ const VehicleLookup = class {
|
|
|
186
186
|
catch (error) {
|
|
187
187
|
console.error(error);
|
|
188
188
|
}
|
|
189
|
-
return (h(Host, { key: '
|
|
189
|
+
return (h(Host, { key: '1284fb137f084c45e3da844e896c5df501a01b8c' }, h("div", { key: '64ed33927f31684f1892f82d81c0b18600a6b693', class: cn('w-full', { hidden: this.activeElement !== componentTags.vehicleSpecification }) }, h("vehicle-specification", Object.assign({ key: '6c39b0bf193100c6caaf6fffa1c81a88efe7704b', "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.vehicleSpecification]))), h("div", { key: '4b16d69ebeb81ac18e06aa2c665172de89faa422', class: cn('w-full', { hidden: this.activeElement !== componentTags.vehicleAccessories }) }, h("vehicle-accessories", Object.assign({ key: 'ae8256e34838d9216147d481c60fd6c79413f26e', "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.vehicleAccessories]))), h("div", { key: '0ee4a5f68627a8db04be78796d212d197e2f74d7', class: cn('w-full', { hidden: this.activeElement !== componentTags.warrantyDetails }) }, h("warranty-details", Object.assign({ key: '5eadab5e037ed20f906989016dade741125c474f', "show-ssc": "true", "show-warranty": "true", "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.warrantyDetails]), h("slot", { key: '59478596961d1b673a255325f5dc6370564cb8dd' }))), h("div", { key: '289ad726bf8b41e5d9a4237d8e755ad916163e81', class: cn('w-full', { hidden: this.activeElement !== componentTags.serviceHistory }) }, h("service-history", Object.assign({ key: 'b37fb951056d7eb8c7e44f984941d6a7ef018e42', language: this.language, "base-url": this.baseUrl, "query-string": this.queryString }, props[componentTags.serviceHistory]))), h("div", { key: '25fa576aae95ab0873e6876f163d4baf893ab742', class: cn('w-full', { hidden: this.activeElement !== componentTags.paintThickness }) }, h("paint-thickness", Object.assign({ key: '184c0cea06f545a0b568af5dbc109f2e4b45096d', "base-url": this.baseUrl, language: this.language, "query-string": this.queryString }, props[componentTags.paintThickness]))), h("div", { key: '69f052a9c416d9a0bf83a4db4fd2f3d5f3fb85a5', class: cn('w-full', { hidden: this.activeElement !== componentTags.dynamicClaim }) }, h("dynamic-claim", Object.assign({ key: 'b63e11b28def55c67328f44a8e9966b773ea4b40' }, props[componentTags.dynamicClaim], { language: this.language, "base-url": this.baseUrl, "query-string": this.queryString })))));
|
|
190
190
|
}
|
|
191
191
|
get el() { return getElement(this); }
|
|
192
192
|
static get watchers() { return {
|
package/dist/locales/ar.json
CHANGED
package/dist/locales/en.json
CHANGED
package/dist/locales/ku.json
CHANGED
package/dist/locales/ru.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import"./p-0f0e54c1.js";import{c as e,a as i}from"./p-e446fb9d.js";const a=e({wildCard:i().required(),noBaseUrl:i().required(),invalidVin:i().required(),noPartsFound:i().required(),vinNumberRequired:i().required(),partNumberRequired:i().required(),noServiceAvailable:i().required(),wrongResponseFormat:i().required(),requestFailedPleaseTryAgainLater:i().required()}),r=e({deadStock:i().required(),branch:i().required(),availableQuantity:i().required()}),n=e({info:i().required(),distributorStock:i().required(),availability:i().required(),notAvailable:i().required(),partiallyAvailable:i().required(),available:i().required(),location:i().required(),description:i().required(),productGroup:i().required(),localDescription:i().required(),dealerPurchasePrice:i().required(),recommendedRetailPrice:i().required(),supersededFrom:i().required(),supersededTo:i().required()}),o=e({origin:i().required(),warrantyPrice:i().required(),specialPrice:i().required(),wholesalesPrice:i().required(),pnc:i().required(),pncName:i().required(),binCode:i().required(),dimension1:i().required(),dimension2:i().required(),dimension3:i().required(),netWeight:i().required(),grossWeight:i().required(),cubicMeasure:i().required(),hsCode:i().required(),uzHsCode:i().required()}),s=e({deadStock:r,distributor:n,manufacturer:o}),t=e({authorized:i().required(),unauthorized:i().required(),activeWarranty:i().required(),notActiveWarranty:i().required(),notInvoiced:i().required(),from:i().required(),to:i().required(),pendingSSC:i().required(),noPendingSSC:i().required(),checkingTMC:i().required(),sscCampings:i().required(),sscTableCode:i().required(),sscTableDescription:i().required(),sscTableRepairStatus:i().required(),sscTableOPCode:i().required(),sscTablePartNumber:i().required()}),c=e({vehicleAccessories:i().required(),noData:i().required(),partNumber:i().required(),description:i().required(),image:i().required(),expand:i().required()}),d=e({serviceType:i().required(),activationDate:i().required(),expireDate:i().required(),claimAt:i().required(),redeemingDealer:i().required(),invoiceNumber:i().required(),wip:i().required(),menuCode:i().required(),claim:i().required(),processed:i().required(),expired:i().required(),cancelled:i().required(),pending:i().required(),warning:i().required()}),l=e({vehicleSpecification:i().required(),noData:i().required(),model:i().required(),variant:i().required(),katashiki:i().required(),modelYear:i().required(),sfx:i().required()}),p=e({serviceType:i().required(),name:i().required(),activationDate:i().required(),expireDate:i().required(),menuCode:i().required(),scanTheInvoice:i().required(),processing:i().required(),warning:i().required(),skipServicesWarning:i().required(),confirmSkipServices:i().required(),notInvoiced:i().required(),confirmNotInvoiced:i().required()}),m=e({serviceHistory:i().required(),noData:i().required(),branch:i().required(),dealer:i().required(),invoiceNumber:i().required(),date:i().required(),serviceType:i().required(),odometer:i().required()}),u=e({paintThickness:i().required(),noData:i().required(),part:i().required(),left:i().required(),right:i().required(),noImageGroups:i().required(),expand:i().required()}),v=e({warranty:t,accessories:c,dynamicClaim:d,dynamicRedeem:p,specification:l,serviceHistory:m,paintThickness:u}),b={ar:"ar.json",en:"en.json",ku:"ku.json",ru:"ru.json"},g=e({errors:a,lang:i().required(),partLookup:s,language:i().required(),direction:i().required(),vehicleLookup:v}),h={},y=async e=>{const i=b[e]||b.en;if(h[i])return await h[i];let a;return a=fetch(`https://cdn.jsdelivr.net/npm/adp-web-components@0.0.43/dist/locales/${i}`).then((e=>e.json())),h[i]=a,await a};export{y as g,g as l}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,h as e,H as i,g as o}from"./p-0f0e54c1.js";import{l as s,g as a}from"./p-
|
|
5
|
+
import{r as t,h as e,H as i,g as o}from"./p-0f0e54c1.js";import{l as s,g as a}from"./p-282f8f6f.js";import{c as r}from"./p-98d9e7ab.js";import"./p-e446fb9d.js";const n="dead-stock-lookup",h="distributor-lookup",l="manufacturer-lookup",d=class{constructor(e){t(this,e),this.syncErrorAcrossComponents=t=>{Object.values(this.componentsList).forEach((e=>{e&&e.setErrorMessage(t)}))},this.loadingStateChangingMiddleware=t=>{this.loadingStateChanged&&this.loadingStateChanged(t),this.blazorRef&&this.blazorOnLoadingStateChange&&this.blazorRef.invokeMethodAsync(this.blazorOnLoadingStateChange,t)},this.baseUrl="",this.queryString="",this.language="en",this.blazorErrorStateListener="",this.childrenProps=void 0,this.blazorOnLoadingStateChange="",this.activeElement="",this.errorStateListener=void 0,this.loadingStateChanged=void 0,this.wrapperErrorState="",this.blazorRef=void 0,this.locale=s.getDefault()}async componentWillLoad(){await this.changeLanguage(this.language)}async changeLanguage(t){this.locale=await a(t)}async componentDidLoad(){const t=this.el.getElementsByTagName("dead-stock-lookup")[0],e=this.el.getElementsByTagName("distributor-lookup")[0],i=this.el.getElementsByTagName("manufacturer-lookup")[0];this.componentsList={[n]:t,[h]:e,[l]:i},Object.values(this.componentsList).forEach((t=>{t&&(t.errorCallback=this.syncErrorAcrossComponents,t.loadingStateChange=this.loadingStateChangingMiddleware,t.loadedResponse=e=>this.handleLoadData(e,t))}))}handleLoadData(t,e){Object.values(this.componentsList).forEach((i=>{null!==i&&i!==e&&t&&i.setData(t)}))}async errorListener(t){this.errorStateListener&&this.errorStateListener(t),this.blazorRef&&this.blazorErrorStateListener&&this.blazorRef.invokeMethodAsync(this.blazorErrorStateListener,t)}async setBlazorRef(t){this.blazorRef=t}async fetchPartNumber(t,e="",i={}){const o=this.componentsList[this.activeElement]||null;if(this.wrapperErrorState="",!o)return;if(""==t)return this.wrapperErrorState=this.locale.errors.partNumberRequired;const s=e.trim()||"0"===e.trim()?`${t.trim()}/${e.trim()}`:t.trim();o.fetchData(s,i)}render(){const t={[n]:{},[h]:{},[l]:{}};try{if(this.childrenProps){let e={};"string"==typeof this.childrenProps?e=JSON.parse(this.childrenProps):"object"==typeof this.childrenProps&&(e=this.childrenProps),Object.keys(t).forEach((i=>{"object"==typeof e[i]&&(t[i]=e[i])}))}}catch(t){console.error(t)}return e(i,{key:"1399bbe94bd816d4b3ab821a332333aa7e0462ed"},e("div",{key:"82ee3929845efa9e155dac8b3254a146e3fa3cf6",class:r("w-full",{hidden:this.activeElement!==n})},e("dead-stock-lookup",Object.assign({key:"ca79afbf7474dd51c46c088ef0ade1dc72ae9c6f","base-url":this.baseUrl,language:this.language,"query-string":this.queryString},t[n]))),e("div",{key:"2b60522679269aa036cfbaed807222fca654055d",class:r("w-full",{hidden:this.activeElement!==h})},e("distributor-lookup",Object.assign({key:"860135221d15ee337505bb3d5fb13a20d82b2e82","base-url":this.baseUrl,language:this.language,"query-string":this.queryString},t[h]))),e("div",{key:"cfd557bb9d33a596f1adeb78affdd3b300c1e1c1",class:r("w-full",{hidden:this.activeElement!==l})},e("manufacturer-lookup",Object.assign({key:"b76cc809b31ace9dc158026072e5b272efc13924","base-url":this.baseUrl,language:this.language,"query-string":this.queryString},t[l]))),e("slot",{key:"78875aa9bcae3d3c1e0d9a49304e18fd09b50f41"}))}get el(){return o(this)}static get watchers(){return{language:["changeLanguage"],wrapperErrorState:["errorListener"]}}};d.style='*,: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{display:block}.static{position:static}.hidden{display:none}.w-full{width:100%}';export{d as part_lookup}
|