eco-vue-js 0.20.6 → 0.21.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 (208) hide show
  1. package/dist/assets/icons/IconDanger.js +6 -18
  2. package/dist/assets/icons/IconNotification.js +37 -0
  3. package/dist/assets/icons/IconSuccess.js +4 -8
  4. package/dist/assets/icons/IconWarn.js +6 -31
  5. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +8 -1
  6. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
  7. package/dist/components/BottomSheet/WBottomSheet.vue_vue_type_script_setup_true_lang.js +36 -9
  8. package/dist/components/Button/WButton.vue.d.ts +4 -4
  9. package/dist/components/Button/WButtonAction.vue.d.ts +6 -6
  10. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  11. package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -1
  12. package/dist/components/Button/WButtonDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  13. package/dist/components/Button/WButtonMore.vue.d.ts +10 -5
  14. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonMore.vue_vue_type_script_setup_true_lang.js +50 -49
  16. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  17. package/dist/components/Button/WButtonSelection.vue_vue_type_script_setup_true_lang.js +16 -26
  18. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  19. package/dist/components/Button/WButtonSelectionAction.vue_vue_type_script_setup_true_lang.js +9 -8
  20. package/dist/components/Chart/WChartLinear.vue.d.ts +2 -2
  21. package/dist/components/Chart/WChartLinear.vue.d.ts.map +1 -1
  22. package/dist/components/Checkbox/WCheckbox.vue.d.ts +1 -1
  23. package/dist/components/Chip/WChip.vue.d.ts +1 -1
  24. package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
  25. package/dist/components/ClickOutside/WClickOutside.vue.d.ts +2 -2
  26. package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
  27. package/dist/components/ClickOutside/WClickOutside.vue_vue_type_script_setup_true_lang.js +13 -4
  28. package/dist/components/Counter/WCounter.vue.d.ts +1 -1
  29. package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
  30. package/dist/components/DatePicker/WDatePicker.vue.d.ts +1 -1
  31. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  32. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +1 -1
  33. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
  34. package/dist/components/Dismissable/WDismissable.vue.d.ts +4 -2
  35. package/dist/components/Dismissable/WDismissable.vue.d.ts.map +1 -1
  36. package/dist/components/Dismissable/WDismissable.vue_vue_type_script_setup_true_lang.js +30 -5
  37. package/dist/components/Dropdown/WDropdown.vue.d.ts +2 -0
  38. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  39. package/dist/components/Dropdown/WDropdown.vue_vue_type_script_setup_true_lang.js +18 -6
  40. package/dist/components/Dropdown/types.d.ts +6 -2
  41. package/dist/components/Dropdown/types.d.ts.map +1 -1
  42. package/dist/components/DropdownMenu/WDropdownAdaptive.vue.d.ts +11 -16
  43. package/dist/components/DropdownMenu/WDropdownAdaptive.vue.d.ts.map +1 -1
  44. package/dist/components/DropdownMenu/WDropdownAdaptive.vue_vue_type_script_setup_true_lang.js +64 -49
  45. package/dist/components/DropdownMenu/WDropdownMenu.vue_vue_type_script_setup_true_lang.js +3 -2
  46. package/dist/components/DropdownMenu/types.d.ts +9 -3
  47. package/dist/components/DropdownMenu/types.d.ts.map +1 -1
  48. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +7 -3
  49. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  50. package/dist/components/FieldWrapper/WFieldWrapper.vue_vue_type_script_setup_true_lang.js +5 -3
  51. package/dist/components/FilePicker/WFilePicker.vue.d.ts +3 -3
  52. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  53. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  54. package/dist/components/InfiniteList/components/InfiniteListPage.vue_vue_type_script_setup_true_lang.js +3 -1
  55. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  56. package/dist/components/Input/WInput.vue_vue_type_script_setup_true_lang.js +2 -0
  57. package/dist/components/Input/WInputDate.vue.d.ts +3 -3
  58. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  59. package/dist/components/Input/WInputOptions.vue_vue_type_script_setup_true_lang.js +1 -5
  60. package/dist/components/Input/WInputSuggest.vue.d.ts +8 -8
  61. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  62. package/dist/components/Input/WInputSuggest.vue_vue_type_script_setup_true_lang.js +45 -46
  63. package/dist/components/Input/components/InputActionsButton.vue.d.ts +1 -1
  64. package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
  65. package/dist/components/Input/components/InputSuggestEmbedded.vue.d.ts +19 -0
  66. package/dist/components/Input/components/InputSuggestEmbedded.vue.d.ts.map +1 -0
  67. package/dist/components/Input/components/InputSuggestEmbedded.vue.js +5 -0
  68. package/dist/components/Input/components/InputSuggestEmbedded.vue_vue_type_script_setup_true_lang.js +19 -0
  69. package/dist/components/Link/WLink.vue.d.ts +3 -3
  70. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  71. package/dist/components/List/components/HeaderExport.vue.d.ts.map +1 -1
  72. package/dist/components/List/components/HeaderExport.vue_vue_type_script_setup_true_lang.js +23 -29
  73. package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
  74. package/dist/components/List/components/HeaderSettings.vue_vue_type_script_setup_true_lang.js +16 -18
  75. package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
  76. package/dist/components/List/components/HeaderSort.vue_vue_type_script_setup_true_lang.js +34 -41
  77. package/dist/components/List/components/ListFilterLocalItem.vue.d.ts +1 -1
  78. package/dist/components/List/components/ListFilterLocalItem.vue.d.ts.map +1 -1
  79. package/dist/components/List/components/ListFilterLocalItem.vue_vue_type_script_setup_true_lang.js +7 -22
  80. package/dist/components/List/components/ListFilterSelect.vue.d.ts.map +1 -1
  81. package/dist/components/List/components/ListFilterSelect.vue_vue_type_script_setup_true_lang.js +5 -13
  82. package/dist/components/List/components/ListItem.vue.d.ts.map +1 -1
  83. package/dist/components/List/components/ListItem.vue_vue_type_script_setup_true_lang.js +12 -37
  84. package/dist/components/List/components/ListToolbar.vue.d.ts.map +1 -1
  85. package/dist/components/List/components/ListToolbar.vue_vue_type_script_setup_true_lang.js +7 -3
  86. package/dist/components/List/types.d.ts +2 -0
  87. package/dist/components/List/types.d.ts.map +1 -1
  88. package/dist/components/MenuItem/WMenuItem.vue.d.ts +2 -2
  89. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  90. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  91. package/dist/components/Modal/WModal.vue_vue_type_script_setup_true_lang.js +149 -71
  92. package/dist/components/Modal/components/OverlayDropdown.vue.d.ts +37 -0
  93. package/dist/components/Modal/components/OverlayDropdown.vue.d.ts.map +1 -0
  94. package/dist/components/Modal/components/OverlayDropdown.vue.js +5 -0
  95. package/dist/components/Modal/components/OverlayDropdown.vue_vue_type_script_setup_true_lang.js +140 -0
  96. package/dist/components/Modal/components/OverlayHeader.vue.d.ts +14 -0
  97. package/dist/components/Modal/components/OverlayHeader.vue.d.ts.map +1 -0
  98. package/dist/components/Modal/components/OverlayHeader.vue.js +5 -0
  99. package/dist/components/Modal/components/OverlayHeader.vue_vue_type_script_setup_true_lang.js +20 -0
  100. package/dist/components/Modal/components/OverlayLayerProvider.vue.d.ts +22 -0
  101. package/dist/components/Modal/components/OverlayLayerProvider.vue.d.ts.map +1 -0
  102. package/dist/components/Modal/components/OverlayLayerProvider.vue.js +5 -0
  103. package/dist/components/Modal/components/OverlayLayerProvider.vue_vue_type_script_setup_true_lang.js +27 -0
  104. package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.d.ts +24 -0
  105. package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.d.ts.map +1 -0
  106. package/dist/components/Modal/modals/Confirm/ConfirmActions.vue.js +5 -0
  107. package/dist/components/Modal/modals/Confirm/ConfirmActions.vue_vue_type_script_setup_true_lang.js +75 -0
  108. package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.d.ts +9 -0
  109. package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.d.ts.map +1 -0
  110. package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue.js +5 -0
  111. package/dist/components/Modal/modals/Confirm/ConfirmAnchored.vue_vue_type_script_setup_true_lang.js +112 -0
  112. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +1 -7
  113. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
  114. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue_vue_type_script_setup_true_lang.js +42 -86
  115. package/dist/components/Modal/models/overlayRegistry.d.ts +87 -0
  116. package/dist/components/Modal/models/overlayRegistry.d.ts.map +1 -0
  117. package/dist/components/Modal/models/overlayRegistry.js +154 -0
  118. package/dist/components/Modal/types.d.ts +3 -0
  119. package/dist/components/Modal/types.d.ts.map +1 -1
  120. package/dist/components/Modal/use/useConfirm.d.ts +13 -0
  121. package/dist/components/Modal/use/useConfirm.d.ts.map +1 -0
  122. package/dist/components/Modal/use/useConfirm.js +38 -0
  123. package/dist/components/Notify/WNotify.vue.d.ts +4 -1
  124. package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
  125. package/dist/components/Notify/WNotify.vue_vue_type_script_setup_true_lang.js +21 -48
  126. package/dist/components/Notify/WNotifyCenter.vue.d.ts +15 -0
  127. package/dist/components/Notify/WNotifyCenter.vue.d.ts.map +1 -0
  128. package/dist/components/Notify/WNotifyCenter.vue.js +5 -0
  129. package/dist/components/Notify/WNotifyCenter.vue_vue_type_script_setup_true_lang.js +88 -0
  130. package/dist/components/Notify/WNotifyCenterButton.vue.d.ts +22 -0
  131. package/dist/components/Notify/WNotifyCenterButton.vue.d.ts.map +1 -0
  132. package/dist/components/Notify/WNotifyCenterButton.vue.js +5 -0
  133. package/dist/components/Notify/WNotifyCenterButton.vue_vue_type_script_setup_true_lang.js +53 -0
  134. package/dist/components/Notify/components/NotifyCard.vue.d.ts +11 -19
  135. package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
  136. package/dist/components/Notify/components/NotifyCard.vue_vue_type_script_setup_true_lang.js +91 -52
  137. package/dist/components/Notify/models/NotifyType.d.ts +10 -1
  138. package/dist/components/Notify/models/NotifyType.d.ts.map +1 -1
  139. package/dist/components/Notify/models/NotifyType.js +11 -1
  140. package/dist/components/Notify/models/notifyCenter.d.ts +35 -0
  141. package/dist/components/Notify/models/notifyCenter.d.ts.map +1 -0
  142. package/dist/components/Notify/models/notifyCenter.js +194 -0
  143. package/dist/components/Notify/models/types.d.ts +41 -3
  144. package/dist/components/Notify/models/types.d.ts.map +1 -1
  145. package/dist/components/Notify/types.d.ts +18 -0
  146. package/dist/components/Notify/types.d.ts.map +1 -0
  147. package/dist/components/Notify/use/useNotifyCenter.d.ts +21 -0
  148. package/dist/components/Notify/use/useNotifyCenter.d.ts.map +1 -0
  149. package/dist/components/Notify/use/useNotifyCenter.js +44 -0
  150. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  151. package/dist/components/Select/WSelect.vue_vue_type_script_setup_true_lang.js +22 -13
  152. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  153. package/dist/components/Select/WSelectAsync.vue_vue_type_script_setup_true_lang.js +7 -12
  154. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  155. package/dist/components/Select/WSelectAsyncSingle.vue_vue_type_script_setup_true_lang.js +1 -0
  156. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  157. package/dist/components/Select/WSelectSingle.vue_vue_type_script_setup_true_lang.js +1 -0
  158. package/dist/components/Select/WSelectStringified.vue_vue_type_script_setup_true_lang.js +1 -0
  159. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +4 -0
  160. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  161. package/dist/components/Select/components/SelectAsyncList.vue_vue_type_script_setup_true_lang.js +17 -4
  162. package/dist/components/Select/components/SelectOption.vue.d.ts +26 -8
  163. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  164. package/dist/components/Select/components/SelectOption.vue_vue_type_script_setup_true_lang.js +16 -8
  165. package/dist/components/Select/models/useScrollSelected.d.ts +10 -0
  166. package/dist/components/Select/models/useScrollSelected.d.ts.map +1 -0
  167. package/dist/components/Select/models/useScrollSelected.js +29 -0
  168. package/dist/components/Select/types.d.ts +4 -2
  169. package/dist/components/Select/types.d.ts.map +1 -1
  170. package/dist/components/Slider/WSlider.vue.d.ts +1 -1
  171. package/dist/components/Slider/WSlider.vue.d.ts.map +1 -1
  172. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  173. package/dist/components/Toggle/WToggle.vue_vue_type_script_setup_true_lang.js +1 -1
  174. package/dist/main.d.ts +5 -1
  175. package/dist/main.d.ts.map +1 -1
  176. package/dist/main.js +15 -9
  177. package/dist/types/global.d.ts +4 -0
  178. package/dist/types/types.d.ts +1 -1
  179. package/dist/utils/Modal.d.ts +4 -2
  180. package/dist/utils/Modal.d.ts.map +1 -1
  181. package/dist/utils/Modal.js +10 -10
  182. package/dist/utils/Notify.d.ts +11 -4
  183. package/dist/utils/Notify.d.ts.map +1 -1
  184. package/dist/utils/Notify.js +24 -3
  185. package/dist/utils/Overlay.d.ts +83 -0
  186. package/dist/utils/Overlay.d.ts.map +1 -0
  187. package/dist/utils/Overlay.js +89 -0
  188. package/dist/utils/useSelected.d.ts.map +1 -1
  189. package/dist/utils/useSelected.js +3 -1
  190. package/dist/utils/utils.d.ts +15 -1
  191. package/dist/utils/utils.d.ts.map +1 -1
  192. package/dist/utils/utils.js +25 -6
  193. package/docs/components/dropdown-menu.md +25 -33
  194. package/docs/components/field-wrapper.md +1 -0
  195. package/docs/components/input.md +1 -1
  196. package/docs/components/list.md +4 -6
  197. package/docs/components/modal.md +139 -1
  198. package/docs/components/notify.md +234 -1
  199. package/docs/components/select.md +36 -2
  200. package/docs/guide/getting-started.md +1 -1
  201. package/docs/icons.md +2 -2
  202. package/docs/llms.txt +4 -4
  203. package/docs/recipes/list-with-fields.md +186 -16
  204. package/package.json +13 -1
  205. package/tailwind-base/css/default.css +5 -0
  206. package/dist/components/Button/models/buttonMore.d.ts +0 -4
  207. package/dist/components/Button/models/buttonMore.d.ts.map +0 -1
  208. package/dist/components/Button/models/buttonMore.js +0 -8
