@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,78 +0,0 @@
1
- /* --------------------------------------
2
- 1. Box-shadow
3
- -------------------------------------- */
4
- /* --------------------------------------
5
- 2. Border-radius
6
- -------------------------------------- */
7
- /* --------------------------------------
8
- 3. Transforms
9
- -------------------------------------- */
10
- /* --------------------------------------
11
- 4. Button Focus
12
- -------------------------------------- */
13
- /* --------------------------------------
14
- 5. Flex
15
- -------------------------------------- */
16
- /* --------------------------------------
17
- 6. Button Hover
18
- -------------------------------------- */
19
- /* --------------------------------------
20
- 7. Screen Reader Only
21
- -------------------------------------- */
22
- /* --------------------------------------
23
- 8. Label styles
24
- this mixin includes all the styles for the label
25
- + flex rules on the parent container to switch between top and left position
26
- + srOnly when label is hidden
27
- Assumes the following markup:
28
- div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
29
- .wrapper is for the flex rules
30
- .label-wrapper is to set the height of the label when positioned left so it's the same height as
31
- the input. It can't be done directly on .label because of possible line wrapping.
32
- When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
33
- (they can't be aligned on the baseline because of possible description text and error message)
34
- -------------------------------------- */
35
- /********************************************************************************************/
36
- /* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
37
- /********************************************************************************************/
38
- /* USAGE */
39
- /* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
40
- /* TODO: replace with vars above whenever possible */
41
- /* Buttons */
42
- /* VIA */
43
- wm-modal-header {
44
- -webkit-border-radius: 5px 5px 0 0px;
45
- -moz-border-radius: 5px 5px 0 0px;
46
- -ms-border-radius: 5px 5px 0 0px;
47
- border-radius: 5px 5px 0 0px;
48
- margin-bottom: -1px;
49
- }
50
- wm-modal-header .wm-wrapper {
51
- display: -webkit-box;
52
- display: -webkit-flex;
53
- display: -ms-flexbox;
54
- display: flex;
55
- -webkit-box-pack: justify;
56
- -ms-flex-pack: justify;
57
- -webkit-justify-content: space-between;
58
- justify-content: space-between;
59
- -webkit-box-align: center;
60
- -webkit-align-items: center;
61
- -ms-flex-align: center;
62
- align-items: center;
63
- }
64
- wm-modal-header .wm-wrapper .title {
65
- margin: 0;
66
- font-weight: 600;
67
- font-size: 1.125rem;
68
- color: #4a4a4a;
69
- line-height: normal;
70
- }
71
- wm-modal-header .wm-wrapper .title .subtitle {
72
- display: block;
73
- font-size: 0.875rem;
74
- font-weight: normal;
75
- }
76
- wm-modal-header .wm-wrapper .title:focus {
77
- outline: none;
78
- }
@@ -1,109 +0,0 @@
1
- import { h, Component, Element, Prop, Host, Listen } from "@stencil/core";
2
- import { intl, checkForFocusableElInShadow } from "../../global/functions";
3
- export class ModalHeader {
4
- constructor() {
5
- this.heading = "";
6
- this.subheading = "";
7
- this.closeTooltip = intl.formatMessage({
8
- id: "global.closeVerb",
9
- defaultMessage: "Close",
10
- description: "For a button, to close a user interface element",
11
- });
12
- }
13
- //Trap focus when user tabs past last element in modal
14
- focusFirstEl() {
15
- checkForFocusableElInShadow(this.firstElement).focus();
16
- }
17
- componentWillLoad() {
18
- this.uid = this.el.parentElement.uid;
19
- }
20
- emitParentCloseEvent() {
21
- const parentModal = this.el.parentElement;
22
- //@ts-ignore
23
- parentModal.emitCloseEvent();
24
- }
25
- // @Listen("click")
26
- // directFocusOnClick() {
27
- // this.headingElement.tabIndex = 0;
28
- // this.headingElement.focus();
29
- // }
30
- render() {
31
- return (h(Host, null,
32
- h("div", { class: "wm-wrapper" },
33
- h("div", null,
34
- h("h2", { class: "title", id: `wm-modal-heading-text-${this.uid}` },
35
- this.heading,
36
- h("span", { class: "subtitle" }, this.subheading))),
37
- h("wm-button", { "button-style": "navigational", icon: "f156", tooltip: this.closeTooltip, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.firstElement = el), onClick: () => this.emitParentCloseEvent() }))));
38
- }
39
- static get is() { return "wm-modal-header"; }
40
- static get originalStyleUrls() { return {
41
- "$": ["wm-modal-header.scss"]
42
- }; }
43
- static get styleUrls() { return {
44
- "$": ["wm-modal-header.css"]
45
- }; }
46
- static get properties() { return {
47
- "uid": {
48
- "type": "string",
49
- "mutable": true,
50
- "complexType": {
51
- "original": "string",
52
- "resolved": "string",
53
- "references": {}
54
- },
55
- "required": true,
56
- "optional": false,
57
- "docs": {
58
- "tags": [],
59
- "text": ""
60
- },
61
- "attribute": "uid",
62
- "reflect": false
63
- },
64
- "heading": {
65
- "type": "string",
66
- "mutable": false,
67
- "complexType": {
68
- "original": "string",
69
- "resolved": "string | undefined",
70
- "references": {}
71
- },
72
- "required": false,
73
- "optional": true,
74
- "docs": {
75
- "tags": [],
76
- "text": ""
77
- },
78
- "attribute": "heading",
79
- "reflect": true,
80
- "defaultValue": "\"\""
81
- },
82
- "subheading": {
83
- "type": "string",
84
- "mutable": false,
85
- "complexType": {
86
- "original": "string",
87
- "resolved": "string | undefined",
88
- "references": {}
89
- },
90
- "required": false,
91
- "optional": true,
92
- "docs": {
93
- "tags": [],
94
- "text": ""
95
- },
96
- "attribute": "subheading",
97
- "reflect": true,
98
- "defaultValue": "\"\""
99
- }
100
- }; }
101
- static get elementRef() { return "el"; }
102
- static get listeners() { return [{
103
- "name": "focusFirstElement",
104
- "method": "focusFirstEl",
105
- "target": "document",
106
- "capture": false,
107
- "passive": false
108
- }]; }
109
- }
@@ -1,155 +0,0 @@
1
- /* --------------------------------------
2
- 1. Box-shadow
3
- -------------------------------------- */
4
- /* --------------------------------------
5
- 2. Border-radius
6
- -------------------------------------- */
7
- /* --------------------------------------
8
- 3. Transforms
9
- -------------------------------------- */
10
- /* --------------------------------------
11
- 4. Button Focus
12
- -------------------------------------- */
13
- /* --------------------------------------
14
- 5. Flex
15
- -------------------------------------- */
16
- /* --------------------------------------
17
- 6. Button Hover
18
- -------------------------------------- */
19
- /* --------------------------------------
20
- 7. Screen Reader Only
21
- -------------------------------------- */
22
- /* --------------------------------------
23
- 8. Label styles
24
- this mixin includes all the styles for the label
25
- + flex rules on the parent container to switch between top and left position
26
- + srOnly when label is hidden
27
- Assumes the following markup:
28
- div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
29
- .wrapper is for the flex rules
30
- .label-wrapper is to set the height of the label when positioned left so it's the same height as
31
- the input. It can't be done directly on .label because of possible line wrapping.
32
- When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
33
- (they can't be aligned on the baseline because of possible description text and error message)
34
- -------------------------------------- */
35
- /********************************************************************************************/
36
- /* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
37
- /********************************************************************************************/
38
- /* USAGE */
39
- /* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
40
- /* TODO: replace with vars above whenever possible */
41
- /* Buttons */
42
- /* VIA */
43
- wm-modal {
44
- display: -webkit-box;
45
- display: -webkit-flex;
46
- display: -ms-flexbox;
47
- display: flex;
48
- -webkit-box-pack: center;
49
- -ms-flex-pack: center;
50
- -webkit-justify-content: center;
51
- justify-content: center;
52
- -webkit-box-align: center;
53
- -webkit-align-items: center;
54
- -ms-flex-align: center;
55
- align-items: center;
56
- flex-direction: column;
57
- position: fixed;
58
- top: 50%;
59
- left: 50%;
60
- transform: translate(-50%, -50%);
61
- z-index: 2001;
62
- width: 80vw;
63
- max-width: 750px;
64
- max-height: 80vh;
65
- -webkit-box-shadow: 0px 11px 15px 0px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);
66
- -moz-box-shadow: 0px 11px 15px 0px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);
67
- box-shadow: 0px 11px 15px 0px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);
68
- }
69
- wm-modal * {
70
- box-sizing: border-box;
71
- }
72
- wm-modal > * {
73
- width: 80vw;
74
- max-width: 750px;
75
- background: #fff;
76
- }
77
- wm-modal > *:focus {
78
- outline: none;
79
- }
80
- wm-modal wm-modal-header,
81
- wm-modal wm-modal-footer {
82
- padding: 1.25rem 1.875rem;
83
- }
84
- wm-modal wm-modal-header {
85
- z-index: 2003;
86
- }
87
- wm-modal wm-modal-footer {
88
- z-index: 2003;
89
- }
90
- wm-modal > :not(wm-modal-header):not(wm-modal-footer) {
91
- max-height: calc(80vh - 166px);
92
- z-index: 2002;
93
- }
94
- wm-modal.wm-modal wm-modal-header {
95
- border-bottom: 1px solid #f4f3f6;
96
- }
97
- wm-modal.wm-modal wm-modal-footer {
98
- border-top: 1px solid #f4f3f6;
99
- }
100
- @media only screen and (max-width: 768px) {
101
- wm-modal.wm-modal {
102
- height: 100%;
103
- max-height: none;
104
- max-width: none;
105
- width: 100vw;
106
- }
107
- wm-modal.wm-modal > * {
108
- max-width: none;
109
- width: 100vw;
110
- }
111
- wm-modal.wm-modal > *:not(wm-modal-header):not(wm-modal-footer) {
112
- max-height: none;
113
- height: calc(100vh - 166px);
114
- }
115
- }
116
- wm-modal.wm-dialog > :not(wm-modal-header):not(wm-modal-footer) {
117
- padding: 0 1.875rem 1.25rem 1.875rem;
118
- font-size: 0.875rem;
119
- border: none;
120
- }
121
- wm-modal .overlay {
122
- width: 100vw;
123
- height: 100vh;
124
- max-width: none;
125
- max-height: none;
126
- position: fixed !important;
127
- top: -1;
128
- bottom: 1;
129
- left: -1;
130
- right: 1;
131
- transform: translate(0%, 0%);
132
- background-color: rgba(25, 25, 25, 0.4);
133
- -ms-transition: opacity 0.5s ease-out;
134
- -webkit-transition: opacity 0.5s ease-out;
135
- -moz-transition: opacity 0.5s ease-out;
136
- transition: opacity 0.5s ease-out;
137
- z-index: 2000;
138
- }
139
- wm-modal.hide {
140
- visibility: hidden;
141
- }
142
- wm-modal .sr-only {
143
- position: absolute !important;
144
- width: 1px !important;
145
- height: 1px !important;
146
- padding: 0 !important;
147
- border: 0 !important;
148
- overflow: hidden !important;
149
- clip: rect(0, 0, 0, 0) !important;
150
- clip-path: inset(50%) !important;
151
- white-space: nowrap !important;
152
- margin: -1px !important;
153
- top: 0;
154
- left: 0;
155
- }
@@ -1,356 +0,0 @@
1
- import { h, Component, Element, Listen, Host, Prop, Watch, Event, Method } from "@stencil/core";
2
- import { getFirstFocusableDescendant, checkForActiveElInShadow } from "../../global/functions";
3
- import { generateId } from "../../global/functions";
4
- export class Modal {
5
- constructor() {
6
- this.isOpen = false;
7
- this.elementToFocus = "";
8
- this.isTypeDialog = false;
9
- this.bodyFocusListener = () => this.redirectFocusOnBody();
10
- }
11
- //App can open modal by toggling the prop
12
- toggleModal() {
13
- this.isOpen ? this.showModal() : this.hideModal();
14
- }
15
- //The below not implemented in light of the fact that the app does often need to keep track of the modal's state itself so that it can update the data displayed in the body:
16
- //App can also open modal by emitting wmShowModal event. Event needs to include the modal's unique id as the event detail, or else all modals on the page will open when wmShowModal event is dispatched.
17
- // @Listen("wmShowModal", { target: "window" })
18
- // doesEventMatchId(ev: CustomEvent) {
19
- // ev.detail === this.uid && this.showModal();
20
- // }
21
- showModal() {
22
- this.setElToFocusOnClose(); //Record where the user was before the modal opened so that focus can return to it when the modal closes
23
- document.body.style.overflow = "hidden"; //Keeps the page below the modal from scrolling
24
- //Focus listeners as a general catch for keeping focus in case of errors in finding element with id passed in by dev (element is removed from DOM, etc.) or other scenarios
25
- document.body.tabIndex = 0;
26
- document.body.removeEventListener("focus", this.bodyFocusListener, true);
27
- document.body.addEventListener("focus", this.bodyFocusListener, true);
28
- window.requestAnimationFrame(() => {
29
- this.setElToFocusOnOpen();
30
- window.requestAnimationFrame(() => this.focusOnOpen.focus()); //Bring focus to element inside modal
31
- });
32
- }
33
- handleClick(ev) {
34
- this.isOpen && ev.target === this.overlayEl && this.focusOnOpen.focus();
35
- }
36
- closeModalOnEscape(ev) {
37
- if (ev.key === "Escape") {
38
- this.wmCloseTriggered.emit();
39
- this.isOpen = false;
40
- }
41
- }
42
- //Close the modal and focus the triggering element when the modal buttons emit their events
43
- hideModal() {
44
- document.body.style.overflow = "visible";
45
- document.body.tabIndex = -1;
46
- document.body.removeEventListener("focus", this.bodyFocusListener, true);
47
- window.requestAnimationFrame(() => this.focusOnClose.focus()); //Return focus
48
- }
49
- componentWillLoad() {
50
- if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
51
- if (!this.el.id) {
52
- throw new Error("You are telling the modal to focus an element in the footer when it opens. That's fine! But when you do that, you also need to give the wm-modal-wrapper an ID and set the ID of the modal body to 'content-[id of wm-modal-wrapper]. This is for accessibility purposes.");
53
- }
54
- }
55
- this.uid = this.el.id ? this.el.id : generateId();
56
- }
57
- componentDidLoad() {
58
- if (this.isOpen) {
59
- this.showModal();
60
- }
61
- }
62
- async emitCloseEvent() {
63
- this.wmCloseTriggered.emit();
64
- }
65
- async emitPrimaryEvent() {
66
- this.wmPrimaryTriggered.emit();
67
- }
68
- async emitSecondaryEvent() {
69
- this.wmSecondaryTriggered.emit();
70
- }
71
- //If the dev hasn't specified an element to focus, element to focus first will be the close (X) button
72
- setElToFocusOnOpen() {
73
- const closeBtn = getFirstFocusableDescendant(this.el.querySelector(`#wm-modal-close-${this.uid}`));
74
- if (this.elementToFocus) {
75
- if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
76
- this.setAriaDescribedbyOnModal();
77
- this.elementToFocus = `wm-${this.elementToFocus}-${this.uid}`;
78
- }
79
- const elToFocus = this.el.querySelector(`#${this.elementToFocus}`);
80
- if (elToFocus) {
81
- const firstEl = getFirstFocusableDescendant(elToFocus);
82
- if (firstEl) {
83
- this.focusOnOpen = firstEl;
84
- }
85
- else {
86
- console.warn("Ripple Component Library: The modal component couldn't find an element matching the value you passed for 'elementToFocus'. It will fall back to the default and focus the close button when the modal opens.");
87
- this.focusOnOpen = closeBtn;
88
- }
89
- }
90
- else {
91
- console.warn("Ripple Component Library: The modal component couldn't find an element matching the value you passed for 'elementToFocus'. It will fall back to the default and focus the close button when the modal opens.");
92
- this.focusOnOpen = closeBtn;
93
- }
94
- }
95
- else {
96
- this.focusOnOpen = closeBtn;
97
- }
98
- }
99
- setAriaDescribedbyOnModal() {
100
- const modalBody = document.getElementById(`content-${this.uid}`);
101
- if (!modalBody) {
102
- console.warn("Ripple Component Library: The element containing the body of the modal must include an id in the format 'content-[id of modal]' for accessibility purposes.");
103
- }
104
- else {
105
- this.el.setAttribute("aria-describedby", `wm-modal-heading-text-${this.uid} content-${this.uid}`);
106
- }
107
- }
108
- setElToFocusOnClose() {
109
- const elToFocus = document.activeElement;
110
- if (elToFocus.tagName === "WM-MENUITEM") {
111
- this.focusOnClose = elToFocus.parentElement;
112
- }
113
- else {
114
- this.focusOnClose = checkForActiveElInShadow(elToFocus);
115
- }
116
- }
117
- redirectFocusOnBody() {
118
- if (document.activeElement.tagName === "BODY") {
119
- this.setElToFocusOnOpen();
120
- this.focusOnOpen.focus();
121
- }
122
- }
123
- render() {
124
- return (h(Host, { class: (this.isOpen ? "" : "hide ") + (this.isTypeDialog ? "wm-dialog" : "wm-modal"), role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.isOpen ? 0 : null, onFocus: () => {
125
- this.focusLastElement.emit();
126
- } },
127
- h("div", { class: "overlay", ref: (el) => (this.overlayEl = el) }),
128
- h("div", { class: "sr-only", tabIndex: 0, onFocus: () => {
129
- this.focusFirstElement.emit();
130
- } })));
131
- }
132
- static get is() { return "wm-modal"; }
133
- static get originalStyleUrls() { return {
134
- "$": ["wm-modal.scss"]
135
- }; }
136
- static get styleUrls() { return {
137
- "$": ["wm-modal.css"]
138
- }; }
139
- static get properties() { return {
140
- "isOpen": {
141
- "type": "boolean",
142
- "mutable": true,
143
- "complexType": {
144
- "original": "boolean",
145
- "resolved": "boolean",
146
- "references": {}
147
- },
148
- "required": false,
149
- "optional": false,
150
- "docs": {
151
- "tags": [],
152
- "text": ""
153
- },
154
- "attribute": "is-open",
155
- "reflect": true,
156
- "defaultValue": "false"
157
- },
158
- "elementToFocus": {
159
- "type": "string",
160
- "mutable": true,
161
- "complexType": {
162
- "original": "string",
163
- "resolved": "string",
164
- "references": {}
165
- },
166
- "required": false,
167
- "optional": false,
168
- "docs": {
169
- "tags": [],
170
- "text": ""
171
- },
172
- "attribute": "element-to-focus",
173
- "reflect": false,
174
- "defaultValue": "\"\""
175
- },
176
- "isTypeDialog": {
177
- "type": "boolean",
178
- "mutable": false,
179
- "complexType": {
180
- "original": "boolean",
181
- "resolved": "boolean",
182
- "references": {}
183
- },
184
- "required": false,
185
- "optional": false,
186
- "docs": {
187
- "tags": [],
188
- "text": ""
189
- },
190
- "attribute": "is-type-dialog",
191
- "reflect": true,
192
- "defaultValue": "false"
193
- },
194
- "uid": {
195
- "type": "string",
196
- "mutable": true,
197
- "complexType": {
198
- "original": "string",
199
- "resolved": "string",
200
- "references": {}
201
- },
202
- "required": true,
203
- "optional": false,
204
- "docs": {
205
- "tags": [],
206
- "text": ""
207
- },
208
- "attribute": "uid",
209
- "reflect": true
210
- }
211
- }; }
212
- static get events() { return [{
213
- "method": "focusLastElement",
214
- "name": "focusLastElement",
215
- "bubbles": true,
216
- "cancelable": true,
217
- "composed": true,
218
- "docs": {
219
- "tags": [],
220
- "text": ""
221
- },
222
- "complexType": {
223
- "original": "any",
224
- "resolved": "any",
225
- "references": {}
226
- }
227
- }, {
228
- "method": "focusFirstElement",
229
- "name": "focusFirstElement",
230
- "bubbles": true,
231
- "cancelable": true,
232
- "composed": true,
233
- "docs": {
234
- "tags": [],
235
- "text": ""
236
- },
237
- "complexType": {
238
- "original": "any",
239
- "resolved": "any",
240
- "references": {}
241
- }
242
- }, {
243
- "method": "wmCloseTriggered",
244
- "name": "wmCloseTriggered",
245
- "bubbles": true,
246
- "cancelable": true,
247
- "composed": true,
248
- "docs": {
249
- "tags": [],
250
- "text": ""
251
- },
252
- "complexType": {
253
- "original": "any",
254
- "resolved": "any",
255
- "references": {}
256
- }
257
- }, {
258
- "method": "wmPrimaryTriggered",
259
- "name": "wmPrimaryTriggered",
260
- "bubbles": true,
261
- "cancelable": true,
262
- "composed": true,
263
- "docs": {
264
- "tags": [],
265
- "text": ""
266
- },
267
- "complexType": {
268
- "original": "any",
269
- "resolved": "any",
270
- "references": {}
271
- }
272
- }, {
273
- "method": "wmSecondaryTriggered",
274
- "name": "wmSecondaryTriggered",
275
- "bubbles": true,
276
- "cancelable": true,
277
- "composed": true,
278
- "docs": {
279
- "tags": [],
280
- "text": ""
281
- },
282
- "complexType": {
283
- "original": "any",
284
- "resolved": "any",
285
- "references": {}
286
- }
287
- }]; }
288
- static get methods() { return {
289
- "emitCloseEvent": {
290
- "complexType": {
291
- "signature": "() => Promise<void>",
292
- "parameters": [],
293
- "references": {
294
- "Promise": {
295
- "location": "global"
296
- }
297
- },
298
- "return": "Promise<void>"
299
- },
300
- "docs": {
301
- "text": "",
302
- "tags": []
303
- }
304
- },
305
- "emitPrimaryEvent": {
306
- "complexType": {
307
- "signature": "() => Promise<void>",
308
- "parameters": [],
309
- "references": {
310
- "Promise": {
311
- "location": "global"
312
- }
313
- },
314
- "return": "Promise<void>"
315
- },
316
- "docs": {
317
- "text": "",
318
- "tags": []
319
- }
320
- },
321
- "emitSecondaryEvent": {
322
- "complexType": {
323
- "signature": "() => Promise<void>",
324
- "parameters": [],
325
- "references": {
326
- "Promise": {
327
- "location": "global"
328
- }
329
- },
330
- "return": "Promise<void>"
331
- },
332
- "docs": {
333
- "text": "",
334
- "tags": []
335
- }
336
- }
337
- }; }
338
- static get elementRef() { return "el"; }
339
- static get watchers() { return [{
340
- "propName": "isOpen",
341
- "methodName": "toggleModal"
342
- }]; }
343
- static get listeners() { return [{
344
- "name": "click",
345
- "method": "handleClick",
346
- "target": undefined,
347
- "capture": false,
348
- "passive": false
349
- }, {
350
- "name": "keydown",
351
- "method": "closeModalOnEscape",
352
- "target": undefined,
353
- "capture": false,
354
- "passive": false
355
- }]; }
356
- }