@skyux/indicators 6.23.2 → 6.24.0

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.
@@ -37,6 +37,8 @@
37
37
  "SkyAlertHarness": "class-skyalertharness",
38
38
  "SkyKeyInfoHarness": "class-skykeyinfoharness",
39
39
  "SkyLabelHarness": "class-skylabelharness",
40
+ "SkyTokenHarness": "class-skytokenharness",
41
+ "SkyTokensHarness": "class-skytokensharness",
40
42
  "SkyAlertHarnessFilters": "interface-skyalertharnessfilters",
41
43
  "SkyKeyInfoHarnessFilters": "interface-skykeyinfoharnessfilters",
42
44
  "SkyLabelHarnessFilters": "interface-skylabelharnessfilters"
@@ -49,14 +51,14 @@
49
51
  "originalName": "",
50
52
  "children": [
51
53
  {
52
- "id": 385,
54
+ "id": 387,
53
55
  "name": "SkyTokensMessageType",
54
56
  "kind": 8,
55
57
  "kindString": "Enumeration",
56
58
  "flags": {},
57
59
  "children": [
58
60
  {
59
- "id": 387,
61
+ "id": 389,
60
62
  "name": "FocusActiveToken",
61
63
  "kind": 16,
62
64
  "kindString": "Enumeration member",
@@ -74,7 +76,7 @@
74
76
  "defaultValue": "1"
75
77
  },
76
78
  {
77
- "id": 386,
79
+ "id": 388,
78
80
  "name": "FocusLastToken",
79
81
  "kind": 16,
80
82
  "kindString": "Enumeration member",
@@ -92,7 +94,7 @@
92
94
  "defaultValue": "0"
93
95
  },
94
96
  {
95
- "id": 389,
97
+ "id": 391,
96
98
  "name": "FocusNextToken",
97
99
  "kind": 16,
98
100
  "kindString": "Enumeration member",
@@ -110,7 +112,7 @@
110
112
  "defaultValue": "3"
111
113
  },
112
114
  {
113
- "id": 388,
115
+ "id": 390,
114
116
  "name": "FocusPreviousToken",
115
117
  "kind": 16,
116
118
  "kindString": "Enumeration member",
@@ -128,7 +130,7 @@
128
130
  "defaultValue": "2"
129
131
  },
130
132
  {
131
- "id": 390,
133
+ "id": 392,
132
134
  "name": "RemoveActiveToken",
133
135
  "kind": 16,
134
136
  "kindString": "Enumeration member",
@@ -151,11 +153,11 @@
151
153
  "title": "Enumeration members",
152
154
  "kind": 16,
153
155
  "children": [
154
- 387,
155
- 386,
156
156
  389,
157
157
  388,
158
- 390
158
+ 391,
159
+ 390,
160
+ 392
159
161
  ]
160
162
  }
161
163
  ],
@@ -548,7 +550,7 @@
548
550
  ]
549
551
  },
550
552
  {
551
- "id": 391,
553
+ "id": 393,
552
554
  "name": "SkyWaitModule",
553
555
  "kind": 128,
554
556
  "kindString": "Class",
@@ -573,7 +575,7 @@
573
575
  "title": "Constructors",
574
576
  "kind": 512,
575
577
  "children": [
576
- 392
578
+ 394
577
579
  ]
578
580
  }
579
581
  ],
@@ -586,7 +588,7 @@
586
588
  ]
587
589
  },
588
590
  {
589
- "id": 394,
591
+ "id": 396,
590
592
  "name": "SkyWaitService",
591
593
  "kind": 128,
592
594
  "kindString": "Class",
@@ -607,7 +609,7 @@
607
609
  ],
608
610
  "children": [
609
611
  {
610
- "id": 395,
612
+ "id": 397,
611
613
  "name": "constructor",
612
614
  "kind": 512,
613
615
  "kindString": "Constructor",
@@ -621,14 +623,14 @@
621
623
  ],
622
624
  "signatures": [
623
625
  {
624
- "id": 396,
626
+ "id": 398,
625
627
  "name": "new SkyWaitService",
626
628
  "kind": 16384,
627
629
  "kindString": "Constructor signature",
628
630
  "flags": {},
629
631
  "parameters": [
630
632
  {
631
- "id": 397,
633
+ "id": 399,
632
634
  "name": "resolver",
633
635
  "kind": 32768,
634
636
  "kindString": "Parameter",
@@ -641,7 +643,7 @@
641
643
  }
642
644
  },
643
645
  {
644
- "id": 398,
646
+ "id": 400,
645
647
  "name": "appRef",
646
648
  "kind": 32768,
647
649
  "kindString": "Parameter",
@@ -654,7 +656,7 @@
654
656
  }
655
657
  },
656
658
  {
657
- "id": 399,
659
+ "id": 401,
658
660
  "name": "waitAdapter",
659
661
  "kind": 32768,
660
662
  "kindString": "Parameter",
@@ -665,7 +667,7 @@
665
667
  }
666
668
  },
667
669
  {
668
- "id": 400,
670
+ "id": 402,
669
671
  "name": "windowSvc",
670
672
  "kind": 32768,
671
673
  "kindString": "Parameter",
@@ -678,14 +680,14 @@
678
680
  ],
679
681
  "type": {
680
682
  "type": "reference",
681
- "id": 394,
683
+ "id": 396,
682
684
  "name": "SkyWaitService"
683
685
  }
684
686
  }
685
687
  ]
686
688
  },
687
689
  {
688
- "id": 405,
690
+ "id": 407,
689
691
  "name": "beginBlockingPageWait",
690
692
  "kind": 2048,
691
693
  "kindString": "Method",
@@ -701,7 +703,7 @@
701
703
  ],
702
704
  "signatures": [
703
705
  {
704
- "id": 406,
706
+ "id": 408,
705
707
  "name": "beginBlockingPageWait",
706
708
  "kind": 4096,
707
709
  "kindString": "Call signature",
@@ -717,7 +719,7 @@
717
719
  ]
718
720
  },
719
721
  {
720
- "id": 407,
722
+ "id": 409,
721
723
  "name": "beginNonBlockingPageWait",
722
724
  "kind": 2048,
723
725
  "kindString": "Method",
@@ -733,7 +735,7 @@
733
735
  ],
734
736
  "signatures": [
735
737
  {
736
- "id": 408,
738
+ "id": 410,
737
739
  "name": "beginNonBlockingPageWait",
738
740
  "kind": 4096,
739
741
  "kindString": "Call signature",
@@ -749,7 +751,7 @@
749
751
  ]
750
752
  },
751
753
  {
752
- "id": 417,
754
+ "id": 419,
753
755
  "name": "blockingWrap",
754
756
  "kind": 2048,
755
757
  "kindString": "Method",
@@ -765,7 +767,7 @@
765
767
  ],
