@skyux/lookup 5.2.1 → 5.2.2
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/bundles/skyux-lookup.umd.js +10 -9
- package/documentation.json +60 -34
- package/esm2015/modules/autocomplete/autocomplete.component.js +3 -3
- package/esm2015/modules/country-field/country-field.component.js +3 -2
- package/esm2015/modules/lookup/lookup-autocomplete-adapter.js +3 -3
- package/esm2015/modules/lookup/types/lookup-show-more-native-picker-config.js +1 -1
- package/esm2015/modules/search/search.component.js +5 -5
- package/fesm2015/skyux-lookup.js +10 -9
- package/fesm2015/skyux-lookup.js.map +1 -1
- package/modules/autocomplete/autocomplete.component.d.ts +3 -3
- package/modules/country-field/country-field.component.d.ts +3 -2
- package/modules/lookup/lookup-autocomplete-adapter.d.ts +2 -2
- package/modules/lookup/types/lookup-show-more-native-picker-config.d.ts +1 -1
- package/modules/search/search.component.d.ts +5 -5
- package/package.json +4 -4
|
@@ -944,7 +944,7 @@
|
|
|
944
944
|
/**
|
|
945
945
|
* Specifies an object property to display in the text input after users
|
|
946
946
|
* select an item in the dropdown list.
|
|
947
|
-
* @default name
|
|
947
|
+
* @default "name"
|
|
948
948
|
*/
|
|
949
949
|
set: function (value) {
|
|
950
950
|
this._descriptorProperty = value;
|
|
@@ -973,7 +973,7 @@
|
|
|
973
973
|
},
|
|
974
974
|
/**
|
|
975
975
|
* Specifies the object properties to search.
|
|
976
|
-
* @default [
|
|
976
|
+
* @default ["name"]
|
|
977
977
|
*/
|
|
978
978
|
set: function (value) {
|
|
979
979
|
this._propertiesToSearch = value;
|
|
@@ -1736,7 +1736,7 @@
|
|
|
1736
1736
|
* Specifies the [International Organization for Standardization Alpha 2](https://www.nationsonline.org/oneworld/country_code_list.htm)
|
|
1737
1737
|
* country code for the default country.
|
|
1738
1738
|
* When search results include the default country, it appears at the top of the list.
|
|
1739
|
-
* @default us
|
|
1739
|
+
* @default "us"
|
|
1740
1740
|
*/
|
|
1741
1741
|
set: function (value) {
|
|
1742
1742
|
var _this = this;
|
|
@@ -1755,6 +1755,7 @@
|
|
|
1755
1755
|
},
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Indicates whether to disable the country field.
|
|
1758
|
+
* @default false
|
|
1758
1759
|
*/
|
|
1759
1760
|
set: function (isDisabled) {
|
|
1760
1761
|
this.removeEventListeners();
|
|
@@ -2160,7 +2161,7 @@
|
|
|
2160
2161
|
/**
|
|
2161
2162
|
* Specifies an object property to display in the text input after users
|
|
2162
2163
|
* select an item in the dropdown list.
|
|
2163
|
-
* @default name
|
|
2164
|
+
* @default "name"
|
|
2164
2165
|
*/
|
|
2165
2166
|
set: function (value) {
|
|
2166
2167
|
this._descriptorProperty = value;
|
|
@@ -2174,7 +2175,7 @@
|
|
|
2174
2175
|
},
|
|
2175
2176
|
/**
|
|
2176
2177
|
* Specifies an array of object properties to search.
|
|
2177
|
-
* @default [
|
|
2178
|
+
* @default ["name"]
|
|
2178
2179
|
*/
|
|
2179
2180
|
set: function (value) {
|
|
2180
2181
|
this._propertiesToSearch = value;
|
|
@@ -2329,10 +2330,10 @@
|
|
|
2329
2330
|
this.searchClear = new i0.EventEmitter();
|
|
2330
2331
|
/**
|
|
2331
2332
|
* Specifies the expand mode for the search input. The valid options
|
|
2332
|
-
* include `responsive` to collapse the search input into a button on
|
|
2333
|
-
* mobile devices, `none` to *not* collapse the search input on mobile
|
|
2334
|
-
* devices, and `fit` to extend the search input to fit the width of its container.
|
|
2335
|
-
* @default responsive
|
|
2333
|
+
* include `"responsive"` to collapse the search input into a button on
|
|
2334
|
+
* mobile devices, `"none"` to *not* collapse the search input on mobile
|
|
2335
|
+
* devices, and `"fit"` to extend the search input to fit the width of its container.
|
|
2336
|
+
* @default "responsive"
|
|
2336
2337
|
*/
|
|
2337
2338
|
this.expandMode = EXPAND_MODE_RESPONSIVE;
|
|
2338
2339
|
/**
|
package/documentation.json
CHANGED
|
@@ -587,11 +587,11 @@
|
|
|
587
587
|
"isPublic": true
|
|
588
588
|
},
|
|
589
589
|
"comment": {
|
|
590
|
-
"shortText": "Specifies the expand mode for the search input. The valid options\ninclude
|
|
590
|
+
"shortText": "Specifies the expand mode for the search input. The valid options\ninclude `\"responsive\"` to collapse the search input into a button on\nmobile devices, `\"none\"` to *not* collapse the search input on mobile\ndevices, and `\"fit\"` to extend the search input to fit the width of its container.",
|
|
591
591
|
"tags": [
|
|
592
592
|
{
|
|
593
593
|
"tag": "default",
|
|
594
|
-
"text": "responsive\n"
|
|
594
|
+
"text": "\"responsive\"\n"
|
|
595
595
|
}
|
|
596
596
|
]
|
|
597
597
|
},
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
"tags": [
|
|
716
716
|
{
|
|
717
717
|
"tag": "default",
|
|
718
|
-
"text": "Find in this list\n"
|
|
718
|
+
"text": "\"Find in this list\"\n"
|
|
719
719
|
}
|
|
720
720
|
]
|
|
721
721
|
},
|
|
@@ -2865,7 +2865,7 @@
|
|
|
2865
2865
|
"tags": [
|
|
2866
2866
|
{
|
|
2867
2867
|
"tag": "default",
|
|
2868
|
-
"text": "No matches found\n"
|
|
2868
|
+
"text": "\"No matches found\"\n"
|
|
2869
2869
|
}
|
|
2870
2870
|
]
|
|
2871
2871
|
},
|
|
@@ -3253,7 +3253,7 @@
|
|
|
3253
3253
|
"tags": [
|
|
3254
3254
|
{
|
|
3255
3255
|
"tag": "default",
|
|
3256
|
-
"text": "name\n"
|
|
3256
|
+
"text": "\"name\"\n"
|
|
3257
3257
|
}
|
|
3258
3258
|
]
|
|
3259
3259
|
},
|
|
@@ -3365,7 +3365,7 @@
|
|
|
3365
3365
|
"tags": [
|
|
3366
3366
|
{
|
|
3367
3367
|
"tag": "default",
|
|
3368
|
-
"text": "[
|
|
3368
|
+
"text": "[\"name\"]\n"
|
|
3369
3369
|
}
|
|
3370
3370
|
]
|
|
3371
3371
|
},
|
|
@@ -4263,7 +4263,7 @@
|
|
|
4263
4263
|
"sources": [
|
|
4264
4264
|
{
|
|
4265
4265
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4266
|
-
"line":
|
|
4266
|
+
"line": 268,
|
|
4267
4267
|
"character": 2
|
|
4268
4268
|
}
|
|
4269
4269
|
],
|
|
@@ -4393,7 +4393,7 @@
|
|
|
4393
4393
|
"tags": [
|
|
4394
4394
|
{
|
|
4395
4395
|
"tag": "default",
|
|
4396
|
-
"text": "
|
|
4396
|
+
"text": "\"off\"\n"
|
|
4397
4397
|
}
|
|
4398
4398
|
]
|
|
4399
4399
|
},
|
|
@@ -4430,7 +4430,7 @@
|
|
|
4430
4430
|
"sources": [
|
|
4431
4431
|
{
|
|
4432
4432
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4433
|
-
"line":
|
|
4433
|
+
"line": 167,
|
|
4434
4434
|
"character": 9
|
|
4435
4435
|
}
|
|
4436
4436
|
],
|
|
@@ -4466,7 +4466,7 @@
|
|
|
4466
4466
|
"sources": [
|
|
4467
4467
|
{
|
|
4468
4468
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4469
|
-
"line":
|
|
4469
|
+
"line": 176,
|
|
4470
4470
|
"character": 9
|
|
4471
4471
|
}
|
|
4472
4472
|
],
|
|
@@ -4487,7 +4487,7 @@
|
|
|
4487
4487
|
"sources": [
|
|
4488
4488
|
{
|
|
4489
4489
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4490
|
-
"line":
|
|
4490
|
+
"line": 169,
|
|
4491
4491
|
"character": 9
|
|
4492
4492
|
}
|
|
4493
4493
|
],
|
|
@@ -4507,7 +4507,7 @@
|
|
|
4507
4507
|
"sources": [
|
|
4508
4508
|
{
|
|
4509
4509
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4510
|
-
"line":
|
|
4510
|
+
"line": 230,
|
|
4511
4511
|
"character": 9
|
|
4512
4512
|
}
|
|
4513
4513
|
],
|
|
@@ -4547,7 +4547,7 @@
|
|
|
4547
4547
|
"sources": [
|
|
4548
4548
|
{
|
|
4549
4549
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4550
|
-
"line":
|
|
4550
|
+
"line": 125,
|
|
4551
4551
|
"character": 9
|
|
4552
4552
|
}
|
|
4553
4553
|
],
|
|
@@ -4581,7 +4581,7 @@
|
|
|
4581
4581
|
"sources": [
|
|
4582
4582
|
{
|
|
4583
4583
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4584
|
-
"line":
|
|
4584
|
+
"line": 232,
|
|
4585
4585
|
"character": 9
|
|
4586
4586
|
}
|
|
4587
4587
|
],
|
|
@@ -4601,7 +4601,7 @@
|
|
|
4601
4601
|
"sources": [
|
|
4602
4602
|
{
|
|
4603
4603
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4604
|
-
"line":
|
|
4604
|
+
"line": 171,
|
|
4605
4605
|
"character": 9
|
|
4606
4606
|
}
|
|
4607
4607
|
],
|
|
@@ -4622,7 +4622,7 @@
|
|
|
4622
4622
|
"sources": [
|
|
4623
4623
|
{
|
|
4624
4624
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4625
|
-
"line":
|
|
4625
|
+
"line": 373,
|
|
4626
4626
|
"character": 9
|
|
4627
4627
|
}
|
|
4628
4628
|
],
|
|
@@ -4643,7 +4643,7 @@
|
|
|
4643
4643
|
"sources": [
|
|
4644
4644
|
{
|
|
4645
4645
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4646
|
-
"line":
|
|
4646
|
+
"line": 376,
|
|
4647
4647
|
"character": 9
|
|
4648
4648
|
}
|
|
4649
4649
|
],
|
|
@@ -4664,7 +4664,7 @@
|
|
|
4664
4664
|
"sources": [
|
|
4665
4665
|
{
|
|
4666
4666
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4667
|
-
"line":
|
|
4667
|
+
"line": 173,
|
|
4668
4668
|
"character": 9
|
|
4669
4669
|
}
|
|
4670
4670
|
],
|
|
@@ -4698,7 +4698,7 @@
|
|
|
4698
4698
|
"sources": [
|
|
4699
4699
|
{
|
|
4700
4700
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4701
|
-
"line":
|
|
4701
|
+
"line": 165,
|
|
4702
4702
|
"character": 9
|
|
4703
4703
|
}
|
|
4704
4704
|
],
|
|
@@ -4768,7 +4768,7 @@
|
|
|
4768
4768
|
"tags": [
|
|
4769
4769
|
{
|
|
4770
4770
|
"tag": "default",
|
|
4771
|
-
"text": "us\n"
|
|
4771
|
+
"text": "\"us\"\n"
|
|
4772
4772
|
}
|
|
4773
4773
|
]
|
|
4774
4774
|
},
|
|
@@ -4813,7 +4813,7 @@
|
|
|
4813
4813
|
"sources": [
|
|
4814
4814
|
{
|
|
4815
4815
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4816
|
-
"line":
|
|
4816
|
+
"line": 104,
|
|
4817
4817
|
"character": 13
|
|
4818
4818
|
}
|
|
4819
4819
|
],
|
|
@@ -4841,7 +4841,13 @@
|
|
|
4841
4841
|
"kindString": "Set signature",
|
|
4842
4842
|
"flags": {},
|
|
4843
4843
|
"comment": {
|
|
4844
|
-
"shortText": "Indicates whether to disable the country field."
|
|
4844
|
+
"shortText": "Indicates whether to disable the country field.",
|
|
4845
|
+
"tags": [
|
|
4846
|
+
{
|
|
4847
|
+
"tag": "default",
|
|
4848
|
+
"text": "false\n"
|
|
4849
|
+
}
|
|
4850
|
+
]
|
|
4845
4851
|
},
|
|
4846
4852
|
"parameters": [
|
|
4847
4853
|
{
|
|
@@ -4884,7 +4890,7 @@
|
|
|
4884
4890
|
"sources": [
|
|
4885
4891
|
{
|
|
4886
4892
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4887
|
-
"line":
|
|
4893
|
+
"line": 132,
|
|
4888
4894
|
"character": 13
|
|
4889
4895
|
}
|
|
4890
4896
|
],
|
|
@@ -4951,7 +4957,7 @@
|
|
|
4951
4957
|
"sources": [
|
|
4952
4958
|
{
|
|
4953
4959
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
4954
|
-
"line":
|
|
4960
|
+
"line": 178,
|
|
4955
4961
|
"character": 13
|
|
4956
4962
|
}
|
|
4957
4963
|
],
|
|
@@ -5018,7 +5024,7 @@
|
|
|
5018
5024
|
"sources": [
|
|
5019
5025
|
{
|
|
5020
5026
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5021
|
-
"line":
|
|
5027
|
+
"line": 147,
|
|
5022
5028
|
"character": 13
|
|
5023
5029
|
}
|
|
5024
5030
|
],
|
|
@@ -5085,7 +5091,7 @@
|
|
|
5085
5091
|
"sources": [
|
|
5086
5092
|
{
|
|
5087
5093
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5088
|
-
"line":
|
|
5094
|
+
"line": 323,
|
|
5089
5095
|
"character": 9
|
|
5090
5096
|
}
|
|
5091
5097
|
],
|
|
@@ -5122,7 +5128,7 @@
|
|
|
5122
5128
|
"sources": [
|
|
5123
5129
|
{
|
|
5124
5130
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5125
|
-
"line":
|
|
5131
|
+
"line": 378,
|
|
5126
5132
|
"character": 9
|
|
5127
5133
|
}
|
|
5128
5134
|
],
|
|
@@ -5204,7 +5210,7 @@
|
|
|
5204
5210
|
"sources": [
|
|
5205
5211
|
{
|
|
5206
5212
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5207
|
-
"line":
|
|
5213
|
+
"line": 382,
|
|
5208
5214
|
"character": 9
|
|
5209
5215
|
}
|
|
5210
5216
|
],
|
|
@@ -5273,7 +5279,7 @@
|
|
|
5273
5279
|
"sources": [
|
|
5274
5280
|
{
|
|
5275
5281
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5276
|
-
"line":
|
|
5282
|
+
"line": 387,
|
|
5277
5283
|
"character": 9
|
|
5278
5284
|
}
|
|
5279
5285
|
],
|
|
@@ -5323,7 +5329,7 @@
|
|
|
5323
5329
|
"sources": [
|
|
5324
5330
|
{
|
|
5325
5331
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5326
|
-
"line":
|
|
5332
|
+
"line": 391,
|
|
5327
5333
|
"character": 9
|
|
5328
5334
|
}
|
|
5329
5335
|
],
|
|
@@ -5373,7 +5379,7 @@
|
|
|
5373
5379
|
"sources": [
|
|
5374
5380
|
{
|
|
5375
5381
|
"fileName": "projects/lookup/src/modules/country-field/country-field.component.ts",
|
|
5376
|
-
"line":
|
|
5382
|
+
"line": 405,
|
|
5377
5383
|
"character": 9
|
|
5378
5384
|
}
|
|
5379
5385
|
],
|
|
@@ -6535,7 +6541,7 @@
|
|
|
6535
6541
|
"tags": [
|
|
6536
6542
|
{
|
|
6537
6543
|
"tag": "default",
|
|
6538
|
-
"text": "name\n"
|
|
6544
|
+
"text": "\"name\"\n"
|
|
6539
6545
|
}
|
|
6540
6546
|
]
|
|
6541
6547
|
},
|
|
@@ -6615,7 +6621,7 @@
|
|
|
6615
6621
|
"tags": [
|
|
6616
6622
|
{
|
|
6617
6623
|
"tag": "default",
|
|
6618
|
-
"text": "[
|
|
6624
|
+
"text": "[\"name\"]\n"
|
|
6619
6625
|
}
|
|
6620
6626
|
]
|
|
6621
6627
|
},
|
|
@@ -8733,7 +8739,7 @@
|
|
|
8733
8739
|
"tags": [
|
|
8734
8740
|
{
|
|
8735
8741
|
"tag": "default",
|
|
8736
|
-
"text": "
|
|
8742
|
+
"text": "\"Select an option/Select options\"\n"
|
|
8737
8743
|
}
|
|
8738
8744
|
]
|
|
8739
8745
|
},
|
|
@@ -9130,6 +9136,26 @@
|
|
|
9130
9136
|
"filePath": "/projects/lookup/documentation/code-examples/country-field/basic/country-field-demo.module.ts",
|
|
9131
9137
|
"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"
|
|
9132
9138
|
},
|
|
9139
|
+
{
|
|
9140
|
+
"fileName": "lookup-async-demo.component.html",
|
|
9141
|
+
"filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.html",
|
|
9142
|
+
"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 [searchFilters]=\"getSearchFilters()\"\n (searchAsync)=\"searchAsync($event)\"\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"
|
|
9143
|
+
},
|
|
9144
|
+
{
|
|
9145
|
+
"fileName": "lookup-async-demo.component.scss",
|
|
9146
|
+
"filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.scss",
|
|
9147
|
+
"rawContents": ".lookup-demo-alert {\n padding: 10px;\n margin-bottom: 10px;\n border: 1px solid #cdcfd2;\n border-radius: 3px;\n}\n\n.lookup-demo-alert pre {\n margin: 0;\n}\n"
|
|
9148
|
+
},
|
|
9149
|
+
{
|
|
9150
|
+
"fileName": "lookup-async-demo.component.ts",
|
|
9151
|
+
"filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.ts",
|
|
9152
|
+
"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"
|
|
9153
|
+
},
|
|
9154
|
+
{
|
|
9155
|
+
"fileName": "lookup-async-demo.module.ts",
|
|
9156
|
+
"filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.module.ts",
|
|
9157
|
+
"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"
|
|
9158
|
+
},
|
|
9133
9159
|
{
|
|
9134
9160
|
"fileName": "lookup-custom-picker-demo-modal.component.html",
|
|
9135
9161
|
"filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo-modal.component.html",
|