@skyux/indicators 6.23.1 → 6.23.3

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.
@@ -49,14 +49,14 @@
49
49
  "originalName": "",
50
50
  "children": [
51
51
  {
52
- "id": 385,
52
+ "id": 387,
53
53
  "name": "SkyTokensMessageType",
54
54
  "kind": 8,
55
55
  "kindString": "Enumeration",
56
56
  "flags": {},
57
57
  "children": [
58
58
  {
59
- "id": 387,
59
+ "id": 389,
60
60
  "name": "FocusActiveToken",
61
61
  "kind": 16,
62
62
  "kindString": "Enumeration member",
@@ -74,7 +74,7 @@
74
74
  "defaultValue": "1"
75
75
  },
76
76
  {
77
- "id": 386,
77
+ "id": 388,
78
78
  "name": "FocusLastToken",
79
79
  "kind": 16,
80
80
  "kindString": "Enumeration member",
@@ -92,7 +92,7 @@
92
92
  "defaultValue": "0"
93
93
  },
94
94
  {
95
- "id": 389,
95
+ "id": 391,
96
96
  "name": "FocusNextToken",
97
97
  "kind": 16,
98
98
  "kindString": "Enumeration member",
@@ -110,7 +110,7 @@
110
110
  "defaultValue": "3"
111
111
  },
112
112
  {
113
- "id": 388,
113
+ "id": 390,
114
114
  "name": "FocusPreviousToken",
115
115
  "kind": 16,
116
116
  "kindString": "Enumeration member",
@@ -128,7 +128,7 @@
128
128
  "defaultValue": "2"
129
129
  },
130
130
  {
131
- "id": 390,
131
+ "id": 392,
132
132
  "name": "RemoveActiveToken",
133
133
  "kind": 16,
134
134
  "kindString": "Enumeration member",
@@ -151,11 +151,11 @@
151
151
  "title": "Enumeration members",
152
152
  "kind": 16,
153
153
  "children": [
154
- 387,
155
- 386,
156
154
  389,
157
155
  388,
158
- 390
156
+ 391,
157
+ 390,
158
+ 392
159
159
  ]
160
160
  }
161
161
  ],
@@ -548,7 +548,7 @@
548
548
  ]
549
549
  },
550
550
  {
551
- "id": 391,
551
+ "id": 393,
552
552
  "name": "SkyWaitModule",
553
553
  "kind": 128,
554
554
  "kindString": "Class",
@@ -573,7 +573,7 @@
573
573
  "title": "Constructors",
574
574
  "kind": 512,
575
575
  "children": [
576
- 392
576
+ 394
577
577
  ]
578
578
  }
579
579
  ],
@@ -586,7 +586,7 @@
586
586
  ]
587
587
  },
588
588
  {
589
- "id": 394,
589
+ "id": 396,
590
590
  "name": "SkyWaitService",
591
591
  "kind": 128,
592
592
  "kindString": "Class",
@@ -607,7 +607,7 @@
607
607
  ],
608
608
  "children": [
609
609
  {
610
- "id": 395,
610
+ "id": 397,
611
611
  "name": "constructor",
612
612
  "kind": 512,
613
613
  "kindString": "Constructor",
@@ -621,14 +621,14 @@
621
621
  ],
622
622
  "signatures": [
623
623
  {
624
- "id": 396,
624
+ "id": 398,
625
625
  "name": "new SkyWaitService",
626
626
  "kind": 16384,
627
627
  "kindString": "Constructor signature",
628
628
  "flags": {},
629
629
  "parameters": [
630
630
  {
631
- "id": 397,
631
+ "id": 399,
632
632
  "name": "resolver",
633
633
  "kind": 32768,
634
634
  "kindString": "Parameter",
@@ -641,7 +641,7 @@
641
641
  }
642
642
  },
643
643
  {
644
- "id": 398,
644
+ "id": 400,
645
645
  "name": "appRef",
646
646
  "kind": 32768,
647
647
  "kindString": "Parameter",
@@ -654,7 +654,7 @@
654
654
  }
655
655
  },
656
656
  {
657
- "id": 399,
657
+ "id": 401,
658
658
  "name": "waitAdapter",
659
659
  "kind": 32768,
660
660
  "kindString": "Parameter",
@@ -665,7 +665,7 @@
665
665
  }
666
666
  },
667
667
  {
668
- "id": 400,
668
+ "id": 402,
669
669
  "name": "windowSvc",
670
670
  "kind": 32768,
671
671
  "kindString": "Parameter",
@@ -678,14 +678,14 @@
678
678
  ],
679
679
  "type": {
680
680
  "type": "reference",
681
- "id": 394,
681
+ "id": 396,
682
682
  "name": "SkyWaitService"
683
683
  }
684
684
  }
685
685
  ]
686
686
  },
687
687
  {
688
- "id": 405,
688
+ "id": 407,
689
689
  "name": "beginBlockingPageWait",
690
690
  "kind": 2048,
691
691
  "kindString": "Method",
@@ -701,7 +701,7 @@
701
701
  ],
702
702
  "signatures": [
703
703
  {
704
- "id": 406,
704
+ "id": 408,
705
705
  "name": "beginBlockingPageWait",
706
706
  "kind": 4096,
707
707
  "kindString": "Call signature",
@@ -717,7 +717,7 @@
717
717
  ]
718
718
  },
719
719
  {
720
- "id": 407,
720
+ "id": 409,
721
721
  "name": "beginNonBlockingPageWait",
722
722
  "kind": 2048,
723
723
  "kindString": "Method",
@@ -733,7 +733,7 @@
733
733
  ],
734
734
  "signatures": [
735
735
  {
736
- "id": 408,
736
+ "id": 410,
737
737
  "name": "beginNonBlockingPageWait",
738
738
  "kind": 4096,
739
739
  "kindString": "Call signature",
@@ -749,7 +749,7 @@
749
749
  ]
750
750
  },
751
751
  {
752
- "id": 417,
752
+ "id": 419,
753
753
  "name": "blockingWrap",
754
754
  "kind": 2048,
755
755
  "kindString": "Method",
@@ -765,7 +765,7 @@
765
765
  ],
