@skyux/lookup 13.0.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -531,8 +531,10 @@ let uniqueId$1 = 0;
531
531
  class SkyAutocompleteComponent {
532
532
  /**
533
533
  * The static data source for the autocomplete component to search
534
- * when users enter text. For a dynamic data source such as an array that
534
+ * when users enter text. For a dynamic data source, such as an array that
535
535
  * changes due to server calls, use `search` or `searchAsync` instead.
536
+ * You can specify static data, such as an array of objects,
537
+ * or you can pull data from a database.
536
538
  */
537
539
  set data(value) {
538
540
  this.#_data = value ?? [];
@@ -597,7 +599,7 @@ class SkyAutocompleteComponent {
597
599
  return this.#_propertiesToSearch;
598
600
  }
599
601
  /**
600
- * The function that dynamically manages the data source when users
602
+ * The function that dynamically manages the data to display in search results when users
601
603
  * change the text in the autocomplete field. The search function must return
602
604
  * an array or a promise of an array. The `search` property is particularly
603
605
  * useful when the data source does not live in the source code.
@@ -628,11 +630,12 @@ class SkyAutocompleteComponent {
628
630
  return this.#_searchTextMinimumCharacters;
629
631
  }
630
632
  /**
631
- * The array of functions to call against each search result in order
632
- * to filter the search results when using the default search function. When
633
- * using the `search` property to specify a custom search function, you must
633
+ * The array of functions to call against each search result. This filters
634
+ * the search results when using the `data` input and the default search function.
635
+ * When the `search` property specifies a custom search function, you must
634
636
  * manually apply filters inside that function. The function must return `true`
635
637
  * or `false` for each result to indicate whether to display it in the dropdown list.
638
+ *
636
639
  * @deprecated We recommend against using this property. To filter results, use the `searchAsync` event instead.
637
640
  */
638
641
  set searchFilters(value) {
@@ -796,9 +799,9 @@ class SkyAutocompleteComponent {
796
799
  */
797
800
  this.allowAnyValue = input(false, ...(ngDevMode ? [{ debugName: "allowAnyValue", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
798
801
  /**
799
- * Highlights the search text in each search result. Set this to false
800
- * when your search finds results that are not exact text matches, e.g.
801
- * returning "Bob" for the term "Robert."
802
+ * Highlights the search text in each search result. Set this to `false`
803
+ * when your search returns results that aren't exact text matches, such as
804
+ * returning "Bob" for "Robert."
802
805
  * @default true
803
806
  */
804
807
  this.highlightSearchText = input(true, ...(ngDevMode ? [{ debugName: "highlightSearchText", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
@@ -2661,7 +2664,7 @@ class SkyLookupAutocompleteAdapter {
2661
2664
  constructor() {
2662
2665
  /**
2663
2666
  * Fires when users enter new search information and allows results to be
2664
- * returned via an observable. The event is also fired with empty search text
2667
+ * returned via an observable. The event is also fired
2665
2668
  * when the "Show more" picker is opened without search text.
2666
2669
  */
2667
2670
  this.searchAsync = new EventEmitter();
@@ -2696,7 +2699,7 @@ class SkyLookupAutocompleteAdapter {
2696
2699
  return this.#_propertiesToSearch;
2697
2700
  }
2698
2701
  /**
2699
- * The function to dynamically manage the data source when users
2702
+ * The function that dynamically manages the data to display in search results when users
2700
2703
  * change the text in the lookup field. The search function must return
2701
2704
  * an array or a promise of an array. The `search` property is particularly
2702
2705
  * useful when the data source does not live in the source code.
@@ -3069,8 +3072,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
3069
3072
  class SkyLookupComponent extends SkyLookupAutocompleteAdapter {
3070
3073
  /**
3071
3074
  * The data source for the lookup component to search when users
3072
- * enter text. You can specify static data such as an array of objects, or
3075
+ * enter text. You can specify static data, such as an array of objects, or
3073
3076
  * you can pull data from a database.
3077
+ *
3074
3078
  * @default []
3075
3079
  * @deprecated Use the `searchAsync` event emitter and callback instead to provide data to the lookup component.
3076
3080
  */