@skyux/lookup 5.5.0-beta.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/bundles/skyux-lookup.umd.js +837 -854
  2. package/documentation.json +195 -189
  3. package/esm2015/lib/modules/autocomplete/autocomplete-adapter.service.js +0 -1
  4. package/esm2015/lib/modules/autocomplete/autocomplete-adapter.service.js.map +1 -1
  5. package/esm2015/lib/modules/autocomplete/autocomplete-default-search-function.js.map +1 -1
  6. package/esm2015/lib/modules/autocomplete/autocomplete-input.directive.js +2 -2
  7. package/esm2015/lib/modules/autocomplete/autocomplete-input.directive.js.map +1 -1
  8. package/esm2015/lib/modules/autocomplete/autocomplete-search-async-disabled.pipe.js.map +1 -1
  9. package/esm2015/lib/modules/autocomplete/autocomplete.component.js +11 -5
  10. package/esm2015/lib/modules/autocomplete/autocomplete.component.js.map +1 -1
  11. package/esm2015/lib/modules/autocomplete/autocomplete.module.js +1 -1
  12. package/esm2015/lib/modules/autocomplete/autocomplete.module.js.map +1 -1
  13. package/esm2015/lib/modules/autocomplete/types/autocomplete-search-async-args.js.map +1 -1
  14. package/esm2015/lib/modules/autocomplete/types/autocomplete-search-async-function.js.map +1 -1
  15. package/esm2015/lib/modules/country-field/country-field.component.js +7 -7
  16. package/esm2015/lib/modules/country-field/country-field.component.js.map +1 -1
  17. package/esm2015/lib/modules/country-field/country-field.module.js +1 -1
  18. package/esm2015/lib/modules/country-field/country-field.module.js.map +1 -1
  19. package/esm2015/lib/modules/lookup/lookup-autocomplete-adapter.js +7 -1
  20. package/esm2015/lib/modules/lookup/lookup-autocomplete-adapter.js.map +1 -1
  21. package/esm2015/lib/modules/lookup/lookup-show-more-async-modal.component.js.map +1 -1
  22. package/esm2015/lib/modules/lookup/lookup-show-more-modal.component.js +6 -6
  23. package/esm2015/lib/modules/lookup/lookup-show-more-modal.component.js.map +1 -1
  24. package/esm2015/lib/modules/lookup/lookup.component.js +11 -10
  25. package/esm2015/lib/modules/lookup/lookup.component.js.map +1 -1
  26. package/esm2015/lib/modules/lookup/lookup.module.js +4 -4
  27. package/esm2015/lib/modules/lookup/lookup.module.js.map +1 -1
  28. package/esm2015/lib/modules/lookup/types/lookup-show-more-config.js.map +1 -1
  29. package/esm2015/lib/modules/lookup/types/lookup-show-more-native-picker-async-context.js.map +1 -1
  30. package/esm2015/lib/modules/lookup/types/lookup-show-more-native-picker-context.js.map +1 -1
  31. package/esm2015/lib/modules/search/search-adapter.service.js +3 -3
  32. package/esm2015/lib/modules/search/search-adapter.service.js.map +1 -1
  33. package/esm2015/lib/modules/search/search.component.js +2 -2
  34. package/esm2015/lib/modules/search/search.component.js.map +1 -1
  35. package/esm2015/lib/modules/search/search.module.js +1 -1
  36. package/esm2015/lib/modules/search/search.module.js.map +1 -1
  37. package/esm2015/lib/modules/shared/sky-lookup-resources.module.js +1 -1
  38. package/esm2015/lib/modules/shared/sky-lookup-resources.module.js.map +1 -1
  39. package/esm2015/testing/country-field/country-field-fixture.js.map +1 -1
  40. package/esm2015/testing/country-field/country-field-testing.module.js.map +1 -1
  41. package/esm2015/testing/search/search-fixture.js.map +1 -1
  42. package/esm2015/testing/search/search-testing.module.js.map +1 -1
  43. package/fesm2015/skyux-lookup-testing.js.map +1 -1
  44. package/fesm2015/skyux-lookup.js +456 -473
  45. package/fesm2015/skyux-lookup.js.map +1 -1
  46. package/lib/modules/autocomplete/autocomplete-adapter.service.d.ts +0 -1
  47. package/lib/modules/autocomplete/autocomplete-default-search-function.d.ts +1 -1
  48. package/lib/modules/autocomplete/autocomplete.component.d.ts +10 -4
  49. package/lib/modules/autocomplete/types/autocomplete-search-async-args.d.ts +1 -1
  50. package/lib/modules/country-field/country-field.component.d.ts +2 -2
  51. package/lib/modules/lookup/lookup-autocomplete-adapter.d.ts +7 -1
  52. package/lib/modules/lookup/lookup.component.d.ts +3 -3
  53. package/lib/modules/search/search.component.d.ts +1 -1
  54. package/package.json +21 -18
  55. package/esm2015/lib/polyfills.js +0 -30
  56. package/esm2015/lib/polyfills.js.map +0 -1
  57. package/lib/polyfills.d.ts +0 -0
@@ -88,7 +88,7 @@
88
88
  "sources": [
89
89
  {
90
90
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.module.ts",
91
- "line": 50,
91
+ "line": 44,
92
92
  "character": 13
93
93
  }
94
94
  ]
@@ -148,7 +148,7 @@
148
148
  "sources": [
149
149
  {
150
150
  "fileName": "projects/lookup/src/modules/country-field/country-field.module.ts",
151
- "line": 33,
151
+ "line": 27,
152
152
  "character": 13
153
153
  }
154
154
  ]
@@ -208,7 +208,7 @@
208
208
  "sources": [
209
209
  {
210
210
  "fileName": "projects/lookup/src/modules/lookup/lookup.module.ts",
211
- "line": 56,
211
+ "line": 57,
212
212
  "character": 13
213
213
  }
214
214
  ]
@@ -373,7 +373,7 @@
373
373
  "sources": [
374
374
  {
375
375
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
376
- "line": 134,
376
+ "line": 131,
377
377
  "character": 2
378
378
  }
379
379
  ],
@@ -459,7 +459,7 @@
459
459
  "sources": [
460
460
  {
461
461
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
462
- "line": 126,
462
+ "line": 123,
463
463
  "character": 9
464
464
  }
465
465
  ],
@@ -481,7 +481,7 @@
481
481
  "sources": [
482
482
  {
483
483
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
484
- "line": 130,
484
+ "line": 127,
485
485
  "character": 9
486
486
  }
487
487
  ],
@@ -523,7 +523,7 @@
523
523
  "sources": [
524
524
  {
525
525
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
526
- "line": 104,
526
+ "line": 101,
527
527
  "character": 9
528
528
  }
529
529
  ],
@@ -565,7 +565,7 @@
565
565
  "sources": [
566
566
  {
567
567
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
568
- "line": 111,
568
+ "line": 108,
569
569
  "character": 9
570
570
  }
571
571
  ],
@@ -586,7 +586,7 @@
586
586
  "sources": [
587
587
  {
588
588
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
589
- "line": 129,
589
+ "line": 126,
590
590
  "character": 9
591
591
  }
592
592
  ],
@@ -628,7 +628,7 @@
628
628
  "sources": [
629
629
  {
630
630
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
631
- "line": 97,
631
+ "line": 94,
632
632
  "character": 9
633
633
  }
634
634
  ],
@@ -649,7 +649,7 @@
649
649
  "sources": [
650
650
  {
651
651
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
652
- "line": 125,
652
+ "line": 122,
653
653
  "character": 9
654
654
  }
655
655
  ],
@@ -670,7 +670,7 @@
670
670
  "sources": [
671
671
  {
672
672
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
673
- "line": 115,
673
+ "line": 112,
674
674
  "character": 9
675
675
  }
676
676
  ],
@@ -691,7 +691,7 @@
691
691
  "sources": [
692
692
  {
693
693
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
694
- "line": 113,
694
+ "line": 110,
695
695
  "character": 9
696
696
  }
697
697
  ],
@@ -712,7 +712,7 @@
712
712
  "sources": [
713
713
  {
714
714
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
715
- "line": 128,
715
+ "line": 125,
716
716
  "character": 9
717
717
  }
718
718
  ],
@@ -754,7 +754,7 @@
754
754
  "sources": [
755
755
  {
756
756
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
757
- "line": 123,
757
+ "line": 120,
758
758
  "character": 9
759
759
  }
760
760
  ],
@@ -789,7 +789,7 @@
789
789
  "sources": [
790
790
  {
791
791
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
792
- "line": 69,
792
+ "line": 66,
793
793
  "character": 9
794
794
  }
795
795
  ],
@@ -818,7 +818,7 @@
818
818
  "sources": [
819
819
  {
820
820
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
821
- "line": 127,
821
+ "line": 124,
822
822
  "character": 9
823
823
  }
824
824
  ],
@@ -854,7 +854,7 @@
854
854
  "sources": [
855
855
  {
856
856
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
857
- "line": 75,
857
+ "line": 72,
858
858
  "character": 9
859
859
  }
860
860
  ],
@@ -898,7 +898,7 @@
898
898
  "sources": [
899
899
  {
900
900
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
901
- "line": 81,
901
+ "line": 78,
902
902
  "character": 9
903
903
  }
904
904
  ],
@@ -942,7 +942,7 @@
942
942
  "sources": [
943
943
  {
944
944
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
945
- "line": 87,
945
+ "line": 84,
946
946
  "character": 9
947
947
  }
948
948
  ],
@@ -962,7 +962,7 @@
962
962
  "sources": [
963
963
  {
964
964
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
965
- "line": 204,
965
+ "line": 201,
966
966
  "character": 9
967
967
  }
968
968
  ],
@@ -1004,7 +1004,7 @@
1004
1004
  "sources": [
1005
1005
  {
1006
1006
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1007
- "line": 186,
1007
+ "line": 183,
1008
1008
  "character": 9
1009
1009
  }
1010
1010
  ],
@@ -1033,7 +1033,7 @@
1033
1033
  "sources": [
1034
1034
  {
1035
1035
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1036
- "line": 198,
1036
+ "line": 195,
1037
1037
  "character": 9
1038
1038
  }
1039
1039
  ],
@@ -1088,7 +1088,7 @@
1088
1088
  "sources": [
1089
1089
  {
1090
1090
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1091
- "line": 250,
1091
+ "line": 247,
1092
1092
  "character": 9
1093
1093
  }
1094
1094
  ],
@@ -1132,7 +1132,7 @@
1132
1132
  "sources": [
1133
1133
  {
1134
1134
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1135
- "line": 236,
1135
+ "line": 233,
1136
1136
  "character": 9
1137
1137
  }
1138
1138
  ],
@@ -1176,7 +1176,7 @@
1176
1176
  "sources": [
1177
1177
  {
1178
1178
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1179
- "line": 159,
1179
+ "line": 156,
1180
1180
  "character": 9
1181
1181
  }
1182
1182
  ],