@@ -8,24 +8,12 @@ var _hoisted_1 = {
8
8
  xmlns: "http://www.w3.org/2000/svg"
9
9
  };
10
10
  function render(_ctx, _cache) {
11
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
12
- createElementVNode("path", {
13
- d: "M10.03 3.07a2.34 2.34 0 0 1 3.94 0l9.7 15.59c.92 1.47-.18 3.34-1.97 3.34H2.3C.5 22-.6 20.13.33 18.66z",
14
- fill: "currentcolor"
15
- }, null, -1),
16
- createElementVNode("path", {
17
- class: "fill-tone-on",
18
- d: "M13 14.28h-2L10.09 7h3.81z",
19
- fill: "#fff"
20
- }, null, -1),
21
- createElementVNode("circle", {
22
- class: "fill-tone-on",
23
- cx: "12",
24
- cy: "18",
25
- fill: "#fff",
26
- r: "2"
27
- }, null, -1)
28
- ])]);
11
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
12
+ "clip-rule": "evenodd",
13
+ d: "M10.03 3.07a2.34 2.34 0 0 1 3.94 0l9.7 15.59c.92 1.47-.18 3.34-1.97 3.34H2.3C.5 22-.6 20.13.33 18.66zM13 14.28h-2L10.09 7h3.81zM12 16a2 2 0 1 0 0 4 2 2 0 1 0 0-4",
14
+ fill: "currentcolor",
15
+ "fill-rule": "evenodd"
16
+ }, null, -1)])]);
29
17
  }