766
766
  "signatures": [
767
767
  {
768
- "id": 418,
768
+ "id": 420,
769
769
  "name": "blockingWrap",
770
770
  "kind": 4096,
771
771
  "kindString": "Call signature",
@@ -775,7 +775,7 @@
775
775
  },
776
776
  "typeParameter": [
777
777
  {
778
- "id": 419,
778
+ "id": 421,
779
779
  "name": "T",
780
780
  "kind": 131072,
781
781
  "kindString": "Type parameter",
@@ -784,7 +784,7 @@
784
784
  ],
785
785
  "parameters": [
786
786
  {
787
- "id": 420,
787
+ "id": 422,
788
788
  "name": "observable",
789
789
  "kind": 32768,
790
790
  "kindString": "Parameter",
@@ -794,7 +794,7 @@
794
794
  "typeArguments": [
795
795
  {
796
796
  "type": "reference",
797
- "id": 419,
797
+ "id": 421,
798
798
  "name": "T"
799
799
  }
800
800
  ],
@@ -809,7 +809,7 @@
809
809
  "typeArguments": [
810
810
  {
811
811
  "type": "reference",
812
- "id": 419,
812
+ "id": 421,
813
813
  "name": "T"
814
814
  }
815
815
  ],
@@ -821,7 +821,7 @@
821
821
  ]
822
822
  },
823
823
  {
824
- "id": 413,
824
+ "id": 415,
825
825
  "name": "clearAllPageWaits",
826
826
  "kind": 2048,
827
827
  "kindString": "Method",
@@ -837,7 +837,7 @@
837
837
  ],
838
838
  "signatures": [
839
839
  {
840
- "id": 414,
840
+ "id": 416,
841
841
  "name": "clearAllPageWaits",
842
842
  "kind": 4096,
843
843
  "kindString": "Call signature",
@@ -853,7 +853,7 @@
853
853
  ]
854
854
  },
855
855
  {
856
- "id": 409,
856
+ "id": 411,
857
857
  "name": "endBlockingPageWait",
858
858
  "kind": 2048,
859
859
  "kindString": "Method",
@@ -869,7 +869,7 @@
869
869
  ],
870
870
  "signatures": [
871
871
  {
872
- "id": 410,
872
+ "id": 412,
873
873
  "name": "endBlockingPageWait",
874
874
  "kind": 4096,
875
875
  "kindString": "Call signature",
@@ -885,7 +885,7 @@
885
885
  ]
886
886
  },
887
887
  {
888
- "id": 411,
888
+ "id": 413,
889
889
  "name": "endNonBlockingPageWait",
890
890
  "kind": 2048,
891
891
  "kindString": "Method",
@@ -901,7 +901,7 @@
901
901
  ],
902
902
  "signatures": [
903
903
  {
904
- "id": 412,
904
+ "id": 414,
905
905
  "name": "endNonBlockingPageWait",
906
906
  "kind": 4096,
907
907
  "kindString": "Call signature",
@@ -917,7 +917,7 @@
917
917
  ]
918
918
  },
919
919
  {
920
- "id": 421,
920
+ "id": 423,
921
921
  "name": "nonBlockingWrap",
922
922
  "kind": 2048,
923
923
  "kindString": "Method",
@@ -933,7 +933,7 @@
933
933
  ],
934
934
  "signatures": [
935
935
  {
936
- "id": 422,
936
+ "id": 424,
937
937
  "name": "nonBlockingWrap",
938
938
  "kind": 4096,
939
939
  "kindString": "Call signature",
@@ -943,7 +943,7 @@
943
943
  },
944
944
  "typeParameter": [
945
945
  {
946
- "id": 423,
946
+ "id": 425,
947
947
  "name": "T",
948
948
  "kind": 131072,
949
949
  "kindString": "Type parameter",
@@ -952,7 +952,7 @@
952
952
  ],
953
953
  "parameters": [
954
954
  {
955
- "id": 424,
955
+ "id": 426,
956
956
  "name": "observable",
957
957
  "kind": 32768,
958
958
  "kindString": "Parameter",
@@ -962,7 +962,7 @@
962
962
  "typeArguments": [
963
963
  {
964
964
  "type": "reference",
965
- "id": 423,
965
+ "id": 425,
966
966
  "name": "T"
967
967
  }
968
968
  ],
@@ -977,7 +977,7 @@
977
977
  "typeArguments": [
978
978
  {
979
979
  "type": "reference",
980
- "id": 423,
980
+ "id": 425,
981
981
  "name": "T"
982
982
  }
983
983
  ],
@@ -994,20 +994,20 @@
994
994
  "title": "Constructors",
995
995
  "kind": 512,
996
996
  "children": [
997
- 395
997
+ 397
998
998
  ]
999
999
  },
1000
1000
  {
1001
1001
  "title": "Methods",
1002
1002
  "kind": 2048,
1003
1003
  "children": [
1004
- 405,
1005
1004
  407,
1006
- 417,
1007
- 413,
1008
1005
  409,
1006
+ 419,
1007
+ 415,
1009
1008
  411,
1010
- 421
1009
+ 413,
1010
+ 423
1011
1011
  ]
1012
1012
  }
1013
1013
  ],
@@ -3449,7 +3449,13 @@
3449
3449
  "typeArguments": [
3450
3450
  {
3451
3451
  "type": "reference",
3452
- "id": 381,
3452
+ "id": 382,
3453
+ "typeArguments": [
3454
+ {
3455
+ "type": "intrinsic",
3456
+ "name": "any"
3457
+ }
3458
+ ],
3453
3459
  "name": "SkyTokenSelectedEventArgs"
3454
3460
  }
3455
3461
  ],
@@ -3497,6 +3503,12 @@
3497
3503
  "elementType": {
3498
3504
  "type": "reference",
3499
3505
  "id": 379,
3506
+ "typeArguments": [
3507
+ {
3508
+ "type": "intrinsic",
3509
+ "name": "any"
3510
+ }
3511
+ ],
3500
3512
  "name": "SkyToken"
3501
3513
  }
3502
3514
  }
@@ -3528,6 +3540,12 @@
3528
3540
  {
3529
3541
  "type": "reference",
3530
3542
  "id": 379,
3543
+ "typeArguments": [
3544
+ {
3545
+ "type": "intrinsic",
3546
+ "name": "any"
3547
+ }
3548
+ ],
3531
3549
  "name": "SkyToken"
3532
3550
  }
3533
3551
  ],
@@ -4008,7 +4026,7 @@
4008
4026
  "typeArguments": [
4009
4027
  {
4010
4028
  "type": "reference",
4011
- "id": 383,
4029
+ "id": 385,
4012
4030
  "name": "SkyTokensMessage"
4013
4031
  }
4014
4032
  ],
@@ -4040,7 +4058,7 @@
4040
4058
  "typeArguments": [
4041
4059
  {
4042
4060
  "type": "reference",
4043
- "id": 383,
4061
+ "id": 385,
4044
4062
  "name": "SkyTokensMessage"
4045
4063
  }
4046
4064
  ],
@@ -4099,6 +4117,12 @@
4099
4117
  "elementType": {
4100
4118
  "type": "reference",
4101
4119
  "id": 379,
4120
+ "typeArguments": [
4121
+ {
4122
+ "type": "intrinsic",
4123
+ "name": "any"
4124
+ }
4125
+ ],
4102
4126
  "name": "SkyToken"
4103
4127
  }
4104
4128
  }
@@ -4126,6 +4150,12 @@
4126
4150
  "elementType": {
4127
4151
  "type": "reference",
4128
4152
  "id": 379,
4153
+ "typeArguments": [
4154
+ {
4155
+ "type": "intrinsic",
4156
+ "name": "any"
4157
+ }
4158
+ ],
4129
4159
  "name": "SkyToken"
4130
4160
  }
4131
4161
  }
@@ -4207,6 +4237,12 @@
4207
4237
  "type": {
4208
4238
  "type": "reference",
4209
4239
  "id": 379,
4240
+ "typeArguments": [
4241
+ {
4242
+ "type": "intrinsic",
4243
+ "name": "any"
4244
+ }
4245
+ ],
4210
4246
  "name": "SkyToken"
4211
4247
  }
4212
4248
  }
@@ -4294,6 +4330,12 @@
4294
4330
  "type": {
4295
4331
  "type": "reference",
4296
4332
  "id": 379,
4333
+ "typeArguments": [
4334
+ {
4335
+ "type": "intrinsic",
4336
+ "name": "any"
4337
+ }
4338
+ ],
4297
4339
  "name": "SkyToken"
4298
4340
  }
