@everymatrix/lottery-grid 1.53.0 → 1.53.11

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.
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [
@@ -2,41 +2,88 @@ import { h } from "@stencil/core";
2
2
  import "../../../../../lottery-bullet/dist/types/index";
3
3
  export class LotteryGrid {
4
4
  constructor() {
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;
5
+ /**
6
+ * Number of bullets of grid
7
+ */
19
8
  this.totalNumbers = 0;
20
- this.gameId = undefined;
9
+ /**
10
+ * Number of maximum bullets that can be selected
11
+ */
21
12
  this.maximumAllowed = 7;
13
+ /**
14
+ * Minimum allowed of bullets
15
+ */
22
16
  this.minimumAllowed = 3;
23
- this.numberRange = undefined;
17
+ /**
18
+ * Allows the user to select numbers on the grid
19
+ */
24
20
  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
+ */
25
24
  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
+ */
26
28
  this.secondaryNumbers = '';
29
+ /**
30
+ * Show only selected numbers
31
+ */
27
32
  this.displaySelected = false;
33
+ /**
34
+ * Language
35
+ */
28
36
  this.language = 'en';
29
- this.gridIndex = undefined;
37
+ /**
38
+ * Personalize grid for ticket
39
+ */
30
40
  this.gridType = '';
41
+ /**
42
+ * Client custom styling via string
43
+ */
31
44
  this.clientStyling = '';
45
+ /**
46
+ * Client custom styling via url content
47
+ */
32
48
  this.clientStylingUrlContent = '';
49
+ /**
50
+ * Maximum number of the grid
51
+ */
33
52
  this.highNumber = 47;
53
+ /**
54
+ * Lowest number of the grid
55
+ */
34
56
  this.lowNumber = 1;
57
+ /**
58
+ * Type of selection
59
+ */
35
60
  this.selectionType = 'mainSelection';
61
+ /**
62
+ * Allows partial quickpick or not
63
+ */
36
64
  this.partialQuickpickAvailable = false;
65
+ /**
66
+ * main selection numbers
67
+ */
37
68
  this.numbers = [];
69
+ /**
70
+ * Bonus selection numbers
71
+ */
38
72
  this.bonusNumbers = [];
39
73
  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
+ };
40
87
  }
41
88
  connectedCallback() {
42
89
  let selected = [];
@@ -239,6 +286,8 @@ export class LotteryGrid {
239
286
  "tags": [],
240
287
  "text": "Identifier for the ticket"
241
288
  },
289
+ "getter": false,
290
+ "setter": false,
242
291
  "attribute": "ticket-id",
243
292
  "reflect": true
244
293
  },
@@ -256,6 +305,8 @@ export class LotteryGrid {
256
305
  "tags": [],
257
306
  "text": "Number of bullets of grid"
258
307
  },
308
+ "getter": false,
309
+ "setter": false,
259
310
  "attribute": "total-numbers",
260
311
  "reflect": true,
261
312
  "defaultValue": "0"
@@ -274,6 +325,8 @@ export class LotteryGrid {
274
325
  "tags": [],
275
326
  "text": "Game ID"
276
327
  },
328
+ "getter": false,
329
+ "setter": false,
277
330
  "attribute": "game-id",
278
331
  "reflect": true
279
332
  },
@@ -291,6 +344,8 @@ export class LotteryGrid {
291
344
  "tags": [],
292
345
  "text": "Number of maximum bullets that can be selected"
293
346
  },
347
+ "getter": false,
348
+ "setter": false,
294
349
  "attribute": "maximum-allowed",
295
350
  "reflect": true,
296
351
  "defaultValue": "7"
@@ -309,6 +364,8 @@ export class LotteryGrid {
309
364
  "tags": [],
310
365
  "text": "Minimum allowed of bullets"
311
366
  },
367
+ "getter": false,
368
+ "setter": false,
312
369
  "attribute": "minimum-allowed",
313
370
  "reflect": true,
314
371
  "defaultValue": "3"
@@ -327,6 +384,8 @@ export class LotteryGrid {
327
384
  "tags": [],
328
385
  "text": "The number of numbers user can select on the grid"
329
386
  },
387
+ "getter": false,
388
+ "setter": false,
330
389
  "attribute": "number-range",
331
390
  "reflect": true
332
391
  },