@@ -1228,7 +1228,7 @@
1228
1228
  "sources": [
1229
1229
  {
1230
1230
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1231
- "line": 268,
1231
+ "line": 265,
1232
1232
  "character": 9
1233
1233
  }
1234
1234
  ],
@@ -1265,7 +1265,7 @@
1265
1265
  "sources": [
1266
1266
  {
1267
1267
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1268
- "line": 141,
1268
+ "line": 138,
1269
1269
  "character": 9
1270
1270
  }
1271
1271
  ],
@@ -1302,7 +1302,7 @@
1302
1302
  "sources": [
1303
1303
  {
1304
1304
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1305
- "line": 221,
1305
+ "line": 218,
1306
1306
  "character": 9
1307
1307
  }
1308
1308
  ],
@@ -1344,7 +1344,7 @@
1344
1344
  "sources": [
1345
1345
  {
1346
1346
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1347
- "line": 226,
1347
+ "line": 223,
1348
1348
  "character": 9
1349
1349
  }
1350
1350
  ],
@@ -1426,7 +1426,7 @@
1426
1426
  "sources": [
1427
1427
  {
1428
1428
  "fileName": "projects/lookup/src/modules/search/search.component.ts",
1429
- "line": 64,
1429
+ "line": 61,
1430
1430
  "character": 13
1431
1431
  }
1432
1432
  ],
@@ -1506,7 +1506,7 @@
1506
1506
  "sources": [
1507
1507
  {
1508
1508
  "fileName": "projects/lookup/src/modules/search/search.module.ts",
1509
- "line": 32,
1509
+ "line": 26,
1510
1510
  "character": 13
1511
1511
  }
1512
1512
  ]
@@ -1541,7 +1541,7 @@
1541
1541
  "sources": [
1542
1542
  {
1543
1543
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1544
- "line": 165,
1544
+ "line": 163,
1545
1545
  "character": 2
1546
1546
  }
1547
1547
  ],
@@ -1617,7 +1617,7 @@
1617
1617
  "sources": [
1618
1618
  {
1619
1619
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1620
- "line": 52,
1620
+ "line": 50,
1621
1621
  "character": 13
1622
1622
  }
1623
1623
  ],
@@ -1690,7 +1690,7 @@
1690
1690
  "sources": [
1691
1691
  {
1692
1692
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1693
- "line": 84,
1693
+ "line": 82,
1694
1694
  "character": 13
1695
1695
  }
1696
1696
  ],
@@ -1739,7 +1739,7 @@
1739
1739
  "sources": [
1740
1740
  {
1741
1741
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1742
- "line": 75,
1742
+ "line": 73,
1743
1743
  "character": 13
1744
1744
  }
1745
1745
  ],
@@ -1812,7 +1812,7 @@
1812
1812
  "sources": [
1813
1813
  {
1814
1814
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1815
- "line": 88,
1815
+ "line": 86,
1816
1816
  "character": 13
1817
1817
  }
1818
1818
  ],
@@ -1867,7 +1867,7 @@
1867
1867
  "sources": [
1868
1868
  {
1869
1869
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1870
- "line": 104,
1870
+ "line": 102,
1871
1871
  "character": 13
1872
1872
  }
1873
1873
  ],
@@ -1904,7 +1904,7 @@
1904
1904
  "sources": [
1905
1905
  {
1906
1906
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1907
- "line": 108,
1907
+ "line": 106,
1908
1908
  "character": 13
1909
1909
  }
1910
1910
  ],
@@ -1959,7 +1959,7 @@
1959
1959
  "sources": [
1960
1960
  {
1961
1961
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1962
- "line": 116,
1962
+ "line": 114,
1963
1963
  "character": 13
1964
1964
  }
1965
1965
  ],
@@ -1996,7 +1996,7 @@
1996
1996
  "sources": [
1997
1997
  {
1998
1998
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
1999
- "line": 120,
1999
+ "line": 118,
2000
2000
  "character": 13
2001
2001
  }
2002
2002
  ],
@@ -2051,7 +2051,7 @@
2051
2051
  "sources": [
2052
2052
  {
2053
2053
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2054
- "line": 212,
2054
+ "line": 210,
2055
2055
  "character": 9
2056
2056
  }
2057
2057
  ],
@@ -2088,7 +2088,7 @@
2088
2088
  "sources": [
2089
2089
  {
2090
2090
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2091
- "line": 167,
2091
+ "line": 165,
2092
2092
  "character": 9
2093
2093
  }
2094
2094
  ],
@@ -2125,7 +2125,7 @@
2125
2125
  "sources": [
2126
2126
  {
2127
2127
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2128
- "line": 279,
2128
+ "line": 277,
2129
2129
  "character": 9
2130
2130
  }
2131
2131
  ],
@@ -2167,7 +2167,7 @@
2167
2167
  "sources": [
2168
2168
  {
2169
2169
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2170
- "line": 281,
2170
+ "line": 279,
2171
2171
  "character": 9
2172
2172
  }
2173
2173
  ],
@@ -2196,7 +2196,7 @@
2196
2196
  "sources": [
2197
2197
  {
2198
2198
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2199
- "line": 283,
2199
+ "line": 281,
2200
2200
  "character": 9
2201
2201
  }
2202
2202
  ],
@@ -2225,7 +2225,7 @@
2225
2225
  "sources": [
2226
2226
  {
2227
2227
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2228
- "line": 226,
2228
+ "line": 224,
2229
2229
  "character": 9
2230
2230
  }
2231
2231
  ],
@@ -2307,7 +2307,7 @@
2307
2307
  "sources": [
2308
2308
  {
2309
2309
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2310
- "line": 230,
2310
+ "line": 228,
2311
2311
  "character": 9
2312
2312
  }
2313
2313
  ],
@@ -2376,7 +2376,7 @@
2376
2376
  "sources": [
2377
2377
  {
2378
2378
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2379
- "line": 234,
2379
+ "line": 232,
2380
2380
  "character": 9
2381
2381
  }
2382
2382
  ],
@@ -2445,7 +2445,7 @@
2445
2445
  "sources": [
2446
2446
  {
2447
2447
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2448
- "line": 238,
2448
+ "line": 236,
2449
2449
  "character": 9
2450
2450
  }
2451
2451
  ],
@@ -2474,7 +2474,7 @@
2474
2474
  "sources": [
2475
2475
  {
2476
2476
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2477
- "line": 262,
2477
+ "line": 260,
2478
2478
  "character": 9
2479
2479
  }
2480
2480
  ],
@@ -2516,7 +2516,7 @@
2516
2516
  "sources": [
2517
2517
  {
2518
2518
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2519
- "line": 250,
2519
+ "line": 248,
2520
2520
  "character": 9
2521
2521
  }
2522
2522
  ],
@@ -2566,7 +2566,7 @@
2566
2566
  "sources": [
2567
2567
  {
2568
2568
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2569
- "line": 254,
2569
+ "line": 252,
2570
2570
  "character": 9
2571
2571
  }
2572
2572
  ],
@@ -2620,7 +2620,7 @@
2620
2620
  "sources": [
2621
2621
  {
2622
2622
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2623
- "line": 222,
2623
+ "line": 220,
2624
2624
  "character": 9
2625
2625
  }
2626
2626
  ],
@@ -2705,7 +2705,7 @@
2705
2705
  "sources": [
2706
2706
  {
2707
2707
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
2708
- "line": 44,
2708
+ "line": 42,
2709
2709
  "character": 13
2710
2710
  }
2711
2711
  ],
@@ -2766,7 +2766,7 @@
2766
2766
  "sources": [
2767
2767
  {
2768
2768
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
2769
- "line": 438,
2769
+ "line": 442,
2770
2770
  "character": 2
2771
2771
  }
2772
2772
  ],
@@ -2903,7 +2903,7 @@
2903
2903
  "sources": [
2904
2904
  {
2905
2905
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
2906
- "line": 80,
2906
+ "line": 78,
2907
2907
  "character": 9
2908
2908
  }
2909
2909
  ],
@@ -2923,7 +2923,7 @@
2923
2923
  "sources": [
2924
2924
  {
2925
2925
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
2926
- "line": 302,
2926
+ "line": 306,
2927
2927
  "character": 9
2928
2928
  }
2929
2929
  ],
@@ -2944,7 +2944,7 @@
2944
2944
  "sources": [
2945
2945
  {
2946
2946
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
2947
- "line": 314,
2947
+ "line": 318,
2948
2948
  "character": 9
2949
2949
  }
2950
2950
  ],
@@ -3006,7 +3006,7 @@
3006
3006
  "sources": [
3007
3007
  {
3008
3008
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3009
- "line": 304,
3009
+ "line": 308,
3010
3010
  "character": 9
3011
3011
  }
3012
3012
  ],
@@ -3026,7 +3026,7 @@
3026
3026
  "sources": [
3027
3027
  {
3028
3028
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3029
- "line": 306,
3029
+ "line": 310,
3030
3030
  "character": 9
3031
3031
  }
3032
3032
  ],
@@ -3043,6 +3043,9 @@
3043
3043
  "flags": {
3044
3044
  "isPublic": true
3045
3045
  },
