@watermarkinsights/ripple 5.12.0-9 → 5.14.0-alpha.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 (430) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{esm/chartFunctions-1478f4db.js → components/chartFunctions.js} +31 -11
  3. package/dist/components/functions.js +17465 -0
  4. package/dist/components/index.d.ts +33 -0
  5. package/dist/{collection/global/global.js → components/index.js} +52 -2
  6. package/dist/{collection/global → components}/interfaces.js +6 -4
  7. package/dist/{esm/intl-6426ba51.js → components/intl.js} +104 -2
  8. package/dist/components/priv-calendar.d.ts +11 -0
  9. package/dist/components/priv-calendar.js +6 -0
  10. package/dist/{esm/priv-calendar.entry.js → components/priv-calendar2.js} +38 -16
  11. package/dist/components/priv-chart-popover.d.ts +11 -0
  12. package/dist/components/priv-chart-popover.js +6 -0
  13. package/dist/{esm/priv-chart-popover.entry.js → components/priv-chart-popover2.js} +30 -12
  14. package/dist/components/priv-navigator-button.d.ts +11 -0
  15. package/dist/components/priv-navigator-button.js +6 -0
  16. package/dist/{esm/priv-navigator-button.entry.js → components/priv-navigator-button2.js} +26 -9
  17. package/dist/components/priv-navigator-item.d.ts +11 -0
  18. package/dist/components/priv-navigator-item.js +6 -0
  19. package/dist/{esm/priv-navigator-item.entry.js → components/priv-navigator-item2.js} +27 -9
  20. package/dist/components/priv-option-list.d.ts +11 -0
  21. package/dist/components/priv-option-list.js +6 -0
  22. package/dist/{esm/priv-option-list.entry.js → components/priv-option-list2.js} +63 -68
  23. package/dist/components/wm-action-menu.d.ts +11 -0
  24. package/dist/components/wm-action-menu.js +6 -0
  25. package/dist/{cjs/wm-pagination.cjs.entry.js → components/wm-action-menu2.js} +216 -161
  26. package/dist/components/wm-button.d.ts +11 -0
  27. package/dist/components/wm-button.js +6 -0
  28. package/dist/{esm/wm-button.entry.js → components/wm-button2.js} +48 -20
  29. package/dist/components/wm-chart-slice.d.ts +11 -0
  30. package/dist/components/wm-chart-slice.js +41 -0
  31. package/dist/components/wm-chart.d.ts +11 -0
  32. package/dist/{esm/wm-chart.entry.js → components/wm-chart.js} +70 -25
  33. package/dist/components/wm-date-range.d.ts +11 -0
  34. package/dist/{esm/wm-date-range.entry.js → components/wm-date-range.js} +79 -26
  35. package/dist/components/wm-datepicker.d.ts +11 -0
  36. package/dist/{esm/wm-datepicker.entry.js → components/wm-datepicker.js} +53 -16
  37. package/dist/components/wm-file-list.d.ts +11 -0
  38. package/dist/{esm/wm-file-list.entry.js → components/wm-file-list.js} +28 -9
  39. package/dist/components/wm-file.d.ts +11 -0
  40. package/dist/{esm/wm-file.entry.js → components/wm-file.js} +58 -20
  41. package/dist/components/wm-input.d.ts +11 -0
  42. package/dist/{esm/wm-input.entry.js → components/wm-input.js} +53 -22
  43. package/dist/components/wm-line-chart.d.ts +11 -0
  44. package/dist/{esm/wm-line-chart.entry.js → components/wm-line-chart.js} +77 -36
  45. package/dist/components/wm-menuitem.d.ts +11 -0
  46. package/dist/components/wm-menuitem.js +6 -0
  47. package/dist/{cjs/wm-optgroup.cjs.entry.js → components/wm-menuitem2.js} +130 -58
  48. package/dist/components/wm-modal-footer.d.ts +11 -0
  49. package/dist/components/wm-modal-footer.js +73 -0
  50. package/dist/components/wm-modal-header.d.ts +11 -0
  51. package/dist/components/wm-modal-header.js +61 -0
  52. package/dist/components/wm-modal-pss-footer.d.ts +11 -0
  53. package/dist/{cjs/priv-chart-popover.cjs.entry.js → components/wm-modal-pss-footer.js} +58 -129
  54. package/dist/components/wm-modal-pss-header.d.ts +11 -0
  55. package/dist/components/wm-modal-pss-header.js +64 -0
  56. package/dist/components/wm-modal-pss.d.ts +11 -0
  57. package/dist/{cjs/wm-textarea.cjs.entry.js → components/wm-modal-pss.js} +141 -67
  58. package/dist/components/wm-modal.d.ts +11 -0
  59. package/dist/{cjs/wm-input.cjs.entry.js → components/wm-modal.js} +140 -104
  60. package/dist/components/wm-navigation-hamburger.d.ts +11 -0
  61. package/dist/{esm-es5/priv-chart-popover.entry.js → components/wm-navigation-hamburger.js} +70 -1
  62. package/dist/components/wm-navigation-item.d.ts +11 -0
  63. package/dist/{ripple/p-713ea307.entry.js → components/wm-navigation-item.js} +40 -1
  64. package/dist/components/wm-navigation.d.ts +11 -0
  65. package/dist/{ripple/p-165b5d3d.system.entry.js → components/wm-navigation.js} +144 -1
  66. package/dist/components/wm-navigator.d.ts +11 -0
  67. package/dist/{esm/wm-navigator.entry.js → components/wm-navigator.js} +106 -19
  68. package/dist/components/wm-nested-select.d.ts +11 -0
  69. package/dist/{esm/wm-nested-select.entry.js → components/wm-nested-select.js} +63 -70
  70. package/dist/components/wm-optgroup.d.ts +11 -0
  71. package/dist/{esm/wm-optgroup.entry.js → components/wm-optgroup.js} +48 -11
  72. package/dist/components/wm-option.d.ts +11 -0
  73. package/dist/components/wm-option.js +6 -0
  74. package/dist/{cjs/wm-search.cjs.entry.js → components/wm-option2.js} +168 -166
  75. package/dist/components/wm-pagination.d.ts +11 -0
  76. package/dist/{esm/wm-pagination.entry.js → components/wm-pagination.js} +105 -26
  77. package/dist/components/wm-progress-indicator.d.ts +11 -0
  78. package/dist/{esm/wm-progress-indicator_3.entry.js → components/wm-progress-indicator.js} +51 -105
  79. package/dist/components/wm-progress-monitor.d.ts +11 -0
  80. package/dist/{ripple/p-d530c703.entry.js → components/wm-progress-monitor.js} +93 -1
  81. package/dist/components/wm-progress-slice.d.ts +11 -0
  82. package/dist/components/wm-progress-slice.js +37 -0
  83. package/dist/components/wm-search.d.ts +11 -0
  84. package/dist/{esm/wm-search.entry.js → components/wm-search.js} +74 -14
  85. package/dist/components/wm-select.d.ts +11 -0
  86. package/dist/components/wm-select.js +6 -0
  87. package/dist/components/wm-select2.js +294 -0
  88. package/dist/components/wm-snackbar.d.ts +11 -0
  89. package/dist/{esm/wm-snackbar.entry.js → components/wm-snackbar.js} +46 -17
  90. package/dist/components/wm-tab-item.d.ts +11 -0
  91. package/dist/components/wm-tab-item.js +85 -0
  92. package/dist/components/wm-tab-list.d.ts +11 -0
  93. package/dist/{cjs/wm-uploader.cjs.entry.js → components/wm-tab-list.js} +174 -282
  94. package/dist/components/wm-tab-panel.d.ts +11 -0
  95. package/dist/{cjs/wm-file-list.cjs.entry.js → components/wm-tab-panel.js} +46 -17
  96. package/dist/components/wm-tag-input.d.ts +11 -0
  97. package/dist/{esm/wm-tag-input.entry.js → components/wm-tag-input.js} +86 -49
  98. package/dist/components/wm-tag-option.d.ts +11 -0
  99. package/dist/components/wm-tag-option.js +63 -0
  100. package/dist/components/wm-textarea.d.ts +11 -0
  101. package/dist/{esm/wm-textarea.entry.js → components/wm-textarea.js} +46 -17
  102. package/dist/components/wm-timepicker.d.ts +11 -0
  103. package/dist/{esm/wm-timepicker.entry.js → components/wm-timepicker.js} +49 -19
  104. package/dist/components/wm-toggletip.d.ts +11 -0
  105. package/dist/{esm/wm-toggletip.entry.js → components/wm-toggletip.js} +37 -16
  106. package/dist/components/wm-uploader.d.ts +11 -0
  107. package/dist/{esm/wm-uploader.entry.js → components/wm-uploader.js} +50 -23
  108. package/dist/components/wm-wrapper.d.ts +11 -0
  109. package/dist/components/wm-wrapper.js +34 -0
  110. package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +0 -6
  111. package/dist/types/components/wm-pagination/wm-pagination.d.ts +6 -0
  112. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +1 -0
  113. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +1 -0
  114. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +2 -1
  115. package/dist/types/global/intl.d.ts +22 -0
  116. package/dist/types/stencil-public-runtime.d.ts +28 -0
  117. package/package.json +5 -9
  118. package/dist/cjs/app-globals-b8352f28.js +0 -92
  119. package/dist/cjs/chartFunctions-7314b414.js +0 -712
  120. package/dist/cjs/functions-5ac8a62f.js +0 -8462
  121. package/dist/cjs/index-788526f5.js +0 -1859
  122. package/dist/cjs/index.cjs.js +0 -2
  123. package/dist/cjs/interfaces-85d78ae9.js +0 -37
  124. package/dist/cjs/intl-07aaf53c.js +0 -180
  125. package/dist/cjs/loader.cjs.js +0 -15
  126. package/dist/cjs/priv-calendar.cjs.entry.js +0 -574
  127. package/dist/cjs/priv-navigator-button.cjs.entry.js +0 -29
  128. package/dist/cjs/priv-navigator-item.cjs.entry.js +0 -35
  129. package/dist/cjs/priv-option-list.cjs.entry.js +0 -430
  130. package/dist/cjs/ripple.cjs.js +0 -25
  131. package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -335
  132. package/dist/cjs/wm-button.cjs.entry.js +0 -207
  133. package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -27
  134. package/dist/cjs/wm-chart.cjs.entry.js +0 -156
  135. package/dist/cjs/wm-date-range.cjs.entry.js +0 -473
  136. package/dist/cjs/wm-datepicker.cjs.entry.js +0 -254
  137. package/dist/cjs/wm-file.cjs.entry.js +0 -194
  138. package/dist/cjs/wm-line-chart.cjs.entry.js +0 -460
  139. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +0 -217
  140. package/dist/cjs/wm-modal_3.cjs.entry.js +0 -215
  141. package/dist/cjs/wm-navigation_3.cjs.entry.js +0 -188
  142. package/dist/cjs/wm-navigator.cjs.entry.js +0 -327
  143. package/dist/cjs/wm-nested-select.cjs.entry.js +0 -354
  144. package/dist/cjs/wm-option_2.cjs.entry.js +0 -439
  145. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +0 -204
  146. package/dist/cjs/wm-snackbar.cjs.entry.js +0 -177
  147. package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -258
  148. package/dist/cjs/wm-tag-input.cjs.entry.js +0 -886
  149. package/dist/cjs/wm-tag-option.cjs.entry.js +0 -43
  150. package/dist/cjs/wm-timepicker.cjs.entry.js +0 -307
  151. package/dist/cjs/wm-toggletip.cjs.entry.js +0 -183
  152. package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
  153. package/dist/collection/collection-manifest.json +0 -191
  154. package/dist/collection/components/charts/chartFunctions.js +0 -645
  155. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -908
  156. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +0 -257
  157. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +0 -125
  158. package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -1274
  159. package/dist/collection/components/charts/wm-chart/wm-chart.js +0 -415
  160. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -1067
  161. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +0 -722
  162. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -1274
  163. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +0 -264
  164. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -909
  165. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +0 -151
  166. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +0 -121
  167. package/dist/collection/components/datepickers/datepicker.css +0 -1043
  168. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -1279
  169. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +0 -840
  170. package/dist/collection/components/datepickers/wm-date-range.js +0 -838
  171. package/dist/collection/components/datepickers/wm-datepicker.js +0 -524
  172. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -918
  173. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +0 -817
  174. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -1181
  175. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +0 -659
  176. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -830
  177. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +0 -258
  178. package/dist/collection/components/selects/wm-option/wm-option.css +0 -931
  179. package/dist/collection/components/selects/wm-option/wm-option.js +0 -530
  180. package/dist/collection/components/selects/wm-select/wm-select.css +0 -1104
  181. package/dist/collection/components/selects/wm-select/wm-select.js +0 -596
  182. package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -891
  183. package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -435
  184. package/dist/collection/components/wm-button/wm-button.css +0 -1261
  185. package/dist/collection/components/wm-button/wm-button.js +0 -489
  186. package/dist/collection/components/wm-file/wm-file.css +0 -927
  187. package/dist/collection/components/wm-file/wm-file.js +0 -412
  188. package/dist/collection/components/wm-file-list/wm-file-list.css +0 -820
  189. package/dist/collection/components/wm-file-list/wm-file-list.js +0 -45
  190. package/dist/collection/components/wm-input/wm-input.css +0 -992
  191. package/dist/collection/components/wm-input/wm-input.js +0 -471
  192. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -891
  193. package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -419
  194. package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -852
  195. package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -141
  196. package/dist/collection/components/wm-modal/wm-modal-header.css +0 -846
  197. package/dist/collection/components/wm-modal/wm-modal-header.js +0 -78
  198. package/dist/collection/components/wm-modal/wm-modal.css +0 -890
  199. package/dist/collection/components/wm-modal/wm-modal.js +0 -350
  200. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -852
  201. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +0 -138
  202. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -846
  203. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +0 -82
  204. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -927
  205. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +0 -362
  206. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -847
  207. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -119
  208. package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -856
  209. package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -98
  210. package/dist/collection/components/wm-navigation/wm-navigation.css +0 -898
  211. package/dist/collection/components/wm-navigation/wm-navigation.js +0 -190
  212. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -849
  213. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -86
  214. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -830
  215. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -124
  216. package/dist/collection/components/wm-navigator/wm-navigator.css +0 -903
  217. package/dist/collection/components/wm-navigator/wm-navigator.js +0 -496
  218. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -971
  219. package/dist/collection/components/wm-pagination/wm-pagination.js +0 -311
  220. package/dist/collection/components/wm-search/wm-search.css +0 -895
  221. package/dist/collection/components/wm-search/wm-search.js +0 -427
  222. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -1077
  223. package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -264
  224. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -868
  225. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -175
  226. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -840
  227. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -268
  228. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -825
  229. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -87
  230. package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -1275
  231. package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -1221
  232. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +0 -243
  233. package/dist/collection/components/wm-textarea/wm-textarea.css +0 -979
  234. package/dist/collection/components/wm-textarea/wm-textarea.js +0 -313
  235. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -1093
  236. package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -547
  237. package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1153
  238. package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -289
  239. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -1563
  240. package/dist/collection/components/wm-uploader/wm-uploader.js +0 -603
  241. package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -28
  242. package/dist/collection/dev/button.js +0 -0
  243. package/dist/collection/dev/chart-small.js +0 -56
  244. package/dist/collection/dev/chart.js +0 -18
  245. package/dist/collection/dev/date-range.js +0 -6
  246. package/dist/collection/dev/datepicker.js +0 -46
  247. package/dist/collection/dev/file-list.js +0 -16
  248. package/dist/collection/dev/file.js +0 -0
  249. package/dist/collection/dev/input.js +0 -6
  250. package/dist/collection/dev/line-chart.js +0 -0
  251. package/dist/collection/dev/modal.js +0 -48
  252. package/dist/collection/dev/navigation.js +0 -13
  253. package/dist/collection/dev/navigator.js +0 -34
  254. package/dist/collection/dev/nested-select.js +0 -36
  255. package/dist/collection/dev/pagination.js +0 -7
  256. package/dist/collection/dev/progress-monitor.js +0 -0
  257. package/dist/collection/dev/pss-modal.js +0 -8
  258. package/dist/collection/dev/scripts.js +0 -49
  259. package/dist/collection/dev/search.js +0 -72
  260. package/dist/collection/dev/select.js +0 -57
  261. package/dist/collection/dev/snackbar.js +0 -54
  262. package/dist/collection/dev/tabs.js +0 -44
  263. package/dist/collection/dev/tag-input.js +0 -32
  264. package/dist/collection/dev/textarea.js +0 -28
  265. package/dist/collection/dev/timepicker.js +0 -32
  266. package/dist/collection/dev/toggletip.js +0 -9
  267. package/dist/collection/dev/uploader.js +0 -139
  268. package/dist/collection/global/__mocks__/functions.js +0 -6
  269. package/dist/collection/global/functions.js +0 -825
  270. package/dist/collection/global/intl.js +0 -172
  271. package/dist/collection/global/services/__mocks__/http-service.js +0 -130
  272. package/dist/collection/global/services/http-service.js +0 -50
  273. package/dist/collection/lang/lang.js +0 -5
  274. package/dist/collection/lang/missing.js +0 -43
  275. package/dist/collection/lang/piglatin.js +0 -93
  276. package/dist/esm/app-globals-f3dbaf3e.js +0 -90
  277. package/dist/esm/functions-f53b3537.js +0 -8422
  278. package/dist/esm/index-130e07bb.js +0 -1828
  279. package/dist/esm/index.js +0 -1
  280. package/dist/esm/interfaces-cc5b177f.js +0 -34
  281. package/dist/esm/loader.js +0 -11
  282. package/dist/esm/polyfills/core-js.js +0 -11
  283. package/dist/esm/polyfills/dom.js +0 -79
  284. package/dist/esm/polyfills/es5-html-element.js +0 -1
  285. package/dist/esm/polyfills/index.js +0 -34
  286. package/dist/esm/polyfills/system.js +0 -6
  287. package/dist/esm/ripple.js +0 -20
  288. package/dist/esm/wm-action-menu_2.entry.js +0 -330
  289. package/dist/esm/wm-chart-slice.entry.js +0 -23
  290. package/dist/esm/wm-modal-pss_3.entry.js +0 -211
  291. package/dist/esm/wm-modal_3.entry.js +0 -209
  292. package/dist/esm/wm-navigation_3.entry.js +0 -182
  293. package/dist/esm/wm-option_2.entry.js +0 -434
  294. package/dist/esm/wm-tab-item_3.entry.js +0 -252
  295. package/dist/esm/wm-tag-option.entry.js +0 -39
  296. package/dist/esm/wm-wrapper.entry.js +0 -17
  297. package/dist/esm-es5/app-globals-f3dbaf3e.js +0 -1
  298. package/dist/esm-es5/chartFunctions-1478f4db.js +0 -1
  299. package/dist/esm-es5/functions-f53b3537.js +0 -1
  300. package/dist/esm-es5/index-130e07bb.js +0 -1
  301. package/dist/esm-es5/index.js +0 -0
  302. package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
  303. package/dist/esm-es5/intl-6426ba51.js +0 -1
  304. package/dist/esm-es5/loader.js +0 -1
  305. package/dist/esm-es5/priv-calendar.entry.js +0 -1
  306. package/dist/esm-es5/priv-navigator-button.entry.js +0 -1
  307. package/dist/esm-es5/priv-navigator-item.entry.js +0 -1
  308. package/dist/esm-es5/priv-option-list.entry.js +0 -1
  309. package/dist/esm-es5/ripple.js +0 -1
  310. package/dist/esm-es5/wm-action-menu_2.entry.js +0 -1
  311. package/dist/esm-es5/wm-button.entry.js +0 -1
  312. package/dist/esm-es5/wm-chart-slice.entry.js +0 -1
  313. package/dist/esm-es5/wm-chart.entry.js +0 -1
  314. package/dist/esm-es5/wm-date-range.entry.js +0 -1
  315. package/dist/esm-es5/wm-datepicker.entry.js +0 -1
  316. package/dist/esm-es5/wm-file-list.entry.js +0 -1
  317. package/dist/esm-es5/wm-file.entry.js +0 -1
  318. package/dist/esm-es5/wm-input.entry.js +0 -1
  319. package/dist/esm-es5/wm-line-chart.entry.js +0 -1
  320. package/dist/esm-es5/wm-modal-pss_3.entry.js +0 -1
  321. package/dist/esm-es5/wm-modal_3.entry.js +0 -1
  322. package/dist/esm-es5/wm-navigation_3.entry.js +0 -1
  323. package/dist/esm-es5/wm-navigator.entry.js +0 -1
  324. package/dist/esm-es5/wm-nested-select.entry.js +0 -1
  325. package/dist/esm-es5/wm-optgroup.entry.js +0 -1
  326. package/dist/esm-es5/wm-option_2.entry.js +0 -1
  327. package/dist/esm-es5/wm-pagination.entry.js +0 -1
  328. package/dist/esm-es5/wm-progress-indicator_3.entry.js +0 -1
  329. package/dist/esm-es5/wm-search.entry.js +0 -1
  330. package/dist/esm-es5/wm-snackbar.entry.js +0 -1
  331. package/dist/esm-es5/wm-tab-item_3.entry.js +0 -1
  332. package/dist/esm-es5/wm-tag-input.entry.js +0 -1
  333. package/dist/esm-es5/wm-tag-option.entry.js +0 -1
  334. package/dist/esm-es5/wm-textarea.entry.js +0 -1
  335. package/dist/esm-es5/wm-timepicker.entry.js +0 -1
  336. package/dist/esm-es5/wm-toggletip.entry.js +0 -1
  337. package/dist/esm-es5/wm-uploader.entry.js +0 -1
  338. package/dist/esm-es5/wm-wrapper.entry.js +0 -1
  339. package/dist/index.cjs.js +0 -1
  340. package/dist/index.js +0 -1
  341. package/dist/loader/cdn.js +0 -2
  342. package/dist/loader/index.cjs.js +0 -2
  343. package/dist/loader/index.d.ts +0 -24
  344. package/dist/loader/index.es2017.js +0 -2
  345. package/dist/loader/index.js +0 -3
  346. package/dist/loader/package.json +0 -11
  347. package/dist/ripple/index.esm.js +0 -0
  348. package/dist/ripple/p-02bd68af.system.entry.js +0 -1
  349. package/dist/ripple/p-02e60a11.system.entry.js +0 -1
  350. package/dist/ripple/p-03fafb82.entry.js +0 -1
  351. package/dist/ripple/p-043901ab.system.entry.js +0 -1
  352. package/dist/ripple/p-0d163672.system.entry.js +0 -1
  353. package/dist/ripple/p-13b1d775.entry.js +0 -1
  354. package/dist/ripple/p-1f174e18.system.entry.js +0 -1
  355. package/dist/ripple/p-20b137a3.system.entry.js +0 -1
  356. package/dist/ripple/p-226217d3.system.entry.js +0 -1
  357. package/dist/ripple/p-233f14ec.system.entry.js +0 -1
  358. package/dist/ripple/p-243a7a17.system.entry.js +0 -1
  359. package/dist/ripple/p-263e42e0.entry.js +0 -1
  360. package/dist/ripple/p-2732bddd.js +0 -1
  361. package/dist/ripple/p-27ff3a85.js +0 -1
  362. package/dist/ripple/p-28f9e202.system.entry.js +0 -1
  363. package/dist/ripple/p-2c8153c1.entry.js +0 -1
  364. package/dist/ripple/p-3376581a.system.entry.js +0 -1
  365. package/dist/ripple/p-368e9ee9.entry.js +0 -1
  366. package/dist/ripple/p-3a2a3b70.entry.js +0 -1
  367. package/dist/ripple/p-3b5d106d.entry.js +0 -1
  368. package/dist/ripple/p-42fa7a77.system.js +0 -1
  369. package/dist/ripple/p-45b5d2d2.entry.js +0 -1
  370. package/dist/ripple/p-486b3b56.system.entry.js +0 -1
  371. package/dist/ripple/p-49e24926.entry.js +0 -1
  372. package/dist/ripple/p-4fbe205e.system.entry.js +0 -1
  373. package/dist/ripple/p-50294e3f.entry.js +0 -1
  374. package/dist/ripple/p-50ea2036.system.js +0 -1
  375. package/dist/ripple/p-529f179c.system.entry.js +0 -1
  376. package/dist/ripple/p-53400bc4.system.entry.js +0 -1
  377. package/dist/ripple/p-55f8aa05.entry.js +0 -1
  378. package/dist/ripple/p-58734b13.entry.js +0 -1
  379. package/dist/ripple/p-59cc46a6.entry.js +0 -1
  380. package/dist/ripple/p-5c62e26d.entry.js +0 -1
  381. package/dist/ripple/p-6136d0d7.entry.js +0 -1
  382. package/dist/ripple/p-658f146a.system.entry.js +0 -1
  383. package/dist/ripple/p-66141f19.entry.js +0 -1
  384. package/dist/ripple/p-727175e1.system.entry.js +0 -1
  385. package/dist/ripple/p-73056e10.system.js +0 -1
  386. package/dist/ripple/p-76f9acec.entry.js +0 -1
  387. package/dist/ripple/p-791513e7.entry.js +0 -1
  388. package/dist/ripple/p-7959c4bd.system.entry.js +0 -1
  389. package/dist/ripple/p-7a1bb29b.js +0 -1
  390. package/dist/ripple/p-81ac8d49.entry.js +0 -1
  391. package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
  392. package/dist/ripple/p-82819500.system.entry.js +0 -1
  393. package/dist/ripple/p-8634abad.system.entry.js +0 -1
  394. package/dist/ripple/p-864158de.system.entry.js +0 -1
  395. package/dist/ripple/p-8c95493c.js +0 -1
  396. package/dist/ripple/p-94dc80a0.entry.js +0 -1
  397. package/dist/ripple/p-94fbf6f6.system.entry.js +0 -1
  398. package/dist/ripple/p-9b739280.entry.js +0 -1
  399. package/dist/ripple/p-a0edf336.system.entry.js +0 -1
  400. package/dist/ripple/p-a2544443.system.js +0 -1
  401. package/dist/ripple/p-a280d710.entry.js +0 -1
  402. package/dist/ripple/p-a9a7731b.system.entry.js +0 -1
  403. package/dist/ripple/p-b16f07f1.system.entry.js +0 -1
  404. package/dist/ripple/p-b78d8ab1.system.js +0 -1
  405. package/dist/ripple/p-c550716e.js +0 -1
  406. package/dist/ripple/p-ccae5bec.entry.js +0 -1
  407. package/dist/ripple/p-cd0cc88d.entry.js +0 -1
  408. package/dist/ripple/p-cef8a45b.system.js +0 -2
  409. package/dist/ripple/p-d96291e7.entry.js +0 -1
  410. package/dist/ripple/p-d9da0502.js +0 -2
  411. package/dist/ripple/p-e2fbed8c.system.entry.js +0 -1
  412. package/dist/ripple/p-e6e36701.system.entry.js +0 -1
  413. package/dist/ripple/p-e8cfa832.entry.js +0 -1
  414. package/dist/ripple/p-e973024a.entry.js +0 -1
  415. package/dist/ripple/p-ed24dc42.entry.js +0 -1
  416. package/dist/ripple/p-ee825214.entry.js +0 -1
  417. package/dist/ripple/p-ef75bf23.system.entry.js +0 -1
  418. package/dist/ripple/p-f28106ea.entry.js +0 -1
  419. package/dist/ripple/p-f471ee29.system.js +0 -1
  420. package/dist/ripple/p-f66480de.entry.js +0 -1
  421. package/dist/ripple/p-f778baf4.system.entry.js +0 -1
  422. package/dist/ripple/p-f9a71cf6.entry.js +0 -1
  423. package/dist/ripple/p-fc7965e4.system.entry.js +0 -1
  424. package/dist/ripple/p-fdfa3579.system.entry.js +0 -1
  425. package/dist/ripple/p-ff60375d.system.entry.js +0 -1
  426. package/dist/ripple/p-ffbb9fc0.system.js +0 -1
  427. package/dist/ripple/ripple.css +0 -1
  428. package/dist/ripple/ripple.esm.js +0 -1
  429. package/dist/ripple/ripple.js +0 -127
  430. /package/dist/{collection/dev/action-menu.js → types/test-setup.d.ts} +0 -0
