igniteui-webcomponents 4.1.0 → 4.2.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.
- package/CHANGELOG.md +25 -2
- package/animations/easings.d.ts +31 -0
- package/animations/easings.js +35 -0
- package/animations/easings.js.map +1 -0
- package/animations/index.d.ts +3 -0
- package/animations/index.js +4 -0
- package/animations/index.js.map +1 -0
- package/animations/player.d.ts +9 -0
- package/animations/player.js +47 -0
- package/animations/player.js.map +1 -0
- package/animations/presets/grow/index.d.ts +3 -0
- package/animations/presets/grow/index.js +18 -0
- package/animations/presets/grow/index.js.map +1 -0
- package/animations/presets/index.d.ts +1 -0
- package/animations/presets/index.js +2 -0
- package/animations/presets/index.js.map +1 -0
- package/animations/types.d.ts +5 -0
- package/animations/types.js +7 -0
- package/animations/types.js.map +1 -0
- package/components/accordion/accordion.js +4 -4
- package/components/accordion/accordion.js.map +1 -1
- package/components/accordion/themes/accordion.base.css.js +10 -0
- package/components/accordion/themes/accordion.base.css.js.map +1 -1
- package/components/badge/themes/light/badge.base.css.js +15 -11
- package/components/badge/themes/light/badge.base.css.js.map +1 -1
- package/components/badge/themes/light/badge.bootstrap.css.js +4 -5
- package/components/badge/themes/light/badge.bootstrap.css.js.map +1 -1
- package/components/card/themes/light/card.content.bootstrap.css.js +2 -4
- package/components/card/themes/light/card.content.bootstrap.css.js.map +1 -1
- package/components/card/themes/light/card.content.indigo.css.js +1 -6
- package/components/card/themes/light/card.content.indigo.css.js.map +1 -1
- package/components/card/themes/light/card.content.material.css.js +1 -2
- package/components/card/themes/light/card.content.material.css.js.map +1 -1
- package/components/card/themes/light/card.header.bootstrap.css.js +2 -5
- package/components/card/themes/light/card.header.bootstrap.css.js.map +1 -1
- package/components/card/themes/light/card.header.fluent.css.js +2 -3
- package/components/card/themes/light/card.header.fluent.css.js.map +1 -1
- package/components/card/themes/light/card.header.indigo.css.js +2 -5
- package/components/card/themes/light/card.header.indigo.css.js.map +1 -1
- package/components/card/themes/light/card.header.material.css.js +2 -3
- package/components/card/themes/light/card.header.material.css.js.map +1 -1
- package/components/checkbox/checkbox-base.js +1 -0
- package/components/checkbox/checkbox-base.js.map +1 -1
- package/components/combo/combo-item.d.ts +2 -0
- package/components/combo/combo-item.js +16 -9
- package/components/combo/combo-item.js.map +1 -1
- package/components/combo/combo-list.d.ts +1 -1
- package/components/combo/combo-list.js +2 -1
- package/components/combo/combo-list.js.map +1 -1
- package/components/combo/combo.d.ts +56 -8
- package/components/combo/combo.js +102 -17
- package/components/combo/combo.js.map +1 -1
- package/components/combo/controllers/navigation.d.ts +8 -4
- package/components/combo/controllers/navigation.js +50 -10
- package/components/combo/controllers/navigation.js.map +1 -1
- package/components/combo/controllers/selection.d.ts +4 -3
- package/components/combo/controllers/selection.js +21 -10
- package/components/combo/controllers/selection.js.map +1 -1
- package/components/combo/themes/light/combo.base.css.js +23 -16
- package/components/combo/themes/light/combo.base.css.js.map +1 -1
- package/components/combo/themes/light/combo.bootstrap.css.js +32 -0
- package/components/combo/themes/light/combo.bootstrap.css.js.map +1 -1
- package/components/combo/themes/light/combo.fluent.css.js +35 -2
- package/components/combo/themes/light/combo.fluent.css.js.map +1 -1
- package/components/combo/themes/light/combo.indigo.css.js +22 -12
- package/components/combo/themes/light/combo.indigo.css.js.map +1 -1
- package/components/combo/themes/light/combo.material.css.js +47 -3
- package/components/combo/themes/light/combo.material.css.js.map +1 -1
- package/components/combo/types.d.ts +1 -0
- package/components/combo/types.js.map +1 -1
- package/components/dialog/themes/light/dialog.base.css.js +2 -2
- package/components/dialog/themes/light/dialog.base.css.js.map +1 -1
- package/components/expansion-panel/expansion-panel.d.ts +4 -0
- package/components/expansion-panel/expansion-panel.js +32 -6
- package/components/expansion-panel/expansion-panel.js.map +1 -1
- package/components/expansion-panel/themes/light/expansion-panel.base.css.js +49 -2
- package/components/expansion-panel/themes/light/expansion-panel.base.css.js.map +1 -1
- package/components/input/input-base.js +1 -1
- package/components/input/input-base.js.map +1 -1
- package/components/input/themes/light/input.bootstrap.css.js +20 -3
- package/components/input/themes/light/input.bootstrap.css.js.map +1 -1
- package/components/input/themes/light/input.fluent.css.js +19 -5
- package/components/input/themes/light/input.fluent.css.js.map +1 -1
- package/components/input/themes/light/input.indigo.css.js +31 -7
- package/components/input/themes/light/input.indigo.css.js.map +1 -1
- package/components/input/themes/light/input.material.css.js +66 -72
- package/components/input/themes/light/input.material.css.js.map +1 -1
- package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.js +1 -1
- package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.js.map +1 -1
- package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js +1 -1
- package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js +11 -11
- package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js.map +1 -1
- package/components/radio/radio.js +1 -0
- package/components/radio/radio.js.map +1 -1
- package/components/radio/themes/dark/radio.material.css.d.ts +1 -0
- package/components/radio/themes/dark/radio.material.css.js +3 -0
- package/components/radio/themes/dark/radio.material.css.js.map +1 -0
- package/components/radio/themes/light/radio.base.css.js +0 -3
- package/components/radio/themes/light/radio.base.css.js.map +1 -1
- package/components/radio/themes/light/radio.fluent.css.js +10 -9
- package/components/radio/themes/light/radio.fluent.css.js.map +1 -1
- package/components/radio/themes/light/radio.material.css.js +17 -3
- package/components/radio/themes/light/radio.material.css.js.map +1 -1
- package/components/radio-group/radio-group.base.css.js +2 -8
- package/components/radio-group/radio-group.base.css.js.map +1 -1
- package/components/radio-group/radio-group.fluent.css.d.ts +1 -0
- package/components/radio-group/radio-group.fluent.css.js +6 -0
- package/components/radio-group/radio-group.fluent.css.js.map +1 -0
- package/components/radio-group/radio-group.js +9 -2
- package/components/radio-group/radio-group.js.map +1 -1
- package/components/radio-group/radio-group.material.css.d.ts +1 -0
- package/components/radio-group/radio-group.material.css.js +10 -0
- package/components/radio-group/radio-group.material.css.js.map +1 -0
- package/components/select/select-group.js +1 -0
- package/components/select/select-group.js.map +1 -1
- package/components/select/themes/light/select.base.css.js +16 -15
- package/components/select/themes/light/select.base.css.js.map +1 -1
- package/components/select/themes/light/select.bootstrap.css.js +7 -0
- package/components/select/themes/light/select.bootstrap.css.js.map +1 -1
- package/components/select/themes/light/select.fluent.css.js +11 -0
- package/components/select/themes/light/select.fluent.css.js.map +1 -1
- package/components/select/themes/light/select.indigo.css.js +10 -1
- package/components/select/themes/light/select.indigo.css.js.map +1 -1
- package/components/select/themes/light/select.material.css.js +14 -0
- package/components/select/themes/light/select.material.css.js.map +1 -1
- package/components/slider/slider-base.js +1 -0
- package/components/slider/slider-base.js.map +1 -1
- package/components/stepper/themes/stepper/stepper.base.css.js +1 -1
- package/components/stepper/themes/stepper/stepper.base.css.js.map +1 -1
- package/components/toggle/toggle.controller.js.map +1 -1
- package/components/toggle/toggle.directive.js.map +1 -1
- package/custom-elements.json +37 -9
- package/package.json +4 -4
- package/themes/dark/bootstrap.css +3 -1
- package/themes/dark/fluent.css +4 -3
- package/themes/dark/indigo.css +3 -1
- package/themes/dark/material.css +12 -1
- package/vscode-html-custom-data.json +14 -4
|
@@ -47,7 +47,6 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
47
47
|
}
|
|
48
48
|
async pipeline() {
|
|
49
49
|
this.dataState = await this.dataController.apply([...this.data]);
|
|
50
|
-
this.navigationController.active = -1;
|
|
51
50
|
}
|
|
52
51
|
toggleDirectiveChange() {
|
|
53
52
|
if (!this.target)
|
|
@@ -57,6 +56,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
57
56
|
}
|
|
58
57
|
constructor() {
|
|
59
58
|
super();
|
|
59
|
+
this._value = '';
|
|
60
60
|
this.navigationController = new NavigationController(this);
|
|
61
61
|
this.selectionController = new SelectionController(this);
|
|
62
62
|
this.dataController = new DataController(this);
|
|
@@ -65,6 +65,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
65
65
|
this.required = false;
|
|
66
66
|
this.invalid = false;
|
|
67
67
|
this.outlined = false;
|
|
68
|
+
this.singleSelect = false;
|
|
68
69
|
this.autofocusList = false;
|
|
69
70
|
this.placeholderSearch = 'Search';
|
|
70
71
|
this.dir = 'auto';
|
|
@@ -111,6 +112,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
111
112
|
.index=${index}
|
|
112
113
|
.active=${active}
|
|
113
114
|
.selected=${selected}
|
|
115
|
+
?hide-checkbox=${this.singleSelect}
|
|
114
116
|
>${this.itemTemplate({ item: record })}</igc-combo-item
|
|
115
117
|
>`;
|
|
116
118
|
return html `${this.groupKey && record.header
|
|
@@ -131,6 +133,11 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
131
133
|
this.emitEvent('igcFocus');
|
|
132
134
|
});
|
|
133
135
|
this.addEventListener('blur', () => {
|
|
136
|
+
const { selected } = this.selectionController;
|
|
137
|
+
if (selected.size === 0) {
|
|
138
|
+
this.target.value = '';
|
|
139
|
+
this.resetSearchTerm();
|
|
140
|
+
}
|
|
134
141
|
this.emitEvent('igcBlur');
|
|
135
142
|
});
|
|
136
143
|
this.addEventListener('keydown', this.navigationController.navigateHost.bind(this.navigationController));
|
|
@@ -146,8 +153,23 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
146
153
|
await this.toggleController.rendered;
|
|
147
154
|
return result;
|
|
148
155
|
}
|
|
156
|
+
resetSearchTerm() {
|
|
157
|
+
this.dataController.searchTerm = '';
|
|
158
|
+
}
|
|
159
|
+
async resetState() {
|
|
160
|
+
await this.updateComplete;
|
|
161
|
+
this.selectionController.selected.clear();
|
|
162
|
+
this.updateValue();
|
|
163
|
+
this.resetSearchTerm();
|
|
164
|
+
this.navigationController.active = -1;
|
|
165
|
+
}
|
|
149
166
|
get value() {
|
|
150
|
-
return this.
|
|
167
|
+
return this._value;
|
|
168
|
+
}
|
|
169
|
+
async updateValue() {
|
|
170
|
+
this._value = this.selectionController.getValue(Array.from(this.selectionController.selected));
|
|
171
|
+
await this.updateComplete;
|
|
172
|
+
this.target.value = this._value;
|
|
151
173
|
}
|
|
152
174
|
validate() {
|
|
153
175
|
this.updateComplete.then(() => this.reportValidity());
|
|
@@ -165,11 +187,29 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
165
187
|
blur() {
|
|
166
188
|
this.target.blur();
|
|
167
189
|
}
|
|
190
|
+
normalizeSelection(items = []) {
|
|
191
|
+
return Array.isArray(items) ? items : [items];
|
|
192
|
+
}
|
|
168
193
|
select(items) {
|
|
169
|
-
this.
|
|
194
|
+
const _items = this.normalizeSelection(items);
|
|
195
|
+
this.selectionController.select(_items, false);
|
|
196
|
+
this.list.requestUpdate();
|
|
197
|
+
this.updateValue();
|
|
170
198
|
}
|
|
171
199
|
deselect(items) {
|
|
172
|
-
this.
|
|
200
|
+
const _items = this.normalizeSelection(items);
|
|
201
|
+
this.selectionController.deselect(_items, false);
|
|
202
|
+
this.list.requestUpdate();
|
|
203
|
+
this.updateValue();
|
|
204
|
+
}
|
|
205
|
+
async handleMainInput(e) {
|
|
206
|
+
this._show();
|
|
207
|
+
this.dataController.searchTerm = e.detail;
|
|
208
|
+
await this.updateComplete;
|
|
209
|
+
const match = e.detail.length > 0 && this.dataState.length > 0;
|
|
210
|
+
this.navigationController.active = match ? 1 : -1;
|
|
211
|
+
this.list.requestUpdate();
|
|
212
|
+
this.clearSingleSelection();
|
|
173
213
|
}
|
|
174
214
|
handleSearchInput(e) {
|
|
175
215
|
this.dataController.searchTerm = e.detail;
|
|
@@ -190,7 +230,9 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
190
230
|
this.open = true;
|
|
191
231
|
await this.updateComplete;
|
|
192
232
|
emit && this.emitEvent('igcOpened');
|
|
193
|
-
this.
|
|
233
|
+
if (!this.singleSelect) {
|
|
234
|
+
this.list.focus();
|
|
235
|
+
}
|
|
194
236
|
if (!this.autofocusList) {
|
|
195
237
|
this.input.focus();
|
|
196
238
|
}
|
|
@@ -206,7 +248,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
206
248
|
this.open = false;
|
|
207
249
|
await this.updateComplete;
|
|
208
250
|
emit && this.emitEvent('igcClosed');
|
|
209
|
-
this.
|
|
251
|
+
this.navigationController.active = -1;
|
|
210
252
|
}
|
|
211
253
|
hide() {
|
|
212
254
|
this._hide(false);
|
|
@@ -226,23 +268,51 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
226
268
|
}
|
|
227
269
|
}
|
|
228
270
|
itemClickHandler(event) {
|
|
271
|
+
const input = this.singleSelect ? this.target : this.input;
|
|
229
272
|
const target = event
|
|
230
273
|
.composedPath()
|
|
231
274
|
.find((el) => el instanceof IgcComboItemComponent);
|
|
232
275
|
this.toggleSelect(target.index);
|
|
233
|
-
|
|
276
|
+
input.focus();
|
|
277
|
+
if (this.singleSelect) {
|
|
278
|
+
this._hide();
|
|
279
|
+
}
|
|
234
280
|
}
|
|
235
281
|
toggleSelect(index) {
|
|
236
282
|
this.selectionController.changeSelection(index);
|
|
237
283
|
this.navigationController.active = index;
|
|
284
|
+
this.updateValue();
|
|
285
|
+
this.list.requestUpdate();
|
|
238
286
|
}
|
|
239
287
|
navigateTo(item) {
|
|
240
288
|
this.navigationController.navigateTo(item, this.list);
|
|
241
289
|
}
|
|
290
|
+
clearSingleSelection() {
|
|
291
|
+
const { selected } = this.selectionController;
|
|
292
|
+
const selection = selected.values().next().value;
|
|
293
|
+
if (selection) {
|
|
294
|
+
const item = this.valueKey ? selection[this.valueKey] : selection;
|
|
295
|
+
this.selectionController.deselect([item], selected.size > 0);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
242
298
|
handleClearIconClick(e) {
|
|
243
299
|
e.stopPropagation();
|
|
244
|
-
this.
|
|
300
|
+
if (this.singleSelect) {
|
|
301
|
+
this.resetSearchTerm();
|
|
302
|
+
this.clearSingleSelection();
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
this.selectionController.deselect([], true);
|
|
306
|
+
}
|
|
307
|
+
this.updateValue();
|
|
245
308
|
this.navigationController.active = -1;
|
|
309
|
+
this.list.requestUpdate();
|
|
310
|
+
}
|
|
311
|
+
handleMainInputKeydown(e) {
|
|
312
|
+
this.navigationController.navigateMainInput(e, this.list);
|
|
313
|
+
}
|
|
314
|
+
handleSearchInputKeydown(e) {
|
|
315
|
+
this.navigationController.navigateSearchInput(e, this.list);
|
|
246
316
|
}
|
|
247
317
|
toggleCaseSensitivity() {
|
|
248
318
|
this.filteringOptions.caseSensitive = !this.filteringOptions.caseSensitive;
|
|
@@ -287,7 +357,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
287
357
|
</slot>
|
|
288
358
|
</span>`;
|
|
289
359
|
}
|
|
290
|
-
|
|
360
|
+
renderMainInput() {
|
|
291
361
|
return html `<igc-input
|
|
292
362
|
id="target"
|
|
293
363
|
role="combobox"
|
|
@@ -299,19 +369,25 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
299
369
|
e.preventDefault();
|
|
300
370
|
this._toggle(true);
|
|
301
371
|
}}
|
|
302
|
-
value=${ifDefined(this.value)}
|
|
303
372
|
placeholder=${ifDefined(this.placeholder)}
|
|
304
373
|
label=${ifDefined(this.label)}
|
|
305
374
|
dir=${this.dir}
|
|
306
|
-
@
|
|
375
|
+
@igcChange=${(e) => e.stopPropagation()}
|
|
376
|
+
@igcFocus=${(e) => {
|
|
377
|
+
e.stopPropagation();
|
|
378
|
+
requestAnimationFrame(() => {
|
|
379
|
+
this.target.select();
|
|
380
|
+
});
|
|
381
|
+
}}
|
|
307
382
|
@igcBlur=${(e) => e.stopPropagation()}
|
|
308
|
-
@
|
|
309
|
-
|
|
383
|
+
@igcInput=${this.handleMainInput}
|
|
384
|
+
@keydown=${this.handleMainInputKeydown}
|
|
385
|
+
.disabled=${this.disabled}
|
|
310
386
|
.required=${this.required}
|
|
311
387
|
.invalid=${this.invalid}
|
|
312
388
|
.outlined=${this.outlined}
|
|
313
389
|
.autofocus=${this.autofocus}
|
|
314
|
-
readonly
|
|
390
|
+
?readonly=${!this.singleSelect}
|
|
315
391
|
>
|
|
316
392
|
<span slot=${this.hasPrefixes && 'prefix'}>
|
|
317
393
|
<slot name="prefix"></slot>
|
|
@@ -325,7 +401,10 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
325
401
|
}
|
|
326
402
|
renderSearchInput() {
|
|
327
403
|
var _a;
|
|
328
|
-
return html `<div
|
|
404
|
+
return html `<div
|
|
405
|
+
part="filter-input"
|
|
406
|
+
?hidden=${this.disableFiltering || this.singleSelect}
|
|
407
|
+
>
|
|
329
408
|
<igc-input
|
|
330
409
|
part="search-input"
|
|
331
410
|
placeholder=${this.placeholderSearch}
|
|
@@ -333,7 +412,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
333
412
|
@igcFocus=${(e) => e.stopPropagation()}
|
|
334
413
|
@igcBlur=${(e) => e.stopPropagation()}
|
|
335
414
|
@igcInput=${this.handleSearchInput}
|
|
336
|
-
@keydown=${
|
|
415
|
+
@keydown=${this.handleSearchInputKeydown}
|
|
337
416
|
dir=${this.dir}
|
|
338
417
|
>
|
|
339
418
|
<igc-icon
|
|
@@ -390,7 +469,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
390
469
|
}
|
|
391
470
|
render() {
|
|
392
471
|
return html `
|
|
393
|
-
${this.
|
|
472
|
+
${this.renderMainInput()}${this.renderList()}${this.renderHelperText()}
|
|
394
473
|
`;
|
|
395
474
|
}
|
|
396
475
|
};
|
|
@@ -432,6 +511,9 @@ __decorate([
|
|
|
432
511
|
__decorate([
|
|
433
512
|
property({ reflect: true, type: Boolean })
|
|
434
513
|
], IgcComboComponent.prototype, "outlined", void 0);
|
|
514
|
+
__decorate([
|
|
515
|
+
property({ attribute: 'single-select', reflect: true, type: Boolean })
|
|
516
|
+
], IgcComboComponent.prototype, "singleSelect", void 0);
|
|
435
517
|
__decorate([
|
|
436
518
|
property({ type: Boolean })
|
|
437
519
|
], IgcComboComponent.prototype, "autofocus", void 0);
|
|
@@ -507,6 +589,9 @@ __decorate([
|
|
|
507
589
|
__decorate([
|
|
508
590
|
watch('open')
|
|
509
591
|
], IgcComboComponent.prototype, "toggleDirectiveChange", null);
|
|
592
|
+
__decorate([
|
|
593
|
+
watch('singleSelect', { waitUntilFirstUpdate: true })
|
|
594
|
+
], IgcComboComponent.prototype, "resetState", null);
|
|
510
595
|
__decorate([
|
|
511
596
|
watch('value')
|
|
512
597
|
], IgcComboComponent.prototype, "validate", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo.js","sourceRoot":"","sources":["../../../src/components/combo/combo.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EACL,QAAQ,EACR,KAAK,EACL,qBAAqB,EACrB,KAAK,GACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B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AM,EAAE,MAAM,EAAE,CAAC;IAC/C,4BAA4B,CAC3B,4GAA4G,CAC7G;GACoB,iBAAiB,CA6nBrC;eA7nBoB,iBAAiB","sourcesContent":["import { html, LitElement, TemplateResult } from 'lit';\nimport { themes } from '../../theming/theming-decorator.js';\nimport { styles } from './themes/light/combo.base.css.js';\nimport { styles as bootstrap } from './themes/light/combo.bootstrap.css.js';\nimport { styles as material } from './themes/light/combo.material.css.js';\nimport { styles as fluent } from './themes/light/combo.fluent.css.js';\nimport { styles as indigo } from './themes/light/combo.indigo.css.js';\nimport {\n property,\n query,\n queryAssignedElements,\n state,\n} from 'lit/decorators.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { defineComponents } from '../common/definitions/defineComponents.js';\nimport IgcComboListComponent from './combo-list.js';\nimport IgcComboItemComponent from './combo-item.js';\nimport IgcComboHeaderComponent from './combo-header.js';\nimport IgcInputComponent from '../input/input.js';\nimport IgcIconComponent from '../icon/icon.js';\nimport { NavigationController } from './controllers/navigation.js';\nimport { SelectionController } from './controllers/selection.js';\nimport { IgcToggleController } from '../toggle/toggle.controller.js';\nimport { DataController } from './controllers/data.js';\nimport { IgcToggleComponent } from '../toggle/types.js';\nimport {\n Keys,\n Values,\n ComboRecord,\n GroupingDirection,\n FilteringOptions,\n IgcComboEventMap,\n ComboItemTemplate,\n} from './types.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { partNameMap } from '../common/util.js';\nimport { filteringOptionsConverter } from './utils/converters.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport type { ThemeController, Theme } from '../../theming/types.js';\nimport { blazorAdditionalDependencies } from '../common/decorators/blazorAdditionalDependencies.js';\n\ndefineComponents(\n IgcIconComponent,\n IgcComboListComponent,\n IgcComboItemComponent,\n IgcComboHeaderComponent,\n IgcInputComponent\n);\n\n/**\n * @element igc-combo\n *\n * @slot prefix - Renders content before the input.\n * @slot suffix - Renders content after input.\n * @slot header - Renders a container before the list of options.\n * @slot footer - Renders a container after the list of options.\n * @slot helper-text - Renders content below the input.\n * @slot toggle-icon - Renders content inside the suffix container.\n * @slot clear-icon - Renders content inside the suffix container.\n *\n * @fires igcFocus - Emitted when the select gains focus.\n * @fires igcBlur - Emitted when the select loses focus.\n * @fires igcChange - Emitted when the control's selection has changed.\n * @fires igcOpening - Emitted just before the list of options is opened.\n * @fires igcOpened - Emitted after the list of options is opened.\n * @fires igcClosing - Emitter just before the list of options is closed.\n * @fires igcClosed - Emitted after the list of options is closed.\n *\n * @csspart label - The encapsulated text label.\n * @csspart input - The main input field.\n * @csspart native-input - The native input of the main input field.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n * @csspart toggle-icon - The toggle icon wrapper.\n * @csspart clear-icon - The clear icon wrapper.\n * @csspart case-icon - The case icon wrapper.\n * @csspart helper-text - The helper text wrapper.\n * @csspart search-input - The search input field.\n * @csspart list-wrapper - The list of options wrapper.\n * @csspart list - The list of options box.\n * @csspart item - Represents each item in the list of options.\n * @csspart group-header - Represents each header in the list of options.\n * @csspart active - Appended to the item parts list when the item is active.\n * @csspart selected - Appended to the item parts list when the item is selected.\n * @csspart checkbox - Represents each checkbox of each list item.\n * @csspart checkbox-indicator - Represents the checkbox indicator of each list item.\n * @csspart checked - Appended to checkbox parts list when checkbox is checked.\n * @csspart header - The container holding the header content.\n * @csspart footer - The container holding the footer content.\n * @csspart empty - The container holding the empty content.\n */\n@themes({ material, bootstrap, fluent, indigo })\n@blazorAdditionalDependencies(\n 'IgcIconComponent, IgcComboListComponent, IgcComboItemComponent, IgcComboHeaderComponent, IgcInputComponent'\n)\nexport default class IgcComboComponent<T extends object>\n extends EventEmitterMixin<IgcComboEventMap, Constructor<LitElement>>(\n LitElement\n )\n implements Partial<IgcToggleComponent>\n{\n public static readonly tagName = 'igc-combo';\n public static styles = styles;\n\n protected navigationController = new NavigationController<T>(this);\n protected selectionController = new SelectionController<T>(this);\n protected dataController = new DataController<T>(this);\n protected toggleController!: IgcToggleController;\n protected themeController!: ThemeController;\n protected theme!: Theme;\n\n @queryAssignedElements({ slot: 'helper-text' })\n protected helperText!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'suffix' })\n protected inputSuffix!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'prefix' })\n protected inputPrefix!: Array<HTMLElement>;\n\n @query('[part=\"search-input\"]')\n protected input!: IgcInputComponent;\n\n @query('igc-input#target')\n private target!: IgcInputComponent;\n\n @query('igc-combo-list')\n private list!: IgcComboListComponent;\n\n /** The data source used to generate the list of options. */\n @property({ attribute: false })\n public data: Array<T> = [];\n\n /**\n * The name attribute of the control.\n * @attr name\n */\n @property()\n public name!: string;\n\n /**\n * The disabled attribute of the control.\n * @attr disabled\n */\n @property({ reflect: true, type: Boolean })\n public disabled = false;\n\n /**\n * The required attribute of the control.\n * @attr required\n */\n @property({ reflect: true, type: Boolean })\n public required = false;\n\n /**\n * The invalid attribute of the control.\n * @attr invalid\n */\n @property({ reflect: true, type: Boolean })\n public invalid = false;\n\n /**\n * The outlined attribute of the control.\n * @attr outlined\n */\n @property({ reflect: true, type: Boolean })\n public outlined = false;\n\n /**\n * The autofocus attribute of the control.\n * @attr autofocus\n */\n @property({ type: Boolean })\n public override autofocus!: boolean;\n\n /**\n * Focuses the list of options when the menu opens.\n * @attr autofocus-list\n */\n @property({ attribute: 'autofocus-list', type: Boolean })\n public autofocusList = false;\n\n /**\n * The label attribute of the control.\n * @attr label\n */\n @property({ type: String })\n public label!: string;\n\n /**\n * The placeholder attribute of the control.\n * @attr placeholder\n */\n @property({ type: String })\n public placeholder!: string;\n\n /**\n * The placeholder attribute of the search input.\n * @attr placeholder-search\n */\n @property({ attribute: 'placeholder-search', type: String })\n public placeholderSearch = 'Search';\n\n /**\n * The direction attribute of the control.\n * @attr dir\n */\n @property({ reflect: true })\n public override dir: 'ltr' | 'rtl' | 'auto' = 'auto';\n\n /**\n * Sets the open state of the component.\n * @attr open\n */\n @property({ type: Boolean })\n public open = false;\n\n /** @hidden @internal */\n @property({ type: Boolean })\n public flip = true;\n\n /**\n * The key in the data source used when selecting items.\n * @attr value-key\n */\n @property({ attribute: 'value-key', reflect: false })\n public valueKey?: Keys<T>;\n\n /**\n * The key in the data source used to display items in the list.\n * @attr display-key\n */\n @property({ attribute: 'display-key', reflect: false })\n public displayKey?: Keys<T> = this.valueKey;\n\n /**\n * The key in the data source used to group items in the list.\n * @attr group-key\n */\n @property({ attribute: 'group-key', reflect: false })\n public groupKey?: Keys<T> = this.displayKey;\n\n /**\n * Sorts the items in each group by ascending or descending order.\n * @attr group-sorting\n * @type {\"asc\" | \"desc\"}\n */\n @property({ attribute: 'group-sorting', reflect: false })\n public groupSorting: GroupingDirection = 'asc';\n\n /**\n * An object that configures the filtering of the combo.\n * @attr filtering-options\n * @type {FilteringOptions<T>}\n * @param filterKey - The key in the data source used when filtering the list of options.\n * @param caseSensitive - Determines whether the filtering operation should be case sensitive.\n */\n @property({\n attribute: 'filtering-options',\n reflect: false,\n converter: filteringOptionsConverter,\n })\n public filteringOptions: FilteringOptions<T> = {\n filterKey: this.displayKey,\n caseSensitive: false,\n };\n\n /**\n * Enables the case sensitive search icon in the filtering input.\n * @attr case-sensitive-icon\n */\n @property({ type: Boolean, attribute: 'case-sensitive-icon', reflect: false })\n public caseSensitiveIcon = false;\n\n /**\n * Disables the filtering of the list of options.\n * @attr disable-filtering\n */\n @property({ type: Boolean, attribute: 'disable-filtering', reflect: false })\n public disableFiltering = false;\n\n /**\n * The template used for the content of each combo item.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public itemTemplate: ComboItemTemplate<T> = ({ item }) => {\n if (typeof item !== 'object' || item === null) {\n return String(item) as any;\n }\n\n if (this.displayKey) {\n return html`${item[this.displayKey]}`;\n }\n\n return html`${String(item)}`;\n };\n\n /**\n * The template used for the content of each combo group header.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public groupHeaderTemplate: ComboItemTemplate<T> = ({ item }) => {\n return html`${this.groupKey && item[this.groupKey]}`;\n };\n\n @state()\n protected dataState: Array<ComboRecord<T>> = [];\n\n @watch('data')\n protected dataChanged() {\n this.dataState = structuredClone(this.data) as ComboRecord<T>[];\n\n if (this.hasUpdated) {\n this.pipeline();\n }\n }\n\n @watch('valueKey')\n protected updateDisplayKey() {\n this.displayKey = this.displayKey ?? this.valueKey;\n }\n\n @watch('displayKey')\n protected updateFilterKey() {\n this.filteringOptions.filterKey =\n this.filteringOptions.filterKey ?? this.displayKey;\n }\n\n @watch('groupKey')\n @watch('groupSorting')\n @watch('pipeline')\n protected async pipeline() {\n this.dataState = await this.dataController.apply([...this.data]);\n this.navigationController.active = -1;\n }\n\n @watch('open')\n protected toggleDirectiveChange() {\n if (!this.target) return;\n this.toggleController.target = this.target;\n this.target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n\n constructor() {\n super();\n\n this.toggleController = new IgcToggleController(this, {\n target: this.target,\n closeCallback: async () => {\n if (!this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n this.emitEvent('igcClosed');\n },\n });\n\n this.addEventListener('focus', () => {\n this.emitEvent('igcFocus');\n });\n\n this.addEventListener('blur', () => {\n this.emitEvent('igcBlur');\n });\n\n this.addEventListener(\n 'keydown',\n this.navigationController.navigateHost.bind(this.navigationController)\n );\n }\n\n protected themeAdopted(controller: ThemeController) {\n this.themeController = controller;\n }\n\n protected override willUpdate() {\n this.theme = this.themeController.theme;\n }\n\n protected override async getUpdateComplete() {\n const result = await super.getUpdateComplete();\n await this.toggleController.rendered;\n return result;\n }\n\n /**\n * Returns the current selection as a list of commma separated values,\n * represented by the display key, when provided.\n */\n public get value() {\n return this.selectionController.getValue(\n Array.from(this.selectionController.selected)\n );\n }\n\n @watch('value')\n protected validate() {\n this.updateComplete.then(() => this.reportValidity());\n }\n\n /** Checks the validity of the control. */\n public reportValidity() {\n this.invalid = this.required && !this.value;\n return !this.invalid;\n }\n\n /** A wrapper around the reportValidity method to comply with the native input API. */\n public checkValidity() {\n return this.reportValidity();\n }\n\n /** Sets focus on the component. */\n public override focus(options?: FocusOptions) {\n this.target.focus(options);\n }\n\n /** Removes focus from the component. */\n public override blur() {\n this.target.blur();\n }\n\n /**\n * Selects the options in the list by either value or key value.\n * If not argument is provided all items will be selected.\n * @param { T[] | Values<T>[] } items - A list of values or values as set by the valueKey.\n */\n public select(items?: T[] | Values<T>[]) {\n this.selectionController.select(items, false);\n }\n\n /**\n * Deselects the options in the list by either value or key value.\n * If not argument is provided all items will be deselected.\n * @param { T[] | Values<T>[] } items - A list of values or values as set by the valueKey.\n */\n public deselect(items?: T[] | Values<T>[]) {\n this.selectionController.deselect(items, false);\n }\n\n protected handleSearchInput(e: CustomEvent) {\n this.dataController.searchTerm = e.detail;\n }\n\n protected handleOpening() {\n const args = { cancelable: true };\n return this.emitEvent('igcOpening', args);\n }\n\n protected handleClosing(): boolean {\n const args = { cancelable: true };\n return this.emitEvent('igcClosing', args);\n }\n\n protected async _show(emit = true) {\n if (this.open) return;\n if (emit && !this.handleOpening()) return;\n this.open = true;\n\n await this.updateComplete;\n emit && this.emitEvent('igcOpened');\n\n this.list.focus();\n\n if (!this.autofocusList) {\n this.input.focus();\n }\n }\n\n /** Shows the list of options. */\n public show() {\n this._show(false);\n }\n\n protected async _hide(emit = true) {\n if (!this.open) return;\n if (emit && !this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n emit && this.emitEvent('igcClosed');\n this.target.focus();\n }\n\n /** Hides the list of options. */\n public hide() {\n this._hide(false);\n }\n\n /** @hidden @internal */\n public _toggle(emit = true) {\n this.open ? this._hide(emit) : this._show(emit);\n }\n\n /** Toggles the list of options. */\n public toggle() {\n this._toggle(false);\n }\n\n protected itemRenderer = (item: T, index: number): TemplateResult => {\n const record = item as ComboRecord<T>;\n const active = this.navigationController.active === index;\n const selected = this.selectionController.selected.has(item);\n const headerTemplate = html`<igc-combo-header part=\"group-header\"\n >${this.groupHeaderTemplate({ item: record })}</igc-combo-header\n >`;\n\n const itemParts = partNameMap({\n item: true,\n selected,\n active,\n });\n\n const itemTemplate = html`<igc-combo-item\n part=\"${itemParts}\"\n exportparts=\"checkbox, checkbox-indicator, checked\"\n @click=${this.itemClickHandler.bind(this)}\n .index=${index}\n .active=${active}\n .selected=${selected}\n >${this.itemTemplate({ item: record })}</igc-combo-item\n >`;\n\n return html`${this.groupKey && record.header\n ? headerTemplate\n : itemTemplate}`;\n };\n\n protected listKeydownHandler(event: KeyboardEvent) {\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboListComponent\n ) as IgcComboListComponent;\n\n if (target) {\n this.navigationController.navigateList(event, target);\n }\n }\n\n protected itemClickHandler(event: MouseEvent) {\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboItemComponent\n ) as IgcComboItemComponent;\n\n this.toggleSelect(target.index);\n this.input.focus();\n }\n\n protected toggleSelect(index: number) {\n this.selectionController.changeSelection(index);\n this.navigationController.active = index;\n }\n\n protected navigateTo(item: T) {\n this.navigationController.navigateTo(item, this.list);\n }\n\n protected handleClearIconClick(e: MouseEvent) {\n e.stopPropagation();\n this.selectionController.deselect([], true);\n this.navigationController.active = -1;\n }\n\n protected toggleCaseSensitivity() {\n this.filteringOptions.caseSensitive = !this.filteringOptions.caseSensitive;\n this.requestUpdate('pipeline');\n }\n\n protected get hasPrefixes() {\n return this.inputPrefix.length > 0;\n }\n\n protected get hasSuffixes() {\n return this.inputSuffix.length > 0;\n }\n\n private renderToggleIcon() {\n const openIcon =\n this.theme === 'material' ? 'keyboard_arrow_up' : 'arrow_drop_up';\n const closeIcon =\n this.theme === 'material' ? 'keyboard_arrow_down' : 'arrow_drop_down';\n\n return html`\n <span slot=\"suffix\" part=\"toggle-icon\">\n <slot name=\"toggle-icon\">\n <igc-icon\n name=${this.open ? openIcon : closeIcon}\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>\n `;\n }\n\n private renderClearIcon() {\n const { selected } = this.selectionController;\n const icon = this.theme === 'material' ? 'chip_cancel' : 'clear';\n\n return html`<span\n slot=\"suffix\"\n part=\"clear-icon\"\n @click=${this.handleClearIconClick}\n ?hidden=${selected.size === 0}\n >\n <slot name=\"clear-icon\">\n <igc-icon\n name=\"${icon}\"\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>`;\n }\n\n private renderInput() {\n return html`<igc-input\n id=\"target\"\n role=\"combobox\"\n aria-owns=\"dropdown\"\n aria-describedby=\"helper-text\"\n aria-disabled=${this.disabled}\n exportparts=\"container: input, input: native-input, label, prefix, suffix\"\n @click=${(e: MouseEvent) => {\n e.preventDefault();\n this._toggle(true);\n }}\n value=${ifDefined(this.value)}\n placeholder=${ifDefined(this.placeholder)}\n label=${ifDefined(this.label)}\n dir=${this.dir}\n @igcFocus=${(e: Event) => e.stopPropagation()}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @keydown=${this.navigationController.navigateHost.bind(\n this.navigationController\n )}\n .disabled=\"${this.disabled}\"\n .required=${this.required}\n .invalid=${this.invalid}\n .outlined=${this.outlined}\n .autofocus=${this.autofocus}\n readonly\n >\n <span slot=${this.hasPrefixes && 'prefix'}>\n <slot name=\"prefix\"></slot>\n </span>\n ${this.renderClearIcon()}\n <span slot=${this.hasSuffixes && 'suffix'}>\n <slot name=\"suffix\"></slot>\n </span>\n ${this.renderToggleIcon()}\n </igc-input>`;\n }\n\n private renderSearchInput() {\n return html`<div part=\"filter-input\" ?hidden=${this.disableFiltering}>\n <igc-input\n part=\"search-input\"\n placeholder=${this.placeholderSearch}\n exportparts=\"input: search-input\"\n @igcFocus=${(e: Event) => e.stopPropagation()}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleSearchInput}\n @keydown=${(e: KeyboardEvent) =>\n this.navigationController.navigateInput(e, this.list)}\n dir=${this.dir}\n >\n <igc-icon\n slot=${this.caseSensitiveIcon && 'suffix'}\n name=\"case_sensitive\"\n collection=\"internal\"\n part=${partNameMap({\n 'case-icon': true,\n active: this.filteringOptions.caseSensitive ?? false,\n })}\n @click=${this.toggleCaseSensitivity}\n ></igc-icon>\n </igc-input>\n </div>`;\n }\n\n private renderEmptyTemplate() {\n return html`<div part=\"empty\" ?hidden=${this.dataState.length > 0}>\n <slot name=\"empty\">The list is empty</slot>\n </div>`;\n }\n\n private renderList() {\n return html`<div\n @keydown=${this.listKeydownHandler}\n part=\"list-wrapper\"\n ${this.toggleController.toggleDirective}\n >\n ${this.renderSearchInput()}\n <div part=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <igc-combo-list\n id=\"dropdown\"\n part=\"list\"\n aria-label=\"${this.label}\"\n .items=${this.dataState}\n .renderItem=${this.itemRenderer}\n ?hidden=${this.dataState.length === 0}\n >\n </igc-combo-list>\n ${this.renderEmptyTemplate()}\n <div part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>`;\n }\n\n private renderHelperText() {\n return html`<div\n id=\"helper-text\"\n part=\"helper-text\"\n ?hidden=\"${this.helperText.length === 0}\"\n >\n <slot name=\"helper-text\"></slot>\n </div>`;\n }\n\n protected override render() {\n return html`\n ${this.renderInput()}${this.renderList()}${this.renderHelperText()}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-combo': IgcComboComponent<object>;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"combo.js","sourceRoot":"","sources":["../../../src/components/combo/combo.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OA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';\nimport { themes } from '../../theming/theming-decorator.js';\nimport { styles } from './themes/light/combo.base.css.js';\nimport { styles as bootstrap } from './themes/light/combo.bootstrap.css.js';\nimport { styles as material } from './themes/light/combo.material.css.js';\nimport { styles as fluent } from './themes/light/combo.fluent.css.js';\nimport { styles as indigo } from './themes/light/combo.indigo.css.js';\nimport {\n property,\n query,\n queryAssignedElements,\n state,\n} from 'lit/decorators.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { defineComponents } from '../common/definitions/defineComponents.js';\nimport IgcComboListComponent from './combo-list.js';\nimport IgcComboItemComponent from './combo-item.js';\nimport IgcComboHeaderComponent from './combo-header.js';\nimport IgcInputComponent from '../input/input.js';\nimport IgcIconComponent from '../icon/icon.js';\nimport { NavigationController } from './controllers/navigation.js';\nimport { SelectionController } from './controllers/selection.js';\nimport { IgcToggleController } from '../toggle/toggle.controller.js';\nimport { DataController } from './controllers/data.js';\nimport { IgcToggleComponent } from '../toggle/types.js';\nimport {\n Keys,\n ComboRecord,\n GroupingDirection,\n FilteringOptions,\n IgcComboEventMap,\n ComboItemTemplate,\n Item,\n} from './types.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { partNameMap } from '../common/util.js';\nimport { filteringOptionsConverter } from './utils/converters.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport type { ThemeController, Theme } from '../../theming/types.js';\nimport { blazorAdditionalDependencies } from '../common/decorators/blazorAdditionalDependencies.js';\n\ndefineComponents(\n IgcIconComponent,\n IgcComboListComponent,\n IgcComboItemComponent,\n IgcComboHeaderComponent,\n IgcInputComponent\n);\n\n/**\n * @element igc-combo\n *\n * @slot prefix - Renders content before the input.\n * @slot suffix - Renders content after input.\n * @slot header - Renders a container before the list of options.\n * @slot footer - Renders a container after the list of options.\n * @slot helper-text - Renders content below the input.\n * @slot toggle-icon - Renders content inside the suffix container.\n * @slot clear-icon - Renders content inside the suffix container.\n *\n * @fires igcFocus - Emitted when the select gains focus.\n * @fires igcBlur - Emitted when the select loses focus.\n * @fires igcChange - Emitted when the control's selection has changed.\n * @fires igcOpening - Emitted just before the list of options is opened.\n * @fires igcOpened - Emitted after the list of options is opened.\n * @fires igcClosing - Emitter just before the list of options is closed.\n * @fires igcClosed - Emitted after the list of options is closed.\n *\n * @csspart label - The encapsulated text label.\n * @csspart input - The main input field.\n * @csspart native-input - The native input of the main input field.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n * @csspart toggle-icon - The toggle icon wrapper.\n * @csspart clear-icon - The clear icon wrapper.\n * @csspart case-icon - The case icon wrapper.\n * @csspart helper-text - The helper text wrapper.\n * @csspart search-input - The search input field.\n * @csspart list-wrapper - The list of options wrapper.\n * @csspart list - The list of options box.\n * @csspart item - Represents each item in the list of options.\n * @csspart group-header - Represents each header in the list of options.\n * @csspart active - Appended to the item parts list when the item is active.\n * @csspart selected - Appended to the item parts list when the item is selected.\n * @csspart checkbox - Represents each checkbox of each list item.\n * @csspart checkbox-indicator - Represents the checkbox indicator of each list item.\n * @csspart checked - Appended to checkbox parts list when checkbox is checked.\n * @csspart header - The container holding the header content.\n * @csspart footer - The container holding the footer content.\n * @csspart empty - The container holding the empty content.\n */\n@themes({ material, bootstrap, fluent, indigo })\n@blazorAdditionalDependencies(\n 'IgcIconComponent, IgcComboListComponent, IgcComboItemComponent, IgcComboHeaderComponent, IgcInputComponent'\n)\n// TODO: pressing arrow down should scroll to the selected item\nexport default class IgcComboComponent<T extends object>\n extends EventEmitterMixin<IgcComboEventMap, Constructor<LitElement>>(\n LitElement\n )\n implements Partial<IgcToggleComponent>\n{\n public static readonly tagName = 'igc-combo';\n public static styles = styles;\n private _value = '';\n\n protected navigationController = new NavigationController<T>(this);\n protected selectionController = new SelectionController<T>(this);\n protected dataController = new DataController<T>(this);\n protected toggleController!: IgcToggleController;\n protected themeController!: ThemeController;\n protected theme!: Theme;\n\n @queryAssignedElements({ slot: 'helper-text' })\n protected helperText!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'suffix' })\n protected inputSuffix!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'prefix' })\n protected inputPrefix!: Array<HTMLElement>;\n\n @query('[part=\"search-input\"]')\n protected input!: IgcInputComponent;\n\n @query('igc-input#target')\n private target!: IgcInputComponent;\n\n @query('igc-combo-list')\n private list!: IgcComboListComponent;\n\n /** The data source used to generate the list of options. */\n @property({ attribute: false })\n public data: Array<T> = [];\n\n /**\n * The name attribute of the control.\n * @attr name\n */\n @property()\n public name!: string;\n\n /**\n * The disabled attribute of the control.\n * @attr disabled\n */\n @property({ reflect: true, type: Boolean })\n public disabled = false;\n\n /**\n * The required attribute of the control.\n * @attr required\n */\n @property({ reflect: true, type: Boolean })\n public required = false;\n\n /**\n * The invalid attribute of the control.\n * @attr invalid\n */\n @property({ reflect: true, type: Boolean })\n public invalid = false;\n\n /**\n * The outlined attribute of the control.\n * @attr outlined\n */\n @property({ reflect: true, type: Boolean })\n public outlined = false;\n\n /**\n * Enables single selection mode and moves item filtering to the main input.\n * @attr single-select\n */\n @property({ attribute: 'single-select', reflect: true, type: Boolean })\n public singleSelect = false;\n\n /**\n * The autofocus attribute of the control.\n * @attr autofocus\n */\n @property({ type: Boolean })\n public override autofocus!: boolean;\n\n /**\n * Focuses the list of options when the menu opens.\n * @attr autofocus-list\n */\n @property({ attribute: 'autofocus-list', type: Boolean })\n public autofocusList = false;\n\n /**\n * The label attribute of the control.\n * @attr label\n */\n @property({ type: String })\n public label!: string;\n\n /**\n * The placeholder attribute of the control.\n * @attr placeholder\n */\n @property({ type: String })\n public placeholder!: string;\n\n /**\n * The placeholder attribute of the search input.\n * @attr placeholder-search\n */\n @property({ attribute: 'placeholder-search', type: String })\n public placeholderSearch = 'Search';\n\n /**\n * The direction attribute of the control.\n * @attr dir\n */\n @property({ reflect: true })\n public override dir: 'ltr' | 'rtl' | 'auto' = 'auto';\n\n /**\n * Sets the open state of the component.\n * @attr open\n */\n @property({ type: Boolean })\n public open = false;\n\n /** @hidden @internal */\n @property({ type: Boolean })\n public flip = true;\n\n /**\n * The key in the data source used when selecting items.\n * @attr value-key\n */\n @property({ attribute: 'value-key', reflect: false })\n public valueKey?: Keys<T>;\n\n /**\n * The key in the data source used to display items in the list.\n * @attr display-key\n */\n @property({ attribute: 'display-key', reflect: false })\n public displayKey?: Keys<T> = this.valueKey;\n\n /**\n * The key in the data source used to group items in the list.\n * @attr group-key\n */\n @property({ attribute: 'group-key', reflect: false })\n public groupKey?: Keys<T> = this.displayKey;\n\n /**\n * Sorts the items in each group by ascending or descending order.\n * @attr group-sorting\n * @type {\"asc\" | \"desc\"}\n */\n @property({ attribute: 'group-sorting', reflect: false })\n public groupSorting: GroupingDirection = 'asc';\n\n /**\n * An object that configures the filtering of the combo.\n * @attr filtering-options\n * @type {FilteringOptions<T>}\n * @param filterKey - The key in the data source used when filtering the list of options.\n * @param caseSensitive - Determines whether the filtering operation should be case sensitive.\n */\n @property({\n attribute: 'filtering-options',\n reflect: false,\n converter: filteringOptionsConverter,\n })\n public filteringOptions: FilteringOptions<T> = {\n filterKey: this.displayKey,\n caseSensitive: false,\n };\n\n /**\n * Enables the case sensitive search icon in the filtering input.\n * @attr case-sensitive-icon\n */\n @property({ type: Boolean, attribute: 'case-sensitive-icon', reflect: false })\n public caseSensitiveIcon = false;\n\n /**\n * Disables the filtering of the list of options.\n * @attr disable-filtering\n */\n @property({ type: Boolean, attribute: 'disable-filtering', reflect: false })\n public disableFiltering = false;\n\n /**\n * The template used for the content of each combo item.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public itemTemplate: ComboItemTemplate<T> = ({ item }) => {\n if (typeof item !== 'object' || item === null) {\n return String(item) as any;\n }\n\n if (this.displayKey) {\n return html`${item[this.displayKey]}`;\n }\n\n return html`${String(item)}`;\n };\n\n /**\n * The template used for the content of each combo group header.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public groupHeaderTemplate: ComboItemTemplate<T> = ({ item }) => {\n return html`${this.groupKey && item[this.groupKey]}`;\n };\n\n @state()\n protected dataState: Array<ComboRecord<T>> = [];\n\n @watch('data')\n protected dataChanged() {\n this.dataState = structuredClone(this.data) as ComboRecord<T>[];\n\n if (this.hasUpdated) {\n this.pipeline();\n }\n }\n\n @watch('valueKey')\n protected updateDisplayKey() {\n this.displayKey = this.displayKey ?? this.valueKey;\n }\n\n @watch('displayKey')\n protected updateFilterKey() {\n this.filteringOptions.filterKey =\n this.filteringOptions.filterKey ?? this.displayKey;\n }\n\n @watch('groupKey')\n @watch('groupSorting')\n @watch('pipeline')\n protected async pipeline() {\n this.dataState = await this.dataController.apply([...this.data]);\n }\n\n @watch('open')\n protected toggleDirectiveChange() {\n if (!this.target) return;\n this.toggleController.target = this.target;\n this.target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n\n constructor() {\n super();\n\n this.toggleController = new IgcToggleController(this, {\n target: this.target,\n closeCallback: async () => {\n if (!this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n this.emitEvent('igcClosed');\n },\n });\n\n this.addEventListener('focus', () => {\n this.emitEvent('igcFocus');\n });\n\n this.addEventListener('blur', () => {\n const { selected } = this.selectionController;\n\n if (selected.size === 0) {\n this.target.value = '';\n this.resetSearchTerm();\n }\n\n this.emitEvent('igcBlur');\n });\n\n this.addEventListener(\n 'keydown',\n this.navigationController.navigateHost.bind(this.navigationController)\n );\n }\n\n protected themeAdopted(controller: ThemeController) {\n this.themeController = controller;\n }\n\n protected override willUpdate() {\n this.theme = this.themeController.theme;\n }\n\n protected override async getUpdateComplete() {\n const result = await super.getUpdateComplete();\n await this.toggleController.rendered;\n return result;\n }\n\n protected resetSearchTerm() {\n this.dataController.searchTerm = '';\n }\n\n @watch('singleSelect', { waitUntilFirstUpdate: true })\n protected async resetState() {\n await this.updateComplete;\n\n this.selectionController.selected.clear();\n this.updateValue();\n this.resetSearchTerm();\n this.navigationController.active = -1;\n }\n\n /**\n * Returns the current selection as a list of commma separated values,\n * represented by the display key, when provided.\n */\n public get value() {\n return this._value;\n }\n\n protected async updateValue() {\n this._value = this.selectionController.getValue(\n Array.from(this.selectionController.selected)\n );\n\n await this.updateComplete;\n this.target.value = this._value;\n }\n\n @watch('value')\n protected validate() {\n this.updateComplete.then(() => this.reportValidity());\n }\n\n /** Checks the validity of the control. */\n public reportValidity() {\n this.invalid = this.required && !this.value;\n return !this.invalid;\n }\n\n /** A wrapper around the reportValidity method to comply with the native input API. */\n public checkValidity() {\n return this.reportValidity();\n }\n\n /** Sets focus on the component. */\n public override focus(options?: FocusOptions) {\n this.target.focus(options);\n }\n\n /** Removes focus from the component. */\n public override blur() {\n this.target.blur();\n }\n\n protected normalizeSelection(items: Item<T> | Item<T>[] = []): Item<T>[] {\n return Array.isArray(items) ? items : [items];\n }\n\n /**\n * Selects option(s) in the list by either reference or valueKey.\n * If not argument is provided all items will be selected.\n * @param { Item<T> | Items<T> } items - One or more items to be selected. Multiple items should be passed as an array.\n * When valueKey is specified, the corresponding value should be used in place of the item reference.\n * @example\n * ```typescript\n * const combo<IgcComboComponent<T>> = document.querySelector('igc-combo');\n *\n * // Select one item at a time by reference when valueKey is not specified.\n * combo.select(combo.data[0]);\n *\n * // Select multiple items at a time by reference when valueKey is not specified.\n * combo.select([combo.data[0], combo.data[1]]);\n *\n * // Select one item at a time when valueKey is specified.\n * combo.select('BG01');\n *\n * // Select multiple items at a time when valueKey is specified.\n * combo.select(['BG01', 'BG02']);\n * ```\n */\n public select(items?: Item<T> | Item<T>[]) {\n const _items = this.normalizeSelection(items);\n this.selectionController.select(_items, false);\n this.list.requestUpdate();\n this.updateValue();\n }\n\n /**\n * Deselects option(s) in the list by either reference or valueKey.\n * If not argument is provided all items will be deselected.\n * @param { Item<T> | Items<T> } items - One or more items to be deselected. Multiple items should be passed as an array.\n * When valueKey is specified, the corresponding value should be used in place of the item reference.\n * @example\n * ```typescript\n * const combo<IgcComboComponent<T>> = document.querySelector('igc-combo');\n *\n * // Deselect one item at a time by reference when valueKey is not specified.\n * combo.deselect(combo.data[0]);\n *\n * // Deselect multiple items at a time by reference when valueKey is not specified.\n * combo.deselect([combo.data[0], combo.data[1]]);\n *\n * // Deselect one item at a time when valueKey is specified.\n * combo.deselect('BG01');\n *\n * // Deselect multiple items at a time when valueKey is specified.\n * combo.deselect(['BG01', 'BG02']);\n * ```\n */\n public deselect(items?: Item<T> | Item<T>[]) {\n const _items = this.normalizeSelection(items);\n this.selectionController.deselect(_items, false);\n this.list.requestUpdate();\n this.updateValue();\n }\n\n protected async handleMainInput(e: CustomEvent) {\n this._show();\n this.dataController.searchTerm = e.detail;\n\n // wait for the dataState to update after filtering\n await this.updateComplete;\n\n const match = e.detail.length > 0 && this.dataState.length > 0;\n this.navigationController.active = match ? 1 : -1;\n\n // update the list after changing the active item\n this.list.requestUpdate();\n\n // clear the selection upon typing\n this.clearSingleSelection();\n }\n\n protected handleSearchInput(e: CustomEvent) {\n this.dataController.searchTerm = e.detail;\n }\n\n protected handleOpening() {\n const args = { cancelable: true };\n return this.emitEvent('igcOpening', args);\n }\n\n protected handleClosing(): boolean {\n const args = { cancelable: true };\n return this.emitEvent('igcClosing', args);\n }\n\n protected async _show(emit = true) {\n if (this.open) return;\n if (emit && !this.handleOpening()) return;\n this.open = true;\n\n await this.updateComplete;\n emit && this.emitEvent('igcOpened');\n\n if (!this.singleSelect) {\n this.list.focus();\n }\n\n if (!this.autofocusList) {\n this.input.focus();\n }\n }\n\n /** Shows the list of options. */\n public show() {\n this._show(false);\n }\n\n protected async _hide(emit = true) {\n if (!this.open) return;\n if (emit && !this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n emit && this.emitEvent('igcClosed');\n this.navigationController.active = -1;\n }\n\n /** Hides the list of options. */\n public hide() {\n this._hide(false);\n }\n\n /** @hidden @internal */\n public _toggle(emit = true) {\n this.open ? this._hide(emit) : this._show(emit);\n }\n\n /** Toggles the list of options. */\n public toggle() {\n this._toggle(false);\n }\n\n protected itemRenderer = (item: T, index: number): TemplateResult => {\n const record = item as ComboRecord<T>;\n const active = this.navigationController.active === index;\n const selected = this.selectionController.selected.has(item);\n const headerTemplate = html`<igc-combo-header part=\"group-header\"\n >${this.groupHeaderTemplate({ item: record })}</igc-combo-header\n >`;\n\n const itemParts = partNameMap({\n item: true,\n selected,\n active,\n });\n\n const itemTemplate = html`<igc-combo-item\n part=\"${itemParts}\"\n exportparts=\"checkbox, checkbox-indicator, checked\"\n @click=${this.itemClickHandler.bind(this)}\n .index=${index}\n .active=${active}\n .selected=${selected}\n ?hide-checkbox=${this.singleSelect}\n >${this.itemTemplate({ item: record })}</igc-combo-item\n >`;\n\n return html`${this.groupKey && record.header\n ? headerTemplate\n : itemTemplate}`;\n };\n\n protected listKeydownHandler(event: KeyboardEvent) {\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboListComponent\n ) as IgcComboListComponent;\n\n if (target) {\n this.navigationController.navigateList(event, target);\n }\n }\n\n protected itemClickHandler(event: MouseEvent) {\n const input = this.singleSelect ? this.target : this.input;\n\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboItemComponent\n ) as IgcComboItemComponent;\n\n this.toggleSelect(target.index);\n input.focus();\n\n if (this.singleSelect) {\n this._hide();\n }\n }\n\n protected toggleSelect(index: number) {\n this.selectionController.changeSelection(index);\n this.navigationController.active = index;\n this.updateValue();\n this.list.requestUpdate();\n }\n\n protected navigateTo(item: T) {\n this.navigationController.navigateTo(item, this.list);\n }\n\n protected clearSingleSelection() {\n const { selected } = this.selectionController;\n const selection = selected.values().next().value;\n\n if (selection) {\n const item = this.valueKey ? selection[this.valueKey] : selection;\n this.selectionController.deselect([item], selected.size > 0);\n }\n }\n\n protected handleClearIconClick(e: MouseEvent) {\n e.stopPropagation();\n\n if (this.singleSelect) {\n this.resetSearchTerm();\n this.clearSingleSelection();\n } else {\n this.selectionController.deselect([], true);\n }\n\n this.updateValue();\n this.navigationController.active = -1;\n this.list.requestUpdate();\n }\n\n protected handleMainInputKeydown(e: KeyboardEvent) {\n this.navigationController.navigateMainInput(e, this.list);\n }\n\n protected handleSearchInputKeydown(e: KeyboardEvent) {\n this.navigationController.navigateSearchInput(e, this.list);\n }\n\n protected toggleCaseSensitivity() {\n this.filteringOptions.caseSensitive = !this.filteringOptions.caseSensitive;\n this.requestUpdate('pipeline');\n }\n\n protected get hasPrefixes() {\n return this.inputPrefix.length > 0;\n }\n\n protected get hasSuffixes() {\n return this.inputSuffix.length > 0;\n }\n\n private renderToggleIcon() {\n const openIcon =\n this.theme === 'material' ? 'keyboard_arrow_up' : 'arrow_drop_up';\n const closeIcon =\n this.theme === 'material' ? 'keyboard_arrow_down' : 'arrow_drop_down';\n\n return html`\n <span slot=\"suffix\" part=\"toggle-icon\">\n <slot name=\"toggle-icon\">\n <igc-icon\n name=${this.open ? openIcon : closeIcon}\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>\n `;\n }\n\n private renderClearIcon() {\n const { selected } = this.selectionController;\n const icon = this.theme === 'material' ? 'chip_cancel' : 'clear';\n\n return html`<span\n slot=\"suffix\"\n part=\"clear-icon\"\n @click=${this.handleClearIconClick}\n ?hidden=${selected.size === 0}\n >\n <slot name=\"clear-icon\">\n <igc-icon\n name=\"${icon}\"\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>`;\n }\n\n private renderMainInput() {\n return html`<igc-input\n id=\"target\"\n role=\"combobox\"\n aria-owns=\"dropdown\"\n aria-describedby=\"helper-text\"\n aria-disabled=${this.disabled}\n exportparts=\"container: input, input: native-input, label, prefix, suffix\"\n @click=${(e: MouseEvent) => {\n e.preventDefault();\n this._toggle(true);\n }}\n placeholder=${ifDefined(this.placeholder)}\n label=${ifDefined(this.label)}\n dir=${this.dir}\n @igcChange=${(e: Event) => e.stopPropagation()}\n @igcFocus=${(e: Event) => {\n e.stopPropagation();\n\n requestAnimationFrame(() => {\n this.target.select();\n });\n }}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleMainInput}\n @keydown=${this.handleMainInputKeydown}\n .disabled=${this.disabled}\n .required=${this.required}\n .invalid=${this.invalid}\n .outlined=${this.outlined}\n .autofocus=${this.autofocus}\n ?readonly=${!this.singleSelect}\n >\n <span slot=${this.hasPrefixes && 'prefix'}>\n <slot name=\"prefix\"></slot>\n </span>\n ${this.renderClearIcon()}\n <span slot=${this.hasSuffixes && 'suffix'}>\n <slot name=\"suffix\"></slot>\n </span>\n ${this.renderToggleIcon()}\n </igc-input>`;\n }\n\n private renderSearchInput() {\n return html`<div\n part=\"filter-input\"\n ?hidden=${this.disableFiltering || this.singleSelect}\n >\n <igc-input\n part=\"search-input\"\n placeholder=${this.placeholderSearch}\n exportparts=\"input: search-input\"\n @igcFocus=${(e: Event) => e.stopPropagation()}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleSearchInput}\n @keydown=${this.handleSearchInputKeydown}\n dir=${this.dir}\n >\n <igc-icon\n slot=${this.caseSensitiveIcon && 'suffix'}\n name=\"case_sensitive\"\n collection=\"internal\"\n part=${partNameMap({\n 'case-icon': true,\n active: this.filteringOptions.caseSensitive ?? false,\n })}\n @click=${this.toggleCaseSensitivity}\n ></igc-icon>\n </igc-input>\n </div>`;\n }\n\n private renderEmptyTemplate() {\n return html`<div part=\"empty\" ?hidden=${this.dataState.length > 0}>\n <slot name=\"empty\">The list is empty</slot>\n </div>`;\n }\n\n private renderList() {\n return html`<div\n @keydown=${this.listKeydownHandler}\n part=\"list-wrapper\"\n ${this.toggleController.toggleDirective}\n >\n ${this.renderSearchInput()}\n <div part=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <igc-combo-list\n id=\"dropdown\"\n part=\"list\"\n aria-label=\"${this.label}\"\n .items=${this.dataState}\n .renderItem=${this.itemRenderer}\n ?hidden=${this.dataState.length === 0}\n >\n </igc-combo-list>\n ${this.renderEmptyTemplate()}\n <div part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>`;\n }\n\n private renderHelperText() {\n return html`<div\n id=\"helper-text\"\n part=\"helper-text\"\n ?hidden=\"${this.helperText.length === 0}\"\n >\n <slot name=\"helper-text\"></slot>\n </div>`;\n }\n\n protected override render() {\n return html`\n ${this.renderMainInput()}${this.renderList()}${this.renderHelperText()}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-combo': IgcComboComponent<object>;\n }\n}\n"]}
|
|
@@ -7,9 +7,10 @@ declare enum DIRECTION {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class NavigationController<T extends object> implements ReactiveController {
|
|
9
9
|
protected host: ComboHost<T>;
|
|
10
|
-
protected hostHandlers: Map<string, (
|
|
10
|
+
protected hostHandlers: Map<string, () => void>;
|
|
11
|
+
protected mainInputHandlers: Map<string, (() => void) | (() => void) | ((container: IgcComboListComponent) => Promise<void>) | (() => void) | (() => void)>;
|
|
11
12
|
protected searchInputHandlers: Map<string, (() => void) | ((container: IgcComboListComponent) => void)>;
|
|
12
|
-
protected listHandlers: Map<string, (() => void) | ((
|
|
13
|
+
protected listHandlers: Map<string, (() => void) | (() => void) | (() => void) | ((container: IgcComboListComponent) => void) | ((container: IgcComboListComponent) => void) | (() => void) | ((container: IgcComboListComponent) => void) | ((container: IgcComboListComponent) => void)>;
|
|
13
14
|
protected _active: number;
|
|
14
15
|
get input(): import("../../input/input.js").default;
|
|
15
16
|
get dataState(): ComboRecord<T>[];
|
|
@@ -19,6 +20,7 @@ export declare class NavigationController<T extends object> implements ReactiveC
|
|
|
19
20
|
protected get currentItem(): number;
|
|
20
21
|
protected get firstItem(): number;
|
|
21
22
|
protected get lastItem(): number;
|
|
23
|
+
protected scrollToActive(container: IgcComboListComponent, behavior?: ScrollBehavior): void;
|
|
22
24
|
get active(): number;
|
|
23
25
|
set active(node: number);
|
|
24
26
|
constructor(host: ComboHost<T>);
|
|
@@ -28,7 +30,8 @@ export declare class NavigationController<T extends object> implements ReactiveC
|
|
|
28
30
|
protected escape(): void;
|
|
29
31
|
protected enter(): void;
|
|
30
32
|
protected inputArrowDown(container: IgcComboListComponent): void;
|
|
31
|
-
protected
|
|
33
|
+
protected mainInputArrowDown(container: IgcComboListComponent): Promise<void>;
|
|
34
|
+
protected tab(): void;
|
|
32
35
|
protected arrowDown(container: IgcComboListComponent): void;
|
|
33
36
|
protected arrowUp(container: IgcComboListComponent): void;
|
|
34
37
|
protected getNextItem(direction: DIRECTION): void;
|
|
@@ -37,7 +40,8 @@ export declare class NavigationController<T extends object> implements ReactiveC
|
|
|
37
40
|
hostDisconnected(): void;
|
|
38
41
|
navigateTo(item: T, container: IgcComboListComponent): void;
|
|
39
42
|
navigateHost(event: KeyboardEvent): void;
|
|
40
|
-
|
|
43
|
+
navigateMainInput(event: KeyboardEvent, container: IgcComboListComponent): void;
|
|
44
|
+
navigateSearchInput(event: KeyboardEvent, container: IgcComboListComponent): void;
|
|
41
45
|
navigateList(event: KeyboardEvent, container: IgcComboListComponent): void;
|
|
42
46
|
}
|
|
43
47
|
export {};
|
|
@@ -6,7 +6,7 @@ var DIRECTION;
|
|
|
6
6
|
})(DIRECTION || (DIRECTION = {}));
|
|
7
7
|
export class NavigationController {
|
|
8
8
|
get input() {
|
|
9
|
-
return this.host.input;
|
|
9
|
+
return this.host.singleSelect ? this.host.target : this.host.input;
|
|
10
10
|
}
|
|
11
11
|
get dataState() {
|
|
12
12
|
return this.host.dataState;
|
|
@@ -30,6 +30,14 @@ export class NavigationController {
|
|
|
30
30
|
get lastItem() {
|
|
31
31
|
return this.dataState.length - 1;
|
|
32
32
|
}
|
|
33
|
+
scrollToActive(container, behavior = 'auto') {
|
|
34
|
+
var _a;
|
|
35
|
+
(_a = container.element(this.active)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
36
|
+
block: 'center',
|
|
37
|
+
behavior,
|
|
38
|
+
});
|
|
39
|
+
container.requestUpdate();
|
|
40
|
+
}
|
|
33
41
|
get active() {
|
|
34
42
|
return this._active;
|
|
35
43
|
}
|
|
@@ -41,7 +49,13 @@ export class NavigationController {
|
|
|
41
49
|
this.host = host;
|
|
42
50
|
this.hostHandlers = new Map(Object.entries({
|
|
43
51
|
Escape: this.escape,
|
|
44
|
-
|
|
52
|
+
}));
|
|
53
|
+
this.mainInputHandlers = new Map(Object.entries({
|
|
54
|
+
Escape: this.escape,
|
|
55
|
+
ArrowUp: this.hide,
|
|
56
|
+
ArrowDown: this.mainInputArrowDown,
|
|
57
|
+
Tab: this.tab,
|
|
58
|
+
Enter: this.enter,
|
|
45
59
|
}));
|
|
46
60
|
this.searchInputHandlers = new Map(Object.entries({
|
|
47
61
|
Escape: this.escape,
|
|
@@ -55,7 +69,7 @@ export class NavigationController {
|
|
|
55
69
|
' ': this.space,
|
|
56
70
|
Enter: this.enter,
|
|
57
71
|
Escape: this.escape,
|
|
58
|
-
Tab: this.
|
|
72
|
+
Tab: this.tab,
|
|
59
73
|
Home: this.home,
|
|
60
74
|
End: this.end,
|
|
61
75
|
}));
|
|
@@ -64,13 +78,16 @@ export class NavigationController {
|
|
|
64
78
|
}
|
|
65
79
|
home(container) {
|
|
66
80
|
this.active = this.firstItem;
|
|
67
|
-
|
|
81
|
+
this.scrollToActive(container, 'smooth');
|
|
68
82
|
}
|
|
69
83
|
end(container) {
|
|
70
84
|
this.active = this.lastItem;
|
|
71
|
-
|
|
85
|
+
this.scrollToActive(container, 'smooth');
|
|
72
86
|
}
|
|
73
87
|
space() {
|
|
88
|
+
if (this.active === START_INDEX) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
74
91
|
const item = this.dataState[this.active];
|
|
75
92
|
if (!item.header) {
|
|
76
93
|
this.toggleSelect(this.active);
|
|
@@ -78,25 +95,40 @@ export class NavigationController {
|
|
|
78
95
|
}
|
|
79
96
|
escape() {
|
|
80
97
|
this.hide();
|
|
98
|
+
this.host.focus();
|
|
81
99
|
}
|
|
82
100
|
enter() {
|
|
101
|
+
if (this.active === START_INDEX) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
83
104
|
this.space();
|
|
84
105
|
this.hide();
|
|
106
|
+
requestAnimationFrame(() => this.input.select());
|
|
107
|
+
this.host.focus();
|
|
85
108
|
}
|
|
86
109
|
inputArrowDown(container) {
|
|
87
110
|
container.focus();
|
|
88
111
|
this.arrowDown(container);
|
|
89
112
|
}
|
|
90
|
-
|
|
113
|
+
async mainInputArrowDown(container) {
|
|
91
114
|
this.show();
|
|
115
|
+
await container.updateComplete;
|
|
116
|
+
if (this.host.singleSelect) {
|
|
117
|
+
container.focus();
|
|
118
|
+
this.arrowDown(container);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
tab() {
|
|
122
|
+
this.hide();
|
|
123
|
+
this.host.blur();
|
|
92
124
|
}
|
|
93
125
|
arrowDown(container) {
|
|
94
126
|
this.getNextItem(DIRECTION.Down);
|
|
95
|
-
|
|
127
|
+
this.scrollToActive(container);
|
|
96
128
|
}
|
|
97
129
|
arrowUp(container) {
|
|
98
130
|
this.getNextItem(DIRECTION.Up);
|
|
99
|
-
|
|
131
|
+
this.scrollToActive(container);
|
|
100
132
|
}
|
|
101
133
|
getNextItem(direction) {
|
|
102
134
|
const next = this.getNearestItem(this.currentItem, direction);
|
|
@@ -130,7 +162,7 @@ export class NavigationController {
|
|
|
130
162
|
}
|
|
131
163
|
navigateTo(item, container) {
|
|
132
164
|
this.active = this.dataState.findIndex((i) => i === item);
|
|
133
|
-
|
|
165
|
+
this.scrollToActive(container, 'smooth');
|
|
134
166
|
}
|
|
135
167
|
navigateHost(event) {
|
|
136
168
|
if (this.hostHandlers.has(event.key)) {
|
|
@@ -138,7 +170,14 @@ export class NavigationController {
|
|
|
138
170
|
this.hostHandlers.get(event.key).call(this);
|
|
139
171
|
}
|
|
140
172
|
}
|
|
141
|
-
|
|
173
|
+
navigateMainInput(event, container) {
|
|
174
|
+
event.stopPropagation();
|
|
175
|
+
if (this.mainInputHandlers.has(event.key)) {
|
|
176
|
+
event.preventDefault();
|
|
177
|
+
this.mainInputHandlers.get(event.key).call(this, container);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
navigateSearchInput(event, container) {
|
|
142
181
|
event.stopPropagation();
|
|
143
182
|
if (this.searchInputHandlers.has(event.key)) {
|
|
144
183
|
event.preventDefault();
|
|
@@ -146,6 +185,7 @@ export class NavigationController {
|
|
|
146
185
|
}
|
|
147
186
|
}
|
|
148
187
|
navigateList(event, container) {
|
|
188
|
+
event.stopPropagation();
|
|
149
189
|
if (this.listHandlers.has(event.key)) {
|
|
150
190
|
event.preventDefault();
|
|
151
191
|
this.listHandlers.get(event.key).call(this, container);
|