766
768
  "signatures": [
767
769
  {
768
- "id": 418,
770
+ "id": 420,
769
771
  "name": "blockingWrap",
770
772
  "kind": 4096,
771
773
  "kindString": "Call signature",
@@ -775,7 +777,7 @@
775
777
  },
776
778
  "typeParameter": [
777
779
  {
778
- "id": 419,
780
+ "id": 421,
779
781
  "name": "T",
780
782
  "kind": 131072,
781
783
  "kindString": "Type parameter",
@@ -784,7 +786,7 @@
784
786
  ],
785
787
  "parameters": [
786
788
  {
787
- "id": 420,
789
+ "id": 422,
788
790
  "name": "observable",
789
791
  "kind": 32768,
790
792
  "kindString": "Parameter",
@@ -794,7 +796,7 @@
794
796
  "typeArguments": [
795
797
  {
796
798
  "type": "reference",
797
- "id": 419,
799
+ "id": 421,
798
800
  "name": "T"
799
801
  }
800
802
  ],
@@ -809,7 +811,7 @@
809
811
  "typeArguments": [
810
812
  {
811
813
  "type": "reference",
812
- "id": 419,
814
+ "id": 421,
813
815
  "name": "T"
814
816
  }
815
817
  ],
@@ -821,7 +823,7 @@
821
823
  ]
822
824
  },
823
825
  {
824
- "id": 413,
826
+ "id": 415,
825
827
  "name": "clearAllPageWaits",
826
828
  "kind": 2048,
827
829
  "kindString": "Method",
@@ -837,7 +839,7 @@
837
839
  ],
838
840
  "signatures": [
839
841
  {
840
- "id": 414,
842
+ "id": 416,
841
843
  "name": "clearAllPageWaits",
842
844
  "kind": 4096,
843
845
  "kindString": "Call signature",
@@ -853,7 +855,7 @@
853
855
  ]
854
856
  },
855
857
  {
856
- "id": 409,
858
+ "id": 411,
857
859
  "name": "endBlockingPageWait",
858
860
  "kind": 2048,
859
861
  "kindString": "Method",
@@ -869,7 +871,7 @@
869
871
  ],
870
872
  "signatures": [
871
873
  {
872
- "id": 410,
874
+ "id": 412,
873
875
  "name": "endBlockingPageWait",
874
876
  "kind": 4096,
875
877
  "kindString": "Call signature",
@@ -885,7 +887,7 @@
885
887
  ]
886
888
  },
887
889
  {
888
- "id": 411,
890
+ "id": 413,
889
891
  "name": "endNonBlockingPageWait",
890
892
  "kind": 2048,
891
893
  "kindString": "Method",
@@ -901,7 +903,7 @@
901
903
  ],
902
904
  "signatures": [
903
905
  {
904
- "id": 412,
906
+ "id": 414,
905
907
  "name": "endNonBlockingPageWait",
906
908
  "kind": 4096,
907
909
  "kindString": "Call signature",
@@ -917,7 +919,7 @@
917
919
  ]
918
920
  },
919
921
  {
920
- "id": 421,
922
+ "id": 423,
921
923
  "name": "nonBlockingWrap",
922
924
  "kind": 2048,
923
925
  "kindString": "Method",
@@ -933,7 +935,7 @@
933
935
  ],
934
936
  "signatures": [
935
937
  {
936
- "id": 422,
938
+ "id": 424,
937
939
  "name": "nonBlockingWrap",
938
940
  "kind": 4096,
939
941
  "kindString": "Call signature",
@@ -943,7 +945,7 @@
943
945
  },
944
946
  "typeParameter": [
945
947
  {
946
- "id": 423,
948
+ "id": 425,
947
949
  "name": "T",
948
950
  "kind": 131072,
949
951
  "kindString": "Type parameter",
@@ -952,7 +954,7 @@
952
954
  ],
953
955
  "parameters": [
954
956
  {
955
- "id": 424,
957
+ "id": 426,
956
958
  "name": "observable",
957
959
  "kind": 32768,
958
960
  "kindString": "Parameter",
@@ -962,7 +964,7 @@
962
964
  "typeArguments": [
963
965
  {
964
966
  "type": "reference",
965
- "id": 423,
967
+ "id": 425,
966
968
  "name": "T"
967
969
  }
968
970
  ],
@@ -977,7 +979,7 @@
977
979
  "typeArguments": [
978
980
  {
979
981
  "type": "reference",
980
- "id": 423,
982
+ "id": 425,
981
983
  "name": "T"
982
984
  }
983
985
  ],
@@ -994,20 +996,20 @@
994
996
  "title": "Constructors",
995
997
  "kind": 512,
996
998
  "children": [
997
- 395
999
+ 397
998
1000
  ]
999
1001
  },
1000
1002
  {
1001
1003
  "title": "Methods",
1002
1004
  "kind": 2048,
1003
1005
  "children": [
1004
- 405,
1005
1006
  407,
1006
- 417,
1007
- 413,
1008
1007
  409,
1008
+ 419,
1009
+ 415,
1009
1010
  411,
1010
- 421
1011
+ 413,
1012
+ 423
1011
1013
  ]
1012
1014
  }
1013
1015
  ],
@@ -3449,7 +3451,13 @@
3449
3451
  "typeArguments": [
3450
3452
  {
3451
3453
  "type": "reference",
3452
- "id": 381,
3454
+ "id": 382,
3455
+ "typeArguments": [
3456
+ {
3457
+ "type": "intrinsic",
3458
+ "name": "any"
3459
+ }
3460
+ ],
3453
3461
  "name": "SkyTokenSelectedEventArgs"
3454
3462
  }
3455
3463
  ],
@@ -3497,6 +3505,12 @@
3497
3505
  "elementType": {
3498
3506
  "type": "reference",
3499
3507
  "id": 379,
3508
+ "typeArguments": [
3509
+ {
3510
+ "type": "intrinsic",
3511
+ "name": "any"
3512
+ }
3513
+ ],
3500
3514
  "name": "SkyToken"
3501
3515
  }
3502
3516
  }
@@ -3528,6 +3542,12 @@
3528
3542
  {
3529
3543
  "type": "reference",
3530
3544
  "id": 379,
3545
+ "typeArguments": [
3546
+ {
3547
+ "type": "intrinsic",
3548
+ "name": "any"
3549
+ }
3550
+ ],
3531
3551
  "name": "SkyToken"
3532
3552
  }
3533
3553
  ],
@@ -4008,7 +4028,7 @@
4008
4028
  "typeArguments": [
4009
4029
  {
4010
4030
  "type": "reference",
4011
- "id": 383,
4031
+ "id": 385,
4012
4032
  "name": "SkyTokensMessage"
4013
4033
  }
4014
4034
  ],
@@ -4040,7 +4060,7 @@
4040
4060
  "typeArguments": [
4041
4061
  {
4042
4062
  "type": "reference",
4043
- "id": 383,
4063
+ "id": 385,
4044
4064
  "name": "SkyTokensMessage"
4045
4065
  }
4046
4066
  ],
@@ -4099,6 +4119,12 @@
4099
4119
  "elementType": {
4100
4120
  "type": "reference",
4101
4121
  "id": 379,
4122
+ "typeArguments": [
4123
+ {
4124
+ "type": "intrinsic",
4125
+ "name": "any"
4126
+ }
4127
+ ],
4102
4128
  "name": "SkyToken"
4103
4129
  }
4104
4130
  }
@@ -4126,6 +4152,12 @@
4126
4152
  "elementType": {
4127
4153
  "type": "reference",
4128
4154
  "id": 379,
4155
+ "typeArguments": [
4156
+ {
4157
+ "type": "intrinsic",
4158
+ "name": "any"
4159
+ }
4160
+ ],
4129
4161
  "name": "SkyToken"
4130
4162
  }
4131
4163
  }
@@ -4207,6 +4239,12 @@
4207
4239
  "type": {
4208
4240
  "type": "reference",
4209
4241
  "id": 379,
4242
+ "typeArguments": [
4243
+ {
4244
+ "type": "intrinsic",
4245
+ "name": "any"
4246
+ }
4247
+ ],
4210
4248
  "name": "SkyToken"
4211
4249
  }
4212
4250
  }
@@ -4294,6 +4332,12 @@
4294
4332
  "type": {
4295
4333
  "type": "reference",
4296
4334
  "id": 379,
4335
+ "typeArguments": [
4336
+ {
4337
+ "type": "intrinsic",
4338
+ "name": "any"
4339
+ }
4340
+ ],
4297
4341
  "name": "SkyToken"
4298
4342
  }
4299
4343
  }
@@ -4337,6 +4381,12 @@
4337
4381
  "type": {
4338
4382
  "type": "reference",
4339
4383
  "id": 379,
4384
+ "typeArguments": [
4385
+ {
4386
+ "type": "intrinsic",
4387
+ "name": "any"
4388
+ }
4389
+ ],
4340
4390
  "name": "SkyToken"
4341
4391
  }
4342
4392
  }
@@ -6042,8 +6092,9 @@
6042
6092
  }
6043
6093
  ],
6044
6094
  "type": {
6045
- "type": "intrinsic",
6046
- "name": "any"
6095
+ "type": "reference",
6096
+ "id": 381,
6097
+ "name": "T"
6047
6098
  }
6048
6099
  }
6049
6100
  ],
@@ -6059,20 +6110,33 @@
6059
6110
  "sources": [
6060
6111
  {
6061
6112
  "fileName": "projects/indicators/src/modules/tokens/types/token.ts",
6062
- "line": 1,
6113
+ "line": 2,
6063
6114
  "character": 17
6064
6115
  }
6116
+ ],
6117
+ "typeParameter": [
6118
+ {
6119
+ "id": 381,
6120
+ "name": "T",
6121
+ "kind": 131072,
6122
+ "kindString": "Type parameter",
6123
+ "flags": {},
6124
+ "default": {
6125
+ "type": "intrinsic",
6126
+ "name": "any"
6127
+ }
6128
+ }
6065
6129
  ]
6066
6130
  },
