@watermarkinsights/ripple 5.13.0-alpha.3 → 5.13.0-alpha.4

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 (476) hide show
  1. package/dist/{components/index.js → ripple/app-globals-B7cOtGhY.js} +82 -3
  2. package/dist/{components/chartFunctions.js → ripple/chartFunctions-KaEM0xh0.js} +3 -2
  3. package/dist/{components/functions.js → ripple/functions-Dtrjc9kR.js} +7828 -146
  4. package/dist/ripple/index-CU5QNCKv.js +4167 -0
  5. package/dist/ripple/index.esm.js +1 -0
  6. package/dist/{collection/global/interfaces.js → ripple/interfaces-CrANcZM9.js} +6 -4
  7. package/dist/{esm/intl-DYVRT1s6.js → ripple/intl-BMoOWb_l.js} +1 -1
  8. package/dist/ripple/priv-calendar.entry.js +566 -0
  9. package/dist/ripple/{p-65db2c0f.entry.js → priv-chart-popover.entry.js} +134 -1
  10. package/dist/{esm-es5/wm-modal-pss-header.entry.js → ripple/priv-navigator-button.entry.js} +24 -1
  11. package/dist/ripple/priv-navigator-item.entry.js +30 -0
  12. package/dist/{esm-es5/wm-navigation.entry.js → ripple/priv-option-list.entry.js} +385 -1
  13. package/dist/ripple/ripple.css +1645 -1
  14. package/dist/ripple/ripple.esm.js +48 -1
  15. package/dist/ripple/wm-action-menu.entry.js +201 -0
  16. package/dist/{esm-es5/wm-navigator.entry.js → ripple/wm-button.entry.js} +197 -1
  17. package/dist/{esm → ripple}/wm-chart-slice.entry.js +1 -1
  18. package/dist/ripple/wm-chart.entry.js +157 -0
  19. package/dist/ripple/wm-date-range.entry.js +477 -0
  20. package/dist/ripple/wm-datepicker.entry.js +247 -0
  21. package/dist/ripple/wm-file-list.entry.js +18 -0
  22. package/dist/ripple/wm-file.entry.js +182 -0
  23. package/dist/ripple/wm-input.entry.js +111 -0
  24. package/dist/ripple/wm-line-chart.entry.js +449 -0
  25. package/dist/ripple/wm-menuitem.entry.js +125 -0
  26. package/dist/{esm-es5/priv-calendar.entry.js → ripple/wm-modal-footer.entry.js} +44 -1
  27. package/dist/{esm-es5/wm-chart.entry.js → ripple/wm-modal-header.entry.js} +36 -1
  28. package/dist/ripple/{p-2d41fbed.system.entry.js → wm-modal-pss-footer.entry.js} +40 -1
  29. package/dist/{esm-es5/wm-modal-header.entry.js → ripple/wm-modal-pss-header.entry.js} +39 -1
  30. package/dist/ripple/{p-d4481342.system.entry.js → wm-modal-pss.entry.js} +135 -1
  31. package/dist/ripple/wm-modal.entry.js +133 -0
  32. package/dist/ripple/wm-navigation-hamburger.entry.js +48 -0
  33. package/dist/{esm-es5 → ripple}/wm-navigation-item.entry.js +18 -1
  34. package/dist/ripple/{p-8a33538f.entry.js → wm-navigation.entry.js} +116 -1
  35. package/dist/ripple/wm-navigator.entry.js +368 -0
  36. package/dist/ripple/wm-nested-select.entry.js +308 -0
  37. package/dist/ripple/wm-optgroup.entry.js +68 -0
  38. package/dist/ripple/{p-997bdd2e.system.entry.js → wm-option.entry.js} +171 -1
  39. package/dist/ripple/wm-pagination.entry.js +223 -0
  40. package/dist/ripple/wm-progress-indicator.entry.js +107 -0
  41. package/dist/ripple/wm-progress-monitor.entry.js +71 -0
  42. package/dist/{esm → ripple}/wm-progress-slice.entry.js +1 -1
  43. package/dist/ripple/{p-d20ed498.entry.js → wm-search.entry.js} +208 -1
  44. package/dist/ripple/{p-e0c9798d.system.entry.js → wm-select.entry.js} +249 -1
  45. package/dist/ripple/wm-snackbar.entry.js +178 -0
  46. package/dist/{esm-es5 → ripple}/wm-tab-item.entry.js +63 -1
  47. package/dist/ripple/{p-8b9c4e3e.entry.js → wm-tab-list.entry.js} +175 -1
  48. package/dist/ripple/wm-tab-panel.entry.js +32 -0
  49. package/dist/ripple/wm-tag-input.entry.js +877 -0
  50. package/dist/{esm → ripple}/wm-tag-option.entry.js +2 -2
  51. package/dist/ripple/wm-textarea.entry.js +79 -0
  52. package/dist/ripple/wm-timepicker.entry.js +300 -0
  53. package/dist/{esm-es5/wm-progress-monitor.entry.js → ripple/wm-toggletip.entry.js} +176 -1
  54. package/dist/ripple/wm-uploader.entry.js +313 -0
  55. package/dist/{esm → ripple}/wm-wrapper.entry.js +1 -1
  56. package/package.json +30 -6
  57. package/dist/cjs/app-globals-DztnjEf7.js +0 -92
  58. package/dist/cjs/chartFunctions-CM2Nah_s.js +0 -731
  59. package/dist/cjs/functions-CoXfjC6r.js +0 -10450
  60. package/dist/cjs/index-Cig4P4gJ.js +0 -2082
  61. package/dist/cjs/index.cjs.js +0 -2
  62. package/dist/cjs/interfaces-C7YbtGnk.js +0 -37
  63. package/dist/cjs/intl-DVt1J717.js +0 -283
  64. package/dist/cjs/loader.cjs.js +0 -13
  65. package/dist/cjs/priv-calendar.cjs.entry.js +0 -568
  66. package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -136
  67. package/dist/cjs/priv-navigator-button_2.cjs.entry.js +0 -54
  68. package/dist/cjs/priv-option-list_2.cjs.entry.js +0 -556
  69. package/dist/cjs/ripple.cjs.js +0 -25
  70. package/dist/cjs/wm-action-menu_4.cjs.entry.js +0 -702
  71. package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -20
  72. package/dist/cjs/wm-chart.cjs.entry.js +0 -159
  73. package/dist/cjs/wm-date-range.cjs.entry.js +0 -479
  74. package/dist/cjs/wm-datepicker.cjs.entry.js +0 -249
  75. package/dist/cjs/wm-file-list.cjs.entry.js +0 -20
  76. package/dist/cjs/wm-file.cjs.entry.js +0 -184
  77. package/dist/cjs/wm-input.cjs.entry.js +0 -113
  78. package/dist/cjs/wm-line-chart.cjs.entry.js +0 -451
  79. package/dist/cjs/wm-modal-footer.cjs.entry.js +0 -46
  80. package/dist/cjs/wm-modal-header.cjs.entry.js +0 -38
  81. package/dist/cjs/wm-modal-pss-footer.cjs.entry.js +0 -42
  82. package/dist/cjs/wm-modal-pss-header.cjs.entry.js +0 -41
  83. package/dist/cjs/wm-modal-pss.cjs.entry.js +0 -137
  84. package/dist/cjs/wm-modal.cjs.entry.js +0 -135
  85. package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +0 -50
  86. package/dist/cjs/wm-navigation-item.cjs.entry.js +0 -20
  87. package/dist/cjs/wm-navigation.cjs.entry.js +0 -118
  88. package/dist/cjs/wm-navigator.cjs.entry.js +0 -329
  89. package/dist/cjs/wm-nested-select.cjs.entry.js +0 -310
  90. package/dist/cjs/wm-optgroup.cjs.entry.js +0 -70
  91. package/dist/cjs/wm-pagination.cjs.entry.js +0 -225
  92. package/dist/cjs/wm-progress-indicator.cjs.entry.js +0 -109
  93. package/dist/cjs/wm-progress-monitor.cjs.entry.js +0 -73
  94. package/dist/cjs/wm-progress-slice.cjs.entry.js +0 -15
  95. package/dist/cjs/wm-search.cjs.entry.js +0 -210
  96. package/dist/cjs/wm-select.cjs.entry.js +0 -251
  97. package/dist/cjs/wm-tab-item.cjs.entry.js +0 -65
  98. package/dist/cjs/wm-tab-list.cjs.entry.js +0 -177
  99. package/dist/cjs/wm-tab-panel.cjs.entry.js +0 -34
  100. package/dist/cjs/wm-tag-input.cjs.entry.js +0 -879
  101. package/dist/cjs/wm-tag-option.cjs.entry.js +0 -37
  102. package/dist/cjs/wm-textarea.cjs.entry.js +0 -81
  103. package/dist/cjs/wm-timepicker.cjs.entry.js +0 -302
  104. package/dist/cjs/wm-toggletip.cjs.entry.js +0 -178
  105. package/dist/cjs/wm-uploader.cjs.entry.js +0 -315
  106. package/dist/cjs/wm-wrapper.cjs.entry.js +0 -19
  107. package/dist/collection/collection-manifest.json +0 -58
  108. package/dist/collection/components/charts/chartFunctions.js +0 -665
  109. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -908
  110. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +0 -261
  111. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +0 -128
  112. package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -1274
  113. package/dist/collection/components/charts/wm-chart/wm-chart.js +0 -445
  114. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -1067
  115. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +0 -742
  116. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -1274
  117. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +0 -271
  118. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -909
  119. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +0 -154
  120. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +0 -124
  121. package/dist/collection/components/datepickers/datepicker.css +0 -1044
  122. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -1279
  123. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +0 -849
  124. package/dist/collection/components/datepickers/wm-date-range.js +0 -869
  125. package/dist/collection/components/datepickers/wm-datepicker.js +0 -538
  126. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -918
  127. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +0 -791
  128. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -1181
  129. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +0 -644
  130. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -830
  131. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +0 -265
  132. package/dist/collection/components/selects/wm-option/wm-option.css +0 -931
  133. package/dist/collection/components/selects/wm-option/wm-option.js +0 -539
  134. package/dist/collection/components/selects/wm-select/wm-select.css +0 -1104
  135. package/dist/collection/components/selects/wm-select/wm-select.js +0 -606
  136. package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -891
  137. package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -444
  138. package/dist/collection/components/wm-button/wm-button.css +0 -1261
  139. package/dist/collection/components/wm-button/wm-button.js +0 -510
  140. package/dist/collection/components/wm-file/wm-file.css +0 -927
  141. package/dist/collection/components/wm-file/wm-file.js +0 -423
  142. package/dist/collection/components/wm-file-list/wm-file-list.css +0 -820
  143. package/dist/collection/components/wm-file-list/wm-file-list.js +0 -47
  144. package/dist/collection/components/wm-input/wm-input.css +0 -993
  145. package/dist/collection/components/wm-input/wm-input.js +0 -498
  146. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -891
  147. package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -425
  148. package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -845
  149. package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -152
  150. package/dist/collection/components/wm-modal/wm-modal-header.css +0 -844
  151. package/dist/collection/components/wm-modal/wm-modal-header.js +0 -83
  152. package/dist/collection/components/wm-modal/wm-modal.css +0 -892
  153. package/dist/collection/components/wm-modal/wm-modal.js +0 -356
  154. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -852
  155. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +0 -148
  156. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -846
  157. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +0 -86
  158. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -928
  159. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +0 -369
  160. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -847
  161. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -120
  162. package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -856
  163. package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -99
  164. package/dist/collection/components/wm-navigation/wm-navigation.css +0 -898
  165. package/dist/collection/components/wm-navigation/wm-navigation.js +0 -192
  166. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -850
  167. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -90
  168. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -830
  169. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -130
  170. package/dist/collection/components/wm-navigator/wm-navigator.css +0 -903
  171. package/dist/collection/components/wm-navigator/wm-navigator.js +0 -515
  172. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -971
  173. package/dist/collection/components/wm-pagination/wm-pagination.js +0 -373
  174. package/dist/collection/components/wm-search/wm-search.css +0 -896
  175. package/dist/collection/components/wm-search/wm-search.js +0 -462
  176. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -1078
  177. package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -280
  178. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -869
  179. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -187
  180. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -841
  181. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -276
  182. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -825
  183. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -97
  184. package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -1276
  185. package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -1245
  186. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +0 -251
  187. package/dist/collection/components/wm-textarea/wm-textarea.css +0 -980
  188. package/dist/collection/components/wm-textarea/wm-textarea.js +0 -331
  189. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -1094
  190. package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -559
  191. package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1152
  192. package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -295
  193. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -1563
  194. package/dist/collection/components/wm-uploader/wm-uploader.js +0 -618
  195. package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -28
  196. package/dist/collection/dev/action-menu.js +0 -0
  197. package/dist/collection/dev/button.js +0 -0
  198. package/dist/collection/dev/chart-small.js +0 -56
  199. package/dist/collection/dev/chart.js +0 -18
  200. package/dist/collection/dev/date-range.js +0 -6
  201. package/dist/collection/dev/datepicker.js +0 -46
  202. package/dist/collection/dev/file-list.js +0 -16
  203. package/dist/collection/dev/file.js +0 -0
  204. package/dist/collection/dev/input.js +0 -6
  205. package/dist/collection/dev/line-chart.js +0 -0
  206. package/dist/collection/dev/modal.js +0 -48
  207. package/dist/collection/dev/navigation.js +0 -13
  208. package/dist/collection/dev/navigator.js +0 -34
  209. package/dist/collection/dev/nested-select.js +0 -36
  210. package/dist/collection/dev/pagination.js +0 -7
  211. package/dist/collection/dev/progress-monitor.js +0 -0
  212. package/dist/collection/dev/pss-modal.js +0 -8
  213. package/dist/collection/dev/scripts.js +0 -49
  214. package/dist/collection/dev/search.js +0 -72
  215. package/dist/collection/dev/select.js +0 -57
  216. package/dist/collection/dev/snackbar.js +0 -60
  217. package/dist/collection/dev/tabs.js +0 -44
  218. package/dist/collection/dev/tag-input.js +0 -32
  219. package/dist/collection/dev/textarea.js +0 -28
  220. package/dist/collection/dev/timepicker.js +0 -32
  221. package/dist/collection/dev/toggletip.js +0 -9
  222. package/dist/collection/dev/uploader.js +0 -139
  223. package/dist/collection/global/__mocks__/functions.js +0 -6
  224. package/dist/collection/global/functions.js +0 -825
  225. package/dist/collection/global/global.js +0 -88
  226. package/dist/collection/global/intl.js +0 -274
  227. package/dist/collection/global/services/__mocks__/http-service.js +0 -130
  228. package/dist/collection/global/services/http-service.js +0 -50
  229. package/dist/collection/lang/lang.js +0 -5
  230. package/dist/collection/lang/missing.js +0 -43
  231. package/dist/collection/lang/piglatin.js +0 -101
  232. package/dist/components/interfaces.js +0 -34
  233. package/dist/components/intl.js +0 -277
  234. package/dist/components/priv-calendar.js +0 -6
  235. package/dist/components/priv-calendar2.js +0 -592
  236. package/dist/components/priv-chart-popover.js +0 -6
  237. package/dist/components/priv-chart-popover2.js +0 -154
  238. package/dist/components/priv-navigator-button.js +0 -6
  239. package/dist/components/priv-navigator-button2.js +0 -42
  240. package/dist/components/priv-navigator-item.js +0 -6
  241. package/dist/components/priv-navigator-item2.js +0 -49
  242. package/dist/components/priv-option-list.js +0 -6
  243. package/dist/components/priv-option-list2.js +0 -421
  244. package/dist/components/wm-action-menu.js +0 -6
  245. package/dist/components/wm-action-menu2.js +0 -231
  246. package/dist/components/wm-button.js +0 -6
  247. package/dist/components/wm-button2.js +0 -231
  248. package/dist/components/wm-chart-slice.js +0 -41
  249. package/dist/components/wm-chart.js +0 -197
  250. package/dist/components/wm-date-range.js +0 -522
  251. package/dist/components/wm-datepicker.js +0 -287
  252. package/dist/components/wm-file-list.js +0 -38
  253. package/dist/components/wm-file.js +0 -228
  254. package/dist/components/wm-input.js +0 -152
  255. package/dist/components/wm-line-chart.js +0 -497
  256. package/dist/components/wm-menuitem.js +0 -6
  257. package/dist/components/wm-menuitem2.js +0 -146
  258. package/dist/components/wm-modal-footer.js +0 -73
  259. package/dist/components/wm-modal-header.js +0 -61
  260. package/dist/components/wm-modal-pss-footer.js +0 -69
  261. package/dist/components/wm-modal-pss-header.js +0 -64
  262. package/dist/components/wm-modal-pss.js +0 -162
  263. package/dist/components/wm-modal.js +0 -161
  264. package/dist/components/wm-navigation-hamburger.js +0 -70
  265. package/dist/components/wm-navigation-item.js +0 -40
  266. package/dist/components/wm-navigation.js +0 -144
  267. package/dist/components/wm-navigator.js +0 -369
  268. package/dist/components/wm-nested-select.js +0 -343
  269. package/dist/components/wm-optgroup.js +0 -107
  270. package/dist/components/wm-option.js +0 -6
  271. package/dist/components/wm-option2.js +0 -196
  272. package/dist/components/wm-pagination.js +0 -251
  273. package/dist/components/wm-progress-indicator.js +0 -144
  274. package/dist/components/wm-progress-monitor.js +0 -93
  275. package/dist/components/wm-progress-slice.js +0 -37
  276. package/dist/components/wm-search.js +0 -250
  277. package/dist/components/wm-select.js +0 -6
  278. package/dist/components/wm-select2.js +0 -294
  279. package/dist/components/wm-snackbar.js +0 -210
  280. package/dist/components/wm-tab-item.js +0 -85
  281. package/dist/components/wm-tab-list.js +0 -217
  282. package/dist/components/wm-tab-panel.js +0 -52
  283. package/dist/components/wm-tag-input.js +0 -919
  284. package/dist/components/wm-tag-option.js +0 -63
  285. package/dist/components/wm-textarea.js +0 -113
  286. package/dist/components/wm-timepicker.js +0 -333
  287. package/dist/components/wm-toggletip.js +0 -200
  288. package/dist/components/wm-uploader.js +0 -348
  289. package/dist/components/wm-wrapper.js +0 -34
  290. package/dist/esm/app-globals-9HoPoE5v.js +0 -90
  291. package/dist/esm/chartFunctions-BFCUD5JX.js +0 -714
  292. package/dist/esm/functions-ZDMCMR3o.js +0 -10410
  293. package/dist/esm/index-EopL5zo4.js +0 -2071
  294. package/dist/esm/index.js +0 -1
  295. package/dist/esm/interfaces-CyJHzEjr.js +0 -34
  296. package/dist/esm/loader.js +0 -11
  297. package/dist/esm/polyfills/core-js.js +0 -11
  298. package/dist/esm/polyfills/dom.js +0 -79
  299. package/dist/esm/polyfills/es5-html-element.js +0 -1
  300. package/dist/esm/polyfills/index.js +0 -34
  301. package/dist/esm/polyfills/system.js +0 -6
  302. package/dist/esm/priv-calendar.entry.js +0 -566
  303. package/dist/esm/priv-chart-popover.entry.js +0 -134
  304. package/dist/esm/priv-navigator-button_2.entry.js +0 -51
  305. package/dist/esm/priv-option-list_2.entry.js +0 -553
  306. package/dist/esm/ripple.js +0 -21
  307. package/dist/esm/wm-action-menu_4.entry.js +0 -697
  308. package/dist/esm/wm-chart.entry.js +0 -157
  309. package/dist/esm/wm-date-range.entry.js +0 -477
  310. package/dist/esm/wm-datepicker.entry.js +0 -247
  311. package/dist/esm/wm-file-list.entry.js +0 -18
  312. package/dist/esm/wm-file.entry.js +0 -182
  313. package/dist/esm/wm-input.entry.js +0 -111
  314. package/dist/esm/wm-line-chart.entry.js +0 -449
  315. package/dist/esm/wm-modal-footer.entry.js +0 -44
  316. package/dist/esm/wm-modal-header.entry.js +0 -36
  317. package/dist/esm/wm-modal-pss-footer.entry.js +0 -40
  318. package/dist/esm/wm-modal-pss-header.entry.js +0 -39
  319. package/dist/esm/wm-modal-pss.entry.js +0 -135
  320. package/dist/esm/wm-modal.entry.js +0 -133
  321. package/dist/esm/wm-navigation-hamburger.entry.js +0 -48
  322. package/dist/esm/wm-navigation-item.entry.js +0 -18
  323. package/dist/esm/wm-navigation.entry.js +0 -116
  324. package/dist/esm/wm-navigator.entry.js +0 -327
  325. package/dist/esm/wm-nested-select.entry.js +0 -308
  326. package/dist/esm/wm-optgroup.entry.js +0 -68
  327. package/dist/esm/wm-pagination.entry.js +0 -223
  328. package/dist/esm/wm-progress-indicator.entry.js +0 -107
  329. package/dist/esm/wm-progress-monitor.entry.js +0 -71
  330. package/dist/esm/wm-search.entry.js +0 -208
  331. package/dist/esm/wm-select.entry.js +0 -249
  332. package/dist/esm/wm-tab-item.entry.js +0 -63
  333. package/dist/esm/wm-tab-list.entry.js +0 -175
  334. package/dist/esm/wm-tab-panel.entry.js +0 -32
  335. package/dist/esm/wm-tag-input.entry.js +0 -877
  336. package/dist/esm/wm-textarea.entry.js +0 -79
  337. package/dist/esm/wm-timepicker.entry.js +0 -300
  338. package/dist/esm/wm-toggletip.entry.js +0 -176
  339. package/dist/esm/wm-uploader.entry.js +0 -313
  340. package/dist/esm-es5/app-globals-9HoPoE5v.js +0 -1
  341. package/dist/esm-es5/chartFunctions-BFCUD5JX.js +0 -1
  342. package/dist/esm-es5/functions-ZDMCMR3o.js +0 -1
  343. package/dist/esm-es5/index-EopL5zo4.js +0 -1
  344. package/dist/esm-es5/index.js +0 -0
  345. package/dist/esm-es5/interfaces-CyJHzEjr.js +0 -1
  346. package/dist/esm-es5/intl-DYVRT1s6.js +0 -1
  347. package/dist/esm-es5/loader.js +0 -1
  348. package/dist/esm-es5/priv-chart-popover.entry.js +0 -1
  349. package/dist/esm-es5/priv-navigator-button_2.entry.js +0 -1
  350. package/dist/esm-es5/priv-option-list_2.entry.js +0 -1
  351. package/dist/esm-es5/ripple.js +0 -1
  352. package/dist/esm-es5/wm-action-menu_4.entry.js +0 -1
  353. package/dist/esm-es5/wm-chart-slice.entry.js +0 -1
  354. package/dist/esm-es5/wm-date-range.entry.js +0 -1
  355. package/dist/esm-es5/wm-datepicker.entry.js +0 -1
  356. package/dist/esm-es5/wm-file-list.entry.js +0 -1
  357. package/dist/esm-es5/wm-file.entry.js +0 -1
  358. package/dist/esm-es5/wm-input.entry.js +0 -1
  359. package/dist/esm-es5/wm-line-chart.entry.js +0 -1
  360. package/dist/esm-es5/wm-modal-footer.entry.js +0 -1
  361. package/dist/esm-es5/wm-modal-pss-footer.entry.js +0 -1
  362. package/dist/esm-es5/wm-modal-pss.entry.js +0 -1
  363. package/dist/esm-es5/wm-modal.entry.js +0 -1
  364. package/dist/esm-es5/wm-navigation-hamburger.entry.js +0 -1
  365. package/dist/esm-es5/wm-nested-select.entry.js +0 -1
  366. package/dist/esm-es5/wm-optgroup.entry.js +0 -1
  367. package/dist/esm-es5/wm-pagination.entry.js +0 -1
  368. package/dist/esm-es5/wm-progress-indicator.entry.js +0 -1
  369. package/dist/esm-es5/wm-progress-slice.entry.js +0 -1
  370. package/dist/esm-es5/wm-search.entry.js +0 -1
  371. package/dist/esm-es5/wm-select.entry.js +0 -1
  372. package/dist/esm-es5/wm-tab-list.entry.js +0 -1
  373. package/dist/esm-es5/wm-tab-panel.entry.js +0 -1
  374. package/dist/esm-es5/wm-tag-input.entry.js +0 -1
  375. package/dist/esm-es5/wm-tag-option.entry.js +0 -1
  376. package/dist/esm-es5/wm-textarea.entry.js +0 -1
  377. package/dist/esm-es5/wm-timepicker.entry.js +0 -1
  378. package/dist/esm-es5/wm-toggletip.entry.js +0 -1
  379. package/dist/esm-es5/wm-uploader.entry.js +0 -1
  380. package/dist/esm-es5/wm-wrapper.entry.js +0 -1
  381. package/dist/index.cjs.js +0 -1
  382. package/dist/index.js +0 -1
  383. package/dist/loader/cdn.js +0 -2
  384. package/dist/loader/index.cjs.js +0 -2
  385. package/dist/loader/index.d.ts +0 -24
  386. package/dist/loader/index.es2017.js +0 -2
  387. package/dist/loader/index.js +0 -3
  388. package/dist/ripple/p-032f127e.entry.js +0 -1
  389. package/dist/ripple/p-0bd43518.system.entry.js +0 -1
  390. package/dist/ripple/p-0dccd9b4.system.entry.js +0 -1
  391. package/dist/ripple/p-0dffa9ff.system.entry.js +0 -1
  392. package/dist/ripple/p-10d2b86e.entry.js +0 -1
  393. package/dist/ripple/p-1818d7f9.entry.js +0 -1
  394. package/dist/ripple/p-18d22114.system.entry.js +0 -1
  395. package/dist/ripple/p-1a769629.system.entry.js +0 -1
  396. package/dist/ripple/p-271ba485.system.entry.js +0 -1
  397. package/dist/ripple/p-2f26b6ac.entry.js +0 -1
  398. package/dist/ripple/p-3065bbe5.system.entry.js +0 -1
  399. package/dist/ripple/p-306caa10.entry.js +0 -1
  400. package/dist/ripple/p-32f2f3b4.system.entry.js +0 -1
  401. package/dist/ripple/p-340b73a9.system.entry.js +0 -1
  402. package/dist/ripple/p-42f9cd3d.entry.js +0 -1
  403. package/dist/ripple/p-47b525bd.entry.js +0 -1
  404. package/dist/ripple/p-492a8a9f.entry.js +0 -1
  405. package/dist/ripple/p-4c316652.system.entry.js +0 -1
  406. package/dist/ripple/p-54aeadde.entry.js +0 -1
  407. package/dist/ripple/p-568e29d3.entry.js +0 -1
  408. package/dist/ripple/p-588a86ed.system.entry.js +0 -1
  409. package/dist/ripple/p-591fd100.entry.js +0 -1
  410. package/dist/ripple/p-5a6cbc14.system.entry.js +0 -1
  411. package/dist/ripple/p-5abe1171.system.entry.js +0 -1
  412. package/dist/ripple/p-5ae17300.system.entry.js +0 -1
  413. package/dist/ripple/p-5b02ae40.entry.js +0 -1
  414. package/dist/ripple/p-5e438798.system.entry.js +0 -1
  415. package/dist/ripple/p-5ed4177e.entry.js +0 -1
  416. package/dist/ripple/p-6133160d.system.entry.js +0 -1
  417. package/dist/ripple/p-620aff89.entry.js +0 -1
  418. package/dist/ripple/p-70ed57bf.entry.js +0 -1
  419. package/dist/ripple/p-735d033a.entry.js +0 -1
  420. package/dist/ripple/p-74b1e110.entry.js +0 -1
  421. package/dist/ripple/p-77a8306c.entry.js +0 -1
  422. package/dist/ripple/p-7886fe5e.system.entry.js +0 -1
  423. package/dist/ripple/p-7ce09692.system.entry.js +0 -1
  424. package/dist/ripple/p-7cf1d9eb.system.entry.js +0 -1
  425. package/dist/ripple/p-7e786c28.system.entry.js +0 -1
  426. package/dist/ripple/p-812615ae.entry.js +0 -1
  427. package/dist/ripple/p-90925ea9.entry.js +0 -1
  428. package/dist/ripple/p-959afdcf.entry.js +0 -1
  429. package/dist/ripple/p-9db5f78e.entry.js +0 -1
  430. package/dist/ripple/p-BexWEx3U.system.js +0 -1
  431. package/dist/ripple/p-BgmAsS86.system.js +0 -1
  432. package/dist/ripple/p-Buh1DT2-.js +0 -1
  433. package/dist/ripple/p-CLZytLAw.system.js +0 -1
  434. package/dist/ripple/p-CTau6pR2.system.js +0 -2
  435. package/dist/ripple/p-CwkTkxrj.system.js +0 -1
  436. package/dist/ripple/p-CyJHzEjr.js +0 -1
  437. package/dist/ripple/p-DXsimRMV.js +0 -1
  438. package/dist/ripple/p-EopL5zo4.js +0 -2
  439. package/dist/ripple/p-GXdCI-yj.system.js +0 -1
  440. package/dist/ripple/p-UJrCrAlw.system.js +0 -1
  441. package/dist/ripple/p-YWpyar7R.system.js +0 -1
  442. package/dist/ripple/p-ZDMCMR3o.js +0 -1
  443. package/dist/ripple/p-b0b94ac4.system.entry.js +0 -1
  444. package/dist/ripple/p-b12640bd.entry.js +0 -1
  445. package/dist/ripple/p-b16431b0.system.entry.js +0 -1
  446. package/dist/ripple/p-b43cc69f.entry.js +0 -1
  447. package/dist/ripple/p-b4917824.entry.js +0 -1
  448. package/dist/ripple/p-b55babe1.system.entry.js +0 -1
  449. package/dist/ripple/p-ba48d47a.entry.js +0 -1
  450. package/dist/ripple/p-ba8ca46b.system.entry.js +0 -1
  451. package/dist/ripple/p-bee35fef.entry.js +0 -1
  452. package/dist/ripple/p-c273bb1c.system.entry.js +0 -1
  453. package/dist/ripple/p-cdebe76b.system.entry.js +0 -1
  454. package/dist/ripple/p-ce9634a2.entry.js +0 -1
  455. package/dist/ripple/p-d3e6498c.system.entry.js +0 -1
  456. package/dist/ripple/p-d40b6ef1.system.entry.js +0 -1
  457. package/dist/ripple/p-d5bcab58.entry.js +0 -1
  458. package/dist/ripple/p-d7660e7d.entry.js +0 -1
  459. package/dist/ripple/p-d85f017a.system.entry.js +0 -1
  460. package/dist/ripple/p-da5ad94c.system.entry.js +0 -1
  461. package/dist/ripple/p-dcca5771.system.entry.js +0 -1
  462. package/dist/ripple/p-dd236f42.system.entry.js +0 -1
  463. package/dist/ripple/p-de33fd67.entry.js +0 -1
  464. package/dist/ripple/p-e3700f4c.entry.js +0 -1
  465. package/dist/ripple/p-e901154b.entry.js +0 -1
  466. package/dist/ripple/p-e9fc862d.entry.js +0 -1
  467. package/dist/ripple/p-ea885cf3.system.entry.js +0 -1
  468. package/dist/ripple/p-f4c4218c.system.entry.js +0 -1
  469. package/dist/ripple/p-f57eb234.system.entry.js +0 -1
  470. package/dist/ripple/p-f858f5f9.system.entry.js +0 -1
  471. package/dist/ripple/p-f8721463.system.entry.js +0 -1
  472. package/dist/ripple/p-f881be15.entry.js +0 -1
  473. package/dist/ripple/p-f98949ad.entry.js +0 -1
  474. package/dist/ripple/p-fdcbcdf5.entry.js +0 -1
  475. package/dist/ripple/p-sXfORL9J.js +0 -1
  476. package/dist/ripple/ripple.js +0 -127
