@watermarkinsights/ripple 5.6.0 → 5.7.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{chartFunctions-6fd43417.js → chartFunctions-995023b1.js} +1 -1
- package/dist/cjs/{functions-04149f6d.js → functions-e24249e6.js} +6 -0
- package/dist/cjs/{global-4a315ae6.js → global-d996c674.js} +1 -1
- package/dist/cjs/index-e86c28b6.js +12 -0
- package/dist/cjs/{intl-b1e99809.js → intl-5aeba788.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +410 -0
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
- package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal-header.cjs.entry.js +2 -2
- package/dist/cjs/wm-modal.cjs.entry.js +2 -2
- package/dist/cjs/wm-navigation_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +308 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +67 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +38 -343
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +2 -2
- package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/wm-timepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +131 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +785 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +420 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +588 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +51 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +235 -0
- package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.css +1 -1
- package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.js +30 -9
- package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.css +5 -72
- package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.js +20 -387
- package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.spec.js +61 -61
- package/dist/collection/components/wm-modal/wm-modal.js +1 -1
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/global/functions.js +5 -0
- package/dist/esm/{chartFunctions-f5eb7f59.js → chartFunctions-dfcb1edf.js} +1 -1
- package/dist/esm/{functions-cf37f81f.js → functions-b791a892.js} +6 -1
- package/dist/esm/{global-016b76a8.js → global-dcf80bdb.js} +1 -1
- package/dist/esm/index-558b5a82.js +12 -0
- package/dist/esm/{intl-c72b75dc.js → intl-f2f7ce8b.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +1 -1
- package/dist/esm/priv-chart-popover.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +406 -0
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +1 -1
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +1 -1
- package/dist/esm/wm-datepicker.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-input.entry.js +2 -2
- package/dist/esm/wm-line-chart.entry.js +3 -3
- package/dist/esm/wm-modal-header.entry.js +2 -2
- package/dist/esm/wm-modal.entry.js +2 -2
- package/dist/esm/wm-navigation_3.entry.js +2 -2
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +304 -0
- package/dist/esm/wm-optgroup.entry.js +63 -0
- package/dist/esm/wm-option_2.entry.js +38 -343
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +2 -2
- package/dist/esm/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +1 -1
- package/dist/esm/wm-tag-input.entry.js +2 -2
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +2 -2
- package/dist/esm/wm-timepicker.entry.js +1 -1
- package/dist/esm/wm-toggletip.entry.js +1 -1
- package/dist/esm/wm-uploader.entry.js +2 -2
- package/dist/esm-es5/{chartFunctions-f5eb7f59.js → chartFunctions-dfcb1edf.js} +1 -1
- package/dist/esm-es5/{functions-cf37f81f.js → functions-b791a892.js} +1 -1
- package/dist/esm-es5/global-dcf80bdb.js +1 -0
- package/dist/esm-es5/index-558b5a82.js +1 -1
- package/dist/esm-es5/{intl-c72b75dc.js → intl-f2f7ce8b.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-2d0e4020.system.entry.js → p-0b1c6965.system.entry.js} +1 -1
- package/dist/ripple/p-0c259c1a.system.entry.js +1 -0
- package/dist/ripple/{p-2ccf8450.system.entry.js → p-1389302e.system.entry.js} +1 -1
- package/dist/ripple/{p-20a800a7.entry.js → p-13f51c06.entry.js} +1 -1
- package/dist/ripple/{p-f4b64ded.entry.js → p-149a22bf.entry.js} +1 -1
- package/dist/ripple/{p-76825602.js → p-16f65bf4.js} +1 -1
- package/dist/ripple/p-1c170fb3.entry.js +1 -0
- package/dist/ripple/{p-3ea0e27c.entry.js → p-1e625a5e.entry.js} +1 -1
- package/dist/ripple/{p-31094930.entry.js → p-215793a4.entry.js} +1 -1
- package/dist/ripple/{p-fb229776.js → p-21d372ed.js} +1 -1
- package/dist/ripple/{p-24103be5.entry.js → p-236af552.entry.js} +1 -1
- package/dist/ripple/{p-f177d841.entry.js → p-2e79fa49.entry.js} +1 -1
- package/dist/ripple/{p-ed1971ff.system.entry.js → p-30b905eb.system.entry.js} +1 -1
- package/dist/ripple/{p-86d81e42.entry.js → p-3d50db36.entry.js} +1 -1
- package/dist/ripple/{p-53519eed.system.entry.js → p-3deaf4d9.system.entry.js} +1 -1
- package/dist/ripple/{p-5f793375.system.entry.js → p-3e415c49.system.entry.js} +1 -1
- package/dist/ripple/{p-0b570b66.entry.js → p-41550baa.entry.js} +1 -1
- package/dist/ripple/p-45dc49e8.entry.js +1 -0
- package/dist/ripple/{p-508362c5.entry.js → p-45f9ad09.entry.js} +1 -1
- package/dist/ripple/p-50388b6f.system.entry.js +1 -0
- package/dist/ripple/{p-dc7a6037.system.entry.js → p-505eca1c.system.entry.js} +1 -1
- package/dist/ripple/{p-762429a8.entry.js → p-5284791c.entry.js} +1 -1
- package/dist/ripple/{p-0d05b4a9.entry.js → p-5300b15d.entry.js} +1 -1
- package/dist/ripple/p-54d9e467.system.entry.js +1 -0
- package/dist/ripple/p-54f7d3d4.system.entry.js +1 -0
- package/dist/ripple/{p-5db92638.system.entry.js → p-5a9e3108.system.entry.js} +1 -1
- package/dist/ripple/p-618300c1.entry.js +1 -0
- package/dist/ripple/{p-2d0bcc88.system.entry.js → p-6cc07645.system.entry.js} +1 -1
- package/dist/ripple/{p-cd51ee87.system.entry.js → p-6d129ef8.system.entry.js} +1 -1
- package/dist/ripple/{p-451433a6.entry.js → p-72165bd2.entry.js} +1 -1
- package/dist/ripple/{p-5967bd2a.system.entry.js → p-725230dd.system.entry.js} +1 -1
- package/dist/ripple/{p-984287f7.system.entry.js → p-749597da.system.entry.js} +1 -1
- package/dist/ripple/p-76ff5d91.entry.js +1 -0
- package/dist/ripple/{p-fb751343.system.js → p-81c2df85.system.js} +1 -1
- package/dist/ripple/{p-74032162.system.js → p-828adbf1.system.js} +1 -1
- package/dist/ripple/{p-db8917e4.entry.js → p-83be63f6.entry.js} +1 -1
- package/dist/ripple/{p-ce8c6180.system.entry.js → p-84603f1f.system.entry.js} +1 -1
- package/dist/ripple/{p-d0387d35.entry.js → p-84ba5b74.entry.js} +1 -1
- package/dist/ripple/p-99058787.entry.js +1 -0
- package/dist/ripple/{p-9df3574d.system.entry.js → p-a0ecb6d7.system.entry.js} +1 -1
- package/dist/ripple/{p-7fdcce90.system.entry.js → p-a3c01e10.system.entry.js} +1 -1
- package/dist/ripple/p-ae82b3d2.system.js +1 -0
- package/dist/ripple/{p-c61366fd.entry.js → p-aea13873.entry.js} +1 -1
- package/dist/ripple/{p-120dbdc8.system.entry.js → p-b01f9998.system.entry.js} +1 -1
- package/dist/ripple/p-b176c143.system.entry.js +1 -0
- package/dist/ripple/{p-bd142645.entry.js → p-b9dbf1f4.entry.js} +1 -1
- package/dist/ripple/{p-04f9a60a.entry.js → p-c1e3c2fb.entry.js} +1 -1
- package/dist/ripple/{p-8b272d80.system.entry.js → p-c2e00d4a.system.entry.js} +1 -1
- package/dist/ripple/{p-76d53189.entry.js → p-c47fab48.entry.js} +1 -1
- package/dist/ripple/p-c6a336d6.system.js +1 -0
- package/dist/ripple/{p-ffa15c47.system.entry.js → p-c853e185.system.entry.js} +1 -1
- package/dist/ripple/{p-c9200deb.system.entry.js → p-ca971eac.system.entry.js} +1 -1
- package/dist/ripple/{p-8008f0f2.system.entry.js → p-cad0c5f9.system.entry.js} +1 -1
- package/dist/ripple/{p-446e0b2c.system.entry.js → p-db9657eb.system.entry.js} +1 -1
- package/dist/ripple/{p-e3899e1f.entry.js → p-df157138.entry.js} +1 -1
- package/dist/ripple/{p-ae4460f2.system.entry.js → p-e081fdc2.system.entry.js} +1 -1
- package/dist/ripple/p-e209a933.js +1 -0
- package/dist/ripple/{p-dfd1b720.entry.js → p-e687176d.entry.js} +1 -1
- package/dist/ripple/{p-d8994408.system.entry.js → p-ed1f6b8d.system.entry.js} +1 -1
- package/dist/ripple/{p-db190563.js → p-eddbcb21.js} +1 -1
- package/dist/ripple/p-ee4fee7d.system.js +1 -0
- package/dist/ripple/{p-8a11ee6f.entry.js → p-f2101a0d.entry.js} +1 -1
- package/dist/ripple/{p-1aef4b40.entry.js → p-f24572f5.entry.js} +1 -1
- package/dist/ripple/{p-97f276aa.system.entry.js → p-f40e1468.system.entry.js} +1 -1
- package/dist/ripple/{p-6f4c4231.entry.js → p-f90e4094.entry.js} +1 -1
- package/dist/ripple/{p-7f483c55.system.entry.js → p-fa4f1030.system.entry.js} +1 -1
- package/dist/ripple/{p-9b75d56c.entry.js → p-ff1ed90f.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/{wm-select/wm-select.d.ts → selects/priv-option-list/priv-option-list.d.ts} +42 -65
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +58 -0
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +20 -0
- package/dist/types/components/{wm-option → selects/wm-option}/wm-option.d.ts +3 -2
- package/dist/types/components/selects/wm-select/wm-select.d.ts +54 -0
- package/dist/types/components.d.ts +156 -2
- package/dist/types/global/functions.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm-es5/global-016b76a8.js +0 -1
- package/dist/ripple/p-11aaef56.system.entry.js +0 -1
- package/dist/ripple/p-481a9e2f.system.js +0 -1
- package/dist/ripple/p-55668879.system.js +0 -1
- package/dist/ripple/p-6636a40b.system.entry.js +0 -1
- package/dist/ripple/p-9603168d.entry.js +0 -1
- package/dist/ripple/p-a40b0af9.system.js +0 -1
- package/dist/ripple/p-a895f1ef.entry.js +0 -1
- package/dist/ripple/p-f9494a9d.js +0 -1
- /package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.e2e.js +0 -0
- /package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.spec.js +0 -0
- /package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.e2e.js +0 -0
|
@@ -1,45 +1,14 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { forceUpdate } from "@stencil/core";
|
|
3
|
-
import { getTextDir, shouldOpenUp, intl,
|
|
4
|
-
import { globalMessages } from "
|
|
3
|
+
import { getTextDir, shouldOpenUp, intl, isElOrChild, toBool, handleDisabledAttribute, } from "../../../global/functions";
|
|
4
|
+
import { globalMessages } from "../../../global/intl";
|
|
5
5
|
export class Select {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.selectAllMessage = intl.formatMessage({
|
|
8
|
-
id: "select.selectAll",
|
|
9
|
-
defaultMessage: "Select All",
|
|
10
|
-
});
|
|
11
|
-
this.deselectAllMessage = intl.formatMessage({
|
|
12
|
-
id: "select.deselectAll",
|
|
13
|
-
defaultMessage: "Deselect All",
|
|
14
|
-
});
|
|
15
|
-
this.allOptionsSelectedMessage = intl.formatMessage({
|
|
16
|
-
id: "select.allOptionsSelected",
|
|
17
|
-
defaultMessage: "All options selected",
|
|
18
|
-
});
|
|
19
|
-
this.allOptionsDeselectedMessage = intl.formatMessage({
|
|
20
|
-
id: "select.allOptionsDeselected",
|
|
21
|
-
defaultMessage: "All options deselected",
|
|
22
|
-
});
|
|
23
|
-
this.keysSoFar = "";
|
|
24
|
-
this.searchIndex = 0;
|
|
25
7
|
this.openUp = false;
|
|
26
8
|
//////////////////////////////////////
|
|
27
|
-
//////////////////////////////////////
|
|
28
9
|
// for multiselect button text
|
|
29
10
|
this.overflowCount = 0;
|
|
30
11
|
this.displayedOptions = [];
|
|
31
|
-
this.debouncedClearKeysSoFar = debounce(() => {
|
|
32
|
-
this.keysSoFar = "";
|
|
33
|
-
}, 500);
|
|
34
|
-
this.debouncedSearch = debounce(() => {
|
|
35
|
-
this.wmSelectSearchChanged.emit({ searchTerm: this.searchTerm });
|
|
36
|
-
if (this.filteredOptions.length) {
|
|
37
|
-
this.announce(this.resultsFoundMessage);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.announce(this.noResultsFoundMessage);
|
|
41
|
-
}
|
|
42
|
-
}, 150);
|
|
43
12
|
this.disabled = false;
|
|
44
13
|
this.maxHeight = undefined;
|
|
45
14
|
this.label = undefined;
|
|
@@ -70,85 +39,33 @@ export class Select {
|
|
|
70
39
|
get childOptions() {
|
|
71
40
|
return Array.from(this.el.querySelectorAll("wm-option"));
|
|
72
41
|
}
|
|
73
|
-
get cloneOptions() {
|
|
74
|
-
return Array.from(this.el.shadowRoot.querySelectorAll("wm-option"));
|
|
75
|
-
}
|
|
76
|
-
get allOptionEls() {
|
|
77
|
-
// this includes both slotted wm-options and internally created wm-options
|
|
78
|
-
return this.cloneOptions.concat(this.childOptions);
|
|
79
|
-
}
|
|
80
|
-
get visibleOptionEls() {
|
|
81
|
-
return this.allOptionEls.filter((option) => !option.classList.contains("hidden") && !option.classList.contains("filtered-out"));
|
|
82
|
-
}
|
|
83
42
|
get isDisabled() {
|
|
84
43
|
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
85
44
|
return toBool(this.disabled);
|
|
86
45
|
}
|
|
87
|
-
//////////////////////////////////////
|
|
88
|
-
// for search variants
|
|
89
|
-
get searchTerm() {
|
|
90
|
-
return this.searchFieldEl ? this.searchFieldEl.value : "";
|
|
91
|
-
}
|
|
92
|
-
get filteredOptions() {
|
|
93
|
-
return this.childOptions.filter((option) => { var _a; return (_a = option.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.searchTerm.toLowerCase()); });
|
|
94
|
-
}
|
|
95
46
|
get selectedOptions() {
|
|
96
47
|
return Array.from(this.el.querySelectorAll("wm-option")).filter((x) => x.selected);
|
|
97
48
|
}
|
|
98
49
|
get allSelected() {
|
|
99
50
|
return this.childOptions.every((option) => option.selected);
|
|
100
51
|
}
|
|
101
|
-
get visibleSelectAllButton() {
|
|
102
|
-
return this.selectAll && this.multiple && this.searchTerm === "";
|
|
103
|
-
}
|
|
104
52
|
//////////////////////////////////////
|
|
105
|
-
|
|
106
|
-
return intl.formatMessage({
|
|
107
|
-
id: "select.searchResultsFound",
|
|
108
|
-
defaultMessage: "{numResults, plural, one {1 option found} other {# options found}}",
|
|
109
|
-
description: "The message read by the screen reader, indicating how many results a search returned",
|
|
110
|
-
}, { numResults: this.filteredOptions.length });
|
|
111
|
-
}
|
|
112
|
-
get noResultsFoundMessage() {
|
|
113
|
-
return intl.formatMessage({
|
|
114
|
-
id: "select.noSearchResults",
|
|
115
|
-
defaultMessage: "No results found. Please try your search again.",
|
|
116
|
-
description: "The message displayed when no options pass the search filter",
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
handleOptionSelection(ev) {
|
|
120
|
-
this.focusOption(ev.detail);
|
|
53
|
+
handleOptionSelection() {
|
|
121
54
|
if (!this.multiple) {
|
|
122
55
|
this.close();
|
|
123
56
|
}
|
|
124
57
|
}
|
|
125
|
-
handleOptionCloneSelection(ev) {
|
|
126
|
-
const correspondingOption = this.findCorrespondingOption(ev.detail);
|
|
127
|
-
correspondingOption.click();
|
|
128
|
-
}
|
|
129
58
|
handleChildEnter() {
|
|
130
59
|
// only occurs for multiselects. handle the click, then close
|
|
131
60
|
this.close();
|
|
132
61
|
}
|
|
133
|
-
handleChildUp(ev) {
|
|
134
|
-
this.moveUp(ev.detail);
|
|
135
|
-
}
|
|
136
|
-
handleChildDown(ev) {
|
|
137
|
-
this.moveDown(ev.detail);
|
|
138
|
-
}
|
|
139
|
-
moveToFirstOption() {
|
|
140
|
-
this.focusOption(this.visibleOptionEls[0]);
|
|
141
|
-
}
|
|
142
|
-
moveToLastOption() {
|
|
143
|
-
this.focusOption(this.visibleOptionEls[this.visibleOptionEls.length - 1]);
|
|
144
|
-
}
|
|
145
62
|
closePopupOnEscape() {
|
|
146
63
|
this.close();
|
|
147
64
|
}
|
|
148
65
|
handleOptionBlur(ev) {
|
|
149
66
|
// if the Option is blurred to something other than the component emit a blur event with the appropriate relatedTarget
|
|
150
67
|
// keeps our component's blur events accurate, and closes when focusing browser address bar
|
|
151
|
-
if (!this.
|
|
68
|
+
if (!isElOrChild(this.el, ev.detail.relatedTarget)) {
|
|
152
69
|
const event = new CustomEvent("blur");
|
|
153
70
|
// @ts-ignore
|
|
154
71
|
event.relatedTarget = ev.detail.relatedTarget;
|
|
@@ -156,34 +73,16 @@ export class Select {
|
|
|
156
73
|
}
|
|
157
74
|
}
|
|
158
75
|
handleClick(ev) {
|
|
159
|
-
if (!this.
|
|
76
|
+
if (!isElOrChild(this.el, ev.target)) {
|
|
160
77
|
this.close();
|
|
161
78
|
}
|
|
162
79
|
}
|
|
163
|
-
handleSelectAllClick() {
|
|
164
|
-
this.allSelected ? this.deselectAllOptions() : this.selectAllOptions();
|
|
165
|
-
}
|
|
166
|
-
selectAllOptions() {
|
|
167
|
-
this.announce(this.allOptionsSelectedMessage);
|
|
168
|
-
this.wmSelectAllSelected.emit();
|
|
169
|
-
}
|
|
170
|
-
deselectAllOptions() {
|
|
171
|
-
this.announce(this.allOptionsDeselectedMessage);
|
|
172
|
-
this.wmSelectAllDeselected.emit();
|
|
173
|
-
}
|
|
174
80
|
handleButtonBlur(ev) {
|
|
175
|
-
if (this.
|
|
81
|
+
if (isElOrChild(this.el, ev.relatedTarget)) {
|
|
176
82
|
// do not emit a blur event when opening the dropdown and focusing the Options
|
|
177
83
|
ev.stopPropagation();
|
|
178
84
|
}
|
|
179
85
|
}
|
|
180
|
-
handleSearchFieldBlur(ev) {
|
|
181
|
-
this.searchFieldWrapperEl.classList.remove("focus");
|
|
182
|
-
if (this.isElOrChild(ev.relatedTarget)) {
|
|
183
|
-
// do not emit a blur event when moving from searchfield to options
|
|
184
|
-
ev.stopPropagation();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
86
|
handleKey(ev) {
|
|
188
87
|
switch (ev.key) {
|
|
189
88
|
case "ArrowDown":
|
|
@@ -219,6 +118,7 @@ export class Select {
|
|
|
219
118
|
handleChildChange(_) {
|
|
220
119
|
// on update of children or children selected state, reset button text and rerender
|
|
221
120
|
this.setButtonText();
|
|
121
|
+
this.optionListEl.handleChildChange(_);
|
|
222
122
|
forceUpdate(this.el);
|
|
223
123
|
}
|
|
224
124
|
componentDidLoad() {
|
|
@@ -227,55 +127,11 @@ export class Select {
|
|
|
227
127
|
forceUpdate(this.el);
|
|
228
128
|
// Dev can overwrite the max-height rule set in the Sass file
|
|
229
129
|
if (this.maxHeight) {
|
|
230
|
-
this.listboxEl.style.maxHeight = this.maxHeight;
|
|
231
|
-
|
|
232
|
-
if (this.multiple) {
|
|
233
|
-
this.updateOptionVisibility();
|
|
130
|
+
// this.listboxEl.style.maxHeight = this.maxHeight;
|
|
131
|
+
this.dropdownEl.style.maxHeight = this.maxHeight;
|
|
234
132
|
}
|
|
235
133
|
this.setButtonText();
|
|
236
134
|
}
|
|
237
|
-
componentWillUpdate() {
|
|
238
|
-
if (this.multiple) {
|
|
239
|
-
// find last visible clone option and apply .last class
|
|
240
|
-
const visibleCloneOptions = this.visibleOptionEls.filter((option) => option.classList.contains("clone"));
|
|
241
|
-
// if all options are clones, nothing to separate from
|
|
242
|
-
const allClones = visibleCloneOptions.length === this.visibleOptionEls.length;
|
|
243
|
-
visibleCloneOptions.forEach((option, idx) => {
|
|
244
|
-
if (!allClones && idx === visibleCloneOptions.length - 1) {
|
|
245
|
-
option.classList.add("last");
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
option.classList.remove("last");
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
moveUp(el) {
|
|
254
|
-
const focusableEls = this.visibleOptionEls;
|
|
255
|
-
if (this.selectAllEl) {
|
|
256
|
-
focusableEls.unshift(this.selectAllEl);
|
|
257
|
-
}
|
|
258
|
-
if (this.searchFieldEl) {
|
|
259
|
-
focusableEls.unshift(this.searchFieldEl);
|
|
260
|
-
}
|
|
261
|
-
const prevEl = focusableEls[focusableEls.indexOf(el) - 1] || focusableEls[focusableEls.length - 1];
|
|
262
|
-
if (prevEl) {
|
|
263
|
-
this.focusOption(prevEl);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
moveDown(el) {
|
|
267
|
-
const focusableEls = this.visibleOptionEls;
|
|
268
|
-
if (this.selectAllEl) {
|
|
269
|
-
focusableEls.unshift(this.selectAllEl);
|
|
270
|
-
}
|
|
271
|
-
if (this.searchFieldEl) {
|
|
272
|
-
focusableEls.unshift(this.searchFieldEl);
|
|
273
|
-
}
|
|
274
|
-
const nextEl = focusableEls[focusableEls.indexOf(el) + 1] || focusableEls[0];
|
|
275
|
-
if (nextEl) {
|
|
276
|
-
this.focusOption(nextEl);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
135
|
open(optionToSelect) {
|
|
280
136
|
if (!this.isDisabled) {
|
|
281
137
|
const elHeight = this.el.clientHeight;
|
|
@@ -288,60 +144,22 @@ export class Select {
|
|
|
288
144
|
this.isExpanded = true;
|
|
289
145
|
this.dropdownEl.classList.remove("hidden");
|
|
290
146
|
window.requestAnimationFrame(() => {
|
|
291
|
-
|
|
292
|
-
case "next":
|
|
293
|
-
// search variant focuses search field
|
|
294
|
-
// all others focus option "after" last selected option (this can be the first option)
|
|
295
|
-
if (this.search) {
|
|
296
|
-
this.searchFieldEl.focus();
|
|
297
|
-
this.listboxEl.scrollTop = 0;
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
this.moveDown(this.visibleOptionEls.filter((x) => x.selected).slice(-1)[0]);
|
|
301
|
-
}
|
|
302
|
-
break;
|
|
303
|
-
case "previous":
|
|
304
|
-
// search variant focuses last option
|
|
305
|
-
// all others focus option "above" first selected option (this can be the last option)
|
|
306
|
-
if (this.search) {
|
|
307
|
-
this.focusOption(this.visibleOptionEls[this.visibleOptionEls.length - 1]);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
this.moveUp(this.visibleOptionEls.filter((x) => x.selected)[0]);
|
|
311
|
-
}
|
|
312
|
-
break;
|
|
313
|
-
default:
|
|
314
|
-
// search variant focuses search field
|
|
315
|
-
// all others focus the selected option
|
|
316
|
-
// if no option is selected (empty multiselect), focuses first option
|
|
317
|
-
if (this.search) {
|
|
318
|
-
this.searchFieldEl.focus();
|
|
319
|
-
this.listboxEl.scrollTop = 0;
|
|
320
|
-
}
|
|
321
|
-
else if (this.selectedOptions.length > 0) {
|
|
322
|
-
this.focusOption(this.visibleOptionEls.filter((x) => x.selected)[0]);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
this.focusOption(this.visibleOptionEls[0]);
|
|
326
|
-
}
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
147
|
+
this.optionListEl.handleInitialFocus(optionToSelect);
|
|
329
148
|
});
|
|
330
149
|
}
|
|
331
150
|
}
|
|
332
151
|
close(returnFocus = true) {
|
|
333
152
|
if (this.isExpanded) {
|
|
334
153
|
this.isExpanded = false;
|
|
335
|
-
this.
|
|
154
|
+
this.optionListEl.unfocusAll();
|
|
336
155
|
window.setTimeout(() => {
|
|
337
156
|
this.dropdownEl.classList.add("hidden");
|
|
338
|
-
if (this.multiple) {
|
|
339
|
-
this.updateOptionVisibility();
|
|
157
|
+
if (this.optionListEl.multiple) {
|
|
158
|
+
this.optionListEl.updateOptionVisibility();
|
|
340
159
|
}
|
|
341
160
|
// clear search field, reset filtered / bolded state of wm-options
|
|
342
161
|
if (this.search) {
|
|
343
|
-
this.
|
|
344
|
-
this.wmSelectSearchChanged.emit({ searchTerm: this.searchTerm });
|
|
162
|
+
this.optionListEl.clearSearch();
|
|
345
163
|
}
|
|
346
164
|
// Returns focus to button after popup closes (no need if user is tabbing)
|
|
347
165
|
// Delay is necessary for screenreader to get new expanded state before focus
|
|
@@ -353,87 +171,6 @@ export class Select {
|
|
|
353
171
|
}, 150);
|
|
354
172
|
}
|
|
355
173
|
}
|
|
356
|
-
updateOptionVisibility() {
|
|
357
|
-
// this runs for search multiselects, where selected options are rendered at the top of the dropdown list
|
|
358
|
-
// slotted wm-options are hidden if selected, and clone wm-options are made visible if selected
|
|
359
|
-
this.childOptions.forEach((option, idx) => {
|
|
360
|
-
const cloneOption = this.cloneOptions[idx];
|
|
361
|
-
if (option.selected) {
|
|
362
|
-
option.classList.add("hidden");
|
|
363
|
-
cloneOption.classList.remove("hidden");
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
option.classList.remove("hidden");
|
|
367
|
-
cloneOption.classList.add("hidden");
|
|
368
|
-
}
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
focusOption(option) {
|
|
372
|
-
this.allOptionEls.forEach((i) => (i.focused = i === option));
|
|
373
|
-
// option must be scrolledIntoView before focused
|
|
374
|
-
// if focus is called first the option might be positioned incorrectly (in the center of the dropdown) and scrollIntoView will do nothing as the option will already be in view
|
|
375
|
-
option.scrollIntoView({ block: "nearest" });
|
|
376
|
-
// scrollIntoView does not work when the container of the element it's called on is not rendered to the page (in our case the dropdown is still closed and has transform: scaleY(0))
|
|
377
|
-
// when opening the dropdown, scrollIntoView must be delayed to a point where the browser recognizes content within it as able to be scrolled to
|
|
378
|
-
// in Safari in particular, the soonest this seems to happen is 20ms. The longest we can wait before any jumping in the open dropdown is noticeable is 60ms
|
|
379
|
-
window.setTimeout(() => option.scrollIntoView({ block: "nearest" }), 60);
|
|
380
|
-
option.focus();
|
|
381
|
-
}
|
|
382
|
-
findAndFocusOption(ev) {
|
|
383
|
-
const letterPressed = ev.detail.letter.toLowerCase();
|
|
384
|
-
const optionPressed = ev.detail.optionEl;
|
|
385
|
-
if (!this.keysSoFar && letterPressed == " ") {
|
|
386
|
-
// if the first key entered is space, treat as a click. Otherwise include in
|
|
387
|
-
optionPressed.click();
|
|
388
|
-
}
|
|
389
|
-
else {
|
|
390
|
-
if (!this.keysSoFar) {
|
|
391
|
-
// if first character entered, set currently focused option as the starting index for the search
|
|
392
|
-
this.visibleOptionEls.forEach((option, idx) => {
|
|
393
|
-
if (option.focused) {
|
|
394
|
-
this.searchIndex = idx;
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
this.keysSoFar += letterPressed;
|
|
399
|
-
let nextMatch = this.findMatchInRange(this.visibleOptionEls, this.searchIndex + 1, this.visibleOptionEls.length);
|
|
400
|
-
if (!nextMatch) {
|
|
401
|
-
// if match can't be found from starting option downwards, search from top
|
|
402
|
-
nextMatch = this.findMatchInRange(this.visibleOptionEls, 0, this.searchIndex);
|
|
403
|
-
}
|
|
404
|
-
if (nextMatch) {
|
|
405
|
-
// findMatchInRange still might have returned null, only focus if match found
|
|
406
|
-
this.focusOption(nextMatch);
|
|
407
|
-
}
|
|
408
|
-
this.debouncedClearKeysSoFar();
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
findMatchInRange(list, startIndex, endIndex) {
|
|
412
|
-
let match = null;
|
|
413
|
-
let optionsInRange = list.slice(startIndex, endIndex);
|
|
414
|
-
// Find the first option starting with the keysSoFar substring, searching in
|
|
415
|
-
// the specified range of options
|
|
416
|
-
optionsInRange.forEach((option) => {
|
|
417
|
-
const label = option.textContent;
|
|
418
|
-
if (!match && label && label.toLowerCase().startsWith(this.keysSoFar)) {
|
|
419
|
-
match = option;
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
return match;
|
|
423
|
-
}
|
|
424
|
-
findCorrespondingOption(el) {
|
|
425
|
-
// if clone, returns the child wm-option
|
|
426
|
-
// if child wm-option, returns clone
|
|
427
|
-
const isClone = el.classList.contains("clone");
|
|
428
|
-
return isClone
|
|
429
|
-
? this.childOptions[this.cloneOptions.indexOf(el)]
|
|
430
|
-
: this.cloneOptions[this.childOptions.indexOf(el)];
|
|
431
|
-
}
|
|
432
|
-
isElOrChild(el) {
|
|
433
|
-
var _a;
|
|
434
|
-
// determines whether or not the element is the component, a child of the component, or exists within the component's shadowroot
|
|
435
|
-
return el === this.el || this.el.contains(el) || ((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(el));
|
|
436
|
-
}
|
|
437
174
|
announceError() {
|
|
438
175
|
if (this.errorMessage) {
|
|
439
176
|
setTimeout(() => this.announce(this.errorMessage), 100);
|
|
@@ -449,41 +186,8 @@ export class Select {
|
|
|
449
186
|
this.wmSelectBlurred.emit();
|
|
450
187
|
}
|
|
451
188
|
}
|
|
452
|
-
// on search field or select all. keydown on options is handled via events.
|
|
453
|
-
handleKeyDown(ev) {
|
|
454
|
-
const el = ev.target;
|
|
455
|
-
switch (ev.key) {
|
|
456
|
-
case "ArrowDown":
|
|
457
|
-
ev.preventDefault();
|
|
458
|
-
this.moveDown(ev.target);
|
|
459
|
-
break;
|
|
460
|
-
case "ArrowUp":
|
|
461
|
-
ev.preventDefault();
|
|
462
|
-
this.moveUp(ev.target);
|
|
463
|
-
break;
|
|
464
|
-
case "Escape":
|
|
465
|
-
ev.preventDefault();
|
|
466
|
-
this.close();
|
|
467
|
-
break;
|
|
468
|
-
case "Enter":
|
|
469
|
-
if (el === this.selectAllEl) {
|
|
470
|
-
ev.preventDefault();
|
|
471
|
-
this.handleSelectAllClick();
|
|
472
|
-
this.close();
|
|
473
|
-
}
|
|
474
|
-
break;
|
|
475
|
-
case " ":
|
|
476
|
-
if (el === this.selectAllEl) {
|
|
477
|
-
ev.preventDefault();
|
|
478
|
-
this.handleSelectAllClick();
|
|
479
|
-
}
|
|
480
|
-
break;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
189
|
setButtonText() {
|
|
484
|
-
this.displayedOptions = this.childOptions
|
|
485
|
-
.filter((x) => x.selected)
|
|
486
|
-
.map((y) => (!y.classList.contains("hidden") ? y : this.findCorrespondingOption(y)));
|
|
190
|
+
this.displayedOptions = this.childOptions.filter((x) => x.selected);
|
|
487
191
|
// handle overflow + counter for multiselect
|
|
488
192
|
if (this.multiple) {
|
|
489
193
|
// this is a fixed measurement accounting for the max width of a 3 character overflow counter
|
|
@@ -493,14 +197,14 @@ export class Select {
|
|
|
493
197
|
const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
|
|
494
198
|
const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
|
|
495
199
|
const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
|
|
496
|
-
let optionsWidths = this.displayedOptions.map((x) => x.shadowRoot.querySelector(".option-text").clientWidth);
|
|
497
|
-
let optionsTotalWidth = optionsWidths.reduce((acc, x) => acc + x, 0);
|
|
498
200
|
this.overflowCount = 0;
|
|
201
|
+
this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
|
|
202
|
+
let optionsTotalWidth = this.measurementAreaEl.clientWidth;
|
|
499
203
|
while (optionsTotalWidth > availableSpace && this.displayedOptions.length > 1) {
|
|
500
204
|
this.overflowCount++;
|
|
501
|
-
optionsTotalWidth -= optionsWidths[optionsWidths.length - 1];
|
|
502
|
-
optionsWidths.pop();
|
|
503
205
|
this.displayedOptions.pop();
|
|
206
|
+
this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
|
|
207
|
+
optionsTotalWidth = this.measurementAreaEl.clientWidth;
|
|
504
208
|
}
|
|
505
209
|
}
|
|
506
210
|
}
|
|
@@ -527,21 +231,6 @@ export class Select {
|
|
|
527
231
|
return (h("span", null, h("span", { class: "overflow-counter" }, "+", this.overflowCount)));
|
|
528
232
|
}
|
|
529
233
|
}
|
|
530
|
-
renderSearchField() {
|
|
531
|
-
return (h("div", { class: "search" }, h("div", { class: "searchfield-wrapper", ref: (el) => (this.searchFieldWrapperEl = el) }, h("div", { class: "icon" }), h("input", { ref: (el) => (this.searchFieldEl = el), class: "searchfield", role: "combobox", "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", onKeyDown: (ev) => this.handleKeyDown(ev), onFocus: () => this.searchFieldWrapperEl.classList.add("focus"), onBlur: (ev) => this.handleSearchFieldBlur(ev), onInput: () => this.debouncedSearch(), placeholder: this.searchPlaceholder }))));
|
|
532
|
-
}
|
|
533
|
-
renderSearchFailedMessage() {
|
|
534
|
-
return h("div", { class: "search-results-message" }, this.noResultsFoundMessage);
|
|
535
|
-
}
|
|
536
|
-
renderSelectAllButton() {
|
|
537
|
-
return (h("button", { ref: (el) => (this.selectAllEl = el), class: "select-all", onClick: () => this.handleSelectAllClick(), onKeyDown: (ev) => this.handleKeyDown(ev), tabindex: "-1" }, this.allSelected ? this.deselectAllMessage : this.selectAllMessage));
|
|
538
|
-
}
|
|
539
|
-
renderCloneOptions() {
|
|
540
|
-
return Array.from(this.el.children).map((o) => {
|
|
541
|
-
const option = o;
|
|
542
|
-
return (h("wm-option", { class: "clone", subinfo: option.subinfo, selected: option.selected }, option.textContent));
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
234
|
render() {
|
|
546
235
|
const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
|
|
547
236
|
const buttonProps = {
|
|
@@ -555,7 +244,7 @@ export class Select {
|
|
|
555
244
|
};
|
|
556
245
|
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
557
246
|
// we can't use aria-required or required attributes because it's invalid on the elements we're using (button controlling a listbox)
|
|
558
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev), onFocus: () => this.close() }), h("span", { class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount()), h("div", { class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) },
|
|
247
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev), onFocus: () => this.close() }), h("span", { class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount(), h("div", { ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("priv-option-list", { ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => this.close(), onOptionListAllSelected: () => this.wmSelectAllSelected.emit(), onOptionListAllDeselected: () => this.wmSelectAllDeselected.emit() }, h("slot", null))), h("div", { id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
559
248
|
}
|
|
560
249
|
static get is() { return "wm-select"; }
|
|
561
250
|
static get encapsulation() { return "shadow"; }
|
|
@@ -824,26 +513,6 @@ export class Select {
|
|
|
824
513
|
"resolved": "void",
|
|
825
514
|
"references": {}
|
|
826
515
|
}
|
|
827
|
-
}, {
|
|
828
|
-
"method": "wmSelectSearchChanged",
|
|
829
|
-
"name": "wmSelectSearchChanged",
|
|
830
|
-
"bubbles": true,
|
|
831
|
-
"cancelable": true,
|
|
832
|
-
"composed": true,
|
|
833
|
-
"docs": {
|
|
834
|
-
"tags": [],
|
|
835
|
-
"text": ""
|
|
836
|
-
},
|
|
837
|
-
"complexType": {
|
|
838
|
-
"original": "Object",
|
|
839
|
-
"resolved": "Object",
|
|
840
|
-
"references": {
|
|
841
|
-
"Object": {
|
|
842
|
-
"location": "global",
|
|
843
|
-
"id": "global::Object"
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
516
|
}, {
|
|
848
517
|
"method": "wmSelectAllSelected",
|
|
849
518
|
"name": "wmSelectAllSelected",
|
|
@@ -893,42 +562,12 @@ export class Select {
|
|
|
893
562
|
"target": undefined,
|
|
894
563
|
"capture": false,
|
|
895
564
|
"passive": false
|
|
896
|
-
}, {
|
|
897
|
-
"name": "intCloneClicked",
|
|
898
|
-
"method": "handleOptionCloneSelection",
|
|
899
|
-
"target": undefined,
|
|
900
|
-
"capture": false,
|
|
901
|
-
"passive": false
|
|
902
565
|
}, {
|
|
903
566
|
"name": "wmEnterKeyPressed",
|
|
904
567
|
"method": "handleChildEnter",
|
|
905
568
|
"target": undefined,
|
|
906
569
|
"capture": false,
|
|
907
570
|
"passive": false
|
|
908
|
-
}, {
|
|
909
|
-
"name": "wmKeyUpPressed",
|
|
910
|
-
"method": "handleChildUp",
|
|
911
|
-
"target": undefined,
|
|
912
|
-
"capture": false,
|
|
913
|
-
"passive": false
|
|
914
|
-
}, {
|
|
915
|
-
"name": "wmKeyDownPressed",
|
|
916
|
-
"method": "handleChildDown",
|
|
917
|
-
"target": undefined,
|
|
918
|
-
"capture": false,
|
|
919
|
-
"passive": false
|
|
920
|
-
}, {
|
|
921
|
-
"name": "wmHomeKeyPressed",
|
|
922
|
-
"method": "moveToFirstOption",
|
|
923
|
-
"target": undefined,
|
|
924
|
-
"capture": false,
|
|
925
|
-
"passive": false
|
|
926
|
-
}, {
|
|
927
|
-
"name": "wmEndKeyPressed",
|
|
928
|
-
"method": "moveToLastOption",
|
|
929
|
-
"target": undefined,
|
|
930
|
-
"capture": false,
|
|
931
|
-
"passive": false
|
|
932
571
|
}, {
|
|
933
572
|
"name": "wmEscKeyPressed",
|
|
934
573
|
"method": "closePopupOnEscape",
|
|
@@ -953,12 +592,6 @@ export class Select {
|
|
|
953
592
|
"target": undefined,
|
|
954
593
|
"capture": false,
|
|
955
594
|
"passive": false
|
|
956
|
-
}, {
|
|
957
|
-
"name": "wmLetterPressed",
|
|
958
|
-
"method": "findAndFocusOption",
|
|
959
|
-
"target": undefined,
|
|
960
|
-
"capture": false,
|
|
961
|
-
"passive": false
|
|
962
595
|
}];
|
|
963
596
|
}
|
|
964
597
|
}
|