@everymatrix/lottery-grid 1.56.0 → 1.56.2

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.
Files changed (25) hide show
  1. package/dist/cjs/{index-0019f59e.js → index-066eab2b.js} +71 -206
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet_2.cjs.entry.js +25 -90
  4. package/dist/cjs/lottery-grid.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-grid/lottery-grid.js +17 -102
  7. package/dist/esm/{index-a4a45d0f.js → index-14a3a545.js} +71 -206
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet_2.entry.js +25 -90
  10. package/dist/esm/lottery-grid.js +3 -3
  11. package/dist/lottery-grid/lottery-grid.esm.js +1 -1
  12. package/dist/lottery-grid/p-4d88680c.js +2 -0
  13. package/dist/lottery-grid/p-ae93dcaf.entry.js +1 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/lottery-grid/p-7ec64ea7.entry.js +0 -1
  19. package/dist/lottery-grid/p-eee776b4.js +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0019f59e.js');
5
+ const index = require('./index-066eab2b.js');
6
6
 
7
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:var(--emw--button-text-color, #000);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 var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 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, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #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:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #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:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #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:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}";
8
8
  const LotteryBulletStyle0 = lotteryBulletCss;
@@ -11,31 +11,6 @@ const LotteryBullet = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
14
- /**
15
- * Value of the bullet
16
- */
17
- this.value = '0';
18
- /**
19
- * Marks if the bullet should be selectable
20
- */
21
- this.selectable = true;
22
- /**
23
- * Marks if the bullet should be selected
24
- */
25
- this.isSelected = false;
26
- /**
27
- * Marks if the number is bonus number.
28
- */
29
- this.isBonus = false;
30
- /**
31
- * Client custom styling via string
32
- */
33
- this.clientStyling = '';
34
- /**
35
- * Client custom styling via url content
36
- */
37
- this.clientStylingUrlContent = '';
38
- this.limitStylingAppends = false;
39
14
  this.select = () => {
40
15
  if (this.selectable) {
41
16
  this.isSelected = !this.isSelected;
@@ -57,6 +32,13 @@ const LotteryBullet = class {
57
32
  this.stylingContainer.prepend(cssFile);
58
33
  }, 1);
59
34
  };
35
+ this.value = '0';
36
+ this.selectable = true;
37
+ this.isSelected = false;
38
+ this.isBonus = false;
39
+ this.clientStyling = '';
40
+ this.clientStylingUrlContent = '';
41
+ this.limitStylingAppends = false;
60
42
  }
