@ppg_pl/pallete 2.0.4 → 2.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 (55) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/my-backdrop_8.cjs.entry.js +58 -34
  3. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  4. package/dist/cjs/pallete.cjs.js +1 -1
  5. package/dist/collection/components/my-colorbox/my-colorbox.js +26 -1
  6. package/dist/collection/components/my-colorbox/my-colorbox.js.map +1 -1
  7. package/dist/collection/components/my-colorinfo/my-colorinfo.js +30 -2
  8. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  9. package/dist/collection/components/my-component/my-component.js +20 -1
  10. package/dist/collection/components/my-component/my-component.js.map +1 -1
  11. package/dist/collection/components/my-modal/my-modal.css +6 -7
  12. package/dist/collection/components/my-modal/my-modal.js +27 -3
  13. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  14. package/dist/collection/types.js.map +1 -1
  15. package/dist/components/index2.js +4 -5302
  16. package/dist/components/index2.js.map +1 -1
  17. package/dist/components/index3.js +5305 -0
  18. package/dist/components/index3.js.map +1 -0
  19. package/dist/components/my-colorbox2.js +8 -3
  20. package/dist/components/my-colorbox2.js.map +1 -1
  21. package/dist/components/my-colorinfo2.js +16 -4
  22. package/dist/components/my-colorinfo2.js.map +1 -1
  23. package/dist/components/my-component.js +5 -2
  24. package/dist/components/my-component.js.map +1 -1
  25. package/dist/components/my-modal2.js +14 -6
  26. package/dist/components/my-modal2.js.map +1 -1
  27. package/dist/components/my-slider.js +1 -1
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/my-backdrop_8.entry.js +58 -34
  30. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  31. package/dist/esm/pallete.js +1 -1
  32. package/dist/pallete/p-8931967a.entry.js +2 -0
  33. package/dist/pallete/p-8931967a.entry.js.map +1 -0
  34. package/dist/pallete/pallete.esm.js +1 -1
  35. package/dist/pallete/pallete.esm.js.map +1 -1
  36. package/dist/types/components/my-colorbox/my-colorbox.d.ts +2 -0
  37. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +3 -0
  38. package/dist/types/components/my-component/my-component.d.ts +1 -0
  39. package/dist/types/components/my-modal/my-modal.d.ts +1 -0
  40. package/dist/types/components.d.ts +10 -2
  41. package/dist/types/types.d.ts +6 -0
  42. package/package.json +1 -1
  43. package/www/build/p-8931967a.entry.js +2 -0
  44. package/www/build/p-8931967a.entry.js.map +1 -0
  45. package/www/build/pallete.esm.js +1 -1
  46. package/www/build/pallete.esm.js.map +1 -1
  47. package/www/index.html +4 -1
  48. package/dist/components/gtmUtils.js +0 -7
  49. package/dist/components/gtmUtils.js.map +0 -1
  50. package/dist/pallete/p-ee5f61e8.entry.js +0 -2
  51. package/dist/pallete/p-ee5f61e8.entry.js.map +0 -1
  52. package/www/build/p-7c1b28aa.css +0 -1
  53. package/www/build/p-e8e99831.js +0 -2
  54. package/www/build/p-ee5f61e8.entry.js +0 -2
  55. package/www/build/p-ee5f61e8.entry.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{p as o,b as e}from"./p-c6a049a2.js";export{s as setNonce}from"./p-c6a049a2.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-ee5f61e8",[[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]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],o)));
