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.
Files changed (196) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/Loading-ee1a2ceb.js +16 -0
  3. package/dist/cjs/app-globals-3813fb46.js +9 -0
  4. package/dist/cjs/cn-f559f9e5.js +2588 -0
  5. package/dist/cjs/dead-stock-lookup.cjs.entry.js +103 -0
  6. package/dist/cjs/distributor-lookup.cjs.entry.js +109 -0
  7. package/dist/cjs/dynamic-claim.cjs.entry.js +306 -0
  8. package/dist/cjs/dynamic-redeem.cjs.entry.js +145 -0
  9. package/dist/cjs/form-input.cjs.entry.js +36 -0
  10. package/dist/cjs/general-inquiry-form.cjs.entry.js +2280 -0
  11. package/dist/cjs/image-expansion-a9c9c6f7.js +77 -0
  12. package/dist/cjs/index-d4b5214c.js +1331 -0
  13. package/dist/cjs/index.cjs.js +6 -0
  14. package/dist/cjs/loader-baf2418b.js +9 -0
  15. package/dist/cjs/loader.cjs.js +19 -0
  16. package/dist/cjs/manufacturer-lookup.cjs.entry.js +109 -0
  17. package/dist/cjs/paint-thickness.cjs.entry.js +131 -0
  18. package/dist/cjs/partInformation-2a6a018b.js +34 -0
  19. package/dist/cjs/service-history.cjs.entry.js +116 -0
  20. package/dist/cjs/shift-components.cjs.js +29 -0
  21. package/dist/cjs/vehicle-accessories.cjs.entry.js +135 -0
  22. package/dist/cjs/vehicle-specification.cjs.entry.js +111 -0
  23. package/dist/cjs/vehicleInformation-4c1dcaf2.js +52 -0
  24. package/dist/cjs/warranty-details.cjs.entry.js +281 -0
  25. package/dist/collection/collection-manifest.json +23 -0
  26. package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -0
  27. package/dist/collection/components/dynamic-claim/dynamic-claim.js +521 -0
  28. package/dist/collection/components/dynamic-claim/icons/cancelled.svg +8 -0
  29. package/dist/collection/components/dynamic-claim/icons/expired.svg +9 -0
  30. package/dist/collection/components/dynamic-claim/icons/pending.svg +9 -0
  31. package/dist/collection/components/dynamic-claim/icons/processed.svg +9 -0
  32. package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -0
  33. package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +334 -0
  34. package/dist/collection/components/form-input/form-input.css +1 -0
  35. package/dist/collection/components/form-input/form-input.js +209 -0
  36. package/dist/collection/components/general-inquiry-form/general-inquiry-form.css +1 -0
  37. package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +46 -0
  38. package/dist/collection/components/paint-thickness/paint-thickness.css +1 -0
  39. package/dist/collection/components/paint-thickness/paint-thickness.js +323 -0
  40. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -0
  41. package/dist/collection/components/part-lookup/dead-stock-lookup.js +294 -0
  42. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -0
  43. package/dist/collection/components/part-lookup/distributor-lookup.js +299 -0
  44. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -0
  45. package/dist/collection/components/part-lookup/manufacturer-lookup.js +317 -0
  46. package/dist/collection/components/parts/Loading.js +10 -0
  47. package/dist/collection/components/service-history/service-history.css +1 -0
  48. package/dist/collection/components/service-history/service-history.js +306 -0
  49. package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -0
  50. package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +327 -0
  51. package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -0
  52. package/dist/collection/components/vehicle-specification/vehicle-specification.js +301 -0
  53. package/dist/collection/components/warranty-details/assets/check.svg +4 -0
  54. package/dist/collection/components/warranty-details/assets/loader.svg +11 -0
  55. package/dist/collection/components/warranty-details/assets/x-mark.svg +4 -0
  56. package/dist/collection/components/warranty-details/components/CardsContainer.js +9 -0
  57. package/dist/collection/components/warranty-details/components/Loading.js +10 -0
  58. package/dist/collection/components/warranty-details/components/SSCTable.js +13 -0
  59. package/dist/collection/components/warranty-details/components/StatusCard.js +11 -0
  60. package/dist/collection/components/warranty-details/warranty-details.css +1 -0
  61. package/dist/collection/components/warranty-details/warranty-details.js +709 -0
  62. package/dist/collection/global/api/partInformation.js +30 -0
  63. package/dist/collection/global/api/vehicleInformation.js +48 -0
  64. package/dist/collection/global/assets/eye.svg +5 -0
  65. package/dist/collection/global/assets/loader.svg +11 -0
  66. package/dist/collection/global/lib/cn.js +9 -0
  67. package/dist/collection/global/lib/form-hook.js +118 -0
  68. package/dist/collection/global/lib/image-expansion.js +69 -0
  69. package/dist/collection/global/lib/utils.js +7 -0
  70. package/dist/collection/global/types/components.js +1 -0
  71. package/dist/collection/global/types/part-information.js +1 -0
  72. package/dist/collection/global/types/vehicle-information.js +5 -0
  73. package/dist/collection/index.js +1 -0
  74. package/dist/collection/templates/mock-data.js +4132 -0
  75. package/dist/collection/templates/parts/mock-data.js +221 -0
  76. package/dist/collection/templates/vehicle-lookup.js +218 -0
  77. package/dist/collection/templates/warranty-mock-data.js +2982 -0
  78. package/dist/components/dead-stock-lookup.d.ts +11 -0
  79. package/dist/components/dead-stock-lookup.js +5 -0
  80. package/dist/components/distributor-lookup.d.ts +11 -0
  81. package/dist/components/distributor-lookup.js +5 -0
  82. package/dist/components/dynamic-claim.d.ts +11 -0
  83. package/dist/components/dynamic-claim.js +5 -0
  84. package/dist/components/dynamic-redeem.d.ts +11 -0
  85. package/dist/components/dynamic-redeem.js +5 -0
  86. package/dist/components/form-input.d.ts +11 -0
  87. package/dist/components/form-input.js +5 -0
  88. package/dist/components/general-inquiry-form.d.ts +11 -0
  89. package/dist/components/general-inquiry-form.js +5 -0
  90. package/dist/components/index.d.ts +33 -0
  91. package/dist/components/index.js +5 -0
  92. package/dist/components/manufacturer-lookup.d.ts +11 -0
  93. package/dist/components/manufacturer-lookup.js +5 -0
  94. package/dist/components/p-2b0cc0c6.js +5 -0
  95. package/dist/components/p-4dc47f5f.js +5 -0
  96. package/dist/components/p-50f73226.js +5 -0
  97. package/dist/components/p-5df9bc5f.js +5 -0
  98. package/dist/components/p-8375923d.js +5 -0
  99. package/dist/components/p-98d9e7ab.js +5 -0
  100. package/dist/components/p-a454210b.js +5 -0
  101. package/dist/components/p-d265c109.js +5 -0
  102. package/dist/components/p-d5ff7544.js +5 -0
  103. package/dist/components/paint-thickness.d.ts +11 -0
  104. package/dist/components/paint-thickness.js +5 -0
  105. package/dist/components/service-history.d.ts +11 -0
  106. package/dist/components/service-history.js +5 -0
  107. package/dist/components/vehicle-accessories.d.ts +11 -0
  108. package/dist/components/vehicle-accessories.js +5 -0
  109. package/dist/components/vehicle-specification.d.ts +11 -0
  110. package/dist/components/vehicle-specification.js +5 -0
  111. package/dist/components/warranty-details.d.ts +11 -0
  112. package/dist/components/warranty-details.js +5 -0
  113. package/dist/esm/Loading-61648252.js +14 -0
  114. package/dist/esm/app-globals-8befa224.js +7 -0
  115. package/dist/esm/cn-cc419b94.js +2586 -0
  116. package/dist/esm/dead-stock-lookup.entry.js +99 -0
  117. package/dist/esm/distributor-lookup.entry.js +105 -0
  118. package/dist/esm/dynamic-claim.entry.js +302 -0
  119. package/dist/esm/dynamic-redeem.entry.js +141 -0
  120. package/dist/esm/form-input.entry.js +32 -0
  121. package/dist/esm/general-inquiry-form.entry.js +2276 -0
  122. package/dist/esm/image-expansion-08c4bf0d.js +73 -0
  123. package/dist/esm/index-ef54644b.js +1302 -0
  124. package/dist/esm/index.js +4 -0
  125. package/dist/esm/loader-027b88af.js +7 -0
  126. package/dist/esm/loader.js +15 -0
  127. package/dist/esm/manufacturer-lookup.entry.js +105 -0
  128. package/dist/esm/paint-thickness.entry.js +127 -0
  129. package/dist/esm/partInformation-73ece994.js +32 -0
  130. package/dist/esm/service-history.entry.js +112 -0
  131. package/dist/esm/shift-components.js +24 -0
  132. package/dist/esm/vehicle-accessories.entry.js +131 -0
  133. package/dist/esm/vehicle-specification.entry.js +107 -0
  134. package/dist/esm/vehicleInformation-f1081f83.js +50 -0
  135. package/dist/esm/warranty-details.entry.js +277 -0
  136. package/dist/index.cjs.js +1 -0
  137. package/dist/index.js +1 -0
  138. package/dist/shift-components/index.esm.js +4 -0
  139. package/dist/shift-components/p-15f86441.entry.js +5 -0
  140. package/dist/shift-components/p-1ae3a61f.entry.js +5 -0
  141. package/dist/shift-components/p-517b3e04.js +5 -0
  142. package/dist/shift-components/p-5df9bc5f.js +5 -0
  143. package/dist/shift-components/p-65e6ab8e.js +5 -0
  144. package/dist/shift-components/p-894e7518.entry.js +5 -0
  145. package/dist/shift-components/p-8c261972.entry.js +5 -0
  146. package/dist/shift-components/p-8e818568.entry.js +5 -0
  147. package/dist/shift-components/p-98d9e7ab.js +5 -0
  148. package/dist/shift-components/p-9bd4471c.entry.js +5 -0
  149. package/dist/shift-components/p-9f790b14.entry.js +5 -0
  150. package/dist/shift-components/p-a21e2e2e.js +5 -0
  151. package/dist/shift-components/p-c113792c.entry.js +5 -0
  152. package/dist/shift-components/p-d265c109.js +5 -0
  153. package/dist/shift-components/p-d5ff7544.js +5 -0
  154. package/dist/shift-components/p-dc9845ed.entry.js +5 -0
  155. package/dist/shift-components/p-e32b0798.entry.js +5 -0
  156. package/dist/shift-components/p-e97316d2.js +6 -0
  157. package/dist/shift-components/p-f759c597.entry.js +5 -0
  158. package/dist/shift-components/p-feb3df85.entry.js +5 -0
  159. package/dist/shift-components/shift-components.esm.js +5 -0
  160. package/dist/types/components/dynamic-claim/dynamic-claim.d.ts +48 -0
  161. package/dist/types/components/dynamic-redeem/dynamic-redeem.d.ts +34 -0
  162. package/dist/types/components/form-input/form-input.d.ts +14 -0
  163. package/dist/types/components/general-inquiry-form/general-inquiry-form.d.ts +21 -0
  164. package/dist/types/components/paint-thickness/paint-thickness.d.ts +28 -0
  165. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +25 -0
  166. package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -0
  167. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +24 -0
  168. package/dist/types/components/parts/Loading.d.ts +5 -0
  169. package/dist/types/components/service-history/service-history.d.ts +23 -0
  170. package/dist/types/components/vehicle-accessories/vehicle-accessories.d.ts +28 -0
  171. package/dist/types/components/vehicle-specification/vehicle-specification.d.ts +22 -0
  172. package/dist/types/components/warranty-details/components/CardsContainer.d.ts +8 -0
  173. package/dist/types/components/warranty-details/components/Loading.d.ts +5 -0
  174. package/dist/types/components/warranty-details/components/SSCTable.d.ts +6 -0
  175. package/dist/types/components/warranty-details/components/StatusCard.d.ts +10 -0
  176. package/dist/types/components/warranty-details/warranty-details.d.ts +51 -0
  177. package/dist/types/components.d.ts +388 -0
  178. package/dist/types/global/api/partInformation.d.ts +19 -0
  179. package/dist/types/global/api/vehicleInformation.d.ts +33 -0
  180. package/dist/types/global/lib/cn.d.ts +2 -0
  181. package/dist/types/global/lib/form-hook.d.ts +54 -0
  182. package/dist/types/global/lib/image-expansion.d.ts +9 -0
  183. package/dist/types/global/lib/utils.d.ts +1 -0
  184. package/dist/types/global/types/components.d.ts +4 -0
  185. package/dist/types/global/types/part-information.d.ts +30 -0
  186. package/dist/types/global/types/vehicle-information.d.ts +162 -0
  187. package/dist/types/index.d.ts +10 -0
  188. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  189. package/loader/cdn.js +5 -0
  190. package/loader/index.cjs.js +5 -0
  191. package/loader/index.d.ts +24 -0
  192. package/loader/index.es2017.js +5 -0
  193. package/loader/index.js +6 -0
  194. package/loader/package.json +11 -0
  195. package/package.json +61 -0
  196. package/readme.md +104 -0