30
18
  var IconDanger_default = { render };
31
19
  //#endregion
@@ -0,0 +1,37 @@
1
+ import { createElementBlock, createElementVNode, openBlock } from "vue";
2
+ //#region src/assets/icons/IconNotification.svg?component
3
+ var _hoisted_1 = {
4
+ width: "20",
5
+ height: "20",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function render(_ctx, _cache) {
11
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
12
+ createElementVNode("path", {
13
+ d: "M12.02 2.91a6 6 0 0 0-6 6v2.89c0 .61-.26 1.54-.57 2.06L4.3 15.77c-.71 1.18-.22 2.49 1.08 2.93a21 21 0 0 0 13.27 0 2 2 0 0 0 1.08-2.93l-1.15-1.91a5 5 0 0 1-.56-2.06V8.91c0-3.3-2.7-6-6-6Z",
14
+ stroke: "currentcolor",
15
+ "stroke-linecap": "round",
16
+ "stroke-miterlimit": "10",
17
+ "stroke-width": "1.5"
18
+ }, null, -1),
19
+ createElementVNode("path", {
20
+ d: "M13.87 3.2a7 7 0 0 0-3.7 0 1.99 1.99 0 0 1 3.7 0",
21
+ stroke: "currentcolor",
22
+ "stroke-linecap": "round",
23
+ "stroke-linejoin": "round",
24
+ "stroke-miterlimit": "10",
25
+ "stroke-width": "1.5"
26
+ }, null, -1),
27
+ createElementVNode("path", {
28
+ d: "M15.02 19.06a3 3 0 0 1-5.12 2.12 3 3 0 0 1-.88-2.12",
29
+ stroke: "currentcolor",
30
+ "stroke-miterlimit": "10",
31
+ "stroke-width": "1.5"
32
+ }, null, -1)
33
+ ])]);
34
+ }
35
+ var IconNotification_default = { render };
36
+ //#endregion
37
+ export { IconNotification_default as default, render };
@@ -8,15 +8,11 @@ var _hoisted_1 = {
8
8
  xmlns: "http://www.w3.org/2000/svg"
9
9
  };