3046
+ "comment": {
3047
+ "shortText": "Fires when users enter new search information and allows results to be\nreturned via an observable."
3048
+ },
3046
3049
  "decorators": [
3047
3050
  {
3048
3051
  "name": "Output",
@@ -3058,7 +3061,7 @@
3058
3061
  "sources": [
3059
3062
  {
3060
3063
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3061
- "line": 288,
3064
+ "line": 292,
3062
3065
  "character": 9
3063
3066
  }
3064
3067
  ],
@@ -3127,7 +3130,7 @@
3127
3130
  "sources": [
3128
3131
  {
3129
3132
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3130
- "line": 316,
3133
+ "line": 320,
3131
3134
  "character": 9
3132
3135
  }
3133
3136
  ],
@@ -3147,7 +3150,7 @@
3147
3150
  "sources": [
3148
3151
  {
3149
3152
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3150
- "line": 308,
3153
+ "line": 312,
3151
3154
  "character": 9
3152
3155
  }
3153
3156
  ],
@@ -3179,7 +3182,7 @@
3179
3182
  "sources": [
3180
3183
  {
3181
3184
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3182
- "line": 88,
3185
+ "line": 86,
3183
3186
  "character": 13
3184
3187
  }
3185
3188
  ],
@@ -3191,7 +3194,7 @@
3191
3194
  "kindString": "Get signature",
3192
3195
  "flags": {},
3193
3196
  "comment": {
3194
- "shortText": "Specifies a static data source for the autocomplete component to search\nwhen users enter text. For a dynamic data source such as an array that\nchanges due to server calls, use the `search` property instead."
3197
+ "shortText": "Specifies a static data source for the autocomplete component to search\nwhen users enter text. For a dynamic data source such as an array that\nchanges due to server calls, use `search` or `searchAsync` instead."
3195
3198
  },
3196
3199
  "type": {
3197
3200
  "type": "array",
@@ -3210,7 +3213,7 @@
3210
3213
  "kindString": "Set signature",
3211
3214
  "flags": {},
3212
3215
  "comment": {
3213
- "shortText": "Specifies a static data source for the autocomplete component to search\nwhen users enter text. For a dynamic data source such as an array that\nchanges due to server calls, use the `search` property instead."
3216
+ "shortText": "Specifies a static data source for the autocomplete component to search\nwhen users enter text. For a dynamic data source such as an array that\nchanges due to server calls, use `search` or `searchAsync` instead."
3214
3217
  },
3215
3218
  "parameters": [
3216
3219
  {
@@ -3258,7 +3261,7 @@
3258
3261
  "sources": [
3259
3262
  {
3260
3263
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3261
- "line": 102,
3264
+ "line": 100,
3262
3265
  "character": 13
3263
3266
  }
3264
3267
  ],
@@ -3343,7 +3346,7 @@
3343
3346
  "sources": [
3344
3347
  {
3345
3348
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3346
- "line": 116,
3349
+ "line": 114,
3347
3350
  "character": 13
3348
3351
  }
3349
3352
  ],
@@ -3416,7 +3419,7 @@
3416
3419
  "sources": [
3417
3420
  {
3418
3421
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3419
- "line": 298,
3422
+ "line": 302,
3420
3423
  "character": 13
3421
3424
  }
3422
3425
  ],
@@ -3460,7 +3463,7 @@
3460
3463
  "sources": [
3461
3464
  {
3462
3465
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3463
- "line": 156,
3466
+ "line": 154,
3464
3467
  "character": 13
3465
3468
  }
3466
3469
  ],
@@ -3563,7 +3566,7 @@
3563
3566
  "kindString": "Get signature",
3564
3567
  "flags": {},
3565
3568
  "comment": {
3566
- "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the autocomplete field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code."
3569
+ "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the autocomplete field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code. If the\nsearch requires calling a remote data source, use `searchAsync` instead of\n`search`."
3567
3570
  },
3568
3571
  "type": {
3569
3572
  "type": "reference",
@@ -3580,7 +3583,7 @@
3580
3583
  "kindString": "Set signature",
3581
3584
  "flags": {},
3582
3585
  "comment": {
3583
- "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the autocomplete field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code."
3586
+ "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the autocomplete field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code. If the\nsearch requires calling a remote data source, use `searchAsync` instead of\n`search`."
3584
3587
  },
3585
3588
  "parameters": [
3586
3589
  {
@@ -3703,7 +3706,7 @@
3703
3706
  "sources": [
3704
3707
  {
3705
3708
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3706
- "line": 294,
3709
+ "line": 298,
3707
3710
  "character": 13
3708
3711
  }
3709
3712
  ],
@@ -3946,7 +3949,7 @@
3946
3949
  "sources": [
3947
3950
  {
3948
3951
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3949
- "line": 310,
3952
+ "line": 314,
3950
3953
  "character": 13
3951
3954
  }
3952
3955
  ],
@@ -3975,7 +3978,7 @@
3975
3978
  "sources": [
3976
3979
  {
3977
3980
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
3978
- "line": 477,
3981
+ "line": 481,
3979
3982
  "character": 9
3980
3983
  }
3981
3984
  ],
@@ -4004,7 +4007,7 @@
4004
4007
  "sources": [
4005
4008
  {
4006
4009
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4007
- "line": 483,
4010
+ "line": 487,
4008
4011
  "character": 9
4009
4012
  }
4010
4013
  ],
@@ -4048,7 +4051,7 @@
4048
4051
  "sources": [
4049
4052
  {
4050
4053
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4051
- "line": 592,
4054
+ "line": 596,
4052
4055
  "character": 9
4053
4056
  }
4054
4057
  ],
@@ -4092,7 +4095,7 @@
4092
4095
  "sources": [
4093
4096
  {
4094
4097
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4095
- "line": 564,
4098
+ "line": 568,
4096
4099
  "character": 9
4097
4100
  }
4098
4101
  ],
@@ -4121,7 +4124,7 @@
4121
4124
  "sources": [
4122
4125
  {
4123
4126
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4124
- "line": 451,
4127
+ "line": 455,
4125
4128
  "character": 9
4126
4129
  }
4127
4130
  ],
@@ -4158,7 +4161,7 @@
4158
4161
  "sources": [
4159
4162
  {
4160
4163
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4161
- "line": 463,
4164
+ "line": 467,
4162
4165
  "character": 9
4163
4166
  }
4164
4167
  ],
@@ -4195,7 +4198,7 @@
4195
4198
  "sources": [
4196
4199
  {
4197
4200
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4198
- "line": 467,
4201
+ "line": 471,
4199
4202
  "character": 9
4200
4203
  }
4201
4204
  ],
@@ -4232,7 +4235,7 @@
4232
4235
  "sources": [
4233
4236
  {
4234
4237
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4235
- "line": 570,
4238
+ "line": 574,
4236
4239
  "character": 9
4237
4240
  }
4238
4241
  ],
@@ -4287,7 +4290,7 @@
4287
4290
  "sources": [
4288
4291
  {
4289
4292
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4290
- "line": 583,
4293
+ "line": 587,
4291
4294
  "character": 9
4292
4295
  }
4293
4296
  ],
@@ -4380,7 +4383,7 @@
4380
4383
  "sources": [
4381
4384
  {
4382
4385
  "fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
4383
- "line": 69,
4386
+ "line": 67,
4384
4387
  "character": 13
4385
4388
  }
4386
4389
  ],
@@ -4435,7 +4438,7 @@
4435
4438
  "sources": [
4436
4439
  {
4437
4440
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4438
- "line": 268,
4441
+ "line": 261,
4439
4442
  "character": 2
4440
4443
  }
4441
4444
  ],
@@ -4594,7 +4597,7 @@
4594
4597
  "sources": [
4595
4598
  {
4596
4599
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4597
- "line": 74,
4600
+ "line": 67,
4598
4601
  "character": 9
4599
4602
  }
4600
4603
  ],
@@ -4614,7 +4617,7 @@
4614
4617
  "sources": [
4615
4618
  {
4616
4619
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4617
- "line": 167,
4620
+ "line": 160,
4618
4621
  "character": 9
4619
4622
  }
4620
4623
  ],
@@ -4652,7 +4655,7 @@
4652
4655
  "sources": [
4653
4656
  {
4654
4657
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4655
- "line": 176,
4658
+ "line": 169,
4656
4659
  "character": 9
4657
4660
  }
4658
4661
  ],
@@ -4673,7 +4676,7 @@
4673
4676
  "sources": [
4674
4677
  {
4675
4678
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4676
- "line": 169,
4679
+ "line": 162,
4677
4680
  "character": 9
4678
4681
  }
4679
4682
  ],
@@ -4695,7 +4698,7 @@
4695
4698
  "sources": [
4696
4699
  {
4697
4700
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4698
- "line": 230,
4701
+ "line": 223,
4699
4702
  "character": 9
4700
4703
  }
4701
4704
  ],
@@ -4737,7 +4740,7 @@
4737
4740
  "sources": [
4738
4741
  {
4739
4742
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4740
- "line": 125,
4743
+ "line": 118,
4741
4744
  "character": 9
4742
4745
  }
4743
4746
  ],
@@ -4771,7 +4774,7 @@
4771
4774
  "sources": [
4772
4775
  {
4773
4776
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4774
- "line": 232,
4777
+ "line": 225,
4775
4778
  "character": 9
4776
4779
  }
4777
4780
  ],
@@ -4791,7 +4794,7 @@
4791
4794
  "sources": [
4792
4795
  {
4793
4796
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4794
- "line": 171,
4797
+ "line": 164,
4795
4798
  "character": 9
4796
4799
  }
4797
4800
  ],
@@ -4812,7 +4815,7 @@
4812
4815
  "sources": [
4813
4816
  {
4814
4817
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4815
- "line": 373,
4818
+ "line": 366,
4816
4819
  "character": 9
4817
4820
  }
4818
4821
  ],
@@ -4835,7 +4838,7 @@
4835
4838
  "sources": [
4836
4839
  {
4837
4840
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4838
- "line": 376,
4841
+ "line": 369,
4839
4842
  "character": 9
4840
4843
  }
4841
4844
  ],
@@ -4858,7 +4861,7 @@
4858
4861
  "sources": [
4859
4862
  {
4860
4863
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4861
- "line": 173,
4864
+ "line": 166,
4862
4865
  "character": 9
4863
4866
  }
4864
4867
  ],
@@ -4894,7 +4897,7 @@
4894
4897
  "sources": [
4895
4898
  {
4896
4899
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4897
- "line": 165,
4900
+ "line": 158,
4898
4901
  "character": 9
4899
4902
  }
4900
4903
  ],
@@ -4936,7 +4939,7 @@
4936
4939
  "sources": [
4937
4940
  {
4938
4941
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
4939
- "line": 83,
4942
+ "line": 76,
4940
4943
  "character": 13
4941
4944
  }
4942
4945
  ],
@@ -5021,7 +5024,7 @@
5021
5024
  "sources": [
5022
5025
  {
5023
5026
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5024
- "line": 104,
5027
+ "line": 97,
5025
5028
  "character": 13
5026
5029
  }
5027
5030
  ],
@@ -5106,7 +5109,7 @@
5106
5109
  "sources": [
5107
5110
  {
5108
5111
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5109
- "line": 132,
5112
+ "line": 125,
5110
5113
  "character": 13
5111
5114
  }
5112
5115
  ],
@@ -5179,7 +5182,7 @@
5179
5182
  "sources": [
5180
5183
  {
5181
5184
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5182
- "line": 178,
5185
+ "line": 171,
5183
5186
  "character": 13
5184
5187
  }
5185
5188
  ],
@@ -5248,7 +5251,7 @@
5248
5251
  "sources": [
5249
5252
  {
5250
5253
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5251
- "line": 147,
5254
+ "line": 140,
5252
5255
  "character": 13
5253
5256
  }
5254
5257
  ],
@@ -5315,7 +5318,7 @@
5315
5318
  "sources": [
5316
5319
  {
5317
5320
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5318
- "line": 323,
5321
+ "line": 316,
5319
5322
  "character": 9
5320
5323
  }
5321
5324
  ],
@@ -5352,7 +5355,7 @@
5352
5355
  "sources": [
5353
5356
  {
5354
5357
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5355
- "line": 378,
5358
+ "line": 371,
5356
5359
  "character": 9
5357
5360
  }
5358
5361
  ],
@@ -5434,7 +5437,7 @@
5434
5437
  "sources": [
5435
5438
  {
5436
5439
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5437
- "line": 382,
5440
+ "line": 375,
5438
5441
  "character": 9
5439
5442
  }
5440
5443
  ],
@@ -5503,7 +5506,7 @@
5503
5506
  "sources": [
5504
5507
  {
5505
5508
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5506
- "line": 387,
5509
+ "line": 380,
5507
5510
  "character": 9
5508
5511
  }
5509
5512
  ],
@@ -5553,7 +5556,7 @@
5553
5556
  "sources": [
5554
5557
  {
5555
5558
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5556
- "line": 391,
5559
+ "line": 384,
5557
5560
  "character": 9
5558
5561
  }
5559
5562
  ],
@@ -5607,7 +5610,7 @@
5607
5610
  "sources": [
5608
5611
  {
5609
5612
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5610
- "line": 405,
5613
+ "line": 398,
5611
5614
  "character": 9
5612
5615
  }
5613
5616
  ],
@@ -5702,7 +5705,7 @@
5702
5705
  "sources": [
5703
5706
  {
5704
5707
  "fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
5705
- "line": 66,
5708
+ "line": 59,
5706
5709
  "character": 13
5707
5710
  }
5708
5711
  ],
@@ -5769,7 +5772,7 @@
5769
5772
  "sources": [
5770
5773
  {
5771
5774
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
5772
- "line": 273,
5775
+ "line": 272,
5773
5776
  "character": 2
5774
5777
  }
5775
5778
  ],
@@ -5985,7 +5988,7 @@
5985
5988
  "sources": [
5986
5989
  {
5987
5990
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
5988
- "line": 181,
5991
+ "line": 180,
5989
5992
  "character": 9
5990
5993
  }
5991
5994
  ],
@@ -6030,7 +6033,7 @@
6030
6033
  "sources": [
6031
6034
  {
6032
6035
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6033
- "line": 70,
6036
+ "line": 69,
6034
6037
  "character": 9
6035
6038
  }
6036
6039
  ],
@@ -6065,7 +6068,7 @@
6065
6068
  "sources": [
6066
6069
  {
6067
6070
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6068
- "line": 79,
6071
+ "line": 78,
6069
6072
  "character": 9
6070
6073
  }
6071
6074
  ],
@@ -6106,7 +6109,7 @@
6106
6109
  "sources": [
6107
6110
  {
6108
6111
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6109
- "line": 86,
6112
+ "line": 85,
6110
6113
  "character": 9
6111
6114
  }
6112
6115
  ],
@@ -6126,7 +6129,7 @@
6126
6129
  "sources": [
6127
6130
  {
6128
6131
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6129
- "line": 222,
6132
+ "line": 221,
6130
6133
  "character": 9
6131
6134
  }
6132
6135
  ],
@@ -6176,7 +6179,7 @@
6176
6179
  "sources": [
6177
6180
  {
6178
6181
  "fileName": "projects/lookup/src/modules/lookup/lookup-autocomplete-adapter.ts",
6179
- "line": 27,
6182
+ "line": 25,
6180
6183
  "character": 9
6181
6184
  }
6182
6185
  ],
@@ -6215,7 +6218,7 @@
6215
6218
  "sources": [
6216
6219
  {
6217
6220
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6218
- "line": 111,
6221
+ "line": 110,
6219
6222
  "character": 9
6220
6223
  }
6221
6224
  ],
@@ -6251,7 +6254,7 @@
6251
6254
  "sources": [
6252
6255
  {
6253
6256
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6254
- "line": 117,
6257
+ "line": 116,
6255
6258
  "character": 9
6256
6259
  }
6257
6260
  ],
@@ -6287,7 +6290,7 @@
6287
6290
  "sources": [
6288
6291
  {
6289
6292
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6290
- "line": 130,
6293
+ "line": 129,
6291
6294
  "character": 9
6292
6295
  }
6293
6296
  ],
@@ -6321,7 +6324,7 @@
6321
6324
  "sources": [
6322
6325
  {
6323
6326
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6324
- "line": 223,
6327
+ "line": 222,
6325
6328
  "character": 9
6326
6329
  }
6327
6330
  ],
@@ -6357,7 +6360,7 @@
6357
6360
  "sources": [
6358
6361
  {
6359
6362
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6360
- "line": 123,
6363
+ "line": 122,
6361
6364
  "character": 9
6362
6365
  }
6363
6366
  ],
@@ -6374,6 +6377,9 @@
6374
6377
  "flags": {
6375
6378
  "isPublic": true
6376
6379
  },
6380
+ "comment": {
6381
+ "shortText": "Fires when users enter new search information and allows results to be\nreturned via an observable."
6382
+ },
6377
6383
  "decorators": [
6378
6384
  {
6379
6385
  "name": "Output",
@@ -6389,7 +6395,7 @@
6389
6395
  "sources": [
6390
6396
  {
6391
6397
  "fileName": "projects/lookup/src/modules/lookup/lookup-autocomplete-adapter.ts",
6392
- "line": 112,
6398
+ "line": 116,
6393
6399
  "character": 9
6394
6400
  }
6395
6401
  ],
@@ -6612,7 +6618,7 @@
6612
6618
  "sources": [
6613
6619
  {
6614
6620
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6615
- "line": 136,
6621
+ "line": 135,
6616
6622
  "character": 9
6617
6623
  }
6618
6624
  ],
@@ -6648,7 +6654,7 @@
6648
6654
  "sources": [
6649
6655
  {
6650
6656
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6651
- "line": 142,
6657
+ "line": 141,
6652
6658
  "character": 9
6653
6659
  }
6654
6660
  ],
@@ -6683,7 +6689,7 @@
6683
6689
  "sources": [
6684
6690
  {
6685
6691
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6686
- "line": 224,
6692
+ "line": 223,
6687
6693
  "character": 9
6688
6694
  }
6689
6695
  ],
@@ -6724,7 +6730,7 @@
6724
6730
  "sources": [
6725
6731
  {
6726
6732
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
6727
- "line": 95,
6733
+ "line": 94,
6728
6734
  "character": 13
6729
6735
  }
6730
6736
  ],
@@ -6815,7 +6821,7 @@
6815
6821
  "sources": [
6816
6822
  {
6817
6823
  "fileName": "projects/lookup/src/modules/lookup/lookup-autocomplete-adapter.ts",
6818
- "line": 35,
6824
+ "line": 33,
6819
6825
  "character": 13
6820
6826
  }
6821
6827
  ],
@@ -6912,7 +6918,7 @@
6912
6918
  "sources": [
6913
6919
  {
6914
6920
  "fileName": "projects/lookup/src/modules/lookup/lookup-autocomplete-adapter.ts",
6915
- "line": 48,
6921
+ "line": 46,
6916
6922
  "character": 13
6917
6923
  }
6918
6924
  ],
@@ -7027,7 +7033,7 @@
7027
7033
  "kindString": "Get signature",
7028
7034
  "flags": {},
7029
7035
  "comment": {
7030
- "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the lookup field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code."
7036
+ "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the lookup field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code. If the\nsearch requires calling a remote data source, use `searchAsync` instead of\n`search`."
7031
7037
  },
7032
7038
  "type": {
7033
7039
  "type": "reference",
@@ -7048,7 +7054,7 @@
7048
7054
  "kindString": "Set signature",
7049
7055
  "flags": {},
7050
7056
  "comment": {
7051
- "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the lookup field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code."
7057
+ "shortText": "Specifies a function to dynamically manage the data source when users\nchange the text in the lookup field. The search function must return\nan array or a promise of an array. The `search` property is particularly\nuseful when the data source does not live in the source code. If the\nsearch requires calling a remote data source, use `searchAsync` instead of\n`search`."
7052
7058
  },
7053
7059
  "parameters": [
7054
7060
  {
@@ -7102,7 +7108,7 @@
7102
7108
  "sources": [
7103
7109
  {
7104
7110
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7105
- "line": 149,
7111
+ "line": 148,
7106
7112
  "character": 13
7107
7113
  }
7108
7114
  ],
@@ -7177,7 +7183,7 @@
7177
7183
  "sources": [
7178
7184
  {
7179
7185
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7180
- "line": 183,
7186
+ "line": 182,
7181
7187
  "character": 13
7182
7188
  }
7183
7189
  ],
@@ -7238,7 +7244,7 @@
7238
7244
  "sources": [
7239
7245
  {
7240
7246
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7241
- "line": 207,
7247
+ "line": 206,
7242
7248
  "character": 13
7243
7249
  }
7244
7250
  ],
@@ -7299,7 +7305,7 @@
7299
7305
  "sources": [
7300
7306
  {
7301
7307
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7302
- "line": 326,
7308
+ "line": 325,
7303
7309
  "character": 9
7304
7310
  }
7305
7311
  ],
@@ -7328,7 +7334,7 @@
7328
7334
  "sources": [
7329
7335
  {
7330
7336
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7331
- "line": 433,
7337
+ "line": 432,
7332
7338
  "character": 9
7333
7339
  }
7334
7340
  ],
@@ -7357,7 +7363,7 @@
7357
7363
  "sources": [
7358
7364
  {
7359
7365
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7360
- "line": 442,
7366
+ "line": 441,
7361
7367
  "character": 9
7362
7368
  }
7363
7369
  ],
@@ -7412,7 +7418,7 @@
7412
7418
  "sources": [
7413
7419
  {
7414
7420
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7415
- "line": 464,
7421
+ "line": 463,
7416
7422
  "character": 9
7417
7423
  }
7418
7424
  ],
@@ -7456,7 +7462,7 @@
7456
7462
  "sources": [
7457
7463
  {
7458
7464
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7459
- "line": 313,
7465
+ "line": 312,
7460
7466
  "character": 9
7461
7467
  }
7462
7468
  ],
@@ -7493,7 +7499,7 @@
7493
7499
  "sources": [
7494
7500
  {
7495
7501
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7496
- "line": 319,
7502
+ "line": 318,
7497
7503
  "character": 9
7498
7504
  }
7499
7505
  ],
@@ -7530,7 +7536,7 @@
7530
7536
  "sources": [
7531
7537
  {
7532
7538
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7533
- "line": 288,
7539
+ "line": 287,
7534
7540
  "character": 9
7535
7541
  }
7536
7542
  ],
@@ -7567,7 +7573,7 @@
7567
7573
  "sources": [
7568
7574
  {
7569
7575
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7570
- "line": 344,
7576
+ "line": 343,
7571
7577
  "character": 9
7572
7578
  }
7573
7579
  ],
@@ -7596,7 +7602,7 @@
7596
7602
  "sources": [
7597
7603
  {
7598
7604
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7599
- "line": 333,
7605
+ "line": 332,
7600
7606
  "character": 9
7601
7607
  }
7602
7608
  ],
@@ -7639,7 +7645,7 @@
7639
7645
  "sources": [
7640
7646
  {
7641
7647
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7642
- "line": 409,
7648
+ "line": 408,
7643
7649
  "character": 9
7644
7650
  }
7645
7651
  ],
@@ -7684,7 +7690,7 @@
7684
7690
  "sources": [
7685
7691
  {
7686
7692
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7687
- "line": 620,
7693
+ "line": 619,
7688
7694
  "character": 9
7689
7695
  }
7690
7696
  ],
@@ -7727,7 +7733,7 @@
7727
7733
  "sources": [
7728
7734
  {
7729
7735
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7730
- "line": 490,
7736
+ "line": 489,
7731
7737
  "character": 9
7732
7738
  }
7733
7739
  ],
@@ -7756,7 +7762,7 @@
7756
7762
  "sources": [
7757
7763
  {
7758
7764
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7759
- "line": 509,
7765
+ "line": 508,
7760
7766
  "character": 9
7761
7767
  }
7762
7768
  ],
@@ -7798,7 +7804,7 @@
7798
7804
  "sources": [
7799
7805
  {
7800
7806
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7801
- "line": 348,
7807
+ "line": 347,
7802
7808
  "character": 9
7803
7809
  }
7804
7810
  ],
@@ -7843,7 +7849,7 @@
7843
7849
  "sources": [
7844
7850
  {
7845
7851
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7846
- "line": 373,
7852
+ "line": 372,
7847
7853
  "character": 9
7848
7854
  }
7849
7855
  ],
@@ -7872,7 +7878,7 @@
7872
7878
  "sources": [
7873
7879
  {
7874
7880
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7875
- "line": 379,
7881
+ "line": 378,
7876
7882
  "character": 9
7877
7883
  }
7878
7884
  ],
@@ -7916,7 +7922,7 @@
7916
7922
  "sources": [
7917
7923
  {
7918
7924
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7919
- "line": 411,
7925
+ "line": 410,
7920
7926
  "character": 9
7921
7927
  }
7922
7928
  ],
@@ -7945,7 +7951,7 @@
7945
7951
  "sources": [
7946
7952
  {
7947
7953
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7948
- "line": 574,
7954
+ "line": 573,
7949
7955
  "character": 9
7950
7956
  }
7951
7957
  ],
@@ -7987,7 +7993,7 @@
7987
7993
  "sources": [
7988
7994
  {
7989
7995
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
7990
- "line": 413,
7996
+ "line": 412,
7991
7997
  "character": 9
7992
7998
  }
7993
7999
  ],
@@ -8069,7 +8075,7 @@
8069
8075
  "sources": [
8070
8076
  {
8071
8077
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
8072
- "line": 417,
8078
+ "line": 416,
8073
8079
  "character": 9
8074
8080
  }
8075
8081
  ],
@@ -8138,7 +8144,7 @@
8138
8144
  "sources": [
8139
8145
  {
8140
8146
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
8141
- "line": 422,
8147
+ "line": 421,
8142
8148
  "character": 9
8143
8149
  }
8144
8150
  ],
@@ -8188,7 +8194,7 @@
8188
8194
  "sources": [
8189
8195
  {
8190
8196
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
8191
- "line": 402,
8197
+ "line": 401,
8192
8198
  "character": 9
8193
8199
  }
8194
8200
  ],
@@ -8311,7 +8317,7 @@
8311
8317
  "sources": [
8312
8318
  {
8313
8319
  "fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
8314
- "line": 60,
8320
+ "line": 59,
8315
8321
  "character": 13
8316
8322
  }
8317
8323
  ],
@@ -8372,7 +8378,7 @@
8372
8378
  "sources": [
8373
8379
  {
8374
8380
  "fileName": "projects/lookup/src/modules/autocomplete/types/autocomplete-search-async-args.ts",
8375
- "line": 32,
8381
+ "line": 33,
8376
8382
  "character": 2
8377
8383
  }
8378
8384
  ],
@@ -8393,7 +8399,7 @@
8393
8399
  "sources": [
8394
8400
  {
8395
8401
  "fileName": "projects/lookup/src/modules/autocomplete/types/autocomplete-search-async-args.ts",
8396
- "line": 19,
8402
+ "line": 20,
8397
8403
  "character": 2
8398
8404
  }
8399
8405
  ],
@@ -8415,7 +8421,7 @@
8415
8421
  "sources": [
8416
8422
  {
8417
8423
  "fileName": "projects/lookup/src/modules/autocomplete/types/autocomplete-search-async-args.ts",
8418
- "line": 26,
8424
+ "line": 27,
8419
8425
  "character": 2
8420
8426
  }
8421
8427
  ],
@@ -8438,7 +8444,7 @@
8438
8444
  "sources": [
8439
8445
  {
8440
8446
  "fileName": "projects/lookup/src/modules/autocomplete/types/autocomplete-search-async-args.ts",
8441
- "line": 39,
8447
+ "line": 40,
8442
8448
  "character": 2
8443
8449
  }
8444
8450
  ],
@@ -8468,7 +8474,7 @@
8468
8474
  "sources": [
8469
8475
  {
8470
8476
  "fileName": "projects/lookup/src/modules/autocomplete/types/autocomplete-search-async-args.ts",
8471
- "line": 13,
8477
+ "line": 14,
8472
8478
  "character": 2
8473
8479
  }
8474
8480
  ],
@@ -8494,7 +8500,7 @@
8494
8500
  "sources": [
8495
8501
  {
8496
8502
  "fileName": "projects/lookup/src/modules/autocomplete/types/autocomplete-search-async-args.ts",
8497
- "line": 9,
8503
+ "line": 10,
8498
8504
  "character": 17
8499
8505
  }
8500
8506
  ]
@@ -8947,7 +8953,7 @@
8947
8953
  "sources": [
8948
8954
  {
8949
8955
  "fileName": "projects/lookup/src/modules/lookup/types/lookup-show-more-config.ts",
8950
- "line": 15,
8956
+ "line": 14,
8951
8957
  "character": 2
8952
8958
  }
8953
8959
  ],
@@ -8971,7 +8977,7 @@
8971
8977
  "sources": [
8972
8978
  {
8973
8979
  "fileName": "projects/lookup/src/modules/lookup/types/lookup-show-more-config.ts",
8974
- "line": 20,
8980
+ "line": 19,
8975
8981
  "character": 2
8976
8982
  }
8977
8983
  ],
@@ -8995,7 +9001,7 @@
8995
9001
  "sources": [
8996
9002
  {
8997
9003
  "fileName": "projects/lookup/src/modules/lookup/types/lookup-show-more-config.ts",
8998
- "line": 11,
9004
+ "line": 10,
8999
9005
  "character": 17
9000
9006
  }
9001
9007
  ]
@@ -9455,12 +9461,12 @@
9455
9461
  {
9456
9462
  "fileName": "autocomplete-demo.component.ts",
9457
9463
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/advanced/autocomplete-demo.component.ts",
9458
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormGroup } from '@angular/forms';\n\nimport {\n SkyAutocompleteSearchFunctionFilter,\n SkyAutocompleteSelectionChange,\n} from '@skyux/lookup';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public farthestPlanet: any;\n\n public myForm: FormGroup;\n\n public planets: any[] = [\n {\n name: 'Mercury',\n description: 'Mercury is a planet in our solar system.',\n },\n { name: 'Venus', description: 'Venus is a planet in our solar system.' },\n { name: 'Earth', description: 'Earth is a planet in our solar system.' },\n { name: 'Mars', description: 'Mars is a planet in our solar system.' },\n {\n name: 'Jupiter',\n description: 'Jupiter is a planet in our solar system.',\n },\n { name: 'Saturn', description: 'Saturn is a planet in our solar system.' },\n { name: 'Uranus', description: 'Uranus is a planet in our solar system.' },\n {\n name: 'Neptune',\n description: 'Neptune is a planet in our solar system.',\n },\n ];\n\n public searchFilters: SkyAutocompleteSearchFunctionFilter[] = [\n (searchText: string, item: any): boolean => {\n return item.name !== 'Red';\n },\n ];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n public onPlanetSelection(args: SkyAutocompleteSelectionChange): void {\n alert(`You selected ${args.selectedItem.name}`);\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n farthestPlanet: {},\n });\n }\n}\n"
9464
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport {\n SkyAutocompleteSearchFunctionFilter,\n SkyAutocompleteSelectionChange,\n} from '@skyux/lookup';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public farthestPlanet: any;\n\n public myForm: FormGroup;\n\n public planets: any[] = [\n {\n name: 'Mercury',\n description: 'Mercury is a planet in our solar system.',\n },\n { name: 'Venus', description: 'Venus is a planet in our solar system.' },\n { name: 'Earth', description: 'Earth is a planet in our solar system.' },\n { name: 'Mars', description: 'Mars is a planet in our solar system.' },\n {\n name: 'Jupiter',\n description: 'Jupiter is a planet in our solar system.',\n },\n { name: 'Saturn', description: 'Saturn is a planet in our solar system.' },\n { name: 'Uranus', description: 'Uranus is a planet in our solar system.' },\n {\n name: 'Neptune',\n description: 'Neptune is a planet in our solar system.',\n },\n ];\n\n public searchFilters: SkyAutocompleteSearchFunctionFilter[] = [\n (searchText: string, item: any): boolean => {\n return item.name !== 'Red';\n },\n ];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n public onPlanetSelection(args: SkyAutocompleteSelectionChange): void {\n alert(`You selected ${args.selectedItem.name}`);\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n farthestPlanet: {},\n });\n }\n}\n"
9459
9465
  },
9460
9466
  {
9461
9467
  "fileName": "autocomplete-demo.module.ts",
9462
9468
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/advanced/autocomplete-demo.module.ts",
9463
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIconModule } from '@skyux/indicators';\n\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIconModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9469
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIconModule } from '@skyux/indicators';\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIconModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9464
9470
  },
9465
9471
  {
9466
9472
  "fileName": "autocomplete-demo.component.html",
@@ -9470,12 +9476,12 @@
9470
9476
  {
9471
9477
  "fileName": "autocomplete-demo.component.ts",
9472
9478
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/basic/autocomplete-demo.component.ts",
9473
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormGroup } from '@angular/forms';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public colors: any[] = [\n { name: 'Red' },\n { name: 'Blue' },\n { name: 'Green' },\n { name: 'Orange' },\n { name: 'Pink' },\n { name: 'Purple' },\n { name: 'Yellow' },\n { name: 'Brown' },\n { name: 'Turquoise' },\n { name: 'White' },\n { name: 'Black' },\n ];\n\n public myForm: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n favoriteColor: undefined,\n });\n }\n}\n"
9479
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public colors: any[] = [\n { name: 'Red' },\n { name: 'Blue' },\n { name: 'Green' },\n { name: 'Orange' },\n { name: 'Pink' },\n { name: 'Purple' },\n { name: 'Yellow' },\n { name: 'Brown' },\n { name: 'Turquoise' },\n { name: 'White' },\n { name: 'Black' },\n ];\n\n public myForm: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n favoriteColor: undefined,\n });\n }\n}\n"
9474
9480
  },
