@watermarkinsights/ripple 5.20.0 → 5.21.0-alpha.0

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 (242) hide show
  1. package/dist/cjs/{app-globals-c9940f6b.js → app-globals-bbe1db66.js} +1 -1
  2. package/dist/cjs/{chartFunctions-ce91b2c9.js → chartFunctions-369d5c6e.js} +1 -1
  3. package/dist/cjs/{functions-ea3eae05.js → functions-505d6601.js} +106 -24
  4. package/dist/cjs/{intl-ea56dd40.js → intl-e7d7e719.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/priv-calendar.cjs.entry.js +105 -84
  7. package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
  8. package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
  9. package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
  10. package/dist/cjs/priv-option-list.cjs.entry.js +3 -3
  11. package/dist/cjs/ripple.cjs.js +1 -1
  12. package/dist/cjs/wm-action-menu_2.cjs.entry.js +3 -3
  13. package/dist/cjs/wm-button.cjs.entry.js +2 -2
  14. package/dist/cjs/wm-chart.cjs.entry.js +3 -3
  15. package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
  16. package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
  17. package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
  18. package/dist/cjs/wm-file.cjs.entry.js +2 -2
  19. package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
  20. package/dist/cjs/wm-input.cjs.entry.js +3 -3
  21. package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
  22. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +6 -6
  23. package/dist/cjs/wm-modal_3.cjs.entry.js +6 -6
  24. package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
  25. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  26. package/dist/cjs/wm-nested-select.cjs.entry.js +5 -5
  27. package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
  28. package/dist/cjs/wm-option_2.cjs.entry.js +7 -7
  29. package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
  30. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
  31. package/dist/cjs/wm-search.cjs.entry.js +4 -4
  32. package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
  33. package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
  34. package/dist/cjs/wm-tag-input.cjs.entry.js +4 -4
  35. package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
  36. package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
  37. package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
  38. package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
  39. package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
  40. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +61 -35
  41. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +106 -83
  42. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
  43. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
  44. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
  45. package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
  46. package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
  47. package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
  48. package/dist/collection/components/wm-button/wm-button.js +1 -1
  49. package/dist/collection/components/wm-file/wm-file.js +1 -1
  50. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  51. package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
  52. package/dist/collection/components/wm-input/wm-input.js +1 -1
  53. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  54. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  55. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  56. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  57. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
  58. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
  59. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
  60. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  61. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  62. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  63. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  64. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
  65. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  66. package/dist/collection/components/wm-search/wm-search.js +2 -2
  67. package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
  68. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
  69. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
  70. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  71. package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -2
  72. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  73. package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
  74. package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
  75. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  76. package/dist/collection/global/functions.js +9 -0
  77. package/dist/esm/{app-globals-8cefcc2e.js → app-globals-fde74c92.js} +1 -1
  78. package/dist/esm/{chartFunctions-613e9c87.js → chartFunctions-02a60556.js} +1 -1
  79. package/dist/esm/{functions-38e392cb.js → functions-14aaf49d.js} +106 -25
  80. package/dist/esm/{intl-0b8f342e.js → intl-7b5f8017.js} +1 -1
  81. package/dist/esm/loader.js +1 -1
  82. package/dist/esm/priv-calendar.entry.js +105 -84
  83. package/dist/esm/priv-chart-popover.entry.js +1 -1
  84. package/dist/esm/priv-navigator-button.entry.js +1 -1
  85. package/dist/esm/priv-navigator-item.entry.js +1 -1
  86. package/dist/esm/priv-option-list.entry.js +3 -3
  87. package/dist/esm/ripple.js +1 -1
  88. package/dist/esm/wm-action-menu_2.entry.js +3 -3
  89. package/dist/esm/wm-button.entry.js +2 -2
  90. package/dist/esm/wm-chart.entry.js +3 -3
  91. package/dist/esm/wm-date-range.entry.js +1 -1
  92. package/dist/esm/wm-datepicker.entry.js +1 -1
  93. package/dist/esm/wm-file-list.entry.js +1 -1
  94. package/dist/esm/wm-file.entry.js +2 -2
  95. package/dist/esm/wm-flyout.entry.js +3 -3
  96. package/dist/esm/wm-input.entry.js +3 -3
  97. package/dist/esm/wm-line-chart.entry.js +3 -3
  98. package/dist/esm/wm-modal-pss_3.entry.js +6 -6
  99. package/dist/esm/wm-modal_3.entry.js +6 -6
  100. package/dist/esm/wm-navigation_3.entry.js +6 -6
  101. package/dist/esm/wm-navigator.entry.js +1 -1
  102. package/dist/esm/wm-nested-select.entry.js +5 -5
  103. package/dist/esm/wm-optgroup.entry.js +2 -2
  104. package/dist/esm/wm-option_2.entry.js +7 -7
  105. package/dist/esm/wm-pagination.entry.js +3 -3
  106. package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
  107. package/dist/esm/wm-search.entry.js +4 -4
  108. package/dist/esm/wm-snackbar.entry.js +4 -4
  109. package/dist/esm/wm-tab-item_3.entry.js +7 -7
  110. package/dist/esm/wm-tag-input.entry.js +4 -4
  111. package/dist/esm/wm-tag-option.entry.js +1 -1
  112. package/dist/esm/wm-textarea.entry.js +3 -3
  113. package/dist/esm/wm-timepicker.entry.js +3 -3
  114. package/dist/esm/wm-toggletip.entry.js +4 -4
  115. package/dist/esm/wm-uploader.entry.js +4 -4
  116. package/dist/esm-es5/app-globals-fde74c92.js +1 -0
  117. package/dist/esm-es5/{chartFunctions-613e9c87.js → chartFunctions-02a60556.js} +1 -1
  118. package/dist/esm-es5/functions-14aaf49d.js +1 -0
  119. package/dist/esm-es5/{intl-0b8f342e.js → intl-7b5f8017.js} +1 -1
  120. package/dist/esm-es5/loader.js +1 -1
  121. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  122. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  123. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  124. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  125. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  126. package/dist/esm-es5/ripple.js +1 -1
  127. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  128. package/dist/esm-es5/wm-button.entry.js +1 -1
  129. package/dist/esm-es5/wm-chart.entry.js +1 -1
  130. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  131. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  132. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  133. package/dist/esm-es5/wm-file.entry.js +1 -1
  134. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  135. package/dist/esm-es5/wm-input.entry.js +1 -1
  136. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  137. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  138. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  139. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  140. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  141. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  142. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  143. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  144. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  145. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  146. package/dist/esm-es5/wm-search.entry.js +1 -1
  147. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  148. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  149. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  150. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  151. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  152. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  153. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  154. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  155. package/dist/ripple/{p-4df8346a.entry.js → p-0460b298.entry.js} +1 -1
  156. package/dist/ripple/{p-41664372.entry.js → p-07dd157d.entry.js} +1 -1
  157. package/dist/ripple/{p-47e87534.entry.js → p-0a47f460.entry.js} +1 -1
  158. package/dist/ripple/{p-667fdcbb.system.entry.js → p-0c737405.system.entry.js} +1 -1
  159. package/dist/ripple/{p-908057b2.entry.js → p-0eb56759.entry.js} +1 -1
  160. package/dist/ripple/{p-44cc05f6.system.entry.js → p-0ed21cab.system.entry.js} +1 -1
  161. package/dist/ripple/{p-9609d8e7.entry.js → p-12f39b2f.entry.js} +1 -1
  162. package/dist/ripple/{p-2b7259cb.system.entry.js → p-135ecb41.system.entry.js} +1 -1
  163. package/dist/ripple/{p-f4390a0a.system.entry.js → p-17d9c6b5.system.entry.js} +1 -1
  164. package/dist/ripple/{p-118093e1.entry.js → p-1ea4427b.entry.js} +1 -1
  165. package/dist/ripple/{p-92c8361f.js → p-220fa36a.js} +1 -1
  166. package/dist/ripple/{p-96f86eb4.system.entry.js → p-223efa2f.system.entry.js} +1 -1
  167. package/dist/ripple/{p-7134a305.system.entry.js → p-22b8d0a4.system.entry.js} +1 -1
  168. package/dist/ripple/{p-c7f3ef7f.system.entry.js → p-241e4847.system.entry.js} +1 -1
  169. package/dist/ripple/{p-1259cb49.system.js → p-28f191bf.system.js} +1 -1
  170. package/dist/ripple/{p-7edd25f7.system.js → p-2ecde7a9.system.js} +1 -1
  171. package/dist/ripple/{p-17964357.system.entry.js → p-321d4148.system.entry.js} +1 -1
  172. package/dist/ripple/{p-8e2f3a45.entry.js → p-365ab12b.entry.js} +1 -1
  173. package/dist/ripple/{p-65abcbb4.system.js → p-3967eef9.system.js} +1 -1
  174. package/dist/ripple/{p-6a70dc0b.system.entry.js → p-3b9ddb71.system.entry.js} +1 -1
  175. package/dist/ripple/{p-960d2cf0.system.entry.js → p-3ef56754.system.entry.js} +1 -1
  176. package/dist/ripple/{p-2f8bad10.entry.js → p-3ef6eadd.entry.js} +1 -1
  177. package/dist/ripple/{p-56b6d9f6.entry.js → p-3fb09574.entry.js} +1 -1
  178. package/dist/ripple/{p-00eaa361.system.entry.js → p-4086d2f2.system.entry.js} +1 -1
  179. package/dist/ripple/{p-4d0abf7a.entry.js → p-4cc3a15f.entry.js} +1 -1
  180. package/dist/ripple/{p-91c5b14e.system.entry.js → p-4e9f0f73.system.entry.js} +1 -1
  181. package/dist/ripple/{p-b1fb99e4.system.entry.js → p-4edc18b1.system.entry.js} +1 -1
  182. package/dist/ripple/{p-26ffcd83.entry.js → p-4f37838a.entry.js} +1 -1
  183. package/dist/ripple/{p-5405df80.system.entry.js → p-533290cd.system.entry.js} +1 -1
  184. package/dist/ripple/{p-fbad04d7.system.entry.js → p-58b7509e.system.entry.js} +1 -1
  185. package/dist/ripple/{p-1a89139d.system.entry.js → p-5e15c72a.system.entry.js} +1 -1
  186. package/dist/ripple/{p-b0da7ad4.system.entry.js → p-5fbc65d9.system.entry.js} +1 -1
  187. package/dist/ripple/{p-3612ee73.entry.js → p-61f780ab.entry.js} +1 -1
  188. package/dist/ripple/{p-23e1112c.system.entry.js → p-6d0f7f1d.system.entry.js} +1 -1
  189. package/dist/ripple/p-700fa3a5.js +1 -0
  190. package/dist/ripple/{p-ecd1c2ba.entry.js → p-71a3be1c.entry.js} +1 -1
  191. package/dist/ripple/{p-56e376b2.system.entry.js → p-736dc15d.system.entry.js} +1 -1
  192. package/dist/ripple/{p-39a4934f.entry.js → p-742451fa.entry.js} +1 -1
  193. package/dist/ripple/{p-7c3bf608.entry.js → p-7a189f76.entry.js} +1 -1
  194. package/dist/ripple/p-7a68fd88.system.entry.js +1 -0
  195. package/dist/ripple/{p-f9bbb123.system.entry.js → p-86113458.system.entry.js} +1 -1
  196. package/dist/ripple/{p-2db6573e.system.entry.js → p-8754858a.system.entry.js} +1 -1
  197. package/dist/ripple/{p-a9ddfa2c.entry.js → p-886b50fb.entry.js} +1 -1
  198. package/dist/ripple/p-8e59cec0.entry.js +1 -0
  199. package/dist/ripple/{p-4602304a.system.entry.js → p-8eba876d.system.entry.js} +1 -1
  200. package/dist/ripple/{p-3133ce3c.system.entry.js → p-9a691e9d.system.entry.js} +1 -1
  201. package/dist/ripple/{p-d815809f.js → p-9f10c71b.js} +1 -1
  202. package/dist/ripple/{p-86a61a2a.entry.js → p-9f27c966.entry.js} +1 -1
  203. package/dist/ripple/{p-507ea41f.system.entry.js → p-a0acef05.system.entry.js} +1 -1
  204. package/dist/ripple/p-a0b38e60.system.js +1 -0
  205. package/dist/ripple/{p-0825151e.entry.js → p-ace61ebd.entry.js} +1 -1
  206. package/dist/ripple/{p-fe697924.system.entry.js → p-ad409bbe.system.entry.js} +1 -1
  207. package/dist/ripple/{p-4b8f7d1e.entry.js → p-b275c070.entry.js} +1 -1
  208. package/dist/ripple/{p-abcdd7be.system.entry.js → p-b3682bbf.system.entry.js} +1 -1
  209. package/dist/ripple/{p-e5c34af5.system.entry.js → p-b5bfb1a3.system.entry.js} +1 -1
  210. package/dist/ripple/{p-72e1fdb5.entry.js → p-be8f0d4c.entry.js} +1 -1
  211. package/dist/ripple/{p-f91fc18d.entry.js → p-c68699f5.entry.js} +1 -1
  212. package/dist/ripple/{p-0bce3f83.entry.js → p-c9c76589.entry.js} +1 -1
  213. package/dist/ripple/{p-a5c5c64c.entry.js → p-cc85cd9b.entry.js} +1 -1
  214. package/dist/ripple/{p-a7cde3fc.entry.js → p-d22239ed.entry.js} +1 -1
  215. package/dist/ripple/{p-9e89655f.entry.js → p-d3aa80bc.entry.js} +1 -1
  216. package/dist/ripple/{p-a14dee02.system.entry.js → p-d66d99cd.system.entry.js} +1 -1
  217. package/dist/ripple/{p-bde7e77b.system.entry.js → p-d8e7f0ab.system.entry.js} +1 -1
  218. package/dist/ripple/{p-2f7e25a2.system.entry.js → p-dab72fca.system.entry.js} +1 -1
  219. package/dist/ripple/{p-8d1e0f23.system.entry.js → p-dca07826.system.entry.js} +1 -1
  220. package/dist/ripple/p-e72235c6.js +1 -0
  221. package/dist/ripple/{p-60e16c79.entry.js → p-e73d5896.entry.js} +1 -1
  222. package/dist/ripple/{p-5e7893f0.entry.js → p-e9038796.entry.js} +1 -1
  223. package/dist/ripple/{p-2508b801.entry.js → p-eb68ec38.entry.js} +1 -1
  224. package/dist/ripple/{p-957f13fb.entry.js → p-ecafbfba.entry.js} +1 -1
  225. package/dist/ripple/{p-31bac55d.entry.js → p-ef3a4568.entry.js} +1 -1
  226. package/dist/ripple/{p-d9c7206b.system.entry.js → p-f1dea7a8.system.entry.js} +1 -1
  227. package/dist/ripple/{p-9202d9e9.entry.js → p-f3216137.entry.js} +1 -1
  228. package/dist/ripple/{p-ee96cea8.entry.js → p-f5c59ec1.entry.js} +1 -1
  229. package/dist/ripple/p-f768a9a5.system.js +1 -0
  230. package/dist/ripple/ripple.esm.js +1 -1
  231. package/dist/ripple/ripple.js +1 -1
  232. package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +8 -0
  233. package/dist/types/global/functions.d.ts +1 -0
  234. package/package.json +2 -2
  235. package/dist/esm-es5/app-globals-8cefcc2e.js +0 -1
  236. package/dist/esm-es5/functions-38e392cb.js +0 -1
  237. package/dist/ripple/p-0652e156.js +0 -1
  238. package/dist/ripple/p-608971f2.system.js +0 -1
  239. package/dist/ripple/p-8ec6ec53.entry.js +0 -1
  240. package/dist/ripple/p-b511ebfd.js +0 -1
  241. package/dist/ripple/p-e660d0b8.system.entry.js +0 -1
  242. package/dist/ripple/p-f1939079.system.js +0 -1
@@ -1,5 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { intl, dateFind, getMonthLength, makeISO, calendar_months, weekdays } from "../../../global/functions";
2
+ import { intl, dateFind, getMonthLength, makeISO, calendar_months, weekdays, clampDate, } from "../../../global/functions";
3
+ import { generateId } from "../../../global/functions";
4
+ import { showTooltip, hideTooltip } from "../../../global/functions";
3
5
  export class PrivCalendar {
4
6
  constructor() {
5
7
  this.today = this.dateToISO(new Date());
@@ -9,6 +11,27 @@ export class PrivCalendar {
9
11
  id: "date.instructions",
10
12
  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.",
11
13
  });
14
+ this.previousMonthButtonLabel = intl.formatMessage({
15
+ id: "date.selectPreviousMonth",
16
+ defaultMessage: "View previous month",
17
+ description: "Calendar button",
18
+ });
19
+ this.previousYearButtonLabel = intl.formatMessage({
20
+ id: "date.selectPreviousYear",
21
+ defaultMessage: "View previous year",
22
+ description: "Calendar button",
23
+ });
24
+ this.nextMonthButtonLabel = intl.formatMessage({
25
+ id: "date.selectNextMonth",
26
+ defaultMessage: "View next month",
27
+ description: "Calendar button",
28
+ });
29
+ this.nextYearButtonLabel = intl.formatMessage({
30
+ id: "date.selectNextYear",
31
+ defaultMessage: "View next year",
32
+ description: "Calendar button",
33
+ });
34
+ this.uid = generateId();
12
35
  this._focus = {
13
36
  year: {
14
37
  asString: () => dateFind.year.asString(this.focusDate),
@@ -37,11 +60,11 @@ export class PrivCalendar {
37
60
  },
38
61
  increase: (n) => {
39
62
  const newDate = dateFind.month.increase(this.focusDate, n);
40
- this.focusDate = newDate;
63
+ this.focusDate = clampDate(newDate);
41
64
  },
42
65
  decrease: (n) => {
43
66
  const newDate = dateFind.month.decrease(this.focusDate, n);
44
- this.focusDate = newDate;
67
+ this.focusDate = clampDate(newDate);
45
68
  },
46
69
  },
47
70
  day: {
@@ -238,6 +261,7 @@ export class PrivCalendar {
238
261
  return Array.from(this.el.querySelectorAll(".header-btn"));
239
262
  }
240
263
  handleKey(ev) {
264
+ const activeEl = (document.activeElement.shadowRoot || document).activeElement;
241
265
  switch (ev.key) {
242
266
  case " ":
243
267
  case "Enter":
@@ -286,55 +310,55 @@ export class PrivCalendar {
286
310
  }
287
311
  break;
288
312
  case "ArrowLeft":
289
- ev.preventDefault();
290
- if (this.view === "day") {
291
- this._focus.day.decrease(1);
292
- // if the month changes as a result of this navigation, calendar must render the correct month before the proper cell can be focused
293
- this.focusCell();
294
- }
295
- else {
296
- this.monthButtonFocus.decrease(1);
313
+ if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
314
+ ev.preventDefault();
315
+ if (this.view === "day") {
316
+ this._focus.day.decrease(1);
317
+ this.focusCell();
318
+ }
319
+ else {
320
+ this.monthButtonFocus.decrease(1);
321
+ }
297
322
  }
298
323
  break;
299
324
  case "ArrowRight":
300
- ev.preventDefault();
301
- if (this.view === "day") {
302
- this._focus.day.increase(1);
303
- this.focusCell();
304
- }
305
- else {
306
- this.monthButtonFocus.increase(1);
325
+ if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
326
+ ev.preventDefault();
327
+ if (this.view === "day") {
328
+ this._focus.day.increase(1);
329
+ this.focusCell();
330
+ }
331
+ else {
332
+ this.monthButtonFocus.increase(1);
333
+ }
307
334
  }
308
335
  break;
309
336
  case "ArrowUp":
310
- ev.preventDefault();
311
- if (this.view === "day") {
312
- this._focus.day.decrease(7);
313
- this.focusCell();
314
- }
315
- else {
316
- this.monthButtonFocus.decrease(3);
337
+ if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
338
+ ev.preventDefault();
339
+ if (this.view === "day") {
340
+ this._focus.day.decrease(7);
341
+ this.focusCell();
342
+ }
343
+ else {
344
+ this.monthButtonFocus.decrease(3);
345
+ }
317
346
  }
318
347
  break;
319
348
  case "ArrowDown":
320
- ev.preventDefault();
321
- if (this.view === "day") {
322
- //If the down arrow is pressed from the month button or the arrow buttons, focus should shift to the current cell in focus
323
- if (!(document.activeElement.shadowRoot || document).activeElement.classList.contains("date-cell")) {
324
- this.focusCell();
325
- break;
326
- }
327
- this._focus.day.increase(7);
349
+ if (activeEl.classList.contains("arw-btn")) {
350
+ ev.preventDefault();
328
351
  this.focusCell();
329
352
  }
330
- else {
331
- //If the down arrow is pressed from the arrow buttons or the title box, focus should shift to the current month in focus
332
- const activeEl = (document.activeElement.shadowRoot || document).activeElement;
333
- if (activeEl.classList.contains("header-btn")) {
353
+ if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
354
+ ev.preventDefault();
355
+ if (this.view === "day") {
356
+ this._focus.day.increase(7);
334
357
  this.focusCell();
335
- break;
336
358
  }
337
- this.monthButtonFocus.increase(3);
359
+ else if (this.view === "month") {
360
+ this.monthButtonFocus.increase(3);
361
+ }
338
362
  }
339
363
  break;
340
364
  }
@@ -466,34 +490,50 @@ export class PrivCalendar {
466
490
  this.focusCell();
467
491
  } }, month));
468
492
  }
493
+ renderHeader() {
494
+ const previousButtonLabel = this.view == "day" ? this.previousMonthButtonLabel : this.previousYearButtonLabel;
495
+ const nextButtonLabel = this.view == "day" ? this.nextMonthButtonLabel : this.nextYearButtonLabel;
496
+ return (h("div", { class: "calendar-header" }, h("button", { onClick: () => {
497
+ if (this.view == "day") {
498
+ this._focus.month.decrease(1);
499
+ }
500
+ else if (this.view == "month") {
501
+ this._focus.year.decrease(1);
502
+ }
503
+ }, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), this.renderToggleButton(), h("button", { onClick: () => {
504
+ if (this.view == "day") {
505
+ this._focus.month.increase(1);
506
+ }
507
+ else if (this.view == "month") {
508
+ this._focus.year.increase(1);
509
+ }
510
+ }, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" }))));
511
+ }
512
+ renderToggleButton() {
513
+ return (h("div", { class: "toggle-button" }, h("div", { class: "input-wrapper left" }, h("input", { type: "radio", id: `month-radio-${this.uid}`, "aria-label": intl.formatMessage({
514
+ id: "date.monthView",
515
+ defaultMessage: "Month view",
516
+ description: "Calendar button to change to month view",
517
+ }), name: `rdo-${this.uid}`, class: "toggle-radio-input", checked: this.view === "day", onClick: () => (this.view = "day") }), h("label", { htmlFor: `month-radio-${this.uid}`, class: "radio" }, intl.formatMessage({
518
+ id: "date.month",
519
+ defaultMessage: "Month",
520
+ description: "Calendar button to change to month view",
521
+ }))), h("div", { class: "input-wrapper right" }, h("input", { type: "radio", id: `year-radio-${this.uid}`, "aria-label": intl.formatMessage({
522
+ id: "date.yearView",
523
+ defaultMessage: "Year view",
524
+ description: "Calendar button to change to year view",
525
+ }), name: `rdo-${this.uid}`, class: "toggle-radio-input", checked: this.view === "month", onClick: () => (this.view = "month") }), h("label", { htmlFor: `year-radio-${this.uid}`, class: "radio" }, intl.formatMessage({
526
+ id: "date.year",
527
+ defaultMessage: "Year",
528
+ description: "Calendar button to change to year view",
529
+ })))));
530
+ }
469
531
  renderDayView() {
470
532
  const dates = this.getCalendarDates(this.focusDate);
471
533
  // the start and end date, set in either of the calendars
472
534
  const eitherStart = this.startDate || (this.otherCalEl && this.otherCalEl.startDate);
473
535
  const eitherEnd = this.endDate || (this.otherCalEl && this.otherCalEl.endDate);
474
- return (h("div", { class: "popup day-view" }, h("div", { class: "calendar-header" }, h("button", { onClick: () => {
475
- this._focus.month.decrease(1);
476
- }, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": intl.formatMessage({
477
- id: "date.selectPreviousMonth",
478
- defaultMessage: "Select previous month",
479
- description: "Calendar button",
480
- }) }, h("span", { class: "svg-icon svg-previous" })), h("div", { id: "popup-title-month", class: "header-btn title-box", tabindex: "0", role: "button", onKeyDown: (ev) => {
481
- if (ev.key === "Enter" || ev.key === " ") {
482
- ev.preventDefault();
483
- this.view = "month";
484
- }
485
- }, onClick: () => (this.view = "month"), "aria-label": `${intl.formatMessage({
486
- id: "date.currentMonth",
487
- defaultMessage: "current month",
488
- description: "Calendar button",
489
- })}: ${calendar_months[this._focus.month.asInt() - 1]}
490
- ${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: () => {
491
- this._focus.month.increase(1);
492
- }, "aria-label": intl.formatMessage({
493
- id: "date.selectNextMonth",
494
- defaultMessage: "Select next month",
495
- description: "Calendar button",
496
- }), 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({
536
+ return (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({
497
537
  id: "date.su",
498
538
  defaultMessage: "Su",
499
539
  description: "Abbreviated day of the week",
@@ -521,34 +561,17 @@ export class PrivCalendar {
521
561
  id: "date.sa",
522
562
  defaultMessage: "Sa",
523
563
  description: "Abbreviated day of the week",
524
- }))))), 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)))) : ("")))));
564
+ }))))), 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)))) : (""))));
525
565
  }
526
566
  renderMonthView() {
527
- return (h("div", { class: "month-view" }, h("div", { class: "calendar-header" }, h("button", { onClick: () => {
528
- this._focus.year.decrease(1);
529
- }, "aria-label": intl.formatMessage({
530
- id: "date.selectPreviousYear",
531
- defaultMessage: "Select previous year",
532
- description: "Calendar button",
533
- }), 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) => {
534
- if (ev.key === "Enter" || ev.key === " ") {
535
- ev.preventDefault();
536
- this.view = "day";
537
- }
538
- }, "aria-labelledby": "year-title" }, h("span", { class: "title" }, this._focus.year.asString()), h("span", { class: "svg-icon svg-expand-less" })), h("button", { onClick: () => {
539
- this._focus.year.increase(1);
540
- }, "aria-label": intl.formatMessage({
541
- id: "date.selectNextYear",
542
- defaultMessage: "Select next year",
543
- description: "Calendar button",
544
- }), 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))))));
567
+ return (h("div", { class: "month-view" }, 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))))));
545
568
  }
546
569
  render() {
547
- return (h(Host, { key: '500ef2d223ffe8e8b5ff8303b45f26b7538adb06', onMouseOut: (ev) => {
570
+ return (h(Host, { key: '5ac1252b33ef3a43fecf9c3221938389cf1d3681', onMouseOut: (ev) => {
548
571
  // @ts-ignore
549
572
  if (!this.el.parentElement.contains(ev.toElement))
550
573
  this.outOfCal.emit();
551
- }, 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)));
574
+ }, role: "application", "aria-describedby": "application" }, h("div", { key: 'e92179ff0e073bb0713728d6781ac4d040543169', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: 'c16391c078271ae7fef7fdb55ac268b746d06124', id: "application", class: "sr-only" }, this.calName, this.calInstructions)));
552
575
  }
553
576
  static get is() { return "priv-calendar"; }
554
577
  static get originalStyleUrls() {
@@ -367,7 +367,7 @@ export class PrivOptionList {
367
367
  return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
368
368
  }
369
369
  render() {
370
- return (h("div", { key: '9f19650526738eefcf2e2de58b812d9d0d3a21af', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '381b60f8cb2dc58f7c268e75e6d0e78879393f0d', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: '6a99161cdb2d3c4b6b1bfbe9b4af333daa4704de' })), h("div", { key: '8cee667df6aa79c7db5511858a73f68e911cc566', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
370
+ return (h("div", { key: 'b1d10f8872c9d905ba04ddd8e3688561d779453c', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '8ec2219a390ee59f518a505a4e7a74266524203f', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: '87573087bc2ca9f558171f2b166c65d1252d2bf0' })), h("div", { key: 'b066e22e83612448cc55c2495bc4a6532f6d0065', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
371
371
  }
372
372
  static get is() { return "priv-option-list"; }
373
373
  static get originalStyleUrls() {
@@ -292,16 +292,16 @@ export class NestedSelect {
292
292
  this.isExpanded ? this.close() : this.open();
293
293
  },
294
294
  };
295
- return (h(Host, { key: 'cace730a8e2023eee24ef2d48104cdc334b765df', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: 'fcf737069a6297763779710da41f1947235845cd', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'c7af1c5c2b04fa15eddac417b69b22dc2f820e6b', class: "label-wrapper" }, h("label", { key: '75b81af82fc50ff315d8873599c67e10c0ba0580', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
295
+ return (h(Host, { key: 'd695b66fc02c415decc52fb7933e045d77ec6570', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: 'f11c3f53c8def76bbd904e46d518e539161274f4', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '0c258365d64598bfd9b00e380c73317fd3023ae6', class: "label-wrapper" }, h("label", { key: '45b88d6f43d9f7769a86643a8755187d85aae2d0', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
296
296
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
297
- this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '1ee9286a3b62e9bd85049acfa347801220d47957', class: "button-wrapper" }, h("button", Object.assign({ key: 'b214874daf294a02d7a5671c806fc9f05be724bd' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: 'c2cca855b7085a26b8f9b0e2637424c34b36561f', class: "overflowcontrol" }, h("span", { key: '047d5650fd6dc9cf0a17ecbc7778d3c94060cce1', class: "button-text" }, this.renderButtonText())), h("div", { key: 'b65f799f801505de8fed7ad83453e6fca8f0ab26', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '07cdfdafb857c58f0d37e41cadcd884f7ddc0431', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '6d097a2a65b495e97c1556c4a4fa47d097df4ec5', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { key: 'cfb6b6aab31777b9a5f3223121fcaf5a0785c006', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
297
+ this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '15aff7adcdeffb80773e642426351dfaf6aa2cb6', class: "button-wrapper" }, h("button", Object.assign({ key: '5939e8c3f600e30226b1197eb575ceea73a05163' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '03b725b1a68c66ca06112ad647cacd9c61a87e6e', class: "overflowcontrol" }, h("span", { key: 'abcf682d2a7d623c8e4efb94d7f9a55ca4722131', class: "button-text" }, this.renderButtonText())), h("div", { key: '5295064b9dddfc08facb985aed1a140b2f67d8dd', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'f97f6711b3239d0d6179c8cad3f8b088541161f4', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '637aba14e9e93baa1c902f8b7b81d5487d56e0a6', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { key: '6da587e0991c5b6bd5429b4796a7418610d586d6', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
298
298
  return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
299
299
  if (!optgroupEl.disabled) {
300
300
  optgroupEl.isExpanded = !optgroupEl.isExpanded;
301
301
  forceUpdate(this.el);
302
302
  }
303
303
  }, onKeyDown: (ev) => this.handleMenuitemKeydown(ev) }, h("div", { class: "option-text" }, h("span", null, optgroupEl.label), this.renderSelectionCount(optgroupEl), optgroupEl.disabled && h("div", { class: "disabled-indication" }, "Disabled")), h("div", { class: "svg-icon svg-next" })));
304
- })), h("div", { key: 'd1b03429523cc98abe7eab5daa7c3b53471c2a42', ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot", { key: '6b064d941c0d6c9fe77abcf0676ab9d53089e854' }))), h("div", { key: '227555697e6da19102120de41068750f48f322be', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: 'dfa6a311286314637093b9c60ab7c62cdc285d8a', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
304
+ })), h("div", { key: '34c842099530cbcbd56f98c40d4c37b307a45f32', ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot", { key: 'ad13e3aa8800bb47a70105c525ff9ea7a280a658' }))), h("div", { key: '3098fc48ccd369e3c7209baaaf73842bf684a5f1', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: 'e69d19a1f0d34c0822c03e31c4acbc87f1122684', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
305
305
  }
306
306
  static get is() { return "wm-nested-select"; }
307
307
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class Optgroup {
48
48
  handleDisabledAttribute(this.el, this.isDisabled);
49
49
  }
50
50
  render() {
51
- return (h(Host, { key: 'bba30132f0e662bcfc6f9a4280558aa4426673f4' }, h("div", { key: '757e663ad18a9a451169f994f54faf8f9182e1d9', class: `list-wrapper` }, h("priv-option-list", { key: '1bfda628a518f2508084a2382cc7a2f19754859e', ref: (el) => (this.optionListEl = el), multiple: this.parentNestedSelect.multiple, search: this.parentNestedSelect.search, maxHeight: this.parentNestedSelect.constrainedMaxHeight, searchPlaceholder: this.parentNestedSelect.searchPlaceholder, optgroupLabel: this.label, selectAll: this.parentNestedSelect.selectAll, onOptionListAllSelected: () => this.wmOptgroupAllSelected.emit(), onOptionListAllDeselected: () => this.wmOptgroupAllDeselected.emit() }, h("slot", { key: 'd584feb13518107132003e262c5bcc818b677c5c' })))));
51
+ return (h(Host, { key: 'd77bf14f995daa7ee2809e248824722f786d1bd9' }, h("div", { key: 'a695e5a0c65767922d05eb38085a81737b1b840e', class: `list-wrapper` }, h("priv-option-list", { key: 'a0eb3e7a12e61b1508f16d20bd7dbddfb2724f38', ref: (el) => (this.optionListEl = el), multiple: this.parentNestedSelect.multiple, search: this.parentNestedSelect.search, maxHeight: this.parentNestedSelect.constrainedMaxHeight, searchPlaceholder: this.parentNestedSelect.searchPlaceholder, optgroupLabel: this.label, selectAll: this.parentNestedSelect.selectAll, onOptionListAllSelected: () => this.wmOptgroupAllSelected.emit(), onOptionListAllDeselected: () => this.wmOptgroupAllDeselected.emit() }, h("slot", { key: '106a06b63cccf8436616efd341e22e863021007e' })))));
52
52
  }
53
53
  static get is() { return "wm-optgroup"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -143,7 +143,7 @@ export class Option {
143
143
  this.parentOptionList.addEventListener("optionListSearchChanged", (ev) => this.handleSearch(ev));
144
144
  }
145
145
  render() {
146
- return (h(Host, { key: '613fb3ff6678fbe5793a432817705b46c502ae06', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '8f9e3e8a88bf839e6b5801f01e6b451d297bce55', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '82c0706404571fda0937308433b9def82f021666', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '8c657048302620555e49630a4adc94171894b0a3', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '879fad664edef7a7188a8dfac862b29d7f78af42', class: "sr-only" }, this.el.textContent)), h("div", { key: 'bf5a1372a0daf05ef3cf8af196eddcaacd7ee049', class: "subinfo" }, this.subinfo)));
146
+ return (h(Host, { key: '3bebc22b8d9c2f28d6d4a40202dbbd5bfcd881a2', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: 'a65b8024c460fc76a188847c383c813110cf9ae1', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '9bb2af43b87a04158ac30263c766d1997ae13902', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '341516525f8fd5eb4e389eda55ec336961d4010e', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '69c48602a0954b55ae50f441417e7088ae2f6550', class: "sr-only" }, this.el.textContent)), h("div", { key: 'd9f8a9a104849c65a1e13482a028e0c7b181f54f', class: "subinfo" }, this.subinfo)));
147
147
  }
148
148
  static get is() { return "wm-option"; }
149
149
  static get encapsulation() { return "shadow"; }
@@ -314,14 +314,14 @@ export class Select {
314
314
  }
315
315
  render() {
316
316
  const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
317
- return (h(Host, { key: '7e8a475bb0ec52e4944c6873e01c4606898f4c5f', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: 'ab7b7ac75c131204dfb9053522aca310def8f45c', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'd621ab97f8538a4888b57724ce19459216a909a2', class: "label-wrapper" }, h("label", { key: '6721709ccc53c4dcb34adde92400213edcecfcd1', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
317
+ return (h(Host, { key: '7fb824eaafac8e737e8bafb76e6bbac60cf652d1', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '19cf9096a6dd9e534aa35e1aa2ad318cc71f0a17', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'b0c98aeb4a346745064fbbf214fb6647b2a9f32b', class: "label-wrapper" }, h("label", { key: 'fc1fde9175b1e661a6f08a0fcc35aa06a405bca9', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
318
318
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
319
- this.requiredField && (h("span", { key: 'aa206ab21ef45c4881508a7d89dbeb9c9e391bc5', class: "required" }, h("span", { key: '4831f113ee6326704bdd4c54062e3a68c6c17783', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '88d2090f8ad7a017a0d43d54e8344b8ee6fa858d', "aria-hidden": "true" }, "*")))), h("div", { key: '414f570b751a2c8a886b7b4b8c80b2c2f9150f2d', class: "button-wrapper" }, h("button", { key: '11bd141ae70438ac048bce9df4e8983e36b4abb0', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: '1f337bb2196dfd0c2c22f32f05073eac31f978d2', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '978a03d535551ade50c872610b53af59bca79004', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'b97e2bccd8dc0ccc55df54a8220c80940ae21b15', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '687523e6ee6f23a22a55481dbbb4856580e71770', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'eb88eb23947a6c7c608fe80c752b604102db6a2d', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '0c8b8cd661caa7f55de6e0eb56d304e6ae299e45',
319
+ this.requiredField && (h("span", { key: '2a322ba30403a27e5f4be402143d5ccc1c5ed134', class: "required" }, h("span", { key: '3461e69bc5773cc2d635aa16b739580314a2bfe6', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '435cd8abf9909ac43455c150c1e8ab7b7c3ee014', "aria-hidden": "true" }, "*")))), h("div", { key: '247e8b19ad5fb48e4f1152e67780218b201c9064', class: "button-wrapper" }, h("button", { key: 'a69404e36e8bbafa5bbd7c9f1c6e381571ce6240', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'da21f5b17347388d719c32f49ffb06878fa5102b', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'c65e84dbf79866af02242917a91146cb85cda6e6', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'f57f44de3f21a331b7e996a823a4d88b53835eb0', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '44a7fade429711e38e95abca8d165c1d1cf0ff6c', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '07ad0b8a3e260c58b1291e64d3db2498cb0e503e', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '745291f917c50256155e3a208791417467b25f88',
320
320
  // is-open is for the CSS transition in modern browsers
321
321
  // hidden is to wait for position calculations in Firefox
322
322
  class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
323
323
  // @ts-ignore -- don't tell typescript but we're in the future
324
- onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: 'c2f173700a255dfe637bb0bbd12d73ef1c4e15fd', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
324
+ onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '185863f82957568eef29a5180afcd0973c5616ad', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
325
325
  this.dropdownEl.hidePopover();
326
326
  }, onOptionListAllSelected: () => {
327
327
  this.returnFocus = true;
@@ -329,7 +329,7 @@ export class Select {
329
329
  }, onOptionListAllDeselected: () => {
330
330
  this.returnFocus = true;
331
331
  this.wmSelectAllDeselected.emit();
332
- } }, h("slot", { key: '7f7e2c3a4c3e174a108f028fb4fa0236f829b7b8' }))), h("div", { key: '4734b6b6f448c151a2f4373001285e0f2bbacff8', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'c8a8b6d9d4e67b71f86ee522386fbc9f5e47c3de', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
332
+ } }, h("slot", { key: '580139ee9425c0fe550c793aceddc85b2c4ff472' }))), h("div", { key: '5a99e8a6087b883dba4f97b9ee2a77ed65ea900f', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '01137653e4eeb06386250a901c5663cafd679d08', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
333
333
  }
334
334
  static get is() { return "wm-select"; }
335
335
  static get encapsulation() { return "shadow"; }
@@ -190,7 +190,7 @@ export class ActionMenu {
190
190
  return null;
191
191
  }
192
192
  render() {
193
- return (h(Host, { key: '6a2551f3260b0ab3a606174243d89bfc7daa68e5', onBlur: () => this.close(false) }, h("div", { key: '1dc817e8a83608d514b45aa00c4c00031ba3019d', class: getTextDir() }, h("wm-button", { key: '4d9bb231cef8871774fbe03c71a0c3e203c0dd99', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "#more-options" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { key: 'c9c33887915c59b82c2b87fd65e39059a6f84bd5', class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot", { key: '0c5a25373176ffa495a75a0e91ab6e71e45d3bbf' })))));
193
+ return (h(Host, { key: '6c215ca92b7775278392baade1cbd7238fec554c', onBlur: () => this.close(false) }, h("div", { key: 'd38c5a3fc3cd5faaaeff2e7f5e1e23a7ea7ec1ab', class: getTextDir() }, h("wm-button", { key: '4570f3978bd74038a1832c3bd1583c630eb195f7', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "#more-options" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { key: '5058056510151dad8e95bd6b1ea6dd322d632331', class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot", { key: 'd1a23671f13261238fd3f2c1e33a8f6c277bd31a' })))));
194
194
  }
195
195
  static get is() { return "wm-action-menu"; }
196
196
  static get encapsulation() { return "shadow"; }
@@ -249,7 +249,7 @@ export class Button {
249
249
  }
250
250
  }
251
251
  render() {
252
- return (h(Host, { key: 'd122993141c67e59f1b99fcc574772c7c35be7a7', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '6c6cb49fa724cb4e317a3a7c7fdc32e9d1ca43f6', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, (this.icon || this.buttonType.endsWith("-ai")) && this.renderIcon(), (!this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly")) && (h("span", { key: '164207b617f46f932f462f15fb22529885a64e86', class: "button-text" }, h("slot", { key: '9e2831478378a258a8fd83405d0a1509e0e56697' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'f0a5ebc4c97bd184a7e14171aaa0f103fd8c0c35', class: "selector-icon svg-icon svg-expand-more" })))));
252
+ return (h(Host, { key: 'e2cb063d8e0c666bfc211bd53e88db0272ac7921', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '7811155d0e2623f94dcfdebf4170895533afcd9d', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, (this.icon || this.buttonType.endsWith("-ai")) && this.renderIcon(), (!this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly")) && (h("span", { key: '1d4a5c64e24dea05a019b8bc4a8e7127ed32e14d', class: "button-text" }, h("slot", { key: 'bae008635b392c8082b2a63e6670d6a7d6b00205' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'fc2760aa3e58026bc1426bd0b3673701e67fee56', class: "selector-icon svg-icon svg-expand-more" })))));
253
253
  }
254
254
  static get is() { return "wm-button"; }
255
255
  static get encapsulation() { return "shadow"; }
@@ -187,7 +187,7 @@ export class File {
187
187
  return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""} ${this.isExtraCondensed ? "extra-condensed" : ""}` }, this.renderFileName(), showRightGroup && (h("div", { class: "right-group" }, !this.isExtraCondensed && this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("div", { class: "right-group" }, h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.progress == 100 && h("span", { class: "svg-icon svg-success" })), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
188
188
  }
189
189
  render() {
190
- return h(Host, { key: '64184891986497ee7159216e7f9ffef22b046c1c', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
190
+ return h(Host, { key: 'd1ec4a91453b2274dd4c60800ebbf12c1533b5c0', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
191
191
  }
192
192
  static get is() { return "wm-file"; }
193
193
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ export class FileList {
4
4
  this.showInfo = "last-updated";
5
5
  }
6
6
  render() {
7
- return (h("div", { key: 'bc22d0fa97458ed4323d6bba8d13966a68e9f5c4', role: "list", class: "list-wrapper" }, h("slot", { key: '105cb8fc11a0d9349ac2e38951cf0a2245b69bd8' })));
7
+ return (h("div", { key: '50bc377faf106c14b0c4fa9c1e6680b98d066f1b', role: "list", class: "list-wrapper" }, h("slot", { key: '5fad985b96a6cfc72c2baf85c7c5092db510d7fb' })));
8
8
  }
9
9
  static get is() { return "wm-file-list"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -154,7 +154,7 @@ export class Flyout {
154
154
  }
155
155
  }
156
156
  render() {
157
- return (h(Host, { key: 'a273ad4b8e9eedbf6db4218c6dacd2d25a6d6a2d' }, h("dialog", { key: '16e59e07237efd043ab13d1e148fac46d39789c6', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'dabbb79ec5b860cd040015cd556747364a5162b5', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '05a02dab99f64588b942725160b270512bc75ed4', class: "flyout-content" }, h("slot", { key: '36350a517cc02c4ab4f94bf8ce30c5be389a0981' })), this.renderFooter(), h("div", { key: 'bba7a50936fce8601b1cbcba39db31ec0b0dcfa1', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
157
+ return (h(Host, { key: '8426f99872f01fe209bb11ce424af76e7c0b1727' }, h("dialog", { key: '8ba7566093a1357598c1c28510c7bf6b800c55e7', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'e7b0f1b8b9866e5db316d7cb07e5fc5667c789a3', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '2346c27d6967d3acfdf9d6ef3f790f713509aca5', class: "flyout-content" }, h("slot", { key: '4906e2566894e8fa81039c267f9aa4a2b68e353c' })), this.renderFooter(), h("div", { key: 'c60c5a887c7be651082e45764d9ff49031a00910', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
158
158
  }
159
159
  static get is() { return "wm-flyout"; }
160
160
  static get encapsulation() { return "shadow"; }
@@ -107,7 +107,7 @@ export class Input {
107
107
  : `info error`;
108
108
  }
109
109
  render() {
110
- return (h("div", { key: 'abe39d76f1df8098aad09d37dae556ffafed9de3', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'f6ebdff5ee4efb2f6ce435848379e8f63bcb3f71', class: "label-wrapper" }, h("label", { key: '2c4f2b47f0b0a9c74b5aad022d7cd902324aeeb9', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '502b0bcc0f333fbfbc3c3d33d57491a1a8fe12c4', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: 'aa9cee1f7f3c5dfc63dd9deeb934c81b879c3e03', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '53f479d7516f774efa07b782de29fa77d7d5624c', class: "inner-wrapper" }, h("div", { key: 'b03a37a1f631b49e12846156e7959783379c75ae', class: "text-after-wrapper" }, h("div", { key: '73fae0162460f8fa28ffeffb91b75bb7fa84bc4c', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '86272f79015b42f77b7ba506f179922b1855ef44', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '4d3e1e63ec9236862e7c4969713adcf7ee260ce8', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: '6b11f19bdde5657a9f15ce82c541be250bc1e243', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: 'c52bb5fa02b5383df5b8eecce28eada592069ad4', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '107479fef114a8294c2243e4f52844fa1098745e', id: "info", class: "info" }, this.info)), h("div", { key: '56d84ddae6595bce7882d98586edfdb977c1a4e0', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'ddfccd79d99b3144acb6733dc89898b07a5a3ca1', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
110
+ return (h("div", { key: '5e281cdb07413696a1405266627db2bc22ce1674', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '2aa8b6434a1e649cc88cd9bddb771a7f18af9a5c', class: "label-wrapper" }, h("label", { key: 'd6246e9715693cce6e4ae537792042e8ffd97050', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '0fa5b82940b14472d05a1e8f6f628137d87a36f9', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: '05c896add7e40b09ed3bee2cb19840ba9b71ecd4', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'ffff813c749cd3432b773e41c07cf4f4fe32d6c6', class: "inner-wrapper" }, h("div", { key: '10e3e09153b703b51fd170cc0b77ca4beedcf63d', class: "text-after-wrapper" }, h("div", { key: 'dbaeab7a9da2a81eb3bd188819e0a1c5396190d8', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '45cd4bde06af5d09ef124ff27c7b40dffc642524', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '0c6b0a7ea54a1f85abb6d82a91cb7afaba5753c6', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: 'b05bdbea66f4b71913130eff59770d22b573db36', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: '41c2fb3f492ac63a423caf3ddbe48f1ecf06121a', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'f211e673ba9d3b7de1152d92ec2d496932f96772', id: "info", class: "info" }, this.info)), h("div", { key: '699d7f3c818082b4d2d8558b80bbf134587c827e', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '69cf3df248eb4884eaead9e13f1c7414c08f5cd1', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
111
111
  }
112
112
  static get is() { return "wm-input"; }
113
113
  static get encapsulation() { return "shadow"; }
@@ -98,7 +98,7 @@ export class Menuitem {
98
98
  }
99
99
  }
100
100
  render() {
101
- return (h(Host, { key: 'e6315d1845768369730087b4e9e0cb52224af68a', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'a1e8dc4267cf04c0ec5678744e2928acb39102c0', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
101
+ return (h(Host, { key: '3918e12cfecc1ef4123851608175c4dfe9c41022', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'ce62650fb0afee46e8acf66324d65a303931efde', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
102
102
  }
103
103
  static get is() { return "wm-menuitem"; }
104
104
  static get encapsulation() { return "shadow"; }
@@ -31,7 +31,7 @@ export class ModalFooter {
31
31
  }
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '019e3ea4b92089f44320cc3f9d256f7cea96cfbc', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'e5c34592f8a374bc016fc6cb6125a864f99d17bd', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '6349bd48d3aab79be1f33438f904d758a48066fd', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '4154880503f788a9ea023fe4f0ce05b5f67b0f41', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: 'a48b61feaf42d6da0b237a68af68d5ac8ae49642', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
34
+ return (h("div", { key: '86b0ac602ef44f1f903993c287ccbf35736f0d6d', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '3eba5847dbf91ed35aa9489c39658794f7cb9870', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'f81a1bc7519936e40f400c243bfd6f6b4e19e8f3', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '19cf3c9d718ac7d82e9c073ebe3890163fef6dbd', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '7f10d760d7fbeea0325a1d6c194e153cfda26ff7', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
35
35
  }
36
36
  static get is() { return "wm-modal-footer"; }
37
37
  static get originalStyleUrls() {
@@ -22,7 +22,7 @@ export class ModalHeader {
22
22
  parentModal.emitCloseEvent();
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: 'ebb2d8038aa0ac395c53d4f0d91499919aa932f6' }, h("div", { key: '1f5486f23c9a9a32e5e33e47b6edc31c37c37821', class: "wm-wrapper" }, h("div", { key: 'a1192d79c1d5d7fed157386cc6acb92522e14cf7' }, h("h2", { key: 'bf4b908dad455408550d5a2695d3c4fcfcd75c3b', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '32347ba7f539174fee47edfce977f7c8426a3298', class: "subtitle" }, this.subheading))), h("wm-button", { key: '04324e5098e8580bcc3e44a107a348ff6fe5c9df', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
25
+ return (h(Host, { key: '282b0960d221b5f6872f6259fefa4fde964229eb' }, h("div", { key: '7878bb4bf1fed4f0f980820d0d16b7171c64a0bf', class: "wm-wrapper" }, h("div", { key: 'cdb85926e03539e69d2d5df1d285b6b97a148ce4' }, h("h2", { key: '6c86104ac8b3fe0c177ad20f3ec258cf8ca48d45', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '2a7be253b0d28c95b530af26464f2d303a396dde', class: "subtitle" }, this.subheading))), h("wm-button", { key: '33c15118c3aa70c11889c5d2fc1d75e16e528b19', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
26
26
  }
27
27
  static get is() { return "wm-modal-header"; }
28
28
  static get originalStyleUrls() {
@@ -115,11 +115,11 @@ export class Modal {
115
115
  }
116
116
  }
117
117
  render() {
118
- return (h("dialog", { key: '5c4ddc0193a1cc7bba49a6a7150b9ad636332236', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '29169f8a1f7276ee1211fd92a1a5eab37b43caea', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
118
+ return (h("dialog", { key: 'e23ee429416c463f88c1b1afc4406ab2c401271c', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'f77480357d2d9dda2c9e03dfb073bc03e66e87af', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
119
119
  const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
120
120
  // no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
121
121
  focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
122
- } }), !this.hasBrowserPopoverSupport && h("div", { key: '7f828fd069855d9c7c62b510fc84a0dc1815dc4e', class: "wm-tooltip" }), h("slot", { key: '30af9b2f280d018a32074296dc3740c904873c3c' }), h("div", { key: 'dac6ebcd555cb4e0c0369854e030b78a014d7c9b', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
122
+ } }), !this.hasBrowserPopoverSupport && h("div", { key: 'eee145a7fb566a5459c34bea39e153066e8896a9', class: "wm-tooltip" }), h("slot", { key: '0367b39c9ae9713e163b30be907fe61ca8699474' }), h("div", { key: 'bbf27e8b209d9e57c5e0ff31556b0e11e99d6deb', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
123
123
  this.focusFirstElement.emit();
124
124
  } })));
125
125
  }
@@ -27,7 +27,7 @@ export class ModalPssFooter {
27
27
  parentModal.emitSecondaryEvent();
28
28
  }
29
29
  render() {
30
- return (h("div", { key: '1f7745220c7ad6d0aca3efd4b3cb8c334e680127', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '88168cdc61009781665a8a9edf365fa67907a770', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '2f2314c0cb6160b86e3ce361fd3a8536e06ad154', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '8cd98e5c43a01e42c38c54f8f9421cd20db4f34a', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '3b30db05b3a1101b6865b5986452c284f16733ef', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
30
+ return (h("div", { key: 'f3ed1135a2ccfa49c16dd66daece5bfb993c7534', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '4403427b56f79606065a754d646bf18bc912db9e', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '36862f60cdcacb441672d34120f6badc3bee9048', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '07cba5e6270813ccd39429e8924bdc57f686ef5d', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '05b061ea376bd9b309158b5e59f1058c351efb22', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
31
31
  }
32
32
  static get is() { return "wm-modal-pss-footer"; }
33
33
  static get originalStyleUrls() {
@@ -25,7 +25,7 @@ export class ModalPssHeader {
25
25
  // this.headingElement.focus();
26
26
  // }
27
27
  render() {
28
- return (h(Host, { key: '6298c005e1a4cc648e1311138858845bb121729d' }, h("div", { key: 'af42c86d168c9c5e2e77c39816f74f8801b39e53', class: "wm-wrapper" }, h("div", { key: '23e83cea157490d8db35b6f5b94e4aec59adccef' }, h("h2", { key: 'a2c95748bc7296ba241a1e0c6a6db7316d8c20de', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '0aefd7af87247f19ee926ef097f4ea8f76d49faf', class: "subtitle" }, this.subheading))), h("wm-button", { key: '1a74cb3f9beb7f01a60ae686ac01659a1d8ca23c', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
28
+ return (h(Host, { key: '92583f333f5795b01afa63e9cf083f04a4f563bf' }, h("div", { key: '70e0f04cc75aaed989f813d9a14c741aaee77701', class: "wm-wrapper" }, h("div", { key: '6f1831c376e983766e60257aec2ced5e99b3996d' }, h("h2", { key: 'a1c39702cd6a48914180013835572e4fbead6ed8', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '30ad4c11aad67657ac9d8ac97c91cc1a419bbf79', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'b2bc0b091b769973801080ae1ee63a7b13ffcee9', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
29
29
  }
30
30
  static get is() { return "wm-modal-pss-header"; }
31
31
  static get originalStyleUrls() {
@@ -112,9 +112,9 @@ export class ModalPss {
112
112
  }
113
113
  }
114
114
  render() {
115
- return (h(Host, { key: 'bcd5fb7bf017cb1a5263e51a105fab47cb268bdf', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
115
+ return (h(Host, { key: '457180aeea6baa1364de498c3d0b566655ae6afd', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
116
116
  this.focusLastElement.emit();
117
- } }, h("div", { key: '2398829034757b569a1f4f754ba46697f72b70e0', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: '06975360afd821c91ab816a2585f89f3c9b36565', class: "sr-only", tabIndex: 0, onFocus: () => {
117
+ } }, h("div", { key: '1350861124c4d9f5555a5e05f426f44351b5b8a8', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'b75c04dfef1f95da6a81e01981e3b617522b8dc6', class: "sr-only", tabIndex: 0, onFocus: () => {
118
118
  this.focusFirstElement.emit();
119
119
  } })));
120
120
  }
@@ -34,7 +34,7 @@ export class NavigationHamburger {
34
34
  this.wmNavigationHamburgerClicked.emit();
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '2b4f6528c7ef852581d56121e8269a12129c8c1a', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'aa6041f59f4333b6ee68da53bfc7206d2733f059', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '6b58e7ef3f124ba2fc33437e183a9e60844a8cdc', class: "svg-icon svg-menu" }))));
37
+ return (h(Host, { key: 'a43f96c6c9277bcbc28db3f54c1e6dac5a12c711', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'e8d172739a625abdd185201609f43660a43d92b4', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '1e6cf4f1d121a4e5b04dcece6a00ac5cffbaecbb', class: "svg-icon svg-menu" }))));
38
38
  }
39
39
  static get is() { return "wm-navigation-hamburger"; }
40
40
  static get encapsulation() { return "shadow"; }