6067
6131
  {
6068
- "id": 381,
6132
+ "id": 382,
6069
6133
  "name": "SkyTokenSelectedEventArgs",
6070
6134
  "kind": 256,
6071
6135
  "kindString": "Interface",
6072
6136
  "flags": {},
6073
6137
  "children": [
6074
6138
  {
6075
- "id": 382,
6139
+ "id": 383,
6076
6140
  "name": "token",
6077
6141
  "kind": 1024,
6078
6142
  "kindString": "Property",
@@ -6092,6 +6156,13 @@
6092
6156
  "type": {
6093
6157
  "type": "reference",
6094
6158
  "id": 379,
6159
+ "typeArguments": [
6160
+ {
6161
+ "type": "reference",
6162
+ "id": 384,
6163
+ "name": "T"
6164
+ }
6165
+ ],
6095
6166
  "name": "SkyToken"
6096
6167
  }
6097
6168
  }
@@ -6101,7 +6172,7 @@
6101
6172
  "title": "Properties",
6102
6173
  "kind": 1024,
6103
6174
  "children": [
6104
- 382
6175
+ 383
6105
6176
  ]
6106
6177
  }
6107
6178
  ],
@@ -6111,17 +6182,30 @@
6111
6182
  "line": 3,
6112
6183
  "character": 17
6113
6184
  }
6185
+ ],
6186
+ "typeParameter": [
6187
+ {
6188
+ "id": 384,
6189
+ "name": "T",
6190
+ "kind": 131072,
6191
+ "kindString": "Type parameter",
6192
+ "flags": {},
6193
+ "default": {
6194
+ "type": "intrinsic",
6195
+ "name": "any"
6196
+ }
6197
+ }
6114
6198
  ]
6115
6199
  },
6116
6200
  {
6117
- "id": 383,
6201
+ "id": 385,
6118
6202
  "name": "SkyTokensMessage",
6119
6203
  "kind": 256,
6120
6204
  "kindString": "Interface",
6121
6205
  "flags": {},
6122
6206
  "children": [
6123
6207
  {
6124
- "id": 384,
6208
+ "id": 386,
6125
6209
  "name": "type",
6126
6210
  "kind": 1024,
6127
6211
  "kindString": "Property",
@@ -6140,7 +6224,7 @@
6140
6224
  ],
6141
6225
  "type": {
6142
6226
  "type": "reference",
6143
- "id": 385,
6227
+ "id": 387,
6144
6228
  "name": "SkyTokensMessageType"
6145
6229
  }
6146
6230
  }
@@ -6150,7 +6234,7 @@
6150
6234
  "title": "Properties",
6151
6235
  "kind": 1024,
6152
6236
  "children": [
6153
- 384
6237
+ 386
6154
6238
  ]
6155
6239
  }
6156
6240
  ],
@@ -6377,7 +6461,7 @@
6377
6461
  }
6378
6462
  },
6379
6463
  {
6380
- "id": 437,
6464
+ "id": 439,
6381
6465
  "name": "SkyAlertHarness",
6382
6466
  "kind": 128,
6383
6467
  "kindString": "Class",
@@ -6387,7 +6471,7 @@
6387
6471
  },
6388
6472
  "children": [
6389
6473
  {
6390
- "id": 458,
6474
+ "id": 460,
6391
6475
  "name": "close",
6392
6476
  "kind": 2048,
6393
6477
  "kindString": "Method",
@@ -6403,7 +6487,7 @@
6403
6487
  ],
6404
6488
  "signatures": [
6405
6489
  {
6406
- "id": 459,
6490
+ "id": 461,
6407
6491
  "name": "close",
6408
6492
  "kind": 4096,
6409
6493
  "kindString": "Call signature",
@@ -6427,7 +6511,7 @@
6427
6511
  ]
6428
6512
  },
6429
6513
  {
6430
- "id": 454,
6514
+ "id": 456,
6431
6515
  "name": "getAlertType",
6432
6516
  "kind": 2048,
6433
6517
  "kindString": "Method",
@@ -6443,7 +6527,7 @@
6443
6527
  ],
6444
6528
  "signatures": [
6445
6529
  {
6446
- "id": 455,
6530
+ "id": 457,
6447
6531
  "name": "getAlertType",
6448
6532
  "kind": 4096,
6449
6533
  "kindString": "Call signature",
@@ -6468,7 +6552,7 @@
6468
6552
  ]
6469
6553
  },
6470
6554
  {
6471
- "id": 466,
6555
+ "id": 468,
6472
6556
  "name": "getCustomDescription",
6473
6557
  "kind": 2048,
6474
6558
  "kindString": "Method",
@@ -6484,7 +6568,7 @@
6484
6568
  ],
6485
6569
  "signatures": [
6486
6570
  {
6487
- "id": 467,
6571
+ "id": 469,
6488
6572
  "name": "getCustomDescription",
6489
6573
  "kind": 4096,
6490
6574
  "kindString": "Call signature",
@@ -6508,7 +6592,7 @@
6508
6592
  ]
6509
6593
  },
6510
6594
  {
6511
- "id": 464,
6595
+ "id": 466,
6512
6596
  "name": "getDescriptionType",
6513
6597
  "kind": 2048,
6514
6598
  "kindString": "Method",
@@ -6524,7 +6608,7 @@
6524
6608
  ],
6525
6609
  "signatures": [
6526
6610
  {
6527
- "id": 465,
6611
+ "id": 467,
6528
6612
  "name": "getDescriptionType",
6529
6613
  "kind": 4096,
6530
6614
  "kindString": "Call signature",
@@ -6549,7 +6633,7 @@
6549
6633
  ]
6550
6634
  },
6551
6635
  {
6552
- "id": 456,
6636
+ "id": 458,
6553
6637
  "name": "getText",
6554
6638
  "kind": 2048,
6555
6639
  "kindString": "Method",
@@ -6565,7 +6649,7 @@
6565
6649
  ],
6566
6650
  "signatures": [
6567
6651
  {
6568
- "id": 457,
6652
+ "id": 459,
6569
6653
  "name": "getText",
6570
6654
  "kind": 4096,
6571
6655
  "kindString": "Call signature",
@@ -6589,7 +6673,7 @@
6589
6673
  ]
6590
6674
  },
6591
6675
  {
6592
- "id": 471,
6676
+ "id": 473,
6593
6677
  "name": "host",
6594
6678
  "kind": 2048,
6595
6679
  "kindString": "Method",
@@ -6603,7 +6687,7 @@
6603
6687
  ],
6604
6688
  "signatures": [
6605
6689
  {
6606
- "id": 472,
6690
+ "id": 474,
6607
6691
  "name": "host",
6608
6692
  "kind": 4096,
6609
6693
  "kindString": "Call signature",
@@ -6637,7 +6721,7 @@
6637
6721
  }
6638
6722
  },
6639
6723
  {
6640
- "id": 462,
6724
+ "id": 464,
6641
6725
  "name": "isCloseable",
6642
6726
  "kind": 2048,
6643
6727
  "kindString": "Method",
@@ -6653,7 +6737,7 @@
6653
6737
  ],
6654
6738
  "signatures": [
6655
6739
  {
6656
- "id": 463,
6740
+ "id": 465,
6657
6741
  "name": "isCloseable",
6658
6742
  "kind": 4096,
6659
6743
  "kindString": "Call signature",
@@ -6677,7 +6761,7 @@
6677
6761
  ]
6678
6762
  },
6679
6763
  {
6680
- "id": 460,
6764
+ "id": 462,
6681
6765
  "name": "isClosed",
6682
6766
  "kind": 2048,
6683
6767
  "kindString": "Method",
@@ -6693,7 +6777,7 @@
6693
6777
  ],
6694
6778
  "signatures": [
6695
6779
  {
6696
- "id": 461,
6780
+ "id": 463,
6697
6781
  "name": "isClosed",
6698
6782
  "kind": 4096,
6699
6783
  "kindString": "Call signature",
@@ -6717,7 +6801,7 @@
6717
6801
  ]
6718
6802
  },
6719
6803
  {
6720
- "id": 439,
6804
+ "id": 441,
6721
6805
  "name": "with",
6722
6806
  "kind": 2048,
6723
6807
  "kindString": "Method",
@@ -6734,7 +6818,7 @@
6734
6818
  ],
6735
6819
  "signatures": [
6736
6820
  {
6737
- "id": 440,
6821
+ "id": 442,
6738
6822
  "name": "with",
6739
6823
  "kind": 4096,
6740
6824
  "kindString": "Call signature",
@@ -6744,14 +6828,14 @@
6744
6828
  },
6745
6829
  "parameters": [
6746
6830
  {
6747
- "id": 441,
6831
+ "id": 443,
6748
6832
  "name": "filters",
6749
6833
  "kind": 32768,
6750
6834
  "kindString": "Parameter",
6751
6835
  "flags": {},
6752
6836
  "type": {
6753
6837
  "type": "reference",
6754
- "id": 491,
6838
+ "id": 493,
6755
6839
  "name": "SkyAlertHarnessFilters"
6756
6840
  }
6757
6841
  }
@@ -6761,7 +6845,7 @@
6761
6845
  "typeArguments": [
6762
6846
  {
6763
6847
  "type": "reference",
6764
- "id": 437,
6848
+ "id": 439,
6765
6849
  "name": "SkyAlertHarness"
6766
6850
  }
6767
6851
  ],
@@ -6778,22 +6862,22 @@
6778
6862
  "title": "Constructors",
6779
6863
  "kind": 512,
6780
6864
  "children": [
6781
- 447
6865
+ 449
6782
6866
  ]
6783
6867
  },
6784
6868
  {
6785
6869
  "title": "Methods",
6786
6870
  "kind": 2048,
6787
6871
  "children": [
6788
- 458,
6789
- 454,
6872
+ 460,
6873
+ 456,
6874
+ 468,
6790
6875
  466,
6876
+ 458,
6877
+ 473,
6791
6878
  464,
6792
- 456,
6793
- 471,
6794
6879
  462,
6795
- 460,
6796
- 439
6880
+ 441
6797
6881
  ]
6798
6882
  }
6799
6883
  ],
@@ -6812,7 +6896,7 @@
6812
6896
  ]