10
10
  function render(_ctx, _cache) {
11
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("circle", {
12
- cx: "12",
13
- cy: "12",
11
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
12
+ "clip-rule": "evenodd",
13
+ d: "M12 0a12 12 0 1 0 0 24 12 12 0 1 0 0-24M10.6 18 5 10.61h2.2l3.4 4.48L16.79 7H19z",
14
14
  fill: "currentcolor",
15
- r: "12"
16
- }, null, -1), createElementVNode("path", {
17
- class: "fill-tone-on",
18
- d: "M10.6 18 5 10.61h2.2l3.4 4.48L16.79 7H19z",
19
- fill: "#fff"
15
+ "fill-rule": "evenodd"
20
16
  }, null, -1)])]);
21
17
  }
22
18
  var IconSuccess_default = { render };
@@ -8,37 +8,12 @@ var _hoisted_1 = {
8
8
  xmlns: "http://www.w3.org/2000/svg"
9
9
  };
10
10
  function render(_ctx, _cache) {
11
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
12
- createElementVNode("rect", {
13
- width: "16.97",
14
- height: "16.97",
15
- fill: "currentcolor",
16
- rx: "4",
17
- transform: "rotate(45 11.78 0)",
18
- x: "11.78"
19
- }, null, -1),
20
- createElementVNode("circle", {
21
- class: "fill-tone-on",
22
- cx: "7.36",
23
- cy: "12.27",
24
- fill: "#fff",
25
- r: "1.47"
26
- }, null, -1),
27
- createElementVNode("circle", {
28
- class: "fill-tone-on",
29
- cx: "11.78",
30
- cy: "12.27",
31
- fill: "#fff",
32
- r: "1.47"
33
- }, null, -1),
34
- createElementVNode("circle", {
35
- class: "fill-tone-on",
36
- cx: "16.2",
37
- cy: "12.27",
38
- fill: "#fff",
39
- r: "1.47"
40
- }, null, -1)
41
- ])]);
11
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
12
+ "clip-rule": "evenodd",
13
+ d: "M8.95 2.83a4 4 0 0 1 5.66 0l6.34 6.34a4 4 0 0 1 0 5.66l-6.34 6.34a4 4 0 0 1-5.66 0l-6.34-6.34a4 4 0 0 1 0-5.66zM7.36 10.8a1.47 1.47 0 1 0 0 2.94 1.47 1.47 0 1 0 0-2.94m4.42 0a1.47 1.47 0 1 0 0 2.94 1.47 1.47 0 1 0 0-2.94m4.42 0a1.47 1.47 0 1 0 0 2.94 1.47 1.47 0 1 0 0-2.94",
14
+ fill: "currentcolor",
15
+ "fill-rule": "evenodd"
16
+ }, null, -1)])]);
42
17
  }
43
18
  var IconWarn_default = { render };
44
19
  //#endregion
@@ -1,6 +1,10 @@
1
1
  type __VLS_Props = {
2
2
  /** Opens the sheet. */
3
3
  isOpen: boolean;
4
+ /** Sizes the sheet to its content, up to 90% of the screen, instead of always taking 90%. */
5
+ compact?: boolean;
6
+ /** Leaves the page in view without the dimmed backdrop. A tap outside the sheet still closes it, and also reaches the page. */
7
+ noOverlay?: boolean;
4
8
  };
5
9
  type __VLS_Slots = {
6
10
  /** Element that opens the sheet, rendered in place and again at the top of the sheet — `unclickable` is `true` for the one in place and `false` for the copy. */
@@ -11,7 +15,10 @@ type __VLS_Slots = {
11
15
  /** Content of the sheet, which scrolls under the toggle. */
12
16
  content?: () => void;
13
17
  };
14
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
19
+ /** Slides the sheet down. Resolves once it is out of view — then set `isOpen` to `false` for no visible jump. */
20
+ hide: () => Promise<void>;
21
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
22
  close: () => any;
16
23
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
24
  onClose?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AAoCA;AAuEA,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,iKAAiK;IACjK,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,WAAW,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAA;IACjE,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AAsHF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AA8CA;AAoGA,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,OAAO,CAAA;IACf,6FAA6F;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+HAA+H;IAC/H,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,iKAAiK;IACjK,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,WAAW,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAA;IACjE,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AAuKF,QAAA,MAAM,UAAU;IA/Jd,iHAAiH;gBACvG,OAAO,CAAC,IAAI,CAAC;;;;;kFAkKvB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,30 +1,57 @@
1
1
  import { wBaseZIndex } from "../../utils/utils.js";
2
+ import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
2
3
  import WDismissable_default from "../Dismissable/WDismissable.vue.js";
3
- import { Fragment, Teleport, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeProps, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
4
+ import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, unref, useTemplateRef, withCtx } from "vue";
4
5
  //#region src/components/BottomSheet/WBottomSheet.vue?vue&type=script&setup=true&lang.ts
5
6
  var _hoisted_1 = { class: "px-3" };
6
7
  var _hoisted_2 = { class: "overflow-y-auto overflow-x-hidden overscroll-contain" };
7
8
  var WBottomSheet_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
8
9
  __name: "WBottomSheet",
9
- props: { isOpen: { type: Boolean } },
10
+ props: {
11
+ isOpen: { type: Boolean },
12
+ compact: { type: Boolean },
13
+ noOverlay: { type: Boolean }
14
+ },
10
15
  emits: ["close"],
11
- setup(__props) {
16
+ setup(__props, { expose: __expose }) {
17
+ const props = __props;
12
18
  const baseZIndex = inject(wBaseZIndex, 0);
19
+ const dismissableRef = useTemplateRef("dismissable");
20
+ __expose({
21
+ /** Slides the sheet down. Resolves once it is out of view — then set `isOpen` to `false` for no visible jump. */
22
+ hide: () => dismissableRef.value?.hide() ?? Promise.resolve() });
23
+ const contentClass = computed(() => [
24
+ "bg-surface grid-cols-[1fr] grid-rows-[auto_1fr] rounded-t-3xl shadow-md relative grid",
25
+ props.compact ? "max-h-[90%]" : "height-[90%]",
26
+ props.noOverlay ? "pointer-events-auto border-t border-solid border-line-raised" : ""
27
+ ].join(" "));
13
28
  return (_ctx, _cache) => {
14
29
  return openBlock(), createElementBlock(Fragment, null, [renderSlot(_ctx.$slots, "toggle", { unclickable: true }), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(WDismissable_default, {
30
+ ref: "dismissable",
15
31
  "is-open": __props.isOpen,
16
- class: "bg-backdrop fixed inset-0 backdrop-blur",
17
- "content-class": "bg-surface grid-cols-[1fr] grid-rows-[auto_1fr] height-[90%] rounded-t-3xl shadow-md relative grid",
32
+ class: normalizeClass(["fixed inset-0", __props.noOverlay ? "pointer-events-none" : "bg-backdrop backdrop-blur"]),
33
+ "content-class": contentClass.value,
18
34
  style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(100) }),
19
- onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
35
+ onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
20
36
  }, {
21
37
  default: withCtx(() => [
22
- createElementVNode("div", _hoisted_1, [_cache[1] || (_cache[1] = createElementVNode("div", { class: "flex h-9 items-center justify-center" }, [createElementVNode("div", { class: "h-1 w-12 rounded-sm bg-track" })], -1)), createElementVNode("div", null, [renderSlot(_ctx.$slots, "toggle", mergeProps({ unclickable: false }, { isTop: false }))])]),
38
+ createElementVNode("div", _hoisted_1, [_cache[2] || (_cache[2] = createElementVNode("div", { class: "flex h-9 items-center justify-center" }, [createElementVNode("div", { class: "h-1 w-12 rounded-sm bg-track" })], -1)), createElementVNode("div", null, [renderSlot(_ctx.$slots, "toggle", mergeProps({ unclickable: false }, { isTop: false }))])]),
23
39
  createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "content")]),
24
- _cache[2] || (_cache[2] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-inherit" }, null, -1))
40
+ _cache[3] || (_cache[3] = createElementVNode("div", { class: "absolute top-full h-screen w-full bg-inherit" }, null, -1)),
41
+ __props.noOverlay ? (openBlock(), createBlock(WClickOutside_default, {
42
+ key: 0,
43
+ "no-filter": "",
44
+ class: "hidden",
45
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
46
+ })) : createCommentVNode("", true)
25
47
  ]),
26
48
  _: 3
27
- }, 8, ["is-open", "style"])]))], 64);
49
+ }, 8, [
50
+ "is-open",
51
+ "class",
52
+ "content-class",
53
+ "style"
54
+ ])]))], 64);
28
55
  };
