@ppg_pl/pallete 2.0.8 → 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 +9 -4
- package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
- package/dist/collection/components/api/index.js +2 -2
- package/dist/collection/components/api/index.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/collection/components/my-component/my-component.js +0 -1
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/components/index2.js +2 -2
- package/dist/components/index2.js.map +1 -1
- package/dist/components/my-colorinfo2.js +7 -1
- package/dist/components/my-colorinfo2.js.map +1 -1
- package/dist/components/my-component.js +0 -1
- package/dist/components/my-component.js.map +1 -1
- package/dist/esm/my-backdrop_8.entry.js +9 -4
- 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/api/index.d.ts +2 -2
- 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-18ff39a9.entry.js +0 -2
- package/dist/pallete/p-18ff39a9.entry.js.map +0 -1
- package/www/build/p-18ff39a9.entry.js +0 -2
- package/www/build/p-18ff39a9.entry.js.map +0 -1
|
@@ -24,8 +24,8 @@ const setDataLayer = (obj) => {
|
|
|
24
24
|
// export const APIURL = 'http://57.128.200.45:8055';
|
|
25
25
|
// export const accessToken = '_baZ127gfvFIFmZ5umrrTBUUm6D7ve6p';
|
|
26
26
|
// PROD
|
|
27
|
-
const APIURL =
|
|
28
|
-
const accessToken =
|
|
27
|
+
const APIURL = 'https://color-selector.pl'; //'https://pallete-colors-backend.herokuapp.com';
|
|
28
|
+
const accessToken = 'uBKzhiNM4rkdZSe_PQvKJp9pE-DSTmtu'; //'_baZ127gfvFIFmZ5umrrTBUUm6D7ve6p'
|
|
29
29
|
class API {
|
|
30
30
|
async getData(ep) {
|
|
31
31
|
try {
|
|
@@ -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: {
|
|
@@ -288,7 +294,6 @@ const MyModalBundle = class {
|
|
|
288
294
|
render() {
|
|
289
295
|
let content = null;
|
|
290
296
|
if (this.show) {
|
|
291
|
-
console.log(this.baselink, this.shop, this.product);
|
|
292
297
|
content = [index$1.h("my-backdrop", null), index$1.h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink })];
|
|
293
298
|
}
|
|
294
299
|
return (index$1.h("div", { onClick: () => {
|