9475
9481
  {
9476
9482
  "fileName": "autocomplete-demo.module.ts",
9477
9483
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/basic/autocomplete-demo.module.ts",
9478
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIdModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9484
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIdModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9479
9485
  },
9480
9486
  {
9481
9487
  "fileName": "autocomplete-demo.component.html",
@@ -9485,12 +9491,12 @@
9485
9491
  {
9486
9492
  "fileName": "autocomplete-demo.component.ts",
9487
9493
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/custom-search/autocomplete-demo.component.ts",
9488
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormGroup } from '@angular/forms';\n\nimport {\n SkyAutocompleteSearchFunction,\n SkyAutocompleteSearchFunctionResponse,\n} from '@skyux/lookup';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public largestOcean: any;\n\n public oceans: any[] = [\n { title: 'Arctic', id: 1 },\n { title: 'Atlantic', id: 2 },\n { title: 'Indian', id: 3 },\n { title: 'Pacific', id: 4 },\n ];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n public getOceanSearchFunction(): SkyAutocompleteSearchFunction {\n const searchFunction = (\n searchText: string,\n oceans: any[]\n ): SkyAutocompleteSearchFunctionResponse => {\n return new Promise((resolve: Function) => {\n const searchTextLower = searchText.toLowerCase();\n\n const results = oceans.filter((ocean: any) => {\n const val = ocean.title;\n const isMatch =\n val && val.toString().toLowerCase().indexOf(searchTextLower) > -1;\n return isMatch;\n });\n\n // Simulate an async request.\n setTimeout(() => {\n resolve(results);\n }, 500);\n });\n };\n\n return searchFunction;\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n largestOcean: { title: 'Arctic', id: 1 },\n });\n }\n}\n"
9494
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport {\n SkyAutocompleteSearchFunction,\n SkyAutocompleteSearchFunctionResponse,\n} from '@skyux/lookup';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public largestOcean: any;\n\n public oceans: any[] = [\n { title: 'Arctic', id: 1 },\n { title: 'Atlantic', id: 2 },\n { title: 'Indian', id: 3 },\n { title: 'Pacific', id: 4 },\n ];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n public getOceanSearchFunction(): SkyAutocompleteSearchFunction {\n const searchFunction = (\n searchText: string,\n oceans: any[]\n ): SkyAutocompleteSearchFunctionResponse => {\n return new Promise((resolve: Function) => {\n const searchTextLower = searchText.toLowerCase();\n\n const results = oceans.filter((ocean: any) => {\n const val = ocean.title;\n const isMatch =\n val && val.toString().toLowerCase().indexOf(searchTextLower) > -1;\n return isMatch;\n });\n\n // Simulate an async request.\n setTimeout(() => {\n resolve(results);\n }, 500);\n });\n };\n\n return searchFunction;\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n largestOcean: { title: 'Arctic', id: 1 },\n });\n }\n}\n"
9489
9495
  },
9490
9496
  {
9491
9497
  "fileName": "autocomplete-demo.module.ts",
9492
9498
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/custom-search/autocomplete-demo.module.ts",
9493
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyIconModule } from '@skyux/indicators';\n\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIconModule,\n SkyIdModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9499
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyIconModule } from '@skyux/indicators';\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIconModule,\n SkyIdModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9494
9500
  },
9495
9501
  {
9496
9502
  "fileName": "autocomplete-demo.component.html",
@@ -9500,12 +9506,12 @@
9500
9506
  {
9501
9507
  "fileName": "autocomplete-demo.component.ts",
9502
9508
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/search-filters/autocomplete-demo.component.ts",
9503
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormGroup } from '@angular/forms';\n\nimport { SkyAutocompleteSearchFunctionFilter } from '@skyux/lookup';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public colors: any[] = [\n { name: 'Red' },\n { name: 'Blue' },\n { name: 'Green' },\n { name: 'Orange' },\n { name: 'Pink' },\n { name: 'Purple' },\n { name: 'Yellow' },\n { name: 'Brown' },\n { name: 'Turquoise' },\n { name: 'White' },\n { name: 'Black' },\n ];\n\n public myForm: FormGroup;\n\n public searchFilters: SkyAutocompleteSearchFunctionFilter[] = [\n (searchText: string, item: any): boolean => {\n return item.name !== 'Red';\n },\n ];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n favoriteColor: undefined,\n });\n }\n}\n"
9509
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport { SkyAutocompleteSearchFunctionFilter } from '@skyux/lookup';\n\n@Component({\n selector: 'app-autocomplete-demo',\n templateUrl: './autocomplete-demo.component.html',\n})\nexport class AutocompleteDemoComponent implements OnInit {\n public colors: any[] = [\n { name: 'Red' },\n { name: 'Blue' },\n { name: 'Green' },\n { name: 'Orange' },\n { name: 'Pink' },\n { name: 'Purple' },\n { name: 'Yellow' },\n { name: 'Brown' },\n { name: 'Turquoise' },\n { name: 'White' },\n { name: 'Black' },\n ];\n\n public myForm: FormGroup;\n\n public searchFilters: SkyAutocompleteSearchFunctionFilter[] = [\n (searchText: string, item: any): boolean => {\n return item.name !== 'Red';\n },\n ];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n favoriteColor: undefined,\n });\n }\n}\n"
9504
9510
  },