29
56
  }
30
57
  });
@@ -11,15 +11,15 @@ declare const __VLS_base: import('vue').DefineComponent<ButtonProps, {}, {}, {},
11
11
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
12
12
  onMousedown?: ((event: MouseEvent) => any) | undefined;
13
13
  }>, {
14
+ to: import('vue-router').RouterLinkProps["to"];
14
15
  skeleton: boolean;
15
- semanticType: SemanticType;
16
+ disabled: boolean;
16
17
  type: string;
17
- href: string;
18
- to: import('vue-router').RouterLinkProps["to"];
18
+ semanticType: SemanticType;
19
19
  tag: keyof HTMLElementTagNameMap;
20
+ href: string;
20
21
  target: "_self" | "_blank" | "_parent" | "_top";
21
22
  rel: string;
22
- disabled: boolean;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
@@ -39,17 +39,17 @@ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, i
39
39
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
40
40
  onClick?: ((event: MouseEvent) => any) | undefined;
41
41
  }>, {
42
- skeleton: boolean;
43
- count: number;
44
- semanticType: SemanticType;
45
- href: string;
46
42
  to: import('vue-router').RouterLinkProps["to"];
43
+ tooltipText: string;
44
+ skeleton: boolean;
45
+ disabled: boolean;
47
46
  icon: SVGComponent;
47
+ semanticType: SemanticType;
48
48
  tag: "button" | "a";
49
+ href: string;
49
50
  target: "_self" | "_blank" | "_parent" | "_top";
50
51
  rel: string;
51
- disabled: boolean;
52
- tooltipText: string;
52
+ count: number;
53
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
54
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
55
55
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AA+EA;AAAA,OAqKO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAW5C,OAAO,EAAC,YAAY,EAA+B,MAAM,sBAAsB,CAAA;AAE/E,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,uDAAuD;IACvD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,gHAAgH;IAChH,KAAK,EAAE,MAAM,CAAA;IACb,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6FAA6F;IAC7F,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAA;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AA0BD,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;CAClB,CAAC;AAyPF,QAAA,MAAM,UAAU;;;;;cA7RH,OAAO;WANV,MAAM;kBAEC,YAAY;UARpB,MAAM;;UARN,YAAY;SAMb,QAAQ,GAAG,GAAG;YAIX,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;SAE1C,MAAM;cAMD,OAAO;iBAIJ,MAAM;6EA+RpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AA+EA;AAAA,OAqKO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAW5C,OAAO,EAAC,YAAY,EAA+B,MAAM,sBAAsB,CAAA;AAE/E,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,uDAAuD;IACvD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,gHAAgH;IAChH,KAAK,EAAE,MAAM,CAAA;IACb,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6FAA6F;IAC7F,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAA;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AA0BD,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;CAClB,CAAC;AAyPF,QAAA,MAAM,UAAU;;;;;;iBA3RA,MAAM;cAFT,OAAO;cAFP,OAAO;UAlBX,YAAY;kBAgBJ,YAAY;SAVrB,QAAQ,GAAG,GAAG;UAEb,MAAM;YAEJ,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;SAE1C,MAAM;WAEJ,MAAM;6EAuSd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -11,8 +11,8 @@ type __VLS_Slots = {
11
11
  }) => VNode[];
12
12
  };