6813
6897
  },
6814
6898
  {
6815
- "id": 495,
6899
+ "id": 497,
6816
6900
  "name": "SkyKeyInfoHarness",
6817
6901
  "kind": 128,
6818
6902
  "kindString": "Class",
@@ -6822,7 +6906,7 @@
6822
6906
  },
6823
6907
  "children": [
6824
6908
  {
6825
- "id": 513,
6909
+ "id": 515,
6826
6910
  "name": "getLabelText",
6827
6911
  "kind": 2048,
6828
6912
  "kindString": "Method",
@@ -6838,7 +6922,7 @@
6838
6922
  ],
6839
6923
  "signatures": [
6840
6924
  {
6841
- "id": 514,
6925
+ "id": 516,
6842
6926
  "name": "getLabelText",
6843
6927
  "kind": 4096,
6844
6928
  "kindString": "Call signature",
@@ -6862,7 +6946,7 @@
6862
6946
  ]
6863
6947
  },
6864
6948
  {
6865
- "id": 515,
6949
+ "id": 517,
6866
6950
  "name": "getLayout",
6867
6951
  "kind": 2048,
6868
6952
  "kindString": "Method",
@@ -6878,7 +6962,7 @@
6878
6962
  ],
6879
6963
  "signatures": [
6880
6964
  {
6881
- "id": 516,
6965
+ "id": 518,
6882
6966
  "name": "getLayout",
6883
6967
  "kind": 4096,
6884
6968
  "kindString": "Call signature",
@@ -6903,7 +6987,7 @@
6903
6987
  ]
6904
6988
  },
6905
6989
  {
6906
- "id": 511,
6990
+ "id": 513,
6907
6991
  "name": "getValueText",
6908
6992
  "kind": 2048,
6909
6993
  "kindString": "Method",
@@ -6919,7 +7003,7 @@
6919
7003
  ],
6920
7004
  "signatures": [
6921
7005
  {
6922
- "id": 512,
7006
+ "id": 514,
6923
7007
  "name": "getValueText",
6924
7008
  "kind": 4096,
6925
7009
  "kindString": "Call signature",
@@ -6943,7 +7027,7 @@
6943
7027
  ]
6944
7028
  },
6945
7029
  {
6946
- "id": 520,
7030
+ "id": 522,
6947
7031
  "name": "host",
6948
7032
  "kind": 2048,
6949
7033
  "kindString": "Method",
@@ -6957,7 +7041,7 @@
6957
7041
  ],
6958
7042
  "signatures": [
6959
7043
  {
6960
- "id": 521,
7044
+ "id": 523,
6961
7045
  "name": "host",
6962
7046
  "kind": 4096,
6963
7047
  "kindString": "Call signature",
@@ -6991,7 +7075,7 @@
6991
7075
  }
6992
7076
  },
6993
7077
  {
6994
- "id": 497,
7078
+ "id": 499,
6995
7079
  "name": "with",
6996
7080
  "kind": 2048,
6997
7081
  "kindString": "Method",
@@ -7008,7 +7092,7 @@
7008
7092
  ],
7009
7093
  "signatures": [
7010
7094
  {
7011
- "id": 498,
7095
+ "id": 500,
7012
7096
  "name": "with",
7013
7097
  "kind": 4096,
7014
7098
  "kindString": "Call signature",
@@ -7018,14 +7102,14 @@
7018
7102
  },
7019
7103
  "parameters": [
7020
7104
  {
7021
- "id": 499,
7105
+ "id": 501,
7022
7106
  "name": "filters",
7023
7107
  "kind": 32768,
7024
7108
  "kindString": "Parameter",
7025
7109
  "flags": {},
7026
7110
  "type": {
7027
7111
  "type": "reference",
7028
- "id": 540,
7112
+ "id": 542,
7029
7113
  "name": "SkyKeyInfoHarnessFilters"
7030
7114
  }
7031
7115
  }
@@ -7035,7 +7119,7 @@
7035
7119
  "typeArguments": [
7036
7120
  {
7037
7121
  "type": "reference",
7038
- "id": 495,
7122
+ "id": 497,
7039
7123
  "name": "SkyKeyInfoHarness"
7040
7124
  }
7041
7125
  ],
@@ -7052,18 +7136,18 @@
7052
7136
  "title": "Constructors",
7053
7137
  "kind": 512,
7054
7138
  "children": [
7055
- 505
7139
+ 507
7056
7140
  ]
7057
7141
  },
7058
7142
  {
7059
7143
  "title": "Methods",
7060
7144
  "kind": 2048,
7061
7145
  "children": [
7062
- 513,
7063
7146
  515,
7064
- 511,
7065
- 520,
7066
- 497
7147
+ 517,
7148
+ 513,
7149
+ 522,
7150
+ 499
7067
7151
  ]
7068
7152
  }
7069
7153
  ],
@@ -7082,7 +7166,7 @@
7082
7166
  ]
7083
7167
  },
7084
7168
  {
7085
- "id": 544,
7169
+ "id": 546,
7086
7170
  "name": "SkyLabelHarness",
7087
7171
  "kind": 128,
7088
7172
  "kindString": "Class",
@@ -7092,7 +7176,7 @@
7092
7176
  },
