@ppg_pl/pallete 0.0.5 → 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.
- package/dist/cjs/index-160fcb6c.js +1661 -0
- package/dist/cjs/index-160fcb6c.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -21
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/my-backdrop_8.cjs.entry.js +7985 -0
- package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -0
- package/dist/cjs/pallete.cjs.js +5 -145
- package/dist/cjs/pallete.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/my-modal/__mocks__/index.js +759 -0
- package/dist/collection/components/my-modal/__mocks__/index.js.map +1 -0
- package/dist/collection/components/my-modal/my-modal.css +74 -32
- package/dist/collection/components/my-modal/my-modal.js +1 -1
- package/dist/collection/components/my-modal/my-modal.js.map +1 -1
- package/dist/components/index.js +0 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +359 -6270
- package/dist/components/index2.js.map +1 -1
- package/dist/components/my-component.js +0 -2
- package/dist/components/my-component.js.map +1 -1
- package/dist/components/my-modal2.js +3 -84
- package/dist/components/my-modal2.js.map +1 -1
- package/dist/esm/index-943c259f.js +1632 -0
- package/dist/esm/index-943c259f.js.map +1 -0
- package/dist/esm/loader.js +4 -22
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/my-backdrop_8.entry.js +7974 -0
- package/dist/esm/my-backdrop_8.entry.js.map +1 -0
- package/dist/esm/pallete.js +6 -146
- package/dist/esm/pallete.js.map +1 -1
- package/dist/pallete/index.esm.js +0 -1
- package/dist/pallete/index.esm.js.map +1 -1
- package/dist/pallete/p-9a7eff4f.entry.js +2 -0
- package/dist/pallete/p-9a7eff4f.entry.js.map +1 -0
- package/dist/pallete/p-c77aaa54.js +3 -0
- package/dist/pallete/p-c77aaa54.js.map +1 -0
- package/dist/pallete/pallete.css +1 -3
- package/dist/pallete/pallete.esm.js +1 -162
- package/dist/pallete/pallete.esm.js.map +1 -1
- package/dist/types/components/my-modal/__mocks__/index.d.ts +415 -0
- package/package.json +3 -3
- package/www/build/index.esm.js +0 -1
- package/www/build/index.esm.js.map +1 -1
- package/www/build/p-825a7d1d.js +163 -0
- package/www/build/p-9a7eff4f.entry.js +2 -0
- package/www/build/p-9a7eff4f.entry.js.map +1 -0
- package/www/build/p-c77aaa54.js +3 -0
- package/www/build/p-c77aaa54.js.map +1 -0
- package/www/build/p-fd390eef.css +3 -0
- package/www/build/pallete.css +1 -3
- package/www/build/pallete.esm.js +1 -162
- package/www/build/pallete.esm.js.map +1 -1
- package/www/index.html +2 -11
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/css-shim-5d56550a.js +0 -8
- package/dist/cjs/css-shim-5d56550a.js.map +0 -1
- package/dist/cjs/dom-52c0133a.js +0 -77
- package/dist/cjs/dom-52c0133a.js.map +0 -1
- package/dist/cjs/gtmUtils-11a00b2b.js +0 -9
- package/dist/cjs/gtmUtils-11a00b2b.js.map +0 -1
- package/dist/cjs/index-a230bf6e.js +0 -3434
- package/dist/cjs/index-a230bf6e.js.map +0 -1
- package/dist/cjs/my-backdrop.cjs.entry.js +0 -21
- package/dist/cjs/my-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/my-colorbox.cjs.entry.js +0 -52
- package/dist/cjs/my-colorbox.cjs.entry.js.map +0 -1
- package/dist/cjs/my-colorinfo.cjs.entry.js +0 -46
- package/dist/cjs/my-colorinfo.cjs.entry.js.map +0 -1
- package/dist/cjs/my-component.cjs.entry.js +0 -171
- package/dist/cjs/my-component.cjs.entry.js.map +0 -1
- package/dist/cjs/my-loader.cjs.entry.js +0 -21
- package/dist/cjs/my-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/my-modal.cjs.entry.js +0 -2479
- package/dist/cjs/my-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/my-search.cjs.entry.js +0 -44
- package/dist/cjs/my-search.cjs.entry.js.map +0 -1
- package/dist/cjs/my-slider.cjs.entry.js +0 -11201
- package/dist/cjs/my-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/shadow-css-388a8a25.js +0 -391
- package/dist/cjs/shadow-css-388a8a25.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/css-shim-5eb36939.js +0 -6
- package/dist/esm/css-shim-5eb36939.js.map +0 -1
- package/dist/esm/dom-c0f8af80.js +0 -75
- package/dist/esm/dom-c0f8af80.js.map +0 -1
- package/dist/esm/gtmUtils-dcdac4ce.js +0 -7
- package/dist/esm/gtmUtils-dcdac4ce.js.map +0 -1
- package/dist/esm/index-c3dfdbab.js +0 -3397
- package/dist/esm/index-c3dfdbab.js.map +0 -1
- package/dist/esm/my-backdrop.entry.js +0 -17
- package/dist/esm/my-backdrop.entry.js.map +0 -1
- package/dist/esm/my-colorbox.entry.js +0 -48
- package/dist/esm/my-colorbox.entry.js.map +0 -1
- package/dist/esm/my-colorinfo.entry.js +0 -42
- package/dist/esm/my-colorinfo.entry.js.map +0 -1
- package/dist/esm/my-component.entry.js +0 -167
- package/dist/esm/my-component.entry.js.map +0 -1
- package/dist/esm/my-loader.entry.js +0 -17
- package/dist/esm/my-loader.entry.js.map +0 -1
- package/dist/esm/my-modal.entry.js +0 -2475
- package/dist/esm/my-modal.entry.js.map +0 -1
- package/dist/esm/my-search.entry.js +0 -40
- package/dist/esm/my-search.entry.js.map +0 -1
- package/dist/esm/my-slider.entry.js +0 -11197
- package/dist/esm/my-slider.entry.js.map +0 -1
- package/dist/esm/shadow-css-12b9a099.js +0 -389
- package/dist/esm/shadow-css-12b9a099.js.map +0 -1
- package/dist/pallete/app-globals-0f993ce5.js +0 -5
- package/dist/pallete/app-globals-0f993ce5.js.map +0 -1
- package/dist/pallete/css-shim-5eb36939.js +0 -6
- package/dist/pallete/css-shim-5eb36939.js.map +0 -1
- package/dist/pallete/dom-c0f8af80.js +0 -75
- package/dist/pallete/dom-c0f8af80.js.map +0 -1
- package/dist/pallete/gtmUtils-dcdac4ce.js +0 -7
- package/dist/pallete/gtmUtils-dcdac4ce.js.map +0 -1
- package/dist/pallete/index-591def6b.js +0 -3397
- package/dist/pallete/index-591def6b.js.map +0 -1
- package/dist/pallete/index-c3dfdbab.js +0 -3397
- package/dist/pallete/index-c3dfdbab.js.map +0 -1
- package/dist/pallete/my-backdrop.entry.js +0 -17
- package/dist/pallete/my-backdrop.entry.js.map +0 -1
- package/dist/pallete/my-colorbox.entry.js +0 -48
- package/dist/pallete/my-colorbox.entry.js.map +0 -1
- package/dist/pallete/my-colorinfo.entry.js +0 -42
- package/dist/pallete/my-colorinfo.entry.js.map +0 -1
- package/dist/pallete/my-component.entry.js +0 -167
- package/dist/pallete/my-component.entry.js.map +0 -1
- package/dist/pallete/my-loader.entry.js +0 -17
- package/dist/pallete/my-loader.entry.js.map +0 -1
- package/dist/pallete/my-modal.entry.js +0 -2475
- package/dist/pallete/my-modal.entry.js.map +0 -1
- package/dist/pallete/my-search.entry.js +0 -40
- package/dist/pallete/my-search.entry.js.map +0 -1
- package/dist/pallete/my-slider.entry.js +0 -11197
- package/dist/pallete/my-slider.entry.js.map +0 -1
- package/dist/pallete/shadow-css-12b9a099.js +0 -389
- package/dist/pallete/shadow-css-12b9a099.js.map +0 -1
- package/www/build/app-globals-0f993ce5.js +0 -5
- package/www/build/app-globals-0f993ce5.js.map +0 -1
- package/www/build/css-shim-5eb36939.js +0 -6
- package/www/build/css-shim-5eb36939.js.map +0 -1
- package/www/build/dom-c0f8af80.js +0 -75
- package/www/build/dom-c0f8af80.js.map +0 -1
- package/www/build/gtmUtils-dcdac4ce.js +0 -7
- package/www/build/gtmUtils-dcdac4ce.js.map +0 -1
- package/www/build/index-591def6b.js +0 -3397
- package/www/build/index-591def6b.js.map +0 -1
- package/www/build/index-c3dfdbab.js +0 -3397
- package/www/build/index-c3dfdbab.js.map +0 -1
- package/www/build/my-backdrop.entry.js +0 -17
- package/www/build/my-backdrop.entry.js.map +0 -1
- package/www/build/my-colorbox.entry.js +0 -48
- package/www/build/my-colorbox.entry.js.map +0 -1
- package/www/build/my-colorinfo.entry.js +0 -42
- package/www/build/my-colorinfo.entry.js.map +0 -1
- package/www/build/my-component.entry.js +0 -167
- package/www/build/my-component.entry.js.map +0 -1
- package/www/build/my-loader.entry.js +0 -17
- package/www/build/my-loader.entry.js.map +0 -1
- package/www/build/my-modal.entry.js +0 -2475
- package/www/build/my-modal.entry.js.map +0 -1
- package/www/build/my-search.entry.js +0 -40
- package/www/build/my-search.entry.js.map +0 -1
- package/www/build/my-slider.entry.js +0 -11197
- package/www/build/my-slider.entry.js.map +0 -1
- package/www/build/shadow-css-12b9a099.js +0 -389
- package/www/build/shadow-css-12b9a099.js.map +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance } from './index-c3dfdbab.js';
|
|
2
|
-
|
|
3
|
-
const myBackdropCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
|
|
4
|
-
|
|
5
|
-
const MyBackdrop = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
MyBackdrop.style = myBackdropCss;
|
|
14
|
-
|
|
15
|
-
export { MyBackdrop as my_backdrop };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=my-backdrop.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"my-backdrop.entry.esm.js","mappings":";;AAAA,MAAM,aAAa,GAAG,wKAAwK;;MCMjL,UAAU;;;;EACrB,MAAM;IACJ,OAAO,IAAI,CAAC;GACb;;;;;;","names":[],"sources":["./src/components/my-backdrop/my-backdrop.scss?tag=my-backdrop","./src/components/my-backdrop/my-backdrop.tsx"],"sourcesContent":["@import '../../global/app.scss';\n\nmy-backdrop {\n width: 100%;\n height: 100%;\n background-color: $backdrop_black;\n position: fixed;\n z-index: 100;\n left: 0;\n top: 0;\n}\n","import { Component } from '@stencil/core';\n\n@Component({\n tag: 'my-backdrop',\n styleUrl: 'my-backdrop.scss',\n})\nexport class MyBackdrop {\n render() {\n return null;\n }\n}\n"],"version":3}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-c3dfdbab.js';
|
|
2
|
-
import { s as setDataLayer } from './gtmUtils-dcdac4ce.js';
|
|
3
|
-
|
|
4
|
-
const myColorboxCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:80px;height:80px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
|
|
5
|
-
|
|
6
|
-
const MyColorBox = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.colorCheck = () => {
|
|
10
|
-
this.checkTimeout = setTimeout(() => {
|
|
11
|
-
setDataLayer({
|
|
12
|
-
event: 'ColorCheck',
|
|
13
|
-
shop: this.shop,
|
|
14
|
-
product: this.product,
|
|
15
|
-
color: this.name,
|
|
16
|
-
});
|
|
17
|
-
}, 2000);
|
|
18
|
-
};
|
|
19
|
-
this.colorUnCheck = () => {
|
|
20
|
-
if (this.checkTimeout)
|
|
21
|
-
clearTimeout(this.checkTimeout);
|
|
22
|
-
this.checkTimeout = undefined;
|
|
23
|
-
};
|
|
24
|
-
this.darkenColor = (color) => {
|
|
25
|
-
const red = parseInt(color[1] + color[2], 16) - 20;
|
|
26
|
-
const green = parseInt(color[3] + color[4], 16) - 20;
|
|
27
|
-
const blue = parseInt(color[5] + color[6], 16) - 20;
|
|
28
|
-
return `rgb(${red},${green},${blue})`;
|
|
29
|
-
};
|
|
30
|
-
this.color = undefined;
|
|
31
|
-
this.name = undefined;
|
|
32
|
-
this.shop = undefined;
|
|
33
|
-
this.product = undefined;
|
|
34
|
-
this.isActive = undefined;
|
|
35
|
-
this.isCategoryActive = undefined;
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
return (h("div", { onMouseEnter: () => this.colorCheck(), onMouseLeave: () => this.colorUnCheck(), class: `my-color-box ${this.isActive ? 'active' : ''} ${this.isCategoryActive ? 'categoryactive' : ''}`, style: {
|
|
39
|
-
background: this.color,
|
|
40
|
-
border: this.isCategoryActive ? `5px solid ${this.darkenColor(this.color)}` : '',
|
|
41
|
-
} }, h("div", { class: "color-name" }, this.name)));
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
MyColorBox.style = myColorboxCss;
|
|
45
|
-
|
|
46
|
-
export { MyColorBox as my_colorbox };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=my-colorbox.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"my-colorbox.entry.esm.js","mappings":";;;AAAA,MAAM,aAAa,GAAG,0xBAA0xB;;MCOnyB,UAAU;;;IAUrB,eAAU,GAAG;MACX,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC;QAC7B,YAAY,CAAC;UACX,KAAK,EAAE,YAAY;UACnB,IAAI,EAAE,IAAI,CAAC,IAAI;UACf,OAAO,EAAE,IAAI,CAAC,OAAO;UACrB,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H;;;;;;","names":[],"sources":["./src/components/my-colorbox/my-colorbox.scss?tag=my-colorbox","./src/components/my-colorbox/my-colorbox.tsx"],"sourcesContent":["@import '../../global/app.scss';\n\n.my-color-box {\n width: 125px;\n height: 125px;\n display: block;\n margin-bottom: 5px;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n position: relative;\n\n @media (max-width: $medium) {\n width: 80px;\n height: 80px;\n }\n .color-name {\n width: 100%;\n background-color: $white;\n padding: 15px 0px 10px;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n opacity: 0;\n transition: 0.3s opacity ease-in-out;\n font-size: 10px;\n color: $black;\n text-transform: lowercase;\n }\n &.active {\n .color-name {\n opacity: 1;\n }\n }\n\n &.categoryactive {\n width: 120px;\n height: 115px;\n .color-name {\n opacity: 1;\n }\n\n @media (max-width: $medium) {\n width: 72px;\n height: 72px;\n }\n }\n &:hover {\n .color-name {\n opacity: 1;\n }\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport { setDataLayer } from '../../gtmUtils';\n\n@Component({\n tag: 'my-colorbox',\n styleUrl: 'my-colorbox.scss',\n})\nexport class MyColorBox {\n private checkTimeout: ReturnType<typeof setTimeout> | undefined;\n\n @Prop() color: string;\n @Prop() name: string;\n @Prop() shop: string;\n @Prop() product: string;\n @Prop() isActive?: boolean;\n @Prop() isCategoryActive?: boolean;\n\n colorCheck = () => {\n this.checkTimeout = setTimeout(() => {\n setDataLayer({\n event: 'ColorCheck',\n shop: this.shop,\n product: this.product,\n color: this.name,\n });\n }, 2000);\n };\n\n colorUnCheck = () => {\n if (this.checkTimeout) clearTimeout(this.checkTimeout);\n this.checkTimeout = undefined;\n };\n\n darkenColor = (color: string) => {\n const red = parseInt(color[1] + color[2], 16) - 20;\n const green = parseInt(color[3] + color[4], 16) - 20;\n const blue = parseInt(color[5] + color[6], 16) - 20;\n return `rgb(${red},${green},${blue})`;\n };\n\n render() {\n return (\n <div\n onMouseEnter={() => this.colorCheck()}\n onMouseLeave={() => this.colorUnCheck()}\n class={`my-color-box ${this.isActive ? 'active' : ''} ${this.isCategoryActive ? 'categoryactive' : ''}`}\n style={{\n background: this.color,\n border: this.isCategoryActive ? `5px solid ${this.darkenColor(this.color)}` : '',\n }}\n >\n <div class=\"color-name\">{this.name}</div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as getAssetPath } from './index-c3dfdbab.js';
|
|
2
|
-
import { s as setDataLayer } from './gtmUtils-dcdac4ce.js';
|
|
3
|
-
|
|
4
|
-
const MyColorInfo = class {
|
|
5
|
-
constructor(hostRef) {
|
|
6
|
-
registerInstance(this, hostRef);
|
|
7
|
-
this.closeInfoBox = createEvent(this, "closeInfoBox", 7);
|
|
8
|
-
this.goToProduct = () => {
|
|
9
|
-
var _a;
|
|
10
|
-
this.currentColor &&
|
|
11
|
-
setDataLayer({
|
|
12
|
-
event: 'GoToProduct',
|
|
13
|
-
shop: this.shop,
|
|
14
|
-
product: this.product,
|
|
15
|
-
color: (_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.name,
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
this.onCloseButtonClick = () => {
|
|
19
|
-
this.closeInfoBox.emit();
|
|
20
|
-
};
|
|
21
|
-
this.currentColor = undefined;
|
|
22
|
-
this.shop = undefined;
|
|
23
|
-
this.product = undefined;
|
|
24
|
-
this.data = null;
|
|
25
|
-
this.isMobile = false;
|
|
26
|
-
this.infoBoxWidth = undefined;
|
|
27
|
-
this.closeImage = 'close.png';
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
31
|
-
return (h("div", { class: `boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`, style: {
|
|
32
|
-
background: this.currentColor.hex,
|
|
33
|
-
maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,
|
|
34
|
-
} }, this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("div", { class: "boxes__box-content__info", style: {
|
|
35
|
-
maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,
|
|
36
|
-
} }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), !this.isMobile && h("h2", null, this.currentColor.name), !this.isMobile && h("h4", null, this.currentColor.number), !this.isMobile && h("div", { class: "divider" }), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "boxes__box-content__info__value-image" }, ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.image.data) && h("img", { src: `${(_e = (_d = (_c = (_b = this.currentColor) === null || _b === void 0 ? void 0 : _b.image) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.attributes) === null || _e === void 0 ? void 0 : _e.formats.thumbnail.url}`, alt: "color-image" })), h("div", { class: "boxes__box-content__info__value-product" }, h("div", null, !this.isMobile && h("p", null, "Produkt:"), this.isMobile && h("h2", null, this.currentColor.name), " ", h("p", null, this.product)), this.isMobile && h("div", { class: 'divider' }), this.currentColor && this.currentColor.links.find((link) => { var _a, _b, _c; return ((_c = (_b = (_a = link === null || link === void 0 ? void 0 : link.shop) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.attributes) === null || _c === void 0 ? void 0 : _c.name) === this.shop; }) && (h("a", { onClick: this.goToProduct, class: `${this.currentColor.buttonInverse ? 'inverse' : ''}`, target: "_blank", href: (_f = this === null || this === void 0 ? void 0 : this.currentColor.links.find((link) => { var _a, _b, _c; return ((_c = (_b = (_a = link === null || link === void 0 ? void 0 : link.shop) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.attributes) === null || _c === void 0 ? void 0 : _c.name) === this.shop; })) === null || _f === void 0 ? void 0 : _f.path }, "przejd\u017A do produktu"))))), h("div", { class: "boxes__box-content__slider" }, h("my-slider", { color: this.currentColor.name, shop: this.shop, product: this.product, slides: (_g = this.data) === null || _g === void 0 ? void 0 : _g.images.data }), ' ')));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export { MyColorInfo as my_colorinfo };
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=my-colorinfo.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"my-colorinfo.entry.esm.js","mappings":";;;MAMa,WAAW;;;;IAWtB,gBAAW,GAAG;;MACZ,IAAI,CAAC,YAAY;QACf,YAAY,CAAC;UACX,KAAK,EAAE,aAAa;UACpB,IAAI,EAAE,IAAI,CAAC,IAAI;UACf,OAAO,EAAE,IAAI,CAAC,OAAO;UACrB,KAAK,EAAE,MAAA,IAAI,CAAC,YAAY,0CAAE,IAAI;SAC/B,CAAC,CAAC;KACN,CAAC;IAEF,uBAAkB,GAAG;MACnB,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;KAC1B,CAAC;;;;gBAnB6B,IAAI;oBACP,KAAK;;sBAEZ,WAAW;;EAkBhC,MAAM;;IACJ,QACE,WACE,KAAK,EAAE,sBAAsB,IAAI,CAAC,YAAY,CAAC,SAAS,GAAG,2BAA2B,GAAG,EAAE,EAAE,EAC7F,KAAK,EAAE;QACL,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG;QACjC,QAAQ,EAAE,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI;OAC5D,IAEA,IAAI,CAAC,QAAQ,IAAI,WAAK,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE,YAAY,CAAC,YAAY,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,GAAG,EAAC,UAAU,GAAG,EAC/I,WACE,KAAK,EAAC,0BAA0B,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C,IAAU,uBAAK,OAAA,CAAA,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,IAAI,0CAAE,UAAU,0CAAE,IAAI,MAAK,IAAI,CAAC,IAAI,CAAA,EAAA,CAAC,KAClH,SACE,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,GAAG,SAAS,GAAG,EAAE,EAAE,EAC5D,MAAM,EAAC,QAAQ,EACf,IAAI,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAU,uBAAK,OAAA,CAAA,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,IAAI,0CAAE,UAAU,0CAAE,IAAI,MAAK,IAAI,CAAC,IAAI,CAAA,EAAA,CAAC,0CAAE,IAAI,+BAGzG,CACL,CACG,CACF,CACF,EACN,WAAK,KAAK,EAAC,4BAA4B,IACrC,iBAAW,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC,IAAI,GAAc,EAAC,GAAG,CAC9H,CACF,EACN;GACH;;;;;","names":[],"sources":["./src/components/my-colorinfo/my-colorinfo.tsx"],"sourcesContent":["import { Component, Prop, h, getAssetPath, Event, EventEmitter } from '@stencil/core';\nimport { setDataLayer } from '../../gtmUtils';\nimport { Color, Link, Product } from '../../types';\n@Component({\n tag: 'my-colorinfo',\n})\nexport class MyColorInfo {\n @Prop() currentColor: Color;\n @Prop() shop: string;\n @Prop() product: string;\n @Prop() data: Product | null = null;\n @Prop() isMobile: boolean = false;\n @Prop() infoBoxWidth: number | null;\n @Prop() closeImage = 'close.png';\n\n @Event() closeInfoBox: EventEmitter;\n\n goToProduct = () => {\n this.currentColor &&\n setDataLayer({\n event: 'GoToProduct',\n shop: this.shop,\n product: this.product,\n color: this.currentColor?.name,\n });\n };\n\n onCloseButtonClick = () => {\n this.closeInfoBox.emit();\n };\n\n render() {\n return (\n <div\n class={`boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`}\n style={{\n background: this.currentColor.hex,\n maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,\n }}\n >\n {this.isMobile && <img class={'closebtn'} onClick={this.onCloseButtonClick} src={getAssetPath(`./assets/${this.closeImage}`)} alt=\"closebtn\" />}\n <div\n class=\"boxes__box-content__info\"\n style={{\n maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,\n }}\n >\n {!this.isMobile && <img class={'closebtn'} onClick={this.onCloseButtonClick} src={getAssetPath(`./assets/${this.closeImage}`)} alt=\"closebtn\" />}\n {!this.isMobile && <h2>{this.currentColor.name}</h2>}\n {!this.isMobile && <h4>{this.currentColor.number}</h4>}\n {!this.isMobile && <div class=\"divider\"></div>}\n <div class=\"boxes__box-content__info__value\">\n <div class=\"boxes__box-content__info__value-image\">\n {this.currentColor?.image.data! && <img src={`${this.currentColor?.image?.data?.attributes?.formats.thumbnail.url}`} alt=\"color-image\" />}\n </div>\n <div class=\"boxes__box-content__info__value-product\">\n <div>\n {!this.isMobile && <p>Produkt:</p>}\n {this.isMobile && <h2>{this.currentColor.name}</h2>} <p>{this.product}</p>\n </div>\n\n {this.isMobile && <div class={'divider'}></div>}\n {this.currentColor && this.currentColor.links.find((link: Link) => link?.shop?.data?.attributes?.name === this.shop) && (\n <a\n onClick={this.goToProduct}\n class={`${this.currentColor.buttonInverse ? 'inverse' : ''}`}\n target=\"_blank\"\n href={this?.currentColor.links.find((link: Link) => link?.shop?.data?.attributes?.name === this.shop)?.path}\n >\n przejdź do produktu\n </a>\n )}\n </div>\n </div>\n </div>\n <div class=\"boxes__box-content__slider\">\n <my-slider color={this.currentColor.name} shop={this.shop} product={this.product} slides={this.data?.images.data}></my-slider>{' '}\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-c3dfdbab.js';
|
|
2
|
-
|
|
3
|
-
const isObject = (val) => !Array.isArray(val) && val !== null && typeof val === 'object';
|
|
4
|
-
const hasAttributes = ({ vattrs }, requiredAttrs = []) => isObject(vattrs) && requiredAttrs.every(vattrs.hasOwnProperty.bind(vattrs));
|
|
5
|
-
const isTextNode = ({ vtext }) => typeof vtext === 'string';
|
|
6
|
-
// Can't use instanceof HTMLElement because MockHTMLElement during pre-rendering isn't
|
|
7
|
-
const isElement = (val) => typeof val === 'object' && val.nodeType === 1 && typeof val.ownerDocument === 'object';
|
|
8
|
-
const isElementArray = (val) => Array.isArray(val) && val.every(isElement);
|
|
9
|
-
|
|
10
|
-
const createElement = ({ vtag, vattrs, vchildren, vtext }, utils) => {
|
|
11
|
-
if (vtext != null) {
|
|
12
|
-
return document.createTextNode(vtext);
|
|
13
|
-
}
|
|
14
|
-
const element = document.createElement(vtag);
|
|
15
|
-
if (vattrs != null) {
|
|
16
|
-
for (const key in vattrs) {
|
|
17
|
-
element.setAttribute(key, vattrs[key]);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (vchildren != null) {
|
|
21
|
-
utils.forEach(vchildren, (child) => {
|
|
22
|
-
element.appendChild(createElement(child, utils));
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return element;
|
|
26
|
-
};
|
|
27
|
-
const shouldApplyToHead = (val) => isElement(val) || (isElementArray(val) && val.length === 2);
|
|
28
|
-
const applyToHead = (element) => {
|
|
29
|
-
if (Array.isArray(element)) {
|
|
30
|
-
return document.head.replaceChild(element[0], element[1]);
|
|
31
|
-
}
|
|
32
|
-
return document.head.appendChild(element);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const hasChildren = (node) => Array.isArray(node.vchildren);
|
|
36
|
-
const getFirstChild = (vchildren, utils) => {
|
|
37
|
-
let firstChild = null;
|
|
38
|
-
utils.forEach(vchildren || [], (c, i) => {
|
|
39
|
-
if (i === 0) {
|
|
40
|
-
firstChild = c;
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return firstChild;
|
|
45
|
-
};
|
|
46
|
-
function title(node, head, utils) {
|
|
47
|
-
const firstChild = getFirstChild(node.vchildren || [], utils);
|
|
48
|
-
if (firstChild && isTextNode(firstChild)) {
|
|
49
|
-
return [createElement(node, utils), head.querySelector('title')];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function meta(node, head, utils) {
|
|
53
|
-
var _a, _b, _c;
|
|
54
|
-
const namePropKey = ((_a = node.vattrs) === null || _a === void 0 ? void 0 : _a.property) ? 'property' : 'name';
|
|
55
|
-
const namePropValue = ((_b = node.vattrs) === null || _b === void 0 ? void 0 : _b.property) || ((_c = node.vattrs) === null || _c === void 0 ? void 0 : _c.name);
|
|
56
|
-
const existingElement = head.querySelector(`meta[${namePropKey}="${namePropValue}"]`);
|
|
57
|
-
if (existingElement !== null) {
|
|
58
|
-
return [createElement(node, utils), existingElement];
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return createElement(node, utils);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function link(node, _head, utils) {
|
|
65
|
-
if (!hasChildren(node)) {
|
|
66
|
-
return createElement(node, utils);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function style(node, _head, utils) {
|
|
70
|
-
const firstChild = getFirstChild(node.vchildren || [], utils);
|
|
71
|
-
if (firstChild && isTextNode(firstChild)) {
|
|
72
|
-
return createElement(node, utils);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function script(node, _head, utils) {
|
|
76
|
-
if (hasChildren(node) || hasAttributes(node)) {
|
|
77
|
-
return createElement(node, utils);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function base(node, _head, utils) {
|
|
81
|
-
if (!hasChildren(node) && hasAttributes(node)) {
|
|
82
|
-
return createElement(node, utils);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
const template = createElement;
|
|
86
|
-
const noscript = createElement; // SSR only
|
|
87
|
-
const types = {
|
|
88
|
-
title,
|
|
89
|
-
meta,
|
|
90
|
-
link,
|
|
91
|
-
style,
|
|
92
|
-
script,
|
|
93
|
-
base,
|
|
94
|
-
template,
|
|
95
|
-
noscript,
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const headExists = document && document.head;
|
|
99
|
-
const validTagNames = Object.keys(types);
|
|
100
|
-
const isValidNode = (node) => validTagNames.indexOf(node.vtag) > -1;
|
|
101
|
-
const renderNode = (node, utils) => types[node.vtag](node, document.head, utils);
|
|
102
|
-
const Helmet = (_props, children, utils) => {
|
|
103
|
-
if (!headExists) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
const rendered = [];
|
|
107
|
-
const validChildren = [];
|
|
108
|
-
utils.forEach(children, (n) => {
|
|
109
|
-
if (isValidNode(n)) {
|
|
110
|
-
validChildren.push(n);
|
|
111
|
-
rendered.push(renderNode(n, utils));
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
// Build an HTMLElement for each provided virtual child
|
|
115
|
-
rendered
|
|
116
|
-
.filter(shouldApplyToHead)
|
|
117
|
-
.forEach(applyToHead);
|
|
118
|
-
return null;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const myComponentCss = ".pallete-wrapper.sc-my-component{display:flex;flex-direction:column;align-items:center;justify-content:center}";
|
|
122
|
-
|
|
123
|
-
const MyModalBundle = class {
|
|
124
|
-
constructor(hostRef) {
|
|
125
|
-
registerInstance(this, hostRef);
|
|
126
|
-
this.shop = undefined;
|
|
127
|
-
this.product = undefined;
|
|
128
|
-
this.show = false;
|
|
129
|
-
this.readyToClose = false;
|
|
130
|
-
}
|
|
131
|
-
async open() {
|
|
132
|
-
this.show = true;
|
|
133
|
-
}
|
|
134
|
-
setReadyToCloseHandler(value) {
|
|
135
|
-
this.readyToClose = value.detail.observable;
|
|
136
|
-
}
|
|
137
|
-
closeModalHandler() {
|
|
138
|
-
this.show = false;
|
|
139
|
-
this.readyToClose = false;
|
|
140
|
-
}
|
|
141
|
-
render() {
|
|
142
|
-
let content = null;
|
|
143
|
-
if (this.show) {
|
|
144
|
-
content = [h("my-backdrop", null), h("my-modal", { shop: this.shop, product: this.product })];
|
|
145
|
-
}
|
|
146
|
-
return (h("div", { onClick: () => {
|
|
147
|
-
if (this.readyToClose) {
|
|
148
|
-
this.closeModalHandler();
|
|
149
|
-
}
|
|
150
|
-
} }, h(Helmet, null, h("script", null, `(function (w, d, s, l, i) {
|
|
151
|
-
w[l] = w[l] || [];
|
|
152
|
-
w[l].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });
|
|
153
|
-
var f = d.getElementsByTagName(s)[0],
|
|
154
|
-
j = d.createElement(s),
|
|
155
|
-
dl = l != 'dataLayer' ? '&l=' + l : '';
|
|
156
|
-
j.async = true;
|
|
157
|
-
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
|
|
158
|
-
f.parentNode.insertBefore(j, f);
|
|
159
|
-
})(window, document, 'script', 'dataLayer', 'GTM-PMTKHDX');`)), h("div", { class: "pallete-wrapper" }, content), h("noscript", null, h("iframe", { src: "https://www.googletagmanager.com/ns.html?id=GTM-PMTKHDX", height: "0", width: "0", style: { display: 'none', visibility: 'hidden' } }))));
|
|
160
|
-
}
|
|
161
|
-
get modalEl() { return getElement(this); }
|
|
162
|
-
};
|
|
163
|
-
MyModalBundle.style = myComponentCss;
|
|
164
|
-
|
|
165
|
-
export { MyModalBundle as my_component };
|
|
166
|
-
|
|
167
|
-
//# sourceMappingURL=my-component.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"my-component.entry.esm.js","mappings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GAClB;EAGD,sBAAsB,CAAC,KAAkB;IACvC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;GAC7C;EAGD,iBAAiB;IACf,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IAClB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;GAC3B;EAED,MAAM;IACJ,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI,IAAI,CAAC,IAAI,EAAE;MACb,OAAO,GAAG,CAAC,sBAA2B,EAAE,gBAAU,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,GAAa,CAAC,CAAC;KACxG;IACD,QACE,WACE,OAAO,EAAE;QACP,IAAI,IAAI,CAAC,YAAY,EAAE;UACrB,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC1B;OACF,IAED,EAAC,MAAM,QACL,kBACG;;;;;;;;;kEASqD,CAC/C,CACF,EACT,WAAK,KAAK,EAAC,iBAAiB,IAAE,OAAO,CAAO,EAC5C,oBACE,cAAQ,GAAG,EAAC,yDAAyD,EAAC,MAAM,EAAC,GAAG,EAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAW,CAC7I,CACP,EACN;GACH;;;;;;;","names":["RenderTypes"],"sources":["./node_modules/@stencil/helmet/dist/util.js","./node_modules/@stencil/helmet/dist/dom.js","./node_modules/@stencil/helmet/dist/render.js","./node_modules/@stencil/helmet/dist/stencil-helmet.js","./src/components/my-component/my-component.scss?tag=my-component&encapsulation=scoped","./src/components/my-component/my-component.tsx"],"sourcesContent":["const isObject = (val) => !Array.isArray(val) && val !== null && typeof val === 'object';\nexport const hasAttributes = ({ vattrs }, requiredAttrs = []) => isObject(vattrs) && requiredAttrs.every(vattrs.hasOwnProperty.bind(vattrs));\nexport const isTextNode = ({ vtext }) => typeof vtext === 'string';\n// Can't use instanceof HTMLElement because MockHTMLElement during pre-rendering isn't\nexport const isElement = (val) => typeof val === 'object' && val.nodeType === 1 && typeof val.ownerDocument === 'object';\nexport const isElementArray = (val) => Array.isArray(val) && val.every(isElement);\n","import { isElement, isElementArray } from './util';\nexport const createElement = ({ vtag, vattrs, vchildren, vtext }, utils) => {\n if (vtext != null) {\n return document.createTextNode(vtext);\n }\n const element = document.createElement(vtag);\n if (vattrs != null) {\n for (const key in vattrs) {\n element.setAttribute(key, vattrs[key]);\n }\n }\n if (vchildren != null) {\n utils.forEach(vchildren, (child) => {\n element.appendChild(createElement(child, utils));\n });\n }\n return element;\n};\nexport const shouldApplyToHead = (val) => isElement(val) || (isElementArray(val) && val.length === 2);\nexport const applyToHead = (element) => {\n if (Array.isArray(element)) {\n return document.head.replaceChild(element[0], element[1]);\n }\n return document.head.appendChild(element);\n};\n","import { hasAttributes, isTextNode } from './util';\nimport { createElement } from './dom';\nconst hasChildren = (node) => Array.isArray(node.vchildren);\nconst getFirstChild = (vchildren, utils) => {\n let firstChild = null;\n utils.forEach(vchildren || [], (c, i) => {\n if (i === 0) {\n firstChild = c;\n return;\n }\n });\n return firstChild;\n};\nfunction title(node, head, utils) {\n const firstChild = getFirstChild(node.vchildren || [], utils);\n if (firstChild && isTextNode(firstChild)) {\n return [createElement(node, utils), head.querySelector('title')];\n }\n}\nfunction meta(node, head, utils) {\n var _a, _b, _c;\n const namePropKey = ((_a = node.vattrs) === null || _a === void 0 ? void 0 : _a.property) ? 'property' : 'name';\n const namePropValue = ((_b = node.vattrs) === null || _b === void 0 ? void 0 : _b.property) || ((_c = node.vattrs) === null || _c === void 0 ? void 0 : _c.name);\n const existingElement = head.querySelector(`meta[${namePropKey}=\"${namePropValue}\"]`);\n if (existingElement !== null) {\n return [createElement(node, utils), existingElement];\n }\n else {\n return createElement(node, utils);\n }\n}\nfunction link(node, _head, utils) {\n if (!hasChildren(node)) {\n return createElement(node, utils);\n }\n}\nfunction style(node, _head, utils) {\n const firstChild = getFirstChild(node.vchildren || [], utils);\n if (firstChild && isTextNode(firstChild)) {\n return createElement(node, utils);\n }\n}\nfunction script(node, _head, utils) {\n if (hasChildren(node) || hasAttributes(node)) {\n return createElement(node, utils);\n }\n}\nfunction base(node, _head, utils) {\n if (!hasChildren(node) && hasAttributes(node)) {\n return createElement(node, utils);\n }\n}\nconst template = createElement;\nconst noscript = createElement; // SSR only\nconst types = {\n title,\n meta,\n link,\n style,\n script,\n base,\n template,\n noscript,\n};\nexport default types;\n","import RenderTypes from './render';\nimport { shouldApplyToHead, applyToHead } from './dom';\nconst headExists = document && document.head;\nconst validTagNames = Object.keys(RenderTypes);\nconst isValidNode = (node) => validTagNames.indexOf(node.vtag) > -1;\nconst renderNode = (node, utils) => RenderTypes[node.vtag](node, document.head, utils);\nexport const Helmet = (_props, children, utils) => {\n if (!headExists) {\n return null;\n }\n const rendered = [];\n const validChildren = [];\n utils.forEach(children, (n) => {\n if (isValidNode(n)) {\n validChildren.push(n);\n rendered.push(renderNode(n, utils));\n }\n });\n // Build an HTMLElement for each provided virtual child\n rendered\n .filter(shouldApplyToHead)\n .forEach(applyToHead);\n return null;\n};\nexport default Helmet;\n",".pallete-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n","import Helmet from '@stencil/helmet';\nimport { Component, Prop, Method, Element, State, Listen, h } from '@stencil/core';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.scss',\n scoped: true,\n})\nexport class MyModalBundle {\n @Element() modalEl: HTMLElement;\n\n @Prop() shop: string;\n @Prop() product: string;\n @State() show = false;\n @State() readyToClose = false;\n\n @Method()\n async open() {\n this.show = true;\n }\n\n @Listen('readyToCLose')\n setReadyToCloseHandler(value: CustomEvent) {\n this.readyToClose = value.detail.observable;\n }\n\n @Listen('close')\n closeModalHandler() {\n this.show = false;\n this.readyToClose = false;\n }\n\n render() {\n let content = null;\n if (this.show) {\n content = [<my-backdrop></my-backdrop>, <my-modal shop={this.shop} product={this.product}></my-modal>];\n }\n return (\n <div\n onClick={() => {\n if (this.readyToClose) {\n this.closeModalHandler();\n }\n }}\n >\n <Helmet>\n <script>\n {`(function (w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != 'dataLayer' ? '&l=' + l : '';\n j.async = true;\n j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\n f.parentNode.insertBefore(j, f);\n })(window, document, 'script', 'dataLayer', 'GTM-PMTKHDX');`}\n </script>\n </Helmet>\n <div class=\"pallete-wrapper\">{content}</div>\n <noscript>\n <iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-PMTKHDX\" height=\"0\" width=\"0\" style={{ display: 'none', visibility: 'hidden' }}></iframe>\n </noscript>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-c3dfdbab.js';
|
|
2
|
-
|
|
3
|
-
const myLoaderCss = ".container.sc-my-loader{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.item.sc-my-loader{width:20px;height:20px;margin:3px;list-style-type:none;transition:0.5s all ease}.item.sc-my-loader:nth-child(1){animation:right-1 1s infinite alternate;background-color:#b8cf40;animation-delay:20ms}@keyframes right-1{0%{transform:translateY(-18px)}100%{transform:translateY(18px)}}.item.sc-my-loader:nth-child(2){animation:right-2 1s infinite alternate;background-color:#ee4b5e;animation-delay:40ms}@keyframes right-2{0%{transform:translateY(-21px)}100%{transform:translateY(21px)}}.item.sc-my-loader:nth-child(3){animation:right-3 1s infinite alternate;background-color:#ea0f47;animation-delay:60ms}@keyframes right-3{0%{transform:translateY(-24px)}100%{transform:translateY(24px)}}.item.sc-my-loader:nth-child(4){animation:right-4 1s infinite alternate;background-color:#d42840;animation-delay:80ms}@keyframes right-4{0%{transform:translateY(-27px)}100%{transform:translateY(27px)}}.item.sc-my-loader:nth-child(5){animation:right-5 1s infinite alternate;background-color:#8b2850;animation-delay:100ms}@keyframes right-5{0%{transform:translateY(-30px)}100%{transform:translateY(30px)}}";
|
|
4
|
-
|
|
5
|
-
const MyLoader = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("div", { class: "container" }, h("div", { class: "item" }), h("div", { class: "item" }), h("div", { class: "item" }), h("div", { class: "item" }), h("div", { class: "item" })));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
MyLoader.style = myLoaderCss;
|
|
14
|
-
|
|
15
|
-
export { MyLoader as my_loader };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=my-loader.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"my-loader.entry.esm.js","mappings":";;AAAA,MAAM,WAAW,GAAG,+rCAA+rC;;MCOtsC,QAAQ;;;;EACnB,MAAM;IACJ,QACE,WAAK,KAAK,EAAC,WAAW,IACpB,WAAK,KAAK,EAAC,MAAM,GAAO,EACxB,WAAK,KAAK,EAAC,MAAM,GAAO,EACxB,WAAK,KAAK,EAAC,MAAM,GAAO,EACxB,WAAK,KAAK,EAAC,MAAM,GAAO,EACxB,WAAK,KAAK,EAAC,MAAM,GAAO,CACpB,EACN;GACH;;;;;;","names":[],"sources":["./src/components/my-loader/my-loader.scss?tag=my-loader&encapsulation=scoped","./src/components/my-loader/my-loader.tsx"],"sourcesContent":["$color: #b8cf40, #ee4b5e, #ea0f47, #d42840, #8b2850;\n\n@mixin anim($i) {\n $y: ($i + 5) * 3;\n\n @keyframes right-#{$i} {\n 0% {\n transform: translateY(#{-$y}px);\n }\n 100% {\n transform: translateY(#{$y}px);\n }\n }\n}\n\n.container {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100px;\n overflow: hidden;\n}\n\n.item {\n width: 20px;\n height: 20px;\n margin: 3px;\n list-style-type: none;\n transition: 0.5s all ease;\n}\n\n@for $i from 1 through 5 {\n .item:nth-child(#{$i}) {\n @include anim($i);\n animation: right-#{$i} 1s infinite alternate;\n background-color: nth($color, $i);\n animation-delay: 20ms * $i;\n }\n}\n","import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'my-loader',\n styleUrl: 'my-loader.scss',\n scoped: true,\n})\nexport class MyLoader {\n render() {\n return (\n <div class=\"container\">\n <div class=\"item\"></div>\n <div class=\"item\"></div>\n <div class=\"item\"></div>\n <div class=\"item\"></div>\n <div class=\"item\"></div>\n </div>\n );\n }\n}\n"],"version":3}
|