4299
4341
  }
@@ -4337,6 +4379,12 @@
4337
4379
  "type": {
4338
4380
  "type": "reference",
4339
4381
  "id": 379,
4382
+ "typeArguments": [
4383
+ {
4384
+ "type": "intrinsic",
4385
+ "name": "any"
4386
+ }
4387
+ ],
4340
4388
  "name": "SkyToken"
4341
4389
  }
4342
4390
  }
@@ -6042,8 +6090,9 @@
6042
6090
  }
6043
6091
  ],
6044
6092
  "type": {
6045
- "type": "intrinsic",
6046
- "name": "any"
6093
+ "type": "reference",
6094
+ "id": 381,
6095
+ "name": "T"
6047
6096
  }
6048
6097
  }
6049
6098
  ],
@@ -6059,20 +6108,33 @@
6059
6108
  "sources": [
6060
6109
  {
6061
6110
  "fileName": "projects/indicators/src/modules/tokens/types/token.ts",
6062
- "line": 1,
6111
+ "line": 2,
6063
6112
  "character": 17
6064
6113
  }
6114
+ ],
6115
+ "typeParameter": [
6116
+ {
6117
+ "id": 381,
6118
+ "name": "T",
6119
+ "kind": 131072,
6120
+ "kindString": "Type parameter",
6121
+ "flags": {},
6122
+ "default": {
6123
+ "type": "intrinsic",
6124
+ "name": "any"
6125
+ }
6126
+ }
6065
6127
  ]
6066
6128
  },
6067
6129
  {
6068
- "id": 381,
6130
+ "id": 382,
6069
6131
  "name": "SkyTokenSelectedEventArgs",
6070
6132
  "kind": 256,
6071
6133
  "kindString": "Interface",
6072
6134
  "flags": {},
6073
6135
  "children": [
6074
6136
  {
6075
- "id": 382,
6137
+ "id": 383,
6076
6138
  "name": "token",
6077
6139
  "kind": 1024,
6078
6140
  "kindString": "Property",
@@ -6092,6 +6154,13 @@
6092
6154
  "type": {
6093
6155
  "type": "reference",
6094
6156
  "id": 379,
6157
+ "typeArguments": [
6158
+ {
6159
+ "type": "reference",
6160
+ "id": 384,
6161
+ "name": "T"
6162
+ }
6163
+ ],
6095
6164
  "name": "SkyToken"
6096
6165
  }
6097
6166
  }
@@ -6101,7 +6170,7 @@
6101
6170
  "title": "Properties",
6102
6171
  "kind": 1024,
6103
6172
  "children": [
6104
- 382
6173
+ 383
6105
6174
  ]
6106
6175
  }
6107
6176
  ],
@@ -6111,17 +6180,30 @@
6111
6180
  "line": 3,
6112
6181
  "character": 17
6113
6182
  }
6183
+ ],
6184
+ "typeParameter": [
6185
+ {
6186
+ "id": 384,
6187
+ "name": "T",
6188
+ "kind": 131072,
6189
+ "kindString": "Type parameter",
6190
+ "flags": {},
6191
+ "default": {
6192
+ "type": "intrinsic",
6193
+ "name": "any"
6194
+ }
6195
+ }
6114
6196
  ]
6115
6197
  },
6116
6198
  {
6117
- "id": 383,
6199
+ "id": 385,
6118
6200
  "name": "SkyTokensMessage",
6119
6201
  "kind": 256,
6120
6202
  "kindString": "Interface",
6121
6203
  "flags": {},
6122
6204
  "children": [
6123
6205
  {
6124
- "id": 384,
6206
+ "id": 386,
6125
6207
  "name": "type",
6126
6208
  "kind": 1024,
6127
6209
  "kindString": "Property",
@@ -6140,7 +6222,7 @@
6140
6222
  ],
6141
6223
  "type": {
6142
6224
  "type": "reference",
6143
- "id": 385,
6225
+ "id": 387,
6144
6226
  "name": "SkyTokensMessageType"
6145
6227
  }
6146
6228
  }
@@ -6150,7 +6232,7 @@
6150
6232
  "title": "Properties",
6151
6233
  "kind": 1024,
6152
6234
  "children": [
6153
- 384
6235
+ 386
6154
6236
  ]
6155
6237
  }
6156
6238
  ],
@@ -6377,7 +6459,7 @@
6377
6459
  }
6378
6460
  },
6379
6461
  {
6380
- "id": 437,
6462
+ "id": 439,
6381
6463
  "name": "SkyAlertHarness",
6382
6464
  "kind": 128,
6383
6465
  "kindString": "Class",
@@ -6387,7 +6469,7 @@
6387
6469
  },
