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

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 (470) hide show
  1. package/dist/components/wm-flyout.d.ts +11 -0
  2. package/dist/{components/index.js → ripple/app-globals-B7cOtGhY.js} +82 -3
  3. package/dist/{components/chartFunctions.js → ripple/chartFunctions-1XZcmyix.js} +3 -2
  4. package/dist/{components/functions.js → ripple/functions-DVLl0rH_.js} +7844 -146
  5. package/dist/ripple/index-CU5QNCKv.js +4167 -0
  6. package/dist/ripple/index.esm.js +1 -0
  7. package/dist/{collection/global/interfaces.js → ripple/interfaces-CrANcZM9.js} +6 -4
  8. package/dist/{esm/intl-DYVRT1s6.js → ripple/intl-7p27BJSM.js} +1 -1
  9. package/dist/ripple/priv-calendar.entry.js +566 -0
  10. package/dist/ripple/{p-3065bbe5.system.entry.js → priv-chart-popover.entry.js} +134 -1
  11. package/dist/ripple/priv-navigator-button.entry.js +24 -0
  12. package/dist/ripple/{p-568e29d3.entry.js → priv-navigator-item.entry.js} +30 -1
  13. package/dist/ripple/{p-42f9cd3d.entry.js → priv-option-list.entry.js} +385 -1
  14. package/dist/ripple/ripple.css +809 -1
  15. package/dist/ripple/ripple.esm.js +48 -1
  16. package/dist/ripple/wm-action-menu.entry.js +201 -0
  17. package/dist/{esm/wm-progress-monitor.entry.js → ripple/wm-button.entry.js} +175 -49
  18. package/dist/{esm → ripple}/wm-chart-slice.entry.js +1 -1
  19. package/dist/ripple/{p-74b1e110.entry.js → wm-chart.entry.js} +157 -1
  20. package/dist/ripple/wm-date-range.entry.js +477 -0
  21. package/dist/ripple/wm-datepicker.entry.js +247 -0
  22. package/dist/{esm/wm-navigation-item.entry.js → ripple/wm-file-list.entry.js} +7 -7
  23. package/dist/{esm/wm-navigation.entry.js → ripple/wm-file.entry.js} +157 -91
  24. package/dist/{components/wm-nested-select.js → ripple/wm-flyout.entry.js} +128 -312
  25. package/dist/{esm/wm-modal-header.entry.js → ripple/wm-input.entry.js} +99 -24
  26. package/dist/{cjs/wm-chart.cjs.entry.js → ripple/wm-line-chart.entry.js} +403 -113
  27. package/dist/{esm/wm-modal-pss-header.entry.js → ripple/wm-menuitem.entry.js} +114 -28
  28. package/dist/ripple/wm-modal-footer.entry.js +44 -0
  29. package/dist/{components/priv-navigator-button2.js → ripple/wm-modal-header.entry.js} +29 -35
  30. package/dist/ripple/wm-modal-pss-footer.entry.js +40 -0
  31. package/dist/ripple/wm-modal-pss-header.entry.js +39 -0
  32. package/dist/{cjs/priv-chart-popover.cjs.entry.js → ripple/wm-modal-pss.entry.js} +108 -109
  33. package/dist/{esm/wm-modal-footer.entry.js → ripple/wm-modal.entry.js} +117 -28
  34. package/dist/ripple/wm-navigation-hamburger.entry.js +48 -0
  35. package/dist/ripple/wm-navigation-item.entry.js +18 -0
  36. package/dist/{esm-es5/wm-modal-footer.entry.js → ripple/wm-navigation.entry.js} +116 -1
  37. package/dist/{esm/wm-chart.entry.js → ripple/wm-navigator.entry.js} +334 -123
  38. package/dist/ripple/wm-nested-select.entry.js +308 -0
  39. package/dist/{esm/wm-modal-pss-footer.entry.js → ripple/wm-optgroup.entry.js} +56 -28
  40. package/dist/{components/priv-option-list2.js → ripple/wm-option.entry.js} +134 -384
  41. package/dist/ripple/wm-pagination.entry.js +223 -0
  42. package/dist/ripple/{p-735d033a.entry.js → wm-progress-indicator.entry.js} +107 -1
  43. package/dist/ripple/wm-progress-monitor.entry.js +71 -0
  44. package/dist/{esm → ripple}/wm-progress-slice.entry.js +1 -1
  45. package/dist/{cjs/wm-nested-select.cjs.entry.js → ripple/wm-search.entry.js} +171 -273
  46. package/dist/{esm/wm-nested-select.entry.js → ripple/wm-select.entry.js} +134 -193
  47. package/dist/{components/priv-chart-popover2.js → ripple/wm-snackbar.entry.js} +155 -131
  48. package/dist/ripple/{p-b12640bd.entry.js → wm-tab-item.entry.js} +63 -1
  49. package/dist/{esm-es5/wm-file-list.entry.js → ripple/wm-tab-list.entry.js} +175 -1
  50. package/dist/{cjs/wm-navigation-item.cjs.entry.js → ripple/wm-tab-panel.entry.js} +24 -12
  51. package/dist/ripple/wm-tag-input.entry.js +877 -0
  52. package/dist/{esm → ripple}/wm-tag-option.entry.js +2 -2
  53. package/dist/{esm/priv-chart-popover.entry.js → ripple/wm-textarea.entry.js} +53 -108
  54. package/dist/ripple/wm-timepicker.entry.js +300 -0
  55. package/dist/{components/priv-navigator-item2.js → ripple/wm-toggletip.entry.js} +171 -44
  56. package/dist/ripple/{p-5b02ae40.entry.js → wm-uploader.entry.js} +313 -1
  57. package/dist/{esm → ripple}/wm-wrapper.entry.js +1 -1
  58. package/dist/types/components/wm-flyout/wm-flyout.d.ts +46 -0
  59. package/dist/types/components.d.ts +56 -0
  60. package/dist/types/global/functions.d.ts +1 -0
  61. package/package.json +30 -6
  62. package/dist/cjs/app-globals-DztnjEf7.js +0 -92
  63. package/dist/cjs/chartFunctions-CM2Nah_s.js +0 -731
  64. package/dist/cjs/functions-CoXfjC6r.js +0 -10450
  65. package/dist/cjs/index-Cig4P4gJ.js +0 -2082
  66. package/dist/cjs/index.cjs.js +0 -2
  67. package/dist/cjs/interfaces-C7YbtGnk.js +0 -37
  68. package/dist/cjs/intl-DVt1J717.js +0 -283
  69. package/dist/cjs/loader.cjs.js +0 -13
  70. package/dist/cjs/priv-calendar.cjs.entry.js +0 -568
  71. package/dist/cjs/priv-navigator-button_2.cjs.entry.js +0 -54
  72. package/dist/cjs/priv-option-list_2.cjs.entry.js +0 -556
  73. package/dist/cjs/ripple.cjs.js +0 -25
  74. package/dist/cjs/wm-action-menu_4.cjs.entry.js +0 -702
  75. package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -20
  76. package/dist/cjs/wm-date-range.cjs.entry.js +0 -479
  77. package/dist/cjs/wm-datepicker.cjs.entry.js +0 -249
  78. package/dist/cjs/wm-file-list.cjs.entry.js +0 -20
  79. package/dist/cjs/wm-file.cjs.entry.js +0 -184
  80. package/dist/cjs/wm-input.cjs.entry.js +0 -113
  81. package/dist/cjs/wm-line-chart.cjs.entry.js +0 -451
  82. package/dist/cjs/wm-modal-footer.cjs.entry.js +0 -46
  83. package/dist/cjs/wm-modal-header.cjs.entry.js +0 -38
  84. package/dist/cjs/wm-modal-pss-footer.cjs.entry.js +0 -42
  85. package/dist/cjs/wm-modal-pss-header.cjs.entry.js +0 -41
  86. package/dist/cjs/wm-modal-pss.cjs.entry.js +0 -137
  87. package/dist/cjs/wm-modal.cjs.entry.js +0 -135
  88. package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +0 -50
  89. package/dist/cjs/wm-navigation.cjs.entry.js +0 -118
  90. package/dist/cjs/wm-navigator.cjs.entry.js +0 -329
  91. package/dist/cjs/wm-optgroup.cjs.entry.js +0 -70
  92. package/dist/cjs/wm-pagination.cjs.entry.js +0 -225
  93. package/dist/cjs/wm-progress-indicator.cjs.entry.js +0 -109
  94. package/dist/cjs/wm-progress-monitor.cjs.entry.js +0 -73
  95. package/dist/cjs/wm-progress-slice.cjs.entry.js +0 -15
  96. package/dist/cjs/wm-search.cjs.entry.js +0 -210
  97. package/dist/cjs/wm-select.cjs.entry.js +0 -251
  98. package/dist/cjs/wm-tab-item.cjs.entry.js +0 -65
  99. package/dist/cjs/wm-tab-list.cjs.entry.js +0 -177
  100. package/dist/cjs/wm-tab-panel.cjs.entry.js +0 -34
  101. package/dist/cjs/wm-tag-input.cjs.entry.js +0 -879
  102. package/dist/cjs/wm-tag-option.cjs.entry.js +0 -37
  103. package/dist/cjs/wm-textarea.cjs.entry.js +0 -81
  104. package/dist/cjs/wm-timepicker.cjs.entry.js +0 -302
  105. package/dist/cjs/wm-toggletip.cjs.entry.js +0 -178
  106. package/dist/cjs/wm-uploader.cjs.entry.js +0 -315
  107. package/dist/cjs/wm-wrapper.cjs.entry.js +0 -19
  108. package/dist/collection/collection-manifest.json +0 -58
  109. package/dist/collection/components/charts/chartFunctions.js +0 -665
  110. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -908
  111. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +0 -261
  112. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +0 -128
  113. package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -1274
  114. package/dist/collection/components/charts/wm-chart/wm-chart.js +0 -445
  115. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -1067
  116. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +0 -742
  117. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -1274
  118. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +0 -271
  119. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -909
  120. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +0 -154
  121. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +0 -124
  122. package/dist/collection/components/datepickers/datepicker.css +0 -1044
  123. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -1279
  124. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +0 -849
  125. package/dist/collection/components/datepickers/wm-date-range.js +0 -869
  126. package/dist/collection/components/datepickers/wm-datepicker.js +0 -538
  127. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -918
  128. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +0 -791
  129. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -1181
  130. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +0 -644
  131. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -830
  132. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +0 -265
  133. package/dist/collection/components/selects/wm-option/wm-option.css +0 -931
  134. package/dist/collection/components/selects/wm-option/wm-option.js +0 -539
  135. package/dist/collection/components/selects/wm-select/wm-select.css +0 -1104
  136. package/dist/collection/components/selects/wm-select/wm-select.js +0 -606
  137. package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -891
  138. package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -444
  139. package/dist/collection/components/wm-button/wm-button.css +0 -1261
  140. package/dist/collection/components/wm-button/wm-button.js +0 -510
  141. package/dist/collection/components/wm-file/wm-file.css +0 -927
  142. package/dist/collection/components/wm-file/wm-file.js +0 -423
  143. package/dist/collection/components/wm-file-list/wm-file-list.css +0 -820
  144. package/dist/collection/components/wm-file-list/wm-file-list.js +0 -47
  145. package/dist/collection/components/wm-input/wm-input.css +0 -993
  146. package/dist/collection/components/wm-input/wm-input.js +0 -498
  147. package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -891
  148. package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -425
  149. package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -845
  150. package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -152
  151. package/dist/collection/components/wm-modal/wm-modal-header.css +0 -844
  152. package/dist/collection/components/wm-modal/wm-modal-header.js +0 -83
  153. package/dist/collection/components/wm-modal/wm-modal.css +0 -892
  154. package/dist/collection/components/wm-modal/wm-modal.js +0 -356
  155. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -852
  156. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +0 -148
  157. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -846
  158. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +0 -86
  159. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -928
  160. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +0 -369
  161. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -847
  162. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -120
  163. package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -856
  164. package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -99
  165. package/dist/collection/components/wm-navigation/wm-navigation.css +0 -898
  166. package/dist/collection/components/wm-navigation/wm-navigation.js +0 -192
  167. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -850
  168. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -90
  169. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -830
  170. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -130
  171. package/dist/collection/components/wm-navigator/wm-navigator.css +0 -903
  172. package/dist/collection/components/wm-navigator/wm-navigator.js +0 -515
  173. package/dist/collection/components/wm-pagination/wm-pagination.css +0 -971
  174. package/dist/collection/components/wm-pagination/wm-pagination.js +0 -373
  175. package/dist/collection/components/wm-search/wm-search.css +0 -896
  176. package/dist/collection/components/wm-search/wm-search.js +0 -462
  177. package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -1078
  178. package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -280
  179. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -869
  180. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -187
  181. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -841
  182. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -276
  183. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -825
  184. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -97
  185. package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -1276
  186. package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -1245
  187. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +0 -251
  188. package/dist/collection/components/wm-textarea/wm-textarea.css +0 -980
  189. package/dist/collection/components/wm-textarea/wm-textarea.js +0 -331
  190. package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -1094
  191. package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -559
  192. package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1152
  193. package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -295
  194. package/dist/collection/components/wm-uploader/wm-uploader.css +0 -1563
  195. package/dist/collection/components/wm-uploader/wm-uploader.js +0 -618
  196. package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -28
  197. package/dist/collection/dev/action-menu.js +0 -0
  198. package/dist/collection/dev/button.js +0 -0
  199. package/dist/collection/dev/chart-small.js +0 -56
  200. package/dist/collection/dev/chart.js +0 -18
  201. package/dist/collection/dev/date-range.js +0 -6
  202. package/dist/collection/dev/datepicker.js +0 -46
  203. package/dist/collection/dev/file-list.js +0 -16
  204. package/dist/collection/dev/file.js +0 -0
  205. package/dist/collection/dev/input.js +0 -6
  206. package/dist/collection/dev/line-chart.js +0 -0
  207. package/dist/collection/dev/modal.js +0 -48
  208. package/dist/collection/dev/navigation.js +0 -13
  209. package/dist/collection/dev/navigator.js +0 -34
  210. package/dist/collection/dev/nested-select.js +0 -36
  211. package/dist/collection/dev/pagination.js +0 -7
  212. package/dist/collection/dev/progress-monitor.js +0 -0
  213. package/dist/collection/dev/pss-modal.js +0 -8
  214. package/dist/collection/dev/scripts.js +0 -49
  215. package/dist/collection/dev/search.js +0 -72
  216. package/dist/collection/dev/select.js +0 -57
  217. package/dist/collection/dev/snackbar.js +0 -60
  218. package/dist/collection/dev/tabs.js +0 -44
  219. package/dist/collection/dev/tag-input.js +0 -32
  220. package/dist/collection/dev/textarea.js +0 -28
  221. package/dist/collection/dev/timepicker.js +0 -32
  222. package/dist/collection/dev/toggletip.js +0 -9
  223. package/dist/collection/dev/uploader.js +0 -139
  224. package/dist/collection/global/__mocks__/functions.js +0 -6
  225. package/dist/collection/global/functions.js +0 -825
  226. package/dist/collection/global/global.js +0 -88
  227. package/dist/collection/global/intl.js +0 -274
  228. package/dist/collection/global/services/__mocks__/http-service.js +0 -130
  229. package/dist/collection/global/services/http-service.js +0 -50
  230. package/dist/collection/lang/lang.js +0 -5
  231. package/dist/collection/lang/missing.js +0 -43
  232. package/dist/collection/lang/piglatin.js +0 -101
  233. package/dist/components/interfaces.js +0 -34
  234. package/dist/components/intl.js +0 -277
  235. package/dist/components/priv-calendar.js +0 -6
  236. package/dist/components/priv-calendar2.js +0 -592
  237. package/dist/components/priv-chart-popover.js +0 -6
  238. package/dist/components/priv-navigator-button.js +0 -6
  239. package/dist/components/priv-navigator-item.js +0 -6
  240. package/dist/components/priv-option-list.js +0 -6
  241. package/dist/components/wm-action-menu.js +0 -6
  242. package/dist/components/wm-action-menu2.js +0 -231
  243. package/dist/components/wm-button.js +0 -6
  244. package/dist/components/wm-button2.js +0 -231
  245. package/dist/components/wm-chart-slice.js +0 -41
  246. package/dist/components/wm-chart.js +0 -197
  247. package/dist/components/wm-date-range.js +0 -522
  248. package/dist/components/wm-datepicker.js +0 -287
  249. package/dist/components/wm-file-list.js +0 -38
  250. package/dist/components/wm-file.js +0 -228
  251. package/dist/components/wm-input.js +0 -152
  252. package/dist/components/wm-line-chart.js +0 -497
  253. package/dist/components/wm-menuitem.js +0 -6
  254. package/dist/components/wm-menuitem2.js +0 -146
  255. package/dist/components/wm-modal-footer.js +0 -73
  256. package/dist/components/wm-modal-header.js +0 -61
  257. package/dist/components/wm-modal-pss-footer.js +0 -69
  258. package/dist/components/wm-modal-pss-header.js +0 -64
  259. package/dist/components/wm-modal-pss.js +0 -162
  260. package/dist/components/wm-modal.js +0 -161
  261. package/dist/components/wm-navigation-hamburger.js +0 -70
  262. package/dist/components/wm-navigation-item.js +0 -40
  263. package/dist/components/wm-navigation.js +0 -144
  264. package/dist/components/wm-navigator.js +0 -369
  265. package/dist/components/wm-optgroup.js +0 -107
  266. package/dist/components/wm-option.js +0 -6
  267. package/dist/components/wm-option2.js +0 -196
  268. package/dist/components/wm-pagination.js +0 -251
  269. package/dist/components/wm-progress-indicator.js +0 -144
  270. package/dist/components/wm-progress-monitor.js +0 -93
  271. package/dist/components/wm-progress-slice.js +0 -37
  272. package/dist/components/wm-search.js +0 -250
  273. package/dist/components/wm-select.js +0 -6
  274. package/dist/components/wm-select2.js +0 -294
  275. package/dist/components/wm-snackbar.js +0 -210
  276. package/dist/components/wm-tab-item.js +0 -85
  277. package/dist/components/wm-tab-list.js +0 -217
  278. package/dist/components/wm-tab-panel.js +0 -52
  279. package/dist/components/wm-tag-input.js +0 -919
  280. package/dist/components/wm-tag-option.js +0 -63
  281. package/dist/components/wm-textarea.js +0 -113
  282. package/dist/components/wm-timepicker.js +0 -333
  283. package/dist/components/wm-toggletip.js +0 -200
  284. package/dist/components/wm-uploader.js +0 -348
  285. package/dist/components/wm-wrapper.js +0 -34
  286. package/dist/esm/app-globals-9HoPoE5v.js +0 -90
  287. package/dist/esm/chartFunctions-BFCUD5JX.js +0 -714
  288. package/dist/esm/functions-ZDMCMR3o.js +0 -10410
  289. package/dist/esm/index-EopL5zo4.js +0 -2071
  290. package/dist/esm/index.js +0 -1
  291. package/dist/esm/interfaces-CyJHzEjr.js +0 -34
  292. package/dist/esm/loader.js +0 -11
  293. package/dist/esm/polyfills/core-js.js +0 -11
  294. package/dist/esm/polyfills/dom.js +0 -79
  295. package/dist/esm/polyfills/es5-html-element.js +0 -1
  296. package/dist/esm/polyfills/index.js +0 -34
  297. package/dist/esm/polyfills/system.js +0 -6
  298. package/dist/esm/priv-calendar.entry.js +0 -566
  299. package/dist/esm/priv-navigator-button_2.entry.js +0 -51
  300. package/dist/esm/priv-option-list_2.entry.js +0 -553
  301. package/dist/esm/ripple.js +0 -21
  302. package/dist/esm/wm-action-menu_4.entry.js +0 -697
  303. package/dist/esm/wm-date-range.entry.js +0 -477
  304. package/dist/esm/wm-datepicker.entry.js +0 -247
  305. package/dist/esm/wm-file-list.entry.js +0 -18
  306. package/dist/esm/wm-file.entry.js +0 -182
  307. package/dist/esm/wm-input.entry.js +0 -111
  308. package/dist/esm/wm-line-chart.entry.js +0 -449
  309. package/dist/esm/wm-modal-pss.entry.js +0 -135
  310. package/dist/esm/wm-modal.entry.js +0 -133
  311. package/dist/esm/wm-navigation-hamburger.entry.js +0 -48
  312. package/dist/esm/wm-navigator.entry.js +0 -327
  313. package/dist/esm/wm-optgroup.entry.js +0 -68
  314. package/dist/esm/wm-pagination.entry.js +0 -223
  315. package/dist/esm/wm-progress-indicator.entry.js +0 -107
  316. package/dist/esm/wm-search.entry.js +0 -208
  317. package/dist/esm/wm-select.entry.js +0 -249
  318. package/dist/esm/wm-tab-item.entry.js +0 -63
  319. package/dist/esm/wm-tab-list.entry.js +0 -175
  320. package/dist/esm/wm-tab-panel.entry.js +0 -32
  321. package/dist/esm/wm-tag-input.entry.js +0 -877
  322. package/dist/esm/wm-textarea.entry.js +0 -79
  323. package/dist/esm/wm-timepicker.entry.js +0 -300
  324. package/dist/esm/wm-toggletip.entry.js +0 -176
  325. package/dist/esm/wm-uploader.entry.js +0 -313
  326. package/dist/esm-es5/app-globals-9HoPoE5v.js +0 -1
  327. package/dist/esm-es5/chartFunctions-BFCUD5JX.js +0 -1
  328. package/dist/esm-es5/functions-ZDMCMR3o.js +0 -1
  329. package/dist/esm-es5/index-EopL5zo4.js +0 -1
  330. package/dist/esm-es5/index.js +0 -0
  331. package/dist/esm-es5/interfaces-CyJHzEjr.js +0 -1
  332. package/dist/esm-es5/intl-DYVRT1s6.js +0 -1
  333. package/dist/esm-es5/loader.js +0 -1
  334. package/dist/esm-es5/priv-calendar.entry.js +0 -1
  335. package/dist/esm-es5/priv-chart-popover.entry.js +0 -1
  336. package/dist/esm-es5/priv-navigator-button_2.entry.js +0 -1
  337. package/dist/esm-es5/priv-option-list_2.entry.js +0 -1
  338. package/dist/esm-es5/ripple.js +0 -1
  339. package/dist/esm-es5/wm-action-menu_4.entry.js +0 -1
  340. package/dist/esm-es5/wm-chart-slice.entry.js +0 -1
  341. package/dist/esm-es5/wm-chart.entry.js +0 -1
  342. package/dist/esm-es5/wm-date-range.entry.js +0 -1
  343. package/dist/esm-es5/wm-datepicker.entry.js +0 -1
  344. package/dist/esm-es5/wm-file.entry.js +0 -1
  345. package/dist/esm-es5/wm-input.entry.js +0 -1
  346. package/dist/esm-es5/wm-line-chart.entry.js +0 -1
  347. package/dist/esm-es5/wm-modal-header.entry.js +0 -1
  348. package/dist/esm-es5/wm-modal-pss-footer.entry.js +0 -1
  349. package/dist/esm-es5/wm-modal-pss-header.entry.js +0 -1
  350. package/dist/esm-es5/wm-modal-pss.entry.js +0 -1
  351. package/dist/esm-es5/wm-modal.entry.js +0 -1
  352. package/dist/esm-es5/wm-navigation-hamburger.entry.js +0 -1
  353. package/dist/esm-es5/wm-navigation-item.entry.js +0 -1
  354. package/dist/esm-es5/wm-navigation.entry.js +0 -1
  355. package/dist/esm-es5/wm-navigator.entry.js +0 -1
  356. package/dist/esm-es5/wm-nested-select.entry.js +0 -1
  357. package/dist/esm-es5/wm-optgroup.entry.js +0 -1
  358. package/dist/esm-es5/wm-pagination.entry.js +0 -1
  359. package/dist/esm-es5/wm-progress-indicator.entry.js +0 -1
  360. package/dist/esm-es5/wm-progress-monitor.entry.js +0 -1
  361. package/dist/esm-es5/wm-progress-slice.entry.js +0 -1
  362. package/dist/esm-es5/wm-search.entry.js +0 -1
  363. package/dist/esm-es5/wm-select.entry.js +0 -1
  364. package/dist/esm-es5/wm-tab-item.entry.js +0 -1
  365. package/dist/esm-es5/wm-tab-list.entry.js +0 -1
  366. package/dist/esm-es5/wm-tab-panel.entry.js +0 -1
  367. package/dist/esm-es5/wm-tag-input.entry.js +0 -1
  368. package/dist/esm-es5/wm-tag-option.entry.js +0 -1
  369. package/dist/esm-es5/wm-textarea.entry.js +0 -1
  370. package/dist/esm-es5/wm-timepicker.entry.js +0 -1
  371. package/dist/esm-es5/wm-toggletip.entry.js +0 -1
  372. package/dist/esm-es5/wm-uploader.entry.js +0 -1
  373. package/dist/esm-es5/wm-wrapper.entry.js +0 -1
  374. package/dist/index.cjs.js +0 -1
  375. package/dist/index.js +0 -1
  376. package/dist/loader/cdn.js +0 -2
  377. package/dist/loader/index.cjs.js +0 -2
  378. package/dist/loader/index.d.ts +0 -24
  379. package/dist/loader/index.es2017.js +0 -2
  380. package/dist/loader/index.js +0 -3
  381. package/dist/ripple/p-032f127e.entry.js +0 -1
  382. package/dist/ripple/p-0bd43518.system.entry.js +0 -1
  383. package/dist/ripple/p-0dccd9b4.system.entry.js +0 -1
  384. package/dist/ripple/p-0dffa9ff.system.entry.js +0 -1
  385. package/dist/ripple/p-10d2b86e.entry.js +0 -1
  386. package/dist/ripple/p-1818d7f9.entry.js +0 -1
  387. package/dist/ripple/p-18d22114.system.entry.js +0 -1
  388. package/dist/ripple/p-1a769629.system.entry.js +0 -1
  389. package/dist/ripple/p-271ba485.system.entry.js +0 -1
  390. package/dist/ripple/p-2d41fbed.system.entry.js +0 -1
  391. package/dist/ripple/p-2f26b6ac.entry.js +0 -1
  392. package/dist/ripple/p-306caa10.entry.js +0 -1
  393. package/dist/ripple/p-32f2f3b4.system.entry.js +0 -1
  394. package/dist/ripple/p-340b73a9.system.entry.js +0 -1
  395. package/dist/ripple/p-47b525bd.entry.js +0 -1
  396. package/dist/ripple/p-492a8a9f.entry.js +0 -1
  397. package/dist/ripple/p-4c316652.system.entry.js +0 -1
  398. package/dist/ripple/p-54aeadde.entry.js +0 -1
  399. package/dist/ripple/p-588a86ed.system.entry.js +0 -1
  400. package/dist/ripple/p-591fd100.entry.js +0 -1
  401. package/dist/ripple/p-5a6cbc14.system.entry.js +0 -1
  402. package/dist/ripple/p-5abe1171.system.entry.js +0 -1
  403. package/dist/ripple/p-5ae17300.system.entry.js +0 -1
  404. package/dist/ripple/p-5e438798.system.entry.js +0 -1
  405. package/dist/ripple/p-5ed4177e.entry.js +0 -1
  406. package/dist/ripple/p-6133160d.system.entry.js +0 -1
  407. package/dist/ripple/p-620aff89.entry.js +0 -1
  408. package/dist/ripple/p-65db2c0f.entry.js +0 -1
  409. package/dist/ripple/p-70ed57bf.entry.js +0 -1
  410. package/dist/ripple/p-77a8306c.entry.js +0 -1
  411. package/dist/ripple/p-7886fe5e.system.entry.js +0 -1
  412. package/dist/ripple/p-7ce09692.system.entry.js +0 -1
  413. package/dist/ripple/p-7cf1d9eb.system.entry.js +0 -1
  414. package/dist/ripple/p-7e786c28.system.entry.js +0 -1
  415. package/dist/ripple/p-812615ae.entry.js +0 -1
  416. package/dist/ripple/p-8a33538f.entry.js +0 -1
  417. package/dist/ripple/p-8b9c4e3e.entry.js +0 -1
  418. package/dist/ripple/p-90925ea9.entry.js +0 -1
  419. package/dist/ripple/p-959afdcf.entry.js +0 -1
  420. package/dist/ripple/p-997bdd2e.system.entry.js +0 -1
  421. package/dist/ripple/p-9db5f78e.entry.js +0 -1
  422. package/dist/ripple/p-BexWEx3U.system.js +0 -1
  423. package/dist/ripple/p-BgmAsS86.system.js +0 -1
  424. package/dist/ripple/p-Buh1DT2-.js +0 -1
  425. package/dist/ripple/p-CLZytLAw.system.js +0 -1
  426. package/dist/ripple/p-CTau6pR2.system.js +0 -2
  427. package/dist/ripple/p-CwkTkxrj.system.js +0 -1
  428. package/dist/ripple/p-CyJHzEjr.js +0 -1
  429. package/dist/ripple/p-DXsimRMV.js +0 -1
  430. package/dist/ripple/p-EopL5zo4.js +0 -2
  431. package/dist/ripple/p-GXdCI-yj.system.js +0 -1
  432. package/dist/ripple/p-UJrCrAlw.system.js +0 -1
  433. package/dist/ripple/p-YWpyar7R.system.js +0 -1
  434. package/dist/ripple/p-ZDMCMR3o.js +0 -1
  435. package/dist/ripple/p-b0b94ac4.system.entry.js +0 -1
  436. package/dist/ripple/p-b16431b0.system.entry.js +0 -1
  437. package/dist/ripple/p-b43cc69f.entry.js +0 -1
  438. package/dist/ripple/p-b4917824.entry.js +0 -1
  439. package/dist/ripple/p-b55babe1.system.entry.js +0 -1
  440. package/dist/ripple/p-ba48d47a.entry.js +0 -1
  441. package/dist/ripple/p-ba8ca46b.system.entry.js +0 -1
  442. package/dist/ripple/p-bee35fef.entry.js +0 -1
  443. package/dist/ripple/p-c273bb1c.system.entry.js +0 -1
  444. package/dist/ripple/p-cdebe76b.system.entry.js +0 -1
  445. package/dist/ripple/p-ce9634a2.entry.js +0 -1
  446. package/dist/ripple/p-d20ed498.entry.js +0 -1
  447. package/dist/ripple/p-d3e6498c.system.entry.js +0 -1
  448. package/dist/ripple/p-d40b6ef1.system.entry.js +0 -1
  449. package/dist/ripple/p-d4481342.system.entry.js +0 -1
  450. package/dist/ripple/p-d5bcab58.entry.js +0 -1
  451. package/dist/ripple/p-d7660e7d.entry.js +0 -1
  452. package/dist/ripple/p-d85f017a.system.entry.js +0 -1
  453. package/dist/ripple/p-da5ad94c.system.entry.js +0 -1
  454. package/dist/ripple/p-dcca5771.system.entry.js +0 -1
  455. package/dist/ripple/p-dd236f42.system.entry.js +0 -1
  456. package/dist/ripple/p-de33fd67.entry.js +0 -1
  457. package/dist/ripple/p-e0c9798d.system.entry.js +0 -1
  458. package/dist/ripple/p-e3700f4c.entry.js +0 -1
  459. package/dist/ripple/p-e901154b.entry.js +0 -1
  460. package/dist/ripple/p-e9fc862d.entry.js +0 -1
  461. package/dist/ripple/p-ea885cf3.system.entry.js +0 -1
  462. package/dist/ripple/p-f4c4218c.system.entry.js +0 -1
  463. package/dist/ripple/p-f57eb234.system.entry.js +0 -1
  464. package/dist/ripple/p-f858f5f9.system.entry.js +0 -1
  465. package/dist/ripple/p-f8721463.system.entry.js +0 -1
  466. package/dist/ripple/p-f881be15.entry.js +0 -1
  467. package/dist/ripple/p-f98949ad.entry.js +0 -1
  468. package/dist/ripple/p-fdcbcdf5.entry.js +0 -1
  469. package/dist/ripple/p-sXfORL9J.js +0 -1
  470. package/dist/ripple/ripple.js +0 -127