61
43
  componentDidRender() {
62
44
  // start custom styling area
@@ -84,88 +66,41 @@ const LotteryGrid = class {
84
66
  this.gridFilledEvent = index.createEvent(this, "gridFilled", 7);
85
67
  this.gridDirtyEvent = index.createEvent(this, "gridDirty", 7);
86
68
  this.gridClearAllEvent = index.createEvent(this, "gridClearAllEvent", 7);
87
- /**
88
- * Number of bullets of grid
89
- */
69
+ this.selectedCounter = 0;
70
+ this.setClientStyling = () => {
71
+ let sheet = document.createElement('style');
72
+ sheet.innerHTML = this.clientStyling;
73
+ this.stylingContainer.prepend(sheet);
74
+ };
75
+ this.setClientStylingURL = () => {
76
+ let cssFile = document.createElement('style');
77
+ setTimeout(() => {
78
+ cssFile.innerHTML = this.clientStylingUrlContent;
79
+ this.stylingContainer.prepend(cssFile);
80
+ }, 1);
81
+ };
82
+ this.ticketId = undefined;
90
83
  this.totalNumbers = 0;
91
- /**
92
- * Number of maximum bullets that can be selected
93
- */
84
+ this.gameId = undefined;
94
85
  this.maximumAllowed = 7;
95
- /**
96
- * Minimum allowed of bullets
97
- */
98
86
  this.minimumAllowed = 3;
99
- /**
100
- * Allows the user to select numbers on the grid
101
- */
87
+ this.numberRange = undefined;
102
88
  this.selectable = true;
103
- /**
104
- * Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
105
- */
106
89
  this.selectedNumbers = '';
107
- /**
108
- * Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')
109
- */
110
90
  this.secondaryNumbers = '';
111
- /**
112
- * Show only selected numbers
113
- */
114
91
  this.displaySelected = false;
115
- /**
116
- * Language
117
- */
118
92
  this.language = 'en';
119
- /**
120
- * Personalize grid for ticket
121
- */
93
+ this.gridIndex = undefined;
122
94
  this.gridType = '';
123
- /**
124
- * Client custom styling via string
125
- */
126
95
  this.clientStyling = '';
127
- /**
128
- * Client custom styling via url content
129
- */
130
96
  this.clientStylingUrlContent = '';
131
- /**
132
- * Maximum number of the grid
133
- */
134
97
  this.highNumber = 47;
135
- /**
136
- * Lowest number of the grid
137
- */
138
98
  this.lowNumber = 1;
139
- /**
140
- * Type of selection
141
- */
142
99
  this.selectionType = 'mainSelection';
143
- /**
144
- * Allows partial quickpick or not
145
- */
146
100
  this.partialQuickpickAvailable = false;
147
- /**
148
- * main selection numbers
149
- */
150
101
  this.numbers = [];
151
- /**
152
- * Bonus selection numbers
153
- */
154
102
  this.bonusNumbers = [];
155
103
  this.limitStylingAppends = false;
156
- this.selectedCounter = 0;
157
- this.setClientStyling = () => {
158
- let sheet = document.createElement('style');
159
- sheet.innerHTML = this.clientStyling;
160
- this.stylingContainer.prepend(sheet);
161
- };
162
- this.setClientStylingURL = () => {
163
- let cssFile = document.createElement('style');
164
- setTimeout(() => {
165
- cssFile.innerHTML = this.clientStylingUrlContent;
166
- this.stylingContainer.prepend(cssFile);
167
- }, 1);
168
- };
169
104
  }
170
105
  connectedCallback() {
171
106
  let selected = [];
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0019f59e.js');
5
+ const index = require('./index-066eab2b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-grid.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [
11
11
  {
@@ -2,88 +2,41 @@ import { h } from "@stencil/core";
2
2
  import "../../../../../lottery-bullet/dist/types/index";
3
3
  export class LotteryGrid {
4
4
  constructor() {
5
- /**
6
- * Number of bullets of grid
7
- */
5
+ this.selectedCounter = 0;
6
+ this.setClientStyling = () => {
7
+ let sheet = document.createElement('style');
8
+ sheet.innerHTML = this.clientStyling;
9
+ this.stylingContainer.prepend(sheet);
10
+ };
11
+ this.setClientStylingURL = () => {
12
+ let cssFile = document.createElement('style');
13
+ setTimeout(() => {
14
+ cssFile.innerHTML = this.clientStylingUrlContent;
15
+ this.stylingContainer.prepend(cssFile);
16
+ }, 1);
17
+ };
18
+ this.ticketId = undefined;
8
19
  this.totalNumbers = 0;
9
- /**
10
- * Number of maximum bullets that can be selected
11
- */
20
+ this.gameId = undefined;
12
21
  this.maximumAllowed = 7;
13
- /**
14
- * Minimum allowed of bullets
15
- */
16
22
  this.minimumAllowed = 3;
17
- /**
18
- * Allows the user to select numbers on the grid
19
- */
23
+ this.numberRange = undefined;
20
24
  this.selectable = true;
21
- /**
22
- * Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
23
- */
24
25
  this.selectedNumbers = '';
25
- /**
26
- * Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')
27
- */
28
26
  this.secondaryNumbers = '';
29
- /**
30
- * Show only selected numbers
31
- */
32
27
  this.displaySelected = false;
33
- /**
34
- * Language
35
- */
36
28
  this.language = 'en';
37
- /**
38
- * Personalize grid for ticket
39
- */
29
+ this.gridIndex = undefined;
40
30
  this.gridType = '';
41
- /**
42
- * Client custom styling via string
43
- */
44
31
  this.clientStyling = '';
45
- /**
46
- * Client custom styling via url content
47
- */
48
32
  this.clientStylingUrlContent = '';
49
- /**
50
- * Maximum number of the grid
51
- */
52
33
  this.highNumber = 47;
53
- /**
54
- * Lowest number of the grid
55
- */
56
34
  this.lowNumber = 1;
57
- /**
58
- * Type of selection
59
- */
60
35
  this.selectionType = 'mainSelection';
61
- /**
62
- * Allows partial quickpick or not
63
- */
64
36
  this.partialQuickpickAvailable = false;
65
- /**
66
- * main selection numbers
67
- */
68
37
  this.numbers = [];
69
- /**
70
- * Bonus selection numbers
71
- */
72
38
  this.bonusNumbers = [];
73
39
  this.limitStylingAppends = false;
74
- this.selectedCounter = 0;
75
- this.setClientStyling = () => {
76
- let sheet = document.createElement('style');
77
- sheet.innerHTML = this.clientStyling;
78
- this.stylingContainer.prepend(sheet);
79
- };
80
- this.setClientStylingURL = () => {
81
- let cssFile = document.createElement('style');
82
- setTimeout(() => {
83
- cssFile.innerHTML = this.clientStylingUrlContent;
84
- this.stylingContainer.prepend(cssFile);
85
- }, 1);
86
- };
87
40
  }
88
41
  connectedCallback() {
89
42
  let selected = [];
@@ -286,8 +239,6 @@ export class LotteryGrid {
286
239
  "tags": [],
287
240
  "text": "Identifier for the ticket"
288
241
  },
289
- "getter": false,
290
- "setter": false,
291
242
  "attribute": "ticket-id",
292
243
  "reflect": true
293
244
  },
@@ -305,8 +256,6 @@ export class LotteryGrid {
305
256
  "tags": [],
306
257
  "text": "Number of bullets of grid"
307
258
  },
308
- "getter": false,
309
- "setter": false,
310
259
  "attribute": "total-numbers",
311
260
  "reflect": true,
312
261
  "defaultValue": "0"
@@ -325,8 +274,6 @@ export class LotteryGrid {
325
274
  "tags": [],
326
275
  "text": "Game ID"
327
276
  },
328
- "getter": false,
329
- "setter": false,
330
277
  "attribute": "game-id",
331
278
  "reflect": true
332
279
  },
@@ -344,8 +291,6 @@ export class LotteryGrid {
344
291
  "tags": [],
345
292
  "text": "Number of maximum bullets that can be selected"
346
293
  },
347
- "getter": false,
348
- "setter": false,
349
294
  "attribute": "maximum-allowed",
350
295
  "reflect": true,
351
296
  "defaultValue": "7"
@@ -364,8 +309,6 @@ export class LotteryGrid {
364
309
  "tags": [],
365
310
  "text": "Minimum allowed of bullets"
366
311
  },
367
- "getter": false,
368
- "setter": false,
369
312
  "attribute": "minimum-allowed",
370
313
  "reflect": true,
371
314
  "defaultValue": "3"
@@ -384,8 +327,6 @@ export class LotteryGrid {
384
327
  "tags": [],
385
328
  "text": "The number of numbers user can select on the grid"
386
329
  },
387
- "getter": false,
388
- "setter": false,
389
330
  "attribute": "number-range",
390
331
  "reflect": true
391
332
  },
@@ -403,8 +344,6 @@ export class LotteryGrid {
403
344
  "tags": [],
404
345
  "text": "Allows the user to select numbers on the grid"
405
346
  },
406
- "getter": false,
407
- "setter": false,
408
347
  "attribute": "selectable",
409
348
  "reflect": true,
410
349
  "defaultValue": "true"
@@ -423,8 +362,6 @@ export class LotteryGrid {
423
362
  "tags": [],
424
363
  "text": "Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')"
425
364
  },
426
- "getter": false,
427
- "setter": false,
428
365
  "attribute": "selected-numbers",
429
366
  "reflect": true,
430
367
  "defaultValue": "''"
@@ -443,8 +380,6 @@ export class LotteryGrid {
443
380
  "tags": [],
444
381
  "text": "Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')"
445
382
  },
446
- "getter": false,
447
- "setter": false,
448
383
  "attribute": "secondary-numbers",
449
384
  "reflect": true,
450
385
  "defaultValue": "''"
@@ -463,8 +398,6 @@ export class LotteryGrid {
463
398
  "tags": [],
464
399
  "text": "Show only selected numbers"
465
400
  },
466
- "getter": false,
467
- "setter": false,
468
401
  "attribute": "display-selected",
469
402
  "reflect": true,
470
403
  "defaultValue": "false"
@@ -483,8 +416,6 @@ export class LotteryGrid {
483
416
  "tags": [],
484
417
  "text": "Language"
485
418
  },
486
- "getter": false,
487
- "setter": false,
488
419
  "attribute": "language",
489
420
  "reflect": true,
490
421
  "defaultValue": "'en'"
@@ -503,8 +434,6 @@ export class LotteryGrid {
503
434
  "tags": [],
504
435
  "text": "The index of the number"
505
436
  },
506
- "getter": false,
507
- "setter": false,
508
437
  "attribute": "grid-index",
509
438
  "reflect": true
510
439
  },
@@ -522,8 +451,6 @@ export class LotteryGrid {
522
451
  "tags": [],
523
452
  "text": "Personalize grid for ticket"
524
453
  },
525
- "getter": false,
526
- "setter": false,
527
454
  "attribute": "grid-type",
528
455
  "reflect": true,
529
456
  "defaultValue": "''"
@@ -542,8 +469,6 @@ export class LotteryGrid {
542
469
  "tags": [],
543
470
  "text": "Client custom styling via string"
544
471
  },
545
- "getter": false,
546
- "setter": false,
547
472
  "attribute": "client-styling",
548
473
  "reflect": true,
549
474
  "defaultValue": "''"
@@ -562,8 +487,6 @@ export class LotteryGrid {
562
487
  "tags": [],
563
488
  "text": "Client custom styling via url content"
564
489
  },
565
- "getter": false,
566
- "setter": false,
567
490
  "attribute": "client-styling-url-content",
568
491
  "reflect": true,
569
492
  "defaultValue": "''"
@@ -582,8 +505,6 @@ export class LotteryGrid {
582
505
  "tags": [],
583
506
  "text": "Maximum number of the grid"
584
507
  },
585
- "getter": false,
586
- "setter": false,
587
508
  "attribute": "high-number",
588
509
  "reflect": true,
589
510
  "defaultValue": "47"
@@ -602,8 +523,6 @@ export class LotteryGrid {
602
523
  "tags": [],
603
524
  "text": "Lowest number of the grid"
604
525
  },
605
- "getter": false,
606
- "setter": false,
607
526
  "attribute": "low-number",
608
527
  "reflect": true,
609
528
  "defaultValue": "1"
@@ -622,8 +541,6 @@ export class LotteryGrid {
622
541
  "tags": [],
623
542
  "text": "Type of selection"
624
543
  },
625
- "getter": false,
626
- "setter": false,
627
544
  "attribute": "selection-type",
628
545
  "reflect": true,
629
546
  "defaultValue": "'mainSelection'"
@@ -642,8 +559,6 @@ export class LotteryGrid {
642
559
  "tags": [],
643
560
  "text": "Allows partial quickpick or not"
644
561
  },
645
- "getter": false,
646
- "setter": false,
647
562
  "attribute": "partial-quickpick-available",
648
563
  "reflect": true,
649
564
  "defaultValue": "false"