@everymatrix/lottery-oddsbom-bullet 0.0.1
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-dde9ffca.js +1215 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/lottery-oddsbom-bullet-b9e898a0.js +199 -0
- package/dist/cjs/lottery-oddsbom-bullet.cjs.entry.js +10 -0
- package/dist/cjs/lottery-oddsbom-bullet.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/lottery-oddsbom-bullet/index.js +1 -0
- package/dist/collection/components/lottery-oddsbom-bullet/lottery-oddsbom-bullet.css +55 -0
- package/dist/collection/components/lottery-oddsbom-bullet/lottery-oddsbom-bullet.js +355 -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/index-c46a54d9.js +1188 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/lottery-oddsbom-bullet-e3b88988.js +197 -0
- package/dist/esm/lottery-oddsbom-bullet.entry.js +2 -0
- package/dist/esm/lottery-oddsbom-bullet.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lottery-oddsbom-bullet/app-globals-0f993ce5.js +1 -0
- package/dist/lottery-oddsbom-bullet/index-c46a54d9.js +2 -0
- package/dist/lottery-oddsbom-bullet/index.esm.js +1 -0
- package/dist/lottery-oddsbom-bullet/lottery-oddsbom-bullet-e3b88988.js +1 -0
- package/dist/lottery-oddsbom-bullet/lottery-oddsbom-bullet.entry.js +1 -0
- package/dist/lottery-oddsbom-bullet/lottery-oddsbom-bullet.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/packages/stencil/lottery-oddsbom-bullet/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/packages/stencil/lottery-oddsbom-bullet/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/packages/stencil/lottery-oddsbom-bullet/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/packages/stencil/lottery-oddsbom-bullet/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-oddsbom-bullet/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/lottery-oddsbom-bullet/index.d.ts +1 -0
- package/dist/types/components/lottery-oddsbom-bullet/lottery-oddsbom-bullet.d.ts +27 -0
- package/dist/types/components.d.ts +81 -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 +27 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
|
+
import { DeleteFilled } from "@ant-design/icons-svg";
|
|
4
|
+
import { renderIconDefinitionToSVGElement } from "@ant-design/icons-svg/es/helpers";
|
|
5
|
+
const DeleteFilledIcon = renderIconDefinitionToSVGElement(DeleteFilled, {
|
|
6
|
+
extraSVGAttrs: { width: '18px', height: '18px', fill: '' }
|
|
7
|
+
});
|
|
8
|
+
export class LotteryOddsbomBullet {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.isSelected = undefined;
|
|
11
|
+
this.disabled = undefined;
|
|
12
|
+
this.text = undefined;
|
|
13
|
+
this.idx = undefined;
|
|
14
|
+
this.isReading = undefined;
|
|
15
|
+
this.isDeleteByIcon = undefined;
|
|
16
|
+
this.isCallDialogBtn = undefined;
|
|
17
|
+
this.isAddedByMoreBtn = undefined;
|
|
18
|
+
this.mbSource = undefined;
|
|
19
|
+
this.clientStyling = undefined;
|
|
20
|
+
this.clientStylingUrl = undefined;
|
|
21
|
+
}
|
|
22
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
23
|
+
if (newValue != oldValue) {
|
|
24
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
28
|
+
if (newValue != oldValue) {
|
|
29
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
33
|
+
if (newValue != oldValue) {
|
|
34
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
if (this.stylingContainer) {
|
|
39
|
+
if (this.mbSource)
|
|
40
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
41
|
+
if (this.clientStyling)
|
|
42
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
43
|
+
if (this.clientStylingUrl)
|
|
44
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
disconnectedCallback() {
|
|
48
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
49
|
+
}
|
|
50
|
+
handleClick() {
|
|
51
|
+
if (this.isCallDialogBtn) {
|
|
52
|
+
this.oddsbomBulletCallDialogEvent.emit();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (this.isDeleteByIcon) {
|
|
56
|
+
if (this.isAddedByMoreBtn) {
|
|
57
|
+
this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.oddsbomBulletDeleteEvent.emit(this.idx);
|
|
61
|
+
}
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (!this.disabled) {
|
|
65
|
+
this.oddsbomBulletToggleEvent.emit(this.idx);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return (h("div", { key: 'e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb', class: "OddsbomBullet", ref: (el) => (this.stylingContainer = el) }, h("button", { key: '4edf5cd481d8283bd71f6806b6f93949e1308095', class: {
|
|
70
|
+
OddsbomBulletBtn__normal: true,
|
|
71
|
+
OddsbomBulletBtn__selected: this.isSelected,
|
|
72
|
+
OddsbomBulletBtn__disabled: this.disabled,
|
|
73
|
+
isDeleteByIcon: this.isDeleteByIcon,
|
|
74
|
+
isCallDialogBtn: this.isCallDialogBtn || this.isReading
|
|
75
|
+
}, onClick: this.handleClick.bind(this), disabled: this.disabled }, h("span", { key: 'fa1aed0293dc004808e6992c069d6992317b0788', class: "OddsbomBullet--deleteIcon", innerHTML: DeleteFilledIcon }), h("span", { key: '53ed96f2c2b833d21488049f987b6131718d563e', class: "OddsbomBullet--text" }, this.text))));
|
|
76
|
+
}
|
|
77
|
+
static get is() { return "lottery-oddsbom-bullet"; }
|
|
78
|
+
static get encapsulation() { return "shadow"; }
|
|
79
|
+
static get originalStyleUrls() {
|
|
80
|
+
return {
|
|
81
|
+
"$": ["lottery-oddsbom-bullet.scss"]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static get styleUrls() {
|
|
85
|
+
return {
|
|
86
|
+
"$": ["lottery-oddsbom-bullet.css"]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static get properties() {
|
|
90
|
+
return {
|
|
91
|
+
"isSelected": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"mutable": false,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "boolean",
|
|
96
|
+
"resolved": "boolean",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"attribute": "is-selected",
|
|
106
|
+
"reflect": true
|
|
107
|
+
},
|
|
108
|
+
"disabled": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "boolean",
|
|
113
|
+
"resolved": "boolean",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": ""
|
|
121
|
+
},
|
|
122
|
+
"attribute": "disabled",
|
|
123
|
+
"reflect": true
|
|
124
|
+
},
|
|
125
|
+
"text": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "string",
|
|
130
|
+
"resolved": "string",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": ""
|
|
138
|
+
},
|
|
139
|
+
"attribute": "text",
|
|
140
|
+
"reflect": true
|
|
141
|
+
},
|
|
142
|
+
"idx": {
|
|
143
|
+
"type": "number",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "number",
|
|
147
|
+
"resolved": "number",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": ""
|
|
155
|
+
},
|
|
156
|
+
"attribute": "idx",
|
|
157
|
+
"reflect": true
|
|
158
|
+
},
|
|
159
|
+
"isReading": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "boolean",
|
|
164
|
+
"resolved": "boolean",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"attribute": "is-reading",
|
|
174
|
+
"reflect": true
|
|
175
|
+
},
|
|
176
|
+
"isDeleteByIcon": {
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "boolean",
|
|
181
|
+
"resolved": "boolean",
|
|
182
|
+
"references": {}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": ""
|
|
189
|
+
},
|
|
190
|
+
"attribute": "is-delete-by-icon",
|
|
191
|
+
"reflect": true
|
|
192
|
+
},
|
|
193
|
+
"isCallDialogBtn": {
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "boolean",
|
|
198
|
+
"resolved": "boolean",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": ""
|
|
206
|
+
},
|
|
207
|
+
"attribute": "is-call-dialog-btn",
|
|
208
|
+
"reflect": true
|
|
209
|
+
},
|
|
210
|
+
"isAddedByMoreBtn": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "boolean",
|
|
215
|
+
"resolved": "boolean",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": ""
|
|
223
|
+
},
|
|
224
|
+
"attribute": "is-added-by-more-btn",
|
|
225
|
+
"reflect": true
|
|
226
|
+
},
|
|
227
|
+
"mbSource": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "string",
|
|
232
|
+
"resolved": "string",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": false,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"attribute": "mb-source",
|
|
242
|
+
"reflect": true
|
|
243
|
+
},
|
|
244
|
+
"clientStyling": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "string",
|
|
249
|
+
"resolved": "string",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": ""
|
|
257
|
+
},
|
|
258
|
+
"attribute": "client-styling",
|
|
259
|
+
"reflect": true
|
|
260
|
+
},
|
|
261
|
+
"clientStylingUrl": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "string",
|
|
266
|
+
"resolved": "string",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": ""
|
|
274
|
+
},
|
|
275
|
+
"attribute": "client-styling-url",
|
|
276
|
+
"reflect": true
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
static get events() {
|
|
281
|
+
return [{
|
|
282
|
+
"method": "oddsbomBulletToggleEvent",
|
|
283
|
+
"name": "oddsbomBulletToggle",
|
|
284
|
+
"bubbles": true,
|
|
285
|
+
"cancelable": true,
|
|
286
|
+
"composed": true,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "number",
|
|
293
|
+
"resolved": "number",
|
|
294
|
+
"references": {}
|
|
295
|
+
}
|
|
296
|
+
}, {
|
|
297
|
+
"method": "oddsbomBulletDeleteEvent",
|
|
298
|
+
"name": "oddsbomBulletDelete",
|
|
299
|
+
"bubbles": true,
|
|
300
|
+
"cancelable": true,
|
|
301
|
+
"composed": true,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": ""
|
|
305
|
+
},
|
|
306
|
+
"complexType": {
|
|
307
|
+
"original": "number",
|
|
308
|
+
"resolved": "number",
|
|
309
|
+
"references": {}
|
|
310
|
+
}
|
|
311
|
+
}, {
|
|
312
|
+
"method": "oddsbomBulletAddedByMoreBtnDeleteEvent",
|
|
313
|
+
"name": "oddsbomBulletAddedByMoreBtnDelete",
|
|
314
|
+
"bubbles": true,
|
|
315
|
+
"cancelable": true,
|
|
316
|
+
"composed": true,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": ""
|
|
320
|
+
},
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "string",
|
|
323
|
+
"resolved": "string",
|
|
324
|
+
"references": {}
|
|
325
|
+
}
|
|
326
|
+
}, {
|
|
327
|
+
"method": "oddsbomBulletCallDialogEvent",
|
|
328
|
+
"name": "oddsbomBulletCallDialog",
|
|
329
|
+
"bubbles": true,
|
|
330
|
+
"cancelable": true,
|
|
331
|
+
"composed": true,
|
|
332
|
+
"docs": {
|
|
333
|
+
"tags": [],
|
|
334
|
+
"text": ""
|
|
335
|
+
},
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "void",
|
|
338
|
+
"resolved": "void",
|
|
339
|
+
"references": {}
|
|
340
|
+
}
|
|
341
|
+
}];
|
|
342
|
+
}
|
|
343
|
+
static get watchers() {
|
|
344
|
+
return [{
|
|
345
|
+
"propName": "clientStyling",
|
|
346
|
+
"methodName": "handleClientStylingChange"
|
|
347
|
+
}, {
|
|
348
|
+
"propName": "clientStylingUrl",
|
|
349
|
+
"methodName": "handleClientStylingUrlChange"
|
|
350
|
+
}, {
|
|
351
|
+
"propName": "mbSource",
|
|
352
|
+
"methodName": "handleMbSourceChange"
|
|
353
|
+
}];
|
|
354
|
+
}
|
|
355
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/lottery-oddsbom-bullet';
|