6388
6470
  "children": [
6389
6471
  {
6390
- "id": 458,
6472
+ "id": 460,
6391
6473
  "name": "close",
6392
6474
  "kind": 2048,
6393
6475
  "kindString": "Method",
@@ -6403,7 +6485,7 @@
6403
6485
  ],
6404
6486
  "signatures": [
6405
6487
  {
6406
- "id": 459,
6488
+ "id": 461,
6407
6489
  "name": "close",
6408
6490
  "kind": 4096,
6409
6491
  "kindString": "Call signature",
@@ -6427,7 +6509,7 @@
6427
6509
  ]
6428
6510
  },
6429
6511
  {
6430
- "id": 454,
6512
+ "id": 456,
6431
6513
  "name": "getAlertType",
6432
6514
  "kind": 2048,
6433
6515
  "kindString": "Method",
@@ -6443,7 +6525,7 @@
6443
6525
  ],
6444
6526
  "signatures": [
6445
6527
  {
6446
- "id": 455,
6528
+ "id": 457,
6447
6529
  "name": "getAlertType",
6448
6530
  "kind": 4096,
6449
6531
  "kindString": "Call signature",
@@ -6468,7 +6550,7 @@
6468
6550
  ]
6469
6551
  },
6470
6552
  {
6471
- "id": 466,
6553
+ "id": 468,
6472
6554
  "name": "getCustomDescription",
6473
6555
  "kind": 2048,
6474
6556
  "kindString": "Method",
@@ -6484,7 +6566,7 @@
6484
6566
  ],
6485
6567
  "signatures": [
6486
6568
  {
6487
- "id": 467,
6569
+ "id": 469,
6488
6570
  "name": "getCustomDescription",
6489
6571
  "kind": 4096,
6490
6572
  "kindString": "Call signature",
@@ -6508,7 +6590,7 @@
6508
6590
  ]
6509
6591
  },
6510
6592
  {
6511
- "id": 464,
6593
+ "id": 466,
6512
6594
  "name": "getDescriptionType",
6513
6595
  "kind": 2048,
6514
6596
  "kindString": "Method",
@@ -6524,7 +6606,7 @@
6524
6606
  ],
6525
6607
  "signatures": [
6526
6608
  {
6527
- "id": 465,
6609
+ "id": 467,
6528
6610
  "name": "getDescriptionType",
6529
6611
  "kind": 4096,
6530
6612
  "kindString": "Call signature",
@@ -6549,7 +6631,7 @@
6549
6631
  ]
6550
6632
  },
6551
6633
  {
6552
- "id": 456,
6634
+ "id": 458,
6553
6635
  "name": "getText",
6554
6636
  "kind": 2048,
6555
6637
  "kindString": "Method",
@@ -6565,7 +6647,7 @@
6565
6647
  ],
6566
6648
  "signatures": [
6567
6649
  {
6568
- "id": 457,
6650
+ "id": 459,
6569
6651
  "name": "getText",
6570
6652
  "kind": 4096,
6571
6653
  "kindString": "Call signature",
@@ -6589,7 +6671,7 @@
6589
6671
  ]
6590
6672
  },
6591
6673
  {
6592
- "id": 471,
6674
+ "id": 473,
6593
6675
  "name": "host",
6594
6676
  "kind": 2048,
6595
6677
  "kindString": "Method",
@@ -6603,7 +6685,7 @@
6603
6685
  ],
6604
6686
  "signatures": [
6605
6687
  {
6606
- "id": 472,
6688
+ "id": 474,
6607
6689
  "name": "host",
6608
6690
  "kind": 4096,
6609
6691
  "kindString": "Call signature",
@@ -6637,7 +6719,7 @@
6637
6719
  }
6638
6720
  },
6639
6721
  {
6640
- "id": 462,
6722
+ "id": 464,
6641
6723
  "name": "isCloseable",
6642
6724
  "kind": 2048,
6643
6725
  "kindString": "Method",
@@ -6653,7 +6735,7 @@
6653
6735
  ],
6654
6736
  "signatures": [
6655
6737
  {
6656
- "id": 463,
6738
+ "id": 465,
6657
6739
  "name": "isCloseable",
6658
6740
  "kind": 4096,
6659
6741
  "kindString": "Call signature",
@@ -6677,7 +6759,7 @@
6677
6759
  ]
6678
6760
  },
6679
6761
  {
6680
- "id": 460,
6762
+ "id": 462,
6681
6763
  "name": "isClosed",
6682
6764
  "kind": 2048,
6683
6765
  "kindString": "Method",
@@ -6693,7 +6775,7 @@
6693
6775
  ],
6694
6776
  "signatures": [
6695
6777
  {
6696
- "id": 461,
6778
+ "id": 463,
6697
6779
  "name": "isClosed",
6698
6780
  "kind": 4096,
6699
6781
  "kindString": "Call signature",
@@ -6717,7 +6799,7 @@
6717
6799
  ]
6718
6800
  },
6719
6801
  {
6720
- "id": 439,
6802
+ "id": 441,
6721
6803
  "name": "with",
6722
6804
  "kind": 2048,
6723
6805
  "kindString": "Method",
@@ -6734,7 +6816,7 @@
6734
6816
  ],
6735
6817
  "signatures": [
6736
6818
  {
6737
- "id": 440,
6819
+ "id": 442,
6738
6820
  "name": "with",
6739
6821
  "kind": 4096,
6740
6822
  "kindString": "Call signature",
@@ -6744,14 +6826,14 @@
6744
6826
  },
6745
6827
  "parameters": [
6746
6828
  {
6747
- "id": 441,
6829
+ "id": 443,
6748
6830
  "name": "filters",
6749
6831
  "kind": 32768,
6750
6832
  "kindString": "Parameter",
6751
6833
  "flags": {},
6752
6834
  "type": {
6753
6835
  "type": "reference",
6754
- "id": 491,
6836
+ "id": 493,
6755
6837
  "name": "SkyAlertHarnessFilters"
6756
6838
  }
6757
6839
  }
@@ -6761,7 +6843,7 @@
6761
6843
  "typeArguments": [
6762
6844
  {
6763
6845
  "type": "reference",
6764
- "id": 437,
6846
+ "id": 439,
6765
6847
  "name": "SkyAlertHarness"
6766
6848
  }
6767
6849
  ],
@@ -6778,22 +6860,22 @@
6778
6860
  "title": "Constructors",
6779
6861
  "kind": 512,
6780
6862
  "children": [
6781
- 447
6863
+ 449
6782
6864
  ]
6783
6865
  },
6784
6866
  {
6785
6867
  "title": "Methods",
6786
6868
  "kind": 2048,
6787
6869
  "children": [
6788
- 458,
6789
- 454,
6870
+ 460,
6871
+ 456,
6872
+ 468,
6790
6873
  466,
6874
+ 458,
6875
+ 473,
6791
6876
  464,
6792
- 456,
6793
- 471,
6794
6877
  462,
6795
- 460,
6796
- 439
6878
+ 441
6797
6879
  ]
6798
6880
  }
6799
6881
  ],
@@ -6812,7 +6894,7 @@
6812
6894
  ]
6813
6895
  },
6814
6896
  {
6815
- "id": 495,
6897
+ "id": 497,
6816
6898
  "name": "SkyKeyInfoHarness",
6817
6899
  "kind": 128,
6818
6900
  "kindString": "Class",
@@ -6822,7 +6904,7 @@
6822
6904
  },
6823
6905
  "children": [
6824
6906
  {
6825
- "id": 513,
6907
+ "id": 515,
6826
6908
  "name": "getLabelText",
6827
6909
  "kind": 2048,
6828
6910
  "kindString": "Method",
@@ -6838,7 +6920,7 @@
6838
6920
  ],
6839
6921
  "signatures": [
6840
6922
  {
6841
- "id": 514,
6923
+ "id": 516,
6842
6924
  "name": "getLabelText",
6843
6925
  "kind": 4096,
6844
6926
  "kindString": "Call signature",
@@ -6862,7 +6944,7 @@
6862
6944
  ]
6863
6945
  },
6864
6946
  {
6865
- "id": 515,
6947
+ "id": 517,
6866
6948
  "name": "getLayout",
6867
6949
  "kind": 2048,
6868
6950
  "kindString": "Method",
@@ -6878,7 +6960,7 @@
6878
6960
  ],
6879
6961
  "signatures": [
6880
6962
  {
6881
- "id": 516,
6963
+ "id": 518,
6882
6964
  "name": "getLayout",
6883
6965
  "kind": 4096,
6884
6966
  "kindString": "Call signature",
@@ -6903,7 +6985,7 @@
6903
6985
  ]
6904
6986
  },
6905
6987
  {
6906
- "id": 511,
6988
+ "id": 513,
6907
6989
  "name": "getValueText",
6908
6990
  "kind": 2048,
6909
6991
  "kindString": "Method",
@@ -6919,7 +7001,7 @@
6919
7001
  ],
6920
7002
  "signatures": [
6921
7003
  {
6922
- "id": 512,
7004
+ "id": 514,
6923
7005
  "name": "getValueText",
6924
7006
  "kind": 4096,
6925
7007
  "kindString": "Call signature",
@@ -6943,7 +7025,7 @@
6943
7025
  ]
6944
7026
  },
6945
7027
  {
6946
- "id": 520,
7028
+ "id": 522,
6947
7029
  "name": "host",
6948
7030
  "kind": 2048,
6949
7031
  "kindString": "Method",
@@ -6957,7 +7039,7 @@
6957
7039
  ],
6958
7040
  "signatures": [
6959
7041
  {
6960
- "id": 521,
7042
+ "id": 523,
6961
7043
  "name": "host",
6962
7044
  "kind": 4096,
6963
7045
  "kindString": "Call signature",
@@ -6991,7 +7073,7 @@
6991
7073
  }
6992
7074
  },
6993
7075
  {
6994
- "id": 497,
7076
+ "id": 499,
6995
7077
  "name": "with",
6996
7078
  "kind": 2048,
6997
7079
  "kindString": "Method",
@@ -7008,7 +7090,7 @@
7008
7090
  ],
7009
7091
  "signatures": [
7010
7092
  {
7011
- "id": 498,
7093
+ "id": 500,
7012
7094
  "name": "with",
7013
7095
  "kind": 4096,
7014
7096
  "kindString": "Call signature",
@@ -7018,14 +7100,14 @@
7018
7100
  },
7019
7101
  "parameters": [
7020
7102
  {
7021
- "id": 499,
7103
+ "id": 501,
7022
7104
  "name": "filters",
7023
7105
  "kind": 32768,
7024
7106
  "kindString": "Parameter",
7025
7107
  "flags": {},
7026
7108
  "type": {
7027
7109
  "type": "reference",
7028
- "id": 540,
7110
+ "id": 542,
7029
7111
  "name": "SkyKeyInfoHarnessFilters"
7030
7112
  }
7031
7113
  }
@@ -7035,7 +7117,7 @@
7035
7117
  "typeArguments": [
7036
7118
  {
7037
7119
  "type": "reference",
7038
- "id": 495,
7120
+ "id": 497,
7039
7121
  "name": "SkyKeyInfoHarness"
7040
7122
  }
7041
7123
  ],
@@ -7052,18 +7134,18 @@
7052
7134
  "title": "Constructors",
7053
7135
  "kind": 512,
7054
7136
  "children": [
7055
- 505
7137
+ 507
7056
7138
  ]
7057
7139
  },
7058
7140
  {
7059
7141
  "title": "Methods",
7060
7142
  "kind": 2048,
7061
7143
  "children": [
7062
- 513,
7063
7144
  515,
7064
- 511,
7065
- 520,
7066
- 497
7145
+ 517,
7146
+ 513,
7147
+ 522,
7148
+ 499
7067
7149
  ]
7068
7150
  }
7069
7151
  ],
@@ -7082,7 +7164,7 @@
7082
7164
  ]
