@skyux/lookup 5.6.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.
- package/bundles/skyux-lookup.umd.js +15 -33
- package/documentation.json +46 -40
- package/esm2015/lib/modules/autocomplete/autocomplete-adapter.service.js +0 -1
- package/esm2015/lib/modules/autocomplete/autocomplete-adapter.service.js.map +1 -1
- package/esm2015/lib/modules/autocomplete/autocomplete.component.js +8 -2
- package/esm2015/lib/modules/autocomplete/autocomplete.component.js.map +1 -1
- package/esm2015/lib/modules/lookup/lookup-autocomplete-adapter.js +7 -1
- package/esm2015/lib/modules/lookup/lookup-autocomplete-adapter.js.map +1 -1
- package/fesm2015/skyux-lookup.js +15 -33
- package/fesm2015/skyux-lookup.js.map +1 -1
- package/lib/modules/autocomplete/autocomplete-adapter.service.d.ts +0 -1
- package/lib/modules/autocomplete/autocomplete.component.d.ts +8 -2
- package/lib/modules/lookup/lookup-autocomplete-adapter.d.ts +7 -1
- package/package.json +21 -18
- package/esm2015/lib/polyfills.js +0 -30
- package/esm2015/lib/polyfills.js.map +0 -1
- package/lib/polyfills.d.ts +0 -0
|
@@ -33,7 +33,7 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterContent
|
|
|
33
33
|
/**
|
|
34
34
|
* Specifies a static data source for the autocomplete component to search
|
|
35
35
|
* when users enter text. For a dynamic data source such as an array that
|
|
36
|
-
* changes due to server calls, use
|
|
36
|
+
* changes due to server calls, use `search` or `searchAsync` instead.
|
|
37
37
|
*/
|
|
38
38
|
set data(value: any[]);
|
|
39
39
|
get data(): any[];
|
|
@@ -76,7 +76,9 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterContent
|
|
|
76
76
|
* Specifies a function to dynamically manage the data source when users
|
|
77
77
|
* change the text in the autocomplete field. The search function must return
|
|
78
78
|
* an array or a promise of an array. The `search` property is particularly
|
|
79
|
-
* useful when the data source does not live in the source code.
|
|
79
|
+
* useful when the data source does not live in the source code. If the
|
|
80
|
+
* search requires calling a remote data source, use `searchAsync` instead of
|
|
81
|
+
* `search`.
|
|
80
82
|
*/
|
|
81
83
|
set search(value: SkyAutocompleteSearchFunction);
|
|
82
84
|
get search(): SkyAutocompleteSearchFunction;
|
|
@@ -139,6 +141,10 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterContent
|
|
|
139
141
|
* Fires when users select items in the dropdown list.
|
|
140
142
|
*/
|
|
141
143
|
get selectionChange(): EventEmitter<SkyAutocompleteSelectionChange>;
|
|
144
|
+
/**
|
|
145
|
+
* Fires when users enter new search information and allows results to be
|
|
146
|
+
* returned via an observable.
|
|
147
|
+
*/
|
|
142
148
|
searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>;
|
|
143
149
|
get searchResults(): SkyAutocompleteSearchResult[];
|
|
144
150
|
get highlightText(): string[];
|
|
@@ -30,7 +30,9 @@ export declare class SkyLookupAutocompleteAdapter {
|
|
|
30
30
|
* Specifies a function to dynamically manage the data source when users
|
|
31
31
|
* change the text in the lookup field. The search function must return
|
|
32
32
|
* an array or a promise of an array. The `search` property is particularly
|
|
33
|
-
* useful when the data source does not live in the source code.
|
|
33
|
+
* useful when the data source does not live in the source code. If the
|
|
34
|
+
* search requires calling a remote data source, use `searchAsync` instead of
|
|
35
|
+
* `search`.
|
|
34
36
|
*/
|
|
35
37
|
set search(value: SkyAutocompleteSearchFunction);
|
|
36
38
|
get search(): SkyAutocompleteSearchFunction;
|
|
@@ -60,6 +62,10 @@ export declare class SkyLookupAutocompleteAdapter {
|
|
|
60
62
|
* list. By default, the lookup component displays all matching results.
|
|
61
63
|
*/
|
|
62
64
|
searchResultsLimit: number;
|
|
65
|
+
/**
|
|
66
|
+
* Fires when users enter new search information and allows results to be
|
|
67
|
+
* returned via an observable.
|
|
68
|
+
*/
|
|
63
69
|
searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>;
|
|
64
70
|
private _descriptorProperty;
|
|
65
71
|
private _propertiesToSearch;
|
package/package.json
CHANGED
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lookup",
|
|
3
|
-
"version": "5.6.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^12.2.16",
|
|
6
|
-
"@angular/core": "^12.2.16",
|
|
7
|
-
"@angular/router": "^12.2.16",
|
|
8
|
-
"@skyux/core": "5.6.0",
|
|
9
|
-
"@skyux/modals": "5.6.0",
|
|
10
|
-
"@skyux/forms": "5.6.0",
|
|
11
|
-
"@skyux/i18n": "5.6.0",
|
|
12
|
-
"@skyux/indicators": "5.6.0",
|
|
13
|
-
"@skyux/layout": "5.6.0",
|
|
14
|
-
"@skyux/lists": "5.6.0",
|
|
15
|
-
"@skyux/theme": "5.6.0"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"intl-tel-input": "14.1.0",
|
|
19
|
-
"tslib": "^2.3.1"
|
|
20
|
-
},
|
|
3
|
+
"version": "5.6.1",
|
|
21
4
|
"author": "Blackbaud, Inc.",
|
|
22
5
|
"keywords": [
|
|
23
6
|
"blackbaud",
|
|
@@ -32,6 +15,26 @@
|
|
|
32
15
|
"url": "https://github.com/blackbaud/skyux/issues"
|
|
33
16
|
},
|
|
34
17
|
"homepage": "https://github.com/blackbaud/skyux#readme",
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@angular/animations": "^12.2.16",
|
|
20
|
+
"@angular/common": "^12.2.16",
|
|
21
|
+
"@angular/core": "^12.2.16",
|
|
22
|
+
"@angular/forms": "^12.2.16",
|
|
23
|
+
"@angular/platform-browser": "^12.2.16",
|
|
24
|
+
"@skyux-sdk/testing": "5.6.1",
|
|
25
|
+
"@skyux/core": "5.6.1",
|
|
26
|
+
"@skyux/forms": "5.6.1",
|
|
27
|
+
"@skyux/i18n": "5.6.1",
|
|
28
|
+
"@skyux/indicators": "5.6.1",
|
|
29
|
+
"@skyux/layout": "5.6.1",
|
|
30
|
+
"@skyux/lists": "5.6.1",
|
|
31
|
+
"@skyux/modals": "5.6.1",
|
|
32
|
+
"@skyux/theme": "5.6.1"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"intl-tel-input": "14.1.0",
|
|
36
|
+
"tslib": "^2.3.1"
|
|
37
|
+
},
|
|
35
38
|
"main": "bundles/skyux-lookup.umd.js",
|
|
36
39
|
"module": "fesm2015/skyux-lookup.js",
|
|
37
40
|
"es2015": "fesm2015/skyux-lookup.js",
|
package/esm2015/lib/polyfills.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// tslint:disable:no-null-keyword
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
// Polyfill for Element.closest().
|
|
4
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill
|
|
5
|
-
// Returns the closest ancestor of the current element (or the current element itself) which
|
|
6
|
-
// matches the selectors given in parameter. If there isn't such an ancestor, it returns null.
|
|
7
|
-
if (!Element.prototype.closest) {
|
|
8
|
-
Element.prototype.closest = function (s) {
|
|
9
|
-
let el = this;
|
|
10
|
-
if (!document.documentElement.contains(el)) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
do {
|
|
14
|
-
if (el.matches(s)) {
|
|
15
|
-
return el;
|
|
16
|
-
}
|
|
17
|
-
el = el.parentElement || el.parentNode;
|
|
18
|
-
} while (el !== null && el.nodeType === 1);
|
|
19
|
-
return null;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
// Polyfill for Element.matches().
|
|
23
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
|
|
24
|
-
// Returns true if the element would be selected by the specified selector string.
|
|
25
|
-
if (!Element.prototype.matches) {
|
|
26
|
-
Element.prototype.matches =
|
|
27
|
-
Element.prototype.msMatchesSelector ||
|
|
28
|
-
/* istanbul ignore next */ Element.prototype.webkitMatchesSelector;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=polyfills.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../../../../../../libs/components/lookup/src/lib/polyfills.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0BAA0B;AAE1B,kCAAkC;AAClC,4EAA4E;AAC5E,4FAA4F;AAC5F,8FAA8F;AAC9F,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE;IAC9B,OAAO,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,CAAM;QAC1C,IAAI,EAAE,GAAG,IAAI,CAAC;QACd,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;YAC1C,OAAO,IAAI,CAAC;SACb;QACD,GAAG;YACD,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBACjB,OAAO,EAAE,CAAC;aACX;YACD,EAAE,GAAG,EAAE,CAAC,aAAa,IAAI,EAAE,CAAC,UAAU,CAAC;SACxC,QAAQ,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC,QAAQ,KAAK,CAAC,EAAE;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;CACH;AAED,kCAAkC;AAClC,mEAAmE;AACnE,kFAAkF;AAClF,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE;IAC9B,OAAO,CAAC,SAAS,CAAC,OAAO;QACtB,OAAO,CAAC,SAAiB,CAAC,iBAAiB;YAC5C,0BAA0B,CAAC,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC;CACtE","sourcesContent":["// tslint:disable:no-null-keyword\n/* istanbul ignore file */\n\n// Polyfill for Element.closest().\n// https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill\n// Returns the closest ancestor of the current element (or the current element itself) which\n// matches the selectors given in parameter. If there isn't such an ancestor, it returns null.\nif (!Element.prototype.closest) {\n Element.prototype.closest = function (s: any) {\n let el = this;\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (el.matches(s)) {\n return el;\n }\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n return null;\n };\n}\n\n// Polyfill for Element.matches().\n// https://developer.mozilla.org/en-US/docs/Web/API/Element/matches\n// Returns true if the element would be selected by the specified selector string.\nif (!Element.prototype.matches) {\n Element.prototype.matches =\n (Element.prototype as any).msMatchesSelector ||\n /* istanbul ignore next */ Element.prototype.webkitMatchesSelector;\n}\n"]}
|
package/lib/polyfills.d.ts
DELETED
|
File without changes
|