adp-web-components 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/Loading-ee1a2ceb.js +16 -0
- package/dist/cjs/app-globals-3813fb46.js +9 -0
- package/dist/cjs/cn-f559f9e5.js +2588 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +103 -0
- package/dist/cjs/distributor-lookup.cjs.entry.js +109 -0
- package/dist/cjs/dynamic-claim.cjs.entry.js +306 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +145 -0
- package/dist/cjs/form-input.cjs.entry.js +36 -0
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2280 -0
- package/dist/cjs/image-expansion-a9c9c6f7.js +77 -0
- package/dist/cjs/index-d4b5214c.js +1331 -0
- package/dist/cjs/index.cjs.js +6 -0
- package/dist/cjs/loader-baf2418b.js +9 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +109 -0
- package/dist/cjs/paint-thickness.cjs.entry.js +131 -0
- package/dist/cjs/partInformation-2a6a018b.js +34 -0
- package/dist/cjs/service-history.cjs.entry.js +116 -0
- package/dist/cjs/shift-components.cjs.js +29 -0
- package/dist/cjs/vehicle-accessories.cjs.entry.js +135 -0
- package/dist/cjs/vehicle-specification.cjs.entry.js +111 -0
- package/dist/cjs/vehicleInformation-4c1dcaf2.js +52 -0
- package/dist/cjs/warranty-details.cjs.entry.js +281 -0
- package/dist/collection/collection-manifest.json +23 -0
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -0
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +521 -0
- package/dist/collection/components/dynamic-claim/icons/cancelled.svg +8 -0
- package/dist/collection/components/dynamic-claim/icons/expired.svg +9 -0
- package/dist/collection/components/dynamic-claim/icons/pending.svg +9 -0
- package/dist/collection/components/dynamic-claim/icons/processed.svg +9 -0
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -0
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +334 -0
- package/dist/collection/components/form-input/form-input.css +1 -0
- package/dist/collection/components/form-input/form-input.js +209 -0
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.css +1 -0
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +46 -0
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -0
- package/dist/collection/components/paint-thickness/paint-thickness.js +323 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +294 -0
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -0
- package/dist/collection/components/part-lookup/distributor-lookup.js +299 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +317 -0
- package/dist/collection/components/parts/Loading.js +10 -0
- package/dist/collection/components/service-history/service-history.css +1 -0
- package/dist/collection/components/service-history/service-history.js +306 -0
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -0
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +327 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +301 -0
- package/dist/collection/components/warranty-details/assets/check.svg +4 -0
- package/dist/collection/components/warranty-details/assets/loader.svg +11 -0
- package/dist/collection/components/warranty-details/assets/x-mark.svg +4 -0
- package/dist/collection/components/warranty-details/components/CardsContainer.js +9 -0
- package/dist/collection/components/warranty-details/components/Loading.js +10 -0
- package/dist/collection/components/warranty-details/components/SSCTable.js +13 -0
- package/dist/collection/components/warranty-details/components/StatusCard.js +11 -0
- package/dist/collection/components/warranty-details/warranty-details.css +1 -0
- package/dist/collection/components/warranty-details/warranty-details.js +709 -0
- package/dist/collection/global/api/partInformation.js +30 -0
- package/dist/collection/global/api/vehicleInformation.js +48 -0
- package/dist/collection/global/assets/eye.svg +5 -0
- package/dist/collection/global/assets/loader.svg +11 -0
- package/dist/collection/global/lib/cn.js +9 -0
- package/dist/collection/global/lib/form-hook.js +118 -0
- package/dist/collection/global/lib/image-expansion.js +69 -0
- package/dist/collection/global/lib/utils.js +7 -0
- package/dist/collection/global/types/components.js +1 -0
- package/dist/collection/global/types/part-information.js +1 -0
- package/dist/collection/global/types/vehicle-information.js +5 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/templates/mock-data.js +4132 -0
- package/dist/collection/templates/parts/mock-data.js +221 -0
- package/dist/collection/templates/vehicle-lookup.js +218 -0
- package/dist/collection/templates/warranty-mock-data.js +2982 -0
- package/dist/components/dead-stock-lookup.d.ts +11 -0
- package/dist/components/dead-stock-lookup.js +5 -0
- package/dist/components/distributor-lookup.d.ts +11 -0
- package/dist/components/distributor-lookup.js +5 -0
- package/dist/components/dynamic-claim.d.ts +11 -0
- package/dist/components/dynamic-claim.js +5 -0
- package/dist/components/dynamic-redeem.d.ts +11 -0
- package/dist/components/dynamic-redeem.js +5 -0
- package/dist/components/form-input.d.ts +11 -0
- package/dist/components/form-input.js +5 -0
- package/dist/components/general-inquiry-form.d.ts +11 -0
- package/dist/components/general-inquiry-form.js +5 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +5 -0
- package/dist/components/manufacturer-lookup.d.ts +11 -0
- package/dist/components/manufacturer-lookup.js +5 -0
- package/dist/components/p-2b0cc0c6.js +5 -0
- package/dist/components/p-4dc47f5f.js +5 -0
- package/dist/components/p-50f73226.js +5 -0
- package/dist/components/p-5df9bc5f.js +5 -0
- package/dist/components/p-8375923d.js +5 -0
- package/dist/components/p-98d9e7ab.js +5 -0
- package/dist/components/p-a454210b.js +5 -0
- package/dist/components/p-d265c109.js +5 -0
- package/dist/components/p-d5ff7544.js +5 -0
- package/dist/components/paint-thickness.d.ts +11 -0
- package/dist/components/paint-thickness.js +5 -0
- package/dist/components/service-history.d.ts +11 -0
- package/dist/components/service-history.js +5 -0
- package/dist/components/vehicle-accessories.d.ts +11 -0
- package/dist/components/vehicle-accessories.js +5 -0
- package/dist/components/vehicle-specification.d.ts +11 -0
- package/dist/components/vehicle-specification.js +5 -0
- package/dist/components/warranty-details.d.ts +11 -0
- package/dist/components/warranty-details.js +5 -0
- package/dist/esm/Loading-61648252.js +14 -0
- package/dist/esm/app-globals-8befa224.js +7 -0
- package/dist/esm/cn-cc419b94.js +2586 -0
- package/dist/esm/dead-stock-lookup.entry.js +99 -0
- package/dist/esm/distributor-lookup.entry.js +105 -0
- package/dist/esm/dynamic-claim.entry.js +302 -0
- package/dist/esm/dynamic-redeem.entry.js +141 -0
- package/dist/esm/form-input.entry.js +32 -0
- package/dist/esm/general-inquiry-form.entry.js +2276 -0
- package/dist/esm/image-expansion-08c4bf0d.js +73 -0
- package/dist/esm/index-ef54644b.js +1302 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/loader-027b88af.js +7 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/manufacturer-lookup.entry.js +105 -0
- package/dist/esm/paint-thickness.entry.js +127 -0
- package/dist/esm/partInformation-73ece994.js +32 -0
- package/dist/esm/service-history.entry.js +112 -0
- package/dist/esm/shift-components.js +24 -0
- package/dist/esm/vehicle-accessories.entry.js +131 -0
- package/dist/esm/vehicle-specification.entry.js +107 -0
- package/dist/esm/vehicleInformation-f1081f83.js +50 -0
- package/dist/esm/warranty-details.entry.js +277 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/shift-components/index.esm.js +4 -0
- package/dist/shift-components/p-15f86441.entry.js +5 -0
- package/dist/shift-components/p-1ae3a61f.entry.js +5 -0
- package/dist/shift-components/p-517b3e04.js +5 -0
- package/dist/shift-components/p-5df9bc5f.js +5 -0
- package/dist/shift-components/p-65e6ab8e.js +5 -0
- package/dist/shift-components/p-894e7518.entry.js +5 -0
- package/dist/shift-components/p-8c261972.entry.js +5 -0
- package/dist/shift-components/p-8e818568.entry.js +5 -0
- package/dist/shift-components/p-98d9e7ab.js +5 -0
- package/dist/shift-components/p-9bd4471c.entry.js +5 -0
- package/dist/shift-components/p-9f790b14.entry.js +5 -0
- package/dist/shift-components/p-a21e2e2e.js +5 -0
- package/dist/shift-components/p-c113792c.entry.js +5 -0
- package/dist/shift-components/p-d265c109.js +5 -0
- package/dist/shift-components/p-d5ff7544.js +5 -0
- package/dist/shift-components/p-dc9845ed.entry.js +5 -0
- package/dist/shift-components/p-e32b0798.entry.js +5 -0
- package/dist/shift-components/p-e97316d2.js +6 -0
- package/dist/shift-components/p-f759c597.entry.js +5 -0
- package/dist/shift-components/p-feb3df85.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +5 -0
- package/dist/types/components/dynamic-claim/dynamic-claim.d.ts +48 -0
- package/dist/types/components/dynamic-redeem/dynamic-redeem.d.ts +34 -0
- package/dist/types/components/form-input/form-input.d.ts +14 -0
- package/dist/types/components/general-inquiry-form/general-inquiry-form.d.ts +21 -0
- package/dist/types/components/paint-thickness/paint-thickness.d.ts +28 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +25 -0
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -0
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +24 -0
- package/dist/types/components/parts/Loading.d.ts +5 -0
- package/dist/types/components/service-history/service-history.d.ts +23 -0
- package/dist/types/components/vehicle-accessories/vehicle-accessories.d.ts +28 -0
- package/dist/types/components/vehicle-specification/vehicle-specification.d.ts +22 -0
- package/dist/types/components/warranty-details/components/CardsContainer.d.ts +8 -0
- package/dist/types/components/warranty-details/components/Loading.d.ts +5 -0
- package/dist/types/components/warranty-details/components/SSCTable.d.ts +6 -0
- package/dist/types/components/warranty-details/components/StatusCard.d.ts +10 -0
- package/dist/types/components/warranty-details/warranty-details.d.ts +51 -0
- package/dist/types/components.d.ts +388 -0
- package/dist/types/global/api/partInformation.d.ts +19 -0
- package/dist/types/global/api/vehicleInformation.d.ts +33 -0
- package/dist/types/global/lib/cn.d.ts +2 -0
- package/dist/types/global/lib/form-hook.d.ts +54 -0
- package/dist/types/global/lib/image-expansion.d.ts +9 -0
- package/dist/types/global/lib/utils.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +4 -0
- package/dist/types/global/types/part-information.d.ts +30 -0
- package/dist/types/global/types/vehicle-information.d.ts +162 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/loader/cdn.js +5 -0
- package/loader/index.cjs.js +5 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +5 -0
- package/loader/index.js +6 -0
- package/loader/package.json +11 -0
- package/package.json +61 -0
- package/readme.md +104 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { PartInformation } from "./global/types/part-information";
|
|
9
|
+
import { MockJson } from "./global/types/components";
|
|
10
|
+
import { ServiceItem, VehicleInformation } from "./global/types/vehicle-information";
|
|
11
|
+
export { PartInformation } from "./global/types/part-information";
|
|
12
|
+
export { MockJson } from "./global/types/components";
|
|
13
|
+
export { ServiceItem, VehicleInformation } from "./global/types/vehicle-information";
|
|
14
|
+
export namespace Components {
|
|
15
|
+
interface DeadStockLookup {
|
|
16
|
+
"baseUrl": string;
|
|
17
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
18
|
+
"isDev": boolean;
|
|
19
|
+
"loadedResponse"?: (response: PartInformation) => void;
|
|
20
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
21
|
+
"queryString": string;
|
|
22
|
+
"setData": (newData: PartInformation | string) => Promise<void>;
|
|
23
|
+
"setMockData": (newMockData: MockJson<PartInformation>) => Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
interface DistributorLookup {
|
|
26
|
+
"baseUrl": string;
|
|
27
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
28
|
+
"isDev": boolean;
|
|
29
|
+
"loadedResponse"?: (response: PartInformation) => void;
|
|
30
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
31
|
+
"queryString": string;
|
|
32
|
+
"setData": (newData: PartInformation | string) => Promise<void>;
|
|
33
|
+
"setMockData": (newMockData: MockJson<PartInformation>) => Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
interface DynamicClaim {
|
|
36
|
+
"baseUrl": string;
|
|
37
|
+
"completeClaim": () => Promise<void>;
|
|
38
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
39
|
+
"isDev": boolean;
|
|
40
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
41
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
42
|
+
"queryString": string;
|
|
43
|
+
"setData": (newData: VehicleInformation | string) => Promise<void>;
|
|
44
|
+
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
interface DynamicRedeem {
|
|
47
|
+
"canceledItems"?: ServiceItem[];
|
|
48
|
+
"getQrValue": () => Promise<string>;
|
|
49
|
+
"handleQrChanges"?: (code: string) => void;
|
|
50
|
+
"handleScanner"?: (code: string) => void;
|
|
51
|
+
"item"?: ServiceItem;
|
|
52
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
53
|
+
"quite": () => Promise<void>;
|
|
54
|
+
"unInvoicedByBrokerName"?: string;
|
|
55
|
+
"vin"?: string;
|
|
56
|
+
}
|
|
57
|
+
interface FormInput {
|
|
58
|
+
"class": string;
|
|
59
|
+
"containerClass": string;
|
|
60
|
+
"disabled": boolean;
|
|
61
|
+
"errorClass": string;
|
|
62
|
+
"errorMessage": string;
|
|
63
|
+
"isError": boolean;
|
|
64
|
+
"label": string;
|
|
65
|
+
"labelClass": string;
|
|
66
|
+
"name": string;
|
|
67
|
+
}
|
|
68
|
+
interface GeneralInquiryForm {
|
|
69
|
+
}
|
|
70
|
+
interface ManufacturerLookup {
|
|
71
|
+
"baseUrl": string;
|
|
72
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
73
|
+
"headerTitle": string;
|
|
74
|
+
"isDev": boolean;
|
|
75
|
+
"loadedResponse"?: (response: PartInformation) => void;
|
|
76
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
77
|
+
"queryString": string;
|
|
78
|
+
"setData": (newData: PartInformation | string) => Promise<void>;
|
|
79
|
+
"setMockData": (newMockData: MockJson<PartInformation>) => Promise<void>;
|
|
80
|
+
}
|
|
81
|
+
interface PaintThickness {
|
|
82
|
+
"baseUrl": string;
|
|
83
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
84
|
+
"isDev": boolean;
|
|
85
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
86
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
87
|
+
"queryString": string;
|
|
88
|
+
"setData": (newData: VehicleInformation | string) => Promise<void>;
|
|
89
|
+
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
90
|
+
}
|
|
91
|
+
interface ServiceHistory {
|
|
92
|
+
"baseUrl": string;
|
|
93
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
94
|
+
"isDev": boolean;
|
|
95
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
96
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
97
|
+
"queryString": string;
|
|
98
|
+
"setData": (newData: VehicleInformation | string) => Promise<void>;
|
|
99
|
+
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
100
|
+
}
|
|
101
|
+
interface VehicleAccessories {
|
|
102
|
+
"baseUrl": string;
|
|
103
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
104
|
+
"isDev": boolean;
|
|
105
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
106
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
107
|
+
"queryString": string;
|
|
108
|
+
"setData": (newData: VehicleInformation | string) => Promise<void>;
|
|
109
|
+
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
interface VehicleSpecification {
|
|
112
|
+
"baseUrl": string;
|
|
113
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
114
|
+
"isDev": boolean;
|
|
115
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
116
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
117
|
+
"queryString": string;
|
|
118
|
+
"setData": (newData: VehicleInformation | string) => Promise<void>;
|
|
119
|
+
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
120
|
+
}
|
|
121
|
+
interface WarrantyDetails {
|
|
122
|
+
"baseUrl": string;
|
|
123
|
+
"brandIntegrationId": string;
|
|
124
|
+
"cityId"?: string;
|
|
125
|
+
"cityIntegrationId"?: string;
|
|
126
|
+
"companyBranchId"?: string;
|
|
127
|
+
"companyBranchIntegrationId"?: string;
|
|
128
|
+
"companyId"?: string;
|
|
129
|
+
"companyIntegrationId"?: string;
|
|
130
|
+
"customerEmail"?: string;
|
|
131
|
+
"customerName"?: string;
|
|
132
|
+
"customerPhone"?: string;
|
|
133
|
+
"fetchData": (requestedVin?: string) => Promise<void>;
|
|
134
|
+
"isDev": boolean;
|
|
135
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
136
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
137
|
+
"queryString": string;
|
|
138
|
+
"recaptchaKey": string;
|
|
139
|
+
"setData": (newData: VehicleInformation | string) => Promise<void>;
|
|
140
|
+
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
141
|
+
"showSsc": boolean;
|
|
142
|
+
"showWarranty": boolean;
|
|
143
|
+
"unauthorizedSscLookupBaseUrl": string;
|
|
144
|
+
"unauthorizedSscLookupQueryString": string;
|
|
145
|
+
"userId"?: string;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export interface FormInputCustomEvent<T> extends CustomEvent<T> {
|
|
149
|
+
detail: T;
|
|
150
|
+
target: HTMLFormInputElement;
|
|
151
|
+
}
|
|
152
|
+
declare global {
|
|
153
|
+
interface HTMLDeadStockLookupElement extends Components.DeadStockLookup, HTMLStencilElement {
|
|
154
|
+
}
|
|
155
|
+
var HTMLDeadStockLookupElement: {
|
|
156
|
+
prototype: HTMLDeadStockLookupElement;
|
|
157
|
+
new (): HTMLDeadStockLookupElement;
|
|
158
|
+
};
|
|
159
|
+
interface HTMLDistributorLookupElement extends Components.DistributorLookup, HTMLStencilElement {
|
|
160
|
+
}
|
|
161
|
+
var HTMLDistributorLookupElement: {
|
|
162
|
+
prototype: HTMLDistributorLookupElement;
|
|
163
|
+
new (): HTMLDistributorLookupElement;
|
|
164
|
+
};
|
|
165
|
+
interface HTMLDynamicClaimElement extends Components.DynamicClaim, HTMLStencilElement {
|
|
166
|
+
}
|
|
167
|
+
var HTMLDynamicClaimElement: {
|
|
168
|
+
prototype: HTMLDynamicClaimElement;
|
|
169
|
+
new (): HTMLDynamicClaimElement;
|
|
170
|
+
};
|
|
171
|
+
interface HTMLDynamicRedeemElement extends Components.DynamicRedeem, HTMLStencilElement {
|
|
172
|
+
}
|
|
173
|
+
var HTMLDynamicRedeemElement: {
|
|
174
|
+
prototype: HTMLDynamicRedeemElement;
|
|
175
|
+
new (): HTMLDynamicRedeemElement;
|
|
176
|
+
};
|
|
177
|
+
interface HTMLFormInputElementEventMap {
|
|
178
|
+
"onInput": any;
|
|
179
|
+
}
|
|
180
|
+
interface HTMLFormInputElement extends Components.FormInput, HTMLStencilElement {
|
|
181
|
+
addEventListener<K extends keyof HTMLFormInputElementEventMap>(type: K, listener: (this: HTMLFormInputElement, ev: FormInputCustomEvent<HTMLFormInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
182
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
183
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
184
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
185
|
+
removeEventListener<K extends keyof HTMLFormInputElementEventMap>(type: K, listener: (this: HTMLFormInputElement, ev: FormInputCustomEvent<HTMLFormInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
186
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
187
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
188
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
189
|
+
}
|
|
190
|
+
var HTMLFormInputElement: {
|
|
191
|
+
prototype: HTMLFormInputElement;
|
|
192
|
+
new (): HTMLFormInputElement;
|
|
193
|
+
};
|
|
194
|
+
interface HTMLGeneralInquiryFormElement extends Components.GeneralInquiryForm, HTMLStencilElement {
|
|
195
|
+
}
|
|
196
|
+
var HTMLGeneralInquiryFormElement: {
|
|
197
|
+
prototype: HTMLGeneralInquiryFormElement;
|
|
198
|
+
new (): HTMLGeneralInquiryFormElement;
|
|
199
|
+
};
|
|
200
|
+
interface HTMLManufacturerLookupElement extends Components.ManufacturerLookup, HTMLStencilElement {
|
|
201
|
+
}
|
|
202
|
+
var HTMLManufacturerLookupElement: {
|
|
203
|
+
prototype: HTMLManufacturerLookupElement;
|
|
204
|
+
new (): HTMLManufacturerLookupElement;
|
|
205
|
+
};
|
|
206
|
+
interface HTMLPaintThicknessElement extends Components.PaintThickness, HTMLStencilElement {
|
|
207
|
+
}
|
|
208
|
+
var HTMLPaintThicknessElement: {
|
|
209
|
+
prototype: HTMLPaintThicknessElement;
|
|
210
|
+
new (): HTMLPaintThicknessElement;
|
|
211
|
+
};
|
|
212
|
+
interface HTMLServiceHistoryElement extends Components.ServiceHistory, HTMLStencilElement {
|
|
213
|
+
}
|
|
214
|
+
var HTMLServiceHistoryElement: {
|
|
215
|
+
prototype: HTMLServiceHistoryElement;
|
|
216
|
+
new (): HTMLServiceHistoryElement;
|
|
217
|
+
};
|
|
218
|
+
interface HTMLVehicleAccessoriesElement extends Components.VehicleAccessories, HTMLStencilElement {
|
|
219
|
+
}
|
|
220
|
+
var HTMLVehicleAccessoriesElement: {
|
|
221
|
+
prototype: HTMLVehicleAccessoriesElement;
|
|
222
|
+
new (): HTMLVehicleAccessoriesElement;
|
|
223
|
+
};
|
|
224
|
+
interface HTMLVehicleSpecificationElement extends Components.VehicleSpecification, HTMLStencilElement {
|
|
225
|
+
}
|
|
226
|
+
var HTMLVehicleSpecificationElement: {
|
|
227
|
+
prototype: HTMLVehicleSpecificationElement;
|
|
228
|
+
new (): HTMLVehicleSpecificationElement;
|
|
229
|
+
};
|
|
230
|
+
interface HTMLWarrantyDetailsElement extends Components.WarrantyDetails, HTMLStencilElement {
|
|
231
|
+
}
|
|
232
|
+
var HTMLWarrantyDetailsElement: {
|
|
233
|
+
prototype: HTMLWarrantyDetailsElement;
|
|
234
|
+
new (): HTMLWarrantyDetailsElement;
|
|
235
|
+
};
|
|
236
|
+
interface HTMLElementTagNameMap {
|
|
237
|
+
"dead-stock-lookup": HTMLDeadStockLookupElement;
|
|
238
|
+
"distributor-lookup": HTMLDistributorLookupElement;
|
|
239
|
+
"dynamic-claim": HTMLDynamicClaimElement;
|
|
240
|
+
"dynamic-redeem": HTMLDynamicRedeemElement;
|
|
241
|
+
"form-input": HTMLFormInputElement;
|
|
242
|
+
"general-inquiry-form": HTMLGeneralInquiryFormElement;
|
|
243
|
+
"manufacturer-lookup": HTMLManufacturerLookupElement;
|
|
244
|
+
"paint-thickness": HTMLPaintThicknessElement;
|
|
245
|
+
"service-history": HTMLServiceHistoryElement;
|
|
246
|
+
"vehicle-accessories": HTMLVehicleAccessoriesElement;
|
|
247
|
+
"vehicle-specification": HTMLVehicleSpecificationElement;
|
|
248
|
+
"warranty-details": HTMLWarrantyDetailsElement;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
declare namespace LocalJSX {
|
|
252
|
+
interface DeadStockLookup {
|
|
253
|
+
"baseUrl"?: string;
|
|
254
|
+
"isDev"?: boolean;
|
|
255
|
+
"loadedResponse"?: (response: PartInformation) => void;
|
|
256
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
257
|
+
"queryString"?: string;
|
|
258
|
+
}
|
|
259
|
+
interface DistributorLookup {
|
|
260
|
+
"baseUrl"?: string;
|
|
261
|
+
"isDev"?: boolean;
|
|
262
|
+
"loadedResponse"?: (response: PartInformation) => void;
|
|
263
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
264
|
+
"queryString"?: string;
|
|
265
|
+
}
|
|
266
|
+
interface DynamicClaim {
|
|
267
|
+
"baseUrl"?: string;
|
|
268
|
+
"isDev"?: boolean;
|
|
269
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
270
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
271
|
+
"queryString"?: string;
|
|
272
|
+
}
|
|
273
|
+
interface DynamicRedeem {
|
|
274
|
+
"canceledItems"?: ServiceItem[];
|
|
275
|
+
"handleQrChanges"?: (code: string) => void;
|
|
276
|
+
"handleScanner"?: (code: string) => void;
|
|
277
|
+
"item"?: ServiceItem;
|
|
278
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
279
|
+
"unInvoicedByBrokerName"?: string;
|
|
280
|
+
"vin"?: string;
|
|
281
|
+
}
|
|
282
|
+
interface FormInput {
|
|
283
|
+
"class"?: string;
|
|
284
|
+
"containerClass"?: string;
|
|
285
|
+
"disabled"?: boolean;
|
|
286
|
+
"errorClass"?: string;
|
|
287
|
+
"errorMessage"?: string;
|
|
288
|
+
"isError"?: boolean;
|
|
289
|
+
"label"?: string;
|
|
290
|
+
"labelClass"?: string;
|
|
291
|
+
"name"?: string;
|
|
292
|
+
"onOnInput"?: (event: FormInputCustomEvent<any>) => void;
|
|
293
|
+
}
|
|
294
|
+
interface GeneralInquiryForm {
|
|
295
|
+
}
|
|
296
|
+
interface ManufacturerLookup {
|
|
297
|
+
"baseUrl"?: string;
|
|
298
|
+
"headerTitle"?: string;
|
|
299
|
+
"isDev"?: boolean;
|
|
300
|
+
"loadedResponse"?: (response: PartInformation) => void;
|
|
301
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
302
|
+
"queryString"?: string;
|
|
303
|
+
}
|
|
304
|
+
interface PaintThickness {
|
|
305
|
+
"baseUrl"?: string;
|
|
306
|
+
"isDev"?: boolean;
|
|
307
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
308
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
309
|
+
"queryString"?: string;
|
|
310
|
+
}
|
|
311
|
+
interface ServiceHistory {
|
|
312
|
+
"baseUrl"?: string;
|
|
313
|
+
"isDev"?: boolean;
|
|
314
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
315
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
316
|
+
"queryString"?: string;
|
|
317
|
+
}
|
|
318
|
+
interface VehicleAccessories {
|
|
319
|
+
"baseUrl"?: string;
|
|
320
|
+
"isDev"?: boolean;
|
|
321
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
322
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
323
|
+
"queryString"?: string;
|
|
324
|
+
}
|
|
325
|
+
interface VehicleSpecification {
|
|
326
|
+
"baseUrl"?: string;
|
|
327
|
+
"isDev"?: boolean;
|
|
328
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
329
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
330
|
+
"queryString"?: string;
|
|
331
|
+
}
|
|
332
|
+
interface WarrantyDetails {
|
|
333
|
+
"baseUrl"?: string;
|
|
334
|
+
"brandIntegrationId"?: string;
|
|
335
|
+
"cityId"?: string;
|
|
336
|
+
"cityIntegrationId"?: string;
|
|
337
|
+
"companyBranchId"?: string;
|
|
338
|
+
"companyBranchIntegrationId"?: string;
|
|
339
|
+
"companyId"?: string;
|
|
340
|
+
"companyIntegrationId"?: string;
|
|
341
|
+
"customerEmail"?: string;
|
|
342
|
+
"customerName"?: string;
|
|
343
|
+
"customerPhone"?: string;
|
|
344
|
+
"isDev"?: boolean;
|
|
345
|
+
"loadedResponse"?: (response: VehicleInformation) => void;
|
|
346
|
+
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
347
|
+
"queryString"?: string;
|
|
348
|
+
"recaptchaKey"?: string;
|
|
349
|
+
"showSsc"?: boolean;
|
|
350
|
+
"showWarranty"?: boolean;
|
|
351
|
+
"unauthorizedSscLookupBaseUrl"?: string;
|
|
352
|
+
"unauthorizedSscLookupQueryString"?: string;
|
|
353
|
+
"userId"?: string;
|
|
354
|
+
}
|
|
355
|
+
interface IntrinsicElements {
|
|
356
|
+
"dead-stock-lookup": DeadStockLookup;
|
|
357
|
+
"distributor-lookup": DistributorLookup;
|
|
358
|
+
"dynamic-claim": DynamicClaim;
|
|
359
|
+
"dynamic-redeem": DynamicRedeem;
|
|
360
|
+
"form-input": FormInput;
|
|
361
|
+
"general-inquiry-form": GeneralInquiryForm;
|
|
362
|
+
"manufacturer-lookup": ManufacturerLookup;
|
|
363
|
+
"paint-thickness": PaintThickness;
|
|
364
|
+
"service-history": ServiceHistory;
|
|
365
|
+
"vehicle-accessories": VehicleAccessories;
|
|
366
|
+
"vehicle-specification": VehicleSpecification;
|
|
367
|
+
"warranty-details": WarrantyDetails;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
export { LocalJSX as JSX };
|
|
371
|
+
declare module "@stencil/core" {
|
|
372
|
+
export namespace JSX {
|
|
373
|
+
interface IntrinsicElements {
|
|
374
|
+
"dead-stock-lookup": LocalJSX.DeadStockLookup & JSXBase.HTMLAttributes<HTMLDeadStockLookupElement>;
|
|
375
|
+
"distributor-lookup": LocalJSX.DistributorLookup & JSXBase.HTMLAttributes<HTMLDistributorLookupElement>;
|
|
376
|
+
"dynamic-claim": LocalJSX.DynamicClaim & JSXBase.HTMLAttributes<HTMLDynamicClaimElement>;
|
|
377
|
+
"dynamic-redeem": LocalJSX.DynamicRedeem & JSXBase.HTMLAttributes<HTMLDynamicRedeemElement>;
|
|
378
|
+
"form-input": LocalJSX.FormInput & JSXBase.HTMLAttributes<HTMLFormInputElement>;
|
|
379
|
+
"general-inquiry-form": LocalJSX.GeneralInquiryForm & JSXBase.HTMLAttributes<HTMLGeneralInquiryFormElement>;
|
|
380
|
+
"manufacturer-lookup": LocalJSX.ManufacturerLookup & JSXBase.HTMLAttributes<HTMLManufacturerLookupElement>;
|
|
381
|
+
"paint-thickness": LocalJSX.PaintThickness & JSXBase.HTMLAttributes<HTMLPaintThicknessElement>;
|
|
382
|
+
"service-history": LocalJSX.ServiceHistory & JSXBase.HTMLAttributes<HTMLServiceHistoryElement>;
|
|
383
|
+
"vehicle-accessories": LocalJSX.VehicleAccessories & JSXBase.HTMLAttributes<HTMLVehicleAccessoriesElement>;
|
|
384
|
+
"vehicle-specification": LocalJSX.VehicleSpecification & JSXBase.HTMLAttributes<HTMLVehicleSpecificationElement>;
|
|
385
|
+
"warranty-details": LocalJSX.WarrantyDetails & JSXBase.HTMLAttributes<HTMLWarrantyDetailsElement>;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MockJson } from "../types/components";
|
|
2
|
+
import { PartInformation } from "../types/part-information";
|
|
3
|
+
export interface PartInformationInterface {
|
|
4
|
+
isDev: boolean;
|
|
5
|
+
baseUrl: string;
|
|
6
|
+
queryString?: string;
|
|
7
|
+
abortController: AbortController;
|
|
8
|
+
networkTimeoutRef: ReturnType<typeof setTimeout>;
|
|
9
|
+
loadedResponse?: (response: PartInformation) => void;
|
|
10
|
+
}
|
|
11
|
+
type GetPartInformationProps = {
|
|
12
|
+
partNumber: string;
|
|
13
|
+
notAvailableMessage?: string;
|
|
14
|
+
mockData: MockJson<PartInformation>;
|
|
15
|
+
scopedTimeoutRef: ReturnType<typeof setTimeout>;
|
|
16
|
+
middlewareCallback?: (PartInformation: any) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const getPartInformation: (component: PartInformationInterface, generalProps: GetPartInformationProps) => Promise<PartInformation>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MockJson } from "../types/components";
|
|
2
|
+
import { VehicleInformation } from "../types/vehicle-information";
|
|
3
|
+
declare const vehicleRequestHeaders: {
|
|
4
|
+
readonly cityId: "City-Id";
|
|
5
|
+
readonly userId: "User-Id";
|
|
6
|
+
readonly companyId: "Company-Id";
|
|
7
|
+
readonly customerName: "Customer-Name";
|
|
8
|
+
readonly customerPhone: "Customer-Phone";
|
|
9
|
+
readonly customerEmail: "Customer-Email";
|
|
10
|
+
readonly companyBranchId: "Company-Branch-Id";
|
|
11
|
+
readonly cityIntegrationId: "City-Integration-Id";
|
|
12
|
+
readonly brandIntegrationId: "Brand-Integration-Id";
|
|
13
|
+
readonly companyIntegrationId: "Company-Integration-Id";
|
|
14
|
+
readonly companyBranchIntegrationId: "Company-Branch-Integration-Id";
|
|
15
|
+
};
|
|
16
|
+
type VehicleRequestHeaders = Partial<Record<keyof typeof vehicleRequestHeaders, string>>;
|
|
17
|
+
export interface VehicleInformationInterface extends VehicleRequestHeaders {
|
|
18
|
+
isDev: boolean;
|
|
19
|
+
baseUrl: string;
|
|
20
|
+
queryString?: string;
|
|
21
|
+
abortController: AbortController;
|
|
22
|
+
networkTimeoutRef: ReturnType<typeof setTimeout>;
|
|
23
|
+
loadedResponse?: (response: VehicleInformation) => void;
|
|
24
|
+
}
|
|
25
|
+
type GetVehicleInformationProps = {
|
|
26
|
+
vin: string;
|
|
27
|
+
notAvailableMessage?: string;
|
|
28
|
+
mockData: MockJson<VehicleInformation>;
|
|
29
|
+
scopedTimeoutRef: ReturnType<typeof setTimeout>;
|
|
30
|
+
middlewareCallback?: (VehicleInformation: any) => void;
|
|
31
|
+
};
|
|
32
|
+
export declare const getVehicleInformation: (component: VehicleInformationInterface, generalProps: GetVehicleInformationProps) => Promise<VehicleInformation>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AnyObjectSchema } from 'yup';
|
|
2
|
+
export interface FormInputInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
class: string;
|
|
6
|
+
isError: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
labelClass: string;
|
|
9
|
+
errorClass: string;
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
containerClass: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FormHookInterface<T> {
|
|
14
|
+
el: HTMLElement;
|
|
15
|
+
renderControl: {};
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
formSubmit: (formValues: T) => void;
|
|
18
|
+
}
|
|
19
|
+
type FieldType = 'text';
|
|
20
|
+
type ValidationType = 'onSubmit' | 'always';
|
|
21
|
+
interface Field {
|
|
22
|
+
name: string;
|
|
23
|
+
isError: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
onInput: (event: InputEvent) => void;
|
|
27
|
+
}
|
|
28
|
+
export interface FormStateOptions {
|
|
29
|
+
validationType?: ValidationType;
|
|
30
|
+
}
|
|
31
|
+
export declare class FormHook<T> {
|
|
32
|
+
private isSubmitted;
|
|
33
|
+
private context;
|
|
34
|
+
private schemaObject;
|
|
35
|
+
private validationType;
|
|
36
|
+
private subscribedFields;
|
|
37
|
+
formErrors: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
formController: any;
|
|
41
|
+
constructor(context: FormHookInterface<T>, schemaObject: AnyObjectSchema, formStateOptions?: FormStateOptions);
|
|
42
|
+
getFormErrors: () => {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
};
|
|
45
|
+
getValues: () => {
|
|
46
|
+
[k: string]: FormDataEntryValue;
|
|
47
|
+
};
|
|
48
|
+
private focusFirstInput;
|
|
49
|
+
onSubmit: (formEvent: SubmitEvent) => void;
|
|
50
|
+
newController: (name: string, fieldType: FieldType) => Field;
|
|
51
|
+
private signal;
|
|
52
|
+
private onChanges;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ImageViewerInterface {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
expandedImage?: string;
|
|
4
|
+
originalImage: HTMLImageElement;
|
|
5
|
+
closeImage: (event?: KeyboardEvent) => void;
|
|
6
|
+
closeImageListener: (event?: KeyboardEvent) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function openImageViewer(context: ImageViewerInterface, target: HTMLImageElement, imageSrc: string): void;
|
|
9
|
+
export declare function closeImageViewer(context?: ImageViewerInterface, event?: KeyboardEvent): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function format(first?: string, middle?: string, last?: string): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type PartInformation = {
|
|
2
|
+
partNumber: string;
|
|
3
|
+
tmcPart: TMCPart;
|
|
4
|
+
stockParts: StockPart[];
|
|
5
|
+
deadStock: DeadStock[];
|
|
6
|
+
};
|
|
7
|
+
export type TMCPart = {
|
|
8
|
+
partDescription: string;
|
|
9
|
+
group: string;
|
|
10
|
+
};
|
|
11
|
+
export type DeadStock = {
|
|
12
|
+
companyIntegrationID: string;
|
|
13
|
+
companyName: string;
|
|
14
|
+
branchDeadStock: BranchDeadStock[];
|
|
15
|
+
};
|
|
16
|
+
export type BranchDeadStock = {
|
|
17
|
+
companyBranchIntegrationID: string;
|
|
18
|
+
companyBranchName: string;
|
|
19
|
+
quantity: number;
|
|
20
|
+
};
|
|
21
|
+
export type StockPart = {
|
|
22
|
+
partDescription: string;
|
|
23
|
+
supersededTo: string;
|
|
24
|
+
supersededFrom: string;
|
|
25
|
+
quantityLookUpResult: string;
|
|
26
|
+
price: number;
|
|
27
|
+
group: string;
|
|
28
|
+
locationID: string;
|
|
29
|
+
locationName: string;
|
|
30
|
+
};
|