7083
7165
  },
7084
7166
  {
7085
- "id": 544,
7167
+ "id": 546,
7086
7168
  "name": "SkyLabelHarness",
7087
7169
  "kind": 128,
7088
7170
  "kindString": "Class",
@@ -7092,7 +7174,7 @@
7092
7174
  },
7093
7175
  "children": [
7094
7176
  {
7095
- "id": 566,
7177
+ "id": 568,
7096
7178
  "name": "getCustomDescription",
7097
7179
  "kind": 2048,
7098
7180
  "kindString": "Method",
@@ -7108,7 +7190,7 @@
7108
7190
  ],
7109
7191
  "signatures": [
7110
7192
  {
7111
- "id": 567,
7193
+ "id": 569,
7112
7194
  "name": "getCustomDescription",
7113
7195
  "kind": 4096,
7114
7196
  "kindString": "Call signature",
@@ -7132,7 +7214,7 @@
7132
7214
  ]
7133
7215
  },
7134
7216
  {
7135
- "id": 564,
7217
+ "id": 566,
7136
7218
  "name": "getDescriptionType",
7137
7219
  "kind": 2048,
7138
7220
  "kindString": "Method",
@@ -7148,7 +7230,7 @@
7148
7230
  ],
7149
7231
  "signatures": [
7150
7232
  {
7151
- "id": 565,
7233
+ "id": 567,
7152
7234
  "name": "getDescriptionType",
7153
7235
  "kind": 4096,
7154
7236
  "kindString": "Call signature",
@@ -7173,7 +7255,7 @@
7173
7255
  ]
7174
7256
  },
7175
7257
  {
7176
- "id": 560,
7258
+ "id": 562,
7177
7259
  "name": "getLabelText",
7178
7260
  "kind": 2048,
7179
7261
  "kindString": "Method",
@@ -7189,7 +7271,7 @@
7189
7271
  ],
7190
7272
  "signatures": [
7191
7273
  {
7192
- "id": 561,
7274
+ "id": 563,
7193
7275
  "name": "getLabelText",
7194
7276
  "kind": 4096,
7195
7277
  "kindString": "Call signature",
@@ -7213,7 +7295,7 @@
7213
7295
  ]
7214
7296
  },
7215
7297
  {
7216
- "id": 562,
7298
+ "id": 564,
7217
7299
  "name": "getLabelType",
7218
7300
  "kind": 2048,
7219
7301
  "kindString": "Method",
@@ -7229,7 +7311,7 @@
7229
7311
  ],
7230
7312
  "signatures": [
7231
7313
  {
7232
- "id": 563,
7314
+ "id": 565,
7233
7315
  "name": "getLabelType",
7234
7316
  "kind": 4096,
7235
7317
  "kindString": "Call signature",
@@ -7254,7 +7336,7 @@
7254
7336
  ]
7255
7337
  },
7256
7338
  {
7257
- "id": 571,
7339
+ "id": 573,
7258
7340
  "name": "host",
7259
7341
  "kind": 2048,
7260
7342
  "kindString": "Method",
@@ -7268,7 +7350,7 @@
7268
7350
  ],
7269
7351
  "signatures": [
7270
7352
  {
7271
- "id": 572,
7353
+ "id": 574,
7272
7354
  "name": "host",
7273
7355
  "kind": 4096,
7274
7356
  "kindString": "Call signature",
@@ -7302,7 +7384,7 @@
7302
7384
  }
7303
7385
  },
7304
7386
  {
7305
- "id": 546,
7387
+ "id": 548,
7306
7388
  "name": "with",
7307
7389
  "kind": 2048,
7308
7390
  "kindString": "Method",
@@ -7319,7 +7401,7 @@
7319
7401
  ],
7320
7402
  "signatures": [
7321
7403
  {
7322
- "id": 547,
7404
+ "id": 549,
7323
7405
  "name": "with",
7324
7406
  "kind": 4096,
7325
7407
  "kindString": "Call signature",
@@ -7329,14 +7411,14 @@
7329
7411
  },
7330
7412
  "parameters": [
7331
7413
  {
7332
- "id": 548,
7414
+ "id": 550,
7333
7415
  "name": "filters",
7334
7416
  "kind": 32768,
7335
7417
  "kindString": "Parameter",
7336
7418
  "flags": {},
7337
7419
  "type": {
7338
7420
  "type": "reference",
7339
- "id": 591,
7421
+ "id": 593,
7340
7422
  "name": "SkyLabelHarnessFilters"
7341
7423
  }
7342
7424
  }
@@ -7346,7 +7428,7 @@
7346
7428
  "typeArguments": [
7347
7429
  {
7348
7430
  "type": "reference",
7349
- "id": 544,
7431
+ "id": 546,
7350
7432
  "name": "SkyLabelHarness"
7351
7433
  }
7352
7434
  ],
@@ -7363,19 +7445,19 @@
7363
7445
  "title": "Constructors",
7364
7446
  "kind": 512,
7365
7447
  "children": [
7366
- 554
7448
+ 556
7367
7449
  ]
7368
7450
  },
7369
7451
  {
7370
7452
  "title": "Methods",
7371
7453
  "kind": 2048,
7372
7454
  "children": [
7455
+ 568,
7373
7456
  566,
7374
- 564,
7375
- 560,
7376
7457
  562,
7377
- 571,
7378
- 546
7458
+ 564,
7459
+ 573,
7460
+ 548
7379
7461
  ]
7380
7462
  }
7381
7463
  ],
@@ -7394,7 +7476,7 @@
7394
7476
  ]
