@ppg_pl/pallete 0.0.4 → 0.0.6

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 (154) hide show
  1. package/dist/cjs/index-160fcb6c.js +1661 -0
  2. package/dist/cjs/index-160fcb6c.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +4 -0
  4. package/dist/cjs/index.cjs.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +24 -0
  6. package/dist/cjs/loader.cjs.js.map +1 -0
  7. package/dist/cjs/my-backdrop_8.cjs.entry.js +7985 -0
  8. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -0
  9. package/dist/cjs/pallete.cjs.js +28 -0
  10. package/dist/cjs/pallete.cjs.js.map +1 -0
  11. package/dist/collection/collection-manifest.json +19 -0
  12. package/dist/collection/components/api/index.js +20 -0
  13. package/dist/collection/components/api/index.js.map +1 -0
  14. package/dist/collection/components/api/services.js +82 -0
  15. package/dist/collection/components/api/services.js.map +1 -0
  16. package/dist/collection/components/my-backdrop/my-backdrop.css +13 -0
  17. package/dist/collection/components/my-backdrop/my-backdrop.js +17 -0
  18. package/dist/collection/components/my-backdrop/my-backdrop.js.map +1 -0
  19. package/dist/collection/components/my-colorbox/my-colorbox.css +52 -0
  20. package/dist/collection/components/my-colorbox/my-colorbox.js +157 -0
  21. package/dist/collection/components/my-colorbox/my-colorbox.js.map +1 -0
  22. package/dist/collection/components/my-colorinfo/my-colorinfo.js +187 -0
  23. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -0
  24. package/dist/collection/components/my-component/my-component.css +6 -0
  25. package/dist/collection/components/my-component/my-component.js +133 -0
  26. package/dist/collection/components/my-component/my-component.js.map +1 -0
  27. package/dist/collection/components/my-loader/my-loader.css +85 -0
  28. package/dist/collection/components/my-loader/my-loader.js +19 -0
  29. package/dist/collection/components/my-loader/my-loader.js.map +1 -0
  30. package/dist/collection/components/my-modal/__mocks__/index.js +759 -0
  31. package/dist/collection/components/my-modal/__mocks__/index.js.map +1 -0
  32. package/dist/collection/components/my-modal/assets/arrow_down.png +0 -0
  33. package/dist/collection/components/my-modal/assets/close.png +0 -0
  34. package/dist/collection/components/my-modal/my-modal.css +367 -0
  35. package/dist/collection/components/my-modal/my-modal.js +448 -0
  36. package/dist/collection/components/my-modal/my-modal.js.map +1 -0
  37. package/dist/collection/components/my-search/assets/search.svg +15 -0
  38. package/dist/collection/components/my-search/my-search.css +35 -0
  39. package/dist/collection/components/my-search/my-search.js +125 -0
  40. package/dist/collection/components/my-search/my-search.js.map +1 -0
  41. package/dist/collection/components/my-slider/index.js +148 -0
  42. package/dist/collection/components/my-slider/index.js.map +1 -0
  43. package/dist/collection/components/my-slider/my-slider.css +88 -0
  44. package/dist/collection/gtmUtils.js +4 -0
  45. package/dist/collection/gtmUtils.js.map +1 -0
  46. package/dist/collection/index.js +2 -0
  47. package/dist/collection/index.js.map +1 -0
  48. package/dist/collection/types.js +2 -0
  49. package/dist/collection/types.js.map +1 -0
  50. package/{www/build/gtmUtils-dcdac4ce.js → dist/components/gtmUtils.js} +2 -0
  51. package/dist/components/gtmUtils.js.map +1 -0
  52. package/dist/components/index.d.ts +9 -11
  53. package/dist/components/index.js +3 -0
  54. package/dist/components/index.js.map +1 -0
  55. package/dist/components/index2.js +5305 -0
  56. package/dist/components/index2.js.map +1 -0
  57. package/dist/components/my-backdrop.js +8 -0
  58. package/dist/components/my-backdrop.js.map +1 -0
  59. package/dist/components/my-backdrop2.js +31 -0
  60. package/dist/components/my-backdrop2.js.map +1 -0
  61. package/dist/components/my-colorbox.js +8 -0
  62. package/dist/components/my-colorbox.js.map +1 -0
  63. package/dist/{pallete/my-colorbox.entry.js → components/my-colorbox2.js} +37 -8
  64. package/dist/components/my-colorbox2.js.map +1 -0
  65. package/dist/components/my-colorinfo.js +8 -0
  66. package/dist/components/my-colorinfo.js.map +1 -0
  67. package/dist/{pallete/my-colorinfo.entry.js → components/my-colorinfo2.js} +44 -10
  68. package/dist/components/my-colorinfo2.js.map +1 -0
  69. package/dist/{pallete/my-component.entry.js → components/my-component.js} +87 -11
  70. package/dist/components/my-component.js.map +1 -0
  71. package/dist/components/my-loader.js +8 -0
  72. package/dist/components/my-loader.js.map +1 -0
  73. package/{www/build/my-loader.entry.js → dist/components/my-loader2.js} +23 -7
  74. package/dist/components/my-loader2.js.map +1 -0
  75. package/dist/components/my-modal.js +8 -0
  76. package/dist/components/my-modal.js.map +1 -0
  77. package/dist/{pallete/my-modal.entry.js → components/my-modal2.js} +120 -120
  78. package/dist/components/my-modal2.js.map +1 -0
  79. package/dist/components/my-search.js +8 -0
  80. package/dist/components/my-search.js.map +1 -0
  81. package/{www/build/my-search.entry.js → dist/components/my-search2.js} +32 -9
  82. package/dist/components/my-search2.js.map +1 -0
  83. package/dist/components/my-slider.js +8 -0
  84. package/dist/components/my-slider.js.map +1 -0
  85. package/dist/esm/index-943c259f.js +1632 -0
  86. package/dist/esm/index-943c259f.js.map +1 -0
  87. package/dist/esm/index.js +3 -0
  88. package/dist/esm/index.js.map +1 -0
  89. package/dist/esm/loader.js +20 -0
  90. package/dist/esm/loader.js.map +1 -0
  91. package/dist/esm/my-backdrop_8.entry.js +7974 -0
  92. package/dist/esm/my-backdrop_8.entry.js.map +1 -0
  93. package/dist/esm/pallete.js +23 -0
  94. package/dist/esm/pallete.js.map +1 -0
  95. package/dist/esm/polyfills/core-js.js +11 -0
  96. package/dist/esm/polyfills/css-shim.js +1 -0
  97. package/dist/esm/polyfills/dom.js +79 -0
  98. package/dist/esm/polyfills/es5-html-element.js +1 -0
  99. package/dist/esm/polyfills/index.js +34 -0
  100. package/dist/esm/polyfills/system.js +6 -0
  101. package/dist/index.cjs.js +1 -0
  102. package/dist/index.js +1 -0
  103. package/dist/pallete/index.esm.js +1 -0
  104. package/dist/pallete/index.esm.js.map +1 -0
  105. package/dist/pallete/p-9a7eff4f.entry.js +2 -0
  106. package/dist/pallete/p-9a7eff4f.entry.js.map +1 -0
  107. package/dist/pallete/p-c77aaa54.js +3 -0
  108. package/dist/pallete/p-c77aaa54.js.map +1 -0
  109. package/dist/pallete/pallete.css +1 -3
  110. package/dist/pallete/pallete.esm.js +2 -129
  111. package/dist/pallete/pallete.esm.js.map +1 -0
  112. package/dist/types/components/api/services.d.ts +1 -1
  113. package/dist/types/components/my-component/my-component.d.ts +2 -0
  114. package/dist/types/components/my-modal/__mocks__/index.d.ts +415 -0
  115. package/dist/types/components/my-modal/my-modal.d.ts +3 -1
  116. package/dist/types/components.d.ts +2 -0
  117. package/dist/types/stencil-public-runtime.d.ts +91 -19
  118. package/dist/types/types.d.ts +8 -8
  119. package/loader/index.d.ts +9 -0
  120. package/loader/package.json +1 -0
  121. package/package.json +21 -5
  122. package/www/build/index.esm.js +1 -0
  123. package/www/build/index.esm.js.map +1 -0
  124. package/www/build/p-825a7d1d.js +163 -0
  125. package/www/build/p-9a7eff4f.entry.js +2 -0
  126. package/www/build/p-9a7eff4f.entry.js.map +1 -0
  127. package/www/build/p-c77aaa54.js +3 -0
  128. package/www/build/p-c77aaa54.js.map +1 -0
  129. package/www/build/p-fd390eef.css +3 -0
  130. package/www/build/pallete.css +1 -3
  131. package/www/build/pallete.esm.js +2 -129
  132. package/www/build/pallete.esm.js.map +1 -0
  133. package/www/index.html +2 -40
  134. package/dist/pallete/app-globals-0f993ce5.js +0 -3
  135. package/dist/pallete/css-shim-60f618b9.js +0 -4
  136. package/dist/pallete/dom-4eeb3fee.js +0 -73
  137. package/dist/pallete/gtmUtils-dcdac4ce.js +0 -5
  138. package/dist/pallete/index-1ac7471e.js +0 -3059
  139. package/dist/pallete/my-backdrop.entry.js +0 -15
  140. package/dist/pallete/my-loader.entry.js +0 -15
  141. package/dist/pallete/my-search.entry.js +0 -36
  142. package/dist/pallete/my-slider.entry.js +0 -11333
  143. package/dist/pallete/shadow-css-02866686.js +0 -387
  144. package/www/build/app-globals-0f993ce5.js +0 -3
  145. package/www/build/css-shim-60f618b9.js +0 -4
  146. package/www/build/dom-4eeb3fee.js +0 -73
  147. package/www/build/index-1ac7471e.js +0 -3059
  148. package/www/build/my-backdrop.entry.js +0 -15
  149. package/www/build/my-colorbox.entry.js +0 -40
  150. package/www/build/my-colorinfo.entry.js +0 -36
  151. package/www/build/my-component.entry.js +0 -154
  152. package/www/build/my-modal.entry.js +0 -2459
  153. package/www/build/my-slider.entry.js +0 -11333
  154. package/www/build/shadow-css-02866686.js +0 -387