9505
9511
  {
9506
9512
  "fileName": "autocomplete-demo.module.ts",
9507
9513
  "filePath": "/projects/lookup/documentation/code-examples/autocomplete/search-filters/autocomplete-demo.module.ts",
9508
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIdModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9514
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyAutocompleteModule } from '@skyux/lookup';\n\nimport { AutocompleteDemoComponent } from './autocomplete-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutocompleteModule,\n SkyIdModule,\n ],\n declarations: [AutocompleteDemoComponent],\n exports: [AutocompleteDemoComponent],\n})\nexport class AutocompleteDemoModule {}\n"
9509
9515
  },
9510
9516
  {
9511
9517
  "fileName": "country-field-demo.component.html",
@@ -9515,12 +9521,12 @@
9515
9521
  {
9516
9522
  "fileName": "country-field-demo.component.ts",
9517
9523
  "filePath": "/projects/lookup/documentation/code-examples/country-field/basic/country-field-demo.component.ts",
9518
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\n\nimport { SkyCountryFieldCountry } from '@skyux/lookup';\n\n@Component({\n selector: 'app-country-field-demo',\n templateUrl: './country-field-demo.component.html',\n})\nexport class CountryFieldDemoComponent implements OnInit {\n public countryControl: FormControl;\n\n public countryData: SkyCountryFieldCountry;\n\n public countryForm: FormGroup;\n\n constructor() {}\n\n public ngOnInit(): void {\n this.countryControl = new FormControl();\n this.countryControl.setValue({\n name: 'Australia',\n iso2: 'au',\n });\n this.countryForm = new FormGroup({\n countryControl: this.countryControl,\n });\n\n this.countryControl.setValidators([Validators.required]);\n }\n}\n"
9524
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { SkyCountryFieldCountry } from '@skyux/lookup';\n\n@Component({\n selector: 'app-country-field-demo',\n templateUrl: './country-field-demo.component.html',\n})\nexport class CountryFieldDemoComponent implements OnInit {\n public countryControl: FormControl;\n\n public countryData: SkyCountryFieldCountry;\n\n public countryForm: FormGroup;\n\n constructor() {}\n\n public ngOnInit(): void {\n this.countryControl = new FormControl();\n this.countryControl.setValue({\n name: 'Australia',\n iso2: 'au',\n });\n this.countryForm = new FormGroup({\n countryControl: this.countryControl,\n });\n\n this.countryControl.setValidators([Validators.required]);\n }\n}\n"
9519
9525
  },
9520
9526
  {
9521
9527
  "fileName": "country-field-demo.module.ts",
9522
9528
  "filePath": "/projects/lookup/documentation/code-examples/country-field/basic/country-field-demo.module.ts",
9523
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyCountryFieldModule } from '@skyux/lookup';\n\nimport { CountryFieldDemoComponent } from './country-field-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyCountryFieldModule,\n SkyInputBoxModule,\n ],\n declarations: [CountryFieldDemoComponent],\n exports: [CountryFieldDemoComponent],\n})\nexport class CountryFieldDemoModule {}\n"
9529
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyCountryFieldModule } from '@skyux/lookup';\n\nimport { CountryFieldDemoComponent } from './country-field-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyCountryFieldModule,\n SkyInputBoxModule,\n ],\n declarations: [CountryFieldDemoComponent],\n exports: [CountryFieldDemoComponent],\n})\nexport class CountryFieldDemoModule {}\n"
9524
9530
  },
