@watermarkinsights/ripple 3.26.0-9 → 3.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/{chartFunctions-d746b939.js → chartFunctions-b7452189.js} +596 -596
  3. package/dist/cjs/{functions-68f637b4.js → functions-a047a8ea.js} +503 -503
  4. package/dist/cjs/{global-0f60d748.js → global-21ae6c78.js} +72 -72
  5. package/dist/cjs/{http-service-9e8c4dd5.js → http-service-494d81de.js} +49 -49
  6. package/dist/cjs/{interfaces-30a74c1f.js → interfaces-a3338581.js} +29 -29
  7. package/dist/cjs/{intl-d9ffc76c.js → intl-47d63c8f.js} +131 -131
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/priv-chart-popover.cjs.entry.js +91 -91
  10. package/dist/cjs/priv-datepicker.cjs.entry.js +657 -657
  11. package/dist/cjs/priv-navigator-button.cjs.entry.js +19 -19
  12. package/dist/cjs/priv-navigator-item.cjs.entry.js +23 -23
  13. package/dist/cjs/ripple.cjs.js +1 -1
  14. package/dist/cjs/wm-action-menu_2.cjs.entry.js +334 -334
  15. package/dist/cjs/wm-button.cjs.entry.js +260 -260
  16. package/dist/cjs/wm-chart-slice.cjs.entry.js +18 -18
  17. package/dist/cjs/wm-chart.cjs.entry.js +183 -183
  18. package/dist/cjs/wm-datepicker.cjs.entry.js +263 -263
  19. package/dist/cjs/wm-file-list.cjs.entry.js +35 -35
  20. package/dist/cjs/wm-file.cjs.entry.js +181 -181
  21. package/dist/cjs/wm-input.cjs.entry.js +137 -137
  22. package/dist/cjs/wm-modal-footer.cjs.entry.js +33 -33
  23. package/dist/cjs/wm-modal-header.cjs.entry.js +32 -32
  24. package/dist/cjs/wm-modal.cjs.entry.js +152 -152
  25. package/dist/cjs/wm-navigation_3.cjs.entry.js +225 -225
  26. package/dist/cjs/wm-navigator.cjs.entry.js +264 -264
  27. package/dist/cjs/wm-network-uploader.cjs.entry.js +465 -465
  28. package/dist/cjs/wm-option_2.cjs.entry.js +768 -768
  29. package/dist/cjs/wm-pagination.cjs.entry.js +179 -179
  30. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +155 -155
  31. package/dist/cjs/wm-search.cjs.entry.js +184 -184
  32. package/dist/cjs/wm-snackbar.cjs.entry.js +155 -155
  33. package/dist/cjs/wm-tab-item_3.cjs.entry.js +264 -264
  34. package/dist/cjs/wm-tag-input-row.cjs.entry.js +14 -14
  35. package/dist/cjs/wm-tag-input.cjs.entry.js +939 -939
  36. package/dist/cjs/wm-timepicker.cjs.entry.js +385 -385
  37. package/dist/cjs/wm-toggletip.cjs.entry.js +130 -130
  38. package/dist/cjs/wm-uploader.cjs.entry.js +441 -441
  39. package/dist/cjs/wm-wrapper.cjs.entry.js +12 -12
  40. package/dist/collection/components/charts/chartFunctions.js +562 -562
  41. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +267 -267
  42. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +125 -125
  43. package/dist/collection/components/charts/wm-chart/wm-chart.js +450 -450
  44. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +207 -207
  45. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +143 -143
  46. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +121 -121
  47. package/dist/collection/components/wm-action-menu/wm-action-menu.js +472 -472
  48. package/dist/collection/components/wm-button/wm-button.js +575 -575
  49. package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +983 -983
  50. package/dist/collection/components/wm-datepicker/wm-datepicker.js +491 -491
  51. package/dist/collection/components/wm-file/wm-file.js +313 -313
  52. package/dist/collection/components/wm-file-list/wm-file-list.js +152 -152
  53. package/dist/collection/components/wm-input/wm-input.css +5 -1
  54. package/dist/collection/components/wm-input/wm-input.js +509 -509
  55. package/dist/collection/components/wm-menuitem/wm-menuitem.js +454 -454
  56. package/dist/collection/components/wm-modal/wm-modal-footer.js +138 -138
  57. package/dist/collection/components/wm-modal/wm-modal-header.js +82 -82
  58. package/dist/collection/components/wm-modal/wm-modal.js +462 -462
  59. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +176 -176
  60. package/dist/collection/components/wm-navigation/wm-navigation-item.js +130 -130
  61. package/dist/collection/components/wm-navigation/wm-navigation.js +217 -217
  62. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +106 -106
  63. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +123 -123
  64. package/dist/collection/components/wm-navigator/wm-navigator.js +467 -467
  65. package/dist/collection/components/wm-option/wm-option.js +435 -435
  66. package/dist/collection/components/wm-pagination/wm-pagination.js +370 -370
  67. package/dist/collection/components/wm-search/wm-search.js +439 -439
  68. package/dist/collection/components/wm-select/wm-select.js +1054 -1054
  69. package/dist/collection/components/wm-snackbar/wm-snackbar.js +282 -282
  70. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +211 -211
  71. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +327 -327
  72. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +108 -108
  73. package/dist/collection/components/wm-tag-input/wm-tag-input-row/wm-tag-input-row.js +122 -122
  74. package/dist/collection/components/wm-tag-input/wm-tag-input.js +1294 -1294
  75. package/dist/collection/components/wm-timepicker/wm-timepicker.js +605 -605
  76. package/dist/collection/components/wm-toggletip/wm-toggletip.js +253 -253
  77. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +772 -772
  78. package/dist/collection/components/wm-uploader/wm-uploader.js +964 -964
  79. package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -28
  80. package/dist/collection/dev/scripts.js +20 -20
  81. package/dist/collection/global/__mocks__/functions.js +6 -6
  82. package/dist/collection/global/functions.js +546 -546
  83. package/dist/collection/global/global.js +79 -79
  84. package/dist/collection/global/interfaces.js +49 -49
  85. package/dist/collection/global/intl.js +132 -132
  86. package/dist/collection/global/services/__mocks__/http-service.js +130 -130
  87. package/dist/collection/global/services/http-service.js +50 -50
  88. package/dist/collection/lang/lang.js +5 -5
  89. package/dist/collection/lang/missing.js +43 -43
  90. package/dist/collection/lang/piglatin.js +93 -93
  91. package/dist/esm/{chartFunctions-5c1ad085.js → chartFunctions-9d629e09.js} +596 -596
  92. package/dist/esm/{functions-b2582352.js → functions-3b813e0c.js} +503 -503
  93. package/dist/esm/{global-86bf0ca6.js → global-c7bb5530.js} +72 -72
  94. package/dist/esm/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +49 -49
  95. package/dist/esm/{interfaces-61c6305b.js → interfaces-2b97fab2.js} +29 -29
  96. package/dist/esm/{intl-6732dd5b.js → intl-d544f922.js} +131 -131
  97. package/dist/esm/loader.js +1 -1
  98. package/dist/esm/polyfills/core-js.js +0 -0
  99. package/dist/esm/polyfills/dom.js +0 -0
  100. package/dist/esm/polyfills/es5-html-element.js +0 -0
  101. package/dist/esm/polyfills/index.js +0 -0
  102. package/dist/esm/polyfills/system.js +0 -0
  103. package/dist/esm/priv-chart-popover.entry.js +91 -91
  104. package/dist/esm/priv-datepicker.entry.js +657 -657
  105. package/dist/esm/priv-navigator-button.entry.js +19 -19
  106. package/dist/esm/priv-navigator-item.entry.js +23 -23
  107. package/dist/esm/ripple.js +1 -1
  108. package/dist/esm/wm-action-menu_2.entry.js +334 -334
  109. package/dist/esm/wm-button.entry.js +260 -260
  110. package/dist/esm/wm-chart-slice.entry.js +18 -18
  111. package/dist/esm/wm-chart.entry.js +183 -183
  112. package/dist/esm/wm-datepicker.entry.js +263 -263
  113. package/dist/esm/wm-file-list.entry.js +35 -35
  114. package/dist/esm/wm-file.entry.js +181 -181
  115. package/dist/esm/wm-input.entry.js +137 -137
  116. package/dist/esm/wm-modal-footer.entry.js +33 -33
  117. package/dist/esm/wm-modal-header.entry.js +32 -32
  118. package/dist/esm/wm-modal.entry.js +152 -152
  119. package/dist/esm/wm-navigation_3.entry.js +225 -225
  120. package/dist/esm/wm-navigator.entry.js +264 -264
  121. package/dist/esm/wm-network-uploader.entry.js +465 -465
  122. package/dist/esm/wm-option_2.entry.js +768 -768
  123. package/dist/esm/wm-pagination.entry.js +179 -179
  124. package/dist/esm/wm-progress-indicator_3.entry.js +155 -155
  125. package/dist/esm/wm-search.entry.js +184 -184
  126. package/dist/esm/wm-snackbar.entry.js +155 -155
  127. package/dist/esm/wm-tab-item_3.entry.js +264 -264
  128. package/dist/esm/wm-tag-input-row.entry.js +14 -14
  129. package/dist/esm/wm-tag-input.entry.js +939 -939
  130. package/dist/esm/wm-timepicker.entry.js +385 -385
  131. package/dist/esm/wm-toggletip.entry.js +130 -130
  132. package/dist/esm/wm-uploader.entry.js +441 -441
  133. package/dist/esm/wm-wrapper.entry.js +12 -12
  134. package/dist/esm-es5/{chartFunctions-5c1ad085.js → chartFunctions-9d629e09.js} +1 -1
  135. package/dist/esm-es5/global-c7bb5530.js +1 -0
  136. package/dist/esm-es5/{intl-6732dd5b.js → intl-d544f922.js} +1 -1
  137. package/dist/esm-es5/loader.js +1 -1
  138. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  139. package/dist/esm-es5/priv-datepicker.entry.js +1 -1
  140. package/dist/esm-es5/ripple.js +1 -1
  141. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  142. package/dist/esm-es5/wm-button.entry.js +1 -1
  143. package/dist/esm-es5/wm-chart.entry.js +1 -1
  144. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  145. package/dist/esm-es5/wm-file.entry.js +1 -1
  146. package/dist/esm-es5/wm-input.entry.js +1 -1
  147. package/dist/esm-es5/wm-modal-header.entry.js +1 -1
  148. package/dist/esm-es5/wm-modal.entry.js +1 -1
  149. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  150. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  151. package/dist/esm-es5/wm-network-uploader.entry.js +1 -1
  152. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  153. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  154. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  155. package/dist/esm-es5/wm-search.entry.js +1 -1
  156. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  157. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  158. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  159. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  160. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  161. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  162. package/dist/ripple/{p-d5a420fa.entry.js → p-05563588.entry.js} +1 -1
  163. package/dist/ripple/{p-061914bf.system.entry.js → p-09a04f55.system.entry.js} +1 -1
  164. package/dist/ripple/{p-a2f10a77.entry.js → p-09bc0aa7.entry.js} +1 -1
  165. package/dist/ripple/{p-0414179c.entry.js → p-0cfc0d13.entry.js} +1 -1
  166. package/dist/ripple/{p-a9080b82.entry.js → p-0ef638b7.entry.js} +1 -1
  167. package/dist/ripple/{p-f740c48c.system.entry.js → p-12c70659.system.entry.js} +1 -1
  168. package/dist/ripple/p-169606b9.system.js +1 -0
  169. package/dist/ripple/{p-7ee31208.js → p-18c2f4fe.js} +1 -1
  170. package/dist/ripple/{p-462e7cf8.system.entry.js → p-236dab05.system.entry.js} +1 -1
  171. package/dist/ripple/{p-9baf62ae.entry.js → p-2cd5477a.entry.js} +1 -1
  172. package/dist/ripple/{p-2cef256c.system.entry.js → p-2cde4ade.system.entry.js} +1 -1
  173. package/dist/ripple/{p-076a8729.entry.js → p-2d46dbea.entry.js} +1 -1
  174. package/dist/ripple/{p-3313df40.system.entry.js → p-2dd5f5c3.system.entry.js} +1 -1
  175. package/dist/ripple/{p-64b64f40.system.entry.js → p-35790e4e.system.entry.js} +1 -1
  176. package/dist/ripple/{p-4e7489a3.system.entry.js → p-38819b27.system.entry.js} +1 -1
  177. package/dist/ripple/{p-926aab51.entry.js → p-3aa8e5f5.entry.js} +1 -1
  178. package/dist/ripple/{p-42739dba.entry.js → p-42f8f3ff.entry.js} +1 -1
  179. package/dist/ripple/{p-c1d814f8.system.entry.js → p-4444add0.system.entry.js} +1 -1
  180. package/dist/ripple/{p-0648aa61.system.entry.js → p-4f5a48dd.system.entry.js} +1 -1
  181. package/dist/ripple/{p-2948bf33.system.entry.js → p-4fb81a33.system.entry.js} +1 -1
  182. package/dist/ripple/{p-22b74491.entry.js → p-51b38033.entry.js} +1 -1
  183. package/dist/ripple/{p-9706537b.system.js → p-54a2b7d6.system.js} +1 -1
  184. package/dist/ripple/{p-00edfbc8.system.entry.js → p-56ba575c.system.entry.js} +1 -1
  185. package/dist/ripple/{p-b7f204e6.entry.js → p-5708349e.entry.js} +1 -1
  186. package/dist/ripple/{p-7dafc84b.system.entry.js → p-630bd6f5.system.entry.js} +1 -1
  187. package/dist/ripple/{p-b7982fab.system.js → p-6eb2c2d5.system.js} +1 -1
  188. package/dist/ripple/{p-a966a18c.entry.js → p-72b9b986.entry.js} +1 -1
  189. package/dist/ripple/p-76015762.js +1 -0
  190. package/dist/ripple/{p-3aaf86e4.entry.js → p-7f15df83.entry.js} +1 -1
  191. package/dist/ripple/{p-5ddb1660.entry.js → p-832910a0.entry.js} +1 -1
  192. package/dist/ripple/{p-66bb46e5.system.entry.js → p-84ce9b67.system.entry.js} +1 -1
  193. package/dist/ripple/{p-e6fde200.system.entry.js → p-8775e10b.system.entry.js} +1 -1
  194. package/dist/ripple/{p-6f96c28d.entry.js → p-8b23f32b.entry.js} +1 -1
  195. package/dist/ripple/{p-17490d32.entry.js → p-8c853762.entry.js} +1 -1
  196. package/dist/ripple/{p-81b26d3a.system.entry.js → p-8ff578ad.system.entry.js} +1 -1
  197. package/dist/ripple/{p-9b9e60aa.system.entry.js → p-95aa793b.system.entry.js} +1 -1
  198. package/dist/ripple/{p-9b28a31f.entry.js → p-95f4e5a1.entry.js} +1 -1
  199. package/dist/ripple/{p-accdf91c.system.entry.js → p-a006968b.system.entry.js} +1 -1
  200. package/dist/ripple/{p-2d33df00.system.js → p-a48e4f1a.system.js} +1 -1
  201. package/dist/ripple/{p-094388f1.entry.js → p-ae1e1db8.entry.js} +1 -1
  202. package/dist/ripple/{p-3b582301.entry.js → p-b3d97de8.entry.js} +1 -1
  203. package/dist/ripple/{p-f8418ac9.entry.js → p-bdecbb63.entry.js} +1 -1
  204. package/dist/ripple/{p-b805612a.system.entry.js → p-c3665c9f.system.entry.js} +1 -1
  205. package/dist/ripple/{p-d7f77b2c.js → p-d96b86c9.js} +1 -1
  206. package/dist/ripple/p-d973fe13.system.entry.js +1 -0
  207. package/dist/ripple/{p-0503e614.system.entry.js → p-ea99fb58.system.entry.js} +1 -1
  208. package/dist/ripple/{p-bd94e7c3.entry.js → p-eeeec290.entry.js} +1 -1
  209. package/dist/ripple/{p-a5662a2c.system.entry.js → p-f2bb38d0.system.entry.js} +1 -1
  210. package/dist/ripple/{p-043b4874.entry.js → p-f6c9c95f.entry.js} +1 -1
  211. package/dist/ripple/{p-731beaab.system.entry.js → p-f6f80b8d.system.entry.js} +1 -1
  212. package/dist/ripple/{p-49f7f1da.entry.js → p-fe76e568.entry.js} +1 -1
  213. package/dist/ripple/{p-60f58a39.system.entry.js → p-fea37751.system.entry.js} +1 -1
  214. package/dist/ripple/{p-5b7e1b5d.entry.js → p-ffb83b6f.entry.js} +1 -1
  215. package/dist/ripple/ripple.esm.js +1 -1
  216. package/dist/ripple/ripple.js +1 -1
  217. package/dist/types/components/charts/chartFunctions.d.ts +37 -37
  218. package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +27 -27
  219. package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +11 -11
  220. package/dist/types/components/charts/wm-chart/wm-chart.d.ts +47 -47
  221. package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +29 -29
  222. package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +20 -20
  223. package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +10 -10
  224. package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +49 -49
  225. package/dist/types/components/wm-button/wm-button.d.ts +49 -49
  226. package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +80 -80
  227. package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +42 -42
  228. package/dist/types/components/wm-file/wm-file.d.ts +40 -40
  229. package/dist/types/components/wm-file-list/wm-file-list.d.ts +16 -16
  230. package/dist/types/components/wm-input/wm-input.d.ts +57 -57
  231. package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +34 -34
  232. package/dist/types/components/wm-modal/wm-modal-footer.d.ts +14 -14
  233. package/dist/types/components/wm-modal/wm-modal-header.d.ts +10 -10
  234. package/dist/types/components/wm-modal/wm-modal.d.ts +40 -40
  235. package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +21 -21
  236. package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +13 -13
  237. package/dist/types/components/wm-navigation/wm-navigation.d.ts +26 -26
  238. package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -10
  239. package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -13
  240. package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -61
  241. package/dist/types/components/wm-option/wm-option.d.ts +34 -34
  242. package/dist/types/components/wm-pagination/wm-pagination.d.ts +32 -32
  243. package/dist/types/components/wm-search/wm-search.d.ts +77 -77
  244. package/dist/types/components/wm-select/wm-select.d.ts +101 -101
  245. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +31 -31
  246. package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +37 -37
  247. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +52 -52
  248. package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -20
  249. package/dist/types/components/wm-tag-input/wm-tag-input-row/wm-tag-input-row.d.ts +11 -11
  250. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +136 -136
  251. package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +62 -62
  252. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +28 -28
  253. package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -85
  254. package/dist/types/components/wm-uploader/wm-uploader.d.ts +99 -99
  255. package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -7
  256. package/dist/types/components.d.ts +27 -27
  257. package/dist/types/global/__mocks__/functions.d.ts +6 -6
  258. package/dist/types/global/functions.d.ts +49 -49
  259. package/dist/types/global/global.d.ts +1 -1
  260. package/dist/types/global/interfaces.d.ts +74 -74
  261. package/dist/types/global/intl.d.ts +29 -29
  262. package/dist/types/global/services/__mocks__/http-service.d.ts +6 -6
  263. package/dist/types/global/services/http-service.d.ts +4 -4
  264. package/dist/types/lang/lang.d.ts +5 -5
  265. package/package.json +46 -46
  266. package/dist/esm-es5/global-86bf0ca6.js +0 -1
  267. package/dist/ripple/p-233c8059.js +0 -1
  268. package/dist/ripple/p-9f9a5a1f.system.js +0 -1
  269. package/dist/ripple/p-e4cef02b.system.entry.js +0 -1
  270. /package/dist/esm-es5/{functions-b2582352.js → functions-3b813e0c.js} +0 -0
  271. /package/dist/esm-es5/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +0 -0
  272. /package/dist/esm-es5/{interfaces-61c6305b.js → interfaces-2b97fab2.js} +0 -0
  273. /package/dist/ripple/{p-9e94ae94.system.js → p-190afa40.system.js} +0 -0
  274. /package/dist/ripple/{p-888bec42.js → p-43f1298b.js} +0 -0
  275. /package/dist/ripple/{p-5384856b.js → p-4a0e1d2d.js} +0 -0
  276. /package/dist/ripple/{p-313b6073.system.js → p-9d02957d.system.js} +0 -0
  277. /package/dist/ripple/{p-08b7ec08.system.js → p-f5df5903.system.js} +0 -0
  278. /package/dist/ripple/{p-a6d6eae7.js → p-fd8070fb.js} +0 -0
