@skyux/lookup 6.0.0-beta.0 → 6.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation.json +89 -89
- package/esm2020/lib/modules/autocomplete/autocomplete-adapter.service.mjs +3 -3
- package/esm2020/lib/modules/autocomplete/autocomplete-input.directive.mjs +4 -6
- package/esm2020/lib/modules/autocomplete/autocomplete-search-async-disabled.pipe.mjs +3 -3
- package/esm2020/lib/modules/autocomplete/autocomplete.component.mjs +12 -18
- package/esm2020/lib/modules/autocomplete/autocomplete.module.mjs +4 -4
- package/esm2020/lib/modules/country-field/country-field.component.mjs +8 -9
- package/esm2020/lib/modules/country-field/country-field.module.mjs +4 -4
- package/esm2020/lib/modules/lookup/lookup-adapter.service.mjs +3 -3
- package/esm2020/lib/modules/lookup/lookup-autocomplete-adapter.mjs +4 -4
- package/esm2020/lib/modules/lookup/lookup-item-selected.pipe.mjs +3 -3
- package/esm2020/lib/modules/lookup/lookup-show-more-async-modal.component.mjs +3 -3
- package/esm2020/lib/modules/lookup/lookup-show-more-modal.component.mjs +3 -3
- package/esm2020/lib/modules/lookup/lookup.component.mjs +5 -6
- package/esm2020/lib/modules/lookup/lookup.module.mjs +4 -4
- package/esm2020/lib/modules/lookup/types/lookup-show-more-native-picker-config.mjs +1 -1
- package/esm2020/lib/modules/search/search-adapter.service.mjs +3 -3
- package/esm2020/lib/modules/search/search.component.mjs +3 -3
- package/esm2020/lib/modules/search/search.module.mjs +4 -4
- package/esm2020/lib/modules/shared/sky-lookup-resources.module.mjs +4 -4
- package/esm2020/testing/country-field/country-field-testing.module.mjs +4 -4
- package/esm2020/testing/search/search-testing.module.mjs +4 -4
- package/fesm2015/skyux-lookup-testing.mjs +8 -8
- package/fesm2015/skyux-lookup.mjs +72 -82
- package/fesm2015/skyux-lookup.mjs.map +1 -1
- package/fesm2020/skyux-lookup-testing.mjs +8 -8
- package/fesm2020/skyux-lookup.mjs +72 -82
- package/fesm2020/skyux-lookup.mjs.map +1 -1
- package/lib/modules/autocomplete/autocomplete.component.d.ts +2 -2
- package/lib/modules/lookup/lookup-autocomplete-adapter.d.ts +1 -1
- package/lib/modules/lookup/lookup.component.d.ts +1 -1
- package/lib/modules/lookup/types/lookup-show-more-native-picker-config.d.ts +1 -1
- package/package.json +31 -28
package/documentation.json
CHANGED
|
@@ -1432,7 +1432,7 @@
|
|
|
1432
1432
|
"sources": [
|
|
1433
1433
|
{
|
|
1434
1434
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1435
|
-
"line":
|
|
1435
|
+
"line": 161,
|
|
1436
1436
|
"character": 2
|
|
1437
1437
|
}
|
|
1438
1438
|
],
|
|
@@ -1508,7 +1508,7 @@
|
|
|
1508
1508
|
"sources": [
|
|
1509
1509
|
{
|
|
1510
1510
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1511
|
-
"line":
|
|
1511
|
+
"line": 48,
|
|
1512
1512
|
"character": 13
|
|
1513
1513
|
}
|
|
1514
1514
|
],
|
|
@@ -1581,7 +1581,7 @@
|
|
|
1581
1581
|
"sources": [
|
|
1582
1582
|
{
|
|
1583
1583
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1584
|
-
"line":
|
|
1584
|
+
"line": 80,
|
|
1585
1585
|
"character": 13
|
|
1586
1586
|
}
|
|
1587
1587
|
],
|
|
@@ -1630,7 +1630,7 @@
|
|
|
1630
1630
|
"sources": [
|
|
1631
1631
|
{
|
|
1632
1632
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1633
|
-
"line":
|
|
1633
|
+
"line": 71,
|
|
1634
1634
|
"character": 13
|
|
1635
1635
|
}
|
|
1636
1636
|
],
|
|
@@ -1703,7 +1703,7 @@
|
|
|
1703
1703
|
"sources": [
|
|
1704
1704
|
{
|
|
1705
1705
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1706
|
-
"line":
|
|
1706
|
+
"line": 84,
|
|
1707
1707
|
"character": 13
|
|
1708
1708
|
}
|
|
1709
1709
|
],
|
|
@@ -1758,7 +1758,7 @@
|
|
|
1758
1758
|
"sources": [
|
|
1759
1759
|
{
|
|
1760
1760
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1761
|
-
"line":
|
|
1761
|
+
"line": 100,
|
|
1762
1762
|
"character": 13
|
|
1763
1763
|
}
|
|
1764
1764
|
],
|
|
@@ -1795,7 +1795,7 @@
|
|
|
1795
1795
|
"sources": [
|
|
1796
1796
|
{
|
|
1797
1797
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1798
|
-
"line":
|
|
1798
|
+
"line": 104,
|
|
1799
1799
|
"character": 13
|
|
1800
1800
|
}
|
|
1801
1801
|
],
|
|
@@ -1850,7 +1850,7 @@
|
|
|
1850
1850
|
"sources": [
|
|
1851
1851
|
{
|
|
1852
1852
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1853
|
-
"line":
|
|
1853
|
+
"line": 112,
|
|
1854
1854
|
"character": 13
|
|
1855
1855
|
}
|
|
1856
1856
|
],
|
|
@@ -1887,7 +1887,7 @@
|
|
|
1887
1887
|
"sources": [
|
|
1888
1888
|
{
|
|
1889
1889
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1890
|
-
"line":
|
|
1890
|
+
"line": 116,
|
|
1891
1891
|
"character": 13
|
|
1892
1892
|
}
|
|
1893
1893
|
],
|
|
@@ -1942,7 +1942,7 @@
|
|
|
1942
1942
|
"sources": [
|
|
1943
1943
|
{
|
|
1944
1944
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1945
|
-
"line":
|
|
1945
|
+
"line": 208,
|
|
1946
1946
|
"character": 9
|
|
1947
1947
|
}
|
|
1948
1948
|
],
|
|
@@ -1979,7 +1979,7 @@
|
|
|
1979
1979
|
"sources": [
|
|
1980
1980
|
{
|
|
1981
1981
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
1982
|
-
"line":
|
|
1982
|
+
"line": 163,
|
|
1983
1983
|
"character": 9
|
|
1984
1984
|
}
|
|
1985
1985
|
],
|
|
@@ -2016,7 +2016,7 @@
|
|
|
2016
2016
|
"sources": [
|
|
2017
2017
|
{
|
|
2018
2018
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2019
|
-
"line":
|
|
2019
|
+
"line": 275,
|
|
2020
2020
|
"character": 9
|
|
2021
2021
|
}
|
|
2022
2022
|
],
|
|
@@ -2058,7 +2058,7 @@
|
|
|
2058
2058
|
"sources": [
|
|
2059
2059
|
{
|
|
2060
2060
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2061
|
-
"line":
|
|
2061
|
+
"line": 277,
|
|
2062
2062
|
"character": 9
|
|
2063
2063
|
}
|
|
2064
2064
|
],
|
|
@@ -2087,7 +2087,7 @@
|
|
|
2087
2087
|
"sources": [
|
|
2088
2088
|
{
|
|
2089
2089
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2090
|
-
"line":
|
|
2090
|
+
"line": 280,
|
|
2091
2091
|
"character": 9
|
|
2092
2092
|
}
|
|
2093
2093
|
],
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
"sources": [
|
|
2117
2117
|
{
|
|
2118
2118
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2119
|
-
"line":
|
|
2119
|
+
"line": 222,
|
|
2120
2120
|
"character": 9
|
|
2121
2121
|
}
|
|
2122
2122
|
],
|
|
@@ -2198,7 +2198,7 @@
|
|
|
2198
2198
|
"sources": [
|
|
2199
2199
|
{
|
|
2200
2200
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2201
|
-
"line":
|
|
2201
|
+
"line": 226,
|
|
2202
2202
|
"character": 9
|
|
2203
2203
|
}
|
|
2204
2204
|
],
|
|
@@ -2267,7 +2267,7 @@
|
|
|
2267
2267
|
"sources": [
|
|
2268
2268
|
{
|
|
2269
2269
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2270
|
-
"line":
|
|
2270
|
+
"line": 230,
|
|
2271
2271
|
"character": 9
|
|
2272
2272
|
}
|
|
2273
2273
|
],
|
|
@@ -2336,7 +2336,7 @@
|
|
|
2336
2336
|
"sources": [
|
|
2337
2337
|
{
|
|
2338
2338
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2339
|
-
"line":
|
|
2339
|
+
"line": 234,
|
|
2340
2340
|
"character": 9
|
|
2341
2341
|
}
|
|
2342
2342
|
],
|
|
@@ -2365,7 +2365,7 @@
|
|
|
2365
2365
|
"sources": [
|
|
2366
2366
|
{
|
|
2367
2367
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2368
|
-
"line":
|
|
2368
|
+
"line": 258,
|
|
2369
2369
|
"character": 9
|
|
2370
2370
|
}
|
|
2371
2371
|
],
|
|
@@ -2407,7 +2407,7 @@
|
|
|
2407
2407
|
"sources": [
|
|
2408
2408
|
{
|
|
2409
2409
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2410
|
-
"line":
|
|
2410
|
+
"line": 246,
|
|
2411
2411
|
"character": 9
|
|
2412
2412
|
}
|
|
2413
2413
|
],
|
|
@@ -2457,7 +2457,7 @@
|
|
|
2457
2457
|
"sources": [
|
|
2458
2458
|
{
|
|
2459
2459
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2460
|
-
"line":
|
|
2460
|
+
"line": 250,
|
|
2461
2461
|
"character": 9
|
|
2462
2462
|
}
|
|
2463
2463
|
],
|
|
@@ -2511,7 +2511,7 @@
|
|
|
2511
2511
|
"sources": [
|
|
2512
2512
|
{
|
|
2513
2513
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2514
|
-
"line":
|
|
2514
|
+
"line": 218,
|
|
2515
2515
|
"character": 9
|
|
2516
2516
|
}
|
|
2517
2517
|
],
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
"sources": [
|
|
2597
2597
|
{
|
|
2598
2598
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete-input.directive.ts",
|
|
2599
|
-
"line":
|
|
2599
|
+
"line": 40,
|
|
2600
2600
|
"character": 13
|
|
2601
2601
|
}
|
|
2602
2602
|
],
|
|
@@ -2657,7 +2657,7 @@
|
|
|
2657
2657
|
"sources": [
|
|
2658
2658
|
{
|
|
2659
2659
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
2660
|
-
"line":
|
|
2660
|
+
"line": 444,
|
|
2661
2661
|
"character": 2
|
|
2662
2662
|
}
|
|
2663
2663
|
],
|
|
@@ -3539,7 +3539,7 @@
|
|
|
3539
3539
|
"typeArguments": [
|
|
3540
3540
|
{
|
|
3541
3541
|
"type": "intrinsic",
|
|
3542
|
-
"name": "
|
|
3542
|
+
"name": "unknown"
|
|
3543
3543
|
}
|
|
3544
3544
|
],
|
|
3545
3545
|
"qualifiedName": "TemplateRef",
|
|
@@ -3570,7 +3570,7 @@
|
|
|
3570
3570
|
"typeArguments": [
|
|
3571
3571
|
{
|
|
3572
3572
|
"type": "intrinsic",
|
|
3573
|
-
"name": "
|
|
3573
|
+
"name": "unknown"
|
|
3574
3574
|
}
|
|
3575
3575
|
],
|
|
3576
3576
|
"qualifiedName": "TemplateRef",
|
|
@@ -3869,7 +3869,7 @@
|
|
|
3869
3869
|
"sources": [
|
|
3870
3870
|
{
|
|
3871
3871
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
3872
|
-
"line":
|
|
3872
|
+
"line": 483,
|
|
3873
3873
|
"character": 9
|
|
3874
3874
|
}
|
|
3875
3875
|
],
|
|
@@ -3898,7 +3898,7 @@
|
|
|
3898
3898
|
"sources": [
|
|
3899
3899
|
{
|
|
3900
3900
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
3901
|
-
"line":
|
|
3901
|
+
"line": 489,
|
|
3902
3902
|
"character": 9
|
|
3903
3903
|
}
|
|
3904
3904
|
],
|
|
@@ -3942,7 +3942,7 @@
|
|
|
3942
3942
|
"sources": [
|
|
3943
3943
|
{
|
|
3944
3944
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
3945
|
-
"line":
|
|
3945
|
+
"line": 597,
|
|
3946
3946
|
"character": 9
|
|
3947
3947
|
}
|
|
3948
3948
|
],
|
|
@@ -3986,7 +3986,7 @@
|
|
|
3986
3986
|
"sources": [
|
|
3987
3987
|
{
|
|
3988
3988
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
3989
|
-
"line":
|
|
3989
|
+
"line": 569,
|
|
3990
3990
|
"character": 9
|
|
3991
3991
|
}
|
|
3992
3992
|
],
|
|
@@ -4015,7 +4015,7 @@
|
|
|
4015
4015
|
"sources": [
|
|
4016
4016
|
{
|
|
4017
4017
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
4018
|
-
"line":
|
|
4018
|
+
"line": 457,
|
|
4019
4019
|
"character": 9
|
|
4020
4020
|
}
|
|
4021
4021
|
],
|
|
@@ -4052,7 +4052,7 @@
|
|
|
4052
4052
|
"sources": [
|
|
4053
4053
|
{
|
|
4054
4054
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
4055
|
-
"line":
|
|
4055
|
+
"line": 469,
|
|
4056
4056
|
"character": 9
|
|
4057
4057
|
}
|
|
4058
4058
|
],
|
|
@@ -4089,7 +4089,7 @@
|
|
|
4089
4089
|
"sources": [
|
|
4090
4090
|
{
|
|
4091
4091
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
4092
|
-
"line":
|
|
4092
|
+
"line": 473,
|
|
4093
4093
|
"character": 9
|
|
4094
4094
|
}
|
|
4095
4095
|
],
|
|
@@ -4126,7 +4126,7 @@
|
|
|
4126
4126
|
"sources": [
|
|
4127
4127
|
{
|
|
4128
4128
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
4129
|
-
"line":
|
|
4129
|
+
"line": 575,
|
|
4130
4130
|
"character": 9
|
|
4131
4131
|
}
|
|
4132
4132
|
],
|
|
@@ -4181,7 +4181,7 @@
|
|
|
4181
4181
|
"sources": [
|
|
4182
4182
|
{
|
|
4183
4183
|
"fileName": "projects/lookup/src/modules/autocomplete/autocomplete.component.ts",
|
|
4184
|
-
"line":
|
|
4184
|
+
"line": 588,
|
|
4185
4185
|
"character": 9
|
|
4186
4186
|
}
|
|
4187
4187
|
],
|
|
@@ -4329,7 +4329,7 @@
|
|
|
4329
4329
|
"sources": [
|
|
4330
4330
|
{
|
|
4331
4331
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4332
|
-
"line":
|
|
4332
|
+
"line": 259,
|
|
4333
4333
|
"character": 2
|
|
4334
4334
|
}
|
|
4335
4335
|
],
|
|
@@ -4488,7 +4488,7 @@
|
|
|
4488
4488
|
"sources": [
|
|
4489
4489
|
{
|
|
4490
4490
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4491
|
-
"line":
|
|
4491
|
+
"line": 65,
|
|
4492
4492
|
"character": 9
|
|
4493
4493
|
}
|
|
4494
4494
|
],
|
|
@@ -4508,7 +4508,7 @@
|
|
|
4508
4508
|
"sources": [
|
|
4509
4509
|
{
|
|
4510
4510
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4511
|
-
"line":
|
|
4511
|
+
"line": 158,
|
|
4512
4512
|
"character": 9
|
|
4513
4513
|
}
|
|
4514
4514
|
],
|
|
@@ -4546,7 +4546,7 @@
|
|
|
4546
4546
|
"sources": [
|
|
4547
4547
|
{
|
|
4548
4548
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4549
|
-
"line":
|
|
4549
|
+
"line": 167,
|
|
4550
4550
|
"character": 9
|
|
4551
4551
|
}
|
|
4552
4552
|
],
|
|
@@ -4567,7 +4567,7 @@
|
|
|
4567
4567
|
"sources": [
|
|
4568
4568
|
{
|
|
4569
4569
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4570
|
-
"line":
|
|
4570
|
+
"line": 160,
|
|
4571
4571
|
"character": 9
|
|
4572
4572
|
}
|
|
4573
4573
|
],
|
|
@@ -4589,7 +4589,7 @@
|
|
|
4589
4589
|
"sources": [
|
|
4590
4590
|
{
|
|
4591
4591
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4592
|
-
"line":
|
|
4592
|
+
"line": 221,
|
|
4593
4593
|
"character": 9
|
|
4594
4594
|
}
|
|
4595
4595
|
],
|
|
@@ -4631,7 +4631,7 @@
|
|
|
4631
4631
|
"sources": [
|
|
4632
4632
|
{
|
|
4633
4633
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4634
|
-
"line":
|
|
4634
|
+
"line": 116,
|
|
4635
4635
|
"character": 9
|
|
4636
4636
|
}
|
|
4637
4637
|
],
|
|
@@ -4651,7 +4651,7 @@
|
|
|
4651
4651
|
"sources": [
|
|
4652
4652
|
{
|
|
4653
4653
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4654
|
-
"line":
|
|
4654
|
+
"line": 223,
|
|
4655
4655
|
"character": 9
|
|
4656
4656
|
}
|
|
4657
4657
|
],
|
|
@@ -4671,7 +4671,7 @@
|
|
|
4671
4671
|
"sources": [
|
|
4672
4672
|
{
|
|
4673
4673
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4674
|
-
"line":
|
|
4674
|
+
"line": 162,
|
|
4675
4675
|
"character": 9
|
|
4676
4676
|
}
|
|
4677
4677
|
],
|
|
@@ -4692,7 +4692,7 @@
|
|
|
4692
4692
|
"sources": [
|
|
4693
4693
|
{
|
|
4694
4694
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4695
|
-
"line":
|
|
4695
|
+
"line": 164,
|
|
4696
4696
|
"character": 9
|
|
4697
4697
|
}
|
|
4698
4698
|
],
|
|
@@ -4728,7 +4728,7 @@
|
|
|
4728
4728
|
"sources": [
|
|
4729
4729
|
{
|
|
4730
4730
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4731
|
-
"line":
|
|
4731
|
+
"line": 156,
|
|
4732
4732
|
"character": 9
|
|
4733
4733
|
}
|
|
4734
4734
|
],
|
|
@@ -4770,7 +4770,7 @@
|
|
|
4770
4770
|
"sources": [
|
|
4771
4771
|
{
|
|
4772
4772
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4773
|
-
"line":
|
|
4773
|
+
"line": 74,
|
|
4774
4774
|
"character": 13
|
|
4775
4775
|
}
|
|
4776
4776
|
],
|
|
@@ -4855,7 +4855,7 @@
|
|
|
4855
4855
|
"sources": [
|
|
4856
4856
|
{
|
|
4857
4857
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4858
|
-
"line":
|
|
4858
|
+
"line": 95,
|
|
4859
4859
|
"character": 13
|
|
4860
4860
|
}
|
|
4861
4861
|
],
|
|
@@ -4940,7 +4940,7 @@
|
|
|
4940
4940
|
"sources": [
|
|
4941
4941
|
{
|
|
4942
4942
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4943
|
-
"line":
|
|
4943
|
+
"line": 123,
|
|
4944
4944
|
"character": 13
|
|
4945
4945
|
}
|
|
4946
4946
|
],
|
|
@@ -5013,7 +5013,7 @@
|
|
|
5013
5013
|
"sources": [
|
|
5014
5014
|
{
|
|
5015
5015
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5016
|
-
"line":
|
|
5016
|
+
"line": 169,
|
|
5017
5017
|
"character": 13
|
|
5018
5018
|
}
|
|
5019
5019
|
],
|
|
@@ -5082,7 +5082,7 @@
|
|
|
5082
5082
|
"sources": [
|
|
5083
5083
|
{
|
|
5084
5084
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5085
|
-
"line":
|
|
5085
|
+
"line": 138,
|
|
5086
5086
|
"character": 13
|
|
5087
5087
|
}
|
|
5088
5088
|
],
|
|
@@ -5149,7 +5149,7 @@
|
|
|
5149
5149
|
"sources": [
|
|
5150
5150
|
{
|
|
5151
5151
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5152
|
-
"line":
|
|
5152
|
+
"line": 313,
|
|
5153
5153
|
"character": 9
|
|
5154
5154
|
}
|
|
5155
5155
|
],
|
|
@@ -5186,7 +5186,7 @@
|
|
|
5186
5186
|
"sources": [
|
|
5187
5187
|
{
|
|
5188
5188
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5189
|
-
"line":
|
|
5189
|
+
"line": 363,
|
|
5190
5190
|
"character": 9
|
|
5191
5191
|
}
|
|
5192
5192
|
],
|
|
@@ -5229,7 +5229,7 @@
|
|
|
5229
5229
|
"sources": [
|
|
5230
5230
|
{
|
|
5231
5231
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5232
|
-
"line":
|
|
5232
|
+
"line": 366,
|
|
5233
5233
|
"character": 9
|
|
5234
5234
|
}
|
|
5235
5235
|
],
|
|
@@ -5258,7 +5258,7 @@
|
|
|
5258
5258
|
"sources": [
|
|
5259
5259
|
{
|
|
5260
5260
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5261
|
-
"line":
|
|
5261
|
+
"line": 368,
|
|
5262
5262
|
"character": 9
|
|
5263
5263
|
}
|
|
5264
5264
|
],
|
|
@@ -5341,7 +5341,7 @@
|
|
|
5341
5341
|
"sources": [
|
|
5342
5342
|
{
|
|
5343
5343
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5344
|
-
"line":
|
|
5344
|
+
"line": 372,
|
|
5345
5345
|
"character": 9
|
|
5346
5346
|
}
|
|
5347
5347
|
],
|
|
@@ -5410,7 +5410,7 @@
|
|
|
5410
5410
|
"sources": [
|
|
5411
5411
|
{
|
|
5412
5412
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5413
|
-
"line":
|
|
5413
|
+
"line": 377,
|
|
5414
5414
|
"character": 9
|
|
5415
5415
|
}
|
|
5416
5416
|
],
|
|
@@ -5460,7 +5460,7 @@
|
|
|
5460
5460
|
"sources": [
|
|
5461
5461
|
{
|
|
5462
5462
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5463
|
-
"line":
|
|
5463
|
+
"line": 381,
|
|
5464
5464
|
"character": 9
|
|
5465
5465
|
}
|
|
5466
5466
|
],
|
|
@@ -5514,7 +5514,7 @@
|
|
|
5514
5514
|
"sources": [
|
|
5515
5515
|
{
|
|
5516
5516
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5517
|
-
"line":
|
|
5517
|
+
"line": 395,
|
|
5518
5518
|
"character": 9
|
|
5519
5519
|
}
|
|
5520
5520
|
],
|
|
@@ -5609,7 +5609,7 @@
|
|
|
5609
5609
|
"sources": [
|
|
5610
5610
|
{
|
|
5611
5611
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5612
|
-
"line":
|
|
5612
|
+
"line": 57,
|
|
5613
5613
|
"character": 13
|
|
5614
5614
|
}
|
|
5615
5615
|
],
|
|
@@ -6386,7 +6386,7 @@
|
|
|
6386
6386
|
"typeArguments": [
|
|
6387
6387
|
{
|
|
6388
6388
|
"type": "intrinsic",
|
|
6389
|
-
"name": "
|
|
6389
|
+
"name": "unknown"
|
|
6390
6390
|
}
|
|
6391
6391
|
],
|
|
6392
6392
|
"qualifiedName": "TemplateRef",
|
|
@@ -7000,7 +7000,7 @@
|
|
|
7000
7000
|
"tags": [
|
|
7001
7001
|
{
|
|
7002
7002
|
"tag": "default",
|
|
7003
|
-
"text": "\"
|
|
7003
|
+
"text": "\"multiple\"\n"
|
|
7004
7004
|
}
|
|
7005
7005
|
]
|
|
7006
7006
|
},
|
|
@@ -7023,7 +7023,7 @@
|
|
|
7023
7023
|
"tags": [
|
|
7024
7024
|
{
|
|
7025
7025
|
"tag": "default",
|
|
7026
|
-
"text": "\"
|
|
7026
|
+
"text": "\"multiple\"\n"
|
|
7027
7027
|
}
|
|
7028
7028
|
]
|
|
7029
7029
|
},
|
|
@@ -7210,7 +7210,7 @@
|
|
|
7210
7210
|
"sources": [
|
|
7211
7211
|
{
|
|
7212
7212
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7213
|
-
"line":
|
|
7213
|
+
"line": 431,
|
|
7214
7214
|
"character": 9
|
|
7215
7215
|
}
|
|
7216
7216
|
],
|
|
@@ -7239,7 +7239,7 @@
|
|
|
7239
7239
|
"sources": [
|
|
7240
7240
|
{
|
|
7241
7241
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7242
|
-
"line":
|
|
7242
|
+
"line": 440,
|
|
7243
7243
|
"character": 9
|
|
7244
7244
|
}
|
|
7245
7245
|
],
|
|
@@ -7294,7 +7294,7 @@
|
|
|
7294
7294
|
"sources": [
|
|
7295
7295
|
{
|
|
7296
7296
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7297
|
-
"line":
|
|
7297
|
+
"line": 462,
|
|
7298
7298
|
"character": 9
|
|
7299
7299
|
}
|
|
7300
7300
|
],
|
|
@@ -7521,7 +7521,7 @@
|
|
|
7521
7521
|
"sources": [
|
|
7522
7522
|
{
|
|
7523
7523
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7524
|
-
"line":
|
|
7524
|
+
"line": 407,
|
|
7525
7525
|
"character": 9
|
|
7526
7526
|
}
|
|
7527
7527
|
],
|
|
@@ -7566,7 +7566,7 @@
|
|
|
7566
7566
|
"sources": [
|
|
7567
7567
|
{
|
|
7568
7568
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7569
|
-
"line":
|
|
7569
|
+
"line": 619,
|
|
7570
7570
|
"character": 9
|
|
7571
7571
|
}
|
|
7572
7572
|
],
|
|
@@ -7609,7 +7609,7 @@
|
|
|
7609
7609
|
"sources": [
|
|
7610
7610
|
{
|
|
7611
7611
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7612
|
-
"line":
|
|
7612
|
+
"line": 488,
|
|
7613
7613
|
"character": 9
|
|
7614
7614
|
}
|
|
7615
7615
|
],
|
|
@@ -7638,7 +7638,7 @@
|
|
|
7638
7638
|
"sources": [
|
|
7639
7639
|
{
|
|
7640
7640
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7641
|
-
"line":
|
|
7641
|
+
"line": 508,
|
|
7642
7642
|
"character": 9
|
|
7643
7643
|
}
|
|
7644
7644
|
],
|
|
@@ -7798,7 +7798,7 @@
|
|
|
7798
7798
|
"sources": [
|
|
7799
7799
|
{
|
|
7800
7800
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7801
|
-
"line":
|
|
7801
|
+
"line": 409,
|
|
7802
7802
|
"character": 9
|
|
7803
7803
|
}
|
|
7804
7804
|
],
|
|
@@ -7827,7 +7827,7 @@
|
|
|
7827
7827
|
"sources": [
|
|
7828
7828
|
{
|
|
7829
7829
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7830
|
-
"line":
|
|
7830
|
+
"line": 573,
|
|
7831
7831
|
"character": 9
|
|
7832
7832
|
}
|
|
7833
7833
|
],
|
|
@@ -7869,7 +7869,7 @@
|
|
|
7869
7869
|
"sources": [
|
|
7870
7870
|
{
|
|
7871
7871
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7872
|
-
"line":
|
|
7872
|
+
"line": 411,
|
|
7873
7873
|
"character": 9
|
|
7874
7874
|
}
|
|
7875
7875
|
],
|
|
@@ -7951,7 +7951,7 @@
|
|
|
7951
7951
|
"sources": [
|
|
7952
7952
|
{
|
|
7953
7953
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
7954
|
-
"line":
|
|
7954
|
+
"line": 415,
|
|
7955
7955
|
"character": 9
|
|
7956
7956
|
}
|
|
7957
7957
|
],
|
|
@@ -8020,7 +8020,7 @@
|
|
|
8020
8020
|
"sources": [
|
|
8021
8021
|
{
|
|
8022
8022
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
8023
|
-
"line":
|
|
8023
|
+
"line": 420,
|
|
8024
8024
|
"character": 9
|
|
8025
8025
|
}
|
|
8026
8026
|
],
|
|
@@ -8070,7 +8070,7 @@
|
|
|
8070
8070
|
"sources": [
|
|
8071
8071
|
{
|
|
8072
8072
|
"fileName": "projects/lookup/src/modules/lookup/lookup.component.ts",
|
|
8073
|
-
"line":
|
|
8073
|
+
"line": 400,
|
|
8074
8074
|
"character": 9
|
|
8075
8075
|
}
|
|
8076
8076
|
],
|
|
@@ -8984,7 +8984,7 @@
|
|
|
8984
8984
|
"typeArguments": [
|
|
8985
8985
|
{
|
|
8986
8986
|
"type": "intrinsic",
|
|
8987
|
-
"name": "
|
|
8987
|
+
"name": "unknown"
|
|
8988
8988
|
}
|
|
8989
8989
|
],
|
|
8990
8990
|
"qualifiedName": "TemplateRef",
|
|
@@ -9332,7 +9332,7 @@
|
|
|
9332
9332
|
{
|
|
9333
9333
|
"fileName": "autocomplete-demo.component.html",
|
|
9334
9334
|
"filePath": "/projects/lookup/documentation/code-examples/autocomplete/advanced/autocomplete-demo.component.html",
|
|
9335
|
-
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <div class=\"sky-margin-stacked-
|
|
9335
|
+
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <div class=\"sky-margin-stacked-lg\">\n The following field:<br />\n <ul>\n <li>utilizes a custom search result template,</li>\n <li>searches against the name and description properties,</li>\n <li>limits the search results to two,</li>\n <li>runs the search if the query is at least three characters long,</li>\n <li>and fires an event when a selection is made.</li>\n </ul>\n </div>\n\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"planetInput.id\">\n Farthest planet from the sun\n </label>\n <sky-autocomplete\n [data]=\"planets\"\n [propertiesToSearch]=\"['name', 'description']\"\n [searchResultsLimit]=\"2\"\n [searchResultTemplate]=\"planetSearchResultTemplate\"\n [searchTextMinimumCharacters]=\"3\"\n (selectionChange)=\"onPlanetSelection($event)\"\n >\n <input\n formControlName=\"farthestPlanet\"\n skyAutocomplete\n skyId\n type=\"text\"\n #planetInput\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-font-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n\n<ng-template let-item=\"item\" #planetSearchResultTemplate>\n <strong>\n {{ item.name }}\n </strong>\n <br />\n {{ item.description }}\n</ng-template>\n"
|
|
9336
9336
|
},
|
|
9337
9337
|
{
|
|
9338
9338
|
"fileName": "autocomplete-demo.component.ts",
|
|
@@ -9347,7 +9347,7 @@
|
|
|
9347
9347
|
{
|
|
9348
9348
|
"fileName": "autocomplete-demo.component.html",
|
|
9349
9349
|
"filePath": "/projects/lookup/documentation/code-examples/autocomplete/basic/autocomplete-demo.component.html",
|
|
9350
|
-
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"favoriteColorInput.id\">\n Favorite color\n </label>\n <sky-autocomplete [data]=\"colors\">\n <input\n formControlName=\"favoriteColor\"\n id=\"my-autocomplete-reactive-basic\"\n type=\"text\"\n skyAutocomplete\n skyId\n #favoriteColorInput\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n"
|
|
9350
|
+
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"favoriteColorInput.id\">\n Favorite color\n </label>\n <sky-autocomplete [data]=\"colors\">\n <input\n formControlName=\"favoriteColor\"\n id=\"my-autocomplete-reactive-basic\"\n type=\"text\"\n skyAutocomplete\n skyId\n #favoriteColorInput\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-font-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n"
|
|
9351
9351
|
},
|
|
9352
9352
|
{
|
|
9353
9353
|
"fileName": "autocomplete-demo.component.ts",
|
|
@@ -9362,7 +9362,7 @@
|
|
|
9362
9362
|
{
|
|
9363
9363
|
"fileName": "autocomplete-demo.component.html",
|
|
9364
9364
|
"filePath": "/projects/lookup/documentation/code-examples/autocomplete/custom-search/autocomplete-demo.component.html",
|
|
9365
|
-
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <p>\n The following field has a preselected value and utilizes a custom search\n function, as well as a custom template for the search results.\n </p>\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"largestOceanInput.id\">\n Largest ocean\n </label>\n <sky-autocomplete\n descriptorProperty=\"title\"\n [data]=\"oceans\"\n [search]=\"getOceanSearchFunction()\"\n [searchResultTemplate]=\"oceanSearchResultTemplate\"\n >\n <input\n formControlName=\"largestOcean\"\n type=\"text\"\n skyAutocomplete\n skyId\n #largestOceanInput=\"skyId\"\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n\n<ng-template let-item=\"item\" #oceanSearchResultTemplate>\n <sky-icon icon=\"long-arrow-right\"></sky-icon>\n {{ item.title }} • ID {{ item.id }}\n</ng-template>\n"
|
|
9365
|
+
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <p>\n The following field has a preselected value and utilizes a custom search\n function, as well as a custom template for the search results.\n </p>\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"largestOceanInput.id\">\n Largest ocean\n </label>\n <sky-autocomplete\n descriptorProperty=\"title\"\n [data]=\"oceans\"\n [search]=\"getOceanSearchFunction()\"\n [searchResultTemplate]=\"oceanSearchResultTemplate\"\n >\n <input\n formControlName=\"largestOcean\"\n type=\"text\"\n skyAutocomplete\n skyId\n #largestOceanInput=\"skyId\"\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-font-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n\n<ng-template let-item=\"item\" #oceanSearchResultTemplate>\n <sky-icon icon=\"long-arrow-right\"></sky-icon>\n {{ item.title }} • ID {{ item.id }}\n</ng-template>\n"
|
|
9366
9366
|
},
|
|
9367
9367
|
{
|
|
9368
9368
|
"fileName": "autocomplete-demo.component.ts",
|
|
@@ -9377,7 +9377,7 @@
|
|
|
9377
9377
|
{
|
|
9378
9378
|
"fileName": "autocomplete-demo.component.html",
|
|
9379
9379
|
"filePath": "/projects/lookup/documentation/code-examples/autocomplete/search-filters/autocomplete-demo.component.html",
|
|
9380
|
-
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <p>\n The following field provides a custom function that filters the data before\n every search attempt.\n </p>\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"favoriteColorInput.id\">\n Color (\"Red\" is not available)\n </label>\n <sky-autocomplete [data]=\"colors\" [searchFilters]=\"searchFilters\">\n <input\n formControlName=\"favoriteColor\"\n skyAutocomplete\n skyId\n type=\"text\"\n #favoriteColorInput=\"skyId\"\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n"
|
|
9380
|
+
"rawContents": "<form novalidate [formGroup]=\"myForm\">\n <p>\n The following field provides a custom function that filters the data before\n every search attempt.\n </p>\n <div class=\"sky-form-group\">\n <label class=\"sky-control-label\" [for]=\"favoriteColorInput.id\">\n Color (\"Red\" is not available)\n </label>\n <sky-autocomplete [data]=\"colors\" [searchFilters]=\"searchFilters\">\n <input\n formControlName=\"favoriteColor\"\n skyAutocomplete\n skyId\n type=\"text\"\n #favoriteColorInput=\"skyId\"\n />\n </sky-autocomplete>\n </div>\n <p class=\"sky-font-emphasized\">Form model:</p>\n <pre>{{ myForm.value | json }}</pre>\n</form>\n"
|
|
9381
9381
|
},
|
|
9382
9382
|
{
|
|
9383
9383
|
"fileName": "autocomplete-demo.component.ts",
|
|
@@ -9437,7 +9437,7 @@
|
|
|
9437
9437
|
{
|
|
9438
9438
|
"fileName": "lookup-custom-picker-demo.component.html",
|
|
9439
9439
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo.component.html",
|
|
9440
|
-
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #namesLabel=\"skyId\">\n Favorite names\n </label>\n <sky-lookup\n formControlName=\"names\"\n [ariaLabelledBy]=\"namesLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [showAddButton]=\"true\"\n [showMoreConfig]=\"showMoreConfig\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
|
|
9440
|
+
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #namesLabel=\"skyId\">\n Favorite names\n </label>\n <sky-lookup\n formControlName=\"names\"\n (addClick)=\"onAddButtonClicked()\"\n [ariaLabelledBy]=\"namesLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [showAddButton]=\"true\"\n [showMoreConfig]=\"showMoreConfig\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
|
|
9441
9441
|
},
|
|
9442
9442
|
{
|
|
9443
9443
|
"fileName": "lookup-custom-picker-demo.component.scss",
|
|
@@ -9447,7 +9447,7 @@
|
|
|
9447
9447
|
{
|
|
9448
9448
|
"fileName": "lookup-custom-picker-demo.component.ts",
|
|
9449
9449
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo.component.ts",
|
|
9450
|
-
"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"
|
|
9450
|
+
"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 onAddButtonClicked(): void {\n alert('Add button clicked!');\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"
|
|
9451
9451
|
},
|
|
9452
9452
|
{
|
|
9453
9453
|
"fileName": "lookup-custom-picker-demo.module.ts",
|
|
@@ -9457,7 +9457,7 @@
|
|
|
9457
9457
|
{
|
|
9458
9458
|
"fileName": "lookup-multiple-demo.component.html",
|
|
9459
9459
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/multi-select/lookup-multiple-demo.component.html",
|
|
9460
|
-
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #namesLabel=\"skyId\">\n Favorite names\n </label>\n <sky-lookup\n formControlName=\"names\"\n [ariaLabelledBy]=\"namesLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [showAddButton]=\"true\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
|
|
9460
|
+
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #namesLabel=\"skyId\">\n Favorite names\n </label>\n <sky-lookup\n formControlName=\"names\"\n (addClick)=\"onAddButtonClicked()\"\n [ariaLabelledBy]=\"namesLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [showAddButton]=\"true\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
|
|
9461
9461
|
},
|
|
9462
9462
|
{
|
|
9463
9463
|
"fileName": "lookup-multiple-demo.component.scss",
|
|
@@ -9467,7 +9467,7 @@
|
|
|
9467
9467
|
{
|
|
9468
9468
|
"fileName": "lookup-multiple-demo.component.ts",
|
|
9469
9469
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/multi-select/lookup-multiple-demo.component.ts",
|
|
9470
|
-
"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"
|
|
9470
|
+
"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 onAddButtonClicked(): void {\n alert('Add button clicked!');\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"
|
|
9471
9471
|
},
|
|
9472
9472
|
{
|
|
9473
9473
|
"fileName": "lookup-multiple-demo.module.ts",
|
|
@@ -9477,7 +9477,7 @@
|
|
|
9477
9477
|
{
|
|
9478
9478
|
"fileName": "lookup-result-templates-demo.component.html",
|
|
9479
9479
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/result-templates/lookup-result-templates-demo.component.html",
|
|
9480
|
-
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #namesLabel=\"skyId\">\n Favorite names\n </label>\n <sky-lookup\n formControlName=\"names\"\n [ariaLabelledBy]=\"namesLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [searchResultTemplate]=\"dropdownItemTemplate\"\n [showAddButton]=\"true\"\n [showMoreConfig]=\"showMoreConfig\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n\n<ng-template let-item=\"item\" #dropdownItemTemplate>\n <strong>{{ item.name }}</strong\n ><br />\n {{ item.formal }}\n</ng-template>\n<ng-template let-item=\"item\" #modalItemTemplate>\n {{ item.name }}<br />\n <i>{{ item.formal }}</i>\n</ng-template>\n"
|
|
9480
|
+
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #namesLabel=\"skyId\">\n Favorite names\n </label>\n <sky-lookup\n formControlName=\"names\"\n (addClick)=\"onAddButtonClicked()\"\n [ariaLabelledBy]=\"namesLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [searchResultTemplate]=\"dropdownItemTemplate\"\n [showAddButton]=\"true\"\n [showMoreConfig]=\"showMoreConfig\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n\n<ng-template let-item=\"item\" #dropdownItemTemplate>\n <strong>{{ item.name }}</strong\n ><br />\n {{ item.formal }}\n</ng-template>\n<ng-template let-item=\"item\" #modalItemTemplate>\n {{ item.name }}<br />\n <i>{{ item.formal }}</i>\n</ng-template>\n"
|
|
9481
9481
|
},
|
|
9482
9482
|
{
|
|
9483
9483
|
"fileName": "lookup-result-templates-demo.component.scss",
|
|
@@ -9487,7 +9487,7 @@
|
|
|
9487
9487
|
{
|
|
9488
9488
|
"fileName": "lookup-result-templates-demo.component.ts",
|
|
9489
9489
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/result-templates/lookup-result-templates-demo.component.ts",
|
|
9490
|
-
"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<
|
|
9490
|
+
"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<unknown>) {\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 onAddButtonClicked(): void {\n alert('Add button clicked!');\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"
|
|
9491
9491
|
},
|
|
9492
9492
|
{
|
|
9493
9493
|
"fileName": "lookup-result-templates-demo.module.ts",
|
|
@@ -9497,7 +9497,7 @@
|
|
|
9497
9497
|
{
|
|
9498
9498
|
"fileName": "lookup-single-demo.component.html",
|
|
9499
9499
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/single-select/lookup-single-demo.component.html",
|
|
9500
|
-
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #nameLabel=\"skyId\">\n Favorite name\n </label>\n <sky-lookup\n formControlName=\"name\"\n selectMode=\"single\"\n [ariaLabelledBy]=\"nameLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [showAddButton]=\"true\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
|
|
9500
|
+
"rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #nameLabel=\"skyId\">\n Favorite name\n </label>\n <sky-lookup\n formControlName=\"name\"\n selectMode=\"single\"\n (addClick)=\"onAddButtonClicked()\"\n [ariaLabelledBy]=\"nameLabel.id\"\n [data]=\"people\"\n [enableShowMore]=\"true\"\n [searchFilters]=\"getSearchFilters()\"\n [showAddButton]=\"true\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
|
|
9501
9501
|
},
|
|
9502
9502
|
{
|
|
9503
9503
|
"fileName": "lookup-single-demo.component.scss",
|
|
@@ -9507,7 +9507,7 @@
|
|
|
9507
9507
|
{
|
|
9508
9508
|
"fileName": "lookup-single-demo.component.ts",
|
|
9509
9509
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/single-select/lookup-single-demo.component.ts",
|
|
9510
|
-
"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"
|
|
9510
|
+
"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 onAddButtonClicked(): void {\n alert('Add button clicked!');\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"
|
|
9511
9511
|
},
|
|
9512
9512
|
{
|
|
9513
9513
|
"fileName": "lookup-single-demo.module.ts",
|