@@ -344,6 +403,8 @@ export class LotteryGrid {
344
403
  "tags": [],
345
404
  "text": "Allows the user to select numbers on the grid"
346
405
  },
406
+ "getter": false,
407
+ "setter": false,
347
408
  "attribute": "selectable",
348
409
  "reflect": true,
349
410
  "defaultValue": "true"
@@ -362,6 +423,8 @@ export class LotteryGrid {
362
423
  "tags": [],
363
424
  "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')"
364
425
  },
426
+ "getter": false,
427
+ "setter": false,
365
428
  "attribute": "selected-numbers",
366
429
  "reflect": true,
367
430
  "defaultValue": "''"
@@ -380,6 +443,8 @@ export class LotteryGrid {
380
443
  "tags": [],
381
444
  "text": "Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')"
382
445
  },
446
+ "getter": false,
447
+ "setter": false,
383
448
  "attribute": "secondary-numbers",
384
449
  "reflect": true,
385
450
  "defaultValue": "''"
@@ -398,6 +463,8 @@ export class LotteryGrid {
398
463
  "tags": [],
399
464
  "text": "Show only selected numbers"
400
465
  },
466
+ "getter": false,
467
+ "setter": false,
401
468
  "attribute": "display-selected",
402
469
  "reflect": true,
403
470
  "defaultValue": "false"
@@ -416,6 +483,8 @@ export class LotteryGrid {
416
483
  "tags": [],
417
484
  "text": "Language"
418
485
  },
486
+ "getter": false,
487
+ "setter": false,
419
488
  "attribute": "language",
420
489
  "reflect": true,
421
490
  "defaultValue": "'en'"
@@ -434,6 +503,8 @@ export class LotteryGrid {
434
503
  "tags": [],
435
504
  "text": "The index of the number"
436
505
  },
506
+ "getter": false,
507
+ "setter": false,
437
508
  "attribute": "grid-index",
438
509
  "reflect": true
439
510
  },
@@ -451,6 +522,8 @@ export class LotteryGrid {
451
522
  "tags": [],
452
523
  "text": "Personalize grid for ticket"
453
524
  },
525
+ "getter": false,
526
+ "setter": false,
454
527
  "attribute": "grid-type",
455
528
  "reflect": true,
456
529
  "defaultValue": "''"
@@ -469,6 +542,8 @@ export class LotteryGrid {
469
542
  "tags": [],
470
543
  "text": "Client custom styling via string"
471
544
  },
545
+ "getter": false,
546
+ "setter": false,
472
547
  "attribute": "client-styling",
473
548
  "reflect": true,
474
549
  "defaultValue": "''"
@@ -487,6 +562,8 @@ export class LotteryGrid {
487
562
  "tags": [],
488
563
  "text": "Client custom styling via url content"
489
564
  },
565
+ "getter": false,
566
+ "setter": false,
490
567
  "attribute": "client-styling-url-content",
491
568
  "reflect": true,
492
569
  "defaultValue": "''"
@@ -505,6 +582,8 @@ export class LotteryGrid {
505
582
  "tags": [],
506
583
  "text": "Maximum number of the grid"
507
584
  },
585
+ "getter": false,
586
+ "setter": false,
508
587
  "attribute": "high-number",
509
588
  "reflect": true,
510
589
  "defaultValue": "47"
@@ -523,6 +602,8 @@ export class LotteryGrid {
523
602
  "tags": [],
524
603
  "text": "Lowest number of the grid"
525
604
  },
605
+ "getter": false,
606
+ "setter": false,
526
607
  "attribute": "low-number",
527
608
  "reflect": true,
528
609
  "defaultValue": "1"
@@ -541,6 +622,8 @@ export class LotteryGrid {
541
622
  "tags": [],
542
623
  "text": "Type of selection"
543
624
  },
625
+ "getter": false,
626
+ "setter": false,
544
627
  "attribute": "selection-type",
545
628
  "reflect": true,
546
629
  "defaultValue": "'mainSelection'"
@@ -559,6 +642,8 @@ export class LotteryGrid {
559
642
  "tags": [],
560
643
  "text": "Allows partial quickpick or not"
561
644
  },
645
+ "getter": false,
646
+ "setter": false,
562
647
  "attribute": "partial-quickpick-available",
563
648
  "reflect": true,
564
649
  "defaultValue": "false"