@watermarkinsights/ripple 5.16.0-alpha.0 → 5.16.0-alpha.2

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 (381) hide show
  1. package/dist/{collection/global/global.js → ripple/app-globals-a0922f84.js} +60 -2
  2. package/dist/{esm/chartFunctions-6749593d.js → ripple/chartFunctions-021607da.js} +3 -3
  3. package/dist/{esm/functions-dabfd76f.js → ripple/functions-3eaaa7c4.js} +7766 -147
  4. package/dist/ripple/index-3d0f1864.js +3017 -0
  5. package/dist/ripple/index.esm.js +1 -0
  6. package/dist/{collection/global/interfaces.js → ripple/interfaces-382e0566.js} +6 -4
  7. package/dist/{esm/intl-43676e71.js → ripple/intl-14fae6dd.js} +1 -1
  8. package/dist/ripple/priv-calendar.entry.js +569 -0
  9. package/dist/ripple/{p-30236be3.system.entry.js → priv-chart-popover.entry.js} +140 -1
  10. package/dist/{esm-es5/priv-chart-popover.entry.js → ripple/priv-navigator-button.entry.js} +24 -1
  11. package/dist/ripple/{p-97ffaa7d.entry.js → priv-navigator-item.entry.js} +30 -1
  12. package/dist/ripple/{p-b01f9572.system.entry.js → priv-option-list.entry.js} +388 -1
  13. package/dist/ripple/ripple.esm.js +47 -1
  14. package/dist/ripple/shadow-css-7ad5caf8.js +332 -0
  15. package/dist/{cjs/wm-button.cjs.entry.js → ripple/wm-action-menu.entry.js} +162 -229
  16. package/dist/{esm-es5/priv-option-list.entry.js → ripple/wm-button.entry.js} +268 -1
  17. package/dist/{esm → ripple}/wm-chart-slice.entry.js +1 -1
  18. package/dist/{esm/wm-file.entry.js → ripple/wm-chart.entry.js} +137 -169
  19. package/dist/ripple/wm-date-range.entry.js +479 -0
  20. package/dist/ripple/wm-datepicker.entry.js +249 -0
  21. package/dist/ripple/{p-c53f5914.entry.js → wm-file-list.entry.js} +18 -1
  22. package/dist/ripple/{p-f9fa1506.system.entry.js → wm-file.entry.js} +189 -1
  23. package/dist/ripple/{p-89479d02.system.entry.js → wm-flyout.entry.js} +175 -1
  24. package/dist/{esm-es5/wm-flyout.entry.js → ripple/wm-input.entry.js} +120 -1
  25. package/dist/ripple/wm-line-chart.entry.js +456 -0
  26. package/dist/{esm/priv-chart-popover.entry.js → ripple/wm-menuitem.entry.js} +98 -114
  27. package/dist/{cjs/priv-navigator-button.cjs.entry.js → ripple/wm-modal-footer.entry.js} +35 -20
  28. package/dist/{esm/priv-navigator-button.entry.js → ripple/wm-modal-header.entry.js} +25 -14
  29. package/dist/ripple/{p-091fbc50.system.entry.js → wm-modal-pss-footer.entry.js} +40 -1
  30. package/dist/ripple/{p-92cb12d3.entry.js → wm-modal-pss-header.entry.js} +39 -1
  31. package/dist/ripple/wm-modal-pss.entry.js +136 -0
  32. package/dist/ripple/{p-1955c66a.system.entry.js → wm-modal.entry.js} +135 -1
  33. package/dist/ripple/wm-navigation-hamburger.entry.js +49 -0
  34. package/dist/ripple/{p-8f987f71.entry.js → wm-navigation-item.entry.js} +21 -1
  35. package/dist/ripple/wm-navigation.entry.js +116 -0
  36. package/dist/{esm/priv-navigator-item.entry.js → ripple/wm-navigator.entry.js} +351 -19
  37. package/dist/ripple/{p-fe93b6b9.system.entry.js → wm-nested-select.entry.js} +310 -1
  38. package/dist/ripple/wm-optgroup.entry.js +69 -0
  39. package/dist/{esm/priv-option-list.entry.js → ripple/wm-option.entry.js} +130 -347
  40. package/dist/ripple/wm-pagination.entry.js +223 -0
  41. package/dist/ripple/wm-progress-indicator.entry.js +112 -0
  42. package/dist/{esm-es5/priv-navigator-item.entry.js → ripple/wm-progress-monitor.entry.js} +74 -1
  43. package/dist/ripple/wm-progress-slice.entry.js +18 -0
  44. package/dist/{cjs/priv-option-list.cjs.entry.js → ripple/wm-search.entry.js} +162 -364
  45. package/dist/{esm/wm-nested-select.entry.js → ripple/wm-select.entry.js} +134 -194
  46. package/dist/ripple/wm-snackbar.entry.js +184 -0
  47. package/dist/{esm-es5/wm-file-list.entry.js → ripple/wm-tab-item.entry.js} +57 -1
  48. package/dist/ripple/wm-tab-list.entry.js +178 -0
  49. package/dist/ripple/wm-tab-panel.entry.js +26 -0
  50. package/dist/ripple/wm-tag-input.entry.js +947 -0
  51. package/dist/{esm → ripple}/wm-tag-option.entry.js +2 -2
  52. package/dist/{cjs/priv-chart-popover.cjs.entry.js → ripple/wm-textarea.entry.js} +60 -122
  53. package/dist/{esm/wm-button.entry.js → ripple/wm-timepicker.entry.js} +251 -218
  54. package/dist/{cjs/priv-navigator-item.cjs.entry.js → ripple/wm-toggletip.entry.js} +227 -25
  55. package/dist/ripple/wm-uploader.entry.js +320 -0
  56. package/dist/{esm → ripple}/wm-wrapper.entry.js +1 -1
  57. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +2 -0
  58. package/package.json +2 -2
  59. package/dist/cjs/app-globals-ff5fd9b0.js +0 -92
  60. package/dist/cjs/chartFunctions-439c6fd4.js +0 -742
  61. package/dist/cjs/functions-dd27bda3.js +0 -10618
  62. package/dist/cjs/index-788526f5.js +0 -1863
  63. package/dist/cjs/index.cjs.js +0 -2
  64. package/dist/cjs/interfaces-85d78ae9.js +0 -37
  65. package/dist/cjs/intl-6d72b4a0.js +0 -283
  66. package/dist/cjs/loader.cjs.js +0 -15
  67. package/dist/cjs/priv-calendar.cjs.entry.js +0 -574
  68. package/dist/cjs/ripple.cjs.js +0 -25
  69. package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -335
  70. package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -27
  71. package/dist/cjs/wm-chart.cjs.entry.js +0 -163
  72. package/dist/cjs/wm-date-range.cjs.entry.js +0 -484
  73. package/dist/cjs/wm-datepicker.cjs.entry.js +0 -254
  74. package/dist/cjs/wm-file-list.cjs.entry.js +0 -23
  75. package/dist/cjs/wm-file.cjs.entry.js +0 -194
  76. package/dist/cjs/wm-flyout.cjs.entry.js +0 -180
  77. package/dist/cjs/wm-input.cjs.entry.js +0 -125
  78. package/dist/cjs/wm-line-chart.cjs.entry.js +0 -461
  79. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +0 -217
  80. package/dist/cjs/wm-modal_3.cjs.entry.js +0 -217
  81. package/dist/cjs/wm-navigation_3.cjs.entry.js +0 -188
  82. package/dist/cjs/wm-navigator.cjs.entry.js +0 -327
  83. package/dist/cjs/wm-nested-select.cjs.entry.js +0 -315
  84. package/dist/cjs/wm-optgroup.cjs.entry.js +0 -74
  85. package/dist/cjs/wm-option_2.cjs.entry.js +0 -427
  86. package/dist/cjs/wm-pagination.cjs.entry.js +0 -228
  87. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +0 -204
  88. package/dist/cjs/wm-search.cjs.entry.js +0 -196
  89. package/dist/cjs/wm-snackbar.cjs.entry.js +0 -189
  90. package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -263
  91. package/dist/cjs/wm-tag-input.cjs.entry.js +0 -892
  92. package/dist/cjs/wm-tag-option.cjs.entry.js +0 -43
  93. package/dist/cjs/wm-textarea.cjs.entry.js +0 -88
  94. package/dist/cjs/wm-timepicker.cjs.entry.js +0 -307
  95. package/dist/cjs/wm-toggletip.cjs.entry.js +0 -242
  96. package/dist/cjs/wm-uploader.cjs.entry.js +0 -325
  97. package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
  98. package/dist/collection/collection-manifest.json +0 -197
  99. package/dist/collection/components/charts/chartFunctions.js +0 -675
  100. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -948
  101. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +0 -262
  102. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +0 -125
  103. package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -1314
  104. package/dist/collection/components/charts/wm-chart/wm-chart.js +0 -422
  105. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -1106
  106. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +0 -723
  107. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -1314
  108. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +0 -264
  109. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -948
  110. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +0 -151
  111. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +0 -121
  112. package/dist/collection/components/datepickers/datepicker.css +0 -1114
  113. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -1318
  114. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +0 -840
  115. package/dist/collection/components/datepickers/wm-date-range.js +0 -849
  116. package/dist/collection/components/datepickers/wm-datepicker.js +0 -524
  117. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -958
  118. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +0 -780
  119. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -1229
  120. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +0 -620
  121. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -869
  122. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +0 -258
  123. package/dist/collection/components/selects/wm-option/wm-option.css +0 -970
  124. package/dist/collection/components/selects/wm-option/wm-option.js +0 -530
  125. package/dist/collection/components/selects/wm-select/wm-select.css +0 -1143
  126. package/dist/collection/components/selects/wm-select/wm-select.js +0 -584
  127. package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -930
  128. package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -435
  129. package/dist/collection/components/wm-button/wm-button.css +0 -1580
  130. package/dist/collection/components/wm-button/wm-button.js +0 -555
  131. package/dist/collection/components/wm-file/wm-file.css +0 -966
  132. package/dist/collection/components/wm-file/wm-file.js +0 -412
  133. package/dist/collection/components/wm-file-list/wm-file-list.css +0 -859
  134. package/dist/collection/components/wm-file-list/wm-file-list.js +0 -45
  135. package/dist/collection/components/wm-flyout/wm-flyout.css +0 -1053
  136. package/dist/collection/components/wm-flyout/wm-flyout.js +0 -448
  137. package/dist/collection/components/wm-input/wm-input.css +0 -1043
  138. package/dist/collection/components/wm-input/wm-input.js +0 -471
  139. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -961
  140. package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -419
  141. package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -884
  142. package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -142
  143. package/dist/collection/components/wm-modal/wm-modal-header.css +0 -883
  144. package/dist/collection/components/wm-modal/wm-modal-header.js +0 -79
  145. package/dist/collection/components/wm-modal/wm-modal.css +0 -931
  146. package/dist/collection/components/wm-modal/wm-modal.js +0 -350
  147. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -891
  148. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +0 -138
  149. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -885
  150. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +0 -82
  151. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -967
  152. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +0 -362
  153. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -886
  154. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -119
  155. package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -895
  156. package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -98
  157. package/dist/collection/components/wm-navigation/wm-navigation.css +0 -937
  158. package/dist/collection/components/wm-navigation/wm-navigation.js +0 -190
  159. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -920
  160. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -86
  161. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -869
  162. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -124
  163. package/dist/collection/components/wm-navigator/wm-navigator.css +0 -942
  164. package/dist/collection/components/wm-navigator/wm-navigator.js +0 -496
  165. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -1041
  166. package/dist/collection/components/wm-pagination/wm-pagination.js +0 -363
  167. package/dist/collection/components/wm-search/wm-search.css +0 -966
  168. package/dist/collection/components/wm-search/wm-search.js +0 -429
  169. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -1148
  170. package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -276
  171. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -908
  172. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -175
  173. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -880
  174. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -273
  175. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -864
  176. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -87
  177. package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -1315
  178. package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -1227
  179. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +0 -243
  180. package/dist/collection/components/wm-textarea/wm-textarea.css +0 -1019
  181. package/dist/collection/components/wm-textarea/wm-textarea.js +0 -313
  182. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -1164
  183. package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -547
  184. package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1256
  185. package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -366
  186. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -1913
  187. package/dist/collection/components/wm-uploader/wm-uploader.js +0 -603
  188. package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -28
  189. package/dist/collection/dev/action-menu.js +0 -0
  190. package/dist/collection/dev/button.js +0 -0
  191. package/dist/collection/dev/chart-small.js +0 -56
  192. package/dist/collection/dev/chart.js +0 -18
  193. package/dist/collection/dev/date-range.js +0 -6
  194. package/dist/collection/dev/datepicker.js +0 -46
  195. package/dist/collection/dev/file-list.js +0 -16
  196. package/dist/collection/dev/file.js +0 -0
  197. package/dist/collection/dev/flyout.js +0 -194
  198. package/dist/collection/dev/input.js +0 -6
  199. package/dist/collection/dev/line-chart.js +0 -0
  200. package/dist/collection/dev/modal.js +0 -48
  201. package/dist/collection/dev/navigation.js +0 -13
  202. package/dist/collection/dev/navigator.js +0 -34
  203. package/dist/collection/dev/nested-select.js +0 -36
  204. package/dist/collection/dev/pagination.js +0 -7
  205. package/dist/collection/dev/progress-monitor.js +0 -0
  206. package/dist/collection/dev/pss-modal.js +0 -8
  207. package/dist/collection/dev/scripts.js +0 -49
  208. package/dist/collection/dev/search.js +0 -72
  209. package/dist/collection/dev/select.js +0 -57
  210. package/dist/collection/dev/snackbar.js +0 -60
  211. package/dist/collection/dev/tabs.js +0 -44
  212. package/dist/collection/dev/tag-input.js +0 -32
  213. package/dist/collection/dev/textarea.js +0 -28
  214. package/dist/collection/dev/timepicker.js +0 -32
  215. package/dist/collection/dev/toggletip.js +0 -9
  216. package/dist/collection/dev/uploader.js +0 -139
  217. package/dist/collection/global/__mocks__/functions.js +0 -6
  218. package/dist/collection/global/functions.js +0 -927
  219. package/dist/collection/global/intl.js +0 -274
  220. package/dist/collection/global/services/__mocks__/http-service.js +0 -130
  221. package/dist/collection/global/services/http-service.js +0 -50
  222. package/dist/collection/lang/lang.js +0 -5
  223. package/dist/collection/lang/missing.js +0 -43
  224. package/dist/collection/lang/piglatin.js +0 -101
  225. package/dist/esm/app-globals-c63b9640.js +0 -90
  226. package/dist/esm/index-130e07bb.js +0 -1832
  227. package/dist/esm/index.js +0 -1
  228. package/dist/esm/interfaces-cc5b177f.js +0 -34
  229. package/dist/esm/loader.js +0 -11
  230. package/dist/esm/polyfills/core-js.js +0 -11
  231. package/dist/esm/polyfills/dom.js +0 -79
  232. package/dist/esm/polyfills/es5-html-element.js +0 -1
  233. package/dist/esm/polyfills/index.js +0 -34
  234. package/dist/esm/polyfills/system.js +0 -6
  235. package/dist/esm/priv-calendar.entry.js +0 -570
  236. package/dist/esm/ripple.js +0 -20
  237. package/dist/esm/wm-action-menu_2.entry.js +0 -330
  238. package/dist/esm/wm-chart.entry.js +0 -159
  239. package/dist/esm/wm-date-range.entry.js +0 -480
  240. package/dist/esm/wm-datepicker.entry.js +0 -250
  241. package/dist/esm/wm-file-list.entry.js +0 -19
  242. package/dist/esm/wm-flyout.entry.js +0 -176
  243. package/dist/esm/wm-input.entry.js +0 -121
  244. package/dist/esm/wm-line-chart.entry.js +0 -457
  245. package/dist/esm/wm-modal-pss_3.entry.js +0 -211
  246. package/dist/esm/wm-modal_3.entry.js +0 -211
  247. package/dist/esm/wm-navigation_3.entry.js +0 -182
  248. package/dist/esm/wm-navigator.entry.js +0 -323
  249. package/dist/esm/wm-optgroup.entry.js +0 -70
  250. package/dist/esm/wm-option_2.entry.js +0 -422
  251. package/dist/esm/wm-pagination.entry.js +0 -224
  252. package/dist/esm/wm-progress-indicator_3.entry.js +0 -198
  253. package/dist/esm/wm-search.entry.js +0 -192
  254. package/dist/esm/wm-snackbar.entry.js +0 -185
  255. package/dist/esm/wm-tab-item_3.entry.js +0 -257
  256. package/dist/esm/wm-tag-input.entry.js +0 -888
  257. package/dist/esm/wm-textarea.entry.js +0 -84
  258. package/dist/esm/wm-timepicker.entry.js +0 -303
  259. package/dist/esm/wm-toggletip.entry.js +0 -238
  260. package/dist/esm/wm-uploader.entry.js +0 -321
  261. package/dist/esm-es5/app-globals-c63b9640.js +0 -1
  262. package/dist/esm-es5/chartFunctions-6749593d.js +0 -1
  263. package/dist/esm-es5/functions-dabfd76f.js +0 -1
  264. package/dist/esm-es5/index-130e07bb.js +0 -1
  265. package/dist/esm-es5/index.js +0 -0
  266. package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
  267. package/dist/esm-es5/intl-43676e71.js +0 -1
  268. package/dist/esm-es5/loader.js +0 -1
  269. package/dist/esm-es5/priv-calendar.entry.js +0 -1
  270. package/dist/esm-es5/priv-navigator-button.entry.js +0 -1
  271. package/dist/esm-es5/ripple.js +0 -1
  272. package/dist/esm-es5/wm-action-menu_2.entry.js +0 -1
  273. package/dist/esm-es5/wm-button.entry.js +0 -1
  274. package/dist/esm-es5/wm-chart-slice.entry.js +0 -1
  275. package/dist/esm-es5/wm-chart.entry.js +0 -1
  276. package/dist/esm-es5/wm-date-range.entry.js +0 -1
  277. package/dist/esm-es5/wm-datepicker.entry.js +0 -1
  278. package/dist/esm-es5/wm-file.entry.js +0 -1
  279. package/dist/esm-es5/wm-input.entry.js +0 -1
  280. package/dist/esm-es5/wm-line-chart.entry.js +0 -1
  281. package/dist/esm-es5/wm-modal-pss_3.entry.js +0 -1
  282. package/dist/esm-es5/wm-modal_3.entry.js +0 -1
  283. package/dist/esm-es5/wm-navigation_3.entry.js +0 -1
  284. package/dist/esm-es5/wm-navigator.entry.js +0 -1
  285. package/dist/esm-es5/wm-nested-select.entry.js +0 -1
  286. package/dist/esm-es5/wm-optgroup.entry.js +0 -1
  287. package/dist/esm-es5/wm-option_2.entry.js +0 -1
  288. package/dist/esm-es5/wm-pagination.entry.js +0 -1
  289. package/dist/esm-es5/wm-progress-indicator_3.entry.js +0 -1
  290. package/dist/esm-es5/wm-search.entry.js +0 -1
  291. package/dist/esm-es5/wm-snackbar.entry.js +0 -1
  292. package/dist/esm-es5/wm-tab-item_3.entry.js +0 -1
  293. package/dist/esm-es5/wm-tag-input.entry.js +0 -1
  294. package/dist/esm-es5/wm-tag-option.entry.js +0 -1
  295. package/dist/esm-es5/wm-textarea.entry.js +0 -1
  296. package/dist/esm-es5/wm-timepicker.entry.js +0 -1
  297. package/dist/esm-es5/wm-toggletip.entry.js +0 -1
  298. package/dist/esm-es5/wm-uploader.entry.js +0 -1
  299. package/dist/esm-es5/wm-wrapper.entry.js +0 -1
  300. package/dist/index.cjs.js +0 -1
  301. package/dist/index.js +0 -1
  302. package/dist/loader/cdn.js +0 -2
  303. package/dist/loader/index.cjs.js +0 -2
  304. package/dist/loader/index.d.ts +0 -24
  305. package/dist/loader/index.es2017.js +0 -2
  306. package/dist/loader/index.js +0 -3
  307. package/dist/loader/package.json +0 -11
  308. package/dist/ripple/p-0189929d.entry.js +0 -1
  309. package/dist/ripple/p-043901ab.system.entry.js +0 -1
  310. package/dist/ripple/p-0bb576c5.system.entry.js +0 -1
  311. package/dist/ripple/p-0c89b82c.entry.js +0 -1
  312. package/dist/ripple/p-12d6ab73.system.entry.js +0 -1
  313. package/dist/ripple/p-1396ff75.entry.js +0 -1
  314. package/dist/ripple/p-13b1d775.entry.js +0 -1
  315. package/dist/ripple/p-144ce232.entry.js +0 -1
  316. package/dist/ripple/p-1497ccfc.entry.js +0 -1
  317. package/dist/ripple/p-1a3037aa.entry.js +0 -1
  318. package/dist/ripple/p-22b55b6f.entry.js +0 -1
  319. package/dist/ripple/p-257d2d5c.entry.js +0 -1
  320. package/dist/ripple/p-2732bddd.js +0 -1
  321. package/dist/ripple/p-2823d02b.system.entry.js +0 -1
  322. package/dist/ripple/p-2f7ca1a7.system.entry.js +0 -1
  323. package/dist/ripple/p-30201dc9.entry.js +0 -1
  324. package/dist/ripple/p-36d2b888.entry.js +0 -1
  325. package/dist/ripple/p-36fd8aed.system.entry.js +0 -1
  326. package/dist/ripple/p-3f98056c.js +0 -1
  327. package/dist/ripple/p-41120a33.system.js +0 -1
  328. package/dist/ripple/p-42fa7a77.system.js +0 -1
  329. package/dist/ripple/p-492aa9fe.system.entry.js +0 -1
  330. package/dist/ripple/p-49a347e1.js +0 -1
  331. package/dist/ripple/p-4a29bb8c.entry.js +0 -1
  332. package/dist/ripple/p-4c2a044d.system.entry.js +0 -1
  333. package/dist/ripple/p-4cebf2d7.entry.js +0 -1
  334. package/dist/ripple/p-4e6b0a6e.system.entry.js +0 -1
  335. package/dist/ripple/p-4fb4deb9.entry.js +0 -1
  336. package/dist/ripple/p-50ea2036.system.js +0 -1
  337. package/dist/ripple/p-56d54fe6.system.entry.js +0 -1
  338. package/dist/ripple/p-57c25b63.entry.js +0 -1
  339. package/dist/ripple/p-59591401.entry.js +0 -1
  340. package/dist/ripple/p-5cff41e0.entry.js +0 -1
  341. package/dist/ripple/p-5ef786db.system.entry.js +0 -1
  342. package/dist/ripple/p-61f9987d.system.entry.js +0 -1
  343. package/dist/ripple/p-65c8ef31.system.entry.js +0 -1
  344. package/dist/ripple/p-6a03a172.entry.js +0 -1
  345. package/dist/ripple/p-6a082957.entry.js +0 -1
  346. package/dist/ripple/p-6d12cfb7.system.entry.js +0 -1
  347. package/dist/ripple/p-72ed488e.system.entry.js +0 -1
  348. package/dist/ripple/p-74f103dd.entry.js +0 -1
  349. package/dist/ripple/p-81ce2697.entry.js +0 -1
  350. package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
  351. package/dist/ripple/p-89316785.system.js +0 -1
  352. package/dist/ripple/p-8a569d3b.entry.js +0 -1
  353. package/dist/ripple/p-8ec2e944.system.entry.js +0 -1
  354. package/dist/ripple/p-92a50b38.system.entry.js +0 -1
  355. package/dist/ripple/p-9328023c.entry.js +0 -1
  356. package/dist/ripple/p-94f776eb.entry.js +0 -1
  357. package/dist/ripple/p-9b2281e2.system.entry.js +0 -1
  358. package/dist/ripple/p-a05f29f0.system.js +0 -1
  359. package/dist/ripple/p-a2c8937d.js +0 -1
  360. package/dist/ripple/p-a5fb4171.system.entry.js +0 -1
  361. package/dist/ripple/p-b23c6351.system.entry.js +0 -1
  362. package/dist/ripple/p-b34552b0.system.entry.js +0 -1
  363. package/dist/ripple/p-b39ab477.entry.js +0 -1
  364. package/dist/ripple/p-ba399879.system.js +0 -1
  365. package/dist/ripple/p-bb9f6920.entry.js +0 -1
  366. package/dist/ripple/p-bc4976e6.entry.js +0 -1
  367. package/dist/ripple/p-bd48c50a.entry.js +0 -1
  368. package/dist/ripple/p-c31e1379.entry.js +0 -1
  369. package/dist/ripple/p-c4896784.system.entry.js +0 -1
  370. package/dist/ripple/p-c699aec8.system.entry.js +0 -1
  371. package/dist/ripple/p-c7d71181.system.entry.js +0 -1
  372. package/dist/ripple/p-c879e152.js +0 -1
  373. package/dist/ripple/p-cd0cc88d.entry.js +0 -1
  374. package/dist/ripple/p-cef8a45b.system.js +0 -2
  375. package/dist/ripple/p-d333d851.system.entry.js +0 -1
  376. package/dist/ripple/p-d9da0502.js +0 -2
  377. package/dist/ripple/p-f3df715f.entry.js +0 -1
  378. package/dist/ripple/p-f8995a5e.system.entry.js +0 -1
  379. package/dist/ripple/p-fd6a59f5.system.js +0 -1
  380. package/dist/ripple/p-fe71ec64.system.entry.js +0 -1
  381. package/dist/ripple/ripple.js +0 -127