1
+ import{p as o,b as e}from"./p-c6a049a2.js";export{s as setNonce}from"./p-c6a049a2.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-8931967a",[[2,"my-component",{shop:[1],product:[1],baselink:[1],show:[32],readyToClose:[32],open:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]],[0,"my-modal",{shop:[1],product:[1],baselink:[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],baselink:[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"],isImageInsteadHex:[16]}],[2,"my-loader"],[2,"my-search",{productId:[2,"product-id"],isMobile:[4,"is-mobile"],searchIcon:[1,"search-icon"],searchText:[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],o)));
2
2
  //# sourceMappingURL=pallete.esm.js.map
@@ -1 +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,wEAAAC,OAAA,KAAA7B,KAAA,IAAAC,QAAA,IAAAqB,MAAA,SAAAxB"}
1
+ {"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","shop","product","baselink","show","readyToClose","open","closeImage","arrowDown","chunksNum","data","preloader","loading","colors","currentColor","currentIndex","infoBoxWidth","boxWidth","padding","isMobile","showRange","colorCategories","selectedCategory","page","color","name","isActive","isCategoryActive","isImageInsteadHex","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,SAAA,IAAAC,KAAA,KAAAC,aAAA,KAAAC,KAAA,oGAAAL,KAAA,IAAAC,QAAA,IAAAC,SAAA,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,KAAAb,KAAA,IAAAC,QAAA,IAAAC,SAAA,IAAAO,KAAA,KAAAS,SAAA,gBAAAH,aAAA,qBAAAT,WAAA,sCAAAiB,MAAA,IAAAC,KAAA,IAAAxB,KAAA,IAAAC,QAAA,IAAAwB,SAAA,gBAAAC,iBAAA,yBAAAC,kBAAA,uCAAAC,UAAA,iBAAAV,SAAA,gBAAAW,WAAA,kBAAAC,WAAA,wEAAAC,OAAA,KAAA/B,KAAA,IAAAC,QAAA,IAAAsB,MAAA,SAAAzB"}
@@ -1,3 +1,4 @@
1
+ import { ColorBoxyIsImageInsteadHex } from '../../types';
1
2
  export declare class MyColorBox {
2
3
  private checkTimeout;
3
4
  color: string;
@@ -6,6 +7,7 @@ export declare class MyColorBox {
6
7
  product: string;
7
8
  isActive?: boolean;
8
9
  isCategoryActive?: boolean;
10
+ isImageInsteadHex?: ColorBoxyIsImageInsteadHex;
9
11
  colorCheck: () => void;
10
12
  colorUnCheck: () => void;
11
13
  darkenColor: (color: string) => string;
@@ -4,6 +4,7 @@ export declare class MyColorInfo {
4
4
  currentColor: Color;
5
5
  shop: string;
6
6
  product: string;
7
+ baselink: string;
7
8
  data: Product | null;
8
9
  isMobile: boolean;
9
10
  infoBoxWidth: number | null;
@@ -12,5 +13,7 @@ export declare class MyColorInfo {
12
13
  goToProduct: () => void;
13
14
  onCloseButtonClick: () => void;
14
15
  renderSliderOrImage: () => any;
16
+ getHref: () => string | undefined;
17
+ capitalizeFirstLetter: (string: string) => string;
15
18
  render(): any;
16
19
  }
@@ -2,6 +2,7 @@ export declare class MyModalBundle {
2
2
  modalEl: HTMLElement;
3
3
  shop: string;
4
4
  product: string;
5
+ baselink: string;
5
6
  show: boolean;
6
7
  readyToClose: boolean;
7
8
  open(): Promise<void>;
@@ -16,6 +16,7 @@ export declare class MyModal {
16
16
  modalEl: HTMLElement;
17
17
  shop: string;
18
18
  product: string;
19
+ baselink: string;
19
20
  closeImage: string;
20
21
  arrowDown: string;
21
22
  chunksNum: number;
@@ -5,8 +5,8 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { Color, Image, Product } from "./types";
9
- export { Color, Image, Product } from "./types";
8
+ import { Color, ColorBoxyIsImageInsteadHex, Image, Product } from "./types";
9
+ export { Color, ColorBoxyIsImageInsteadHex, Image, Product } from "./types";
10
10
  export namespace Components {
11
11
  interface MyBackdrop {
12
12
  }
@@ -14,11 +14,13 @@ export namespace Components {
14
14
  "color": string;
15
15
  "isActive"?: boolean;
16
16
  "isCategoryActive"?: boolean;
17
+ "isImageInsteadHex"?: ColorBoxyIsImageInsteadHex;
17
18
  "name": string;
18
19
  "product": string;
19
20
  "shop": string;
20
21
  }
21
22
  interface MyColorinfo {
23
+ "baselink": string;
22
24
  "closeImage": string;
23
25
  "currentColor": Color;
24
26
  "data": Product | null;
@@ -28,6 +30,7 @@ export namespace Components {
28
30
  "shop": string;
29
31
  }
30
32
  interface MyComponent {
33
+ "baselink": string;
31
34
  "open": () => Promise<void>;
32
35
  "product": string;
33
36
  "shop": string;
@@ -36,6 +39,7 @@ export namespace Components {
36
39
  }
37
40
  interface MyModal {
38
41
  "arrowDown": string;
42
+ "baselink": string;
39
43
  "closeImage": string;
40
44
  "open": () => Promise<void>;
41
45
  "product": string;
@@ -132,11 +136,13 @@ declare namespace LocalJSX {
132
136
  "color"?: string;
133
137
  "isActive"?: boolean;
134
138
  "isCategoryActive"?: boolean;
139
+ "isImageInsteadHex"?: ColorBoxyIsImageInsteadHex;
135
140
  "name"?: string;
136
141
  "product"?: string;
137
142
  "shop"?: string;
138
143
  }
139
144
  interface MyColorinfo {
145
+ "baselink"?: string;
140
146
  "closeImage"?: string;
141
147
  "currentColor"?: Color;
142
148
  "data"?: Product | null;
@@ -147,6 +153,7 @@ declare namespace LocalJSX {
147
153
  "shop"?: string;
148
154
  }
149
155
  interface MyComponent {
156
+ "baselink"?: string;
150
157
  "product"?: string;
151
158
  "shop"?: string;
152
159
  }
@@ -154,6 +161,7 @@ declare namespace LocalJSX {
154
161
  }
155
162
  interface MyModal {
156
163
  "arrowDown"?: string;
164
+ "baselink"?: string;
157
165
  "closeImage"?: string;
158
166
  "onClearSearchText"?: (event: MyModalCustomEvent<any>) => void;
159
167
  "onClose"?: (event: MyModalCustomEvent<any>) => void;
@@ -16,6 +16,8 @@ export type ProductCategoryRelation = {
16
16
  Category_id: Category;
17
17
  Product_id: Product;
18
18
  id: number;
19
+ imageInsteadHex?: boolean;
20
+ bigImage?: string;
19
21
  };
20
22
  export type Color = {
21
23
  hex: string;
@@ -67,3 +69,7 @@ export type Pagination = {
67
69
  total_count: number;
68
70
  filter_count: number;
69
71
  };
72
+ export type ColorBoxyIsImageInsteadHex = {
73
+ isImageInsteadHex: boolean;
74
+ bigImage: string;
75
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ppg_pl/pallete",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "Color-Selector WebComponent",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",