@everymatrix/casino-engagement-suite-modal 1.44.0 → 1.45.2
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/casino-engagement-suite-modal/casino-engagement-suite-modal.esm.js +1 -1
- package/dist/casino-engagement-suite-modal/p-7b038275.js +2 -0
- package/dist/casino-engagement-suite-modal/p-bf1908e6.entry.js +1 -0
- package/dist/casino-engagement-suite-modal/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-modal.cjs.entry.js +55 -58
- package/dist/cjs/casino-engagement-suite-modal.cjs.js +16 -10
- package/dist/cjs/index-63e7fad0.js +1210 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-modal/casino-engagement-suite-modal.css +20 -17
- package/dist/collection/components/casino-engagement-suite-modal/casino-engagement-suite-modal.js +245 -252
- package/dist/collection/components/casino-engagement-suite-modal/index.js +1 -0
- package/dist/collection/utils/constants.js +2 -2
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-modal.entry.js +55 -58
- package/dist/esm/casino-engagement-suite-modal.js +13 -10
- package/dist/esm/index-9157b8d6.js +1182 -0
- package/dist/esm/loader.js +6 -12
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal/.stencil/packages/stencil/casino-engagement-suite-modal/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal/.stencil/packages/stencil/casino-engagement-suite-modal/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-modal/casino-engagement-suite-modal.d.ts +26 -26
- package/dist/types/components/casino-engagement-suite-modal/index.d.ts +1 -0
- package/dist/types/components.d.ts +16 -1
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/constants.d.ts +2 -2
- 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 +9 -2
- package/dist/casino-engagement-suite-modal/p-172f1972.entry.js +0 -1
- package/dist/casino-engagement-suite-modal/p-d68e9c79.js +0 -1
- package/dist/cjs/index-f0b55429.js +0 -1194
- package/dist/components/casino-engagement-suite-modal.d.ts +0 -11
- package/dist/components/casino-engagement-suite-modal.js +0 -94
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-263f8cbc.js +0 -1167
- 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/casino-engagement-suite-modal/.stencil/packages/casino-engagement-suite-modal/stencil.config.d.ts +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-63e7fad0.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const patchEsm = () => {
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
-
return patchEsm().then(() => {
|
|
8
|
+
const defineCustomElements = async (win, options) => {
|
|
9
|
+
if (typeof window === 'undefined') return undefined;
|
|
10
|
+
await appGlobals.globalScripts();
|
|
17
11
|
return index.bootstrapLazy([["casino-engagement-suite-modal.cjs",[[1,"casino-engagement-suite-modal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[4,"is-open"],"isLoading":[1028,"is-loading"],"header":[1],"contentIcon":[1,"content-icon"],"modalType":[1,"modal-type"],"device":[1],"showAnimation":[4,"show-animation"],"limitStylingAppends":[32]}]]]], options);
|
|
18
|
-
});
|
|
19
12
|
};
|
|
20
13
|
|
|
14
|
+
exports.setNonce = index.setNonce;
|
|
21
15
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"
|
|
3
|
+
"components/casino-engagement-suite-modal/casino-engagement-suite-modal.js"
|
|
4
4
|
],
|
|
5
5
|
"compiler": {
|
|
6
6
|
"name": "@stencil/core",
|
|
7
|
-
"version": "
|
|
8
|
-
"typescriptVersion": "
|
|
7
|
+
"version": "4.20.0",
|
|
8
|
+
"typescriptVersion": "5.5.3"
|
|
9
9
|
},
|
|
10
10
|
"collections": [],
|
|
11
11
|
"bundles": []
|
package/dist/collection/components/casino-engagement-suite-modal/casino-engagement-suite-modal.css
CHANGED
|
@@ -19,6 +19,14 @@ button:focus {
|
|
|
19
19
|
outline: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.EngagementSuiteIconButton {
|
|
23
|
+
width: 24px;
|
|
24
|
+
height: 24px;
|
|
25
|
+
}
|
|
26
|
+
.EngagementSuiteIconButton.Close {
|
|
27
|
+
background: center/100% url(https://static.everymatrix.com/gic/img/engagement-suite/close.svg) no-repeat;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
.ModalOverlay {
|
|
23
31
|
display: none;
|
|
24
32
|
position: fixed;
|
|
@@ -29,6 +37,7 @@ button:focus {
|
|
|
29
37
|
background-color: rgba(0, 0, 0, 0.5);
|
|
30
38
|
justify-content: center;
|
|
31
39
|
align-items: center;
|
|
40
|
+
z-index: 1;
|
|
32
41
|
}
|
|
33
42
|
|
|
34
43
|
.ModalOverlay.Open {
|
|
@@ -41,11 +50,6 @@ button:focus {
|
|
|
41
50
|
justify-content: end;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
|
-
.IconCloseButton img {
|
|
45
|
-
width: 24px;
|
|
46
|
-
height: 24px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
53
|
.ModalBodyWrapper {
|
|
50
54
|
flex: 1;
|
|
51
55
|
min-height: 0;
|
|
@@ -57,20 +61,20 @@ button:focus {
|
|
|
57
61
|
background: none;
|
|
58
62
|
}
|
|
59
63
|
.ModalBodyWrapper::-webkit-scrollbar-thumb {
|
|
60
|
-
border-radius: 4px;
|
|
61
|
-
background-color: var(--emw--color-
|
|
64
|
+
border-radius: var(--emw--border-radius-small, 4px);
|
|
65
|
+
background-color: var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3));
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
.ModalContent {
|
|
65
69
|
display: flex;
|
|
66
70
|
flex-direction: column;
|
|
67
71
|
align-items: center;
|
|
68
|
-
font-family: "Montserrat", sans-serif;
|
|
72
|
+
font-family: var(--emw--font-family-secondary, "Montserrat", sans-serif);
|
|
69
73
|
position: relative;
|
|
70
74
|
color: var(--emw--color-typography, #FFFFFF);
|
|
71
75
|
background-color: var(--emw--color-background, #1E1638);
|
|
72
76
|
padding: 24px;
|
|
73
|
-
border-radius: 8px;
|
|
77
|
+
border-radius: var(--emw--border-radius-large, 8px);
|
|
74
78
|
width: 450px;
|
|
75
79
|
max-width: 100%;
|
|
76
80
|
text-align: center;
|
|
@@ -84,14 +88,14 @@ button:focus {
|
|
|
84
88
|
left: -1px;
|
|
85
89
|
right: -1px;
|
|
86
90
|
bottom: -1px;
|
|
87
|
-
border-radius: 9px;
|
|
91
|
+
border-radius: var(--emw--border-radius-large, 9px);
|
|
88
92
|
background: linear-gradient(143.2deg, #FF9401 -0.41%, #FFD32D 45.61%, #FF9401 82.77%);
|
|
89
93
|
z-index: -1;
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
.ModalHeader h1 {
|
|
93
97
|
font-weight: var(--emw--font-weight-semibold, 600);
|
|
94
|
-
font-size: var(--emw--font-size-large, 24px);
|
|
98
|
+
font-size: var(--emw--font-size-large-plus, 24px);
|
|
95
99
|
padding: 0 16px;
|
|
96
100
|
margin-bottom: 16px;
|
|
97
101
|
}
|
|
@@ -105,10 +109,9 @@ button:focus {
|
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
.ModalBody {
|
|
108
|
-
font-size: 16px;
|
|
109
|
-
font-family: "Inter", sans-serif;
|
|
112
|
+
font-size: var(--emw--font-size-medium, 16px);
|
|
110
113
|
font-weight: var(--emw--font-weight-normal, 400);
|
|
111
|
-
color: var(--emw--color-
|
|
114
|
+
color: var(--emw--color-secondary, #BBB9C3);
|
|
112
115
|
padding: 0 16px;
|
|
113
116
|
}
|
|
114
117
|
|
|
@@ -138,19 +141,19 @@ button:focus {
|
|
|
138
141
|
animation: 6s rotate linear infinite;
|
|
139
142
|
}
|
|
140
143
|
|
|
141
|
-
.ModalOverlay.Mobile .
|
|
144
|
+
.ModalOverlay.Mobile .EngagementSuiteIconButton {
|
|
142
145
|
width: 16px;
|
|
143
146
|
height: 16px;
|
|
144
147
|
}
|
|
145
148
|
.ModalOverlay.Mobile .ModalBody {
|
|
146
|
-
font-size: 14px;
|
|
149
|
+
font-size: var(--emw--font-size-small, 14px);
|
|
147
150
|
}
|
|
148
151
|
.ModalOverlay.Mobile .ModalContent {
|
|
149
152
|
width: 318px;
|
|
150
153
|
padding: 12px;
|
|
151
154
|
}
|
|
152
155
|
.ModalOverlay.Mobile .ModalHeader h1 {
|
|
153
|
-
font-size: 20px;
|
|
156
|
+
font-size: var(--emw--font-size-large, 20px);
|
|
154
157
|
padding: 0 60px;
|
|
155
158
|
}
|
|
156
159
|
.ModalOverlay.Mobile.ShowAnimation .ModalWinAnimation {
|
package/dist/collection/components/casino-engagement-suite-modal/casino-engagement-suite-modal.js
CHANGED
|
@@ -1,256 +1,249 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class CasinoEngagementSuiteModal {
|
|
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
|
-
|
|
37
|
-
.catch((err) => {
|
|
38
|
-
console.log('Error ', err);
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
componentDidRender() {
|
|
43
|
-
if (!this.limitStylingAppends && this.host) {
|
|
44
|
-
if (this.clientStyling)
|
|
45
|
-
this.setClientStyling();
|
|
46
|
-
if (this.clientStylingUrl)
|
|
47
|
-
this.setClientStylingURL();
|
|
48
|
-
this.limitStylingAppends = true;
|
|
3
|
+
constructor() {
|
|
4
|
+
this.handleCloseClick = () => {
|
|
5
|
+
if (this.isLoading)
|
|
6
|
+
return;
|
|
7
|
+
this.closeModal.emit(this.modalType);
|
|
8
|
+
};
|
|
9
|
+
this.setClientStyling = () => {
|
|
10
|
+
let sheet = document.createElement('style');
|
|
11
|
+
sheet.innerHTML = this.clientStyling;
|
|
12
|
+
this.host.prepend(sheet);
|
|
13
|
+
};
|
|
14
|
+
this.setClientStylingURL = () => {
|
|
15
|
+
let url = new URL(this.clientStylingUrl);
|
|
16
|
+
let cssFile = document.createElement('style');
|
|
17
|
+
fetch(url.href)
|
|
18
|
+
.then((res) => res.text())
|
|
19
|
+
.then((data) => {
|
|
20
|
+
cssFile.innerHTML = data;
|
|
21
|
+
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
22
|
+
})
|
|
23
|
+
.catch((err) => {
|
|
24
|
+
console.log('Error ', err);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
this.clientStyling = '';
|
|
28
|
+
this.clientStylingUrl = '';
|
|
29
|
+
this.isOpen = undefined;
|
|
30
|
+
this.isLoading = undefined;
|
|
31
|
+
this.header = undefined;
|
|
32
|
+
this.contentIcon = undefined;
|
|
33
|
+
this.modalType = undefined;
|
|
34
|
+
this.device = 'Mobile';
|
|
35
|
+
this.showAnimation = false;
|
|
36
|
+
this.limitStylingAppends = false;
|
|
49
37
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.contentIcon ? (h("div", { class: "ModalIcon", style: {
|
|
59
|
-
background: `url(${this.contentIcon}) no-repeat center, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%)`
|
|
60
|
-
} })) : null,
|
|
61
|
-
h("div", { class: "ModalHeader" },
|
|
62
|
-
h("h1", null, this.header)),
|
|
63
|
-
h("div", { class: "ModalBodyWrapper" },
|
|
64
|
-
h("div", { class: "ModalBody" },
|
|
65
|
-
h("slot", { name: "body" })),
|
|
66
|
-
h("div", { class: "ModalFooter" },
|
|
67
|
-
h("slot", { name: "footer" }))))));
|
|
68
|
-
}
|
|
69
|
-
static get is() { return "casino-engagement-suite-modal"; }
|
|
70
|
-
static get encapsulation() { return "shadow"; }
|
|
71
|
-
static get originalStyleUrls() { return {
|
|
72
|
-
"$": ["casino-engagement-suite-modal.scss"]
|
|
73
|
-
}; }
|
|
74
|
-
static get styleUrls() { return {
|
|
75
|
-
"$": ["casino-engagement-suite-modal.css"]
|
|
76
|
-
}; }
|
|
77
|
-
static get properties() { return {
|
|
78
|
-
"clientStyling": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"mutable": false,
|
|
81
|
-
"complexType": {
|
|
82
|
-
"original": "string",
|
|
83
|
-
"resolved": "string",
|
|
84
|
-
"references": {}
|
|
85
|
-
},
|
|
86
|
-
"required": false,
|
|
87
|
-
"optional": false,
|
|
88
|
-
"docs": {
|
|
89
|
-
"tags": [],
|
|
90
|
-
"text": "Client custom styling via string"
|
|
91
|
-
},
|
|
92
|
-
"attribute": "client-styling",
|
|
93
|
-
"reflect": true,
|
|
94
|
-
"defaultValue": "''"
|
|
95
|
-
},
|
|
96
|
-
"clientStylingUrl": {
|
|
97
|
-
"type": "string",
|
|
98
|
-
"mutable": false,
|
|
99
|
-
"complexType": {
|
|
100
|
-
"original": "string",
|
|
101
|
-
"resolved": "string",
|
|
102
|
-
"references": {}
|
|
103
|
-
},
|
|
104
|
-
"required": false,
|
|
105
|
-
"optional": false,
|
|
106
|
-
"docs": {
|
|
107
|
-
"tags": [],
|
|
108
|
-
"text": "Client custom styling via url"
|
|
109
|
-
},
|
|
110
|
-
"attribute": "client-styling-url",
|
|
111
|
-
"reflect": true,
|
|
112
|
-
"defaultValue": "''"
|
|
113
|
-
},
|
|
114
|
-
"isOpen": {
|
|
115
|
-
"type": "boolean",
|
|
116
|
-
"mutable": false,
|
|
117
|
-
"complexType": {
|
|
118
|
-
"original": "boolean",
|
|
119
|
-
"resolved": "boolean",
|
|
120
|
-
"references": {}
|
|
121
|
-
},
|
|
122
|
-
"required": false,
|
|
123
|
-
"optional": false,
|
|
124
|
-
"docs": {
|
|
125
|
-
"tags": [],
|
|
126
|
-
"text": ""
|
|
127
|
-
},
|
|
128
|
-
"attribute": "is-open",
|
|
129
|
-
"reflect": false
|
|
130
|
-
},
|
|
131
|
-
"isLoading": {
|
|
132
|
-
"type": "boolean",
|
|
133
|
-
"mutable": true,
|
|
134
|
-
"complexType": {
|
|
135
|
-
"original": "boolean",
|
|
136
|
-
"resolved": "boolean",
|
|
137
|
-
"references": {}
|
|
138
|
-
},
|
|
139
|
-
"required": false,
|
|
140
|
-
"optional": false,
|
|
141
|
-
"docs": {
|
|
142
|
-
"tags": [],
|
|
143
|
-
"text": ""
|
|
144
|
-
},
|
|
145
|
-
"attribute": "is-loading",
|
|
146
|
-
"reflect": false
|
|
147
|
-
},
|
|
148
|
-
"header": {
|
|
149
|
-
"type": "string",
|
|
150
|
-
"mutable": false,
|
|
151
|
-
"complexType": {
|
|
152
|
-
"original": "string",
|
|
153
|
-
"resolved": "string",
|
|
154
|
-
"references": {}
|
|
155
|
-
},
|
|
156
|
-
"required": false,
|
|
157
|
-
"optional": false,
|
|
158
|
-
"docs": {
|
|
159
|
-
"tags": [],
|
|
160
|
-
"text": ""
|
|
161
|
-
},
|
|
162
|
-
"attribute": "header",
|
|
163
|
-
"reflect": false
|
|
164
|
-
},
|
|
165
|
-
"contentIcon": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"mutable": false,
|
|
168
|
-
"complexType": {
|
|
169
|
-
"original": "string",
|
|
170
|
-
"resolved": "string",
|
|
171
|
-
"references": {}
|
|
172
|
-
},
|
|
173
|
-
"required": false,
|
|
174
|
-
"optional": false,
|
|
175
|
-
"docs": {
|
|
176
|
-
"tags": [],
|
|
177
|
-
"text": ""
|
|
178
|
-
},
|
|
179
|
-
"attribute": "content-icon",
|
|
180
|
-
"reflect": false
|
|
181
|
-
},
|
|
182
|
-
"modalType": {
|
|
183
|
-
"type": "string",
|
|
184
|
-
"mutable": false,
|
|
185
|
-
"complexType": {
|
|
186
|
-
"original": "string",
|
|
187
|
-
"resolved": "string",
|
|
188
|
-
"references": {}
|
|
189
|
-
},
|
|
190
|
-
"required": false,
|
|
191
|
-
"optional": false,
|
|
192
|
-
"docs": {
|
|
193
|
-
"tags": [],
|
|
194
|
-
"text": ""
|
|
195
|
-
},
|
|
196
|
-
"attribute": "modal-type",
|
|
197
|
-
"reflect": false
|
|
198
|
-
},
|
|
199
|
-
"device": {
|
|
200
|
-
"type": "string",
|
|
201
|
-
"mutable": false,
|
|
202
|
-
"complexType": {
|
|
203
|
-
"original": "\"Mobile\" | \"Tablet\" | \"Desktop\"",
|
|
204
|
-
"resolved": "\"Desktop\" | \"Mobile\" | \"Tablet\"",
|
|
205
|
-
"references": {}
|
|
206
|
-
},
|
|
207
|
-
"required": false,
|
|
208
|
-
"optional": false,
|
|
209
|
-
"docs": {
|
|
210
|
-
"tags": [],
|
|
211
|
-
"text": ""
|
|
212
|
-
},
|
|
213
|
-
"attribute": "device",
|
|
214
|
-
"reflect": false,
|
|
215
|
-
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
216
|
-
},
|
|
217
|
-
"showAnimation": {
|
|
218
|
-
"type": "boolean",
|
|
219
|
-
"mutable": false,
|
|
220
|
-
"complexType": {
|
|
221
|
-
"original": "boolean",
|
|
222
|
-
"resolved": "boolean",
|
|
223
|
-
"references": {}
|
|
224
|
-
},
|
|
225
|
-
"required": false,
|
|
226
|
-
"optional": false,
|
|
227
|
-
"docs": {
|
|
228
|
-
"tags": [],
|
|
229
|
-
"text": "Show win animation"
|
|
230
|
-
},
|
|
231
|
-
"attribute": "show-animation",
|
|
232
|
-
"reflect": false,
|
|
233
|
-
"defaultValue": "false"
|
|
38
|
+
componentDidRender() {
|
|
39
|
+
if (!this.limitStylingAppends && this.host) {
|
|
40
|
+
if (this.clientStyling)
|
|
41
|
+
this.setClientStyling();
|
|
42
|
+
if (this.clientStylingUrl)
|
|
43
|
+
this.setClientStylingURL();
|
|
44
|
+
this.limitStylingAppends = true;
|
|
45
|
+
}
|
|
234
46
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
47
|
+
render() {
|
|
48
|
+
return (h("div", { key: '570a2289e990efeae5cceac8bc2152cbb9bb5221', class: `ModalOverlay ${this.isOpen && 'Open'} ${this.device} ${this.showAnimation && 'ShowAnimation'}` }, h("div", { key: '9d40898f29b5a539907a7e50f3fdee02636aced6', class: "ModalWinAnimation" }), h("div", { key: '724ffe5cd946b40aa12f99ac926a6c832c1633da', class: "ModalContent GradientBorder" }, h("div", { key: '14bb1463ba0b5e9cdb545a81c13873a3e124f4c3', class: 'IconCloseContainer' }, h("button", { key: '1640c3c0881c65199a26f3f2217610189d626f91', class: "EngagementSuiteIconButton Close", onClick: this.handleCloseClick })), this.contentIcon ? (h("div", { class: "ModalIcon", style: {
|
|
49
|
+
background: `url(${this.contentIcon}) no-repeat center, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%)`
|
|
50
|
+
} })) : null, h("div", { key: 'c49ddc1152bb9c8af76ff11874816da8477ba821', class: "ModalHeader" }, h("h1", { key: '08352f25028b0b08c2c1a77b91ea80cc968aa4e1' }, this.header)), h("div", { key: '3420427d531aceb3861c1876394443ad664ff68b', class: "ModalBodyWrapper" }, h("div", { key: '3e453586b727029f5fca9688b376d4b3e8298dbf', class: "ModalBody" }, h("slot", { key: '0d82c3fa9b0faa9012005ccca85350313a684326', name: "body" })), h("div", { key: '9e7a078e4c912869f2e3573a533bb3cf82454a4c', class: "ModalFooter" }, h("slot", { key: 'df8e0568aeca79889cf8eb8f7fb33caf685b092e', name: "footer" }))))));
|
|
51
|
+
}
|
|
52
|
+
static get is() { return "casino-engagement-suite-modal"; }
|
|
53
|
+
static get encapsulation() { return "shadow"; }
|
|
54
|
+
static get originalStyleUrls() {
|
|
55
|
+
return {
|
|
56
|
+
"$": ["casino-engagement-suite-modal.scss"]
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
static get styleUrls() {
|
|
60
|
+
return {
|
|
61
|
+
"$": ["casino-engagement-suite-modal.css"]
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static get properties() {
|
|
65
|
+
return {
|
|
66
|
+
"clientStyling": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "string",
|
|
71
|
+
"resolved": "string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "Client custom styling via string"
|
|
79
|
+
},
|
|
80
|
+
"attribute": "client-styling",
|
|
81
|
+
"reflect": true,
|
|
82
|
+
"defaultValue": "''"
|
|
83
|
+
},
|
|
84
|
+
"clientStylingUrl": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": "Client custom styling via url"
|
|
97
|
+
},
|
|
98
|
+
"attribute": "client-styling-url",
|
|
99
|
+
"reflect": true,
|
|
100
|
+
"defaultValue": "''"
|
|
101
|
+
},
|
|
102
|
+
"isOpen": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "boolean",
|
|
107
|
+
"resolved": "boolean",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": ""
|
|
115
|
+
},
|
|
116
|
+
"attribute": "is-open",
|
|
117
|
+
"reflect": false
|
|
118
|
+
},
|
|
119
|
+
"isLoading": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"mutable": true,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "boolean",
|
|
124
|
+
"resolved": "boolean",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "is-loading",
|
|
134
|
+
"reflect": false
|
|
135
|
+
},
|
|
136
|
+
"header": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": ""
|
|
149
|
+
},
|
|
150
|
+
"attribute": "header",
|
|
151
|
+
"reflect": false
|
|
152
|
+
},
|
|
153
|
+
"contentIcon": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "string",
|
|
158
|
+
"resolved": "string",
|
|
159
|
+
"references": {}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": false,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [],
|
|
165
|
+
"text": ""
|
|
166
|
+
},
|
|
167
|
+
"attribute": "content-icon",
|
|
168
|
+
"reflect": false
|
|
169
|
+
},
|
|
170
|
+
"modalType": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": ""
|
|
183
|
+
},
|
|
184
|
+
"attribute": "modal-type",
|
|
185
|
+
"reflect": false
|
|
186
|
+
},
|
|
187
|
+
"device": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "\"Mobile\" | \"Tablet\" | \"Desktop\"",
|
|
192
|
+
"resolved": "\"Desktop\" | \"Mobile\" | \"Tablet\"",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": ""
|
|
200
|
+
},
|
|
201
|
+
"attribute": "device",
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
204
|
+
},
|
|
205
|
+
"showAnimation": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "boolean",
|
|
210
|
+
"resolved": "boolean",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": false,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "Show win animation"
|
|
218
|
+
},
|
|
219
|
+
"attribute": "show-animation",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "false"
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
static get states() {
|
|
226
|
+
return {
|
|
227
|
+
"limitStylingAppends": {}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
static get events() {
|
|
231
|
+
return [{
|
|
232
|
+
"method": "closeModal",
|
|
233
|
+
"name": "closeModal",
|
|
234
|
+
"bubbles": true,
|
|
235
|
+
"cancelable": true,
|
|
236
|
+
"composed": true,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "any",
|
|
243
|
+
"resolved": "any",
|
|
244
|
+
"references": {}
|
|
245
|
+
}
|
|
246
|
+
}];
|
|
247
|
+
}
|
|
248
|
+
static get elementRef() { return "host"; }
|
|
256
249
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteModal } from './casino-engagement-suite-modal';
|