@watermarkinsights/ripple 5.6.0 → 5.7.0-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.
Files changed (212) hide show
  1. package/dist/cjs/{chartFunctions-6fd43417.js → chartFunctions-995023b1.js} +1 -1
  2. package/dist/cjs/{functions-04149f6d.js → functions-e24249e6.js} +6 -0
  3. package/dist/cjs/{global-4a315ae6.js → global-b4e48f66.js} +1 -1
  4. package/dist/cjs/index-e86c28b6.js +12 -0
  5. package/dist/cjs/{intl-b1e99809.js → intl-5aeba788.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/priv-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
  9. package/dist/cjs/priv-option-list.cjs.entry.js +410 -0
  10. package/dist/cjs/ripple.cjs.js +2 -2
  11. package/dist/cjs/wm-action-menu_2.cjs.entry.js +1 -1
  12. package/dist/cjs/wm-button.cjs.entry.js +1 -1
  13. package/dist/cjs/wm-chart.cjs.entry.js +3 -3
  14. package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
  15. package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
  16. package/dist/cjs/wm-file.cjs.entry.js +1 -1
  17. package/dist/cjs/wm-input.cjs.entry.js +2 -2
  18. package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
  19. package/dist/cjs/wm-modal-header.cjs.entry.js +2 -2
  20. package/dist/cjs/wm-modal.cjs.entry.js +2 -2
  21. package/dist/cjs/wm-navigation_3.cjs.entry.js +2 -2
  22. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  23. package/dist/cjs/wm-nested-select.cjs.entry.js +306 -0
  24. package/dist/cjs/wm-optgroup.cjs.entry.js +58 -0
  25. package/dist/cjs/wm-option_2.cjs.entry.js +38 -343
  26. package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
  27. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
  28. package/dist/cjs/wm-search.cjs.entry.js +2 -2
  29. package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
  30. package/dist/cjs/wm-tab-item_3.cjs.entry.js +1 -1
  31. package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
  32. package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
  33. package/dist/cjs/wm-textarea.cjs.entry.js +2 -2
  34. package/dist/cjs/wm-timepicker.cjs.entry.js +1 -1
  35. package/dist/cjs/wm-toggletip.cjs.entry.js +1 -1
  36. package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
  37. package/dist/collection/collection-manifest.json +5 -2
  38. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +131 -0
  39. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +785 -0
  40. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +390 -0
  41. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +586 -0
  42. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +51 -0
  43. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +208 -0
  44. package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.css +1 -1
  45. package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.js +30 -9
  46. package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.css +5 -72
  47. package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.js +20 -387
  48. package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.spec.js +61 -61
  49. package/dist/collection/components/wm-modal/wm-modal.js +1 -1
  50. package/dist/collection/dev/nested-select.js +36 -0
  51. package/dist/collection/global/functions.js +5 -0
  52. package/dist/esm/{chartFunctions-f5eb7f59.js → chartFunctions-dfcb1edf.js} +1 -1
  53. package/dist/esm/{functions-cf37f81f.js → functions-b791a892.js} +6 -1
  54. package/dist/esm/{global-016b76a8.js → global-8a4502dd.js} +1 -1
  55. package/dist/esm/index-558b5a82.js +12 -0
  56. package/dist/esm/{intl-c72b75dc.js → intl-f2f7ce8b.js} +1 -1
  57. package/dist/esm/loader.js +2 -2
  58. package/dist/esm/priv-calendar.entry.js +1 -1
  59. package/dist/esm/priv-chart-popover.entry.js +1 -1
  60. package/dist/esm/priv-option-list.entry.js +406 -0
  61. package/dist/esm/ripple.js +2 -2
  62. package/dist/esm/wm-action-menu_2.entry.js +1 -1
  63. package/dist/esm/wm-button.entry.js +1 -1
  64. package/dist/esm/wm-chart.entry.js +3 -3
  65. package/dist/esm/wm-date-range.entry.js +1 -1
  66. package/dist/esm/wm-datepicker.entry.js +1 -1
  67. package/dist/esm/wm-file.entry.js +1 -1
  68. package/dist/esm/wm-input.entry.js +2 -2
  69. package/dist/esm/wm-line-chart.entry.js +3 -3
  70. package/dist/esm/wm-modal-header.entry.js +2 -2
  71. package/dist/esm/wm-modal.entry.js +2 -2
  72. package/dist/esm/wm-navigation_3.entry.js +2 -2
  73. package/dist/esm/wm-navigator.entry.js +1 -1
  74. package/dist/esm/wm-nested-select.entry.js +302 -0
  75. package/dist/esm/wm-optgroup.entry.js +54 -0
  76. package/dist/esm/wm-option_2.entry.js +38 -343
  77. package/dist/esm/wm-pagination.entry.js +1 -1
  78. package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
  79. package/dist/esm/wm-search.entry.js +2 -2
  80. package/dist/esm/wm-snackbar.entry.js +2 -2
  81. package/dist/esm/wm-tab-item_3.entry.js +1 -1
  82. package/dist/esm/wm-tag-input.entry.js +2 -2
  83. package/dist/esm/wm-tag-option.entry.js +1 -1
  84. package/dist/esm/wm-textarea.entry.js +2 -2
  85. package/dist/esm/wm-timepicker.entry.js +1 -1
  86. package/dist/esm/wm-toggletip.entry.js +1 -1
  87. package/dist/esm/wm-uploader.entry.js +2 -2
  88. package/dist/esm-es5/{chartFunctions-f5eb7f59.js → chartFunctions-dfcb1edf.js} +1 -1
  89. package/dist/esm-es5/{functions-cf37f81f.js → functions-b791a892.js} +1 -1
  90. package/dist/esm-es5/global-8a4502dd.js +1 -0
  91. package/dist/esm-es5/index-558b5a82.js +1 -1
  92. package/dist/esm-es5/{intl-c72b75dc.js → intl-f2f7ce8b.js} +1 -1
  93. package/dist/esm-es5/loader.js +1 -1
  94. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  95. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  96. package/dist/esm-es5/priv-option-list.entry.js +1 -0
  97. package/dist/esm-es5/ripple.js +1 -1
  98. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  99. package/dist/esm-es5/wm-button.entry.js +1 -1
  100. package/dist/esm-es5/wm-chart.entry.js +1 -1
  101. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  102. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  103. package/dist/esm-es5/wm-file.entry.js +1 -1
  104. package/dist/esm-es5/wm-input.entry.js +1 -1
  105. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  106. package/dist/esm-es5/wm-modal-header.entry.js +1 -1
  107. package/dist/esm-es5/wm-modal.entry.js +1 -1
  108. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  109. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  110. package/dist/esm-es5/wm-nested-select.entry.js +1 -0
  111. package/dist/esm-es5/wm-optgroup.entry.js +1 -0
  112. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  113. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  114. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  115. package/dist/esm-es5/wm-search.entry.js +1 -1
  116. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  117. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  118. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  119. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  120. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  121. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  122. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  123. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  124. package/dist/ripple/p-01addccd.entry.js +1 -0
  125. package/dist/ripple/p-01e29a2a.system.js +1 -0
  126. package/dist/ripple/{p-2d0e4020.system.entry.js → p-0b1c6965.system.entry.js} +1 -1
  127. package/dist/ripple/p-0c259c1a.system.entry.js +1 -0
  128. package/dist/ripple/{p-2ccf8450.system.entry.js → p-1389302e.system.entry.js} +1 -1
  129. package/dist/ripple/{p-20a800a7.entry.js → p-13f51c06.entry.js} +1 -1
  130. package/dist/ripple/{p-f4b64ded.entry.js → p-149a22bf.entry.js} +1 -1
  131. package/dist/ripple/{p-76825602.js → p-16f65bf4.js} +1 -1
  132. package/dist/ripple/p-1796b85d.entry.js +1 -0
  133. package/dist/ripple/p-1c170fb3.entry.js +1 -0
  134. package/dist/ripple/{p-3ea0e27c.entry.js → p-1e625a5e.entry.js} +1 -1
  135. package/dist/ripple/{p-31094930.entry.js → p-215793a4.entry.js} +1 -1
  136. package/dist/ripple/{p-fb229776.js → p-21d372ed.js} +1 -1
  137. package/dist/ripple/{p-24103be5.entry.js → p-236af552.entry.js} +1 -1
  138. package/dist/ripple/{p-f177d841.entry.js → p-2e79fa49.entry.js} +1 -1
  139. package/dist/ripple/{p-ed1971ff.system.entry.js → p-30b905eb.system.entry.js} +1 -1
  140. package/dist/ripple/p-3d02b293.system.entry.js +1 -0
  141. package/dist/ripple/{p-86d81e42.entry.js → p-3d50db36.entry.js} +1 -1
  142. package/dist/ripple/{p-53519eed.system.entry.js → p-3deaf4d9.system.entry.js} +1 -1
  143. package/dist/ripple/{p-5f793375.system.entry.js → p-3e415c49.system.entry.js} +1 -1
  144. package/dist/ripple/{p-0b570b66.entry.js → p-41550baa.entry.js} +1 -1
  145. package/dist/ripple/p-45dc49e8.entry.js +1 -0
  146. package/dist/ripple/{p-508362c5.entry.js → p-45f9ad09.entry.js} +1 -1
  147. package/dist/ripple/p-50388b6f.system.entry.js +1 -0
  148. package/dist/ripple/{p-dc7a6037.system.entry.js → p-505eca1c.system.entry.js} +1 -1
  149. package/dist/ripple/{p-762429a8.entry.js → p-5284791c.entry.js} +1 -1
  150. package/dist/ripple/{p-0d05b4a9.entry.js → p-5300b15d.entry.js} +1 -1
  151. package/dist/ripple/p-54f7d3d4.system.entry.js +1 -0
  152. package/dist/ripple/{p-5db92638.system.entry.js → p-5a9e3108.system.entry.js} +1 -1
  153. package/dist/ripple/{p-2d0bcc88.system.entry.js → p-6cc07645.system.entry.js} +1 -1
  154. package/dist/ripple/{p-cd51ee87.system.entry.js → p-6d129ef8.system.entry.js} +1 -1
  155. package/dist/ripple/{p-451433a6.entry.js → p-72165bd2.entry.js} +1 -1
  156. package/dist/ripple/{p-5967bd2a.system.entry.js → p-725230dd.system.entry.js} +1 -1
  157. package/dist/ripple/{p-984287f7.system.entry.js → p-749597da.system.entry.js} +1 -1
  158. package/dist/ripple/{p-fb751343.system.js → p-81c2df85.system.js} +1 -1
  159. package/dist/ripple/{p-74032162.system.js → p-828adbf1.system.js} +1 -1
  160. package/dist/ripple/{p-db8917e4.entry.js → p-83be63f6.entry.js} +1 -1
  161. package/dist/ripple/{p-ce8c6180.system.entry.js → p-84603f1f.system.entry.js} +1 -1
  162. package/dist/ripple/{p-d0387d35.entry.js → p-84ba5b74.entry.js} +1 -1
  163. package/dist/ripple/p-947f8f0d.system.entry.js +1 -0
  164. package/dist/ripple/p-99058787.entry.js +1 -0
  165. package/dist/ripple/{p-9df3574d.system.entry.js → p-a0ecb6d7.system.entry.js} +1 -1
  166. package/dist/ripple/{p-7fdcce90.system.entry.js → p-a3c01e10.system.entry.js} +1 -1
  167. package/dist/ripple/p-ae82b3d2.system.js +1 -0
  168. package/dist/ripple/{p-c61366fd.entry.js → p-aea13873.entry.js} +1 -1
  169. package/dist/ripple/{p-120dbdc8.system.entry.js → p-b01f9998.system.entry.js} +1 -1
  170. package/dist/ripple/{p-bd142645.entry.js → p-b9dbf1f4.entry.js} +1 -1
  171. package/dist/ripple/{p-04f9a60a.entry.js → p-c1e3c2fb.entry.js} +1 -1
  172. package/dist/ripple/{p-8b272d80.system.entry.js → p-c2e00d4a.system.entry.js} +1 -1
  173. package/dist/ripple/{p-76d53189.entry.js → p-c47fab48.entry.js} +1 -1
  174. package/dist/ripple/{p-ffa15c47.system.entry.js → p-c853e185.system.entry.js} +1 -1
  175. package/dist/ripple/{p-c9200deb.system.entry.js → p-ca971eac.system.entry.js} +1 -1
  176. package/dist/ripple/{p-8008f0f2.system.entry.js → p-cad0c5f9.system.entry.js} +1 -1
  177. package/dist/ripple/{p-446e0b2c.system.entry.js → p-db9657eb.system.entry.js} +1 -1
  178. package/dist/ripple/p-db9f8841.system.js +1 -0
  179. package/dist/ripple/p-de8f5e92.js +1 -0
  180. package/dist/ripple/{p-e3899e1f.entry.js → p-df157138.entry.js} +1 -1
  181. package/dist/ripple/{p-ae4460f2.system.entry.js → p-e081fdc2.system.entry.js} +1 -1
  182. package/dist/ripple/{p-dfd1b720.entry.js → p-e687176d.entry.js} +1 -1
  183. package/dist/ripple/{p-d8994408.system.entry.js → p-ed1f6b8d.system.entry.js} +1 -1
  184. package/dist/ripple/{p-db190563.js → p-eddbcb21.js} +1 -1
  185. package/dist/ripple/{p-8a11ee6f.entry.js → p-f2101a0d.entry.js} +1 -1
  186. package/dist/ripple/{p-1aef4b40.entry.js → p-f24572f5.entry.js} +1 -1
  187. package/dist/ripple/{p-97f276aa.system.entry.js → p-f40e1468.system.entry.js} +1 -1
  188. package/dist/ripple/{p-6f4c4231.entry.js → p-f90e4094.entry.js} +1 -1
  189. package/dist/ripple/{p-7f483c55.system.entry.js → p-fa4f1030.system.entry.js} +1 -1
  190. package/dist/ripple/{p-9b75d56c.entry.js → p-ff1ed90f.entry.js} +1 -1
  191. package/dist/ripple/ripple.esm.js +1 -1
  192. package/dist/ripple/ripple.js +1 -1
  193. package/dist/types/components/{wm-select/wm-select.d.ts → selects/priv-option-list/priv-option-list.d.ts} +42 -65
  194. package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +58 -0
  195. package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +17 -0
  196. package/dist/types/components/{wm-option → selects/wm-option}/wm-option.d.ts +3 -2
  197. package/dist/types/components/selects/wm-select/wm-select.d.ts +54 -0
  198. package/dist/types/components.d.ts +154 -2
  199. package/dist/types/global/functions.d.ts +1 -0
  200. package/package.json +1 -1
  201. package/dist/esm-es5/global-016b76a8.js +0 -1
  202. package/dist/ripple/p-11aaef56.system.entry.js +0 -1
  203. package/dist/ripple/p-481a9e2f.system.js +0 -1
  204. package/dist/ripple/p-55668879.system.js +0 -1
  205. package/dist/ripple/p-6636a40b.system.entry.js +0 -1
  206. package/dist/ripple/p-9603168d.entry.js +0 -1
  207. package/dist/ripple/p-a40b0af9.system.js +0 -1
  208. package/dist/ripple/p-a895f1ef.entry.js +0 -1
  209. package/dist/ripple/p-f9494a9d.js +0 -1
  210. /package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.e2e.js +0 -0
  211. /package/dist/collection/components/{wm-option → selects/wm-option}/wm-option.spec.js +0 -0
  212. /package/dist/collection/components/{wm-select → selects/wm-select}/wm-select.e2e.js +0 -0
@@ -0,0 +1,208 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class Optgroup {
3
+ constructor() {
4
+ this.label = undefined;
5
+ this.isExpanded = false;
6
+ this.multiple = false;
7
+ }
8
+ get parentNestedSelect() {
9
+ return this.el.parentElement;
10
+ }
11
+ isExpandedChanged() {
12
+ if (this.isExpanded) {
13
+ this.el.classList.add("visible");
14
+ this.optgroupExpanded.emit();
15
+ window.setTimeout(() => {
16
+ // wait for slide in animation to complete before assigning focus
17
+ this.optionListEl.handleInitialFocus();
18
+ }, 250);
19
+ }
20
+ else {
21
+ this.optgroupHidden.emit(this.label);
22
+ this.optionListEl.clearSearch();
23
+ window.setTimeout(() => {
24
+ // wait for slide out animation to complete before hiding
25
+ this.el.classList.remove("visible");
26
+ }, 250);
27
+ }
28
+ }
29
+ async emitDeselection() {
30
+ this.wmOptgroupAllDeselected.emit();
31
+ }
32
+ handleOptionKeyLeft() {
33
+ this.isExpanded = false;
34
+ }
35
+ render() {
36
+ return (h(Host, null, h("div", { class: `list-wrapper` }, h("priv-option-list", { ref: (el) => (this.optionListEl = el), multiple: this.parentNestedSelect.multiple, search: this.parentNestedSelect.search, searchPlaceholder: this.parentNestedSelect.searchPlaceholder, optgroupLabel: this.label, selectAll: this.parentNestedSelect.selectAll, onOptionListAllSelected: () => this.wmOptgroupAllSelected.emit(), onOptionListAllDeselected: () => this.wmOptgroupAllDeselected.emit() }, h("slot", null)))));
37
+ }
38
+ static get is() { return "wm-optgroup"; }
39
+ static get encapsulation() { return "shadow"; }
40
+ static get delegatesFocus() { return true; }
41
+ static get originalStyleUrls() {
42
+ return {
43
+ "$": ["wm-optgroup.scss"]
44
+ };
45
+ }
46
+ static get styleUrls() {
47
+ return {
48
+ "$": ["wm-optgroup.css"]
49
+ };
50
+ }
51
+ static get properties() {
52
+ return {
53
+ "label": {
54
+ "type": "string",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "string",
58
+ "resolved": "string",
59
+ "references": {}
60
+ },
61
+ "required": true,
62
+ "optional": false,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": ""
66
+ },
67
+ "attribute": "label",
68
+ "reflect": false
69
+ },
70
+ "isExpanded": {
71
+ "type": "boolean",
72
+ "mutable": true,
73
+ "complexType": {
74
+ "original": "boolean",
75
+ "resolved": "boolean",
76
+ "references": {}
77
+ },
78
+ "required": false,
79
+ "optional": false,
80
+ "docs": {
81
+ "tags": [],
82
+ "text": ""
83
+ },
84
+ "attribute": "is-expanded",
85
+ "reflect": false,
86
+ "defaultValue": "false"
87
+ },
88
+ "multiple": {
89
+ "type": "boolean",
90
+ "mutable": true,
91
+ "complexType": {
92
+ "original": "boolean",
93
+ "resolved": "boolean",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ },
102
+ "attribute": "multiple",
103
+ "reflect": false,
104
+ "defaultValue": "false"
105
+ }
106
+ };
107
+ }
108
+ static get events() {
109
+ return [{
110
+ "method": "wmOptgroupAllSelected",
111
+ "name": "wmOptgroupAllSelected",
112
+ "bubbles": true,
113
+ "cancelable": true,
114
+ "composed": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "complexType": {
120
+ "original": "any",
121
+ "resolved": "any",
122
+ "references": {}
123
+ }
124
+ }, {
125
+ "method": "wmOptgroupAllDeselected",
126
+ "name": "wmOptgroupAllDeselected",
127
+ "bubbles": true,
128
+ "cancelable": true,
129
+ "composed": true,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": ""
133
+ },
134
+ "complexType": {
135
+ "original": "any",
136
+ "resolved": "any",
137
+ "references": {}
138
+ }
139
+ }, {
140
+ "method": "optgroupExpanded",
141
+ "name": "optgroupExpanded",
142
+ "bubbles": true,
143
+ "cancelable": true,
144
+ "composed": true,
145
+ "docs": {
146
+ "tags": [],
147
+ "text": ""
148
+ },
149
+ "complexType": {
150
+ "original": "any",
151
+ "resolved": "any",
152
+ "references": {}
153
+ }
154
+ }, {
155
+ "method": "optgroupHidden",
156
+ "name": "optgroupHidden",
157
+ "bubbles": true,
158
+ "cancelable": true,
159
+ "composed": true,
160
+ "docs": {
161
+ "tags": [],
162
+ "text": ""
163
+ },
164
+ "complexType": {
165
+ "original": "any",
166
+ "resolved": "any",
167
+ "references": {}
168
+ }
169
+ }];
170
+ }
171
+ static get methods() {
172
+ return {
173
+ "emitDeselection": {
174
+ "complexType": {
175
+ "signature": "() => Promise<void>",
176
+ "parameters": [],
177
+ "references": {
178
+ "Promise": {
179
+ "location": "global",
180
+ "id": "global::Promise"
181
+ }
182
+ },
183
+ "return": "Promise<void>"
184
+ },
185
+ "docs": {
186
+ "text": "",
187
+ "tags": []
188
+ }
189
+ }
190
+ };
191
+ }
192
+ static get elementRef() { return "el"; }
193
+ static get watchers() {
194
+ return [{
195
+ "propName": "isExpanded",
196
+ "methodName": "isExpandedChanged"
197
+ }];
198
+ }
199
+ static get listeners() {
200
+ return [{
201
+ "name": "wmKeyLeftPressed",
202
+ "method": "handleOptionKeyLeft",
203
+ "target": undefined,
204
+ "capture": false,
205
+ "passive": false
206
+ }];
207
+ }
208
+ }
@@ -153,7 +153,7 @@
153
153
 