13
13
  declare const __VLS_base: import('vue').DefineComponent<ButtonDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonDropdownProps> & Readonly<{}>, {
14
- disabled: boolean;
15
14
  horizontalAlign: HorizontalAlign;
15
+ disabled: boolean;
16
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import WTooltip_default from "../Tooltip/WTooltip.vue.js";
2
- import WButton_default from "./WButton.vue.js";
3
2
  import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
3
+ import WButton_default from "./WButton.vue.js";
4
4
  import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
5
5
  import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
6
6
  import IconArrow_default from "../../assets/icons/IconArrow.js";
@@ -1,20 +1,25 @@
1
- import { DropdownProps } from '../Dropdown/types';
1
+ import { OverlayAnchor } from '../../utils/Overlay';
2
2
  type __VLS_Props = {
3
3
  /** Icon of the button. Defaults to three dots. */
4
4
  icon?: SVGComponent;
5
5
  /** Blocks opening and dims the button. */
6
6
  disabled?: boolean;
7
7
  /** Element the menu is positioned against instead of the button, aligned to its right edge — for a menu opened at a cursor or row. */
8
- anchor?: DropdownProps['parentElement'];
8
+ anchor?: OverlayAnchor;
9
9
  };
10
10
  type __VLS_Slots = {
11
- /** Menu items, usually WButtonMoreItem. A click inside closes the menu. Only one WButtonMore menu is open at a time. */
11
+ /**
12
+ * Menu items, usually WButtonMoreItem. A click inside closes the menu. Only one menu is open at a time, and on phones it is a bottom sheet.
13
+ * A confirm opened from an item with `useOverlay` takes the menu's place at the same anchor.
14
+ */
12
15
  default?: () => void;
13
16
  };
14
17
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
15
- open: () => void;
18
+ open: (anchor?: OverlayAnchor) => void;
16
19
  close: () => void;
17
- isOpen: import('vue').ComputedRef<boolean>;
20
+ isOpen: import('vue').Ref<boolean, boolean>;
21
+ /** The menu, or a confirm it handed off to, is open. */
22
+ isActive: import('vue').ComputedRef<boolean>;
18
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
24
  close: () => any;
20
25
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AA0DA;AA4HA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAapD,KAAK,WAAW,GAAG;IACjB,kDAAkD;IAClD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sIAAsI;IACtI,MAAM,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;CACxC,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,wHAAwH;IACxH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA8NF,QAAA,MAAM,UAAU;;iBA5ME,IAAI;;;;;;kFAgNpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AA8BA;AAyIA,OAAO,EAAC,KAAK,aAAa,EAAa,MAAM,iBAAiB,CAAA;AAE9D,KAAK,WAAW,GAAG;IACjB,kDAAkD;IAClD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sIAAsI;IACtI,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA+IF,QAAA,MAAM,UAAU;oBAxHO,aAAa,KAAG,IAAI;iBA8BzB,IAAI;;IAepB,wDAAwD;;;;;;kFA+ExD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,9 +1,7 @@
1
- import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
2
- import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
3
- import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
4
1
  import IconMore_default from "../../assets/icons/IconMore.js";
5
- import { useButtonMoreId } from "./models/buttonMore.js";
6
- import { computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, useId, withCtx } from "vue";
2
+ import { hasAnchorLayer } from "../Modal/models/overlayRegistry.js";
3
+ import { useOverlay } from "../../utils/Overlay.js";
4
+ import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, markRaw, mergeProps, normalizeClass, openBlock, ref, resolveDynamicComponent, shallowRef, unref, useSlots, useTemplateRef } from "vue";
7
5
  //#region src/components/Button/WButtonMore.vue?vue&type=script&setup=true&lang.ts
8
6
  var _hoisted_1 = [
9
7
  "disabled",
@@ -21,29 +19,58 @@ var WButtonMore_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
21
19
  setup(__props, { expose: __expose, emit: __emit }) {
22
20
  const props = __props;
23
21
  const emit = __emit;
24
- const id = useId();
25
- const { current } = useButtonMoreId();
26
- const isOpen = computed(() => current.value === id);
27
- const toggle = () => {
28
- if (props.disabled) return;
29
- if (current.value === id) current.value = void 0;
30
- else current.value = id;
31
- if (!isOpen.value) emit("close");
22
+ const slots = useSlots();
23
+ const renderSlot = markRaw(() => slots.default?.());
24
+ const buttonRef = useTemplateRef("button");
25
+ const overlay = useOverlay();
26
+ let closeMenu = null;
27
+ const isOpen = ref(false);
28
+ const isCustomAnchor = ref(false);
29
+ const anchorOpened = shallowRef(null);
30
+ const isActive = computed(() => anchorOpened.value !== null && hasAnchorLayer(anchorOpened.value));
31
+ /** Opens the menu at `anchor` — such as a point made with `createPointAnchor` — instead of the `anchor` prop or the button. */
32
+ const open = (anchor) => {
33
+ const target = anchor ?? props.anchor;
34
+ const opened = target ?? buttonRef.value;
35
+ if (!opened) return;
36
+ const value = overlay.open({
37
+ present: "dropdown",
38
+ anchor: opened,
39
+ content: renderSlot,
40
+ dropdown: {
41
+ cornered: target !== void 0,
42
+ closeOnClick: true
43
+ },
44
+ onClose: () => {
45
+ if (closeMenu !== value) return;
46
+ closeMenu = null;
47
+ isOpen.value = false;
48
+ emit("close");
49
+ }
50
+ });
51
+ closeMenu = value;
52
+ anchorOpened.value = opened;
53
+ isOpen.value = value !== null;
54
+ isCustomAnchor.value = target !== void 0;
32
55
  };
33
56
  const close = () => {
34
- current.value = void 0;
35
- emit("close");
57
+ closeMenu?.();
36
58
  };
37
- const open = () => {
38
- current.value = id;
59
+ const toggle = () => {
60
+ if (props.disabled) return;
61
+ if (isOpen.value) close();
62
+ else open();
39
63
  };
40
64
  __expose({
41
65
  open,
42
66
  close,
43
- isOpen
67
+ isOpen,
68
+ /** The menu, or a confirm it handed off to, is open. */
69
+ isActive
44
70
  });
45
71
  return (_ctx, _cache) => {
46
72
  return openBlock(), createElementBlock("button", mergeProps(_ctx.$attrs, {
73
+ ref: "button",
47
74
  disabled: __props.disabled,
48
75
  class: [{
49
76
  "w-hover-circle-trigger cursor-pointer": !__props.disabled,
@@ -53,37 +80,11 @@ var WButtonMore_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
53
80
  "aria-disabled": __props.disabled,
54
81
  "aria-label": "More options",
55
82
  onClick: toggle
56
- }), [createVNode(WDropdownMenu_default, {
57
- "is-open": isOpen.value,
58
- "horizontal-align": __props.anchor ? unref(HorizontalAlign).RIGHT_INNER : unref(HorizontalAlign).LEFT_INNER,
59
- "update-align": false,
60
- "parent-element": __props.anchor
61
- }, {
62
- toggle: withCtx(() => [createElementVNode("div", { class: normalizeClass(["relative", {
63
- "w-hover-circle": !__props.disabled,
64
- "text-description": !isOpen.value || __props.anchor,
65
- "tone-primary text-tone": isOpen.value && !__props.anchor
66
- }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconMore_default)), { class: "square-[1.125em]" }))], 2)]),
67
- content: withCtx(({ isTop, isRight, isLeft }) => [createVNode(WClickOutside_default, {
68
- "no-filter": "",
69
- class: normalizeClass(["surface-raised overflow-hidden rounded-xl text-start font-normal shadow-md border border-solid border-line-raised", {
70
- "sm-not:-mr-4 my-4 -mr-5": !__props.anchor,
71
- "rounded-bl-none": __props.anchor && isRight && isTop,
72
- "rounded-tl-none": __props.anchor && isRight && !isTop,
73
- "rounded-br-none": __props.anchor && isLeft && isTop,
74
- "rounded-tr-none": __props.anchor && isLeft && !isTop
75
- }]),
76
- onClick: close
77
- }, {
78
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
79
- _: 3
80
- }, 8, ["class"])]),
81
- _: 3
82
- }, 8, [
83
- "is-open",
84
- "horizontal-align",
85
- "parent-element"
86
- ])], 16, _hoisted_1);
83
+ }), [createElementVNode("div", { class: normalizeClass(["relative", {
84
+ "w-hover-circle": !__props.disabled,
85
+ "text-description": !isOpen.value || isCustomAnchor.value,
86
+ "tone-primary text-tone": isOpen.value && !isCustomAnchor.value
87
+ }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon ?? unref(IconMore_default)), { class: "square-[1.125em]" }))], 2)], 16, _hoisted_1);
87
88
  };