9525
9531
  {
9526
9532
  "fileName": "lookup-async-demo.component.html",
@@ -9535,12 +9541,12 @@
9535
9541
  {
9536
9542
  "fileName": "lookup-async-demo.component.ts",
9537
9543
  "filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.ts",
9538
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport { SkyAutocompleteSearchAsyncArgs } from 'lookup';\n\nimport {\n SkyAutocompleteSearchAsyncResult,\n SkyAutocompleteSearchFunctionFilter,\n} from '@skyux/lookup';\nimport { Subject } from 'rxjs';\n\n@Component({\n selector: 'app-async-lookup-demo',\n templateUrl: './lookup-async-demo.component.html',\n styleUrls: ['./lookup-async-demo.component.scss'],\n})\nexport class LookupAsyncDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public name: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const name: any[] = this.myForm.controls.name.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = name.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n public searchAsync($event: SkyAutocompleteSearchAsyncArgs) {\n const result = new Subject<SkyAutocompleteSearchAsyncResult>();\n $event.result = result;\n setTimeout(() => {\n const searchText = $event.searchText.toLowerCase();\n const items = this.people.filter((person) => {\n return person.name.toLowerCase().includes(searchText);\n });\n result.next({\n hasMore: false,\n items,\n totalCount: items.length,\n });\n }, 800);\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n name: new FormControl(this.name),\n });\n }\n}\n"
9544
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport {\n SkyAutocompleteSearchAsyncResult,\n SkyAutocompleteSearchFunctionFilter,\n} from '@skyux/lookup';\n\nimport { SkyAutocompleteSearchAsyncArgs } from 'lookup';\nimport { Subject } from 'rxjs';\n\n@Component({\n selector: 'app-async-lookup-demo',\n templateUrl: './lookup-async-demo.component.html',\n styleUrls: ['./lookup-async-demo.component.scss'],\n})\nexport class LookupAsyncDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public name: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const name: any[] = this.myForm.controls.name.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = name.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n public searchAsync($event: SkyAutocompleteSearchAsyncArgs) {\n const result = new Subject<SkyAutocompleteSearchAsyncResult>();\n $event.result = result;\n setTimeout(() => {\n const searchText = $event.searchText.toLowerCase();\n const items = this.people.filter((person) => {\n return person.name.toLowerCase().includes(searchText);\n });\n result.next({\n hasMore: false,\n items,\n totalCount: items.length,\n });\n }, 800);\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n name: new FormControl(this.name),\n });\n }\n}\n"
9539
9545
  },