@@ -0,0 +1,317 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import Loading from "../parts/Loading";
7
+ import cn from "../../global/lib/cn";
8
+ import { getPartInformation } from "../../global/api/partInformation";
9
+ let mockData = {};
10
+ export class ManufacturerLookup {
11
+ constructor() {
12
+ this.baseUrl = '';
13
+ this.isDev = false;
14
+ this.queryString = '';
15
+ this.headerTitle = 'Manufacturer';
16
+ this.loadingStateChange = undefined;
17
+ this.loadedResponse = undefined;
18
+ this.state = 'idle';
19
+ this.externalPartNumber = null;
20
+ this.errorMessage = null;
21
+ this.partInformation = undefined;
22
+ }
23
+ handleSettingData(response) {
24
+ this.partInformation = response;
25
+ }
26
+ async setData(newData) {
27
+ clearTimeout(this.networkTimeoutRef);
28
+ if (this.abortController)
29
+ this.abortController.abort();
30
+ this.abortController = new AbortController();
31
+ let scopedTimeoutRef;
32
+ const isPartNumberRequest = typeof newData === 'string';
33
+ const partNumber = isPartNumberRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.partNumber;
34
+ this.externalPartNumber = partNumber;
35
+ try {
36
+ if (!partNumber || partNumber.trim().length === 0) {
37
+ //this.componentHeight = '0px';
38
+ this.state = 'idle';
39
+ return;
40
+ }
41
+ if (this.state === 'data' || this.state === 'error') {
42
+ this.state = (this.state + '-loading');
43
+ }
44
+ else
45
+ this.state = 'loading';
46
+ await new Promise(r => {
47
+ scopedTimeoutRef = setTimeout(r, 700);
48
+ this.networkTimeoutRef = scopedTimeoutRef;
49
+ });
50
+ const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }) : newData;
51
+ if (this.networkTimeoutRef === scopedTimeoutRef) {
52
+ if (!partResponse)
53
+ throw new Error('Wrong response format');
54
+ this.handleSettingData(partResponse);
55
+ }
56
+ this.errorMessage = null;
57
+ this.state = 'data';
58
+ }
59
+ catch (error) {
60
+ if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
61
+ return;
62
+ this.state = 'error';
63
+ this.partInformation = null;
64
+ this.errorMessage = error.message;
65
+ }
66
+ }
67
+ async fetchData(requestedVin = this.externalPartNumber) {
68
+ await this.setData(requestedVin);
69
+ }
70
+ //calculateHeight(componentState: string) {
71
+ // if (componentState.includes('loading') && this.componentHeight === '0px') {
72
+ // this.componentHeight = '100px';
73
+ // } else if (componentState !== 'idle') {
74
+ // setTimeout(() => {
75
+ // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
76
+ // }, 50);
77
+ // } else {
78
+ // this.componentHeight = '0px';
79
+ // }
80
+ //}
81
+ async loadingListener() {
82
+ //this.calculateHeight(newState);
83
+ if (this.loadingStateChange)
84
+ this.loadingStateChange(this.state.includes('loading'));
85
+ }
86
+ async setMockData(newMockData) {
87
+ mockData = newMockData;
88
+ }
89
+ render() {
90
+ return (h(Host, { key: '1a36762a66d4488c9141559041b011e43596f0a7' }, h("div", { key: 'e3bff7e899e2eef1a3ec2ae9e0656e7e952ab71a', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'cb58724e4fabee9964e4406ac7644612a30eb213' }, h(Loading, { key: '0c72c281bb566935736b07ec338d72359719511d', isLoading: this.state.includes('loading') }), h("div", { key: '72801178e4be5d4ca64a9e6b884f6cedbc0528a6', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'db043ec989d9de0810e970f9f67b453e84b1f1db', class: "py-[16px]" }, h("div", { key: '25205f5b3d1bcd96d63ef3c33c89d61316a91db3', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '1e8c439d38a58588176ab12718d7e5ac290fe1aa' }, h("div", { key: 'c7ef0a2f55e0c5c8d2ed95ba5bc1f47f20307261', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '6246d5011ac1b6124a6f82839c942a24f5deb063', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: '327ba973b69ea596c63d7c810c0cdf6b8bf7b067', style: { padding: '10px 30px', display: 'flex', flexDirection: 'column', gap: '15px' } }, h("div", { key: 'bde2099739e9f74da428d6df7b438d4a868a1caa', style: { display: 'flex', gap: '50px' } }, h("div", { key: '41a251e2f73aeb2f6f8c52cc12874c978eb30a7b', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: '1c538fe46397535aed87b98c053bd704869ba6e0', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Description"), h("div", { key: '013bf46fa8e77a421e5e4ccdd3787559ba3da6ee', style: { padding: '10px 0px' } }, this.partInformation.tmcPart.partDescription)), h("div", { key: '745adc8f9f294afc6e6b0ea4cac74c12d0b93c4e', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: 'f9c4a5cdc2b005f1f23e58fa6dd765a45132fec3', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Product Group"), h("div", { key: '79561156dcce3b1c3281a11da39583f5ec14c289', style: { padding: '10px 0px' } }, this.partInformation.tmcPart.group)), h("div", { key: '8f2d47ab6a50f44d96b99bffd04ed80a35a805ab', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } })))))))))));
91
+ }
92
+ static get is() { return "manufacturer-lookup"; }
93
+ static get encapsulation() { return "shadow"; }
94
+ static get originalStyleUrls() {
95
+ return {
96
+ "$": ["manufacturer-lookup.css"]
97
+ };
98
+ }
99
+ static get styleUrls() {
100
+ return {
101
+ "$": ["manufacturer-lookup.css"]
102
+ };
103
+ }
104
+ static get properties() {
105
+ return {
106
+ "baseUrl": {
107
+ "type": "string",
108
+ "mutable": false,
109
+ "complexType": {
110
+ "original": "string",
111
+ "resolved": "string",
112
+ "references": {}
113
+ },
114
+ "required": false,
115
+ "optional": false,
116
+ "docs": {
117
+ "tags": [],
118
+ "text": ""
119
+ },
120
+ "attribute": "base-url",
121
+ "reflect": false,
122
+ "defaultValue": "''"
123
+ },
124
+ "isDev": {
125
+ "type": "boolean",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "boolean",
129
+ "resolved": "boolean",
130
+ "references": {}
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "attribute": "is-dev",
139
+ "reflect": false,
140
+ "defaultValue": "false"
141
+ },
142
+ "queryString": {
143
+ "type": "string",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "string",
147
+ "resolved": "string",
148
+ "references": {}
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": ""
155
+ },
156
+ "attribute": "query-string",
157
+ "reflect": false,
158
+ "defaultValue": "''"
159
+ },
160
+ "headerTitle": {
161
+ "type": "string",
162
+ "mutable": false,
163
+ "complexType": {
164
+ "original": "string",
165
+ "resolved": "string",
166
+ "references": {}
167
+ },
168
+ "required": false,
169
+ "optional": false,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": ""
173
+ },
174
+ "attribute": "header-title",
175
+ "reflect": false,
176
+ "defaultValue": "'Manufacturer'"
177
+ },
178
+ "loadingStateChange": {
179
+ "type": "unknown",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "(isLoading: boolean) => void",
183
+ "resolved": "(isLoading: boolean) => void",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": true,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": ""
191
+ }
192
+ },
193
+ "loadedResponse": {
194
+ "type": "unknown",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "(response: PartInformation) => void",
198
+ "resolved": "(response: PartInformation) => void",
199
+ "references": {
200
+ "PartInformation": {
201
+ "location": "import",
202
+ "path": "~types/part-information",
203
+ "id": "src/global/types/part-information.ts::PartInformation"
204
+ }
205
+ }
206
+ },
207
+ "required": false,
208
+ "optional": true,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ }
213
+ }
214
+ };
215
+ }
216
+ static get states() {
217
+ return {
218
+ "state": {},
219
+ "externalPartNumber": {},
220
+ "errorMessage": {},
221
+ "partInformation": {}
222
+ };
223
+ }
224
+ static get methods() {
225
+ return {
226
+ "setData": {
227
+ "complexType": {
228
+ "signature": "(newData: PartInformation | string) => Promise<void>",
229
+ "parameters": [{
230
+ "name": "newData",
231
+ "type": "string | PartInformation",
232
+ "docs": ""
233
+ }],
234
+ "references": {
235
+ "Promise": {
236
+ "location": "global",
237
+ "id": "global::Promise"
238
+ },
239
+ "PartInformation": {
240
+ "location": "import",
241
+ "path": "~types/part-information",
242
+ "id": "src/global/types/part-information.ts::PartInformation"
243
+ },
244
+ "ReturnType": {
245
+ "location": "global",
246
+ "id": "global::ReturnType"
247
+ }
248
+ },
249
+ "return": "Promise<void>"
250
+ },
251
+ "docs": {
252
+ "text": "",
253
+ "tags": []
254
+ }
255
+ },
256
+ "fetchData": {
257
+ "complexType": {
258
+ "signature": "(requestedVin?: string) => Promise<void>",
259
+ "parameters": [{
260
+ "name": "requestedVin",
261
+ "type": "string",
262
+ "docs": ""
263
+ }],
264
+ "references": {
265
+ "Promise": {
266
+ "location": "global",
267
+ "id": "global::Promise"
268
+ }
269
+ },
270
+ "return": "Promise<void>"
271
+ },
272
+ "docs": {
273
+ "text": "",
274
+ "tags": []
275
+ }
276
+ },
277
+ "setMockData": {
278
+ "complexType": {
279
+ "signature": "(newMockData: MockJson<PartInformation>) => Promise<void>",
280
+ "parameters": [{
281
+ "name": "newMockData",
282
+ "type": "{ [key: string]: PartInformation; }",
283
+ "docs": ""
284
+ }],
285
+ "references": {
286
+ "Promise": {
287
+ "location": "global",
288
+ "id": "global::Promise"
289
+ },
290
+ "MockJson": {
291
+ "location": "import",
292
+ "path": "~types/components",
293
+ "id": "src/global/types/components.ts::MockJson"
294
+ },
295
+ "PartInformation": {
296
+ "location": "import",
297
+ "path": "~types/part-information",
298
+ "id": "src/global/types/part-information.ts::PartInformation"
299
+ }
300
+ },
301
+ "return": "Promise<void>"
302
+ },
303
+ "docs": {
304
+ "text": "",
305
+ "tags": []
306
+ }
307
+ }
308
+ };
309
+ }
310
+ static get elementRef() { return "el"; }
311
+ static get watchers() {
312
+ return [{
313
+ "propName": "state",
314
+ "methodName": "loadingListener"
315
+ }];
316
+ }
317
+ }
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { h } from "@stencil/core";
6
+ import Loader from "~assets/loader.svg";
7
+ import cn from "../../global/lib/cn";
8
+ export default function Loading({ isLoading }) {
9
+ return (h("div", { class: cn('size-full transition-all z-50 duration-100 flex items-center justify-center pointer-events-none absolute ', { 'opacity-0': !isLoading }) }, h("img", { class: "animate-spin-2s size-[40px]", src: Loader })));
10
+ }
@@ -0,0 +1 @@
1
+ *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-0{height:0}.h-\[40px\]{height:40px}.h-\[80px\]{height:80px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.\!border-none{border-style:none!important}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.pt-\[4px\]{padding-top:4px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\[40px\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}
@@ -0,0 +1,306 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import Loading from "../parts/Loading";
7
+ import cn from "../../global/lib/cn";
8
+ import { getVehicleInformation } from "../../global/api/vehicleInformation";
9
+ let mockData = {};
10
+ export class ServiceHistory {
11
+ constructor() {
12
+ this.baseUrl = '';
13
+ this.isDev = false;
14
+ this.queryString = '';
15
+ this.loadingStateChange = undefined;
16
+ this.loadedResponse = undefined;
17
+ this.state = 'idle';
18
+ this.externalVin = null;
19
+ this.errorMessage = null;
20
+ this.vehicleInformation = undefined;
21
+ }
22
+ handleSettingData(response) {
23
+ if (response.serviceHistory === null)
24
+ response.serviceHistory = [];
25
+ this.vehicleInformation = response;
26
+ }
27
+ async setData(newData) {
28
+ clearTimeout(this.networkTimeoutRef);
29
+ if (this.abortController)
30
+ this.abortController.abort();
31
+ this.abortController = new AbortController();
32
+ let scopedTimeoutRef;
33
+ const isVinRequest = typeof newData === 'string';
34
+ const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
35
+ this.externalVin = vin;
36
+ try {
37
+ if (!vin || vin.trim().length === 0) {
38
+ //this.componentHeight = '0px';
39
+ this.state = 'idle';
40
+ return;
41
+ }
42
+ if (this.state === 'data' || this.state === 'error') {
43
+ this.state = (this.state + '-loading');
44
+ }
45
+ else
46
+ this.state = 'loading';
47
+ await new Promise(r => {
48
+ scopedTimeoutRef = setTimeout(r, 700);
49
+ this.networkTimeoutRef = scopedTimeoutRef;
50
+ });
51
+ const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }) : newData;
52
+ if (this.networkTimeoutRef === scopedTimeoutRef) {
53
+ if (!vehicleResponse)
54
+ throw new Error('Wrong response format');
55
+ this.handleSettingData(vehicleResponse);
56
+ }
57
+ this.errorMessage = null;
58
+ this.state = 'data';
59
+ }
60
+ catch (error) {
61
+ if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
62
+ return;
63
+ this.state = 'error';
64
+ this.vehicleInformation = null;
65
+ this.errorMessage = error.message;
66
+ }
67
+ }
68
+ async fetchData(requestedVin = this.externalVin) {
69
+ await this.setData(requestedVin);
70
+ }
71
+ //calculateHeight(componentState: string) {
72
+ // if (componentState.includes('loading') && this.componentHeight === '0px') {
73
+ // this.componentHeight = '100px';
74
+ // } else if (componentState !== 'idle') {
75
+ // setTimeout(() => {
76
+ // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
77
+ // }, 50);
78
+ // } else {
79
+ // this.componentHeight = '0px';
80
+ // }
81
+ //}
82
+ async loadingListener() {
83
+ //this.calculateHeight(newState);
84
+ if (this.loadingStateChange)
85
+ this.loadingStateChange(this.state.includes('loading'));
86
+ }
87
+ async setMockData(newMockData) {
88
+ mockData = newMockData;
89
+ }
90
+ render() {
91
+ var _a, _b, _c, _d;
92
+ return (h(Host, { key: '75e08200e1ec78b560e01f487445a7c315dc0580' }, h("div", { key: 'f092c1e2bae0fb547f517bb02c7435c772166de6', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'd84b80cbfd9dd01c1183620d1584490c082f5a53' }, h(Loading, { key: '1a40343cff4d7b915e136a648b87d70aec707b1f', isLoading: this.state.includes('loading') }), h("div", { key: 'be2472312b50e070b6777e434bc646ef17f9e83b', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'f38d29f64f808b111fbcd867bb0f44e0744e2ebb', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '1f55d67a3fe663597bda3feefb2fad591561672d', class: "py-[16px]" }, h("div", { key: '62d77dca0e4bc4d59695e21896628e0b9ad7b665', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '629166ddd95de4a0d53a796080dfcff142ff916a', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '0ae9ca43d4b28857e284a85b3972435ef04ef52c', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Service History"), h("div", { key: 'dd17e99672d4bac232205374e30e94aeda34e3f5', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: '55c2612215bf0518de501279d20096211842b606', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: '8e9a42bd52b0c817d44235aab22bc4db2fad5362', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '1d49f4d6085fcb1dab4f9ab4b093605ba9f38511', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '2eaea4ec1577c03e5316fb62bbeb442c586dfe74' }, ['Branch', 'Dealer', 'Invoice No.', 'Date', 'Service Type', 'Odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: '210907b78fec19f688535fb34b316897c9bb2b8f' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
93
+ var _a;
94
+ return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
95
+ '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
96
+ }) }, service[serviceType] || '...'));
97
+ })))))))))))))));
98
+ }
99
+ static get is() { return "service-history"; }
100
+ static get encapsulation() { return "shadow"; }
101
+ static get originalStyleUrls() {
102
+ return {
103
+ "$": ["service-history.css"]
104
+ };
105
+ }
106
+ static get styleUrls() {
107
+ return {
108
+ "$": ["service-history.css"]
109
+ };
110
+ }
111
+ static get properties() {
112
+ return {
113
+ "baseUrl": {
114
+ "type": "string",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "string",
118
+ "resolved": "string",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": ""
126
+ },
127
+ "attribute": "base-url",
128
+ "reflect": false,
129
+ "defaultValue": "''"
130
+ },
131
+ "isDev": {
132
+ "type": "boolean",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "boolean",
136
+ "resolved": "boolean",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "attribute": "is-dev",
146
+ "reflect": false,
147
+ "defaultValue": "false"
148
+ },
149
+ "queryString": {
150
+ "type": "string",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "string",
154
+ "resolved": "string",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": ""
162
+ },
163
+ "attribute": "query-string",
164
+ "reflect": false,
165
+ "defaultValue": "''"
166
+ },
167
+ "loadingStateChange": {
168
+ "type": "unknown",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "(isLoading: boolean) => void",
172
+ "resolved": "(isLoading: boolean) => void",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ }
181
+ },
182
+ "loadedResponse": {
183
+ "type": "unknown",
184
+ "mutable": false,
185
+ "complexType": {
186
+ "original": "(response: VehicleInformation) => void",
187
+ "resolved": "(response: VehicleInformation) => void",
188
+ "references": {
189
+ "VehicleInformation": {
190
+ "location": "import",
191
+ "path": "~types/vehicle-information",
192
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
193
+ }
194
+ }
195
+ },
196
+ "required": false,
197
+ "optional": true,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": ""
201
+ }
202
+ }
203
+ };
204
+ }
205
+ static get states() {
206
+ return {
207
+ "state": {},
208
+ "externalVin": {},
209
+ "errorMessage": {},
210
+ "vehicleInformation": {}
211
+ };
212
+ }
213
+ static get methods() {
214
+ return {
215
+ "setData": {
216
+ "complexType": {
217
+ "signature": "(newData: VehicleInformation | string) => Promise<void>",
218
+ "parameters": [{
219
+ "name": "newData",
220
+ "type": "string | VehicleInformation",
221
+ "docs": ""
222
+ }],
223
+ "references": {
224
+ "Promise": {
225
+ "location": "global",
226
+ "id": "global::Promise"
227
+ },
228
+ "VehicleInformation": {
229
+ "location": "import",
230
+ "path": "~types/vehicle-information",
231
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
232
+ },
233
+ "ReturnType": {
234
+ "location": "global",
235
+ "id": "global::ReturnType"
236
+ }
237
+ },
238
+ "return": "Promise<void>"
239
+ },
240
+ "docs": {
241
+ "text": "",
242
+ "tags": []
243
+ }
244
+ },
245
+ "fetchData": {
246
+ "complexType": {
247
+ "signature": "(requestedVin?: string) => Promise<void>",
248
+ "parameters": [{
249
+ "name": "requestedVin",
250
+ "type": "string",
251
+ "docs": ""
252
+ }],
253
+ "references": {
254
+ "Promise": {
255
+ "location": "global",
256
+ "id": "global::Promise"
257
+ }
258
+ },
259
+ "return": "Promise<void>"
260
+ },
261
+ "docs": {
262
+ "text": "",
263
+ "tags": []
264
+ }
265
+ },
266
+ "setMockData": {
267
+ "complexType": {
268
+ "signature": "(newMockData: MockJson<VehicleInformation>) => Promise<void>",
269
+ "parameters": [{
270
+ "name": "newMockData",
271
+ "type": "{ [key: string]: VehicleInformation; }",
272
+ "docs": ""
273
+ }],
274
+ "references": {
275
+ "Promise": {
276
+ "location": "global",
277
+ "id": "global::Promise"
278
+ },
279
+ "MockJson": {
280
+ "location": "import",
281
+ "path": "~types/components",
282
+ "id": "src/global/types/components.ts::MockJson"
283
+ },
284
+ "VehicleInformation": {
285
+ "location": "import",
286
+ "path": "~types/vehicle-information",
287
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
288
+ }
289
+ },
290
+ "return": "Promise<void>"
291
+ },
292
+ "docs": {
293
+ "text": "",
294
+ "tags": []
295
+ }
296
+ }
297
+ };
298
+ }
299
+ static get elementRef() { return "el"; }
300
+ static get watchers() {
301
+ return [{
302
+ "propName": "state",
303
+ "methodName": "loadingListener"
304
+ }];
305
+ }
306
+ }