@watermarkinsights/ripple 5.3.0-1 → 5.3.0-3

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 (371) hide show
  1. package/dist/{esm/global-01680477.js → cjs/app-globals-4191e8d6.js} +10 -1
  2. package/dist/cjs/{chartFunctions-246529c5.js → chartFunctions-a8999ce1.js} +3 -3
  3. package/dist/cjs/{functions-be4156cf.js → functions-05e7ad5a.js} +106 -7
  4. package/dist/cjs/index-788526f5.js +1851 -0
  5. package/dist/cjs/{intl-a13884e8.js → intl-2b550151.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +5 -4
  7. package/dist/cjs/priv-calendar.cjs.entry.js +67 -50
  8. package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
  9. package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
  10. package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
  11. package/dist/cjs/ripple.cjs.js +13 -12
  12. package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
  13. package/dist/cjs/wm-button.cjs.entry.js +5 -4
  14. package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
  15. package/dist/cjs/wm-chart.cjs.entry.js +7 -6
  16. package/dist/cjs/wm-date-range.cjs.entry.js +40 -15
  17. package/dist/cjs/wm-datepicker.cjs.entry.js +18 -14
  18. package/dist/cjs/wm-file-list.cjs.entry.js +4 -3
  19. package/dist/cjs/wm-file.cjs.entry.js +5 -4
  20. package/dist/cjs/wm-input.cjs.entry.js +6 -5
  21. package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
  22. package/dist/cjs/wm-modal-footer.cjs.entry.js +4 -3
  23. package/dist/cjs/wm-modal-header.cjs.entry.js +6 -5
  24. package/dist/cjs/wm-modal.cjs.entry.js +7 -6
  25. package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
  26. package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
  27. package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
  28. package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
  29. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
  30. package/dist/cjs/wm-search.cjs.entry.js +7 -6
  31. package/dist/cjs/wm-snackbar.cjs.entry.js +53 -50
  32. package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
  33. package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
  34. package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
  35. package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
  36. package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
  37. package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
  38. package/dist/cjs/wm-uploader.cjs.entry.js +7 -6
  39. package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
  40. package/dist/collection/collection-manifest.json +2 -2
  41. package/dist/collection/components/charts/chartFunctions.js +1 -1
  42. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
  43. package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
  44. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
  45. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
  46. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
  47. package/dist/collection/components/datepickers/datepicker.css +47 -5
  48. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +90 -55
  49. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +62 -46
  50. package/dist/collection/components/datepickers/wm-date-range.js +63 -28
  51. package/dist/collection/components/datepickers/wm-datepicker.js +30 -18
  52. package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
  53. package/dist/collection/components/wm-button/wm-button.js +1 -1
  54. package/dist/collection/components/wm-file/wm-file.js +1 -1
  55. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  56. package/dist/collection/components/wm-input/wm-input.js +1 -1
  57. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  58. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  59. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  60. package/dist/collection/components/wm-modal/wm-modal.css +0 -1
  61. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  62. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  63. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  64. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  65. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  66. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
  67. package/dist/collection/components/wm-option/wm-option.js +1 -1
  68. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  69. package/dist/collection/components/wm-search/wm-search.js +5 -4
  70. package/dist/collection/components/wm-select/wm-select.js +2 -2
  71. package/dist/collection/components/wm-snackbar/wm-snackbar.css +37 -43
  72. package/dist/collection/components/wm-snackbar/wm-snackbar.js +48 -46
  73. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
  74. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
  75. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  76. package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
  77. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  78. package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
  79. package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
  80. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  81. package/dist/collection/dev/modal.js +15 -45
  82. package/dist/collection/dev/snackbar.js +10 -9
  83. package/dist/collection/global/functions.js +1 -1
  84. package/dist/{cjs/global-b5387be9.js → esm/app-globals-bc617542.js} +7 -2
  85. package/dist/esm/{chartFunctions-e2554a36.js → chartFunctions-f4bc4821.js} +3 -3
  86. package/dist/esm/{functions-f65dbb96.js → functions-25781571.js} +105 -8
  87. package/dist/esm/index-130e07bb.js +1820 -0
  88. package/dist/esm/{intl-f7f77de7.js → intl-df3d34d1.js} +1 -1
  89. package/dist/esm/loader.js +6 -5
  90. package/dist/esm/polyfills/core-js.js +0 -0
  91. package/dist/esm/polyfills/dom.js +0 -0
  92. package/dist/esm/polyfills/es5-html-element.js +0 -0
  93. package/dist/esm/polyfills/index.js +0 -0
  94. package/dist/esm/polyfills/system.js +0 -0
  95. package/dist/esm/priv-calendar.entry.js +67 -50
  96. package/dist/esm/priv-chart-popover.entry.js +6 -5
  97. package/dist/esm/priv-navigator-button.entry.js +4 -3
  98. package/dist/esm/priv-navigator-item.entry.js +4 -3
  99. package/dist/esm/ripple.js +14 -13
  100. package/dist/esm/wm-action-menu_2.entry.js +8 -6
  101. package/dist/esm/wm-button.entry.js +5 -4
  102. package/dist/esm/wm-chart-slice.entry.js +1 -1
  103. package/dist/esm/wm-chart.entry.js +7 -6
  104. package/dist/esm/wm-date-range.entry.js +40 -15
  105. package/dist/esm/wm-datepicker.entry.js +18 -14
  106. package/dist/esm/wm-file-list.entry.js +4 -3
  107. package/dist/esm/wm-file.entry.js +5 -4
  108. package/dist/esm/wm-input.entry.js +6 -5
  109. package/dist/esm/wm-line-chart.entry.js +15 -14
  110. package/dist/esm/wm-modal-footer.entry.js +4 -3
  111. package/dist/esm/wm-modal-header.entry.js +6 -5
  112. package/dist/esm/wm-modal.entry.js +7 -6
  113. package/dist/esm/wm-navigation_3.entry.js +13 -10
  114. package/dist/esm/wm-navigator.entry.js +4 -3
  115. package/dist/esm/wm-option_2.entry.js +10 -8
  116. package/dist/esm/wm-pagination.entry.js +5 -4
  117. package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
  118. package/dist/esm/wm-search.entry.js +7 -6
  119. package/dist/esm/wm-snackbar.entry.js +53 -50
  120. package/dist/esm/wm-tab-item_3.entry.js +11 -8
  121. package/dist/esm/wm-tag-input.entry.js +8 -7
  122. package/dist/esm/wm-tag-option.entry.js +2 -2
  123. package/dist/esm/wm-textarea.entry.js +6 -5
  124. package/dist/esm/wm-timepicker.entry.js +6 -5
  125. package/dist/esm/wm-toggletip.entry.js +6 -5
  126. package/dist/esm/wm-uploader.entry.js +7 -6
  127. package/dist/esm/wm-wrapper.entry.js +1 -1
  128. package/dist/esm-es5/app-globals-bc617542.js +1 -0
  129. package/dist/esm-es5/{chartFunctions-e2554a36.js → chartFunctions-f4bc4821.js} +1 -1
  130. package/dist/esm-es5/functions-25781571.js +1 -0
  131. package/dist/esm-es5/index-130e07bb.js +1 -0
  132. package/dist/esm-es5/{intl-f7f77de7.js → intl-df3d34d1.js} +1 -1
  133. package/dist/esm-es5/loader.js +1 -1
  134. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  135. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  136. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  137. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  138. package/dist/esm-es5/ripple.js +1 -1
  139. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  140. package/dist/esm-es5/wm-button.entry.js +1 -1
  141. package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
  142. package/dist/esm-es5/wm-chart.entry.js +1 -1
  143. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  144. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  145. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  146. package/dist/esm-es5/wm-file.entry.js +1 -1
  147. package/dist/esm-es5/wm-input.entry.js +1 -1
  148. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  149. package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
  150. package/dist/esm-es5/wm-modal-header.entry.js +1 -1
  151. package/dist/esm-es5/wm-modal.entry.js +1 -1
  152. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  153. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  154. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  155. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  156. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  157. package/dist/esm-es5/wm-search.entry.js +1 -1
  158. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  159. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  160. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  161. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  162. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  163. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  164. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  165. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  166. package/dist/esm-es5/wm-wrapper.entry.js +1 -1
  167. package/dist/loader/cdn.js +1 -2
  168. package/dist/loader/index.cjs.js +1 -2
  169. package/dist/loader/index.d.ts +3 -0
  170. package/dist/loader/index.es2017.js +1 -2
  171. package/dist/loader/index.js +1 -2
  172. package/dist/ripple/{p-4e616347.entry.js → p-041e579b.entry.js} +1 -1
  173. package/dist/ripple/{p-a99b05de.system.entry.js → p-043901ab.system.entry.js} +1 -1
  174. package/dist/ripple/p-0abc9300.entry.js +1 -0
  175. package/dist/ripple/p-0af94825.entry.js +1 -0
  176. package/dist/ripple/p-0ff41567.system.entry.js +1 -0
  177. package/dist/ripple/{p-3a070f35.entry.js → p-13b1d775.entry.js} +1 -1
  178. package/dist/ripple/p-13fc2164.entry.js +1 -0
  179. package/dist/ripple/p-155224a2.system.entry.js +1 -0
  180. package/dist/ripple/p-15f8ea28.system.entry.js +1 -0
  181. package/dist/ripple/p-1c4d2203.system.entry.js +1 -0
  182. package/dist/ripple/p-1f09134c.entry.js +1 -0
  183. package/dist/ripple/p-298c2675.entry.js +1 -0
  184. package/dist/ripple/{p-22e6104e.entry.js → p-2e3728f1.entry.js} +1 -1
  185. package/dist/ripple/{p-3db9e0d8.system.entry.js → p-2f1d2fe3.system.entry.js} +1 -1
  186. package/dist/ripple/p-31781d88.system.entry.js +1 -0
  187. package/dist/ripple/p-31d7ecf9.system.entry.js +1 -0
  188. package/dist/ripple/p-341ebafa.entry.js +1 -0
  189. package/dist/ripple/p-35f209d9.system.entry.js +1 -0
  190. package/dist/ripple/p-376efca9.entry.js +1 -0
  191. package/dist/ripple/p-3b5f4364.system.entry.js +1 -0
  192. package/dist/ripple/p-418ed08c.system.entry.js +1 -0
  193. package/dist/ripple/p-439d0c1f.system.js +1 -0
  194. package/dist/ripple/p-4670ccb4.system.js +1 -0
  195. package/dist/ripple/p-488e1690.entry.js +1 -0
  196. package/dist/ripple/p-4978eebe.entry.js +1 -0
  197. package/dist/ripple/p-4baaf026.entry.js +1 -0
  198. package/dist/ripple/p-4c24711f.entry.js +1 -0
  199. package/dist/ripple/p-56766bb2.entry.js +1 -0
  200. package/dist/ripple/p-5caaf651.system.entry.js +1 -0
  201. package/dist/ripple/p-5ece78e5.system.entry.js +1 -0
  202. package/dist/ripple/{p-8f38dc86.entry.js → p-672ae2cb.entry.js} +1 -1
  203. package/dist/ripple/{p-98120733.entry.js → p-67a7f0b0.entry.js} +1 -1
  204. package/dist/ripple/p-6d0e5159.system.entry.js +1 -0
  205. package/dist/ripple/p-6d56676e.system.entry.js +1 -0
  206. package/dist/ripple/{p-9d8c2a52.system.entry.js → p-6fe35d1e.system.entry.js} +1 -1
  207. package/dist/ripple/{p-19dec591.entry.js → p-75a79896.entry.js} +1 -1
  208. package/dist/ripple/p-799d06ad.system.entry.js +1 -0
  209. package/dist/ripple/p-7eab6bea.system.entry.js +1 -0
  210. package/dist/ripple/p-7fb95b89.entry.js +1 -0
  211. package/dist/ripple/{p-7e56da2e.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
  212. package/dist/ripple/p-85cbeb7d.system.entry.js +1 -0
  213. package/dist/ripple/p-88cfd58d.js +1 -0
  214. package/dist/ripple/p-8d075bcf.system.entry.js +1 -0
  215. package/dist/ripple/{p-79af9baf.entry.js → p-8e72de50.entry.js} +1 -1
  216. package/dist/ripple/p-90c76565.entry.js +1 -0
  217. package/dist/ripple/{p-780d4673.system.entry.js → p-9176672f.system.entry.js} +1 -1
  218. package/dist/ripple/{p-5bbf7fdc.system.js → p-96bd1868.system.js} +1 -1
  219. package/dist/ripple/p-a62e7532.entry.js +1 -0
  220. package/dist/ripple/p-a78001e2.system.js +1 -0
  221. package/dist/ripple/p-a8661c35.system.entry.js +1 -0
  222. package/dist/ripple/{p-ae32eb8d.system.js → p-a9d89ac8.system.js} +1 -1
  223. package/dist/ripple/{p-8081f931.system.entry.js → p-aab56a37.system.entry.js} +1 -1
  224. package/dist/ripple/{p-7a9ffbcb.system.entry.js → p-ac40417b.system.entry.js} +1 -1
  225. package/dist/ripple/{p-bd27ded2.system.entry.js → p-b0c566b5.system.entry.js} +1 -1
  226. package/dist/ripple/p-b7307be6.system.entry.js +1 -0
  227. package/dist/ripple/{p-0b77b2a1.entry.js → p-bee8ab6e.entry.js} +1 -1
  228. package/dist/ripple/p-c2181de0.entry.js +1 -0
  229. package/dist/ripple/{p-25446670.entry.js → p-cd0cc88d.entry.js} +1 -1
  230. package/dist/ripple/p-cef8a45b.system.js +2 -0
  231. package/dist/ripple/p-d5ba9de1.system.entry.js +1 -0
  232. package/dist/ripple/{p-48a6acfa.system.entry.js → p-d93c51dd.system.entry.js} +1 -1
  233. package/dist/ripple/p-d9da0502.js +2 -0
  234. package/dist/ripple/p-db10990a.entry.js +1 -0
  235. package/dist/ripple/p-e2fe86a7.system.entry.js +1 -0
  236. package/dist/ripple/p-e4d8a800.entry.js +1 -0
  237. package/dist/ripple/p-e85b1f40.entry.js +1 -0
  238. package/dist/ripple/p-ea0dfadf.system.entry.js +1 -0
  239. package/dist/ripple/p-eb14b354.entry.js +1 -0
  240. package/dist/ripple/p-f17fd62b.entry.js +1 -0
  241. package/dist/ripple/{p-5b2c1bd1.js → p-f54e9ed0.js} +1 -1
  242. package/dist/ripple/p-f741e7c4.entry.js +1 -0
  243. package/dist/ripple/p-f8250ca9.js +1 -0
  244. package/dist/ripple/p-f8613ec2.js +1 -0
  245. package/dist/ripple/p-fabe4ca4.entry.js +1 -0
  246. package/dist/ripple/p-fbaae34d.system.entry.js +1 -0
  247. package/dist/ripple/ripple.esm.js +1 -1
  248. package/dist/ripple/ripple.js +1 -1
  249. package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +77 -0
  250. package/dist/types/components/datepickers/wm-date-range.d.ts +73 -0
  251. package/dist/types/components/datepickers/wm-datepicker.d.ts +2 -2
  252. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +5 -4
  253. package/dist/types/components.d.ts +4 -4
  254. package/dist/types/global/functions.d.ts +6 -0
  255. package/dist/types/stencil-public-runtime.d.ts +3 -10
  256. package/package.json +1 -1
  257. package/dist/cjs/index-f8ef86de.js +0 -2582
  258. package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
  259. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
  260. package/dist/collection/components/charts/screenshots.e2e.js +0 -96
  261. package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
  262. package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
  263. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
  264. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
  265. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
  266. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
  267. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
  268. package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
  269. package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
  270. package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
  271. package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
  272. package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
  273. package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
  274. package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
  275. package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
  276. package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
  277. package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
  278. package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
  279. package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
  280. package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
  281. package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
  282. package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
  283. package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
  284. package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
  285. package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
  286. package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
  287. package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
  288. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
  289. package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
  290. package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
  291. package/dist/collection/components/wm-option/wm-option.e2e.js +0 -22
  292. package/dist/collection/components/wm-option/wm-option.spec.js +0 -63
  293. package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
  294. package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
  295. package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
  296. package/dist/collection/components/wm-select/wm-select.e2e.js +0 -521
  297. package/dist/collection/components/wm-select/wm-select.spec.js +0 -271
  298. package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
  299. package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
  300. package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
  301. package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
  302. package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
  303. package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
  304. package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
  305. package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
  306. package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
  307. package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
  308. package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
  309. package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
  310. package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
  311. package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
  312. package/dist/collection/global/functions.spec.js +0 -126
  313. package/dist/collection/lang/lang.spec.js +0 -20
  314. package/dist/esm/index-f164fbca.js +0 -2552
  315. package/dist/esm-es5/functions-f65dbb96.js +0 -1
  316. package/dist/esm-es5/global-01680477.js +0 -1
  317. package/dist/esm-es5/index-f164fbca.js +0 -1
  318. package/dist/ripple/p-04bf6c89.entry.js +0 -1
  319. package/dist/ripple/p-0fe97e85.system.js +0 -2
  320. package/dist/ripple/p-109684b1.entry.js +0 -1
  321. package/dist/ripple/p-11383396.system.entry.js +0 -1
  322. package/dist/ripple/p-1cb6b37e.entry.js +0 -1
  323. package/dist/ripple/p-1cb98f64.entry.js +0 -1
  324. package/dist/ripple/p-2197287c.entry.js +0 -1
  325. package/dist/ripple/p-24d88d8d.system.entry.js +0 -1
  326. package/dist/ripple/p-2bac4b4e.system.entry.js +0 -1
  327. package/dist/ripple/p-30a9ba6e.entry.js +0 -1
  328. package/dist/ripple/p-32cf6907.system.entry.js +0 -1
  329. package/dist/ripple/p-379fe53e.entry.js +0 -1
  330. package/dist/ripple/p-41e8a079.entry.js +0 -1
  331. package/dist/ripple/p-4272aa37.system.js +0 -1
  332. package/dist/ripple/p-45126063.system.entry.js +0 -1
  333. package/dist/ripple/p-4de51706.js +0 -2
  334. package/dist/ripple/p-4ed2e910.system.entry.js +0 -1
  335. package/dist/ripple/p-577ea283.system.entry.js +0 -1
  336. package/dist/ripple/p-5a04c222.entry.js +0 -1
  337. package/dist/ripple/p-5dbad2ff.entry.js +0 -1
  338. package/dist/ripple/p-625aeeec.system.entry.js +0 -1
  339. package/dist/ripple/p-635f40b1.entry.js +0 -1
  340. package/dist/ripple/p-63fabfed.entry.js +0 -1
  341. package/dist/ripple/p-7144d185.system.entry.js +0 -1
  342. package/dist/ripple/p-720b6ab0.entry.js +0 -1
  343. package/dist/ripple/p-7573a2fa.entry.js +0 -1
  344. package/dist/ripple/p-76d2dada.entry.js +0 -1
  345. package/dist/ripple/p-7f4b4071.system.entry.js +0 -1
  346. package/dist/ripple/p-84926b89.system.entry.js +0 -1
  347. package/dist/ripple/p-88406560.system.entry.js +0 -1
  348. package/dist/ripple/p-8fafbba1.js +0 -1
  349. package/dist/ripple/p-92c1ff36.system.entry.js +0 -1
  350. package/dist/ripple/p-9c6d6b26.system.entry.js +0 -1
  351. package/dist/ripple/p-ae8ad491.entry.js +0 -1
  352. package/dist/ripple/p-b0579a2a.system.entry.js +0 -1
  353. package/dist/ripple/p-b0f14557.system.entry.js +0 -1
  354. package/dist/ripple/p-b9ba6546.system.js +0 -1
  355. package/dist/ripple/p-ba751ca4.js +0 -1
  356. package/dist/ripple/p-bbdfb1ec.system.js +0 -1
  357. package/dist/ripple/p-c38f2a00.system.entry.js +0 -1
  358. package/dist/ripple/p-c51293e2.entry.js +0 -1
  359. package/dist/ripple/p-c717d895.entry.js +0 -1
  360. package/dist/ripple/p-c8873e0c.system.entry.js +0 -1
  361. package/dist/ripple/p-ca9d9447.system.entry.js +0 -1
  362. package/dist/ripple/p-cda6c77e.entry.js +0 -1
  363. package/dist/ripple/p-ce5455a3.system.entry.js +0 -1
  364. package/dist/ripple/p-d265a41e.entry.js +0 -1
  365. package/dist/ripple/p-dcfdbd30.entry.js +0 -1
  366. package/dist/ripple/p-ef3fe609.system.entry.js +0 -1
  367. package/dist/ripple/p-f6f29a56.entry.js +0 -1
  368. package/dist/ripple/p-f79a6e32.js +0 -1
  369. package/dist/ripple/p-f93858ad.system.entry.js +0 -1
  370. package/dist/ripple/p-fc7e5296.entry.js +0 -1
  371. package/dist/ripple/p-ff80aadd.system.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  import { generateId, hideTooltip, showTooltip } from "../../global/functions";
3
3
  import { globalMessages } from "../../global/intl";
4
4
  export class Snackbar {
@@ -11,28 +11,16 @@ export class Snackbar {
11
11
  this.isTabbing = false;
12
12
  this.announcement = "";
13
13
  }
14
- refreshUpdatedNotifications(prevNotifications) {
15
- let updatedIDs = [];
16
- prevNotifications.forEach((prevNotification) => {
17
- this.parsedNotifications.forEach((newNotification) => {
18
- if (newNotification.id == prevNotification.id && newNotification.message != prevNotification.message) {
19
- updatedIDs.push(newNotification.id);
20
- }
21
- });
22
- });
23
- updatedIDs.forEach((updatedID) => {
24
- const updatedNotification = this.parsedNotifications.filter((n) => n.id == updatedID)[0];
25
- const notifEl = this.el.shadowRoot.querySelector(`#snack-${updatedID}`);
26
- if (notifEl) {
27
- notifEl.classList.remove("grow");
28
- window.requestAnimationFrame(() => {
29
- notifEl.classList.add("grow");
30
- });
31
- }
32
- this.stopTimer(updatedNotification);
33
- const newTimer = window.setTimeout(() => this.snackExpired(updatedNotification.id), 6000);
34
- this.timers = Object.assign({ [updatedNotification.id]: newTimer }, this.timers);
35
- });
14
+ componentDidLoad() {
15
+ const snackObserver = new MutationObserver((snackMutations) => snackMutations.forEach((mutationRecord) => this.handleSnackMutation(mutationRecord)));
16
+ snackObserver.observe(this.snackAreaEl, { childList: true });
17
+ }
18
+ handleSnackMutation(mutationRecord) {
19
+ const addedSnacks = Array.from(mutationRecord.addedNodes);
20
+ if (addedSnacks.length > 0) {
21
+ addedSnacks.forEach((s) => s.querySelector(".wm-snackbar").classList.add("grow"));
22
+ addedSnacks[0].scrollIntoView();
23
+ }
36
24
  }
37
25
  updateSnacks(newValue) {
38
26
  const prevParsedNotifications = [...this.parsedNotifications];
@@ -54,23 +42,38 @@ export class Snackbar {
54
42
  });
55
43
  }
56
44
  }
57
- this.sizeMessage();
45
+ this.setMinWidths();
58
46
  }
59
- toggleTabbingOn() {
60
- this.isTabbing = true;
61
- }
62
- toggleTabbingOff() {
63
- this.isTabbing = false;
47
+ refreshUpdatedNotifications(prevNotifications) {
48
+ let updatedNotifications = [];
49
+ prevNotifications.forEach((prevNotification) => {
50
+ this.parsedNotifications.forEach((newNotification) => {
51
+ if (newNotification.id == prevNotification.id && newNotification.message != prevNotification.message) {
52
+ updatedNotifications.push(newNotification);
53
+ }
54
+ });
55
+ });
56
+ updatedNotifications.forEach((updatedNotification) => {
57
+ const notifEl = this.el.shadowRoot.querySelector(`#snack-${updatedNotification.id}`);
58
+ if (notifEl) {
59
+ notifEl.classList.remove("grow");
60
+ window.requestAnimationFrame(() => notifEl.classList.add("grow"));
61
+ }
62
+ this.stopTimer(updatedNotification);
63
+ const newTimer = window.setTimeout(() => this.snackExpired(updatedNotification.id), 6000);
64
+ this.timers = Object.assign({ [updatedNotification.id]: newTimer }, this.timers);
65
+ this.announce(`${updatedNotification.message} ${this.isTabbing ? "" : updatedNotification.link}`);
66
+ });
64
67
  }
65
68
  checkForTabbing(ev) {
66
69
  if (ev.key === "Tab") {
67
- this.toggleTabbingOn();
70
+ this.isTabbing = true;
68
71
  }
69
72
  }
70
73
  // Workaround for screenreader's triggering click event on "enter"
71
74
  // This is why we manually handle this.isTabbing instead of listening to wmUserIsTabbing
72
75
  handleMouse() {
73
- this.toggleTabbingOff();
76
+ this.isTabbing = false;
74
77
  }
75
78
  snackDismissed(notification) {
76
79
  this.endSnack(notification);
@@ -82,9 +85,9 @@ export class Snackbar {
82
85
  }
83
86
  //Remove snack from notification list once timer runs out
84
87
  snackExpired(expiredID) {
85
- const expiredNotifications = this.parsedNotifications.filter((n) => n.id == expiredID);
86
- if (expiredNotifications.length > 0) {
87
- this.endSnack(expiredNotifications[0]);
88
+ const expiredNotification = this.parsedNotifications.find((n) => n.id == expiredID);
89
+ if (expiredNotification) {
90
+ this.endSnack(expiredNotification);
88
91
  }
89
92
  }
90
93
  endSnack(notification) {
@@ -114,13 +117,7 @@ export class Snackbar {
114
117
  delete this.timers[notification.id];
115
118
  }
116
119
  }
117
- announce(message) {
118
- if (this.liveRegionEl.textContent === message) {
119
- message += "\u00A0";
120
- }
121
- this.announcement = message;
122
- }
123
- sizeMessage() {
120
+ setMinWidths() {
124
121
  // wait for render to get updated scrollWidth
125
122
  requestAnimationFrame(() => {
126
123
  const msgEls = this.el.shadowRoot.querySelectorAll(".msg");
@@ -132,17 +129,22 @@ export class Snackbar {
132
129
  });
133
130
  });
134
131
  }
132
+ announce(message) {
133
+ if (this.liveRegionEl.textContent === message) {
134
+ message += "\u00A0";
135
+ }
136
+ this.announcement = message;
137
+ }
135
138
  renderSnackbars() {
136
- return this.parsedNotifications.map((notification) => (h("div", { class: "wm-snack-wrapper" }, h("div", { id: `snack-${notification.id}`, class: "wm-snackbar active neutral grow" }, h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) }), h("div", { class: "wm-snackbarmsg" }, h("div", { class: "msgtext" }, h("span", { class: "msg" }, notification.message), notification.link && (h("a", { id: `action-${notification.id}`, class: `link ${notification.newWindow ? "new-window" : ""}`, "aria-label": `Click to ${notification.link}...${notification.newWindow ? " " + globalMessages.newWindow : ""}`, tabindex: 0, onClick: () => {
139
+ return [...this.parsedNotifications].reverse().map((notification) => (h("div", { class: "wm-snack-wrapper" }, h("div", { id: `snack-${notification.id}`, class: "wm-snackbar active neutral" }, h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) }), h("div", { class: "wm-snackbarmsg" }, h("div", { class: "msgtext" }, h("span", { class: "msg" }, notification.message), notification.link && (h("a", { id: `action-${notification.id}`, class: `link ${notification.newWindow ? "new-window" : ""}`, "aria-label": `Click to ${notification.link}...${notification.newWindow ? " " + globalMessages.newWindow : ""}`, tabindex: 0, onClick: () => {
137
140
  this.snackLinkClicked(notification);
138
141
  }, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link)))), h("button", { id: `close-button-${notification.id}`, "aria-label": "Close this notification", class: "closesnack", tabindex: notification.link ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() })), h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
139
142
  }
140
143
  render() {
141
- return (h("div", { class: {
142
- "wm-snackbars": true,
143
- empty: this.parsedNotifications.length === 0,
144
+ return (h(Host, { key: '67f36569152cc7f7df8e17a48b72737cf06b2249' }, h("div", { key: '2646611246f9ab87624bb1ad2bad217c364d89e7', ref: (el) => (this.snackAreaEl = el), class: {
145
+ "list-wrapper": true,
144
146
  "user-is-tabbing": this.isTabbing,
145
- } }, h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement), this.renderSnackbars()));
147
+ } }, this.renderSnackbars()), h("div", { key: '26284c415d2be1b8e944d7c2830c8eada5030fe3', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
146
148
  }
147
149
  static get is() { return "wm-snackbar"; }
148
150
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class TabItem {
40
40
  "background-size": `calc(100% - ${bkgSize}${units}) 3px`,
41
41
  };
42
42
  }
43
- return (h(Host, { role: "presentation" }, h("li", { class: "tab-item", role: "presentation" }, h("a", { class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", null)))));
43
+ return (h(Host, { key: '0d9c95f25f36cd8e37bdacdfc73c9032ab11f8b9', role: "presentation" }, h("li", { key: '6d83fae63842be52110fdcaf1797767c8defa24e', class: "tab-item", role: "presentation" }, h("a", { key: '399e8aa507afa3b70b925969c9fd4508345098fb', class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", { key: '3571988e318de8baa6a9d82c464d101f38d12a51' })))));
44
44
  }
45
45
  static get is() { return "wm-tab-item"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -155,7 +155,7 @@ export class TabList {
155
155
  } }, t.textContent)));
156
156
  }
157
157
  render() {
158
- return h(Host, { class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
158
+ return h(Host, { key: 'c768cc9153a707b6093d82b387d33df4b67f9adf', class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
159
159
  }
160
160
  static get is() { return "wm-tab-list"; }
161
161
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ export class TabPanel {
12
12
  this.tabPanelLoaded.emit({ tabId: this.tabId });
13
13
  }
14
14
  render() {
15
- return h(Host, { role: "tabpanel", class: { "tab-hidden": !this.active } });
15
+ return h(Host, { key: '83da2497d78709f8b891e4c3735508b992fc6a90', role: "tabpanel", class: { "tab-hidden": !this.active } });
16
16
  }
17
17
  static get is() { return "wm-tab-panel"; }
18
18
  static get originalStyleUrls() {
@@ -858,12 +858,12 @@ export class TagInput {
858
858
  }
859
859
  }
860
860
  render() {
861
- return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { class: "upper-row" }, h("div", { class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
861
+ return (h("div", { key: '33abb5778cad372a77e0d92ec7db591a7cacb216', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '83814d7be8f23c6d6d73ac126f6545d6c19fbf50', class: "label-wrapper" }, h("label", { key: 'e404bc94e35dad4c3ca1247c4a59a4ca7d9c472c', class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { key: '07671bf51458668dfc54cbcea7ee557aac20c9dd', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '78e36202ba0e55d912532d36dc0c731fd68266ec', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '6be8fa1d4586a06c2d72a02e7e5eb186b2ee374a', class: "upper-row" }, h("div", { key: '4fce716703d1ce34be8d1837d14a55a96ee57ce1', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: 'ecb9d7b6a0c92fd5c575b86f71252d96299a50bb', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
862
862
  this.focusedTagIndex = undefined;
863
863
  this.handleBlur(ev);
864
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
864
+ }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: 'fb154aee6848ebc5a0b4a89596d2470cdc6ae8cc', id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
865
865
  this.handleBlur(ev);
866
- }, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { id: "info", class: "info-text" }, this.info)), h("div", { id: "error" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
866
+ }, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: 'f17d34cc1dab1e7c37a20d79d65f259aef2db3c3', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: 'ea41b9923c0bd26b0554a76301d0aa488558edc1', id: "info", class: "info-text" }, this.info)), h("div", { key: '9dc002e1b3a97ead65eb8e4fd785dab62a9f4048', id: "error" }, this.errorMessage), h("div", { key: 'b4a72c8d1c58a19d11d6937cd6b26a496f647c30', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
867
867
  }
868
868
  static get is() { return "wm-tag-input"; }
869
869
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class Textarea {
65
65
  this.announcement = message;
66
66
  }
67
67
  render() {
68
- return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: "inner-wrapper" }, h("div", { class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
68
+ return (h("div", { key: 'a5997b0d5dce20f77941690731ed6ba5cd1d9858', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'aad504a8a1d66943b608d7b3bd835bca3c14cad1', class: "label-wrapper" }, h("label", { key: '4e731d38bc61ff74c8fa8c02a4919c1086fc94d8', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: '4e57dca225b03c470452c4136e294a2ba2615cf9', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: 'f17ef4ee28a329a3655f4a29f736518465a7594d', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '695981592b51ff1b27d80018024fa9605dbce6a4', class: "inner-wrapper" }, h("div", { key: '0b0d2659db296f2f83902a7ea0c84b09496be4e3', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '7a7eb761ee1da371a506741fb2a8808c8ad37018', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '501a8e2e33bc0ce87b02d6c094f20767247fb080', id: "info", class: "info" }, this.info)), h("div", { key: '5d6a559dc433c567fdcf0a2b21fa4d69bfbd2d25', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'ee6a8851e53375394b185bf14a77f2c6cca79d2a', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
69
69
  }
70
70
  static get is() { return "wm-textarea"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -275,13 +275,13 @@ export class Timepicker {
275
275
  return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
276
276
  }
277
277
  render() {
278
- return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*"))))), h("div", null, h("div", { class: "inner-wrapper" }, h("input", { id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
278
+ return (h(Host, { key: '58694542ea396f6874a0889ac5fdd608477e01f4', onBlur: () => this.close(false) }, h("div", { key: '182422d05a01af98eb1fcf95817cec6ee95a81b9', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: 'ac2f32d2e2e35fb5014a5e8c44bdecc3e3963c0e', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '6cd54b3142c4ca0a88bf8e22a2074f67f72e1423', id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { key: '41f2f167ccbfbd81c7d37396f25c22a5db4a5baf', class: "required", "aria-hidden": "true" }, "*"))))), h("div", { key: '9c9f880595e1de671d24b327a47e17e03a056ab6' }, h("div", { key: '7a58504c80378f052e7da86692f53630c15b6837', class: "inner-wrapper" }, h("input", { key: 'df44714cfb58a6ef9e49d548b732f1daa70dddfa', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: '40e964286b360d9c86c54065c2acf6f761ad6a03', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
279
279
  // This addresses an issue in Safari, where clicking buttons does not focus them
280
280
  // if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
281
281
  onMouseDown: (ev) => {
282
282
  ev.preventDefault();
283
283
  this.buttonEl.focus();
284
- } }, h("span", { class: "clock" })), h("ul", { class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { id: "error", class: "error" }, this.errorMessage)), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
284
+ } }, h("span", { key: 'd6912b075f5ad8396b82b6d8f562e41698cfe62f', class: "clock" })), h("ul", { key: '458b1c42f853567c26a32f6538ed6c6ba629c38f', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '2c561ba815cf53ecb94e21864be52c72fc7b8c13', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '6f216c9a6539cf1800dfe944d762e31dc9c3422e', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
285
285
  }
286
286
  static get is() { return "wm-timepicker"; }
287
287
  static get encapsulation() { return "shadow"; }
@@ -468,8 +468,9 @@ export class Timepicker {
468
468
  "complexType": {
469
469
  "signature": "(input: string) => Promise<boolean>",
470
470
  "parameters": [{
471
- "tags": [],
472
- "text": ""
471
+ "name": "input",
472
+ "type": "string",
473
+ "docs": ""
473
474
  }],
474
475
  "references": {
475
476
  "Promise": {
@@ -488,11 +489,13 @@ export class Timepicker {
488
489
  "complexType": {
489
490
  "signature": "(format: \"12\" | \"24\", time: TimeFormat12 | TimeFormat24) => Promise<string>",
490
491
  "parameters": [{
491
- "tags": [],
492
- "text": ""
492
+ "name": "format",
493
+ "type": "\"12\" | \"24\"",
494
+ "docs": ""
493
495
  }, {
494
- "tags": [],
495
- "text": ""
496
+ "name": "time",
497
+ "type": "string",
498
+ "docs": ""
496
499
  }],
497
500
  "references": {
498
501
  "Promise": {
@@ -97,9 +97,9 @@ export class Toggletip {
97
97
  }
98
98
  }
99
99
  render() {
100
- return (h(Host, { class: `size-${this.targetSize}` }, h("button", { class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
100
+ return (h(Host, { key: '8f5da43befa9de791cb44afba532182f6df0a81d', class: `size-${this.targetSize}` }, h("button", { key: '81c79d18ff76953fbf9dce6192011085ccb296ba', class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
101
101
  // In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
102
- onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
102
+ onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { key: '3b183d1c1624cbadb6b774c55c0debcb99785c6d', ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { key: '45e77332889bdfc552906127f24452ee0c97fe27', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
103
103
  }
104
104
  static get is() { return "wm-toggletip"; }
105
105
  static get encapsulation() { return "shadow"; }
@@ -195,9 +195,9 @@ export class Uploader {
195
195
  return (h("div", { class: `wrapper ${this.errorMessage ? "invalid" : ""}` }, h("div", { id: "label", class: `label` }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))));
196
196
  }
197
197
  render() {
198
- return (h(Host, null, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
198
+ return (h(Host, { key: '4f9a5f1221aa84bad9e734bfba6a87f89fcdfd84' }, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: '59f21688992efe6da96d837efee78d65db18f8d4', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
199
199
  ,
200
- "aria-atomic": "true" }), h("div", { ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
200
+ "aria-atomic": "true" }), h("div", { key: '1e68b8375c3d41706c5b84af7485d75f99e35dd9', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
201
201
  }
202
202
  static get is() { return "wm-uploader"; }
203
203
  static get encapsulation() { return "shadow"; }
@@ -3,18 +3,21 @@ function showModal(id) {
3
3
  modal.open = true;
4
4
  }
5
5
 
6
- function showDialog(id) {
7
- const event = new Event("wmShowModal");
8
- event.detail = "dialog";
9
- window.dispatchEvent(event);
10
- const dialog = document.getElementById(id);
11
- dialog.open = true;
6
+ function hideModal(ev) {
7
+ ev.target.open = false;
12
8
  }
13
9
 
14
- const modal = document.getElementById("modal");
15
- const innerModal = document.getElementById("inner-modal");
16
- const innerDialog = document.getElementById("inner-dialog");
17
- const nestedModal = document.getElementById("nested-modal");
10
+ // hook up each modal and its button
11
+ const ids = ["modal", "inner-modal", "inner-dialog", "nested-modal", "dialog"];
12
+ ids.forEach((id) => {
13
+ const modalBtn = document.getElementById(`${id}-btn`);
14
+ modalBtn && modalBtn.addEventListener("click", () => showModal(id));
15
+
16
+ const modal = document.getElementById(id);
17
+ modal && modal.addEventListener("wmModalPrimaryTriggered", actionTriggered);
18
+ modal && modal.addEventListener("wmModalSecondaryTriggered", hideModal);
19
+ modal && modal.addEventListener("wmModalCloseTriggered", hideModal);
20
+ });
18
21
 
19
22
  const modalInput = document.getElementById("modal-input");
20
23
  const count = document.getElementById("count");
@@ -34,42 +37,9 @@ count &&
34
37
  modalFooter.setAttribute("info-text", ev.target.value + " things ready to launch");
35
38
  });
36
39
 
37
- const nestingModals = [modal, innerModal, innerDialog, nestedModal];
38
-
39
- nestingModals.forEach((modal) => {
40
- modal && modal.addEventListener("wmModalPrimaryTriggered", actionTriggered);
41
- modal && modal.addEventListener("wmModalSecondaryTriggered", modalDismissed);
42
- modal && modal.addEventListener("wmModalCloseTriggered", modalDismissed);
43
- });
44
-
45
- function actionTriggered(element) {
40
+ function actionTriggered(ev) {
46
41
  modalInput.value = "";
47
42
  console.log("Changes saved");
48
43
  modalFooter.actionDisabled = true;
49
- this.open = false;
50
- }
51
-
52
- function modalDismissed(element) {
53
- this.open = false;
44
+ ev.target.open = false;
54
45
  }
55
-
56
- const dialog = document.getElementById("dialog");
57
-
58
- dialog &&
59
- dialog.addEventListener("wmModalCloseTriggered", function () {
60
- dialog.open = false;
61
- });
62
-
63
- dialog &&
64
- dialog.addEventListener("wmModalSecondaryTriggered", function () {
65
- dialog.open = false;
66
- alert("Secondary clicked!");
67
- });
68
-
69
- dialog &&
70
- dialog.addEventListener("wmModalPrimaryTriggered", function () {
71
- console.log("Deleted");
72
- dialog.open = false;
73
- });
74
-
75
-
@@ -1,5 +1,7 @@
1
+ let notifications = [];
2
+
1
3
  function generateSnackbar(isDefault = false) {
2
- const randomId = Math.floor(Math.random() * 100) + 1;
4
+ const randomId = (Math.floor(Math.random() * 100) + 1).toString();
3
5
  const id = isDefault
4
6
  ? randomId
5
7
  : document.getElementById("custom-id").value
@@ -17,9 +19,8 @@ function generateSnackbar(isDefault = false) {
17
19
  };
18
20
 
19
21
  const snackbar = document.getElementById("snackbar");
20
- const notifications = JSON.parse(snackbar.notifications);
21
- let updatedNotifications = [newNotification, ...notifications];
22
- snackbar.notifications = JSON.stringify(updatedNotifications);
22
+ notifications = [newNotification, ...notifications];
23
+ snackbar.notifications = JSON.stringify(notifications);
23
24
  }
24
25
 
25
26
  document.querySelector("#snack-basic").addEventListener("click", () => generateSnackbar(true));
@@ -28,8 +29,9 @@ document.querySelector("#snack-update").addEventListener("click", () => updateSn
28
29
 
29
30
  document.addEventListener("wmSnackbarSnackFinished", function (ev) {
30
31
  const snackbar = document.getElementById("snackbar");
31
- let newSnacks = JSON.parse(snackbar.notifications).filter((snack) => snack.id !== ev.detail.id);
32
- snackbar.notifications = JSON.stringify(newSnacks);
32
+ let newSnacks = notifications.filter((snack) => snack.id !== ev.detail.id);
33
+ notifications = newSnacks;
34
+ snackbar.notifications = JSON.stringify(notifications);
33
35
  });
34
36
 
35
37
  document.addEventListener("wmSnackbarActionTriggered", function (ev) {
@@ -43,11 +45,10 @@ document.addEventListener("wmSnackbarActionTriggered", function (ev) {
43
45
 
44
46
  function updateSnackText() {
45
47
  const snackbar = document.querySelector("#snackbar");
46
- const parsedNotifications = JSON.parse(snackbar.notifications);
47
- parsedNotifications.forEach((notif) => {
48
+ notifications.forEach((notif) => {
48
49
  if (notif.id == "11") {
49
50
  notif.message = Date.now().toLocaleString();
50
51
  }
51
52
  });
52
- snackbar.notifications = JSON.stringify(parsedNotifications);
53
+ snackbar.notifications = JSON.stringify(notifications);
53
54
  }
@@ -89,7 +89,7 @@ export function findParentWithHiddenOverflow(el) {
89
89
  el = el.parentElement;
90
90
  }
91
91
  }
92
- function getContextMeasurements(el) {
92
+ export function getContextMeasurements(el) {
93
93
  const fixedRect = el.getBoundingClientRect();
94
94
  const parentEl = findParentWithHiddenOverflow(el);
95
95
  const parentRect = parentEl && parentEl.getBoundingClientRect();
@@ -1,6 +1,6 @@
1
- 'use strict';
1
+ import './index-130e07bb.js';
2
2
 
3
- const version = "5.3.0-1";
3
+ const version = "5.3.0-3";
4
4
 
5
5
  // PRINT RIPPLE VERSION IN CONSOLE
6
6
  // test envs return 0 for plugin.length
@@ -83,3 +83,8 @@ tooltipStyles.textContent = `
83
83
  document.head.appendChild(tooltipStyles);
84
84
  tooltipContainer.appendChild(tooltipEl);
85
85
  document.querySelector("body").appendChild(tooltipContainer);
86
+ const globalFn = () => { };
87
+
88
+ const globalScripts = globalFn;
89
+
90
+ export { globalScripts as g };
@@ -1,5 +1,5 @@
1
- import { h } from './index-f164fbca.js';
2
- import { i as intl, c as safeMultiplyFloat, e as getPosition, f as checkForActiveElInShadow } from './functions-f65dbb96.js';
1
+ import { h } from './index-130e07bb.js';
2
+ import { i as intl, c as safeMultiplyFloat, e as getPosition, f as checkForActiveElInShadow } from './functions-25781571.js';
3
3
 
4
4
  const colors = {
5
5
  salmon: "#ff5f4e",
@@ -84,7 +84,7 @@ const allChartsDetails = {
84
84
  bar5: {
85
85
  size: 400,
86
86
  colors: [
87
- colors.gray,
87
+ colors.gray, // this is only used if prop notStartedColor is set
88
88
  colors.lavender,
89
89
  colors.midnight,
90
90
  "#0089e4",