88
89
  }
89
90
  });
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAyDA;AAmHA,OAAO,EAAC,KAAK,KAAK,EAA0C,MAAM,KAAK,CAAA;AAcvE,KAAK,WAAW,GAAG;IACf,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAC;AAyBJ,KAAK,WAAW,GAAG;IACjB,gHAAgH;IAChH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACpF,sDAAsD;IACtD,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACjF,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;CACzB,CAAC;AA6MF,QAAA,MAAM,UAAU;;;;;WApPJ,MAAM;oBAEG,MAAM;mBAEP,MAAM;qBAEJ,MAAM;6EAkP1B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAyDA;AAgHA,OAAO,EAAC,KAAK,KAAK,EAA0C,MAAM,KAAK,CAAA;AAWvE,KAAK,WAAW,GAAG;IACf,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAC;AAyBJ,KAAK,WAAW,GAAG;IACjB,gHAAgH;IAChH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACpF,sDAAsD;IACtD,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;IACjF,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;CACzB,CAAC;AA0LF,QAAA,MAAM,UAAU;;;;;WAjOJ,MAAM;oBAEG,MAAM;mBAEP,MAAM;qBAEJ,MAAM;6EA+N1B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,11 +1,9 @@
1
1
  import { numberFormatter, wBaseZIndex } from "../../utils/utils.js";
2
- import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
3
- import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
4
- import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
5
2
  import IconMore_default from "../../assets/icons/IconMore.js";
3
+ import WDropdownAdaptive_default from "../DropdownMenu/WDropdownAdaptive.vue.js";
6
4
  import WButtonSelectionAction_default from "./WButtonSelectionAction.vue.js";
7
5
  import WButtonSelectionState_default from "./WButtonSelectionState.vue.js";
8
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, normalizeClass, normalizeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
6
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, normalizeClass, normalizeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
9
7
  //#region src/components/Button/WButtonSelection.vue?vue&type=script&setup=true&lang.ts
10
8
  var _hoisted_1 = { class: "list:left---left-inner list:w---width-inner list:sticky grid w-full grid-cols-[1fr_auto] pb-3" };
11
9
  var _hoisted_2 = { class: "flex" };
@@ -24,51 +22,43 @@ var WButtonSelection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
24
22
  const props = __props;
25
23
  const baseZIndex = inject(wBaseZIndex, null);
26
24
  provide(wBaseZIndex, baseZIndex ?? 20);
27
- const isOpen = ref(false);
28
25
  const disableMessageValue = computed(() => props.selectedCount === 0 ? props.disableMessage : void 0);
26
+ const isOpen = ref(false);
29
27
  return (_ctx, _cache) => {
30
28
  return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
31
29
  disableMessage: disableMessageValue.value,
32
30
  cssClass: "border-l border-solid border-line first:border-l-0"
33
- }))), _ctx.$slots.more ? (openBlock(), createBlock(WDropdownMenu_default, {
31
+ }))), _ctx.$slots.more ? (openBlock(), createBlock(WDropdownAdaptive_default, {
34
32
  key: 0,
35
33
  "is-open": isOpen.value,
36
- "horizontal-align": unref(HorizontalAlign).RIGHT_INNER,
37
- class: normalizeClass(__props.moreToggleClass)
34
+ "close-on-click": "",
35
+ onClose: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
38
36
  }, {
39
37
  toggle: withCtx(() => [createVNode(WButtonSelectionAction_default, {
40
38
  title: "More",
41
39
  icon: markRaw(unref(IconMore_default)),
42
40
  "aria-expanded": isOpen.value,
43
41
  "disable-message": disableMessageValue.value,
44
- class: "border-l border-solid border-line",
42
+ class: normalizeClass(["border-l border-solid border-line", __props.moreToggleClass]),
45
43
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
46
44
  }, null, 8, [
47
45
  "icon",
48
46
  "aria-expanded",
49
- "disable-message"
47
+ "disable-message",
48
+ "class"
50
49
  ])]),
51
- content: withCtx(() => [createVNode(WClickOutside_default, {
52
- class: "surface-raised dropdown w-shine-hidden my-2 grid grid-cols-1 overflow-hidden rounded-xl shadow-md outline-1 outline-line-raised",
53
- onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
54
- }, {
55
- default: withCtx(() => [renderSlot(_ctx.$slots, "more", normalizeProps(guardReactiveProps({
56
- disableMessage: disableMessageValue.value,
57
- cssClass: "first:pt-2 last:pb-2"
58
- })))]),
59
- _: 3
60
- })]),
50
+ header: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" More ", -1)])]),
51
+ content: withCtx(() => [renderSlot(_ctx.$slots, "more", normalizeProps(guardReactiveProps({
52
+ disableMessage: disableMessageValue.value,
53
+ cssClass: "first:pt-2 last:pb-2"
54
+ })))]),
61
55
  _: 3