@@ -1,817 +0,0 @@
1
- import { h, forceUpdate } from "@stencil/core";
2
- import { intl, debounce, isElOrChild } from "../../../global/functions";
3
- export class PrivOptionList {
4
- constructor() {
5
- this.searchIndex = 0;
6
- this.keysSoFar = "";
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.debouncedSearch = debounce(() => {
24
- this.searchTerm = this.searchFieldEl.value;
25
- this.optionListSearchChanged.emit({ searchTerm: this.searchTerm });
26
- if (this.filteredOptions.length) {
27
- this.announce(this.resultsFoundMessage);
28
- }
29
- else {
30
- this.announce(this.noResultsFoundMessage);
31
- }
32
- }, 150);
33
- this.debouncedClearKeysSoFar = debounce(() => {
34
- this.keysSoFar = "";
35
- }, 500);
36
- this.multiple = false;
37
- this.search = false;
38
- this.selectAll = false;
39
- this.searchPlaceholder = undefined;
40
- this.optgroupLabel = undefined;
41
- this.maxHeight = undefined;
42
- this.upwardsHeightLimit = null;
43
- this.announcement = "";
44
- this.searchTerm = "";
45
- }
46
- get childOptions() {
47
- return Array.from(this.el.getRootNode().host.querySelectorAll("wm-option"));
48
- }
49
- get cloneOptions() {
50
- return Array.from(this.el.querySelectorAll("wm-option"));
51
- }
52
- get allOptionEls() {
53
- // this includes both slotted wm-options and internally created wm-options
54
- return this.cloneOptions.concat(this.childOptions);
55
- }
56
- get isInNestedSelect() {
57
- return !!this.optgroupLabel;
58
- }
59
- get visibleOptionEls() {
60
- return this.allOptionEls.filter((option) => !option.classList.contains("hidden") && !option.classList.contains("filtered-out"));
61
- }
62
- //////////////////////////////////////
63
- // for search variants
64
- get filteredOptions() {
65
- return this.childOptions.filter((option) => { var _a; return (_a = option.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.searchTerm.toLowerCase()); });
66
- }
67
- //////////////////////////////////////
68
- //////////////////////////////////////
69
- // for multiselect button text
70
- get selectedOptions() {
71
- return Array.from(this.el.querySelectorAll("wm-option")).filter((x) => x.selected);
72
- }
73
- get visibleSelectAllButton() {
74
- return this.selectAll && this.multiple && this.searchTerm === "";
75
- }
76
- get allSelected() {
77
- return this.childOptions.every((option) => option.selected);
78
- }
79
- //////////////////////////////////////
80
- get resultsFoundMessage() {
81
- return intl.formatMessage({
82
- id: "select.searchResultsFound",
83
- defaultMessage: "{numResults, plural, one {1 option found} other {# options found}}",
84
- description: "The message read by the screen reader, indicating how many results a search returned",
85
- }, { numResults: this.filteredOptions.length });
86
- }
87
- get noResultsFoundMessage() {
88
- return intl.formatMessage({
89
- id: "select.noSearchResults",
90
- defaultMessage: "No results found. Please try your search again.",
91
- description: "The message displayed when no options pass the search filter",
92
- });
93
- }
94
- get effectiveMaxHeight() {
95
- let result = this.maxHeight;
96
- if (this.upwardsHeightLimit && this.el.parentElement.clientHeight > this.upwardsHeightLimit) {
97
- result = `${this.upwardsHeightLimit -
98
- (this.isInNestedSelect ? this.returnBtnEl.clientHeight : 0) -
99
- (this.selectAll ? this.selectAllEl.clientHeight : 0) -
100
- (this.search ? this.searchFieldWrapperEl.clientHeight : 0)}px`;
101
- }
102
- return result;
103
- }
104
- findAndFocusOption(ev) {
105
- const letterPressed = ev.detail.letter.toLowerCase();
106
- const optionPressed = ev.detail.optionEl;
107
- if (!this.keysSoFar && letterPressed == " ") {
108
- // if the first key entered is space, treat as a click. Otherwise include in
109
- optionPressed.click();
110
- }
111
- else {
112
- if (!this.keysSoFar) {
113
- // if first character entered, set currently focused option as the starting index for the search
114
- this.visibleOptionEls.forEach((option, idx) => {
115
- if (option.focused) {
116
- this.searchIndex = idx;
117
- }
118
- });
119
- }
120
- this.keysSoFar += letterPressed;
121
- let nextMatch = this.findMatchInRange(this.visibleOptionEls, this.searchIndex + 1, this.visibleOptionEls.length);
122
- if (!nextMatch) {
123
- // if match can't be found from starting option downwards, search from top
124
- nextMatch = this.findMatchInRange(this.visibleOptionEls, 0, this.searchIndex);
125
- }
126
- if (nextMatch) {
127
- // findMatchInRange still might have returned null, only focus if match found
128
- this.focusOption(nextMatch);
129
- }
130
- this.debouncedClearKeysSoFar();
131
- }
132
- }
133
- handleOptionSelection(ev) {
134
- this.focusOption(ev.detail);
135
- }
136
- handleChildUp(ev) {
137
- this.moveUp(ev.detail);
138
- }
139
- handleChildDown(ev) {
140
- this.moveDown(ev.detail);
141
- }
142
- moveToFirstOption() {
143
- this.focusOption(this.visibleOptionEls[0]);
144
- }
145
- moveToLastOption() {
146
- this.focusOption(this.visibleOptionEls[this.visibleOptionEls.length - 1]);
147
- }
148
- handleOptionCloneSelection(ev) {
149
- const correspondingOption = this.findCorrespondingOption(ev.detail);
150
- correspondingOption.click();
151
- }
152
- componentDidLoad() {
153
- if (this.multiple) {
154
- this.updateOptionVisibility();
155
- }
156
- }
157
- async handleChildChange() {
158
- // on update of wm-options selected state, rerender to update clones state
159
- forceUpdate(this.el);
160
- }
161
- async clearSearch() {
162
- if (this.search) {
163
- this.searchFieldEl.value = "";
164
- this.searchTerm = "";
165
- this.optionListSearchChanged.emit({ searchTerm: this.searchTerm });
166
- }
167
- }
168
- async focusOption(option) {
169
- this.allOptionEls.forEach((i) => (i.focused = i === option));
170
- // option must be scrolledIntoView before focused
171
- // if focus is called first the option might be positioned incorrectly (in the center of the dropdown) and scrollIntoView didload do nothing as the option will already be in view
172
- option.scrollIntoView({ block: "nearest" });
173
- // 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))
174
- // when opening the dropdown, scrollIntoView must be delayed to a point where the browser recognizes content within it as able to be scrolled to
175
- // 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
176
- window.setTimeout(() => option.scrollIntoView({ block: "nearest" }), 60);
177
- option.focus();
178
- }
179
- async handleInitialFocus(optionToSelect) {
180
- switch (optionToSelect) {
181
- case "next":
182
- // search variant focuses search field
183
- // all others focus option "after" last selected option (this can be the first option)
184
- if (this.search) {
185
- this.searchFieldEl.focus();
186
- this.listboxEl.scrollTop = 0;
187
- }
188
- else {
189
- this.moveDown(this.visibleOptionEls.filter((x) => x.selected).slice(-1)[0]);
190
- }
191
- break;
192
- case "previous":
193
- // search variant focuses last option
194
- // all others focus option "above" first selected option (this can be the last option)
195
- if (this.search) {
196
- this.focusOption(this.visibleOptionEls[this.visibleOptionEls.length - 1]);
197
- }
198
- else {
199
- this.moveUp(this.visibleOptionEls.filter((x) => x.selected)[0]);
200
- }
201
- break;
202
- default:
203
- // search variant focuses search field
204
- // all others focus the selected option
205
- // if no option is selected (empty multiselect), focuses first option
206
- if (this.search) {
207
- this.searchFieldEl.focus();
208
- this.listboxEl.scrollTop = 0;
209
- }
210
- else if (this.selectedOptions.length > 0) {
211
- this.focusOption(this.visibleOptionEls.filter((x) => x.selected)[0]);
212
- }
213
- else {
214
- this.focusOption(this.visibleOptionEls[0]);
215
- }
216
- break;
217
- }
218
- }
219
- async unfocusAll() {
220
- this.allOptionEls.map((i) => (i.focused = false));
221
- }
222
- findMatchInRange(list, startIndex, endIndex) {
223
- let match = null;
224
- let optionsInRange = list.slice(startIndex, endIndex);
225
- // Find the first option starting with the keysSoFar substring, searching in
226
- // the specified range of options
227
- optionsInRange.forEach((option) => {
228
- const label = option.textContent;
229
- if (!match && label && label.toLowerCase().startsWith(this.keysSoFar)) {
230
- match = option;
231
- }
232
- });
233
- return match;
234
- }
235
- findCorrespondingOption(el) {
236
- // if clone, returns the child wm-option
237
- // if child wm-option, returns clone
238
- const isClone = el.classList.contains("clone");
239
- return isClone
240
- ? this.childOptions[this.cloneOptions.indexOf(el)]
241
- : this.cloneOptions[this.childOptions.indexOf(el)];
242
- }
243
- handleSearchFieldBlur(ev) {
244
- this.searchFieldWrapperEl.classList.remove("focus");
245
- if (isElOrChild(this.el, ev.relatedTarget)) {
246
- // do not emit a blur event when moving from searchfield to options
247
- ev.stopPropagation();
248
- }
249
- }
250
- // on search field or select all. keydown on options is handled via events.
251
- handleKeyDown(ev) {
252
- const el = ev.target;
253
- switch (ev.key) {
254
- case "ArrowDown":
255
- ev.preventDefault();
256
- this.moveDown(ev.target);
257
- break;
258
- case "ArrowUp":
259
- ev.preventDefault();
260
- this.moveUp(ev.target);
261
- break;
262
- case "ArrowLeft":
263
- if (this.isInNestedSelect && el != this.searchFieldEl) {
264
- ev.preventDefault();
265
- this.wmKeyLeftPressed.emit();
266
- }
267
- break;
268
- case "Escape":
269
- ev.preventDefault();
270
- this.wmEscKeyPressed.emit();
271
- break;
272
- case "Enter":
273
- if (el === this.selectAllEl) {
274
- ev.preventDefault();
275
- this.handleSelectAllClick();
276
- this.close();
277
- }
278
- break;
279
- case " ":
280
- if (el === this.selectAllEl) {
281
- ev.preventDefault();
282
- this.handleSelectAllClick();
283
- }
284
- break;
285
- }
286
- }
287
- close() {
288
- this.listboxEl.scrollTop = 0;
289
- if (this.multiple) {
290
- this.updateOptionVisibility();
291
- }
292
- this.optionListCloseRequested.emit(); // what actually happens when a close is requested is determined by the parent
293
- }
294
- handleSelectAllClick() {
295
- this.allSelected ? this.deselectAllOptions() : this.selectAllOptions();
296
- }
297
- selectAllOptions() {
298
- this.announce(this.allOptionsSelectedMessage);
299
- this.optionListAllSelected.emit();
300
- }
301
- deselectAllOptions() {
302
- this.announce(this.allOptionsDeselectedMessage);
303
- this.optionListAllDeselected.emit();
304
- }
305
- moveUp(el) {
306
- const focusableEls = this.visibleOptionEls;
307
- if (this.selectAllEl) {
308
- focusableEls.unshift(this.selectAllEl);
309
- }
310
- if (this.searchFieldEl) {
311
- focusableEls.unshift(this.searchFieldEl);
312
- }
313
- if (this.isInNestedSelect) {
314
- focusableEls.unshift(this.returnBtnEl);
315
- }
316
- const prevEl = focusableEls[focusableEls.indexOf(el) - 1] || focusableEls[focusableEls.length - 1];
317
- if (prevEl) {
318
- this.focusOption(prevEl);
319
- }
320
- }
321
- moveDown(el) {
322
- const focusableEls = this.visibleOptionEls;
323
- if (this.selectAllEl) {
324
- focusableEls.unshift(this.selectAllEl);
325
- }
326
- if (this.searchFieldEl) {
327
- focusableEls.unshift(this.searchFieldEl);
328
- }
329
- if (this.isInNestedSelect) {
330
- focusableEls.unshift(this.returnBtnEl);
331
- }
332
- const nextEl = focusableEls[focusableEls.indexOf(el) + 1] || focusableEls[0];
333
- if (nextEl) {
334
- this.focusOption(nextEl);
335
- }
336
- }
337
- async updateOptionVisibility() {
338
- // this runs for search multiselects, where selected options are rendered at the top of the dropdown list
339
- // slotted wm-options are hidden if selected, and clone wm-options are made visible if selected
340
- this.childOptions.forEach((option, idx) => {
341
- const cloneOption = this.cloneOptions[idx];
342
- if (option.selected) {
343
- option.classList.add("hidden");
344
- cloneOption.classList.remove("hidden");
345
- }
346
- else {
347
- option.classList.remove("hidden");
348
- cloneOption.classList.add("hidden");
349
- }
350
- });
351
- // find last visible clone option and apply .last class
352
- const visibleCloneOptions = this.visibleOptionEls.filter((option) => option.classList.contains("clone"));
353
- // if all options are clones, nothing to separate from
354
- const allClones = visibleCloneOptions.length === this.visibleOptionEls.length;
355
- visibleCloneOptions.forEach((option, idx) => {
356
- if (!allClones && idx === visibleCloneOptions.length - 1) {
357
- option.classList.add("last");
358
- }
359
- else {
360
- option.classList.remove("last");
361
- }
362
- });
363
- }
364
- announce(message) {
365
- // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
366
- if (this.liveRegionEl.textContent === message) {
367
- message += "\u00A0";
368
- }
369
- this.announcement = message;
370
- }
371
- renderReturnBtn() {
372
- const selectionCount = this.childOptions.filter((o) => o.selected).length;
373
- const singleSelectionCountMessage = intl.formatMessage({
374
- id: "select.optgroupSingleSelectionCount",
375
- defaultMessage: "Item Selected",
376
- description: "Text indicating number of selected in a group, where only a single selection is possible.",
377
- }, { numSelected: selectionCount });
378
- const multipleSelectionCountMessage = intl.formatMessage({
379
- id: "select.optgroupMultipleSelectionCount",
380
- defaultMessage: "{numSelected} Selected",
381
- description: "Text indicating number of selected in a group, where multiple selections are possible.",
382
- }, { numSelected: selectionCount });
383
- return (h("button", { ref: (el) => (this.returnBtnEl = el), id: "return-btn", class: "return-btn", onKeyDown: (ev) => this.handleKeyDown(ev), onClick: () => {
384
- //@ts-ignore -- Check out this one weird trick TypeScript doesn't want you to know about
385
- this.el.getRootNode().host.isExpanded = false;
386
- } }, h("div", { class: "svg-icon svg-previous" }), h("div", { class: "return-btn-label" }, this.optgroupLabel, selectionCount > 0 && (h("span", { class: "selection-count" }, this.multiple ? multipleSelectionCountMessage : singleSelectionCountMessage)))));
387
- }
388
- renderSearchField() {
389
- return (h("div", { class: "search" }, h("div", { class: "searchfield-wrapper", ref: (el) => (this.searchFieldWrapperEl = el) }, h("div", { class: "svg-icon svg-search" }), h("input", { ref: (el) => (this.searchFieldEl = el), class: "searchfield", role: "combobox", "aria-controls": "list",
390
- // aria-expanded={this.isExpanded ? "true" : "false"}
391
- onKeyDown: (ev) => this.handleKeyDown(ev), onFocus: () => this.searchFieldWrapperEl.classList.add("focus"), onBlur: (ev) => this.handleSearchFieldBlur(ev), onInput: () => this.debouncedSearch(), placeholder: this.searchPlaceholder }))));
392
- }
393
- renderSearchFailedMessage() {
394
- return h("div", { class: "search-results-message" }, this.noResultsFoundMessage);
395
- }
396
- renderSelectAllButton() {
397
- 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));
398
- }
399
- renderCloneOptions() {
400
- return Array.from(this.childOptions).map((o) => {
401
- const option = o;
402
- return (h("wm-option", { class: "clone", subinfo: option.subinfo, selected: option.selected }, option.textContent));
403
- });
404
- }
405
- renderNonOptions() {
406
- return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
407
- }
408
- render() {
409
- return (h("div", { key: '2039eeefe0c847fd75fb72bebef8343eb72477de', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '6c03e692d7ab60c7f1211487773a64581be3587b', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: 'a9f9df0dfcab3a75ba946f9ce6f20c109705d82f' })), h("div", { key: '435485d90c3c9f225c5d8290c1398d851a282514', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
410
- }
411
- static get is() { return "priv-option-list"; }
412
- static get originalStyleUrls() {
413
- return {
414
- "$": ["priv-option-list.scss"]
415
- };
416
- }
417
- static get styleUrls() {
418
- return {
419
- "$": ["priv-option-list.css"]
420
- };
421
- }
422
- static get properties() {
423
- return {
424
- "multiple": {
425
- "type": "boolean",
426
- "mutable": false,
427
- "complexType": {
428
- "original": "boolean",
429
- "resolved": "boolean",
430
- "references": {}
431
- },
432
- "required": false,
433
- "optional": false,
434
- "docs": {
435
- "tags": [],
436
- "text": ""
437
- },
438
- "attribute": "multiple",
439
- "reflect": false,
440
- "defaultValue": "false"
441
- },
442
- "search": {
443
- "type": "boolean",
444
- "mutable": false,
445
- "complexType": {
446
- "original": "boolean",
447
- "resolved": "boolean",
448
- "references": {}
449
- },
450
- "required": false,
451
- "optional": false,
452
- "docs": {
453
- "tags": [],
454
- "text": ""
455
- },
456
- "attribute": "search",
457
- "reflect": false,
458
- "defaultValue": "false"
459
- },
460
- "selectAll": {
461
- "type": "boolean",
462
- "mutable": false,
463
- "complexType": {
464
- "original": "boolean",
465
- "resolved": "boolean",
466
- "references": {}
467
- },
468
- "required": false,
469
- "optional": false,
470
- "docs": {
471
- "tags": [],
472
- "text": ""
473
- },
474
- "attribute": "select-all",
475
- "reflect": false,
476
- "defaultValue": "false"
477
- },
478
- "searchPlaceholder": {
479
- "type": "string",
480
- "mutable": false,
481
- "complexType": {
482
- "original": "string",
483
- "resolved": "string | undefined",
484
- "references": {}
485
- },
486
- "required": false,
487
- "optional": true,
488
- "docs": {
489
- "tags": [],
490
- "text": ""
491
- },
492
- "attribute": "search-placeholder",
493
- "reflect": false
494
- },
495
- "optgroupLabel": {
496
- "type": "string",
497
- "mutable": false,
498
- "complexType": {
499
- "original": "string",
500
- "resolved": "string | undefined",
501
- "references": {}
502
- },
503
- "required": false,
504
- "optional": true,
505
- "docs": {
506
- "tags": [],
507
- "text": ""
508
- },
509
- "attribute": "optgroup-label",
510
- "reflect": false
511
- },
512
- "maxHeight": {
513
- "type": "string",
514
- "mutable": false,
515
- "complexType": {
516
- "original": "string",
517
- "resolved": "string",
518
- "references": {}
519
- },
520
- "required": true,
521
- "optional": false,
522
- "docs": {
523
- "tags": [],
524
- "text": ""
525
- },
526
- "attribute": "max-height",
527
- "reflect": false
528
- },
529
- "upwardsHeightLimit": {
530
- "type": "number",
531
- "mutable": false,
532
- "complexType": {
533
- "original": "number | null",
534
- "resolved": "null | number",
535
- "references": {}
536
- },
537
- "required": false,
538
- "optional": false,
539
- "docs": {
540
- "tags": [],
541
- "text": ""
542
- },
543
- "attribute": "upwards-height-limit",
544
- "reflect": false,
545
- "defaultValue": "null"
546
- }
547
- };
548
- }
549
- static get states() {
550
- return {
551
- "announcement": {},
552
- "searchTerm": {}
553
- };
554
- }
555
- static get events() {
556
- return [{
557
- "method": "optionListSearchChanged",
558
- "name": "optionListSearchChanged",
559
- "bubbles": true,
560
- "cancelable": true,
561
- "composed": true,
562
- "docs": {
563
- "tags": [],
564
- "text": ""
565
- },
566
- "complexType": {
567
- "original": "Object",
568
- "resolved": "Object",
569
- "references": {
570
- "Object": {
571
- "location": "global",
572
- "id": "global::Object"
573
- }
574
- }
575
- }
576
- }, {
577
- "method": "optionListCloseRequested",
578
- "name": "optionListCloseRequested",
579
- "bubbles": true,
580
- "cancelable": true,
581
- "composed": true,
582
- "docs": {
583
- "tags": [],
584
- "text": ""
585
- },
586
- "complexType": {
587
- "original": "any",
588
- "resolved": "any",
589
- "references": {}
590
- }
591
- }, {
592
- "method": "optionListAllSelected",
593
- "name": "optionListAllSelected",
594
- "bubbles": true,
595
- "cancelable": true,
596
- "composed": true,
597
- "docs": {
598
- "tags": [],
599
- "text": ""
600
- },
601
- "complexType": {
602
- "original": "any",
603
- "resolved": "any",
604
- "references": {}
605
- }
606
- }, {
607
- "method": "optionListAllDeselected",
608
- "name": "optionListAllDeselected",
609
- "bubbles": true,
610
- "cancelable": true,
611
- "composed": true,
612
- "docs": {
613
- "tags": [],
614
- "text": ""
615
- },
616
- "complexType": {
617
- "original": "any",
618
- "resolved": "any",
619
- "references": {}
620
- }
621
- }, {
622
- "method": "wmEscKeyPressed",
623
- "name": "wmEscKeyPressed",
624
- "bubbles": true,
625
- "cancelable": true,
626
- "composed": true,
627
- "docs": {
628
- "tags": [],
629
- "text": ""
630
- },
631
- "complexType": {
632
- "original": "any",
633
- "resolved": "any",
634
- "references": {}
635
- }
636
- }, {
637
- "method": "wmKeyLeftPressed",
638
- "name": "wmKeyLeftPressed",
639
- "bubbles": true,
640
- "cancelable": true,
641
- "composed": true,
642
- "docs": {
643
- "tags": [],
644
- "text": ""
645
- },
646
- "complexType": {
647
- "original": "any",
648
- "resolved": "any",
649
- "references": {}
650
- }
651
- }];
652
- }
653
- static get methods() {
654
- return {
655
- "handleChildChange": {
656
- "complexType": {
657
- "signature": "() => Promise<void>",
658
- "parameters": [],
659
- "references": {
660
- "Promise": {
661
- "location": "global",
662
- "id": "global::Promise"
663
- }
664
- },
665
- "return": "Promise<void>"
666
- },
667
- "docs": {
668
- "text": "",
669
- "tags": []
670
- }
671
- },
672
- "clearSearch": {
673
- "complexType": {
674
- "signature": "() => Promise<void>",
675
- "parameters": [],
676
- "references": {
677
- "Promise": {
678
- "location": "global",
679
- "id": "global::Promise"
680
- }
681
- },
682
- "return": "Promise<void>"
683
- },
684
- "docs": {
685
- "text": "",
686
- "tags": []
687
- }
688
- },
689
- "focusOption": {
690
- "complexType": {
691
- "signature": "(option: HTMLElement) => Promise<void>",
692
- "parameters": [{
693
- "name": "option",
694
- "type": "HTMLElement",
695
- "docs": ""
696
- }],
697
- "references": {
698
- "Promise": {
699
- "location": "global",
700
- "id": "global::Promise"
701
- },
702
- "HTMLElement": {
703
- "location": "global",
704
- "id": "global::HTMLElement"
705
- }
706
- },
707
- "return": "Promise<void>"
708
- },
709
- "docs": {
710
- "text": "",
711
- "tags": []
712
- }
713
- },
714
- "handleInitialFocus": {
715
- "complexType": {
716
- "signature": "(optionToSelect?: \"next\" | \"previous\") => Promise<void>",
717
- "parameters": [{
718
- "name": "optionToSelect",
719
- "type": "\"next\" | \"previous\" | undefined",
720
- "docs": ""
721
- }],
722
- "references": {
723
- "Promise": {
724
- "location": "global",
725
- "id": "global::Promise"
726
- }
727
- },
728
- "return": "Promise<void>"
729
- },
730
- "docs": {
731
- "text": "",
732
- "tags": []
733
- }
734
- },
735
- "unfocusAll": {
736
- "complexType": {
737
- "signature": "() => Promise<void>",
738
- "parameters": [],
739
- "references": {
740
- "Promise": {
741
- "location": "global",
742
- "id": "global::Promise"
743
- }
744
- },
745
- "return": "Promise<void>"
746
- },
747
- "docs": {
748
- "text": "",
749
- "tags": []
750
- }
751
- },
752
- "updateOptionVisibility": {
753
- "complexType": {
754
- "signature": "() => Promise<void>",
755
- "parameters": [],
756
- "references": {
757
- "Promise": {
758
- "location": "global",
759
- "id": "global::Promise"
760
- }
761
- },
762
- "return": "Promise<void>"
763
- },
764
- "docs": {
765
- "text": "",
766
- "tags": []
767
- }
768
- }
769
- };
770
- }
771
- static get elementRef() { return "el"; }
772
- static get listeners() {
773
- return [{
774
- "name": "wmLetterPressed",
775
- "method": "findAndFocusOption",
776
- "target": undefined,
777
- "capture": false,
778
- "passive": false
779
- }, {
780
- "name": "wmOptionSelected",
781
- "method": "handleOptionSelection",
782
- "target": undefined,
783
- "capture": false,
784
- "passive": false
785
- }, {
786
- "name": "wmKeyUpPressed",
787
- "method": "handleChildUp",
788
- "target": undefined,
789
- "capture": false,
790
- "passive": false
791
- }, {
792
- "name": "wmKeyDownPressed",
793
- "method": "handleChildDown",
794
- "target": undefined,
795
- "capture": false,
796
- "passive": false
797
- }, {
798
- "name": "wmHomeKeyPressed",
799
- "method": "moveToFirstOption",
800
- "target": undefined,
801
- "capture": false,
802
- "passive": false
803
- }, {
804
- "name": "wmEndKeyPressed",
805
- "method": "moveToLastOption",
806
- "target": undefined,
807
- "capture": false,
808
- "passive": false
809
- }, {
810
- "name": "intCloneClicked",
811
- "method": "handleOptionCloneSelection",
812
- "target": undefined,
813
- "capture": false,
814
- "passive": false
815
- }];
816
- }
817
- }