@watermarkinsights/ripple 5.12.0-9 → 5.14.0-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 (430) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{esm/chartFunctions-1478f4db.js → components/chartFunctions.js} +31 -11
  3. package/dist/components/functions.js +17465 -0
  4. package/dist/components/index.d.ts +33 -0
  5. package/dist/{collection/global/global.js → components/index.js} +52 -2
  6. package/dist/{collection/global → components}/interfaces.js +6 -4
  7. package/dist/{esm/intl-6426ba51.js → components/intl.js} +104 -2
  8. package/dist/components/priv-calendar.d.ts +11 -0
  9. package/dist/components/priv-calendar.js +6 -0
  10. package/dist/{esm/priv-calendar.entry.js → components/priv-calendar2.js} +38 -16
  11. package/dist/components/priv-chart-popover.d.ts +11 -0
  12. package/dist/components/priv-chart-popover.js +6 -0
  13. package/dist/{esm/priv-chart-popover.entry.js → components/priv-chart-popover2.js} +30 -12
  14. package/dist/components/priv-navigator-button.d.ts +11 -0
  15. package/dist/components/priv-navigator-button.js +6 -0
  16. package/dist/{esm/priv-navigator-button.entry.js → components/priv-navigator-button2.js} +26 -9
  17. package/dist/components/priv-navigator-item.d.ts +11 -0
  18. package/dist/components/priv-navigator-item.js +6 -0
  19. package/dist/{esm/priv-navigator-item.entry.js → components/priv-navigator-item2.js} +27 -9
  20. package/dist/components/priv-option-list.d.ts +11 -0
  21. package/dist/components/priv-option-list.js +6 -0
  22. package/dist/{esm/priv-option-list.entry.js → components/priv-option-list2.js} +63 -68
  23. package/dist/components/wm-action-menu.d.ts +11 -0
  24. package/dist/components/wm-action-menu.js +6 -0
  25. package/dist/{cjs/wm-pagination.cjs.entry.js → components/wm-action-menu2.js} +216 -161
  26. package/dist/components/wm-button.d.ts +11 -0
  27. package/dist/components/wm-button.js +6 -0
  28. package/dist/{esm/wm-button.entry.js → components/wm-button2.js} +48 -20
  29. package/dist/components/wm-chart-slice.d.ts +11 -0
  30. package/dist/components/wm-chart-slice.js +41 -0
  31. package/dist/components/wm-chart.d.ts +11 -0
  32. package/dist/{esm/wm-chart.entry.js → components/wm-chart.js} +70 -25
  33. package/dist/components/wm-date-range.d.ts +11 -0
  34. package/dist/{esm/wm-date-range.entry.js → components/wm-date-range.js} +79 -26
  35. package/dist/components/wm-datepicker.d.ts +11 -0
  36. package/dist/{esm/wm-datepicker.entry.js → components/wm-datepicker.js} +53 -16
  37. package/dist/components/wm-file-list.d.ts +11 -0
  38. package/dist/{esm/wm-file-list.entry.js → components/wm-file-list.js} +28 -9
  39. package/dist/components/wm-file.d.ts +11 -0
  40. package/dist/{esm/wm-file.entry.js → components/wm-file.js} +58 -20
  41. package/dist/components/wm-input.d.ts +11 -0
  42. package/dist/{esm/wm-input.entry.js → components/wm-input.js} +53 -22
  43. package/dist/components/wm-line-chart.d.ts +11 -0
  44. package/dist/{esm/wm-line-chart.entry.js → components/wm-line-chart.js} +77 -36
  45. package/dist/components/wm-menuitem.d.ts +11 -0
  46. package/dist/components/wm-menuitem.js +6 -0
  47. package/dist/{cjs/wm-optgroup.cjs.entry.js → components/wm-menuitem2.js} +130 -58
  48. package/dist/components/wm-modal-footer.d.ts +11 -0
  49. package/dist/components/wm-modal-footer.js +73 -0
  50. package/dist/components/wm-modal-header.d.ts +11 -0
  51. package/dist/components/wm-modal-header.js +61 -0
  52. package/dist/components/wm-modal-pss-footer.d.ts +11 -0
  53. package/dist/{cjs/priv-chart-popover.cjs.entry.js → components/wm-modal-pss-footer.js} +58 -129
  54. package/dist/components/wm-modal-pss-header.d.ts +11 -0
  55. package/dist/components/wm-modal-pss-header.js +64 -0
  56. package/dist/components/wm-modal-pss.d.ts +11 -0
  57. package/dist/{cjs/wm-textarea.cjs.entry.js → components/wm-modal-pss.js} +141 -67
  58. package/dist/components/wm-modal.d.ts +11 -0
  59. package/dist/{cjs/wm-input.cjs.entry.js → components/wm-modal.js} +140 -104
  60. package/dist/components/wm-navigation-hamburger.d.ts +11 -0
  61. package/dist/{esm-es5/priv-chart-popover.entry.js → components/wm-navigation-hamburger.js} +70 -1
  62. package/dist/components/wm-navigation-item.d.ts +11 -0
  63. package/dist/{ripple/p-713ea307.entry.js → components/wm-navigation-item.js} +40 -1
  64. package/dist/components/wm-navigation.d.ts +11 -0
  65. package/dist/{ripple/p-165b5d3d.system.entry.js → components/wm-navigation.js} +144 -1
  66. package/dist/components/wm-navigator.d.ts +11 -0
  67. package/dist/{esm/wm-navigator.entry.js → components/wm-navigator.js} +106 -19
  68. package/dist/components/wm-nested-select.d.ts +11 -0
  69. package/dist/{esm/wm-nested-select.entry.js → components/wm-nested-select.js} +63 -70
  70. package/dist/components/wm-optgroup.d.ts +11 -0
  71. package/dist/{esm/wm-optgroup.entry.js → components/wm-optgroup.js} +48 -11
  72. package/dist/components/wm-option.d.ts +11 -0
  73. package/dist/components/wm-option.js +6 -0
  74. package/dist/{cjs/wm-search.cjs.entry.js → components/wm-option2.js} +168 -166
  75. package/dist/components/wm-pagination.d.ts +11 -0
  76. package/dist/{esm/wm-pagination.entry.js → components/wm-pagination.js} +105 -26
  77. package/dist/components/wm-progress-indicator.d.ts +11 -0
  78. package/dist/{esm/wm-progress-indicator_3.entry.js → components/wm-progress-indicator.js} +51 -105
  79. package/dist/components/wm-progress-monitor.d.ts +11 -0
  80. package/dist/{ripple/p-d530c703.entry.js → components/wm-progress-monitor.js} +93 -1
  81. package/dist/components/wm-progress-slice.d.ts +11 -0
  82. package/dist/components/wm-progress-slice.js +37 -0
  83. package/dist/components/wm-search.d.ts +11 -0
  84. package/dist/{esm/wm-search.entry.js → components/wm-search.js} +74 -14
  85. package/dist/components/wm-select.d.ts +11 -0
  86. package/dist/components/wm-select.js +6 -0
  87. package/dist/components/wm-select2.js +294 -0
  88. package/dist/components/wm-snackbar.d.ts +11 -0
  89. package/dist/{esm/wm-snackbar.entry.js → components/wm-snackbar.js} +46 -17
  90. package/dist/components/wm-tab-item.d.ts +11 -0
  91. package/dist/components/wm-tab-item.js +85 -0
  92. package/dist/components/wm-tab-list.d.ts +11 -0
  93. package/dist/{cjs/wm-uploader.cjs.entry.js → components/wm-tab-list.js} +174 -282
  94. package/dist/components/wm-tab-panel.d.ts +11 -0
  95. package/dist/{cjs/wm-file-list.cjs.entry.js → components/wm-tab-panel.js} +46 -17
  96. package/dist/components/wm-tag-input.d.ts +11 -0
  97. package/dist/{esm/wm-tag-input.entry.js → components/wm-tag-input.js} +86 -49
  98. package/dist/components/wm-tag-option.d.ts +11 -0
  99. package/dist/components/wm-tag-option.js +63 -0
  100. package/dist/components/wm-textarea.d.ts +11 -0
  101. package/dist/{esm/wm-textarea.entry.js → components/wm-textarea.js} +46 -17
  102. package/dist/components/wm-timepicker.d.ts +11 -0
  103. package/dist/{esm/wm-timepicker.entry.js → components/wm-timepicker.js} +49 -19
  104. package/dist/components/wm-toggletip.d.ts +11 -0
  105. package/dist/{esm/wm-toggletip.entry.js → components/wm-toggletip.js} +37 -16
  106. package/dist/components/wm-uploader.d.ts +11 -0
  107. package/dist/{esm/wm-uploader.entry.js → components/wm-uploader.js} +50 -23
  108. package/dist/components/wm-wrapper.d.ts +11 -0
  109. package/dist/components/wm-wrapper.js +34 -0
  110. package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +0 -6
  111. package/dist/types/components/wm-pagination/wm-pagination.d.ts +6 -0
  112. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +1 -0
  113. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +1 -0
  114. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +2 -1
  115. package/dist/types/global/intl.d.ts +22 -0
  116. package/dist/types/stencil-public-runtime.d.ts +28 -0
  117. package/package.json +5 -9
  118. package/dist/cjs/app-globals-b8352f28.js +0 -92
  119. package/dist/cjs/chartFunctions-7314b414.js +0 -712
  120. package/dist/cjs/functions-5ac8a62f.js +0 -8462
  121. package/dist/cjs/index-788526f5.js +0 -1859
  122. package/dist/cjs/index.cjs.js +0 -2
  123. package/dist/cjs/interfaces-85d78ae9.js +0 -37
  124. package/dist/cjs/intl-07aaf53c.js +0 -180
  125. package/dist/cjs/loader.cjs.js +0 -15
  126. package/dist/cjs/priv-calendar.cjs.entry.js +0 -574
  127. package/dist/cjs/priv-navigator-button.cjs.entry.js +0 -29
  128. package/dist/cjs/priv-navigator-item.cjs.entry.js +0 -35
  129. package/dist/cjs/priv-option-list.cjs.entry.js +0 -430
  130. package/dist/cjs/ripple.cjs.js +0 -25
  131. package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -335
  132. package/dist/cjs/wm-button.cjs.entry.js +0 -207
  133. package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -27
  134. package/dist/cjs/wm-chart.cjs.entry.js +0 -156
  135. package/dist/cjs/wm-date-range.cjs.entry.js +0 -473
  136. package/dist/cjs/wm-datepicker.cjs.entry.js +0 -254
  137. package/dist/cjs/wm-file.cjs.entry.js +0 -194
  138. package/dist/cjs/wm-line-chart.cjs.entry.js +0 -460
  139. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +0 -217
  140. package/dist/cjs/wm-modal_3.cjs.entry.js +0 -215
  141. package/dist/cjs/wm-navigation_3.cjs.entry.js +0 -188
  142. package/dist/cjs/wm-navigator.cjs.entry.js +0 -327
  143. package/dist/cjs/wm-nested-select.cjs.entry.js +0 -354
  144. package/dist/cjs/wm-option_2.cjs.entry.js +0 -439
  145. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +0 -204
  146. package/dist/cjs/wm-snackbar.cjs.entry.js +0 -177
  147. package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -258
  148. package/dist/cjs/wm-tag-input.cjs.entry.js +0 -886
  149. package/dist/cjs/wm-tag-option.cjs.entry.js +0 -43
  150. package/dist/cjs/wm-timepicker.cjs.entry.js +0 -307
  151. package/dist/cjs/wm-toggletip.cjs.entry.js +0 -183
  152. package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
  153. package/dist/collection/collection-manifest.json +0 -191
  154. package/dist/collection/components/charts/chartFunctions.js +0 -645
  155. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -908
  156. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +0 -257
  157. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +0 -125
  158. package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -1274
  159. package/dist/collection/components/charts/wm-chart/wm-chart.js +0 -415
  160. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -1067
  161. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +0 -722
  162. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -1274
  163. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +0 -264
  164. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -909
  165. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +0 -151
  166. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +0 -121
  167. package/dist/collection/components/datepickers/datepicker.css +0 -1043
  168. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -1279
  169. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +0 -840
  170. package/dist/collection/components/datepickers/wm-date-range.js +0 -838
  171. package/dist/collection/components/datepickers/wm-datepicker.js +0 -524
  172. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -918
  173. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +0 -817
  174. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -1181
  175. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +0 -659
  176. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -830
  177. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +0 -258
  178. package/dist/collection/components/selects/wm-option/wm-option.css +0 -931
  179. package/dist/collection/components/selects/wm-option/wm-option.js +0 -530
  180. package/dist/collection/components/selects/wm-select/wm-select.css +0 -1104
  181. package/dist/collection/components/selects/wm-select/wm-select.js +0 -596
  182. package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -891
  183. package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -435
  184. package/dist/collection/components/wm-button/wm-button.css +0 -1261
  185. package/dist/collection/components/wm-button/wm-button.js +0 -489
  186. package/dist/collection/components/wm-file/wm-file.css +0 -927
  187. package/dist/collection/components/wm-file/wm-file.js +0 -412
  188. package/dist/collection/components/wm-file-list/wm-file-list.css +0 -820
  189. package/dist/collection/components/wm-file-list/wm-file-list.js +0 -45
  190. package/dist/collection/components/wm-input/wm-input.css +0 -992
  191. package/dist/collection/components/wm-input/wm-input.js +0 -471
  192. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -891
  193. package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -419
  194. package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -852
  195. package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -141
  196. package/dist/collection/components/wm-modal/wm-modal-header.css +0 -846
  197. package/dist/collection/components/wm-modal/wm-modal-header.js +0 -78
  198. package/dist/collection/components/wm-modal/wm-modal.css +0 -890
  199. package/dist/collection/components/wm-modal/wm-modal.js +0 -350
  200. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -852
  201. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +0 -138
  202. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -846
  203. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +0 -82
  204. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -927
  205. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +0 -362
  206. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -847
  207. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -119
  208. package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -856
  209. package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -98
  210. package/dist/collection/components/wm-navigation/wm-navigation.css +0 -898
  211. package/dist/collection/components/wm-navigation/wm-navigation.js +0 -190
  212. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -849
  213. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -86
  214. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -830
  215. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -124
  216. package/dist/collection/components/wm-navigator/wm-navigator.css +0 -903
  217. package/dist/collection/components/wm-navigator/wm-navigator.js +0 -496
  218. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -971
  219. package/dist/collection/components/wm-pagination/wm-pagination.js +0 -311
  220. package/dist/collection/components/wm-search/wm-search.css +0 -895
  221. package/dist/collection/components/wm-search/wm-search.js +0 -427
  222. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -1077
  223. package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -264
  224. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -868
  225. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -175
  226. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -840
  227. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -268
  228. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -825
  229. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -87
  230. package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -1275
  231. package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -1221
  232. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +0 -243
  233. package/dist/collection/components/wm-textarea/wm-textarea.css +0 -979
  234. package/dist/collection/components/wm-textarea/wm-textarea.js +0 -313
  235. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -1093
  236. package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -547
  237. package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1153
  238. package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -289
  239. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -1563
  240. package/dist/collection/components/wm-uploader/wm-uploader.js +0 -603
  241. package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -28
  242. package/dist/collection/dev/button.js +0 -0
  243. package/dist/collection/dev/chart-small.js +0 -56
  244. package/dist/collection/dev/chart.js +0 -18
  245. package/dist/collection/dev/date-range.js +0 -6
  246. package/dist/collection/dev/datepicker.js +0 -46
  247. package/dist/collection/dev/file-list.js +0 -16
  248. package/dist/collection/dev/file.js +0 -0
  249. package/dist/collection/dev/input.js +0 -6
  250. package/dist/collection/dev/line-chart.js +0 -0
  251. package/dist/collection/dev/modal.js +0 -48
  252. package/dist/collection/dev/navigation.js +0 -13
  253. package/dist/collection/dev/navigator.js +0 -34
  254. package/dist/collection/dev/nested-select.js +0 -36
  255. package/dist/collection/dev/pagination.js +0 -7
  256. package/dist/collection/dev/progress-monitor.js +0 -0
  257. package/dist/collection/dev/pss-modal.js +0 -8
  258. package/dist/collection/dev/scripts.js +0 -49
  259. package/dist/collection/dev/search.js +0 -72
  260. package/dist/collection/dev/select.js +0 -57
  261. package/dist/collection/dev/snackbar.js +0 -54
  262. package/dist/collection/dev/tabs.js +0 -44
  263. package/dist/collection/dev/tag-input.js +0 -32
  264. package/dist/collection/dev/textarea.js +0 -28
  265. package/dist/collection/dev/timepicker.js +0 -32
  266. package/dist/collection/dev/toggletip.js +0 -9
  267. package/dist/collection/dev/uploader.js +0 -139
  268. package/dist/collection/global/__mocks__/functions.js +0 -6
  269. package/dist/collection/global/functions.js +0 -825
  270. package/dist/collection/global/intl.js +0 -172
  271. package/dist/collection/global/services/__mocks__/http-service.js +0 -130
  272. package/dist/collection/global/services/http-service.js +0 -50
  273. package/dist/collection/lang/lang.js +0 -5
  274. package/dist/collection/lang/missing.js +0 -43
  275. package/dist/collection/lang/piglatin.js +0 -93
  276. package/dist/esm/app-globals-f3dbaf3e.js +0 -90
  277. package/dist/esm/functions-f53b3537.js +0 -8422
  278. package/dist/esm/index-130e07bb.js +0 -1828
  279. package/dist/esm/index.js +0 -1
  280. package/dist/esm/interfaces-cc5b177f.js +0 -34
  281. package/dist/esm/loader.js +0 -11
  282. package/dist/esm/polyfills/core-js.js +0 -11
  283. package/dist/esm/polyfills/dom.js +0 -79
  284. package/dist/esm/polyfills/es5-html-element.js +0 -1
  285. package/dist/esm/polyfills/index.js +0 -34
  286. package/dist/esm/polyfills/system.js +0 -6
  287. package/dist/esm/ripple.js +0 -20
  288. package/dist/esm/wm-action-menu_2.entry.js +0 -330
  289. package/dist/esm/wm-chart-slice.entry.js +0 -23
  290. package/dist/esm/wm-modal-pss_3.entry.js +0 -211
  291. package/dist/esm/wm-modal_3.entry.js +0 -209
  292. package/dist/esm/wm-navigation_3.entry.js +0 -182
  293. package/dist/esm/wm-option_2.entry.js +0 -434
  294. package/dist/esm/wm-tab-item_3.entry.js +0 -252
  295. package/dist/esm/wm-tag-option.entry.js +0 -39
  296. package/dist/esm/wm-wrapper.entry.js +0 -17
  297. package/dist/esm-es5/app-globals-f3dbaf3e.js +0 -1
  298. package/dist/esm-es5/chartFunctions-1478f4db.js +0 -1
  299. package/dist/esm-es5/functions-f53b3537.js +0 -1
  300. package/dist/esm-es5/index-130e07bb.js +0 -1
  301. package/dist/esm-es5/index.js +0 -0
  302. package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
  303. package/dist/esm-es5/intl-6426ba51.js +0 -1
  304. package/dist/esm-es5/loader.js +0 -1
  305. package/dist/esm-es5/priv-calendar.entry.js +0 -1
  306. package/dist/esm-es5/priv-navigator-button.entry.js +0 -1
  307. package/dist/esm-es5/priv-navigator-item.entry.js +0 -1
  308. package/dist/esm-es5/priv-option-list.entry.js +0 -1
  309. package/dist/esm-es5/ripple.js +0 -1
  310. package/dist/esm-es5/wm-action-menu_2.entry.js +0 -1
  311. package/dist/esm-es5/wm-button.entry.js +0 -1
  312. package/dist/esm-es5/wm-chart-slice.entry.js +0 -1
  313. package/dist/esm-es5/wm-chart.entry.js +0 -1
  314. package/dist/esm-es5/wm-date-range.entry.js +0 -1
  315. package/dist/esm-es5/wm-datepicker.entry.js +0 -1
  316. package/dist/esm-es5/wm-file-list.entry.js +0 -1
  317. package/dist/esm-es5/wm-file.entry.js +0 -1
  318. package/dist/esm-es5/wm-input.entry.js +0 -1
  319. package/dist/esm-es5/wm-line-chart.entry.js +0 -1
  320. package/dist/esm-es5/wm-modal-pss_3.entry.js +0 -1
  321. package/dist/esm-es5/wm-modal_3.entry.js +0 -1
  322. package/dist/esm-es5/wm-navigation_3.entry.js +0 -1
  323. package/dist/esm-es5/wm-navigator.entry.js +0 -1
  324. package/dist/esm-es5/wm-nested-select.entry.js +0 -1
  325. package/dist/esm-es5/wm-optgroup.entry.js +0 -1
  326. package/dist/esm-es5/wm-option_2.entry.js +0 -1
  327. package/dist/esm-es5/wm-pagination.entry.js +0 -1
  328. package/dist/esm-es5/wm-progress-indicator_3.entry.js +0 -1
  329. package/dist/esm-es5/wm-search.entry.js +0 -1
  330. package/dist/esm-es5/wm-snackbar.entry.js +0 -1
  331. package/dist/esm-es5/wm-tab-item_3.entry.js +0 -1
  332. package/dist/esm-es5/wm-tag-input.entry.js +0 -1
  333. package/dist/esm-es5/wm-tag-option.entry.js +0 -1
  334. package/dist/esm-es5/wm-textarea.entry.js +0 -1
  335. package/dist/esm-es5/wm-timepicker.entry.js +0 -1
  336. package/dist/esm-es5/wm-toggletip.entry.js +0 -1
  337. package/dist/esm-es5/wm-uploader.entry.js +0 -1
  338. package/dist/esm-es5/wm-wrapper.entry.js +0 -1
  339. package/dist/index.cjs.js +0 -1
  340. package/dist/index.js +0 -1
  341. package/dist/loader/cdn.js +0 -2
  342. package/dist/loader/index.cjs.js +0 -2
  343. package/dist/loader/index.d.ts +0 -24
  344. package/dist/loader/index.es2017.js +0 -2
  345. package/dist/loader/index.js +0 -3
  346. package/dist/loader/package.json +0 -11
  347. package/dist/ripple/index.esm.js +0 -0
  348. package/dist/ripple/p-02bd68af.system.entry.js +0 -1
  349. package/dist/ripple/p-02e60a11.system.entry.js +0 -1
  350. package/dist/ripple/p-03fafb82.entry.js +0 -1
  351. package/dist/ripple/p-043901ab.system.entry.js +0 -1
  352. package/dist/ripple/p-0d163672.system.entry.js +0 -1
  353. package/dist/ripple/p-13b1d775.entry.js +0 -1
  354. package/dist/ripple/p-1f174e18.system.entry.js +0 -1
  355. package/dist/ripple/p-20b137a3.system.entry.js +0 -1
  356. package/dist/ripple/p-226217d3.system.entry.js +0 -1
  357. package/dist/ripple/p-233f14ec.system.entry.js +0 -1
  358. package/dist/ripple/p-243a7a17.system.entry.js +0 -1
  359. package/dist/ripple/p-263e42e0.entry.js +0 -1
  360. package/dist/ripple/p-2732bddd.js +0 -1
  361. package/dist/ripple/p-27ff3a85.js +0 -1
  362. package/dist/ripple/p-28f9e202.system.entry.js +0 -1
  363. package/dist/ripple/p-2c8153c1.entry.js +0 -1
  364. package/dist/ripple/p-3376581a.system.entry.js +0 -1
  365. package/dist/ripple/p-368e9ee9.entry.js +0 -1
  366. package/dist/ripple/p-3a2a3b70.entry.js +0 -1
  367. package/dist/ripple/p-3b5d106d.entry.js +0 -1
  368. package/dist/ripple/p-42fa7a77.system.js +0 -1
  369. package/dist/ripple/p-45b5d2d2.entry.js +0 -1
  370. package/dist/ripple/p-486b3b56.system.entry.js +0 -1
  371. package/dist/ripple/p-49e24926.entry.js +0 -1
  372. package/dist/ripple/p-4fbe205e.system.entry.js +0 -1
  373. package/dist/ripple/p-50294e3f.entry.js +0 -1
  374. package/dist/ripple/p-50ea2036.system.js +0 -1
  375. package/dist/ripple/p-529f179c.system.entry.js +0 -1
  376. package/dist/ripple/p-53400bc4.system.entry.js +0 -1
  377. package/dist/ripple/p-55f8aa05.entry.js +0 -1
  378. package/dist/ripple/p-58734b13.entry.js +0 -1
  379. package/dist/ripple/p-59cc46a6.entry.js +0 -1
  380. package/dist/ripple/p-5c62e26d.entry.js +0 -1
  381. package/dist/ripple/p-6136d0d7.entry.js +0 -1
  382. package/dist/ripple/p-658f146a.system.entry.js +0 -1
  383. package/dist/ripple/p-66141f19.entry.js +0 -1
  384. package/dist/ripple/p-727175e1.system.entry.js +0 -1
  385. package/dist/ripple/p-73056e10.system.js +0 -1
  386. package/dist/ripple/p-76f9acec.entry.js +0 -1
  387. package/dist/ripple/p-791513e7.entry.js +0 -1
  388. package/dist/ripple/p-7959c4bd.system.entry.js +0 -1
  389. package/dist/ripple/p-7a1bb29b.js +0 -1
  390. package/dist/ripple/p-81ac8d49.entry.js +0 -1
  391. package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
  392. package/dist/ripple/p-82819500.system.entry.js +0 -1
  393. package/dist/ripple/p-8634abad.system.entry.js +0 -1
  394. package/dist/ripple/p-864158de.system.entry.js +0 -1
  395. package/dist/ripple/p-8c95493c.js +0 -1
  396. package/dist/ripple/p-94dc80a0.entry.js +0 -1
  397. package/dist/ripple/p-94fbf6f6.system.entry.js +0 -1
  398. package/dist/ripple/p-9b739280.entry.js +0 -1
  399. package/dist/ripple/p-a0edf336.system.entry.js +0 -1
  400. package/dist/ripple/p-a2544443.system.js +0 -1
  401. package/dist/ripple/p-a280d710.entry.js +0 -1
  402. package/dist/ripple/p-a9a7731b.system.entry.js +0 -1
  403. package/dist/ripple/p-b16f07f1.system.entry.js +0 -1
  404. package/dist/ripple/p-b78d8ab1.system.js +0 -1
  405. package/dist/ripple/p-c550716e.js +0 -1
  406. package/dist/ripple/p-ccae5bec.entry.js +0 -1
  407. package/dist/ripple/p-cd0cc88d.entry.js +0 -1
  408. package/dist/ripple/p-cef8a45b.system.js +0 -2
  409. package/dist/ripple/p-d96291e7.entry.js +0 -1
  410. package/dist/ripple/p-d9da0502.js +0 -2
  411. package/dist/ripple/p-e2fbed8c.system.entry.js +0 -1
  412. package/dist/ripple/p-e6e36701.system.entry.js +0 -1
  413. package/dist/ripple/p-e8cfa832.entry.js +0 -1
  414. package/dist/ripple/p-e973024a.entry.js +0 -1
  415. package/dist/ripple/p-ed24dc42.entry.js +0 -1
  416. package/dist/ripple/p-ee825214.entry.js +0 -1
  417. package/dist/ripple/p-ef75bf23.system.entry.js +0 -1
  418. package/dist/ripple/p-f28106ea.entry.js +0 -1
  419. package/dist/ripple/p-f471ee29.system.js +0 -1
  420. package/dist/ripple/p-f66480de.entry.js +0 -1
  421. package/dist/ripple/p-f778baf4.system.entry.js +0 -1
  422. package/dist/ripple/p-f9a71cf6.entry.js +0 -1
  423. package/dist/ripple/p-fc7965e4.system.entry.js +0 -1
  424. package/dist/ripple/p-fdfa3579.system.entry.js +0 -1
  425. package/dist/ripple/p-ff60375d.system.entry.js +0 -1
  426. package/dist/ripple/p-ffbb9fc0.system.js +0 -1
  427. package/dist/ripple/ripple.css +0 -1
  428. package/dist/ripple/ripple.esm.js +0 -1
  429. package/dist/ripple/ripple.js +0 -127
  430. /package/dist/{collection/dev/action-menu.js → types/test-setup.d.ts} +0 -0
