@watermarkinsights/ripple 5.13.0 → 5.13.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/dist/cjs/app-globals-6l2OXl3R.js +92 -0
  2. package/dist/cjs/chartFunctions-uCzSt0yo.js +741 -0
  3. package/dist/cjs/functions-CqAwq8Fq.js +10526 -0
  4. package/dist/cjs/index-Cig4P4gJ.js +2086 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/interfaces-C7YbtGnk.js +37 -0
  7. package/dist/cjs/intl-BUs7ck9m.js +283 -0
  8. package/dist/cjs/loader.cjs.js +13 -0
  9. package/dist/cjs/priv-calendar.cjs.entry.js +568 -0
  10. package/dist/cjs/priv-chart-popover.cjs.entry.js +136 -0
  11. package/dist/cjs/priv-navigator-button_2.cjs.entry.js +54 -0
  12. package/dist/cjs/priv-option-list_2.cjs.entry.js +556 -0
  13. package/dist/cjs/ripple.cjs.js +25 -0
  14. package/dist/cjs/wm-action-menu_4.cjs.entry.js +701 -0
  15. package/dist/cjs/wm-chart-slice.cjs.entry.js +20 -0
  16. package/dist/cjs/wm-chart.cjs.entry.js +159 -0
  17. package/dist/cjs/wm-date-range.cjs.entry.js +479 -0
  18. package/dist/cjs/wm-datepicker.cjs.entry.js +249 -0
  19. package/dist/cjs/wm-file-list.cjs.entry.js +20 -0
  20. package/dist/cjs/wm-file.cjs.entry.js +184 -0
  21. package/dist/cjs/wm-flyout.cjs.entry.js +169 -0
  22. package/dist/cjs/wm-input.cjs.entry.js +113 -0
  23. package/dist/cjs/wm-line-chart.cjs.entry.js +451 -0
  24. package/dist/cjs/wm-modal-footer.cjs.entry.js +46 -0
  25. package/dist/cjs/wm-modal-header.cjs.entry.js +38 -0
  26. package/dist/cjs/wm-modal-pss-footer.cjs.entry.js +42 -0
  27. package/dist/cjs/wm-modal-pss-header.cjs.entry.js +41 -0
  28. package/dist/cjs/wm-modal-pss.cjs.entry.js +137 -0
  29. package/dist/cjs/wm-modal.cjs.entry.js +135 -0
  30. package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +50 -0
  31. package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-navigation-item.cjs.entry.js} +12 -24
  32. package/dist/cjs/wm-navigation.cjs.entry.js +118 -0
  33. package/dist/cjs/wm-navigator.cjs.entry.js +329 -0
  34. package/dist/{ripple/wm-search.entry.js → cjs/wm-nested-select.cjs.entry.js} +273 -171
  35. package/dist/cjs/wm-optgroup.cjs.entry.js +70 -0
  36. package/dist/cjs/wm-pagination.cjs.entry.js +225 -0
  37. package/dist/cjs/wm-progress-indicator.cjs.entry.js +109 -0
  38. package/dist/cjs/wm-progress-monitor.cjs.entry.js +73 -0
  39. package/dist/cjs/wm-progress-slice.cjs.entry.js +15 -0
  40. package/dist/cjs/wm-search.cjs.entry.js +210 -0
  41. package/dist/cjs/wm-select.cjs.entry.js +251 -0
  42. package/dist/cjs/wm-tab-item.cjs.entry.js +65 -0
  43. package/dist/cjs/wm-tab-list.cjs.entry.js +177 -0
  44. package/dist/cjs/wm-tab-panel.cjs.entry.js +34 -0
  45. package/dist/cjs/wm-tag-input.cjs.entry.js +879 -0
  46. package/dist/cjs/wm-tag-option.cjs.entry.js +37 -0
  47. package/dist/cjs/wm-textarea.cjs.entry.js +81 -0
  48. package/dist/cjs/wm-timepicker.cjs.entry.js +302 -0
  49. package/dist/cjs/wm-toggletip.cjs.entry.js +178 -0
  50. package/dist/cjs/wm-uploader.cjs.entry.js +315 -0
  51. package/dist/cjs/wm-wrapper.cjs.entry.js +19 -0
  52. package/dist/collection/collection-manifest.json +59 -0
  53. package/dist/collection/components/charts/chartFunctions.js +675 -0
  54. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +922 -0
  55. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +261 -0
  56. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +128 -0
  57. package/dist/collection/components/charts/wm-chart/wm-chart.css +1288 -0
  58. package/dist/collection/components/charts/wm-chart/wm-chart.js +445 -0
  59. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1080 -0
  60. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +742 -0
  61. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1288 -0
  62. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +271 -0
  63. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +922 -0
  64. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +154 -0
  65. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +124 -0
  66. package/dist/collection/components/datepickers/datepicker.css +1057 -0
  67. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1292 -0
  68. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +849 -0
  69. package/dist/collection/components/datepickers/wm-date-range.js +869 -0
  70. package/dist/collection/components/datepickers/wm-datepicker.js +538 -0
  71. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +931 -0
  72. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +791 -0
  73. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1194 -0
  74. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +644 -0
  75. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +843 -0
  76. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +265 -0
  77. package/dist/collection/components/selects/wm-option/wm-option.css +944 -0
  78. package/dist/collection/components/selects/wm-option/wm-option.js +539 -0
  79. package/dist/collection/components/selects/wm-select/wm-select.css +1117 -0
  80. package/dist/collection/components/selects/wm-select/wm-select.js +606 -0
  81. package/dist/collection/components/wm-action-menu/wm-action-menu.css +904 -0
  82. package/dist/collection/components/wm-action-menu/wm-action-menu.js +444 -0
  83. package/dist/collection/components/wm-button/wm-button.css +1371 -0
  84. package/dist/collection/components/wm-button/wm-button.js +510 -0
  85. package/dist/collection/components/wm-file/wm-file.css +940 -0
  86. package/dist/collection/components/wm-file/wm-file.js +423 -0
  87. package/dist/collection/components/wm-file-list/wm-file-list.css +833 -0
  88. package/dist/collection/components/wm-file-list/wm-file-list.js +47 -0
  89. package/dist/collection/components/wm-flyout/wm-flyout.css +1027 -0
  90. package/dist/collection/components/wm-flyout/wm-flyout.js +460 -0
  91. package/dist/collection/components/wm-input/wm-input.css +1017 -0
  92. package/dist/collection/components/wm-input/wm-input.js +498 -0
  93. package/dist/collection/components/wm-menuitem/wm-menuitem.css +904 -0
  94. package/dist/collection/components/wm-menuitem/wm-menuitem.js +425 -0
  95. package/dist/collection/components/wm-modal/wm-modal-footer.css +858 -0
  96. package/dist/collection/components/wm-modal/wm-modal-footer.js +152 -0
  97. package/dist/collection/components/wm-modal/wm-modal-header.css +857 -0
  98. package/dist/collection/components/wm-modal/wm-modal-header.js +83 -0
  99. package/dist/collection/components/wm-modal/wm-modal.css +905 -0
  100. package/dist/collection/components/wm-modal/wm-modal.js +356 -0
  101. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +865 -0
  102. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +148 -0
  103. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +859 -0
  104. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
  105. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +941 -0
  106. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
  107. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +860 -0
  108. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +120 -0
  109. package/dist/collection/components/wm-navigation/wm-navigation-item.css +869 -0
  110. package/dist/collection/components/wm-navigation/wm-navigation-item.js +99 -0
  111. package/dist/collection/components/wm-navigation/wm-navigation.css +911 -0
  112. package/dist/collection/components/wm-navigation/wm-navigation.js +192 -0
  113. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +863 -0
  114. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
  115. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +843 -0
  116. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +130 -0
  117. package/dist/collection/components/wm-navigator/wm-navigator.css +916 -0
  118. package/dist/collection/components/wm-navigator/wm-navigator.js +515 -0
  119. package/dist/collection/components/wm-pagination/wm-pagination.css +984 -0
  120. package/dist/collection/components/wm-pagination/wm-pagination.js +373 -0
  121. package/dist/collection/components/wm-search/wm-search.css +909 -0
  122. package/dist/collection/components/wm-search/wm-search.js +462 -0
  123. package/dist/collection/components/wm-snackbar/wm-snackbar.css +1091 -0
  124. package/dist/collection/components/wm-snackbar/wm-snackbar.js +279 -0
  125. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +882 -0
  126. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +187 -0
  127. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +854 -0
  128. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +276 -0
  129. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +838 -0
  130. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +97 -0
  131. package/dist/collection/components/wm-tag-input/wm-tag-input.css +1289 -0
  132. package/dist/collection/components/wm-tag-input/wm-tag-input.js +1245 -0
  133. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +251 -0
  134. package/dist/collection/components/wm-textarea/wm-textarea.css +993 -0
  135. package/dist/collection/components/wm-textarea/wm-textarea.js +331 -0
  136. package/dist/collection/components/wm-timepicker/wm-timepicker.css +1107 -0
  137. package/dist/collection/components/wm-timepicker/wm-timepicker.js +559 -0
  138. package/dist/collection/components/wm-toggletip/wm-toggletip.css +1165 -0
  139. package/dist/collection/components/wm-toggletip/wm-toggletip.js +295 -0
  140. package/dist/collection/components/wm-uploader/wm-uploader.css +1673 -0
  141. package/dist/collection/components/wm-uploader/wm-uploader.js +618 -0
  142. package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -0
  143. package/dist/collection/dev/action-menu.js +0 -0
  144. package/dist/collection/dev/button.js +0 -0
  145. package/dist/collection/dev/chart-small.js +56 -0
  146. package/dist/collection/dev/chart.js +18 -0
  147. package/dist/collection/dev/date-range.js +6 -0
  148. package/dist/collection/dev/datepicker.js +46 -0
  149. package/dist/collection/dev/file-list.js +16 -0
  150. package/dist/collection/dev/file.js +0 -0
  151. package/dist/collection/dev/flyout.js +194 -0
  152. package/dist/collection/dev/input.js +6 -0
  153. package/dist/collection/dev/line-chart.js +0 -0
  154. package/dist/collection/dev/modal.js +48 -0
  155. package/dist/collection/dev/navigation.js +13 -0
  156. package/dist/collection/dev/navigator.js +34 -0
  157. package/dist/collection/dev/nested-select.js +36 -0
  158. package/dist/collection/dev/pagination.js +7 -0
  159. package/dist/collection/dev/progress-monitor.js +0 -0
  160. package/dist/collection/dev/pss-modal.js +8 -0
  161. package/dist/collection/dev/scripts.js +49 -0
  162. package/dist/collection/dev/search.js +72 -0
  163. package/dist/collection/dev/select.js +57 -0
  164. package/dist/collection/dev/snackbar.js +60 -0
  165. package/dist/collection/dev/tabs.js +44 -0
  166. package/dist/collection/dev/tag-input.js +32 -0
  167. package/dist/collection/dev/textarea.js +28 -0
  168. package/dist/collection/dev/timepicker.js +32 -0
  169. package/dist/collection/dev/toggletip.js +9 -0
  170. package/dist/collection/dev/uploader.js +139 -0
  171. package/dist/collection/global/__mocks__/functions.js +6 -0
  172. package/dist/collection/global/functions.js +841 -0
  173. package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +2 -84
  174. package/dist/{ripple/interfaces-CrANcZM9.js → collection/global/interfaces.js} +4 -6
  175. package/dist/collection/global/intl.js +274 -0
  176. package/dist/collection/global/services/__mocks__/http-service.js +130 -0
  177. package/dist/collection/global/services/http-service.js +50 -0
  178. package/dist/collection/lang/lang.js +5 -0
  179. package/dist/collection/lang/missing.js +43 -0
  180. package/dist/collection/lang/piglatin.js +101 -0
  181. package/dist/components/index.js +85 -0
  182. package/dist/components/p-BlQdbOh_.js +294 -0
  183. package/dist/components/p-BvE5BEYe.js +146 -0
  184. package/dist/components/p-BzGDMpdL.js +592 -0
  185. package/dist/{ripple/wm-modal-header.entry.js → components/p-CLem5EoD.js} +35 -29
  186. package/dist/components/p-COwzv5zO.js +34 -0
  187. package/dist/components/p-CWx2NF6K.js +231 -0
  188. package/dist/{ripple/wm-progress-monitor.entry.js → components/p-D9GMUh0-.js} +217 -57
  189. package/dist/{ripple/wm-option.entry.js → components/p-DCSxoWXP.js} +384 -134
  190. package/dist/components/p-DG_w4q3M.js +196 -0
  191. package/dist/{ripple/intl-7p27BJSM.js → components/p-DStPjkvu.js} +1 -1
  192. package/dist/components/p-DdlNyc6u.js +10485 -0
  193. package/dist/{ripple/wm-toggletip.entry.js → components/p-DvXS4oTB.js} +44 -171
  194. package/dist/components/p-HPnDWE3g.js +1686 -0
  195. package/dist/components/p-K9lgwbAO.js +724 -0
  196. package/dist/{ripple/wm-textarea.entry.js → components/p-e_A35rK5.js} +132 -57
  197. package/dist/components/priv-calendar.js +6 -0
  198. package/dist/components/priv-chart-popover.js +6 -0
  199. package/dist/components/priv-navigator-button.js +6 -0
  200. package/dist/components/priv-navigator-item.js +6 -0
  201. package/dist/components/priv-option-list.js +6 -0
  202. package/dist/components/wm-action-menu.js +6 -0
  203. package/dist/components/wm-button.js +6 -0
  204. package/dist/components/wm-chart-slice.js +41 -0
  205. package/dist/components/wm-chart.js +197 -0
  206. package/dist/components/wm-date-range.js +522 -0
  207. package/dist/components/wm-datepicker.js +287 -0
  208. package/dist/components/wm-file-list.js +38 -0
  209. package/dist/components/wm-file.js +228 -0
  210. package/dist/components/wm-flyout.js +208 -0
  211. package/dist/components/wm-input.js +152 -0
  212. package/dist/components/wm-line-chart.js +497 -0
  213. package/dist/components/wm-menuitem.js +6 -0
  214. package/dist/components/wm-modal-footer.js +73 -0
  215. package/dist/components/wm-modal-header.js +61 -0
  216. package/dist/components/wm-modal-pss-footer.js +69 -0
  217. package/dist/components/wm-modal-pss-header.js +64 -0
  218. package/dist/components/wm-modal-pss.js +162 -0
  219. package/dist/components/wm-modal.js +161 -0
  220. package/dist/components/wm-navigation-hamburger.js +70 -0
  221. package/dist/components/wm-navigation-item.js +40 -0
  222. package/dist/components/wm-navigation.js +144 -0
  223. package/dist/components/wm-navigator.js +369 -0
  224. package/dist/{ripple/wm-flyout.entry.js → components/wm-nested-select.js} +313 -137
  225. package/dist/components/wm-optgroup.js +107 -0
  226. package/dist/components/wm-option.js +6 -0
  227. package/dist/components/wm-pagination.js +251 -0
  228. package/dist/components/wm-progress-indicator.js +144 -0
  229. package/dist/components/wm-progress-monitor.js +93 -0
  230. package/dist/components/wm-progress-slice.js +37 -0
  231. package/dist/components/wm-search.js +250 -0
  232. package/dist/components/wm-select.js +6 -0
  233. package/dist/components/wm-snackbar.js +209 -0
  234. package/dist/components/wm-tab-item.js +85 -0
  235. package/dist/components/wm-tab-list.js +217 -0
  236. package/dist/components/wm-tab-panel.js +52 -0
  237. package/dist/components/wm-tag-input.js +919 -0
  238. package/dist/components/wm-tag-option.js +63 -0
  239. package/dist/components/wm-textarea.js +113 -0
  240. package/dist/components/wm-timepicker.js +333 -0
  241. package/dist/components/wm-toggletip.js +200 -0
  242. package/dist/components/wm-uploader.js +348 -0
  243. package/dist/components/wm-wrapper.js +34 -0
  244. package/dist/esm/app-globals-eAJzxs1b.js +90 -0
  245. package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-C4yzutWl.js} +3 -4
  246. package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-CU95tthb.js} +144 -7767
  247. package/dist/esm/index-EopL5zo4.js +2075 -0
  248. package/dist/esm/index.js +1 -0
  249. package/dist/esm/interfaces-CyJHzEjr.js +34 -0
  250. package/dist/esm/intl-CN471tL5.js +277 -0
  251. package/dist/esm/loader.js +11 -0
  252. package/dist/esm/polyfills/core-js.js +11 -0
  253. package/dist/esm/polyfills/dom.js +79 -0
  254. package/dist/esm/polyfills/es5-html-element.js +1 -0
  255. package/dist/esm/polyfills/index.js +34 -0
  256. package/dist/esm/polyfills/system.js +6 -0
  257. package/dist/esm/priv-calendar.entry.js +566 -0
  258. package/dist/esm/priv-chart-popover.entry.js +134 -0
  259. package/dist/esm/priv-navigator-button_2.entry.js +51 -0
  260. package/dist/esm/priv-option-list_2.entry.js +553 -0
  261. package/dist/esm/ripple.js +21 -0
  262. package/dist/esm/wm-action-menu_4.entry.js +696 -0
  263. package/dist/{ripple → esm}/wm-chart-slice.entry.js +1 -1
  264. package/dist/esm/wm-chart.entry.js +157 -0
  265. package/dist/esm/wm-date-range.entry.js +477 -0
  266. package/dist/esm/wm-datepicker.entry.js +247 -0
  267. package/dist/esm/wm-file-list.entry.js +18 -0
  268. package/dist/{ripple/wm-chart.entry.js → esm/wm-file.entry.js} +161 -136
  269. package/dist/esm/wm-flyout.entry.js +167 -0
  270. package/dist/esm/wm-input.entry.js +111 -0
  271. package/dist/esm/wm-line-chart.entry.js +449 -0
  272. package/dist/{ripple/wm-modal.entry.js → esm/wm-modal-footer.entry.js} +28 -117
  273. package/dist/{ripple/wm-input.entry.js → esm/wm-modal-header.entry.js} +24 -99
  274. package/dist/{ripple/wm-menuitem.entry.js → esm/wm-modal-pss-footer.entry.js} +28 -113
  275. package/dist/{ripple/wm-optgroup.entry.js → esm/wm-modal-pss-header.entry.js} +28 -57
  276. package/dist/esm/wm-modal-pss.entry.js +135 -0
  277. package/dist/esm/wm-modal.entry.js +133 -0
  278. package/dist/esm/wm-navigation-hamburger.entry.js +48 -0
  279. package/dist/{ripple/wm-file-list.entry.js → esm/wm-navigation-item.entry.js} +7 -7
  280. package/dist/{ripple/wm-file.entry.js → esm/wm-navigation.entry.js} +91 -157
  281. package/dist/esm/wm-navigator.entry.js +327 -0
  282. package/dist/{ripple/wm-select.entry.js → esm/wm-nested-select.entry.js} +193 -134
  283. package/dist/esm/wm-optgroup.entry.js +68 -0
  284. package/dist/esm/wm-pagination.entry.js +223 -0
  285. package/dist/esm/wm-progress-indicator.entry.js +107 -0
  286. package/dist/esm/wm-progress-monitor.entry.js +71 -0
  287. package/dist/{ripple → esm}/wm-progress-slice.entry.js +1 -1
  288. package/dist/esm/wm-search.entry.js +208 -0
  289. package/dist/esm/wm-select.entry.js +249 -0
  290. package/dist/esm/wm-tab-item.entry.js +63 -0
  291. package/dist/esm/wm-tab-list.entry.js +175 -0
  292. package/dist/esm/wm-tab-panel.entry.js +32 -0
  293. package/dist/esm/wm-tag-input.entry.js +877 -0
  294. package/dist/{ripple → esm}/wm-tag-option.entry.js +2 -2
  295. package/dist/esm/wm-textarea.entry.js +79 -0
  296. package/dist/esm/wm-timepicker.entry.js +300 -0
  297. package/dist/esm/wm-toggletip.entry.js +176 -0
  298. package/dist/esm/wm-uploader.entry.js +313 -0
  299. package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
  300. package/dist/esm-es5/app-globals-eAJzxs1b.js +1 -0
  301. package/dist/esm-es5/chartFunctions-C4yzutWl.js +1 -0
  302. package/dist/esm-es5/functions-CU95tthb.js +1 -0
  303. package/dist/esm-es5/index-EopL5zo4.js +1 -0
  304. package/dist/esm-es5/index.js +0 -0
  305. package/dist/esm-es5/interfaces-CyJHzEjr.js +1 -0
  306. package/dist/esm-es5/intl-CN471tL5.js +1 -0
  307. package/dist/esm-es5/loader.js +1 -0
  308. package/dist/esm-es5/priv-calendar.entry.js +1 -0
  309. package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
  310. package/dist/esm-es5/priv-navigator-button_2.entry.js +1 -0
  311. package/dist/esm-es5/priv-option-list_2.entry.js +1 -0
  312. package/dist/esm-es5/ripple.js +1 -0
  313. package/dist/esm-es5/wm-action-menu_4.entry.js +1 -0
  314. package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
  315. package/dist/esm-es5/wm-chart.entry.js +1 -0
  316. package/dist/esm-es5/wm-date-range.entry.js +1 -0
  317. package/dist/{ripple/wm-uploader.entry.js → esm-es5/wm-datepicker.entry.js} +1 -313
  318. package/dist/{ripple/wm-tab-item.entry.js → esm-es5/wm-file-list.entry.js} +1 -63
  319. package/dist/esm-es5/wm-file.entry.js +1 -0
  320. package/dist/esm-es5/wm-flyout.entry.js +1 -0
  321. package/dist/esm-es5/wm-input.entry.js +1 -0
  322. package/dist/esm-es5/wm-line-chart.entry.js +1 -0
  323. package/dist/{ripple/wm-navigation.entry.js → esm-es5/wm-modal-footer.entry.js} +1 -116
  324. package/dist/esm-es5/wm-modal-header.entry.js +1 -0
  325. package/dist/esm-es5/wm-modal-pss-footer.entry.js +1 -0
  326. package/dist/esm-es5/wm-modal-pss-header.entry.js +1 -0
  327. package/dist/esm-es5/wm-modal-pss.entry.js +1 -0
  328. package/dist/esm-es5/wm-modal.entry.js +1 -0
  329. package/dist/esm-es5/wm-navigation-hamburger.entry.js +1 -0
  330. package/dist/esm-es5/wm-navigation-item.entry.js +1 -0
  331. package/dist/esm-es5/wm-navigation.entry.js +1 -0
  332. package/dist/esm-es5/wm-navigator.entry.js +1 -0
  333. package/dist/esm-es5/wm-nested-select.entry.js +1 -0
  334. package/dist/esm-es5/wm-optgroup.entry.js +1 -0
  335. package/dist/esm-es5/wm-pagination.entry.js +1 -0
  336. package/dist/{ripple/wm-modal-footer.entry.js → esm-es5/wm-progress-indicator.entry.js} +1 -44
  337. package/dist/esm-es5/wm-progress-monitor.entry.js +1 -0
  338. package/dist/esm-es5/wm-progress-slice.entry.js +1 -0
  339. package/dist/esm-es5/wm-search.entry.js +1 -0
  340. package/dist/esm-es5/wm-select.entry.js +1 -0
  341. package/dist/esm-es5/wm-tab-item.entry.js +1 -0
  342. package/dist/esm-es5/wm-tab-list.entry.js +1 -0
  343. package/dist/esm-es5/wm-tab-panel.entry.js +1 -0
  344. package/dist/esm-es5/wm-tag-input.entry.js +1 -0
  345. package/dist/esm-es5/wm-tag-option.entry.js +1 -0
  346. package/dist/esm-es5/wm-textarea.entry.js +1 -0
  347. package/dist/esm-es5/wm-timepicker.entry.js +1 -0
  348. package/dist/esm-es5/wm-toggletip.entry.js +1 -0
  349. package/dist/esm-es5/wm-uploader.entry.js +1 -0
  350. package/dist/esm-es5/wm-wrapper.entry.js +1 -0
  351. package/dist/index.cjs.js +1 -0
  352. package/dist/index.js +1 -0
  353. package/dist/loader/cdn.js +2 -0
  354. package/dist/loader/index.cjs.js +2 -0
  355. package/dist/loader/index.d.ts +24 -0
  356. package/dist/loader/index.es2017.js +2 -0
  357. package/dist/loader/index.js +3 -0
  358. package/dist/ripple/index.esm.js +0 -1
  359. package/dist/ripple/p-007883c7.entry.js +1 -0
  360. package/dist/ripple/p-01456c1a.system.entry.js +1 -0
  361. package/dist/ripple/p-0b716fc3.system.entry.js +1 -0
  362. package/dist/ripple/p-11c9e7ee.system.entry.js +1 -0
  363. package/dist/ripple/p-176778bc.system.entry.js +1 -0
  364. package/dist/ripple/p-1f7e1851.entry.js +1 -0
  365. package/dist/ripple/p-28e8965b.system.entry.js +1 -0
  366. package/dist/ripple/p-29302f19.entry.js +1 -0
  367. package/dist/ripple/p-2bd007af.system.entry.js +1 -0
  368. package/dist/ripple/p-2f629074.system.entry.js +1 -0
  369. package/dist/ripple/{priv-navigator-item.entry.js → p-3042aae4.entry.js} +1 -30
  370. package/dist/ripple/p-340b73a9.system.entry.js +1 -0
  371. package/dist/ripple/p-369b764a.entry.js +1 -0
  372. package/dist/ripple/p-384d9208.system.entry.js +1 -0
  373. package/dist/ripple/p-3b08f15d.system.entry.js +1 -0
  374. package/dist/ripple/p-3d459e5a.entry.js +1 -0
  375. package/dist/ripple/p-3e1202c6.entry.js +1 -0
  376. package/dist/ripple/p-3e9a2ef6.system.entry.js +1 -0
  377. package/dist/ripple/p-418e3d1a.system.entry.js +1 -0
  378. package/dist/ripple/p-44d2ecd5.entry.js +1 -0
  379. package/dist/ripple/p-4841e9cd.entry.js +1 -0
  380. package/dist/ripple/p-492a8a9f.entry.js +1 -0
  381. package/dist/ripple/p-4a28da80.system.entry.js +1 -0
  382. package/dist/ripple/{priv-option-list.entry.js → p-4b264fb2.entry.js} +1 -385
  383. package/dist/ripple/p-4b4671e7.entry.js +1 -0
  384. package/dist/ripple/p-4b5bb9c8.entry.js +1 -0
  385. package/dist/ripple/{wm-modal-pss-header.entry.js → p-4f4868cb.system.entry.js} +1 -39
  386. package/dist/ripple/p-54aeadde.entry.js +1 -0
  387. package/dist/ripple/p-56422175.entry.js +1 -0
  388. package/dist/ripple/p-568bb1f9.entry.js +1 -0
  389. package/dist/ripple/p-5802a317.system.entry.js +1 -0
  390. package/dist/ripple/p-5ae17300.system.entry.js +1 -0
  391. package/dist/ripple/p-5e3fbe45.entry.js +1 -0
  392. package/dist/ripple/p-60363868.entry.js +1 -0
  393. package/dist/ripple/p-792f7c79.entry.js +1 -0
  394. package/dist/ripple/p-7aa1c452.system.entry.js +1 -0
  395. package/dist/ripple/p-7fbbb63a.system.entry.js +1 -0
  396. package/dist/ripple/p-812615ae.entry.js +1 -0
  397. package/dist/ripple/{wm-snackbar.entry.js → p-86b22f7b.entry.js} +1 -185
  398. package/dist/ripple/p-8cbefd04.entry.js +1 -0
  399. package/dist/ripple/{wm-progress-indicator.entry.js → p-8ee4401f.entry.js} +1 -107
  400. package/dist/ripple/{priv-chart-popover.entry.js → p-94e4dc77.system.entry.js} +1 -134
  401. package/dist/ripple/p-9a8e3525.entry.js +1 -0
  402. package/dist/ripple/p-9c14176e.system.entry.js +1 -0
  403. package/dist/ripple/p-9c993a3e.system.entry.js +1 -0
  404. package/dist/ripple/p-BIzU753x.system.js +1 -0
  405. package/dist/ripple/p-BNmjUWhs.js +1 -0
  406. package/dist/ripple/p-CDk__KSi.system.js +1 -0
  407. package/dist/ripple/p-CFV9VgE2.system.js +1 -0
  408. package/dist/ripple/p-CGHKc6U6.js +1 -0
  409. package/dist/ripple/p-CTau6pR2.system.js +2 -0
  410. package/dist/ripple/p-CU95tthb.js +1 -0
  411. package/dist/ripple/p-CcozwjO1.js +1 -0
  412. package/dist/ripple/p-CwkTkxrj.system.js +1 -0
  413. package/dist/ripple/p-CyJHzEjr.js +1 -0
  414. package/dist/ripple/p-EopL5zo4.js +2 -0
  415. package/dist/ripple/p-GtT-372c.system.js +1 -0
  416. package/dist/ripple/p-YWpyar7R.system.js +1 -0
  417. package/dist/ripple/p-a4d4a752.entry.js +1 -0
  418. package/dist/ripple/p-a7b4f720.system.entry.js +1 -0
  419. package/dist/ripple/p-adffc8d9.system.entry.js +1 -0
  420. package/dist/ripple/p-b53e397f.entry.js +1 -0
  421. package/dist/ripple/p-b6956929.system.entry.js +1 -0
  422. package/dist/ripple/p-b79f5594.system.entry.js +1 -0
  423. package/dist/ripple/p-b94e08f4.system.entry.js +1 -0
  424. package/dist/ripple/p-bb930411.entry.js +1 -0
  425. package/dist/ripple/p-bd0f8d31.system.entry.js +1 -0
  426. package/dist/ripple/p-be146306.system.entry.js +1 -0
  427. package/dist/ripple/p-c59fa446.system.entry.js +1 -0
  428. package/dist/ripple/p-c7269416.entry.js +1 -0
  429. package/dist/ripple/p-c7f446e9.system.entry.js +1 -0
  430. package/dist/ripple/p-ca8c26b0.entry.js +1 -0
  431. package/dist/ripple/p-cccfdbb8.entry.js +1 -0
  432. package/dist/ripple/p-cfb2bbf1.system.entry.js +1 -0
  433. package/dist/ripple/p-d298ef0a.system.entry.js +1 -0
  434. package/dist/ripple/p-d66f8dfc.system.entry.js +1 -0
  435. package/dist/ripple/p-d715f567.system.entry.js +1 -0
  436. package/dist/ripple/p-d8cd69fb.entry.js +1 -0
  437. package/dist/ripple/p-d9033c6b.entry.js +1 -0
  438. package/dist/ripple/p-da5ad94c.system.entry.js +1 -0
  439. package/dist/ripple/p-da6646bf.entry.js +1 -0
  440. package/dist/ripple/p-dc44a726.entry.js +1 -0
  441. package/dist/ripple/p-e04561b5.system.entry.js +1 -0
  442. package/dist/ripple/p-e8cdf66c.entry.js +1 -0
  443. package/dist/ripple/p-ec1c0b3e.system.entry.js +1 -0
  444. package/dist/ripple/p-ef9c66dd.entry.js +1 -0
  445. package/dist/ripple/p-f44dafc1.entry.js +1 -0
  446. package/dist/ripple/p-f4c59921.system.entry.js +1 -0
  447. package/dist/ripple/p-f6e9cb0e.entry.js +1 -0
  448. package/dist/ripple/p-faa45b92.system.entry.js +1 -0
  449. package/dist/ripple/p-faf34fd1.system.entry.js +1 -0
  450. package/dist/ripple/{wm-tab-list.entry.js → p-fd006ae2.entry.js} +1 -175
  451. package/dist/ripple/p-fd9c8220.system.entry.js +1 -0
  452. package/dist/ripple/p-fe1ac4e0.entry.js +1 -0
  453. package/dist/ripple/p-fe5c9681.entry.js +1 -0
  454. package/dist/ripple/p-feb343ad.system.entry.js +1 -0
  455. package/dist/ripple/p-ff3cbb1d.entry.js +1 -0
  456. package/dist/ripple/p-rbkCjczS.system.js +1 -0
  457. package/dist/ripple/ripple.esm.js +1 -48
  458. package/dist/ripple/ripple.js +127 -0
  459. package/package.json +2 -2
  460. package/dist/ripple/index-CU5QNCKv.js +0 -4167
  461. package/dist/ripple/priv-calendar.entry.js +0 -566
  462. package/dist/ripple/priv-navigator-button.entry.js +0 -24
  463. package/dist/ripple/wm-action-menu.entry.js +0 -201
  464. package/dist/ripple/wm-button.entry.js +0 -197
  465. package/dist/ripple/wm-date-range.entry.js +0 -477
  466. package/dist/ripple/wm-datepicker.entry.js +0 -247
  467. package/dist/ripple/wm-line-chart.entry.js +0 -449
  468. package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
  469. package/dist/ripple/wm-modal-pss.entry.js +0 -135
  470. package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
  471. package/dist/ripple/wm-navigation-item.entry.js +0 -18
  472. package/dist/ripple/wm-navigator.entry.js +0 -368
  473. package/dist/ripple/wm-nested-select.entry.js +0 -308
  474. package/dist/ripple/wm-pagination.entry.js +0 -223
  475. package/dist/ripple/wm-tag-input.entry.js +0 -877
  476. package/dist/ripple/wm-timepicker.entry.js +0 -300