@@ -1,849 +0,0 @@
1
- import { h, Host, Fragment, } from "@stencil/core";
2
- import { intl, dateFind, toBool, handleDisabledAttribute, getContextMeasurements, findParentWithHiddenOverflow, dateToISO, shouldOpenUp, calendar_months, } from "../../global/functions";
3
- export class DateRange {
4
- constructor() {
5
- this.openUp = false;
6
- this.calWidth = 681; // 673 + 8px of room
7
- this.popupClicked = false;
8
- this.toggleButtonClicked = false;
9
- this.formats = { "mm/dd/yyyy": "US", "dd/mm/yyyy": "INT", "yyyy/mm/dd": "ISO" };
10
- this.dateFormat = "mm/dd/yyyy";
11
- this.disabled = false;
12
- this.errorMessage = undefined;
13
- this.invalidStart = false;
14
- this.invalidEnd = false;
15
- this.labelStart = "";
16
- this.labelEnd = "";
17
- this.preselected = undefined;
18
- this.requiredField = false;
19
- this.valueStart = "";
20
- this.valueEnd = "";
21
- this.availSpace = 0;
22
- this.isExpanded = false;
23
- }
24
- get _disabled() {
25
- // string "false" needs to be treated as bool False because react wrappers convert bool to string.
26
- return toBool(this.disabled);
27
- }
28
- get focusDates() {
29
- // the date the first calendar will open to. either:
30
- // - value-start
31
- // - a date provided by the dev via prop preselected
32
- // - today's date
33
- const isoStart = this.toISO(this.valueStart);
34
- // fallback:
35
- let startFocusDate = dateToISO(new Date());
36
- if (this._isValidISO(isoStart)) {
37
- startFocusDate = isoStart;
38
- }
39
- else if (this.preselected && this._isValidISO(this.preselected)) {
40
- startFocusDate = this.preselected;
41
- }
42
- // the date the second calendar will open to. either:
43
- // - value-end, if exists and not same month as value-start
44
- // - the month after the first calendar
45
- let firstOfNextMonth = this.toJSDate(startFocusDate);
46
- if (firstOfNextMonth.getUTCMonth() == 11) {
47
- firstOfNextMonth.setYear(firstOfNextMonth.getUTCFullYear() + 1);
48
- }
49
- firstOfNextMonth.setMonth((firstOfNextMonth.getUTCMonth() + 1) % 12, 1);
50
- let endFocusDate = dateToISO(firstOfNextMonth); // fallback
51
- const isoEnd = this.toISO(this.valueEnd);
52
- if (this._isValidISO(isoEnd)) {
53
- const sameMonth = this.isSameMonth(startFocusDate, isoEnd);
54
- if (!sameMonth) {
55
- endFocusDate = isoEnd;
56
- // if there is a valueEnd and no valueStart, set valueStart to the month before valueEnd;
57
- if (!isoStart) {
58
- let firstOfPrevMonth = this.toJSDate(endFocusDate);
59
- let month = firstOfPrevMonth.getUTCMonth() - 1;
60
- if (month == -1) {
61
- month = 11;
62
- firstOfPrevMonth.setYear(firstOfPrevMonth.getUTCFullYear() - 1);
63
- }
64
- firstOfPrevMonth.setMonth(month, 1);
65
- startFocusDate = dateToISO(firstOfPrevMonth);
66
- }
67
- }
68
- }
69
- return [startFocusDate, endFocusDate];
70
- }
71
- // same month of the same year
72
- isSameMonth(date1, date2) {
73
- if (date1 && date2) {
74
- return date1.slice(0, -3) === date2.slice(0, -3);
75
- }
76
- else {
77
- return false;
78
- }
79
- }
80
- toJSDate(date) {
81
- if (date && this._isValidISO(date)) {
82
- let newDate = new Date();
83
- newDate.setUTCFullYear(parseInt(date.split("-")[0]), parseInt(date.split("-")[1]) - 1, parseInt(date.split("-")[2]));
84
- return newDate;
85
- }
86
- else {
87
- return undefined;
88
- }
89
- }
90
- toISO(date) {
91
- // returns the input when it can't reformat
92
- return this._reformatDate(this.formats[this.dateFormat], "ISO", date);
93
- }
94
- handleDisabled() {
95
- handleDisabledAttribute(this.el, this._disabled);
96
- }
97
- updateValueStart() {
98
- this.startInputEl.value = this.valueStart ? this.valueStart : "";
99
- }
100
- updateValueEnd() {
101
- this.endInputEl.value = this.valueEnd ? this.valueEnd : "";
102
- }
103
- handleErrorMessage() {
104
- if (this.errorMessage) {
105
- setTimeout(() => this.announce(this.errorMessage), 100);
106
- }
107
- }
108
- togglePopup() {
109
- this.isExpanded ? this.closePopup() : this.openPopup();
110
- this.toggleButtonClicked = true;
111
- }
112
- closePopup(returnFocus = false) {
113
- // reset
114
- // clearing these in case the user closes without finishing the process
115
- this.date1 = undefined;
116
- this.date2 = undefined;
117
- this.startCalEl.startDate = undefined;
118
- this.startCalEl.endDate = undefined;
119
- this.startCalEl.hoverDate = undefined;
120
- this.endCalEl.startDate = undefined;
121
- this.endCalEl.endDate = undefined;
122
- this.endCalEl.hoverDate = undefined;
123
- this.isExpanded = false;
124
- this.startCalEl.view = "day";
125
- this.endCalEl.view = "day";
126
- this.popupEl.classList.remove("open");
127
- window.setTimeout(() => {
128
- //not using display none in order to get measurements of the popup while hidden
129
- this.popupEl.style.visibility = "hidden";
130
- }, 250);
131
- //Reset values so that menu reopens to day view with selected date in focus
132
- if (returnFocus) {
133
- this.toggleEl.focus();
134
- }
135
- }
136
- openPopup() {
137
- // display stuff
138
- this.openUp = shouldOpenUp(this.el, this.popupEl.clientHeight, this.labelEl.clientHeight);
139
- const { spaceLeft, spaceRight } = getContextMeasurements(this.el);
140
- if (spaceRight >= this.calWidth - this.el.clientWidth) {
141
- this.popupEl.style.left = "0";
142
- this.popupEl.style.right = "auto";
143
- }
144
- else if (spaceLeft >= this.calWidth - this.el.clientWidth) {
145
- this.popupEl.style.right = "0";
146
- this.popupEl.style.left = "auto";
147
- }
148
- else {
149
- const offset = (this.availSpace - this.calWidth) / 2 - spaceLeft;
150
- this.popupEl.style.left = `${offset}px`;
151
- this.popupEl.style.right = "auto";
152
- }
153
- this.popupEl.style.visibility = "visible";
154
- window.requestAnimationFrame(() => {
155
- this.popupEl.classList.add("open");
156
- });
157
- this.isExpanded = true;
158
- // state stuff
159
- this.startCalEl.focusDate = this.focusDates[0];
160
- this.endCalEl.focusDate = this.focusDates[1];
161
- this.startCalEl.focusCell();
162
- if (this.valueStart) {
163
- const startISO = this.toISO(this.valueStart);
164
- if (this._isValidISO(startISO)) {
165
- this.startCalEl.startDate = startISO;
166
- }
167
- if (this.valueEnd) {
168
- const endISO = this.toISO(this.valueEnd);
169
- if (this._isValidISO(endISO)) {
170
- if (this.isSameMonth(startISO, endISO)) {
171
- this.startCalEl.endDate = endISO;
172
- }
173
- else {
174
- this.endCalEl.endDate = endISO;
175
- }
176
- }
177
- }
178
- }
179
- }
180
- handleFocus() {
181
- this.wrapperEl.classList.add("focus");
182
- }
183
- handleBlur() {
184
- this.wrapperEl.classList.remove("focus");
185
- }
186
- handleStartInputBlur() {
187
- this.wmStartInputBlur.emit();
188
- }
189
- handleEndInputBlur() {
190
- this.wmEndInputBlur.emit();
191
- }
192
- handleStartInput(ev) {
193
- // keep component's value in sync with input's value
194
- this.valueStart = ev.target.value;
195
- }
196
- handleEndInput(ev) {
197
- // keep component's value in sync with input's value
198
- this.valueEnd = ev.target.value;
199
- }
200
- handleKey(ev) {
201
- switch (ev.key) {
202
- case "Escape":
203
- ev.preventDefault();
204
- ev.stopPropagation(); // prevents closing of parent modal
205
- this.closePopup(true);
206
- break;
207
- }
208
- }
209
- blurHandler() {
210
- if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
211
- this.closePopup();
212
- }
213
- this.popupClicked = false;
214
- this.toggleButtonClicked = false;
215
- }
216
- // for cases where the user clicks or uses a shortcut to leave the document
217
- handleBlurOnWindow() {
218
- if (this.isExpanded) {
219
- this.closePopup();
220
- }
221
- }
222
- handleDateFocus(ev) {
223
- const cal = ev.target;
224
- const newFocusVal = cal.focusDate;
225
- // keeping calendars in sync
226
- // (left one should always be before right one)
227
- const startYearMonth = this.startCalEl.focusDate.slice(0, -3);
228
- const endYearMonth = this.endCalEl.focusDate.slice(0, -3);
229
- if (cal == this.startCalEl) {
230
- if (startYearMonth >= endYearMonth) {
231
- this.endCalEl.focusDate = dateFind.month.increase(this.startCalEl.focusDate, 1);
232
- }
233
- }
234
- else if (cal == this.endCalEl) {
235
- if (endYearMonth <= startYearMonth) {
236
- this.startCalEl.focusDate = dateFind.month.decrease(this.endCalEl.focusDate, 1);
237
- }
238
- }
239
- // SR announcements
240
- if (this.oldFocusVal) {
241
- const newYear = dateFind.year.asInt(newFocusVal);
242
- const oldYear = dateFind.year.asInt(this.oldFocusVal);
243
- const newMonth = dateFind.month.asInt(newFocusVal);
244
- const oldMonth = dateFind.month.asInt(this.oldFocusVal);
245
- if (cal.view === "day") {
246
- if (newYear != oldYear || newMonth != oldMonth) {
247
- this.liveRegionEl.innerHTML = intl.formatMessage({
248
- id: "date.viewingMonth",
249
- defaultMessage: "Viewing {month}, {year}",
250
- description: "Announcement indicating current month and year visible in a date picker",
251
- }, {
252
- month: calendar_months[newMonth - 1],
253
- year: newYear,
254
- });
255
- }
256
- }
257
- else {
258
- if (newYear != oldYear) {
259
- this.liveRegionEl.innerHTML = intl.formatMessage({
260
- id: "date.yearSelected",
261
- defaultMessage: "{year} selected.",
262
- description: "Announcement after the user selects a year in a date picker",
263
- }, { year: newYear });
264
- }
265
- else if (newMonth != oldMonth) {
266
- this.liveRegionEl.innerHTML = `${calendar_months[newMonth - 1]}, ${newYear}`;
267
- }
268
- }
269
- }
270
- this.oldFocusVal = cal.focusDate;
271
- }
272
- handlePopupBlurred(ev) {
273
- // emit blur event when leaving component from priv-calendar
274
- if (ev.detail.relatedTarget !== this.el) {
275
- const event = new CustomEvent("blur");
276
- // @ts-ignore
277
- event.relatedTarget = ev.detail.relatedTarget;
278
- this.el.dispatchEvent(event);
279
- }
280
- }
281
- handleCellTriggered(ev) {
282
- const cal = ev.detail.cal;
283
- const dateElement = ev.detail.cell;
284
- const newDate = dateElement.getAttribute("data-year") +
285
- "-" +
286
- dateElement.getAttribute("data-month") +
287
- "-" +
288
- dateElement.textContent.padStart(2, "0");
289
- if (this.startCalEl.endDate || this.endCalEl.endDate) {
290
- // there were already 2 dates, user is setting a new range.
291
- // set calendar state
292
- this.startCalEl.startDate = undefined;
293
- this.startCalEl.endDate = undefined;
294
- this.endCalEl.startDate = undefined;
295
- this.endCalEl.endDate = undefined;
296
- cal.startDate = newDate;
297
- // set component state
298
- this.date1 = newDate;
299
- this.date2 = undefined;
300
- }
301
- else if (this.date1 && newDate !== this.date1) {
302
- // user is setting the end of the range
303
- // ignore if same date as first is selected
304
- // (acts as if it was re-selected as the first date)
305
- // reorder if necessary
306
- if (this.date1 > newDate) {
307
- this.date2 = this.date1;
308
- this.date1 = newDate;
309
- }
310
- else {
311
- this.date2 = newDate;
312
- }
313
- const detail = {
314
- startDate: {
315
- iso: this.date1,
316
- us: this._reformatDate("ISO", "US", this.date1),
317
- int: this._reformatDate("ISO", "INT", this.date1),
318
- },
319
- endDate: {
320
- iso: this.date2,
321
- us: this._reformatDate("ISO", "US", this.date2),
322
- int: this._reformatDate("ISO", "INT", this.date2),
323
- },
324
- };
325
- this.wmRangeSelection.emit(detail);
326
- this.closePopup(true);
327
- this.date1 = undefined;
328
- this.date2 = undefined;
329
- }
330
- else {
331
- // calendars were clear, user sets first date
332
- cal.startDate = newDate;
333
- // component state
334
- this.date1 = newDate;
335
- }
336
- // Create events to trigger onInput and onChange on host element, to get the updated value
337
- // Because there are more ways to input than just typing, we are firing this event upon cellTriggered
338
- const inputEvent = new CustomEvent("input");
339
- this.el.dispatchEvent(inputEvent);
340
- const changeEvent = new CustomEvent("change");
341
- this.el.dispatchEvent(changeEvent);
342
- }
343
- handleOutOfCal() {
344
- this.startCalEl.hoverDate = undefined;
345
- this.endCalEl.hoverDate = undefined;
346
- }
347
- handleCellHovered(ev) {
348
- this.startCalEl.hoverDate = this.startCalEl.startDate === ev.detail ? undefined : ev.detail;
349
- this.endCalEl.hoverDate = this.endCalEl.startDate === ev.detail ? undefined : ev.detail;
350
- }
351
- async reformatDate(inputFormat, outputFormat, date) {
352
- return this._reformatDate(inputFormat, outputFormat, date);
353
- }
354
- _reformatDate(inputFormat, outputFormat, date) {
355
- // this function reformats date strings to/from the storage format ONLY. US -> INT and vice versa is not supported.
356
- if (inputFormat !== "ISO" && outputFormat !== "ISO")
357
- return "";
358
- // return if missing args
359
- if (!inputFormat || !outputFormat || !date)
360
- return "";
361
- // 1, 2, or 4 digits, separator, 1 or 2 digits, separator, then 1 or 2 or 4 digits
362
- const parsableEntry = /^(\d{1}|\d{2}|\d{4})[\-\.\/]\d{1,2}[\-\.\/](\d{1}|\d{2}|\d{4})$/;
363
- if (!parsableEntry.test(date)) {
364
- return date;
365
- }
366
- else {
367
- const dateArr = date.replace(/[\-\.]/gi, "/").split("/");
368
- switch (outputFormat) {
369
- case "US":
370
- return dateArr[1].padStart(2, "0") + "/" + dateArr[2].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
371
- case "INT":
372
- return dateArr[2].padStart(2, "0") + "/" + dateArr[1].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
373
- case "ISO":
374
- if (inputFormat === "US") {
375
- return dateArr[2].padStart(4, "20") + "-" + dateArr[0].padStart(2, "0") + "-" + dateArr[1].padStart(2, "0");
376
- }
377
- else if (inputFormat === "INT") {
378
- return dateArr[2].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[0].padStart(2, "0");
379
- }
380
- else if (inputFormat === "ISO") {
381
- return dateArr[0].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[2].padStart(2, "0");
382
- }
383
- default:
384
- return dateArr.join("/");
385
- }
386
- }
387
- }
388
- async isValidISO(input) {
389
- return this._isValidISO(input);
390
- }
391
- _isValidISO(input) {
392
- const ISOFormat = /^\d\d\d\d[-]\d\d[-]\d\d$/;
393
- if (!input || !ISOFormat.test(input)) {
394
- return false;
395
- }
396
- else {
397
- // Parse the ISO date parts to integers
398
- const parts = input.split("-");
399
- const day = parseInt(parts[2], 10);
400
- const month = parseInt(parts[1], 10);
401
- const year = parseInt(parts[0], 10);
402
- // Check the ranges of month and year
403
- if (year < 1000 || year > 3000 || month == 0 || month > 12)
404
- return false;
405
- let monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
406
- // Adjust for leap years
407
- if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0))
408
- monthLength[1] = 29;
409
- // Check the range of the day
410
- return day > 0 && day <= monthLength[month - 1];
411
- }
412
- }
413
- setAvailSpace() {
414
- this.availSpace = (this.hiddenOverflowParent || document.body).clientWidth;
415
- }
416
- componentWillLoad() {
417
- if (this.labelStart === "" || this.labelEnd === "") {
418
- console.error("For accessibility reasons you must specify labels for the date range inputs.");
419
- }
420
- handleDisabledAttribute(this.el, this._disabled);
421
- this.hiddenOverflowParent = findParentWithHiddenOverflow(this.el);
422
- if (this.hiddenOverflowParent) {
423
- const resizeObserver = new ResizeObserver(() => {
424
- this.availSpace = this.hiddenOverflowParent.clientWidth;
425
- });
426
- resizeObserver.observe(this.hiddenOverflowParent);
427
- }
428
- this.setAvailSpace();
429
- }
430
- announce(message) {
431
- // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
432
- if (this.liveRegionEl.textContent === message) {
433
- message += "\u00A0";
434
- }
435
- this.liveRegionEl.textContent = message;
436
- }
437
- renderCalendars() {
438
- if (this.calWidth <= this.availSpace) {
439
- return (h(Fragment, null, h("div", { class: `popup-wrapper ${this.startCalEl && this.startCalEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true), style: { display: "flex" } }, h("div", { class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.endCalEl.focusLastFocusable() }), h("priv-calendar", { ref: (el) => (this.startCalEl = el), onClick: () => (this.popupClicked = true), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("priv-calendar", { ref: (el) => (this.endCalEl = el), onClick: () => (this.popupClicked = true), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("div", { class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.startCalEl.focusFirstFocusable() }))));
440
- }
441
- }
442
- render() {
443
- return (h(Host, { key: 'e15e7d0122385b7038ab66267c6bd97a0484403e', "aria-busy": "false" }, h("div", { key: '1074c893c309a965181575e65ddab158e7b34661', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: '318998d9218b262a13c2842a03c8e493f889b327', class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { key: 'e2df44669d920d0fa287d3020a0ad29485cd03d7', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: '34bdc1d6844cfca7b50c79c7dd2f7115889665a2', ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { key: '50d76500d1ddd31478ec3a1fb737fca8a2957e24', "aria-hidden": "true", class: "required" }, "*")))), h("div", { key: 'e7d8fcb4399881832d7a37042aee7a820512e2f0', class: "label-wrapper", id: "end-label-wrapper" }, h("label", { key: '86b127ee4ecc42fca26521bf19777553c55bdc79', id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { key: '14ccfb0e9fee57f645112e1925b47e6697852f76', "aria-hidden": "true", class: "required" }, "*")))), h("input", { key: '4fbee8adcdd045ff543c530dcce96b8e1c812561', disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '8532a1ee3ab5ed0eb678e0626d15ed59a30b159d', id: "hyphen" }, "\u00A0-\u00A0"), h("input", { key: '5083b4873f884f26221b756f1ab2b39f359aecdd', disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '4c6fefec380fae6c6964e10bc2e6eeae1dbb560a', class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { key: 'dd11cd572ddf6ce4c44af9bdffc6a129174ede8b', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
444
- id: "date.selectRange",
445
- defaultMessage: "Select range",
446
- description: "Button text for screen readers.",
447
- }), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '4539c027127c567bfd09039e63975e849dd96fae', class: "svg-icon svg-date" }), h("span", { key: '0fcd41cd2415908975cc8b8f7cebd4bd47f01d3e', class: "calendar", title: intl.formatMessage({
448
- id: "date.calendarView",
449
- defaultMessage: "Calendar View",
450
- description: "Calendar button",
451
- }) })))), this.renderCalendars()), h("div", { key: '96d2b3a31aafb89abdbd80e58ecc0efab1a582c4' }, h("div", { key: '75a3aca3bd7ef18924b81f47ab017eef108c10df', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'f7af6d97177bdf7cef6516950eee49e242826e06', id: "month-title", class: "sr-only" }, intl.formatMessage({
452
- id: "date.selectMonth",
453
- defaultMessage: "Activate to select a month.",
454
- description: "Calendar button",
455
- })), h("div", { key: 'aab9385f49a28dc1306e59451234a9a7368aca4d', id: "year-title", class: "sr-only" }, intl.formatMessage({
456
- id: "date.selectYear",
457
- defaultMessage: "Activate to select a year.",
458
- description: "Calendar button",
459
- }))), h("div", { key: '21c76d46ebc51dbfd8b2658512f7e6f7ef4f4ae7', id: "error", class: "error" }, this.errorMessage), h("div", { key: '0312341364d0cf20c63be7f38724b64b13ffd424', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
460
- }
461
- static get is() { return "wm-date-range"; }
462
- static get encapsulation() { return "shadow"; }
463
- static get delegatesFocus() { return true; }
464
- static get originalStyleUrls() {
465
- return {
466
- "$": ["datepicker.scss"]
467
- };
468
- }
469
- static get styleUrls() {
470
- return {
471
- "$": ["datepicker.css"]
472
- };
473
- }
474
- static get properties() {
475
- return {
476
- "dateFormat": {
477
- "type": "string",
478
- "mutable": false,
479
- "complexType": {
480
- "original": "string",
481
- "resolved": "string",
482
- "references": {}
483
- },
484
- "required": false,
485
- "optional": false,
486
- "docs": {
487
- "tags": [],
488
- "text": ""
489
- },
490
- "attribute": "date-format",
491
- "reflect": false,
492
- "defaultValue": "\"mm/dd/yyyy\""
493
- },
494
- "disabled": {
495
- "type": "boolean",
496
- "mutable": false,
497
- "complexType": {
498
- "original": "boolean",
499
- "resolved": "boolean",
500
- "references": {}
501
- },
502
- "required": false,
503
- "optional": false,
504
- "docs": {
505
- "tags": [],
506
- "text": ""
507
- },
508
- "attribute": "disabled",
509
- "reflect": false,
510
- "defaultValue": "false"
511
- },
512
- "errorMessage": {
513
- "type": "string",
514
- "mutable": false,
515
- "complexType": {
516
- "original": "string",
517
- "resolved": "string | undefined",
518
- "references": {}
519
- },
520
- "required": false,
521
- "optional": true,
522
- "docs": {
523
- "tags": [],
524
- "text": ""
525
- },
526
- "attribute": "error-message",
527
- "reflect": true
528
- },
529
- "invalidStart": {
530
- "type": "boolean",
531
- "mutable": false,
532
- "complexType": {
533
- "original": "boolean",
534
- "resolved": "boolean",
535
- "references": {}
536
- },
537
- "required": false,
538
- "optional": false,
539
- "docs": {
540
- "tags": [],
541
- "text": ""
542
- },
543
- "attribute": "invalid-start",
544
- "reflect": false,
545
- "defaultValue": "false"
546
- },
547
- "invalidEnd": {
548
- "type": "boolean",
549
- "mutable": false,
550
- "complexType": {
551
- "original": "boolean",
552
- "resolved": "boolean",
553
- "references": {}
554
- },
555
- "required": false,
556
- "optional": false,
557
- "docs": {
558
- "tags": [],
559
- "text": ""
560
- },
561
- "attribute": "invalid-end",
562
- "reflect": false,
563
- "defaultValue": "false"
564
- },
565
- "labelStart": {
566
- "type": "string",
567
- "mutable": false,
568
- "complexType": {
569
- "original": "string",
570
- "resolved": "string",
571
- "references": {}
572
- },
573
- "required": false,
574
- "optional": false,
575
- "docs": {
576
- "tags": [],
577
- "text": ""
578
- },
579
- "attribute": "label-start",
580
- "reflect": false,
581
- "defaultValue": "\"\""
582
- },
583
- "labelEnd": {
584
- "type": "string",
585
- "mutable": false,
586
- "complexType": {
587
- "original": "string",
588
- "resolved": "string",
589
- "references": {}
590
- },
591
- "required": false,
592
- "optional": false,
593
- "docs": {
594
- "tags": [],
595
- "text": ""
596
- },
597
- "attribute": "label-end",
598
- "reflect": false,
599
- "defaultValue": "\"\""
600
- },
601
- "preselected": {
602
- "type": "string",
603
- "mutable": false,
604
- "complexType": {
605
- "original": "string",
606
- "resolved": "string | undefined",
607
- "references": {}
608
- },
609
- "required": false,
610
- "optional": true,
611
- "docs": {
612
- "tags": [],
613
- "text": ""
614
- },
615
- "attribute": "preselected",
616
- "reflect": false
617
- },
618
- "requiredField": {
619
- "type": "boolean",
620
- "mutable": false,
621
- "complexType": {
622
- "original": "boolean",
623
- "resolved": "boolean",
624
- "references": {}
625
- },
626
- "required": false,
627
- "optional": false,
628
- "docs": {
629
- "tags": [],
630
- "text": ""
631
- },
632
- "attribute": "required-field",
633
- "reflect": false,
634
- "defaultValue": "false"
635
- },
636
- "valueStart": {
637
- "type": "string",
638
- "mutable": true,
639
- "complexType": {
640
- "original": "string",
641
- "resolved": "string | undefined",
642
- "references": {}
643
- },
644
- "required": false,
645
- "optional": true,
646
- "docs": {
647
- "tags": [],
648
- "text": ""
649
- },
650
- "attribute": "value-start",
651
- "reflect": false,
652
- "defaultValue": "\"\""
653
- },
654
- "valueEnd": {
655
- "type": "string",
656
- "mutable": true,
657
- "complexType": {
658
- "original": "string",
659
- "resolved": "string | undefined",
660
- "references": {}
661
- },
662
- "required": false,
663
- "optional": true,
664
- "docs": {
665
- "tags": [],
666
- "text": ""
667
- },
668
- "attribute": "value-end",
669
- "reflect": false,
670
- "defaultValue": "\"\""
671
- }
672
- };
673
- }
674
- static get states() {
675
- return {
676
- "availSpace": {},
677
- "isExpanded": {}
678
- };
679
- }
680
- static get events() {
681
- return [{
682
- "method": "wmRangeSelection",
683
- "name": "wmRangeSelection",
684
- "bubbles": true,
685
- "cancelable": true,
686
- "composed": true,
687
- "docs": {
688
- "tags": [],
689
- "text": ""
690
- },
691
- "complexType": {
692
- "original": "any",
693
- "resolved": "any",
694
- "references": {}
695
- }
696
- }, {
697
- "method": "wmStartInputBlur",
698
- "name": "wmStartInputBlur",
699
- "bubbles": true,
700
- "cancelable": true,
701
- "composed": true,
702
- "docs": {
703
- "tags": [],
704
- "text": ""
705
- },
706
- "complexType": {
707
- "original": "any",
708
- "resolved": "any",
709
- "references": {}
710
- }
711
- }, {
712
- "method": "wmEndInputBlur",
713
- "name": "wmEndInputBlur",
714
- "bubbles": true,
715
- "cancelable": true,
716
- "composed": true,
717
- "docs": {
718
- "tags": [],
719
- "text": ""
720
- },
721
- "complexType": {
722
- "original": "any",
723
- "resolved": "any",
724
- "references": {}
725
- }
726
- }];
727
- }
728
- static get methods() {
729
- return {
730
- "reformatDate": {
731
- "complexType": {
732
- "signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
733
- "parameters": [{
734
- "name": "inputFormat",
735
- "type": "string",
736
- "docs": ""
737
- }, {
738
- "name": "outputFormat",
739
- "type": "string",
740
- "docs": ""
741
- }, {
742
- "name": "date",
743
- "type": "string | undefined",
744
- "docs": ""
745
- }],
746
- "references": {
747
- "Promise": {
748
- "location": "global",
749
- "id": "global::Promise"
750
- }
751
- },
752
- "return": "Promise<string>"
753
- },
754
- "docs": {
755
- "text": "",
756
- "tags": []
757
- }
758
- },
759
- "isValidISO": {
760
- "complexType": {
761
- "signature": "(input?: string) => Promise<boolean>",
762
- "parameters": [{
763
- "name": "input",
764
- "type": "string | undefined",
765
- "docs": ""
766
- }],
767
- "references": {
768
- "Promise": {
769
- "location": "global",
770
- "id": "global::Promise"
771
- }
772
- },
773
- "return": "Promise<boolean>"
774
- },
775
- "docs": {
776
- "text": "",
777
- "tags": []
778
- }
779
- }
780
- };
781
- }
782
- static get elementRef() { return "el"; }
783
- static get watchers() {
784
- return [{
785
- "propName": "disabled",
786
- "methodName": "handleDisabled"
787
- }, {
788
- "propName": "valueStart",
789
- "methodName": "updateValueStart"
790
- }, {
791
- "propName": "valueEnd",
792
- "methodName": "updateValueEnd"
793
- }, {
794
- "propName": "errorMessage",
795
- "methodName": "handleErrorMessage"
796
- }];
797
- }
798
- static get listeners() {
799
- return [{
800
- "name": "keydown",
801
- "method": "handleKey",
802
- "target": undefined,
803
- "capture": false,
804
- "passive": false
805
- }, {
806
- "name": "click",
807
- "method": "blurHandler",
808
- "target": "document",
809
- "capture": false,
810
- "passive": false
811
- }, {
812
- "name": "blur",
813
- "method": "handleBlurOnWindow",
814
- "target": "window",
815
- "capture": false,
816
- "passive": false
817
- }, {
818
- "name": "popupBlurred",
819
- "method": "handlePopupBlurred",
820
- "target": undefined,
821
- "capture": false,
822
- "passive": false
823
- }, {
824
- "name": "cellTriggered",
825
- "method": "handleCellTriggered",
826
- "target": undefined,
827
- "capture": false,
828
- "passive": false
829
- }, {
830
- "name": "outOfCal",
831
- "method": "handleOutOfCal",
832
- "target": undefined,
833
- "capture": false,
834
- "passive": false
835
- }, {
836
- "name": "cellHovered",
837
- "method": "handleCellHovered",
838
- "target": undefined,
839
- "capture": false,
840
- "passive": false
841
- }, {
842
- "name": "resize",
843
- "method": "setAvailSpace",
844
- "target": "window",
845
- "capture": false,
846
- "passive": true
847
- }];
848
- }
849
- }