@watermarkinsights/ripple 0.0.1 → 0.1.0-alpha.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.
Files changed (460) hide show
  1. package/dist/cjs/app-globals-3db2fdd3.js +103 -0
  2. package/dist/cjs/chartFunctions-0d47b1f4.js +906 -0
  3. package/dist/cjs/functions-761cb9f2.js +10694 -0
  4. package/dist/cjs/index-bb947bd5.js +1843 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/interfaces-33cd6161.js +82 -0
  7. package/dist/cjs/intl-9e9388a7.js +291 -0
  8. package/dist/cjs/loader.cjs.js +15 -0
  9. package/dist/cjs/priv-calendar.cjs.entry.js +580 -0
  10. package/dist/cjs/priv-chart-popover-old.cjs.entry.js +146 -0
  11. package/dist/cjs/priv-chart-popover_2.cjs.entry.js +204 -0
  12. package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
  13. package/dist/cjs/priv-navigator-item.cjs.entry.js +35 -0
  14. package/dist/cjs/priv-option-list.cjs.entry.js +391 -0
  15. package/dist/cjs/ripple.cjs.js +25 -0
  16. package/dist/cjs/wm-action-menu_2.cjs.entry.js +525 -0
  17. package/dist/cjs/wm-button.cjs.entry.js +280 -0
  18. package/dist/cjs/wm-chart-bar.cjs.entry.js +444 -0
  19. package/dist/cjs/wm-chart-column.cjs.entry.js +629 -0
  20. package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
  21. package/dist/cjs/wm-chart-stack.cjs.entry.js +447 -0
  22. package/dist/cjs/wm-chart.cjs.entry.js +163 -0
  23. package/dist/cjs/wm-date-range.cjs.entry.js +591 -0
  24. package/dist/cjs/wm-datepicker.cjs.entry.js +399 -0
  25. package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-file-list.cjs.entry.js} +15 -24
  26. package/dist/cjs/wm-file.cjs.entry.js +210 -0
  27. package/dist/cjs/wm-flyout.cjs.entry.js +178 -0
  28. package/dist/{ripple/wm-modal.entry.js → cjs/wm-input.cjs.entry.js} +108 -110
  29. package/dist/cjs/wm-line-chart.cjs.entry.js +541 -0
  30. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +220 -0
  31. package/dist/cjs/wm-modal_3.cjs.entry.js +238 -0
  32. package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
  33. package/dist/cjs/wm-navigator.cjs.entry.js +334 -0
  34. package/dist/cjs/wm-nested-select.cjs.entry.js +322 -0
  35. package/dist/{ripple/wm-textarea.entry.js → cjs/wm-optgroup.cjs.entry.js} +62 -57
  36. package/dist/cjs/wm-option_2.cjs.entry.js +536 -0
  37. package/dist/{ripple/wm-navigation.entry.js → cjs/wm-pagination.cjs.entry.js} +204 -91
  38. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
  39. package/dist/{ripple/wm-flyout.entry.js → cjs/wm-search.cjs.entry.js} +168 -139
  40. package/dist/{ripple/wm-datepicker.entry.js → cjs/wm-snackbar.cjs.entry.js} +152 -223
  41. package/dist/cjs/wm-tab-item_3.cjs.entry.js +357 -0
  42. package/dist/cjs/wm-tag-input.cjs.entry.js +985 -0
  43. package/dist/cjs/wm-tag-option.cjs.entry.js +51 -0
  44. package/dist/{ripple/wm-modal-pss.entry.js → cjs/wm-textarea.cjs.entry.js} +70 -111
  45. package/dist/{ripple/wm-progress-indicator.entry.js → cjs/wm-timepicker.cjs.entry.js} +296 -78
  46. package/dist/cjs/wm-toggletip.cjs.entry.js +252 -0
  47. package/dist/cjs/wm-uploader.cjs.entry.js +341 -0
  48. package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
  49. package/dist/collection/collection-manifest.json +207 -0
  50. package/dist/collection/components/charts/chartFunctions.js +831 -0
  51. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +995 -0
  52. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +345 -0
  53. package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +990 -0
  54. package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +268 -0
  55. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +177 -0
  56. package/dist/collection/components/charts/wm-chart/wm-chart.css +1326 -0
  57. package/dist/collection/components/charts/wm-chart/wm-chart.js +549 -0
  58. package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1236 -0
  59. package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +725 -0
  60. package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +1335 -0
  61. package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +914 -0
  62. package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +1006 -0
  63. package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +310 -0
  64. package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.css +1466 -0
  65. package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.js +709 -0
  66. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1208 -0
  67. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +999 -0
  68. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1326 -0
  69. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +320 -0
  70. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +967 -0
  71. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +232 -0
  72. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +167 -0
  73. package/dist/collection/components/datepickers/datepicker.css +1147 -0
  74. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1415 -0
  75. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +857 -0
  76. package/dist/collection/components/datepickers/wm-date-range.js +1158 -0
  77. package/dist/collection/components/datepickers/wm-datepicker.js +875 -0
  78. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +999 -0
  79. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +784 -0
  80. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1259 -0
  81. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +805 -0
  82. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +909 -0
  83. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +363 -0
  84. package/dist/collection/components/selects/wm-option/wm-option.css +1033 -0
  85. package/dist/collection/components/selects/wm-option/wm-option.js +665 -0
  86. package/dist/collection/components/selects/wm-select/wm-select.css +1174 -0
  87. package/dist/collection/components/selects/wm-select/wm-select.js +878 -0
  88. package/dist/collection/components/wm-action-menu/wm-action-menu.css +1690 -0
  89. package/dist/collection/components/wm-action-menu/wm-action-menu.js +932 -0
  90. package/dist/collection/components/wm-button/wm-button.css +1630 -0
  91. package/dist/collection/components/wm-button/wm-button.js +794 -0
  92. package/dist/collection/components/wm-file/wm-file.css +1086 -0
  93. package/dist/collection/components/wm-file/wm-file.js +536 -0
  94. package/dist/collection/components/wm-file-list/wm-file-list.css +899 -0
  95. package/dist/collection/components/wm-file-list/wm-file-list.js +118 -0
  96. package/dist/collection/components/wm-flyout/wm-flyout.css +1091 -0
  97. package/dist/collection/components/wm-flyout/wm-flyout.js +651 -0
  98. package/dist/collection/components/wm-input/wm-input.css +1095 -0
  99. package/dist/collection/components/wm-input/wm-input.js +653 -0
  100. package/dist/collection/components/wm-menuitem/wm-menuitem.css +982 -0
  101. package/dist/collection/components/wm-menuitem/wm-menuitem.js +515 -0
  102. package/dist/collection/components/wm-modal/wm-modal-footer.css +927 -0
  103. package/dist/collection/components/wm-modal/wm-modal-footer.js +199 -0
  104. package/dist/collection/components/wm-modal/wm-modal-header.css +926 -0
  105. package/dist/collection/components/wm-modal/wm-modal-header.js +110 -0
  106. package/dist/collection/components/wm-modal/wm-modal.css +983 -0
  107. package/dist/collection/components/wm-modal/wm-modal.js +534 -0
  108. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +931 -0
  109. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +142 -0
  110. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +925 -0
  111. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
  112. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1007 -0
  113. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
  114. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +926 -0
  115. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +153 -0
  116. package/dist/collection/components/wm-navigation/wm-navigation-item.css +935 -0
  117. package/dist/collection/components/wm-navigation/wm-navigation-item.js +140 -0
  118. package/dist/collection/components/wm-navigation/wm-navigation.css +977 -0
  119. package/dist/collection/components/wm-navigation/wm-navigation.js +246 -0
  120. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +929 -0
  121. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
  122. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +918 -0
  123. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +128 -0
  124. package/dist/collection/components/wm-navigator/wm-navigator.css +990 -0
  125. package/dist/collection/components/wm-navigator/wm-navigator.js +597 -0
  126. package/dist/collection/components/wm-pagination/wm-pagination.css +1044 -0
  127. package/dist/collection/components/wm-pagination/wm-pagination.js +487 -0
  128. package/dist/collection/components/wm-search/wm-search.css +983 -0
  129. package/dist/collection/components/wm-search/wm-search.js +604 -0
  130. package/dist/collection/components/wm-snackbar/wm-snackbar.css +1150 -0
  131. package/dist/collection/components/wm-snackbar/wm-snackbar.js +363 -0
  132. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +958 -0
  133. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +233 -0
  134. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +966 -0
  135. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +461 -0
  136. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +906 -0
  137. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +132 -0
  138. package/dist/collection/components/wm-tag-input/wm-tag-input.css +1423 -0
  139. package/dist/collection/components/wm-tag-input/wm-tag-input.js +1511 -0
  140. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +328 -0
  141. package/dist/collection/components/wm-textarea/wm-textarea.css +1065 -0
  142. package/dist/collection/components/wm-textarea/wm-textarea.js +423 -0
  143. package/dist/collection/components/wm-timepicker/wm-timepicker.css +1174 -0
  144. package/dist/collection/components/wm-timepicker/wm-timepicker.js +728 -0
  145. package/dist/collection/components/wm-toggletip/wm-toggletip.css +1296 -0
  146. package/dist/collection/components/wm-toggletip/wm-toggletip.js +455 -0
  147. package/dist/collection/components/wm-uploader/wm-uploader.css +1987 -0
  148. package/dist/collection/components/wm-uploader/wm-uploader.js +760 -0
  149. package/dist/collection/components/wm-wrapper/wm-wrapper.js +31 -0
  150. package/dist/collection/dev/action-menu.js +18 -0
  151. package/dist/collection/dev/button.js +12 -0
  152. package/dist/collection/dev/chart-bar.js +430 -0
  153. package/dist/collection/dev/chart-column.js +459 -0
  154. package/dist/collection/dev/chart-small.js +56 -0
  155. package/dist/collection/dev/chart-stack.js +205 -0
  156. package/dist/collection/dev/chart.js +18 -0
  157. package/dist/collection/dev/date-range.js +14 -0
  158. package/dist/collection/dev/datepicker.js +46 -0
  159. package/dist/collection/dev/file-list.js +16 -0
  160. package/dist/collection/dev/file.js +0 -0
  161. package/dist/collection/dev/flyout.js +194 -0
  162. package/dist/collection/dev/input.js +6 -0
  163. package/dist/collection/dev/line-chart.js +45 -0
  164. package/dist/collection/dev/modal.js +48 -0
  165. package/dist/collection/dev/navigation.js +13 -0
  166. package/dist/collection/dev/navigator.js +34 -0
  167. package/dist/collection/dev/nested-select.js +36 -0
  168. package/dist/collection/dev/pagination.js +7 -0
  169. package/dist/collection/dev/progress-monitor.js +0 -0
  170. package/dist/collection/dev/pss-modal.js +8 -0
  171. package/dist/collection/dev/scripts.js +49 -0
  172. package/dist/collection/dev/search.js +72 -0
  173. package/dist/collection/dev/select.js +57 -0
  174. package/dist/collection/dev/snackbar.js +68 -0
  175. package/dist/collection/dev/tabs.js +44 -0
  176. package/dist/collection/dev/tag-input.js +32 -0
  177. package/dist/collection/dev/textarea.js +28 -0
  178. package/dist/collection/dev/timepicker.js +32 -0
  179. package/dist/collection/dev/toggletip.js +9 -0
  180. package/dist/collection/dev/uploader.js +139 -0
  181. package/dist/collection/global/__mocks__/functions.js +6 -0
  182. package/dist/collection/global/functions.js +907 -0
  183. package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +16 -87
  184. package/dist/collection/global/interfaces.js +94 -0
  185. package/dist/collection/global/intl.js +281 -0
  186. package/dist/collection/global/services/__mocks__/http-service.js +130 -0
  187. package/dist/collection/global/services/http-service.js +50 -0
  188. package/dist/collection/lang/lang.js +5 -0
  189. package/dist/collection/lang/missing.js +43 -0
  190. package/dist/collection/lang/piglatin.js +101 -0
  191. package/dist/docs/docs.d.ts +435 -0
  192. package/dist/docs/docs.json +14178 -0
  193. package/dist/docs/props-reference.json +2079 -0
  194. package/dist/docs/skill/index.md +33 -0
  195. package/dist/docs/skill/wm-action-menu.md +116 -0
  196. package/dist/docs/skill/wm-button.md +121 -0
  197. package/dist/docs/skill/wm-chart-bar.md +156 -0
  198. package/dist/docs/skill/wm-chart-column.md +122 -0
  199. package/dist/docs/skill/wm-chart-legend.md +91 -0
  200. package/dist/docs/skill/wm-chart-slice.md +101 -0
  201. package/dist/docs/skill/wm-chart-stack.md +147 -0
  202. package/dist/docs/skill/wm-chart.md +139 -0
  203. package/dist/docs/skill/wm-date-range.md +176 -0
  204. package/dist/docs/skill/wm-datepicker.md +153 -0
  205. package/dist/docs/skill/wm-file-list.md +105 -0
  206. package/dist/docs/skill/wm-file.md +91 -0
  207. package/dist/docs/skill/wm-flyout.md +209 -0
  208. package/dist/docs/skill/wm-input.md +134 -0
  209. package/dist/docs/skill/wm-line-chart.md +135 -0
  210. package/dist/docs/skill/wm-menuitem.md +64 -0
  211. package/dist/docs/skill/wm-modal-footer.md +81 -0
  212. package/dist/docs/skill/wm-modal-header.md +71 -0
  213. package/dist/docs/skill/wm-modal.md +172 -0
  214. package/dist/docs/skill/wm-navigation-hamburger.md +61 -0
  215. package/dist/docs/skill/wm-navigation-item.md +78 -0
  216. package/dist/docs/skill/wm-navigation.md +82 -0
  217. package/dist/docs/skill/wm-navigator.md +106 -0
  218. package/dist/docs/skill/wm-nested-select.md +160 -0
  219. package/dist/docs/skill/wm-optgroup.md +72 -0
  220. package/dist/docs/skill/wm-option.md +67 -0
  221. package/dist/docs/skill/wm-pagination.md +114 -0
  222. package/dist/docs/skill/wm-progress-indicator.md +75 -0
  223. package/dist/docs/skill/wm-progress-monitor.md +120 -0
  224. package/dist/docs/skill/wm-progress-slice.md +67 -0
  225. package/dist/docs/skill/wm-search.md +180 -0
  226. package/dist/docs/skill/wm-select.md +169 -0
  227. package/dist/docs/skill/wm-snackbar.md +130 -0
  228. package/dist/docs/skill/wm-tab-item.md +45 -0
  229. package/dist/docs/skill/wm-tab-list.md +139 -0
  230. package/dist/docs/skill/wm-tab-panel.md +39 -0
  231. package/dist/docs/skill/wm-tag-input.md +187 -0
  232. package/dist/docs/skill/wm-tag-option.md +60 -0
  233. package/dist/docs/skill/wm-textarea.md +102 -0
  234. package/dist/docs/skill/wm-timepicker.md +156 -0
  235. package/dist/docs/skill/wm-toggletip.md +98 -0
  236. package/dist/docs/skill/wm-uploader.md +154 -0
  237. package/dist/docs/skill/wm-wrapper.md +5 -0
  238. package/dist/esm/app-globals-a1092590.js +101 -0
  239. package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-58637dc9.js} +159 -3
  240. package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-65f1594c.js} +374 -7830
  241. package/dist/esm/index-3425d80d.js +1813 -0
  242. package/dist/esm/index.js +1 -0
  243. package/dist/esm/interfaces-8778346d.js +77 -0
  244. package/dist/{ripple/intl-7p27BJSM.js → esm/intl-d518f362.js} +11 -4
  245. package/dist/esm/loader.js +11 -0
  246. package/dist/{ripple → esm}/priv-calendar.entry.js +143 -133
  247. package/dist/esm/priv-chart-popover-old.entry.js +142 -0
  248. package/dist/esm/priv-chart-popover_2.entry.js +199 -0
  249. package/dist/{ripple → esm}/priv-navigator-button.entry.js +5 -4
  250. package/dist/{ripple → esm}/priv-navigator-item.entry.js +5 -4
  251. package/dist/{ripple → esm}/priv-option-list.entry.js +18 -16
  252. package/dist/esm/ripple.js +20 -0
  253. package/dist/esm/wm-action-menu_2.entry.js +520 -0
  254. package/dist/{ripple/wm-modal-header.entry.js → esm/wm-button.entry.js} +264 -24
  255. package/dist/esm/wm-chart-bar.entry.js +440 -0
  256. package/dist/esm/wm-chart-column.entry.js +625 -0
  257. package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
  258. package/dist/esm/wm-chart-stack.entry.js +443 -0
  259. package/dist/esm/wm-chart.entry.js +159 -0
  260. package/dist/{ripple → esm}/wm-date-range.entry.js +224 -114
  261. package/dist/esm/wm-datepicker.entry.js +395 -0
  262. package/dist/{ripple → esm}/wm-file-list.entry.js +5 -4
  263. package/dist/{ripple → esm}/wm-file.entry.js +48 -24
  264. package/dist/esm/wm-flyout.entry.js +174 -0
  265. package/dist/{ripple → esm}/wm-input.entry.js +23 -7
  266. package/dist/{ripple → esm}/wm-line-chart.entry.js +182 -94
  267. package/dist/esm/wm-modal-pss_3.entry.js +214 -0
  268. package/dist/esm/wm-modal_3.entry.js +232 -0
  269. package/dist/esm/wm-navigation_3.entry.js +182 -0
  270. package/dist/{ripple → esm}/wm-navigator.entry.js +26 -64
  271. package/dist/{ripple → esm}/wm-nested-select.entry.js +35 -25
  272. package/dist/{ripple → esm}/wm-optgroup.entry.js +17 -5
  273. package/dist/esm/wm-option_2.entry.js +531 -0
  274. package/dist/{ripple → esm}/wm-pagination.entry.js +16 -14
  275. package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
  276. package/dist/{ripple → esm}/wm-search.entry.js +15 -31
  277. package/dist/{ripple → esm}/wm-snackbar.entry.js +32 -45
  278. package/dist/esm/wm-tab-item_3.entry.js +351 -0
  279. package/dist/{ripple → esm}/wm-tag-input.entry.js +169 -65
  280. package/dist/{ripple → esm}/wm-tag-option.entry.js +14 -2
  281. package/dist/{ripple/wm-menuitem.entry.js → esm/wm-textarea.entry.js} +65 -100
  282. package/dist/{ripple → esm}/wm-timepicker.entry.js +33 -12
  283. package/dist/{ripple → esm}/wm-toggletip.entry.js +105 -33
  284. package/dist/esm/wm-uploader.entry.js +337 -0
  285. package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
  286. package/dist/index.cjs.js +1 -0
  287. package/dist/index.js +1 -0
  288. package/dist/loader/cdn.js +1 -0
  289. package/dist/loader/index.cjs.js +1 -0
  290. package/dist/loader/index.d.ts +24 -0
  291. package/dist/loader/index.es2017.js +1 -0
  292. package/dist/loader/index.js +2 -0
  293. package/dist/loader/package.json +11 -0
  294. package/dist/ripple/index.esm.js +0 -1
  295. package/dist/ripple/p-0d364411.entry.js +1 -0
  296. package/dist/ripple/p-156c4d1d.entry.js +1 -0
  297. package/dist/ripple/{wm-modal-footer.entry.js → p-26d8c356.entry.js} +1 -44
  298. package/dist/ripple/p-2b23ce49.entry.js +1 -0
  299. package/dist/ripple/p-2b7cc2c1.entry.js +1 -0
  300. package/dist/ripple/p-34bde06a.entry.js +1 -0
  301. package/dist/ripple/p-35db9386.entry.js +1 -0
  302. package/dist/ripple/p-38a987ac.entry.js +1 -0
  303. package/dist/ripple/p-38b05894.entry.js +1 -0
  304. package/dist/ripple/p-38dee4ab.entry.js +1 -0
  305. package/dist/ripple/p-3a19d019.entry.js +1 -0
  306. package/dist/ripple/p-451d4de2.js +1 -0
  307. package/dist/ripple/p-507f2cf4.entry.js +1 -0
  308. package/dist/ripple/p-59f74ead.entry.js +1 -0
  309. package/dist/ripple/p-5c2fc42a.entry.js +1 -0
  310. package/dist/ripple/p-680d7606.entry.js +1 -0
  311. package/dist/ripple/p-683264db.js +1 -0
  312. package/dist/ripple/p-6db681c8.entry.js +1 -0
  313. package/dist/ripple/p-6e3c2bbc.js +1 -0
  314. package/dist/ripple/p-6f1cabab.entry.js +1 -0
  315. package/dist/ripple/p-72d135ee.entry.js +1 -0
  316. package/dist/ripple/p-7799953c.entry.js +1 -0
  317. package/dist/ripple/p-83c3db60.js +2 -0
  318. package/dist/ripple/{wm-progress-monitor.entry.js → p-83cdad78.entry.js} +1 -71
  319. package/dist/ripple/p-87ef0cfa.entry.js +1 -0
  320. package/dist/ripple/p-88e44511.entry.js +1 -0
  321. package/dist/ripple/p-8f8e4eb8.entry.js +1 -0
  322. package/dist/ripple/p-936adffb.entry.js +1 -0
  323. package/dist/ripple/p-9755192c.entry.js +1 -0
  324. package/dist/ripple/p-9c5c591b.js +1 -0
  325. package/dist/ripple/p-9ea38d96.entry.js +1 -0
  326. package/dist/ripple/p-be3e4e7c.entry.js +1 -0
  327. package/dist/ripple/p-c9c7df12.entry.js +1 -0
  328. package/dist/ripple/p-d7a1be0b.entry.js +1 -0
  329. package/dist/ripple/p-dab86523.entry.js +1 -0
  330. package/dist/ripple/{wm-tab-list.entry.js → p-e4aa6e27.entry.js} +1 -175
  331. package/dist/ripple/p-ebe9f38c.js +1 -0
  332. package/dist/ripple/p-ed053612.entry.js +1 -0
  333. package/dist/ripple/p-f43f621b.entry.js +1 -0
  334. package/dist/ripple/p-f48d30d6.entry.js +1 -0
  335. package/dist/ripple/{wm-action-menu.entry.js → p-f6aad57c.entry.js} +1 -201
  336. package/dist/ripple/p-f6e1beb5.entry.js +1 -0
  337. package/dist/ripple/p-fc843bb8.entry.js +1 -0
  338. package/dist/ripple/{priv-chart-popover.entry.js → p-fd997764.entry.js} +1 -134
  339. package/dist/ripple/p-fffb46ad.entry.js +1 -0
  340. package/dist/ripple/ripple.esm.js +1 -48
  341. package/dist/types/components/charts/chartFunctions.d.ts +15 -2
  342. package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +25 -11
  343. package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +31 -0
  344. package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
  345. package/dist/types/components/charts/wm-chart/wm-chart.d.ts +113 -1
  346. package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +195 -0
  347. package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +184 -0
  348. package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +110 -0
  349. package/dist/types/components/charts/wm-chart-stack/wm-chart-stack.d.ts +194 -0
  350. package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +156 -11
  351. package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +53 -1
  352. package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +85 -0
  353. package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
  354. package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +19 -3
  355. package/dist/types/components/datepickers/wm-date-range.d.ts +205 -14
  356. package/dist/types/components/datepickers/wm-datepicker.d.ts +189 -11
  357. package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
  358. package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +165 -1
  359. package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
  360. package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
  361. package/dist/types/components/selects/wm-select/wm-select.d.ts +193 -12
  362. package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +207 -2
  363. package/dist/types/components/wm-button/wm-button.d.ts +191 -0
  364. package/dist/types/components/wm-file/wm-file.d.ts +110 -1
  365. package/dist/types/components/wm-file-list/wm-file-list.d.ts +72 -0
  366. package/dist/types/components/wm-flyout/wm-flyout.d.ts +205 -0
  367. package/dist/types/components/wm-input/wm-input.d.ts +161 -1
  368. package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +79 -0
  369. package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
  370. package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
  371. package/dist/types/components/wm-modal/wm-modal.d.ts +160 -0
  372. package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
  373. package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
  374. package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +6 -0
  375. package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
  376. package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
  377. package/dist/types/components/wm-navigation/wm-navigation.d.ts +57 -0
  378. package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
  379. package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
  380. package/dist/types/components/wm-navigator/wm-navigator.d.ts +93 -4
  381. package/dist/types/components/wm-pagination/wm-pagination.d.ts +100 -1
  382. package/dist/types/components/wm-search/wm-search.d.ts +158 -6
  383. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +103 -1
  384. package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +55 -3
  385. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +119 -20
  386. package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +35 -2
  387. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +199 -5
  388. package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
  389. package/dist/types/components/wm-textarea/wm-textarea.d.ts +99 -0
  390. package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +147 -0
  391. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +88 -2
  392. package/dist/types/components/wm-uploader/wm-uploader.d.ts +145 -3
  393. package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
  394. package/dist/types/components.d.ts +11523 -95
  395. package/dist/types/global/functions.d.ts +7 -2
  396. package/dist/types/global/interfaces.d.ts +92 -2
  397. package/dist/types/global/intl.d.ts +3 -0
  398. package/dist/types/stencil-public-runtime.d.ts +0 -28
  399. package/package.json +4 -33
  400. package/dist/components/index.d.ts +0 -33
  401. package/dist/components/priv-calendar.d.ts +0 -11
  402. package/dist/components/priv-chart-popover.d.ts +0 -11
  403. package/dist/components/priv-navigator-button.d.ts +0 -11
  404. package/dist/components/priv-navigator-item.d.ts +0 -11
  405. package/dist/components/priv-option-list.d.ts +0 -11
  406. package/dist/components/wm-action-menu.d.ts +0 -11
  407. package/dist/components/wm-button.d.ts +0 -11
  408. package/dist/components/wm-chart-slice.d.ts +0 -11
  409. package/dist/components/wm-chart.d.ts +0 -11
  410. package/dist/components/wm-date-range.d.ts +0 -11
  411. package/dist/components/wm-datepicker.d.ts +0 -11
  412. package/dist/components/wm-file-list.d.ts +0 -11
  413. package/dist/components/wm-file.d.ts +0 -11
  414. package/dist/components/wm-flyout.d.ts +0 -11
  415. package/dist/components/wm-input.d.ts +0 -11
  416. package/dist/components/wm-line-chart.d.ts +0 -11
  417. package/dist/components/wm-menuitem.d.ts +0 -11
  418. package/dist/components/wm-modal-footer.d.ts +0 -11
  419. package/dist/components/wm-modal-header.d.ts +0 -11
  420. package/dist/components/wm-modal-pss-footer.d.ts +0 -11
  421. package/dist/components/wm-modal-pss-header.d.ts +0 -11
  422. package/dist/components/wm-modal-pss.d.ts +0 -11
  423. package/dist/components/wm-modal.d.ts +0 -11
  424. package/dist/components/wm-navigation-hamburger.d.ts +0 -11
  425. package/dist/components/wm-navigation-item.d.ts +0 -11
  426. package/dist/components/wm-navigation.d.ts +0 -11
  427. package/dist/components/wm-navigator.d.ts +0 -11
  428. package/dist/components/wm-nested-select.d.ts +0 -11
  429. package/dist/components/wm-optgroup.d.ts +0 -11
  430. package/dist/components/wm-option.d.ts +0 -11
  431. package/dist/components/wm-pagination.d.ts +0 -11
  432. package/dist/components/wm-progress-indicator.d.ts +0 -11
  433. package/dist/components/wm-progress-monitor.d.ts +0 -11
  434. package/dist/components/wm-progress-slice.d.ts +0 -11
  435. package/dist/components/wm-search.d.ts +0 -11
  436. package/dist/components/wm-select.d.ts +0 -11
  437. package/dist/components/wm-snackbar.d.ts +0 -11
  438. package/dist/components/wm-tab-item.d.ts +0 -11
  439. package/dist/components/wm-tab-list.d.ts +0 -11
  440. package/dist/components/wm-tab-panel.d.ts +0 -11
  441. package/dist/components/wm-tag-input.d.ts +0 -11
  442. package/dist/components/wm-tag-option.d.ts +0 -11
  443. package/dist/components/wm-textarea.d.ts +0 -11
  444. package/dist/components/wm-timepicker.d.ts +0 -11
  445. package/dist/components/wm-toggletip.d.ts +0 -11
  446. package/dist/components/wm-uploader.d.ts +0 -11
  447. package/dist/components/wm-wrapper.d.ts +0 -11
  448. package/dist/ripple/index-CU5QNCKv.js +0 -4167
  449. package/dist/ripple/interfaces-CrANcZM9.js +0 -53
  450. package/dist/ripple/wm-button.entry.js +0 -197
  451. package/dist/ripple/wm-chart.entry.js +0 -157
  452. package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
  453. package/dist/ripple/wm-modal-pss-header.entry.js +0 -39
  454. package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
  455. package/dist/ripple/wm-navigation-item.entry.js +0 -18
  456. package/dist/ripple/wm-option.entry.js +0 -171
  457. package/dist/ripple/wm-progress-slice.entry.js +0 -13
  458. package/dist/ripple/wm-select.entry.js +0 -249
  459. package/dist/ripple/wm-tab-item.entry.js +0 -63
  460. package/dist/ripple/wm-uploader.entry.js +0 -313
