@everymatrix/lottery-game-details 1.31.2 → 1.32.4
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/LICENSE +21 -0
- package/package.json +5 -4
- package/dist/cjs/helper-accordion_4.cjs.entry.js +0 -308
- package/dist/cjs/index-0355373c.js +0 -1196
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/lottery-game-details.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -26
- package/dist/collection/components/lottery-game-details/lottery-game-details.css +0 -3
- package/dist/collection/components/lottery-game-details/lottery-game-details.js +0 -94
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/utils.js +0 -3
- package/dist/components/helper-accordion.js +0 -6
- package/dist/components/helper-accordion2.js +0 -159
- package/dist/components/helper-tab.js +0 -6
- package/dist/components/helper-tab2.js +0 -86
- package/dist/components/helper-tabs.js +0 -6
- package/dist/components/helper-tabs2.js +0 -102
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-game-details.d.ts +0 -11
- package/dist/components/lottery-game-details.js +0 -87
- package/dist/esm/helper-accordion_4.entry.js +0 -301
- package/dist/esm/index-627fc49c.js +0 -1169
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/lottery-game-details.js +0 -17
- 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/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/lottery-game-details/index.esm.js +0 -0
- package/dist/lottery-game-details/lottery-game-details.esm.js +0 -1
- package/dist/lottery-game-details/p-2f7fadf1.entry.js +0 -1
- package/dist/lottery-game-details/p-ca6b7fee.js +0 -1
- package/dist/stencil.config.js +0 -22
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/lottery-game-details/.stencil/packages/lottery-game-details/stencil.config.d.ts +0 -2
- package/dist/types/components/lottery-game-details/lottery-game-details.d.ts +0 -18
- package/dist/types/components.d.ts +0 -53
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/utils.d.ts +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$4 } from './helper-accordion2.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './helper-tab2.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './helper-tabs2.js';
|
|
5
|
-
|
|
6
|
-
const lotteryGameDetailsCss = ":host{display:block}";
|
|
7
|
-
|
|
8
|
-
const LotteryGameDetails$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
/**
|
|
14
|
-
* Client custom styling via string
|
|
15
|
-
*/
|
|
16
|
-
this.clientStyling = '';
|
|
17
|
-
/**
|
|
18
|
-
* Client custom styling via url content
|
|
19
|
-
*/
|
|
20
|
-
this.clientStylingUrlContent = '';
|
|
21
|
-
this.limitStylingAppends = false;
|
|
22
|
-
this.setClientStyling = () => {
|
|
23
|
-
let sheet = document.createElement('style');
|
|
24
|
-
sheet.innerHTML = this.clientStyling;
|
|
25
|
-
this.stylingContainer.prepend(sheet);
|
|
26
|
-
};
|
|
27
|
-
this.setClientStylingURL = () => {
|
|
28
|
-
let cssFile = document.createElement('style');
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
31
|
-
this.stylingContainer.prepend(cssFile);
|
|
32
|
-
}, 1);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
componentDidRender() {
|
|
36
|
-
// start custom styling area
|
|
37
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
38
|
-
if (this.clientStyling)
|
|
39
|
-
this.setClientStyling();
|
|
40
|
-
if (this.clientStylingUrlContent)
|
|
41
|
-
this.setClientStylingURL();
|
|
42
|
-
this.limitStylingAppends = true;
|
|
43
|
-
}
|
|
44
|
-
// end custom styling area
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
return (h("div", { class: "GamePageDetailsContainer", ref: el => this.stylingContainer = el }, h("helper-accordion", { "header-title": "Game Details", collapsed: false, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { class: "AccordionContainer", slot: "accordionContent" }, h("helper-tabs", { "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
48
|
-
}
|
|
49
|
-
static get style() { return lotteryGameDetailsCss; }
|
|
50
|
-
}, [1, "lottery-game-details", {
|
|
51
|
-
"clientStyling": [513, "client-styling"],
|
|
52
|
-
"clientStylingUrlContent": [513, "client-styling-url-content"],
|
|
53
|
-
"limitStylingAppends": [32]
|
|
54
|
-
}]);
|
|
55
|
-
function defineCustomElement$1() {
|
|
56
|
-
if (typeof customElements === "undefined") {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const components = ["lottery-game-details", "helper-accordion", "helper-tab", "helper-tabs"];
|
|
60
|
-
components.forEach(tagName => { switch (tagName) {
|
|
61
|
-
case "lottery-game-details":
|
|
62
|
-
if (!customElements.get(tagName)) {
|
|
63
|
-
customElements.define(tagName, LotteryGameDetails$1);
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
case "helper-accordion":
|
|
67
|
-
if (!customElements.get(tagName)) {
|
|
68
|
-
defineCustomElement$4();
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
case "helper-tab":
|
|
72
|
-
if (!customElements.get(tagName)) {
|
|
73
|
-
defineCustomElement$3();
|
|
74
|
-
}
|
|
75
|
-
break;
|
|
76
|
-
case "helper-tabs":
|
|
77
|
-
if (!customElements.get(tagName)) {
|
|
78
|
-
defineCustomElement$2();
|
|
79
|
-
}
|
|
80
|
-
break;
|
|
81
|
-
} });
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const LotteryGameDetails = LotteryGameDetails$1;
|
|
85
|
-
const defineCustomElement = defineCustomElement$1;
|
|
86
|
-
|
|
87
|
-
export { LotteryGameDetails, defineCustomElement };
|
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-627fc49c.js';
|
|
2
|
-
|
|
3
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
5
|
-
const TRANSLATIONS = {
|
|
6
|
-
en: {
|
|
7
|
-
deleteTicket: 'Delete ticket'
|
|
8
|
-
},
|
|
9
|
-
ro: {
|
|
10
|
-
deleteTicket: 'Sterge biletul'
|
|
11
|
-
},
|
|
12
|
-
fr: {
|
|
13
|
-
deleteTicket: 'Supprimer le billet'
|
|
14
|
-
},
|
|
15
|
-
ar: {
|
|
16
|
-
deleteTicket: 'حذف التذكرة'
|
|
17
|
-
},
|
|
18
|
-
hr: {
|
|
19
|
-
deleteTicket: 'Izbriši listić'
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
const translate = (key, customLang) => {
|
|
23
|
-
const lang = customLang;
|
|
24
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const helperAccordionCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Header{border-radius:5px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:1px;cursor:pointer}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff;text-transform:capitalize}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px;cursor:pointer}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
28
|
-
|
|
29
|
-
const Accordion = class {
|
|
30
|
-
constructor(hostRef) {
|
|
31
|
-
registerInstance(this, hostRef);
|
|
32
|
-
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
33
|
-
/**
|
|
34
|
-
* Flag for ticket history
|
|
35
|
-
*/
|
|
36
|
-
this.ticketHistoryFlag = false;
|
|
37
|
-
/**
|
|
38
|
-
* Title (top header)
|
|
39
|
-
*/
|
|
40
|
-
this.headerTitle = '';
|
|
41
|
-
/**
|
|
42
|
-
* SubTitle (top header)
|
|
43
|
-
*/
|
|
44
|
-
this.headerSubtitle = '';
|
|
45
|
-
/**
|
|
46
|
-
* Description
|
|
47
|
-
*/
|
|
48
|
-
this.description = '';
|
|
49
|
-
/**
|
|
50
|
-
* Enables footer content
|
|
51
|
-
*/
|
|
52
|
-
this.footer = false;
|
|
53
|
-
/**
|
|
54
|
-
* Enables footer button for tab deletion
|
|
55
|
-
*/
|
|
56
|
-
this.deleteTab = false;
|
|
57
|
-
/**
|
|
58
|
-
* Activates postMessages as events for actions from the widget
|
|
59
|
-
*/
|
|
60
|
-
this.postMessage = false;
|
|
61
|
-
/**
|
|
62
|
-
* Name of the event emitter by the action button
|
|
63
|
-
*/
|
|
64
|
-
this.eventName = 'helperAccordionAction';
|
|
65
|
-
/**
|
|
66
|
-
* Collapsed
|
|
67
|
-
*/
|
|
68
|
-
this.collapsed = true;
|
|
69
|
-
/**
|
|
70
|
-
* Language
|
|
71
|
-
*/
|
|
72
|
-
this.language = 'en';
|
|
73
|
-
/**
|
|
74
|
-
* Client custom styling via string
|
|
75
|
-
*/
|
|
76
|
-
this.clientStyling = '';
|
|
77
|
-
/**
|
|
78
|
-
* Client custom styling via url content
|
|
79
|
-
*/
|
|
80
|
-
this.clientStylingUrlContent = '';
|
|
81
|
-
this.limitStylingAppends = false;
|
|
82
|
-
this.setClientStyling = () => {
|
|
83
|
-
let sheet = document.createElement('style');
|
|
84
|
-
sheet.innerHTML = this.clientStyling;
|
|
85
|
-
this.stylingContainer.prepend(sheet);
|
|
86
|
-
};
|
|
87
|
-
this.setClientStylingURL = () => {
|
|
88
|
-
let cssFile = document.createElement('style');
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
91
|
-
this.stylingContainer.prepend(cssFile);
|
|
92
|
-
}, 1);
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
// @TODO fix the `any` type :)
|
|
96
|
-
connectedCallback() {
|
|
97
|
-
this.showContent = !this.collapsed;
|
|
98
|
-
}
|
|
99
|
-
componentDidRender() {
|
|
100
|
-
// start custom styling area
|
|
101
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
102
|
-
if (this.clientStyling)
|
|
103
|
-
this.setClientStyling();
|
|
104
|
-
if (this.clientStylingUrlContent)
|
|
105
|
-
this.setClientStylingURL();
|
|
106
|
-
this.limitStylingAppends = true;
|
|
107
|
-
}
|
|
108
|
-
// end custom styling area
|
|
109
|
-
}
|
|
110
|
-
toggleContent() {
|
|
111
|
-
this.showContent = !this.showContent;
|
|
112
|
-
}
|
|
113
|
-
deleteAction() {
|
|
114
|
-
if (this.postMessage) {
|
|
115
|
-
// @TODO maybe change the name type, this one sucks
|
|
116
|
-
window.postMessage({ type: this.eventName }, window.location.href);
|
|
117
|
-
}
|
|
118
|
-
this.accordionEvent.emit();
|
|
119
|
-
}
|
|
120
|
-
render() {
|
|
121
|
-
return (h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle Description" }, this.description), h("span", { class: "Expand" }, this.showContent ? '<' : '>')), this.showContent &&
|
|
122
|
-
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
123
|
-
h("div", null, this.deleteTab &&
|
|
124
|
-
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
Accordion.style = helperAccordionCss;
|
|
128
|
-
|
|
129
|
-
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
130
|
-
|
|
131
|
-
const HelperTab = class {
|
|
132
|
-
constructor(hostRef) {
|
|
133
|
-
registerInstance(this, hostRef);
|
|
134
|
-
/**
|
|
135
|
-
* Selected index
|
|
136
|
-
*/
|
|
137
|
-
this.selectedIndex = 0;
|
|
138
|
-
/**
|
|
139
|
-
* Client custom styling via string
|
|
140
|
-
*/
|
|
141
|
-
this.clientStyling = '';
|
|
142
|
-
/**
|
|
143
|
-
* Client custom styling via url content
|
|
144
|
-
*/
|
|
145
|
-
this.clientStylingUrlContent = '';
|
|
146
|
-
this.tabContent = '';
|
|
147
|
-
this.limitStylingAppends = false;
|
|
148
|
-
this.setClientStyling = () => {
|
|
149
|
-
let sheet = document.createElement('style');
|
|
150
|
-
sheet.innerHTML = this.clientStyling;
|
|
151
|
-
this.stylingContainer.prepend(sheet);
|
|
152
|
-
};
|
|
153
|
-
this.setClientStylingURL = () => {
|
|
154
|
-
let cssFile = document.createElement('style');
|
|
155
|
-
setTimeout(() => {
|
|
156
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
157
|
-
this.stylingContainer.prepend(cssFile);
|
|
158
|
-
}, 1);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
connectedCallback() {
|
|
162
|
-
/**
|
|
163
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
164
|
-
*/
|
|
165
|
-
}
|
|
166
|
-
componentDidRender() {
|
|
167
|
-
// start custom styling area
|
|
168
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
169
|
-
if (this.clientStyling)
|
|
170
|
-
this.setClientStyling();
|
|
171
|
-
if (this.clientStylingUrlContent)
|
|
172
|
-
this.setClientStylingURL();
|
|
173
|
-
this.limitStylingAppends = true;
|
|
174
|
-
}
|
|
175
|
-
// end custom styling area
|
|
176
|
-
}
|
|
177
|
-
render() {
|
|
178
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, "Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.");
|
|
179
|
-
if (this.selectedIndex + 1 == 2) {
|
|
180
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", null, h("li", null, "Register or Login"), h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
|
|
181
|
-
}
|
|
182
|
-
else if (this.selectedIndex + 1 == 3) {
|
|
183
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", null, h("li", null, "What are my odds of winning?"), h("li", null, "How can I find out if I\u2019ve won a draw game?"), h("li", null, "How do I claim my prize?")));
|
|
184
|
-
}
|
|
185
|
-
return (this.tabContent);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
HelperTab.style = helperTabCss;
|
|
189
|
-
|
|
190
|
-
const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
|
|
191
|
-
|
|
192
|
-
const HelperTabs = class {
|
|
193
|
-
constructor(hostRef) {
|
|
194
|
-
registerInstance(this, hostRef);
|
|
195
|
-
/**
|
|
196
|
-
* Tell me if it is disabled
|
|
197
|
-
*/
|
|
198
|
-
this.disabled = false;
|
|
199
|
-
/**
|
|
200
|
-
* Tell me what tab is selected
|
|
201
|
-
*/
|
|
202
|
-
this.selected = false;
|
|
203
|
-
/**
|
|
204
|
-
* Default selected index
|
|
205
|
-
*/
|
|
206
|
-
this.selectedIndex = 0;
|
|
207
|
-
/**
|
|
208
|
-
* Tabs details
|
|
209
|
-
*/
|
|
210
|
-
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
211
|
-
/**
|
|
212
|
-
* Client custom styling via string
|
|
213
|
-
*/
|
|
214
|
-
this.clientStyling = '';
|
|
215
|
-
/**
|
|
216
|
-
* Client custom styling via url
|
|
217
|
-
*/
|
|
218
|
-
this.clientStylingurl = '';
|
|
219
|
-
/**
|
|
220
|
-
* Client custom styling via url content
|
|
221
|
-
*/
|
|
222
|
-
this.clientStylingUrlContent = '';
|
|
223
|
-
this.limitStylingAppends = false;
|
|
224
|
-
this.setClientStyling = () => {
|
|
225
|
-
let sheet = document.createElement('style');
|
|
226
|
-
sheet.innerHTML = this.clientStyling;
|
|
227
|
-
this.stylingContainer.prepend(sheet);
|
|
228
|
-
};
|
|
229
|
-
this.setClientStylingURL = () => {
|
|
230
|
-
let cssFile = document.createElement('style');
|
|
231
|
-
setTimeout(() => {
|
|
232
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
233
|
-
this.stylingContainer.prepend(cssFile);
|
|
234
|
-
}, 1);
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
connectedCallback() {
|
|
238
|
-
}
|
|
239
|
-
componentDidRender() {
|
|
240
|
-
// start custom styling area
|
|
241
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
242
|
-
this.setClientStyling();
|
|
243
|
-
if (this.clientStylingUrlContent) {
|
|
244
|
-
this.setClientStylingURL();
|
|
245
|
-
}
|
|
246
|
-
this.limitStylingAppends = true;
|
|
247
|
-
}
|
|
248
|
-
// end custom styling area
|
|
249
|
-
}
|
|
250
|
-
render() {
|
|
251
|
-
return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", null, h("helper-tab", { selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
252
|
-
}
|
|
253
|
-
get host() { return getElement(this); }
|
|
254
|
-
};
|
|
255
|
-
HelperTabs.style = helperTabsCss;
|
|
256
|
-
|
|
257
|
-
const lotteryGameDetailsCss = ":host{display:block}";
|
|
258
|
-
|
|
259
|
-
const LotteryGameDetails = class {
|
|
260
|
-
constructor(hostRef) {
|
|
261
|
-
registerInstance(this, hostRef);
|
|
262
|
-
/**
|
|
263
|
-
* Client custom styling via string
|
|
264
|
-
*/
|
|
265
|
-
this.clientStyling = '';
|
|
266
|
-
/**
|
|
267
|
-
* Client custom styling via url content
|
|
268
|
-
*/
|
|
269
|
-
this.clientStylingUrlContent = '';
|
|
270
|
-
this.limitStylingAppends = false;
|
|
271
|
-
this.setClientStyling = () => {
|
|
272
|
-
let sheet = document.createElement('style');
|
|
273
|
-
sheet.innerHTML = this.clientStyling;
|
|
274
|
-
this.stylingContainer.prepend(sheet);
|
|
275
|
-
};
|
|
276
|
-
this.setClientStylingURL = () => {
|
|
277
|
-
let cssFile = document.createElement('style');
|
|
278
|
-
setTimeout(() => {
|
|
279
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
280
|
-
this.stylingContainer.prepend(cssFile);
|
|
281
|
-
}, 1);
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
componentDidRender() {
|
|
285
|
-
// start custom styling area
|
|
286
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
287
|
-
if (this.clientStyling)
|
|
288
|
-
this.setClientStyling();
|
|
289
|
-
if (this.clientStylingUrlContent)
|
|
290
|
-
this.setClientStylingURL();
|
|
291
|
-
this.limitStylingAppends = true;
|
|
292
|
-
}
|
|
293
|
-
// end custom styling area
|
|
294
|
-
}
|
|
295
|
-
render() {
|
|
296
|
-
return (h("div", { class: "GamePageDetailsContainer", ref: el => this.stylingContainer = el }, h("helper-accordion", { "header-title": "Game Details", collapsed: false, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { class: "AccordionContainer", slot: "accordionContent" }, h("helper-tabs", { "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
LotteryGameDetails.style = lotteryGameDetailsCss;
|
|
300
|
-
|
|
301
|
-
export { Accordion as helper_accordion, HelperTab as helper_tab, HelperTabs as helper_tabs, LotteryGameDetails as lottery_game_details };
|