@@ -1,5 +1,10 @@
1
- import { r as registerInstance, e as createEvent, h, f as getAssetPath, g as getElement } from './index-1ac7471e.js';
2
- import { s as setDataLayer } from './gtmUtils-dcdac4ce.js';
1
+ import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, h, getAssetPath } from '@stencil/core/internal/client';
2
+ import { s as setDataLayer } from './gtmUtils.js';
3
+ import { d as defineCustomElement$5 } from './my-colorbox2.js';
4
+ import { d as defineCustomElement$4 } from './my-colorinfo2.js';
5
+ import { d as defineCustomElement$3 } from './my-loader2.js';
6
+ import { d as defineCustomElement$2 } from './my-search2.js';
7
+ import { d as defineCustomElement$1 } from './index2.js';
3
8
 
4
9
  const APIURL = 'https://pallete-colors-backend.herokuapp.com';
5
10
  class API {
@@ -21,8 +26,6 @@ class API {
21
26
  }
22
27
  const ApiService = new API();
23
28
 
24
- 'use strict';
25
-
26
29
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
27
30
  var shams = function hasSymbols() {
28
31
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -64,8 +67,6 @@ var shams = function hasSymbols() {
64
67
  return true;
65
68
  };
66
69
 
67
- 'use strict';
68
-
69
70
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
70
71
 
71
72
 
@@ -78,8 +79,6 @@ var hasSymbols$1 = function hasNativeSymbols() {
78
79
  return shams();
79
80
  };
80
81
 
81
- 'use strict';
82
-
83
82
  /* eslint no-invalid-this: 1 */
84
83
 
85
84
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
@@ -131,20 +130,10 @@ var implementation = function bind(that) {
131
130
  return bound;
132
131
  };
133
132
 
134
- 'use strict';
135
-
136
-
137
-
138
133
  var functionBind = Function.prototype.bind || implementation;
139
134
 
140
- 'use strict';
141
-
142
-
143
-
144
135
  var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
145
136
 
146
- 'use strict';
147
-
148
137
  var undefined$1;
149
138
 
150
139
  var $SyntaxError = SyntaxError;
@@ -159,13 +148,6 @@ var getEvalledConstructor = function (expressionSyntax) {
159
148
  };
160
149
 
161
150
  var $gOPD = Object.getOwnPropertyDescriptor;
162
- if ($gOPD) {
163
- try {
164
- $gOPD({}, '');
165
- } catch (e) {
166
- $gOPD = null; // this is IE 8, which has a broken gOPD
167
- }
168
- }
169
151
 
170
152
  var throwTypeError = function () {
171
153
  throw new $TypeError$1();
@@ -173,8 +155,6 @@ var throwTypeError = function () {
173
155
  var ThrowTypeError = $gOPD
174
156
  ? (function () {
175
157
  try {
176
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
177
- arguments.callee; // IE 8 does not throw here
178
158
  return throwTypeError;
179
159
  } catch (calleeThrows) {
180
160
  try {
@@ -207,6 +187,8 @@ var INTRINSICS = {
207
187
  '%AsyncIteratorPrototype%': needsEval,
208
188
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
209
189
  '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
190
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
191
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
210
192
  '%Boolean%': Boolean,
211
193
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
212
194
  '%Date%': Date,
@@ -403,7 +385,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
403
385
  throw new $TypeError$1('"allowMissing" argument must be a boolean');
404
386
  }
405
387
 
406
- if ($exec(/^%?[^%]*%?$/g, name) === null) {
388
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
407
389
  throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
408
390
  }
409
391
  var parts = stringToPath(name);
@@ -478,30 +460,16 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
478
460
  return value;
479
461
  };
480
462
 
481
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
482
-
483
- function getDefaultExportFromCjs (x) {
484
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
485
- }
486
-
487
463
  function createCommonjsModule(fn, basedir, module) {
488
464
  return module = {
489
465
  path: basedir,
490
466
  exports: {},
491
467
  require: function (path, base) {
492
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
468
+ return commonjsRequire();
493
469
  }
494
470
  }, fn(module, module.exports), module.exports;
495
471
  }
496
472
 
497
- function getDefaultExportFromNamespaceIfPresent (n) {
498
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
499
- }
500
-
501
- function getDefaultExportFromNamespaceIfNotNamed (n) {
502
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
503
- }
504
-
505
473
  function getAugmentedNamespace(n) {
506
474
  if (n.__esModule) return n;
507
475
  var a = Object.defineProperty({}, '__esModule', {value: true});
@@ -522,7 +490,6 @@ function commonjsRequire () {
522
490
  }
523
491
 
524
492
  var callBind = createCommonjsModule(function (module) {
525
- 'use strict';
526
493
 
527
494
 
528
495
 
@@ -571,12 +538,6 @@ if ($defineProperty) {
571
538
  }
572
539
  });
573
540
 
574
- 'use strict';
575
-
576
-
577
-
578
-
579
-
580
541
  var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
581
542
 
582
543
  var callBound = function callBoundIntrinsic(name, allowMissing) {
@@ -800,16 +761,20 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
800
761
  }
801
762
  if (isMap(obj)) {
802
763
  var mapParts = [];
803
- mapForEach.call(obj, function (value, key) {
804
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
805
- });
764
+ if (mapForEach) {
765
+ mapForEach.call(obj, function (value, key) {
766
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
767
+ });
768
+ }
806
769
  return collectionOf('Map', mapSize.call(obj), mapParts, indent);
807
770
  }
808
771
  if (isSet(obj)) {
809
772
  var setParts = [];
810
- setForEach.call(obj, function (value) {
811
- setParts.push(inspect(value, obj));
812
- });
773
+ if (setForEach) {
774
+ setForEach.call(obj, function (value) {
775
+ setParts.push(inspect(value, obj));
776
+ });
777
+ }
813
778
  return collectionOf('Set', setSize.call(obj), setParts, indent);
814
779
  }
815
780
  if (isWeakMap(obj)) {
@@ -1109,12 +1074,6 @@ function arrObjKeys(obj, inspect) {
1109
1074
  return xs;
1110
1075
  }
1111
1076
 
1112
- 'use strict';
1113
-
1114
-
1115
-
1116
-
1117
-
1118
1077
  var $TypeError = getIntrinsic('%TypeError%');
1119
1078
  var $WeakMap = getIntrinsic('%WeakMap%', true);
1120
1079
  var $Map = getIntrinsic('%Map%', true);
@@ -1234,8 +1193,6 @@ var sideChannel = function getSideChannel() {
1234
1193
  return channel;
1235
1194
  };
1236
1195
 
1237
- 'use strict';
1238
-
1239
1196
  var replace = String.prototype.replace;
1240
1197
  var percentTwenties = /%20/g;
1241
1198
 
@@ -1258,10 +1215,6 @@ var formats = {
1258
1215
  RFC3986: Format.RFC3986
1259
1216
  };
1260
1217
 
1261
- 'use strict';
1262
-
1263
-
1264
-
1265
1218
  var has$2 = Object.prototype.hasOwnProperty;
1266
1219
  var isArray$2 = Array.isArray;
1267
1220
 
@@ -1511,11 +1464,6 @@ var utils = {
1511
1464
  merge: merge
1512
1465
  };
1513
1466
 
1514
- 'use strict';
1515
-
1516
-
1517
-
1518
-
1519
1467
  var has$1 = Object.prototype.hasOwnProperty;
1520
1468
 
1521
1469
  var arrayPrefixGenerators = {
@@ -1532,7 +1480,6 @@ var arrayPrefixGenerators = {
1532
1480
  };
1533
1481
 
1534
1482
  var isArray$1 = Array.isArray;
1535
- var split = String.prototype.split;
1536
1483
  var push = Array.prototype.push;
1537
1484
  var pushToArray = function (arr, valueOrArray) {
1538
1485
  push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -1634,14 +1581,6 @@ var stringify = function stringify(
1634
1581
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
1635
1582
  if (encoder) {
1636
1583
  var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
1637
- if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
1638
- var valuesArray = split.call(String(obj), ',');
1639
- var valuesJoined = '';
1640
- for (var i = 0; i < valuesArray.length; ++i) {
1641
- valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
1642
- }
1643
- return [formatter(keyValue) + (commaRoundTrip && isArray$1(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
1644
- }
1645
1584
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
1646
1585
  }
1647
1586
  return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -1656,6 +1595,9 @@ var stringify = function stringify(
1656
1595
  var objKeys;
1657
1596
  if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
1658
1597
  // we need to join elements in
1598
+ if (encodeValuesOnly && encoder) {
1599
+ obj = utils.maybeMap(obj, encoder);
1600
+ }
1659
1601
  objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
1660
1602
  } else if (isArray$1(filter)) {
1661
1603
  objKeys = filter;
@@ -1688,7 +1630,7 @@ var stringify = function stringify(
1688
1630
  commaRoundTrip,
1689
1631
  strictNullHandling,
1690
1632
  skipNulls,
1691
- encoder,
1633
+ generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
1692
1634
  filter,
1693
1635
  sort,
1694
1636
  allowDots,
@@ -1838,10 +1780,6 @@ var stringify_1 = function (object, opts) {
1838
1780
  return joined.length > 0 ? prefix + joined : '';
1839
1781
  };
1840
1782
 
1841
- 'use strict';
1842
-
1843
-
1844
-
1845
1783
  var has = Object.prototype.hasOwnProperty;
1846
1784
  var isArray = Array.isArray;
1847
1785
 
@@ -2102,12 +2040,6 @@ var parse = function (str, opts) {
2102
2040
  return utils.compact(obj);
2103
2041
  };
2104
2042
 
2105
- 'use strict';
2106
-
2107
-
2108
-
2109
-
2110
-
2111
2043
  var lib = {
2112
2044
  formats: formats,
2113
2045
  parse: parse,
@@ -2195,34 +2127,19 @@ const fetchColorByNumber = (productId, colorNumber) => lib.stringify({
2195
2127
  encodeValuesOnly: true, // prettify url
2196
2128
  });
2197
2129
 
2198
- const myModalCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto}@media (max-width: 1024px){.my-modal{padding:80px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal>img{width:300px;object-fit:cover}@media (max-width: 768px){.my-modal>img{width:200px}}.my-modal__close{position:absolute;right:20px;top:20px;background:transparent;border:none}.my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__close{top:65px}}.my-modal__see-more{font-size:22px;margin-bottom:27px;display:flex;justify-content:center;align-items:center}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:350px}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;text-transform:capitalize;margin-bottom:7px;color:#232323}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info .divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:row;justify-content:flex-start}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}.my-modal__wrapper .boxes__box-content__info__value-product a{background-color:#fff;font-size:16px;box-shadow:0 10px 20px 0 rgba(0, 0, 0, 0.1);border-radius:22.5px;padding:15px 30px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product a{max-width:150px;font-size:13px;padding:12px 25px}}.my-modal__wrapper .boxes__box-content__info__value-product a:hover{color:#fff;background-color:#232323}.my-modal__wrapper .boxes__box-content__info__value-product a.inverse{background-color:#232323;color:#fff}.my-modal__wrapper .boxes__box-content__info__value-product a.inverse:hover{color:#232323;background-color:#fff}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}.my-modal__wrapper .boxes__box-content__slider{width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block}}.my-modal__wrapper .boxes__box-content__white *{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}";
2130
+ const myModalCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto}@media (max-width: 1024px){.my-modal{padding:80px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal>img{width:300px;object-fit:cover}@media (max-width: 768px){.my-modal>img{width:200px}}.my-modal__close{position:absolute;right:20px;top:20px;background:transparent;border:none}.my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__close{top:65px}}.my-modal__see-more{font-size:22px;margin-bottom:27px;display:flex;justify-content:center;align-items:center}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper .boxes__list{justify-content:center}}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content{margin:0 auto}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info{min-height:auto}}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;text-transform:capitalize;margin-bottom:7px;color:#232323}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info .divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info .divider{margin:10px 0px}}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:row;justify-content:flex-start}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value{flex-direction:column}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-image{margin:0 auto;margin-bottom:10px}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product>div{flex-direction:column}}.my-modal__wrapper .boxes__box-content__slider{width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block}}.my-modal__wrapper .boxes__box-content__white *{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}.my-modal .button,.my-modal a{background-color:#fff;font-size:16px;box-shadow:0 10px 20px 0 rgba(0, 0, 0, 0.1);border-radius:22.5px;padding:15px 30px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer}.my-modal .button:hover,.my-modal a:hover{color:#fff;background-color:#232323}.my-modal .button.inverse,.my-modal a.inverse{background-color:#232323;color:#fff}.my-modal .button.inverse:hover,.my-modal a.inverse:hover{color:#232323;background-color:#fff}@media (max-width: 1024px){.my-modal .button,.my-modal a{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.my-modal .button,.my-modal a{margin:0 auto}}.my-modal>.button{margin:10px auto}";
2199
2131
 
2200
- const MyModal = class {
2201
- constructor(hostRef) {
2202
- registerInstance(this, hostRef);
2132
+ const MyModal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
2133
+ constructor() {
2134
+ super();
2135
+ this.__registerHost();
2203
2136
  this.close = createEvent(this, "close", 7);
2137
+ this.readyToCLose = createEvent(this, "readyToCLose", 7);
2204
2138
  this.boxDesktopWidth = 130;
2205
2139
  this.boxMobileWidth = 85;
2206
2140
  this.desktopPadding = 75;
2207
2141
  this.mobilePadding = 35;
2208
2142
  this.mediumBreakpoint = 1024;
2209
- this.closeImage = 'close.png';
2210
- this.arrowDown = 'arrow_down.png';
2211
- this.chunksNum = 12;
2212
- this.data = null;
2213
- this.preloader = false;
2214
- this.loading = false;
2215
- this.colors = null;
2216
- this.currentColor = null;
2217
- this.currentIndex = null;
2218
- this.infoBoxWidth = null;
2219
- this.boxWidth = this.boxDesktopWidth; // box width with gap
2220
- this.padding = this.desktopPadding;
2221
- this.isMobile = false;
2222
- this.showRange = false;
2223
- this.colorCategories = null;
2224
- this.selectedCategory = null;
2225
- this.page = 1;
2226
2143
  this.clearInterval = () => {
2227
2144
  this.colorTimerInterval && clearInterval(this.colorTimerInterval);
2228
2145
  this.colorTimerInterval = undefined;
@@ -2358,6 +2275,25 @@ const MyModal = class {
2358
2275
  }
2359
2276
  this.currentColor = null;
2360
2277
  };
2278
+ this.shop = undefined;
2279
+ this.product = undefined;
2280
+ this.closeImage = 'close.png';
2281
+ this.arrowDown = 'arrow_down.png';
2282
+ this.chunksNum = 12;
2283
+ this.data = null;
2284
+ this.preloader = false;
2285
+ this.loading = false;
2286
+ this.colors = null;
2287
+ this.currentColor = null;
2288
+ this.currentIndex = null;
2289
+ this.infoBoxWidth = null;
2290
+ this.boxWidth = this.boxDesktopWidth;
2291
+ this.padding = this.desktopPadding;
2292
+ this.isMobile = false;
2293
+ this.showRange = false;
2294
+ this.colorCategories = null;
2295
+ this.selectedCategory = null;
2296
+ this.page = 1;
2361
2297
  }
2362
2298
  setInfoBoxWidth(newValue) {
2363
2299
  this.infoBoxWidth = newValue * this.boxWidth;
@@ -2377,6 +2313,9 @@ const MyModal = class {
2377
2313
  closeModalHandler() {
2378
2314
  this.close.emit();
2379
2315
  }
2316
+ handleReadyToClose(value) {
2317
+ this.readyToCLose.emit({ observable: value });
2318
+ }
2380
2319
  closeInfoBoxHandler() {
2381
2320
  this.currentColor = null;
2382
2321
  this.currentIndex = null;
@@ -2420,7 +2359,7 @@ const MyModal = class {
2420
2359
  }
2421
2360
  render() {
2422
2361
  var _a, _b, _c, _d, _e, _f, _g;
2423
- return (h("div", { class: `my-modal` }, this.preloader && (h("div", { class: 'loader' }, h("my-loader", null))), !this.preloader && (h("button", { class: "my-modal__close", onClick: () => this.closeModalHandler() }, h("img", { src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }))), !this.preloader && this.data && this.data.modalLogo && h("img", { src: `${(_d = (_c = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.modalLogo) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.attributes) === null || _d === void 0 ? void 0 : _d.url}`, alt: "modal-logo" }), !this.preloader && (h("p", { class: "my-modal__see-more" }, (_e = this.data) === null || _e === void 0 ? void 0 : _e.modalDescription)), this.showRange && (h("div", { class: 'categories' }, this.data && h("my-search", { productId: Number((_f = this.data) === null || _f === void 0 ? void 0 : _f.id), isMobile: this.isMobile }), h("div", { class: 'categories__container', style: { maxWidth: `${this.infoBoxWidth}px` } }, (_g = this.data) === null || _g === void 0 ? void 0 : _g.categories.data.map((c) => {
2362
+ return (h("div", { class: `my-modal`, onMouseEnter: () => this.handleReadyToClose(false), onMouseLeave: () => this.handleReadyToClose(true) }, this.preloader && (h("div", { class: 'loader' }, h("my-loader", null))), !this.preloader && (h("button", { class: "my-modal__close", onClick: () => this.closeModalHandler() }, h("img", { src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }))), !this.preloader && this.data && this.data.modalLogo && h("img", { src: `${(_d = (_c = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.modalLogo) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.attributes) === null || _d === void 0 ? void 0 : _d.url}`, alt: "modal-logo" }), !this.preloader && (h("p", { class: "my-modal__see-more" }, (_e = this.data) === null || _e === void 0 ? void 0 : _e.modalDescription)), this.showRange && (h("div", { class: 'categories' }, this.data && h("my-search", { productId: Number((_f = this.data) === null || _f === void 0 ? void 0 : _f.id), isMobile: this.isMobile }), h("div", { class: 'categories__container', style: { maxWidth: `${this.infoBoxWidth}px` } }, (_g = this.data) === null || _g === void 0 ? void 0 : _g.categories.data.map((c) => {
2424
2363
  var _a;
2425
2364
  return (h("my-colorbox", { key: c.id, onClick: () => this.handleCategoryClick(c), color: c.attributes.hex, name: c.attributes.name, shop: this.shop, product: this.product, isCategoryActive: ((_a = this.selectedCategory) === null || _a === void 0 ? void 0 : _a.id) === c.id }));
2426
2365
  })), this.isMobile && (h("div", { class: 'categories__slide-information', style: { width: `${this.infoBoxWidth}px` } }, h("span", null, "Przewi\u0144 w lewo"), h("span", null, "Przewi\u0144 w prawo"))))), h("div", { class: 'my-modal__wrapper' }, this.loading && h("my-loader", null), !this.loading && this.colors && (h("div", { class: 'container_boxes' }, this.colors.list.length > 0 ? (this.chunks(this.colors.list).map((color, index) => {
@@ -2445,15 +2384,76 @@ const MyModal = class {
2445
2384
  })) : (h("p", null, "Brak wynik\u00F3w")), this.colors.pagination.pageCount > 1 && (h("div", { class: 'pagination' }, Array.from({ length: this.colors.pagination.pageCount }).map((page, i) => (h("span", { class: i + 1 === this.page ? 'current' : '', onClick: e => {
2446
2385
  e.preventDefault();
2447
2386
  this.onPage(i + 1);
2448
- }, key: `#${i + 1 + page}` }, i + 1))))))))));
2387
+ }, key: `#${i + 1 + page}` }, i + 1)))))))), ' ', !this.preloader && this.isMobile && (h("button", { class: "button", onClick: () => this.closeModalHandler() }, "Zamknij"))));
2449
2388
  }
2450
2389
  static get assetsDirs() { return ["assets"]; }
2451
- get modalEl() { return getElement(this); }
2390
+ get modalEl() { return this; }
2452
2391
  static get watchers() { return {
2453
2392
  "chunksNum": ["setInfoBoxWidth"],
2454
2393
  "data": ["watchPropHandler"]
2455
2394
  }; }
2456
- };
2457
- MyModal.style = myModalCss;
2395
+ static get style() { return myModalCss; }
2396
+ }, [0, "my-modal", {
2397
+ "shop": [1],
2398
+ "product": [1],
2399
+ "closeImage": [1, "close-image"],
2400
+ "arrowDown": [1, "arrow-down"],
2401
+ "chunksNum": [32],
2402
+ "data": [32],
2403
+ "preloader": [32],
2404
+ "loading": [32],
2405
+ "colors": [32],
2406
+ "currentColor": [32],
2407
+ "currentIndex": [32],
2408
+ "infoBoxWidth": [32],
2409
+ "boxWidth": [32],
2410
+ "padding": [32],
2411
+ "isMobile": [32],
2412
+ "showRange": [32],
2413
+ "colorCategories": [32],
2414
+ "selectedCategory": [32],
2415
+ "page": [32],
2416
+ "open": [64]
2417
+ }, [[0, "closeInfoBox", "closeInfoBoxHandler"], [9, "resize", "handleResize"], [0, "searchColors", "searchColorsHandler"]]]);
2418
+ function defineCustomElement() {
2419
+ if (typeof customElements === "undefined") {
2420
+ return;
2421
+ }
2422
+ const components = ["my-modal", "my-colorbox", "my-colorinfo", "my-loader", "my-search", "my-slider"];
2423
+ components.forEach(tagName => { switch (tagName) {
2424
+ case "my-modal":
2425
+ if (!customElements.get(tagName)) {
2426
+ customElements.define(tagName, MyModal);
2427
+ }
2428
+ break;
2429
+ case "my-colorbox":
2430
+ if (!customElements.get(tagName)) {
2431
+ defineCustomElement$5();
2432
+ }
2433
+ break;
2434
+ case "my-colorinfo":
2435
+ if (!customElements.get(tagName)) {
2436
+ defineCustomElement$4();
2437
+ }
2438
+ break;
2439
+ case "my-loader":
2440
+ if (!customElements.get(tagName)) {
2441
+ defineCustomElement$3();
2442
+ }
2443
+ break;
2444
+ case "my-search":
2445
+ if (!customElements.get(tagName)) {
2446
+ defineCustomElement$2();
2447
+ }
2448
+ break;
2449
+ case "my-slider":
2450
+ if (!customElements.get(tagName)) {
2451
+ defineCustomElement$1();
2452
+ }
2453
+ break;
2454
+ } });
2455
+ }
2456
+
2457
+ export { MyModal as M, defineCustomElement as d };
2458
2458
 
2459
- export { MyModal as my_modal };
2459
+ //# sourceMappingURL=my-modal2.js.map