@@ -0,0 +1,784 @@
1
+ import { h, forceUpdate } from "@stencil/core";
2
+ import { debounce, isElOrChild } from "../../../global/functions";
3
+ import { selectMessages } from "../../../global/intl";
4
+ /**
5
+ * @internal
6
+ * @description Internal listbox, search field, and Select All button used by wm-select,
7
+ * wm-nested-select, and wm-optgroup. Manages keyboard navigation, option filtering, and
8
+ * clone options for multiselect. Not for direct application use.
9
+ */
10
+ export class PrivOptionList {
11
+ constructor() {
12
+ this.searchIndex = 0;
13
+ this.keysSoFar = "";
14
+ this.debouncedSearch = debounce(() => {
15
+ this.searchTerm = this.searchFieldEl.value;
16
+ this.optionListSearchChanged.emit({ searchTerm: this.searchTerm });
17
+ if (this.filteredOptions.length) {
18
+ this.announce(selectMessages.getSearchResultsFound(this.filteredOptions.length));
19
+ }
20
+ else {
21
+ this.announce(selectMessages.noSearchResults);
22
+ }
23
+ }, 150);
24
+ this.debouncedClearKeysSoFar = debounce(() => {
25
+ this.keysSoFar = "";
26
+ }, 500);
27
+ this.multiple = false;
28
+ this.search = false;
29
+ this.selectAll = false;
30
+ this.searchPlaceholder = undefined;
31
+ this.optgroupLabel = undefined;
32
+ this.maxHeight = undefined;
33
+ this.upwardsHeightLimit = null;
34
+ this.announcement = "";
35
+ this.searchTerm = "";
36
+ }
37
+ get childOptions() {
38
+ return Array.from(this.el.getRootNode().host.querySelectorAll("wm-option"));
39
+ }
40
+ get cloneOptions() {
41
+ return Array.from(this.el.querySelectorAll("wm-option"));
42
+ }
43
+ get allOptionEls() {
44
+ // this includes both slotted wm-options and internally created wm-options
45
+ return this.cloneOptions.concat(this.childOptions);
46
+ }
47
+ get isInNestedSelect() {
48
+ return !!this.optgroupLabel;
49
+ }
50
+ get visibleOptionEls() {
51
+ return this.allOptionEls.filter((option) => !option.classList.contains("hidden") && !option.classList.contains("filtered-out"));
52
+ }
53
+ //////////////////////////////////////
54
+ // for search variants
55
+ get filteredOptions() {
56
+ return this.childOptions.filter((option) => { var _a; return (_a = option.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.searchTerm.toLowerCase()); });
57
+ }
58
+ //////////////////////////////////////
59
+ //////////////////////////////////////
60
+ // for multiselect button text
61
+ get selectedOptions() {
62
+ return Array.from(this.el.querySelectorAll("wm-option")).filter((x) => x.selected);
63
+ }
64
+ get visibleSelectAllButton() {
65
+ return this.selectAll && this.multiple && this.searchTerm === "";
66
+ }
67
+ get allSelected() {
68
+ return this.childOptions.every((option) => option.selected);
69
+ }
70
+ //////////////////////////////////////
71
+ get effectiveMaxHeight() {
72
+ let result = this.maxHeight;
73
+ if (this.upwardsHeightLimit && this.el.parentElement.clientHeight > this.upwardsHeightLimit) {
74
+ result = `${this.upwardsHeightLimit -
75
+ (this.isInNestedSelect ? this.returnBtnEl.clientHeight : 0) -
76
+ (this.selectAll ? this.selectAllEl.clientHeight : 0) -
77
+ (this.search ? this.searchFieldWrapperEl.clientHeight : 0)}px`;
78
+ }
79
+ return result;
80
+ }
81
+ findAndFocusOption(ev) {
82
+ const letterPressed = ev.detail.letter.toLowerCase();
83
+ const optionPressed = ev.detail.optionEl;
84
+ if (!this.keysSoFar && letterPressed == " ") {
85
+ // if the first key entered is space, treat as a click. Otherwise include in
86
+ optionPressed.click();
87
+ }
88
+ else {
89
+ if (!this.keysSoFar) {
90
+ // if first character entered, set currently focused option as the starting index for the search
91
+ this.visibleOptionEls.forEach((option, idx) => {
92
+ if (option.focused) {
93
+ this.searchIndex = idx;
94
+ }
95
+ });
96
+ }
97
+ this.keysSoFar += letterPressed;
98
+ let nextMatch = this.findMatchInRange(this.visibleOptionEls, this.searchIndex + 1, this.visibleOptionEls.length);
99
+ if (!nextMatch) {
100
+ // if match can't be found from starting option downwards, search from top
101
+ nextMatch = this.findMatchInRange(this.visibleOptionEls, 0, this.searchIndex);
102
+ }
103
+ if (nextMatch) {
104
+ // findMatchInRange still might have returned null, only focus if match found
105
+ this.focusOption(nextMatch);
106
+ }
107
+ this.debouncedClearKeysSoFar();
108
+ }
109
+ }
110
+ handleOptionSelection(ev) {
111
+ this.focusOption(ev.detail);
112
+ }
113
+ handleChildUp(ev) {
114
+ this.moveUp(ev.detail);
115
+ }
116
+ handleChildDown(ev) {
117
+ this.moveDown(ev.detail);
118
+ }
119
+ moveToFirstOption() {
120
+ this.focusOption(this.visibleOptionEls[0]);
121
+ }
122
+ moveToLastOption() {
123
+ this.focusOption(this.visibleOptionEls[this.visibleOptionEls.length - 1]);
124
+ }
125
+ handleOptionCloneSelection(ev) {
126
+ const correspondingOption = this.findCorrespondingOption(ev.detail);
127
+ correspondingOption.click();
128
+ }
129
+ componentDidLoad() {
130
+ if (this.multiple) {
131
+ this.updateOptionVisibility();
132
+ }
133
+ }
134
+ async handleChildChange() {
135
+ // on update of wm-options selected state, rerender to update clones state
136
+ forceUpdate(this.el);
137
+ }
138
+ async clearSearch() {
139
+ if (this.search) {
140
+ this.searchFieldEl.value = "";
141
+ this.searchTerm = "";
142
+ this.optionListSearchChanged.emit({ searchTerm: this.searchTerm });
143
+ }
144
+ }
145
+ async focusOption(option) {
146
+ this.allOptionEls.forEach((i) => (i.focused = i === option));
147
+ // option must be scrolledIntoView before focused
148
+ // 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
149
+ option.scrollIntoView({ block: "nearest" });
150
+ // 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))
151
+ // when opening the dropdown, scrollIntoView must be delayed to a point where the browser recognizes content within it as able to be scrolled to
152
+ // 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
153
+ window.setTimeout(() => option.scrollIntoView({ block: "nearest" }), 60);
154
+ option.focus();
155
+ }
156
+ async handleInitialFocus(optionToSelect) {
157
+ switch (optionToSelect) {
158
+ case "next":
159
+ // search variant focuses search field
160
+ // all others focus option "after" last selected option (this can be the first option)
161
+ if (this.search) {
162
+ this.searchFieldEl.focus();
163
+ this.listboxEl.scrollTop = 0;
164
+ }
165
+ else {
166
+ this.moveDown(this.visibleOptionEls.filter((x) => x.selected).slice(-1)[0]);
167
+ }
168
+ break;
169
+ case "previous":
170
+ // search variant focuses last option
171
+ // all others focus option "above" first selected option (this can be the last option)
172
+ if (this.search) {
173
+ this.focusOption(this.visibleOptionEls[this.visibleOptionEls.length - 1]);
174
+ }
175
+ else {
176
+ this.moveUp(this.visibleOptionEls.filter((x) => x.selected)[0]);
177
+ }
178
+ break;
179
+ default:
180
+ // search variant focuses search field
181
+ // all others focus the selected option
182
+ // if no option is selected (empty multiselect), focuses first option
183
+ if (this.search) {
184
+ this.searchFieldEl.focus();
185
+ this.listboxEl.scrollTop = 0;
186
+ }
187
+ else if (this.selectedOptions.length > 0) {
188
+ this.focusOption(this.visibleOptionEls.filter((x) => x.selected)[0]);
189
+ }
190
+ else {
191
+ this.focusOption(this.visibleOptionEls[0]);
192
+ }
193
+ break;
194
+ }
195
+ }
196
+ async unfocusAll() {
197
+ this.allOptionEls.map((i) => (i.focused = false));
198
+ }
199
+ findMatchInRange(list, startIndex, endIndex) {
200
+ let match = null;
201
+ let optionsInRange = list.slice(startIndex, endIndex);
202
+ // Find the first option starting with the keysSoFar substring, searching in
203
+ // the specified range of options
204
+ optionsInRange.forEach((option) => {
205
+ const label = option.textContent;
206
+ if (!match && label && label.toLowerCase().startsWith(this.keysSoFar)) {
207
+ match = option;
208
+ }
209
+ });
210
+ return match;
211
+ }
212
+ findCorrespondingOption(el) {
213
+ // if clone, returns the child wm-option
214
+ // if child wm-option, returns clone
215
+ const isClone = el.classList.contains("clone");
216
+ return isClone
217
+ ? this.childOptions[this.cloneOptions.indexOf(el)]
218
+ : this.cloneOptions[this.childOptions.indexOf(el)];
219
+ }
220
+ handleSearchFieldBlur(ev) {
221
+ this.searchFieldWrapperEl.classList.remove("focus");
222
+ if (isElOrChild(this.el, ev.relatedTarget)) {
223
+ // do not emit a blur event when moving from searchfield to options
224
+ ev.stopPropagation();
225
+ }
226
+ }
227
+ // on search field or select all. keydown on options is handled via events.
228
+ handleKeyDown(ev) {
229
+ const el = ev.target;
230
+ switch (ev.key) {
231
+ case "ArrowDown":
232
+ ev.preventDefault();
233
+ this.moveDown(ev.target);
234
+ break;
235
+ case "ArrowUp":
236
+ ev.preventDefault();
237
+ this.moveUp(ev.target);
238
+ break;
239
+ case "ArrowLeft":
240
+ if (this.isInNestedSelect && el != this.searchFieldEl) {
241
+ ev.preventDefault();
242
+ this.wmKeyLeftPressed.emit();
243
+ }
244
+ break;
245
+ case "Escape":
246
+ ev.preventDefault();
247
+ this.wmEscKeyPressed.emit();
248
+ break;
249
+ case "Enter":
250
+ if (el === this.selectAllEl) {
251
+ ev.preventDefault();
252
+ this.handleSelectAllClick();
253
+ this.close();
254
+ }
255
+ break;
256
+ case " ":
257
+ if (el === this.selectAllEl) {
258
+ ev.preventDefault();
259
+ this.handleSelectAllClick();
260
+ }
261
+ break;
262
+ }
263
+ }
264
+ close() {
265
+ this.listboxEl.scrollTop = 0;
266
+ if (this.multiple) {
267
+ this.updateOptionVisibility();
268
+ }
269
+ this.optionListCloseRequested.emit(); // what actually happens when a close is requested is determined by the parent
270
+ }
271
+ handleSelectAllClick() {
272
+ this.allSelected ? this.deselectAllOptions() : this.selectAllOptions();
273
+ }
274
+ selectAllOptions() {
275
+ this.announce(selectMessages.allOptionsSelectedMessage);
276
+ this.optionListAllSelected.emit();
277
+ }
278
+ deselectAllOptions() {
279
+ this.announce(selectMessages.allOptionsDeselectedMessage);
280
+ this.optionListAllDeselected.emit();
281
+ }
282
+ moveUp(el) {
283
+ const focusableEls = this.visibleOptionEls;
284
+ if (this.selectAllEl) {
285
+ focusableEls.unshift(this.selectAllEl);
286
+ }
287
+ if (this.searchFieldEl) {
288
+ focusableEls.unshift(this.searchFieldEl);
289
+ }
290
+ if (this.isInNestedSelect) {
291
+ focusableEls.unshift(this.returnBtnEl);
292
+ }
293
+ const prevEl = focusableEls[focusableEls.indexOf(el) - 1] || focusableEls[focusableEls.length - 1];
294
+ if (prevEl) {
295
+ this.focusOption(prevEl);
296
+ }
297
+ }
298
+ moveDown(el) {
299
+ const focusableEls = this.visibleOptionEls;
300
+ if (this.selectAllEl) {
301
+ focusableEls.unshift(this.selectAllEl);
302
+ }
303
+ if (this.searchFieldEl) {
304
+ focusableEls.unshift(this.searchFieldEl);
305
+ }
306
+ if (this.isInNestedSelect) {
307
+ focusableEls.unshift(this.returnBtnEl);
308
+ }
309
+ const nextEl = focusableEls[focusableEls.indexOf(el) + 1] || focusableEls[0];
310
+ if (nextEl) {
311
+ this.focusOption(nextEl);
312
+ }
313
+ }
314
+ async updateOptionVisibility() {
315
+ // this runs for search multiselects, where selected options are rendered at the top of the dropdown list
316
+ // slotted wm-options are hidden if selected, and clone wm-options are made visible if selected
317
+ this.childOptions.forEach((option, idx) => {
318
+ const cloneOption = this.cloneOptions[idx];
319
+ if (option.selected) {
320
+ option.classList.add("hidden");
321
+ cloneOption.classList.remove("hidden");
322
+ }
323
+ else {
324
+ option.classList.remove("hidden");
325
+ cloneOption.classList.add("hidden");
326
+ }
327
+ });
328
+ // find last visible clone option and apply .last class
329
+ const visibleCloneOptions = this.visibleOptionEls.filter((option) => option.classList.contains("clone"));
330
+ // if all options are clones, nothing to separate from
331
+ const allClones = visibleCloneOptions.length === this.visibleOptionEls.length;
332
+ visibleCloneOptions.forEach((option, idx) => {
333
+ if (!allClones && idx === visibleCloneOptions.length - 1) {
334
+ option.classList.add("last");
335
+ }
336
+ else {
337
+ option.classList.remove("last");
338
+ }
339
+ });
340
+ }
341
+ announce(message) {
342
+ // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
343
+ if (this.liveRegionEl.textContent === message) {
344
+ message += "\u00A0";
345
+ }
346
+ this.announcement = message;
347
+ }
348
+ renderReturnBtn() {
349
+ const selectionCount = this.childOptions.filter((o) => o.selected).length;
350
+ return (h("button", { ref: (el) => (this.returnBtnEl = el), id: "return-btn", class: "return-btn", onKeyDown: (ev) => this.handleKeyDown(ev), onClick: () => {
351
+ //@ts-ignore -- Check out this one weird trick TypeScript doesn't want you to know about
352
+ this.el.getRootNode().host.isExpanded = false;
353
+ } }, h("div", { class: "svg-icon svg-previous" }), h("div", { class: "return-btn-label" }, this.optgroupLabel, selectionCount > 0 && (h("span", { class: "selection-count" }, this.multiple
354
+ ? selectMessages.getOptgroupMultipleSelectionCount(selectionCount)
355
+ : selectMessages.optgroupSingleSelectionCount())), h("span", { class: "sr-only" }, "Back to top level"))));
356
+ }
357
+ renderSearchField() {
358
+ 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", "aria-controls": "list", onKeyDown: (ev) => this.handleKeyDown(ev), onFocus: () => this.searchFieldWrapperEl.classList.add("focus"), onBlur: (ev) => this.handleSearchFieldBlur(ev), onInput: () => this.debouncedSearch(), placeholder: this.searchPlaceholder }))));
359
+ }
360
+ renderSearchFailedMessage() {
361
+ return h("div", { class: "search-results-message" }, selectMessages.noSearchResults);
362
+ }
363
+ renderSelectAllButton() {
364
+ return (h("button", { ref: (el) => (this.selectAllEl = el), class: "select-all", onClick: () => this.handleSelectAllClick(), onKeyDown: (ev) => this.handleKeyDown(ev), tabindex: "-1" }, this.allSelected ? selectMessages.deselectAllMessage : selectMessages.selectAllMessage));
365
+ }
366
+ renderCloneOptions() {
367
+ return Array.from(this.childOptions).map((o) => {
368
+ const option = o;
369
+ return (h("wm-option", { class: "clone", subinfo: option.subinfo, selected: option.selected }, option.textContent));
370
+ });
371
+ }
372
+ renderNonOptions() {
373
+ return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
374
+ }
375
+ render() {
376
+ return (h("div", { key: 'bb355908bd82d64736fcc3793f33f3cfc1bb9fdc', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '94006991cf9a01edc1395cff5af6bb0983044ce0', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-label": this.optgroupLabel, 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: '5f3550b704d27cb7275c2a607e3a3d3f258af8e7' })), h("div", { key: 'e872ce1b3d01d6a5d03a538825d9e200d2998dbd', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
377
+ }
378
+ static get is() { return "priv-option-list"; }
379
+ static get originalStyleUrls() {
380
+ return {
381
+ "$": ["priv-option-list.scss"]
382
+ };
383
+ }
384
+ static get styleUrls() {
385
+ return {
386
+ "$": ["priv-option-list.css"]
387
+ };
388
+ }
389
+ static get properties() {
390
+ return {
391
+ "multiple": {
392
+ "type": "boolean",
393
+ "mutable": false,
394
+ "complexType": {
395
+ "original": "boolean",
396
+ "resolved": "boolean",
397
+ "references": {}
398
+ },
399
+ "required": false,
400
+ "optional": false,
401
+ "docs": {
402
+ "tags": [],
403
+ "text": ""
404
+ },
405
+ "attribute": "multiple",
406
+ "reflect": false,
407
+ "defaultValue": "false"
408
+ },
409
+ "search": {
410
+ "type": "boolean",
411
+ "mutable": false,
412
+ "complexType": {
413
+ "original": "boolean",
414
+ "resolved": "boolean",
415
+ "references": {}
416
+ },
417
+ "required": false,
418
+ "optional": false,
419
+ "docs": {
420
+ "tags": [],
421
+ "text": ""
422
+ },
423
+ "attribute": "search",
424
+ "reflect": false,
425
+ "defaultValue": "false"
426
+ },
427
+ "selectAll": {
428
+ "type": "boolean",
429
+ "mutable": false,
430
+ "complexType": {
431
+ "original": "boolean",
432
+ "resolved": "boolean",
433
+ "references": {}
434
+ },
435
+ "required": false,
436
+ "optional": false,
437
+ "docs": {
438
+ "tags": [],
439
+ "text": ""
440
+ },
441
+ "attribute": "select-all",
442
+ "reflect": false,
443
+ "defaultValue": "false"
444
+ },
445
+ "searchPlaceholder": {
446
+ "type": "string",
447
+ "mutable": false,
448
+ "complexType": {
449
+ "original": "string",
450
+ "resolved": "string | undefined",
451
+ "references": {}
452
+ },
453
+ "required": false,
454
+ "optional": true,
455
+ "docs": {
456
+ "tags": [],
457
+ "text": ""
458
+ },
459
+ "attribute": "search-placeholder",
460
+ "reflect": false
461
+ },
462
+ "optgroupLabel": {
463
+ "type": "string",
464
+ "mutable": false,
465
+ "complexType": {
466
+ "original": "string",
467
+ "resolved": "string | undefined",
468
+ "references": {}
469
+ },
470
+ "required": false,
471
+ "optional": true,
472
+ "docs": {
473
+ "tags": [],
474
+ "text": ""
475
+ },
476
+ "attribute": "optgroup-label",
477
+ "reflect": false
478
+ },
479
+ "maxHeight": {
480
+ "type": "string",
481
+ "mutable": false,
482
+ "complexType": {
483
+ "original": "string",
484
+ "resolved": "string",
485
+ "references": {}
486
+ },
487
+ "required": true,
488
+ "optional": false,
489
+ "docs": {
490
+ "tags": [],
491
+ "text": ""
492
+ },
493
+ "attribute": "max-height",
494
+ "reflect": false
495
+ },
496
+ "upwardsHeightLimit": {
497
+ "type": "number",
498
+ "mutable": false,
499
+ "complexType": {
500
+ "original": "number | null",
501
+ "resolved": "null | number",
502
+ "references": {}
503
+ },
504
+ "required": false,
505
+ "optional": false,
506
+ "docs": {
507
+ "tags": [],
508
+ "text": ""
509
+ },
510
+ "attribute": "upwards-height-limit",
511
+ "reflect": false,
512
+ "defaultValue": "null"
513
+ }
514
+ };
515
+ }
516
+ static get states() {
517
+ return {
518
+ "announcement": {},
519
+ "searchTerm": {}
520
+ };
521
+ }
522
+ static get events() {
523
+ return [{
524
+ "method": "optionListSearchChanged",
525
+ "name": "optionListSearchChanged",
526
+ "bubbles": true,
527
+ "cancelable": true,
528
+ "composed": true,
529
+ "docs": {
530
+ "tags": [],
531
+ "text": ""
532
+ },
533
+ "complexType": {
534
+ "original": "Object",
535
+ "resolved": "Object",
536
+ "references": {
537
+ "Object": {
538
+ "location": "global",
539
+ "id": "global::Object"
540
+ }
541
+ }
542
+ }
543
+ }, {
544
+ "method": "optionListCloseRequested",
545
+ "name": "optionListCloseRequested",
546
+ "bubbles": true,
547
+ "cancelable": true,
548
+ "composed": true,
549
+ "docs": {
550
+ "tags": [],
551
+ "text": ""
552
+ },
553
+ "complexType": {
554
+ "original": "any",
555
+ "resolved": "any",
556
+ "references": {}
557
+ }
558
+ }, {
559
+ "method": "optionListAllSelected",
560
+ "name": "optionListAllSelected",
561
+ "bubbles": true,
562
+ "cancelable": true,
563
+ "composed": true,
564
+ "docs": {
565
+ "tags": [],
566
+ "text": ""
567
+ },
568
+ "complexType": {
569
+ "original": "any",
570
+ "resolved": "any",
571
+ "references": {}
572
+ }
573
+ }, {
574
+ "method": "optionListAllDeselected",
575
+ "name": "optionListAllDeselected",
576
+ "bubbles": true,
577
+ "cancelable": true,
578
+ "composed": true,
579
+ "docs": {
580
+ "tags": [],
581
+ "text": ""
582
+ },
583
+ "complexType": {
584
+ "original": "any",
585
+ "resolved": "any",
586
+ "references": {}
587
+ }
588
+ }, {
589
+ "method": "wmEscKeyPressed",
590
+ "name": "wmEscKeyPressed",
591
+ "bubbles": true,
592
+ "cancelable": true,
593
+ "composed": true,
594
+ "docs": {
595
+ "tags": [],
596
+ "text": ""
597
+ },
598
+ "complexType": {
599
+ "original": "any",
600
+ "resolved": "any",
601
+ "references": {}
602
+ }
603
+ }, {
604
+ "method": "wmKeyLeftPressed",
605
+ "name": "wmKeyLeftPressed",
606
+ "bubbles": true,
607
+ "cancelable": true,
608
+ "composed": true,
609
+ "docs": {
610
+ "tags": [],
611
+ "text": ""
612
+ },
613
+ "complexType": {
614
+ "original": "any",
615
+ "resolved": "any",
616
+ "references": {}
617
+ }
618
+ }];
619
+ }
620
+ static get methods() {
621
+ return {
622
+ "handleChildChange": {
623
+ "complexType": {
624
+ "signature": "() => Promise<void>",
625
+ "parameters": [],
626
+ "references": {
627
+ "Promise": {
628
+ "location": "global",
629
+ "id": "global::Promise"
630
+ }
631
+ },
632
+ "return": "Promise<void>"
633
+ },
634
+ "docs": {
635
+ "text": "",
636
+ "tags": []
637
+ }
638
+ },
639
+ "clearSearch": {
640
+ "complexType": {
641
+ "signature": "() => Promise<void>",
642
+ "parameters": [],
643
+ "references": {
644
+ "Promise": {
645
+ "location": "global",
646
+ "id": "global::Promise"
647
+ }
648
+ },
649
+ "return": "Promise<void>"
650
+ },
651
+ "docs": {
652
+ "text": "",
653
+ "tags": []
654
+ }
655
+ },
656
+ "focusOption": {
657
+ "complexType": {
658
+ "signature": "(option: HTMLElement) => Promise<void>",
659
+ "parameters": [{
660
+ "name": "option",
661
+ "type": "HTMLElement",
662
+ "docs": ""
663
+ }],
664
+ "references": {
665
+ "Promise": {
666
+ "location": "global",
667
+ "id": "global::Promise"
668
+ },
669
+ "HTMLElement": {
670
+ "location": "global",
671
+ "id": "global::HTMLElement"
672
+ }
673
+ },
674
+ "return": "Promise<void>"
675
+ },
676
+ "docs": {
677
+ "text": "",
678
+ "tags": []
679
+ }
680
+ },
681
+ "handleInitialFocus": {
682
+ "complexType": {
683
+ "signature": "(optionToSelect?: \"next\" | \"previous\") => Promise<void>",
684
+ "parameters": [{
685
+ "name": "optionToSelect",
686
+ "type": "\"next\" | \"previous\" | undefined",
687
+ "docs": ""
688
+ }],
689
+ "references": {
690
+ "Promise": {
691
+ "location": "global",
692
+ "id": "global::Promise"
693
+ }
694
+ },
695
+ "return": "Promise<void>"
696
+ },
697
+ "docs": {
698
+ "text": "",
699
+ "tags": []
700
+ }
701
+ },
702
+ "unfocusAll": {
703
+ "complexType": {
704
+ "signature": "() => Promise<void>",
705
+ "parameters": [],
706
+ "references": {
707
+ "Promise": {
708
+ "location": "global",
709
+ "id": "global::Promise"
710
+ }
711
+ },
712
+ "return": "Promise<void>"
713
+ },
714
+ "docs": {
715
+ "text": "",
716
+ "tags": []
717
+ }
718
+ },
719
+ "updateOptionVisibility": {
720
+ "complexType": {
721
+ "signature": "() => Promise<void>",
722
+ "parameters": [],
723
+ "references": {
724
+ "Promise": {
725
+ "location": "global",
726
+ "id": "global::Promise"
727
+ }
728
+ },
729
+ "return": "Promise<void>"
730
+ },
731
+ "docs": {
732
+ "text": "",
733
+ "tags": []
734
+ }
735
+ }
736
+ };
737
+ }
738
+ static get elementRef() { return "el"; }
739
+ static get listeners() {
740
+ return [{
741
+ "name": "wmLetterPressed",
742
+ "method": "findAndFocusOption",
743
+ "target": undefined,
744
+ "capture": false,
745
+ "passive": false
746
+ }, {
747
+ "name": "wmOptionSelected",
748
+ "method": "handleOptionSelection",
749
+ "target": undefined,
750
+ "capture": false,
751
+ "passive": false
752
+ }, {
753
+ "name": "wmKeyUpPressed",
754
+ "method": "handleChildUp",
755
+ "target": undefined,
756
+ "capture": false,
757
+ "passive": false
758
+ }, {
759
+ "name": "wmKeyDownPressed",
760
+ "method": "handleChildDown",
761
+ "target": undefined,
762
+ "capture": false,
763
+ "passive": false
764
+ }, {
765
+ "name": "wmHomeKeyPressed",
766
+ "method": "moveToFirstOption",
767
+ "target": undefined,
768
+ "capture": false,
769
+ "passive": false
770
+ }, {
771
+ "name": "wmEndKeyPressed",
772
+ "method": "moveToLastOption",
773
+ "target": undefined,
774
+ "capture": false,
775
+ "passive": false
776
+ }, {
777
+ "name": "intCloneClicked",
778
+ "method": "handleOptionCloneSelection",
779
+ "target": undefined,
780
+ "capture": false,
781
+ "passive": false
782
+ }];
783
+ }
784
+ }