@ppg_pl/tinting 0.0.0

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 (197) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +81 -0
  3. package/dist/cjs/index-0a139db0.js +1667 -0
  4. package/dist/cjs/index-0a139db0.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +4 -0
  6. package/dist/cjs/index.cjs.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +24 -0
  8. package/dist/cjs/loader.cjs.js.map +1 -0
  9. package/dist/cjs/modal-header_10.cjs.entry.js +12313 -0
  10. package/dist/cjs/modal-header_10.cjs.entry.js.map +1 -0
  11. package/dist/cjs/tinting.cjs.js +28 -0
  12. package/dist/cjs/tinting.cjs.js.map +1 -0
  13. package/dist/collection/collection-manifest.json +21 -0
  14. package/dist/collection/components/api/index.js +23 -0
  15. package/dist/collection/components/api/index.js.map +1 -0
  16. package/dist/collection/components/api/services.js +96 -0
  17. package/dist/collection/components/api/services.js.map +1 -0
  18. package/dist/collection/components/backdrop/index.css +14 -0
  19. package/dist/collection/components/backdrop/index.js +17 -0
  20. package/dist/collection/components/backdrop/index.js.map +1 -0
  21. package/dist/collection/components/colorbox/index.css +53 -0
  22. package/dist/collection/components/colorbox/index.js +182 -0
  23. package/dist/collection/components/colorbox/index.js.map +1 -0
  24. package/dist/collection/components/colorinfo/index.js +239 -0
  25. package/dist/collection/components/colorinfo/index.js.map +1 -0
  26. package/dist/collection/components/component/index.css +6 -0
  27. package/dist/collection/components/component/index.js +220 -0
  28. package/dist/collection/components/component/index.js.map +1 -0
  29. package/dist/collection/components/header/assets/close.png +0 -0
  30. package/dist/collection/components/header/index.css +180 -0
  31. package/dist/collection/components/header/index.js +334 -0
  32. package/dist/collection/components/header/index.js.map +1 -0
  33. package/dist/collection/components/loader/index.css +85 -0
  34. package/dist/collection/components/loader/index.js +19 -0
  35. package/dist/collection/components/loader/index.js.map +1 -0
  36. package/dist/collection/components/modal/__mocks__/index.js +759 -0
  37. package/dist/collection/components/modal/__mocks__/index.js.map +1 -0
  38. package/dist/collection/components/modal/assets/arrow_down.png +0 -0
  39. package/dist/collection/components/modal/index.css +386 -0
  40. package/dist/collection/components/modal/index.js +646 -0
  41. package/dist/collection/components/modal/index.js.map +1 -0
  42. package/dist/collection/components/search/assets/search.svg +15 -0
  43. package/dist/collection/components/search/index.css +38 -0
  44. package/dist/collection/components/search/index.js +178 -0
  45. package/dist/collection/components/search/index.js.map +1 -0
  46. package/dist/collection/components/select/assets/chevron-down.webp +0 -0
  47. package/dist/collection/components/select/assets/chevron.png +0 -0
  48. package/dist/collection/components/select/index.css +77 -0
  49. package/dist/collection/components/select/index.js +231 -0
  50. package/dist/collection/components/select/index.js.map +1 -0
  51. package/dist/collection/components/slider/index.css +89 -0
  52. package/dist/collection/components/slider/index.js +145 -0
  53. package/dist/collection/components/slider/index.js.map +1 -0
  54. package/dist/collection/gtmUtils.js +4 -0
  55. package/dist/collection/gtmUtils.js.map +1 -0
  56. package/dist/collection/index.js +2 -0
  57. package/dist/collection/index.js.map +1 -0
  58. package/dist/collection/types.js +2 -0
  59. package/dist/collection/types.js.map +1 -0
  60. package/dist/collection/utils/index.js +12 -0
  61. package/dist/collection/utils/index.js.map +1 -0
  62. package/dist/components/gtmUtils.js +7 -0
  63. package/dist/components/gtmUtils.js.map +1 -0
  64. package/dist/components/index.d.ts +27 -0
  65. package/dist/components/index.js +3 -0
  66. package/dist/components/index.js.map +1 -0
  67. package/dist/components/index10.js +31 -0
  68. package/dist/components/index10.js.map +1 -0
  69. package/dist/components/index11.js +3949 -0
  70. package/dist/components/index11.js.map +1 -0
  71. package/dist/components/index2.js +2726 -0
  72. package/dist/components/index2.js.map +1 -0
  73. package/dist/components/index3.js +87 -0
  74. package/dist/components/index3.js.map +1 -0
  75. package/dist/components/index4.js +121 -0
  76. package/dist/components/index4.js.map +1 -0
  77. package/dist/components/index5.js +26 -0
  78. package/dist/components/index5.js.map +1 -0
  79. package/dist/components/index6.js +31 -0
  80. package/dist/components/index6.js.map +1 -0
  81. package/dist/components/index7.js +75 -0
  82. package/dist/components/index7.js.map +1 -0
  83. package/dist/components/index8.js +87 -0
  84. package/dist/components/index8.js.map +1 -0
  85. package/dist/components/index9.js +5306 -0
  86. package/dist/components/index9.js.map +1 -0
  87. package/dist/components/modal-header.d.ts +11 -0
  88. package/dist/components/modal-header.js +8 -0
  89. package/dist/components/modal-header.js.map +1 -0
  90. package/dist/components/my-backdrop.d.ts +11 -0
  91. package/dist/components/my-backdrop.js +8 -0
  92. package/dist/components/my-backdrop.js.map +1 -0
  93. package/dist/components/my-colorbox.d.ts +11 -0
  94. package/dist/components/my-colorbox.js +8 -0
  95. package/dist/components/my-colorbox.js.map +1 -0
  96. package/dist/components/my-colorinfo.d.ts +11 -0
  97. package/dist/components/my-colorinfo.js +8 -0
  98. package/dist/components/my-colorinfo.js.map +1 -0
  99. package/dist/components/my-component.d.ts +11 -0
  100. package/dist/components/my-component.js +254 -0
  101. package/dist/components/my-component.js.map +1 -0
  102. package/dist/components/my-loader.d.ts +11 -0
  103. package/dist/components/my-loader.js +8 -0
  104. package/dist/components/my-loader.js.map +1 -0
  105. package/dist/components/my-modal.d.ts +11 -0
  106. package/dist/components/my-modal.js +8 -0
  107. package/dist/components/my-modal.js.map +1 -0
  108. package/dist/components/my-search.d.ts +11 -0
  109. package/dist/components/my-search.js +8 -0
  110. package/dist/components/my-search.js.map +1 -0
  111. package/dist/components/my-select.d.ts +11 -0
  112. package/dist/components/my-select.js +8 -0
  113. package/dist/components/my-select.js.map +1 -0
  114. package/dist/components/my-slider.d.ts +11 -0
  115. package/dist/components/my-slider.js +8 -0
  116. package/dist/components/my-slider.js.map +1 -0
  117. package/dist/esm/index-f3be6531.js +1638 -0
  118. package/dist/esm/index-f3be6531.js.map +1 -0
  119. package/dist/esm/index.js +3 -0
  120. package/dist/esm/index.js.map +1 -0
  121. package/dist/esm/loader.js +20 -0
  122. package/dist/esm/loader.js.map +1 -0
  123. package/dist/esm/modal-header_10.entry.js +12300 -0
  124. package/dist/esm/modal-header_10.entry.js.map +1 -0
  125. package/dist/esm/polyfills/core-js.js +11 -0
  126. package/dist/esm/polyfills/css-shim.js +1 -0
  127. package/dist/esm/polyfills/dom.js +79 -0
  128. package/dist/esm/polyfills/es5-html-element.js +1 -0
  129. package/dist/esm/polyfills/index.js +34 -0
  130. package/dist/esm/polyfills/system.js +6 -0
  131. package/dist/esm/tinting.js +23 -0
  132. package/dist/esm/tinting.js.map +1 -0
  133. package/dist/index.cjs.js +1 -0
  134. package/dist/index.js +1 -0
  135. package/dist/tinting/assets/arrow_down.png +0 -0
  136. package/dist/tinting/assets/chevron-down.webp +0 -0
  137. package/dist/tinting/assets/chevron.png +0 -0
  138. package/dist/tinting/assets/close.png +0 -0
  139. package/dist/tinting/assets/search.svg +15 -0
  140. package/dist/tinting/index.esm.js +2 -0
  141. package/dist/tinting/index.esm.js.map +1 -0
  142. package/dist/tinting/p-06cd865b.entry.js +15 -0
  143. package/dist/tinting/p-06cd865b.entry.js.map +1 -0
  144. package/dist/tinting/p-b135c76f.js +3 -0
  145. package/dist/tinting/p-b135c76f.js.map +1 -0
  146. package/dist/tinting/tinting.css +1 -0
  147. package/dist/tinting/tinting.esm.js +2 -0
  148. package/dist/tinting/tinting.esm.js.map +1 -0
  149. package/dist/types/components/api/index.d.ts +7 -0
  150. package/dist/types/components/api/services.d.ts +9 -0
  151. package/dist/types/components/backdrop/index.d.ts +3 -0
  152. package/dist/types/components/colorbox/index.d.ts +15 -0
  153. package/dist/types/components/colorinfo/index.d.ts +19 -0
  154. package/dist/types/components/component/index.d.ts +18 -0
  155. package/dist/types/components/header/index.d.ts +35 -0
  156. package/dist/types/components/loader/index.d.ts +3 -0
  157. package/dist/types/components/modal/__mocks__/index.d.ts +415 -0
  158. package/dist/types/components/modal/index.d.ts +77 -0
  159. package/dist/types/components/search/index.d.ts +15 -0
  160. package/dist/types/components/select/index.d.ts +31 -0
  161. package/dist/types/components/slider/index.d.ts +15 -0
  162. package/dist/types/components.d.ts +289 -0
  163. package/dist/types/gtmUtils.d.ts +1 -0
  164. package/dist/types/index.d.ts +1 -0
  165. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  166. package/dist/types/types.d.ts +68 -0
  167. package/dist/types/utils/index.d.ts +1 -0
  168. package/loader/cdn.js +3 -0
  169. package/loader/index.cjs.js +3 -0
  170. package/loader/index.d.ts +21 -0
  171. package/loader/index.es2017.js +3 -0
  172. package/loader/index.js +4 -0
  173. package/loader/package.json +11 -0
  174. package/package.json +69 -0
  175. package/www/build/assets/arrow_down.png +0 -0
  176. package/www/build/assets/chevron-down.webp +0 -0
  177. package/www/build/assets/chevron.png +0 -0
  178. package/www/build/assets/close.png +0 -0
  179. package/www/build/assets/fonts/Galatea-Regular.eot +0 -0
  180. package/www/build/assets/fonts/Galatea-Regular.ttf +0 -0
  181. package/www/build/assets/fonts/Galatea-Regular.woff +0 -0
  182. package/www/build/assets/fonts/Galatea-Regular.woff2 +0 -0
  183. package/www/build/assets/search.svg +15 -0
  184. package/www/build/index.esm.js +2 -0
  185. package/www/build/index.esm.js.map +1 -0
  186. package/www/build/p-06cd865b.entry.js +15 -0
  187. package/www/build/p-06cd865b.entry.js.map +1 -0
  188. package/www/build/p-a4907f5e.css +4 -0
  189. package/www/build/p-b135c76f.js +3 -0
  190. package/www/build/p-b135c76f.js.map +1 -0
  191. package/www/build/p-e2322b6c.js +163 -0
  192. package/www/build/tinting.css +1 -0
  193. package/www/build/tinting.esm.js +2 -0
  194. package/www/build/tinting.esm.js.map +1 -0
  195. package/www/build/tinting.js +33 -0
  196. package/www/host.config.json +15 -0
  197. package/www/index.html +31 -0
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Color, Product } from '../../types';
3
+ export declare class MyColorInfo {
4
+ currentColor: Color;
5
+ shop: string;
6
+ product: string;
7
+ baselink: string;
8
+ data: Product | null;
9
+ isMobile: boolean;
10
+ infoBoxWidth: number | null;
11
+ closeImage: string;
12
+ onCurrentColor: EventEmitter<Color>;
13
+ closeInfoBox: EventEmitter;
14
+ goToProduct: () => void;
15
+ onCloseButtonClick: () => void;
16
+ renderSliderOrImage: () => any;
17
+ capitalizeFirstLetter: (string: string) => string;
18
+ render(): any;
19
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Color } from '../../types';
3
+ export declare class MyModalBundle {
4
+ modalEl: HTMLElement;
5
+ onSelectedColor: EventEmitter<Color>;
6
+ shop: string;
7
+ product: string;
8
+ baselink: string;
9
+ colorname: string | null;
10
+ show: boolean;
11
+ readyToClose: boolean;
12
+ open(): Promise<void>;
13
+ close(): Promise<void>;
14
+ setReadyToCloseHandler(value: CustomEvent): void;
15
+ closeModalHandler(): void;
16
+ handleSelectedColor(event: CustomEvent<Color>): void;
17
+ render(): any;
18
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class ModalHeader {
3
+ modalName: string | null;
4
+ modalLogo: string | null;
5
+ modalDescription: string;
6
+ selectedColorFamily: string | null;
7
+ shop: string;
8
+ productName: string;
9
+ isMobile: boolean;
10
+ sampleSelected: EventEmitter<number>;
11
+ colorFamilySelected: EventEmitter<string>;
12
+ closeImage: string;
13
+ productSamples: any[];
14
+ closeModal: EventEmitter;
15
+ onLogoClick: EventEmitter<void>;
16
+ onResetCategory: EventEmitter<void>;
17
+ colorFamilies: any[];
18
+ handleClose: () => void;
19
+ handleLogoClick: () => void;
20
+ handleReset: () => void;
21
+ private handleSampleSelect;
22
+ private sortColorFamiliesByHex;
23
+ private fetchColorFamilies;
24
+ /**
25
+ * Adjusts the brightness of a hexadecimal color
26
+ * @param hex The hexadecimal color code
27
+ * @param percent The percentage to adjust brightness by
28
+ * @returns RGB color string
29
+ */
30
+ private adjustBrightness;
31
+ private getGradientFromHex;
32
+ private selectColorFamily;
33
+ componentWillLoad(): void;
34
+ render(): any;
35
+ }
@@ -0,0 +1,3 @@
1
+ export declare class MyLoader {
2
+ render(): any;
3
+ }
@@ -0,0 +1,415 @@
1
+ export declare const fetchProductResponse: {
2
+ data: ({
3
+ id: number;
4
+ attributes: {
5
+ name: string;
6
+ modalName: string;
7
+ modalDescription: string;
8
+ slug: string;
9
+ useColorImage: boolean;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ publishedAt: string;
13
+ modalLogo: {
14
+ data: {
15
+ id: number;
16
+ attributes: {
17
+ name: string;
18
+ alternativeText: string;
19
+ caption: string;
20
+ width: number;
21
+ height: number;
22
+ formats: {
23
+ small: {
24
+ ext: string;
25
+ url: string;
26
+ hash: string;
27
+ mime: string;
28
+ name: string;
29
+ path: null;
30
+ size: number;
31
+ width: number;
32
+ height: number;
33
+ provider_metadata: {
34
+ public_id: string;
35
+ resource_type: string;
36
+ };
37
+ };
38
+ thumbnail: {
39
+ ext: string;
40
+ url: string;
41
+ hash: string;
42
+ mime: string;
43
+ name: string;
44
+ path: null;
45
+ size: number;
46
+ width: number;
47
+ height: number;
48
+ provider_metadata: {
49
+ public_id: string;
50
+ resource_type: string;
51
+ };
52
+ };
53
+ };
54
+ hash: string;
55
+ ext: string;
56
+ mime: string;
57
+ size: number;
58
+ url: string;
59
+ previewUrl: null;
60
+ provider: string;
61
+ provider_metadata: {
62
+ public_id: string;
63
+ resource_type: string;
64
+ };
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ };
68
+ };
69
+ };
70
+ images: {
71
+ data: null;
72
+ };
73
+ shops: {
74
+ data: {
75
+ id: number;
76
+ attributes: {
77
+ name: string;
78
+ createdAt: string;
79
+ updatedAt: string;
80
+ publishedAt: string;
81
+ };
82
+ }[];
83
+ };
84
+ categories: {
85
+ data: never[];
86
+ };
87
+ };
88
+ } | {
89
+ id: number;
90
+ attributes: {
91
+ name: string;
92
+ modalName: string;
93
+ modalDescription: string;
94
+ slug: string;
95
+ useColorImage: boolean;
96
+ createdAt: string;
97
+ updatedAt: string;
98
+ publishedAt: string;
99
+ modalLogo: {
100
+ data: {
101
+ id: number;
102
+ attributes: {
103
+ name: string;
104
+ alternativeText: string;
105
+ caption: string;
106
+ width: number;
107
+ height: number;
108
+ formats: {
109
+ small: {
110
+ ext: string;
111
+ url: string;
112
+ hash: string;
113
+ mime: string;
114
+ name: string;
115
+ path: null;
116
+ size: number;
117
+ width: number;
118
+ height: number;
119
+ provider_metadata: {
120
+ public_id: string;
121
+ resource_type: string;
122
+ };
123
+ };
124
+ thumbnail: {
125
+ ext: string;
126
+ url: string;
127
+ hash: string;
128
+ mime: string;
129
+ name: string;
130
+ path: null;
131
+ size: number;
132
+ width: number;
133
+ height: number;
134
+ provider_metadata: {
135
+ public_id: string;
136
+ resource_type: string;
137
+ };
138
+ };
139
+ };
140
+ hash: string;
141
+ ext: string;
142
+ mime: string;
143
+ size: number;
144
+ url: string;
145
+ previewUrl: null;
146
+ provider: string;
147
+ provider_metadata: {
148
+ public_id: string;
149
+ resource_type: string;
150
+ };
151
+ createdAt: string;
152
+ updatedAt: string;
153
+ };
154
+ };
155
+ };
156
+ images: {
157
+ data: {
158
+ id: number;
159
+ attributes: {
160
+ name: string;
161
+ alternativeText: string;
162
+ caption: string;
163
+ width: number;
164
+ height: number;
165
+ formats: {
166
+ small: {
167
+ ext: string;
168
+ url: string;
169
+ hash: string;
170
+ mime: string;
171
+ name: string;
172
+ path: null;
173
+ size: number;
174
+ width: number;
175
+ height: number;
176
+ provider_metadata: {
177
+ public_id: string;
178
+ resource_type: string;
179
+ };
180
+ };
181
+ medium: {
182
+ ext: string;
183
+ url: string;
184
+ hash: string;
185
+ mime: string;
186
+ name: string;
187
+ path: null;
188
+ size: number;
189
+ width: number;
190
+ height: number;
191
+ provider_metadata: {
192
+ public_id: string;
193
+ resource_type: string;
194
+ };
195
+ };
196
+ thumbnail: {
197
+ ext: string;
198
+ url: string;
199
+ hash: string;
200
+ mime: string;
201
+ name: string;
202
+ path: null;
203
+ size: number;
204
+ width: number;
205
+ height: number;
206
+ provider_metadata: {
207
+ public_id: string;
208
+ resource_type: string;
209
+ };
210
+ };
211
+ };
212
+ hash: string;
213
+ ext: string;
214
+ mime: string;
215
+ size: number;
216
+ url: string;
217
+ previewUrl: null;
218
+ provider: string;
219
+ provider_metadata: {
220
+ public_id: string;
221
+ resource_type: string;
222
+ };
223
+ createdAt: string;
224
+ updatedAt: string;
225
+ };
226
+ }[];
227
+ };
228
+ shops: {
229
+ data: {
230
+ id: number;
231
+ attributes: {
232
+ name: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
+ publishedAt: string;
236
+ };
237
+ }[];
238
+ };
239
+ categories: {
240
+ data: {
241
+ id: number;
242
+ attributes: {
243
+ name: string;
244
+ hex: string;
245
+ createdAt: string;
246
+ updatedAt: string;
247
+ };
248
+ }[];
249
+ };
250
+ };
251
+ } | {
252
+ id: number;
253
+ attributes: {
254
+ name: string;
255
+ modalName: string;
256
+ modalDescription: string;
257
+ slug: string;
258
+ useColorImage: boolean;
259
+ createdAt: string;
260
+ updatedAt: string;
261
+ publishedAt: string;
262
+ modalLogo: {
263
+ data: {
264
+ id: number;
265
+ attributes: {
266
+ name: string;
267
+ alternativeText: string;
268
+ caption: string;
269
+ width: number;
270
+ height: number;
271
+ formats: {
272
+ small: {
273
+ ext: string;
274
+ url: string;
275
+ hash: string;
276
+ mime: string;
277
+ name: string;
278
+ path: null;
279
+ size: number;
280
+ width: number;
281
+ height: number;
282
+ provider_metadata: {
283
+ public_id: string;
284
+ resource_type: string;
285
+ };
286
+ };
287
+ thumbnail: {
288
+ ext: string;
289
+ url: string;
290
+ hash: string;
291
+ mime: string;
292
+ name: string;
293
+ path: null;
294
+ size: number;
295
+ width: number;
296
+ height: number;
297
+ provider_metadata: {
298
+ public_id: string;
299
+ resource_type: string;
300
+ };
301
+ };
302
+ };
303
+ hash: string;
304
+ ext: string;
305
+ mime: string;
306
+ size: number;
307
+ url: string;
308
+ previewUrl: null;
309
+ provider: string;
310
+ provider_metadata: {
311
+ public_id: string;
312
+ resource_type: string;
313
+ };
314
+ createdAt: string;
315
+ updatedAt: string;
316
+ };
317
+ };
318
+ };
319
+ images: {
320
+ data: {
321
+ id: number;
322
+ attributes: {
323
+ name: string;
324
+ alternativeText: null;
325
+ caption: null;
326
+ width: number;
327
+ height: number;
328
+ formats: {
329
+ small: {
330
+ ext: string;
331
+ url: string;
332
+ hash: string;
333
+ mime: string;
334
+ name: string;
335
+ path: null;
336
+ size: number;
337
+ width: number;
338
+ height: number;
339
+ provider_metadata: {
340
+ public_id: string;
341
+ resource_type: string;
342
+ };
343
+ };
344
+ medium: {
345
+ ext: string;
346
+ url: string;
347
+ hash: string;
348
+ mime: string;
349
+ name: string;
350
+ path: null;
351
+ size: number;
352
+ width: number;
353
+ height: number;
354
+ provider_metadata: {
355
+ public_id: string;
356
+ resource_type: string;
357
+ };
358
+ };
359
+ thumbnail: {
360
+ ext: string;
361
+ url: string;
362
+ hash: string;
363
+ mime: string;
364
+ name: string;
365
+ path: null;
366
+ size: number;
367
+ width: number;
368
+ height: number;
369
+ provider_metadata: {
370
+ public_id: string;
371
+ resource_type: string;
372
+ };
373
+ };
374
+ };
375
+ hash: string;
376
+ ext: string;
377
+ mime: string;
378
+ size: number;
379
+ url: string;
380
+ previewUrl: null;
381
+ provider: string;
382
+ provider_metadata: {
383
+ public_id: string;
384
+ resource_type: string;
385
+ };
386
+ createdAt: string;
387
+ updatedAt: string;
388
+ };
389
+ }[];
390
+ };
391
+ shops: {
392
+ data: {
393
+ id: number;
394
+ attributes: {
395
+ name: string;
396
+ createdAt: string;
397
+ updatedAt: string;
398
+ publishedAt: string;
399
+ };
400
+ }[];
401
+ };
402
+ categories: {
403
+ data: never[];
404
+ };
405
+ };
406
+ })[];
407
+ meta: {
408
+ pagination: {
409
+ page: number;
410
+ pageSize: number;
411
+ pageCount: number;
412
+ total: number;
413
+ };
414
+ };
415
+ };
@@ -0,0 +1,77 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Color, Product } from '../../types';
3
+ declare global {
4
+ interface Window {
5
+ dataLayer: Record<string, any>[];
6
+ }
7
+ }
8
+ export declare class Modal {
9
+ private boxDesktopWidth;
10
+ private boxMobileWidth;
11
+ private desktopPadding;
12
+ private mobilePadding;
13
+ private mediumBreakpoint;
14
+ private colorTimerInterval;
15
+ onSelectedColorEmit: EventEmitter<Color>;
16
+ clearSearchText: EventEmitter;
17
+ modalEl: HTMLElement;
18
+ shop: string;
19
+ product: string;
20
+ baselink: string;
21
+ selectedcolor: string | null;
22
+ arrowDown: string;
23
+ chunksNum: number;
24
+ data: Product | null;
25
+ preloader: boolean;
26
+ loading: boolean;
27
+ currentColor: Color | null;
28
+ currentIndex: number | null;
29
+ infoBoxWidth: number | null;
30
+ boxWidth: number;
31
+ padding: number;
32
+ isMobile: boolean;
33
+ showRange: boolean;
34
+ colorCategories: string[] | null;
35
+ selectedCategory: any;
36
+ page: number;
37
+ colorIsSelected: boolean;
38
+ colorsList: Color[];
39
+ hasMore: boolean;
40
+ filters: any;
41
+ debouncedSearchColorsHandler: (event: CustomEvent) => void;
42
+ constructor();
43
+ setInfoBoxWidth(newValue: number): void;
44
+ watchPropHandler(newValue: Product): void;
45
+ private clearInterval;
46
+ private colorTimer;
47
+ open(): Promise<void>;
48
+ close: EventEmitter;
49
+ closeModalHandler(): void;
50
+ readyToCLose: EventEmitter;
51
+ handleReadyToClose(value: boolean): void;
52
+ closeInfoBoxHandler(): void;
53
+ handleEmitColor(event: CustomEvent<Color>): void;
54
+ private chunks;
55
+ private calculateBoxCount;
56
+ private displayForMobile;
57
+ handleResize(): void;
58
+ private sortColorsBySimilarity;
59
+ private getColorHueGroup;
60
+ private sortColorsByHueAndSimilarity;
61
+ private fetchColorsData;
62
+ private loadProductData;
63
+ private loadMoreColors;
64
+ private updateFilterAndFetch;
65
+ searchColor(event: CustomEvent): Promise<void>;
66
+ handleColorFamilySelected(event: CustomEvent): void;
67
+ searchColorsHandler(event: CustomEvent): void;
68
+ private handleSampleSelect;
69
+ handleScroll(_event: Event, modalContent: HTMLElement): void;
70
+ private openSeletedColor;
71
+ componentWillLoad(): void;
72
+ componentWillRender(): void;
73
+ private resetColors;
74
+ private resetAllFilters;
75
+ private resetSelectedCategory;
76
+ render(): any;
77
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class MySearch {
3
+ productname: string;
4
+ shopname: string;
5
+ isMobile: boolean;
6
+ searchIcon: string;
7
+ searchText: string | null;
8
+ searchColors: EventEmitter;
9
+ fetchColorsByName: (text: string) => void;
10
+ private debouncedInputChangeValue;
11
+ private onInputChangeValue;
12
+ fetchColorsByNameHandle(newValue: string): void;
13
+ clearSearchTextHandler(): void;
14
+ render(): any;
15
+ }
@@ -0,0 +1,31 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class MySelect {
3
+ el: HTMLElement;
4
+ options: any[];
5
+ placeholder: string;
6
+ isMobile: boolean;
7
+ searchIcon: string;
8
+ searchText: string;
9
+ filteredOptions: any[];
10
+ showDropdown: boolean;
11
+ selectedValue: string | null;
12
+ onReset: EventEmitter<void>;
13
+ selectValue: EventEmitter<{
14
+ key: string;
15
+ value: number | null;
16
+ }>;
17
+ inputValueChange: EventEmitter<string>;
18
+ private defaultOption;
19
+ private debouncedSearch;
20
+ private reset;
21
+ componentWillLoad(): void;
22
+ componentDidLoad(): void;
23
+ disconnectedCallback(): void;
24
+ private handleClickOutside;
25
+ private handleInput;
26
+ private selectOption;
27
+ private toggleDropdown;
28
+ updateOptions(newOptions: any[]): void;
29
+ clearSearchTextHandler(): void;
30
+ render(): any;
31
+ }
@@ -0,0 +1,15 @@
1
+ import { Image } from '../../types';
2
+ export declare class JcSwiper {
3
+ modalEl: HTMLElement;
4
+ slides: Image[];
5
+ shop: string;
6
+ product: string;
7
+ color: string;
8
+ private thumbs;
9
+ private swiper2;
10
+ initSwiper(): void;
11
+ componentDidLoad(): void;
12
+ update(): void;
13
+ colorInteraction: () => void;
14
+ render(): any;
15
+ }