@@ -1,849 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- import { intl, dateFind, getMonthLength, makeISO, calendar_months, weekdays } from "../../../global/functions";
3
- export class PrivCalendar {
4
- constructor() {
5
- this.today = this.dateToISO(new Date());
6
- this.disabled = false;
7
- this.view = "day";
8
- this.focusDate = this.today; // ISO date
9
- this.calType = "single";
10
- this.calName = "";
11
- this.calInstructions = intl.formatMessage({
12
- id: "date.instructions",
13
- defaultMessage: "Use arrows to select a date in the table. Tab left or right to buttons for selecting previous month, next month, or the month selection table.",
14
- });
15
- this._focus = {
16
- year: {
17
- asString: () => dateFind.year.asString(this.focusDate),
18
- asInt: () => dateFind.year.asInt(this.focusDate),
19
- set: (y) => {
20
- const m = this._focus.month.asInt();
21
- const d = this._focus.day.asInt();
22
- this.focusDate = makeISO(y, m, d);
23
- },
24
- increase: (n) => {
25
- const newDate = dateFind.year.increase(this.focusDate, n);
26
- this.focusDate = newDate;
27
- },
28
- decrease: (n) => {
29
- const newDate = dateFind.year.decrease(this.focusDate, n);
30
- this.focusDate = newDate;
31
- },
32
- },
33
- month: {
34
- asString: () => dateFind.month.asString(this.focusDate),
35
- asInt: () => dateFind.month.asInt(this.focusDate),
36
- set: (m) => {
37
- const y = this._focus.year.asInt();
38
- const d = this._focus.day.asInt();
39
- this.focusDate = makeISO(y, m, d);
40
- },
41
- increase: (n) => {
42
- const newDate = dateFind.month.increase(this.focusDate, n);
43
- this.focusDate = newDate;
44
- },
45
- decrease: (n) => {
46
- const newDate = dateFind.month.decrease(this.focusDate, n);
47
- this.focusDate = newDate;
48
- },
49
- },
50
- day: {
51
- asString: () => dateFind.day.asString(this.focusDate),
52
- asInt: () => dateFind.day.asInt(this.focusDate),
53
- set: (d) => {
54
- const y = this._focus.year.asInt();
55
- const m = this._focus.month.asInt();
56
- d = d === -1 ? getMonthLength(m, y) : d;
57
- this.focusDate = makeISO(y, m, d);
58
- },
59
- increase: (n) => {
60
- const newDate = dateFind.day.increase(this.focusDate, n);
61
- this.focusDate = newDate;
62
- },
63
- decrease: (n) => {
64
- const newDate = dateFind.day.decrease(this.focusDate, n);
65
- this.focusDate = newDate;
66
- },
67
- },
68
- };
69
- this.monthButtonFocus = {
70
- set: (i) => {
71
- const buttons = Array.from(this.el.querySelectorAll(".month"));
72
- const selButton = buttons.filter((b) => b.classList.contains("focused"))[0];
73
- selButton.classList.remove("selected");
74
- selButton.tabIndex = -1;
75
- buttons[i - 1].classList.add("selected");
76
- buttons[i - 1].tabIndex = 0;
77
- buttons[i - 1].focus();
78
- },
79
- increase: (i) => {
80
- const buttons = Array.from(this.el.querySelectorAll(".month"));
81
- const selButton = buttons.filter((b) => b.classList.contains("focused"))[0];
82
- const oldIndex = buttons.indexOf(selButton);
83
- const newIndex = (oldIndex + i) % 12;
84
- if (newIndex < oldIndex) {
85
- this._focus.year.increase(1);
86
- }
87
- selButton.classList.remove("focused");
88
- selButton.tabIndex = -1;
89
- buttons[newIndex].classList.add("focused");
90
- buttons[newIndex].tabIndex = 0;
91
- buttons[newIndex].focus();
92
- },
93
- decrease: (i) => {
94
- const buttons = Array.from(this.el.querySelectorAll(".month"));
95
- const selButton = buttons.filter((b) => b.classList.contains("focused"))[0];
96
- const oldIndex = buttons.indexOf(selButton);
97
- // ensure no neg values for modulo
98
- let newIndex = oldIndex + 24;
99
- newIndex = (newIndex - i) % 12;
100
- if (newIndex > oldIndex) {
101
- this._focus.year.decrease(1);
102
- }
103
- selButton.classList.remove("focused");
104
- selButton.tabIndex = -1;
105
- buttons[newIndex].classList.add("focused");
106
- buttons[newIndex].tabIndex = 0;
107
- buttons[newIndex].focus();
108
- },
109
- };
110
- this.renderCalendarDate = (date, index, eitherStart, eitherEnd) => {
111
- if (date === "placeholder") {
112
- return h("div", { role: "gridcell" });
113
- }
114
- const monthOfDate = dateFind.month.asInt(date);
115
- const dayOfDate = dateFind.day.asInt(date);
116
- const yearOfDate = dateFind.year.asInt(date);
117
- const isStartDate = eitherStart && eitherStart === date;
118
- let selected = isStartDate ? "true" : "false";
119
- const classesArr = ["date-cell"];
120
- const isFocused = date === this.focusDate;
121
- const isToday = date === this.today;
122
- if (isToday)
123
- classesArr.push("today");
124
- if (this.calType === "range") {
125
- const isEndDate = eitherStart && eitherEnd && eitherEnd === date && eitherStart < eitherEnd;
126
- selected = isEndDate ? "true" : selected;
127
- const isFirstOfMonth = dayOfDate === 1;
128
- const isLastOfMonth = dayOfDate === getMonthLength(monthOfDate, yearOfDate);
129
- const isInRange = this.isInRange(date);
130
- const isInRangePreview = this.isInRangePreview(date);
131
- const isPreviewStartOrEnd = !eitherEnd && eitherStart && this.hoverDate && date === this.hoverDate;
132
- const isPreviewStart = isPreviewStartOrEnd && this.hoverDate < eitherStart;
133
- const isPreviewEnd = isPreviewStartOrEnd && this.hoverDate > eitherStart;
134
- if (isFirstOfMonth)
135
- classesArr.push("first-of-month");
136
- if (isLastOfMonth)
137
- classesArr.push("last-of-month");
138
- if (isStartDate) {
139
- if (isInRangePreview && !isEndDate && this.hoverDate && this.hoverDate < eitherStart) {
140
- // invert the arrow direction if user mouses over a prior date
141
- classesArr.push("range-end");
142
- }
143
- else {
144
- classesArr.push("range-start");
145
- }
146
- }
147
- if (isEndDate)
148
- classesArr.push("range-end");
149
- if (isInRange)
150
- classesArr.push("in-range");
151
- if (isInRangePreview)
152
- classesArr.push("in-range preview");
153
- if (isPreviewStart)
154
- classesArr.push("preview-start");
155
- if (isPreviewEnd)
156
- classesArr.push("preview-end");
157
- }
158
- const classes = classesArr.join(" ");
159
- return (h("div", { role: "gridcell", id: `cell-${date}`, class: classes, "aria-selected": selected, "aria-label": `${isToday
160
- ? `${intl.formatMessage({
161
- id: "date.today",
162
- defaultMessage: "today",
163
- description: "calendar button",
164
- })}, `
165
- : ""}${weekdays[index]}, ${calendar_months[monthOfDate - 1]} ${dayOfDate}, ${yearOfDate}`, onClick: (ev) => {
166
- this.handleDateClick(ev.target);
167
- }, onMouseOver: () => this.cellHovered.emit(date), "data-month": dateFind.month.asString(date), "data-year": dateFind.year.asString(date), onBlur: (ev) => ev.stopPropagation(), tabIndex: isFocused ? 0 : -1 }, dayOfDate));
168
- };
169
- }
170
- setCalName() {
171
- const cals = this.el.parentElement.querySelectorAll("priv-calendar");
172
- let calname;
173
- // if the parent el only contains one calendar
174
- if (cals.length === 1) {
175
- calname = intl.formatMessage({
176
- id: "date.calName",
177
- defaultMessage: "Calendar. ",
178
- });
179
- // if this calendar is the first of the two
180
- }
181
- else if (cals[0] === this.el) {
182
- calname = intl.formatMessage({
183
- id: "date.firstCalName",
184
- defaultMessage: "First calendar. ",
185
- });
186
- }
187
- else {
188
- calname = intl.formatMessage({
189
- id: "date.secondCalName",
190
- defaultMessage: "Second calendar. ",
191
- });
192
- }
193
- this.calName = calname;
194
- }
195
- setCalType() {
196
- const cals = this.el.parentElement.querySelectorAll("priv-calendar");
197
- // if the parent el only contains one calendar
198
- this.calType = cals.length === 1 ? "single" : "range";
199
- }
200
- componentWillLoad() {
201
- this.setCalName();
202
- this.setCalType();
203
- }
204
- handleFocusDate(newVal, oldVal) {
205
- if (this.view === "day") {
206
- const oldCell = this.getCell(oldVal);
207
- if (oldCell)
208
- oldCell.tabIndex = -1;
209
- const newCell = this.getCell(newVal);
210
- if (newCell)
211
- newCell.tabIndex = 0;
212
- }
213
- else {
214
- const oldMonthEl = this.el.querySelector(`#month-${dateFind.month.asInt(oldVal)}`);
215
- if (oldMonthEl)
216
- oldMonthEl.tabIndex = -1;
217
- const newMonthEl = this.el.querySelector(`#month-${dateFind.month.asInt(newVal)}`);
218
- if (newMonthEl)
219
- newMonthEl.tabIndex = 0;
220
- //monthToFocus.focus();
221
- }
222
- this.dateFocus.emit();
223
- }
224
- get otherCalEl() {
225
- const bothCals = this.el.parentElement.querySelectorAll("priv-calendar");
226
- let val;
227
- if (bothCals.length === 2) {
228
- val = bothCals[0] === this.el ? bothCals[1] : bothCals[0];
229
- }
230
- // returns undefined for wm-datepicker
231
- // or possibly on first load if everything hasn't loaded yet
232
- return val;
233
- }
234
- get headerButtonEls() {
235
- return Array.from(this.el.querySelectorAll(".header-btn"));
236
- }
237
- handleKey(ev) {
238
- switch (ev.key) {
239
- case " ":
240
- case "Enter":
241
- ev.preventDefault();
242
- //Clunky exception for blur validation. Remove when blur reworked.
243
- !ev.target.id.includes("popup-title") && ev.target.click();
244
- break;
245
- case "PageUp":
246
- ev.preventDefault();
247
- if (this.view === "day") {
248
- this._focus.month.decrease(1);
249
- this.focusCell();
250
- }
251
- else {
252
- this._focus.year.decrease(1);
253
- }
254
- break;
255
- case "PageDown":
256
- ev.preventDefault();
257
- if (this.view === "day") {
258
- this._focus.month.increase(1);
259
- this.focusCell();
260
- }
261
- else {
262
- this._focus.year.increase(1);
263
- }
264
- break;
265
- case "Home":
266
- ev.preventDefault();
267
- if (this.view === "day") {
268
- this._focus.day.set(1);
269
- this.focusCell();
270
- }
271
- else {
272
- this.monthButtonFocus.set(1);
273
- }
274
- break;
275
- case "End":
276
- ev.preventDefault();
277
- if (this.view === "day") {
278
- this._focus.day.set(-1);
279
- this.focusCell();
280
- }
281
- else {
282
- this.monthButtonFocus.set(12);
283
- }
284
- break;
285
- case "ArrowLeft":
286
- ev.preventDefault();
287
- if (this.view === "day") {
288
- this._focus.day.decrease(1);
289
- // if the month changes as a result of this navigation, calendar must render the correct month before the proper cell can be focused
290
- this.focusCell();
291
- }
292
- else {
293
- this.monthButtonFocus.decrease(1);
294
- }
295
- break;
296
- case "ArrowRight":
297
- ev.preventDefault();
298
- if (this.view === "day") {
299
- this._focus.day.increase(1);
300
- this.focusCell();
301
- }
302
- else {
303
- this.monthButtonFocus.increase(1);
304
- }
305
- break;
306
- case "ArrowUp":
307
- ev.preventDefault();
308
- if (this.view === "day") {
309
- this._focus.day.decrease(7);
310
- this.focusCell();
311
- }
312
- else {
313
- this.monthButtonFocus.decrease(3);
314
- }
315
- break;
316
- case "ArrowDown":
317
- ev.preventDefault();
318
- if (this.view === "day") {
319
- //If the down arrow is pressed from the month button or the arrow buttons, focus should shift to the current cell in focus
320
- if (!(document.activeElement.shadowRoot || document).activeElement.classList.contains("date-cell")) {
321
- this.focusCell();
322
- break;
323
- }
324
- this._focus.day.increase(7);
325
- this.focusCell();
326
- }
327
- else {
328
- //If the down arrow is pressed from the arrow buttons or the title box, focus should shift to the current month in focus
329
- const activeEl = (document.activeElement.shadowRoot || document).activeElement;
330
- if (activeEl.classList.contains("header-btn")) {
331
- this.focusCell();
332
- break;
333
- }
334
- this.monthButtonFocus.increase(3);
335
- }
336
- break;
337
- }
338
- }
339
- handleDateClick(el) {
340
- const detail = { cal: this.el, cell: el };
341
- this.cellTriggered.emit(detail);
342
- // change of input value will trigger the function updating selectedDate
343
- }
344
- removeZeroes(date) {
345
- return +date < 10 ? +date.slice(1) : +date;
346
- }
347
- dateToISO(date) {
348
- const dateArr = [
349
- date.getUTCFullYear().toString().padStart(4, "0"),
350
- (date.getUTCMonth() + 1).toString().padStart(2, "0"),
351
- date.getUTCDate().toString().padStart(2, "0"),
352
- ];
353
- return dateArr.join("-");
354
- }
355
- isInRange(date) {
356
- if (this.otherCalEl) {
357
- const eitherStart = this.startDate || this.otherCalEl.startDate;
358
- const eitherEnd = this.endDate || this.otherCalEl.endDate;
359
- if (eitherStart && eitherEnd) {
360
- // if both dates exist the range is shown
361
- return eitherStart <= date && date <= eitherEnd;
362
- }
363
- }
364
- return false;
365
- }
366
- isInRangePreview(date) {
367
- if (this.otherCalEl) {
368
- const eitherStart = this.startDate || this.otherCalEl.startDate;
369
- const eitherEnd = this.endDate || this.otherCalEl.endDate;
370
- // no preview if there's an existing range
371
- if (eitherStart && eitherEnd)
372
- return false;
373
- if (eitherStart && this.hoverDate) {
374
- // if only startDate exists, the hovered date functions as the other end of the range
375
- if (this.hoverDate > eitherStart) {
376
- return eitherStart <= date && date <= this.hoverDate;
377
- }
378
- else if (this.hoverDate < eitherStart) {
379
- // user is mousing over a date prior to the start date
380
- // start date considered as end of range
381
- return this.hoverDate <= date && date <= eitherStart;
382
- } // if neither < or > then it's the same date and should return false
383
- }
384
- else if (eitherEnd && this.hoverDate) {
385
- // if only endDate exists, the hovered date functions as the other end of the range
386
- if (this.hoverDate < eitherEnd) {
387
- return this.hoverDate <= date && date <= eitherEnd;
388
- }
389
- else if (this.hoverDate > eitherEnd) {
390
- // user is mousing over a date later than the end date
391
- // end date considered as beggining of range
392
- return eitherEnd <= date && date <= this.hoverDate;
393
- }
394
- }
395
- }
396
- return false;
397
- }
398
- // 1 => Sunday, 7 => Saturday
399
- getMonthFirstDay(month, year) {
400
- return +new Date(year, month - 1, 1, 12, 0, 0).getDay() + 1;
401
- }
402
- getCalendarDates(date) {
403
- const month = dateFind.month.asInt(date);
404
- const year = dateFind.year.asInt(date);
405
- // Get number of days in the month and the month's first day
406
- const monthDays = getMonthLength(month, year);
407
- // Builds dates to be displayed from current month.
408
- const dates = [...new Array(monthDays).fill(undefined)].map((_, index) => {
409
- const day = index + 1;
410
- return makeISO(year, month, day);
411
- });
412
- // Get number of empty cells from previous and next months
413
- // These ensure a total of 42 days (6 weeks) displayed on the calendar
414
- const monthFirstDay = this.getMonthFirstDay(month, year);
415
- const numBefore = monthFirstDay - 1;
416
- const cellsBefore = numBefore > 0 ? new Array(numBefore).fill("placeholder") : [];
417
- let numAfter = 42 - (numBefore + monthDays);
418
- numAfter = numAfter > 6 ? numAfter - 7 : numAfter;
419
- const cellsAfter = numAfter > 0 ? new Array(numAfter).fill("placeholder") : [];
420
- return [...cellsBefore, ...dates, ...cellsAfter];
421
- }
422
- getCell(date) {
423
- return this.el.querySelector(`#cell-${date}`);
424
- }
425
- async focusFirstFocusable() {
426
- this.prevBtnEl.focus();
427
- }
428
- async focusLastFocusable() {
429
- this.focusCell();
430
- }
431
- async focusCell() {
432
- requestAnimationFrame(() => {
433
- // Prevent an error from happening when the day in focus does not exist in a new month selected, e.g., May 31 is in focus, then the user selects "November". It will return focus in the date view to the last day of the month so that focus doesn't fly out of the popup.
434
- const maxDays = getMonthLength(this._focus.month.asInt(), this._focus.year.asInt());
435
- const dayToFocus = this._focus.day.asInt();
436
- if (dayToFocus > maxDays) {
437
- this._focus.day.set(maxDays);
438
- }
439
- if (this.view == "day") {
440
- const cellToFocus = this.getCell(this.focusDate);
441
- if (cellToFocus) {
442
- cellToFocus.tabIndex = 0;
443
- cellToFocus.focus();
444
- }
445
- this.cellHovered.emit(this.focusDate);
446
- }
447
- else {
448
- const monthToFocus = this.el.querySelector(`#month-${this._focus.month.asInt()}`);
449
- if (monthToFocus) {
450
- monthToFocus.tabIndex = 0;
451
- monthToFocus.focus();
452
- }
453
- }
454
- });
455
- }
456
- toggleBusyAttribute(state) {
457
- this.el.querySelector("#wm-container").setAttribute("aria-busy", state);
458
- }
459
- renderMonth(month, index) {
460
- return (h("button", { id: `month-${index + 1}`, class: `month ${this._focus.month.asInt() === index + 1 ? "selected focused" : ""}`, role: "gridcell", tabindex: index + 1 === this._focus.month.asInt() ? 0 : -1, onBlur: (ev) => ev.stopPropagation(), onClick: () => {
461
- this._focus.month.set(index + 1);
462
- this.view = "day";
463
- this.focusCell();
464
- } }, month));
465
- }
466
- renderDayView() {
467
- const dates = this.getCalendarDates(this.focusDate);
468
- // the start and end date, set in either of the calendars
469
- const eitherStart = this.startDate || (this.otherCalEl && this.otherCalEl.startDate);
470
- const eitherEnd = this.endDate || (this.otherCalEl && this.otherCalEl.endDate);
471
- return (h("div", { class: "popup day-view" }, h("div", { class: "calendar-header" }, h("button", { onClick: () => {
472
- this._focus.month.decrease(1);
473
- }, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": intl.formatMessage({
474
- id: "date.selectPreviousMonth",
475
- defaultMessage: "Select previous month",
476
- description: "Calendar button",
477
- }) }, h("span", { class: "svg-icon svg-previous" })), h("div", { id: "popup-title-month", class: "header-btn title-box", tabindex: "0", role: "button", onKeyDown: (ev) => {
478
- if (ev.key === "Enter" || ev.key === " ") {
479
- ev.preventDefault();
480
- this.view = "month";
481
- }
482
- }, onClick: () => (this.view = "month"), "aria-label": `${intl.formatMessage({
483
- id: "date.currentMonth",
484
- defaultMessage: "current month",
485
- description: "Calendar button",
486
- })}: ${calendar_months[this._focus.month.asInt() - 1]}
487
- ${this._focus.year.asString()}.`, "aria-describedby": "month-title" }, h("span", { class: "title", "aria-hidden": "true" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("span", { class: "svg-icon svg-expand-more" })), h("button", { onClick: () => {
488
- this._focus.month.increase(1);
489
- }, "aria-label": intl.formatMessage({
490
- id: "date.selectNextMonth",
491
- defaultMessage: "Select next month",
492
- description: "Calendar button",
493
- }), class: "header-btn arw-btn" }, h("span", { class: "svg-icon svg-next" }))), h("div", { "aria-labelledby": "popup-title-month", role: "grid", class: "date-grid" }, h("div", { role: "rowgroup", class: "date-header" }, h("div", { role: "row", class: "header-row" }, h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
494
- id: "date.su",
495
- defaultMessage: "Su",
496
- description: "Abbreviated day of the week",
497
- }))), h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
498
- id: "date.mo",
499
- defaultMessage: "Mo",
500
- description: "Abbreviated day of the week",
501
- }))), h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
502
- id: "date.tu",
503
- defaultMessage: "Tu",
504
- description: "Abbreviated day of the week",
505
- }))), h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
506
- id: "date.we",
507
- defaultMessage: "We",
508
- description: "Abbreviated day of the week",
509
- }))), h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
510
- id: "date.th",
511
- defaultMessage: "Th",
512
- description: "Abbreviated day of the week",
513
- }))), h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
514
- id: "date.fr",
515
- defaultMessage: "Fr",
516
- description: "Abbreviated day of the week",
517
- }))), h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
518
- id: "date.sa",
519
- defaultMessage: "Sa",
520
- description: "Abbreviated day of the week",
521
- }))))), h("div", { role: "rowgroup" }, h("div", { role: "row", class: "date-row" }, dates.slice(0, 7).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(7, 14).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(14, 21).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(21, 28).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(28, 35).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), dates.length > 35 ? (h("div", { role: "row" }, dates.slice(35).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd)))) : ("")))));
522
- }
523
- renderMonthView() {
524
- return (h("div", { class: "month-view" }, h("div", { class: "calendar-header" }, h("button", { onClick: () => {
525
- this._focus.year.decrease(1);
526
- }, "aria-label": intl.formatMessage({
527
- id: "date.selectPreviousYear",
528
- defaultMessage: "Select previous year",
529
- description: "Calendar button",
530
- }), class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el) }, h("span", { class: "svg-icon svg-previous" })), h("div", { id: "popup-title-year", tabindex: "0", class: "header-btn title-box year", role: "button", onClick: () => (this.view = "day"), onKeyDown: (ev) => {
531
- if (ev.key === "Enter" || ev.key === " ") {
532
- ev.preventDefault();
533
- this.view = "day";
534
- }
535
- }, "aria-labelledby": "year-title" }, h("span", { class: "title" }, this._focus.year.asString()), h("span", { class: "svg-icon svg-expand-less" })), h("button", { onClick: () => {
536
- this._focus.year.increase(1);
537
- }, "aria-label": intl.formatMessage({
538
- id: "date.selectNextYear",
539
- defaultMessage: "Select next year",
540
- description: "Calendar button",
541
- }), class: "header-btn arw-btn" }, h("span", { class: "svg-icon svg-next" }))), h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
542
- }
543
- render() {
544
- return (h(Host, { key: '500ef2d223ffe8e8b5ff8303b45f26b7538adb06', onMouseOut: (ev) => {
545
- // @ts-ignore
546
- if (!this.el.parentElement.contains(ev.toElement))
547
- this.outOfCal.emit();
548
- }, role: "application", "aria-describedby": "application" }, this.view === "day" ? this.renderDayView() : this.renderMonthView(), h("div", { key: 'd91690922cc11ad991937dd87cd618d175bca76f', id: "application", class: "sr-only" }, this.calName, this.calInstructions)));
549
- }
550
- static get is() { return "priv-calendar"; }
551
- static get originalStyleUrls() {
552
- return {
553
- "$": ["priv-calendar.scss"]
554
- };
555
- }
556
- static get styleUrls() {
557
- return {
558
- "$": ["priv-calendar.css"]
559
- };
560
- }
561
- static get properties() {
562
- return {
563
- "disabled": {
564
- "type": "boolean",
565
- "attribute": "disabled",
566
- "mutable": false,
567
- "complexType": {
568
- "original": "boolean",
569
- "resolved": "boolean",
570
- "references": {}
571
- },
572
- "required": false,
573
- "optional": false,
574
- "docs": {
575
- "tags": [],
576
- "text": ""
577
- },
578
- "getter": false,
579
- "setter": false,
580
- "reflect": false,
581
- "defaultValue": "false"
582
- },
583
- "view": {
584
- "type": "string",
585
- "attribute": "view",
586
- "mutable": true,
587
- "complexType": {
588
- "original": "string",
589
- "resolved": "string",
590
- "references": {}
591
- },
592
- "required": false,
593
- "optional": false,
594
- "docs": {
595
- "tags": [],
596
- "text": ""
597
- },
598
- "getter": false,
599
- "setter": false,
600
- "reflect": false,
601
- "defaultValue": "\"day\""
602
- },
603
- "focusDate": {
604
- "type": "string",
605
- "attribute": "focus-date",
606
- "mutable": true,
607
- "complexType": {
608
- "original": "string",
609
- "resolved": "string",
610
- "references": {}
611
- },
612
- "required": false,
613
- "optional": false,
614
- "docs": {
615
- "tags": [],
616
- "text": ""
617
- },
618
- "getter": false,
619
- "setter": false,
620
- "reflect": false,
621
- "defaultValue": "this.today"
622
- },
623
- "startDate": {
624
- "type": "string",
625
- "attribute": "start-date",
626
- "mutable": false,
627
- "complexType": {
628
- "original": "string",
629
- "resolved": "string | undefined",
630
- "references": {}
631
- },
632
- "required": false,
633
- "optional": true,
634
- "docs": {
635
- "tags": [],
636
- "text": ""
637
- },
638
- "getter": false,
639
- "setter": false,
640
- "reflect": false
641
- },
642
- "endDate": {
643
- "type": "string",
644
- "attribute": "end-date",
645
- "mutable": false,
646
- "complexType": {
647
- "original": "string",
648
- "resolved": "string | undefined",
649
- "references": {}
650
- },
651
- "required": false,
652
- "optional": true,
653
- "docs": {
654
- "tags": [],
655
- "text": ""
656
- },
657
- "getter": false,
658
- "setter": false,
659
- "reflect": false
660
- },
661
- "hoverDate": {
662
- "type": "string",
663
- "attribute": "hover-date",
664
- "mutable": false,
665
- "complexType": {
666
- "original": "string",
667
- "resolved": "string | undefined",
668
- "references": {}
669
- },
670
- "required": false,
671
- "optional": true,
672
- "docs": {
673
- "tags": [],
674
- "text": ""
675
- },
676
- "getter": false,
677
- "setter": false,
678
- "reflect": false
679
- }
680
- };
681
- }
682
- static get events() {
683
- return [{
684
- "method": "cellTriggered",
685
- "name": "cellTriggered",
686
- "bubbles": true,
687
- "cancelable": true,
688
- "composed": true,
689
- "docs": {
690
- "tags": [],
691
- "text": ""
692
- },
693
- "complexType": {
694
- "original": "{ cal: HTMLPrivCalendarElement; cell: HTMLElement }",
695
- "resolved": "{ cal: HTMLPrivCalendarElement; cell: HTMLElement; }",
696
- "references": {
697
- "HTMLPrivCalendarElement": {
698
- "location": "global",
699
- "id": "global::HTMLPrivCalendarElement"
700
- },
701
- "HTMLElement": {
702
- "location": "global",
703
- "id": "global::HTMLElement"
704
- }
705
- }
706
- }
707
- }, {
708
- "method": "cellHovered",
709
- "name": "cellHovered",
710
- "bubbles": true,
711
- "cancelable": true,
712
- "composed": true,
713
- "docs": {
714
- "tags": [],
715
- "text": ""
716
- },
717
- "complexType": {
718
- "original": "string",
719
- "resolved": "string",
720
- "references": {}
721
- }
722
- }, {
723
- "method": "outOfCal",
724
- "name": "outOfCal",
725
- "bubbles": true,
726
- "cancelable": true,
727
- "composed": true,
728
- "docs": {
729
- "tags": [],
730
- "text": ""
731
- },
732
- "complexType": {
733
- "original": "string",
734
- "resolved": "string",
735
- "references": {}
736
- }
737
- }, {
738
- "method": "popupBlurred",
739
- "name": "popupBlurred",
740
- "bubbles": true,
741
- "cancelable": true,
742
- "composed": true,
743
- "docs": {
744
- "tags": [],
745
- "text": ""
746
- },
747
- "complexType": {
748
- "original": "{ relatedTarget: EventTarget | null }",
749
- "resolved": "{ relatedTarget: EventTarget | null; }",
750
- "references": {
751
- "EventTarget": {
752
- "location": "global",
753
- "id": "global::EventTarget"
754
- }
755
- }
756
- }
757
- }, {
758
- "method": "dateFocus",
759
- "name": "dateFocus",
760
- "bubbles": true,
761
- "cancelable": true,
762
- "composed": true,
763
- "docs": {
764
- "tags": [],
765
- "text": ""
766
- },
767
- "complexType": {
768
- "original": "any",
769
- "resolved": "any",
770
- "references": {}
771
- }
772
- }];
773
- }
774
- static get methods() {
775
- return {
776
- "focusFirstFocusable": {
777
- "complexType": {
778
- "signature": "() => Promise<void>",
779
- "parameters": [],
780
- "references": {
781
- "Promise": {
782
- "location": "global",
783
- "id": "global::Promise"
784
- }
785
- },
786
- "return": "Promise<void>"
787
- },
788
- "docs": {
789
- "text": "",
790
- "tags": []
791
- }
792
- },
793
- "focusLastFocusable": {
794
- "complexType": {
795
- "signature": "() => Promise<void>",
796
- "parameters": [],
797
- "references": {
798
- "Promise": {
799
- "location": "global",
800
- "id": "global::Promise"
801
- }
802
- },
803
- "return": "Promise<void>"
804
- },
805
- "docs": {
806
- "text": "",
807
- "tags": []
808
- }
809
- },
810
- "focusCell": {
811
- "complexType": {
812
- "signature": "() => Promise<void>",
813
- "parameters": [],
814
- "references": {
815
- "Promise": {
816
- "location": "global",
817
- "id": "global::Promise"
818
- },
819
- "HTMLTableCellElement": {
820
- "location": "global",
821
- "id": "global::HTMLTableCellElement"
822
- }
823
- },
824
- "return": "Promise<void>"
825
- },
826
- "docs": {
827
- "text": "",
828
- "tags": []
829
- }
830
- }
831
- };
832
- }
833
- static get elementRef() { return "el"; }
834
- static get watchers() {
835
- return [{
836
- "propName": "focusDate",
837
- "methodName": "handleFocusDate"
838
- }];
839
- }
840
- static get listeners() {
841
- return [{
842
- "name": "keydown",
843
- "method": "handleKey",
844
- "target": undefined,
845
- "capture": false,
846
- "passive": false
847
- }];
848
- }
849
- }