7395
7477
  },
7396
7478
  {
7397
- "id": 491,
7479
+ "id": 493,
7398
7480
  "name": "SkyAlertHarnessFilters",
7399
7481
  "kind": 256,
7400
7482
  "kindString": "Interface",
@@ -7404,7 +7486,7 @@
7404
7486
  },
7405
7487
  "children": [
7406
7488
  {
7407
- "id": 494,
7489
+ "id": 496,
7408
7490
  "name": "ancestor",
7409
7491
  "kind": 1024,
7410
7492
  "kindString": "Property",
@@ -7431,7 +7513,7 @@
7431
7513
  }
7432
7514
  },
7433
7515
  {
7434
- "id": 492,
7516
+ "id": 494,
7435
7517
  "name": "dataSkyId",
7436
7518
  "kind": 1024,
7437
7519
  "kindString": "Property",
@@ -7469,7 +7551,7 @@
7469
7551
  }
7470
7552
  },
7471
7553
  {
7472
- "id": 493,
7554
+ "id": 495,
7473
7555
  "name": "selector",
7474
7556
  "kind": 1024,
7475
7557
  "kindString": "Property",
@@ -7501,9 +7583,9 @@
7501
7583
  "title": "Properties",
7502
7584
  "kind": 1024,
7503
7585
  "children": [
7586
+ 496,
7504
7587
  494,
7505
- 492,
7506
- 493
7588
+ 495
7507
7589
  ]
7508
7590
  }
7509
7591
  ],
@@ -7522,7 +7604,7 @@
7522
7604
  ]
7523
7605
  },
7524
7606
  {
7525
- "id": 540,
7607
+ "id": 542,
7526
7608
  "name": "SkyKeyInfoHarnessFilters",
7527
7609
  "kind": 256,
7528
7610
  "kindString": "Interface",
@@ -7532,7 +7614,7 @@
7532
7614
  },
7533
7615
  "children": [
7534
7616
  {
7535
- "id": 543,
7617
+ "id": 545,
7536
7618
  "name": "ancestor",
7537
7619
  "kind": 1024,
7538
7620
  "kindString": "Property",
@@ -7559,7 +7641,7 @@
7559
7641
  }
7560
7642
  },
7561
7643
  {
7562
- "id": 541,
7644
+ "id": 543,
7563
7645
  "name": "dataSkyId",
7564
7646
  "kind": 1024,
7565
7647
  "kindString": "Property",
@@ -7597,7 +7679,7 @@
7597
7679
  }
7598
7680
  },
7599
7681
  {
7600
- "id": 542,
7682
+ "id": 544,
7601
7683
  "name": "selector",
7602
7684
  "kind": 1024,
7603
7685
  "kindString": "Property",
@@ -7629,9 +7711,9 @@
7629
7711
  "title": "Properties",
7630
7712
  "kind": 1024,
7631
7713
  "children": [
7714
+ 545,
7632
7715
  543,
7633
- 541,
7634
- 542
7716
+ 544
7635
7717
  ]
7636
7718
  }
7637
7719
  ],
@@ -7650,7 +7732,7 @@
7650
7732
  ]
7651
7733
  },
7652
7734
  {
7653
- "id": 591,
7735
+ "id": 593,
7654
7736
  "name": "SkyLabelHarnessFilters",
7655
7737
  "kind": 256,
7656
7738
  "kindString": "Interface",
@@ -7660,7 +7742,7 @@
7660
7742
  },
7661
7743
  "children": [
7662
7744
  {
7663
- "id": 594,
7745
+ "id": 596,
7664
7746
  "name": "ancestor",
7665
7747
  "kind": 1024,
7666
7748
  "kindString": "Property",
@@ -7687,7 +7769,7 @@
7687
7769
  }
7688
7770
  },
7689
7771
  {
7690
- "id": 592,
7772
+ "id": 594,
7691
7773
  "name": "dataSkyId",
7692
7774
  "kind": 1024,
7693
7775
  "kindString": "Property",
@@ -7725,7 +7807,7 @@
7725
7807
  }
7726
7808
  },
7727
7809
  {
7728
- "id": 593,
7810
+ "id": 595,
7729
7811
  "name": "selector",
7730
7812
  "kind": 1024,
7731
7813
  "kindString": "Property",
@@ -7757,9 +7839,9 @@
7757
7839
  "title": "Properties",
7758
7840
  "kind": 1024,
7759
7841
  "children": [
7842
+ 596,
7760
7843
  594,
7761
- 592,
7762
- 593
7844
+ 595
7763
7845
  ]
7764
7846
  }
7765
7847
  ],
@@ -7925,30 +8007,50 @@
7925
8007
  "filePath": "/projects/indicators/documentation/code-examples/text-highlight/basic/text-highlight-demo.module.ts",
7926
8008
  "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyCheckboxModule } from '@skyux/forms';\nimport { SkyTextHighlightModule } from '@skyux/indicators';\n\nimport { TextHighlightDemoComponent } from './text-highlight-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyCheckboxModule,\n SkyIdModule,\n SkyTextHighlightModule,\n ],\n exports: [TextHighlightDemoComponent],\n declarations: [TextHighlightDemoComponent],\n})\nexport class TextHighlightDemoModule {}\n"
7927
8009
  },
8010
+ {
8011
+ "fileName": "tokens-demo-color.ts",
8012
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo-color.ts",
8013
+ "rawContents": "export interface TokensDemoColor {\n name: string;\n}\n"
8014
+ },
7928
8015
  {
7929
8016
  "fileName": "tokens-demo.component.html",
7930
8017
  "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.component.html",
7931
- "rawContents": "<sky-tokens [(tokens)]=\"colors\"> </sky-tokens>\n"
8018
+ "rawContents": "<sky-tokens [(tokens)]=\"colors\" data-sky-id=\"color-tokens\"></sky-tokens>\n"
8019
+ },
8020
+ {
8021
+ "fileName": "tokens-demo.component.spec.ts",
8022
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.component.spec.ts",
8023
+ "rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { TestBed } from '@angular/core/testing';\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\nimport { SkyToken } from '@skyux/indicators';\nimport { SkyTokensHarness } from '@skyux/indicators/testing';\n\nimport { TokensDemoColor } from './tokens-demo-color';\nimport { TokensDemoComponent } from './tokens-demo.component';\nimport { TokensDemoModule } from './tokens-demo.module';\n\ndescribe('Tokens basic demo', () => {\n async function setupTest() {\n const fixture = TestBed.createComponent(TokensDemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n\n const tokensHarness = await loader.getHarness(\n SkyTokensHarness.with({ dataSkyId: 'color-tokens' })\n );\n\n return { tokensHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [NoopAnimationsModule, TokensDemoModule],\n });\n });\n\n it('should display the expected initial tokens', async () => {\n const { tokensHarness } = await setupTest();\n\n await expectAsync(tokensHarness.getTokensText()).toBeResolvedTo([\n 'Red',\n 'Black',\n 'Blue',\n 'Brown',\n 'Green',\n 'Orange',\n 'Pink',\n 'Purple',\n 'Turquoise',\n 'White',\n 'Yellow',\n ]);\n });\n\n it('should update the tokens array when one is dismissed', async () => {\n const { tokensHarness, fixture } = await setupTest();\n\n const blueToken: SkyToken<TokensDemoColor> = {\n value: { name: 'Blue' },\n };\n\n expect(fixture.componentInstance.colors).toContain(blueToken);\n\n await tokensHarness.dismissTokens({\n text: 'Blue',\n });\n\n expect(fixture.componentInstance.colors).not.toContain(blueToken);\n });\n});\n"
7932
8024
  },
