@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,176 +1,176 @@
1
- import { h, Host } from "@stencil/core";
2
- import { intl } from "../../global/functions";
3
- export class NavigationHamburger {
4
- constructor() {
5
- this.showNavMessage = intl.formatMessage({
6
- id: "navigation.showNavigation",
7
- defaultMessage: "Show navigation",
8
- description: "For user interface element opening a navigation menu",
9
- });
10
- this.navId = undefined;
11
- this.tooltipVisible = false;
12
- this.isTabbing = false;
13
- this.open = false;
14
- }
15
- get tooltipEl() {
16
- return document.getElementById("wm-tooltip");
17
- }
18
- toggleTabbingOn() {
19
- this.isTabbing = true;
20
- }
21
- toggleTabbingOff() {
22
- this.isTabbing = false;
23
- }
24
- // this also works on initial load because event is fired then
25
- handleNavigationStateChanged(ev) {
26
- this.open = ev.target.open;
27
- }
28
- componentWillLoad() {
29
- if (document.body.classList.contains("wmcl-user-is-tabbing")) {
30
- this.toggleTabbingOn();
31
- }
32
- if (!this.navId) {
33
- console.error("wm-navigation-hamburger: nav-id is a required prop");
34
- }
35
- }
36
- showTooltip() {
37
- const tooltipText = this.showNavMessage;
38
- this.tooltipEl.textContent = tooltipText;
39
- this.tooltipEl.style.setProperty("--wmTooltipTop", "1.125rem");
40
- this.tooltipEl.style.setProperty("--wmTooltipLeft", "2.75rem");
41
- this.tooltipEl.style.transitionDelay = "500ms";
42
- this.tooltipEl.style.opacity = "1";
43
- // tooltip only has a maxWidth if it contains whitespace and can break
44
- const hasNoWhitespace = tooltipText.match(/^[^\s]+$/);
45
- if (hasNoWhitespace) {
46
- this.tooltipEl.classList.add("single-word");
47
- this.tooltipEl.style.setProperty("--wmTooltipMaxWidth", "none");
48
- }
49
- else {
50
- this.tooltipEl.classList.remove("single-word");
51
- this.tooltipEl.style.removeProperty("--wmTooltipMaxWidth");
52
- }
53
- // tooltip is only visible after the transition delay.
54
- // This also fixes an issue for keyboard users:
55
- // if they tab to a button out of screen bounds, the page scrolls
56
- // and hideTooltip() would be triggered before the tooltip would show
57
- setTimeout(() => {
58
- this.tooltipVisible = true;
59
- }, 500);
60
- }
61
- hideTooltip() {
62
- this.tooltipEl.style.transitionDelay = "0s";
63
- this.tooltipEl.style.opacity = "0";
64
- this.tooltipVisible = false;
65
- }
66
- showTooltipForKeyboardUsers() {
67
- if (this.isTabbing) {
68
- this.showTooltip();
69
- }
70
- }
71
- handleClick() {
72
- this.hideTooltip();
73
- this.wmNavigationHamburgerClicked.emit();
74
- }
75
- render() {
76
- return (h(Host, { class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { class: this.isTabbing ? "user-is-tabbing" : undefined, "aria-expanded": this.open, "aria-controls": this.navId, "aria-label": this.showNavMessage, onMouseEnter: () => this.showTooltip(), onMouseLeave: () => this.hideTooltip(), onFocus: () => this.showTooltipForKeyboardUsers(), onBlur: () => this.hideTooltip(), onClick: () => this.handleClick() }, h("span", { class: "icon" }))));
77
- }
78
- static get is() { return "wm-navigation-hamburger"; }
79
- static get encapsulation() { return "shadow"; }
80
- static get delegatesFocus() { return true; }
81
- static get originalStyleUrls() {
82
- return {
83
- "$": ["wm-navigation-hamburger.scss"]
84
- };
85
- }
86
- static get styleUrls() {
87
- return {
88
- "$": ["wm-navigation-hamburger.css"]
89
- };
90
- }
91
- static get properties() {
92
- return {
93
- "navId": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "string",
98
- "resolved": "string | undefined",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": true,
103
- "docs": {
104
- "tags": [],
105
- "text": ""
106
- },
107
- "attribute": "nav-id",
108
- "reflect": false
109
- },
110
- "tooltipVisible": {
111
- "type": "boolean",
112
- "mutable": true,
113
- "complexType": {
114
- "original": "boolean",
115
- "resolved": "boolean",
116
- "references": {}
117
- },
118
- "required": false,
119
- "optional": false,
120
- "docs": {
121
- "tags": [],
122
- "text": ""
123
- },
124
- "attribute": "tooltip-visible",
125
- "reflect": false,
126
- "defaultValue": "false"
127
- }
128
- };
129
- }
130
- static get states() {
131
- return {
132
- "isTabbing": {},
133
- "open": {}
134
- };
135
- }
136
- static get events() {
137
- return [{
138
- "method": "wmNavigationHamburgerClicked",
139
- "name": "wmNavigationHamburgerClicked",
140
- "bubbles": true,
141
- "cancelable": true,
142
- "composed": true,
143
- "docs": {
144
- "tags": [],
145
- "text": ""
146
- },
147
- "complexType": {
148
- "original": "any",
149
- "resolved": "any",
150
- "references": {}
151
- }
152
- }];
153
- }
154
- static get elementRef() { return "el"; }
155
- static get listeners() {
156
- return [{
157
- "name": "wmUserIsTabbing",
158
- "method": "toggleTabbingOn",
159
- "target": "window",
160
- "capture": false,
161
- "passive": false
162
- }, {
163
- "name": "wmUserIsNotTabbing",
164
- "method": "toggleTabbingOff",
165
- "target": "window",
166
- "capture": false,
167
- "passive": false
168
- }, {
169
- "name": "wmNavigationStateChanged",
170
- "method": "handleNavigationStateChanged",
171
- "target": "document",
172
- "capture": false,
173
- "passive": false
174
- }];
175
- }
176
- }
1
+ import { h, Host } from "@stencil/core";
2
+ import { intl } from "../../global/functions";
3
+ export class NavigationHamburger {
4
+ constructor() {
5
+ this.showNavMessage = intl.formatMessage({
6
+ id: "navigation.showNavigation",
7
+ defaultMessage: "Show navigation",
8
+ description: "For user interface element opening a navigation menu",
9
+ });
10
+ this.navId = undefined;
11
+ this.tooltipVisible = false;
12
+ this.isTabbing = false;
13
+ this.open = false;
14
+ }
15
+ get tooltipEl() {
16
+ return document.getElementById("wm-tooltip");
17
+ }
18
+ toggleTabbingOn() {
19
+ this.isTabbing = true;
20
+ }
21
+ toggleTabbingOff() {
22
+ this.isTabbing = false;
23
+ }
24
+ // this also works on initial load because event is fired then
25
+ handleNavigationStateChanged(ev) {
26
+ this.open = ev.target.open;
27
+ }
28
+ componentWillLoad() {
29
+ if (document.body.classList.contains("wmcl-user-is-tabbing")) {
30
+ this.toggleTabbingOn();
31
+ }
32
+ if (!this.navId) {
33
+ console.error("wm-navigation-hamburger: nav-id is a required prop");
34
+ }
35
+ }
36
+ showTooltip() {
37
+ const tooltipText = this.showNavMessage;
38
+ this.tooltipEl.textContent = tooltipText;
39
+ this.tooltipEl.style.setProperty("--wmTooltipTop", "1.125rem");
40
+ this.tooltipEl.style.setProperty("--wmTooltipLeft", "2.75rem");
41
+ this.tooltipEl.style.transitionDelay = "500ms";
42
+ this.tooltipEl.style.opacity = "1";
43
+ // tooltip only has a maxWidth if it contains whitespace and can break
44
+ const hasNoWhitespace = tooltipText.match(/^[^\s]+$/);
45
+ if (hasNoWhitespace) {
46
+ this.tooltipEl.classList.add("single-word");
47
+ this.tooltipEl.style.setProperty("--wmTooltipMaxWidth", "none");
48
+ }
49
+ else {
50
+ this.tooltipEl.classList.remove("single-word");
51
+ this.tooltipEl.style.removeProperty("--wmTooltipMaxWidth");
52
+ }
53
+ // tooltip is only visible after the transition delay.
54
+ // This also fixes an issue for keyboard users:
55
+ // if they tab to a button out of screen bounds, the page scrolls
56
+ // and hideTooltip() would be triggered before the tooltip would show
57
+ setTimeout(() => {
58
+ this.tooltipVisible = true;
59
+ }, 500);
60
+ }
61
+ hideTooltip() {
62
+ this.tooltipEl.style.transitionDelay = "0s";
63
+ this.tooltipEl.style.opacity = "0";
64
+ this.tooltipVisible = false;
65
+ }
66
+ showTooltipForKeyboardUsers() {
67
+ if (this.isTabbing) {
68
+ this.showTooltip();
69
+ }
70
+ }
71
+ handleClick() {
72
+ this.hideTooltip();
73
+ this.wmNavigationHamburgerClicked.emit();
74
+ }
75
+ render() {
76
+ return (h(Host, { class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { class: this.isTabbing ? "user-is-tabbing" : undefined, "aria-expanded": this.open, "aria-controls": this.navId, "aria-label": this.showNavMessage, onMouseEnter: () => this.showTooltip(), onMouseLeave: () => this.hideTooltip(), onFocus: () => this.showTooltipForKeyboardUsers(), onBlur: () => this.hideTooltip(), onClick: () => this.handleClick() }, h("span", { class: "icon" }))));
77
+ }
78
+ static get is() { return "wm-navigation-hamburger"; }
79
+ static get encapsulation() { return "shadow"; }
80
+ static get delegatesFocus() { return true; }
81
+ static get originalStyleUrls() {
82
+ return {
83
+ "$": ["wm-navigation-hamburger.scss"]
84
+ };
85
+ }
86
+ static get styleUrls() {
87
+ return {
88
+ "$": ["wm-navigation-hamburger.css"]
89
+ };
90
+ }
91
+ static get properties() {
92
+ return {
93
+ "navId": {
94
+ "type": "string",
95
+ "mutable": false,
96
+ "complexType": {
97
+ "original": "string",
98
+ "resolved": "string | undefined",
99
+ "references": {}
100
+ },
101
+ "required": false,
102
+ "optional": true,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": ""
106
+ },
107
+ "attribute": "nav-id",
108
+ "reflect": false
109
+ },
110
+ "tooltipVisible": {
111
+ "type": "boolean",
112
+ "mutable": true,
113
+ "complexType": {
114
+ "original": "boolean",
115
+ "resolved": "boolean",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": false,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": ""
123
+ },
124
+ "attribute": "tooltip-visible",
125
+ "reflect": false,
126
+ "defaultValue": "false"
127
+ }
128
+ };
129
+ }
130
+ static get states() {
131
+ return {
132
+ "isTabbing": {},
133
+ "open": {}
134
+ };
135
+ }
136
+ static get events() {
137
+ return [{
138
+ "method": "wmNavigationHamburgerClicked",
139
+ "name": "wmNavigationHamburgerClicked",
140
+ "bubbles": true,
141
+ "cancelable": true,
142
+ "composed": true,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": ""
146
+ },
147
+ "complexType": {
148
+ "original": "any",
149
+ "resolved": "any",
150
+ "references": {}
151
+ }
152
+ }];
153
+ }
154
+ static get elementRef() { return "el"; }
155
+ static get listeners() {
156
+ return [{
157
+ "name": "wmUserIsTabbing",
158
+ "method": "toggleTabbingOn",
159
+ "target": "window",
160
+ "capture": false,
161
+ "passive": false
162
+ }, {
163
+ "name": "wmUserIsNotTabbing",
164
+ "method": "toggleTabbingOff",
165
+ "target": "window",
166
+ "capture": false,
167
+ "passive": false
168
+ }, {
169
+ "name": "wmNavigationStateChanged",
170
+ "method": "handleNavigationStateChanged",
171
+ "target": "document",
172
+ "capture": false,
173
+ "passive": false
174
+ }];
175
+ }
176
+ }
@@ -1,130 +1,130 @@
1
- import { h, Host } from "@stencil/core";
2
- export class NavigationItem {
3
- constructor() {
4
- this.href = undefined;
5
- this.text = undefined;
6
- this.active = undefined;
7
- this.isTabbing = false;
8
- }
9
- toggleTabbingOn() {
10
- this.isTabbing = true;
11
- }
12
- toggleTabbingOff() {
13
- this.isTabbing = false;
14
- }
15
- componentWillLoad() {
16
- if (document.body.classList.contains("wmcl-user-is-tabbing")) {
17
- this.toggleTabbingOn();
18
- }
19
- }
20
- render() {
21
- return (h(Host, { role: "listitem" }, h("a", { class: `link ${this.active ? "active" : ""} ${this.isTabbing ? "user-is-tabbing" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { class: "icon", "aria-hidden": "true" }, h("slot", null)), h("div", { class: "text" }, this.text))));
22
- }
23
- static get is() { return "wm-navigation-item"; }
24
- static get encapsulation() { return "shadow"; }
25
- static get delegatesFocus() { return true; }
26
- static get originalStyleUrls() {
27
- return {
28
- "$": ["wm-navigation-item.scss"]
29
- };
30
- }
31
- static get styleUrls() {
32
- return {
33
- "$": ["wm-navigation-item.css"]
34
- };
35
- }
36
- static get properties() {
37
- return {
38
- "href": {
39
- "type": "string",
40
- "mutable": false,
41
- "complexType": {
42
- "original": "string",
43
- "resolved": "string | undefined",
44
- "references": {}
45
- },
46
- "required": false,
47
- "optional": true,
48
- "docs": {
49
- "tags": [],
50
- "text": ""
51
- },
52
- "attribute": "href",
53
- "reflect": false
54
- },
55
- "text": {
56
- "type": "string",
57
- "mutable": false,
58
- "complexType": {
59
- "original": "string",
60
- "resolved": "string | undefined",
61
- "references": {}
62
- },
63
- "required": false,
64
- "optional": true,
65
- "docs": {
66
- "tags": [],
67
- "text": ""
68
- },
69
- "attribute": "text",
70
- "reflect": false
71
- },
72
- "active": {
73
- "type": "boolean",
74
- "mutable": false,
75
- "complexType": {
76
- "original": "boolean",
77
- "resolved": "boolean | undefined",
78
- "references": {}
79
- },
80
- "required": false,
81
- "optional": true,
82
- "docs": {
83
- "tags": [],
84
- "text": ""
85
- },
86
- "attribute": "active",
87
- "reflect": false
88
- }
89
- };
90
- }
91
- static get states() {
92
- return {
93
- "isTabbing": {}
94
- };
95
- }
96
- static get events() {
97
- return [{
98
- "method": "wmNavigationItemClicked",
99
- "name": "wmNavigationItemClicked",
100
- "bubbles": true,
101
- "cancelable": true,
102
- "composed": true,
103
- "docs": {
104
- "tags": [],
105
- "text": ""
106
- },
107
- "complexType": {
108
- "original": "any",
109
- "resolved": "any",
110
- "references": {}
111
- }
112
- }];
113
- }
114
- static get elementRef() { return "el"; }
115
- static get listeners() {
116
- return [{
117
- "name": "wmUserIsTabbing",
118
- "method": "toggleTabbingOn",
119
- "target": "window",
120
- "capture": false,
121
- "passive": false
122
- }, {
123
- "name": "wmUserIsNotTabbing",
124
- "method": "toggleTabbingOff",
125
- "target": "window",
126
- "capture": false,
127
- "passive": false
128
- }];
129
- }
130
- }
1
+ import { h, Host } from "@stencil/core";
2
+ export class NavigationItem {
3
+ constructor() {
4
+ this.href = undefined;
5
+ this.text = undefined;
6
+ this.active = undefined;
7
+ this.isTabbing = false;
8
+ }
9
+ toggleTabbingOn() {
10
+ this.isTabbing = true;
11
+ }
12
+ toggleTabbingOff() {
13
+ this.isTabbing = false;
14
+ }
15
+ componentWillLoad() {
16
+ if (document.body.classList.contains("wmcl-user-is-tabbing")) {
17
+ this.toggleTabbingOn();
18
+ }
19
+ }
20
+ render() {
21
+ return (h(Host, { role: "listitem" }, h("a", { class: `link ${this.active ? "active" : ""} ${this.isTabbing ? "user-is-tabbing" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { class: "icon", "aria-hidden": "true" }, h("slot", null)), h("div", { class: "text" }, this.text))));
22
+ }
23
+ static get is() { return "wm-navigation-item"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get delegatesFocus() { return true; }
26
+ static get originalStyleUrls() {
27
+ return {
28
+ "$": ["wm-navigation-item.scss"]
29
+ };
30
+ }
31
+ static get styleUrls() {
32
+ return {
33
+ "$": ["wm-navigation-item.css"]
34
+ };
35
+ }
36
+ static get properties() {
37
+ return {
38
+ "href": {
39
+ "type": "string",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "string",
43
+ "resolved": "string | undefined",
44
+ "references": {}
45
+ },
46
+ "required": false,
47
+ "optional": true,
48
+ "docs": {
49
+ "tags": [],
50
+ "text": ""
51
+ },
52
+ "attribute": "href",
53
+ "reflect": false
54
+ },
55
+ "text": {
56
+ "type": "string",
57
+ "mutable": false,
58
+ "complexType": {
59
+ "original": "string",
60
+ "resolved": "string | undefined",
61
+ "references": {}
62
+ },
63
+ "required": false,
64
+ "optional": true,
65
+ "docs": {
66
+ "tags": [],
67
+ "text": ""
68
+ },
69
+ "attribute": "text",
70
+ "reflect": false
71
+ },
72
+ "active": {
73
+ "type": "boolean",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "boolean",
77
+ "resolved": "boolean | undefined",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": true,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": ""
85
+ },
86
+ "attribute": "active",
87
+ "reflect": false
88
+ }
89
+ };
90
+ }
91
+ static get states() {
92
+ return {
93
+ "isTabbing": {}
94
+ };
95
+ }
96
+ static get events() {
97
+ return [{
98
+ "method": "wmNavigationItemClicked",
99
+ "name": "wmNavigationItemClicked",
100
+ "bubbles": true,
101
+ "cancelable": true,
102
+ "composed": true,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": ""
106
+ },
107
+ "complexType": {
108
+ "original": "any",
109
+ "resolved": "any",
110
+ "references": {}
111
+ }
112
+ }];
113
+ }
114
+ static get elementRef() { return "el"; }
115
+ static get listeners() {
116
+ return [{
117
+ "name": "wmUserIsTabbing",
118
+ "method": "toggleTabbingOn",
119
+ "target": "window",
120
+ "capture": false,
121
+ "passive": false
122
+ }, {
123
+ "name": "wmUserIsNotTabbing",
124
+ "method": "toggleTabbingOff",
125
+ "target": "window",
126
+ "capture": false,
127
+ "passive": false
128
+ }];
129
+ }
130
+ }