vue-devui 1.0.0-rc.9 → 1.0.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 (200) hide show
  1. package/README.md +163 -149
  2. package/alert/index.es.js +12 -7
  3. package/alert/index.umd.js +1 -1
  4. package/alert/style.css +1 -1
  5. package/auto-complete/index.es.js +8019 -254
  6. package/auto-complete/index.umd.js +29 -3
  7. package/auto-complete/style.css +1 -1
  8. package/badge/index.es.js +8 -2
  9. package/badge/index.umd.js +1 -1
  10. package/badge/style.css +1 -1
  11. package/button/index.es.js +104 -40
  12. package/button/index.umd.js +15 -15
  13. package/button/style.css +1 -1
  14. package/card/index.es.js +5 -1
  15. package/card/index.umd.js +1 -1
  16. package/card/style.css +1 -1
  17. package/checkbox/index.es.js +7772 -81
  18. package/checkbox/index.umd.js +27 -1
  19. package/checkbox/style.css +1 -1
  20. package/{date-picker → collapse}/index.d.ts +0 -0
  21. package/collapse/index.es.js +213 -0
  22. package/collapse/index.umd.js +1 -0
  23. package/{date-picker → collapse}/package.json +1 -1
  24. package/collapse/style.css +1 -0
  25. package/countdown/index.es.js +56 -13
  26. package/countdown/index.umd.js +1 -1
  27. package/date-picker-pro/index.d.ts +7 -0
  28. package/date-picker-pro/index.es.js +12020 -0
  29. package/date-picker-pro/index.umd.js +27 -0
  30. package/date-picker-pro/package.json +7 -0
  31. package/date-picker-pro/style.css +1 -0
  32. package/drawer/index.es.js +1 -1
  33. package/drawer/index.umd.js +1 -1
  34. package/drawer/style.css +1 -1
  35. package/dropdown/index.es.js +77 -121
  36. package/dropdown/index.umd.js +1 -1
  37. package/dropdown/style.css +1 -1
  38. package/editable-select/index.es.js +324 -104
  39. package/editable-select/index.umd.js +1 -1
  40. package/editable-select/style.css +1 -1
  41. package/form/index.es.js +91 -118
  42. package/form/index.umd.js +14 -14
  43. package/form/style.css +1 -1
  44. package/icon/index.es.js +106 -41
  45. package/icon/index.umd.js +1 -1
  46. package/icon/style.css +1 -1
  47. package/image-preview/style.css +1 -1
  48. package/input/index.es.js +8088 -169
  49. package/input/index.umd.js +27 -1
  50. package/input/style.css +1 -1
  51. package/input-number/index.es.js +8 -9
  52. package/input-number/index.umd.js +1 -1
  53. package/input-number/style.css +1 -1
  54. package/layout/index.es.js +1 -1
  55. package/layout/index.umd.js +1 -1
  56. package/loading/style.css +1 -1
  57. package/mention/index.d.ts +7 -0
  58. package/mention/index.es.js +8310 -0
  59. package/mention/index.umd.js +36 -0
  60. package/mention/package.json +7 -0
  61. package/mention/style.css +1 -0
  62. package/menu/index.d.ts +7 -0
  63. package/menu/index.es.js +934 -0
  64. package/menu/index.umd.js +1 -0
  65. package/menu/package.json +7 -0
  66. package/menu/style.css +1 -0
  67. package/message/index.d.ts +7 -0
  68. package/message/index.es.js +538 -0
  69. package/message/index.umd.js +1 -0
  70. package/message/package.json +7 -0
  71. package/message/style.css +1 -0
  72. package/modal/index.es.js +275 -185
  73. package/modal/index.umd.js +1 -1
  74. package/modal/style.css +1 -1
  75. package/notification/index.es.js +143 -72
  76. package/notification/index.umd.js +1 -1
  77. package/notification/style.css +1 -1
  78. package/nuxt/components/Collapse.js +3 -0
  79. package/nuxt/components/CollapseItem.js +3 -0
  80. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  81. package/nuxt/components/DatePickerPro.js +3 -0
  82. package/nuxt/components/IconGroup.js +3 -0
  83. package/nuxt/components/Mention.js +3 -0
  84. package/nuxt/components/Menu.js +3 -0
  85. package/nuxt/components/MenuItem.js +3 -0
  86. package/nuxt/components/Message.js +3 -0
  87. package/nuxt/components/OptionGroup.js +3 -0
  88. package/nuxt/components/RadioButton.js +3 -0
  89. package/nuxt/components/Step.js +3 -0
  90. package/nuxt/components/Steps.js +3 -0
  91. package/nuxt/components/SubMenu.js +3 -0
  92. package/nuxt/components/TABLE_TOKEN.js +3 -0
  93. package/nuxt/components/TimePicker.js +3 -0
  94. package/nuxt/components/TimeSelect.js +3 -0
  95. package/nuxt/components/animationInjectionKey.js +3 -0
  96. package/nuxt/components/collapseItemProps.js +3 -0
  97. package/nuxt/components/collapseProps.js +3 -0
  98. package/nuxt/components/datePickerProCommonProps.js +3 -0
  99. package/nuxt/components/datePickerProPanelProps.js +3 -0
  100. package/nuxt/components/datePickerProProps.js +3 -0
  101. package/nuxt/components/mentionProps.js +3 -0
  102. package/nuxt/components/messageProps.js +3 -0
  103. package/nuxt/components/roundInjectionKey.js +3 -0
  104. package/nuxt/components/skeletonItemProps.js +3 -0
  105. package/nuxt/components/stepProps.js +3 -0
  106. package/nuxt/components/stepsProps.js +3 -0
  107. package/nuxt/components/tableProps.js +3 -0
  108. package/nuxt/components/timerPickerPanelProps.js +3 -0
  109. package/nuxt/components/treeNodeProps.js +3 -0
  110. package/overlay/index.es.js +76 -139
  111. package/overlay/index.umd.js +1 -1
  112. package/overlay/style.css +1 -1
  113. package/package.json +6 -3
  114. package/pagination/index.es.js +175 -7
  115. package/pagination/index.umd.js +1 -1
  116. package/pagination/style.css +1 -1
  117. package/panel/style.css +1 -1
  118. package/popover/index.es.js +101 -162
  119. package/popover/index.umd.js +17 -17
  120. package/popover/style.css +1 -1
  121. package/progress/style.css +1 -1
  122. package/radio/index.es.js +7854 -58
  123. package/radio/index.umd.js +27 -1
  124. package/radio/style.css +1 -1
  125. package/rate/style.css +1 -1
  126. package/result/index.es.js +92 -41
  127. package/result/index.umd.js +1 -1
  128. package/result/style.css +1 -1
  129. package/search/index.es.js +3729 -1206
  130. package/search/index.umd.js +18 -18
  131. package/search/style.css +1 -1
  132. package/select/index.es.js +4426 -2501
  133. package/select/index.umd.js +17 -17
  134. package/select/style.css +1 -1
  135. package/skeleton/index.es.js +87 -261
  136. package/skeleton/index.umd.js +1 -1
  137. package/skeleton/style.css +1 -1
  138. package/slider/index.es.js +116 -143
  139. package/slider/index.umd.js +1 -1
  140. package/slider/style.css +1 -1
  141. package/splitter/index.es.js +256 -147
  142. package/splitter/index.umd.js +16 -16
  143. package/splitter/style.css +1 -1
  144. package/statistic/index.es.js +34 -16
  145. package/statistic/index.umd.js +1 -1
  146. package/statistic/style.css +1 -1
  147. package/status/style.css +1 -1
  148. package/steps/index.d.ts +7 -0
  149. package/steps/index.es.js +386 -0
  150. package/steps/index.umd.js +1 -0
  151. package/steps/package.json +7 -0
  152. package/steps/style.css +1 -0
  153. package/style.css +1 -1
  154. package/switch/index.es.js +7779 -60
  155. package/switch/index.umd.js +27 -1
  156. package/switch/style.css +1 -1
  157. package/table/index.es.js +4092 -1464
  158. package/table/index.umd.js +17 -17
  159. package/table/style.css +1 -1
  160. package/tabs/index.es.js +224 -77
  161. package/tabs/index.umd.js +1 -1
  162. package/tabs/style.css +1 -1
  163. package/tag/index.es.js +5 -1
  164. package/tag/index.umd.js +1 -1
  165. package/tag/style.css +1 -1
  166. package/textarea/index.es.js +3357 -1064
  167. package/textarea/index.umd.js +19 -19
  168. package/textarea/style.css +1 -1
  169. package/time-picker/index.d.ts +7 -0
  170. package/time-picker/index.es.js +9549 -0
  171. package/time-picker/index.umd.js +27 -0
  172. package/time-picker/package.json +7 -0
  173. package/time-picker/style.css +1 -0
  174. package/time-select/index.d.ts +7 -0
  175. package/time-select/index.es.js +9585 -0
  176. package/time-select/index.umd.js +27 -0
  177. package/time-select/package.json +7 -0
  178. package/time-select/style.css +1 -0
  179. package/timeline/index.es.js +92 -41
  180. package/timeline/index.umd.js +1 -1
  181. package/timeline/style.css +1 -1
  182. package/tooltip/index.es.js +100 -163
  183. package/tooltip/index.umd.js +16 -16
  184. package/tooltip/style.css +1 -1
  185. package/tree/index.es.js +11036 -608
  186. package/tree/index.umd.js +27 -1
  187. package/tree/style.css +1 -1
  188. package/upload/index.es.js +389 -105
  189. package/upload/index.umd.js +1 -1
  190. package/upload/style.css +1 -1
  191. package/vue-devui.es.js +17291 -9726
  192. package/vue-devui.umd.js +24 -23
  193. package/date-picker/index.es.js +0 -1298
  194. package/date-picker/index.umd.js +0 -1
  195. package/date-picker/style.css +0 -1
  196. package/nuxt/components/DatePicker.js +0 -3
  197. package/nuxt/components/StickSlider.js +0 -3
  198. package/nuxt/components/formControlProps.js +0 -3
  199. package/nuxt/components/overlayEmits.js +0 -3
  200. package/nuxt/components/overlayProps.js +0 -3