7933
8025
  {
7934
8026
  "fileName": "tokens-demo.component.ts",
7935
8027
  "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.component.ts",
7936
- "rawContents": "import { Component } from '@angular/core';\nimport { SkyToken } from '@skyux/indicators';\n\n@Component({\n selector: 'app-tokens-demo',\n templateUrl: './tokens-demo.component.html',\n})\nexport class TokensDemoComponent {\n public colors: SkyToken[];\n\n private defaultColors = [\n { name: 'Red' },\n { name: 'Black' },\n { name: 'Blue' },\n { name: 'Brown' },\n { name: 'Green' },\n { name: 'Orange' },\n { name: 'Pink' },\n { name: 'Purple' },\n { name: 'Turquoise' },\n { name: 'White' },\n { name: 'Yellow' },\n ];\n\n constructor() {\n this.colors = this.getTokens(this.defaultColors);\n }\n\n private getTokens(data: any[]): SkyToken[] {\n return data.map((item: any) => {\n return {\n value: item,\n } as SkyToken;\n });\n }\n}\n"
8028
+ "rawContents": "import { Component } from '@angular/core';\nimport { SkyToken } from '@skyux/indicators';\n\nimport { TokensDemoColor } from './tokens-demo-color';\n\n@Component({\n selector: 'app-tokens-demo',\n templateUrl: './tokens-demo.component.html',\n})\nexport class TokensDemoComponent {\n public colors: SkyToken<TokensDemoColor>[] = [\n { value: { name: 'Red' } },\n { value: { name: 'Black' } },\n { value: { name: 'Blue' } },\n { value: { name: 'Brown' } },\n { value: { name: 'Green' } },\n { value: { name: 'Orange' } },\n { value: { name: 'Pink' } },\n { value: { name: 'Purple' } },\n { value: { name: 'Turquoise' } },\n { value: { name: 'White' } },\n { value: { name: 'Yellow' } },\n ];\n}\n"
7937
8029
  },
7938
8030
  {
7939
8031
  "fileName": "tokens-demo.module.ts",
7940
8032
  "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.module.ts",
7941
8033
  "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyTokensModule } from '@skyux/indicators';\n\nimport { TokensDemoComponent } from './tokens-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyTokensModule],\n exports: [TokensDemoComponent],\n declarations: [TokensDemoComponent],\n})\nexport class TokensDemoModule {}\n"
7942
8034
  },
8035
+ {
8036
+ "fileName": "tokens-demo-item.ts",
8037
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/custom/tokens-demo-item.ts",
8038
+ "rawContents": "export interface TokensDemoItem {\n label: string;\n}\n"
8039
+ },
7943
8040
  {
7944
8041
  "fileName": "tokens-demo.component.html",
7945
8042
  "filePath": "/projects/indicators/documentation/code-examples/tokens/custom/tokens-demo.component.html",
7946
- "rawContents": "<p>\n These tokens define a custom property to display their values. When users\n select a token, it emits an event.\n</p>\n\n<div class=\"sky-margin-stacked-xl\">\n <sky-tokens\n displayWith=\"label\"\n [messageStream]=\"tokensController\"\n (focusIndexOverRange)=\"onFocusIndexOverRange()\"\n (focusIndexUnderRange)=\"onFocusIndexUnderRange()\"\n (tokenSelected)=\"onTokenSelected($event)\"\n [(tokens)]=\"myTokens\"\n >\n (You may also include content inside the tokens component.)\n </sky-tokens>\n</div>\n\n<div class=\"sky-margin-stacked-xl\">\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm\"\n type=\"button\"\n (click)=\"changeTokens()\"\n >\n Change tokens\n </button>\n\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm\"\n type=\"button\"\n (click)=\"resetTokens()\"\n >\n Reset tokens\n </button>\n\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm\"\n type=\"button\"\n (click)=\"destroyTokens()\"\n >\n Destroy tokens\n </button>\n\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm\"\n (click)=\"focusLastToken()\"\n >\n Focus last token\n </button>\n</div>\n"
8043
+ "rawContents": "<p>\n These tokens define a custom property to display their values. When users\n select a token, it emits an event.\n</p>\n\n<div class=\"sky-margin-stacked-xl\">\n <sky-tokens\n displayWith=\"label\"\n [messageStream]=\"tokensController\"\n (focusIndexOverRange)=\"onFocusIndexOverRange()\"\n (focusIndexUnderRange)=\"onFocusIndexUnderRange()\"\n (tokenSelected)=\"onTokenSelected($event)\"\n [(tokens)]=\"myTokens\"\n data-sky-id=\"demo-tokens\"\n >\n (You may also include content inside the tokens component.)\n </sky-tokens>\n</div>\n\n<div class=\"sky-margin-stacked-xl\">\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm tokens-demo-change-btn\"\n type=\"button\"\n (click)=\"changeTokens()\"\n >\n Change tokens\n </button>\n\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm tokens-demo-reset-btn\"\n type=\"button\"\n (click)=\"resetTokens()\"\n >\n Reset tokens\n </button>\n\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm tokens-demo-destroy-btn\"\n type=\"button\"\n (click)=\"destroyTokens()\"\n >\n Destroy tokens\n </button>\n\n <button\n class=\"sky-btn sky-btn-default sky-margin-inline-sm tokens-demo-focus-last-btn\"\n (click)=\"focusLastToken()\"\n >\n Focus last token\n </button>\n</div>\n\n<div>\n Selected token: <span class=\"tokens-demo-selected\">{{ selectedToken }}</span>\n</div>\n"
8044
+ },
8045
+ {
8046
+ "fileName": "tokens-demo.component.spec.ts",
8047
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/custom/tokens-demo.component.spec.ts",
8048
+ "rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\nimport { SkyTokensHarness } from '@skyux/indicators/testing';\n\nimport { TokensDemoComponent } from './tokens-demo.component';\nimport { TokensDemoModule } from './tokens-demo.module';\n\ndescribe('Tokens basic demo', () => {\n let initialTokenLabels: string[];\n\n async function setupTest() {\n const fixture = TestBed.createComponent(TokensDemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n\n const tokensHarness = await loader.getHarness(\n SkyTokensHarness.with({ dataSkyId: 'demo-tokens' })\n );\n\n return { tokensHarness, fixture };\n }\n\n function clickButton(\n fixture: ComponentFixture<TokensDemoComponent>,\n buttonName: 'change' | 'destroy' | 'focus-last' | 'reset'\n ): void {\n fixture.nativeElement\n .querySelector(`.tokens-demo-${buttonName}-btn`)\n .click();\n }\n\n beforeEach(() => {\n initialTokenLabels = [\n 'Canada',\n 'Older than 55',\n 'Employed',\n 'Added before 2018',\n ];\n\n TestBed.configureTestingModule({\n imports: [NoopAnimationsModule, TokensDemoModule],\n });\n });\n\n it('should display the expected initial tokens', async () => {\n const { tokensHarness } = await setupTest();\n\n await expectAsync(tokensHarness.getTokensText()).toBeResolvedTo(\n initialTokenLabels\n );\n });\n\n it('should display the selected token label when the user selects a token', async () => {\n const { tokensHarness, fixture } = await setupTest();\n\n const employedToken = (await tokensHarness.getTokens())[2];\n await employedToken.select();\n\n expect(\n fixture.nativeElement.querySelector('.tokens-demo-selected').innerText\n ).toBe('Employed');\n });\n\n it('should change tokens when the user clicks the \"Change tokens\" button', async () => {\n const { tokensHarness, fixture } = await setupTest();\n\n clickButton(fixture, 'change');\n\n await expectAsync(tokensHarness.getTokensText()).toBeResolvedTo([\n 'Paid',\n 'Pending',\n 'Past due',\n ]);\n });\n\n it('should reset tokens when the user clicks the \"Reset tokens\" button', async () => {\n const { tokensHarness, fixture } = await setupTest();\n\n clickButton(fixture, 'change');\n\n await expectAsync(tokensHarness.getTokensText()).not.toBeResolvedTo(\n initialTokenLabels\n );\n\n clickButton(fixture, 'reset');\n\n await expectAsync(tokensHarness.getTokensText()).toBeResolvedTo(\n initialTokenLabels\n );\n });\n\n it('should destroy tokens when the user clicks the \"Destroy tokens\" button', async () => {\n const { tokensHarness, fixture } = await setupTest();\n\n clickButton(fixture, 'destroy');\n\n await expectAsync(tokensHarness.getTokens()).toBeResolvedTo([]);\n });\n\n it('should focus the last token when the user clicks the \"Focus last token\" button', async () => {\n const { tokensHarness, fixture } = await setupTest();\n\n const tokens = await tokensHarness.getTokens();\n const lastToken = tokens[tokens.length - 1];\n\n await expectAsync(lastToken.isFocused()).toBeResolvedTo(false);\n\n clickButton(fixture, 'focus-last');\n\n await expectAsync(lastToken.isFocused()).toBeResolvedTo(true);\n });\n});\n"
7947
8049
  },