7093
7177
  "children": [
7094
7178
  {
7095
- "id": 566,
7179
+ "id": 568,
7096
7180
  "name": "getCustomDescription",
7097
7181
  "kind": 2048,
7098
7182
  "kindString": "Method",
@@ -7108,7 +7192,7 @@
7108
7192
  ],
7109
7193
  "signatures": [
7110
7194
  {
7111
- "id": 567,
7195
+ "id": 569,
7112
7196
  "name": "getCustomDescription",
7113
7197
  "kind": 4096,
7114
7198
  "kindString": "Call signature",
@@ -7132,7 +7216,7 @@
7132
7216
  ]
7133
7217
  },
7134
7218
  {
7135
- "id": 564,
7219
+ "id": 566,
7136
7220
  "name": "getDescriptionType",
7137
7221
  "kind": 2048,
7138
7222
  "kindString": "Method",
@@ -7148,7 +7232,7 @@
7148
7232
  ],
7149
7233
  "signatures": [
7150
7234
  {
7151
- "id": 565,
7235
+ "id": 567,
7152
7236
  "name": "getDescriptionType",
7153
7237
  "kind": 4096,
7154
7238
  "kindString": "Call signature",
@@ -7173,7 +7257,7 @@
7173
7257
  ]
7174
7258
  },
7175
7259
  {
7176
- "id": 560,
7260
+ "id": 562,
7177
7261
  "name": "getLabelText",
7178
7262
  "kind": 2048,
7179
7263
  "kindString": "Method",
@@ -7189,7 +7273,7 @@
7189
7273
  ],
7190
7274
  "signatures": [
7191
7275
  {
7192
- "id": 561,
7276
+ "id": 563,
7193
7277
  "name": "getLabelText",
7194
7278
  "kind": 4096,
7195
7279
  "kindString": "Call signature",
@@ -7213,7 +7297,7 @@
7213
7297
  ]
7214
7298
  },
7215
7299
  {
7216
- "id": 562,
7300
+ "id": 564,
7217
7301
  "name": "getLabelType",
7218
7302
  "kind": 2048,
7219
7303
  "kindString": "Method",
@@ -7229,7 +7313,7 @@
7229
7313
  ],
7230
7314
  "signatures": [
7231
7315
  {
7232
- "id": 563,
7316
+ "id": 565,
7233
7317
  "name": "getLabelType",
7234
7318
  "kind": 4096,
7235
7319
  "kindString": "Call signature",
@@ -7254,7 +7338,7 @@
7254
7338
  ]
7255
7339
  },
7256
7340
  {
7257
- "id": 571,
7341
+ "id": 573,
7258
7342
  "name": "host",
7259
7343
  "kind": 2048,
7260
7344
  "kindString": "Method",
@@ -7268,7 +7352,7 @@
7268
7352
  ],
7269
7353
  "signatures": [
7270
7354
  {
7271
- "id": 572,
7355
+ "id": 574,
7272
7356
  "name": "host",
7273
7357
  "kind": 4096,
7274
7358
  "kindString": "Call signature",
@@ -7302,7 +7386,7 @@
7302
7386
  }
7303
7387
  },
7304
7388
  {
7305
- "id": 546,
7389
+ "id": 548,
7306
7390
  "name": "with",
7307
7391
  "kind": 2048,
7308
7392
  "kindString": "Method",
@@ -7319,7 +7403,7 @@
7319
7403
  ],
7320
7404
  "signatures": [
7321
7405
  {
7322
- "id": 547,
7406
+ "id": 549,
7323
7407
  "name": "with",
7324
7408
  "kind": 4096,
7325
7409
  "kindString": "Call signature",
@@ -7329,14 +7413,14 @@
7329
7413
  },
7330
7414
  "parameters": [
7331
7415
  {
7332
- "id": 548,
7416
+ "id": 550,
7333
7417
  "name": "filters",
7334
7418
  "kind": 32768,
7335
7419
  "kindString": "Parameter",
7336
7420
  "flags": {},
7337
7421
  "type": {
7338
7422
  "type": "reference",
7339
- "id": 591,
7423
+ "id": 593,
7340
7424
  "name": "SkyLabelHarnessFilters"
7341
7425
  }
7342
7426
  }
@@ -7346,7 +7430,7 @@
7346
7430
  "typeArguments": [
7347
7431
  {
7348
7432
  "type": "reference",
7349
- "id": 544,
7433
+ "id": 546,
7350
7434
  "name": "SkyLabelHarness"
7351
7435
  }
7352
7436
  ],
@@ -7363,19 +7447,19 @@
7363
7447
  "title": "Constructors",
7364
7448
  "kind": 512,
7365
7449
  "children": [
7366
- 554
7450
+ 556
7367
7451
  ]
7368
7452
  },
7369
7453
  {
7370
7454
  "title": "Methods",
7371
7455
  "kind": 2048,
7372
7456
  "children": [
7457
+ 568,
7373
7458
  566,
7374
- 564,
7375
- 560,
7376
7459
  562,
7377
- 571,
7378
- 546
7460
+ 564,
7461
+ 573,
7462
+ 548
7379
7463
  ]
7380
7464
  }
7381
7465
  ],
@@ -7394,88 +7478,786 @@
7394
7478
  ]
7395
7479
  },