154
154
  :host(:focus) {
155
155
  outline: none;
156
- background: var(--wmcolor-select-option-background-hover);
156
+ background: var(--wmcolor-select-option-background-focus);
157
157
  }
158
158
 
159
159
  :host(:hover) {
@@ -13,7 +13,7 @@ export class Option {
13
13
  if (this.subinfo) {
14
14
  classes.push("hassubinfo");
15
15
  }
16
- if (this.parentSelectEl.multiple) {
16
+ if (this.parentOptionList.multiple) {
17
17
  classes.push("multi-option");
18
18
  }
19
19
  if (!this.el.textContent.toLowerCase().includes(this.searchTerm)) {
@@ -21,11 +21,13 @@ export class Option {
21
21
  }
22
22
  return classes.join(" ");
23
23
  }
24
- get parentSelectEl() {
25
- var _a;
26
- return ((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.nodeName) !== "WM-SELECT"
27
- ? this.el.getRootNode().host
28
- : this.el.parentElement;
24
+ get parentOptionList() {
25
+ if (this.el.classList.contains("clone")) {
26
+ return this.el.closest("priv-option-list");
27
+ }
28
+ else {
29
+ return this.el.assignedSlot.closest("priv-option-list");
30
+ }
29
31
  }
30
32
  handleKeydown(ev) {
31
33
  switch (ev.key) {
@@ -57,6 +59,10 @@ export class Option {
57
59
  ev.preventDefault();
58
60
  this.wmEndKeyPressed.emit();
59
61
  break;
62
+ case "ArrowLeft":
63
+ ev.preventDefault();
64
+ this.wmKeyLeftPressed.emit();
65
+ break;
60
66
  default:
61
67
  if (ev.key.length === 1) {
62
68
  ev.preventDefault();
@@ -72,7 +78,7 @@ export class Option {
72
78
  this.intCloneClicked.emit(this.el); // used to then emit wmOptionSelected from the "real" wm-option
73
79
  }
74
80
  else {
75
- if (this.parentSelectEl.multiple) {
81
+ if (this.parentOptionList.multiple) {
76
82
  this.selected
77
83
  ? this.wmOptionDeselected.emit(this.el)
78
84
  : this.wmOptionSelected.emit(this.el);
@@ -134,10 +140,10 @@ export class Option {
134
140
  this.syncAriaSelected();
135
141
  this.syncAriaDisabled();
136
142
  this.updateDisabledOnClick();
137
- this.parentSelectEl.addEventListener("wmSelectSearchChanged", (ev) => this.handleSearch(ev));
143
+ this.parentOptionList.addEventListener("optionListSearchChanged", (ev) => this.handleSearch(ev));
138
144
  }
139
145
  render() {
140
- return (h(Host, { role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { class: `option-wrapper ${this.parentSelectEl.multiple ? "checkbox" : ""}` }, h("span", { class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { class: "sr-only" }, this.el.textContent)), h("div", { class: "subinfo" }, this.subinfo)));
146
+ return (h(Host, { role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, h("span", { class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { class: "sr-only" }, this.el.textContent)), h("div", { class: "subinfo" }, this.subinfo)));
141
147
  }
142
148
  static get is() { return "wm-option"; }
143
149
  static get encapsulation() { return "shadow"; }
@@ -350,6 +356,21 @@ export class Option {
350
356
  }
351
357
  }
352
358
  }
359
+ }, {
360
+ "method": "wmKeyLeftPressed",
361
+ "name": "wmKeyLeftPressed",
362
+ "bubbles": true,
363
+ "cancelable": true,
364
+ "composed": true,
365
+ "docs": {
366
+ "tags": [],
367
+ "text": ""
368
+ },
369
+ "complexType": {
370
+ "original": "any",
371
+ "resolved": "any",
372
+ "references": {}
373
+ }
353
374
  }, {
354
375
  "method": "wmEscKeyPressed",
355
376
  "name": "wmEscKeyPressed",
@@ -302,78 +302,11 @@
302
302
  overflow: auto;
303
303
  }
304
304
 
305
- .select-all {
306
- width: 100%;
307
- cursor: pointer;
308
- padding: 1.25rem;
309
- border: none;
310
- margin: 0;
311
- border-bottom: 2px solid;
312
- border-color: var(--wmcolor-select-selectall-border);
313
- background: var(--wmcolor-select-selectall-background);
314
- font-family: inherit;
315
- font-size: inherit;
316
- text-align: left;
317
- text-align: start;
318
- font-weight: 500;
319
- color: var(--wmcolor-select-selectall-text);
320
- user-select: none;
321
- }
322
- .select-all:hover, .select-all:focus {
323
- outline: none;
324
- background: #f4f4f4;
325
- }
326
-
327
- .search {
328
- box-sizing: border-box;
329
- border-bottom: 2px solid;
330
- border-color: var(--wmcolor-select-option-border);
331
- padding: 1.25rem;
332
- }
333
- .search .searchfield-wrapper {
334
- box-sizing: border-box;
335
- display: flex;
336
- align-items: center;
337
- height: 2.75rem;
338
- width: 100%;
339
- padding: 0 0.75rem;
340
- -webkit-border-radius: 3px;
341
- -moz-border-radius: 3px;
342
- -ms-border-radius: 3px;
343
- border-radius: 3px;
344
- border: 1px solid;
345
- border-color: var(--wmcolor-select-search-border);
346
- }
347
- .search .searchfield-wrapper:focus, .search .searchfield-wrapper.focus {
348
- outline: 2px solid var(--wmcolor-input-border-focus);
349
- border-color: var(--wmcolor-input-border-focus);
350
- }
351
- .search .searchfield {
352
- width: 100%;
353
- border: none;
354
- outline: none;
355
- font-family: inherit;
356
- font-size: 0.875rem;
357
- margin-left: 0.25rem;
358
- }
359
- .search .icon:before {
360
- display: inline-block;
361
- font: normal normal normal 24px/1 "Material Design Icons";
362
- font-size: inherit;
363
- text-rendering: auto;
364
- line-height: inherit;
365
- -webkit-font-smoothing: antialiased;
366
- -moz-osx-font-smoothing: grayscale;
367
- content: "\f349";
368
- color: var(--wmcolor-select-search-icon);
369
- font-size: 1.12rem;
370
- }
371
-
372
- .search-results-message {
373
- padding: 1.25rem;
374
- color: var(--wmcolor-select-searchresults-text);
375
- font-size: 0.875rem;
376
- font-style: italic;
305
+ .measurement-area {
306
+ position: absolute;
307
+ visibility: hidden;
308
+ height: 0px;
309
+ pointer-events: none;
377
310
  }
378
311
 
379
312
  .rtl > .dropdown {