7948
8050
  {
7949
8051
  "fileName": "tokens-demo.component.ts",
7950
8052
  "filePath": "/projects/indicators/documentation/code-examples/tokens/custom/tokens-demo.component.ts",
7951
- "rawContents": "import { Component, OnDestroy } from '@angular/core';\nimport {\n SkyToken,\n SkyTokenSelectedEventArgs,\n SkyTokensMessage,\n SkyTokensMessageType,\n} from '@skyux/indicators';\n\nimport { Subject } from 'rxjs';\n\n@Component({\n selector: 'app-tokens-demo',\n templateUrl: './tokens-demo.component.html',\n})\nexport class TokensDemoComponent implements OnDestroy {\n public myTokens: SkyToken[];\n\n private defaultTokens = [\n { label: 'Canada' },\n { label: 'Older than 55' },\n { label: 'Employed' },\n { label: 'Added before 2018' },\n ];\n\n public tokensController: Subject<SkyTokensMessage>;\n\n constructor() {\n this.myTokens = this.getTokens(this.defaultTokens);\n }\n\n public ngOnDestroy(): void {\n if (this.tokensController) {\n this.tokensController.complete();\n }\n }\n\n public resetTokens(): void {\n this.createTokens();\n }\n\n public changeTokens(): void {\n this.myTokens = this.getTokens([\n { label: 'Paid' },\n { label: 'Pending' },\n { label: 'Past due' },\n ]);\n }\n\n public destroyTokens(): void {\n this.myTokens = undefined;\n }\n\n public createTokens(): void {\n this.myTokens = this.getTokens(this.defaultTokens);\n }\n\n public onTokenSelected(args: SkyTokenSelectedEventArgs): void {\n console.log('Token selected:', args);\n }\n\n public onFocusIndexUnderRange(): void {\n console.log('Focus index was less than zero.');\n }\n\n public onFocusIndexOverRange(): void {\n console.log('Focus index was greater than the number of tokens.');\n }\n\n public focusLastToken(): void {\n if (!this.tokensController) {\n this.tokensController = new Subject<SkyTokensMessage>();\n }\n\n this.tokensController.next({\n type: SkyTokensMessageType.FocusLastToken,\n });\n }\n\n private getTokens(data: any[]): SkyToken[] {\n return data.map((item: any) => {\n return {\n value: item,\n } as SkyToken;\n });\n }\n}\n"
8053
+ "rawContents": "import { Component, OnDestroy } from '@angular/core';\nimport {\n SkyToken,\n SkyTokenSelectedEventArgs,\n SkyTokensMessage,\n SkyTokensMessageType,\n} from '@skyux/indicators';\n\nimport { Subject } from 'rxjs';\n\nimport { TokensDemoItem } from './tokens-demo-item';\n\n@Component({\n selector: 'app-tokens-demo',\n templateUrl: './tokens-demo.component.html',\n})\nexport class TokensDemoComponent implements OnDestroy {\n public myTokens: SkyToken<TokensDemoItem>[];\n public tokensController = new Subject<SkyTokensMessage>();\n public selectedToken = '';\n\n #defaultItems: TokensDemoItem[] = [\n { label: 'Canada' },\n { label: 'Older than 55' },\n { label: 'Employed' },\n { label: 'Added before 2018' },\n ];\n\n constructor() {\n this.myTokens = this.#getTokens(this.#defaultItems);\n }\n\n public ngOnDestroy(): void {\n this.tokensController.complete();\n }\n\n public resetTokens(): void {\n this.createTokens();\n }\n\n public changeTokens(): void {\n this.myTokens = this.#getTokens([\n { label: 'Paid' },\n { label: 'Pending' },\n { label: 'Past due' },\n ]);\n }\n\n public destroyTokens(): void {\n this.myTokens = undefined;\n }\n\n public createTokens(): void {\n this.myTokens = this.#getTokens(this.#defaultItems);\n }\n\n public onTokenSelected(\n args: SkyTokenSelectedEventArgs<TokensDemoItem>\n ): void {\n this.selectedToken = args.token.value.label;\n }\n\n public onFocusIndexUnderRange(): void {\n console.log('Focus index was less than zero.');\n }\n\n public onFocusIndexOverRange(): void {\n console.log('Focus index was greater than the number of tokens.');\n }\n\n public focusLastToken(): void {\n this.tokensController.next({\n type: SkyTokensMessageType.FocusLastToken,\n });\n }\n\n #getTokens(data: TokensDemoItem[]): SkyToken<TokensDemoItem>[] {\n return data.map((item) => {\n return {\n value: item,\n };\n });\n }\n}\n"
7952
8054
  },
7953
8055
  {
7954
8056
  "fileName": "tokens-demo.module.ts",