9540
9546
  {
9541
9547
  "fileName": "lookup-async-demo.module.ts",
9542
9548
  "filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.module.ts",
9543
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupAsyncDemoComponent } from './lookup-async-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupAsyncDemoComponent],\n exports: [LookupAsyncDemoComponent],\n})\nexport class LookupAsyncDemoModule {}\n"
9549
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupAsyncDemoComponent } from './lookup-async-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupAsyncDemoComponent],\n exports: [LookupAsyncDemoComponent],\n})\nexport class LookupAsyncDemoModule {}\n"
9544
9550
  },
9545
9551
  {
9546
9552
  "fileName": "lookup-custom-picker-demo-modal.component.html",
@@ -9550,7 +9556,7 @@
9550
9556
  {
9551
9557
  "fileName": "lookup-custom-picker-demo-modal.component.ts",
9552
9558
  "filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo-modal.component.ts",
9553
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\nimport { SkyLookupShowMoreCustomPickerContext } from '@skyux/lookup';\n\nimport { SkyModalInstance } from '@skyux/modals';\n\n@Component({\n selector: 'app-lookup-demo-modal',\n templateUrl: './lookup-custom-picker-demo-modal.component.html',\n})\nexport class LookupCustomPickerDemoModalComponent implements OnInit {\n public myForm: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder,\n public context: SkyLookupShowMoreCustomPickerContext,\n public modalInstance: SkyModalInstance\n ) {}\n\n public ngOnInit(): void {\n this.myForm = this.formBuilder.group({\n selectLast: new FormControl(false),\n });\n }\n}\n"
9559
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport { SkyLookupShowMoreCustomPickerContext } from '@skyux/lookup';\nimport { SkyModalInstance } from '@skyux/modals';\n\n@Component({\n selector: 'app-lookup-demo-modal',\n templateUrl: './lookup-custom-picker-demo-modal.component.html',\n})\nexport class LookupCustomPickerDemoModalComponent implements OnInit {\n public myForm: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder,\n public context: SkyLookupShowMoreCustomPickerContext,\n public modalInstance: SkyModalInstance\n ) {}\n\n public ngOnInit(): void {\n this.myForm = this.formBuilder.group({\n selectLast: new FormControl(false),\n });\n }\n}\n"
9554
9560
  },
9555
9561
  {
9556
9562
  "fileName": "lookup-custom-picker-demo.component.html",
@@ -9565,12 +9571,12 @@
9565
9571
  {
9566
9572
  "fileName": "lookup-custom-picker-demo.component.ts",
9567
9573
  "filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo.component.ts",
9568
- "rawContents": "import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\nimport {\n SkyAutocompleteSearchFunctionFilter,\n SkyLookupShowMoreConfig,\n SkyLookupShowMoreCustomPickerContext,\n} from '@skyux/lookup';\n\nimport { SkyModalCloseArgs, SkyModalService } from '@skyux/modals';\n\nimport { LookupCustomPickerDemoModalComponent } from './lookup-custom-picker-demo-modal.component';\n\n@Component({\n selector: 'app-lookup-demo',\n templateUrl: './lookup-custom-picker-demo.component.html',\n styleUrls: ['./lookup-custom-picker-demo.component.scss'],\n})\nexport class LookupCustomPickerDemoComponent implements OnInit {\n public showMoreConfig: SkyLookupShowMoreConfig;\n\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public names: any[] = [this.people[15]];\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n private formBuilder: FormBuilder,\n private modalService: SkyModalService\n ) {\n this.showMoreConfig = {\n customPicker: {\n open: (context: SkyLookupShowMoreCustomPickerContext) => {\n const instance = this.modalService.open(\n LookupCustomPickerDemoModalComponent,\n {\n providers: [\n {\n provide: SkyLookupShowMoreCustomPickerContext,\n useValue: context,\n },\n ],\n }\n );\n\n instance.closed.subscribe((closeArgs: SkyModalCloseArgs) => {\n if (closeArgs.reason === 'save') {\n if (closeArgs.data) {\n this.myForm.setValue({\n names: [this.people[this.people.length - 1]],\n });\n this.changeDetector.markForCheck();\n }\n }\n });\n },\n },\n };\n }\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const names: any[] = this.myForm.controls.names.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = names.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n names: new FormControl(this.names),\n });\n }\n}\n"
9574
+ "rawContents": "import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport {\n SkyAutocompleteSearchFunctionFilter,\n SkyLookupShowMoreConfig,\n SkyLookupShowMoreCustomPickerContext,\n} from '@skyux/lookup';\nimport { SkyModalCloseArgs, SkyModalService } from '@skyux/modals';\n\nimport { LookupCustomPickerDemoModalComponent } from './lookup-custom-picker-demo-modal.component';\n\n@Component({\n selector: 'app-lookup-demo',\n templateUrl: './lookup-custom-picker-demo.component.html',\n styleUrls: ['./lookup-custom-picker-demo.component.scss'],\n})\nexport class LookupCustomPickerDemoComponent implements OnInit {\n public showMoreConfig: SkyLookupShowMoreConfig;\n\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public names: any[] = [this.people[15]];\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n private formBuilder: FormBuilder,\n private modalService: SkyModalService\n ) {\n this.showMoreConfig = {\n customPicker: {\n open: (context: SkyLookupShowMoreCustomPickerContext) => {\n const instance = this.modalService.open(\n LookupCustomPickerDemoModalComponent,\n {\n providers: [\n {\n provide: SkyLookupShowMoreCustomPickerContext,\n useValue: context,\n },\n ],\n }\n );\n\n instance.closed.subscribe((closeArgs: SkyModalCloseArgs) => {\n if (closeArgs.reason === 'save') {\n if (closeArgs.data) {\n this.myForm.setValue({\n names: [this.people[this.people.length - 1]],\n });\n this.changeDetector.markForCheck();\n }\n }\n });\n },\n },\n };\n }\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const names: any[] = this.myForm.controls.names.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = names.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n names: new FormControl(this.names),\n });\n }\n}\n"
9569
9575
  },
9570
9576
  {
9571
9577
  "fileName": "lookup-custom-picker-demo.module.ts",
9572
9578
  "filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo.module.ts",
9573
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyCheckboxModule, SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { LookupCustomPickerDemoComponent } from './lookup-custom-picker-demo.component';\n\nimport { LookupCustomPickerDemoModalComponent } from './lookup-custom-picker-demo-modal.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyCheckboxModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n SkyModalModule,\n ],\n declarations: [\n LookupCustomPickerDemoComponent,\n LookupCustomPickerDemoModalComponent,\n ],\n exports: [LookupCustomPickerDemoComponent],\n entryComponents: [LookupCustomPickerDemoModalComponent],\n})\nexport class LookupCustomPickerDemoModule {}\n"
9579
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyCheckboxModule, SkyInputBoxModule } from '@skyux/forms';\nimport { SkyLookupModule } from '@skyux/lookup';\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { LookupCustomPickerDemoModalComponent } from './lookup-custom-picker-demo-modal.component';\nimport { LookupCustomPickerDemoComponent } from './lookup-custom-picker-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyCheckboxModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n SkyModalModule,\n ],\n declarations: [\n LookupCustomPickerDemoComponent,\n LookupCustomPickerDemoModalComponent,\n ],\n exports: [LookupCustomPickerDemoComponent],\n entryComponents: [LookupCustomPickerDemoModalComponent],\n})\nexport class LookupCustomPickerDemoModule {}\n"
9574
9580
  },
9575
9581
  {
9576
9582
  "fileName": "lookup-multiple-demo.component.html",
@@ -9585,12 +9591,12 @@
9585
9591
  {
9586
9592
  "fileName": "lookup-multiple-demo.component.ts",
9587
9593
  "filePath": "/projects/lookup/documentation/code-examples/lookup/multi-select/lookup-multiple-demo.component.ts",
9588
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\nimport { SkyAutocompleteSearchFunctionFilter } from '@skyux/lookup';\n\n@Component({\n selector: 'app-lookup-demo',\n templateUrl: './lookup-multiple-demo.component.html',\n styleUrls: ['./lookup-multiple-demo.component.scss'],\n})\nexport class LookupMultipleSelectDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public names: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const names: any[] = this.myForm.controls.names.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = names.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n names: new FormControl(this.names),\n });\n }\n}\n"
9594
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport { SkyAutocompleteSearchFunctionFilter } from '@skyux/lookup';\n\n@Component({\n selector: 'app-lookup-demo',\n templateUrl: './lookup-multiple-demo.component.html',\n styleUrls: ['./lookup-multiple-demo.component.scss'],\n})\nexport class LookupMultipleSelectDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public names: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const names: any[] = this.myForm.controls.names.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = names.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n names: new FormControl(this.names),\n });\n }\n}\n"
9589
9595
  },
9590
9596
  {
9591
9597
  "fileName": "lookup-multiple-demo.module.ts",
9592
9598
  "filePath": "/projects/lookup/documentation/code-examples/lookup/multi-select/lookup-multiple-demo.module.ts",
9593
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupMultipleSelectDemoComponent } from './lookup-multiple-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupMultipleSelectDemoComponent],\n exports: [LookupMultipleSelectDemoComponent],\n})\nexport class LookupMultipleSelectDemoModule {}\n"
9599
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupMultipleSelectDemoComponent } from './lookup-multiple-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupMultipleSelectDemoComponent],\n exports: [LookupMultipleSelectDemoComponent],\n})\nexport class LookupMultipleSelectDemoModule {}\n"
9594
9600
  },
