@skyux/lookup 8.7.2 → 9.0.0-alpha.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/documentation.json +244 -244
- package/esm2022/lib/modules/autocomplete/autocomplete-adapter.service.mjs +61 -0
- package/esm2022/lib/modules/autocomplete/autocomplete-input.directive.mjs +237 -0
- package/{esm2020 → esm2022}/lib/modules/autocomplete/autocomplete-search-async-disabled.pipe.mjs +4 -4
- package/esm2022/lib/modules/autocomplete/autocomplete.component.mjs +817 -0
- package/{esm2020 → esm2022}/lib/modules/autocomplete/autocomplete.module.mjs +27 -27
- package/esm2022/lib/modules/country-field/country-field.component.mjs +444 -0
- package/{esm2020 → esm2022}/lib/modules/country-field/country-field.module.mjs +19 -19
- package/{esm2020 → esm2022}/lib/modules/lookup/lookup-adapter.service.mjs +4 -4
- package/esm2022/lib/modules/lookup/lookup-autocomplete-adapter.mjs +114 -0
- package/esm2022/lib/modules/lookup/lookup-show-more-modal.component.mjs +270 -0
- package/{esm2020 → esm2022}/lib/modules/lookup/lookup.component.mjs +299 -280
- package/{esm2020 → esm2022}/lib/modules/lookup/lookup.module.mjs +37 -37
- package/esm2022/lib/modules/search/search-adapter.service.mjs +46 -0
- package/esm2022/lib/modules/search/search.component.mjs +285 -0
- package/{esm2020 → esm2022}/lib/modules/search/search.module.mjs +17 -17
- package/{esm2020 → esm2022}/lib/modules/selection-modal/selection-modal-item-selected.pipe.mjs +4 -4
- package/esm2022/lib/modules/selection-modal/selection-modal.component.mjs +201 -0
- package/{esm2020 → esm2022}/lib/modules/selection-modal/selection-modal.module.mjs +27 -27
- package/esm2022/lib/modules/selection-modal/selection-modal.service.mjs +89 -0
- package/esm2022/lib/modules/selection-modal/types/selection-modal-instance.mjs +45 -0
- package/esm2022/lib/modules/shared/sky-lookup-resources.module.mjs +71 -0
- package/esm2022/testing/autocomplete/autocomplete-harness.mjs +155 -0
- package/esm2022/testing/autocomplete/autocomplete-input-harness.mjs +63 -0
- package/esm2022/testing/autocomplete/autocomplete-search-result-harness.mjs +44 -0
- package/esm2022/testing/country-field/country-field-fixture.mjs +118 -0
- package/{esm2020 → esm2022}/testing/country-field/country-field-testing.module.mjs +5 -5
- package/esm2022/testing/lookup/lookup-harness.mjs +76 -0
- package/{esm2020 → esm2022}/testing/search/search-fixture.mjs +18 -19
- package/esm2022/testing/search/search-harness.mjs +80 -0
- package/{esm2020 → esm2022}/testing/search/search-testing.module.mjs +5 -5
- package/esm2022/testing/selection-modal/selection-modal-harness.mjs +122 -0
- package/{fesm2020 → fesm2022}/skyux-lookup-testing.mjs +171 -187
- package/{fesm2020 → fesm2022}/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2022/skyux-lookup.mjs +3707 -0
- package/{fesm2015 → fesm2022}/skyux-lookup.mjs.map +1 -1
- package/lib/modules/autocomplete/autocomplete-input.directive.d.ts +1 -1
- package/lib/modules/autocomplete/autocomplete.component.d.ts +1 -1
- package/lib/modules/country-field/country-field.component.d.ts +1 -1
- package/lib/modules/lookup/lookup-autocomplete-adapter.d.ts +1 -1
- package/lib/modules/lookup/lookup.component.d.ts +1 -1
- package/lib/modules/search/search.component.d.ts +1 -1
- package/package.json +23 -31
- package/esm2020/lib/modules/autocomplete/autocomplete-adapter.service.mjs +0 -64
- package/esm2020/lib/modules/autocomplete/autocomplete-input.directive.mjs +0 -235
- package/esm2020/lib/modules/autocomplete/autocomplete.component.mjs +0 -775
- package/esm2020/lib/modules/country-field/country-field.component.mjs +0 -433
- package/esm2020/lib/modules/lookup/lookup-autocomplete-adapter.mjs +0 -115
- package/esm2020/lib/modules/lookup/lookup-show-more-modal.component.mjs +0 -271
- package/esm2020/lib/modules/search/search-adapter.service.mjs +0 -46
- package/esm2020/lib/modules/search/search.component.mjs +0 -279
- package/esm2020/lib/modules/selection-modal/selection-modal.component.mjs +0 -199
- package/esm2020/lib/modules/selection-modal/selection-modal.service.mjs +0 -92
- package/esm2020/lib/modules/selection-modal/types/selection-modal-instance.mjs +0 -48
- package/esm2020/lib/modules/shared/sky-lookup-resources.module.mjs +0 -71
- package/esm2020/testing/autocomplete/autocomplete-harness.mjs +0 -161
- package/esm2020/testing/autocomplete/autocomplete-input-harness.mjs +0 -63
- package/esm2020/testing/autocomplete/autocomplete-search-result-harness.mjs +0 -44
- package/esm2020/testing/country-field/country-field-fixture.mjs +0 -114
- package/esm2020/testing/lookup/lookup-harness.mjs +0 -82
- package/esm2020/testing/search/search-harness.mjs +0 -86
- package/esm2020/testing/selection-modal/selection-modal-harness.mjs +0 -128
- package/fesm2015/skyux-lookup-testing.mjs +0 -980
- package/fesm2015/skyux-lookup-testing.mjs.map +0 -1
- package/fesm2015/skyux-lookup.mjs +0 -3642
- package/fesm2020/skyux-lookup.mjs +0 -3625
- package/fesm2020/skyux-lookup.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/autocomplete-default-search-function.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-default-search-function-options.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-input-text-change.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-message-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-message.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-async-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-async-function.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-async-result-display-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-async-result.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-function-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-function-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-search-function.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-selection-change.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/autocomplete/types/autocomplete-show-more-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/country-field/types/country-field-context-token.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/country-field/types/country-field-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/country-field/types/country.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-add-click-callback-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-add-click-event-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-select-mode-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-select-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-show-more-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-show-more-custom-picker-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-show-more-custom-picker.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-show-more-native-picker-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/lookup/types/lookup-show-more-native-picker-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-add-click-callback-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-add-click-event-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-close-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-open-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-result.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-search-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/selection-modal/types/selection-modal-search-result.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/shared/sky-lookup-string-utils.mjs +0 -0
- /package/{esm2020 → esm2022}/skyux-lookup.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/autocomplete/autocomplete-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/autocomplete/autocomplete-search-result-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-selection-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-selection-harness.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-selections-list-harness.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-show-more-picker-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-show-more-picker-harness.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-show-more-picker-search-result-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/lookup/lookup-show-more-picker-search-result-harness.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/search/search-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/selection-modal/selection-modal-search-result-harness-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/selection-modal/selection-modal-search-result-harness.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/skyux-lookup-testing.mjs +0 -0
|
@@ -1,980 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from 'tslib';
|
|
2
|
-
import { SkyComponentHarness, SkyOverlayHarness } from '@skyux/core/testing';
|
|
3
|
-
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
4
|
-
import { By } from '@angular/platform-browser';
|
|
5
|
-
import { SkyAppTestUtility } from '@skyux-sdk/testing';
|
|
6
|
-
import * as i0 from '@angular/core';
|
|
7
|
-
import { NgModule } from '@angular/core';
|
|
8
|
-
import { SkyCountryFieldModule, SkySearchModule } from '@skyux/lookup';
|
|
9
|
-
import { SkyTokensHarness, SkyTokenHarness } from '@skyux/indicators/testing';
|
|
10
|
-
import { SkyInfiniteScrollHarness, SkyRepeaterItemHarness } from '@skyux/lists/testing';
|
|
11
|
-
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
class SkyAutocompleteInputHarness extends ComponentHarness {
|
|
17
|
-
/**
|
|
18
|
-
* Blurs the input.
|
|
19
|
-
*/
|
|
20
|
-
blur() {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
return (yield this.host()).blur();
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Clears the input value.
|
|
27
|
-
*/
|
|
28
|
-
clear() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
return (yield this.host()).clear();
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Enters text into the input.
|
|
35
|
-
*/
|
|
36
|
-
enterText(value) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const el = yield this.host();
|
|
39
|
-
yield el.focus();
|
|
40
|
-
yield el.clear();
|
|
41
|
-
yield el.sendKeys(value);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Focuses the input.
|
|
46
|
-
*/
|
|
47
|
-
focus() {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
return (yield this.host()).focus();
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Gets the value of the input.
|
|
54
|
-
*/
|
|
55
|
-
getValue() {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
return (yield this.host()).getProperty('value');
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Whether the input is disabled.
|
|
62
|
-
*/
|
|
63
|
-
isDisabled() {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
const disabled = yield (yield this.host()).getAttribute('disabled');
|
|
66
|
-
return disabled !== null;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Whether the input is focused.
|
|
71
|
-
*/
|
|
72
|
-
isFocused() {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
return (yield this.host()).isFocused();
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Returns the value of the input's `aria-owns` attribute.
|
|
79
|
-
*/
|
|
80
|
-
getAriaOwns() {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
return (yield this.host()).getAttribute('aria-owns');
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
SkyAutocompleteInputHarness.hostSelector = '[skyAutocomplete]';
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Harness for interacting with an autocomplete search results in tests.
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
class SkyAutocompleteSearchResultHarness extends ComponentHarness {
|
|
96
|
-
/**
|
|
97
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
98
|
-
* `SkyAutocompleteSearchResultHarness` that meets certain criteria.
|
|
99
|
-
*/
|
|
100
|
-
static with(filters) {
|
|
101
|
-
return new HarnessPredicate(SkyAutocompleteSearchResultHarness, filters).addOption('textContent', filters.text, (harness, text) => __awaiter(this, void 0, void 0, function* () { return HarnessPredicate.stringMatches(yield harness.getText(), text); }));
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Returns the value of the search result's descriptor property.
|
|
105
|
-
* This value is set by the autocomplete's `descriptorProperty` input.
|
|
106
|
-
*/
|
|
107
|
-
getDescriptorValue() {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
return (yield (yield this.host()).getAttribute('data-descriptor-value'));
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Returns a child harness.
|
|
114
|
-
*/
|
|
115
|
-
queryHarness(query) {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
return this.locatorForOptional(query)();
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Selects the search result.
|
|
122
|
-
*/
|
|
123
|
-
select() {
|
|
124
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
return (yield this.host()).click();
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Returns the text of the search result.
|
|
130
|
-
*/
|
|
131
|
-
getText() {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
return (yield this.host()).text();
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
140
|
-
SkyAutocompleteSearchResultHarness.hostSelector = '.sky-autocomplete-result';
|
|
141
|
-
|
|
142
|
-
var _SkyAutocompleteHarness_instances, _SkyAutocompleteHarness_documentRootLocator, _SkyAutocompleteHarness_getInput, _SkyAutocompleteHarness_getOverlay;
|
|
143
|
-
/**
|
|
144
|
-
* Harness for interacting with an autocomplete component in tests.
|
|
145
|
-
* @internal
|
|
146
|
-
*/
|
|
147
|
-
class SkyAutocompleteHarness extends SkyComponentHarness {
|
|
148
|
-
constructor() {
|
|
149
|
-
super(...arguments);
|
|
150
|
-
_SkyAutocompleteHarness_instances.add(this);
|
|
151
|
-
_SkyAutocompleteHarness_documentRootLocator.set(this, this.documentRootLocatorFactory());
|
|
152
|
-
_SkyAutocompleteHarness_getInput.set(this, this.locatorFor(SkyAutocompleteInputHarness));
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
156
|
-
* `SkyAutocompleteHarness` that meets certain criteria.
|
|
157
|
-
*/
|
|
158
|
-
static with(filters) {
|
|
159
|
-
return SkyAutocompleteHarness.getDataSkyIdPredicate(filters);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Blurs the autocomplete input.
|
|
163
|
-
*/
|
|
164
|
-
blur() {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).blur();
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Clears the input value.
|
|
171
|
-
*/
|
|
172
|
-
clear() {
|
|
173
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).clear();
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Enters text into the autocomplete input.
|
|
179
|
-
*/
|
|
180
|
-
enterText(value) {
|
|
181
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).enterText(value);
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Focuses the autocomplete input.
|
|
187
|
-
*/
|
|
188
|
-
focus() {
|
|
189
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).focus();
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Returns search result harnesses.
|
|
195
|
-
*/
|
|
196
|
-
getSearchResults(filters) {
|
|
197
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
-
const overlay = yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_instances, "m", _SkyAutocompleteHarness_getOverlay).call(this);
|
|
199
|
-
if (!overlay) {
|
|
200
|
-
throw new Error('Unable to retrieve search results. The autocomplete is closed.');
|
|
201
|
-
}
|
|
202
|
-
const harnesses = yield overlay.queryHarnesses(SkyAutocompleteSearchResultHarness.with(filters || {}));
|
|
203
|
-
if (filters && harnesses.length === 0) {
|
|
204
|
-
// Stringify the regular expression so that it's readable in the console log.
|
|
205
|
-
if (filters.text instanceof RegExp) {
|
|
206
|
-
filters.text = filters.text.toString();
|
|
207
|
-
}
|
|
208
|
-
throw new Error(`Could not find search results matching filter(s): ${JSON.stringify(filters)}`);
|
|
209
|
-
}
|
|
210
|
-
return harnesses;
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Returns the text content for each search result.
|
|
215
|
-
*/
|
|
216
|
-
getSearchResultsText(filters) {
|
|
217
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
-
const harnesses = yield this.getSearchResults(filters);
|
|
219
|
-
const text = [];
|
|
220
|
-
for (const harness of harnesses) {
|
|
221
|
-
text.push(yield harness.getText());
|
|
222
|
-
}
|
|
223
|
-
return text;
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Gets the value of the autocomplete input.
|
|
228
|
-
*/
|
|
229
|
-
getValue() {
|
|
230
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).getValue();
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Whether the autocomplete input is disabled.
|
|
236
|
-
*/
|
|
237
|
-
isDisabled() {
|
|
238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).isDisabled();
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Whether the autocomplete input is focused.
|
|
244
|
-
*/
|
|
245
|
-
isFocused() {
|
|
246
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
-
return (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).isFocused();
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Whether the autocomplete is open.
|
|
252
|
-
*/
|
|
253
|
-
isOpen() {
|
|
254
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
-
const overlay = yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_instances, "m", _SkyAutocompleteHarness_getOverlay).call(this);
|
|
256
|
-
return !!overlay;
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Selects a search result.
|
|
261
|
-
*/
|
|
262
|
-
selectSearchResult(filters) {
|
|
263
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
-
const results = yield this.getSearchResults(filters);
|
|
265
|
-
if (results && results.length > 0) {
|
|
266
|
-
yield results[0].select();
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Clicks the "Add" button in the autocomplete search results panel.
|
|
272
|
-
* (The "Add" functionality is not included in the public API
|
|
273
|
-
* of a "vanilla" autocomplete component, so this method is protected
|
|
274
|
-
* to prevent consumers of the autocomplete harness from calling it.
|
|
275
|
-
* The lookup harness, which extends the autocomplete harness, may
|
|
276
|
-
* still access this feature, however.)
|
|
277
|
-
*/
|
|
278
|
-
clickAddButton() {
|
|
279
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
const overlay = yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_instances, "m", _SkyAutocompleteHarness_getOverlay).call(this);
|
|
281
|
-
if (!overlay) {
|
|
282
|
-
throw new Error('Unable to find the "Add" button. The autocomplete is closed.');
|
|
283
|
-
}
|
|
284
|
-
const button = yield overlay.querySelector('button.sky-autocomplete-action-add');
|
|
285
|
-
if (!button) {
|
|
286
|
-
throw new Error('The "Add" button cannot be clicked because it does not exist.');
|
|
287
|
-
}
|
|
288
|
-
yield button.click();
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Clicks the "Show more" button.
|
|
293
|
-
* (The "Show more" functionality is not included in the public API
|
|
294
|
-
* of a "vanilla" autocomplete component, so this method is protected
|
|
295
|
-
* to prevent consumers of the autocomplete harness from calling it.
|
|
296
|
-
* The lookup harness, which extends the autocomplete harness, may
|
|
297
|
-
* still access this feature, however.)
|
|
298
|
-
*/
|
|
299
|
-
clickShowMoreButton() {
|
|
300
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
-
const overlay = yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_instances, "m", _SkyAutocompleteHarness_getOverlay).call(this);
|
|
302
|
-
if (!overlay) {
|
|
303
|
-
throw new Error('Unable to find the "Show more" button. ' +
|
|
304
|
-
'The autocomplete is closed.');
|
|
305
|
-
}
|
|
306
|
-
const button = yield overlay.querySelector('button.sky-autocomplete-action-more');
|
|
307
|
-
if (!button) {
|
|
308
|
-
throw new Error('The "Show more" button cannot be clicked because it does not exist.');
|
|
309
|
-
}
|
|
310
|
-
yield button.click();
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
_SkyAutocompleteHarness_documentRootLocator = new WeakMap(), _SkyAutocompleteHarness_getInput = new WeakMap(), _SkyAutocompleteHarness_instances = new WeakSet(), _SkyAutocompleteHarness_getOverlay = function _SkyAutocompleteHarness_getOverlay() {
|
|
315
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
-
const overlayId = yield (yield __classPrivateFieldGet(this, _SkyAutocompleteHarness_getInput, "f").call(this)).getAriaOwns();
|
|
317
|
-
return overlayId
|
|
318
|
-
? __classPrivateFieldGet(this, _SkyAutocompleteHarness_documentRootLocator, "f").locatorForOptional(SkyOverlayHarness.with({ selector: `#${overlayId}` }))()
|
|
319
|
-
: null;
|
|
320
|
-
});
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* @internal
|
|
324
|
-
*/
|
|
325
|
-
SkyAutocompleteHarness.hostSelector = 'sky-autocomplete';
|
|
326
|
-
|
|
327
|
-
var _SkyCountryFieldFixture_instances, _SkyCountryFieldFixture_debugEl, _SkyCountryFieldFixture_fixture, _SkyCountryFieldFixture_getCountryFlag, _SkyCountryFieldFixture_getAutocompleteElement, _SkyCountryFieldFixture_getInputElement, _SkyCountryFieldFixture_blurInput, _SkyCountryFieldFixture_enterSearch, _SkyCountryFieldFixture_searchAndGetResults, _SkyCountryFieldFixture_searchAndSelect;
|
|
328
|
-
/**
|
|
329
|
-
* Allows interaction with a SKY UX country field component.
|
|
330
|
-
* @internal
|
|
331
|
-
*/
|
|
332
|
-
class SkyCountryFieldFixture {
|
|
333
|
-
/**
|
|
334
|
-
* The value of the input field's autocomplete attribute.
|
|
335
|
-
*/
|
|
336
|
-
get autocompleteAttribute() {
|
|
337
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getInputElement).call(this).getAttribute('autocomplete');
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* A flag indicating if the country flag is currently visible.
|
|
341
|
-
* The flag will be visible only if a selection has been made
|
|
342
|
-
* and if the hideSelectedCountryFlag option is false.
|
|
343
|
-
*/
|
|
344
|
-
get countryFlagIsVisible() {
|
|
345
|
-
const flag = __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getCountryFlag).call(this);
|
|
346
|
-
return flag !== null;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* A flag indicating whether or not the input has been disabled.
|
|
350
|
-
*/
|
|
351
|
-
get disabled() {
|
|
352
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getInputElement).call(this).disabled;
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* The value of the input field.
|
|
356
|
-
*/
|
|
357
|
-
get searchText() {
|
|
358
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getInputElement).call(this).value;
|
|
359
|
-
}
|
|
360
|
-
constructor(fixture, skyTestId) {
|
|
361
|
-
_SkyCountryFieldFixture_instances.add(this);
|
|
362
|
-
_SkyCountryFieldFixture_debugEl.set(this, void 0);
|
|
363
|
-
_SkyCountryFieldFixture_fixture.set(this, void 0);
|
|
364
|
-
__classPrivateFieldSet(this, _SkyCountryFieldFixture_fixture, fixture, "f");
|
|
365
|
-
__classPrivateFieldSet(this, _SkyCountryFieldFixture_debugEl, SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-country-field'), "f");
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* Enters the search text into the input field displaying search results, but making no selection.
|
|
369
|
-
* @param searchText The name of the country to select.
|
|
370
|
-
* @returns The list of country names matching the search text.
|
|
371
|
-
*/
|
|
372
|
-
search(searchText) {
|
|
373
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
-
const resultNodes = yield __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_searchAndGetResults).call(this, searchText, __classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f"));
|
|
375
|
-
const resultArray = Array.prototype.slice.call(resultNodes);
|
|
376
|
-
const results = resultArray.map((result) => {
|
|
377
|
-
const countryNameEl = result.querySelector('.sky-highlight-mark');
|
|
378
|
-
const countryName = SkyAppTestUtility.getText(countryNameEl);
|
|
379
|
-
return countryName;
|
|
380
|
-
});
|
|
381
|
-
__classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f").detectChanges();
|
|
382
|
-
yield __classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f").whenStable();
|
|
383
|
-
return results;
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Enters the search text into the input field and selects the first result (if any).
|
|
388
|
-
* @param searchText The name of the country to select.
|
|
389
|
-
*/
|
|
390
|
-
searchAndSelectFirstResult(searchText) {
|
|
391
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
-
yield __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_searchAndSelect).call(this, searchText, 0, __classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f"));
|
|
393
|
-
__classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f").detectChanges();
|
|
394
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f").whenStable();
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* Clears the country selection and input field.
|
|
399
|
-
*/
|
|
400
|
-
clear() {
|
|
401
|
-
__classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_enterSearch).call(this, '', __classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f"));
|
|
402
|
-
__classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f").detectChanges();
|
|
403
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_fixture, "f").whenStable();
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
_SkyCountryFieldFixture_debugEl = new WeakMap(), _SkyCountryFieldFixture_fixture = new WeakMap(), _SkyCountryFieldFixture_instances = new WeakSet(), _SkyCountryFieldFixture_getCountryFlag = function _SkyCountryFieldFixture_getCountryFlag() {
|
|
407
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_debugEl, "f").query(By.css('.sky-country-field-flag'));
|
|
408
|
-
}, _SkyCountryFieldFixture_getAutocompleteElement = function _SkyCountryFieldFixture_getAutocompleteElement() {
|
|
409
|
-
return document.querySelector('.sky-autocomplete-results');
|
|
410
|
-
}, _SkyCountryFieldFixture_getInputElement = function _SkyCountryFieldFixture_getInputElement() {
|
|
411
|
-
const debugEl = __classPrivateFieldGet(this, _SkyCountryFieldFixture_debugEl, "f").query(By.css('textarea'));
|
|
412
|
-
return debugEl.nativeElement;
|
|
413
|
-
}, _SkyCountryFieldFixture_blurInput = function _SkyCountryFieldFixture_blurInput(fixture) {
|
|
414
|
-
SkyAppTestUtility.fireDomEvent(__classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getInputElement).call(this), 'blur');
|
|
415
|
-
fixture.detectChanges();
|
|
416
|
-
return fixture.whenStable();
|
|
417
|
-
}, _SkyCountryFieldFixture_enterSearch = function _SkyCountryFieldFixture_enterSearch(newValue, fixture) {
|
|
418
|
-
const inputElement = __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getInputElement).call(this);
|
|
419
|
-
inputElement.value = newValue;
|
|
420
|
-
SkyAppTestUtility.fireDomEvent(inputElement, 'focus');
|
|
421
|
-
SkyAppTestUtility.fireDomEvent(inputElement, 'keyup');
|
|
422
|
-
SkyAppTestUtility.fireDomEvent(inputElement, 'input');
|
|
423
|
-
fixture.detectChanges();
|
|
424
|
-
return fixture.whenStable();
|
|
425
|
-
}, _SkyCountryFieldFixture_searchAndGetResults = function _SkyCountryFieldFixture_searchAndGetResults(newValue, fixture) {
|
|
426
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
-
yield __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_enterSearch).call(this, newValue, fixture);
|
|
428
|
-
fixture.detectChanges();
|
|
429
|
-
yield fixture.whenStable();
|
|
430
|
-
return __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getAutocompleteElement).call(this).querySelectorAll('.sky-autocomplete-result');
|
|
431
|
-
});
|
|
432
|
-
}, _SkyCountryFieldFixture_searchAndSelect = function _SkyCountryFieldFixture_searchAndSelect(newValue, index, fixture) {
|
|
433
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
-
const inputElement = __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_getInputElement).call(this);
|
|
435
|
-
const searchResults = yield __classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_searchAndGetResults).call(this, newValue, fixture);
|
|
436
|
-
if (searchResults.length < index + 1) {
|
|
437
|
-
throw new Error('Index out of range for results');
|
|
438
|
-
}
|
|
439
|
-
// Note: the ordering of these events is important!
|
|
440
|
-
SkyAppTestUtility.fireDomEvent(inputElement, 'change');
|
|
441
|
-
SkyAppTestUtility.fireDomEvent(searchResults[index], 'mousedown');
|
|
442
|
-
__classPrivateFieldGet(this, _SkyCountryFieldFixture_instances, "m", _SkyCountryFieldFixture_blurInput).call(this, fixture);
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
*/
|
|
449
|
-
class SkyCountryFieldTestingModule {
|
|
450
|
-
}
|
|
451
|
-
SkyCountryFieldTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyCountryFieldTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
452
|
-
SkyCountryFieldTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyCountryFieldTestingModule, exports: [SkyCountryFieldModule] });
|
|
453
|
-
SkyCountryFieldTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyCountryFieldTestingModule, imports: [SkyCountryFieldModule] });
|
|
454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyCountryFieldTestingModule, decorators: [{
|
|
455
|
-
type: NgModule,
|
|
456
|
-
args: [{
|
|
457
|
-
exports: [SkyCountryFieldModule],
|
|
458
|
-
}]
|
|
459
|
-
}] });
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Harness for interacting with multiselect lookup selections in tests.
|
|
463
|
-
* @internal
|
|
464
|
-
*/
|
|
465
|
-
class SkyLookupSelectionsListHarness extends SkyTokensHarness {
|
|
466
|
-
/**
|
|
467
|
-
* Gets a list of selections.
|
|
468
|
-
*/
|
|
469
|
-
getSelections() {
|
|
470
|
-
const _super = Object.create(null, {
|
|
471
|
-
getTokens: { get: () => super.getTokens }
|
|
472
|
-
});
|
|
473
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
-
return _super.getTokens.call(this);
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Dismisses the selections in the list.
|
|
479
|
-
*/
|
|
480
|
-
dismissSelections() {
|
|
481
|
-
const _super = Object.create(null, {
|
|
482
|
-
dismissTokens: { get: () => super.dismissTokens }
|
|
483
|
-
});
|
|
484
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
485
|
-
return _super.dismissTokens.call(this);
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* Gets the text content of all selections in the list.
|
|
490
|
-
*/
|
|
491
|
-
getSelectionsText() {
|
|
492
|
-
const _super = Object.create(null, {
|
|
493
|
-
getTokensText: { get: () => super.getTokensText }
|
|
494
|
-
});
|
|
495
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
496
|
-
return _super.getTokensText.call(this);
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
var _SkySearchHarness_instances, _SkySearchHarness_getInput, _SkySearchHarness_getSubmitButton, _SkySearchHarness_clickSubmitButton;
|
|
502
|
-
/**
|
|
503
|
-
* Harness for interacting with an search component in tests.
|
|
504
|
-
* @internal
|
|
505
|
-
*/
|
|
506
|
-
class SkySearchHarness extends SkyComponentHarness {
|
|
507
|
-
constructor() {
|
|
508
|
-
super(...arguments);
|
|
509
|
-
_SkySearchHarness_instances.add(this);
|
|
510
|
-
_SkySearchHarness_getInput.set(this, this.locatorFor('input.sky-search-input'));
|
|
511
|
-
_SkySearchHarness_getSubmitButton.set(this, this.locatorFor('button.sky-search-btn-apply'));
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
515
|
-
* `SkySearchHarness` that meets certain criteria.
|
|
516
|
-
*/
|
|
517
|
-
static with(filters) {
|
|
518
|
-
return this.getDataSkyIdPredicate(filters);
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* Blurs the input.
|
|
522
|
-
*/
|
|
523
|
-
blur() {
|
|
524
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
-
yield (yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this)).blur();
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* Clears the input.
|
|
530
|
-
*/
|
|
531
|
-
clear() {
|
|
532
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
-
const input = yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this);
|
|
534
|
-
yield input.focus();
|
|
535
|
-
yield input.clear();
|
|
536
|
-
yield __classPrivateFieldGet(this, _SkySearchHarness_instances, "m", _SkySearchHarness_clickSubmitButton).call(this);
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Enters text into the input and performs a search.
|
|
541
|
-
*/
|
|
542
|
-
enterText(value) {
|
|
543
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
544
|
-
const input = yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this);
|
|
545
|
-
yield input.clear();
|
|
546
|
-
yield input.focus();
|
|
547
|
-
yield input.sendKeys(value);
|
|
548
|
-
yield __classPrivateFieldGet(this, _SkySearchHarness_instances, "m", _SkySearchHarness_clickSubmitButton).call(this);
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* Focuses the input.
|
|
553
|
-
*/
|
|
554
|
-
focus() {
|
|
555
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
556
|
-
yield (yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this)).focus();
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* Gets the value of the input's placeholder attribute.
|
|
561
|
-
*/
|
|
562
|
-
getPlaceholderText() {
|
|
563
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
564
|
-
return (yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this)).getAttribute('placeholder');
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* Gets the value of the input.
|
|
569
|
-
*/
|
|
570
|
-
getValue() {
|
|
571
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
-
return (yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this)).getProperty('value');
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* Whether the input is disabled.
|
|
577
|
-
*/
|
|
578
|
-
isDisabled() {
|
|
579
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
580
|
-
const disabled = yield (yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this)).getAttribute('disabled');
|
|
581
|
-
return disabled !== null;
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Whether the input is focused.
|
|
586
|
-
*/
|
|
587
|
-
isFocused() {
|
|
588
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
589
|
-
return (yield __classPrivateFieldGet(this, _SkySearchHarness_getInput, "f").call(this)).isFocused();
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
_SkySearchHarness_getInput = new WeakMap(), _SkySearchHarness_getSubmitButton = new WeakMap(), _SkySearchHarness_instances = new WeakSet(), _SkySearchHarness_clickSubmitButton = function _SkySearchHarness_clickSubmitButton() {
|
|
594
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
-
return (yield __classPrivateFieldGet(this, _SkySearchHarness_getSubmitButton, "f").call(this)).click();
|
|
596
|
-
});
|
|
597
|
-
};
|
|
598
|
-
/**
|
|
599
|
-
* @internal
|
|
600
|
-
*/
|
|
601
|
-
SkySearchHarness.hostSelector = 'sky-search';
|
|
602
|
-
|
|
603
|
-
var _SkySelectionModalHarness_getCancelButton, _SkySelectionModalHarness_getClearAllButton, _SkySelectionModalHarness_getInfiniteScroll, _SkySelectionModalHarness_getSaveButton, _SkySelectionModalHarness_getSearchHarness, _SkySelectionModalHarness_getSelectAllButton, _SkySelectionModalHarness_getAddButton;
|
|
604
|
-
/**
|
|
605
|
-
* Harness for interacting with a selection modal in tests.
|
|
606
|
-
*/
|
|
607
|
-
class SkySelectionModalHarness extends ComponentHarness {
|
|
608
|
-
constructor() {
|
|
609
|
-
super(...arguments);
|
|
610
|
-
_SkySelectionModalHarness_getCancelButton.set(this, this.locatorFor('button.sky-lookup-show-more-modal-close'));
|
|
611
|
-
_SkySelectionModalHarness_getClearAllButton.set(this, this.locatorForOptional('button.sky-lookup-show-more-modal-clear-all-btn'));
|
|
612
|
-
_SkySelectionModalHarness_getInfiniteScroll.set(this, this.locatorFor(SkyInfiniteScrollHarness));
|
|
613
|
-
_SkySelectionModalHarness_getSaveButton.set(this, this.locatorFor('button.sky-lookup-show-more-modal-save'));
|
|
614
|
-
_SkySelectionModalHarness_getSearchHarness.set(this, this.locatorFor(SkySearchHarness));
|
|
615
|
-
_SkySelectionModalHarness_getSelectAllButton.set(this, this.locatorForOptional('button.sky-lookup-show-more-modal-select-all-btn'));
|
|
616
|
-
_SkySelectionModalHarness_getAddButton.set(this, this.locatorForOptional('button.sky-lookup-show-more-modal-add'));
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Clears the text of the search input.
|
|
620
|
-
*/
|
|
621
|
-
clearSearchText() {
|
|
622
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
623
|
-
return (yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getSearchHarness, "f").call(this)).clear();
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* Enters text into the search input and performs a search.
|
|
628
|
-
*/
|
|
629
|
-
enterSearchText(value) {
|
|
630
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
631
|
-
return (yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getSearchHarness, "f").call(this)).enterText(value);
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* Selects multiple search results based on a set of criteria.
|
|
636
|
-
*/
|
|
637
|
-
selectSearchResult(filters) {
|
|
638
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
639
|
-
const harnesses = yield this.getSearchResults(filters);
|
|
640
|
-
if (yield this.isMultiselect()) {
|
|
641
|
-
for (const harness of harnesses) {
|
|
642
|
-
yield harness.select();
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
// Click on the item directly because we've added a custom click event in the picker's template.
|
|
647
|
-
yield (yield harnesses[0].host()).click();
|
|
648
|
-
}
|
|
649
|
-
});
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* Saves any selections made and closes the modal.
|
|
653
|
-
*/
|
|
654
|
-
saveAndClose() {
|
|
655
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
-
return (yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getSaveButton, "f").call(this)).click();
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
/**
|
|
660
|
-
* Closes the picker without saving any selections made.
|
|
661
|
-
*/
|
|
662
|
-
cancel() {
|
|
663
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
-
return (yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getCancelButton, "f").call(this)).click();
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Gets a list of search results.
|
|
669
|
-
*/
|
|
670
|
-
getSearchResults(filters) {
|
|
671
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
672
|
-
const pickerId = (yield (yield this.host()).getAttribute('id'));
|
|
673
|
-
const harnesses = yield this.locatorForAll(SkyRepeaterItemHarness.with(Object.assign(Object.assign({}, (filters || {})), { ancestor: `#${pickerId}` })))();
|
|
674
|
-
if (filters && harnesses.length === 0) {
|
|
675
|
-
throw new Error(`Could not find search results in the picker matching filter(s): ${JSON.stringify(filters)}`);
|
|
676
|
-
}
|
|
677
|
-
return harnesses;
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Clears all selections made.
|
|
682
|
-
*/
|
|
683
|
-
clearAll() {
|
|
684
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
685
|
-
const button = yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getClearAllButton, "f").call(this);
|
|
686
|
-
if (!button) {
|
|
687
|
-
throw new Error('Could not clear all selections because the "Clear all" button could not be found.');
|
|
688
|
-
}
|
|
689
|
-
yield button.click();
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
/**
|
|
693
|
-
* Whether the selection modal is configured to allow multiple selections.
|
|
694
|
-
*/
|
|
695
|
-
isMultiselect() {
|
|
696
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
-
return !(yield (yield this.host()).hasClass('sky-lookup-show-more-modal-single'));
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* Selects all search results.
|
|
702
|
-
*/
|
|
703
|
-
selectAll() {
|
|
704
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
-
const button = yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getSelectAllButton, "f").call(this);
|
|
706
|
-
if (!button) {
|
|
707
|
-
throw new Error('Could not select all selections because the "Select all" button could not be found.');
|
|
708
|
-
}
|
|
709
|
-
yield button.click();
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
/**
|
|
713
|
-
* Loads more results in the picker.
|
|
714
|
-
*/
|
|
715
|
-
loadMore() {
|
|
716
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
-
return (yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getInfiniteScroll, "f").call(this)).loadMore();
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
/**
|
|
721
|
-
* Whether the selection modal is configured to show the add button.
|
|
722
|
-
*/
|
|
723
|
-
hasAddButton() {
|
|
724
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
725
|
-
const button = yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getAddButton, "f").call(this);
|
|
726
|
-
return !!button;
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
/**
|
|
730
|
-
* Clicks the add button.
|
|
731
|
-
*/
|
|
732
|
-
clickAddButton() {
|
|
733
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
734
|
-
const button = yield __classPrivateFieldGet(this, _SkySelectionModalHarness_getAddButton, "f").call(this);
|
|
735
|
-
if (!button) {
|
|
736
|
-
throw new Error('Could not click the add button because the button could not be found.');
|
|
737
|
-
}
|
|
738
|
-
yield button.click();
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
_SkySelectionModalHarness_getCancelButton = new WeakMap(), _SkySelectionModalHarness_getClearAllButton = new WeakMap(), _SkySelectionModalHarness_getInfiniteScroll = new WeakMap(), _SkySelectionModalHarness_getSaveButton = new WeakMap(), _SkySelectionModalHarness_getSearchHarness = new WeakMap(), _SkySelectionModalHarness_getSelectAllButton = new WeakMap(), _SkySelectionModalHarness_getAddButton = new WeakMap();
|
|
743
|
-
/**
|
|
744
|
-
* @internal
|
|
745
|
-
*/
|
|
746
|
-
SkySelectionModalHarness.hostSelector = '.sky-lookup-show-more-modal';
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Harness for interacting with a lookup's "Show more" picker in tests.
|
|
750
|
-
* @internal
|
|
751
|
-
*/
|
|
752
|
-
class SkyLookupShowMorePickerHarness extends SkySelectionModalHarness {
|
|
753
|
-
/**
|
|
754
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
755
|
-
* `SkyLookupShowMorePickerHarness` that meets certain criteria.
|
|
756
|
-
*/
|
|
757
|
-
static with(filters) {
|
|
758
|
-
return new HarnessPredicate(SkyLookupShowMorePickerHarness, filters);
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* Selects multiple search results based on a set of criteria.
|
|
762
|
-
*/
|
|
763
|
-
selectSearchResult(filters) {
|
|
764
|
-
const _super = Object.create(null, {
|
|
765
|
-
selectSearchResult: { get: () => super.selectSearchResult }
|
|
766
|
-
});
|
|
767
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
768
|
-
return _super.selectSearchResult.call(this, filters);
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
/**
|
|
772
|
-
* Gets a list of search results.
|
|
773
|
-
*/
|
|
774
|
-
getSearchResults(filters) {
|
|
775
|
-
const _super = Object.create(null, {
|
|
776
|
-
getSearchResults: { get: () => super.getSearchResults }
|
|
777
|
-
});
|
|
778
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
779
|
-
return _super.getSearchResults.call(this, filters);
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
var _SkyLookupHarness_documentRootLocator, _SkyLookupHarness_getAutocompleteHarness, _SkyLookupHarness_getSelectionsListHarness, _SkyLookupHarness_getWrapper;
|
|
785
|
-
/**
|
|
786
|
-
* Harness for interacting with a lookup component in tests.
|
|
787
|
-
*/
|
|
788
|
-
class SkyLookupHarness extends SkyAutocompleteHarness {
|
|
789
|
-
constructor() {
|
|
790
|
-
super(...arguments);
|
|
791
|
-
_SkyLookupHarness_documentRootLocator.set(this, this.documentRootLocatorFactory());
|
|
792
|
-
_SkyLookupHarness_getAutocompleteHarness.set(this, this.locatorFor(SkyAutocompleteHarness));
|
|
793
|
-
_SkyLookupHarness_getSelectionsListHarness.set(this, this.locatorFor(SkyLookupSelectionsListHarness));
|
|
794
|
-
_SkyLookupHarness_getWrapper.set(this, this.locatorFor('.sky-lookup'));
|
|
795
|
-
}
|
|
796
|
-
/**
|
|
797
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
798
|
-
* `SkyLookupHarness` that meets certain criteria.
|
|
799
|
-
*/
|
|
800
|
-
static with(filters) {
|
|
801
|
-
return SkyLookupHarness.getDataSkyIdPredicate(filters);
|
|
802
|
-
}
|
|
803
|
-
/**
|
|
804
|
-
* Clicks the "Add" button on the search results panel.
|
|
805
|
-
*/
|
|
806
|
-
clickAddButton() {
|
|
807
|
-
const _super = Object.create(null, {
|
|
808
|
-
clickAddButton: { get: () => super.clickAddButton }
|
|
809
|
-
});
|
|
810
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
811
|
-
yield this.focus();
|
|
812
|
-
yield _super.clickAddButton.call(this);
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* Clicks the "Show more" button on the search results panel.
|
|
817
|
-
*/
|
|
818
|
-
clickShowMoreButton() {
|
|
819
|
-
const _super = Object.create(null, {
|
|
820
|
-
clickShowMoreButton: { get: () => super.clickShowMoreButton }
|
|
821
|
-
});
|
|
822
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
823
|
-
yield this.focus();
|
|
824
|
-
yield _super.clickShowMoreButton.call(this);
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* Dismisses the selections made with a multiselect lookup.
|
|
829
|
-
*/
|
|
830
|
-
dismissSelections() {
|
|
831
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
832
|
-
return (yield __classPrivateFieldGet(this, _SkyLookupHarness_getSelectionsListHarness, "f").call(this)).dismissSelections();
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* Gets the "Show more" picker harness.
|
|
837
|
-
*/
|
|
838
|
-
getShowMorePicker() {
|
|
839
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
840
|
-
const pickerId = yield (yield (yield __classPrivateFieldGet(this, _SkyLookupHarness_getAutocompleteHarness, "f").call(this)).host()).getAttribute('data-sky-lookup-show-more-picker-id');
|
|
841
|
-
const defaultPicker = yield __classPrivateFieldGet(this, _SkyLookupHarness_documentRootLocator, "f").locatorForOptional(SkyLookupShowMorePickerHarness.with({ selector: `#${pickerId}` }))();
|
|
842
|
-
if (!defaultPicker) {
|
|
843
|
-
throw new Error('Cannot get the "Show more" picker because it is not open.');
|
|
844
|
-
}
|
|
845
|
-
return defaultPicker;
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* Gets a list of selections made with a multiselect lookup.
|
|
850
|
-
*/
|
|
851
|
-
getSelections() {
|
|
852
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
853
|
-
return (yield __classPrivateFieldGet(this, _SkyLookupHarness_getSelectionsListHarness, "f").call(this)).getSelections();
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
/**
|
|
857
|
-
* Gets the text content of all selections made with a multiselect lookup.
|
|
858
|
-
*/
|
|
859
|
-
getSelectionsText() {
|
|
860
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
861
|
-
return (yield __classPrivateFieldGet(this, _SkyLookupHarness_getSelectionsListHarness, "f").call(this)).getSelectionsText();
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
* Whether the lookup allows for multiple selections.
|
|
866
|
-
*/
|
|
867
|
-
isMultiselect() {
|
|
868
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
869
|
-
return !(yield (yield __classPrivateFieldGet(this, _SkyLookupHarness_getWrapper, "f").call(this)).hasClass('sky-lookup-single'));
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
_SkyLookupHarness_documentRootLocator = new WeakMap(), _SkyLookupHarness_getAutocompleteHarness = new WeakMap(), _SkyLookupHarness_getSelectionsListHarness = new WeakMap(), _SkyLookupHarness_getWrapper = new WeakMap();
|
|
874
|
-
/**
|
|
875
|
-
* Finds a standard lookup component, or a lookup component that is wrapped by an input box component.
|
|
876
|
-
* For input box implementations, we need to use the `.sky-input-box` selector since the `sky-lookup`
|
|
877
|
-
* element is removed from the DOM.
|
|
878
|
-
* @internal
|
|
879
|
-
*/
|
|
880
|
-
SkyLookupHarness.hostSelector = 'sky-lookup,.sky-input-box';
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* Harness for interacting with a multiselect lookup selection in tests.
|
|
884
|
-
* @internal
|
|
885
|
-
*/
|
|
886
|
-
class SkyLookupSelectionHarness extends SkyTokenHarness {
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* Harness for interacting with a selection modal's search results in tests.
|
|
891
|
-
*/
|
|
892
|
-
class SkySelectionModalSearchResultHarness extends SkyRepeaterItemHarness {
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
/**
|
|
896
|
-
* Harness for interacting with a lookup's "Show more" picker search results in tests.
|
|
897
|
-
* @internal
|
|
898
|
-
*/
|
|
899
|
-
class SkyLookupShowMorePickerSearchResultHarness extends SkySelectionModalSearchResultHarness {
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
var _SkySearchFixture_instances, _SkySearchFixture_debugEl, _SkySearchFixture_getApplyBtnEl, _SkySearchFixture_getClearBtnEl, _SkySearchFixture_getInputEl;
|
|
903
|
-
/**
|
|
904
|
-
* Allows interaction with a SKY UX search component.
|
|
905
|
-
* @deprecated Use `SkySearchHarness` instead.
|
|
906
|
-
* @internal
|
|
907
|
-
*/
|
|
908
|
-
class SkySearchFixture {
|
|
909
|
-
/**
|
|
910
|
-
* Gets the search's current text.
|
|
911
|
-
*/
|
|
912
|
-
get searchText() {
|
|
913
|
-
return __classPrivateFieldGet(this, _SkySearchFixture_instances, "m", _SkySearchFixture_getInputEl).call(this).nativeElement.value;
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Gets the search's current placeholder text.
|
|
917
|
-
*/
|
|
918
|
-
get placeholderText() {
|
|
919
|
-
return __classPrivateFieldGet(this, _SkySearchFixture_instances, "m", _SkySearchFixture_getInputEl).call(this).nativeElement.placeholder;
|
|
920
|
-
}
|
|
921
|
-
constructor(fixture, skyTestId) {
|
|
922
|
-
_SkySearchFixture_instances.add(this);
|
|
923
|
-
_SkySearchFixture_debugEl.set(this, void 0);
|
|
924
|
-
__classPrivateFieldSet(this, _SkySearchFixture_debugEl, SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-search'), "f");
|
|
925
|
-
}
|
|
926
|
-
/**
|
|
927
|
-
* Applies the specified search text, invoking the search.
|
|
928
|
-
* @param searchText The search text to apply. If none is specified, the search's
|
|
929
|
-
* current search text will be applied.
|
|
930
|
-
*/
|
|
931
|
-
apply(searchText) {
|
|
932
|
-
if (searchText) {
|
|
933
|
-
SkyAppTestUtility.setInputValue(__classPrivateFieldGet(this, _SkySearchFixture_instances, "m", _SkySearchFixture_getInputEl).call(this).nativeElement, searchText);
|
|
934
|
-
}
|
|
935
|
-
const btnEl = __classPrivateFieldGet(this, _SkySearchFixture_instances, "m", _SkySearchFixture_getApplyBtnEl).call(this);
|
|
936
|
-
btnEl.triggerEventHandler('click', {});
|
|
937
|
-
}
|
|
938
|
-
/**
|
|
939
|
-
* Clears the current search text. If there is no search text or the search text is
|
|
940
|
-
* not currently applied, an error is thrown.
|
|
941
|
-
*/
|
|
942
|
-
clear() {
|
|
943
|
-
const clearEl = __classPrivateFieldGet(this, _SkySearchFixture_debugEl, "f").query(By.css('.sky-input-group-clear'));
|
|
944
|
-
if (!SkyAppTestUtility.isVisible(clearEl)) {
|
|
945
|
-
throw new Error('There currently is no search text or the current search text has not been applied, ' +
|
|
946
|
-
'so the clear button is not visible.');
|
|
947
|
-
}
|
|
948
|
-
const btnEl = __classPrivateFieldGet(this, _SkySearchFixture_instances, "m", _SkySearchFixture_getClearBtnEl).call(this);
|
|
949
|
-
btnEl.triggerEventHandler('click', {});
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
_SkySearchFixture_debugEl = new WeakMap(), _SkySearchFixture_instances = new WeakSet(), _SkySearchFixture_getApplyBtnEl = function _SkySearchFixture_getApplyBtnEl() {
|
|
953
|
-
return __classPrivateFieldGet(this, _SkySearchFixture_debugEl, "f").query(By.css('.sky-search-btn-apply'));
|
|
954
|
-
}, _SkySearchFixture_getClearBtnEl = function _SkySearchFixture_getClearBtnEl() {
|
|
955
|
-
return __classPrivateFieldGet(this, _SkySearchFixture_debugEl, "f").query(By.css('.sky-search-btn-clear'));
|
|
956
|
-
}, _SkySearchFixture_getInputEl = function _SkySearchFixture_getInputEl() {
|
|
957
|
-
return __classPrivateFieldGet(this, _SkySearchFixture_debugEl, "f").query(By.css('.sky-search-input'));
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* @internal
|
|
962
|
-
*/
|
|
963
|
-
class SkySearchTestingModule {
|
|
964
|
-
}
|
|
965
|
-
SkySearchTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkySearchTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
966
|
-
SkySearchTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkySearchTestingModule, exports: [NoopAnimationsModule, SkySearchModule] });
|
|
967
|
-
SkySearchTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkySearchTestingModule, imports: [NoopAnimationsModule, SkySearchModule] });
|
|
968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkySearchTestingModule, decorators: [{
|
|
969
|
-
type: NgModule,
|
|
970
|
-
args: [{
|
|
971
|
-
exports: [NoopAnimationsModule, SkySearchModule],
|
|
972
|
-
}]
|
|
973
|
-
}] });
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* Generated bundle index. Do not edit.
|
|
977
|
-
*/
|
|
978
|
-
|
|
979
|
-
export { SkyAutocompleteHarness, SkyAutocompleteSearchResultHarness, SkyCountryFieldFixture, SkyCountryFieldTestingModule, SkyLookupHarness, SkyLookupSelectionHarness, SkyLookupSelectionsListHarness, SkyLookupShowMorePickerHarness, SkyLookupShowMorePickerSearchResultHarness, SkySearchFixture, SkySearchHarness, SkySearchTestingModule, SkySelectionModalHarness, SkySelectionModalSearchResultHarness };
|
|
980
|
-
//# sourceMappingURL=skyux-lookup-testing.mjs.map
|