@ppg_pl/pallete 2.0.9 → 2.0.10
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/my-backdrop_8.cjs.entry.js +7 -1
- package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
- package/dist/collection/components/my-colorinfo/my-colorinfo.js +21 -1
- package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
- package/dist/components/my-colorinfo2.js +7 -1
- package/dist/components/my-colorinfo2.js.map +1 -1
- package/dist/esm/my-backdrop_8.entry.js +7 -1
- package/dist/esm/my-backdrop_8.entry.js.map +1 -1
- package/dist/pallete/p-a7ce8105.entry.js +2 -0
- package/dist/pallete/p-a7ce8105.entry.js.map +1 -0
- package/dist/pallete/pallete.esm.js +1 -1
- package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +3 -1
- package/dist/types/components.d.ts +1 -0
- package/package.json +1 -1
- package/www/build/p-a7ce8105.entry.js +2 -0
- package/www/build/p-a7ce8105.entry.js.map +1 -0
- package/www/build/pallete.esm.js +1 -1
- package/dist/pallete/p-1be10cd8.entry.js +0 -2
- package/dist/pallete/p-1be10cd8.entry.js.map +0 -1
- package/www/build/p-1be10cd8.entry.js +0 -2
- package/www/build/p-1be10cd8.entry.js.map +0 -1
|
@@ -96,8 +96,11 @@ const MyColorInfo = class {
|
|
|
96
96
|
constructor(hostRef) {
|
|
97
97
|
index$1.registerInstance(this, hostRef);
|
|
98
98
|
this.closeInfoBox = index$1.createEvent(this, "closeInfoBox", 7);
|
|
99
|
-
this.
|
|
99
|
+
this.close = index$1.createEvent(this, "close", 7);
|
|
100
|
+
this.goToProduct = (e) => {
|
|
100
101
|
var _a;
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
this.closeModalHandler();
|
|
101
104
|
this.currentColor &&
|
|
102
105
|
setDataLayer({
|
|
103
106
|
event: 'GoToProduct',
|
|
@@ -137,6 +140,9 @@ const MyColorInfo = class {
|
|
|
137
140
|
this.infoBoxWidth = undefined;
|
|
138
141
|
this.closeImage = 'close.png';
|
|
139
142
|
}
|
|
143
|
+
closeModalHandler() {
|
|
144
|
+
this.close.emit();
|
|
145
|
+
}
|
|
140
146
|
render() {
|
|
141
147
|
var _a;
|
|
142
148
|
return (index$1.h("div", { class: `boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`, style: {
|