@watermarkinsights/ripple 0.0.0 → 3.0.1-1

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 (282) hide show
  1. package/dist/{esm/app-globals-18876ad3.js → ripple/app-globals-b5693c90.js} +1 -1
  2. package/dist/{componentlibrary → ripple}/css-shim-bbdf0cc6.js +0 -0
  3. package/dist/{componentlibrary → ripple}/dom-1f98a75f.js +0 -0
  4. package/dist/{componentlibrary → ripple}/functions-316c1b23.js +0 -0
  5. package/dist/{componentlibrary → ripple}/http-service-5d037e16.js +0 -0
  6. package/dist/{esm/index-d5997567.js → ripple/index-20b65f86.js} +3 -3
  7. package/dist/ripple/index.esm.js +1 -0
  8. package/dist/{componentlibrary → ripple}/interfaces-50753346.js +0 -0
  9. package/dist/{componentlibrary → ripple}/priv-chart-popover.entry.js +1 -1
  10. package/dist/{componentlibrary → ripple}/priv-datepicker.entry.js +1 -1
  11. package/dist/{componentlibrary → ripple}/priv-navigator-button.entry.js +1 -1
  12. package/dist/{componentlibrary → ripple}/priv-navigator-item.entry.js +1 -1
  13. package/dist/{componentlibrary/componentlibrary.css → ripple/ripple.css} +0 -0
  14. package/dist/ripple/ripple.esm.js +125 -0
  15. package/dist/{componentlibrary → ripple}/shadow-css-67b66845.js +0 -0
  16. package/dist/{esm → ripple}/wm-action-menu.entry.js +1 -1
  17. package/dist/{componentlibrary → ripple}/wm-button.entry.js +1 -1
  18. package/dist/{componentlibrary → ripple}/wm-chart-slice.entry.js +1 -1
  19. package/dist/{componentlibrary → ripple}/wm-chart.entry.js +1 -1
  20. package/dist/{componentlibrary → ripple}/wm-datepicker.entry.js +1 -1
  21. package/dist/{componentlibrary → ripple}/wm-input.entry.js +1 -1
  22. package/dist/{componentlibrary → ripple}/wm-menuitem.entry.js +1 -1
  23. package/dist/{componentlibrary → ripple}/wm-modal-footer.entry.js +1 -1
  24. package/dist/{componentlibrary → ripple}/wm-modal-header.entry.js +1 -1
  25. package/dist/{componentlibrary → ripple}/wm-modal.entry.js +1 -1
  26. package/dist/{componentlibrary → ripple}/wm-navigator.entry.js +1 -1
  27. package/dist/{componentlibrary → ripple}/wm-network-uploader.entry.js +1 -1
  28. package/dist/{componentlibrary → ripple}/wm-option.entry.js +1 -1
  29. package/dist/{componentlibrary → ripple}/wm-pagination.entry.js +1 -1
  30. package/dist/{componentlibrary → ripple}/wm-search.entry.js +1 -1
  31. package/dist/{componentlibrary → ripple}/wm-select.entry.js +1 -1
  32. package/dist/{componentlibrary → ripple}/wm-snackbar.entry.js +1 -1
  33. package/dist/{esm → ripple}/wm-tab-item.entry.js +1 -1
  34. package/dist/{componentlibrary → ripple}/wm-tab-list.entry.js +1 -1
  35. package/dist/{componentlibrary → ripple}/wm-tab-panel.entry.js +1 -1
  36. package/dist/{componentlibrary → ripple}/wm-tag-input.entry.js +31 -6
  37. package/dist/{componentlibrary → ripple}/wm-timepicker.entry.js +1 -1
  38. package/dist/{componentlibrary → ripple}/wm-toggletip.entry.js +1 -1
  39. package/dist/{componentlibrary → ripple}/wm-uploader.entry.js +1 -1
  40. package/dist/{componentlibrary → ripple}/wm-wrapper.entry.js +1 -1
  41. package/dist/types/components/wm-tag-input/{wm-tag-input.d.ts → wm-tag-input.d.ts~ds312_tagInputMaxTags} +4 -0
  42. package/dist/types/{components.d.ts → components.d.ts~ds312_tagInputMaxTags} +2 -0
  43. package/dist/types/{stencil-public-runtime.d.ts → stencil-public-runtime.d.ts~ds312_tagInputMaxTags} +0 -0
  44. package/package.json +3 -3
  45. package/dist/cjs/app-globals-6b0c6e80.js +0 -110
  46. package/dist/cjs/app-globals-f1dd8fda.js +0 -47
  47. package/dist/cjs/componentlibrary.cjs.js +0 -20
  48. package/dist/cjs/css-shim-a7379e2b.js +0 -6
  49. package/dist/cjs/dom-3e7d9c3b.js +0 -75
  50. package/dist/cjs/functions-65513c61.js +0 -8360
  51. package/dist/cjs/functions-f2333f02.js +0 -6129
  52. package/dist/cjs/global-6849642d.js +0 -38
  53. package/dist/cjs/http-service-494d81de.js +0 -57
  54. package/dist/cjs/http-service-9e8c4dd5.js +0 -57
  55. package/dist/cjs/index-298ebef1.js +0 -2976
  56. package/dist/cjs/index.cjs.js +0 -2
  57. package/dist/cjs/interfaces-a3338581.js +0 -35
  58. package/dist/cjs/interfaces-b2beb752.js +0 -54
  59. package/dist/cjs/loader.cjs.js +0 -22
  60. package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -89
  61. package/dist/cjs/priv-datepicker.cjs.entry.js +0 -672
  62. package/dist/cjs/priv-navigator-button.cjs.entry.js +0 -29
  63. package/dist/cjs/priv-navigator-item.cjs.entry.js +0 -34
  64. package/dist/cjs/shadow-css-09555044.js +0 -391
  65. package/dist/cjs/wm-action-menu.cjs.entry.js +0 -206
  66. package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -318
  67. package/dist/cjs/wm-button.cjs.entry.js +0 -152
  68. package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -22
  69. package/dist/cjs/wm-chart.cjs.entry.js +0 -508
  70. package/dist/cjs/wm-datepicker.cjs.entry.js +0 -262
  71. package/dist/cjs/wm-input.cjs.entry.js +0 -110
  72. package/dist/cjs/wm-menuitem.cjs.entry.js +0 -118
  73. package/dist/cjs/wm-modal-footer.cjs.entry.js +0 -43
  74. package/dist/cjs/wm-modal-header.cjs.entry.js +0 -45
  75. package/dist/cjs/wm-modal.cjs.entry.js +0 -149
  76. package/dist/cjs/wm-navigator.cjs.entry.js +0 -279
  77. package/dist/cjs/wm-network-uploader.cjs.entry.js +0 -431
  78. package/dist/cjs/wm-option.cjs.entry.js +0 -123
  79. package/dist/cjs/wm-option_2.cjs.entry.js +0 -483
  80. package/dist/cjs/wm-pagination.cjs.entry.js +0 -176
  81. package/dist/cjs/wm-search.cjs.entry.js +0 -231
  82. package/dist/cjs/wm-select.cjs.entry.js +0 -366
  83. package/dist/cjs/wm-snackbar.cjs.entry.js +0 -160
  84. package/dist/cjs/wm-tab-item.cjs.entry.js +0 -82
  85. package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -316
  86. package/dist/cjs/wm-tab-list.cjs.entry.js +0 -205
  87. package/dist/cjs/wm-tab-panel.cjs.entry.js +0 -42
  88. package/dist/cjs/wm-tag-input.cjs.entry.js +0 -513
  89. package/dist/cjs/wm-timepicker.cjs.entry.js +0 -386
  90. package/dist/cjs/wm-toggletip.cjs.entry.js +0 -128
  91. package/dist/cjs/wm-uploader.cjs.entry.js +0 -342
  92. package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
  93. package/dist/collection/collection-manifest.json +0 -131
  94. package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -122
  95. package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -392
  96. package/dist/collection/components/wm-button/wm-button.css +0 -572
  97. package/dist/collection/components/wm-button/wm-button.js +0 -365
  98. package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +0 -132
  99. package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +0 -232
  100. package/dist/collection/components/wm-chart/wm-chart-slice.js +0 -64
  101. package/dist/collection/components/wm-chart/wm-chart.css +0 -337
  102. package/dist/collection/components/wm-chart/wm-chart.js +0 -710
  103. package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +0 -365
  104. package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +0 -1003
  105. package/dist/collection/components/wm-datepicker/wm-datepicker.css +0 -211
  106. package/dist/collection/components/wm-datepicker/wm-datepicker.js +0 -445
  107. package/dist/collection/components/wm-input/wm-input.css +0 -220
  108. package/dist/collection/components/wm-input/wm-input.js +0 -302
  109. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -118
  110. package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -411
  111. package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -84
  112. package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -159
  113. package/dist/collection/components/wm-modal/wm-modal-header.css +0 -78
  114. package/dist/collection/components/wm-modal/wm-modal-header.js +0 -109
  115. package/dist/collection/components/wm-modal/wm-modal.css +0 -155
  116. package/dist/collection/components/wm-modal/wm-modal.js +0 -356
  117. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -94
  118. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -97
  119. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -67
  120. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -114
  121. package/dist/collection/components/wm-navigator/wm-navigator.css +0 -137
  122. package/dist/collection/components/wm-navigator/wm-navigator.js +0 -468
  123. package/dist/collection/components/wm-option/wm-option.css +0 -162
  124. package/dist/collection/components/wm-option/wm-option.js +0 -394
  125. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -217
  126. package/dist/collection/components/wm-pagination/wm-pagination.js +0 -348
  127. package/dist/collection/components/wm-search/wm-search.css +0 -155
  128. package/dist/collection/components/wm-search/wm-search.js +0 -439
  129. package/dist/collection/components/wm-select/wm-select.css +0 -315
  130. package/dist/collection/components/wm-select/wm-select.js +0 -676
  131. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -331
  132. package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -240
  133. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -104
  134. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -202
  135. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -73
  136. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -315
  137. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -57
  138. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -104
  139. package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -408
  140. package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -707
  141. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -370
  142. package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -567
  143. package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -350
  144. package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -217
  145. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +0 -642
  146. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +0 -753
  147. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -666
  148. package/dist/collection/components/wm-uploader/wm-uploader.js +0 -673
  149. package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -27
  150. package/dist/collection/dev/scripts.js +0 -20
  151. package/dist/collection/global/__mocks__/functions.js +0 -5
  152. package/dist/collection/global/functions.js +0 -420
  153. package/dist/collection/global/global.js +0 -39
  154. package/dist/collection/global/interfaces.js +0 -49
  155. package/dist/collection/global/services/__mocks__/http-service.js +0 -130
  156. package/dist/collection/global/services/http-service.js +0 -50
  157. package/dist/collection/lang/lang.js +0 -5
  158. package/dist/collection/lang/piglatin.js +0 -93
  159. package/dist/componentlibrary/app-globals-18876ad3.js +0 -45
  160. package/dist/componentlibrary/app-globals-307a1083.js +0 -108
  161. package/dist/componentlibrary/componentlibrary.esm.js +0 -1
  162. package/dist/componentlibrary/index-d5997567.js +0 -2938
  163. package/dist/componentlibrary/index.esm.js +0 -0
  164. package/dist/componentlibrary/p-01bdfed8.js +0 -16
  165. package/dist/componentlibrary/p-0ca70ed4.entry.js +0 -1
  166. package/dist/componentlibrary/p-126bde92.entry.js +0 -1
  167. package/dist/componentlibrary/p-12a67d93.entry.js +0 -1
  168. package/dist/componentlibrary/p-188deaf5.entry.js +0 -1
  169. package/dist/componentlibrary/p-2514df6f.entry.js +0 -1
  170. package/dist/componentlibrary/p-269b8a5f.entry.js +0 -1
  171. package/dist/componentlibrary/p-35e57079.entry.js +0 -1
  172. package/dist/componentlibrary/p-414e20f7.entry.js +0 -1
  173. package/dist/componentlibrary/p-43f1298b.js +0 -1
  174. package/dist/componentlibrary/p-4d387ec6.entry.js +0 -1
  175. package/dist/componentlibrary/p-59ba81d6.entry.js +0 -1
  176. package/dist/componentlibrary/p-5e3cbec8.entry.js +0 -1
  177. package/dist/componentlibrary/p-5e81e830.entry.js +0 -1
  178. package/dist/componentlibrary/p-64ff5040.js +0 -1
  179. package/dist/componentlibrary/p-68a871d3.entry.js +0 -1
  180. package/dist/componentlibrary/p-996a7395.entry.js +0 -1
  181. package/dist/componentlibrary/p-9b460452.entry.js +0 -1
  182. package/dist/componentlibrary/p-a416e410.entry.js +0 -1
  183. package/dist/componentlibrary/p-d550a94f.entry.js +0 -1
  184. package/dist/componentlibrary/p-e4735c23.entry.js +0 -1
  185. package/dist/componentlibrary/p-e725f388.entry.js +0 -1
  186. package/dist/componentlibrary/p-e9532ae5.entry.js +0 -1
  187. package/dist/componentlibrary/p-edf6f848.entry.js +0 -1
  188. package/dist/componentlibrary/p-fd8070fb.js +0 -1
  189. package/dist/componentlibrary/wm-action-menu.entry.js +0 -202
  190. package/dist/componentlibrary/wm-tab-item.entry.js +0 -78
  191. package/dist/esm/app-globals-307a1083.js +0 -108
  192. package/dist/esm/componentlibrary.js +0 -18
  193. package/dist/esm/css-shim-bbdf0cc6.js +0 -4
  194. package/dist/esm/dom-1f98a75f.js +0 -73
  195. package/dist/esm/functions-316c1b23.js +0 -8340
  196. package/dist/esm/functions-60034bf7.js +0 -6109
  197. package/dist/esm/global-430cb201.js +0 -36
  198. package/dist/esm/http-service-3dc3b3e7.js +0 -52
  199. package/dist/esm/http-service-5d037e16.js +0 -52
  200. package/dist/esm/index.js +0 -1
  201. package/dist/esm/interfaces-2b97fab2.js +0 -32
  202. package/dist/esm/interfaces-50753346.js +0 -51
  203. package/dist/esm/loader.js +0 -18
  204. package/dist/esm/polyfills/core-js.js +0 -11
  205. package/dist/esm/polyfills/css-shim.js +0 -1
  206. package/dist/esm/polyfills/dom.js +0 -79
  207. package/dist/esm/polyfills/es5-html-element.js +0 -1
  208. package/dist/esm/polyfills/index.js +0 -34
  209. package/dist/esm/polyfills/system.js +0 -6
  210. package/dist/esm/priv-chart-popover.entry.js +0 -85
  211. package/dist/esm/priv-datepicker.entry.js +0 -668
  212. package/dist/esm/priv-navigator-button.entry.js +0 -25
  213. package/dist/esm/priv-navigator-item.entry.js +0 -30
  214. package/dist/esm/shadow-css-67b66845.js +0 -389
  215. package/dist/esm/wm-action-menu_2.entry.js +0 -313
  216. package/dist/esm/wm-button.entry.js +0 -148
  217. package/dist/esm/wm-chart-slice.entry.js +0 -18
  218. package/dist/esm/wm-chart.entry.js +0 -504
  219. package/dist/esm/wm-datepicker.entry.js +0 -258
  220. package/dist/esm/wm-input.entry.js +0 -106
  221. package/dist/esm/wm-menuitem.entry.js +0 -114
  222. package/dist/esm/wm-modal-footer.entry.js +0 -39
  223. package/dist/esm/wm-modal-header.entry.js +0 -41
  224. package/dist/esm/wm-modal.entry.js +0 -145
  225. package/dist/esm/wm-navigator.entry.js +0 -275
  226. package/dist/esm/wm-network-uploader.entry.js +0 -427
  227. package/dist/esm/wm-option.entry.js +0 -119
  228. package/dist/esm/wm-option_2.entry.js +0 -478
  229. package/dist/esm/wm-pagination.entry.js +0 -172
  230. package/dist/esm/wm-search.entry.js +0 -227
  231. package/dist/esm/wm-select.entry.js +0 -362
  232. package/dist/esm/wm-snackbar.entry.js +0 -156
  233. package/dist/esm/wm-tab-item_3.entry.js +0 -310
  234. package/dist/esm/wm-tab-list.entry.js +0 -201
  235. package/dist/esm/wm-tab-panel.entry.js +0 -38
  236. package/dist/esm/wm-tag-input.entry.js +0 -509
  237. package/dist/esm/wm-timepicker.entry.js +0 -382
  238. package/dist/esm/wm-toggletip.entry.js +0 -124
  239. package/dist/esm/wm-uploader.entry.js +0 -338
  240. package/dist/esm/wm-wrapper.entry.js +0 -17
  241. package/dist/index.cjs.js +0 -1
  242. package/dist/index.js +0 -1
  243. package/dist/loader/cdn.js +0 -3
  244. package/dist/loader/index.cjs.js +0 -3
  245. package/dist/loader/index.d.ts +0 -13
  246. package/dist/loader/index.es2017.js +0 -3
  247. package/dist/loader/index.js +0 -4
  248. package/dist/loader/package.json +0 -10
  249. package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +0 -43
  250. package/dist/types/components/wm-button/wm-button.d.ts +0 -36
  251. package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +0 -23
  252. package/dist/types/components/wm-chart/wm-chart-slice.d.ts +0 -8
  253. package/dist/types/components/wm-chart/wm-chart.d.ts +0 -77
  254. package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +0 -75
  255. package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +0 -39
  256. package/dist/types/components/wm-input/wm-input.d.ts +0 -30
  257. package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +0 -30
  258. package/dist/types/components/wm-modal/wm-modal-footer.d.ts +0 -15
  259. package/dist/types/components/wm-modal/wm-modal-header.d.ts +0 -12
  260. package/dist/types/components/wm-modal/wm-modal.d.ts +0 -34
  261. package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +0 -10
  262. package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +0 -13
  263. package/dist/types/components/wm-navigator/wm-navigator.d.ts +0 -61
  264. package/dist/types/components/wm-option/wm-option.d.ts +0 -28
  265. package/dist/types/components/wm-pagination/wm-pagination.d.ts +0 -31
  266. package/dist/types/components/wm-search/wm-search.d.ts +0 -78
  267. package/dist/types/components/wm-select/wm-select.d.ts +0 -63
  268. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +0 -32
  269. package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +0 -35
  270. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +0 -50
  271. package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +0 -20
  272. package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +0 -59
  273. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +0 -25
  274. package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +0 -85
  275. package/dist/types/components/wm-uploader/wm-uploader.d.ts +0 -75
  276. package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +0 -7
  277. package/dist/types/global/__mocks__/functions.d.ts +0 -5
  278. package/dist/types/global/global.d.ts +0 -1
  279. package/dist/types/global/interfaces.d.ts +0 -33
  280. package/dist/types/global/services/__mocks__/http-service.d.ts +0 -6
  281. package/dist/types/global/services/http-service.d.ts +0 -4
  282. package/dist/types/lang/lang.d.ts +0 -5
