@everymatrix/bonus-elevate-shop-item 1.44.0 → 1.45.0
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/bonus-elevate-shop-item/bonus-elevate-shop-item.esm.js +1 -1
- package/dist/bonus-elevate-shop-item/p-961d6b9a.entry.js +1 -0
- package/dist/bonus-elevate-shop-item/p-e1255160.js +1 -0
- package/dist/bonus-elevate-shop-item/p-ec5f179f.js +2 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/bonus-elevate-shop-assets-slider_3.cjs.entry.js +377 -406
- package/dist/cjs/bonus-elevate-shop-item.cjs.js +16 -10
- package/dist/cjs/index-1035f878.js +1591 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-assets-slider.js +207 -222
- package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-item.css +5 -5
- package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-item.js +332 -362
- package/dist/collection/components/bonus-elevate-shop-item/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +54 -54
- package/dist/collection/utils/utils.js +26 -26
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/bonus-elevate-shop-assets-slider_3.entry.js +377 -406
- package/dist/esm/bonus-elevate-shop-item.js +13 -10
- package/dist/esm/index-fa394550.js +1561 -0
- package/dist/esm/loader.js +6 -12
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -21
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/bonus-elevate-shop-item/bonus-elevate-shop-assets-slider.d.ts +35 -35
- package/dist/types/components/bonus-elevate-shop-item/bonus-elevate-shop-item.d.ts +56 -56
- package/dist/types/components/bonus-elevate-shop-item/index.d.ts +1 -0
- package/dist/types/components.d.ts +17 -1
- package/dist/types/models/bonus-elevate-shop-item.d.ts +12 -12
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +12 -5
- package/dist/bonus-elevate-shop-item/p-3d8363a3.js +0 -1
- package/dist/bonus-elevate-shop-item/p-9546c5ba.entry.js +0 -1
- package/dist/cjs/index-355d8ffb.js +0 -1653
- package/dist/components/bonus-elevate-shop-assets-slider.d.ts +0 -11
- package/dist/components/bonus-elevate-shop-assets-slider.js +0 -6
- package/dist/components/bonus-elevate-shop-assets-slider2.js +0 -158
- package/dist/components/bonus-elevate-shop-item.d.ts +0 -11
- package/dist/components/bonus-elevate-shop-item.js +0 -278
- package/dist/components/general-styling-wrapper.js +0 -6
- package/dist/components/general-styling-wrapper2.js +0 -103
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-4927ce96.js +0 -1624
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/bonus-elevate-shop-item/.stencil/packages/bonus-elevate-shop-item/stencil.config.d.ts +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as bootstrapLazy } from './index-fa394550.js';
|
|
2
|
+
export { s as setNonce } from './index-fa394550.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const patchEsm = () => {
|
|
7
|
-
return promiseResolve();
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const defineCustomElements = (win, options) => {
|
|
11
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
|
-
return patchEsm().then(() => {
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
13
8
|
return bootstrapLazy([["bonus-elevate-shop-assets-slider_3",[[1,"bonus-elevate-shop-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"elevateGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32],"isRedeeming":[32]}],[0,"bonus-elevate-shop-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
14
|
-
});
|
|
15
9
|
};
|
|
16
10
|
|
|
17
11
|
export { defineCustomElements };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'bonus-elevate-shop-item',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { sass } from
|
|
2
|
-
const local = process.argv && process.argv[2] && process.argv[2].indexOf('--dev') > -1;
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
3
2
|
export const config = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: 'dist',
|
|
11
|
-
esmLoaderPath: '../loader',
|
|
3
|
+
namespace: 'bonus-elevate-shop-item',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
12
9
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type: 'www',
|
|
21
|
-
serviceWorker: null, // disable service workers
|
|
22
|
-
},
|
|
23
|
-
],
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
24
17
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
export declare class BonusElevateShopAssetsSlider {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Show slider dots
|
|
4
|
+
*/
|
|
5
|
+
showSliderDots: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Show slider navigate arrows
|
|
8
|
+
*/
|
|
9
|
+
showSliderArrows: boolean;
|
|
10
|
+
itemsPerPage: number;
|
|
11
|
+
sliderItems: Array<any>;
|
|
12
|
+
el: HTMLElement;
|
|
13
|
+
/**
|
|
14
|
+
* Slider variables
|
|
15
|
+
*/
|
|
16
|
+
activeIndex: number;
|
|
17
|
+
sliderItemsElement: HTMLElement;
|
|
18
|
+
itemElementWidth: number;
|
|
19
|
+
sliderItemsElementWidth: number;
|
|
20
|
+
xDown: any;
|
|
21
|
+
yDown: any;
|
|
22
|
+
setActive(index: number): void;
|
|
23
|
+
orientationChangeHandler: () => void;
|
|
24
|
+
resizeHandler: () => void;
|
|
25
|
+
move(direction: number): void;
|
|
26
|
+
goTo(index: number): void;
|
|
27
|
+
handleTouchStart(evt: any): void;
|
|
28
|
+
getTouches(evt: any): any;
|
|
29
|
+
handleTouchMove(evt: any): void;
|
|
30
|
+
recalculateItemsPerPage(): void;
|
|
31
|
+
renderDots(): Array<HTMLElement>;
|
|
32
|
+
componentDidRender(): void;
|
|
33
|
+
componentDidUpdate(): void;
|
|
34
|
+
connectedCallback(): void;
|
|
35
|
+
disconnectedCallback(): void;
|
|
36
|
+
render(): any;
|
|
37
37
|
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import
|
|
2
|
+
import "../../../../../../dist/packages/stencil/general-styling-wrapper/dist/types/index";
|
|
3
3
|
import { BonusElevateShopItemInfo } from '../../models/bonus-elevate-shop-item';
|
|
4
4
|
export declare class BonusElevateShopItem {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
5
|
+
/**
|
|
6
|
+
* NorWAy endpoint
|
|
7
|
+
*/
|
|
8
|
+
endpoint: string;
|
|
9
|
+
/**
|
|
10
|
+
* Currently selected language.
|
|
11
|
+
*/
|
|
12
|
+
language: string;
|
|
13
|
+
/**
|
|
14
|
+
* Elevate gift id
|
|
15
|
+
*/
|
|
16
|
+
itemId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Elevate gift id
|
|
19
|
+
*/
|
|
20
|
+
elevateGift: BonusElevateShopItemInfo;
|
|
21
|
+
/**
|
|
22
|
+
* session
|
|
23
|
+
*/
|
|
24
|
+
session: string;
|
|
25
|
+
/**
|
|
26
|
+
* Client custom styling via inline styles
|
|
27
|
+
*/
|
|
28
|
+
clientStyling: string;
|
|
29
|
+
/**
|
|
30
|
+
* Client custom styling via url
|
|
31
|
+
*/
|
|
32
|
+
clientStylingUrl: string;
|
|
33
|
+
/**
|
|
34
|
+
* Translation via url
|
|
35
|
+
*/
|
|
36
|
+
translationUrl: string;
|
|
37
|
+
/**
|
|
38
|
+
* Show slider dots
|
|
39
|
+
*/
|
|
40
|
+
showSliderDots: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Show slider navigate arrows
|
|
43
|
+
*/
|
|
44
|
+
showSliderArrows: boolean;
|
|
45
|
+
isGiftNotFound: boolean;
|
|
46
|
+
redeemErrorMsg: string;
|
|
47
|
+
isRedeeming: boolean;
|
|
48
|
+
redeemGiftButton: EventEmitter<Object>;
|
|
49
|
+
private bindedHandler;
|
|
50
|
+
deviceType: string;
|
|
51
|
+
redeemGiftConfirm(): void;
|
|
52
|
+
private handleMessage;
|
|
53
|
+
onBackClicked(): void;
|
|
54
|
+
redeemGift(): void;
|
|
55
|
+
loadElevateGift(): Promise<void>;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
componentDidLoad(): void;
|
|
58
|
+
componentWillLoad(): Promise<void>;
|
|
59
|
+
render(): any;
|
|
60
60
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BonusElevateShopItem } from './bonus-elevate-shop-item';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { BonusElevateShopItemInfo } from "./models/bonus-elevate-shop-item";
|
|
9
|
+
export { BonusElevateShopItemInfo } from "./models/bonus-elevate-shop-item";
|
|
9
10
|
export namespace Components {
|
|
10
11
|
interface BonusElevateShopAssetsSlider {
|
|
11
12
|
"itemsPerPage": number;
|
|
@@ -62,6 +63,10 @@ export namespace Components {
|
|
|
62
63
|
"translationUrl": string;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
66
|
+
export interface BonusElevateShopItemCustomEvent<T> extends CustomEvent<T> {
|
|
67
|
+
detail: T;
|
|
68
|
+
target: HTMLBonusElevateShopItemElement;
|
|
69
|
+
}
|
|
65
70
|
declare global {
|
|
66
71
|
interface HTMLBonusElevateShopAssetsSliderElement extends Components.BonusElevateShopAssetsSlider, HTMLStencilElement {
|
|
67
72
|
}
|
|
@@ -69,7 +74,18 @@ declare global {
|
|
|
69
74
|
prototype: HTMLBonusElevateShopAssetsSliderElement;
|
|
70
75
|
new (): HTMLBonusElevateShopAssetsSliderElement;
|
|
71
76
|
};
|
|
77
|
+
interface HTMLBonusElevateShopItemElementEventMap {
|
|
78
|
+
"redeemGiftButton": Object;
|
|
79
|
+
}
|
|
72
80
|
interface HTMLBonusElevateShopItemElement extends Components.BonusElevateShopItem, HTMLStencilElement {
|
|
81
|
+
addEventListener<K extends keyof HTMLBonusElevateShopItemElementEventMap>(type: K, listener: (this: HTMLBonusElevateShopItemElement, ev: BonusElevateShopItemCustomEvent<HTMLBonusElevateShopItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
82
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
83
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
84
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
85
|
+
removeEventListener<K extends keyof HTMLBonusElevateShopItemElementEventMap>(type: K, listener: (this: HTMLBonusElevateShopItemElement, ev: BonusElevateShopItemCustomEvent<HTMLBonusElevateShopItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
86
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
87
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
88
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
73
89
|
}
|
|
74
90
|
var HTMLBonusElevateShopItemElement: {
|
|
75
91
|
prototype: HTMLBonusElevateShopItemElement;
|
|
@@ -118,7 +134,7 @@ declare namespace LocalJSX {
|
|
|
118
134
|
* Currently selected language.
|
|
119
135
|
*/
|
|
120
136
|
"language"?: string;
|
|
121
|
-
"onRedeemGiftButton"?: (event:
|
|
137
|
+
"onRedeemGiftButton"?: (event: BonusElevateShopItemCustomEvent<Object>) => void;
|
|
122
138
|
/**
|
|
123
139
|
* session
|
|
124
140
|
*/
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export interface ElevateShopItemPresentation {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
assets?: Array<string>;
|
|
3
|
+
description?: string;
|
|
4
|
+
displayName?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface BonusElevateShopItemInfo {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
id: string;
|
|
8
|
+
available: string;
|
|
9
|
+
type: string;
|
|
10
|
+
bonusCode: string;
|
|
11
|
+
points: number;
|
|
12
|
+
monetaryValue: number;
|
|
13
|
+
excludeEarnedTypes: Array<string>;
|
|
14
|
+
displayName?: string;
|
|
15
|
+
presentation: ElevateShopItemPresentation;
|
|
16
16
|
}
|