@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,313 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-25b6e1c5.js';
2
- import { n as shouldShiftRight, g as generateId, l as shouldOpenUp, q as getTextDir } from './functions-60034bf7.js';
3
- import { g as getIconCodeFromName } from './interfaces-2b97fab2.js';
4
-
5
- const wmActionMenuCss = ":host{position:relative;display:inline-block;width:-moz-fit-content;width:fit-content;color:#575195;font-family:inherit}:host .sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}:host(:focus){outline:none}wm-action-menu:focus{outline:none}.dropdown{position:absolute;padding:0;margin:0.25rem 0;border-radius:3px 3px 3px 3px;min-width:11.4375rem;-ms-transform:scale(1, 0);-webkit-transform:scale(1, 0);-moz-transform:scale(1, 0);transform:scale(1, 0);-ms-transition:transform 0.25s ease;-webkit-transition:transform 0.25s ease;-moz-transition:transform 0.25s ease;transition:transform 0.25s ease;-ms-transform-origin:center top;-webkit-transform-origin:center top;-moz-transform-origin:center top;transform-origin:center top;visibility:hidden;-webkit-box-shadow:0 3px 14px 3px rgba(5, 3, 3, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);-moz-box-shadow:0 3px 14px 3px rgba(5, 3, 3, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);box-shadow:0 3px 14px 3px rgba(5, 3, 3, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);background:#fff;z-index:10;text-align:left;white-space:nowrap}.dropdown:focus{outline:none}.dropdown.open{-ms-transform:scale(1, 1);-webkit-transform:scale(1, 1);-moz-transform:scale(1, 1);transform:scale(1, 1);visibility:visible}.dropdown.open-up{bottom:2.5rem;top:auto;-ms-transform-origin:center bottom;-webkit-transform-origin:center bottom;-moz-transform-origin:center bottom;transform-origin:center bottom}.dropdown.right{left:0}.dropdown.left{right:0}";
6
-
7
- const ActionMenu = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.menuLoaded = createEvent(this, "menuLoaded", 7);
11
- this.openUp = false;
12
- this.isExpanded = false;
13
- this.buttonType = "icon";
14
- this.disabled = false;
15
- this.keysSoFar = "";
16
- this.searchIndex = 0;
17
- this.keyClear = null;
18
- }
19
- get horizontalPosition() {
20
- return !!this.el && !!this.itemsEl && shouldShiftRight(this.el, this.itemsEl) ? "right" : "left";
21
- }
22
- get childItems() {
23
- return Array.from(this.el.querySelectorAll("wm-menuitem"));
24
- }
25
- handleClickedItem() {
26
- this.close();
27
- }
28
- handleKeyUp(ev) {
29
- this.moveUp(ev.target);
30
- }
31
- handleKeyDown(ev) {
32
- this.moveDown(ev.detail);
33
- }
34
- handleHomeKey() {
35
- this.focusFirstItem();
36
- }
37
- handleEndKey() {
38
- this.focusLastItem();
39
- }
40
- handleTabKey() {
41
- if (this.isExpanded) {
42
- this.close();
43
- }
44
- }
45
- handleEscKey() {
46
- this.close();
47
- this.wmButtonEl.focus();
48
- }
49
- blurHandler(ev) {
50
- const isElOrChild = ev.target === this.el || this.el.contains(ev.target);
51
- if (!isElOrChild && this.isExpanded) {
52
- this.close();
53
- }
54
- }
55
- handleKey(ev) {
56
- switch (ev.key) {
57
- case "ArrowDown":
58
- if (!this.isExpanded) {
59
- ev.preventDefault();
60
- this.open();
61
- window.requestAnimationFrame(() => this.focusFirstItem());
62
- }
63
- break;
64
- case "ArrowUp":
65
- if (!this.isExpanded) {
66
- ev.preventDefault();
67
- this.open();
68
- window.requestAnimationFrame(() => this.focusLastItem());
69
- }
70
- break;
71
- }
72
- }
73
- componentWillLoad() {
74
- this.uid = this.el.id ? this.el.id : generateId();
75
- this.el.focus = function () {
76
- if (!this.disabled) {
77
- const button = this.shadowRoot.querySelector("wm-button");
78
- button && button.focus();
79
- }
80
- };
81
- }
82
- componentDidLoad() {
83
- if (this.childItems.length === 0) {
84
- console.error("wm-action-menu should have wm-menuitem elements as children");
85
- }
86
- else {
87
- this.focusFirstItem();
88
- }
89
- if (this.buttonType !== "icon" && !this.buttonText) {
90
- console.error("wm-action-menu should have a valid button-text property when button-type is set to 'text' or 'selector'");
91
- }
92
- if (this.buttonType === "icon" && !this.tooltip) {
93
- console.error("wm-action-menu should have a valid tooltip when button-type is set to 'icon'");
94
- }
95
- this.menuLoaded.emit();
96
- }
97
- moveUp(el) {
98
- const index = this.childItems.indexOf(el);
99
- if (index === 0) {
100
- this.focusLastItem();
101
- }
102
- else {
103
- this.focusItem(this.childItems[index - 1]);
104
- }
105
- }
106
- moveDown(el) {
107
- const index = this.childItems.indexOf(el);
108
- if (index === this.childItems.length - 1) {
109
- this.focusFirstItem();
110
- }
111
- else {
112
- this.focusItem(this.childItems[index + 1]);
113
- }
114
- }
115
- open() {
116
- if (!this.disabled) {
117
- this.openUp = shouldOpenUp(this.el, this.itemsEl);
118
- // action menu usually is on the right side of the screen,
119
- // so dropdown opens to the left (is anchored on the right corner)
120
- // if there is not enough space on the left and enough on the right though,
121
- // it will open on the right side
122
- this.isExpanded = true;
123
- this.itemsEl.classList.remove("hidden");
124
- window.requestAnimationFrame(() => this.focusFirstItem());
125
- }
126
- }
127
- close() {
128
- this.isExpanded = false;
129
- this.childItems.forEach((i) => (i.focused = false));
130
- window.setTimeout(() => {
131
- this.itemsEl.classList.add("hidden");
132
- }, 150);
133
- window.setTimeout(() => {
134
- // if dev omits to assign focus after an action is triggered,
135
- // the component brings the focus back on the button
136
- // Focus will only be lost (and go to the body) once the menuitem
137
- // is not visible anymore, so we need to wait for the transition to
138
- // finish and the hidden class to be applied.
139
- // also checking if focus stayed on the menuitem
140
- if (document.activeElement.tagName === "BODY" || document.activeElement.tagName === "WM-MENUITEM") {
141
- this.wmButtonEl.focus();
142
- }
143
- }, 250);
144
- }
145
- focusItem(item) {
146
- this.childItems.map((i) => (i.focused = i === item));
147
- item.focus && item.focus();
148
- }
149
- focusFirstItem() {
150
- this.focusItem(this.childItems[0]);
151
- }
152
- focusLastItem() {
153
- this.focusItem(this.childItems[this.childItems.length - 1]);
154
- }
155
- findAndFocusItem(ev) {
156
- const character = ev.detail.toUpperCase();
157
- this.focusFirstItem();
158
- if (!this.keysSoFar) {
159
- for (var i = 0; i < this.childItems.length; i++) {
160
- if (this.childItems[i] === document.activeElement) {
161
- this.searchIndex = i;
162
- }
163
- }
164
- }
165
- this.keysSoFar += character;
166
- this.clearKeysSoFarAfterDelay();
167
- var nextMatch = this.findMatchInRange(this.childItems, this.searchIndex + 1, this.childItems.length);
168
- if (!nextMatch) {
169
- nextMatch = this.findMatchInRange(this.childItems, 0, this.searchIndex);
170
- }
171
- if (nextMatch) {
172
- this.focusItem(nextMatch);
173
- }
174
- }
175
- clearKeysSoFarAfterDelay() {
176
- if (this.keyClear) {
177
- window.clearTimeout(this.keyClear);
178
- this.keyClear = null;
179
- }
180
- this.keyClear = window.setTimeout(function () {
181
- this.keysSoFar = "";
182
- this.keyClear = null;
183
- }.bind(this), 500);
184
- }
185
- findMatchInRange(list, startIndex, endIndex) {
186
- // Find the first item starting with the keysSoFar substring, searching in
187
- // the specified range of items
188
- for (var n = startIndex; n < endIndex; n++) {
189
- var label = list[n].innerText;
190
- if (label && label.toUpperCase().indexOf(this.keysSoFar) === 0) {
191
- return list[n];
192
- }
193
- }
194
- return null;
195
- }
196
- render() {
197
- return (h(Host, null, h("div", { class: getTextDir() }, h("wm-button", { "button-style": `${this.buttonType}only`, tooltip: this.tooltip, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.buttonType === "icon" ? "f1d9" : "", id: `menubtn-${this.uid}`, onClick: () => (this.isExpanded ? this.close() : this.open()), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": `menu-${this.uid}` }, this.buttonText), h("div", { class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: `menu-${this.uid}`, tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot", null)))));
198
- }
199
- get el() { return getElement(this); }
200
- };
201
- ActionMenu.style = wmActionMenuCss;
202
-
203
- const wmMenuitemCss = ":host,wm-menuitem{contain:content;font-family:inherit}:host .wrapper,wm-menuitem .wrapper{display:block;min-width:8.75rem;cursor:pointer;padding:1.25rem;border-radius:0px 0px 0px 0px;background:#fff;font-family:inherit;font-weight:500;list-style:none;border-bottom:2px solid rgba(46, 27, 70, 0.05);color:#575195;font-weight:700}:host .wrapper:focus,:host .wrapper.focus,wm-menuitem .wrapper:focus,wm-menuitem .wrapper.focus{outline:none;background:#f4f3f6}:host .wrapper:hover,wm-menuitem .wrapper:hover{background:#f4f3f6;outline:none}:host .wrapper .description,wm-menuitem .wrapper .description{color:#4a4a4a;font-size:0.875rem;padding-top:0.5rem;white-space:normal;font-weight:400}:host .wrapper[aria-disabled=true],wm-menuitem .wrapper[aria-disabled=true]{font-style:italic;color:#6b6b6b}:host .wrapper:not(:last-child),wm-menuitem .wrapper:not(:last-child){border-bottom:2px solid rgba(46, 27, 70, 0.05)}:host ::slotted,wm-menuitem ::slotted{font-family:inherit}:host .mdi,wm-menuitem .mdi{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;margin-right:0.625rem;pointer-events:none}:host(:focus),wm-menuitem:focus{outline:none;background:#f4f3f6}:host([aria-disabled=true]),wm-menuitem[aria-disabled=true]{pointer-events:none}";
204
-
205
- const Menuitem = class {
206
- constructor(hostRef) {
207
- registerInstance(this, hostRef);
208
- this.wmMenuitemClicked = createEvent(this, "wmMenuitemClicked", 7);
209
- this.wmKeyUpPressed = createEvent(this, "wmKeyUpPressed", 7);
210
- this.wmKeyDownPressed = createEvent(this, "wmKeyDownPressed", 7);
211
- this.wmEscKeyPressed = createEvent(this, "wmEscKeyPressed", 7);
212
- this.wmHomeKeyPressed = createEvent(this, "wmHomeKeyPressed", 7);
213
- this.wmEndKeyPressed = createEvent(this, "wmEndKeyPressed", 7);
214
- this.wmPageDownItems = createEvent(this, "wmPageDownItems", 7);
215
- this.wmPageUpItems = createEvent(this, "wmPageUpItems", 7);
216
- this.wmTabKeyPressed = createEvent(this, "wmTabKeyPressed", 7);
217
- this.wmLetterPressed = createEvent(this, "wmLetterPressed", 7);
218
- this.disabled = false;
219
- this.focused = false;
220
- this.icon = undefined;
221
- this.description = undefined;
222
- this.descriptionCharLimit = 100;
223
- this.isKeying = false;
224
- }
225
- toggleKeyingOn() {
226
- this.isKeying = true;
227
- }
228
- toggleKeyingOff() {
229
- this.isKeying = false;
230
- }
231
- handleKeydown(ev) {
232
- switch (ev.key) {
233
- case "ArrowUp":
234
- ev.preventDefault();
235
- this.wmKeyUpPressed.emit(this.el);
236
- break;
237
- case "ArrowDown":
238
- ev.preventDefault();
239
- this.wmKeyDownPressed.emit(this.el);
240
- break;
241
- case "Enter":
242
- ev.preventDefault();
243
- if (!this.disabled) {
244
- this.el.click();
245
- }
246
- break;
247
- case "Escape":
248
- ev.preventDefault();
249
- ev.stopPropagation(); // prevents closing of parent modal
250
- this.wmEscKeyPressed.emit();
251
- break;
252
- case "Home":
253
- ev.preventDefault();
254
- this.wmHomeKeyPressed.emit();
255
- break;
256
- case "End":
257
- ev.preventDefault();
258
- this.wmEndKeyPressed.emit();
259
- break;
260
- case "Tab":
261
- this.wmTabKeyPressed.emit();
262
- break;
263
- default:
264
- ev.preventDefault();
265
- this.wmLetterPressed.emit(ev.key);
266
- }
267
- }
268
- handleClick() {
269
- if (!this.disabled) {
270
- this.wmMenuitemClicked.emit();
271
- }
272
- }
273
- setOnClick() {
274
- if (this.disabled && this.el.onclick) {
275
- this.onClickFunc = this.el.onclick;
276
- this.el.onclick = null;
277
- }
278
- else if (!this.disabled && this.onClickFunc) {
279
- this.el.onclick = this.onClickFunc;
280
- }
281
- }
282
- componentWillLoad() {
283
- if (this.icon) {
284
- // in case a name was passed instead of a code, convert it to code (for backwards compatibility)
285
- this.icon = getIconCodeFromName(this.icon);
286
- }
287
- if (this.description) {
288
- if (this.description.length > this.descriptionCharLimit) {
289
- console.error(`wm-menuitem description is above the character limit of ${this.descriptionCharLimit}`);
290
- }
291
- if (this.icon) {
292
- console.error("wm-menuitems with descriptions do not support the use of icons");
293
- }
294
- }
295
- this.setOnClick();
296
- }
297
- componentDidLoad() {
298
- if (this.icon) {
299
- this.iconEl.classList.add("mdi");
300
- this.iconEl.innerHTML = `&#x${this.icon};`;
301
- }
302
- }
303
- render() {
304
- return (h(Host, { tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { class: `wrapper ${this.focused && this.isKeying ? "focus" : ""}`, "aria-disabled": this.disabled ? "true" : null }, h("span", { ref: (el) => (this.iconEl = el) }), h("slot", null), this.description ? h("div", { class: "description" }, this.description) : "")));
305
- }
306
- get el() { return getElement(this); }
307
- static get watchers() { return {
308
- "disabled": ["setOnClick"]
309
- }; }
310
- };
311
- Menuitem.style = wmMenuitemCss;
312
-
313
- export { ActionMenu as wm_action_menu, Menuitem as wm_menuitem };
@@ -1,148 +0,0 @@
1
- import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-25b6e1c5.js';
2
- import { g as getIconCodeFromName } from './interfaces-2b97fab2.js';
3
- import { a as adjustTooltipPosition, g as generateId } from './functions-60034bf7.js';
4
-
5
- const wmButtonCss = "@charset \"UTF-8\";:host .wm-button,wm-button .wm-button{-ms-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-moz-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;width:inherit;border:2px solid #575195;color:#575195;font-size:0.75rem;font-weight:700;height:2.75rem;padding:0 1.3333333333em;cursor:pointer;position:relative;background:#fff;display:flex;justify-content:center;align-items:center;text-decoration:none;text-transform:uppercase;letter-spacing:0.01875rem;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}@media screen and (min-width: 48rem){:host .wm-button,wm-button .wm-button{height:3.3333333333em}}:host .wm-button.nowrap,wm-button .wm-button.nowrap{display:inline-block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .wm-button:focus,wm-button .wm-button:focus{outline:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button::-moz-focus-inner,wm-button .wm-button::-moz-focus-inner{border:0;outline:none}:host .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled):not(.-primary):not(.-secondary):not(.-secondary):not(.-selectoronly) .button-text,wm-button .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled):not(.-primary):not(.-secondary):not(.-secondary):not(.-selectoronly) .button-text{background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled),wm-button .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled){-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark),wm-button .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark){-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark)::-moz-focus-inner,wm-button .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark)::-moz-focus-inner{border:0}:host .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled),wm-button .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled){background:transparent;border:2px solid #fff;color:#fff}:host .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled):hover,wm-button .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled):hover{color:#575195;background:#e6e6e6;border:2px solid #e6e6e6}:host .wm-button.dark.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled).dark,wm-button .wm-button.dark.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled).dark{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;outline:none}:host .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-actionbutton):not(.displayedoption),wm-button .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-actionbutton):not(.displayedoption){-ms-transform:scale(0.9, 0.9);-webkit-transform:scale(0.9, 0.9);-moz-transform:scale(0.9, 0.9);transform:scale(0.9, 0.9)}:host .wm-button:hover,wm-button .wm-button:hover{background:#464177;color:#fff}:host .wm-button .mdi,wm-button .wm-button .mdi{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button:not(.-icononly):not(.-navigational) .mdi,wm-button .wm-button:not(.-icononly):not(.-navigational) .mdi{margin-right:0.3125rem}:host .wm-button[dir=RTL] :not(.-icononly) .mdi,wm-button .wm-button[dir=RTL] :not(.-icononly) .mdi{margin-left:0.3125rem;margin-right:0}:host .wm-button.-primary:not(.-textonly),wm-button .wm-button.-primary:not(.-textonly){background:#575195;color:#fff}:host .wm-button.-primary:not(.-textonly):not(:focus),wm-button .wm-button.-primary:not(.-textonly):not(:focus){-webkit-box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);-moz-box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2)}:host .wm-button.-primary:not(.-textonly):hover,wm-button .wm-button.-primary:not(.-textonly):hover{background:#464177}:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled),wm-button .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled){color:#575195;background:#fff;border:2px solid #fff}:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled):hover,wm-button .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled):hover{color:#575195;background:#e6e6e6;border:2px solid #e6e6e6}:host .wm-button.-textonly,wm-button .wm-button.-textonly{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;display:inline-block;letter-spacing:0;text-transform:none;text-align:initial;font-size:0.875rem;border:none;background:transparent;padding-left:0;padding-right:0;height:auto;border-radius:0;line-height:1}:host .wm-button.-textonly+.-textonly,wm-button .wm-button.-textonly+.-textonly{margin-left:0.3125rem}:host .wm-button.-textonly:focus,wm-button .wm-button.-textonly:focus{outline:none}:host .wm-button.-textonly::-moz-focus-inner,wm-button .wm-button.-textonly::-moz-focus-inner{border:0;outline:none}:host .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled) .button-text,wm-button .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled) .button-text{background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled).dark .button-text,wm-button .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled).dark .button-text{background:linear-gradient(90deg, #fff 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.-textonly.small,wm-button .wm-button.-textonly.small{font-size:0.625rem}:host .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete),wm-button .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete){text-decoration:underline;color:#454077}:host .wm-button.-textonly.-permanentlydelete,wm-button .wm-button.-textonly.-permanentlydelete{color:#c0392b}:host .wm-button.-textonly.-permanentlydelete:hover,wm-button .wm-button.-textonly.-permanentlydelete:hover{text-decoration:underline;color:#c0392b !important}:host .wm-button.-textonly.dark,wm-button .wm-button.-textonly.dark{color:#fff}:host .wm-button.-textonly.dark:hover,wm-button .wm-button.-textonly.dark:hover{text-decoration:underline;color:#fff !important}:host .wm-button.-icononly,wm-button .wm-button.-icononly,:host .wm-button.-navigational,wm-button .wm-button.-navigational{-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;font-size:1rem;padding:0;height:auto;line-height:1;min-width:2.75rem;min-height:2.75rem;text-align:center;letter-spacing:normal}:host .wm-button.-icononly:not(:focus),wm-button .wm-button.-icononly:not(:focus),:host .wm-button.-navigational:not(:focus),wm-button .wm-button.-navigational:not(:focus){-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}@media screen and (min-width: 48rem){:host .wm-button.-icononly,wm-button .wm-button.-icononly,:host .wm-button.-navigational,wm-button .wm-button.-navigational{min-width:2.5rem;min-height:2.5rem}}:host .wm-button.-icononly,wm-button .wm-button.-icononly{border-width:1px !important}:host .wm-button.-icononly:before,wm-button .wm-button.-icononly:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button.-navigational,wm-button .wm-button.-navigational{border:none !important;background-color:transparent}:host .wm-button.-navigational:not(.dark):not(:disabled),wm-button .wm-button.-navigational:not(.dark):not(:disabled){color:#575195}:host .wm-button.-navigational:not(.dark):not(:disabled):hover,wm-button .wm-button.-navigational:not(.dark):not(:disabled):hover,:host .wm-button.-navigational:not(.dark):not(:disabled).selected,wm-button .wm-button.-navigational:not(.dark):not(:disabled).selected{background-color:#d7d6d9}:host .wm-button.-navigational:before,wm-button .wm-button.-navigational:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button.-permanentlydelete:not(.-textonly),wm-button .wm-button.-permanentlydelete:not(.-textonly){background:#c0392b;border-color:#c0392b;color:#fff}:host .wm-button.-selectoronly,wm-button .wm-button.-selectoronly{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;display:block;background:transparent;border:1px solid #575195;border-radius:3px 3px 3px 3px;height:2.75rem;min-width:11.4375rem;padding:0 1.875rem 0 0.9375rem;line-height:normal;font-family:inherit;color:#575195;font-weight:500;font-size:0.875rem;text-transform:none;letter-spacing:0.01875rem;text-align:left}@media screen and (min-width: 48rem){:host .wm-button.-selectoronly,wm-button .wm-button.-selectoronly{height:2.5rem}}:host .wm-button.-selectoronly:before,wm-button .wm-button.-selectoronly:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:\"\";position:absolute;right:0.5625rem;top:50%;transform:translateY(-50%);pointer-events:none}:host .wm-button.-selectoronly:hover:not(:disabled):not(.disabled),wm-button .wm-button.-selectoronly:hover:not(:disabled):not(.disabled){background:transparent;text-decoration:none}:host .wm-button.-selectoronly:active,wm-button .wm-button.-selectoronly:active{-ms-transform:scale(1, 1) !important;transform:scale(1, 1) !important}:host .wm-button.-selectoronly::-moz-focus-inner,wm-button .wm-button.-selectoronly::-moz-focus-inner{border:0}:host .wm-button.-selectoronly .overflowcontrol,wm-button .wm-button.-selectoronly .overflowcontrol{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:visible}:host .wm-button:disabled,wm-button .wm-button:disabled,:host .wm-button.disabled,wm-button .wm-button.disabled{background:inherit;border-color:#737373;color:#737373;cursor:default;pointer-events:none}:host .wm-button:disabled.dark,wm-button .wm-button:disabled.dark,:host .wm-button.disabled.dark,wm-button .wm-button.disabled.dark{color:#a6a6a6;border-color:#a6a6a6}:host .wm-button:disabled.-primary,wm-button .wm-button:disabled.-primary,:host .wm-button:disabled.-permanentlydelete,wm-button .wm-button:disabled.-permanentlydelete,:host .wm-button.disabled.-primary,wm-button .wm-button.disabled.-primary,:host .wm-button.disabled.-permanentlydelete,wm-button .wm-button.disabled.-permanentlydelete{background:#737373;color:#fff;border-color:#737373}:host .wm-button:disabled.-primary.dark,wm-button .wm-button:disabled.-primary.dark,:host .wm-button.disabled.-primary.dark,wm-button .wm-button.disabled.-primary.dark{background:#a6a6a6;border-color:#a6a6a6;color:#353b48}:host .wm-button:disabled.-secondary,wm-button .wm-button:disabled.-secondary,:host .wm-button.disabled.-secondary,wm-button .wm-button.disabled.-secondary{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button:disabled.-selectoronly,wm-button .wm-button:disabled.-selectoronly,:host .wm-button.disabled.-selectoronly,wm-button .wm-button.disabled.-selectoronly{color:#737373}:host .wm-button:disabled.-textonly,wm-button .wm-button:disabled.-textonly,:host .wm-button.disabled.-textonly,wm-button .wm-button.disabled.-textonly{color:#6b6b6b;background:transparent}:host a.wm-button,wm-button a.wm-button,:host label.wm-button,wm-button label.wm-button{height:auto;padding-top:0.75rem;padding-bottom:0.75rem}:host([disabled]),:host(.button-disabled){pointer-events:none}:host,wm-button{display:inline-block;position:relative;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .sr-only,wm-button .sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}:host .tooltip,wm-button .tooltip{position:absolute;overflow:hidden;pointer-events:none;line-height:normal;font-family:inherit;font-size:0.875rem;text-transform:none;font-weight:normal;background:black;color:#fff;z-index:999999999;white-space:nowrap;opacity:1;transition:opacity 500ms 500ms;padding:0.375rem}:host .tooltip.hidden,wm-button .tooltip.hidden{opacity:0;transition-delay:0s}:host .tooltip.top,wm-button .tooltip.top{right:auto;left:50%;transform:translateX(-50%);bottom:2.9375rem}:host .tooltip.bottom,wm-button .tooltip.bottom{right:auto;left:50%;transform:translateX(-50%);top:2.9375rem}:host .tooltip.left,wm-button .tooltip.left{top:0.375rem;right:3rem}:host .tooltip.right,wm-button .tooltip.right{top:0.375rem;left:3rem}:host .tooltip.bottom-left,wm-button .tooltip.bottom-left{left:auto;right:2.75rem}:host .tooltip.bottom-right,wm-button .tooltip.bottom-right{top:2.75rem;left:2.75rem}:host .tooltip.top-right,wm-button .tooltip.top-right{bottom:2.75rem;left:2.75rem}:host .tooltip.top-left,wm-button .tooltip.top-left{bottom:2.75rem;left:auto;right:2.75rem}";
6
-
7
- const Button = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- // icon and tooltip have reflect set to true. Without reflect, the react wrappers don't expose the attribute
11
- // and the component throws errors when they are required (when buttonStyle is icononly or navigational)
12
- this.disabled = false;
13
- this.buttonStyle = "secondary";
14
- this.tooltipPosition = "bottom-right";
15
- this.adjustedTooltipPosition = this.tooltipPosition;
16
- this.permanentlyDelete = false;
17
- this.textWrap = true;
18
- this.isTabbing = false;
19
- this.clickFunc = null;
20
- this.ariaPopup = false;
21
- }
22
- get isTruncated() {
23
- return !!this.buttonEl && this.buttonEl.offsetWidth < this.buttonEl.scrollWidth;
24
- }
25
- toggleTabbingOn() {
26
- this.isTabbing = true;
27
- }
28
- toggleTabbingOff() {
29
- this.isTabbing = false;
30
- }
31
- handleOnClick() {
32
- // remove the onlick function when the component is disabled,
33
- // to handle a bug in Edge 42 where the function would run
34
- this.el.onclick = this.disabled ? null : this.clickFunc;
35
- }
36
- validateStyle(newValue) {
37
- const valid = ["primary", "secondary", "textonly", "icononly", "navigational", "selectoronly"].includes(newValue);
38
- if (!valid) {
39
- this.buttonStyle = "secondary";
40
- }
41
- this.validateIcon();
42
- }
43
- updateIcon() {
44
- this.icon = getIconCodeFromName(this.icon);
45
- }
46
- validateIcon() {
47
- // if the style is icononly or navigational...
48
- if (this.buttonStyle === "icononly" || this.buttonStyle === "navigational") {
49
- // - an icon must be provided
50
- if (!this.icon) {
51
- console.error("wm-button should have a valid 'icon' property when button-style is set to 'icononly' or 'navigational'.");
52
- }
53
- // - if no tooltip text was passed and we couldn't generate one, throw an error
54
- if (!this.tooltip) {
55
- console.error("wm-button should have a valid 'tooltip' property when button-style is set to 'icononly' or 'navigational'.");
56
- }
57
- }
58
- }
59
- handleKeydown(ev) {
60
- switch (ev.key) {
61
- case "Enter":
62
- ev.preventDefault();
63
- if (!this.disabled) {
64
- this.el.click();
65
- }
66
- break;
67
- }
68
- }
69
- componentWillLoad() {
70
- this.validateStyle(this.buttonStyle);
71
- // replacing the prototype's focus event by our own
72
- // to delegate focus to the appropriate el in the shadow root
73
- // we could replace by ShadowRoot.delegatesFocus()
74
- // when there's enough support for it
75
- // @ts-ignore
76
- this.el.focus = function () {
77
- if (!this.disabled) {
78
- this.shadowRoot.querySelector("button").focus();
79
- }
80
- };
81
- if (this.icon) {
82
- this.icon = this.icon = getIconCodeFromName(this.icon);
83
- }
84
- }
85
- componentDidLoad() {
86
- // store a reference of the onclick function if there is one
87
- // so we can remove it when the button is disabled
88
- // (to handle a bug in Edge 42)
89
- if (this.el.onclick) {
90
- this.clickFunc = this.el.onclick;
91
- }
92
- // this.handleOnClick();
93
- if (document.body.classList.contains("wmcl-user-is-tabbing")) {
94
- this.toggleTabbingOn();
95
- }
96
- this.ariaPopup = !!this.el.getAttribute("aria-haspopup");
97
- forceUpdate(this.el); // originally here to renderTooltip(), now necessary to pass text-truncation tooltip test
98
- }
99
- showTooltip() {
100
- // Because a :hover pseudoclass would apply before the tooltip is repositioned, hover styles must be applied through a class
101
- // Otherwise, the tooltip will flash on-screen and possibly create scrollbars
102
- if (!!this.tooltipEl) {
103
- this.adjustedTooltipPosition = adjustTooltipPosition(this.tooltipPosition, this.el, this.tooltipEl);
104
- this.tooltipEl.classList.remove("hidden");
105
- }
106
- }
107
- hideTooltip() {
108
- if (!!this.tooltipEl) {
109
- this.tooltipEl.classList.add("hidden");
110
- }
111
- }
112
- renderTooltip() {
113
- // tooltip is only rendered for icononly and navigational types, or if the button text is truncated
114
- if (this.buttonStyle === "icononly" || this.buttonStyle === "navigational" || this.isTruncated) {
115
- return (h("div", { ref: (el) => (this.tooltipEl = el), "aria-hidden": "true", class: `tooltip hidden ${this.adjustedTooltipPosition}` }, this.isTruncated ? this.el.textContent : this.tooltip));
116
- }
117
- }
118
- getClasses() {
119
- let classes = "wm-button";
120
- classes += this.permanentlyDelete ? " -permanentlydelete" : "";
121
- classes += this.buttonStyle ? " -" + this.buttonStyle : " -secondary";
122
- classes += this.textWrap ? "" : " nowrap";
123
- classes += this.isTabbing ? " user-is-tabbing" : "";
124
- classes += this.isTruncated ? " -truncated" : "";
125
- classes += this.customBackground === "dark" ? " dark" : "";
126
- return classes;
127
- }
128
- getAriaLabel() {
129
- if (this.buttonStyle === "icononly" || this.buttonStyle === "navigational") {
130
- return this.labelForIdenticalButtons ? this.labelForIdenticalButtons : this.tooltip;
131
- }
132
- if (this.labelForIdenticalButtons) {
133
- return this.labelForIdenticalButtons;
134
- }
135
- }
136
- render() {
137
- return (h(Host, { class: this.disabled ? "button-disabled" : "" }, h("button", { id: generateId(), class: `${this.getClasses()}`, disabled: this.disabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: () => this.showTooltip(), onMouseLeave: () => this.hideTooltip(), onFocus: () => this.showTooltip(), onBlur: () => this.hideTooltip(), onClick: () => this.hideTooltip() }, this.icon && (h("span", { class: "mdi", style: this.iconSize ? { fontSize: this.iconSize } : {} }, String.fromCodePoint(parseInt(`0x${this.icon}`)))), h("span", { class: "button-text" }, h("slot", null))), this.renderTooltip()));
138
- }
139
- get el() { return getElement(this); }
140
- static get watchers() { return {
141
- "disabled": ["handleOnClick"],
142
- "buttonStyle": ["validateStyle"],
143
- "icon": ["updateIcon"]
144
- }; }
145
- };
146
- Button.style = wmButtonCss;
147
-
148
- export { Button as wm_button };
@@ -1,18 +0,0 @@
1
- import { r as registerInstance, c as createEvent } from './index-25b6e1c5.js';
2
-
3
- const ChartSlice = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.wmChartSliceUpdated = createEvent(this, "wmChartSliceUpdated", 7);
7
- }
8
- componentDidLoad() {
9
- if (parseInt(this.amount) > 0 && !this.legend) {
10
- throw new Error("wm-chart-slice was provided an amount value without a legend. The legend is required unless the amount is 0 or left empty. For more information see https://components.watermarkinsights.com/chart");
11
- }
12
- }
13
- componentDidUpdate() {
14
- this.wmChartSliceUpdated.emit();
15
- }
16
- };
17
-
18
- export { ChartSlice as wm_chart_slice };