forked from SAP/ui5-webcomponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSelect.js
808 lines (693 loc) · 20.4 KB
/
Select.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import {
isSpace,
isUp,
isDown,
isEnter,
isEscape,
isHome,
isEnd,
isShow,
isTabNext,
isTabPrevious,
} from "@ui5/webcomponents-base/dist/Keys.js";
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
import { getFeature } from "@ui5/webcomponents-base/dist/FeaturesRegistry.js";
import { getEffectiveAriaLabelText } from "@ui5/webcomponents-base/dist/util/AriaLabelHelper.js";
import ValueState from "@ui5/webcomponents-base/dist/types/ValueState.js";
import "@ui5/webcomponents-icons/dist/slim-arrow-down.js";
import { isPhone } from "@ui5/webcomponents-base/dist/Device.js";
import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
import "@ui5/webcomponents-icons/dist/decline.js";
import {
VALUE_STATE_SUCCESS,
VALUE_STATE_INFORMATION,
VALUE_STATE_ERROR,
VALUE_STATE_WARNING,
INPUT_SUGGESTIONS_TITLE,
} from "./generated/i18n/i18n-defaults.js";
import Option from "./Option.js";
import Label from "./Label.js";
import ResponsivePopover from "./ResponsivePopover.js";
import Popover from "./Popover.js";
import List from "./List.js";
import StandardListItem from "./StandardListItem.js";
import Icon from "./Icon.js";
import Button from "./Button.js";
// Templates
import SelectTemplate from "./generated/templates/SelectTemplate.lit.js";
import SelectPopoverTemplate from "./generated/templates/SelectPopoverTemplate.lit.js";
// Styles
import selectCss from "./generated/themes/Select.css.js";
import ResponsivePopoverCommonCss from "./generated/themes/ResponsivePopoverCommon.css.js";
import ValueStateMessageCss from "./generated/themes/ValueStateMessage.css.js";
import SelectPopoverCss from "./generated/themes/SelectPopover.css.js";
/**
* @public
*/
const metadata = {
tag: "ui5-select",
languageAware: true,
managedSlots: true,
slots: /** @lends sap.ui.webcomponents.main.Select.prototype */ {
/**
* Defines the component options.
*
* <br><br>
* <b>Note:</b> Only one selected option is allowed.
* If more than one option is defined as selected, the last one would be considered as the selected one.
*
* <br><br>
* <b>Note:</b> Use the <code>ui5-option</code> component to define the desired options.
* @type {sap.ui.webcomponents.main.ISelectOption[]}
* @slot options
* @public
*/
"default": {
propertyName: "options",
type: HTMLElement,
invalidateOnChildChange: true,
},
/**
* Defines the value state message that will be displayed as pop up under the component.
* <br><br>
*
* <b>Note:</b> If not specified, a default text (in the respective language) will be displayed.
* <br>
* <b>Note:</b> The <code>valueStateMessage</code> would be displayed,
* when the component is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.
* @type {HTMLElement[]}
* @since 1.0.0-rc.9
* @slot
* @public
*/
valueStateMessage: {
type: HTMLElement,
},
/**
* The slot is used to render native <code>input</code> HTML element within Light DOM to enable form submit,
* when <code>name</code> property is set.
* @type {HTMLElement[]}
* @slot
* @private
*/
formSupport: {
type: HTMLElement,
},
},
properties: /** @lends sap.ui.webcomponents.main.Select.prototype */ {
/**
* Defines whether the component is in disabled state.
* <br><br>
* <b>Note:</b> A disabled component is noninteractive.
*
* @type {boolean}
* @defaultvalue false
* @public
*/
disabled: {
type: Boolean,
},
/**
* Determines the name with which the component will be submitted in an HTML form.
* The value of the component will be the value of the currently selected <code>ui5-option</code>.
*
* <br><br>
* <b>Important:</b> For the <code>name</code> property to have effect, you must add the following import to your project:
* <code>import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";</code>
*
* <br><br>
* <b>Note:</b> When set, a native <code>input</code> HTML element
* will be created inside the <code>ui5-select</code> so that it can be submitted as
* part of an HTML form. Do not use this property unless you need to submit a form.
*
* @type {string}
* @defaultvalue ""
* @public
*/
name: {
type: String,
},
/**
* Defines the value state of the component.
* <br><br>
* Available options are:
* <ul>
* <li><code>None</code></li>
* <li><code>Error</code></li>
* <li><code>Warning</code></li>
* <li><code>Success</code></li>
* <li><code>Information</code></li>
* </ul>
*
* @type {ValueState}
* @defaultvalue "None"
* @public
*/
valueState: {
type: ValueState,
defaultValue: ValueState.None,
},
/**
* Defines whether the component is required.
*
* @since 1.0.0-rc.9
* @type {boolean}
* @defaultvalue false
* @public
*/
required: {
type: Boolean,
},
/**
* Sets the accessible aria name of the component.
*
* @type {String}
* @since 1.0.0-rc.9
* @public
* @since 1.0.0-rc.15
*/
accessibleName: {
type: String,
},
/**
* Receives id(or many ids) of the elements that label the select.
*
* @type {String}
* @defaultvalue ""
* @private
* @since 1.0.0-rc.9
*/
ariaLabelledby: {
type: String,
defaultValue: "",
},
_text: {
type: String,
noAttribute: true,
},
_iconPressed: {
type: Boolean,
noAttribute: true,
},
/**
* @private
*/
opened: {
type: Boolean,
},
_listWidth: {
type: Integer,
defaultValue: 0,
noAttribute: true,
},
/**
* @private
*/
focused: {
type: Boolean,
},
},
events: /** @lends sap.ui.webcomponents.main.Select.prototype */ {
/**
* Fired when the selected option changes.
*
* @event
* @param {HTMLElement} selectedOption the selected option.
* @public
*/
change: {
detail: {
selectedOption: {},
},
},
},
};
/**
* @class
*
* <h3 class="comment-api-title">Overview</h3>
* The <code>ui5-select</code> component is used to create a drop-down list.
* The items inside the <code>ui5-select</code> define the available options by using the <code>ui5-option</code> component.
*
* <h3>Keyboard Handling</h3>
* The <code>ui5-select</code> provides advanced keyboard handling.
* <br>
* <ul>
* <li>[F4, ALT+UP, ALT+DOWN, SPACE, ENTER] - Opens/closes the drop-down.</li>
* <li>[UP, DOWN] - If the drop-down is closed - changes selection to the next or the previous option. If the drop-down is opened - moves focus to the next or the previous option.</li>
* <li>[SPACE, ENTER] - If the drop-down is opened - selects the focused option.</li>
* <li>[ESC] - Closes the drop-down without changing the selection.</li>
* <li>[HOME] - Navigates to first option</li>
* <li>[END] - Navigates to the last option</li>
* </ul>
* <br>
*
* <h3>Stable DOM Refs</h3>
*
* In the context of <code>ui5-select</code>, you can provide a custom stable DOM ref for:
* <ul>
* <li>Every <code>ui5-option</code> that you provide.
* Example: <code><ui5-option stable-dom-ref="option1"></ui5-option></code></li>
* </ul>
*
* <h3>ES6 Module Import</h3>
* <code>import "@ui5/webcomponents/dist/Select";</code>
* <br>
* <code>import "@ui5/webcomponents/dist/Option";</code>
* @constructor
* @author SAP SE
* @alias sap.ui.webcomponents.main.Select
* @extends sap.ui.webcomponents.base.UI5Element
* @tagname ui5-select
* @appenddocs Option
* @public
* @since 0.8.0
*/
class Select extends UI5Element {
static get metadata() {
return metadata;
}
static get render() {
return litRender;
}
static get template() {
return SelectTemplate;
}
static get staticAreaTemplate() {
return SelectPopoverTemplate;
}
static get styles() {
return selectCss;
}
static get staticAreaStyles() {
return [ResponsivePopoverCommonCss, ValueStateMessageCss, SelectPopoverCss];
}
constructor() {
super();
this._syncedOptions = [];
this._selectedIndex = -1;
this._selectedIndexBeforeOpen = -1;
this._escapePressed = false;
this._lastSelectedOption = null;
this._typedChars = "";
this._typingTimeoutID = -1;
this.i18nBundle = getI18nBundle("@ui5/webcomponents");
}
onBeforeRendering() {
this._syncSelection();
this._enableFormSupport();
}
onAfterRendering() {
this.toggleValueStatePopover(this.shouldOpenValueStateMessagePopover);
if (this._isPickerOpen) {
if (!this._listWidth) {
this._listWidth = this.responsivePopover.offsetWidth;
}
}
}
_onfocusin() {
this.focused = true;
}
_onfocusout() {
this.focused = false;
this.itemSelectionAnnounce();
}
get _isPickerOpen() {
return !!this.responsivePopover && this.responsivePopover.opened;
}
async _respPopover() {
const staticAreaItem = await this.getStaticAreaItemDomRef();
return staticAreaItem.querySelector("[ui5-responsive-popover]");
}
/**
* Currently selected option.
* @readonly
* @type { ui5-option }
* @public
*/
get selectedOption() {
return this.options.find(option => option.selected);
}
async _toggleRespPopover() {
this._iconPressed = true;
this.responsivePopover = await this._respPopover();
if (this.disabled) {
return;
}
if (this._isPickerOpen) {
this.responsivePopover.close();
} else {
this.responsivePopover.openBy(this);
}
}
_syncSelection() {
let lastSelectedOptionIndex = -1,
firstEnabledOptionIndex = -1;
const opts = this.options.map((opt, index) => {
if (opt.selected || opt.textContent === this.value) {
// The second condition in the IF statement is added because of Angular Reactive Forms Support(Two way data binding)
lastSelectedOptionIndex = index;
}
if (!opt.disabled && (firstEnabledOptionIndex === -1)) {
firstEnabledOptionIndex = index;
}
opt.selected = false;
opt._focused = false;
return {
selected: false,
_focused: false,
disabled: opt.disabled,
icon: opt.icon,
value: opt.value,
textContent: opt.textContent,
id: opt._id,
stableDomRef: opt.stableDomRef,
};
});
if (lastSelectedOptionIndex > -1 && !opts[lastSelectedOptionIndex].disabled) {
opts[lastSelectedOptionIndex].selected = true;
opts[lastSelectedOptionIndex]._focused = true;
this.options[lastSelectedOptionIndex].selected = true;
this.options[lastSelectedOptionIndex]._focused = true;
this._text = opts[lastSelectedOptionIndex].textContent;
this._selectedIndex = lastSelectedOptionIndex;
} else {
this._text = "";
this._selectedIndex = -1;
if (opts[firstEnabledOptionIndex]) {
opts[firstEnabledOptionIndex].selected = true;
opts[firstEnabledOptionIndex]._focused = true;
this.options[firstEnabledOptionIndex].selected = true;
this.options[firstEnabledOptionIndex]._focused = true;
this._selectedIndex = firstEnabledOptionIndex;
this._text = this.options[firstEnabledOptionIndex].textContent;
}
}
this._syncedOptions = opts;
}
_enableFormSupport() {
const FormSupport = getFeature("FormSupport");
if (FormSupport) {
FormSupport.syncNativeHiddenInput(this, (element, nativeInput) => {
nativeInput.disabled = element.disabled;
nativeInput.value = element._currentlySelectedOption ? element._currentlySelectedOption.value : "";
});
} else if (this.name) {
console.warn(`In order for the "name" property to have effect, you should also: import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";`); // eslint-disable-line
}
}
_onkeydown(event) {
const isTab = (isTabNext(event) || isTabPrevious(event));
if (isTab && this.responsivePopover && this.responsivePopover.opened) {
this.responsivePopover.close();
}
if (isShow(event)) {
event.preventDefault();
this._toggleRespPopover();
} else if (isSpace(event)) {
event.preventDefault();
} else if (isEscape(event) && this._isPickerOpen) {
this._escapePressed = true;
} else if (isHome(event)) {
this._handleHomeKey(event);
} else if (isEnd(event)) {
this._handleEndKey(event);
} else if (isEnter(event)) {
this._handleSelectionChange();
} else if (isUp(event) || isDown(event)) {
this._handleArrowNavigation(event);
} else {
this._handleKeyboardNavigation(event);
}
}
_handleKeyboardNavigation(event) {
// Waiting for the actual symbol to trigger the keydown event
if (event.shiftKey && event.key === "Shift") {
return;
}
const typedCharacter = event.key.toLowerCase();
this._typedChars += typedCharacter;
// We check if we have more than one characters and they are all duplicate, we set the
// text to be the last input character (typedCharacter). If not, we set the text to be
// the whole input string.
const text = (/^(.)\1+$/i).test(this._typedChars) ? typedCharacter : this._typedChars;
clearTimeout(this._typingTimeoutID);
this._typingTimeoutID = setTimeout(() => {
this._typedChars = "";
this._typingTimeoutID = -1;
}, 1000);
this._selectTypedItem(text);
}
_selectTypedItem(text) {
const currentIndex = this._selectedIndex;
const itemToSelect = this._searchNextItemByText(text);
if (itemToSelect) {
const nextIndex = this._getSelectedItemIndex(itemToSelect);
this._changeSelectedItem(this._selectedIndex, nextIndex);
if (currentIndex !== this._selectedIndex) {
this.itemSelectionAnnounce();
}
}
}
_searchNextItemByText(text) {
let orderedOptions = this.options.slice(0);
const optionsAfterSelected = orderedOptions.splice(this._selectedIndex + 1, orderedOptions.length - this._selectedIndex);
const optionsBeforeSelected = orderedOptions.splice(0, orderedOptions.length - 1);
orderedOptions = optionsAfterSelected.concat(optionsBeforeSelected);
return orderedOptions.find(option => option.textContent.toLowerCase().startsWith(text));
}
_handleHomeKey(event) {
event.preventDefault();
this._changeSelectedItem(this._selectedIndex, 0);
}
_handleEndKey(event) {
const lastIndex = this.options.length - 1;
event.preventDefault();
this._changeSelectedItem(this._selectedIndex, lastIndex);
}
_onkeyup(event) {
if (isSpace(event)) {
if (this._isPickerOpen) {
this._handleSelectionChange();
} else {
this._toggleRespPopover();
}
}
}
_getSelectedItemIndex(item) {
return [].indexOf.call(item.parentElement.children, item);
}
_select(index) {
this.options[this._selectedIndex].selected = false;
this._selectedIndex = index;
this.options[index].selected = true;
}
/**
* The user clicked on an item from the list
* @private
*/
_handleItemPress(event) {
const item = event.detail.item;
const selectedItemIndex = this._getSelectedItemIndex(item);
this._handleSelectionChange(selectedItemIndex);
}
_itemMousedown(event) {
// prevent actual focus of items
event.preventDefault();
}
_onclick(event) {
this.getFocusDomRef().focus();
this._toggleRespPopover();
}
/**
* The user selected an item with Enter or Space
* @private
*/
_handleSelectionChange(index = this._selectedIndex) {
this._select(index);
this._toggleRespPopover();
}
_handleArrowNavigation(event) {
let nextIndex = -1;
const currentIndex = this._selectedIndex;
const isDownKey = isDown(event);
event.preventDefault();
if (isDownKey) {
nextIndex = this._getNextOptionIndex();
} else {
nextIndex = this._getPreviousOptionIndex();
}
this._changeSelectedItem(this._selectedIndex, nextIndex);
if (currentIndex !== this._selectedIndex) {
// Announce new item even if picker is opened.
// The aria-activedescendents attribute can't be used,
// because listitem elements are in different shadow dom
this.itemSelectionAnnounce();
}
}
_changeSelectedItem(oldIndex, newIndex) {
this.options[oldIndex].selected = false;
this.options[oldIndex]._focused = false;
this.options[newIndex].selected = true;
this.options[newIndex]._focused = true;
this._selectedIndex = newIndex;
if (!this._isPickerOpen) {
// arrow pressed on closed picker - do selection change
this._fireChangeEvent(this.options[newIndex]);
}
}
_getNextOptionIndex() {
return this._selectedIndex === (this.options.length - 1) ? this._selectedIndex : (this._selectedIndex + 1);
}
_getPreviousOptionIndex() {
return this._selectedIndex === 0 ? this._selectedIndex : (this._selectedIndex - 1);
}
_beforeOpen() {
this._selectedIndexBeforeOpen = this._selectedIndex;
this._lastSelectedOption = this.options[this._selectedIndex];
}
_afterOpen() {
this.opened = true;
}
_afterClose() {
this.opened = false;
this._iconPressed = false;
this._listWidth = 0;
if (this._escapePressed) {
this._select(this._selectedIndexBeforeOpen);
this._escapePressed = false;
} else if (this._lastSelectedOption !== this.options[this._selectedIndex]) {
this._fireChangeEvent(this.options[this._selectedIndex]);
this._lastSelectedOption = this.options[this._selectedIndex];
}
}
_fireChangeEvent(selectedOption) {
this.fireEvent("change", { selectedOption });
// Angular two way data binding
this.selectedItem = selectedOption.textContent;
this.fireEvent("selected-item-changed");
}
get valueStateTextMappings() {
const i18nBundle = this.i18nBundle;
return {
"Success": i18nBundle.getText(VALUE_STATE_SUCCESS),
"Information": i18nBundle.getText(VALUE_STATE_INFORMATION),
"Error": i18nBundle.getText(VALUE_STATE_ERROR),
"Warning": i18nBundle.getText(VALUE_STATE_WARNING),
};
}
get valueStateText() {
return this.valueStateTextMappings[this.valueState];
}
get hasValueState() {
return this.valueState !== ValueState.None;
}
get valueStateTextId() {
return this.hasValueState ? `${this._id}-valueStateDesc` : undefined;
}
get isDisabled() {
return this.disabled || undefined;
}
get _headerTitleText() {
return this.i18nBundle.getText(INPUT_SUGGESTIONS_TITLE);
}
get _currentSelectedItem() {
return this.shadowRoot.querySelector(`#${this.options[this._selectedIndex]._id}-li`);
}
get _currentlySelectedOption() {
return this.options[this._selectedIndex];
}
get tabIndex() {
return this.disabled
|| (this.responsivePopover // Handles focus on Tab/Shift + Tab when the popover is opened
&& this.responsivePopover.opened) ? "-1" : "0";
}
get classes() {
return {
popoverValueState: {
"ui5-valuestatemessage-root": true,
"ui5-valuestatemessage--success": this.valueState === ValueState.Success,
"ui5-valuestatemessage--error": this.valueState === ValueState.Error,
"ui5-valuestatemessage--warning": this.valueState === ValueState.Warning,
"ui5-valuestatemessage--information": this.valueState === ValueState.Information,
},
};
}
get styles() {
return {
popoverHeader: {
"width": `${this.offsetWidth}px`,
},
responsivePopoverHeader: {
"display": this.options.length && this._listWidth === 0 ? "none" : "inline-block",
"width": `${this.options.length ? this._listWidth : this.offsetWidth}px`,
},
};
}
get ariaLabelText() {
return getEffectiveAriaLabelText(this);
}
get valueStateMessageText() {
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
}
get shouldDisplayDefaultValueStateMessage() {
return !this.valueStateMessage.length && this.hasValueStateText;
}
get hasValueStateText() {
return this.hasValueState && this.valueState !== ValueState.Success;
}
get shouldOpenValueStateMessagePopover() {
return this.focused && this.hasValueStateText && !this._iconPressed
&& !this._isPickerOpen && !this._isPhone;
}
get _isPhone() {
return isPhone();
}
itemSelectionAnnounce() {
const invisibleText = this.shadowRoot.querySelector(`#${this._id}-selectionText`);
if (this.focused && this._currentlySelectedOption) {
invisibleText.textContent = this._currentlySelectedOption.textContent;
} else {
invisibleText.textContent = "";
}
}
async openValueStatePopover() {
this.popover = await this._getPopover();
if (this.popover) {
this.popover.openBy(this);
}
}
closeValueStatePopover() {
this.popover && this.popover.close();
}
toggleValueStatePopover(open) {
if (open) {
this.openValueStatePopover();
} else {
this.closeValueStatePopover();
}
}
get selectedOptionIcon() {
return this.selectedOption && this.selectedOption.icon;
}
async _getPopover() {
const staticAreaItem = await this.getStaticAreaItemDomRef();
return staticAreaItem.querySelector("[ui5-popover]");
}
static get dependencies() {
return [
Option,
Label,
ResponsivePopover,
Popover,
List,
StandardListItem,
Icon,
Button,
];
}
}
Select.define();
export default Select;