@@ -1,253 +1,253 @@
1
- import { Host, h } from "@stencil/core";
2
- import { shouldOpenUp, shouldOpenDown, shouldShiftLeft, shouldShiftRight, intl } from "../../global/functions";
3
- export class Toggletip {
4
- constructor() {
5
- this.tooltipMessage = intl.formatMessage({
6
- id: "toggletip.moreInformation",
7
- defaultMessage: "More information",
8
- });
9
- this.label = undefined;
10
- this.tooltip = undefined;
11
- this.tooltipText = undefined;
12
- this.tooltipPosition = "bottom-right";
13
- this.isOpen = false;
14
- this.isTabbing = false;
15
- }
16
- get tempTooltip() {
17
- // instances of this.tempTooltip should be replaced with this.tooltip once tooltipText is fully phased out
18
- return this.tooltip || this.tooltipText;
19
- }
20
- componentWillLoad() {
21
- const validTooltipPlacement = [
22
- "top",
23
- "right",
24
- "bottom",
25
- "left",
26
- "top-right",
27
- "top-left",
28
- "bottom-right",
29
- "bottom-left",
30
- ];
31
- if (!this.label) {
32
- console.error("wm-toggletip must have a label property");
33
- }
34
- if (!this.tempTooltip) {
35
- console.error("wm-toggletip must have a tooltip property");
36
- }
37
- if (!validTooltipPlacement.includes(this.tooltipPosition)) {
38
- console.error(`wm-toggletip: tooltip-position has an invalid value of "${this.tooltipPosition}", make sure to use one of the following values: ${validTooltipPlacement}`);
39
- }
40
- if (this.tooltipText) {
41
- console.warn("wm-toggletip: tooltip-text has been deprecated as of v3.1.0. Please use tooltip instead.");
42
- }
43
- }
44
- handleKeydown(ev) {
45
- switch (ev.key) {
46
- case "Escape":
47
- ev.preventDefault();
48
- if (this.isOpen) {
49
- ev.stopPropagation(); // prevent closing modal if within one
50
- this.close();
51
- }
52
- break;
53
- case "Tab":
54
- if (this.isOpen) {
55
- this.close();
56
- }
57
- }
58
- }
59
- toggleTabbingOn() {
60
- this.isTabbing = true;
61
- }
62
- toggleTabbingOff() {
63
- this.isTabbing = false;
64
- }
65
- handleClick(ev) {
66
- if (this.isOpen) {
67
- if (ev.target === this.el || this.el.contains(ev.target)) {
68
- // Re-announce if clicking any part of the component while open
69
- this.announceToggletip();
70
- }
71
- else {
72
- this.close();
73
- }
74
- }
75
- }
76
- open() {
77
- this.isOpen = true;
78
- this.announceToggletip();
79
- }
80
- close() {
81
- this.isOpen = false;
82
- this.hideTooltip();
83
- }
84
- handleBlur() {
85
- this.hideTooltip();
86
- // clear liveregion on blur to prevent old announcement text from being picked up by screen readers
87
- this.liveRegionEl.innerHTML = "";
88
- }
89
- showTooltip() {
90
- // Because a :hover pseudoclass would apply before the tooltip is repositioned, hover styles must be applied through a class
91
- // Otherwise, the tooltip will flash on-screen and possibly create scrollbars
92
- this.setToggletipPosition();
93
- this.tooltipEl.classList.add("hover");
94
- }
95
- hideTooltip() {
96
- this.tooltipEl.classList.remove("hover");
97
- }
98
- announceToggletip() {
99
- this.liveRegionEl.innerHTML = "";
100
- setTimeout(() => {
101
- this.liveRegionEl.innerHTML = this.tempTooltip;
102
- }, 10);
103
- }
104
- setToggletipPosition() {
105
- // Vertical
106
- if (this.tooltipPosition.includes("bottom") && shouldOpenUp(this.el, this.toggletipEl)) {
107
- this.tooltipPosition = this.tooltipPosition.replace("bottom", "top");
108
- }
109
- else if (this.tooltipPosition.includes("top") && shouldOpenDown(this.el, this.toggletipEl)) {
110
- this.tooltipPosition = this.tooltipPosition.replace("top", "bottom");
111
- }
112
- // Horizontal
113
- if (this.tooltipPosition.includes("left") && shouldShiftRight(this.el, this.toggletipEl)) {
114
- this.tooltipPosition = this.tooltipPosition.replace("left", "right");
115
- }
116
- else if (this.tooltipPosition.includes("right") && shouldShiftLeft(this.el, this.toggletipEl)) {
117
- this.tooltipPosition = this.tooltipPosition.replace("right", "left");
118
- }
119
- }
120
- render() {
121
- return (h(Host, null, h("button", { class: `button ${this.isTabbing ? "user-is-tabbing" : ""}`, type: "button", "aria-label": this.label, onClick: () => {
122
- this.setToggletipPosition();
123
- this.open();
124
- },
125
- // In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
126
- onMouseEnter: () => this.showTooltip(), onMouseLeave: () => this.hideTooltip(), onFocus: () => this.showTooltip(), onBlur: () => this.handleBlur() }), h("div", { ref: (el) => (this.tooltipEl = el), class: `tooltip ${this.tooltipPosition} ${this.isOpen ? "hidden" : ""}`, "aria-hidden": "true" }, this.tooltipMessage), h("div", { ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tempTooltip), h("div", { ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
127
- }
128
- static get is() { return "wm-toggletip"; }
129
- static get encapsulation() { return "shadow"; }
130
- static get delegatesFocus() { return true; }
131
- static get originalStyleUrls() {
132
- return {
133
- "$": ["wm-toggletip.scss"]
134
- };
135
- }
136
- static get styleUrls() {
137
- return {
138
- "$": ["wm-toggletip.css"]
139
- };
140
- }
141
- static get properties() {
142
- return {
143
- "label": {
144
- "type": "string",
145
- "mutable": false,
146
- "complexType": {
147
- "original": "string",
148
- "resolved": "string | undefined",
149
- "references": {}
150
- },
151
- "required": false,
152
- "optional": true,
153
- "docs": {
154
- "tags": [],
155
- "text": ""
156
- },
157
- "attribute": "label",
158
- "reflect": false
159
- },
160
- "tooltip": {
161
- "type": "string",
162
- "mutable": true,
163
- "complexType": {
164
- "original": "string",
165
- "resolved": "string | undefined",
166
- "references": {}
167
- },
168
- "required": false,
169
- "optional": true,
170
- "docs": {
171
- "tags": [],
172
- "text": ""
173
- },
174
- "attribute": "tooltip",
175
- "reflect": false
176
- },
177
- "tooltipText": {
178
- "type": "string",
179
- "mutable": false,
180
- "complexType": {
181
- "original": "string",
182
- "resolved": "string | undefined",
183
- "references": {}
184
- },
185
- "required": false,
186
- "optional": true,
187
- "docs": {
188
- "tags": [],
189
- "text": ""
190
- },
191
- "attribute": "tooltip-text",
192
- "reflect": false
193
- },
194
- "tooltipPosition": {
195
- "type": "string",
196
- "mutable": true,
197
- "complexType": {
198
- "original": "TooltipPlacement",
199
- "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
200
- "references": {
201
- "TooltipPlacement": {
202
- "location": "import",
203
- "path": "../../global/interfaces"
204
- }
205
- }
206
- },
207
- "required": false,
208
- "optional": false,
209
- "docs": {
210
- "tags": [],
211
- "text": ""
212
- },
213
- "attribute": "tooltip-position",
214
- "reflect": true,
215
- "defaultValue": "\"bottom-right\""
216
- }
217
- };
218
- }
219
- static get states() {
220
- return {
221
- "isOpen": {},
222
- "isTabbing": {}
223
- };
224
- }
225
- static get elementRef() { return "el"; }
226
- static get listeners() {
227
- return [{
228
- "name": "keydown",
229
- "method": "handleKeydown",
230
- "target": undefined,
231
- "capture": false,
232
- "passive": false
233
- }, {
234
- "name": "wmUserIsTabbing",
235
- "method": "toggleTabbingOn",
236
- "target": "window",
237
- "capture": false,
238
- "passive": false
239
- }, {
240
- "name": "wmUserIsNotTabbing",
241
- "method": "toggleTabbingOff",
242
- "target": "window",
243
- "capture": false,
244
- "passive": false
245
- }, {
246
- "name": "click",
247
- "method": "handleClick",
248
- "target": "document",
249
- "capture": false,
250
- "passive": false
251
- }];
252
- }
253
- }
1
+ import { Host, h } from "@stencil/core";
2
+ import { shouldOpenUp, shouldOpenDown, shouldShiftLeft, shouldShiftRight, intl } from "../../global/functions";
3
+ export class Toggletip {
4
+ constructor() {
5
+ this.tooltipMessage = intl.formatMessage({
6
+ id: "toggletip.moreInformation",
7
+ defaultMessage: "More information",
8
+ });
9
+ this.label = undefined;
10
+ this.tooltip = undefined;
11
+ this.tooltipText = undefined;
12
+ this.tooltipPosition = "bottom-right";
13
+ this.isOpen = false;
14
+ this.isTabbing = false;
15
+ }
16
+ get tempTooltip() {
17
+ // instances of this.tempTooltip should be replaced with this.tooltip once tooltipText is fully phased out
18
+ return this.tooltip || this.tooltipText;
19
+ }
20
+ componentWillLoad() {
21
+ const validTooltipPlacement = [
22
+ "top",
23
+ "right",
24
+ "bottom",
25
+ "left",
26
+ "top-right",
27
+ "top-left",
28
+ "bottom-right",
29
+ "bottom-left",
30
+ ];
31
+ if (!this.label) {
32
+ console.error("wm-toggletip must have a label property");
33
+ }
34
+ if (!this.tempTooltip) {
35
+ console.error("wm-toggletip must have a tooltip property");
36
+ }
37
+ if (!validTooltipPlacement.includes(this.tooltipPosition)) {
38
+ console.error(`wm-toggletip: tooltip-position has an invalid value of "${this.tooltipPosition}", make sure to use one of the following values: ${validTooltipPlacement}`);
39
+ }
40
+ if (this.tooltipText) {
41
+ console.warn("wm-toggletip: tooltip-text has been deprecated as of v3.1.0. Please use tooltip instead.");
42
+ }
43
+ }
44
+ handleKeydown(ev) {
45
+ switch (ev.key) {
46
+ case "Escape":
47
+ ev.preventDefault();
48
+ if (this.isOpen) {
49
+ ev.stopPropagation(); // prevent closing modal if within one
50
+ this.close();
51
+ }
52
+ break;
53
+ case "Tab":
54
+ if (this.isOpen) {
55
+ this.close();
56
+ }
57
+ }
58
+ }
59
+ toggleTabbingOn() {
60
+ this.isTabbing = true;
61
+ }
62
+ toggleTabbingOff() {
63
+ this.isTabbing = false;
64
+ }
65
+ handleClick(ev) {
66
+ if (this.isOpen) {
67
+ if (ev.target === this.el || this.el.contains(ev.target)) {
68
+ // Re-announce if clicking any part of the component while open
69
+ this.announceToggletip();
70
+ }
71
+ else {
72
+ this.close();
73
+ }
74
+ }
75
+ }
76
+ open() {
77
+ this.isOpen = true;
78
+ this.announceToggletip();
79
+ }
80
+ close() {
81
+ this.isOpen = false;
82
+ this.hideTooltip();
83
+ }
84
+ handleBlur() {
85
+ this.hideTooltip();
86
+ // clear liveregion on blur to prevent old announcement text from being picked up by screen readers
87
+ this.liveRegionEl.innerHTML = "";
88
+ }
89
+ showTooltip() {
90
+ // Because a :hover pseudoclass would apply before the tooltip is repositioned, hover styles must be applied through a class
91
+ // Otherwise, the tooltip will flash on-screen and possibly create scrollbars
92
+ this.setToggletipPosition();
93
+ this.tooltipEl.classList.add("hover");
94
+ }
95
+ hideTooltip() {
96
+ this.tooltipEl.classList.remove("hover");
97
+ }
98
+ announceToggletip() {
99
+ this.liveRegionEl.innerHTML = "";
100
+ setTimeout(() => {
101
+ this.liveRegionEl.innerHTML = this.tempTooltip;
102
+ }, 10);
103
+ }
104
+ setToggletipPosition() {
105
+ // Vertical
106
+ if (this.tooltipPosition.includes("bottom") && shouldOpenUp(this.el, this.toggletipEl)) {
107
+ this.tooltipPosition = this.tooltipPosition.replace("bottom", "top");
108
+ }
109
+ else if (this.tooltipPosition.includes("top") && shouldOpenDown(this.el, this.toggletipEl)) {
110
+ this.tooltipPosition = this.tooltipPosition.replace("top", "bottom");
111
+ }
112
+ // Horizontal
113
+ if (this.tooltipPosition.includes("left") && shouldShiftRight(this.el, this.toggletipEl)) {
114
+ this.tooltipPosition = this.tooltipPosition.replace("left", "right");
115
+ }
116
+ else if (this.tooltipPosition.includes("right") && shouldShiftLeft(this.el, this.toggletipEl)) {
117
+ this.tooltipPosition = this.tooltipPosition.replace("right", "left");
118
+ }
119
+ }
120
+ render() {
121
+ return (h(Host, null, h("button", { class: `button ${this.isTabbing ? "user-is-tabbing" : ""}`, type: "button", "aria-label": this.label, onClick: () => {
122
+ this.setToggletipPosition();
123
+ this.open();
124
+ },
125
+ // In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
126
+ onMouseEnter: () => this.showTooltip(), onMouseLeave: () => this.hideTooltip(), onFocus: () => this.showTooltip(), onBlur: () => this.handleBlur() }), h("div", { ref: (el) => (this.tooltipEl = el), class: `tooltip ${this.tooltipPosition} ${this.isOpen ? "hidden" : ""}`, "aria-hidden": "true" }, this.tooltipMessage), h("div", { ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tempTooltip), h("div", { ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
127
+ }
128
+ static get is() { return "wm-toggletip"; }
129
+ static get encapsulation() { return "shadow"; }
130
+ static get delegatesFocus() { return true; }
131
+ static get originalStyleUrls() {
132
+ return {
133
+ "$": ["wm-toggletip.scss"]
134
+ };
135
+ }
136
+ static get styleUrls() {
137
+ return {
138
+ "$": ["wm-toggletip.css"]
139
+ };
140
+ }
141
+ static get properties() {
142
+ return {
143
+ "label": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "string",
148
+ "resolved": "string | undefined",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": true,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": ""
156
+ },
157
+ "attribute": "label",
158
+ "reflect": false
159
+ },
160
+ "tooltip": {
161
+ "type": "string",
162
+ "mutable": true,
163
+ "complexType": {
164
+ "original": "string",
165
+ "resolved": "string | undefined",
166
+ "references": {}
167
+ },
168
+ "required": false,
169
+ "optional": true,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": ""
173
+ },
174
+ "attribute": "tooltip",
175
+ "reflect": false
176
+ },
177
+ "tooltipText": {
178
+ "type": "string",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "string",
182
+ "resolved": "string | undefined",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": true,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "attribute": "tooltip-text",
192
+ "reflect": false
193
+ },
194
+ "tooltipPosition": {
195
+ "type": "string",
196
+ "mutable": true,
197
+ "complexType": {
198
+ "original": "TooltipPlacement",
199
+ "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
200
+ "references": {
201
+ "TooltipPlacement": {
202
+ "location": "import",
203
+ "path": "../../global/interfaces"
204
+ }
205
+ }
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ },
213
+ "attribute": "tooltip-position",
214
+ "reflect": true,
215
+ "defaultValue": "\"bottom-right\""
216
+ }
217
+ };
218
+ }
219
+ static get states() {
220
+ return {
221
+ "isOpen": {},
222
+ "isTabbing": {}
223
+ };
224
+ }
225
+ static get elementRef() { return "el"; }
226
+ static get listeners() {
227
+ return [{
228
+ "name": "keydown",
229
+ "method": "handleKeydown",
230
+ "target": undefined,
231
+ "capture": false,
232
+ "passive": false
233
+ }, {
234
+ "name": "wmUserIsTabbing",
235
+ "method": "toggleTabbingOn",
236
+ "target": "window",
237
+ "capture": false,
238
+ "passive": false
239
+ }, {
240
+ "name": "wmUserIsNotTabbing",
241
+ "method": "toggleTabbingOff",
242
+ "target": "window",
243
+ "capture": false,
244
+ "passive": false
245
+ }, {
246
+ "name": "click",
247
+ "method": "handleClick",
248
+ "target": "document",
249
+ "capture": false,
250
+ "passive": false
251
+ }];
252
+ }
253
+ }