@@ -1,1221 +0,0 @@
1
- import { h, forceUpdate } from "@stencil/core";
2
- import { csvToArray, debounce, hideTooltip, intl, measureText, shouldOpenUp, showTooltip, truncateText, findPrev, findNext, } from "../../global/functions";
3
- import { globalMessages } from "../../global/intl";
4
- export class TagInput {
5
- constructor() {
6
- this.addNewHelpText = intl.formatMessage({
7
- id: "tagInput.addNewHelpText",
8
- defaultMessage: "Press the Enter or Comma key to add a new tag.",
9
- description: "Help text appearing in a dropdown. Use imperative",
10
- });
11
- this.selectionHelpText = intl.formatMessage({
12
- id: "tagInput.selectionHelpText",
13
- defaultMessage: "Search and select a tag.",
14
- description: "Help text appearing in a dropdown. Use imperative",
15
- });
16
- this.maxTagsReachedMessage = intl.formatMessage({
17
- id: "tagInput.maxTagsReached",
18
- defaultMessage: "No more tags can be added because the limit has been reached.",
19
- });
20
- this.tagAreaInstructions = intl.formatMessage({
21
- id: "tagInput.tagAreaInstructions",
22
- defaultMessage: "tag selection. Press Backspace or Delete to remove a tag.",
23
- });
24
- this.tagsAddedMessage = intl.formatMessage({
25
- id: "tagInput.tagsAdded",
26
- defaultMessage: "Tags added",
27
- description: "Full message for context: 'Tags added: x/y",
28
- });
29
- this.openUp = false;
30
- this.inModal = false;
31
- this.debouncedUpdate = debounce(() => forceUpdate(this.el), 30);
32
- this.label = undefined;
33
- this.errorMessage = undefined;
34
- this.info = undefined;
35
- this.labelPosition = "top";
36
- this.maxTags = undefined;
37
- this.placeholder = undefined;
38
- this.requiredField = false;
39
- this.tagInputType = "dropdown";
40
- this.helpText = undefined;
41
- this.addNew = true;
42
- this.characterLimit = 50;
43
- this.colHeaders = undefined;
44
- this.colWidths = undefined;
45
- this.colWrap = undefined;
46
- this.isKeying = false;
47
- this.isExpanded = false;
48
- this.liveRegionMessage = "";
49
- this.focusedOption = undefined;
50
- this.focusedColumn = 0;
51
- this.focusedTagIndex = undefined;
52
- this.tagsList = [];
53
- }
54
- toggleKeyingOn() {
55
- this.isKeying = true;
56
- }
57
- toggleKeyingOff() {
58
- this.isKeying = false;
59
- }
60
- get isDropdown() {
61
- return this.tagInputType === "dropdown";
62
- }
63
- get isTable() {
64
- return this.tagInputType === "table";
65
- }
66
- get charCount() {
67
- return this.inputEl ? this.inputEl.value.length : 0;
68
- }
69
- get tooltipVisible() {
70
- return document.getElementById("wm-tooltip").classList.contains("show");
71
- }
72
- get optionEls() {
73
- return Array.from(this.el.querySelectorAll("wm-tag-option"));
74
- }
75
- // list of options matching user query
76
- get filteredOptionEls() {
77
- const query = this.inputEl ? this.inputEl.value.toLowerCase() : "";
78
- const list = Array.from(this.optionEls).filter((o) => {
79
- let values = "";
80
- if (this.isDropdown) {
81
- values = o.textContent.toLowerCase();
82
- }
83
- else if (this.isTable) {
84
- values = [o.col1, o.col2, o.col3, o.col4].join("").toLowerCase();
85
- }
86
- return values.includes(query);
87
- });
88
- return list;
89
- }
90
- // the ones that should be rendered as tags
91
- get taggedOptions() {
92
- return this.optionEls.filter((o) => o.selected || o.locked);
93
- }
94
- // for visual stuff (measuring, truncating...)
95
- get _tagEls() {
96
- return this.tagAreaEl ? Array.from(this.tagAreaEl.querySelectorAll(".tag")) : [];
97
- }
98
- get focusedTag() {
99
- if (this.focusedTagIndex !== undefined && this.focusedTagIndex >= 0) {
100
- return this._tagEls[this.focusedTagIndex];
101
- }
102
- }
103
- // get the wm-tag-option, given the internal representation (dropdown li or table tr)
104
- tagOptionFromEl(el) {
105
- return el.id === "add-new-btn" ? undefined : this.el.querySelector("#" + el.id);
106
- }
107
- // get the wm-tag-option, given the internal representation of a tag
108
- tagOptionFromTag(el) {
109
- const id = el.id.replace("tag-", "");
110
- return this.el.querySelector("#" + id);
111
- }
112
- // get the internal representation of a wm-tag-option
113
- elFromTagOption(el) {
114
- return this.el.shadowRoot.querySelector("#" + el.id);
115
- }
116
- // focusedOption state refers to the wm-tag-option. This gets the corresponding element in the shadow DOM, or the "Add New" button.
117
- get _focusedOption() {
118
- if (!!this.focusedOption) {
119
- return this.elFromTagOption(this.focusedOption);
120
- }
121
- else if (this.addNewButton && this.addNewButton.classList.contains("focused")) {
122
- return this.addNewButton;
123
- }
124
- }
125
- get _focusedCell() {
126
- if (!!this._focusedOption) {
127
- const allCells = Array.from(this._focusedOption.querySelectorAll("td"));
128
- const index = this.focusedColumn || 0;
129
- return allCells[index];
130
- }
131
- }
132
- get inputActiveDescendantId() {
133
- if (this._focusedOption) {
134
- if (this.isTable) {
135
- const cells = Array.from(this._focusedOption.querySelectorAll("td"));
136
- return cells[this.focusedColumn].id;
137
- }
138
- return this._focusedOption.id;
139
- }
140
- return null;
141
- }
142
- get tagLimitReached() {
143
- return !!(this.maxTags && this.taggedOptions.length >= this.maxTags);
144
- }
145
- get noResultsMessage() {
146
- return intl.formatMessage({
147
- id: "tagInput.noResults",
148
- defaultMessage: "No results match your search.",
149
- description: "Message displayed when a user's search returns empty.",
150
- });
151
- }
152
- get inputMinimumWidth() {
153
- if (this._tagEls) {
154
- // 150px is the minimum width of the input field, or the length of the placeholder text
155
- const inputElStyles = getComputedStyle(this.inputEl);
156
- const tagElStyles = getComputedStyle(this._tagEls[this._tagEls.length - 1]);
157
- const inputElBuffer = [
158
- inputElStyles.paddingLeft,
159
- inputElStyles.paddingRight,
160
- inputElStyles.marginLeft,
161
- inputElStyles.marginRight,
162
- tagElStyles.marginRight,
163
- ].reduce((prev, curr) => prev + parseInt(curr.replace("px", "")), 0);
164
- const minimumWidth = Math.max(150, measureText(this.inputEl, this.placeholder).width + inputElBuffer);
165
- return minimumWidth;
166
- }
167
- else {
168
- return 150;
169
- }
170
- }
171
- getTagName(o) {
172
- // when the user is typing and adding a new option, all we can pass is the text typed. so for the dropdown type the tag name is the identifier. It also takes care of duplicates. Table variant requires an id as the tag name is the first column but we want to allow duplicates here (e.g. people with the same name)
173
- return this.isDropdown ? o.textContent : o.col1;
174
- }
175
- isExistingTag(tag) {
176
- const list = this.optionEls.map((o) => this.getTagName(o).toLowerCase());
177
- return list.includes(tag.toLowerCase());
178
- }
179
- tagAddedMessage(tag) {
180
- return intl.formatMessage({
181
- id: "tagInput.tagAdded",
182
- defaultMessage: "{tagName} added.",
183
- description: "A confirmation for adding a tag.",
184
- }, { tagName: tag });
185
- }
186
- tagRemovedMessage(tag) {
187
- return intl.formatMessage({
188
- id: "tagInput.tagRemoved",
189
- defaultMessage: "{tagName} removed.",
190
- description: "A confirmation for removing a tag.",
191
- }, { tagName: tag });
192
- }
193
- tagAlreadyAddedMessage(tag) {
194
- return intl.formatMessage({
195
- id: "tagInput.tagAlreadyAdded",
196
- defaultMessage: "{tagName} has already been added.",
197
- description: "An alert for adding a tag that is already present.",
198
- }, { tagName: tag });
199
- }
200
- tagLockedMessage(tag) {
201
- return intl.formatMessage({
202
- id: "tagInput.tagLocked",
203
- defaultMessage: "{tagName} is locked and cannot be removed.",
204
- description: "An alert for when a user tries to remove a tag that is locked.",
205
- }, { tagName: tag });
206
- }
207
- isElOrChild(el) {
208
- return el === this.el || this.el.shadowRoot.contains(el) || this.el.contains(el);
209
- }
210
- componentWillLoad() {
211
- if (!this.placeholder) {
212
- this.placeholder = this.createPlaceholderDefault(this.addNew, this.optionEls.length > 0);
213
- }
214
- if (!this.label) {
215
- console.error("wm-tag-input must have a label property");
216
- }
217
- this.el.focus = () => {
218
- const firstFocusableTag = this._tagEls[0];
219
- if (firstFocusableTag) {
220
- this.tagAreaEl.focus();
221
- this.focusTag(firstFocusableTag);
222
- }
223
- else {
224
- this.inputEl.focus();
225
- }
226
- };
227
- // on resize of component, trigger componentDidRender -> positionInput
228
- const resizeObserver = new ResizeObserver(() => this.debouncedUpdate());
229
- resizeObserver.observe(this.el);
230
- // if within wm-modal, change max-height to vh unit
231
- if (this.el.closest("wm-modal")) {
232
- this.inModal = true;
233
- }
234
- const lockedTags = [];
235
- const regularTags = [];
236
- this.optionEls.forEach((o) => {
237
- if (o.locked) {
238
- lockedTags.push(o);
239
- }
240
- else if (o.selected) {
241
- regularTags.push(o);
242
- }
243
- });
244
- this.tagsList = [...lockedTags, ...regularTags];
245
- }
246
- componentDidLoad() {
247
- // Set up observer to announce changes in selected tags, or removed user-added tags
248
- const observerAnnouncer = new MutationObserver((optionListMutations) => optionListMutations.forEach((mutationRecord) => this.handleChangeAnnouncement(mutationRecord)));
249
- observerAnnouncer.observe(this.el, {
250
- subtree: true,
251
- attributes: true,
252
- attributeFilter: ["selected"],
253
- childList: true,
254
- });
255
- // Set up observer that ensures parent reload
256
- // when children wm-tag-options are removed
257
- const optionListObserver = new MutationObserver((optionListMutations) => optionListMutations.forEach((mutationRecord) => this.handleOptionListChange(mutationRecord)));
258
- optionListObserver.observe(this.el, {
259
- childList: true,
260
- });
261
- // Set up the observer that will handle focus
262
- // when tag list changes
263
- if (!!this.tagAreaEl) {
264
- const tagListObserver = new MutationObserver((tagListMutations) => tagListMutations.forEach((mutationRecord) => this.handleTagListChange(mutationRecord)));
265
- tagListObserver.observe(this.tagAreaEl, {
266
- childList: true,
267
- });
268
- }
269
- }
270
- handleChangeAnnouncement(mutationRecord) {
271
- const tagOptionEl = mutationRecord.target;
272
- if (mutationRecord.type == "childList" && mutationRecord.removedNodes.length > 0) {
273
- // announce deselection of user-added tag, whose element removal is picked up
274
- this.announce(this.tagRemovedMessage(mutationRecord.removedNodes[0].textContent));
275
- }
276
- else if (mutationRecord.type == "attributes") {
277
- const tagName = this.getTagName(tagOptionEl);
278
- // announce selection or deselection of all kinds of tags
279
- if (tagOptionEl.selected) {
280
- let changeAnnouncement = this.tagAddedMessage(tagName);
281
- if (this.tagLimitReached) {
282
- changeAnnouncement += ` ${this.maxTagsReachedMessage}`;
283
- }
284
- this.announce(changeAnnouncement);
285
- }
286
- else {
287
- this.announce(this.tagRemovedMessage(tagName));
288
- }
289
- }
290
- }
291
- handleOptionListChange(record) {
292
- const addedNodes = Array.from(record.addedNodes);
293
- if (addedNodes.length > 0) {
294
- addedNodes.forEach((n) => !this.tagsList.includes(n) && this.tagsList.push(n));
295
- }
296
- const removedNodes = Array.from(record.removedNodes);
297
- if (removedNodes.length > 0) {
298
- this.tagsList = this.tagsList.filter((t) => !removedNodes.includes(t));
299
- }
300
- }
301
- handleTagOptionSelected(ev) {
302
- const selOption = ev.target;
303
- this.tagsList = this.tagsList.concat(selOption);
304
- }
305
- handleTagOptionDeselected(ev) {
306
- const deselOption = ev.target;
307
- this.tagsList = this.tagsList.filter((t) => t != deselOption);
308
- }
309
- handleTagListChange(mutationRecord) {
310
- const addedTags = Array.from(mutationRecord.addedNodes);
311
- if (!!addedTags) {
312
- addedTags.forEach((t) => {
313
- t.classList.add("highlight");
314
- });
315
- }
316
- // there are 2 cases: the option still exists but is no longer selected,
317
- // or it was removed altogether
318
- const removedTag = mutationRecord.removedNodes[0];
319
- if (!!removedTag) {
320
- removedTag.classList.remove("highlight");
321
- // this is a trick. focusedTag gets the ref from an index. When an element
322
- // is removed it will fall back on the new element with that index if it exists
323
- if (this.focusedTag) {
324
- this.focusTag(this.focusedTag);
325
- }
326
- else if (this._tagEls.length > 0) {
327
- // Otherwise the last tag was deleted and we reassign to the new last tag.
328
- const tagToFocus = this._tagEls[this._tagEls.length - 1];
329
- this.focusTag(tagToFocus);
330
- }
331
- else {
332
- // unless there are no more tags...
333
- this.inputEl.focus();
334
- }
335
- }
336
- }
337
- componentDidRender() {
338
- this.positionInput();
339
- // check each tag if truncation is needed
340
- this._tagEls.forEach((tag) => {
341
- const textEl = tag.querySelector(".tag-text");
342
- const wrapper = this.el.shadowRoot.querySelector(".tags-and-input-wrapper");
343
- const leftBound = textEl.getBoundingClientRect().left;
344
- // the numbers represent spacing values for padding, margin, and delete icon
345
- const rightBound = wrapper.getBoundingClientRect().right - 10 - 8 - 28;
346
- const id = tag.id.replace("tag-", "");
347
- const optionEl = id && this.el.querySelector("#" + id);
348
- if (optionEl) {
349
- // tag text for table variant is first column text
350
- textEl.textContent = truncateText(textEl, this.getTagName(optionEl), rightBound - leftBound, 5);
351
- }
352
- });
353
- }
354
- createPlaceholderDefault(addNew, hasOptions) {
355
- const addAndSearchPlaceholder = intl.formatMessage({
356
- id: "tagInput.placeholderAddAndSearch",
357
- defaultMessage: "Add or search for a tag",
358
- description: "Placeholder text. Use imperative",
359
- });
360
- const searchPlaceholder = intl.formatMessage({
361
- id: "tagInput.placeholderSearch",
362
- defaultMessage: "Search and select a tag",
363
- description: "Placeholder text. Use imperative",
364
- });
365
- const addPlaceholder = intl.formatMessage({
366
- id: "tagInput.placeholderAdd",
367
- defaultMessage: "Add a new tag",
368
- description: "Placeholder text. Use imperative",
369
- });
370
- let placeholder = "";
371
- if (addNew && hasOptions) {
372
- placeholder = addAndSearchPlaceholder;
373
- }
374
- else if (!addNew && hasOptions) {
375
- placeholder = searchPlaceholder;
376
- }
377
- else if (addNew) {
378
- placeholder = addPlaceholder;
379
- }
380
- return placeholder;
381
- }
382
- handleClick(ev) {
383
- const el = ev.target;
384
- if (this.isDropdown && !this.el.contains(el) && this.isExpanded) {
385
- this.closeDropdown();
386
- }
387
- }
388
- announceError() {
389
- if (this.errorMessage) {
390
- setTimeout(() => this.announce(this.errorMessage), 100);
391
- }
392
- }
393
- handleOptionClick(ev) {
394
- ev.preventDefault();
395
- this.resetInput();
396
- let option;
397
- if (this.isTable) {
398
- option = ev.target;
399
- option = this.tagOptionFromEl(option.closest("tr"));
400
- }
401
- else {
402
- option = this.tagOptionFromEl(ev.target);
403
- }
404
- // if someone wants to attach a click event listener on wm-tag-option
405
- option.click();
406
- if (option.locked) {
407
- this.announce(this.tagLockedMessage(this.getTagName(option)));
408
- }
409
- else {
410
- option.selected
411
- ? this.isTable && option.emitDeselectedEvent() // dropdown doesn't deselect on option click
412
- : option.emitSelectedEvent();
413
- }
414
- }
415
- // From wm-button
416
- // we need to listen for scroll events during the capture phase because they do not bubble up
417
- // there can be layouts where the main content has 100vh and overflows
418
- // in these cases window will register no scroll events unless we catch on they way down
419
- dismissTooltip() {
420
- if (this.tooltipVisible) {
421
- hideTooltip();
422
- }
423
- }
424
- handleInputKeyDown(ev) {
425
- if (/^.$/.test(ev.key) && this.charCount >= this.characterLimit) {
426
- this.announce(this.generateCharacterLimitWarning(this.charCount, this.characterLimit));
427
- }
428
- switch (ev.key) {
429
- case "Enter":
430
- ev.preventDefault();
431
- this.handleInputEnter();
432
- break;
433
- case "ArrowDown":
434
- ev.preventDefault();
435
- this.handleInputArrowDown();
436
- break;
437
- case "ArrowUp":
438
- ev.preventDefault();
439
- this.handleInputArrowUp();
440
- break;
441
- case "ArrowLeft":
442
- if (this.isTable) {
443
- ev.preventDefault();
444
- this.focusPrevCell();
445
- }
446
- break;
447
- case "ArrowRight":
448
- if (this.isTable) {
449
- ev.preventDefault();
450
- this.focusNextCell();
451
- }
452
- break;
453
- case "Escape":
454
- if (this.isDropdown && this.isExpanded) {
455
- ev.preventDefault();
456
- this.closeDropdown();
457
- }
458
- break;
459
- case "ArrowLeft":
460
- case "Backspace":
461
- this.handleInputBackspace();
462
- break;
463
- }
464
- }
465
- handleInputFocus() {
466
- if (this.isDropdown) {
467
- this.openDropdown();
468
- this.clearOptionFocus();
469
- }
470
- }
471
- handleInputChanged(ev) {
472
- this.clearOptionFocus();
473
- if (this.isDropdown) {
474
- if (this.charCount >= this.characterLimit - 5) {
475
- this.announce(this.generateCharacterLimitWarning(this.charCount, this.characterLimit));
476
- }
477
- if (!this.isExpanded) {
478
- this.openDropdown();
479
- }
480
- }
481
- const val = ev.target.value;
482
- if (val.includes(",") && this.addNew) {
483
- this.addTags(val);
484
- }
485
- else {
486
- this.announceExistingOptions();
487
- }
488
- }
489
- handleInputEnter() {
490
- // user has selected an option in the list
491
- if (this.focusedOption) {
492
- if (this.focusedOption.locked) {
493
- this.announce(this.tagLockedMessage(this.getTagName(this.focusedOption)));
494
- }
495
- else {
496
- this.focusedOption.click();
497
- this.focusedOption.selected
498
- ? this.isTable && this.focusedOption.emitDeselectedEvent()
499
- : this.focusedOption.emitSelectedEvent();
500
- this.resetInput();
501
- }
502
- }
503
- else if (this.isDropdown) {
504
- // user is adding a new tag
505
- const tagName = this.inputEl.value;
506
- if (!!tagName) {
507
- this.isExistingTag(tagName) ? this.announce(this.tagAlreadyAddedMessage(tagName)) : this.addTags(tagName);
508
- this.resetInput();
509
- }
510
- }
511
- }
512
- handleInputArrowDown() {
513
- if (this.isDropdown) {
514
- if (!this.isExpanded) {
515
- this.openDropdown();
516
- }
517
- else {
518
- let items = [];
519
- // the id check prevents a bug where the ref is reassigned to the first option causing it to be added twice (after adding a new user option)
520
- if (this.addNewButton && this.addNewButton.id === "add-new-btn") {
521
- items.push(this.addNewButton);
522
- }
523
- this.filteredOptionEls.forEach((o) => {
524
- items.push(this.elFromTagOption(o));
525
- });
526
- const next = findNext(items, this._focusedOption, true);
527
- this.focusOption(next);
528
- }
529
- }
530
- else {
531
- const items = this.filteredOptionEls.map((o) => this.elFromTagOption(o));
532
- const next = findNext(items, this._focusedOption, true);
533
- this.focusOption(next);
534
- }
535
- }
536
- handleInputArrowUp() {
537
- if (this.isDropdown) {
538
- if (!this.isExpanded) {
539
- this.openDropdown();
540
- }
541
- else {
542
- let items = [];
543
- if (this.addNewButton) {
544
- items.push(this.addNewButton);
545
- }
546
- this.filteredOptionEls.forEach((o) => {
547
- items.push(this.elFromTagOption(o));
548
- });
549
- const prev = findPrev(items, this._focusedOption, true);
550
- this.focusOption(prev);
551
- }
552
- }
553
- else {
554
- const items = this.filteredOptionEls.map((o) => this.elFromTagOption(o));
555
- const prev = findPrev(items, this._focusedOption, true);
556
- this.focusOption(prev);
557
- }
558
- }
559
- handleInputBackspace() {
560
- if (this.inputEl.value === "" && this._tagEls.length > 0) {
561
- this.isKeying = true;
562
- // wait for events to finish firing before redirecting focus
563
- // prevents double input in input area and tag area
564
- window.requestAnimationFrame(() => {
565
- this.tagAreaEl.focus();
566
- this.focusTag(this._tagEls[this._tagEls.length - 1]);
567
- });
568
- }
569
- }
570
- handleTagAreaKeyDown(ev) {
571
- switch (ev.key) {
572
- case "ArrowLeft":
573
- case "ArrowUp":
574
- ev.preventDefault();
575
- if (this.focusedTag) {
576
- const prev = findPrev(this._tagEls, this.focusedTag, true);
577
- this.focusTag(prev);
578
- }
579
- break;
580
- case "ArrowRight":
581
- case "ArrowDown":
582
- ev.preventDefault();
583
- if (this.focusedTag) {
584
- const next = findNext(this._tagEls, this.focusedTag, true);
585
- this.focusTag(next);
586
- }
587
- break;
588
- case "Backspace":
589
- case "Delete":
590
- if (this.focusedTag) {
591
- const option = this.tagOptionFromTag(this.focusedTag);
592
- if (option.locked) {
593
- this.announce(this.tagLockedMessage(this.getTagName(option)));
594
- }
595
- else {
596
- option.emitDeselectedEvent();
597
- }
598
- }
599
- break;
600
- }
601
- }
602
- handleBlur(ev) {
603
- this.dismissTooltip();
604
- this.clearOptionFocus();
605
- const relTarget = ev.relatedTarget;
606
- if (!this.isElOrChild(relTarget)) {
607
- this.fieldWrapperEl.classList.remove("focused");
608
- if (this.isDropdown) {
609
- this.closeDropdown();
610
- }
611
- }
612
- }
613
- handleTagAreaFocus(ev) {
614
- if (this.isDropdown) {
615
- this.closeDropdown();
616
- }
617
- if (this._tagEls.length > 0) {
618
- const relTarget = ev.relatedTarget;
619
- if (relTarget && relTarget.id === "input") {
620
- const lastFocusableTag = this._tagEls[this._tagEls.length - 1];
621
- this.focusTag(lastFocusableTag);
622
- }
623
- else {
624
- const firstFocusableTag = this._tagEls[0];
625
- this.focusTag(firstFocusableTag);
626
- }
627
- }
628
- }
629
- focusPrevCell() {
630
- if (this.focusedOption) {
631
- if (this.focusedColumn > 0) {
632
- this.focusedColumn -= 1;
633
- }
634
- }
635
- }
636
- focusNextCell() {
637
- if (this._focusedOption) {
638
- const lastCellIdx = this._focusedOption.querySelectorAll("td").length - 1;
639
- if (this.focusedColumn < lastCellIdx) {
640
- this.focusedColumn += 1;
641
- }
642
- }
643
- }
644
- focusOption(optionToFocus) {
645
- if (optionToFocus) {
646
- // will be undefined for the "Add New" button
647
- this.focusedOption = this.tagOptionFromEl(optionToFocus);
648
- if (optionToFocus === this.addNewButton) {
649
- this.addNewButton.classList.add("focused");
650
- }
651
- else {
652
- this.addNewButton && this.addNewButton.classList.remove("focused");
653
- }
654
- if (this.isTable) {
655
- // tooltip
656
- const contentWrapper = this._focusedOption.querySelector(".cell-content-wrapper");
657
- const isTruncated = contentWrapper.scrollWidth > contentWrapper.clientWidth;
658
- this.dismissTooltip();
659
- if (isTruncated) {
660
- // innerText is necessary vs textContent, as innerText ignores sr-only / display: none text
661
- showTooltip("bottom", this._focusedOption, this._focusedOption.innerText);
662
- }
663
- }
664
- optionToFocus.scrollIntoView({ block: "nearest" });
665
- }
666
- }
667
- showTooltipIfTruncated(el) {
668
- const displayedText = el.querySelector(".tag-text").textContent;
669
- const id = el.id.replace("tag-", "");
670
- if (id) {
671
- const tagEl = this.el.querySelector("#" + id);
672
- const fullText = this.getTagName(tagEl);
673
- if (displayedText !== fullText && displayedText.includes("...")) {
674
- showTooltip("bottom", el, fullText);
675
- }
676
- }
677
- }
678
- focusTag(element) {
679
- // technically it's the tag area that has focus. This function handles the aria-activedescendant value within that parent
680
- this.focusedTagIndex = this._tagEls.indexOf(element);
681
- element.scrollIntoView({ block: "nearest" });
682
- window.requestAnimationFrame(() => {
683
- hideTooltip();
684
- this.showTooltipIfTruncated(element);
685
- });
686
- }
687
- clearOptionFocus() {
688
- this.focusedOption = undefined;
689
- this.focusedColumn = 0;
690
- }
691
- openDropdown() {
692
- // offset of -2px to avoid overlapping the focus border
693
- this.openUp = shouldOpenUp(this.el, this.dropdownEl.clientHeight, this.el.clientHeight, -2);
694
- this.isExpanded = true;
695
- }
696
- closeDropdown() {
697
- this.clearOptionFocus();
698
- this.isExpanded = false;
699
- }
700
- resetInput() {
701
- this.inputEl.value = "";
702
- }
703
- announce(message) {
704
- // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
705
- if (this.liveRegionEl.textContent === message) {
706
- message += "\u00A0";
707
- }
708
- this.liveRegionMessage = message;
709
- }
710
- addTags(tagNames) {
711
- // covers both typing "," and pasting in text that includes ","
712
- // if tag added without "," (typing enter), split puts the whole string in an array
713
- const addedTags = tagNames.split(",").filter((t) => t.match(/\S/));
714
- addedTags.forEach((tag) => {
715
- this.wmTagInputTagAdded.emit(tag);
716
- });
717
- this.announce(this.tagAddedMessage(addedTags.join(", ")));
718
- this.resetInput();
719
- }
720
- announceExistingOptions() {
721
- // request animation frame to wait for re-rendering of filtered options
722
- window.requestAnimationFrame(() => {
723
- const numResults = this.filteredOptionEls.length;
724
- const existingOptionsMessage = intl.formatMessage({
725
- id: "tagInput.existingOptions",
726
- defaultMessage: "{num, plural, one {1 existing option.} other {# existing options.}}",
727
- }, { num: numResults });
728
- this.announce(existingOptionsMessage);
729
- });
730
- }
731
- generateCharacterLimitWarning(charCount, charLimit) {
732
- let message = globalMessages.getCharactersEntered(charCount, charLimit);
733
- if (charCount >= charLimit) {
734
- message += ` ${globalMessages.characterLimitReached}`;
735
- }
736
- return message;
737
- }
738
- positionInput() {
739
- if (this.tagAreaEl) {
740
- const lastTag = this._tagEls[this._tagEls.length - 1];
741
- // default placement to fall back to when no tags are present, or not enough space is available
742
- this.inputEl.style.position = "static";
743
- this.inputEl.style.width = "100%";
744
- this.inputEl.classList.add("extended");
745
- if (lastTag) {
746
- const spaceAvailable = this.tagAreaEl.getBoundingClientRect().right - lastTag.getBoundingClientRect().right;
747
- if (spaceAvailable >= this.inputMinimumWidth) {
748
- // because the input has right: 0px
749
- // all thats needed to properly place it is setting position: absolute, top, and width
750
- this.inputEl.style.position = "absolute";
751
- this.inputEl.style.top = lastTag.offsetTop.toString() + "px";
752
- this.inputEl.style.width = (spaceAvailable - 8).toString() + "px";
753
- this.inputEl.classList.remove("extended");
754
- }
755
- }
756
- }
757
- }
758
- handleTagMouseEnter(ev) {
759
- this.showTooltipIfTruncated(ev.target);
760
- }
761
- renderDropdown() {
762
- return (h("div", { class: `dropdown-wrapper ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { id: "help-text", class: "help-text" }, this.renderHelpText()), h("ul", { class: "dropdown", id: "dropdown", role: "listbox", "aria-multiselectable": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.label, tabindex: -1 }, this.inputEl && this.renderAddNewButton(), this.filteredOptionEls.map((o) => this.renderListItem(o)))));
763
- }
764
- renderHelpText() {
765
- if (this.helpText)
766
- return this.helpText;
767
- let helpText = "";
768
- if (this.optionEls.length > 0) {
769
- helpText = this.selectionHelpText;
770
- }
771
- if (this.addNew) {
772
- helpText += " " + this.addNewHelpText;
773
- }
774
- return helpText;
775
- }
776
- renderAddNewButton() {
777
- const inputValue = this.inputEl.value.trim();
778
- const hasNonWhiteSpaceCharacters = this.inputEl.value.match(/\S/);
779
- const optionAlreadyExists = this.isExistingTag(this.inputEl.value.trim());
780
- return (this.addNew &&
781
- hasNonWhiteSpaceCharacters &&
782
- !optionAlreadyExists && (h("li", { ref: (el) => (this.addNewButton = el), id: "add-new-btn", class: "add-new-btn", onClick: () => this.addTags(inputValue) }, "Add " + inputValue)));
783
- }
784
- renderTable() {
785
- return (h("div", { class: "table-wrapper", onScroll: () => this.dismissTooltip() }, h("table", { id: "table", role: "grid", class: `${this.colWidths ? "fixed-widths" : ""}`, "aria-label": this.label, "aria-multiselectable": "true" }, this.renderTableHeaders(), this.filteredOptionEls.length ? (this.filteredOptionEls.map((o) => this.renderTableRow(o))) : (h("div", { class: "no-results" }, this.noResultsMessage)))));
786
- }
787
- renderTableHeaders() {
788
- return (h("tr", { class: "headers", role: "row" }, csvToArray(this.colHeaders).map((header, idx) => {
789
- let overflowRule = "wrap";
790
- if (this.colWrap && csvToArray(this.colWrap)[idx]) {
791
- overflowRule = csvToArray(this.colWrap)[idx];
792
- }
793
- return (h("th", { class: `header-cell ${overflowRule}`, role: "columnheader",
794
- // @ts-ignore
795
- width: this.colWidths ? csvToArray(this.colWidths)[idx] : "" }, header));
796
- })));
797
- }
798
- renderTag(o) {
799
- const focused = this.focusedTag && this.focusedTag.id === "tag-" + o.id ? "focused" : "";
800
- const tagName = this.getTagName(o);
801
- return (h("li", { id: "tag-" + o.id, role: "option", class: `tag ${focused} ${o.locked ? "locked" : ""}`, "aria-describedby": `tag-${o.id}-description`, onMouseEnter: (ev) => this.handleTagMouseEnter(ev), onMouseLeave: hideTooltip }, h("span", { class: "sr-only" }, tagName), h("div", { class: "description", id: `tag-${o.id}-description` }, o.locked ? "locked" : ""), h("span", { class: "tag-text", "aria-hidden": "true" }, tagName), o.locked ? (h("div", { class: "svg-icon svg-locked" })) : (h("button", { class: "icon remove-btn", tabIndex: -1, onClick: () => o.emitDeselectedEvent() }, h("div", { class: "svg-icon svg-close" })))));
802
- }
803
- renderTags() {
804
- return this.tagsList.map((o) => this.renderTag(o));
805
- }
806
- renderTagCounter() {
807
- if (this.maxTags) {
808
- return (h("div", { class: "lower-row" }, h("div", { id: "max-tags" }, this.renderMaxTags())));
809
- }
810
- }
811
- renderMaxTags() {
812
- if (this.helpText) {
813
- return this.helpText;
814
- }
815
- else {
816
- let msg = `${this.tagsAddedMessage}: ${this.taggedOptions.length}/${this.maxTags}`;
817
- if (this.tagLimitReached) {
818
- msg += `- ${this.maxTagsReachedMessage}`;
819
- }
820
- return msg;
821
- }
822
- }
823
- handleCellMouseEnter(ev) {
824
- const cell = ev.target;
825
- const contentWrapper = cell.querySelector(".cell-content-wrapper");
826
- const isTruncated = contentWrapper.scrollWidth > contentWrapper.clientWidth;
827
- if (isTruncated) {
828
- // innerText is necessary vs textContent, as innerText ignores sr-only / display: none text
829
- showTooltip("bottom", cell, cell.innerText);
830
- }
831
- }
832
- renderTableCells(o) {
833
- const colValues = [o.col1, o.col2, o.col3, o.col4].filter((val) => !!val);
834
- return colValues.map((val, idx) => {
835
- const cellId = `${o.id}-col${idx + 1}`;
836
- let overflowRule = "wrap";
837
- if (this.colWrap && csvToArray(this.colWrap)[idx]) {
838
- overflowRule = csvToArray(this.colWrap)[idx];
839
- }
840
- const classes = {
841
- focused: !!this._focusedCell && cellId === this._focusedCell.id,
842
- };
843
- return (h("td", { id: cellId, class: classes, role: "gridcell", "aria-describedby": `${cellId}-description`, "aria-selected": o.selected ? "true" : "false", "aria-readonly": o.locked ? "true" : null, onMouseEnter: (ev) => this.handleCellMouseEnter(ev), onMouseLeave: () => hideTooltip() }, h("div", { class: `cell-content-wrapper ${overflowRule}` }, o.locked && idx == 0 && h("div", { class: "svg-icon svg-locked" }), val), h("div", { class: "description", id: `${cellId}-description` }, o.locked ? "locked" : "")));
844
- });
845
- }
846
- renderTableRow(o) {
847
- const classes = {
848
- selected: o.selected,
849
- locked: o.locked,
850
- focused: this.focusedOption && o === this.focusedOption ? true : false,
851
- };
852
- return (h("tr", { id: o.id, class: classes, onClick: (ev) => this.handleOptionClick(ev) }, this.renderTableCells(o)));
853
- }
854
- renderListItem(o) {
855
- if (!!this.inputEl) {
856
- const isFocused = this.focusedOption && o === this.focusedOption;
857
- return (h("li", { id: o.id, role: "option", class: `option ${isFocused ? "focused" : ""}`, "aria-selected": o.selected ? "true" : "false", onClick: (ev) => this.handleOptionClick(ev) }, o.textContent));
858
- }
859
- }
860
- render() {
861
- return (h("div", { key: 'af231128d260623c879ef2089b09027063499160', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '2f59f083c55296c78ed525a58d029bfc9b9529ee', class: "label-wrapper" }, h("label", { key: '635e5dd747f1d4efde1a69263852783233b2a5f0', class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { key: 'd320313704264ea92481fe5949dd7bb6d05c2a0d', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '0b4ba6ae8448bc0163400f6491afd3d9698e229e', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '2a88752b7448ea96bb22f810f4eb836eb8c46396', class: "upper-row" }, h("div", { key: '2a651303dd7ae11a1d4b69ec8d2238858c60db70', class: "svg-icon svg-search" }), h("div", { key: '91bee9d946319fc824b7e8d16044b94b25d69a52', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: '60e54382a3449bbc4cbeef5de986679201e4d019', 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
- this.focusedTagIndex = undefined;
863
- this.handleBlur(ev);
864
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: 'e967fb3dd1543cc71e689127a3ff4de287e63122', 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
- this.handleBlur(ev);
866
- }, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '75b899bc274fd826a49dd70faa502ec2812e7ff7', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '94b40202dce3a7f9e28e2ef7efcfc696c5613ac7', id: "info", class: "info-text" }, this.info)), h("div", { key: '1351786b25c5c28c65a646393c8f93a2a9bdf2c1', id: "error" }, this.errorMessage), h("div", { key: '6704903361bdfd1412df5d95d28b1569d0b303ad', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
867
- }
868
- static get is() { return "wm-tag-input"; }
869
- static get encapsulation() { return "shadow"; }
870
- static get delegatesFocus() { return true; }
871
- static get originalStyleUrls() {
872
- return {
873
- "$": ["wm-tag-input.scss"]
874
- };
875
- }
876
- static get styleUrls() {
877
- return {
878
- "$": ["wm-tag-input.css"]
879
- };
880
- }
881
- static get properties() {
882
- return {
883
- "label": {
884
- "type": "string",
885
- "mutable": false,
886
- "complexType": {
887
- "original": "string",
888
- "resolved": "string",
889
- "references": {}
890
- },
891
- "required": true,
892
- "optional": false,
893
- "docs": {
894
- "tags": [],
895
- "text": ""
896
- },
897
- "attribute": "label",
898
- "reflect": false
899
- },
900
- "errorMessage": {
901
- "type": "string",
902
- "mutable": false,
903
- "complexType": {
904
- "original": "string",
905
- "resolved": "string | undefined",
906
- "references": {}
907
- },
908
- "required": false,
909
- "optional": true,
910
- "docs": {
911
- "tags": [],
912
- "text": ""
913
- },
914
- "attribute": "error-message",
915
- "reflect": false
916
- },
917
- "info": {
918
- "type": "string",
919
- "mutable": false,
920
- "complexType": {
921
- "original": "string",
922
- "resolved": "string | undefined",
923
- "references": {}
924
- },
925
- "required": false,
926
- "optional": true,
927
- "docs": {
928
- "tags": [],
929
- "text": ""
930
- },
931
- "attribute": "info",
932
- "reflect": false
933
- },
934
- "labelPosition": {
935
- "type": "string",
936
- "mutable": false,
937
- "complexType": {
938
- "original": "\"top\" | \"left\" | \"none\"",
939
- "resolved": "\"left\" | \"none\" | \"top\"",
940
- "references": {}
941
- },
942
- "required": false,
943
- "optional": false,
944
- "docs": {
945
- "tags": [],
946
- "text": ""
947
- },
948
- "attribute": "label-position",
949
- "reflect": false,
950
- "defaultValue": "\"top\""
951
- },
952
- "maxTags": {
953
- "type": "number",
954
- "mutable": false,
955
- "complexType": {
956
- "original": "number",
957
- "resolved": "number | undefined",
958
- "references": {}
959
- },
960
- "required": false,
961
- "optional": true,
962
- "docs": {
963
- "tags": [],
964
- "text": ""
965
- },
966
- "attribute": "max-tags",
967
- "reflect": false
968
- },
969
- "placeholder": {
970
- "type": "string",
971
- "mutable": true,
972
- "complexType": {
973
- "original": "string",
974
- "resolved": "string | undefined",
975
- "references": {}
976
- },
977
- "required": false,
978
- "optional": true,
979
- "docs": {
980
- "tags": [],
981
- "text": ""
982
- },
983
- "attribute": "placeholder",
984
- "reflect": false
985
- },
986
- "requiredField": {
987
- "type": "boolean",
988
- "mutable": false,
989
- "complexType": {
990
- "original": "boolean",
991
- "resolved": "boolean",
992
- "references": {}
993
- },
994
- "required": false,
995
- "optional": false,
996
- "docs": {
997
- "tags": [],
998
- "text": ""
999
- },
1000
- "attribute": "required-field",
1001
- "reflect": false,
1002
- "defaultValue": "false"
1003
- },
1004
- "tagInputType": {
1005
- "type": "string",
1006
- "mutable": false,
1007
- "complexType": {
1008
- "original": "\"dropdown\" | \"table\"",
1009
- "resolved": "\"dropdown\" | \"table\"",
1010
- "references": {}
1011
- },
1012
- "required": false,
1013
- "optional": false,
1014
- "docs": {
1015
- "tags": [],
1016
- "text": ""
1017
- },
1018
- "attribute": "tag-input-type",
1019
- "reflect": false,
1020
- "defaultValue": "\"dropdown\""
1021
- },
1022
- "helpText": {
1023
- "type": "string",
1024
- "mutable": false,
1025
- "complexType": {
1026
- "original": "string",
1027
- "resolved": "string | undefined",
1028
- "references": {}
1029
- },
1030
- "required": false,
1031
- "optional": true,
1032
- "docs": {
1033
- "tags": [],
1034
- "text": ""
1035
- },
1036
- "attribute": "help-text",
1037
- "reflect": false
1038
- },
1039
- "addNew": {
1040
- "type": "boolean",
1041
- "mutable": false,
1042
- "complexType": {
1043
- "original": "boolean",
1044
- "resolved": "boolean",
1045
- "references": {}
1046
- },
1047
- "required": false,
1048
- "optional": false,
1049
- "docs": {
1050
- "tags": [],
1051
- "text": ""
1052
- },
1053
- "attribute": "add-new",
1054
- "reflect": false,
1055
- "defaultValue": "true"
1056
- },
1057
- "characterLimit": {
1058
- "type": "number",
1059
- "mutable": false,
1060
- "complexType": {
1061
- "original": "number",
1062
- "resolved": "number",
1063
- "references": {}
1064
- },
1065
- "required": false,
1066
- "optional": false,
1067
- "docs": {
1068
- "tags": [],
1069
- "text": ""
1070
- },
1071
- "attribute": "character-limit",
1072
- "reflect": false,
1073
- "defaultValue": "50"
1074
- },
1075
- "colHeaders": {
1076
- "type": "string",
1077
- "mutable": false,
1078
- "complexType": {
1079
- "original": "string",
1080
- "resolved": "string",
1081
- "references": {}
1082
- },
1083
- "required": true,
1084
- "optional": false,
1085
- "docs": {
1086
- "tags": [],
1087
- "text": ""
1088
- },
1089
- "attribute": "col-headers",
1090
- "reflect": false
1091
- },
1092
- "colWidths": {
1093
- "type": "string",
1094
- "mutable": false,
1095
- "complexType": {
1096
- "original": "string",
1097
- "resolved": "string | undefined",
1098
- "references": {}
1099
- },
1100
- "required": false,
1101
- "optional": true,
1102
- "docs": {
1103
- "tags": [],
1104
- "text": ""
1105
- },
1106
- "attribute": "col-widths",
1107
- "reflect": false
1108
- },
1109
- "colWrap": {
1110
- "type": "string",
1111
- "mutable": false,
1112
- "complexType": {
1113
- "original": "string",
1114
- "resolved": "string | undefined",
1115
- "references": {}
1116
- },
1117
- "required": false,
1118
- "optional": true,
1119
- "docs": {
1120
- "tags": [],
1121
- "text": ""
1122
- },
1123
- "attribute": "col-wrap",
1124
- "reflect": false
1125
- }
1126
- };
1127
- }
1128
- static get states() {
1129
- return {
1130
- "isKeying": {},
1131
- "isExpanded": {},
1132
- "liveRegionMessage": {},
1133
- "focusedOption": {},
1134
- "focusedColumn": {},
1135
- "focusedTagIndex": {},
1136
- "tagsList": {}
1137
- };
1138
- }
1139
- static get events() {
1140
- return [{
1141
- "method": "wmTagInputTagAdded",
1142
- "name": "wmTagInputTagAdded",
1143
- "bubbles": true,
1144
- "cancelable": true,
1145
- "composed": true,
1146
- "docs": {
1147
- "tags": [],
1148
- "text": ""
1149
- },
1150
- "complexType": {
1151
- "original": "any",
1152
- "resolved": "any",
1153
- "references": {}
1154
- }
1155
- }];
1156
- }
1157
- static get elementRef() { return "el"; }
1158
- static get watchers() {
1159
- return [{
1160
- "propName": "errorMessage",
1161
- "methodName": "announceError"
1162
- }];
1163
- }
1164
- static get listeners() {
1165
- return [{
1166
- "name": "wmUserIsKeying",
1167
- "method": "toggleKeyingOn",
1168
- "target": "window",
1169
- "capture": false,
1170
- "passive": false
1171
- }, {
1172
- "name": "wmUserIsTabbing",
1173
- "method": "toggleKeyingOn",
1174
- "target": "window",
1175
- "capture": false,
1176
- "passive": false
1177
- }, {
1178
- "name": "wmUserIsNotKeying",
1179
- "method": "toggleKeyingOff",
1180
- "target": "window",
1181
- "capture": false,
1182
- "passive": false
1183
- }, {
1184
- "name": "wmUserIsNotTabbing",
1185
- "method": "toggleKeyingOff",
1186
- "target": "window",
1187
- "capture": false,
1188
- "passive": false
1189
- }, {
1190
- "name": "privTagOptionSelected",
1191
- "method": "handleTagOptionSelected",
1192
- "target": undefined,
1193
- "capture": false,
1194
- "passive": false
1195
- }, {
1196
- "name": "privTagOptionDeselected",
1197
- "method": "handleTagOptionDeselected",
1198
- "target": undefined,
1199
- "capture": false,
1200
- "passive": false
1201
- }, {
1202
- "name": "click",
1203
- "method": "handleClick",
1204
- "target": "document",
1205
- "capture": false,
1206
- "passive": false
1207
- }, {
1208
- "name": "scroll",
1209
- "method": "dismissTooltip",
1210
- "target": "window",
1211
- "capture": true,
1212
- "passive": true
1213
- }, {
1214
- "name": "blur",
1215
- "method": "handleBlur",
1216
- "target": undefined,
1217
- "capture": false,
1218
- "passive": false
1219
- }];
1220
- }
1221
- }