@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,129 +1,2 @@
1
- import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-1ac7471e.js';
2
- import { g as globalScripts } from './app-globals-0f993ce5.js';
3
-
4
- /*
5
- Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
6
- */
7
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
8
- const patchBrowser = () => {
9
- // NOTE!! This fn cannot use async/await!
10
- if (BUILD.isDev && !BUILD.isTesting) {
11
- consoleDevInfo('Running in development mode.');
12
- }
13
- if (BUILD.cssVarShim) {
14
- // shim css vars
15
- plt.$cssShim$ = win.__cssshim;
16
- }
17
- if (BUILD.cloneNodeFix) {
18
- // opted-in to polyfill cloneNode() for slot polyfilled components
19
- patchCloneNodeFix(H.prototype);
20
- }
21
- if (BUILD.profile && !performance.mark) {
22
- // not all browsers support performance.mark/measure (Safari 10)
23
- // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
24
- // simply stub the implementations out.
25
- // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
26
- // @ts-ignore
27
- performance.mark = performance.measure = () => {
28
- /*noop*/
29
- };
30
- performance.getEntriesByName = () => [];
31
- }
32
- // @ts-ignore
33
- const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
34
- ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
35
- s.getAttribute('data-stencil-namespace') === NAMESPACE)
36
- : null;
37
- const importMeta = import.meta.url;
38
- const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
39
- if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
40
- // Safari < v11 support: This IF is true if it's Safari below v11.
41
- // This fn cannot use async/await since Safari didn't support it until v11,
42
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
43
- // so both the ESM file and nomodule file would get downloaded. Only Safari
44
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
45
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
46
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
47
- return {
48
- then() {
49
- /* promise noop */
50
- },
51
- };
52
- }
53
- if (!BUILD.safari10 && importMeta !== '') {
54
- opts.resourcesUrl = new URL('.', importMeta).href;
55
- }
56
- else if (BUILD.dynamicImportShim || BUILD.safari10) {
57
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
58
- if (BUILD.dynamicImportShim) {
59
- patchDynamicImport(opts.resourcesUrl, scriptElm);
60
- }
61
- if (BUILD.dynamicImportShim && !win.customElements) {
62
- // module support, but no custom elements support (Old Edge)
63
- // @ts-ignore
64
- return import(/* webpackChunkName: "polyfills-dom" */ './dom-4eeb3fee.js').then(() => opts);
65
- }
66
- }
67
- return promiseResolve(opts);
68
- };
69
- const patchDynamicImport = (base, orgScriptElm) => {
70
- const importFunctionName = getDynamicImportFunction(NAMESPACE);
71
- try {
72
- // test if this browser supports dynamic imports
73
- // There is a caching issue in V8, that breaks using import() in Function
74
- // By generating a random string, we can workaround it
75
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
76
- win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
77
- }
78
- catch (e) {
79
- // this shim is specifically for browsers that do support "esm" imports
80
- // however, they do NOT support "dynamic" imports
81
- // basically this code is for old Edge, v18 and below
82
- const moduleMap = new Map();
83
- win[importFunctionName] = (src) => {
84
- const url = new URL(src, base).href;
85
- let mod = moduleMap.get(url);
86
- if (!mod) {
87
- const script = doc.createElement('script');
88
- script.type = 'module';
89
- script.crossOrigin = orgScriptElm.crossOrigin;
90
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
91
- type: 'application/javascript',
92
- }));
93
- mod = new Promise((resolve) => {
94
- script.onload = () => {
95
- resolve(win[importFunctionName].m);
96
- script.remove();
97
- };
98
- });
99
- moduleMap.set(url, mod);
100
- doc.head.appendChild(script);
101
- }
102
- return mod;
103
- };
104
- }
105
- };
106
- const patchCloneNodeFix = (HTMLElementPrototype) => {
107
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
108
- HTMLElementPrototype.cloneNode = function (deep) {
109
- if (this.nodeName === 'TEMPLATE') {
110
- return nativeCloneNodeFn.call(this, deep);
111
- }
112
- const clonedNode = nativeCloneNodeFn.call(this, false);
113
- const srcChildNodes = this.childNodes;
114
- if (deep) {
115
- for (let i = 0; i < srcChildNodes.length; i++) {
116
- // Node.ATTRIBUTE_NODE === 2, and checking because IE11
117
- if (srcChildNodes[i].nodeType !== 2) {
118
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
119
- }
120
- }
121
- }
122
- return clonedNode;
123
- };
124
- };
125
-
126
- patchBrowser().then(options => {
127
- globalScripts();
128
- return bootstrapLazy([["my-colorinfo",[[0,"my-colorinfo",{"currentColor":[16],"shop":[1],"product":[1],"data":[16],"isMobile":[4,"is-mobile"],"infoBoxWidth":[2,"info-box-width"],"closeImage":[1,"close-image"]}]]],["my-colorbox",[[0,"my-colorbox",{"color":[1],"name":[1],"shop":[1],"product":[1],"isActive":[4,"is-active"],"isCategoryActive":[4,"is-category-active"]}]]],["my-loader",[[2,"my-loader"]]],["my-search",[[2,"my-search",{"productId":[2,"product-id"],"isMobile":[4,"is-mobile"],"searchIcon":[1,"search-icon"],"searchText":[32]}]]],["my-modal",[[0,"my-modal",{"shop":[1],"product":[1],"closeImage":[1,"close-image"],"arrowDown":[1,"arrow-down"],"chunksNum":[32],"data":[32],"preloader":[32],"loading":[32],"colors":[32],"currentColor":[32],"currentIndex":[32],"infoBoxWidth":[32],"boxWidth":[32],"padding":[32],"isMobile":[32],"showRange":[32],"colorCategories":[32],"selectedCategory":[32],"page":[32],"open":[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]]]],["my-backdrop",[[0,"my-backdrop"]]],["my-slider",[[0,"my-slider",{"slides":[16],"shop":[1],"product":[1],"color":[1]}]]],["my-component",[[2,"my-component",{"shop":[1],"product":[1],"show":[32],"open":[64]},[[0,"close","closeModalHandler"]]]]]], options);
129
- });
1
+ import{p as o,b as e}from"./p-c77aaa54.js";export{s as setNonce}from"./p-c77aaa54.js";const r=()=>{const e=import.meta.url;const r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return o(r)};r().then((o=>e([["p-9a7eff4f",[[2,"my-component",{shop:[1],product:[1],show:[32],readyToClose:[32],open:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]],[0,"my-modal",{shop:[1],product:[1],closeImage:[1,"close-image"],arrowDown:[1,"arrow-down"],chunksNum:[32],data:[32],preloader:[32],loading:[32],colors:[32],currentColor:[32],currentIndex:[32],infoBoxWidth:[32],boxWidth:[32],padding:[32],isMobile:[32],showRange:[32],colorCategories:[32],selectedCategory:[32],page:[32],open:[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"my-colorinfo",{currentColor:[16],shop:[1],product:[1],data:[16],isMobile:[4,"is-mobile"],infoBoxWidth:[2,"info-box-width"],closeImage:[1,"close-image"]}],[0,"my-colorbox",{color:[1],name:[1],shop:[1],product:[1],isActive:[4,"is-active"],isCategoryActive:[4,"is-category-active"]}],[2,"my-loader"],[2,"my-search",{productId:[2,"product-id"],isMobile:[4,"is-mobile"],searchIcon:[1,"search-icon"],searchText:[32]}],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],o)));
2
+ //# sourceMappingURL=pallete.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","shop","product","show","readyToClose","open","closeImage","arrowDown","chunksNum","data","preloader","loading","colors","currentColor","currentIndex","infoBoxWidth","boxWidth","padding","isMobile","showRange","colorCategories","selectedCategory","page","color","name","isActive","isCategoryActive","productId","searchIcon","searchText","slides"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAmBA,MAAMA,EAAe,KAkCjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BL,IAAeU,MAAKC,GAEXC,EAAc,kCAA8B,CAAAC,KAAS,IAAAC,QAAA,IAAAC,KAAA,KAAAC,aAAA,KAAAC,KAAA,oGAAAJ,KAAA,IAAAC,QAAA,IAAAI,WAAA,kBAAAC,UAAA,iBAAAC,UAAA,KAAAC,KAAA,KAAAC,UAAA,KAAAC,QAAA,KAAAC,OAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,SAAA,KAAAC,QAAA,KAAAC,SAAA,KAAAC,UAAA,KAAAC,gBAAA,KAAAC,iBAAA,KAAAC,KAAA,KAAAjB,KAAA,4JAAAQ,aAAA,KAAAZ,KAAA,IAAAC,QAAA,IAAAO,KAAA,KAAAS,SAAA,gBAAAH,aAAA,qBAAAT,WAAA,sCAAAiB,MAAA,IAAAC,KAAA,IAAAvB,KAAA,IAAAC,QAAA,IAAAuB,SAAA,gBAAAC,iBAAA,2DAAAC,UAAA,iBAAAT,SAAA,gBAAAU,WAAA,kBAAAC,WAAA,uBAAAC,OAAA,KAAA7B,KAAA,IAAAC,QAAA,IAAAqB,MAAA,SAAAxB"}
@@ -1,4 +1,4 @@
1
1
  import { Color } from '../../types';
2
- export declare const fetchProductColorsQuery: (id: string, page?: number | undefined) => string;
2
+ export declare const fetchProductColorsQuery: (id: string, page?: number) => string;
3
3
  export declare const fetchCategoryColorsQuery: (color: Color) => string;
4
4
  export declare const fetchColorByNumber: (productId: number, colorNumber: string) => string;
@@ -3,7 +3,9 @@ export declare class MyModalBundle {
3
3
  shop: string;
4
4
  product: string;
5
5
  show: boolean;
6
+ readyToClose: boolean;
6
7
  open(): Promise<void>;
8
+ setReadyToCloseHandler(value: CustomEvent): void;
7
9
  closeModalHandler(): void;
8
10
  render(): any;
9
11
  }
@@ -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
+ };
@@ -36,9 +36,11 @@ export declare class MyModal {
36
36
  watchPropHandler(newValue: Product): void;
37
37
  private clearInterval;
38
38
  private colorTimer;
39
- close: EventEmitter;
40
39
  open(): Promise<void>;
40
+ close: EventEmitter;
41
41
  closeModalHandler(): void;
42
+ readyToCLose: EventEmitter;
43
+ handleReadyToClose(value: boolean): void;
42
44
  closeInfoBoxHandler(): void;
43
45
  private chunks;
44
46
  private calculateBoxCount;
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Color, Data, Image, Product } from "./types";
9
+ export { Color, Data, Image, Product } from "./types";
9
10
  export namespace Components {
10
11
  interface MyBackdrop {
11
12
  }
@@ -155,6 +156,7 @@ declare namespace LocalJSX {
155
156
  "arrowDown"?: string;
156
157
  "closeImage"?: string;
157
158
  "onClose"?: (event: MyModalCustomEvent<any>) => void;
159
+ "onReadyToCLose"?: (event: MyModalCustomEvent<any>) => void;
158
160
  "product"?: string;
159
161
  "shop"?: string;
160
162
  }