@@ -0,0 +1,515 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { getWmMode } from "../../global/interfaces";
3
+ import { intl, snakeCaseToCamelCase, getNewIndexToFocus } from "../../global/functions";
4
+ import { getRequest } from "../../global/services/http-service";
5
+ export class Navigator {
6
+ constructor() {
7
+ this.authType = 1; // 1: none or off, 2: username-password or username_password_sso, 3: saml or saml_sso
8
+ // The new way is to retrieve user info from an endpoint
9
+ // dev needs to opt-in by setting loadFromUserinfo to true
10
+ this.loadFromUserinfo = false;
11
+ // comp can check whether the info was successfully retrieved with:
12
+ this.retrievedInfo = !this.loadFromUserinfo; // when in endpoint mode, only render after get request completed
13
+ // used either way to store the products
14
+ this.parsedProducts = [];
15
+ /**
16
+ * Event emitted from child wm-navigator-button updates the state, which is then passed down as a prop by wm-navigator.
17
+ */
18
+ this.isOpen = false;
19
+ this.openRight = false; // whether the menu should open on the right side
20
+ /**
21
+ * Value is set to the index of the current product on load.
22
+ * Keyboard navigation updates the state to keep track of focus in the dropdown.
23
+ * State resets to the index of the current product when the dropdown closes.
24
+ */
25
+ this.itemIndexToFocus = 0;
26
+ }
27
+ isSafeUrl(url) {
28
+ let isSafe = false;
29
+ const whitelist = [
30
+ "digitalmeasures\\.com",
31
+ "evalkit\\.info",
32
+ "evaluationkit\\.com",
33
+ "evaluationkit\\.info",
34
+ "lat_ams\\.com",
35
+ "livetext\\.com",
36
+ "smartcatalogiq\\.com",
37
+ "smartcatalogiq\\.net",
38
+ "smartcatalogiq\\.us",
39
+ "taskstream\\.com",
40
+ "vialivetext\\.com",
41
+ "watermarkinsights\\.com",
42
+ ];
43
+ whitelist.forEach((tld) => {
44
+ const knownTLD = `^https:\/\/(.*\.)?${tld}(\/.*)?$`;
45
+ if (!!url && url.match(knownTLD)) {
46
+ isSafe = true;
47
+ }
48
+ });
49
+ return isSafe;
50
+ }
51
+ async componentWillLoad() {
52
+ if (!this.userName) {
53
+ console.error("wm-navigator: user-name is a required property.");
54
+ }
55
+ await this.parseData();
56
+ this.setFocusIndex();
57
+ }
58
+ // async because we need the http request to complete before proceeding
59
+ async parseData() {
60
+ if (!!this.loadFromUserinfo) {
61
+ await getRequest("/platform/navigator/userinfo")
62
+ .then((response) => {
63
+ this.email = response.email;
64
+ this.currentProductId = response.current_product_id;
65
+ this.parsedProducts = this.productKeysToCamelCase(response.products);
66
+ this.logoutUrl = this.logoutUrl ? this.logoutUrl : response.logout_url;
67
+ this.connectionName = this.connectionName ? this.connectionName : response.connection_name;
68
+ if (!!this.email && !!this.currentProductId) {
69
+ this.retrievedInfo = true;
70
+ }
71
+ })
72
+ .catch((errStatus) => {
73
+ console.error(errStatus);
74
+ });
75
+ }
76
+ else {
77
+ this.currentProductId = getWmMode(this.el);
78
+ if (!!this.products) {
79
+ if (typeof this.products === "string") {
80
+ this.parsedProducts = JSON.parse(this.products);
81
+ }
82
+ else {
83
+ this.parsedProducts = this.products;
84
+ }
85
+ this.parsedProducts = this.productKeysToCamelCase(this.parsedProducts);
86
+ }
87
+ }
88
+ // products is initialized as empty array in case nothing is passed
89
+ this.parsedProducts.sort((a, b) => (a.name < b.name ? -1 : 1));
90
+ }
91
+ productKeysToCamelCase(products) {
92
+ products = products.map((product) => {
93
+ const keys = Object.keys(product);
94
+ let newProduct = {};
95
+ keys.forEach((key) => {
96
+ newProduct[snakeCaseToCamelCase(key)] = product[key];
97
+ });
98
+ return newProduct;
99
+ });
100
+ return products;
101
+ }
102
+ /**
103
+ * Sets index to focus on open to the selected product. This index resets it when the menu closes.
104
+ */
105
+ setFocusIndex() {
106
+ if (this.parsedProducts.length > 1) {
107
+ const currentProduct = this.getProduct(this.currentProductId);
108
+ if (currentProduct) {
109
+ this.itemIndexToFocus = this.parsedProducts.indexOf(currentProduct);
110
+ }
111
+ }
112
+ }
113
+ handleKeys(ev) {
114
+ switch (ev.key) {
115
+ case "Escape":
116
+ ev.preventDefault();
117
+ this.closeMenu();
118
+ break;
119
+ case "ArrowDown":
120
+ case "ArrowUp":
121
+ ev.preventDefault();
122
+ if (!this.isOpen) {
123
+ this.itemIndexToFocus = getNewIndexToFocus(this.itemIndexToFocus, ev.key, this.navigatorItems.length);
124
+ this.openMenu();
125
+ }
126
+ break;
127
+ }
128
+ }
129
+ handleKeydown(ev) {
130
+ const key = ev.detail.key;
131
+ const item = ev.detail.navItem;
132
+ switch (key) {
133
+ case "Tab":
134
+ this.closeMenu(false);
135
+ break;
136
+ case "Enter":
137
+ case " ":
138
+ item.click();
139
+ break;
140
+ case "ArrowDown":
141
+ case "ArrowUp":
142
+ const oldIndex = this.itemIndexToFocus;
143
+ this.itemIndexToFocus = getNewIndexToFocus(this.itemIndexToFocus, key, this.navigatorItems.length);
144
+ this.focusItem();
145
+ this.unfocusItem(oldIndex);
146
+ break;
147
+ }
148
+ }
149
+ handleClick(ev) {
150
+ const isElOrChild = ev.target === this.el || this.el.contains(ev.target);
151
+ if (!isElOrChild && this.isOpen) {
152
+ this.closeMenu(false);
153
+ }
154
+ }
155
+ handleButtonClick() {
156
+ this.isOpen ? this.closeMenu() : this.openMenu();
157
+ }
158
+ openMenu() {
159
+ if (this.wrapperEl) {
160
+ const wrapperWidth = this.wrapperEl.clientWidth;
161
+ const spaceLeft = this.el.getBoundingClientRect().left;
162
+ const spaceRight = document.documentElement.clientWidth - this.el.getBoundingClientRect().right;
163
+ this.openRight = wrapperWidth > spaceLeft && spaceRight > spaceLeft;
164
+ }
165
+ this.isOpen = true;
166
+ this.focusItem();
167
+ }
168
+ closeMenu(returnFocus = true) {
169
+ this.isOpen = false;
170
+ window.requestAnimationFrame(() => {
171
+ this.unfocusItem(this.itemIndexToFocus);
172
+ this.setFocusIndex();
173
+ if (returnFocus) {
174
+ this.buttonFocusHandler();
175
+ }
176
+ });
177
+ }
178
+ focusItem() {
179
+ const newSelection = this.navigatorItems[this.itemIndexToFocus];
180
+ newSelection.tabIndex = 0;
181
+ newSelection.focused = true;
182
+ // wait for animation to complete before sending focus to option
183
+ window.setTimeout(() => newSelection.focus(), 250);
184
+ }
185
+ unfocusItem(index) {
186
+ const oldSelection = this.navigatorItems[index];
187
+ oldSelection.tabIndex = -1;
188
+ oldSelection.focused = false;
189
+ }
190
+ buttonFocusHandler() {
191
+ const hostButton = this.el.shadowRoot.querySelector("priv-navigator-button");
192
+ const button = hostButton.shadowRoot.querySelector("button");
193
+ button.focus();
194
+ }
195
+ /**
196
+ * HELPERS FOR RENDER
197
+ */
198
+ renderUserInfo() {
199
+ return (h("div", { class: "user", id: "wm-nav-user", "aria-label": intl.formatMessage({
200
+ id: "navigator.userinfoLabel",
201
+ defaultMessage: "for {name}, email {email}",
202
+ }, { name: this.userName, email: this.email }) }, h("p", null, this.userName), h("p", null, this.email)));
203
+ }
204
+ setAltText() {
205
+ if (this.parsedProducts.length > 1) {
206
+ return intl.formatMessage({
207
+ id: "navigator.userinfoAndProductNavigator",
208
+ defaultMessage: "User information and product navigator",
209
+ });
210
+ }
211
+ else {
212
+ return intl.formatMessage({
213
+ id: "navigator.userinfo",
214
+ defaultMessage: "User information",
215
+ });
216
+ }
217
+ }
218
+ renderHeading() {
219
+ return (h("h2", null, intl.formatMessage({
220
+ id: "navigator.watermarkApps",
221
+ defaultMessage: "Watermark Apps",
222
+ description: "Applications made by Watermark Insights",
223
+ })));
224
+ }
225
+ renderList() {
226
+ return (h("ul", { role: "listbox", "aria-label": `${intl.formatMessage({
227
+ id: "navigator.WatermarkAppNavigation",
228
+ defaultMessage: "Watermark App Navigation",
229
+ description: "list of applications by Watermark Insights",
230
+ })}`, "aria-describedby": "wm-nav-user" }, this.parsedProducts.length > 1 && this.renderProductOptions(), this.renderLogoutOption()));
231
+ }
232
+ renderProductOptions() {
233
+ return this.parsedProducts.map((product) => {
234
+ let name, icon, isSelected, clickRedirect;
235
+ name = product.name;
236
+ icon = product.iconUrl;
237
+ clickRedirect = this.setProductOnClick(product.id);
238
+ if (!!name && !!icon) {
239
+ isSelected = this.currentProductId === product.id;
240
+ return (h("priv-navigator-item", { selected: isSelected, id: product.id, onClick: () => {
241
+ isSelected ? this.closeMenu() : clickRedirect();
242
+ }, role: "option", "aria-label": name, "aria-selected": isSelected ? "true" : "false" }, h("img", { src: icon, alt: name })));
243
+ }
244
+ });
245
+ }
246
+ setProductOnClick(productId) {
247
+ const product = this.getProduct(productId);
248
+ if (this.currentProductId === productId) {
249
+ return () => { };
250
+ }
251
+ else if (product) {
252
+ if (!!this.loadFromUserinfo || this.authType === 2) {
253
+ const url = product.linkUrl;
254
+ if (this.isSafeUrl(url)) {
255
+ return () => (window.location.href = url);
256
+ }
257
+ else {
258
+ console.error(`"${url}" is not a safe url`);
259
+ return;
260
+ }
261
+ }
262
+ else if (this.authType === 3) {
263
+ // products passed as prop, saml
264
+ const connName = this.connectionName ? `/?connection_name=${this.connectionName}` : "";
265
+ const url = product.samlLinkUrl;
266
+ if (this.isSafeUrl(url)) {
267
+ return () => (window.location.href = url + connName);
268
+ }
269
+ else {
270
+ console.error(`"${url}" is not a safe url`);
271
+ return;
272
+ }
273
+ }
274
+ }
275
+ }
276
+ renderLogoutOption() {
277
+ return (h("priv-navigator-item", { class: "logout", selected: !(this.parsedProducts.length > 1), id: "nav-logout", onClick: this.setLogoutOnclick(), role: "option", "aria-selected": "false" }, h("span", { class: "logout" }, intl.formatMessage({
278
+ id: "navigator.logout",
279
+ defaultMessage: "Log Out",
280
+ }))));
281
+ }
282
+ setLogoutOnclick() {
283
+ // The logout item will always emit a custom event on click so that the dev can run any business logic specific to the app on logout (e.g., clearing local storage).
284
+ // It will only redirect if the dev has set the logoutUrl. If some sort of custom redirect is needed, the logoutUrl should not be set.
285
+ return () => {
286
+ this.wmNavigatorLogout.emit();
287
+ const url = this.logoutUrl;
288
+ if (this.isSafeUrl(url)) {
289
+ window.location.href = url;
290
+ }
291
+ else {
292
+ console.error(`"${url}" is not a safe url`);
293
+ }
294
+ };
295
+ }
296
+ get navigatorItems() {
297
+ return Array.from(this.el.shadowRoot.querySelectorAll("priv-navigator-item"));
298
+ }
299
+ getProduct(id) {
300
+ return this.parsedProducts.find((product) => product.id === id);
301
+ }
302
+ render() {
303
+ return this.retrievedInfo ? (h(Host, null, h("priv-navigator-button", { expanded: this.isOpen, altText: this.setAltText() }), h("div", { class: `wrapper ${this.isOpen ? "" : "hide"} ${this.openRight ? "right" : ""}`, ref: (el) => (this.wrapperEl = el) }, this.renderUserInfo(), this.parsedProducts.length > 1 && this.renderHeading(), this.renderList()))) : ("");
304
+ }
305
+ static get is() { return "wm-navigator"; }
306
+ static get encapsulation() { return "shadow"; }
307
+ static get delegatesFocus() { return true; }
308
+ static get originalStyleUrls() {
309
+ return {
310
+ "$": ["wm-navigator.scss"]
311
+ };
312
+ }
313
+ static get styleUrls() {
314
+ return {
315
+ "$": ["wm-navigator.css"]
316
+ };
317
+ }
318
+ static get properties() {
319
+ return {
320
+ "userName": {
321
+ "type": "string",
322
+ "attribute": "user-name",
323
+ "mutable": false,
324
+ "complexType": {
325
+ "original": "string",
326
+ "resolved": "string | undefined",
327
+ "references": {}
328
+ },
329
+ "required": false,
330
+ "optional": true,
331
+ "docs": {
332
+ "tags": [],
333
+ "text": ""
334
+ },
335
+ "getter": false,
336
+ "setter": false,
337
+ "reflect": false
338
+ },
339
+ "email": {
340
+ "type": "string",
341
+ "attribute": "email",
342
+ "mutable": false,
343
+ "complexType": {
344
+ "original": "string",
345
+ "resolved": "string | undefined",
346
+ "references": {}
347
+ },
348
+ "required": false,
349
+ "optional": true,
350
+ "docs": {
351
+ "tags": [],
352
+ "text": ""
353
+ },
354
+ "getter": false,
355
+ "setter": false,
356
+ "reflect": false
357
+ },
358
+ "authType": {
359
+ "type": "number",
360
+ "attribute": "auth-type",
361
+ "mutable": false,
362
+ "complexType": {
363
+ "original": "number",
364
+ "resolved": "number",
365
+ "references": {}
366
+ },
367
+ "required": false,
368
+ "optional": false,
369
+ "docs": {
370
+ "tags": [],
371
+ "text": ""
372
+ },
373
+ "getter": false,
374
+ "setter": false,
375
+ "reflect": false,
376
+ "defaultValue": "1"
377
+ },
378
+ "connectionName": {
379
+ "type": "string",
380
+ "attribute": "connection-name",
381
+ "mutable": false,
382
+ "complexType": {
383
+ "original": "string",
384
+ "resolved": "string | undefined",
385
+ "references": {}
386
+ },
387
+ "required": false,
388
+ "optional": true,
389
+ "docs": {
390
+ "tags": [],
391
+ "text": ""
392
+ },
393
+ "getter": false,
394
+ "setter": false,
395
+ "reflect": false
396
+ },
397
+ "logoutUrl": {
398
+ "type": "string",
399
+ "attribute": "logout-url",
400
+ "mutable": false,
401
+ "complexType": {
402
+ "original": "string",
403
+ "resolved": "string | undefined",
404
+ "references": {}
405
+ },
406
+ "required": false,
407
+ "optional": true,
408
+ "docs": {
409
+ "tags": [],
410
+ "text": ""
411
+ },
412
+ "getter": false,
413
+ "setter": false,
414
+ "reflect": false
415
+ },
416
+ "products": {
417
+ "type": "string",
418
+ "attribute": "products",
419
+ "mutable": false,
420
+ "complexType": {
421
+ "original": "string | []",
422
+ "resolved": "[] | string | undefined",
423
+ "references": {}
424
+ },
425
+ "required": false,
426
+ "optional": true,
427
+ "docs": {
428
+ "tags": [],
429
+ "text": ""
430
+ },
431
+ "getter": false,
432
+ "setter": false,
433
+ "reflect": false
434
+ },
435
+ "loadFromUserinfo": {
436
+ "type": "boolean",
437
+ "attribute": "load-from-userinfo",
438
+ "mutable": false,
439
+ "complexType": {
440
+ "original": "boolean",
441
+ "resolved": "boolean",
442
+ "references": {}
443
+ },
444
+ "required": false,
445
+ "optional": false,
446
+ "docs": {
447
+ "tags": [],
448
+ "text": ""
449
+ },
450
+ "getter": false,
451
+ "setter": false,
452
+ "reflect": false,
453
+ "defaultValue": "false"
454
+ }
455
+ };
456
+ }
457
+ static get states() {
458
+ return {
459
+ "isOpen": {},
460
+ "itemIndexToFocus": {}
461
+ };
462
+ }
463
+ static get events() {
464
+ return [{
465
+ "method": "wmNavigatorLogout",
466
+ "name": "wmNavigatorLogout",
467
+ "bubbles": true,
468
+ "cancelable": true,
469
+ "composed": true,
470
+ "docs": {
471
+ "tags": [],
472
+ "text": ""
473
+ },
474
+ "complexType": {
475
+ "original": "any",
476
+ "resolved": "any",
477
+ "references": {}
478
+ }
479
+ }];
480
+ }
481
+ static get elementRef() { return "el"; }
482
+ static get watchers() {
483
+ return [{
484
+ "propName": "products",
485
+ "methodName": "parseData"
486
+ }];
487
+ }
488
+ static get listeners() {
489
+ return [{
490
+ "name": "keydown",
491
+ "method": "handleKeys",
492
+ "target": undefined,
493
+ "capture": false,
494
+ "passive": false
495
+ }, {
496
+ "name": "keydownOnNavItem",
497
+ "method": "handleKeydown",
498
+ "target": undefined,
499
+ "capture": false,
500
+ "passive": false
501
+ }, {
502
+ "name": "click",
503
+ "method": "handleClick",
504
+ "target": "document",
505
+ "capture": false,
506
+ "passive": false
507
+ }, {
508
+ "name": "buttonActivated",
509
+ "method": "handleButtonClick",
510
+ "target": undefined,
511
+ "capture": false,
512
+ "passive": false
513
+ }];
514
+ }
515
+ }