7396
7480
  {
7397
- "id": 491,
7398
- "name": "SkyAlertHarnessFilters",
7399
- "kind": 256,
7400
- "kindString": "Interface",
7481
+ "id": 597,
7482
+ "name": "SkyTokenHarness",
7483
+ "kind": 128,
7484
+ "kindString": "Class",
7401
7485
  "flags": {},
7402
7486
  "comment": {
7403
- "shortText": "A set of criteria that can be used to filter a list of SkyAlertHarness instances."
7487
+ "shortText": "Harness for interacting with a token component in tests."
7404
7488
  },
7405
7489
  "children": [
7406
7490
  {
7407
- "id": 494,
7408
- "name": "ancestor",
7409
- "kind": 1024,
7410
- "kindString": "Property",
7491
+ "id": 609,
7492
+ "name": "dismiss",
7493
+ "kind": 2048,
7494
+ "kindString": "Method",
7411
7495
  "flags": {
7412
- "isOptional": true
7413
- },
7414
- "comment": {
7415
- "shortText": "Only find instances that are nested under an element with the given selector."
7496
+ "isPublic": true
7416
7497
  },
7417
7498
  "sources": [
7418
7499
  {
7419
- "fileName": "node_modules/@angular/cdk/testing/component-harness.d.ts",
7420
- "line": 351,
7421
- "character": 4
7500
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7501
+ "line": 50,
7502
+ "character": 15
7422
7503
  }
7423
7504
  ],
7424
- "type": {
7425
- "type": "intrinsic",
7426
- "name": "string"
7427
- },
7428
- "inheritedFrom": {
7429
- "type": "reference",
7430
- "name": "SkyHarnessFilters.ancestor"
7431
- }
7505
+ "signatures": [
7506
+ {
7507
+ "id": 610,
7508
+ "name": "dismiss",
7509
+ "kind": 4096,
7510
+ "kindString": "Call signature",
7511
+ "flags": {},
7512
+ "comment": {
7513
+ "shortText": "Dismisses the token."
7514
+ },
7515
+ "type": {
7516
+ "type": "reference",
7517
+ "typeArguments": [
7518
+ {
7519
+ "type": "intrinsic",
7520
+ "name": "void"
7521
+ }
7522
+ ],
7523
+ "qualifiedName": "Promise",
7524
+ "package": "typescript",
7525
+ "name": "Promise"
7526
+ }
7527
+ }
7528
+ ]
7432
7529
  },
7433
7530
  {
7434
- "id": 492,
7435
- "name": "dataSkyId",
7436
- "kind": 1024,
7437
- "kindString": "Property",
7531
+ "id": 611,
7532
+ "name": "getText",
7533
+ "kind": 2048,
7534
+ "kindString": "Method",
7438
7535
  "flags": {
7439
- "isOptional": true
7440
- },
7441
- "comment": {
7442
- "shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
7536
+ "isPublic": true
7443
7537
  },
7444
7538
  "sources": [
7445
7539
  {
7446
- "fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
7447
- "line": 11,
7448
- "character": 2
7540
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7541
+ "line": 63,
7542
+ "character": 15
7449
7543
  }
7450
7544
  ],
7451
- "type": {
7452
- "type": "union",
7453
- "types": [
7454
- {
7455
- "type": "intrinsic",
7456
- "name": "string"
7545
+ "signatures": [
7546
+ {
7547
+ "id": 612,
7548
+ "name": "getText",
7549
+ "kind": 4096,
7550
+ "kindString": "Call signature",
7551
+ "flags": {},
7552
+ "comment": {
7553
+ "shortText": "Returns the text content of the token."
7457
7554
  },
7458
- {
7555
+ "type": {
7459
7556
  "type": "reference",
7460
- "qualifiedName": "RegExp",
7557
+ "typeArguments": [
7558
+ {
7559
+ "type": "intrinsic",
7560
+ "name": "string"
7561
+ }
7562
+ ],
7563
+ "qualifiedName": "Promise",
7461
7564
  "package": "typescript",
7462
- "name": "RegExp"
7565
+ "name": "Promise"
7463
7566
  }
7464
- ]
7465
- },
7466
- "inheritedFrom": {
7467
- "type": "reference",
7468
- "name": "SkyHarnessFilters.dataSkyId"
7469
- }
7567
+ }
7568
+ ]
7470
7569
  },
7471
7570
  {
7472
- "id": 493,
7473
- "name": "selector",
7474
- "kind": 1024,
7475
- "kindString": "Property",
7476
- "flags": {
7477
- "isOptional": true
7478
- },
7571
+ "id": 620,
7572
+ "name": "host",
7573
+ "kind": 2048,
7574
+ "kindString": "Method",
7575
+ "flags": {},
7576
+ "sources": [
7577
+ {
7578
+ "fileName": "node_modules/@angular/cdk/testing/component-harness.d.ts",
7579
+ "line": 221,
7580
+ "character": 4
7581
+ }
7582
+ ],
7583
+ "signatures": [
7584
+ {
7585
+ "id": 621,
7586
+ "name": "host",
7587
+ "kind": 4096,
7588
+ "kindString": "Call signature",
7589
+ "flags": {},
7590
+ "comment": {
7591
+ "shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
7592
+ },
7593
+ "type": {
7594
+ "type": "reference",
7595
+ "typeArguments": [
7596
+ {
7597
+ "type": "reference",
7598
+ "qualifiedName": "TestElement",
7599
+ "package": "@angular/cdk",
7600
+ "name": "TestElement"
7601
+ }
7602
+ ],
7603
+ "qualifiedName": "Promise",
7604
+ "package": "typescript",
7605
+ "name": "Promise"
7606
+ },
7607
+ "inheritedFrom": {
7608
+ "type": "reference",
7609
+ "name": "ComponentHarness.host"
7610
+ }
7611
+ }
7612
+ ],
7613
+ "inheritedFrom": {
7614
+ "type": "reference",
7615
+ "name": "ComponentHarness.host"
7616
+ }
7617
+ },
7618
+ {
7619
+ "id": 613,
7620
+ "name": "isDisabled",
7621
+ "kind": 2048,
7622
+ "kindString": "Method",
7623
+ "flags": {
7624
+ "isPublic": true
7625
+ },
7626
+ "sources": [
7627
+ {
7628
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7629
+ "line": 70,
7630
+ "character": 15
7631
+ }
7632
+ ],
7633
+ "signatures": [
7634
+ {
7635
+ "id": 614,
7636
+ "name": "isDisabled",
7637
+ "kind": 4096,
7638
+ "kindString": "Call signature",
7639
+ "flags": {},
7640
+ "comment": {
7641
+ "shortText": "Whether the token is disabled."
7642
+ },
7643
+ "type": {
7644
+ "type": "reference",
7645
+ "typeArguments": [
7646
+ {
7647
+ "type": "intrinsic",
7648
+ "name": "boolean"
7649
+ }
7650
+ ],
7651
+ "qualifiedName": "Promise",
7652
+ "package": "typescript",
7653
+ "name": "Promise"
7654
+ }
7655
+ }
7656
+ ]
7657
+ },
7658
+ {
7659
+ "id": 615,
7660
+ "name": "isDismissible",
7661
+ "kind": 2048,
7662
+ "kindString": "Method",
7663
+ "flags": {
7664
+ "isPublic": true
7665
+ },
7666
+ "sources": [
7667
+ {
7668
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7669
+ "line": 77,
7670
+ "character": 15
7671
+ }
7672
+ ],
7673
+ "signatures": [
7674
+ {
7675
+ "id": 616,
7676
+ "name": "isDismissible",
7677
+ "kind": 4096,
7678
+ "kindString": "Call signature",
7679
+ "flags": {},
7680
+ "comment": {
7681
+ "shortText": "Whether the token is dismissible."
7682
+ },
7683
+ "type": {
7684
+ "type": "reference",
7685
+ "typeArguments": [
7686
+ {
7687
+ "type": "intrinsic",
7688
+ "name": "boolean"
7689
+ }
7690
+ ],
7691
+ "qualifiedName": "Promise",
7692
+ "package": "typescript",
7693
+ "name": "Promise"
7694
+ }
7695
+ }
7696
+ ]
7697
+ },
7698
+ {
7699
+ "id": 617,
7700
+ "name": "isFocused",
7701
+ "kind": 2048,
7702
+ "kindString": "Method",
7703
+ "flags": {
7704
+ "isPublic": true
7705
+ },
7706
+ "sources": [
7707
+ {
7708
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7709
+ "line": 84,
7710
+ "character": 15
7711
+ }
7712
+ ],
7713
+ "signatures": [
7714
+ {
7715
+ "id": 618,
7716
+ "name": "isFocused",
7717
+ "kind": 4096,
7718
+ "kindString": "Call signature",
7719
+ "flags": {},
7720
+ "comment": {
7721
+ "shortText": "Whether the token is focused."
7722
+ },
7723
+ "type": {
7724
+ "type": "reference",
7725
+ "typeArguments": [
7726
+ {
7727
+ "type": "intrinsic",
7728
+ "name": "boolean"
7729
+ }
7730
+ ],
7731
+ "qualifiedName": "Promise",
7732
+ "package": "typescript",
7733
+ "name": "Promise"
7734
+ }
7735
+ }
7736
+ ]
7737
+ },
7738
+ {
7739
+ "id": 607,
7740
+ "name": "select",
7741
+ "kind": 2048,
7742
+ "kindString": "Method",
7743
+ "flags": {
7744
+ "isPublic": true
7745
+ },
7746
+ "sources": [
7747
+ {
7748
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7749
+ "line": 39,
7750
+ "character": 15
7751
+ }
7752
+ ],
7753
+ "signatures": [
7754
+ {
7755
+ "id": 608,
7756
+ "name": "select",
7757
+ "kind": 4096,
7758
+ "kindString": "Call signature",
7759
+ "flags": {},
7760
+ "comment": {
7761
+ "shortText": "Selects the token."
7762
+ },
7763
+ "type": {
7764
+ "type": "reference",
7765
+ "typeArguments": [
7766
+ {
7767
+ "type": "intrinsic",
7768
+ "name": "void"
7769
+ }
7770
+ ],
7771
+ "qualifiedName": "Promise",
7772
+ "package": "typescript",
7773
+ "name": "Promise"
7774
+ }
7775
+ }
7776
+ ]
7777
+ },
7778
+ {
7779
+ "id": 599,
7780
+ "name": "with",
7781
+ "kind": 2048,
7782
+ "kindString": "Method",
7783
+ "flags": {
7784
+ "isPublic": true,
7785
+ "isStatic": true
7786
+ },
7787
+ "sources": [
7788
+ {
7789
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7790
+ "line": 22,
7791
+ "character": 16
7792
+ }
7793
+ ],
7794
+ "signatures": [
7795
+ {
7796
+ "id": 600,
7797
+ "name": "with",
7798
+ "kind": 4096,
7799
+ "kindString": "Call signature",
7800
+ "flags": {},
7801
+ "comment": {
7802
+ "shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyTokenHarness` that meets certain criteria."
7803
+ },
7804
+ "parameters": [
7805
+ {
7806
+ "id": 601,
7807
+ "name": "filters",
7808
+ "kind": 32768,
7809
+ "kindString": "Parameter",
7810
+ "flags": {},
7811
+ "type": {
7812
+ "type": "reference",
7813
+ "name": "SkyTokenHarnessFilters"
7814
+ }
7815
+ }
7816
+ ],
7817
+ "type": {
7818
+ "type": "reference",
7819
+ "typeArguments": [
7820
+ {
7821
+ "type": "reference",
7822
+ "id": 597,
7823
+ "name": "SkyTokenHarness"
7824
+ }
7825
+ ],
7826
+ "qualifiedName": "HarnessPredicate",
7827
+ "package": "@angular/cdk",
7828
+ "name": "HarnessPredicate"
7829
+ }
7830
+ }
7831
+ ]
7832
+ }
7833
+ ],
7834
+ "groups": [
7835
+ {
7836
+ "title": "Constructors",
7837
+ "kind": 512,
7838
+ "children": [
7839
+ 602
7840
+ ]
7841
+ },
7842
+ {
7843
+ "title": "Methods",
7844
+ "kind": 2048,
7845
+ "children": [
7846
+ 609,
7847
+ 611,
7848
+ 620,
7849
+ 613,
7850
+ 615,
7851
+ 617,
7852
+ 607,
7853
+ 599
7854
+ ]
7855
+ }
7856
+ ],
7857
+ "sources": [
7858
+ {
7859
+ "fileName": "projects/indicators/src/testing/tokens/token-harness.ts",
7860
+ "line": 8,
7861
+ "character": 13
7862
+ }
7863
+ ],
7864
+ "extendedTypes": [
7865
+ {
7866
+ "type": "reference",
7867
+ "qualifiedName": "ComponentHarness",
7868
+ "package": "@angular/cdk",
7869
+ "name": "ComponentHarness"
7870
+ }
7871
+ ]
7872
+ },
7873
+ {
7874
+ "id": 644,
7875
+ "name": "SkyTokensHarness",
7876
+ "kind": 128,
7877
+ "kindString": "Class",
7878
+ "flags": {},
7879
+ "comment": {
7880
+ "shortText": "Harness for interacting with a tokens component in tests."
7881
+ },
7882
+ "children": [
7883
+ {
7884
+ "id": 657,
7885
+ "name": "dismissTokens",
7886
+ "kind": 2048,
7887
+ "kindString": "Method",
7888
+ "flags": {
7889
+ "isPublic": true
7890
+ },
7891
+ "sources": [
7892
+ {
7893
+ "fileName": "projects/indicators/src/testing/tokens/tokens-harness.ts",
7894
+ "line": 27,
7895
+ "character": 15
7896
+ }
7897
+ ],
7898
+ "signatures": [
7899
+ {
7900
+ "id": 658,
7901
+ "name": "dismissTokens",
7902
+ "kind": 4096,
7903
+ "kindString": "Call signature",
7904
+ "flags": {},
7905
+ "comment": {
7906
+ "shortText": "Dismisses all tokens, or tokens that meet certain criteria."
7907
+ },
7908
+ "parameters": [
7909
+ {
7910
+ "id": 659,
7911
+ "name": "filters",
7912
+ "kind": 32768,
7913
+ "kindString": "Parameter",
7914
+ "flags": {
7915
+ "isOptional": true
7916
+ },
7917
+ "type": {
7918
+ "type": "reference",
7919
+ "name": "SkyTokenHarnessFilters"
7920
+ }
7921
+ }
7922
+ ],
7923
+ "type": {
7924
+ "type": "reference",
7925
+ "typeArguments": [
7926
+ {
7927
+ "type": "intrinsic",
7928
+ "name": "void"
7929
+ }
7930
+ ],
7931
+ "qualifiedName": "Promise",
7932
+ "package": "typescript",
7933
+ "name": "Promise"
7934
+ }
7935
+ }
7936
+ ]
7937
+ },
7938
+ {
7939
+ "id": 660,
7940
+ "name": "getTokens",
7941
+ "kind": 2048,
7942
+ "kindString": "Method",
7943
+ "flags": {
7944
+ "isPublic": true
7945
+ },
7946
+ "sources": [
7947
+ {
7948
+ "fileName": "projects/indicators/src/testing/tokens/tokens-harness.ts",
7949
+ "line": 37,
7950
+ "character": 15
7951
+ }
7952
+ ],
7953
+ "signatures": [
7954
+ {
7955
+ "id": 661,
7956
+ "name": "getTokens",
7957
+ "kind": 4096,
7958
+ "kindString": "Call signature",
7959
+ "flags": {},
7960
+ "comment": {
7961
+ "shortText": "Returns a list of tokens."
7962
+ },
7963
+ "parameters": [
7964
+ {
7965
+ "id": 662,
7966
+ "name": "filters",
7967
+ "kind": 32768,
7968
+ "kindString": "Parameter",
7969
+ "flags": {
7970
+ "isOptional": true
7971
+ },
7972
+ "type": {
7973
+ "type": "reference",
7974
+ "name": "SkyTokenHarnessFilters"
7975
+ }
7976
+ }
7977
+ ],
7978
+ "type": {
7979
+ "type": "reference",
7980
+ "typeArguments": [
7981
+ {
7982
+ "type": "array",
7983
+ "elementType": {
7984
+ "type": "reference",
7985
+ "id": 597,
7986
+ "name": "SkyTokenHarness"
7987
+ }
7988
+ }
7989
+ ],
7990
+ "qualifiedName": "Promise",
7991
+ "package": "typescript",
7992
+ "name": "Promise"
7993
+ }
7994
+ }
7995
+ ]
7996
+ },
7997
+ {
7998
+ "id": 663,
7999
+ "name": "getTokensText",
8000
+ "kind": 2048,
8001
+ "kindString": "Method",
8002
+ "flags": {
8003
+ "isPublic": true
8004
+ },
8005
+ "sources": [
8006
+ {
8007
+ "fileName": "projects/indicators/src/testing/tokens/tokens-harness.ts",
8008
+ "line": 46,
8009
+ "character": 15
8010
+ }
8011
+ ],
8012
+ "signatures": [
8013
+ {
8014
+ "id": 664,
8015
+ "name": "getTokensText",
8016
+ "kind": 4096,
8017
+ "kindString": "Call signature",
8018
+ "flags": {},
8019
+ "comment": {
8020
+ "shortText": "Returns the text content of all tokens."
8021
+ },
8022
+ "type": {
8023
+ "type": "reference",
8024
+ "typeArguments": [
8025
+ {
8026
+ "type": "array",
8027
+ "elementType": {
8028
+ "type": "intrinsic",
8029
+ "name": "string"
8030
+ }
8031
+ }
8032
+ ],
8033
+ "qualifiedName": "Promise",
8034
+ "package": "typescript",
8035
+ "name": "Promise"
8036
+ }
8037
+ }
8038
+ ]
8039
+ },
8040
+ {
8041
+ "id": 668,
8042
+ "name": "host",
8043
+ "kind": 2048,
8044
+ "kindString": "Method",
8045
+ "flags": {},
8046
+ "sources": [
8047
+ {
8048
+ "fileName": "node_modules/@angular/cdk/testing/component-harness.d.ts",
8049
+ "line": 221,
8050
+ "character": 4
8051
+ }
8052
+ ],
8053
+ "signatures": [
8054
+ {
8055
+ "id": 669,
8056
+ "name": "host",
8057
+ "kind": 4096,
8058
+ "kindString": "Call signature",
8059
+ "flags": {},
8060
+ "comment": {
8061
+ "shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
8062
+ },
8063
+ "type": {
8064
+ "type": "reference",
8065
+ "typeArguments": [
8066
+ {
8067
+ "type": "reference",
8068
+ "qualifiedName": "TestElement",
8069
+ "package": "@angular/cdk",
8070
+ "name": "TestElement"
8071
+ }
8072
+ ],
8073
+ "qualifiedName": "Promise",
8074
+ "package": "typescript",
8075
+ "name": "Promise"
8076
+ },
8077
+ "inheritedFrom": {
8078
+ "type": "reference",
8079
+ "name": "SkyComponentHarness.host"
8080
+ }
8081
+ }
8082
+ ],
8083
+ "inheritedFrom": {
8084
+ "type": "reference",
8085
+ "name": "SkyComponentHarness.host"
8086
+ }
8087
+ },
8088
+ {
8089
+ "id": 646,
8090
+ "name": "with",
8091
+ "kind": 2048,
8092
+ "kindString": "Method",
8093
+ "flags": {
8094
+ "isPublic": true,
8095
+ "isStatic": true
8096
+ },
8097
+ "sources": [
8098
+ {
8099
+ "fileName": "projects/indicators/src/testing/tokens/tokens-harness.ts",
8100
+ "line": 20,
8101
+ "character": 16
8102
+ }
8103
+ ],
8104
+ "signatures": [
8105
+ {
8106
+ "id": 647,
8107
+ "name": "with",
8108
+ "kind": 4096,
8109
+ "kindString": "Call signature",
8110
+ "flags": {},
8111
+ "comment": {
8112
+ "shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyTokensHarness` that meets certain criteria."
8113
+ },
8114
+ "parameters": [
8115
+ {
8116
+ "id": 648,
8117
+ "name": "filters",
8118
+ "kind": 32768,
8119
+ "kindString": "Parameter",
8120
+ "flags": {},
8121
+ "type": {
8122
+ "type": "reference",
8123
+ "name": "SkyTokensHarnessFilters"
8124
+ }
8125
+ }
8126
+ ],
8127
+ "type": {
8128
+ "type": "reference",
8129
+ "typeArguments": [
8130
+ {
8131
+ "type": "reference",
8132
+ "id": 644,
8133
+ "name": "SkyTokensHarness"
8134
+ }
8135
+ ],
8136
+ "qualifiedName": "HarnessPredicate",
8137
+ "package": "@angular/cdk",
8138
+ "name": "HarnessPredicate"
8139
+ }
8140
+ }
8141
+ ]
8142
+ }
8143
+ ],
8144
+ "groups": [
8145
+ {
8146
+ "title": "Constructors",
8147
+ "kind": 512,
8148
+ "children": [
8149
+ 654
8150
+ ]
8151
+ },
8152
+ {
8153
+ "title": "Methods",
8154
+ "kind": 2048,
8155
+ "children": [
8156
+ 657,
8157
+ 660,
8158
+ 663,
8159
+ 668,
8160
+ 646
8161
+ ]
8162
+ }
8163
+ ],
8164
+ "sources": [
8165
+ {
8166
+ "fileName": "projects/indicators/src/testing/tokens/tokens-harness.ts",
8167
+ "line": 10,
8168
+ "character": 13
8169
+ }
8170
+ ],
8171
+ "extendedTypes": [
8172
+ {
8173
+ "type": "reference",
8174
+ "name": "SkyComponentHarness"
8175
+ }
8176
+ ]
8177
+ },
8178
+ {
8179
+ "id": 493,
8180
+ "name": "SkyAlertHarnessFilters",
8181
+ "kind": 256,
8182
+ "kindString": "Interface",
8183
+ "flags": {},
8184
+ "comment": {
8185
+ "shortText": "A set of criteria that can be used to filter a list of SkyAlertHarness instances."
8186
+ },
8187
+ "children": [
8188
+ {
8189
+ "id": 496,
8190
+ "name": "ancestor",
8191
+ "kind": 1024,
8192
+ "kindString": "Property",
8193
+ "flags": {
8194
+ "isOptional": true
8195
+ },
8196
+ "comment": {
8197
+ "shortText": "Only find instances that are nested under an element with the given selector."
8198
+ },
8199
+ "sources": [
8200
+ {
8201
+ "fileName": "node_modules/@angular/cdk/testing/component-harness.d.ts",
8202
+ "line": 351,
8203
+ "character": 4
8204
+ }
8205
+ ],
8206
+ "type": {
8207
+ "type": "intrinsic",
8208
+ "name": "string"
8209
+ },
8210
+ "inheritedFrom": {
8211
+ "type": "reference",
8212
+ "name": "SkyHarnessFilters.ancestor"
8213
+ }
8214
+ },
8215
+ {
8216
+ "id": 494,
8217
+ "name": "dataSkyId",
8218
+ "kind": 1024,
8219
+ "kindString": "Property",
8220
+ "flags": {
8221
+ "isOptional": true
8222
+ },
8223
+ "comment": {
8224
+ "shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
8225
+ },
8226
+ "sources": [
8227
+ {
8228
+ "fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
8229
+ "line": 11,
8230
+ "character": 2
8231
+ }
8232
+ ],
8233
+ "type": {
8234
+ "type": "union",
8235
+ "types": [
8236
+ {
8237
+ "type": "intrinsic",
8238
+ "name": "string"
8239
+ },
8240
+ {
8241
+ "type": "reference",
8242
+ "qualifiedName": "RegExp",
8243
+ "package": "typescript",
8244
+ "name": "RegExp"
8245
+ }
8246
+ ]
8247
+ },
8248
+ "inheritedFrom": {
8249
+ "type": "reference",
8250
+ "name": "SkyHarnessFilters.dataSkyId"
8251
+ }
8252
+ },
8253
+ {
8254
+ "id": 495,
8255
+ "name": "selector",
8256
+ "kind": 1024,
8257
+ "kindString": "Property",
8258
+ "flags": {
8259
+ "isOptional": true
8260
+ },
7479
8261
  "comment": {
7480
8262
  "shortText": "Only find instances whose host element matches the given selector."
7481
8263
  },
@@ -7501,9 +8283,9 @@
7501
8283
  "title": "Properties",
7502
8284
  "kind": 1024,
7503
8285
  "children": [
8286
+ 496,
7504
8287
  494,
7505
- 492,
7506
- 493
8288
+ 495
7507
8289
  ]
7508
8290
  }
7509
8291
  ],
@@ -7522,7 +8304,7 @@
7522
8304
  ]
7523
8305
  },
7524
8306
  {
7525
- "id": 540,
8307
+ "id": 542,
7526
8308
  "name": "SkyKeyInfoHarnessFilters",
7527
8309
  "kind": 256,
7528
8310
  "kindString": "Interface",
@@ -7532,7 +8314,7 @@
7532
8314
  },
7533
8315
  "children": [
7534
8316
  {
7535
- "id": 543,
8317
+ "id": 545,
7536
8318
  "name": "ancestor",
7537
8319
  "kind": 1024,
7538
8320
  "kindString": "Property",
@@ -7559,7 +8341,7 @@
7559
8341
  }
7560
8342
  },
7561
8343
  {
7562
- "id": 541,
8344
+ "id": 543,
7563
8345
  "name": "dataSkyId",
7564
8346
  "kind": 1024,
7565
8347
  "kindString": "Property",
@@ -7597,7 +8379,7 @@
7597
8379
  }
7598
8380
  },