package/panel/style.css CHANGED
@@ -1 +1 @@
1
- .no-left-padding.devui-panel-body-collapse:before{content:none!important}.no-left-padding.devui-panel-body-collapse .devui-panel-content{border-left:none!important}.devui-panel{line-height:1.5;background-color:var(--devui-base-bg, #ffffff)}.devui-panel .devui-panel-heading{padding:12px 20px;color:var(--devui-text, #252b3a)}.devui-panel .devui-panel-heading d-panel-header{line-height:1.5}.devui-panel .devui-panel-body{display:flex;position:relative;border-top:1px solid var(--devui-dividing-line, #dfe1e6)}.devui-panel .devui-panel-body .devui-panel-content{line-height:1.5;padding:15px;background:var(--devui-base-bg, #ffffff);flex:1}.devui-panel .devui-panel-body.devui-panel-body-collapse:before{content:"";width:30px;height:100%}.devui-panel .devui-panel-body.devui-panel-body-collapse .devui-panel-content{border-left:2px solid var(--devui-dividing-line, #dfe1e6)}.devui-panel .devui-panel-footer{padding:10px 15px;color:var(--devui-text, #252b3a);background-color:var(--devui-area, #f8f8f8)}.devui-panel .devui-panel-footer d-panel-footer{line-height:1.5}.devui-panel.devui-panel-default .devui-panel-heading,.devui-panel.devui-panel-default .devui-panel-body{background-color:var(--devui-default-bg, #f3f6f8)}.devui-panel.devui-panel-primary .devui-panel-heading,.devui-panel.devui-panel-primary .devui-panel-body{background-color:var(--devui-primary-bg, #f2f5fc)}.devui-panel.devui-panel-primary .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-primary-line, #5e7ce0)}.devui-panel.devui-panel-info .devui-panel-heading,.devui-panel.devui-panel-info .devui-panel-body{background-color:var(--devui-info-bg, #f2f5fc)}.devui-panel.devui-panel-info .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-info-line, #5e7ce0)}.devui-panel.devui-panel-success .devui-panel-heading,.devui-panel.devui-panel-success .devui-panel-body{background-color:var(--devui-success-bg, #edfff9)}.devui-panel.devui-panel-success .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-success-line, #50d4ab)}.devui-panel.devui-panel-warning .devui-panel-heading,.devui-panel.devui-panel-warning .devui-panel-body{background-color:var(--devui-warning-bg, #fff3e8)}.devui-panel.devui-panel-warning .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-warning-line, #fa9841)}.devui-panel.devui-panel-danger .devui-panel-heading,.devui-panel.devui-panel-danger .devui-panel-body{background-color:var(--devui-danger-bg, #ffeeed)}.devui-panel.devui-panel-danger .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-danger-line, #f66f6a)}.devui-panel .devui-panel-leave-active{transition:all .3s ease-in-out;animation:panelUpOut .3s ease-in-out;animation-fill-mode:both}.devui-panel .devui-panel-enter-active{transition:all .3s ease-in-out;animation:panelUpIn .3s ease-in-out;animation-fill-mode:both}@keyframes panelUpOut{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(0);transform-origin:0% 0%;opacity:0}}@keyframes panelUpIn{0%{transform:scaleY(0);transform-origin:0% 0%;opacity:0}to{transform:scaleY(1);transform-origin:0% 0%;opacity:1}}
1
+ .no-left-padding.devui-panel-body-collapse:before{content:none!important}.no-left-padding.devui-panel-body-collapse .devui-panel-content{border-left:none!important}.devui-panel{line-height:1.5;background-color:var(--devui-base-bg, #ffffff)}.devui-panel .devui-panel-heading{padding:12px 20px;color:var(--devui-text, #252b3a)}.devui-panel .devui-panel-heading d-panel-header{line-height:1.5}.devui-panel .devui-panel-body{display:flex;position:relative;border-top:1px solid var(--devui-dividing-line, #f2f2f3)}.devui-panel .devui-panel-body .devui-panel-content{line-height:1.5;padding:15px;background:var(--devui-base-bg, #ffffff);flex:1}.devui-panel .devui-panel-body.devui-panel-body-collapse:before{content:"";width:30px;height:100%}.devui-panel .devui-panel-body.devui-panel-body-collapse .devui-panel-content{border-left:2px solid var(--devui-dividing-line, #f2f2f3)}.devui-panel .devui-panel-footer{padding:10px 15px;color:var(--devui-text, #252b3a);background-color:var(--devui-area, #f8f8f8)}.devui-panel .devui-panel-footer d-panel-footer{line-height:1.5}.devui-panel.devui-panel-default .devui-panel-heading,.devui-panel.devui-panel-default .devui-panel-body{background-color:var(--devui-default-bg, #f7f8fa)}.devui-panel.devui-panel-primary .devui-panel-heading,.devui-panel.devui-panel-primary .devui-panel-body{background-color:var(--devui-primary-bg, #f2f5fc)}.devui-panel.devui-panel-primary .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-primary-line, #5e7ce0)}.devui-panel.devui-panel-info .devui-panel-heading,.devui-panel.devui-panel-info .devui-panel-body{background-color:var(--devui-info-bg, #f2f5fc)}.devui-panel.devui-panel-info .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-info-line, #5e7ce0)}.devui-panel.devui-panel-success .devui-panel-heading,.devui-panel.devui-panel-success .devui-panel-body{background-color:var(--devui-success-bg, #edfff9)}.devui-panel.devui-panel-success .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-success-line, #50d4ab)}.devui-panel.devui-panel-warning .devui-panel-heading,.devui-panel.devui-panel-warning .devui-panel-body{background-color:var(--devui-warning-bg, #fff3e8)}.devui-panel.devui-panel-warning .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-warning-line, #fa9841)}.devui-panel.devui-panel-danger .devui-panel-heading,.devui-panel.devui-panel-danger .devui-panel-body{background-color:var(--devui-danger-bg, #ffeeed)}.devui-panel.devui-panel-danger .devui-panel-body-collapse .devui-panel-content{border-color:var(--devui-danger-line, #f66f6a)}.devui-panel .devui-panel-leave-active{transition:all .3s ease-in-out;animation:panelUpOut .3s ease-in-out;animation-fill-mode:both}.devui-panel .devui-panel-enter-active{transition:all .3s ease-in-out;animation:panelUpIn .3s ease-in-out;animation-fill-mode:both}@keyframes panelUpOut{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(0);transform-origin:0% 0%;opacity:0}}@keyframes panelUpIn{0%{transform:scaleY(0);transform-origin:0% 0%;opacity:0}to{transform:scaleY(1);transform-origin:0% 0%;opacity:1}}
@@ -1,24 +1,60 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, createVNode, Teleport, Transition, renderSlot, isVNode, computed, onMounted, watch, onUnmounted, ref, unref, nextTick, mergeProps, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, toRefs, provide } from "vue";
1
+ import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, provide, Teleport, withModifiers } from "vue";
21
2
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
3
+ const fixedOverlayProps = {
4
+ modelValue: {
5
+ type: Boolean,
6
+ default: false
7
+ },
8
+ lockScroll: {
9
+ type: Boolean,
10
+ default: true
11
+ },
12
+ closeOnClickOverlay: {
13
+ type: Boolean,
14
+ default: true
15
+ }
16
+ };
17
+ function lockScroll() {
18
+ if (document.documentElement.scrollHeight > document.documentElement.clientHeight) {
19
+ const scrollTop = document.documentElement.scrollTop;
20
+ const style = document.documentElement.getAttribute("style");
21
+ document.documentElement.style.position = "fixed";
22
+ document.documentElement.style.top = `-${scrollTop}px`;
23
+ document.documentElement.style.width = document.documentElement.style.width || "100%";
24
+ document.documentElement.style.overflowY = "scroll";
25
+ return () => {
26
+ if (style) {
27
+ document.documentElement.setAttribute("style", style);
28
+ } else {
29
+ document.documentElement.removeAttribute("style");
30
+ }
31
+ document.documentElement.scrollTop = scrollTop;
32
+ };
33
+ }
34
+ return;
35
+ }
36
+ function useFixedOverlay(props, ctx) {
37
+ let lockScrollCb;
38
+ const onClick = (event) => {
39
+ event.preventDefault();
40
+ ctx.emit("click", event);
41
+ if (props.closeOnClickOverlay) {
42
+ ctx.emit("update:modelValue", false);
43
+ }
44
+ };
45
+ const removeBodyAdditions = () => {
46
+ lockScrollCb == null ? void 0 : lockScrollCb();
47
+ };
48
+ watch(() => props.modelValue, (val) => {
49
+ if (val) {
50
+ props.lockScroll && (lockScrollCb = lockScroll());
51
+ } else {
52
+ removeBodyAdditions();
53
+ }
54
+ });
55
+ onUnmounted(removeBodyAdditions);
56
+ return { onClick };
57
+ }
22
58
  function createBem(namespace, element, modifier) {
23
59
  let cls = namespace;
24
60
  if (element) {
@@ -42,130 +78,31 @@ function useNamespace(block, needDot = false) {
42
78
  em
43
79
  };
44
80
  }
45
- var baseOverlay = "";
46
- function _isSlot(s) {
47
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
48
- }
49
- const CommonOverlay = defineComponent({
50
- setup(props, ctx) {
51
- const ns2 = useNamespace("overlay");
52
- return () => {
53
- let _slot;
54
- return createVNode(Teleport, {
55
- "to": "#d-overlay-anchor"
56
- }, {
57
- default: () => [createVNode(Transition, {
58
- "name": ns2.e("fade")
59
- }, _isSlot(_slot = renderSlot(ctx.slots, "default")) ? _slot : {
60
- default: () => [_slot]
61
- })]
62
- });
63
- };
64
- }
65
- });
66
- const overlayProps = {
67
- visible: {
68
- type: Boolean
69
- },
70
- backgroundBlock: {
71
- type: Boolean,
72
- default: false
73
- },
74
- backgroundClass: {
75
- type: String,
76
- default: ""
77
- },
78
- backgroundStyle: {
79
- type: [String, Object]
80
- },
81
- onBackdropClick: {
82
- type: Function
83
- },
84
- backdropClose: {
85
- type: Boolean,
86
- default: true
87
- },
88
- hasBackdrop: {
89
- type: Boolean,
90
- default: true
91
- }
92
- };
93
- const fixedOverlayProps = __spreadProps(__spreadValues({}, overlayProps), {
94
- overlayStyle: {
95
- type: [String, Object],
96
- default: void 0
97
- }
98
- });
99
- const overlayEmits = ["update:visible", "backdropClick"];
100
- function useOverlayLogic(props, ctx) {
101
- const ns2 = useNamespace("overlay");
102
- const backgroundClass = computed(() => {
103
- return [ns2.e("background"), props.backgroundClass, !props.hasBackdrop ? ns2.em("background", "disabled") : ns2.em("background", "color")];
104
- });
105
- const overlayClass = computed(() => {
106
- return ns2.b();
107
- });
108
- const handleBackdropClick = (event) => {
109
- var _a;
110
- event.preventDefault();
111
- (_a = props.onBackdropClick) == null ? void 0 : _a.call(props);
112
- if (props.backdropClose) {
113
- ctx.emit("update:visible", false);
114
- }
115
- };
116
- const handleOverlayBubbleCancel = (event) => event.cancelBubble = true;
117
- onMounted(() => {
118
- const body = document.body;
119
- const originOverflow = body.style.overflow;
120
- const originPosition = body.style.position;
121
- watch([() => props.visible, () => props.backgroundBlock], ([visible, backgroundBlock]) => {
122
- if (backgroundBlock) {
123
- const top = body.getBoundingClientRect().y;
124
- if (visible) {
125
- body.style.overflowY = "scroll";
126
- body.style.position = visible ? "fixed" : "";
127
- body.style.top = `${top}px`;
128
- } else {
129
- body.style.overflowY = originOverflow;
130
- body.style.position = originPosition;
131
- body.style.top = "";
132
- window.scrollTo(0, -top);
133
- }
134
- }
135
- });
136
- onUnmounted(() => {
137
- document.body.style.overflow = originOverflow;
138
- });
139
- });
140
- return {
141
- backgroundClass,
142
- overlayClass,
143
- handleBackdropClick,
144
- handleOverlayBubbleCancel
145
- };
146
- }
147
81
  var fixedOverlay = "";
148
82
  defineComponent({
149
83
  name: "DFixedOverlay",
84
+ inheritAttrs: false,
150
85
  props: fixedOverlayProps,
151
- emits: overlayEmits,
86
+ emits: ["update:modelValue", "click"],
152
87
  setup(props, ctx) {
153
88
  const {
154
- backgroundClass,
155
- overlayClass,
156
- handleBackdropClick,
157
- handleOverlayBubbleCancel
158
- } = useOverlayLogic(props, ctx);
159
- return () => createVNode(CommonOverlay, null, {
160
- default: () => [props.visible && createVNode("div", {
161
- "class": backgroundClass.value,
162
- "style": props.backgroundStyle,
163
- "onClick": handleBackdropClick
164
- }, [createVNode("div", {
165
- "class": overlayClass.value,
166
- "style": props.overlayStyle,
167
- "onClick": handleOverlayBubbleCancel
168
- }, [renderSlot(ctx.slots, "default")])])]
89
+ modelValue
90
+ } = toRefs(props);
91
+ const ns2 = useNamespace("fixed-overlay");
92
+ const {
93
+ onClick
94
+ } = useFixedOverlay(props, ctx);
95
+ return () => createVNode(Transition, {
96
+ "name": ns2.m("fade")
97
+ }, {
98
+ default: () => {
99
+ var _a, _b;
100
+ return [modelValue.value && createVNode("div", mergeProps({
101
+ "class": ns2.b()
102
+ }, ctx.attrs, {
103
+ "onClick": onClick
104
+ }), [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)])];
105
+ }
169
106
  });
170
107
  }
171
108
  });
@@ -1133,7 +1070,7 @@ var lodash = { exports: {} };
1133
1070
  }
1134
1071
  var runInContext = function runInContext2(context) {
1135
1072
  context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
1136
- var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
1073
+ var Array2 = context.Array, Date = context.Date, Error = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError = context.TypeError;
1137
1074
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
1138
1075
  var coreJsData = context["__core-js_shared__"];
1139
1076
  var funcToString = funcProto.toString;
@@ -1147,7 +1084,7 @@ var lodash = { exports: {} };
1147
1084
  var objectCtorString = funcToString.call(Object2);
1148
1085
  var oldDash = root._;
1149
1086
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1150
- var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
1087
+ var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
1151
1088
  var defineProperty = function() {
1152
1089
  try {
1153
1090
  var func = getNative(Object2, "defineProperty");
@@ -1157,11 +1094,11 @@ var lodash = { exports: {} };
1157
1094
  }
1158
1095
  }();
1159
1096
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
1160
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
1161
- var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
1162
- var metaMap = WeakMap2 && new WeakMap2();
1097
+ var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
1098
+ var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
1099
+ var metaMap = WeakMap && new WeakMap();
1163
1100
  var realNames = {};
1164
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
1101
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
1165
1102
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1166
1103
  function lodash2(value) {
1167
1104
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -1614,7 +1551,7 @@ var lodash = { exports: {} };
1614
1551
  }
1615
1552
  function baseDelay(func, wait, args) {
1616
1553
  if (typeof func != "function") {
1617
- throw new TypeError2(FUNC_ERROR_TEXT);
1554
+ throw new TypeError(FUNC_ERROR_TEXT);
1618
1555
  }
1619
1556
  return setTimeout(function() {
1620
1557
  func.apply(undefined$1, args);
@@ -2409,7 +2346,7 @@ var lodash = { exports: {} };
2409
2346
  }
2410
2347
  function cloneArrayBuffer(arrayBuffer) {
2411
2348
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2412
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2349
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2413
2350
  return result2;
2414
2351
  }
2415
2352
  function cloneDataView(dataView, isDeep) {
@@ -2658,7 +2595,7 @@ var lodash = { exports: {} };
2658
2595
  while (index2--) {
2659
2596
  var func = funcs[index2];
2660
2597
  if (typeof func != "function") {
2661
- throw new TypeError2(FUNC_ERROR_TEXT);
2598
+ throw new TypeError(FUNC_ERROR_TEXT);
2662
2599
  }
2663
2600
  if (prereq && !wrapper && getFuncName(func) == "wrapper") {
2664
2601
  var wrapper = new LodashWrapper([], true);
@@ -2871,7 +2808,7 @@ var lodash = { exports: {} };
2871
2808
  function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) {
2872
2809
  var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
2873
2810
  if (!isBindKey && typeof func != "function") {
2874
- throw new TypeError2(FUNC_ERROR_TEXT);
2811
+ throw new TypeError(FUNC_ERROR_TEXT);
2875
2812
  }
2876
2813
  var length = partials ? partials.length : 0;
2877
2814
  if (!length) {
@@ -2991,7 +2928,7 @@ var lodash = { exports: {} };
2991
2928
  object = object.buffer;
2992
2929
  other = other.buffer;
2993
2930
  case arrayBufferTag:
2994
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
2931
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
2995
2932
  return false;
2996
2933
  }
2997
2934
  return true;
@@ -3153,7 +3090,7 @@ var lodash = { exports: {} };
3153
3090
  return result2;
3154
3091
  };
3155
3092
  var getTag = baseGetTag;
3156
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
3093
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
3157
3094
  getTag = function(value) {
3158
3095
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3159
3096
  if (ctorString) {
@@ -4138,7 +4075,7 @@ var lodash = { exports: {} };
4138
4075
  };
4139
4076
  function after(n, func) {
4140
4077
  if (typeof func != "function") {
4141
- throw new TypeError2(FUNC_ERROR_TEXT);
4078
+ throw new TypeError(FUNC_ERROR_TEXT);
4142
4079
  }
4143
4080
  n = toInteger(n);
4144
4081
  return function() {
@@ -4155,7 +4092,7 @@ var lodash = { exports: {} };
4155
4092
  function before(n, func) {
4156
4093
  var result2;
4157
4094
  if (typeof func != "function") {
4158
- throw new TypeError2(FUNC_ERROR_TEXT);
4095
+ throw new TypeError(FUNC_ERROR_TEXT);
4159
4096
  }
4160
4097
  n = toInteger(n);
4161
4098
  return function() {
@@ -4199,7 +4136,7 @@ var lodash = { exports: {} };
4199
4136
  function debounce(func, wait, options) {
4200
4137
  var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
4201
4138
  if (typeof func != "function") {
4202
- throw new TypeError2(FUNC_ERROR_TEXT);
4139
+ throw new TypeError(FUNC_ERROR_TEXT);
4203
4140
  }
4204
4141
  wait = toNumber(wait) || 0;
4205
4142
  if (isObject2(options)) {
@@ -4288,7 +4225,7 @@ var lodash = { exports: {} };
4288
4225
  }
4289
4226
  function memoize(func, resolver) {
4290
4227
  if (typeof func != "function" || resolver != null && typeof resolver != "function") {
4291
- throw new TypeError2(FUNC_ERROR_TEXT);
4228
+ throw new TypeError(FUNC_ERROR_TEXT);
4292
4229
  }
4293
4230
  var memoized = function() {
4294
4231
  var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
@@ -4305,7 +4242,7 @@ var lodash = { exports: {} };
4305
4242
  memoize.Cache = MapCache;
4306
4243
  function negate(predicate) {
4307
4244
  if (typeof predicate != "function") {
4308
- throw new TypeError2(FUNC_ERROR_TEXT);
4245
+ throw new TypeError(FUNC_ERROR_TEXT);
4309
4246
  }
4310
4247
  return function() {
4311
4248
  var args = arguments;
@@ -4349,14 +4286,14 @@ var lodash = { exports: {} };
4349
4286
  });
4350
4287
  function rest(func, start) {
4351
4288
  if (typeof func != "function") {
4352
- throw new TypeError2(FUNC_ERROR_TEXT);
4289
+ throw new TypeError(FUNC_ERROR_TEXT);
4353
4290
  }
4354
4291
  start = start === undefined$1 ? start : toInteger(start);
4355
4292
  return baseRest(func, start);
4356
4293
  }
4357
4294
  function spread(func, start) {
4358
4295
  if (typeof func != "function") {
4359
- throw new TypeError2(FUNC_ERROR_TEXT);
4296
+ throw new TypeError(FUNC_ERROR_TEXT);
4360
4297
  }
4361
4298
  start = start == null ? 0 : nativeMax(toInteger(start), 0);
4362
4299
  return baseRest(function(args) {
@@ -4370,7 +4307,7 @@ var lodash = { exports: {} };
4370
4307
  function throttle(func, wait, options) {
4371
4308
  var leading = true, trailing = true;
4372
4309
  if (typeof func != "function") {
4373
- throw new TypeError2(FUNC_ERROR_TEXT);
4310
+ throw new TypeError(FUNC_ERROR_TEXT);
4374
4311
  }
4375
4312
  if (isObject2(options)) {
4376
4313
  leading = "leading" in options ? !!options.leading : leading;
@@ -4512,7 +4449,7 @@ var lodash = { exports: {} };
4512
4449
  }
4513
4450
  function isNative(value) {
4514
4451
  if (isMaskable(value)) {
4515
- throw new Error2(CORE_ERROR_TEXT);
4452
+ throw new Error(CORE_ERROR_TEXT);
4516
4453
  }
4517
4454
  return baseIsNative(value);
4518
4455
  }
@@ -5050,7 +4987,7 @@ var lodash = { exports: {} };
5050
4987
  if (!variable) {
5051
4988
  source = "with (obj) {\n" + source + "\n}\n";
5052
4989
  } else if (reForbiddenIdentifierChars.test(variable)) {
5053
- throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
4990
+ throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
5054
4991
  }
5055
4992
  source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
5056
4993
  source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
@@ -5169,7 +5106,7 @@ var lodash = { exports: {} };
5169
5106
  try {
5170
5107
  return apply(func, undefined$1, args);
5171
5108
  } catch (e) {
5172
- return isError(e) ? e : new Error2(e);
5109
+ return isError(e) ? e : new Error(e);
5173
5110
  }
5174
5111
  });
5175
5112
  var bindAll = flatRest(function(object, methodNames) {
@@ -5183,7 +5120,7 @@ var lodash = { exports: {} };
5183
5120
  var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee();
5184
5121
  pairs = !length ? [] : arrayMap(pairs, function(pair) {
5185
5122
  if (typeof pair[1] != "function") {
5186
- throw new TypeError2(FUNC_ERROR_TEXT);
5123
+ throw new TypeError(FUNC_ERROR_TEXT);
5187
5124
  }
5188
5125
  return [toIteratee(pair[0]), pair[1]];
5189
5126
  });
@@ -6100,6 +6037,8 @@ var Popover = defineComponent({
6100
6037
  "style": overlayStyles.value
6101
6038
  }, attrs, {
6102
6039
  "onPositionChange": handlePositionChange,
6040
+ "onClick": withModifiers(() => ({}), ["stop"]),
6041
+ "onPointerup": withModifiers(() => ({}), ["stop"]),
6103
6042
  "onMouseenter": onMouseenter,
6104
6043
  "onMouseleave": onMouseleave
6105
6044
  }), {