@@ -1,869 +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.dateFormat = "mm/dd/yyyy";
6
- this.disabled = false;
7
- this.invalidStart = false;
8
- this.invalidEnd = false;
9
- this.labelStart = "";
10
- this.labelEnd = "";
11
- this.requiredField = false;
12
- this.valueStart = ""; // in user format (INT, US...)
13
- this.valueEnd = "";
14
- this.openUp = false;
15
- this.calWidth = 681; // 673 + 8px of room
16
- this.availSpace = 0;
17
- this.popupClicked = false;
18
- this.toggleButtonClicked = false;
19
- this.isExpanded = false;
20
- this.formats = { "mm/dd/yyyy": "US", "dd/mm/yyyy": "INT", "yyyy/mm/dd": "ISO" };
21
- }
22
- get _disabled() {
23
- // string "false" needs to be treated as bool False because react wrappers convert bool to string.
24
- return toBool(this.disabled);
25
- }
26
- get focusDates() {
27
- // the date the first calendar will open to. either:
28
- // - value-start
29
- // - a date provided by the dev via prop preselected
30
- // - today's date
31
- const isoStart = this.toISO(this.valueStart);
32
- // fallback:
33
- let startFocusDate = dateToISO(new Date());
34
- if (this._isValidISO(isoStart)) {
35
- startFocusDate = isoStart;
36
- }
37
- else if (this.preselected && this._isValidISO(this.preselected)) {
38
- startFocusDate = this.preselected;
39
- }
40
- // the date the second calendar will open to. either:
41
- // - value-end, if exists and not same month as value-start
42
- // - the month after the first calendar
43
- let firstOfNextMonth = this.toJSDate(startFocusDate);
44
- if (firstOfNextMonth.getUTCMonth() == 11) {
45
- firstOfNextMonth.setYear(firstOfNextMonth.getUTCFullYear() + 1);
46
- }
47
- firstOfNextMonth.setMonth((firstOfNextMonth.getUTCMonth() + 1) % 12, 1);
48
- let endFocusDate = dateToISO(firstOfNextMonth); // fallback
49
- const isoEnd = this.toISO(this.valueEnd);
50
- if (this._isValidISO(isoEnd)) {
51
- const sameMonth = this.isSameMonth(startFocusDate, isoEnd);
52
- if (!sameMonth) {
53
- endFocusDate = isoEnd;
54
- // if there is a valueEnd and no valueStart, set valueStart to the month before valueEnd;
55
- if (!isoStart) {
56
- let firstOfPrevMonth = this.toJSDate(endFocusDate);
57
- let month = firstOfPrevMonth.getUTCMonth() - 1;
58
- if (month == -1) {
59
- month = 11;
60
- firstOfPrevMonth.setYear(firstOfPrevMonth.getUTCFullYear() - 1);
61
- }
62
- firstOfPrevMonth.setMonth(month, 1);
63
- startFocusDate = dateToISO(firstOfPrevMonth);
64
- }
65
- }
66
- }
67
- return [startFocusDate, endFocusDate];
68
- }
69
- // same month of the same year
70
- isSameMonth(date1, date2) {
71
- if (date1 && date2) {
72
- return date1.slice(0, -3) === date2.slice(0, -3);
73
- }
74
- else {
75
- return false;
76
- }
77
- }
78
- toJSDate(date) {
79
- if (date && this._isValidISO(date)) {
80
- let newDate = new Date();
81
- newDate.setUTCFullYear(parseInt(date.split("-")[0]), parseInt(date.split("-")[1]) - 1, parseInt(date.split("-")[2]));
82
- return newDate;
83
- }
84
- else {
85
- return undefined;
86
- }
87
- }
88
- toISO(date) {
89
- // returns the input when it can't reformat
90
- return this._reformatDate(this.formats[this.dateFormat], "ISO", date);
91
- }
92
- handleDisabled() {
93
- handleDisabledAttribute(this.el, this._disabled);
94
- }
95
- updateValueStart() {
96
- this.startInputEl.value = this.valueStart ? this.valueStart : "";
97
- }
98
- updateValueEnd() {
99
- this.endInputEl.value = this.valueEnd ? this.valueEnd : "";
100
- }
101
- handleErrorMessage() {
102
- if (this.errorMessage) {
103
- setTimeout(() => this.announce(this.errorMessage), 100);
104
- }
105
- }
106
- togglePopup() {
107
- this.isExpanded ? this.closePopup() : this.openPopup();
108
- this.toggleButtonClicked = true;
109
- }
110
- closePopup(returnFocus = false) {
111
- // reset
112
- // clearing these in case the user closes without finishing the process
113
- this.date1 = undefined;
114
- this.date2 = undefined;
115
- this.startCalEl.startDate = undefined;
116
- this.startCalEl.endDate = undefined;
117
- this.startCalEl.hoverDate = undefined;
118
- this.endCalEl.startDate = undefined;
119
- this.endCalEl.endDate = undefined;
120
- this.endCalEl.hoverDate = undefined;
121
- this.isExpanded = false;
122
- this.startCalEl.view = "day";
123
- this.endCalEl.view = "day";
124
- this.popupEl.classList.remove("open");
125
- window.setTimeout(() => {
126
- //not using display none in order to get measurements of the popup while hidden
127
- this.popupEl.style.visibility = "hidden";
128
- }, 250);
129
- //Reset values so that menu reopens to day view with selected date in focus
130
- if (returnFocus) {
131
- this.toggleEl.focus();
132
- }
133
- }
134
- openPopup() {
135
- // display stuff
136
- this.openUp = shouldOpenUp(this.el, this.popupEl.clientHeight, this.labelEl.clientHeight);
137
- const { spaceLeft, spaceRight } = getContextMeasurements(this.el);
138
- if (spaceRight >= this.calWidth - this.el.clientWidth) {
139
- this.popupEl.style.left = "0";
140
- this.popupEl.style.right = "auto";
141
- }
142
- else if (spaceLeft >= this.calWidth - this.el.clientWidth) {
143
- this.popupEl.style.right = "0";
144
- this.popupEl.style.left = "auto";
145
- }
146
- else {
147
- const offset = (this.availSpace - this.calWidth) / 2 - spaceLeft;
148
- this.popupEl.style.left = `${offset}px`;
149
- this.popupEl.style.right = "auto";
150
- }
151
- this.popupEl.style.visibility = "visible";
152
- window.requestAnimationFrame(() => {
153
- this.popupEl.classList.add("open");
154
- });
155
- this.isExpanded = true;
156
- // state stuff
157
- this.startCalEl.focusDate = this.focusDates[0];
158
- this.endCalEl.focusDate = this.focusDates[1];
159
- this.startCalEl.focusCell();
160
- if (this.valueStart) {
161
- const startISO = this.toISO(this.valueStart);
162
- if (this._isValidISO(startISO)) {
163
- this.startCalEl.startDate = startISO;
164
- }
165
- if (this.valueEnd) {
166
- const endISO = this.toISO(this.valueEnd);
167
- if (this._isValidISO(endISO)) {
168
- if (this.isSameMonth(startISO, endISO)) {
169
- this.startCalEl.endDate = endISO;
170
- }
171
- else {
172
- this.endCalEl.endDate = endISO;
173
- }
174
- }
175
- }
176
- }
177
- }
178
- handleFocus() {
179
- this.wrapperEl.classList.add("focus");
180
- }
181
- handleBlur() {
182
- this.wrapperEl.classList.remove("focus");
183
- }
184
- handleStartInputBlur() {
185
- this.wmStartInputBlur.emit();
186
- }
187
- handleEndInputBlur() {
188
- this.wmEndInputBlur.emit();
189
- }
190
- handleStartInput(ev) {
191
- // keep component's value in sync with input's value
192
- this.valueStart = ev.target.value;
193
- }
194
- handleEndInput(ev) {
195
- // keep component's value in sync with input's value
196
- this.valueEnd = ev.target.value;
197
- }
198
- handleKey(ev) {
199
- switch (ev.key) {
200
- case "Escape":
201
- ev.preventDefault();
202
- ev.stopPropagation(); // prevents closing of parent modal
203
- this.closePopup(true);
204
- break;
205
- }
206
- }
207
- blurHandler() {
208
- if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
209
- this.closePopup();
210
- }
211
- this.popupClicked = false;
212
- this.toggleButtonClicked = false;
213
- }
214
- // for cases where the user clicks or uses a shortcut to leave the document
215
- handleBlurOnWindow() {
216
- if (this.isExpanded) {
217
- this.closePopup();
218
- }
219
- }
220
- handleDateFocus(ev) {
221
- const cal = ev.target;
222
- const newFocusVal = cal.focusDate;
223
- // keeping calendars in sync
224
- // (left one should always be before right one)
225
- const startYearMonth = this.startCalEl.focusDate.slice(0, -3);
226
- const endYearMonth = this.endCalEl.focusDate.slice(0, -3);
227
- if (cal == this.startCalEl) {
228
- if (startYearMonth >= endYearMonth) {
229
- this.endCalEl.focusDate = dateFind.month.increase(this.startCalEl.focusDate, 1);
230
- }
231
- }
232
- else if (cal == this.endCalEl) {
233
- if (endYearMonth <= startYearMonth) {
234
- this.startCalEl.focusDate = dateFind.month.decrease(this.endCalEl.focusDate, 1);
235
- }
236
- }
237
- // SR announcements
238
- if (this.oldFocusVal) {
239
- const newYear = dateFind.year.asInt(newFocusVal);
240
- const oldYear = dateFind.year.asInt(this.oldFocusVal);
241
- const newMonth = dateFind.month.asInt(newFocusVal);
242
- const oldMonth = dateFind.month.asInt(this.oldFocusVal);
243
- if (cal.view === "day") {
244
- if (newYear != oldYear || newMonth != oldMonth) {
245
- this.liveRegionEl.innerHTML = intl.formatMessage({
246
- id: "date.viewingMonth",
247
- defaultMessage: "Viewing {month}, {year}",
248
- description: "Announcement indicating current month and year visible in a date picker",
249
- }, {
250
- month: calendar_months[newMonth - 1],
251
- year: newYear,
252
- });
253
- }
254
- }
255
- else {
256
- if (newYear != oldYear) {
257
- this.liveRegionEl.innerHTML = intl.formatMessage({
258
- id: "date.yearSelected",
259
- defaultMessage: "{year} selected.",
260
- description: "Announcement after the user selects a year in a date picker",
261
- }, { year: newYear });
262
- }
263
- else if (newMonth != oldMonth) {
264
- this.liveRegionEl.innerHTML = `${calendar_months[newMonth - 1]}, ${newYear}`;
265
- }
266
- }
267
- }
268
- this.oldFocusVal = cal.focusDate;
269
- }
270
- handlePopupBlurred(ev) {
271
- // emit blur event when leaving component from priv-calendar
272
- if (ev.detail.relatedTarget !== this.el) {
273
- const event = new CustomEvent("blur");
274
- // @ts-ignore
275
- event.relatedTarget = ev.detail.relatedTarget;
276
- this.el.dispatchEvent(event);
277
- }
278
- }
279
- handleCellTriggered(ev) {
280
- const cal = ev.detail.cal;
281
- const dateElement = ev.detail.cell;
282
- const newDate = dateElement.getAttribute("data-year") +
283
- "-" +
284
- dateElement.getAttribute("data-month") +
285
- "-" +
286
- dateElement.textContent.padStart(2, "0");
287
- if (this.startCalEl.endDate || this.endCalEl.endDate) {
288
- // there were already 2 dates, user is setting a new range.
289
- // set calendar state
290
- this.startCalEl.startDate = undefined;
291
- this.startCalEl.endDate = undefined;
292
- this.endCalEl.startDate = undefined;
293
- this.endCalEl.endDate = undefined;
294
- cal.startDate = newDate;
295
- // set component state
296
- this.date1 = newDate;
297
- this.date2 = undefined;
298
- }
299
- else if (this.date1 && newDate !== this.date1) {
300
- // user is setting the end of the range
301
- // ignore if same date as first is selected
302
- // (acts as if it was re-selected as the first date)
303
- // reorder if necessary
304
- if (this.date1 > newDate) {
305
- this.date2 = this.date1;
306
- this.date1 = newDate;
307
- }
308
- else {
309
- this.date2 = newDate;
310
- }
311
- const detail = {
312
- startDate: {
313
- iso: this.date1,
314
- us: this._reformatDate("ISO", "US", this.date1),
315
- int: this._reformatDate("ISO", "INT", this.date1),
316
- },
317
- endDate: {
318
- iso: this.date2,
319
- us: this._reformatDate("ISO", "US", this.date2),
320
- int: this._reformatDate("ISO", "INT", this.date2),
321
- },
322
- };
323
- this.wmRangeSelection.emit(detail);
324
- this.closePopup(true);
325
- this.date1 = undefined;
326
- this.date2 = undefined;
327
- }
328
- else {
329
- // calendars were clear, user sets first date
330
- cal.startDate = newDate;
331
- // component state
332
- this.date1 = newDate;
333
- }
334
- // Create events to trigger onInput and onChange on host element, to get the updated value
335
- // Because there are more ways to input than just typing, we are firing this event upon cellTriggered
336
- const inputEvent = new CustomEvent("input");
337
- this.el.dispatchEvent(inputEvent);
338
- const changeEvent = new CustomEvent("change");
339
- this.el.dispatchEvent(changeEvent);
340
- }
341
- handleOutOfCal() {
342
- this.startCalEl.hoverDate = undefined;
343
- this.endCalEl.hoverDate = undefined;
344
- }
345
- handleCellHovered(ev) {
346
- this.startCalEl.hoverDate = this.startCalEl.startDate === ev.detail ? undefined : ev.detail;
347
- this.endCalEl.hoverDate = this.endCalEl.startDate === ev.detail ? undefined : ev.detail;
348
- }
349
- async reformatDate(inputFormat, outputFormat, date) {
350
- return this._reformatDate(inputFormat, outputFormat, date);
351
- }
352
- _reformatDate(inputFormat, outputFormat, date) {
353
- // this function reformats date strings to/from the storage format ONLY. US -> INT and vice versa is not supported.
354
- if (inputFormat !== "ISO" && outputFormat !== "ISO")
355
- return "";
356
- // return if missing args
357
- if (!inputFormat || !outputFormat || !date)
358
- return "";
359
- // 1, 2, or 4 digits, separator, 1 or 2 digits, separator, then 1 or 2 or 4 digits
360
- const parsableEntry = /^(\d{1}|\d{2}|\d{4})[\-\.\/]\d{1,2}[\-\.\/](\d{1}|\d{2}|\d{4})$/;
361
- if (!parsableEntry.test(date)) {
362
- return date;
363
- }
364
- else {
365
- const dateArr = date.replace(/[\-\.]/gi, "/").split("/");
366
- switch (outputFormat) {
367
- case "US":
368
- return dateArr[1].padStart(2, "0") + "/" + dateArr[2].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
369
- case "INT":
370
- return dateArr[2].padStart(2, "0") + "/" + dateArr[1].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
371
- case "ISO":
372
- if (inputFormat === "US") {
373
- return dateArr[2].padStart(4, "20") + "-" + dateArr[0].padStart(2, "0") + "-" + dateArr[1].padStart(2, "0");
374
- }
375
- else if (inputFormat === "INT") {
376
- return dateArr[2].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[0].padStart(2, "0");
377
- }
378
- else if (inputFormat === "ISO") {
379
- return dateArr[0].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[2].padStart(2, "0");
380
- }
381
- default:
382
- return dateArr.join("/");
383
- }
384
- }
385
- }
386
- async isValidISO(input) {
387
- return this._isValidISO(input);
388
- }
389
- _isValidISO(input) {
390
- const ISOFormat = /^\d\d\d\d[-]\d\d[-]\d\d$/;
391
- if (!input || !ISOFormat.test(input)) {
392
- return false;
393
- }
394
- else {
395
- // Parse the ISO date parts to integers
396
- const parts = input.split("-");
397
- const day = parseInt(parts[2], 10);
398
- const month = parseInt(parts[1], 10);
399
- const year = parseInt(parts[0], 10);
400
- // Check the ranges of month and year
401
- if (year < 1000 || year > 3000 || month == 0 || month > 12)
402
- return false;
403
- let monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
404
- // Adjust for leap years
405
- if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0))
406
- monthLength[1] = 29;
407
- // Check the range of the day
408
- return day > 0 && day <= monthLength[month - 1];
409
- }
410
- }
411
- setAvailSpace() {
412
- this.availSpace = (this.hiddenOverflowParent || document.body).clientWidth;
413
- }
414
- componentWillLoad() {
415
- if (this.labelStart === "" || this.labelEnd === "") {
416
- console.error("For accessibility reasons you must specify labels for the date range inputs.");
417
- }
418
- handleDisabledAttribute(this.el, this._disabled);
419
- this.hiddenOverflowParent = findParentWithHiddenOverflow(this.el);
420
- if (this.hiddenOverflowParent) {
421
- const resizeObserver = new ResizeObserver(() => {
422
- this.availSpace = this.hiddenOverflowParent.clientWidth;
423
- });
424
- resizeObserver.observe(this.hiddenOverflowParent);
425
- }
426
- this.setAvailSpace();
427
- }
428
- announce(message) {
429
- // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
430
- if (this.liveRegionEl.textContent === message) {
431
- message += "\u00A0";
432
- }
433
- this.liveRegionEl.textContent = message;
434
- }
435
- renderCalendars() {
436
- if (this.calWidth <= this.availSpace) {
437
- 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() }))));
438
- }
439
- }
440
- render() {
441
- 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({
442
- id: "date.selectRange",
443
- defaultMessage: "Select range",
444
- description: "Button text for screen readers.",
445
- }), 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({
446
- id: "date.calendarView",
447
- defaultMessage: "Calendar View",
448
- description: "Calendar button",
449
- }) })))), 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({
450
- id: "date.selectMonth",
451
- defaultMessage: "Activate to select a month.",
452
- description: "Calendar button",
453
- })), h("div", { key: 'aab9385f49a28dc1306e59451234a9a7368aca4d', id: "year-title", class: "sr-only" }, intl.formatMessage({
454
- id: "date.selectYear",
455
- defaultMessage: "Activate to select a year.",
456
- description: "Calendar button",
457
- }))), 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" }))));
458
- }
459
- static get is() { return "wm-date-range"; }
460
- static get encapsulation() { return "shadow"; }
461
- static get delegatesFocus() { return true; }
462
- static get originalStyleUrls() {
463
- return {
464
- "$": ["datepicker.scss"]
465
- };
466
- }
467
- static get styleUrls() {
468
- return {
469
- "$": ["datepicker.css"]
470
- };
471
- }
472
- static get properties() {
473
- return {
474
- "dateFormat": {
475
- "type": "string",
476
- "attribute": "date-format",
477
- "mutable": false,
478
- "complexType": {
479
- "original": "string",
480
- "resolved": "string",
481
- "references": {}
482
- },
483
- "required": false,
484
- "optional": false,
485
- "docs": {
486
- "tags": [],
487
- "text": ""
488
- },
489
- "getter": false,
490
- "setter": false,
491
- "reflect": false,
492
- "defaultValue": "\"mm/dd/yyyy\""
493
- },
494
- "disabled": {
495
- "type": "boolean",
496
- "attribute": "disabled",
497
- "mutable": false,
498
- "complexType": {
499
- "original": "boolean",
500
- "resolved": "boolean",
501
- "references": {}
502
- },
503
- "required": false,
504
- "optional": false,
505
- "docs": {
506
- "tags": [],
507
- "text": ""
508
- },
509
- "getter": false,
510
- "setter": false,
511
- "reflect": false,
512
- "defaultValue": "false"
513
- },
514
- "errorMessage": {
515
- "type": "string",
516
- "attribute": "error-message",
517
- "mutable": false,
518
- "complexType": {
519
- "original": "string",
520
- "resolved": "string | undefined",
521
- "references": {}
522
- },
523
- "required": false,
524
- "optional": true,
525
- "docs": {
526
- "tags": [],
527
- "text": ""
528
- },
529
- "getter": false,
530
- "setter": false,
531
- "reflect": true
532
- },
533
- "invalidStart": {
534
- "type": "boolean",
535
- "attribute": "invalid-start",
536
- "mutable": false,
537
- "complexType": {
538
- "original": "boolean",
539
- "resolved": "boolean",
540
- "references": {}
541
- },
542
- "required": false,
543
- "optional": false,
544
- "docs": {
545
- "tags": [],
546
- "text": ""
547
- },
548
- "getter": false,
549
- "setter": false,
550
- "reflect": false,
551
- "defaultValue": "false"
552
- },
553
- "invalidEnd": {
554
- "type": "boolean",
555
- "attribute": "invalid-end",
556
- "mutable": false,
557
- "complexType": {
558
- "original": "boolean",
559
- "resolved": "boolean",
560
- "references": {}
561
- },
562
- "required": false,
563
- "optional": false,
564
- "docs": {
565
- "tags": [],
566
- "text": ""
567
- },
568
- "getter": false,
569
- "setter": false,
570
- "reflect": false,
571
- "defaultValue": "false"
572
- },
573
- "labelStart": {
574
- "type": "string",
575
- "attribute": "label-start",
576
- "mutable": false,
577
- "complexType": {
578
- "original": "string",
579
- "resolved": "string",
580
- "references": {}
581
- },
582
- "required": false,
583
- "optional": false,
584
- "docs": {
585
- "tags": [],
586
- "text": ""
587
- },
588
- "getter": false,
589
- "setter": false,
590
- "reflect": false,
591
- "defaultValue": "\"\""
592
- },
593
- "labelEnd": {
594
- "type": "string",
595
- "attribute": "label-end",
596
- "mutable": false,
597
- "complexType": {
598
- "original": "string",
599
- "resolved": "string",
600
- "references": {}
601
- },
602
- "required": false,
603
- "optional": false,
604
- "docs": {
605
- "tags": [],
606
- "text": ""
607
- },
608
- "getter": false,
609
- "setter": false,
610
- "reflect": false,
611
- "defaultValue": "\"\""
612
- },
613
- "preselected": {
614
- "type": "string",
615
- "attribute": "preselected",
616
- "mutable": false,
617
- "complexType": {
618
- "original": "string",
619
- "resolved": "string | undefined",
620
- "references": {}
621
- },
622
- "required": false,
623
- "optional": true,
624
- "docs": {
625
- "tags": [],
626
- "text": ""
627
- },
628
- "getter": false,
629
- "setter": false,
630
- "reflect": false
631
- },
632
- "requiredField": {
633
- "type": "boolean",
634
- "attribute": "required-field",
635
- "mutable": false,
636
- "complexType": {
637
- "original": "boolean",
638
- "resolved": "boolean",
639
- "references": {}
640
- },
641
- "required": false,
642
- "optional": false,
643
- "docs": {
644
- "tags": [],
645
- "text": ""
646
- },
647
- "getter": false,
648
- "setter": false,
649
- "reflect": false,
650
- "defaultValue": "false"
651
- },
652
- "valueStart": {
653
- "type": "string",
654
- "attribute": "value-start",
655
- "mutable": true,
656
- "complexType": {
657
- "original": "string",
658
- "resolved": "string | undefined",
659
- "references": {}
660
- },
661
- "required": false,
662
- "optional": true,
663
- "docs": {
664
- "tags": [],
665
- "text": ""
666
- },
667
- "getter": false,
668
- "setter": false,
669
- "reflect": false,
670
- "defaultValue": "\"\""
671
- },
672
- "valueEnd": {
673
- "type": "string",
674
- "attribute": "value-end",
675
- "mutable": true,
676
- "complexType": {
677
- "original": "string",
678
- "resolved": "string | undefined",
679
- "references": {}
680
- },
681
- "required": false,
682
- "optional": true,
683
- "docs": {
684
- "tags": [],
685
- "text": ""
686
- },
687
- "getter": false,
688
- "setter": false,
689
- "reflect": false,
690
- "defaultValue": "\"\""
691
- }
692
- };
693
- }
694
- static get states() {
695
- return {
696
- "availSpace": {},
697
- "isExpanded": {}
698
- };
699
- }
700
- static get events() {
701
- return [{
702
- "method": "wmRangeSelection",
703
- "name": "wmRangeSelection",
704
- "bubbles": true,
705
- "cancelable": true,
706
- "composed": true,
707
- "docs": {
708
- "tags": [],
709
- "text": ""
710
- },
711
- "complexType": {
712
- "original": "any",
713
- "resolved": "any",
714
- "references": {}
715
- }
716
- }, {
717
- "method": "wmStartInputBlur",
718
- "name": "wmStartInputBlur",
719
- "bubbles": true,
720
- "cancelable": true,
721
- "composed": true,
722
- "docs": {
723
- "tags": [],
724
- "text": ""
725
- },
726
- "complexType": {
727
- "original": "any",
728
- "resolved": "any",
729
- "references": {}
730
- }
731
- }, {
732
- "method": "wmEndInputBlur",
733
- "name": "wmEndInputBlur",
734
- "bubbles": true,
735
- "cancelable": true,
736
- "composed": true,
737
- "docs": {
738
- "tags": [],
739
- "text": ""
740
- },
741
- "complexType": {
742
- "original": "any",
743
- "resolved": "any",
744
- "references": {}
745
- }
746
- }];
747
- }
748
- static get methods() {
749
- return {
750
- "reformatDate": {
751
- "complexType": {
752
- "signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
753
- "parameters": [{
754
- "name": "inputFormat",
755
- "type": "string",
756
- "docs": ""
757
- }, {
758
- "name": "outputFormat",
759
- "type": "string",
760
- "docs": ""
761
- }, {
762
- "name": "date",
763
- "type": "string | undefined",
764
- "docs": ""
765
- }],
766
- "references": {
767
- "Promise": {
768
- "location": "global",
769
- "id": "global::Promise"
770
- }
771
- },
772
- "return": "Promise<string>"
773
- },
774
- "docs": {
775
- "text": "",
776
- "tags": []
777
- }
778
- },
779
- "isValidISO": {
780
- "complexType": {
781
- "signature": "(input?: string) => Promise<boolean>",
782
- "parameters": [{
783
- "name": "input",
784
- "type": "string | undefined",
785
- "docs": ""
786
- }],
787
- "references": {
788
- "Promise": {
789
- "location": "global",
790
- "id": "global::Promise"
791
- }
792
- },
793
- "return": "Promise<boolean>"
794
- },
795
- "docs": {
796
- "text": "",
797
- "tags": []
798
- }
799
- }
800
- };
801
- }
802
- static get elementRef() { return "el"; }
803
- static get watchers() {
804
- return [{
805
- "propName": "disabled",
806
- "methodName": "handleDisabled"
807
- }, {
808
- "propName": "valueStart",
809
- "methodName": "updateValueStart"
810
- }, {
811
- "propName": "valueEnd",
812
- "methodName": "updateValueEnd"
813
- }, {
814
- "propName": "errorMessage",
815
- "methodName": "handleErrorMessage"
816
- }];
817
- }
818
- static get listeners() {
819
- return [{
820
- "name": "keydown",
821
- "method": "handleKey",
822
- "target": undefined,
823
- "capture": false,
824
- "passive": false
825
- }, {
826
- "name": "click",
827
- "method": "blurHandler",
828
- "target": "document",
829
- "capture": false,
830
- "passive": false
831
- }, {
832
- "name": "blur",
833
- "method": "handleBlurOnWindow",
834
- "target": "window",
835
- "capture": false,
836
- "passive": false
837
- }, {
838
- "name": "popupBlurred",
839
- "method": "handlePopupBlurred",
840
- "target": undefined,
841
- "capture": false,
842
- "passive": false
843
- }, {
844
- "name": "cellTriggered",
845
- "method": "handleCellTriggered",
846
- "target": undefined,
847
- "capture": false,
848
- "passive": false
849
- }, {
850
- "name": "outOfCal",
851
- "method": "handleOutOfCal",
852
- "target": undefined,
853
- "capture": false,
854
- "passive": false
855
- }, {
856
- "name": "cellHovered",
857
- "method": "handleCellHovered",
858
- "target": undefined,
859
- "capture": false,
860
- "passive": false
861
- }, {
862
- "name": "resize",
863
- "method": "setAvailSpace",
864
- "target": "window",
865
- "capture": false,
866
- "passive": true
867
- }];
868
- }
869
- }