@@ -1,707 +0,0 @@
1
- import { h, Component, Host, Element, Prop, Listen, State, Event, Watch } from "@stencil/core";
2
- import { generateId, shouldOpenUp, intl } from "../../global/functions";
3
- export class TagInput {
4
- constructor() {
5
- this.labelPosition = "top";
6
- this.options = ""; // csv
7
- this.selectedTags = ""; // csv
8
- this.addNew = true;
9
- this.characterLimit = 50;
10
- this.uid = this.el.id ? this.el.id : generateId();
11
- this.openUp = false;
12
- this.isExpanded = false;
13
- this.tagsList = this.csvToArray(this.selectedTags);
14
- this.optionsList = this.csvToArray(this.options);
15
- this.charCount = 0;
16
- this.liveRegionMessage = "";
17
- this.tagAreaInstructions = intl.formatMessage({
18
- id: "tagInput.tagAreaInstructions",
19
- defaultMessage: "tag selection. Press Backspace or Delete to remove a tag.",
20
- });
21
- }
22
- get focusedElement() {
23
- return this.el.shadowRoot.activeElement;
24
- }
25
- get listItemEls() {
26
- return Array.from(this.dropdownEl.querySelectorAll("li"));
27
- }
28
- get tagEls() {
29
- return Array.from(this.tagAreaEl.querySelectorAll(".tag"));
30
- }
31
- get optionEls() {
32
- return Array.from(this.dropdownEl.querySelectorAll(".option"));
33
- }
34
- generateTagAddedMessage(tag) {
35
- return intl.formatMessage({
36
- id: "tagInput.tagAdded",
37
- defaultMessage: "{tagName} added.",
38
- description: "A confirmation for adding a tag.",
39
- }, { tagName: tag });
40
- }
41
- generateTagAlreadyAddedMessage(tag) {
42
- return intl.formatMessage({
43
- id: "tagInput.tagAlreadyAdded",
44
- defaultMessage: "{tagName} has already been added.",
45
- description: "An alert for adding a tag that is already present.",
46
- }, { tagName: tag });
47
- }
48
- componentWillLoad() {
49
- if (!this.placeholder) {
50
- this.placeholder = this.createPlaceholderDefault(this.addNew, !!this.options);
51
- }
52
- if (!this.label) {
53
- console.error("wm-tag-input must have a label property");
54
- }
55
- this.consolidateSelectedTags();
56
- }
57
- componentDidLoad() {
58
- // prevent highlighting of pre-selected tags
59
- this.tagEls.forEach((el) => el.classList.remove("highlight"));
60
- }
61
- consolidateSelectedTags() {
62
- this.tagsList.forEach((tag) => {
63
- if (!this.includesCaseInsensitive(this.optionsList, tag)) {
64
- this.options += `${this.options.length > 0 ? "," : ""}${tag}`;
65
- }
66
- });
67
- this.optionsList = this.csvToArray(this.options);
68
- }
69
- createPlaceholderDefault(addNew, hasOptions) {
70
- const addAndSearchPlaceholder = intl.formatMessage({
71
- id: "tagInput.placeholderAddAndSearch",
72
- defaultMessage: "Add or search for a tag",
73
- });
74
- const searchPlaceholder = intl.formatMessage({
75
- id: "tagInput.placeholderSearch",
76
- defaultMessage: "Search and select a tag",
77
- });
78
- const addPlaceholder = intl.formatMessage({
79
- id: "tagInput.placeholderAdd",
80
- defaultMessage: "Add a new tag",
81
- });
82
- let placeholder = "";
83
- if (addNew && hasOptions) {
84
- placeholder = addAndSearchPlaceholder;
85
- }
86
- else if (!addNew && hasOptions) {
87
- placeholder = searchPlaceholder;
88
- }
89
- else if (addNew) {
90
- placeholder = addPlaceholder;
91
- }
92
- return placeholder;
93
- }
94
- reflectSelectedTags() {
95
- this.selectedTags = this.listToCSV(this.tagsList);
96
- this.wmTagInputChanged.emit({ value: this.tagsList });
97
- }
98
- closeIfNotElOrChild(ev) {
99
- const isntElOrChild = ev.target !== this.el && !this.el.shadowRoot.contains(ev.target);
100
- if (isntElOrChild && this.isExpanded) {
101
- this.closeDropdown();
102
- }
103
- }
104
- handleInputKeyDown(ev) {
105
- if (/^.$/.test(ev.key) && this.inputEl.value.length >= this.characterLimit) {
106
- this.announceCharacterLimitWarning(this.inputEl.value.length, this.characterLimit);
107
- }
108
- // prevent keydown triggering on tag area
109
- ev.stopPropagation();
110
- switch (ev.key) {
111
- case "Enter":
112
- case ",":
113
- ev.preventDefault();
114
- this.submitInput(this.addNew, this.inputEl.value.trim());
115
- break;
116
- case "ArrowDown":
117
- ev.preventDefault();
118
- this.handleInputArrowDown();
119
- break;
120
- case "ArrowUp":
121
- ev.preventDefault();
122
- this.handleInputArrowUp();
123
- break;
124
- case "Escape":
125
- if (this.isExpanded) {
126
- this.closeDropdown();
127
- }
128
- break;
129
- case "ArrowLeft":
130
- case "Backspace":
131
- this.handleInputBackspace();
132
- break;
133
- }
134
- }
135
- handleInputChanged(value) {
136
- this.charCount = value.length;
137
- if (this.charCount >= this.characterLimit - 5) {
138
- this.announceCharacterLimitWarning(this.charCount, this.characterLimit);
139
- }
140
- this.announceExistingOptions();
141
- if (!this.isExpanded) {
142
- this.openDropdown();
143
- }
144
- }
145
- submitInput(canAddNew, value) {
146
- if (canAddNew && value) {
147
- this.tagsList = this.addTag(value);
148
- this.optionsList = this.addOption(value);
149
- this.resetInput();
150
- }
151
- }
152
- handleInputArrowDown() {
153
- if (this.isExpanded) {
154
- this.moveDownListItem();
155
- }
156
- else {
157
- this.openDropdown();
158
- }
159
- }
160
- handleInputArrowUp() {
161
- if (this.isExpanded) {
162
- this.moveUpListItem();
163
- }
164
- else {
165
- this.openDropdown();
166
- }
167
- }
168
- handleInputBackspace() {
169
- if (this.inputEl.value === "" && this.tagsList.length > 0) {
170
- // wait for events to finish firing before redirecting focus
171
- // prevents double input in input area and tag area
172
- window.requestAnimationFrame(() => {
173
- this.tagAreaEl.focus();
174
- this.focusTag(this.tagEls[this.tagEls.length - 1]);
175
- });
176
- }
177
- }
178
- handleListItemKeyDown(ev) {
179
- const typedEvTarget = ev.target;
180
- switch (ev.key) {
181
- case "Enter":
182
- case " ":
183
- ev.preventDefault();
184
- typedEvTarget.click();
185
- break;
186
- case "ArrowDown":
187
- ev.preventDefault();
188
- this.moveDownListItem();
189
- break;
190
- case "ArrowUp":
191
- ev.preventDefault();
192
- this.moveUpListItem();
193
- break;
194
- case "Escape":
195
- if (this.focusedElement !== this.inputEl) {
196
- this.inputEl.focus();
197
- }
198
- else {
199
- this.closeDropdown();
200
- }
201
- break;
202
- }
203
- }
204
- handleListItemClick(ev) {
205
- const typedEvTarget = ev.target;
206
- const tag = typedEvTarget.dataset.option.trim() || "";
207
- if (this.includesCaseInsensitive(this.tagsList, tag)) {
208
- this.announce(this.generateTagAlreadyAddedMessage(tag));
209
- }
210
- else {
211
- this.announce(this.generateTagAddedMessage(tag));
212
- this.resetInput();
213
- this.tagsList = this.addTag(tag);
214
- this.optionsList = this.addOption(tag);
215
- this.focusedListItem = null;
216
- this.inputEl.focus();
217
- }
218
- }
219
- handleTagAreaKeyDown(ev) {
220
- switch (ev.key) {
221
- case "ArrowLeft":
222
- case "ArrowUp":
223
- ev.preventDefault();
224
- this.moveLeftTag();
225
- break;
226
- case "ArrowRight":
227
- case "ArrowDown":
228
- ev.preventDefault();
229
- this.moveRightTag();
230
- break;
231
- case "Backspace":
232
- case "Delete":
233
- this.handleTagAreaDelete();
234
- break;
235
- }
236
- }
237
- handleTagAreaDelete() {
238
- if (this.focusedTag && this.focusedTag.dataset.tag) {
239
- this.removeTag(this.focusedTag.dataset.tag);
240
- if (this.tagsList.length === 0) {
241
- // focus input if no tags are left
242
- this.inputEl.focus();
243
- }
244
- else if (this.focusedTag === this.tagEls[this.tagEls.length - 1]) {
245
- // reassign focus if removing the last tag but there are still tags remaining
246
- this.focusedTag = this.tagEls[this.tagEls.length - 2];
247
- this.focusTag(this.focusedTag);
248
- }
249
- }
250
- }
251
- handleBlur(ev, component) {
252
- const isntElOrChild = ev.relatedTarget !== component && !this.el.shadowRoot.contains(ev.relatedTarget);
253
- if (isntElOrChild) {
254
- this.closeDropdown();
255
- this.fieldWrapperEl.classList.remove("focused");
256
- }
257
- }
258
- handleTagAreaFocus() {
259
- this.closeDropdown();
260
- if (!this.focusedTag) {
261
- this.focusedTag = this.tagEls[0];
262
- }
263
- this.focusTag(this.focusedTag);
264
- }
265
- handleRemoveButtonClick(tag) {
266
- this.moveLeftTag();
267
- this.removeTag(tag);
268
- }
269
- moveDownListItem() {
270
- if (this.listItemEls.length > 0) {
271
- const firstListItem = this.listItemEls[0];
272
- if (!this.focusedListItem) {
273
- this.focusListItem(firstListItem);
274
- }
275
- else if (this.focusedListItem.nextElementSibling) {
276
- this.focusListItem(this.focusedListItem.nextElementSibling);
277
- }
278
- else {
279
- this.focusListItem(firstListItem);
280
- }
281
- }
282
- }
283
- moveUpListItem() {
284
- if (this.listItemEls.length > 0) {
285
- const lastListItem = this.listItemEls[this.listItemEls.length - 1];
286
- if (!this.focusedListItem) {
287
- this.focusListItem(lastListItem);
288
- }
289
- else if (this.focusedListItem.previousElementSibling) {
290
- this.focusListItem(this.focusedListItem.previousElementSibling);
291
- }
292
- else {
293
- this.focusedListItem = null;
294
- this.inputEl.focus();
295
- }
296
- }
297
- }
298
- moveLeftTag() {
299
- const lastTag = this.tagEls[this.tagEls.length - 1];
300
- if (this.focusedTag && this.tagEls.includes(this.focusedTag.previousElementSibling)) {
301
- this.focusedTag = this.focusedTag.previousElementSibling;
302
- }
303
- else {
304
- this.focusedTag = lastTag;
305
- }
306
- this.focusTag(this.focusedTag);
307
- }
308
- moveRightTag() {
309
- const firstTag = this.tagEls[0];
310
- if (this.focusedTag && this.tagEls.includes(this.focusedTag.nextElementSibling)) {
311
- this.focusedTag = this.focusedTag.nextElementSibling;
312
- }
313
- else {
314
- this.focusedTag = firstTag;
315
- }
316
- this.focusTag(this.focusedTag);
317
- }
318
- addOption(option) {
319
- let newOptionsList = this.optionsList;
320
- const optionAlreadyExists = this.includesCaseInsensitive(this.optionsList, option);
321
- if (!optionAlreadyExists) {
322
- newOptionsList = newOptionsList.concat(option);
323
- }
324
- return newOptionsList;
325
- }
326
- removeOption(option) {
327
- this.optionsList = this.filterCaseInsensitive(this.optionsList, option);
328
- }
329
- addTag(tag) {
330
- let newTagsList = this.tagsList;
331
- const tagAlreadyAdded = this.includesCaseInsensitive(this.tagsList, tag);
332
- const tagExistsAsOption = this.optionsList.filter((x) => x.toLowerCase() === tag.toLowerCase())[0];
333
- if (!tagAlreadyAdded) {
334
- this.announce(this.generateTagAddedMessage(tag));
335
- newTagsList = newTagsList.concat(tagExistsAsOption || tag);
336
- }
337
- return newTagsList;
338
- }
339
- removeTag(tag) {
340
- const tagRemovedMessage = intl.formatMessage({ id: "tagInput.tagRemoved", defaultMessage: "{tag} removed" }, { tag: tag });
341
- this.announce(tagRemovedMessage);
342
- this.tagsList = this.filterCaseInsensitive(this.tagsList, tag);
343
- const devOptionsList = this.csvToArray(this.options);
344
- if (this.includesCaseInsensitive(this.optionsList, tag) && !this.includesCaseInsensitive(devOptionsList, tag)) {
345
- this.removeOption(tag);
346
- }
347
- }
348
- focusListItem(item) {
349
- this.focusedListItem = item;
350
- item.focus();
351
- }
352
- focusTag(element) {
353
- this.focusedTag = element;
354
- this.tagAreaEl.setAttribute("aria-activedescendant", this.focusedTag.id);
355
- }
356
- clearTagFocus() {
357
- this.tagAreaEl.removeAttribute("aria-activedescendant");
358
- this.focusedTag = null;
359
- }
360
- openDropdown() {
361
- this.openUp = shouldOpenUp(this.el, this.dropdownEl, this.el.clientHeight);
362
- this.isExpanded = true;
363
- }
364
- closeDropdown() {
365
- this.focusedListItem = null;
366
- this.isExpanded = false;
367
- }
368
- clearListItemFocus() {
369
- this.focusedListItem = null;
370
- this.listItemEls.forEach((el) => {
371
- el.tabIndex = -1;
372
- el.classList.remove("focused");
373
- });
374
- }
375
- resetInput() {
376
- this.charCount = 0;
377
- this.inputEl.value = "";
378
- }
379
- announce(message) {
380
- // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
381
- if (this.liveRegionEl.textContent === message) {
382
- message += "\u00A0";
383
- }
384
- this.liveRegionMessage = message;
385
- }
386
- announceExistingOptions() {
387
- // request animation frame to wait for re-rendering of filtered options
388
- window.requestAnimationFrame(() => {
389
- const existingOptionsMessage = intl.formatMessage({
390
- id: "tagInput.existingOptions",
391
- defaultMessage: "{num, plural, one {1 existing option.} other {# existing options.}}",
392
- }, { num: this.optionEls.length });
393
- if (this.optionEls.length > 0) {
394
- this.announce(existingOptionsMessage);
395
- }
396
- });
397
- }
398
- announceCharacterLimitWarning(charCount, charLimit) {
399
- const charactersEnteredMessage = intl.formatMessage({
400
- id: "tagInput.charactersEntered",
401
- defaultMessage: "{x, number} of {y, number} characters entered.",
402
- }, { x: charCount, y: charLimit });
403
- const characterLimitReachedMessage = intl.formatMessage({
404
- id: "tagInput.characterLimitReached",
405
- defaultMessage: "No additional characters will be entered.",
406
- });
407
- this.announce(`${charactersEnteredMessage}${charCount >= charLimit ? " " + characterLimitReachedMessage : ""}`);
408
- }
409
- /// Helpers
410
- listToCSV(list) {
411
- return list.join(",");
412
- }
413
- csvToArray(csv) {
414
- return csv ? csv.split(/, ?/) : [];
415
- }
416
- includesCaseInsensitive(list, element) {
417
- const lowercaseList = list.map((str) => str.toLowerCase());
418
- return lowercaseList.includes(element.toLowerCase());
419
- }
420
- filterCaseInsensitive(list, element) {
421
- return list.filter((x) => x.toLowerCase() !== element.toLowerCase());
422
- }
423
- sortCaseInsensitive(list) {
424
- // The vanilla .sort method places words that start with capital letters above others (ASCII order)
425
- // so we need to pass in our own compare function to sort case-insensitive
426
- return list.sort((a, b) => {
427
- a = a.toLowerCase();
428
- b = b.toLowerCase();
429
- return a > b ? 1 : a < b ? -1 : 0;
430
- });
431
- }
432
- /// Renders
433
- renderTags() {
434
- return this.tagsList.map((tag, idx) => {
435
- const id = `tag${idx + 1}`;
436
- return (h("li", { id: id, class: `tag highlight ${this.focusedTag && this.focusedTag.id === id ? "focused" : ""}`, "data-tag": tag, role: "option" },
437
- tag,
438
- h("button", { class: "remove-btn", tabIndex: -1, onClick: () => this.handleRemoveButtonClick(tag) })));
439
- });
440
- }
441
- renderListItems(optionsList) {
442
- optionsList = this.sortCaseInsensitive(optionsList);
443
- // filter by input
444
- if (this.inputEl && this.inputEl.value) {
445
- optionsList = this.optionsList.filter((option) => option.toLowerCase().includes(this.inputEl.value.toLowerCase()));
446
- }
447
- return optionsList.map((option, idx) => {
448
- const id = `option${idx + 1}`;
449
- const isFocused = this.focusedListItem && this.focusedListItem.id === id;
450
- const isSelected = this.includesCaseInsensitive(this.tagsList, option);
451
- return (h("li", { class: `option ${isFocused ? "focused" : ""}`, role: "option", id: id, "data-option": option, tabIndex: isFocused ? 0 : -1, "aria-selected": isSelected ? "true" : "false", "aria-disabled": isSelected ? "true" : "false", onKeyDown: (ev) => this.handleListItemKeyDown(ev), onBlur: (ev) => this.handleBlur(ev, this.el), onClick: (ev) => this.handleListItemClick(ev) }, option));
452
- });
453
- }
454
- renderAddNewButton() {
455
- if (this.inputEl.value.length > 0 &&
456
- this.addNew &&
457
- !this.includesCaseInsensitive(this.optionsList, this.inputEl.value)) {
458
- const id = `add-new-btn`;
459
- const isFocused = this.focusedListItem && this.focusedListItem.id === id;
460
- return (h("li", { role: "option", class: `add-new-btn ${isFocused ? "focused" : ""}`, id: id, "data-option": this.inputEl.value, onKeyDown: (ev) => this.handleListItemKeyDown(ev), onBlur: (ev) => this.handleBlur(ev, this.el), onClick: (ev) => this.handleListItemClick(ev), tabIndex: isFocused ? 0 : -1 }, `Add "${this.inputEl.value}"`));
461
- }
462
- else
463
- return "";
464
- }
465
- renderHelpText() {
466
- const helpTextHasOptions = intl.formatMessage({
467
- id: "tagInput.helpTextCanSelect",
468
- defaultMessage: "Search and select a tag.",
469
- });
470
- const helpTextEditable = intl.formatMessage({
471
- id: "tagInput.helpTextEditable",
472
- defaultMessage: "Press the Enter or Comma key to add a new tag.",
473
- });
474
- let helpText = "";
475
- if (this.optionsList.length > 0) {
476
- helpText += helpTextHasOptions;
477
- }
478
- if (this.addNew) {
479
- helpText += " " + helpTextEditable;
480
- }
481
- return helpText;
482
- }
483
- render() {
484
- const isFocused = this.focusedElement &&
485
- (this.focusedElement === this.inputEl ||
486
- this.focusedElement === this.tagAreaEl ||
487
- this.focusedElement.classList.contains("add-new-btn") ||
488
- (this.optionsList.length > 0 && this.listItemEls.includes(this.focusedElement)));
489
- return (h(Host, { id: this.uid },
490
- h("div", { class: `wrapper label-${this.labelPosition}` },
491
- h("div", { class: "label-wrapper" },
492
- h("label", { class: "label", htmlFor: `input${this.uid}` }, this.label)),
493
- h("div", { class: `field-wrapper ${isFocused ? "focused" : ""}`, ref: (el) => (this.fieldWrapperEl = el) },
494
- h("div", { class: "inner-wrapper" },
495
- h("ul", { ref: (el) => (this.tagAreaEl = el), class: "tag-area", role: "listbox", "aria-horizontal": "true", "aria-label": this.tagsList.length > 0 && `${this.label} ${this.tagAreaInstructions}`, tabindex: this.tagsList.length > 0 ? 0 : -1, "aria-describedby": "info", onFocus: () => this.handleTagAreaFocus(), onBlur: (ev) => {
496
- this.clearTagFocus();
497
- this.handleBlur(ev, this.el);
498
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) },
499
- this.renderTags(),
500
- h("div", { class: "input-wrapper", role: "none" },
501
- h("input", { id: `input${this.uid}`, role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-controls": "dropdown", "aria-describedby": "help-text", "aria-label": this.label, placeholder: this.placeholder, maxLength: this.characterLimit, onInput: () => this.handleInputChanged(this.inputEl.value), onBlur: (ev) => {
502
- this.handleBlur(ev, this.el);
503
- }, onFocus: () => {
504
- this.openDropdown();
505
- this.clearListItemFocus();
506
- }, onKeyDown: (ev) => this.handleInputKeyDown(ev) })))),
507
- h("div", { class: "character-count" },
508
- this.charCount,
509
- "/",
510
- this.characterLimit),
511
- h("div", { class: `dropdown-wrapper ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}` },
512
- h("div", { id: "help-text", class: "help-text" }, this.renderHelpText()),
513
- h("ul", { class: "dropdown", ref: (el) => (this.dropdownEl = el), id: "dropdown", role: "listbox", "aria-multiselectable": "true", "aria-expanded": this.isExpanded ? "true" : false, "aria-label": this.label, tabindex: -1 },
514
- this.inputEl && this.renderAddNewButton(),
515
- this.renderListItems(this.optionsList)))),
516
- this.info ? (h("div", { id: "info", class: "info-text" }, this.info)) : (""),
517
- h("div", { class: "sr-only", "aria-live": "assertive", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage))));
518
- }
519
- static get is() { return "wm-tag-input"; }
520
- static get encapsulation() { return "shadow"; }
521
- static get originalStyleUrls() { return {
522
- "$": ["wm-tag-input.scss"]
523
- }; }
524
- static get styleUrls() { return {
525
- "$": ["wm-tag-input.css"]
526
- }; }
527
- static get properties() { return {
528
- "label": {
529
- "type": "string",
530
- "mutable": false,
531
- "complexType": {
532
- "original": "string",
533
- "resolved": "string",
534
- "references": {}
535
- },
536
- "required": true,
537
- "optional": false,
538
- "docs": {
539
- "tags": [],
540
- "text": ""
541
- },
542
- "attribute": "label",
543
- "reflect": false
544
- },
545
- "labelPosition": {
546
- "type": "string",
547
- "mutable": false,
548
- "complexType": {
549
- "original": "\"top\" | \"left\" | \"none\"",
550
- "resolved": "\"left\" | \"none\" | \"top\"",
551
- "references": {}
552
- },
553
- "required": false,
554
- "optional": false,
555
- "docs": {
556
- "tags": [],
557
- "text": ""
558
- },
559
- "attribute": "label-position",
560
- "reflect": false,
561
- "defaultValue": "\"top\""
562
- },
563
- "options": {
564
- "type": "string",
565
- "mutable": true,
566
- "complexType": {
567
- "original": "string",
568
- "resolved": "string",
569
- "references": {}
570
- },
571
- "required": false,
572
- "optional": false,
573
- "docs": {
574
- "tags": [],
575
- "text": ""
576
- },
577
- "attribute": "options",
578
- "reflect": false,
579
- "defaultValue": "\"\""
580
- },
581
- "selectedTags": {
582
- "type": "string",
583
- "mutable": true,
584
- "complexType": {
585
- "original": "string",
586
- "resolved": "string",
587
- "references": {}
588
- },
589
- "required": false,
590
- "optional": false,
591
- "docs": {
592
- "tags": [],
593
- "text": ""
594
- },
595
- "attribute": "selected-tags",
596
- "reflect": true,
597
- "defaultValue": "\"\""
598
- },
599
- "info": {
600
- "type": "string",
601
- "mutable": false,
602
- "complexType": {
603
- "original": "string",
604
- "resolved": "string | undefined",
605
- "references": {}
606
- },
607
- "required": false,
608
- "optional": true,
609
- "docs": {
610
- "tags": [],
611
- "text": ""
612
- },
613
- "attribute": "info",
614
- "reflect": false
615
- },
616
- "addNew": {
617
- "type": "boolean",
618
- "mutable": false,
619
- "complexType": {
620
- "original": "boolean",
621
- "resolved": "boolean",
622
- "references": {}
623
- },
624
- "required": false,
625
- "optional": false,
626
- "docs": {
627
- "tags": [],
628
- "text": ""
629
- },
630
- "attribute": "add-new",
631
- "reflect": false,
632
- "defaultValue": "true"
633
- },
634
- "placeholder": {
635
- "type": "string",
636
- "mutable": true,
637
- "complexType": {
638
- "original": "string",
639
- "resolved": "string | undefined",
640
- "references": {}
641
- },
642
- "required": false,
643
- "optional": true,
644
- "docs": {
645
- "tags": [],
646
- "text": ""
647
- },
648
- "attribute": "placeholder",
649
- "reflect": false
650
- },
651
- "characterLimit": {
652
- "type": "number",
653
- "mutable": false,
654
- "complexType": {
655
- "original": "number",
656
- "resolved": "number",
657
- "references": {}
658
- },
659
- "required": false,
660
- "optional": false,
661
- "docs": {
662
- "tags": [],
663
- "text": ""
664
- },
665
- "attribute": "character-limit",
666
- "reflect": false,
667
- "defaultValue": "50"
668
- }
669
- }; }
670
- static get states() { return {
671
- "focusedListItem": {},
672
- "focusedTag": {},
673
- "isExpanded": {},
674
- "tagsList": {},
675
- "optionsList": {},
676
- "charCount": {},
677
- "liveRegionMessage": {}
678
- }; }
679
- static get events() { return [{
680
- "method": "wmTagInputChanged",
681
- "name": "wmTagInputChanged",
682
- "bubbles": true,
683
- "cancelable": true,
684
- "composed": true,
685
- "docs": {
686
- "tags": [],
687
- "text": ""
688
- },
689
- "complexType": {
690
- "original": "{ value: string[] }",
691
- "resolved": "{ value: string[]; }",
692
- "references": {}
693
- }
694
- }]; }
695
- static get elementRef() { return "el"; }
696
- static get watchers() { return [{
697
- "propName": "tagsList",
698
- "methodName": "reflectSelectedTags"
699
- }]; }
700
- static get listeners() { return [{
701
- "name": "click",
702
- "method": "closeIfNotElOrChild",
703
- "target": "document",
704
- "capture": false,
705
- "passive": false
706
- }]; }
707
- }