@everymatrix/lottery-game-page 0.1.4 → 0.1.5
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-modal.cjs.entry.js +1 -1
- package/dist/cjs/{index-5701a895.js → index-614098f4.js} +1 -47
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-draw-results.cjs.entry.js +188 -0
- package/dist/cjs/lottery-game-page.cjs.entry.js +4 -1
- package/dist/cjs/lottery-game-page.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +0 -61
- package/dist/components/lottery-draw-results2.js +2 -13
- package/dist/components/lottery-game-page.js +7 -64
- package/dist/esm/helper-modal.entry.js +1 -1
- package/dist/esm/{index-ade3d0ab.js → index-0fa076cd.js} +1 -47
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-draw-results.entry.js +184 -0
- package/dist/esm/lottery-game-page.entry.js +4 -1
- package/dist/esm/lottery-game-page.js +2 -2
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-2d7ccc96.js +1 -0
- package/dist/lottery-game-page/{p-d4b6a11a.entry.js → p-6183a920.entry.js} +1 -1
- package/dist/lottery-game-page/p-9ca649d9.entry.js +1 -0
- package/dist/lottery-game-page/p-e98ee83a.entry.js +1 -0
- package/dist/stencil.config.js +1 -0
- package/package.json +1 -1
- package/dist/cjs/helper-accordion.cjs.entry.js +0 -92
- package/dist/cjs/helper-filters_2.cjs.entry.js +0 -22735
- package/dist/cjs/helper-pagination.cjs.entry.js +0 -188
- package/dist/cjs/helper-tab.cjs.entry.js +0 -36
- package/dist/cjs/helper-tabs.cjs.entry.js +0 -38
- package/dist/cjs/lottery-bullet_2.cjs.entry.js +0 -202
- package/dist/cjs/lottery-draw-results-history.cjs.entry.js +0 -161
- package/dist/cjs/lottery-game-details.cjs.entry.js +0 -19
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js +0 -69
- package/dist/cjs/lottery-ticket.cjs.entry.js +0 -169
- package/dist/components/helper-accordion.js +0 -6
- package/dist/components/helper-accordion2.js +0 -116
- package/dist/components/helper-filters.js +0 -6
- package/dist/components/helper-filters2.js +0 -22584
- package/dist/components/helper-pagination.js +0 -216
- package/dist/components/helper-tab.js +0 -6
- package/dist/components/helper-tab2.js +0 -52
- package/dist/components/helper-tabs.js +0 -6
- package/dist/components/helper-tabs2.js +0 -63
- package/dist/components/lottery-bullet.js +0 -6
- package/dist/components/lottery-bullet2.js +0 -57
- package/dist/components/lottery-draw-results-history.js +0 -6
- package/dist/components/lottery-draw-results-history2.js +0 -216
- package/dist/components/lottery-game-details.js +0 -6
- package/dist/components/lottery-game-details2.js +0 -49
- package/dist/components/lottery-grid.js +0 -6
- package/dist/components/lottery-grid2.js +0 -197
- package/dist/components/lottery-ticket-controller.js +0 -6
- package/dist/components/lottery-ticket-controller2.js +0 -118
- package/dist/components/lottery-ticket.js +0 -6
- package/dist/components/lottery-ticket2.js +0 -209
- package/dist/esm/helper-accordion.entry.js +0 -88
- package/dist/esm/helper-filters_2.entry.js +0 -22730
- package/dist/esm/helper-pagination.entry.js +0 -184
- package/dist/esm/helper-tab.entry.js +0 -32
- package/dist/esm/helper-tabs.entry.js +0 -34
- package/dist/esm/lottery-bullet_2.entry.js +0 -197
- package/dist/esm/lottery-draw-results-history.entry.js +0 -157
- package/dist/esm/lottery-game-details.entry.js +0 -15
- package/dist/esm/lottery-ticket-controller.entry.js +0 -65
- package/dist/esm/lottery-ticket.entry.js +0 -165
- package/dist/lottery-game-page/p-07cca45e.entry.js +0 -1
- package/dist/lottery-game-page/p-1196396b.entry.js +0 -1
- package/dist/lottery-game-page/p-2197c8ae.entry.js +0 -1
- package/dist/lottery-game-page/p-2a4e9984.entry.js +0 -1
- package/dist/lottery-game-page/p-4bfd0112.entry.js +0 -1
- package/dist/lottery-game-page/p-5e12dbf9.entry.js +0 -1
- package/dist/lottery-game-page/p-a10368b2.entry.js +0 -1
- package/dist/lottery-game-page/p-a26ebf45.entry.js +0 -1
- package/dist/lottery-game-page/p-b301a9d4.js +0 -1
- package/dist/lottery-game-page/p-d508e7cc.entry.js +0 -2809
- package/dist/lottery-game-page/p-dd63fcc6.entry.js +0 -1
- package/dist/lottery-game-page/p-f59dc9e1.entry.js +0 -1
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-ade3d0ab.js';
|
|
2
|
-
|
|
3
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
5
|
-
const TRANSLATIONS = {
|
|
6
|
-
en: {
|
|
7
|
-
deleteTicket: 'Delete ticket'
|
|
8
|
-
},
|
|
9
|
-
ro: {
|
|
10
|
-
deleteTicket: 'Sterge biletul'
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
const translate = (key, customLang) => {
|
|
14
|
-
const lang = customLang;
|
|
15
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
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:4px 4px 0 0;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.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}";
|
|
19
|
-
|
|
20
|
-
const Accordion = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
24
|
-
/**
|
|
25
|
-
* Flag for ticket history
|
|
26
|
-
*/
|
|
27
|
-
this.ticketHistoryFlag = false;
|
|
28
|
-
/**
|
|
29
|
-
* Title (top header)
|
|
30
|
-
*/
|
|
31
|
-
this.headerTitle = '';
|
|
32
|
-
/**
|
|
33
|
-
* SubTitle (top header)
|
|
34
|
-
*/
|
|
35
|
-
this.headerSubtitle = '';
|
|
36
|
-
/**
|
|
37
|
-
* Description
|
|
38
|
-
*/
|
|
39
|
-
this.description = '';
|
|
40
|
-
/**
|
|
41
|
-
* Enables footer content
|
|
42
|
-
*/
|
|
43
|
-
this.footer = false;
|
|
44
|
-
/**
|
|
45
|
-
* Enables footer button for tab deletion
|
|
46
|
-
*/
|
|
47
|
-
this.deleteTab = false;
|
|
48
|
-
/**
|
|
49
|
-
* Activates postMessages as events for actions from the widget
|
|
50
|
-
*/
|
|
51
|
-
this.postMessage = false;
|
|
52
|
-
/**
|
|
53
|
-
* Name of the event emitter by the action button
|
|
54
|
-
*/
|
|
55
|
-
this.eventName = 'helperAccordionAction';
|
|
56
|
-
/**
|
|
57
|
-
* Collapsed
|
|
58
|
-
*/
|
|
59
|
-
this.collapsed = true;
|
|
60
|
-
/**
|
|
61
|
-
* Language
|
|
62
|
-
*/
|
|
63
|
-
this.language = 'en';
|
|
64
|
-
}
|
|
65
|
-
// @TODO fix the `any` type :)
|
|
66
|
-
connectedCallback() {
|
|
67
|
-
this.showContent = !this.collapsed;
|
|
68
|
-
}
|
|
69
|
-
toggleContent() {
|
|
70
|
-
this.showContent = !this.showContent;
|
|
71
|
-
}
|
|
72
|
-
deleteAction() {
|
|
73
|
-
if (this.postMessage) {
|
|
74
|
-
// @TODO maybe change the name type, this one sucks
|
|
75
|
-
window.postMessage({ type: this.eventName }, window.location.href);
|
|
76
|
-
}
|
|
77
|
-
this.accordionEvent.emit();
|
|
78
|
-
}
|
|
79
|
-
render() {
|
|
80
|
-
return (h("div", { class: "Wrapper" }, h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle" }, this.description), h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
81
|
-
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
82
|
-
h("div", null, this.deleteTab &&
|
|
83
|
-
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
Accordion.style = helperAccordionCss;
|
|
87
|
-
|
|
88
|
-
export { Accordion as helper_accordion };
|