@everymatrix/casino-tournament-desc 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-tournament-desc/casino-tournament-desc.esm.js +1 -0
- package/dist/casino-tournament-desc/index.esm.js +0 -0
- package/dist/casino-tournament-desc/p-38c5cae6.entry.js +1 -0
- package/dist/casino-tournament-desc/p-dc30d5ac.js +2 -0
- package/dist/casino-tournament-desc/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-tournament-desc.cjs.entry.js +83 -0
- package/dist/cjs/casino-tournament-desc.cjs.js +25 -0
- package/dist/cjs/index-fae16713.js +1254 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/casino-tournament-desc/casino-tournament-desc.css +46 -0
- package/dist/collection/components/casino-tournament-desc/casino-tournament-desc.js +192 -0
- package/dist/collection/components/casino-tournament-desc/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-tournament-desc.entry.js +79 -0
- package/dist/esm/casino-tournament-desc.js +20 -0
- package/dist/esm/index-5479ab85.js +1227 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-tournament-desc/casino-tournament-desc.d.ts +34 -0
- package/dist/types/components/casino-tournament-desc/index.d.ts +1 -0
- package/dist/types/components.d.ts +77 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-fae16713.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
+
|
|
8
|
+
const defineCustomElements = async (win, options) => {
|
|
9
|
+
if (typeof window === 'undefined') return undefined;
|
|
10
|
+
await appGlobals.globalScripts();
|
|
11
|
+
return index.bootstrapLazy([["casino-tournament-desc.cjs",[[1,"casino-tournament-desc",{"desc":[1],"descTitle":[1,"desc-title"],"useEvent":[4,"use-event"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"limitStylingAppends":[32],"stylingContainer":[32],"collapsed":[32],"tournamentDescriptions":[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]], options);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.setNonce = index.setNonce;
|
|
15
|
+
exports.defineCustomElements = defineCustomElements;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.DetailsCard {
|
|
6
|
+
color: var(--emfe-w-color-white, #FFFFFF);
|
|
7
|
+
width: 100%;
|
|
8
|
+
margin: 0 0 25px 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.DetailsTitle {
|
|
12
|
+
padding: 0 8px;
|
|
13
|
+
height: 36px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
background: var(--emfe-w-tournament-color-bg, #153a5c);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.DetailsContent {
|
|
21
|
+
overflow: auto;
|
|
22
|
+
height: 150px;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
padding: 10px 10px 10px 20px;
|
|
25
|
+
margin: 10px 20px 10px 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.CollapseButtonDetails svg {
|
|
29
|
+
width: 24px;
|
|
30
|
+
height: 24px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sc::-webkit-scrollbar {
|
|
34
|
+
width: 5px;
|
|
35
|
+
height: 5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sc::-webkit-scrollbar-track {
|
|
39
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
40
|
+
border-radius: 10px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sc::-webkit-scrollbar-thumb {
|
|
44
|
+
background-color: var(--emfe-w-color-white, #FFFFFF);
|
|
45
|
+
border-radius: 10px;
|
|
46
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class CasinoTournamentDesc {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.desc = undefined;
|
|
5
|
+
this.descTitle = undefined;
|
|
6
|
+
this.useEvent = true;
|
|
7
|
+
this.clientStyling = '';
|
|
8
|
+
this.clientStylingUrl = '';
|
|
9
|
+
this.limitStylingAppends = false;
|
|
10
|
+
this.stylingContainer = undefined;
|
|
11
|
+
this.collapsed = [];
|
|
12
|
+
this.tournamentDescriptions = [];
|
|
13
|
+
}
|
|
14
|
+
descCompletedHandler(event) {
|
|
15
|
+
if (event.detail && this.useEvent) {
|
|
16
|
+
this.tournamentDescriptions = event.detail;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
collapseText(index) {
|
|
20
|
+
this.collapsed[index] = !this.collapsed[index];
|
|
21
|
+
this.collapsed = [...this.collapsed];
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
if (this.useEvent == false && this.desc && this.descTitle) {
|
|
25
|
+
let item = {
|
|
26
|
+
title: this.descTitle,
|
|
27
|
+
text: this.desc
|
|
28
|
+
};
|
|
29
|
+
this.tournamentDescriptions.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
componentDidRender() {
|
|
33
|
+
if (!this.limitStylingAppends && this.host) {
|
|
34
|
+
if (this.clientStyling)
|
|
35
|
+
this.setClientStyling();
|
|
36
|
+
if (this.clientStylingUrl)
|
|
37
|
+
this.setClientStylingURL();
|
|
38
|
+
this.limitStylingAppends = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
setClientStyling() {
|
|
42
|
+
const sheet = new CSSStyleSheet();
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
sheet.replace(this.clientStyling);
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
47
|
+
}
|
|
48
|
+
setClientStylingURL() {
|
|
49
|
+
let url = new URL(this.clientStylingUrl);
|
|
50
|
+
fetch(url.href)
|
|
51
|
+
.then((res) => res.text())
|
|
52
|
+
.then((data) => {
|
|
53
|
+
const sheet = new CSSStyleSheet();
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
sheet.replace(data);
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return h("div", { key: '58eb843db2f73c1549d703040cb13b4a0ce6ed5c', class: "TournamentDescription" }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
|
|
62
|
+
return h("div", { class: "DetailsCard" }, item.title &&
|
|
63
|
+
h("div", { class: "DetailsTitle" }, h("p", { class: "Title" }, item.title), h("div", { class: "CollapseButtonDetails", onClick: () => this.collapseText(index) }, this.collapsed[index] ?
|
|
64
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M18 15l-6-6-6 6" }))
|
|
65
|
+
:
|
|
66
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index] &&
|
|
67
|
+
h("div", { class: "DetailsContent sc", innerHTML: item.text }));
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
static get is() { return "casino-tournament-desc"; }
|
|
71
|
+
static get encapsulation() { return "shadow"; }
|
|
72
|
+
static get originalStyleUrls() {
|
|
73
|
+
return {
|
|
74
|
+
"$": ["casino-tournament-desc.scss"]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static get styleUrls() {
|
|
78
|
+
return {
|
|
79
|
+
"$": ["casino-tournament-desc.css"]
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
static get properties() {
|
|
83
|
+
return {
|
|
84
|
+
"desc": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": true,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": "Description content as HTML"
|
|
97
|
+
},
|
|
98
|
+
"attribute": "desc",
|
|
99
|
+
"reflect": false
|
|
100
|
+
},
|
|
101
|
+
"descTitle": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": true,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Description title"
|
|
114
|
+
},
|
|
115
|
+
"attribute": "desc-title",
|
|
116
|
+
"reflect": false
|
|
117
|
+
},
|
|
118
|
+
"useEvent": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "boolean",
|
|
123
|
+
"resolved": "boolean",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": true,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": "Use event to get data"
|
|
131
|
+
},
|
|
132
|
+
"attribute": "use-event",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "true"
|
|
135
|
+
},
|
|
136
|
+
"clientStyling": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": true,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "Client custom styling via inline styles"
|
|
149
|
+
},
|
|
150
|
+
"attribute": "client-styling",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "''"
|
|
153
|
+
},
|
|
154
|
+
"clientStylingUrl": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "string",
|
|
159
|
+
"resolved": "string",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": true,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Client custom styling via url"
|
|
167
|
+
},
|
|
168
|
+
"attribute": "client-styling-url",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "''"
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
static get states() {
|
|
175
|
+
return {
|
|
176
|
+
"limitStylingAppends": {},
|
|
177
|
+
"stylingContainer": {},
|
|
178
|
+
"collapsed": {},
|
|
179
|
+
"tournamentDescriptions": {}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static get elementRef() { return "host"; }
|
|
183
|
+
static get listeners() {
|
|
184
|
+
return [{
|
|
185
|
+
"name": "getTournamentDescriptionCompleted",
|
|
186
|
+
"method": "descCompletedHandler",
|
|
187
|
+
"target": "window",
|
|
188
|
+
"capture": false,
|
|
189
|
+
"passive": false
|
|
190
|
+
}];
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoTournamentDesc } from './casino-tournament-desc';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-5479ab85.js';
|
|
2
|
+
|
|
3
|
+
const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
|
|
4
|
+
const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
|
|
5
|
+
|
|
6
|
+
const CasinoTournamentDesc = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.desc = undefined;
|
|
10
|
+
this.descTitle = undefined;
|
|
11
|
+
this.useEvent = true;
|
|
12
|
+
this.clientStyling = '';
|
|
13
|
+
this.clientStylingUrl = '';
|
|
14
|
+
this.limitStylingAppends = false;
|
|
15
|
+
this.stylingContainer = undefined;
|
|
16
|
+
this.collapsed = [];
|
|
17
|
+
this.tournamentDescriptions = [];
|
|
18
|
+
}
|
|
19
|
+
descCompletedHandler(event) {
|
|
20
|
+
if (event.detail && this.useEvent) {
|
|
21
|
+
this.tournamentDescriptions = event.detail;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
collapseText(index) {
|
|
25
|
+
this.collapsed[index] = !this.collapsed[index];
|
|
26
|
+
this.collapsed = [...this.collapsed];
|
|
27
|
+
}
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
if (this.useEvent == false && this.desc && this.descTitle) {
|
|
30
|
+
let item = {
|
|
31
|
+
title: this.descTitle,
|
|
32
|
+
text: this.desc
|
|
33
|
+
};
|
|
34
|
+
this.tournamentDescriptions.push(item);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
componentDidRender() {
|
|
38
|
+
if (!this.limitStylingAppends && this.host) {
|
|
39
|
+
if (this.clientStyling)
|
|
40
|
+
this.setClientStyling();
|
|
41
|
+
if (this.clientStylingUrl)
|
|
42
|
+
this.setClientStylingURL();
|
|
43
|
+
this.limitStylingAppends = true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
setClientStyling() {
|
|
47
|
+
const sheet = new CSSStyleSheet();
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
sheet.replace(this.clientStyling);
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
52
|
+
}
|
|
53
|
+
setClientStylingURL() {
|
|
54
|
+
let url = new URL(this.clientStylingUrl);
|
|
55
|
+
fetch(url.href)
|
|
56
|
+
.then((res) => res.text())
|
|
57
|
+
.then((data) => {
|
|
58
|
+
const sheet = new CSSStyleSheet();
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
sheet.replace(data);
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return h("div", { key: '58eb843db2f73c1549d703040cb13b4a0ce6ed5c', class: "TournamentDescription" }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
|
|
67
|
+
return h("div", { class: "DetailsCard" }, item.title &&
|
|
68
|
+
h("div", { class: "DetailsTitle" }, h("p", { class: "Title" }, item.title), h("div", { class: "CollapseButtonDetails", onClick: () => this.collapseText(index) }, this.collapsed[index] ?
|
|
69
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M18 15l-6-6-6 6" }))
|
|
70
|
+
:
|
|
71
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index] &&
|
|
72
|
+
h("div", { class: "DetailsContent sc", innerHTML: item.text }));
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
get host() { return getElement(this); }
|
|
76
|
+
};
|
|
77
|
+
CasinoTournamentDesc.style = CasinoTournamentDescStyle0;
|
|
78
|
+
|
|
79
|
+
export { CasinoTournamentDesc as casino_tournament_desc };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-5479ab85.js';
|
|
2
|
+
export { s as setNonce } from './index-5479ab85.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
return bootstrapLazy([["casino-tournament-desc",[[1,"casino-tournament-desc",{"desc":[1],"descTitle":[1,"desc-title"],"useEvent":[4,"use-event"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"limitStylingAppends":[32],"stylingContainer":[32],"collapsed":[32],"tournamentDescriptions":[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]], options);
|
|
20
|
+
});
|