62
- }, 8, [
63
- "is-open",
64
- "horizontal-align",
65
- "class"
66
- ])) : createCommentVNode("", true)]), __props.selectedCount ? (openBlock(), createBlock(WButtonSelectionState_default, {
56
+ }, 8, ["is-open"])) : createCommentVNode("", true)]), __props.selectedCount ? (openBlock(), createBlock(WButtonSelectionState_default, {
67
57
  key: 0,
68
58
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("clear:selection"))
69
59
  }, {
70
60
  default: withCtx(() => [
71
- _cache[3] || (_cache[3] = createElementVNode("span", { class: "sm-not:hidden" }, "Selected\xA0", -1)),
61
+ _cache[4] || (_cache[4] = createElementVNode("span", { class: "sm-not:hidden" }, "Selected\xA0", -1)),
72
62
  createElementVNode("span", _hoisted_3, toDisplayString(unref(numberFormatter).format(__props.selectedCount)), 1),
73
63
  createElementVNode("span", _hoisted_4, "\xA0" + toDisplayString(__props.title) + toDisplayString(__props.selectedCount === 1 ? "" : "s"), 1)
74
64
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAwEA;AAAA,OA0HO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAO5C,KAAK,WAAW,GAAG;IACjB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sFAAsF;IACtF,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IACpB,4FAA4F;IAC5F,GAAG,CAAC,EAAE,MAAM,qBAAqB,CAAA;IACjC,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA0NF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonSelectionAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonSelectionAction.vue"],"names":[],"mappings":"AAyEA;AAAA,OA+HO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAS5C,KAAK,WAAW,GAAG;IACjB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sFAAsF;IACtF,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IACpB,4FAA4F;IAC5F,GAAG,CAAC,EAAE,MAAM,qBAAqB,CAAA;IACjC,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AASF,KAAK,WAAW,GAAG;IACjB,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA+NF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -2,13 +2,10 @@ import WRouterLink_default from "../RouterLink/WRouterLink.vue.js";
2
2
  import WShine_default from "../Shine/WShine.vue.js";
3
3
  import WTooltip_default from "../Tooltip/WTooltip.vue.js";
4
4
  import WSpinner_default from "../Spinner/WSpinner.vue.js";
5
- import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
5
+ import { useOverlayFrame } from "../../utils/Overlay.js";
6
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
6
7
  //#region src/components/Button/WButtonSelectionAction.vue?vue&type=script&setup=true&lang.ts
7
8
  var _hoisted_1 = {
8
- key: 0,
9
- class: "sm-not:hidden sm-not:in-[.dropdown]:block whitespace-nowrap font-normal"
10
- };
11
- var _hoisted_2 = {
12
9
  key: 0,
13
10
  class: "text-description absolute inset-0 z-10 flex items-center justify-center"
14
11
  };
@@ -31,6 +28,7 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
31
28
  },
32
29
  emits: ["click"],
33
30
  setup(__props) {
31
+ const overlay = useOverlayFrame();
34
32
  return (_ctx, _cache) => {
35
33
  return openBlock(), createBlock(resolveDynamicComponent(__props.to !== void 0 ? __props.disabled ? "a" : WRouterLink_default : __props.tag ?? "button"), mergeProps({ ...__props.disabled ? {} : __props.tag === "a" ? {
36
34
  href: __props.href,
@@ -53,8 +51,11 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
53
51
  onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && !__props.disableMessage && !__props.loading && _ctx.$emit("click", $event))
54
52
  }), {
55
53
  default: withCtx(() => [
56
- createElementVNode("div", { class: normalizeClass(["h---w-input-height sm-not:px---inner-margin z-10 flex items-center gap-2 px-(--w-list-padding,1rem)", { "opacity-0": __props.loading }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em]" })), __props.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("", true)], 2),
57
- __props.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(WSpinner_default, { class: "square-5" })])) : createCommentVNode("", true),
54
+ createElementVNode("div", { class: normalizeClass(["h---w-input-height sm-not:px---inner-margin z-10 flex items-center gap-2 px-(--w-list-padding,1rem)", { "opacity-0": __props.loading }]) }, [(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { class: "square-[1.25em]" })), __props.title ? (openBlock(), createElementBlock("div", {
55
+ key: 0,
56
+ class: normalizeClass(["whitespace-nowrap font-normal", !unref(overlay) ? "sm-not:hidden" : void 0])
57
+ }, toDisplayString(__props.title), 3)) : createCommentVNode("", true)], 2),
58
+ __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(WSpinner_default, { class: "square-5" })])) : createCommentVNode("", true),
58
59
  __props.disableMessage || __props.tooltipText ? (openBlock(), createBlock(WTooltip_default, {
59
60
  key: 1,
60
61
  text: __props.disableMessage ?? __props.tooltipText,
@@ -65,7 +66,7 @@ var WButtonSelectionAction_vue_vue_type_script_setup_true_lang_default = /*@__PU
65
66
  fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip")]),
66
67
  key: "0"
67
68
  } : void 0]), 1032, ["text"])) : createCommentVNode("", true),
68
- !__props.disabled && !__props.disableMessage && !__props.loading ? (openBlock(), createBlock(WShine_default, { key: 2 })) : createCommentVNode("", true)
69
+ !__props.disabled && !__props.disableMessage && !__props.loading && !unref(overlay) ? (openBlock(), createBlock(WShine_default, { key: 2 })) : createCommentVNode("", true)
69
70
  ]),
70
71
  _: 3
71
72
  }, 16, [