@watermarkinsights/ripple 5.10.0-11 → 5.10.0-13

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 (365) hide show
  1. package/README.md +3 -3
  2. package/dist/{esm/global-07352c64.js → cjs/app-globals-0caa3707.js} +10 -1
  3. package/dist/cjs/{chartFunctions-c4046c7a.js → chartFunctions-a3a08880.js} +3 -3
  4. package/dist/cjs/{functions-e24249e6.js → functions-5ac8a62f.js} +104 -7
  5. package/dist/cjs/index-788526f5.js +1859 -0
  6. package/dist/cjs/{intl-5aeba788.js → intl-57d1cfd1.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +4 -3
  8. package/dist/cjs/priv-calendar.cjs.entry.js +6 -5
  9. package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
  10. package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
  11. package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
  12. package/dist/cjs/priv-option-list.cjs.entry.js +5 -4
  13. package/dist/cjs/ripple.cjs.js +12 -11
  14. package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
  15. package/dist/cjs/wm-button.cjs.entry.js +5 -4
  16. package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
  17. package/dist/cjs/wm-chart.cjs.entry.js +7 -6
  18. package/dist/cjs/wm-date-range.cjs.entry.js +9 -8
  19. package/dist/cjs/wm-datepicker.cjs.entry.js +9 -8
  20. package/dist/cjs/wm-file-list.cjs.entry.js +5 -4
  21. package/dist/cjs/wm-file.cjs.entry.js +14 -10
  22. package/dist/cjs/wm-input.cjs.entry.js +6 -5
  23. package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
  24. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +13 -10
  25. package/dist/cjs/wm-modal_3.cjs.entry.js +13 -10
  26. package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
  27. package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
  28. package/dist/cjs/wm-nested-select.cjs.entry.js +8 -7
  29. package/dist/cjs/wm-optgroup.cjs.entry.js +5 -4
  30. package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
  31. package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
  32. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
  33. package/dist/cjs/wm-search.cjs.entry.js +7 -6
  34. package/dist/cjs/wm-snackbar.cjs.entry.js +7 -6
  35. package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
  36. package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
  37. package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
  38. package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
  39. package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
  40. package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
  41. package/dist/cjs/wm-uploader.cjs.entry.js +8 -7
  42. package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
  43. package/dist/collection/collection-manifest.json +2 -2
  44. package/dist/collection/components/charts/chartFunctions.js +1 -1
  45. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
  46. package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
  47. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
  48. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
  49. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
  50. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
  51. package/dist/collection/components/datepickers/wm-date-range.js +17 -13
  52. package/dist/collection/components/datepickers/wm-datepicker.js +17 -13
  53. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +7 -5
  54. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
  55. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
  56. package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
  57. package/dist/collection/components/selects/wm-select/wm-select.js +2 -2
  58. package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
  59. package/dist/collection/components/wm-button/wm-button.js +1 -1
  60. package/dist/collection/components/wm-file/wm-file.css +9 -6
  61. package/dist/collection/components/wm-file/wm-file.js +11 -8
  62. package/dist/collection/components/wm-file-list/wm-file-list.css +1 -0
  63. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  64. package/dist/collection/components/wm-input/wm-input.js +1 -1
  65. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  66. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  67. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  68. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  69. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
  70. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
  71. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
  72. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  73. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  74. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  75. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  76. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +2 -2
  77. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  78. package/dist/collection/components/wm-search/wm-search.js +5 -4
  79. package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
  80. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
  81. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
  82. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  83. package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
  84. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  85. package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
  86. package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
  87. package/dist/collection/components/wm-uploader/wm-uploader.css +1 -1
  88. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  89. package/dist/collection/lang/missing.js +43 -43
  90. package/dist/collection/lang/piglatin.js +93 -93
  91. package/dist/{cjs/global-cb3446fa.js → esm/app-globals-7e0510ff.js} +7 -2
  92. package/dist/esm/{chartFunctions-5555bab0.js → chartFunctions-21d5a3d3.js} +3 -3
  93. package/dist/esm/{functions-8800c690.js → functions-f39e6177.js} +105 -8
  94. package/dist/esm/index-130e07bb.js +1828 -0
  95. package/dist/esm/{intl-b110ca8d.js → intl-dda73e98.js} +1 -1
  96. package/dist/esm/loader.js +5 -4
  97. package/dist/esm/polyfills/core-js.js +0 -0
  98. package/dist/esm/polyfills/dom.js +0 -0
  99. package/dist/esm/polyfills/es5-html-element.js +0 -0
  100. package/dist/esm/polyfills/index.js +0 -0
  101. package/dist/esm/polyfills/system.js +0 -0
  102. package/dist/esm/priv-calendar.entry.js +6 -5
  103. package/dist/esm/priv-chart-popover.entry.js +6 -5
  104. package/dist/esm/priv-navigator-button.entry.js +4 -3
  105. package/dist/esm/priv-navigator-item.entry.js +4 -3
  106. package/dist/esm/priv-option-list.entry.js +5 -4
  107. package/dist/esm/ripple.js +13 -12
  108. package/dist/esm/wm-action-menu_2.entry.js +8 -6
  109. package/dist/esm/wm-button.entry.js +5 -4
  110. package/dist/esm/wm-chart-slice.entry.js +1 -1
  111. package/dist/esm/wm-chart.entry.js +7 -6
  112. package/dist/esm/wm-date-range.entry.js +9 -8
  113. package/dist/esm/wm-datepicker.entry.js +9 -8
  114. package/dist/esm/wm-file-list.entry.js +5 -4
  115. package/dist/esm/wm-file.entry.js +14 -10
  116. package/dist/esm/wm-input.entry.js +6 -5
  117. package/dist/esm/wm-line-chart.entry.js +15 -14
  118. package/dist/esm/wm-modal-pss_3.entry.js +13 -10
  119. package/dist/esm/wm-modal_3.entry.js +13 -10
  120. package/dist/esm/wm-navigation_3.entry.js +13 -10
  121. package/dist/esm/wm-navigator.entry.js +4 -3
  122. package/dist/esm/wm-nested-select.entry.js +8 -7
  123. package/dist/esm/wm-optgroup.entry.js +5 -4
  124. package/dist/esm/wm-option_2.entry.js +10 -8
  125. package/dist/esm/wm-pagination.entry.js +5 -4
  126. package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
  127. package/dist/esm/wm-search.entry.js +7 -6
  128. package/dist/esm/wm-snackbar.entry.js +7 -6
  129. package/dist/esm/wm-tab-item_3.entry.js +11 -8
  130. package/dist/esm/wm-tag-input.entry.js +8 -7
  131. package/dist/esm/wm-tag-option.entry.js +2 -2
  132. package/dist/esm/wm-textarea.entry.js +6 -5
  133. package/dist/esm/wm-timepicker.entry.js +6 -5
  134. package/dist/esm/wm-toggletip.entry.js +6 -5
  135. package/dist/esm/wm-uploader.entry.js +8 -7
  136. package/dist/esm/wm-wrapper.entry.js +1 -1
  137. package/dist/esm-es5/app-globals-7e0510ff.js +1 -0
  138. package/dist/esm-es5/{chartFunctions-5555bab0.js → chartFunctions-21d5a3d3.js} +1 -1
  139. package/dist/esm-es5/functions-f39e6177.js +1 -0
  140. package/dist/esm-es5/index-130e07bb.js +1 -0
  141. package/dist/esm-es5/{intl-b110ca8d.js → intl-dda73e98.js} +1 -1
  142. package/dist/esm-es5/loader.js +1 -1
  143. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  144. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  145. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  146. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  147. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  148. package/dist/esm-es5/ripple.js +1 -1
  149. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  150. package/dist/esm-es5/wm-button.entry.js +1 -1
  151. package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
  152. package/dist/esm-es5/wm-chart.entry.js +1 -1
  153. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  154. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  155. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  156. package/dist/esm-es5/wm-file.entry.js +1 -1
  157. package/dist/esm-es5/wm-input.entry.js +1 -1
  158. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  159. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  160. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  161. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  162. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  163. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  164. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  165. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  166. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  167. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  168. package/dist/esm-es5/wm-search.entry.js +1 -1
  169. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  170. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  171. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  172. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  173. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  174. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  175. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  176. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  177. package/dist/esm-es5/wm-wrapper.entry.js +1 -1
  178. package/dist/loader/cdn.js +1 -2
  179. package/dist/loader/index.cjs.js +1 -2
  180. package/dist/loader/index.d.ts +3 -0
  181. package/dist/loader/index.es2017.js +1 -2
  182. package/dist/loader/index.js +1 -2
  183. package/dist/ripple/{p-ba32e2a3.system.entry.js → p-0116c06f.system.entry.js} +1 -1
  184. package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
  185. package/dist/ripple/p-0558fa69.entry.js +1 -0
  186. package/dist/ripple/{p-786ce588.system.entry.js → p-05d0870f.system.entry.js} +1 -1
  187. package/dist/ripple/{p-c4459739.system.entry.js → p-08c4309d.system.entry.js} +1 -1
  188. package/dist/ripple/p-0ddd48d5.entry.js +1 -0
  189. package/dist/ripple/{p-97f73303.system.entry.js → p-0fe77e41.system.entry.js} +1 -1
  190. package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
  191. package/dist/ripple/p-13e6a586.system.entry.js +1 -0
  192. package/dist/ripple/{p-ea0978e8.system.entry.js → p-1541cd19.system.entry.js} +1 -1
  193. package/dist/ripple/p-1f3f00b8.system.entry.js +1 -0
  194. package/dist/ripple/p-250ea363.entry.js +1 -0
  195. package/dist/ripple/p-29092365.entry.js +1 -0
  196. package/dist/ripple/{p-ac5b9632.system.entry.js → p-2b88f7d3.system.entry.js} +1 -1
  197. package/dist/ripple/{p-43d1396a.system.entry.js → p-2c705607.system.entry.js} +1 -1
  198. package/dist/ripple/p-2f42d180.entry.js +1 -0
  199. package/dist/ripple/p-35171bd6.entry.js +1 -0
  200. package/dist/ripple/{p-2ce69098.system.js → p-37b044c7.system.js} +1 -1
  201. package/dist/ripple/p-3ae96f51.entry.js +1 -0
  202. package/dist/ripple/p-3c3cdda6.entry.js +1 -0
  203. package/dist/ripple/{p-cad67180.entry.js → p-3f44795e.entry.js} +1 -1
  204. package/dist/ripple/p-3f486eed.system.js +1 -0
  205. package/dist/ripple/p-4017b95c.entry.js +1 -0
  206. package/dist/ripple/{p-5b6eb3e6.system.entry.js → p-406e850e.system.entry.js} +1 -1
  207. package/dist/ripple/p-4087fc4b.entry.js +1 -0
  208. package/dist/ripple/p-5397f88b.system.entry.js +1 -0
  209. package/dist/ripple/{p-dbc7cb15.entry.js → p-54dd8a8f.entry.js} +1 -1
  210. package/dist/ripple/p-5f001d42.entry.js +1 -0
  211. package/dist/ripple/p-602c3975.js +1 -0
  212. package/dist/ripple/p-6f1b3eb3.entry.js +1 -0
  213. package/dist/ripple/{p-02dc1562.js → p-73ce9af7.js} +1 -1
  214. package/dist/ripple/{p-b976c84b.entry.js → p-76d248e6.entry.js} +1 -1
  215. package/dist/ripple/{p-8ca9fa42.system.entry.js → p-77535286.system.entry.js} +1 -1
  216. package/dist/ripple/p-7a25c9eb.entry.js +1 -0
  217. package/dist/ripple/{p-8b6c2bf7.entry.js → p-7c7164d3.entry.js} +1 -1
  218. package/dist/ripple/p-7d912ebb.entry.js +1 -0
  219. package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
  220. package/dist/ripple/p-82ae0450.system.entry.js +1 -0
  221. package/dist/ripple/p-82af03a4.entry.js +1 -0
  222. package/dist/ripple/{p-840c7934.system.entry.js → p-82c2e91a.system.entry.js} +1 -1
  223. package/dist/ripple/{p-e96caf0a.system.entry.js → p-85f0743c.system.entry.js} +1 -1
  224. package/dist/ripple/{p-8c5c5a69.system.entry.js → p-876fa7a1.system.entry.js} +1 -1
  225. package/dist/ripple/p-881bff45.entry.js +1 -0
  226. package/dist/ripple/p-89a2db02.js +1 -0
  227. package/dist/ripple/p-8d23aedb.system.js +1 -0
  228. package/dist/ripple/{p-8a42d7b0.entry.js → p-927496a7.entry.js} +1 -1
  229. package/dist/ripple/{p-5864d9a3.system.entry.js → p-9d548987.system.entry.js} +1 -1
  230. package/dist/ripple/p-9db300ae.system.entry.js +1 -0
  231. package/dist/ripple/p-a3854e5e.entry.js +1 -0
  232. package/dist/ripple/{p-c03150a9.system.entry.js → p-a5446fb7.system.entry.js} +1 -1
  233. package/dist/ripple/{p-9b7893e0.system.entry.js → p-a60311b7.system.entry.js} +1 -1
  234. package/dist/ripple/{p-2512cd8b.system.entry.js → p-aa959479.system.entry.js} +1 -1
  235. package/dist/ripple/p-acafdd58.entry.js +1 -0
  236. package/dist/ripple/{p-2c35ef3a.system.entry.js → p-ad8b4e1b.system.entry.js} +1 -1
  237. package/dist/ripple/{p-ee31c799.system.js → p-b0dddc8b.system.js} +1 -1
  238. package/dist/ripple/p-b599fab7.entry.js +1 -0
  239. package/dist/ripple/{p-2a8fbf47.system.entry.js → p-b80b3a26.system.entry.js} +1 -1
  240. package/dist/ripple/{p-279afdc2.entry.js → p-ba2b362c.entry.js} +1 -1
  241. package/dist/ripple/{p-03e458b2.system.entry.js → p-ba74727e.system.entry.js} +1 -1
  242. package/dist/ripple/{p-4743176d.system.entry.js → p-c34c9cbb.system.entry.js} +1 -1
  243. package/dist/ripple/p-c74f1ce0.system.js +1 -0
  244. package/dist/ripple/{p-3120dc46.entry.js → p-c7af6305.entry.js} +1 -1
  245. package/dist/ripple/{p-88ebddd7.entry.js → p-cd0cc88d.entry.js} +1 -1
  246. package/dist/ripple/p-cef8a45b.system.js +2 -0
  247. package/dist/ripple/{p-315940ce.system.entry.js → p-cf6bbca0.system.entry.js} +1 -1
  248. package/dist/ripple/p-d0e4ad8c.entry.js +1 -0
  249. package/dist/ripple/p-d3c94e4e.entry.js +1 -0
  250. package/dist/ripple/p-d5d008e0.entry.js +1 -0
  251. package/dist/ripple/{p-0f06d6f4.system.entry.js → p-d944f0a7.system.entry.js} +1 -1
  252. package/dist/ripple/p-d9da0502.js +2 -0
  253. package/dist/ripple/{p-dcd49afe.system.entry.js → p-e4910316.system.entry.js} +1 -1
  254. package/dist/ripple/p-e84aa8e5.system.entry.js +1 -0
  255. package/dist/ripple/{p-0dc00d95.system.entry.js → p-e9210de5.system.entry.js} +1 -1
  256. package/dist/ripple/{p-6c875151.entry.js → p-eb887718.entry.js} +1 -1
  257. package/dist/ripple/{p-599dd035.js → p-f41ab9ea.js} +1 -1
  258. package/dist/ripple/{p-a20a90e3.system.entry.js → p-f4676ccb.system.entry.js} +1 -1
  259. package/dist/ripple/p-f97bc521.entry.js +1 -0
  260. package/dist/ripple/{p-58ef50b2.system.entry.js → p-fc525284.system.entry.js} +1 -1
  261. package/dist/ripple/p-ffd09a7f.entry.js +1 -0
  262. package/dist/ripple/ripple.esm.js +1 -1
  263. package/dist/ripple/ripple.js +1 -1
  264. package/dist/types/components/wm-file/wm-file.d.ts +1 -0
  265. package/dist/types/components.d.ts +6 -6
  266. package/dist/types/stencil-public-runtime.d.ts +3 -10
  267. package/package.json +1 -1
  268. package/dist/cjs/index-e86c28b6.js +0 -2649
  269. package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
  270. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
  271. package/dist/collection/components/charts/screenshots.e2e.js +0 -96
  272. package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
  273. package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
  274. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
  275. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
  276. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
  277. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
  278. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
  279. package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
  280. package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
  281. package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
  282. package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
  283. package/dist/collection/components/selects/wm-option/wm-option.e2e.js +0 -22
  284. package/dist/collection/components/selects/wm-option/wm-option.spec.js +0 -63
  285. package/dist/collection/components/selects/wm-select/wm-select.e2e.js +0 -521
  286. package/dist/collection/components/selects/wm-select/wm-select.spec.js +0 -271
  287. package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
  288. package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
  289. package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
  290. package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
  291. package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
  292. package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
  293. package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
  294. package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
  295. package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
  296. package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
  297. package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
  298. package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
  299. package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
  300. package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
  301. package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
  302. package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
  303. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
  304. package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
  305. package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
  306. package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
  307. package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
  308. package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
  309. package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
  310. package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
  311. package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
  312. package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
  313. package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
  314. package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
  315. package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
  316. package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
  317. package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
  318. package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
  319. package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
  320. package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
  321. package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
  322. package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
  323. package/dist/collection/global/functions.spec.js +0 -126
  324. package/dist/collection/lang/lang.spec.js +0 -20
  325. package/dist/esm/index-558b5a82.js +0 -2618
  326. package/dist/esm-es5/functions-8800c690.js +0 -1
  327. package/dist/esm-es5/global-07352c64.js +0 -1
  328. package/dist/esm-es5/index-558b5a82.js +0 -1
  329. package/dist/ripple/p-12b17582.system.js +0 -1
  330. package/dist/ripple/p-1362721e.entry.js +0 -1
  331. package/dist/ripple/p-19676563.system.js +0 -1
  332. package/dist/ripple/p-2ec64015.entry.js +0 -1
  333. package/dist/ripple/p-37f571b9.entry.js +0 -1
  334. package/dist/ripple/p-3ea10ca9.system.entry.js +0 -1
  335. package/dist/ripple/p-410e4097.entry.js +0 -1
  336. package/dist/ripple/p-43e315a2.entry.js +0 -1
  337. package/dist/ripple/p-4470702e.system.entry.js +0 -1
  338. package/dist/ripple/p-491e5d5e.system.entry.js +0 -1
  339. package/dist/ripple/p-4c3b5139.entry.js +0 -1
  340. package/dist/ripple/p-5426a368.system.entry.js +0 -1
  341. package/dist/ripple/p-568c595f.js +0 -2
  342. package/dist/ripple/p-732d7a84.entry.js +0 -1
  343. package/dist/ripple/p-7f04b2d3.system.entry.js +0 -1
  344. package/dist/ripple/p-84baf37b.entry.js +0 -1
  345. package/dist/ripple/p-9410d7ee.entry.js +0 -1
  346. package/dist/ripple/p-9da90a7f.entry.js +0 -1
  347. package/dist/ripple/p-a6df3a2e.entry.js +0 -1
  348. package/dist/ripple/p-ab8d78cc.system.js +0 -2
  349. package/dist/ripple/p-b5f9c424.entry.js +0 -1
  350. package/dist/ripple/p-b78ae5d6.system.entry.js +0 -1
  351. package/dist/ripple/p-c35002ec.entry.js +0 -1
  352. package/dist/ripple/p-c37f0d34.entry.js +0 -1
  353. package/dist/ripple/p-c8f2c6eb.entry.js +0 -1
  354. package/dist/ripple/p-cded592f.entry.js +0 -1
  355. package/dist/ripple/p-d2d99a1d.entry.js +0 -1
  356. package/dist/ripple/p-d9006015.entry.js +0 -1
  357. package/dist/ripple/p-dfc7c5f6.entry.js +0 -1
  358. package/dist/ripple/p-e13c9fc2.js +0 -1
  359. package/dist/ripple/p-e4cc7edf.entry.js +0 -1
  360. package/dist/ripple/p-e648e2fe.entry.js +0 -1
  361. package/dist/ripple/p-ebc1df66.entry.js +0 -1
  362. package/dist/ripple/p-eca78c2b.js +0 -1
  363. package/dist/ripple/p-ed7dffc6.entry.js +0 -1
  364. package/dist/ripple/p-edd87140.system.js +0 -1
  365. package/dist/ripple/p-f61b6d90.entry.js +0 -1
@@ -25,7 +25,7 @@ export class ModalPssHeader {
25
25
  // this.headingElement.focus();
26
26
  // }
27
27
  render() {
28
- return (h(Host, null, h("div", { class: "wm-wrapper" }, h("div", null, h("h2", { class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { class: "subtitle" }, this.subheading))), h("wm-button", { "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
28
+ return (h(Host, { key: '0fb943252c66ba7d36ae9ddbfbbaaf6ac5381268' }, h("div", { key: '21a1033df88e0bd2c453ce655d78bfcacb11df24', class: "wm-wrapper" }, h("div", { key: '05c83acc83fc80cf680056e70a017f701bd81630' }, h("h2", { key: 'a63570d3b1a69c772d459f1fc2e119c9653f0d50', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: 'a67adf6281059c46f6204bcb4632f513c145cd97', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'f65fc5042064e47c213fc2367dd4dd45843fbced', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
29
29
  }
30
30
  static get is() { return "wm-modal-pss-header"; }
31
31
  static get originalStyleUrls() {
@@ -112,9 +112,9 @@ export class ModalPss {
112
112
  }
113
113
  }
114
114
  render() {
115
- return (h(Host, { class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
115
+ return (h(Host, { key: '0b4403670e30715806d555fdd6c18c3492f3d081', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
116
116
  this.focusLastElement.emit();
117
- } }, h("div", { class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { class: "sr-only", tabIndex: 0, onFocus: () => {
117
+ } }, h("div", { key: '37095949ff1177b04a57121811d2cd7654130022', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: '219c0628e92dde70c08e22c8b61b9cfffc34bcb0', class: "sr-only", tabIndex: 0, onFocus: () => {
118
118
  this.focusFirstElement.emit();
119
119
  } })));
120
120
  }
@@ -34,7 +34,7 @@ export class NavigationHamburger {
34
34
  this.wmNavigationHamburgerClicked.emit();
35
35
  }
36
36
  render() {
37
- return (h(Host, { class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { class: "icon" }))));
37
+ return (h(Host, { key: 'd535deeb4a29e31c0755a00d3a2e829891a25415', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'b2603341049cabfc2b7c9f5cc359df7bbf206d9e', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '1d01739ff2be5c9ad4120b4bdfb603a2413b5357', class: "icon" }))));
38
38
  }
39
39
  static get is() { return "wm-navigation-hamburger"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class NavigationItem {
6
6
  this.active = undefined;
7
7
  }
8
8
  render() {
9
- return (h(Host, { role: "listitem" }, h("a", { class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { class: "icon", "aria-hidden": "true" }, h("slot", null)), h("div", { class: "text" }, this.text))));
9
+ return (h(Host, { key: '92f203aed8e82e5681736df005dd89cecf37baeb', role: "listitem" }, h("a", { key: '5998e08614626a7f7b940cdc42226e2c0a895553', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '9b7b7a575b9508bba755ae62a9f919b4b1c93f4c', class: "icon", "aria-hidden": "true" }, h("slot", { key: '94493be0b9c48e1282878743e99a9ae38f5dfb34' })), h("div", { key: '9e826c3daeba300f62e791546fe03292b7e61ca1', class: "text" }, this.text))));
10
10
  }
11
11
  static get is() { return "wm-navigation-item"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -96,9 +96,9 @@ export class Navigation {
96
96
  } }));
97
97
  }
98
98
  render() {
99
- return (h(Host, { role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { class: "tray" }, h("div", { class: "toggle-wrapper" }, h("wm-button", { ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
99
+ return (h(Host, { key: '4ad0cbfdffb5171218e1b09a3a83af4f90912839', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '4bf650ddd5be7354c3be9eed4a04138a6cbd076b', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '21a63a121a517601452be1bce149f5d488c23b61', class: "tray" }, h("div", { key: 'c29ea888eb2c3dc72924805da887fd781435006a', class: "toggle-wrapper" }, h("wm-button", { key: '8bb53efa1b73127a54b1e8305e237c0f301b7c48', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
100
100
  this.open = !this.open;
101
- } })), h("ul", { class: "navlist" }, h("slot", null))), this.isCollapsible && (h("div", { class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
101
+ } })), h("ul", { key: '43efec2247f9f31b28255d4722521bb8d4427c55', class: "navlist" }, h("slot", { key: '577800ecc50dacf91802566bfe3a0cae9ce01a5b' }))), this.isCollapsible && (h("div", { key: '97b1005fe4795c309cd18a255e575b2218fdfffe', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
102
102
  }
103
103
  static get is() { return "wm-navigation"; }
104
104
  static get encapsulation() { return "shadow"; }
@@ -9,7 +9,7 @@ export class PrivNavigatorButton {
9
9
  }
10
10
  render() {
11
11
  const { handleClick, altText } = this;
12
- return (h("button", { "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
12
+ return (h("button", { key: 'cda82c28e335018746ecbee5bc8bc1b71e61a598', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
13
13
  }
14
14
  static get is() { return "priv-navigator-button"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -16,7 +16,7 @@ export class PrivNavigatorItem {
16
16
  render() {
17
17
  const selectedClass = this.selected ? "selected" : "";
18
18
  const focusedClass = this.focused ? "focused" : "";
19
- return (h("div", { class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", null)));
19
+ return (h("div", { key: '45bc50a75d0316308b9898a95bbb96fe153fcffe', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: '7a9db30be9b3ccea16ab5592915463a8ed49a32c' })));
20
20
  }
21
21
  static get is() { return "priv-navigator-item"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -100,7 +100,7 @@ export class PrivNavigatorItem {
100
100
  "text": ""
101
101
  },
102
102
  "complexType": {
103
- "original": "{\n navItem: HTMLPrivNavigatorItemElement;\n key: string;\n }",
103
+ "original": "{\r\n navItem: HTMLPrivNavigatorItemElement;\r\n key: string;\r\n }",
104
104
  "resolved": "{ navItem: HTMLPrivNavigatorItemElement; key: string; }",
105
105
  "references": {
106
106
  "HTMLPrivNavigatorItemElement": {
@@ -151,7 +151,7 @@ export class Pagination {
151
151
  render() {
152
152
  return (
153
153
  // do not render the component if there's only one page
154
- this.totalItems > this.itemsPerPage && (h("nav", { "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
154
+ this.totalItems > this.itemsPerPage && (h("nav", { key: '480072658590ef2679f4fc92f08c5f68a8e700b3', "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: '7c8dd7e30d6b4d4ea1ff3675a19deb5dc019b7a5', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
155
155
  }
156
156
  static get is() { return "wm-pagination"; }
157
157
  static get encapsulation() { return "shadow"; }
@@ -166,10 +166,10 @@ export class Search {
166
166
  * End search and find render helpers
167
167
  */
168
168
  render() {
169
- return (h(Host, null, h("div", { id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
169
+ return (h(Host, { key: 'd5a43f8f31d5905f64db7ab92465bd79a38fac2a' }, h("div", { key: 'a775c1f1d3c0fec2661b74d82eb32f9919e1d8c8', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '8102a634e8063cd736acd7d821f5807270b92cd3', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
170
170
  id: "search.typeToFilterResults",
171
171
  defaultMessage: "Type to filter the results",
172
- })}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
172
+ })}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '60a6363bc26e1f3f029aa37ebd84034ba42d2045', class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '8c8608879655285e7c99246f38f08a7c974c47d6', id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
173
173
  }
174
174
  static get is() { return "wm-search"; }
175
175
  static get encapsulation() { return "shadow"; }
@@ -380,8 +380,9 @@ export class Search {
380
380
  "complexType": {
381
381
  "signature": "(value: string) => Promise<void>",
382
382
  "parameters": [{
383
- "tags": [],
384
- "text": ""
383
+ "name": "value",
384
+ "type": "string",
385
+ "docs": ""
385
386
  }],
386
387
  "references": {
387
388
  "Promise": {
@@ -150,11 +150,11 @@ export class Snackbar {
150
150
  }, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link)))), h("button", { id: `close-button-${notification.id}`, "aria-label": "Close this notification", class: "closesnack", tabindex: notification.link ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() })), h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
151
151
  }
152
152
  render() {
153
- return (h(Host, null, h("div", { ref: (el) => (this.snackAreaEl = el), class: {
153
+ return (h(Host, { key: 'dbcda39e1aca0ea8d69ef62a73920b2dddc1021b' }, h("div", { key: '1c2d2ef390bf95546dd14ff3156b913e0a0600d0', ref: (el) => (this.snackAreaEl = el), class: {
154
154
  "list-wrapper": true,
155
155
  "user-is-tabbing": this.isTabbing,
156
156
  empty: this.parsedNotifications.length == 0,
157
- } }, this.renderSnackbars()), h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
157
+ } }, this.renderSnackbars()), h("div", { key: 'e8fd9b90fc6959f6395b93cfaf9a73163f19774f', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
158
158
  }
159
159
  static get is() { return "wm-snackbar"; }
160
160
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class TabItem {
40
40
  "background-size": `calc(100% - ${bkgSize}${units}) 3px`,
41
41
  };
42
42
  }
43
- return (h(Host, { role: "presentation" }, h("li", { class: "tab-item", role: "presentation" }, h("a", { class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", null)))));
43
+ return (h(Host, { key: '83d102ead6be366a5df7db1b09676663d10223e2', role: "presentation" }, h("li", { key: '5dcaaa390f1b89053846e8f04f2d39fe7aea3ef1', class: "tab-item", role: "presentation" }, h("a", { key: '3fd649665a1e2c21bd9976391f00e720bf80143b', class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", { key: '0c445bd57df211dda6d8bdbb14f6ad9d9a93562c' })))));
44
44
  }
45
45
  static get is() { return "wm-tab-item"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -155,7 +155,7 @@ export class TabList {
155
155
  } }, t.textContent)));
156
156
  }
157
157
  render() {
158
- return h(Host, { class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
158
+ return h(Host, { key: 'da8982b1541bc45f8ef76f4815984edd8f19c9c5', class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
159
159
  }
160
160
  static get is() { return "wm-tab-list"; }
161
161
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ export class TabPanel {
12
12
  this.tabPanelLoaded.emit({ tabId: this.tabId });
13
13
  }
14
14
  render() {
15
- return h(Host, { role: "tabpanel", class: { "tab-hidden": !this.active } });
15
+ return h(Host, { key: 'd1c7bf358d9184f22e47b718a69fa1ec7a052e22', role: "tabpanel", class: { "tab-hidden": !this.active } });
16
16
  }
17
17
  static get is() { return "wm-tab-panel"; }
18
18
  static get originalStyleUrls() {
@@ -858,12 +858,12 @@ export class TagInput {
858
858
  }
859
859
  }
860
860
  render() {
861
- return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { class: "upper-row" }, h("div", { class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
861
+ return (h("div", { key: '51341c91480a0bd8775351040958472ca3b8e6f4', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'd5093793857d3acaa0804a04ad4700fbf7f7fb86', class: "label-wrapper" }, h("label", { key: 'c93f0345c518adb313f8f5327059075023184c56', class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { key: '9f869a28e6527a81de52187dc8c08c27dba9963b', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '181fb132ea36b1d4110350d33c4a2f4d05af068c', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '77467753c43ff806af4ac24471fafe4f7eef8e9d', class: "upper-row" }, h("div", { key: '59f80d6730140201dc2f3e9d4f314536fa63cd1e', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: 'ee08bc08d3758af611737d1a161d7966d10c5dae', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
862
862
  this.focusedTagIndex = undefined;
863
863
  this.handleBlur(ev);
864
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
864
+ }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '6b5e4f09d0b3de33a0c049cc0f1331c0d3c2a680', id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
865
865
  this.handleBlur(ev);
866
- }, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { id: "info", class: "info-text" }, this.info)), h("div", { id: "error" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
866
+ }, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '5fec93cbea741cab80bdad46097f3b2ed7538d8d', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: 'cc343e8be2c9ad89b7187b4fef79f18c6ac30cda', id: "info", class: "info-text" }, this.info)), h("div", { key: '0079bb76abad9795adf09ca24d5a51e001506ea1', id: "error" }, this.errorMessage), h("div", { key: 'a1d74cef536f2431ef9c3e3c1ae127f6b45faf23', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
867
867
  }
868
868
  static get is() { return "wm-tag-input"; }
869
869
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class Textarea {
65
65
  this.announcement = message;
66
66
  }
67
67
  render() {
68
- return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: "inner-wrapper" }, h("div", { class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
68
+ return (h("div", { key: 'da640972074f4fc3559d5f96d38b67ca6e318344', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'e94d0f36b0b3227b373ed28249836de792c1eab6', class: "label-wrapper" }, h("label", { key: 'cb23b31a548b758fedf30d48921ea5a9dc6d448a', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: '7ff30e1c193960fda58d12d7dd86d1d24c410a29', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: '497e378c7f6276a8bf19055385caac60689bc0d7', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '9a8ff59bb09e83999547ed1f4f2206eef4050a05', class: "inner-wrapper" }, h("div", { key: '6359e4f7919a6414b49d146b98cedc5bcdc44e4d', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '411f5b3abbd1a0dcde085b5b18b0738ea7f0929f', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: 'aa2ce03ed1a2ff9731b898c7bc1e71741f3bd780', id: "info", class: "info" }, this.info)), h("div", { key: 'd90b9eca7192178d8267ddaa6ff4d7879d15f349', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'f226ad7a61e0f7cfef69f98bcc1b03ee75fa06c8', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
69
69
  }
70
70
  static get is() { return "wm-textarea"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -275,13 +275,13 @@ export class Timepicker {
275
275
  return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
276
276
  }
277
277
  render() {
278
- return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*"))))), h("div", null, h("div", { class: "inner-wrapper" }, h("input", { id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
278
+ return (h(Host, { key: '11b0fa37194a8dca577356f3e72ec3fc6f0de547', onBlur: () => this.close(false) }, h("div", { key: 'c85ae469c1b7fe7c3ff468b324a6c3d1a00a4e7d', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '3de175cb20e3c901d31a326509e5d274777477d7', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '7c91c9e9ec8bc451bf532299ddd684adb7f72d72', id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { key: '62f5a8c7da6adf689ebb82f018377f1028c32655', class: "required", "aria-hidden": "true" }, "*"))))), h("div", { key: 'bba20dccd397fa27041e75408f8729009ccac1e3' }, h("div", { key: '1f6817a1824d28853e18318510cbf1ba728461dc', class: "inner-wrapper" }, h("input", { key: '61a50f796ac97435ed47f1d0aeca0d21dc524cf5', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: 'eae83dd641e52e2cc830d64d80e97a152702bb23', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
279
279
  // This addresses an issue in Safari, where clicking buttons does not focus them
280
280
  // if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
281
281
  onMouseDown: (ev) => {
282
282
  ev.preventDefault();
283
283
  this.buttonEl.focus();
284
- } }, h("span", { class: "clock" })), h("ul", { class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { id: "error", class: "error" }, this.errorMessage)), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
284
+ } }, h("span", { key: '6d366b29839c557e11bbb0d1d8a342d7137fe833', class: "clock" })), h("ul", { key: '87ba66e6e7e04d84b9acdf078cdd5823c974b813', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '16cbeeb38724745408322a1beb4ea24887111671', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '845915faa2094776443e6f5930f910a29689d0b1', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
285
285
  }
286
286
  static get is() { return "wm-timepicker"; }
287
287
  static get encapsulation() { return "shadow"; }
@@ -468,8 +468,9 @@ export class Timepicker {
468
468
  "complexType": {
469
469
  "signature": "(input: string) => Promise<boolean>",
470
470
  "parameters": [{
471
- "tags": [],
472
- "text": ""
471
+ "name": "input",
472
+ "type": "string",
473
+ "docs": ""
473
474
  }],
474
475
  "references": {
475
476
  "Promise": {
@@ -488,11 +489,13 @@ export class Timepicker {
488
489
  "complexType": {
489
490
  "signature": "(format: \"12\" | \"24\", time: TimeFormat12 | TimeFormat24) => Promise<string>",
490
491
  "parameters": [{
491
- "tags": [],
492
- "text": ""
492
+ "name": "format",
493
+ "type": "\"12\" | \"24\"",
494
+ "docs": ""
493
495
  }, {
494
- "tags": [],
495
- "text": ""
496
+ "name": "time",
497
+ "type": "string",
498
+ "docs": ""
496
499
  }],
497
500
  "references": {
498
501
  "Promise": {
@@ -97,9 +97,9 @@ export class Toggletip {
97
97
  }
98
98
  }
99
99
  render() {
100
- return (h(Host, { class: `size-${this.targetSize}` }, h("button", { class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
100
+ return (h(Host, { key: 'b8b9f19c7c86b2bd241eb38720dc35d556f12d19', class: `size-${this.targetSize}` }, h("button", { key: 'cc509ec78b94f3a9d1652283a6251d312074e9f7', class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
101
101
  // In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
102
- onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
102
+ onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { key: '0a76a514a36d6191ba5155a1edf612472921f4b1', ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { key: '326b3966acf74bcced38af38c9f74bfa78753b4e', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
103
103
  }
104
104
  static get is() { return "wm-toggletip"; }
105
105
  static get encapsulation() { return "shadow"; }
@@ -692,7 +692,7 @@
692
692
  :host {
693
693
  display: block;
694
694
  position: relative;
695
- max-width: 1140px;
695
+ max-inline-size: min(1140px, 100%);
696
696
  }
697
697
  :host[dir=RTL] .mdi {
698
698
  margin-left: 0.3125rem;
@@ -206,9 +206,9 @@ export class Uploader {
206
206
  return (h("div", { class: `wrapper ${this.errorMessage ? "invalid" : ""}` }, h("div", { id: "label", class: `label` }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))));
207
207
  }
208
208
  render() {
209
- return (h(Host, null, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
209
+ return (h(Host, { key: '46d82b5386359d17221f7b7376dbbafcdd245543' }, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: 'b7f938f7da392db21554228ab4f104a2116ecb44', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
210
210
  ,
211
- "aria-atomic": "true" }), h("div", { ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
211
+ "aria-atomic": "true" }), h("div", { key: '1b0a6f5340262caed883ac70a38f76e80f6c0d5c', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
212
212
  }
213
213
  static get is() { return "wm-uploader"; }
214
214
  static get encapsulation() { return "shadow"; }
@@ -1,43 +1,43 @@
1
- /* This script is useful when we translate internally, so we know which keys to translate.
2
- * Currently Martin Maugeais translates to French and Kristian Manrique to Spanish.
3
- * This script should be run with `npm run missing`. It may fail otherwise, as fs paths are relative to project root.
4
- */
5
-
6
- const fs = require("fs");
7
- const en = require("./en.json");
8
- const fr = require("./fr.json");
9
- const es = require("./es.json");
10
-
11
- const keys = Object.keys(en);
12
-
13
- let missingFR = {};
14
- let missingES = {};
15
-
16
- keys.map((key) => {
17
- if (!fr[key]) {
18
- missingFR[key] = en[key];
19
- }
20
-
21
- if (!es[key]) {
22
- missingES[key] = en[key];
23
- }
24
- });
25
-
26
- const dataFR = JSON.stringify(missingFR, null, 2);
27
- const dataES = JSON.stringify(missingES, null, 2);
28
-
29
- const totalMissingFR = Object.entries(missingFR).length;
30
- if (totalMissingFR > 0) {
31
- fs.writeFile("src/lang/missingTranslationsFR.json", dataFR, (err) => {
32
- !!err && console.log(err);
33
- });
34
- console.log(`${totalMissingFR} french translations missing. See src/lang/missingTranslationsFR.json`);
35
- }
36
-
37
- const totalMissingES = Object.entries(missingES).length;
38
- if (totalMissingES > 0) {
39
- fs.writeFile("src/lang/missingTranslationsES.json", dataES, (err) => {
40
- !!err && console.log(err);
41
- });
42
- console.log(`${totalMissingES} spanish translations missing. See src/lang/missingTranslationsES.json`);
43
- }
1
+ /* This script is useful when we translate internally, so we know which keys to translate.
2
+ * Currently Martin Maugeais translates to French and Kristian Manrique to Spanish.
3
+ * This script should be run with `npm run missing`. It may fail otherwise, as fs paths are relative to project root.
4
+ */
5
+
6
+ const fs = require("fs");
7
+ const en = require("./en.json");
8
+ const fr = require("./fr.json");
9
+ const es = require("./es.json");
10
+
11
+ const keys = Object.keys(en);
12
+
13
+ let missingFR = {};
14
+ let missingES = {};
15
+
16
+ keys.map((key) => {
17
+ if (!fr[key]) {
18
+ missingFR[key] = en[key];
19
+ }
20
+
21
+ if (!es[key]) {
22
+ missingES[key] = en[key];
23
+ }
24
+ });
25
+
26
+ const dataFR = JSON.stringify(missingFR, null, 2);
27
+ const dataES = JSON.stringify(missingES, null, 2);
28
+
29
+ const totalMissingFR = Object.entries(missingFR).length;
30
+ if (totalMissingFR > 0) {
31
+ fs.writeFile("src/lang/missingTranslationsFR.json", dataFR, (err) => {
32
+ !!err && console.log(err);
33
+ });
34
+ console.log(`${totalMissingFR} french translations missing. See src/lang/missingTranslationsFR.json`);
35
+ }
36
+
37
+ const totalMissingES = Object.entries(missingES).length;
38
+ if (totalMissingES > 0) {
39
+ fs.writeFile("src/lang/missingTranslationsES.json", dataES, (err) => {
40
+ !!err && console.log(err);
41
+ });
42
+ console.log(`${totalMissingES} spanish translations missing. See src/lang/missingTranslationsES.json`);
43
+ }
@@ -1,93 +1,93 @@
1
- const fs = require("fs");
2
- const en = require("./en.json");
3
-
4
- const pig = {};
5
- Object.keys(en).map((k) => {
6
- let string = en[k].defaultMessage;
7
- const interpStart = string.indexOf("{");
8
- const interpEnd = string.lastIndexOf("}") + 1;
9
-
10
- // if there is an interpolation pattern
11
- if (interpStart >= 0 && interpEnd > 2) {
12
- let translInterp = translateSentence(string.slice(0, interpStart));
13
-
14
- const interp = string.slice(interpStart, interpEnd);
15
- // what's inside the braces shouldn't be translated
16
- // unless it's in nested translated, and so on
17
- // we can set flags to cut the string into pieces
18
- // which should or should not be translated
19
- const flags = [];
20
- for (x = 0; x < interp.length; x++) {
21
- if (interp[x] == "{") {
22
- flags.push(x);
23
- } else if (interp[x] == "}") {
24
- flags.push(x);
25
- }
26
- }
27
-
28
- splits = flags.map((_, i) => {
29
- if (i < flags.length) return interp.slice(flags[i], flags[i + 1]);
30
- });
31
-
32
- splits.map((split, i) => {
33
- translInterp += i % 2 ? translateSentence(split) : split; // only translate even ones (the odd ones are params)
34
- });
35
-
36
- translInterp += translateSentence(string.slice(interpEnd, string.length));
37
-
38
- const dm = { defaultMessage: translInterp };
39
- pig[k] = dm;
40
- } else {
41
- const dm = { defaultMessage: translateSentence(string) };
42
- pig[k] = dm;
43
- }
44
- });
45
- data = JSON.stringify(pig, null, 2);
46
-
47
- fs.writeFile("src/lang/pig.json", data, (err) => {
48
- !!err && console.log(err);
49
- });
50
-
51
- function pigLatinize(word) {
52
- const isVowel = (char) => ["a", "e", "i", "o", "u"].includes(char.toLowerCase());
53
- const isLetter = (char) => RegExp(/^\p{L}/, "u").test(char);
54
-
55
- const firstLetter = Array.from(word).reduce((l, char, i) => (isLetter(char) && l < 0 ? i : l), -1);
56
-
57
- const lastLetter = Array.from(word).reduce((l, char, i) => (isLetter(char) ? i : l), -1);
58
-
59
- if (firstLetter == -1 && lastLetter == -1) return word; // only special chars, don't translate
60
-
61
- const specialKBefore = word.slice(0, firstLetter) || "";
62
- const specialKAfter = word.slice(lastLetter + 1, word.length + 1) || "";
63
- word = word.slice(firstLetter, lastLetter + 1) || "";
64
-
65
- if (word) {
66
- if (isVowel(word[0])) {
67
- word += "yay";
68
- } else {
69
- const firstVowel = Array.from(word).reduce((firstV, char, i) => {
70
- return isVowel(char) && firstV < 0 ? i : firstV;
71
- }, -1);
72
- if (word[0] == word[0].toUpperCase()) {
73
- word =
74
- word.substring(firstVowel, firstVowel + 1).toUpperCase() +
75
- word.substring(firstVowel + 1, word.length) +
76
- word.substring(0, firstVowel).toLowerCase() +
77
- "ay";
78
- } else {
79
- word = word.substring(firstVowel, word.length) + word.substring(0, firstVowel) + "ay";
80
- }
81
- }
82
- }
83
- return specialKBefore + word + specialKAfter;
84
- }
85
-
86
- function translateSentence(string) {
87
- let words = string.split(" ");
88
- return words
89
- .reduce((acc, word) => {
90
- return acc + " " + pigLatinize(word);
91
- }, "")
92
- .substring(1); // rm leading space
93
- }
1
+ const fs = require("fs");
2
+ const en = require("./en.json");
3
+
4
+ const pig = {};
5
+ Object.keys(en).map((k) => {
6
+ let string = en[k].defaultMessage;
7
+ const interpStart = string.indexOf("{");
8
+ const interpEnd = string.lastIndexOf("}") + 1;
9
+
10
+ // if there is an interpolation pattern
11
+ if (interpStart >= 0 && interpEnd > 2) {
12
+ let translInterp = translateSentence(string.slice(0, interpStart));
13
+
14
+ const interp = string.slice(interpStart, interpEnd);
15
+ // what's inside the braces shouldn't be translated
16
+ // unless it's in nested translated, and so on
17
+ // we can set flags to cut the string into pieces
18
+ // which should or should not be translated
19
+ const flags = [];
20
+ for (x = 0; x < interp.length; x++) {
21
+ if (interp[x] == "{") {
22
+ flags.push(x);
23
+ } else if (interp[x] == "}") {
24
+ flags.push(x);
25
+ }
26
+ }
27
+
28
+ splits = flags.map((_, i) => {
29
+ if (i < flags.length) return interp.slice(flags[i], flags[i + 1]);
30
+ });
31
+
32
+ splits.map((split, i) => {
33
+ translInterp += i % 2 ? translateSentence(split) : split; // only translate even ones (the odd ones are params)
34
+ });
35
+
36
+ translInterp += translateSentence(string.slice(interpEnd, string.length));
37
+
38
+ const dm = { defaultMessage: translInterp };
39
+ pig[k] = dm;
40
+ } else {
41
+ const dm = { defaultMessage: translateSentence(string) };
42
+ pig[k] = dm;
43
+ }
44
+ });
45
+ data = JSON.stringify(pig, null, 2);
46
+
47
+ fs.writeFile("src/lang/pig.json", data, (err) => {
48
+ !!err && console.log(err);
49
+ });
50
+
51
+ function pigLatinize(word) {
52
+ const isVowel = (char) => ["a", "e", "i", "o", "u"].includes(char.toLowerCase());
53
+ const isLetter = (char) => RegExp(/^\p{L}/, "u").test(char);
54
+
55
+ const firstLetter = Array.from(word).reduce((l, char, i) => (isLetter(char) && l < 0 ? i : l), -1);
56
+
57
+ const lastLetter = Array.from(word).reduce((l, char, i) => (isLetter(char) ? i : l), -1);
58
+
59
+ if (firstLetter == -1 && lastLetter == -1) return word; // only special chars, don't translate
60
+
61
+ const specialKBefore = word.slice(0, firstLetter) || "";
62
+ const specialKAfter = word.slice(lastLetter + 1, word.length + 1) || "";
63
+ word = word.slice(firstLetter, lastLetter + 1) || "";
64
+
65
+ if (word) {
66
+ if (isVowel(word[0])) {
67
+ word += "yay";
68
+ } else {
69
+ const firstVowel = Array.from(word).reduce((firstV, char, i) => {
70
+ return isVowel(char) && firstV < 0 ? i : firstV;
71
+ }, -1);
72
+ if (word[0] == word[0].toUpperCase()) {
73
+ word =
74
+ word.substring(firstVowel, firstVowel + 1).toUpperCase() +
75
+ word.substring(firstVowel + 1, word.length) +
76
+ word.substring(0, firstVowel).toLowerCase() +
77
+ "ay";
78
+ } else {
79
+ word = word.substring(firstVowel, word.length) + word.substring(0, firstVowel) + "ay";
80
+ }
81
+ }
82
+ }
83
+ return specialKBefore + word + specialKAfter;
84
+ }
85
+
86
+ function translateSentence(string) {
87
+ let words = string.split(" ");
88
+ return words
89
+ .reduce((acc, word) => {
90
+ return acc + " " + pigLatinize(word);
91
+ }, "")
92
+ .substring(1); // rm leading space
93
+ }