7599
8381
  {
7600
- "id": 542,
8382
+ "id": 544,
7601
8383
  "name": "selector",
7602
8384
  "kind": 1024,
7603
8385
  "kindString": "Property",
@@ -7629,9 +8411,9 @@
7629
8411
  "title": "Properties",
7630
8412
  "kind": 1024,
7631
8413
  "children": [
8414
+ 545,
7632
8415
  543,
7633
- 541,
7634
- 542
8416
+ 544
7635
8417
  ]
7636
8418
  }
7637
8419
  ],
@@ -7650,7 +8432,7 @@
7650
8432
  ]
7651
8433
  },
7652
8434
  {
7653
- "id": 591,
8435
+ "id": 593,
7654
8436
  "name": "SkyLabelHarnessFilters",
7655
8437
  "kind": 256,
7656
8438
  "kindString": "Interface",
@@ -7660,7 +8442,7 @@
7660
8442
  },
7661
8443
  "children": [
7662
8444
  {
7663
- "id": 594,
8445
+ "id": 596,
7664
8446
  "name": "ancestor",
7665
8447
  "kind": 1024,
7666
8448
  "kindString": "Property",
@@ -7687,7 +8469,7 @@
7687
8469
  }
7688
8470
  },
7689
8471
  {
7690
- "id": 592,
8472
+ "id": 594,
7691
8473
  "name": "dataSkyId",
7692
8474
  "kind": 1024,
7693
8475
  "kindString": "Property",
@@ -7725,7 +8507,7 @@
7725
8507
  }