9595
9601
  {
9596
9602
  "fileName": "lookup-result-templates-demo.component.html",
@@ -9605,12 +9611,12 @@
9605
9611
  {
9606
9612
  "fileName": "lookup-result-templates-demo.component.ts",
9607
9613
  "filePath": "/projects/lookup/documentation/code-examples/lookup/result-templates/lookup-result-templates-demo.component.ts",
9608
- "rawContents": "import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\nimport {\n SkyAutocompleteSearchFunctionFilter,\n SkyLookupShowMoreConfig,\n} from '@skyux/lookup';\n\n@Component({\n selector: 'app-lookup-demo',\n templateUrl: './lookup-result-templates-demo.component.html',\n styleUrls: ['./lookup-result-templates-demo.component.scss'],\n})\nexport class LookupResultTemplatesDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n {\n name: 'Abed',\n formal: 'Mr. Nadir',\n },\n {\n name: 'Alex',\n formal: 'Mr. Osbourne',\n },\n {\n name: 'Ben',\n formal: 'Mr. Chang',\n },\n {\n name: 'Britta',\n formal: 'Ms. Perry',\n },\n {\n name: 'Buzz',\n formal: 'Mr. Hickey',\n },\n {\n name: 'Craig',\n formal: 'Mr. Pelton',\n },\n {\n name: 'Elroy',\n formal: 'Mr. Patashnik',\n },\n {\n name: 'Garrett',\n formal: 'Mr. Lambert',\n },\n {\n name: 'Ian',\n formal: 'Mr. Duncan',\n },\n {\n name: 'Jeff',\n formal: 'Mr. Winger',\n },\n {\n name: 'Leonard',\n formal: 'Mr. Rodriguez',\n },\n {\n name: 'Neil',\n formal: 'Mr. Neil',\n },\n {\n name: 'Pierce',\n formal: 'Mr. Hawthorne',\n },\n {\n name: 'Preston',\n formal: 'Mr. Koogler',\n },\n {\n name: 'Rachel',\n formal: 'Ms. Rachel',\n },\n {\n name: 'Shirley',\n formal: 'Ms. Bennett',\n },\n {\n name: 'Todd',\n formal: 'Mr. Jacobson',\n },\n {\n name: 'Troy',\n formal: 'Mr. Barnes',\n },\n {\n name: 'Vaughn',\n formal: 'Mr. Miller',\n },\n {\n name: 'Vicki',\n formal: 'Ms. Jenkins',\n },\n ];\n\n public names: any[] = [this.people[15]];\n\n public showMoreConfig: SkyLookupShowMoreConfig = {\n nativePickerConfig: {},\n };\n\n @ViewChild('modalItemTemplate')\n public set modalItemTempalte(template: TemplateRef<any>) {\n this.showMoreConfig.nativePickerConfig.itemTemplate = template;\n }\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const names: any[] = this.myForm.controls.names.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = names.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n names: new FormControl(this.names),\n });\n }\n}\n"
9614
+ "rawContents": "import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport {\n SkyAutocompleteSearchFunctionFilter,\n SkyLookupShowMoreConfig,\n} from '@skyux/lookup';\n\n@Component({\n selector: 'app-lookup-demo',\n templateUrl: './lookup-result-templates-demo.component.html',\n styleUrls: ['./lookup-result-templates-demo.component.scss'],\n})\nexport class LookupResultTemplatesDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n {\n name: 'Abed',\n formal: 'Mr. Nadir',\n },\n {\n name: 'Alex',\n formal: 'Mr. Osbourne',\n },\n {\n name: 'Ben',\n formal: 'Mr. Chang',\n },\n {\n name: 'Britta',\n formal: 'Ms. Perry',\n },\n {\n name: 'Buzz',\n formal: 'Mr. Hickey',\n },\n {\n name: 'Craig',\n formal: 'Mr. Pelton',\n },\n {\n name: 'Elroy',\n formal: 'Mr. Patashnik',\n },\n {\n name: 'Garrett',\n formal: 'Mr. Lambert',\n },\n {\n name: 'Ian',\n formal: 'Mr. Duncan',\n },\n {\n name: 'Jeff',\n formal: 'Mr. Winger',\n },\n {\n name: 'Leonard',\n formal: 'Mr. Rodriguez',\n },\n {\n name: 'Neil',\n formal: 'Mr. Neil',\n },\n {\n name: 'Pierce',\n formal: 'Mr. Hawthorne',\n },\n {\n name: 'Preston',\n formal: 'Mr. Koogler',\n },\n {\n name: 'Rachel',\n formal: 'Ms. Rachel',\n },\n {\n name: 'Shirley',\n formal: 'Ms. Bennett',\n },\n {\n name: 'Todd',\n formal: 'Mr. Jacobson',\n },\n {\n name: 'Troy',\n formal: 'Mr. Barnes',\n },\n {\n name: 'Vaughn',\n formal: 'Mr. Miller',\n },\n {\n name: 'Vicki',\n formal: 'Ms. Jenkins',\n },\n ];\n\n public names: any[] = [this.people[15]];\n\n public showMoreConfig: SkyLookupShowMoreConfig = {\n nativePickerConfig: {},\n };\n\n @ViewChild('modalItemTemplate')\n public set modalItemTempalte(template: TemplateRef<any>) {\n this.showMoreConfig.nativePickerConfig.itemTemplate = template;\n }\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const names: any[] = this.myForm.controls.names.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = names.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n names: new FormControl(this.names),\n });\n }\n}\n"
9609
9615
  },
9610
9616
  {
9611
9617
  "fileName": "lookup-result-templates-demo.module.ts",
9612
9618
  "filePath": "/projects/lookup/documentation/code-examples/lookup/result-templates/lookup-result-templates-demo.module.ts",
9613
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupResultTemplatesDemoComponent } from './lookup-result-templates-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupResultTemplatesDemoComponent],\n exports: [LookupResultTemplatesDemoComponent],\n})\nexport class LookupResultTemplatesDemoModule {}\n"
9619
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupResultTemplatesDemoComponent } from './lookup-result-templates-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupResultTemplatesDemoComponent],\n exports: [LookupResultTemplatesDemoComponent],\n})\nexport class LookupResultTemplatesDemoModule {}\n"
9614
9620
  },
9615
9621
  {
9616
9622
  "fileName": "lookup-single-demo.component.html",
@@ -9625,12 +9631,12 @@
9625
9631
  {
9626
9632
  "fileName": "lookup-single-demo.component.ts",
9627
9633
  "filePath": "/projects/lookup/documentation/code-examples/lookup/single-select/lookup-single-demo.component.ts",
9628
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\n\nimport { SkyAutocompleteSearchFunctionFilter } from '@skyux/lookup';\n\n@Component({\n selector: 'app-single-select-lookup-demo',\n templateUrl: './lookup-single-demo.component.html',\n styleUrls: ['./lookup-single-demo.component.scss'],\n})\nexport class LookupSingleSelectDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public name: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const name: any[] = this.myForm.controls.name.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = name.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n name: new FormControl(this.name),\n });\n }\n}\n"
9634
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport { SkyAutocompleteSearchFunctionFilter } from '@skyux/lookup';\n\n@Component({\n selector: 'app-single-select-lookup-demo',\n templateUrl: './lookup-single-demo.component.html',\n styleUrls: ['./lookup-single-demo.component.scss'],\n})\nexport class LookupSingleSelectDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public name: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const name: any[] = this.myForm.controls.name.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = name.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n name: new FormControl(this.name),\n });\n }\n}\n"
9629
9635
  },
9630
9636
  {
9631
9637
  "fileName": "lookup-single-demo.module.ts",
9632
9638
  "filePath": "/projects/lookup/documentation/code-examples/lookup/single-select/lookup-single-demo.module.ts",
9633
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupSingleSelectDemoComponent } from './lookup-single-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupSingleSelectDemoComponent],\n exports: [LookupSingleSelectDemoComponent],\n})\nexport class LookupSingleSelectDemoModule {}\n"
9639
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyIdModule } from '@skyux/core';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupSingleSelectDemoComponent } from './lookup-single-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupSingleSelectDemoComponent],\n exports: [LookupSingleSelectDemoComponent],\n})\nexport class LookupSingleSelectDemoModule {}\n"
9634
9640
  },
9635
9641
  {
9636
9642
  "fileName": "search-demo.component.html",
@@ -9640,12 +9646,12 @@
9640
9646
  {
9641
9647
  "fileName": "search-demo.component.ts",
9642
9648
  "filePath": "/projects/lookup/documentation/code-examples/search/basic/search-demo.component.ts",
9643
- "rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-search-demo',\n templateUrl: './search-demo.component.html',\n})\nexport class SearchDemoComponent {\n public displayedItems: any;\n\n private items: any[] = [\n {\n title: 'Call Robert Hernandez',\n note: 'Robert recently gave a very generous gift. We should call to thank him.',\n },\n {\n title: 'Send invitation to ball',\n note: \"The Spring Ball is coming up soon. Let's get those invitations out!\",\n },\n {\n title: 'Clean up desk',\n note: 'File and organize papers.',\n },\n {\n title: 'Investigate leads',\n note: 'Check out leads for important charity event funding.',\n },\n {\n title: 'Send thank you note',\n note: 'Send a thank you note to Timothy for his donation.',\n },\n ];\n\n public searchText: string;\n\n constructor() {\n this.displayedItems = this.items;\n }\n\n public searchApplied(searchText: string): void {\n let filteredItems = this.items;\n this.searchText = searchText;\n\n if (searchText) {\n filteredItems = this.items.filter(function (item: any) {\n let property: any;\n\n for (property in item) {\n if (\n item.hasOwnProperty(property) &&\n (property === 'title' || property === 'note')\n ) {\n if (item[property].indexOf(searchText) > -1) {\n return true;\n }\n }\n }\n\n return false;\n });\n }\n this.displayedItems = filteredItems;\n }\n}\n"
9649
+ "rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-search-demo',\n templateUrl: './search-demo.component.html',\n})\nexport class SearchDemoComponent {\n public displayedItems: any;\n\n private items: any[] = [\n {\n title: 'Call Robert Hernandez',\n note: 'Robert recently gave a very generous gift. We should call to thank him.',\n },\n {\n title: 'Send invitation to ball',\n note: \"The Spring Ball is coming up soon. Let's get those invitations out!\",\n },\n {\n title: 'Clean up desk',\n note: 'File and organize papers.',\n },\n {\n title: 'Investigate leads',\n note: 'Check out leads for important charity event funding.',\n },\n {\n title: 'Send thank you note',\n note: 'Send a thank you note to Timothy for his donation.',\n },\n ];\n\n public searchText: string;\n\n constructor() {\n this.displayedItems = this.items;\n }\n\n public searchApplied(searchText: string): void {\n let filteredItems = this.items;\n this.searchText = searchText;\n\n if (searchText) {\n filteredItems = this.items.filter(function (item: any) {\n let property: any;\n\n for (property in item) {\n if (\n Object.prototype.hasOwnProperty.call(item, property) &&\n (property === 'title' || property === 'note')\n ) {\n if (item[property].indexOf(searchText) > -1) {\n return true;\n }\n }\n }\n\n return false;\n });\n }\n this.displayedItems = filteredItems;\n }\n}\n"
9644
9650
  },
9645
9651
  {
9646
9652
  "fileName": "search-demo.module.ts",
9647
9653
  "filePath": "/projects/lookup/documentation/code-examples/search/basic/search-demo.module.ts",
9648
- "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { SkyToolbarModule } from '@skyux/layout';\n\nimport { SkyRepeaterModule } from '@skyux/lists';\n\nimport { SkySearchModule } from '@skyux/lookup';\n\nimport { SearchDemoComponent } from './search-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyRepeaterModule, SkySearchModule, SkyToolbarModule],\n declarations: [SearchDemoComponent],\n exports: [SearchDemoComponent],\n})\nexport class SearchDemoModule {}\n"
9654
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyToolbarModule } from '@skyux/layout';\nimport { SkyRepeaterModule } from '@skyux/lists';\nimport { SkySearchModule } from '@skyux/lookup';\n\nimport { SearchDemoComponent } from './search-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyRepeaterModule, SkySearchModule, SkyToolbarModule],\n declarations: [SearchDemoComponent],\n exports: [SearchDemoComponent],\n})\nexport class SearchDemoModule {}\n"
9649
9655
  }
9650
9656
  ]
9651
9657
  }