@everymatrix/lottery-ticket-controller 0.1.24 → 1.15.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/cjs/helper-accordion_5.cjs.entry.js +28 -14
- package/dist/cjs/{index-dd94b8db.js → index-797fecd9.js} +11 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.css +182 -0
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +38 -15
- package/dist/components/helper-accordion2.js +14 -14
- package/dist/components/lottery-bullet2.js +5 -5
- package/dist/components/lottery-grid2.js +24 -15
- package/dist/components/lottery-ticket-controller.js +22 -16
- package/dist/components/lottery-ticket2.js +17 -17
- package/dist/esm/helper-accordion_5.entry.js +28 -14
- package/dist/esm/{index-74cef6d4.js → index-c4bda097.js} +11 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-ticket-controller.js +2 -2
- package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
- package/dist/lottery-ticket-controller/{p-72e48800.js → p-1f81b6df.js} +1 -1
- package/dist/lottery-ticket-controller/p-73adb7ea.entry.js +1 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/lottery-ticket-controller/.stencil/packages/lottery-ticket-controller/stencil.config.d.ts +2 -0
- package/dist/types/components/lottery-ticket-controller/lottery-ticket-controller.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +2 -2
- package/dist/lottery-ticket-controller/p-9a5da031.entry.js +0 -1
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/stencil/widgets-stencil/packages/lottery-ticket-controller/.stencil/packages/lottery-ticket-controller/stencil.config.d.ts +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-797fecd9.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE$2 = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES$2 = ['ro', 'en'];
|
|
@@ -25,7 +25,7 @@ const translate$2 = (key, customLang) => {
|
|
|
25
25
|
return TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
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}.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}.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
|
+
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}";
|
|
29
29
|
|
|
30
30
|
const Accordion = class {
|
|
31
31
|
constructor(hostRef) {
|
|
@@ -119,7 +119,7 @@ const Accordion = class {
|
|
|
119
119
|
this.accordionEvent.emit();
|
|
120
120
|
}
|
|
121
121
|
render() {
|
|
122
|
-
return (index.h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, index.h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, index.h("p", { class: "Title" }, this.headerTitle), index.h("p", { class: "Subtitle" }, this.headerSubtitle), index.h("p", { class: "Subtitle Description" }, this.description), index.h("span", { class: "Expand"
|
|
122
|
+
return (index.h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, index.h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, index.h("p", { class: "Title" }, this.headerTitle), index.h("p", { class: "Subtitle" }, this.headerSubtitle), index.h("p", { class: "Subtitle Description" }, this.description), index.h("span", { class: "Expand" }, this.showContent ? '<' : '>')), this.showContent &&
|
|
123
123
|
index.h("div", null, index.h("div", { class: "Content" }, index.h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
124
124
|
index.h("div", null, this.deleteTab &&
|
|
125
125
|
index.h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate$2('deleteTicket', this.language)))))));
|
|
@@ -294,6 +294,15 @@ const LotteryGrid = class {
|
|
|
294
294
|
}
|
|
295
295
|
// end custom styling area
|
|
296
296
|
}
|
|
297
|
+
// wrote this because the classic .sort(() => 0.5 - Math.random()) method yielded low entropy shuffles for some reason on certain devices
|
|
298
|
+
shuffleArray(array) {
|
|
299
|
+
const result = [];
|
|
300
|
+
while (array.length > 0) {
|
|
301
|
+
const randomIndex = Math.floor(Math.random() * (array.length));
|
|
302
|
+
result.push(array.splice(randomIndex, 1)[0]);
|
|
303
|
+
}
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
297
306
|
lotteryBulletSelectionHandler(event) {
|
|
298
307
|
this.numbers = this.numbers.map((item) => {
|
|
299
308
|
if (item.number == event.detail.value) {
|
|
@@ -365,8 +374,8 @@ const LotteryGrid = class {
|
|
|
365
374
|
if (event.detail && event.detail == this.ticketId) {
|
|
366
375
|
this.resetSelectionHandler(event);
|
|
367
376
|
let array = [...Array(this.totalNumbers).keys()]
|
|
368
|
-
.map(number => number + 1)
|
|
369
|
-
|
|
377
|
+
.map(number => number + 1);
|
|
378
|
+
array = this.shuffleArray(array);
|
|
370
379
|
array = array.slice(0, this.minimumAllowed);
|
|
371
380
|
this.numbers = this.numbers.map((item) => {
|
|
372
381
|
return {
|
|
@@ -520,8 +529,8 @@ const LotteryTicket = class {
|
|
|
520
529
|
.then((data) => {
|
|
521
530
|
this.isLoading = false;
|
|
522
531
|
this.gameData = data;
|
|
523
|
-
this.grids = [...Array(
|
|
524
|
-
this.amountInfo = this.gameData.
|
|
532
|
+
this.grids = [...Array(this.gameData.type.boards.length).keys()];
|
|
533
|
+
this.amountInfo = this.gameData.type.stakes[0]; // initial value for select
|
|
525
534
|
})
|
|
526
535
|
.catch((err) => {
|
|
527
536
|
this.isLoading = false;
|
|
@@ -572,7 +581,7 @@ const LotteryTicket = class {
|
|
|
572
581
|
}
|
|
573
582
|
setDropdownItem(item) {
|
|
574
583
|
this.amountInfo = {
|
|
575
|
-
|
|
584
|
+
value: item.value,
|
|
576
585
|
currency: item.currency
|
|
577
586
|
};
|
|
578
587
|
this.isCustomSelect = false;
|
|
@@ -587,13 +596,13 @@ const LotteryTicket = class {
|
|
|
587
596
|
return (index.h("div", null, index.h("p", null, translate$1('error', this.language))));
|
|
588
597
|
}
|
|
589
598
|
else {
|
|
590
|
-
const {
|
|
599
|
+
const { type } = this.gameData;
|
|
591
600
|
return (index.h("div", { class: "TicketContainer", ref: el => this.stylingContainer = el }, index.h("p", { class: "TicketTitle" }, this.gameData.name), this.resetButton && this.ticketDone &&
|
|
592
601
|
index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection() }, translate$1('resetButton', this.language))), this.autoPick && !this.ticketDone &&
|
|
593
|
-
index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection() }, translate$1('autoButton', this.language))), this.grids.map((
|
|
602
|
+
index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection() }, translate$1('autoButton', this.language))), this.grids.map((_, index$1) => index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, translate$1('grid', this.language), " ", index$1 + 1), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": type.boards[index$1].maximumAllowed, "minimum-allowed": type.boards[index$1].minimumAllowed, "total-numbers": type.boards[index$1].highNumber - type.boards[index$1].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))), type.multiplier &&
|
|
594
603
|
index.h("div", null, index.h("label", { class: "Toggle" }, index.h("label", { class: "Label" }, translate$1('multiplier', this.language), ": "), index.h("input", { class: "ToggleCheckbox", type: "checkbox", onInput: (e) => this.multiplierChangeHandler(e) }), index.h("div", { class: "ToggleSwitch" }))), this.multipleDraws &&
|
|
595
|
-
index.h("div", { class: "TicketDraws" }, index.h("label", { class: "Label" }, translate$1('numberOfDraws', this.language), ": "), index.h("div", { class: "NumberInput" }, index.h("button", { onClick: () => this.numberOfDraws > 1 ? this.numberOfDraws-- : this.numberOfDraws = 1, class: "Minus" }, "-"), index.h("input", { class: "InputDefault", min: "1", value: this.numberOfDraws, type: "number" }), index.h("button", { onClick: () => this.numberOfDraws++, class: "Plus" }, "+"))), index.h("div", null, index.h("label", { class: "Label" }, translate$1('wagerPerDraw', this.language), ": "), index.h("div", { class: "WagerInput" },
|
|
596
|
-
(index.h("div", { "data-cluster": "SelectComponent", class: this.isCustomSelect ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { "data-cluster": "SelectComponent", class: "SelectButton", onClick: () => this.toggleClass() }, index.h("span", { "data-cluster": "SelectComponent" }, this.amountInfo.
|
|
604
|
+
index.h("div", { class: "TicketDraws" }, index.h("label", { class: "Label" }, translate$1('numberOfDraws', this.language), ": "), index.h("div", { class: "NumberInput" }, index.h("button", { onClick: () => this.numberOfDraws > 1 ? this.numberOfDraws-- : this.numberOfDraws = 1, class: "Minus" }, "-"), index.h("input", { class: "InputDefault", min: "1", value: this.numberOfDraws, type: "number" }), index.h("button", { onClick: () => this.numberOfDraws++, class: "Plus" }, "+"))), index.h("div", null, index.h("label", { class: "Label" }, translate$1('wagerPerDraw', this.language), ": "), index.h("div", { class: "WagerInput" }, type.stakes.length > 1 ?
|
|
605
|
+
(index.h("div", { "data-cluster": "SelectComponent", class: this.isCustomSelect ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { "data-cluster": "SelectComponent", class: "SelectButton", onClick: () => this.toggleClass() }, index.h("span", { "data-cluster": "SelectComponent" }, this.amountInfo.value, " ", this.amountInfo.currency), index.h("span", { "data-cluster": "SelectComponent", class: "SelectExpand" }, "\u25BC")), index.h("div", { "data-cluster": "SelectComponent", class: "SelectContent" }, index.h("ul", { "data-cluster": "SelectComponent", class: "SelectOptions" }, type.stakes.map((item) => index.h("li", { "data-cluster": "SelectComponent", class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setDropdownItem(item) }, item.value, " ", item.currency)))))) : (index.h("div", null, index.h("input", { min: "1", value: type.stakes[0].amount, type: "number", disabled: true }), index.h("p", { class: "WagerInputTitle" }, type.stakes[0].currency)))))));
|
|
597
606
|
}
|
|
598
607
|
}
|
|
599
608
|
}
|
|
@@ -624,7 +633,7 @@ const translate = (key, customLang) => {
|
|
|
624
633
|
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
625
634
|
};
|
|
626
635
|
|
|
627
|
-
const lotteryTicketControllerCss = ":host{display:block}";
|
|
636
|
+
const lotteryTicketControllerCss = ":host{font-family:\"Roboto\", system-ui, -apple-system, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size:0.8rem}*,*::before,*::after{margin:0;padding:0;list-style:none;outline:none;box-sizing:border-box}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-popup-2{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #000)}.Title{font-weight:800;font-size:18px}button{display:block;font-size:0.75rem;padding:12px 0;border:0;border-radius:2px;cursor:pointer}button.PrimaryButtonStyle{font-size:14px;color:#fff;background:#7ac317}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.LinkButton{display:inline;padding:0;color:#3366CC;text-decoration:underline;background-color:rgba(0, 0, 0, 0)}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center;margin:12px 0}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.Overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center}.ModalContainer{position:fixed;top:30vh;width:320px;height:auto;padding:18px 14px;background:#fff;border-radius:4px}.InitialWrapper{display:flex;flex-direction:column;gap:12px}.AdditionalInformation{margin:10px 0;font-size:14px}.TermsConditions{font-size:12px}.ExpandButton{font-size:14px;background-color:#fff;border:0;padding:0;margin-top:-10px;color:#999;display:flex;justify-content:center;align-items:center;cursor:pointer}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.LeftAlign{text-align:left;font-size:16px}.CenterAlign{text-align:center}.SetLimitSection{display:flex;flex-direction:column;gap:6px}.DepositTextSection{display:flex;justify-content:space-between}.DepositInputSection{height:32px;display:flex;gap:4px}.DepositInput{flex-grow:1;padding:0 6px}.SubmitDepositButton{flex-grow:1;font-size:0.75rem;padding:0}.SubmitDepositButton[disabled]{align-items:center;color:#ccc;cursor:not-allowed;background:#fff;border:#ccc 1px solid}.Hidden{display:none}.Extended{transform:rotate(180deg)}";
|
|
628
637
|
|
|
629
638
|
const LotteryTicketController = class {
|
|
630
639
|
constructor(hostRef) {
|
|
@@ -670,6 +679,10 @@ const LotteryTicketController = class {
|
|
|
670
679
|
* Shows the reset button
|
|
671
680
|
*/
|
|
672
681
|
this.resetButton = false;
|
|
682
|
+
/**
|
|
683
|
+
* Number of ticket controllers
|
|
684
|
+
*/
|
|
685
|
+
this.totalControllers = 1;
|
|
673
686
|
/**
|
|
674
687
|
* Client custom styling via string
|
|
675
688
|
*/
|
|
@@ -713,7 +726,8 @@ const LotteryTicketController = class {
|
|
|
713
726
|
// end custom styling area
|
|
714
727
|
}
|
|
715
728
|
render() {
|
|
716
|
-
|
|
729
|
+
console.log('ticket id:', this.ticketId);
|
|
730
|
+
return (index.h("div", { class: "LotteryTicketControllerContainer", ref: el => this.stylingContainer = el }, index.h("helper-accordion", { "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": this.totalControllers !== 1, collapsed: !this.last || this.collapsed, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("div", { slot: "accordionContent" }, index.h("lottery-ticket", { endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "reset-button": this.resetButton, "auto-pick": this.autoPick, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
717
731
|
}
|
|
718
732
|
};
|
|
719
733
|
LotteryTicketController.style = lotteryTicketControllerCss;
|
|
@@ -562,9 +562,14 @@ const callNodeRefs = (vNode) => {
|
|
|
562
562
|
};
|
|
563
563
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
564
564
|
const hostElm = hostRef.$hostElement$;
|
|
565
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
565
566
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
566
567
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
567
568
|
hostTagName = hostElm.tagName;
|
|
569
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
570
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
571
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
572
|
+
}
|
|
568
573
|
rootVnode.$tag$ = null;
|
|
569
574
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
570
575
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -939,6 +944,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
939
944
|
.map(([propName, m]) => {
|
|
940
945
|
const attrName = m[1] || propName;
|
|
941
946
|
attrNameToPropName.set(attrName, propName);
|
|
947
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
948
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
949
|
+
}
|
|
942
950
|
return attrName;
|
|
943
951
|
});
|
|
944
952
|
}
|
|
@@ -1116,6 +1124,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1116
1124
|
{
|
|
1117
1125
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1118
1126
|
}
|
|
1127
|
+
{
|
|
1128
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1129
|
+
}
|
|
1119
1130
|
{
|
|
1120
1131
|
cmpMeta.$watchers$ = {};
|
|
1121
1132
|
}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-797fecd9.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[
|
|
17
|
+
return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"]]],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"numbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-797fecd9.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[
|
|
18
|
+
return index.bootstrapLazy([["helper-accordion_5.cjs",[[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"]]],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"showContent":[32],"limitStylingAppends":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"numbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -1,3 +1,185 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
3
|
+
font-size: 0.8rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
*,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
list-style: none;
|
|
12
|
+
outline: none;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Chrome, Safari, Edge, Opera */
|
|
17
|
+
input::-webkit-outer-spin-button,
|
|
18
|
+
input::-webkit-inner-spin-button {
|
|
19
|
+
-webkit-appearance: none;
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Firefox */
|
|
24
|
+
input[type=number] {
|
|
25
|
+
-moz-appearance: textfield;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.player-account-gaming-limits-popup-2 {
|
|
29
|
+
background: var(--emfe-w-color-black, #000000);
|
|
30
|
+
color: var(--emfe-w-color-white, #000);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.Title {
|
|
34
|
+
font-weight: 800;
|
|
35
|
+
font-size: 18px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
button {
|
|
2
39
|
display: block;
|
|
40
|
+
font-size: 0.75rem;
|
|
41
|
+
padding: 12px 0;
|
|
42
|
+
border: 0;
|
|
43
|
+
border-radius: 2px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
button.PrimaryButtonStyle {
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
color: #fff;
|
|
49
|
+
background: #7ac317;
|
|
50
|
+
}
|
|
51
|
+
button.SecondaryButtonStyle {
|
|
52
|
+
border: 1px solid #999;
|
|
53
|
+
color: #666;
|
|
54
|
+
background: #fff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.LinkButton {
|
|
58
|
+
display: inline;
|
|
59
|
+
padding: 0;
|
|
60
|
+
color: #3366CC;
|
|
61
|
+
text-decoration: underline;
|
|
62
|
+
background-color: rgba(0, 0, 0, 0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ResultIconWrapper {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
margin: 12px 0;
|
|
70
|
+
}
|
|
71
|
+
.ResultIconWrapper svg {
|
|
72
|
+
height: auto;
|
|
73
|
+
width: 60px;
|
|
74
|
+
margin: 12px;
|
|
75
|
+
}
|
|
76
|
+
.ResultIconWrapper p {
|
|
77
|
+
color: #666;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.Overlay {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
width: 100vw;
|
|
85
|
+
height: 100vh;
|
|
86
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ModalContainer {
|
|
93
|
+
position: fixed;
|
|
94
|
+
top: 30vh;
|
|
95
|
+
width: 320px;
|
|
96
|
+
height: auto;
|
|
97
|
+
padding: 18px 14px;
|
|
98
|
+
background: #fff;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.InitialWrapper {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
gap: 12px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.AdditionalInformation {
|
|
109
|
+
margin: 10px 0;
|
|
110
|
+
font-size: 14px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.TermsConditions {
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ExpandButton {
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
background-color: #fff;
|
|
120
|
+
border: 0;
|
|
121
|
+
padding: 0;
|
|
122
|
+
margin-top: -10px;
|
|
123
|
+
color: #999;
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
.ExpandButton svg {
|
|
130
|
+
width: 28px;
|
|
131
|
+
height: auto;
|
|
132
|
+
margin-left: -4px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.LeftAlign {
|
|
136
|
+
text-align: left;
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.CenterAlign {
|
|
141
|
+
text-align: center;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.SetLimitSection {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
gap: 6px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.DepositTextSection {
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: space-between;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.DepositInputSection {
|
|
156
|
+
height: 32px;
|
|
157
|
+
display: flex;
|
|
158
|
+
gap: 4px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.DepositInput {
|
|
162
|
+
flex-grow: 1;
|
|
163
|
+
padding: 0 6px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.SubmitDepositButton {
|
|
167
|
+
flex-grow: 1;
|
|
168
|
+
font-size: 0.75rem;
|
|
169
|
+
padding: 0;
|
|
170
|
+
}
|
|
171
|
+
.SubmitDepositButton[disabled] {
|
|
172
|
+
align-items: center;
|
|
173
|
+
color: #ccc;
|
|
174
|
+
cursor: not-allowed;
|
|
175
|
+
background: #fff;
|
|
176
|
+
border: #ccc 1px solid;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.Hidden {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.Extended {
|
|
184
|
+
transform: rotate(180deg);
|
|
3
185
|
}
|
|
@@ -44,6 +44,10 @@ export class LotteryTicketController {
|
|
|
44
44
|
* Shows the reset button
|
|
45
45
|
*/
|
|
46
46
|
this.resetButton = false;
|
|
47
|
+
/**
|
|
48
|
+
* Number of ticket controllers
|
|
49
|
+
*/
|
|
50
|
+
this.totalControllers = 1;
|
|
47
51
|
/**
|
|
48
52
|
* Client custom styling via string
|
|
49
53
|
*/
|
|
@@ -87,8 +91,9 @@ export class LotteryTicketController {
|
|
|
87
91
|
// end custom styling area
|
|
88
92
|
}
|
|
89
93
|
render() {
|
|
94
|
+
console.log('ticket id:', this.ticketId);
|
|
90
95
|
return (h("div", { class: "LotteryTicketControllerContainer", ref: el => this.stylingContainer = el },
|
|
91
|
-
h("helper-accordion", { "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab":
|
|
96
|
+
h("helper-accordion", { "header-title": `${translate('ticket', this.language)} ${this.ticketId}`, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": this.totalControllers !== 1, collapsed: !this.last || this.collapsed, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent },
|
|
92
97
|
h("div", { slot: "accordionContent" },
|
|
93
98
|
h("lottery-ticket", { endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "reset-button": this.resetButton, "auto-pick": this.autoPick, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
94
99
|
}
|
|
@@ -116,7 +121,7 @@ export class LotteryTicketController {
|
|
|
116
121
|
"text": "Endpoint URL for the source of data (NorWAy standard)"
|
|
117
122
|
},
|
|
118
123
|
"attribute": "endpoint",
|
|
119
|
-
"reflect":
|
|
124
|
+
"reflect": true,
|
|
120
125
|
"defaultValue": "''"
|
|
121
126
|
},
|
|
122
127
|
"ticketId": {
|
|
@@ -134,7 +139,7 @@ export class LotteryTicketController {
|
|
|
134
139
|
"text": "Ticket number"
|
|
135
140
|
},
|
|
136
141
|
"attribute": "ticket-id",
|
|
137
|
-
"reflect":
|
|
142
|
+
"reflect": true,
|
|
138
143
|
"defaultValue": "1"
|
|
139
144
|
},
|
|
140
145
|
"ticketDescription": {
|
|
@@ -152,7 +157,7 @@ export class LotteryTicketController {
|
|
|
152
157
|
"text": "Ticket header description"
|
|
153
158
|
},
|
|
154
159
|
"attribute": "ticket-description",
|
|
155
|
-
"reflect":
|
|
160
|
+
"reflect": true
|
|
156
161
|
},
|
|
157
162
|
"gameId": {
|
|
158
163
|
"type": "string",
|
|
@@ -169,7 +174,7 @@ export class LotteryTicketController {
|
|
|
169
174
|
"text": "ID of the lottery game"
|
|
170
175
|
},
|
|
171
176
|
"attribute": "game-id",
|
|
172
|
-
"reflect":
|
|
177
|
+
"reflect": true
|
|
173
178
|
},
|
|
174
179
|
"postMessage": {
|
|
175
180
|
"type": "boolean",
|
|
@@ -186,7 +191,7 @@ export class LotteryTicketController {
|
|
|
186
191
|
"text": "Activates postMessages as events for actions from the widget"
|
|
187
192
|
},
|
|
188
193
|
"attribute": "post-message",
|
|
189
|
-
"reflect":
|
|
194
|
+
"reflect": true,
|
|
190
195
|
"defaultValue": "false"
|
|
191
196
|
},
|
|
192
197
|
"eventName": {
|
|
@@ -204,7 +209,7 @@ export class LotteryTicketController {
|
|
|
204
209
|
"text": "Name of the event emitter by the action button"
|
|
205
210
|
},
|
|
206
211
|
"attribute": "event-name",
|
|
207
|
-
"reflect":
|
|
212
|
+
"reflect": true,
|
|
208
213
|
"defaultValue": "'deleteTicketAction'"
|
|
209
214
|
},
|
|
210
215
|
"collapsed": {
|
|
@@ -222,7 +227,7 @@ export class LotteryTicketController {
|
|
|
222
227
|
"text": "Collapsed"
|
|
223
228
|
},
|
|
224
229
|
"attribute": "collapsed",
|
|
225
|
-
"reflect":
|
|
230
|
+
"reflect": true,
|
|
226
231
|
"defaultValue": "true"
|
|
227
232
|
},
|
|
228
233
|
"numberOfGrids": {
|
|
@@ -240,7 +245,7 @@ export class LotteryTicketController {
|
|
|
240
245
|
"text": "Number of grids?"
|
|
241
246
|
},
|
|
242
247
|
"attribute": "number-of-grids",
|
|
243
|
-
"reflect":
|
|
248
|
+
"reflect": true,
|
|
244
249
|
"defaultValue": "1"
|
|
245
250
|
},
|
|
246
251
|
"last": {
|
|
@@ -258,7 +263,7 @@ export class LotteryTicketController {
|
|
|
258
263
|
"text": "This toggles if the last ticket added should be expanded or not"
|
|
259
264
|
},
|
|
260
265
|
"attribute": "last",
|
|
261
|
-
"reflect":
|
|
266
|
+
"reflect": true,
|
|
262
267
|
"defaultValue": "false"
|
|
263
268
|
},
|
|
264
269
|
"language": {
|
|
@@ -276,7 +281,7 @@ export class LotteryTicketController {
|
|
|
276
281
|
"text": "Language"
|
|
277
282
|
},
|
|
278
283
|
"attribute": "language",
|
|
279
|
-
"reflect":
|
|
284
|
+
"reflect": true,
|
|
280
285
|
"defaultValue": "'en'"
|
|
281
286
|
},
|
|
282
287
|
"autoPick": {
|
|
@@ -294,7 +299,7 @@ export class LotteryTicketController {
|
|
|
294
299
|
"text": "Shows the auto-pick button"
|
|
295
300
|
},
|
|
296
301
|
"attribute": "auto-pick",
|
|
297
|
-
"reflect":
|
|
302
|
+
"reflect": true,
|
|
298
303
|
"defaultValue": "false"
|
|
299
304
|
},
|
|
300
305
|
"resetButton": {
|
|
@@ -312,9 +317,27 @@ export class LotteryTicketController {
|
|
|
312
317
|
"text": "Shows the reset button"
|
|
313
318
|
},
|
|
314
319
|
"attribute": "reset-button",
|
|
315
|
-
"reflect":
|
|
320
|
+
"reflect": true,
|
|
316
321
|
"defaultValue": "false"
|
|
317
322
|
},
|
|
323
|
+
"totalControllers": {
|
|
324
|
+
"type": "number",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "number",
|
|
328
|
+
"resolved": "number",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": "Number of ticket controllers"
|
|
336
|
+
},
|
|
337
|
+
"attribute": "total-controllers",
|
|
338
|
+
"reflect": true,
|
|
339
|
+
"defaultValue": "1"
|
|
340
|
+
},
|
|
318
341
|
"clientStyling": {
|
|
319
342
|
"type": "string",
|
|
320
343
|
"mutable": false,
|
|
@@ -330,7 +353,7 @@ export class LotteryTicketController {
|
|
|
330
353
|
"text": "Client custom styling via string"
|
|
331
354
|
},
|
|
332
355
|
"attribute": "client-styling",
|
|
333
|
-
"reflect":
|
|
356
|
+
"reflect": true,
|
|
334
357
|
"defaultValue": "''"
|
|
335
358
|
},
|
|
336
359
|
"clientStylingUrlContent": {
|
|
@@ -348,7 +371,7 @@ export class LotteryTicketController {
|
|
|
348
371
|
"text": "Client custom styling via url content"
|
|
349
372
|
},
|
|
350
373
|
"attribute": "client-styling-url-content",
|
|
351
|
-
"reflect":
|
|
374
|
+
"reflect": true,
|
|
352
375
|
"defaultValue": "''"
|
|
353
376
|
}
|
|
354
377
|
}; }
|
|
@@ -21,7 +21,7 @@ const translate = (key, customLang) => {
|
|
|
21
21
|
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
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}.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}.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}";
|
|
24
|
+
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}";
|
|
25
25
|
|
|
26
26
|
const Accordion = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
27
27
|
constructor() {
|
|
@@ -117,25 +117,25 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
117
117
|
this.accordionEvent.emit();
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle Description" }, this.description), h("span", { class: "Expand"
|
|
120
|
+
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 &&
|
|
121
121
|
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
122
122
|
h("div", null, this.deleteTab &&
|
|
123
123
|
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
124
124
|
}
|
|
125
125
|
static get style() { return helperAccordionCss; }
|
|
126
126
|
}, [1, "helper-accordion", {
|
|
127
|
-
"ticketHistoryFlag": [
|
|
128
|
-
"headerTitle": [
|
|
129
|
-
"headerSubtitle": [
|
|
130
|
-
"description": [
|
|
131
|
-
"footer": [
|
|
132
|
-
"deleteTab": [
|
|
133
|
-
"postMessage": [
|
|
134
|
-
"eventName": [
|
|
135
|
-
"collapsed": [
|
|
136
|
-
"language": [
|
|
137
|
-
"clientStyling": [
|
|
138
|
-
"clientStylingUrlContent": [
|
|
127
|
+
"ticketHistoryFlag": [516, "ticket-history-flag"],
|
|
128
|
+
"headerTitle": [513, "header-title"],
|
|
129
|
+
"headerSubtitle": [513, "header-subtitle"],
|
|
130
|
+
"description": [513],
|
|
131
|
+
"footer": [516],
|
|
132
|
+
"deleteTab": [516, "delete-tab"],
|
|
133
|
+
"postMessage": [516, "post-message"],
|
|
134
|
+
"eventName": [513, "event-name"],
|
|
135
|
+
"collapsed": [516],
|
|
136
|
+
"language": [513],
|
|
137
|
+
"clientStyling": [513, "client-styling"],
|
|
138
|
+
"clientStylingUrlContent": [513, "client-styling-url-content"],
|
|
139
139
|
"showContent": [32],
|
|
140
140
|
"limitStylingAppends": [32]
|
|
141
141
|
}]);
|