7726
8508
  },
7727
8509
  {
7728
- "id": 593,
8510
+ "id": 595,
7729
8511
  "name": "selector",
7730
8512
  "kind": 1024,
7731
8513
  "kindString": "Property",
@@ -7757,9 +8539,9 @@
7757
8539
  "title": "Properties",
7758
8540
  "kind": 1024,
7759
8541
  "children": [
8542
+ 596,
7760
8543
  594,
7761
- 592,
7762
- 593
8544
+ 595
7763
8545
  ]
7764
8546
  }
7765
8547
  ],
@@ -7925,30 +8707,50 @@
7925
8707
  "filePath": "/projects/indicators/documentation/code-examples/text-highlight/basic/text-highlight-demo.module.ts",
7926
8708
  "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
8709
  },
8710
+ {
8711
+ "fileName": "tokens-demo-color.ts",
8712
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo-color.ts",
8713
+ "rawContents": "export interface TokensDemoColor {\n name: string;\n}\n"
8714
+ },
7928
8715
  {
7929
8716
  "fileName": "tokens-demo.component.html",
7930
8717
  "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.component.html",
7931
- "rawContents": "<sky-tokens [(tokens)]=\"colors\"> </sky-tokens>\n"
8718
+ "rawContents": "<sky-tokens [(tokens)]=\"colors\" data-sky-id=\"color-tokens\"></sky-tokens>\n"
8719
+ },
8720
+ {
8721
+ "fileName": "tokens-demo.component.spec.ts",
8722
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.component.spec.ts",
8723
+ "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
8724
  },
7933
8725
  {
7934
8726
  "fileName": "tokens-demo.component.ts",
7935
8727
  "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"
8728
+ "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
8729
  },
7938
8730
  {
7939
8731
  "fileName": "tokens-demo.module.ts",
7940
8732
  "filePath": "/projects/indicators/documentation/code-examples/tokens/basic/tokens-demo.module.ts",
7941
8733
  "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
8734
  },
8735
+ {
8736
+ "fileName": "tokens-demo-item.ts",
8737
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/custom/tokens-demo-item.ts",
8738
+ "rawContents": "export interface TokensDemoItem {\n label: string;\n}\n"
8739
+ },
7943
8740
  {
7944
8741
  "fileName": "tokens-demo.component.html",
7945
8742
  "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"
8743
+ "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"
8744
+ },
8745
+ {
8746
+ "fileName": "tokens-demo.component.spec.ts",
8747
+ "filePath": "/projects/indicators/documentation/code-examples/tokens/custom/tokens-demo.component.spec.ts",
8748
+ "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
8749
  },
7948
8750
  {
7949
8751
  "fileName": "tokens-demo.component.ts",
7950
8752
  "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"
8753
+ "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
8754
  },
7953
8755
  {
7954
8756
  "fileName": "tokens-demo.module.ts",