@watermarkinsights/ripple 5.28.1 → 5.29.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/cjs/{app-globals-0b8313f1.js → app-globals-4965a440.js} +1 -1
  2. package/dist/cjs/{chartFunctions-51660576.js → chartFunctions-608adb05.js} +1 -1
  3. package/dist/cjs/{functions-2041a1d8.js → functions-b188d5b3.js} +0 -32
  4. package/dist/cjs/{intl-02a445a1.js → intl-01531391.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/priv-calendar.cjs.entry.js +4 -4
  7. package/dist/cjs/priv-chart-popover-old.cjs.entry.js +1 -1
  8. package/dist/cjs/priv-chart-popover_2.cjs.entry.js +1 -1
  9. package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
  10. package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
  11. package/dist/cjs/priv-option-list.cjs.entry.js +3 -3
  12. package/dist/cjs/ripple.cjs.js +2 -2
  13. package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -5
  14. package/dist/cjs/wm-button.cjs.entry.js +2 -2
  15. package/dist/cjs/wm-chart-bar.cjs.entry.js +3 -3
  16. package/dist/cjs/wm-chart-column.cjs.entry.js +3 -3
  17. package/dist/cjs/wm-chart.cjs.entry.js +3 -3
  18. package/dist/cjs/wm-date-range.cjs.entry.js +153 -115
  19. package/dist/cjs/wm-datepicker.cjs.entry.js +128 -91
  20. package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
  21. package/dist/cjs/wm-file.cjs.entry.js +2 -2
  22. package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
  23. package/dist/cjs/wm-input.cjs.entry.js +3 -3
  24. package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
  25. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +6 -6
  26. package/dist/cjs/wm-modal_3.cjs.entry.js +6 -6
  27. package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
  28. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/wm-nested-select.cjs.entry.js +5 -5
  30. package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
  31. package/dist/cjs/wm-option_2.cjs.entry.js +7 -7
  32. package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
  33. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
  34. package/dist/cjs/wm-search.cjs.entry.js +5 -5
  35. package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
  36. package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
  37. package/dist/cjs/wm-tag-input.cjs.entry.js +4 -4
  38. package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
  39. package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
  40. package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
  41. package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
  42. package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
  43. package/dist/collection/components/datepickers/datepicker.css +4 -0
  44. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +38 -21
  45. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
  46. package/dist/collection/components/datepickers/wm-date-range.js +157 -140
  47. package/dist/collection/components/datepickers/wm-datepicker.js +132 -115
  48. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
  49. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
  50. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
  51. package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
  52. package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
  53. package/dist/collection/components/wm-action-menu/wm-action-menu.js +3 -3
  54. package/dist/collection/components/wm-button/wm-button.js +1 -1
  55. package/dist/collection/components/wm-file/wm-file.js +1 -1
  56. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  57. package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
  58. package/dist/collection/components/wm-input/wm-input.js +1 -1
  59. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  60. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  61. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  62. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  63. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
  64. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
  65. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
  66. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  67. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  68. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  69. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  70. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
  71. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  72. package/dist/collection/components/wm-search/wm-search.css +2 -0
  73. package/dist/collection/components/wm-search/wm-search.js +2 -2
  74. package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
  75. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
  76. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
  77. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  78. package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -2
  79. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  80. package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
  81. package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
  82. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  83. package/dist/collection/global/functions.js +0 -30
  84. package/dist/esm/{app-globals-b5a717cb.js → app-globals-eba3c8fb.js} +1 -1
  85. package/dist/esm/{chartFunctions-ba9dc8bc.js → chartFunctions-4bc77b76.js} +1 -1
  86. package/dist/esm/{functions-2c952c7e.js → functions-de887809.js} +1 -31
  87. package/dist/esm/{intl-28a56253.js → intl-56b47a7b.js} +1 -1
  88. package/dist/esm/loader.js +2 -2
  89. package/dist/esm/priv-calendar.entry.js +4 -4
  90. package/dist/esm/priv-chart-popover-old.entry.js +1 -1
  91. package/dist/esm/priv-chart-popover_2.entry.js +1 -1
  92. package/dist/esm/priv-navigator-button.entry.js +1 -1
  93. package/dist/esm/priv-navigator-item.entry.js +1 -1
  94. package/dist/esm/priv-option-list.entry.js +3 -3
  95. package/dist/esm/ripple.js +2 -2
  96. package/dist/esm/wm-action-menu_2.entry.js +5 -5
  97. package/dist/esm/wm-button.entry.js +2 -2
  98. package/dist/esm/wm-chart-bar.entry.js +3 -3
  99. package/dist/esm/wm-chart-column.entry.js +3 -3
  100. package/dist/esm/wm-chart.entry.js +3 -3
  101. package/dist/esm/wm-date-range.entry.js +153 -115
  102. package/dist/esm/wm-datepicker.entry.js +128 -91
  103. package/dist/esm/wm-file-list.entry.js +1 -1
  104. package/dist/esm/wm-file.entry.js +2 -2
  105. package/dist/esm/wm-flyout.entry.js +3 -3
  106. package/dist/esm/wm-input.entry.js +3 -3
  107. package/dist/esm/wm-line-chart.entry.js +3 -3
  108. package/dist/esm/wm-modal-pss_3.entry.js +6 -6
  109. package/dist/esm/wm-modal_3.entry.js +6 -6
  110. package/dist/esm/wm-navigation_3.entry.js +6 -6
  111. package/dist/esm/wm-navigator.entry.js +1 -1
  112. package/dist/esm/wm-nested-select.entry.js +5 -5
  113. package/dist/esm/wm-optgroup.entry.js +2 -2
  114. package/dist/esm/wm-option_2.entry.js +7 -7
  115. package/dist/esm/wm-pagination.entry.js +3 -3
  116. package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
  117. package/dist/esm/wm-search.entry.js +5 -5
  118. package/dist/esm/wm-snackbar.entry.js +4 -4
  119. package/dist/esm/wm-tab-item_3.entry.js +7 -7
  120. package/dist/esm/wm-tag-input.entry.js +4 -4
  121. package/dist/esm/wm-tag-option.entry.js +1 -1
  122. package/dist/esm/wm-textarea.entry.js +3 -3
  123. package/dist/esm/wm-timepicker.entry.js +3 -3
  124. package/dist/esm/wm-toggletip.entry.js +4 -4
  125. package/dist/esm/wm-uploader.entry.js +4 -4
  126. package/dist/esm-es5/app-globals-eba3c8fb.js +1 -0
  127. package/dist/esm-es5/{chartFunctions-ba9dc8bc.js → chartFunctions-4bc77b76.js} +1 -1
  128. package/dist/esm-es5/{functions-2c952c7e.js → functions-de887809.js} +1 -1
  129. package/dist/esm-es5/{intl-28a56253.js → intl-56b47a7b.js} +1 -1
  130. package/dist/esm-es5/loader.js +1 -1
  131. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  132. package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -1
  133. package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
  134. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  135. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  136. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  137. package/dist/esm-es5/ripple.js +1 -1
  138. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  139. package/dist/esm-es5/wm-button.entry.js +1 -1
  140. package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
  141. package/dist/esm-es5/wm-chart-column.entry.js +1 -1
  142. package/dist/esm-es5/wm-chart.entry.js +1 -1
  143. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  144. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  145. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  146. package/dist/esm-es5/wm-file.entry.js +1 -1
  147. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  148. package/dist/esm-es5/wm-input.entry.js +1 -1
  149. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  150. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  151. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  152. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  153. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  154. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  155. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  156. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  157. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  158. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  159. package/dist/esm-es5/wm-search.entry.js +1 -1
  160. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  161. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  162. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  163. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  164. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  165. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  166. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  167. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  168. package/dist/ripple/{p-4b1f77ac.entry.js → p-03a6850a.entry.js} +1 -1
  169. package/dist/ripple/{p-1827c07b.system.entry.js → p-0c3162d5.system.entry.js} +1 -1
  170. package/dist/ripple/{p-39c777f2.system.entry.js → p-0ec71f08.system.entry.js} +1 -1
  171. package/dist/ripple/{p-b47869f8.system.entry.js → p-1032c0db.system.entry.js} +1 -1
  172. package/dist/ripple/{p-aee33406.system.entry.js → p-13152ac1.system.entry.js} +1 -1
  173. package/dist/ripple/p-1318ae67.entry.js +1 -0
  174. package/dist/ripple/{p-6ec064ab.system.entry.js → p-137bf0c0.system.entry.js} +1 -1
  175. package/dist/ripple/{p-9a121a9f.entry.js → p-13bb6faf.entry.js} +1 -1
  176. package/dist/ripple/{p-a0f67c24.entry.js → p-16ff8110.entry.js} +1 -1
  177. package/dist/ripple/{p-1cf4994d.system.entry.js → p-1825d519.system.entry.js} +1 -1
  178. package/dist/ripple/{p-587c8c0b.entry.js → p-18417851.entry.js} +1 -1
  179. package/dist/ripple/p-1c655f6b.entry.js +1 -0
  180. package/dist/ripple/{p-3b335c30.system.entry.js → p-1ce77857.system.entry.js} +1 -1
  181. package/dist/ripple/{p-d8500a20.entry.js → p-1d76061a.entry.js} +1 -1
  182. package/dist/ripple/{p-6689ae84.system.entry.js → p-22b57f73.system.entry.js} +1 -1
  183. package/dist/ripple/{p-d4136c40.system.entry.js → p-24dfbf1d.system.entry.js} +1 -1
  184. package/dist/ripple/{p-2524203b.system.entry.js → p-28996d67.system.entry.js} +1 -1
  185. package/dist/ripple/{p-2e87a994.system.entry.js → p-30118d12.system.entry.js} +1 -1
  186. package/dist/ripple/{p-357b24b6.entry.js → p-32f3581a.entry.js} +1 -1
  187. package/dist/ripple/p-334d8711.system.js +1 -0
  188. package/dist/ripple/{p-640d450d.js → p-3c8c5933.js} +1 -1
  189. package/dist/ripple/{p-76646853.system.entry.js → p-436bf381.system.entry.js} +1 -1
  190. package/dist/ripple/{p-3fde7b17.system.entry.js → p-43843597.system.entry.js} +1 -1
  191. package/dist/ripple/{p-81eafe68.entry.js → p-48b596ae.entry.js} +1 -1
  192. package/dist/ripple/{p-c3710308.system.js → p-4bab5360.system.js} +1 -1
  193. package/dist/ripple/{p-bbaa0295.entry.js → p-4ff0db4d.entry.js} +1 -1
  194. package/dist/ripple/{p-c071456c.system.entry.js → p-57f1bafd.system.entry.js} +1 -1
  195. package/dist/ripple/{p-01055d26.entry.js → p-5b0e9165.entry.js} +1 -1
  196. package/dist/ripple/p-600b72ad.system.js +1 -0
  197. package/dist/ripple/{p-1a78f028.system.entry.js → p-6266fcbf.system.entry.js} +1 -1
  198. package/dist/ripple/{p-13730e2a.system.entry.js → p-646e22d3.system.entry.js} +1 -1
  199. package/dist/ripple/{p-7c5c3ec3.system.entry.js → p-6d2af8d9.system.entry.js} +1 -1
  200. package/dist/ripple/{p-ff2bf89a.system.entry.js → p-6d46f775.system.entry.js} +1 -1
  201. package/dist/ripple/{p-ca839c73.entry.js → p-6de0efee.entry.js} +1 -1
  202. package/dist/ripple/{p-2054d617.entry.js → p-7833db63.entry.js} +1 -1
  203. package/dist/ripple/p-7b7c32af.entry.js +1 -0
  204. package/dist/ripple/{p-ba6c13c7.entry.js → p-817aa29c.entry.js} +1 -1
  205. package/dist/ripple/{p-63c804c2.entry.js → p-82c9bd47.entry.js} +1 -1
  206. package/dist/ripple/{p-5bf97600.entry.js → p-8480138d.entry.js} +1 -1
  207. package/dist/ripple/{p-23750a8d.entry.js → p-85ef702d.entry.js} +1 -1
  208. package/dist/ripple/{p-e559b093.system.entry.js → p-86bcd942.system.entry.js} +1 -1
  209. package/dist/ripple/{p-f52ff657.entry.js → p-8799bce9.entry.js} +1 -1
  210. package/dist/ripple/{p-037e3c7a.entry.js → p-8dcc8c0c.entry.js} +1 -1
  211. package/dist/ripple/{p-8647ef67.entry.js → p-8fa572a8.entry.js} +1 -1
  212. package/dist/ripple/{p-18761ad7.js → p-904545cc.js} +1 -1
  213. package/dist/ripple/{p-57b566af.system.entry.js → p-90cb5d27.system.entry.js} +1 -1
  214. package/dist/ripple/p-9202ef69.system.entry.js +1 -0
  215. package/dist/ripple/{p-26b5b04e.system.entry.js → p-9f971522.system.entry.js} +1 -1
  216. package/dist/ripple/p-a235bc17.js +1 -0
  217. package/dist/ripple/{p-7851b16f.system.entry.js → p-a5dc49c1.system.entry.js} +1 -1
  218. package/dist/ripple/{p-fc9b09ba.system.entry.js → p-a73fb160.system.entry.js} +1 -1
  219. package/dist/ripple/{p-dcff6224.system.entry.js → p-a9580e7a.system.entry.js} +1 -1
  220. package/dist/ripple/p-b04a6351.entry.js +1 -0
  221. package/dist/ripple/{p-2fdaacf5.entry.js → p-b09998e1.entry.js} +1 -1
  222. package/dist/ripple/{p-c90dea3b.system.entry.js → p-b3a86ec4.system.entry.js} +1 -1
  223. package/dist/ripple/p-b501f06c.entry.js +1 -0
  224. package/dist/ripple/{p-1d528e60.entry.js → p-b957033b.entry.js} +1 -1
  225. package/dist/ripple/{p-f2f896b2.system.entry.js → p-ca3abcc0.system.entry.js} +1 -1
  226. package/dist/ripple/{p-a8b2b639.system.entry.js → p-cc455a6c.system.entry.js} +1 -1
  227. package/dist/ripple/{p-952f0628.entry.js → p-cdf9c0e9.entry.js} +1 -1
  228. package/dist/ripple/{p-81674b46.js → p-d4ae193e.js} +1 -1
  229. package/dist/ripple/{p-3a481357.system.js → p-d4d769a7.system.js} +1 -1
  230. package/dist/ripple/{p-eff5e623.system.entry.js → p-d6a9000f.system.entry.js} +1 -1
  231. package/dist/ripple/{p-6cdb2b26.entry.js → p-d6cd9f79.entry.js} +1 -1
  232. package/dist/ripple/{p-bfd74710.entry.js → p-d9e4335e.entry.js} +1 -1
  233. package/dist/ripple/{p-ef4e30c2.entry.js → p-dadf3ed3.entry.js} +1 -1
  234. package/dist/ripple/p-dc3684b5.entry.js +1 -0
  235. package/dist/ripple/{p-ae3aa9a6.entry.js → p-dca94e24.entry.js} +1 -1
  236. package/dist/ripple/{p-30ffd48a.system.entry.js → p-dcd6acc5.system.entry.js} +1 -1
  237. package/dist/ripple/{p-a0841eee.entry.js → p-dd81e308.entry.js} +1 -1
  238. package/dist/ripple/{p-e1ff0d63.system.entry.js → p-e11d9b06.system.entry.js} +1 -1
  239. package/dist/ripple/{p-7dc387b5.system.entry.js → p-e36e71dc.system.entry.js} +1 -1
  240. package/dist/ripple/{p-8634b2e1.entry.js → p-e6a81600.entry.js} +1 -1
  241. package/dist/ripple/{p-3b93eed7.system.entry.js → p-ef7d84da.system.entry.js} +1 -1
  242. package/dist/ripple/{p-118888bb.entry.js → p-f1de3153.entry.js} +1 -1
  243. package/dist/ripple/p-f3e84476.system.entry.js +1 -0
  244. package/dist/ripple/{p-3cd9160c.system.entry.js → p-f4d27fea.system.entry.js} +1 -1
  245. package/dist/ripple/p-fb062f04.system.js +1 -0
  246. package/dist/ripple/{p-1c08e803.system.entry.js → p-fcf4bd61.system.entry.js} +1 -1
  247. package/dist/ripple/{p-5af87cce.entry.js → p-fd02c124.entry.js} +1 -1
  248. package/dist/ripple/{p-097c7a49.entry.js → p-ffa20853.entry.js} +1 -1
  249. package/dist/ripple/ripple.esm.js +1 -1
  250. package/dist/ripple/ripple.js +1 -1
  251. package/dist/types/components/datepickers/wm-date-range.d.ts +13 -13
  252. package/dist/types/components/datepickers/wm-datepicker.d.ts +13 -12
  253. package/dist/types/global/functions.d.ts +0 -1
  254. package/package.json +2 -2
  255. package/dist/esm-es5/app-globals-b5a717cb.js +0 -1
  256. package/dist/ripple/p-001b65cb.system.js +0 -1
  257. package/dist/ripple/p-06ccdc10.entry.js +0 -1
  258. package/dist/ripple/p-0d882420.system.js +0 -1
  259. package/dist/ripple/p-0f86a48a.entry.js +0 -1
  260. package/dist/ripple/p-282564c9.entry.js +0 -1
  261. package/dist/ripple/p-5e285786.entry.js +0 -1
  262. package/dist/ripple/p-61d8d940.system.entry.js +0 -1
  263. package/dist/ripple/p-637bcbd6.system.js +0 -1
  264. package/dist/ripple/p-6b725bc9.entry.js +0 -1
  265. package/dist/ripple/p-8cf004ef.entry.js +0 -1
  266. package/dist/ripple/p-99baa733.system.entry.js +0 -1
  267. package/dist/ripple/p-9bd3eb06.js +0 -1
@@ -1,25 +1,16 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { intl, toBool, handleDisabledAttribute, hasRoomRight, shouldOpenUp, dateToISO, showTooltip, hideTooltip, findAllScrollableParents, debounce, } from "../../global/functions";
2
+ import { intl, toBool, handleDisabledAttribute, dateToISO, showTooltip, hideTooltip, findAllScrollableParents, } from "../../global/functions";
3
3
  export class DatePicker {
4
4
  constructor() {
5
- this.openUp = false;
6
- this.popupClicked = false;
7
- this.toggleButtonClicked = false;
8
- this.debouncedResize = debounce(async () => {
9
- let scrollableParents = findAllScrollableParents(this.el);
10
- if (scrollableParents.length > 0) {
11
- let horizontalOffset = this.inputEl.getBoundingClientRect().x - scrollableParents[0].getBoundingClientRect().x;
12
- if (scrollableParents[0].clientWidth - horizontalOffset < this.popupEl.clientWidth) {
13
- // popupEl must not have display: none, so it can be measured
14
- this.buttonContainerEl.classList.add("sr-only");
15
- this.toggleEl.tabIndex = -1;
16
- }
17
- else {
18
- this.buttonContainerEl.classList.remove("sr-only");
19
- this.toggleEl.tabIndex = 0;
20
- }
21
- }
22
- }, 10);
5
+ this.hasAnchor = CSS.supports("top", "anchor(bottom)");
6
+ this.popupMinHeight = 337; // priv-calendar.scss line 98
7
+ this.popupWidth = 336;
8
+ this.checkCanOpen = () => {
9
+ if (!this.anchorEl)
10
+ return;
11
+ const fit = this.measureFit();
12
+ this.canOpen = fit.vertical !== "none" && fit.horizontal !== "none";
13
+ };
23
14
  this.value = "";
24
15
  this.disabled = false;
25
16
  this.dateFormat = "mm/dd/yyyy";
@@ -29,6 +20,34 @@ export class DatePicker {
29
20
  this.requiredField = false;
30
21
  this.preselected = undefined;
31
22
  this.isExpanded = false;
23
+ this.openUp = false;
24
+ this.openRight = false;
25
+ this.isHidden = false;
26
+ this.canOpen = true;
27
+ }
28
+ measureFit() {
29
+ const rect = this.anchorEl.getBoundingClientRect();
30
+ const vw = document.documentElement.clientWidth;
31
+ const vh = document.documentElement.clientHeight;
32
+ if (!vw || !vh) {
33
+ return { vertical: "below", horizontal: "left" };
34
+ }
35
+ const spaceBelow = vh - rect.bottom;
36
+ const spaceAbove = rect.top;
37
+ const fitsBelow = spaceBelow >= this.popupMinHeight;
38
+ const fitsAbove = spaceAbove >= this.popupMinHeight;
39
+ const canScroll = findAllScrollableParents(this.el).length > 0;
40
+ const fitsLeftAligned = rect.left + this.popupWidth <= vw;
41
+ const fitsRightAligned = rect.right - this.popupWidth >= 0;
42
+ const vertical = fitsBelow
43
+ ? "below"
44
+ : fitsAbove
45
+ ? "above"
46
+ : canScroll
47
+ ? "below-scroll"
48
+ : "none";
49
+ const horizontal = fitsLeftAligned ? "left" : fitsRightAligned ? "right" : "none";
50
+ return { vertical, horizontal };
32
51
  }
33
52
  get isDisabled() {
34
53
  // string "false" needs to be treated as bool False because react wrappers convert bool to string.
@@ -59,46 +78,84 @@ export class DatePicker {
59
78
  setTimeout(() => this.announce(this.errorMessage), 100);
60
79
  }
61
80
  }
62
- togglePopup() {
63
- this.isExpanded ? this.closePopup() : this.openPopup();
64
- this.toggleButtonClicked = true;
65
- }
66
- closePopup(returnFocus = false) {
67
- this.isExpanded = false;
68
- this.calEl.view = "day";
69
- this.calEl.view = "day";
70
- this.popupEl.classList.remove("open");
71
- window.setTimeout(() => {
72
- //not using display none in order to get measurements of the popup while hidden
73
- this.popupEl.style.visibility = "hidden";
74
- }, 250);
75
- //Reset values so that menu reopens to day view with selected date in focus
76
- if (returnFocus) {
77
- this.toggleEl.focus();
81
+ positionDropdown() {
82
+ // polyfill for browsers without anchor() support (older Firefox)
83
+ const rect = this.anchorEl.getBoundingClientRect();
84
+ const spaceAbove = rect.top;
85
+ const spaceBelow = document.documentElement.clientHeight - rect.bottom;
86
+ const viewportWidth = document.documentElement.clientWidth;
87
+ const popupHeight = this.popupEl.clientHeight;
88
+ const popupWidth = this.popupEl.clientWidth;
89
+ this.el.style.removeProperty("--popup-translate-y");
90
+ this.el.style.removeProperty("--popup-max-height");
91
+ this.el.style.removeProperty("--popup-left");
92
+ // HORIZONTAL: prefer left-aligned to toggle; fall back to right-aligned.
93
+ // canOpen guarantees at least one side fits, so no centered fallback.
94
+ if (popupWidth <= viewportWidth - rect.left) {
95
+ this.el.style.setProperty("--popup-left", rect.left + "px");
78
96
  }
97
+ else {
98
+ this.el.style.setProperty("--popup-left", rect.right - popupWidth + "px");
99
+ }
100
+ // VERTICAL
101
+ const gap = 2;
102
+ if (popupHeight + gap <= spaceBelow) {
103
+ this.el.style.setProperty("--popup-translate-y", rect.bottom + gap + "px");
104
+ }
105
+ else if (popupHeight + gap <= spaceAbove) {
106
+ this.el.style.setProperty("--popup-translate-y", rect.top - popupHeight - gap + "px");
107
+ }
108
+ else if (spaceBelow >= spaceAbove) {
109
+ this.el.style.setProperty("--popup-translate-y", rect.bottom + gap + "px");
110
+ this.el.style.setProperty("--popup-max-height", spaceBelow - gap + "px");
111
+ }
112
+ else {
113
+ this.el.style.setProperty("--popup-translate-y", "0px");
114
+ this.el.style.setProperty("--popup-max-height", spaceAbove - gap + "px");
115
+ }
116
+ this.isHidden = false;
79
117
  }
80
- openPopup() {
81
- this.openUp = shouldOpenUp(this.el, this.popupEl.clientHeight, this.labelWrapperEl.clientHeight);
82
- if (hasRoomRight(this.el, 336)) {
83
- this.popupEl.style.left = "0";
84
- this.popupEl.style.right = "auto";
118
+ handleToggle(ev) {
119
+ if (ev.newState === "open") {
120
+ if (!this.hasAnchor) {
121
+ this.positionDropdown();
122
+ }
123
+ requestAnimationFrame(() => {
124
+ if (this.hasAnchor) {
125
+ const fit = this.measureFit();
126
+ this.openUp = fit.vertical === "above";
127
+ this.openRight = fit.horizontal === "right";
128
+ if (fit.vertical === "below-scroll") {
129
+ // scroll needs to reveal the popup — pop it out of top-layer fixed
130
+ // positioning so the ancestor scroll container governs visibility.
131
+ this.popupEl.style.position = "absolute";
132
+ }
133
+ }
134
+ this.isExpanded = true;
135
+ this.calEl.focusDate = this.calendarDate;
136
+ this.calEl.startDate = this.calendarDate;
137
+ this.calEl.focusCell();
138
+ window.setTimeout(() => {
139
+ this.calEl.scrollIntoView({ behavior: "smooth", block: "nearest" });
140
+ }, 250);
141
+ });
85
142
  }
86
143
  else {
87
- this.popupEl.style.right = "0";
88
- this.popupEl.style.left = "auto";
144
+ this.popupEl.style.position = "";
145
+ this.isExpanded = false;
146
+ if (!this.hasAnchor) {
147
+ this.isHidden = true;
148
+ }
149
+ this.calEl.view = "day";
150
+ }
151
+ }
152
+ closePopup(returnFocus = false) {
153
+ this.popupEl.hidePopover();
154
+ if (returnFocus) {
155
+ window.setTimeout(() => {
156
+ this.toggleEl.focus();
157
+ }, 50);
89
158
  }
90
- this.popupEl.style.visibility = "visible";
91
- window.requestAnimationFrame(() => {
92
- this.popupEl.classList.add("open");
93
- });
94
- this.isExpanded = true;
95
- this.calEl.focusDate = this.calendarDate;
96
- this.calEl.startDate = this.calendarDate;
97
- this.calEl.focusCell();
98
- window.setTimeout(() => {
99
- // ensure focused element is visible if popup opens below the fold
100
- this.calEl.scrollIntoView({ behavior: "smooth", block: "nearest" });
101
- }, 250);
102
159
  }
103
160
  handleInput(ev) {
104
161
  // keep component's value in sync with input's value
@@ -122,26 +179,6 @@ export class DatePicker {
122
179
  showTooltip("right", ev.target, this.label);
123
180
  }
124
181
  }
125
- handleKey(ev) {
126
- if (ev.key === "Escape" && this.isExpanded) {
127
- ev.preventDefault();
128
- ev.stopPropagation(); // prevents closing of parent modal
129
- this.closePopup(true);
130
- }
131
- }
132
- blurHandler() {
133
- if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
134
- this.closePopup();
135
- }
136
- this.popupClicked = false;
137
- this.toggleButtonClicked = false;
138
- }
139
- // for cases where the user clicks or uses a shortcut to leave the document
140
- handleBlurOnWindow() {
141
- if (this.isExpanded) {
142
- this.closePopup();
143
- }
144
- }
145
182
  handleCellTriggered(ev) {
146
183
  let dateElement = ev.detail.cell;
147
184
  let isoDate = dateElement.getAttribute("data-year") +
@@ -222,45 +259,45 @@ export class DatePicker {
222
259
  if (this.label === "") {
223
260
  console.error("You must include a label prop for the datepicker input (for accessibility reasons), even if the label position is none.");
224
261
  }
262
+ if (!this.hasAnchor) {
263
+ this.isHidden = true;
264
+ }
225
265
  handleDisabledAttribute(this.el, this.isDisabled);
226
266
  }
227
267
  componentDidLoad() {
228
- this.calEl.addEventListener("click", () => {
229
- this.popupClicked = true;
230
- });
231
- const resizeObserver = new ResizeObserver(() => {
232
- this.debouncedResize();
233
- });
234
- resizeObserver.observe(this.el);
268
+ this.checkCanOpen();
269
+ window.addEventListener("resize", this.checkCanOpen);
235
270
  }
236
- handleWindowResize() {
237
- this.debouncedResize();
271
+ disconnectedCallback() {
272
+ window.removeEventListener("resize", this.checkCanOpen);
238
273
  }
239
274
  announce(message) {
240
- // \u00A0 is a non-breaking space character, which causes the message to be read as a new one
275
+ //   is a non-breaking space character, which causes the message to be read as a new one
241
276
  if (this.liveRegionEl.textContent === message) {
242
- message += "\u00A0";
277
+ message += " ";
243
278
  }
244
279
  this.liveRegionEl.textContent = message;
245
280
  }
246
281
  render() {
247
- return (h(Host, { key: '454c222862bda0c2dd3e1bc7a519dfc40b47ee65', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '837eff058e5797e6f8f5c9793926ccbd49bbac75', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '3acce2e8476634d08037c8df9a635830c217e9e3', class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { key: 'c19ec0805ade5dfa0192fa686f8f915840ffb211', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})`, onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '3a8228a16359b4dab823225d6933d04b1278ba84', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '1e9cfe640de52ad3cf3bbbdb171f592fe650dffa' }, h("div", { key: 'a7df529f7a3f3f344fb0ed1d3aa0294397082fd7', class: "single-wrapper input" }, h("input", { key: '3b7b9d8e9dda6d565d1c74f198be0ebe7e108908', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '4a967899ae3c2854907e0ed7106b870d67e8b00e', ref: (el) => (this.buttonContainerEl = el), class: "container", id: "wm-container" }, h("button", { key: 'd43efefc1685a690bf6f0b8b6f89977bd02a7d05', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": intl.formatMessage({
282
+ return (h(Host, { key: '5aa1a1ebee45fddbe0115120005653eb4e8f0949', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'a8099a183130f0f7db1d81cf9fd788352b788d89', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '017a8fc0ebeec8c4627f2ec37089194b2f0376cc', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '1ce207b8c401fa9984f1296eca2dd5641593149c', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})`, onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '143b26071989903f116506d878805aa4651c6d05', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: 'e8ea10210bdee3ebe3ec892f46db57a0ef0a24af' }, h("div", { key: '430e16d121a51fbc0332192d9b167045ce8d2e7b', class: "single-wrapper input", ref: (el) => (this.anchorEl = el) }, h("input", { key: '1e9229e8e64cff7bbcbbd7d7b47198d63ed7d8a1', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: 'cea591466300a74fa1221477f31a82264b14e205', class: "container", id: "wm-container" }, this.canOpen && (h("button", { key: '77dc9a126a4a050993b00b755ef39a08ba8ea272', disabled: this.disabled, "aria-label": intl.formatMessage({
248
283
  id: "date.selectDate",
249
284
  defaultMessage: "Select date",
250
285
  description: "Button text for screen readers.",
251
- }), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '1815c02998d6bc10de8bec8c43aa2221e12b73be', class: "svg-icon svg-date" }), h("span", { key: 'fefcdbd1640376493d3f2120c680239fe0aa486b', class: "calendar", title: intl.formatMessage({
286
+ }), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: 'c343d4983996c82c060e7e1eedd967072ea48671', class: "svg-icon svg-date" }), h("span", { key: '14612ecb341cbd4a371e3193f4dadd7d21f4e71f', class: "calendar", title: intl.formatMessage({
252
287
  id: "date.calendarView",
253
288
  defaultMessage: "Calendar View",
254
289
  description: "Calendar button",
255
- }) })), h("div", { key: 'a4112b9138c5fa45a97b1cbeb215b0e6f26d7672', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { key: '1f3e951b7db6d91596dd145572adf164df4e92ab', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '820f8b268fe083bea37256254ecc6e0e315efd31', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: '13bd765d5433840e75c9338668404e3bb9fdc3ad', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: '1c0fa7a5f0c0250d0b208cb9d12d206d69f8228f', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'b5395503d54e3ec1e9b72894343048abaa37c78b', id: "month-title", class: "sr-only" }, intl.formatMessage({
290
+ }) }))), h("div", { key: '6d9aa84a9bd718ae8d6c0c25a70e5359fcbc28a1', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.openRight ? "open-right" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), popover: "auto",
291
+ // @ts-ignore -- onToggle is a valid ToggleEvent listener for popover elements
292
+ onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '6621819f8a58a6c87761d26bc3e81a627ad9394f', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '0d2cde70da11059ab064e152ad1821062deb3ab7', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: '88bc54e4d1ab32eacc76a6ca996ee71971b1c436', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: 'c85fa035265ae44f3274c41d0520bc29b834874e', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'ff9d8aa22eadbc2859b3b44dcbccb61a1750c6fa', id: "month-title", class: "sr-only" }, intl.formatMessage({
256
293
  id: "date.selectMonth",
257
294
  defaultMessage: "Activate to select a month.",
258
295
  description: "Calendar button",
259
- })), h("div", { key: '498b8e339f1f6b40fbb939a700ddd75be0edda99', id: "year-title", class: "sr-only" }, intl.formatMessage({
296
+ })), h("div", { key: 'd5c6487ee625dcb969c560bb2206b5ee97b0be84', id: "year-title", class: "sr-only" }, intl.formatMessage({
260
297
  id: "date.selectYear",
261
298
  defaultMessage: "Activate to select a year.",
262
299
  description: "Calendar button",
263
- })))), h("div", { key: '30515d8a6c93ce47dbcfb04ecb801d6352d1668c', id: "error", class: "error" }, this.errorMessage), h("div", { key: '5e3f1f09dd5b70326d4ba8ff90d0657535be93f0', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
300
+ })))), h("div", { key: '3f836c8f120c2d0fbcb56c155a7b254e35bfc30f', id: "error", class: "error" }, this.errorMessage), h("div", { key: '254201ab85d9a7c1d4b3c2ee111a4ca44e1c2485', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
264
301
  }
265
302
  static get is() { return "wm-datepicker"; }
266
303
  static get encapsulation() { return "shadow"; }
@@ -423,7 +460,11 @@ export class DatePicker {
423
460
  }
424
461
  static get states() {
425
462
  return {
426
- "isExpanded": {}
463
+ "isExpanded": {},
464
+ "openUp": {},
465
+ "openRight": {},
466
+ "isHidden": {},
467
+ "canOpen": {}
427
468
  };
428
469
  }
429
470
  static get events() {
@@ -528,35 +569,11 @@ export class DatePicker {
528
569
  }
529
570
  static get listeners() {
530
571
  return [{
531
- "name": "keydown",
532
- "method": "handleKey",
533
- "target": undefined,
534
- "capture": false,
535
- "passive": false
536
- }, {
537
- "name": "click",
538
- "method": "blurHandler",
539
- "target": "document",
540
- "capture": false,
541
- "passive": false
542
- }, {
543
- "name": "blur",
544
- "method": "handleBlurOnWindow",
545
- "target": "window",
546
- "capture": false,
547
- "passive": false
548
- }, {
549
572
  "name": "cellTriggered",
550
573
  "method": "handleCellTriggered",
551
574
  "target": undefined,
552
575
  "capture": false,
553
576
  "passive": false
554
- }, {
555
- "name": "resize",
556
- "method": "handleWindowResize",
557
- "target": "window",
558
- "capture": false,
559
- "passive": true
560
577
  }];
561
578
  }
562
579
  }
@@ -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: 'd1dc259bbc48591f82a0e44017349513b7e22f60', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '5ef4cd1533f03e47175ed6112996ba73a138aacd', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-label": this.optgroupLabel, 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: '53014694e7dc51fbfc4fe6da9abbf0749764b4a1' })), h("div", { key: 'f3e1bb6596bd0e656eb045c5a62dad39ee266985', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
370
+ return (h("div", { key: '425b430c29dc0bfb140f584119c64cc23fde960b', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '9e21fb94dd8113e09d82ea5024de6327c16a1e9b', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-label": this.optgroupLabel, 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: '7f7ef3e9e175b677488bc0daed3e8170b109454f' })), h("div", { key: '43f89c5b2eccebfc62b847c529ae00469b4fa5b7', 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() {
@@ -291,16 +291,16 @@ export class NestedSelect {
291
291
  this.isExpanded ? this.close() : this.open();
292
292
  },
293
293
  };
294
- return (h(Host, { key: '7e8ed5b276c45f62f8d92521e65b6b6dded568db', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '8712a1df1e10912a4e69b6584b1f47670f9fe0ef', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '6a4e9d87422861362ac87b92703dd094748da7e9', class: "label-wrapper" }, h("label", { key: 'e27736516799cf708681ee19eafd179094dd5096', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
294
+ return (h(Host, { key: 'f4ac99af822bcd4f917bc96daac6fbb61e34f80e', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '74d71c731f63152c402100fbfd97a54828360613', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'dbc5fc7283a3a32e059ba333116b1d882f321cd2', class: "label-wrapper" }, h("label", { key: 'cdd87e55969aaa094d1a3ddeb1385bf0bb3100de', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
295
295
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
296
- this.labelPosition !== "none" && this.requiredField && (h("span", { key: '0d6e9bc7134d9ce46d53813067eeef7f2af50e81', class: "required" }, h("span", { key: 'a4dd0ef025cf32566f863ce0119e72259d9ca50e', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '8169eaa0d995f90e49e5beb9c66dbac4cf93cc6d', "aria-hidden": "true" }, "*")))), h("div", { key: 'a84486ea919cc9cf713c3f98322b6f8f10e91e84', class: "button-wrapper" }, h("button", Object.assign({ key: 'd8605fbcab85f7c15cb030214e599654a3bbeb5e' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: 'ce7182acce7ac9f9bf4259fc73155ec1b8b765a2', class: "overflowcontrol" }, h("span", { key: 'dcda39e2afe152b5c3a75d92e9795f4a4fe93858', class: "button-text" }, this.renderButtonText())), h("div", { key: '8061497676ac1e2c4075f93416663f09b8687ff4', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '4a234681f6ccaf3860e46f193855b56e46e2b221', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '4a73cad886a38ba1674241b0a5147d3941c4f97e', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.renderClearSelectionButton(), h("div", { key: '4660e100c2e0c5291cced7a26a58143a25852f0a', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", class: this.isGroupExpanded ? "hidden" : "", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.optgroupEls.map((optgroupEl) => {
296
+ this.labelPosition !== "none" && this.requiredField && (h("span", { key: '32b6eb9751a9e31228a2cf0d5a4d05448b095a8c', class: "required" }, h("span", { key: '5c5b0f47c47ed2cb90199e4cffdb4da91d7d45e3', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '7d04b03628b48903447c5b5289646b93b6cb619e', "aria-hidden": "true" }, "*")))), h("div", { key: 'e64f0cd85f5cf893b2466891df11ecc99b3cacf5', class: "button-wrapper" }, h("button", Object.assign({ key: '0b848795e3b8452474a19b0faec455aec49a4d1f' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '12f2c4f128bd3b8f993179408821521afbc879ed', class: "overflowcontrol" }, h("span", { key: '82f3176f5daafd346b011b0c2509c43b28e179a8', class: "button-text" }, this.renderButtonText())), h("div", { key: '3dd0a416c62f42d63ff216094e3977a1b905d07b', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'b0510d9af441f11bdd91a008029c5c3884d6d3ce', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '88e174bb89a1a5439750bcd7a67f1982e72a08e1', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.renderClearSelectionButton(), h("div", { key: 'f020d5cc419669458b37c90e3626166ebe64cd46', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", class: this.isGroupExpanded ? "hidden" : "", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.optgroupEls.map((optgroupEl) => {
297
297
  return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
298
298
  if (!optgroupEl.disabled) {
299
299
  optgroupEl.isExpanded = !optgroupEl.isExpanded;
300
300
  forceUpdate(this.el);
301
301
  }
302
302
  }, 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" })));
303
- })), h("div", { key: 'cd880112ee35cdc1a2a3dafa210db9837426fc47', class: `option-list-wrapper ${this.isGroupExpanded ? "" : "hidden"}` }, h("slot", { key: 'f617faa2bbb0f34e500ec103704d3d1298d3f08d' }))), h("div", { key: '0020de125ad2ada89d5f0b38e3af6396879b4de6', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: 'ecc4b501c84e72461319863f4e6b5c6afc3aa944', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
303
+ })), h("div", { key: '10a832d2f59a1d4b12add69575decdc50e468cbb', class: `option-list-wrapper ${this.isGroupExpanded ? "" : "hidden"}` }, h("slot", { key: 'd9a4e3f2fd69b9a8ff5da0718bad9f5fa5d0627d' }))), h("div", { key: 'beb4561d510171994dbc1b470f09a00c441c53dc', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: '559f0ea2ccbd83f99bb52cabcfc643286346d6c4', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
304
304
  }
305
305
  static get is() { return "wm-nested-select"; }
306
306
  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: 'f0aab9a65cc5d21105c75bdc3768e0076123c0c8' }, h("div", { key: '23429cfad03b7026205ed0aef92973353d3ccff0', class: `list-wrapper` }, h("priv-option-list", { key: '6d8d1ea6e0ab9394bec5f4cf5423941fd9979332', 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: 'e01aeec2a2c3cd346f821c1fe46d7e77944e4f98' })))));
51
+ return (h(Host, { key: '112773f131899f3d54ef25a3613b661a189039b3' }, h("div", { key: 'ecf1dc4c6d34313a3855cd8a48516c15511c580a', class: `list-wrapper` }, h("priv-option-list", { key: '411201251651e8b8b5658462c570a835a1c02ed9', 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: '7f92977bf73bad336e11cdc2a48db3c09e1abd0f' })))));
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: 'bcabbcc25798f589af99a47142426ed517e1951f', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '83c81f098705c2ef5b6b2b374cc5d680ec78e2af', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '4cc738837041f134ef4d6ac1f541b8b0409813c6', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '44b3d931ed548dc841033ebf4757eb400773a3a4', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '25a0ecb424a65a7d6c878ad65848ae5270ac563f', class: "sr-only" }, this.el.textContent)), h("div", { key: '4e25dd1f8e9ae5767123d136874ec1e40474c0fb', class: "subinfo" }, this.subinfo)));
146
+ return (h(Host, { key: 'ddcce18a738c96e04821be241dbe60d7a66793a8', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '696f04668d92846969f4b87fde35bae2b3d7815b', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '7c7806d75157dc65d04eb5ee8fb45ec660cbaf8a', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: 'ef04b8bb3cbe625ca3db957565946be82734b8eb', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '1701cb9a834c9a592e44a7e3e96995f7257cf857', class: "sr-only" }, this.el.textContent)), h("div", { key: 'd42fa750da7788e72ff675e13289d14e0c7ef397', class: "subinfo" }, this.subinfo)));
147
147
  }
148
148
  static get is() { return "wm-option"; }
149
149
  static get encapsulation() { return "shadow"; }
@@ -323,14 +323,14 @@ export class Select {
323
323
  }
324
324
  render() {
325
325
  const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
326
- return (h(Host, { key: '9a7eaa936f3f0723a852f780b706ce95dc83641a', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '4ab274d8cf13b0b8702928766bcaae20fa54216e', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '983713098202b6b9774ecabdbe56a43fe21f8938', class: "label-wrapper" }, h("label", { key: '8f79bf97083e3348ef10b15b8637e501915817b2', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
326
+ return (h(Host, { key: '0c15e3c853e8061fd3482900a5c9e79099e18072', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '86953fd45cb2e305629b0e688e97ed16038406e8', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '5758544de948ec407faea3909f45b9065e2ef857', class: "label-wrapper" }, h("label", { key: '4f32e8a8996f2926519151fe0d8256f8af620ba1', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
327
327
  // we can't use aria-required because the listbox is in a sub-component and it is not announced
328
- this.labelPosition !== "none" && this.requiredField && (h("span", { key: 'f8fd8c444254d6588b010277684824a4f61bd0c7', class: "required" }, h("span", { key: '4bdbbded3292fa0a7d8ac7a7a14e63c4fa06a0bf', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '6e28deddff56fc2009fdc7b7610c1f379b0e958a', "aria-hidden": "true" }, "*")))), h("div", { key: '47f1f1d2d62006f117d0be49bfccaaee71e91b76', class: "button-wrapper" }, h("button", { key: '9803fc04172c3c85241891b1abd5dedcc39d8db7', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "info error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'e5a794d58c1115eaeabad64349aa763b880d8650', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'be25d6a9086a68305f23604395897d8ecb19af01', class: "button-text" }, this.setButtonText()), showSubinfo && h("span", { key: '09e34ec7ac74982b1f6c1db55b876d4a72256446', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '75b86a8c694a6bb3e5e92744935242727d2233a7', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '365885ab0546940f1ac4970894066beddf59ac42', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'fd952f83012203e7eaba6fcb8a83b053b5b17a28',
328
+ this.labelPosition !== "none" && this.requiredField && (h("span", { key: 'a72a5517f26e297549dcd0ac057ce7b19e1acfbd', class: "required" }, h("span", { key: '60bd893e2a2ed1031167bfe835cfb310133cd56e', class: "sr-only" }, globalMessages.requiredField), h("span", { key: 'bff8c8faee5517d83844c2dd22528dbc59ea3b42', "aria-hidden": "true" }, "*")))), h("div", { key: 'a9f9d86a709a21d312ecf0f008af1f29bfacf23c', class: "button-wrapper" }, h("button", { key: '6bae8ba99a52af84870a5861132e625de8f341f1', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "info error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: '65ed5b61f0d0f1e7df3efcb7eb05e69a788d985f', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '6eb71f7cb727bb9ef93a4780a61fcae3a4c5dc87', class: "button-text" }, this.setButtonText()), showSubinfo && h("span", { key: '7d71e73f4a5609c32c7b0bbd32a7c618f67204c6', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '946a6a2445eca2ecddaf0703672074f0f7aab906', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '359b34e29578c693cd11377208ad4c14f8da3699', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '8570e7a0eda0afc398d312de70fd7ab5edabfa0b',
329
329
  // is-open is for the CSS transition in modern browsers
330
330
  // hidden is to wait for position calculations in Firefox
331
331
  class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
332
332
  // @ts-ignore -- don't tell typescript but we're in the future
333
- onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '54216ae45b02cab8b403fe30f0c32814e5085f3a', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
333
+ onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '365d65d779b224a382c8910990d8fc5a8b9782fc', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
334
334
  this.dropdownEl.hidePopover();
335
335
  }, onOptionListAllSelected: () => {
336
336
  this.returnFocus = true;
@@ -338,7 +338,7 @@ export class Select {
338
338
  }, onOptionListAllDeselected: () => {
339
339
  this.returnFocus = true;
340
340
  this.wmSelectAllDeselected.emit();
341
- } }, h("slot", { key: 'defde80bf2e3e435fccfda6b910a0d53f4df9989' }))), this.info && (h("div", { key: '464984b66832d1c978df56c53dc4099a671d75c5', class: "info" }, this.info)), h("div", { key: '3a63d5293c2c97f04bddc39a2fcf5181a245f2a3', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'a9a47c2c45f0ab1149919504b9787378ccedc3de', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
341
+ } }, h("slot", { key: '14e69ec589802c881b15056f26a316604231b953' }))), this.info && (h("div", { key: '874ecb2e44f633f9270d2ec2a75c8fcbd8c502c6', class: "info" }, this.info)), h("div", { key: 'c0092eabe951be48b32cfc552acff972ba2e1a85', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '4f0d41664246dbbb7dec502058814198d0b8195f', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
342
342
  }
343
343
  static get is() { return "wm-select"; }
344
344
  static get encapsulation() { return "shadow"; }
@@ -335,7 +335,7 @@ export class ActionMenu {
335
335
  return null;
336
336
  }
337
337
  render() {
338
- return (h(Host, { key: '089e41398162bb653228788b4317049cde90677a', onBlur: () => this.close(false) }, h("div", { key: '8bf71c94ed904f5c4308b30aaba78910622918ec', class: getTextDir() }, h("button", { key: 'e907d5dbb4c76d9c1dcc4099b3f79faec27f4bdd', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
338
+ return (h(Host, { key: '69913d953807a3170a37c14ec90374fb9b1d06f5', onBlur: () => this.close(false) }, h("div", { key: '7331521a42c349f0a8d413a8a5de1fc8c1cf669d', class: getTextDir() }, h("button", { key: '7e0f1be8ab511c85cf157610df71c31eaf3476b0', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
339
339
  ? this.labelForIdenticalButtons || this.tooltip
340
340
  : this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
341
341
  showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing &&
@@ -343,9 +343,9 @@ export class ActionMenu {
343
343
  showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
344
344
  hideTooltip();
345
345
  this.handleButtonBlur(ev);
346
- } }, this.actionMenuType === "icon" && (h("span", { key: 'bd615c986c40863c73a2ec9f060fc5b596e7d64f', class: "svg-icon svg-more-options", style: { "--icon-size": "24px" } })), this.actionMenuType !== "icon" && h("span", { key: '27ad43a2bc951784d313f08b210c1092f2adda55', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: '54184d0f5faa1bd80eddc76127d4173f3dacb7ca', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: '7f34d1d1527b5b65f512fe636aa243ef06c2ae61', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", ref: (el) => (this.dropdownEl = el),
346
+ } }, this.actionMenuType === "icon" && (h("span", { key: '20f9b04965a29040eedc9101888b4f19e2404a04', class: "svg-icon svg-more-options", style: { "--icon-size": "24px" } })), this.actionMenuType !== "icon" && h("span", { key: '1d621e6a8e82afba51b8ad517aa2305d96fb195c', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: 'f074e4b5dd035dec5414e6dd376bb4cc99de26e9', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: 'b56cf79575ba14b6b79b297d96b0419368821273', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", ref: (el) => (this.dropdownEl = el),
347
347
  // @ts-ignore -- don't tell typescript but we're in the future
348
- onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: 'de4af1e89a98621b4093089e70f7b0c02b759cb2' })))));
348
+ onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '54889dffdec22f8a353698b51b6036324b9adc3b' })))));
349
349
  }
350
350
  static get is() { return "wm-action-menu"; }
351
351
  static get encapsulation() { return "shadow"; }
@@ -249,7 +249,7 @@ export class Button {
249
249
  }
250
250
  }
251
251
  render() {
252
- return (h(Host, { key: 'f30891424469ba48386423d5ee2beab5e518b087', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'de7b7b574378a3f18cca34c68e2b473c627e4dec', 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: '5745d367a62143ca3a5d564e5995478da80d1b8e', class: "button-text" }, h("slot", { key: '62d087e69df12437677d6364f36b44a7ec1f0a4b' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'acccc06434173a130494549d802e741700873258', class: "selector-icon svg-icon svg-expand-more" })))));
252
+ return (h(Host, { key: '45c097cfa42faee14d57d673dfdfc0dc5eaf2e28', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'd2e49a842147c1aece51a067627649bd30a8b75d', 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: '56a427048076148c1e5b99633530e94215fa2989', class: "button-text" }, h("slot", { key: '0612c8fb5f2e0abb994ac97bced2ccddf54a0acb' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'd0d6780ad0bee7bef186a7576154c1c20cab1d2c', 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: 'e825957afa878743760074bf8a75afc943432249', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
190
+ return h(Host, { key: '19151d50d2b01dd9db64aaf4b908fc95456ff3b7', 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: '85c0c57f99ff0d6b1a3bee24b63724853f37f2b2', role: "list", class: "list-wrapper" }, h("slot", { key: 'a05f7e5ebb27e57a23713a7e029c0bdb18d89286' })));
7
+ return (h("div", { key: 'fb7803d26479493a92b7f9611cb3f5680660a5ba', role: "list", class: "list-wrapper" }, h("slot", { key: '0ad53e2213af396c9b29fb7e7fd4d9fe80399e45' })));
8
8
  }
9
9
  static get is() { return "wm-file-list"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -155,7 +155,7 @@ export class Flyout {
155
155
  }
156
156
  }
157
157
  render() {
158
- return (h(Host, { key: 'edef60d2bbbed2d457e1cc1b85aa3f6381084d5b' }, h("dialog", { key: 'be1c6a36c8bd59cdf45590402d24ba94271ada78', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '115b32676ca1215698eeaccac059a1730a65e16b', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '45a0bc9e0c3366d2e35409712cc4f02566659373', class: "flyout-content" }, h("slot", { key: '4613ce4d6cac4126bb70ab6b0301b68294f0244f' })), this.renderFooter(), h("div", { key: '3646f8d1604cfdbdeb0ce3872431473943978ecb', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
158
+ return (h(Host, { key: 'c1546402148e441545a292d9ac795adfac725fe3' }, h("dialog", { key: '0ac428de73ee5ddc2ca3d539c247d2d548f51101', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'b38a16a9e97a98ce84b6a09522cca6dce7f8837f', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '270b3b0ed4e59ba61a74202a96b4f75fce4a8c94', class: "flyout-content" }, h("slot", { key: '765d86ef84594c4b0a713d4ef8df3649c3152067' })), this.renderFooter(), h("div", { key: '7c3fb50b72a44852964eac51db31192af176c54c', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
159
159
  }
160
160
  static get is() { return "wm-flyout"; }
161
161
  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: 'bce3b3c4252340f54f70ce0090ee9b43601338b3', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'eb078f570551eef008b151c6e109ab53bc2e6721', class: "label-wrapper" }, h("label", { key: '5e7890d8802f09854e353648f5e51852ec25f36a', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '29b03586a3302abb855c34740f44cb8331c433d5', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: 'c8fda1e852259ceeac78507cc751ff79f1573533', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '564f93368ac8a28d0bb91adc0d97e2e97d20cb21', class: "inner-wrapper" }, h("div", { key: 'ebc9be3527d6a264d4cb90bf59a51999aaf658ad', class: "text-after-wrapper" }, h("div", { key: '9f22cd67d191367ab015f1f7b18f40cd1af0296a', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '4113a8907719fb47d4cf2965c1c212d206ae1a3b', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: 'eed896950ced5aebfad101ec6559ebfd0e84e477', 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: '81a4a5fb4967223523b91e63775b8b4a30d951f4', 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: '9c484c909d8f1097d7033576fa9f2d7b655ccf0c', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '8957eec57120ea823ecb2c0e2f6187ff7302a487', id: "info", class: "info" }, this.info)), h("div", { key: '1d9e53cc2f7c548ed8c1bafeb95da0a98eef07eb', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '88d7f2e6e22166d1f57e8f434436c065fb5aca89', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
110
+ return (h("div", { key: '3580f19d6c2f1fc0cc5c58c13343e435d55233f8', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '5827ef923458400025e77de71fad2c80b1b095bd', class: "label-wrapper" }, h("label", { key: '7d1dc047b0c6bb2c14bc61a40445683277ea2ae6', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: 'c586de9e5cd0210a33619453a1ea4eacc1640822', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '0292d93aefa4007d05d31f01ac44eedf70d59d99', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'c82f5e79d3286d5b1d13e1e6d2f926b54c0c5403', class: "inner-wrapper" }, h("div", { key: '61aff4b5c1c880306a43899ade2431a4e3939b16', class: "text-after-wrapper" }, h("div", { key: 'c697b2f407a7b54ae5f971490e013a912a73de72', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '1983539be2e0a4e1aafa889910788b0fadbecf44', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '78fbe9432521856d2c86e43e16296fc01f1b07b8', 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: 'abe682508a99df6475ce4ca4706926c11c1704c9', 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: 'b6e60134de240bb256d75ff55744fe4df1e6c795', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '0a058e1a91250f96a04807419e73c0cc89519364', id: "info", class: "info" }, this.info)), h("div", { key: '21432ca07ec97686e3073297cece2013e5cc94e6', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'fe235ceffb5fd33b4a04eac4a87cd24579bbcbc3', 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"; }
@@ -95,7 +95,7 @@ export class Menuitem {
95
95
  }
96
96
  }
97
97
  render() {
98
- return (h(Host, { key: '3576abf0e512b2088c08a13a9b0da7be22fc4604', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '5ee18f1dc5bc3ce1498db2038d6e21ed9abeb951', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '1eb8c3e8db9dee82803e458dce83ea26314d454f', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
98
+ return (h(Host, { key: 'c4acd31a2ed44a310abfedbac8979553d897d786', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '641ab7d318bf9aa2c58c598b2a70c961ea8decf1', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '3c9b0be9cbffbcf0846d0951943dcfdd0f60b323', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
99
99
  }
100
100
  static get is() { return "wm-menuitem"; }
101
101
  static get encapsulation() { return "shadow"; }
@@ -31,7 +31,7 @@ export class ModalFooter {
31
31
  }
32
32
  }
33
33
  render() {
34
- return (h("div", { key: 'd271a1ae0932d3d178fbc2963a022569304ce00c', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '9b9c1b5bd49ff76b6334e60bc5ada6b311913644', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '7741ec8fe680ddf5fb0aba02e894b2c3138727d1', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '35d73c0fe78849cf0ff55a33f94c69fa126844a9', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '6c322386f313e52a76fdafe0a7f56f480309b240', "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: '3f8bf20b91042cf4cffe66f699f69e2d3b4bf2a1', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '931e2db6fc146360aa6c30475a9cb5a7c7362abb', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'be69d329e1ff91222849469a490ebae0c9a79740', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '35e8f32d574a5d394aeeb5b863a351afe2caa63c', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '78059456220627f3397467ef676d4c6479c72040', "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: 'b68657ee6be25bb1acf42a1f2ee3c3bf907b82ec' }, h("div", { key: '1cc9bff33ede81baf02895c05eda31be8902705e', class: "wm-wrapper" }, h("div", { key: '079e8e5ed17ace20380cbe720d22a58a125a52c1' }, h("h2", { key: '7d50e7cda2fff6ddb16c4cd98de0e8b5fe1df786', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '68e79ac15c7bfb59754694b5033e9a115fbed6b2', class: "subtitle" }, this.subheading))), h("wm-button", { key: '258bc2a94df987545ec32f46da2903f97dd8bf99', "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: 'bbeb92788540f1ced0f431b9e4de2f840411ba2b' }, h("div", { key: '80cef5fed98c11c17b053b253f89a8bec6cce125', class: "wm-wrapper" }, h("div", { key: '7de34c034dd881c921ae869b13c4b32a0eabb384' }, h("h2", { key: '97d040fc65373a77ab92f1d0dea82eaab0b7dd55', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '5ea4bbe018ffa23d11a30cba541e0acbba9d90fc', class: "subtitle" }, this.subheading))), h("wm-button", { key: '9eccd26892d01c1daf642f628762f759e697f375', "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() {