@everymatrix/lottery-draw-results-history 0.1.21 → 0.1.23
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-filters_6.cjs.entry.js → helper-filters_4.cjs.entry.js} +15 -267
- package/dist/cjs/helper-pagination.cjs.entry.js +1 -1
- package/dist/cjs/{index-9be51db2.js → index-1f4f6317.js} +1 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-bullet.cjs.entry.js +73 -0
- package/dist/cjs/lottery-draw-results-history.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +0 -6
- package/dist/components/lottery-bullet.js +89 -1
- package/dist/components/lottery-draw-results-history.js +7 -18
- package/dist/components/lottery-draw-results2.js +15 -15
- package/dist/esm/{helper-filters_6.entry.js → helper-filters_4.entry.js} +16 -266
- package/dist/esm/helper-pagination.entry.js +1 -1
- package/dist/esm/{index-624ab25d.js → index-7507a446.js} +1 -6
- package/dist/esm/loader.js +2 -2
- package/dist/{components/lottery-bullet2.js → esm/lottery-bullet.entry.js} +7 -29
- package/dist/esm/lottery-draw-results-history.js +2 -2
- package/dist/lottery-draw-results-history/lottery-draw-results-history.esm.js +1 -1
- package/dist/lottery-draw-results-history/{p-4c3653f8.entry.js → p-cb4844c3.entry.js} +75 -75
- package/dist/lottery-draw-results-history/p-ea4c035b.entry.js +1 -0
- package/dist/lottery-draw-results-history/p-fa2d5d86.js +1 -0
- package/dist/lottery-draw-results-history/{p-6b558ea4.entry.js → p-ffed05a0.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/components/lottery-grid.js +0 -6
- package/dist/components/lottery-grid2.js +0 -236
- package/dist/lottery-draw-results-history/p-6d0fe85e.js +0 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1f4f6317.js');
|
|
6
|
+
require('@everymatrix/lottery-grid');
|
|
6
7
|
|
|
7
8
|
const DEFAULT_LANGUAGE$2 = 'en';
|
|
8
9
|
const SUPPORTED_LANGUAGES$2 = ['ro', 'en'];
|
|
@@ -22452,72 +22453,6 @@ const HelperModal = class {
|
|
|
22452
22453
|
};
|
|
22453
22454
|
HelperModal.style = helperModalCss;
|
|
22454
22455
|
|
|
22455
|
-
const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
|
|
22456
|
-
|
|
22457
|
-
const LotteryBullet = class {
|
|
22458
|
-
constructor(hostRef) {
|
|
22459
|
-
index.registerInstance(this, hostRef);
|
|
22460
|
-
this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
|
|
22461
|
-
/**
|
|
22462
|
-
* Value of the bullet
|
|
22463
|
-
*/
|
|
22464
|
-
this.value = '0';
|
|
22465
|
-
/**
|
|
22466
|
-
* Marks if the bullet should be selectable
|
|
22467
|
-
*/
|
|
22468
|
-
this.selectable = true;
|
|
22469
|
-
/**
|
|
22470
|
-
* Marks if the bullet should be selected
|
|
22471
|
-
*/
|
|
22472
|
-
this.isSelected = false;
|
|
22473
|
-
/**
|
|
22474
|
-
* Client custom styling via string
|
|
22475
|
-
*/
|
|
22476
|
-
this.clientStyling = '';
|
|
22477
|
-
/**
|
|
22478
|
-
* Client custom styling via url content
|
|
22479
|
-
*/
|
|
22480
|
-
this.clientStylingUrlContent = '';
|
|
22481
|
-
this.limitStylingAppends = false;
|
|
22482
|
-
this.select = () => {
|
|
22483
|
-
if (this.selectable) {
|
|
22484
|
-
this.isSelected = !this.isSelected;
|
|
22485
|
-
this.bulletEvent.emit({
|
|
22486
|
-
value: this.value,
|
|
22487
|
-
selected: this.isSelected
|
|
22488
|
-
});
|
|
22489
|
-
}
|
|
22490
|
-
};
|
|
22491
|
-
this.setClientStyling = () => {
|
|
22492
|
-
let sheet = document.createElement('style');
|
|
22493
|
-
sheet.innerHTML = this.clientStyling;
|
|
22494
|
-
this.stylingContainer.prepend(sheet);
|
|
22495
|
-
};
|
|
22496
|
-
this.setClientStylingURL = () => {
|
|
22497
|
-
let cssFile = document.createElement('style');
|
|
22498
|
-
setTimeout(() => {
|
|
22499
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
22500
|
-
this.stylingContainer.prepend(cssFile);
|
|
22501
|
-
}, 1);
|
|
22502
|
-
};
|
|
22503
|
-
}
|
|
22504
|
-
componentDidRender() {
|
|
22505
|
-
// start custom styling area
|
|
22506
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
22507
|
-
if (this.clientStyling)
|
|
22508
|
-
this.setClientStyling();
|
|
22509
|
-
if (this.clientStylingUrlContent)
|
|
22510
|
-
this.setClientStylingURL();
|
|
22511
|
-
this.limitStylingAppends = true;
|
|
22512
|
-
}
|
|
22513
|
-
// end custom styling area
|
|
22514
|
-
}
|
|
22515
|
-
render() {
|
|
22516
|
-
return (index.h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
|
|
22517
|
-
}
|
|
22518
|
-
};
|
|
22519
|
-
LotteryBullet.style = lotteryBulletCss;
|
|
22520
|
-
|
|
22521
22456
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
22522
22457
|
const SUPPORTED_LANGUAGES$1 = ['ro', 'en'];
|
|
22523
22458
|
const TRANSLATIONS$1 = {
|
|
@@ -22687,7 +22622,8 @@ const LotteryDrawResults = class {
|
|
|
22687
22622
|
this.ticketDataLoaded = true;
|
|
22688
22623
|
}
|
|
22689
22624
|
return this.ticketData;
|
|
22690
|
-
})
|
|
22625
|
+
})
|
|
22626
|
+
.then((response) => {
|
|
22691
22627
|
response.forEach(ticket => {
|
|
22692
22628
|
if (ticket.drawResults.length) {
|
|
22693
22629
|
ticket.drawResults.forEach(draw => {
|
|
@@ -22700,13 +22636,20 @@ const LotteryDrawResults = class {
|
|
|
22700
22636
|
if (!this.ticketDraws.some(el => el.drawId === draw.drawId)) {
|
|
22701
22637
|
this.ticketDraws.push({ drawId: draw.drawId, drawNumbers: data.winningNumbers });
|
|
22702
22638
|
}
|
|
22639
|
+
})
|
|
22640
|
+
.catch((err) => {
|
|
22641
|
+
console.log('error ', err);
|
|
22703
22642
|
});
|
|
22704
22643
|
});
|
|
22705
22644
|
}
|
|
22706
22645
|
return this.ticketDraws;
|
|
22707
22646
|
});
|
|
22708
|
-
})
|
|
22647
|
+
})
|
|
22648
|
+
.then(() => {
|
|
22709
22649
|
this.hasDrawNumbers = true;
|
|
22650
|
+
})
|
|
22651
|
+
.catch((err) => {
|
|
22652
|
+
console.log('error ', err);
|
|
22710
22653
|
});
|
|
22711
22654
|
};
|
|
22712
22655
|
this.changeBox = (index) => {
|
|
@@ -22745,6 +22688,9 @@ const LotteryDrawResults = class {
|
|
|
22745
22688
|
Promise.all(promises)
|
|
22746
22689
|
.then(() => {
|
|
22747
22690
|
this.isLoading = false;
|
|
22691
|
+
}).catch((err) => {
|
|
22692
|
+
console.log('error ', err);
|
|
22693
|
+
this.isLoading = false;
|
|
22748
22694
|
});
|
|
22749
22695
|
}
|
|
22750
22696
|
componentDidRender() {
|
|
@@ -23044,205 +22990,7 @@ const LotteryDrawResultsHistory = class {
|
|
|
23044
22990
|
};
|
|
23045
22991
|
LotteryDrawResultsHistory.style = lotteryDrawResultsHistoryCss;
|
|
23046
22992
|
|
|
23047
|
-
const lotteryGridCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.GridContainer{display:flex;flex-direction:column;max-width:1200px}.Grid{margin-top:10px 0 10px 0;display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.Grid.TicketGrid{gap:5px}";
|
|
23048
|
-
|
|
23049
|
-
const LotteryGrid = class {
|
|
23050
|
-
constructor(hostRef) {
|
|
23051
|
-
index.registerInstance(this, hostRef);
|
|
23052
|
-
this.gridFilledEvent = index.createEvent(this, "gridFilled", 7);
|
|
23053
|
-
this.gridDirtyEvent = index.createEvent(this, "gridDirty", 7);
|
|
23054
|
-
/**
|
|
23055
|
-
* Number of bullets of grid
|
|
23056
|
-
*/
|
|
23057
|
-
this.totalNumbers = 0;
|
|
23058
|
-
/**
|
|
23059
|
-
* Number of maximum bullets that can be selected
|
|
23060
|
-
*/
|
|
23061
|
-
this.maximumAllowed = 0;
|
|
23062
|
-
/**
|
|
23063
|
-
* Minimum allowed of bullets
|
|
23064
|
-
*/
|
|
23065
|
-
this.minimumAllowed = 1;
|
|
23066
|
-
/**
|
|
23067
|
-
* Allows the user to select numbers on the grid
|
|
23068
|
-
*/
|
|
23069
|
-
this.selectable = true;
|
|
23070
|
-
/**
|
|
23071
|
-
* Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
|
|
23072
|
-
*/
|
|
23073
|
-
this.selectedNumbers = '';
|
|
23074
|
-
/**
|
|
23075
|
-
* Show only selected numbers
|
|
23076
|
-
*/
|
|
23077
|
-
this.displaySelected = false;
|
|
23078
|
-
/**
|
|
23079
|
-
* Language
|
|
23080
|
-
*/
|
|
23081
|
-
this.language = 'en';
|
|
23082
|
-
/**
|
|
23083
|
-
* Personalize grid for ticket
|
|
23084
|
-
*/
|
|
23085
|
-
this.gridType = '';
|
|
23086
|
-
/**
|
|
23087
|
-
* Client custom styling via string
|
|
23088
|
-
*/
|
|
23089
|
-
this.clientStyling = '';
|
|
23090
|
-
/**
|
|
23091
|
-
* Client custom styling via url content
|
|
23092
|
-
*/
|
|
23093
|
-
this.clientStylingUrlContent = '';
|
|
23094
|
-
this.numbers = [];
|
|
23095
|
-
this.limitStylingAppends = false;
|
|
23096
|
-
this.selectedCounter = 0;
|
|
23097
|
-
this.setClientStyling = () => {
|
|
23098
|
-
let sheet = document.createElement('style');
|
|
23099
|
-
sheet.innerHTML = this.clientStyling;
|
|
23100
|
-
this.stylingContainer.prepend(sheet);
|
|
23101
|
-
};
|
|
23102
|
-
this.setClientStylingURL = () => {
|
|
23103
|
-
let cssFile = document.createElement('style');
|
|
23104
|
-
setTimeout(() => {
|
|
23105
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
23106
|
-
this.stylingContainer.prepend(cssFile);
|
|
23107
|
-
}, 1);
|
|
23108
|
-
};
|
|
23109
|
-
}
|
|
23110
|
-
connectedCallback() {
|
|
23111
|
-
let selected = [];
|
|
23112
|
-
if (this.selectedNumbers.length > 0) {
|
|
23113
|
-
selected = this.selectedNumbers.split(',');
|
|
23114
|
-
this.selectedCounter = selected.length;
|
|
23115
|
-
}
|
|
23116
|
-
if (this.displaySelected) {
|
|
23117
|
-
selected.forEach((item) => {
|
|
23118
|
-
this.numbers.push({
|
|
23119
|
-
number: item,
|
|
23120
|
-
selected: true,
|
|
23121
|
-
selectable: this.selectable
|
|
23122
|
-
});
|
|
23123
|
-
});
|
|
23124
|
-
}
|
|
23125
|
-
else {
|
|
23126
|
-
[...Array(this.totalNumbers).keys()]
|
|
23127
|
-
.map(number => (number + 1).toString())
|
|
23128
|
-
.forEach((number) => {
|
|
23129
|
-
this.numbers.push({
|
|
23130
|
-
number,
|
|
23131
|
-
selected: selected.indexOf(number) >= 0 ? true : false,
|
|
23132
|
-
selectable: this.selectedCounter == this.maximumAllowed ? false : this.selectable
|
|
23133
|
-
});
|
|
23134
|
-
});
|
|
23135
|
-
}
|
|
23136
|
-
}
|
|
23137
|
-
componentDidRender() {
|
|
23138
|
-
// start custom styling area
|
|
23139
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
23140
|
-
if (this.clientStyling)
|
|
23141
|
-
this.setClientStyling();
|
|
23142
|
-
if (this.clientStylingUrlContent)
|
|
23143
|
-
this.setClientStylingURL();
|
|
23144
|
-
this.limitStylingAppends = true;
|
|
23145
|
-
}
|
|
23146
|
-
// end custom styling area
|
|
23147
|
-
}
|
|
23148
|
-
lotteryBulletSelectionHandler(event) {
|
|
23149
|
-
this.numbers = this.numbers.map((item) => {
|
|
23150
|
-
if (item.number == event.detail.value) {
|
|
23151
|
-
return {
|
|
23152
|
-
number: item.number,
|
|
23153
|
-
selected: event.detail.selected,
|
|
23154
|
-
selectable: item.selectable
|
|
23155
|
-
};
|
|
23156
|
-
}
|
|
23157
|
-
return {
|
|
23158
|
-
number: item.number,
|
|
23159
|
-
selected: item.selected,
|
|
23160
|
-
selectable: item.selectable
|
|
23161
|
-
};
|
|
23162
|
-
});
|
|
23163
|
-
if (event.detail.selected) {
|
|
23164
|
-
this.selectedCounter += 1;
|
|
23165
|
-
if (this.selectedCounter == this.maximumAllowed) {
|
|
23166
|
-
this.numbers = this.numbers.map((item) => {
|
|
23167
|
-
return {
|
|
23168
|
-
number: item.number,
|
|
23169
|
-
selected: item.selected,
|
|
23170
|
-
selectable: item.selected ? true : false
|
|
23171
|
-
};
|
|
23172
|
-
});
|
|
23173
|
-
this.gridFilledEvent.emit({
|
|
23174
|
-
id: this.ticketId,
|
|
23175
|
-
index: this.gridIndex,
|
|
23176
|
-
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
23177
|
-
});
|
|
23178
|
-
}
|
|
23179
|
-
}
|
|
23180
|
-
else {
|
|
23181
|
-
if (this.selectedCounter == this.maximumAllowed) {
|
|
23182
|
-
this.numbers = this.numbers.map((item) => {
|
|
23183
|
-
return {
|
|
23184
|
-
number: item.number,
|
|
23185
|
-
selected: item.selected,
|
|
23186
|
-
selectable: true
|
|
23187
|
-
};
|
|
23188
|
-
});
|
|
23189
|
-
this.gridDirtyEvent.emit({
|
|
23190
|
-
id: this.ticketId,
|
|
23191
|
-
index: this.gridIndex,
|
|
23192
|
-
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
23193
|
-
});
|
|
23194
|
-
}
|
|
23195
|
-
this.selectedCounter -= 1;
|
|
23196
|
-
}
|
|
23197
|
-
}
|
|
23198
|
-
async resetSelectionHandler(event) {
|
|
23199
|
-
if (event.detail && event.detail == this.ticketId) {
|
|
23200
|
-
this.selectedCounter = 0;
|
|
23201
|
-
this.numbers = this.numbers.map((item) => {
|
|
23202
|
-
return {
|
|
23203
|
-
number: item.number,
|
|
23204
|
-
selected: false,
|
|
23205
|
-
selectable: this.selectable
|
|
23206
|
-
};
|
|
23207
|
-
});
|
|
23208
|
-
this.gridDirtyEvent.emit({
|
|
23209
|
-
id: this.ticketId,
|
|
23210
|
-
index: this.gridIndex,
|
|
23211
|
-
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
23212
|
-
});
|
|
23213
|
-
}
|
|
23214
|
-
}
|
|
23215
|
-
async autoSelectionHandler(event) {
|
|
23216
|
-
if (event.detail && event.detail == this.ticketId) {
|
|
23217
|
-
this.resetSelectionHandler(event);
|
|
23218
|
-
let array = [...Array(this.totalNumbers).keys()]
|
|
23219
|
-
.map(number => number + 1)
|
|
23220
|
-
.sort(() => 0.5 - Math.random());
|
|
23221
|
-
array = array.slice(0, this.minimumAllowed);
|
|
23222
|
-
this.numbers = this.numbers.map((item) => {
|
|
23223
|
-
return {
|
|
23224
|
-
number: item.number,
|
|
23225
|
-
selected: array.indexOf(parseInt(item.number, 10)) >= 0 ? true : false,
|
|
23226
|
-
selectable: array.indexOf(parseInt(item.number, 10)) >= 0 ? true : false,
|
|
23227
|
-
};
|
|
23228
|
-
});
|
|
23229
|
-
this.gridFilledEvent.emit({
|
|
23230
|
-
id: this.ticketId,
|
|
23231
|
-
index: this.gridIndex,
|
|
23232
|
-
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
23233
|
-
});
|
|
23234
|
-
this.selectedCounter = this.maximumAllowed;
|
|
23235
|
-
}
|
|
23236
|
-
}
|
|
23237
|
-
render() {
|
|
23238
|
-
return (index.h("div", { class: "GridContainer", ref: el => this.stylingContainer = el }, index.h("div", { class: this.gridType === 'ticket' ? 'Grid TicketGrid' : 'Grid' }, this.numbers.map((item) => index.h("div", null, index.h("lottery-bullet", { value: item.number, selectable: item.selectable, "is-selected": item.selected, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))))));
|
|
23239
|
-
}
|
|
23240
|
-
};
|
|
23241
|
-
LotteryGrid.style = lotteryGridCss;
|
|
23242
|
-
|
|
23243
22993
|
exports.helper_filters = HelperFilters;
|
|
23244
22994
|
exports.helper_modal = HelperModal;
|
|
23245
|
-
exports.lottery_bullet = LotteryBullet;
|
|
23246
22995
|
exports.lottery_draw_results = LotteryDrawResults;
|
|
23247
22996
|
exports.lottery_draw_results_history = LotteryDrawResultsHistory;
|
|
23248
|
-
exports.lottery_grid = LotteryGrid;
|
|
@@ -50,7 +50,7 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
|
50
50
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
51
51
|
if (listeners) {
|
|
52
52
|
listeners.map(([flags, name, method]) => {
|
|
53
|
-
const target =
|
|
53
|
+
const target = elm;
|
|
54
54
|
const handler = hostListenerProxy(hostRef, method);
|
|
55
55
|
const opts = hostListenerOpts(flags);
|
|
56
56
|
plt.ael(target, name, handler, opts);
|
|
@@ -74,11 +74,6 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
74
74
|
consoleError(e);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
78
|
-
if (flags & 4 /* TargetDocument */)
|
|
79
|
-
return doc;
|
|
80
|
-
return elm;
|
|
81
|
-
};
|
|
82
77
|
// prettier-ignore
|
|
83
78
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
84
79
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
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-1f4f6317.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-pagination.cjs",[[1,"helper-pagination",{"firstPage":[1540,"first-page"],"previousPage":[1540,"previous-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"offsetInt":[32],"lastPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]],["
|
|
17
|
+
return index.bootstrapLazy([["helper-pagination.cjs",[[1,"helper-pagination",{"firstPage":[1540,"first-page"],"previousPage":[1540,"previous-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"offsetInt":[32],"lastPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]],["lottery-bullet.cjs",[[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]],["helper-filters_4.cjs",[[1,"lottery-draw-results-history",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfResults":[2,"number-of-results"],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"drawData":[32],"displayAllDrawsResults":[32],"showQuickFilters":[32],"winningDataSetsData":[32],"dateFiltersFrom":[32],"dateFiltersTo":[32],"isLoading":[32],"noResults":[32],"limitStylingAppends":[32]},[[0,"filterSelection","filtersHandler"],[0,"filterSelectionReset","clearFiltersHandler"]]],[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"quickFiltersActive":[4,"quick-filters-active"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"ticketDate":[1,"ticket-date"],"ticketStatus":[1,"ticket-status"],"ticketId":[1,"ticket-id"],"ticketAmount":[1,"ticket-amount"],"ticketMultiplier":[4,"ticket-multiplier"],"ticketDrawCount":[2,"ticket-draw-count"],"ticketNumbers":[1,"ticket-numbers"],"sessionId":[1,"session-id"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"multiplier":[32],"isLoading":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"hasDrawNumbers":[32],"limitStylingAppends":[32]}],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-1f4f6317.js');
|
|
6
|
+
|
|
7
|
+
const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
|
|
8
|
+
|
|
9
|
+
const LotteryBullet = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
|
|
13
|
+
/**
|
|
14
|
+
* Value of the bullet
|
|
15
|
+
*/
|
|
16
|
+
this.value = '0';
|
|
17
|
+
/**
|
|
18
|
+
* Marks if the bullet should be selectable
|
|
19
|
+
*/
|
|
20
|
+
this.selectable = true;
|
|
21
|
+
/**
|
|
22
|
+
* Marks if the bullet should be selected
|
|
23
|
+
*/
|
|
24
|
+
this.isSelected = false;
|
|
25
|
+
/**
|
|
26
|
+
* Client custom styling via string
|
|
27
|
+
*/
|
|
28
|
+
this.clientStyling = '';
|
|
29
|
+
/**
|
|
30
|
+
* Client custom styling via url content
|
|
31
|
+
*/
|
|
32
|
+
this.clientStylingUrlContent = '';
|
|
33
|
+
this.limitStylingAppends = false;
|
|
34
|
+
this.select = () => {
|
|
35
|
+
if (this.selectable) {
|
|
36
|
+
this.isSelected = !this.isSelected;
|
|
37
|
+
this.bulletEvent.emit({
|
|
38
|
+
value: this.value,
|
|
39
|
+
selected: this.isSelected
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
this.setClientStyling = () => {
|
|
44
|
+
let sheet = document.createElement('style');
|
|
45
|
+
sheet.innerHTML = this.clientStyling;
|
|
46
|
+
this.stylingContainer.prepend(sheet);
|
|
47
|
+
};
|
|
48
|
+
this.setClientStylingURL = () => {
|
|
49
|
+
let cssFile = document.createElement('style');
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
52
|
+
this.stylingContainer.prepend(cssFile);
|
|
53
|
+
}, 1);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
componentDidRender() {
|
|
57
|
+
// start custom styling area
|
|
58
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
59
|
+
if (this.clientStyling)
|
|
60
|
+
this.setClientStyling();
|
|
61
|
+
if (this.clientStylingUrlContent)
|
|
62
|
+
this.setClientStylingURL();
|
|
63
|
+
this.limitStylingAppends = true;
|
|
64
|
+
}
|
|
65
|
+
// end custom styling area
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return (index.h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
LotteryBullet.style = lotteryBulletCss;
|
|
72
|
+
|
|
73
|
+
exports.lottery_bullet = LotteryBullet;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-1f4f6317.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-pagination.cjs",[[1,"helper-pagination",{"firstPage":[1540,"first-page"],"previousPage":[1540,"previous-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"offsetInt":[32],"lastPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]],["
|
|
18
|
+
return index.bootstrapLazy([["helper-pagination.cjs",[[1,"helper-pagination",{"firstPage":[1540,"first-page"],"previousPage":[1540,"previous-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"offsetInt":[32],"lastPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]],["lottery-bullet.cjs",[[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]],["helper-filters_4.cjs",[[1,"lottery-draw-results-history",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfResults":[2,"number-of-results"],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"drawData":[32],"displayAllDrawsResults":[32],"showQuickFilters":[32],"winningDataSetsData":[32],"dateFiltersFrom":[32],"dateFiltersTo":[32],"isLoading":[32],"noResults":[32],"limitStylingAppends":[32]},[[0,"filterSelection","filtersHandler"],[0,"filterSelectionReset","clearFiltersHandler"]]],[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"quickFiltersActive":[4,"quick-filters-active"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"ticketDate":[1,"ticket-date"],"ticketStatus":[1,"ticket-status"],"ticketId":[1,"ticket-id"],"ticketAmount":[1,"ticket-amount"],"ticketMultiplier":[4,"ticket-multiplier"],"ticketDrawCount":[2,"ticket-draw-count"],"ticketNumbers":[1,"ticket-numbers"],"sessionId":[1,"session-id"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"multiplier":[32],"isLoading":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"hasDrawNumbers":[32],"limitStylingAppends":[32]}],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -1,4 +1,92 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
|
|
4
|
+
|
|
5
|
+
const LotteryBullet$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.bulletEvent = createEvent(this, "lotteryBulletSelection", 7);
|
|
11
|
+
/**
|
|
12
|
+
* Value of the bullet
|
|
13
|
+
*/
|
|
14
|
+
this.value = '0';
|
|
15
|
+
/**
|
|
16
|
+
* Marks if the bullet should be selectable
|
|
17
|
+
*/
|
|
18
|
+
this.selectable = true;
|
|
19
|
+
/**
|
|
20
|
+
* Marks if the bullet should be selected
|
|
21
|
+
*/
|
|
22
|
+
this.isSelected = false;
|
|
23
|
+
/**
|
|
24
|
+
* Client custom styling via string
|
|
25
|
+
*/
|
|
26
|
+
this.clientStyling = '';
|
|
27
|
+
/**
|
|
28
|
+
* Client custom styling via url content
|
|
29
|
+
*/
|
|
30
|
+
this.clientStylingUrlContent = '';
|
|
31
|
+
this.limitStylingAppends = false;
|
|
32
|
+
this.select = () => {
|
|
33
|
+
if (this.selectable) {
|
|
34
|
+
this.isSelected = !this.isSelected;
|
|
35
|
+
this.bulletEvent.emit({
|
|
36
|
+
value: this.value,
|
|
37
|
+
selected: this.isSelected
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
this.setClientStyling = () => {
|
|
42
|
+
let sheet = document.createElement('style');
|
|
43
|
+
sheet.innerHTML = this.clientStyling;
|
|
44
|
+
this.stylingContainer.prepend(sheet);
|
|
45
|
+
};
|
|
46
|
+
this.setClientStylingURL = () => {
|
|
47
|
+
let cssFile = document.createElement('style');
|
|
48
|
+
setTimeout(() => {
|
|
49
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
50
|
+
this.stylingContainer.prepend(cssFile);
|
|
51
|
+
}, 1);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
componentDidRender() {
|
|
55
|
+
// start custom styling area
|
|
56
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
57
|
+
if (this.clientStyling)
|
|
58
|
+
this.setClientStyling();
|
|
59
|
+
if (this.clientStylingUrlContent)
|
|
60
|
+
this.setClientStylingURL();
|
|
61
|
+
this.limitStylingAppends = true;
|
|
62
|
+
}
|
|
63
|
+
// end custom styling area
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return (h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
|
|
67
|
+
}
|
|
68
|
+
static get style() { return lotteryBulletCss; }
|
|
69
|
+
}, [1, "lottery-bullet", {
|
|
70
|
+
"value": [1],
|
|
71
|
+
"selectable": [4],
|
|
72
|
+
"isSelected": [4, "is-selected"],
|
|
73
|
+
"clientStyling": [1, "client-styling"],
|
|
74
|
+
"clientStylingUrlContent": [1, "client-styling-url-content"],
|
|
75
|
+
"limitStylingAppends": [32]
|
|
76
|
+
}]);
|
|
77
|
+
function defineCustomElement$1() {
|
|
78
|
+
if (typeof customElements === "undefined") {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const components = ["lottery-bullet"];
|
|
82
|
+
components.forEach(tagName => { switch (tagName) {
|
|
83
|
+
case "lottery-bullet":
|
|
84
|
+
if (!customElements.get(tagName)) {
|
|
85
|
+
customElements.define(tagName, LotteryBullet$1);
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
} });
|
|
89
|
+
}
|
|
2
90
|
|
|
3
91
|
const LotteryBullet = LotteryBullet$1;
|
|
4
92
|
const defineCustomElement = defineCustomElement$1;
|