vue-devui 1.0.0-rc.8 → 1.0.1

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 (228) hide show
  1. package/README.md +188 -149
  2. package/alert/index.es.js +14 -9
  3. package/alert/index.umd.js +1 -1
  4. package/alert/style.css +1 -1
  5. package/auto-complete/index.es.js +8392 -418
  6. package/auto-complete/index.umd.js +29 -5
  7. package/auto-complete/style.css +1 -1
  8. package/avatar/index.es.js +59 -74
  9. package/avatar/index.umd.js +1 -1
  10. package/badge/index.es.js +10 -4
  11. package/badge/index.umd.js +1 -1
  12. package/badge/style.css +1 -1
  13. package/button/index.es.js +191 -53
  14. package/button/index.umd.js +17 -17
  15. package/button/style.css +1 -1
  16. package/card/index.es.js +7 -3
  17. package/card/index.umd.js +1 -1
  18. package/card/style.css +1 -1
  19. package/checkbox/index.es.js +8050 -241
  20. package/checkbox/index.umd.js +27 -1
  21. package/checkbox/style.css +1 -1
  22. package/{date-picker → collapse}/index.d.ts +0 -0
  23. package/collapse/index.es.js +213 -0
  24. package/collapse/index.umd.js +1 -0
  25. package/{date-picker → collapse}/package.json +1 -1
  26. package/collapse/style.css +1 -0
  27. package/countdown/index.es.js +56 -13
  28. package/countdown/index.umd.js +1 -1
  29. package/date-picker-pro/index.d.ts +7 -0
  30. package/date-picker-pro/index.es.js +12022 -0
  31. package/date-picker-pro/index.umd.js +27 -0
  32. package/date-picker-pro/package.json +7 -0
  33. package/date-picker-pro/style.css +1 -0
  34. package/drawer/index.es.js +24 -7
  35. package/drawer/index.umd.js +1 -1
  36. package/drawer/style.css +1 -1
  37. package/dropdown/index.es.js +190 -165
  38. package/dropdown/index.umd.js +1 -1
  39. package/dropdown/style.css +1 -1
  40. package/editable-select/index.es.js +785 -145
  41. package/editable-select/index.umd.js +1 -1
  42. package/editable-select/style.css +1 -1
  43. package/form/index.es.js +399 -300
  44. package/form/index.umd.js +16 -16
  45. package/form/style.css +1 -1
  46. package/fullscreen/index.es.js +2 -2
  47. package/fullscreen/index.umd.js +1 -1
  48. package/grid/index.es.js +8 -6
  49. package/grid/index.umd.js +1 -1
  50. package/icon/index.es.js +185 -23
  51. package/icon/index.umd.js +1 -1
  52. package/icon/style.css +1 -0
  53. package/image-preview/index.es.js +2 -2
  54. package/image-preview/index.umd.js +1 -1
  55. package/image-preview/style.css +1 -1
  56. package/input/index.es.js +8220 -45
  57. package/input/index.umd.js +27 -1
  58. package/input/style.css +1 -1
  59. package/input-number/index.es.js +279 -204
  60. package/input-number/index.umd.js +1 -1
  61. package/input-number/style.css +1 -1
  62. package/layout/index.es.js +3 -3
  63. package/layout/index.umd.js +1 -1
  64. package/loading/index.es.js +53 -53
  65. package/loading/index.umd.js +1 -1
  66. package/loading/style.css +1 -1
  67. package/mention/index.d.ts +7 -0
  68. package/mention/index.es.js +8319 -0
  69. package/mention/index.umd.js +36 -0
  70. package/mention/package.json +7 -0
  71. package/mention/style.css +1 -0
  72. package/menu/index.d.ts +7 -0
  73. package/menu/index.es.js +921 -0
  74. package/menu/index.umd.js +1 -0
  75. package/menu/package.json +7 -0
  76. package/menu/style.css +1 -0
  77. package/message/index.d.ts +7 -0
  78. package/message/index.es.js +539 -0
  79. package/message/index.umd.js +1 -0
  80. package/message/package.json +7 -0
  81. package/message/style.css +1 -0
  82. package/modal/index.es.js +451 -173
  83. package/modal/index.umd.js +1 -1
  84. package/modal/style.css +1 -1
  85. package/notification/index.es.js +212 -70
  86. package/notification/index.umd.js +1 -1
  87. package/notification/style.css +1 -1
  88. package/nuxt/components/CheckboxButton.js +3 -0
  89. package/nuxt/components/Collapse.js +3 -0
  90. package/nuxt/components/CollapseItem.js +3 -0
  91. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  92. package/nuxt/components/DatePickerPro.js +3 -0
  93. package/nuxt/components/Icon.js +1 -0
  94. package/nuxt/components/IconGroup.js +3 -0
  95. package/nuxt/components/LABEL_DATA.js +3 -0
  96. package/nuxt/components/Mention.js +3 -0
  97. package/nuxt/components/Menu.js +3 -0
  98. package/nuxt/components/MenuItem.js +3 -0
  99. package/nuxt/components/Message.js +3 -0
  100. package/nuxt/components/Option.js +3 -0
  101. package/nuxt/components/OptionGroup.js +3 -0
  102. package/nuxt/components/RadioButton.js +3 -0
  103. package/nuxt/components/Step.js +3 -0
  104. package/nuxt/components/Steps.js +3 -0
  105. package/nuxt/components/SubMenu.js +3 -0
  106. package/nuxt/components/TABLE_TOKEN.js +3 -0
  107. package/nuxt/components/TimePicker.js +3 -0
  108. package/nuxt/components/TimeSelect.js +3 -0
  109. package/nuxt/components/animationInjectionKey.js +3 -0
  110. package/nuxt/components/collapseItemProps.js +3 -0
  111. package/nuxt/components/collapseProps.js +3 -0
  112. package/nuxt/components/datePickerProCommonProps.js +3 -0
  113. package/nuxt/components/datePickerProPanelProps.js +3 -0
  114. package/nuxt/components/datePickerProProps.js +3 -0
  115. package/nuxt/components/iconProps.js +1 -0
  116. package/nuxt/components/mentionProps.js +3 -0
  117. package/nuxt/components/messageProps.js +3 -0
  118. package/nuxt/components/paginationInjectionKey.js +3 -0
  119. package/nuxt/components/roundInjectionKey.js +3 -0
  120. package/nuxt/components/skeletonItemProps.js +3 -0
  121. package/nuxt/components/stepProps.js +3 -0
  122. package/nuxt/components/stepsProps.js +3 -0
  123. package/nuxt/components/svgIconProps.js +3 -0
  124. package/nuxt/components/tableProps.js +3 -0
  125. package/nuxt/components/timerPickerPanelProps.js +3 -0
  126. package/nuxt/components/treeNodeProps.js +3 -0
  127. package/overlay/index.es.js +89 -142
  128. package/overlay/index.umd.js +1 -1
  129. package/overlay/style.css +1 -1
  130. package/package.json +8 -4
  131. package/pagination/index.es.js +10180 -129
  132. package/pagination/index.umd.js +27 -1
  133. package/pagination/style.css +1 -1
  134. package/panel/index.es.js +4 -0
  135. package/panel/index.umd.js +1 -1
  136. package/panel/style.css +1 -1
  137. package/popover/index.es.js +262 -229
  138. package/popover/index.umd.js +15 -15
  139. package/popover/style.css +1 -1
  140. package/progress/index.es.js +2 -2
  141. package/progress/index.umd.js +2 -2
  142. package/progress/style.css +1 -1
  143. package/radio/index.es.js +7954 -156
  144. package/radio/index.umd.js +27 -1
  145. package/radio/style.css +1 -1
  146. package/rate/index.es.js +16 -8
  147. package/rate/index.umd.js +1 -1
  148. package/rate/style.css +1 -1
  149. package/result/index.es.js +170 -22
  150. package/result/index.umd.js +1 -1
  151. package/result/style.css +1 -1
  152. package/search/index.es.js +3829 -1042
  153. package/search/index.umd.js +18 -18
  154. package/search/style.css +1 -1
  155. package/select/index.es.js +9202 -495
  156. package/select/index.umd.js +27 -1
  157. package/select/style.css +1 -1
  158. package/skeleton/index.es.js +89 -263
  159. package/skeleton/index.umd.js +1 -1
  160. package/skeleton/style.css +1 -1
  161. package/slider/index.es.js +118 -145
  162. package/slider/index.umd.js +1 -1
  163. package/slider/style.css +1 -1
  164. package/splitter/index.es.js +454 -233
  165. package/splitter/index.umd.js +13 -13
  166. package/splitter/style.css +1 -1
  167. package/statistic/index.es.js +34 -16
  168. package/statistic/index.umd.js +1 -1
  169. package/statistic/style.css +1 -1
  170. package/status/index.es.js +6 -2
  171. package/status/index.umd.js +1 -1
  172. package/status/style.css +1 -1
  173. package/steps/index.d.ts +7 -0
  174. package/steps/index.es.js +387 -0
  175. package/steps/index.umd.js +1 -0
  176. package/steps/package.json +7 -0
  177. package/steps/style.css +1 -0
  178. package/style.css +1 -1
  179. package/switch/index.es.js +7787 -62
  180. package/switch/index.umd.js +27 -1
  181. package/switch/style.css +1 -1
  182. package/table/index.es.js +5225 -1726
  183. package/table/index.umd.js +18 -18
  184. package/table/style.css +1 -1
  185. package/tabs/index.es.js +303 -102
  186. package/tabs/index.umd.js +1 -1
  187. package/tabs/style.css +1 -1
  188. package/tag/index.es.js +11 -8
  189. package/tag/index.umd.js +1 -1
  190. package/tag/style.css +1 -1
  191. package/textarea/index.es.js +7876 -41
  192. package/textarea/index.umd.js +35 -1
  193. package/textarea/style.css +1 -1
  194. package/time-picker/index.d.ts +7 -0
  195. package/time-picker/index.es.js +9549 -0
  196. package/time-picker/index.umd.js +27 -0
  197. package/time-picker/package.json +7 -0
  198. package/time-picker/style.css +1 -0
  199. package/time-select/index.d.ts +7 -0
  200. package/time-select/index.es.js +9607 -0
  201. package/time-select/index.umd.js +27 -0
  202. package/time-select/package.json +7 -0
  203. package/time-select/style.css +1 -0
  204. package/timeline/index.es.js +170 -22
  205. package/timeline/index.umd.js +1 -1
  206. package/timeline/style.css +1 -1
  207. package/tooltip/index.es.js +286 -238
  208. package/tooltip/index.umd.js +14 -14
  209. package/tooltip/style.css +1 -1
  210. package/tree/index.es.js +11342 -793
  211. package/tree/index.umd.js +27 -1
  212. package/tree/style.css +1 -1
  213. package/upload/index.es.js +458 -102
  214. package/upload/index.umd.js +1 -1
  215. package/upload/style.css +1 -1
  216. package/vue-devui.es.js +20475 -11072
  217. package/vue-devui.umd.js +31 -24
  218. package/date-picker/index.es.js +0 -1097
  219. package/date-picker/index.umd.js +0 -1
  220. package/date-picker/style.css +0 -1
  221. package/nuxt/components/DatePicker.js +0 -3
  222. package/nuxt/components/FormControl.js +0 -3
  223. package/nuxt/components/FormLabel.js +0 -3
  224. package/nuxt/components/Loading.js +0 -3
  225. package/nuxt/components/StickSlider.js +0 -3
  226. package/nuxt/components/formControlProps.js +0 -3
  227. package/nuxt/components/overlayEmits.js +0 -3
  228. package/nuxt/components/overlayProps.js +0 -3
@@ -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, toRefs, Fragment } from "vue";
1
+ import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, unref, nextTick, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, provide, Teleport } 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) {
@@ -29,8 +65,8 @@ function createBem(namespace, element, modifier) {
29
65
  }
30
66
  return cls;
31
67
  }
32
- function useNamespace(block) {
33
- const namespace = `devui-${block}`;
68
+ function useNamespace(block, needDot = false) {
69
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
34
70
  const b = () => createBem(namespace);
35
71
  const e = (element) => element ? createBem(namespace, element) : "";
36
72
  const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
@@ -42,130 +78,31 @@ function useNamespace(block) {
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
  });
@@ -200,6 +137,10 @@ const flexibleOverlayProps = {
200
137
  isArrowCenter: {
201
138
  type: Boolean,
202
139
  default: true
140
+ },
141
+ clickEventBubble: {
142
+ type: Boolean,
143
+ default: false
203
144
  }
204
145
  };
205
146
  function getScrollParent(element) {
@@ -314,6 +255,9 @@ const FlexibleOverlay = defineComponent({
314
255
  expose
315
256
  }) {
316
257
  const ns2 = useNamespace("flexible-overlay");
258
+ const {
259
+ clickEventBubble
260
+ } = toRefs(props);
317
261
  const {
318
262
  arrowRef,
319
263
  overlayRef,
@@ -327,13 +271,72 @@ const FlexibleOverlay = defineComponent({
327
271
  return props.modelValue && createVNode("div", mergeProps({
328
272
  "ref": overlayRef,
329
273
  "class": ns2.b()
330
- }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
274
+ }, attrs, {
275
+ "onClick": withModifiers(() => ({}), [clickEventBubble.value ? "" : "stop"]),
276
+ "onPointerup": withModifiers(() => ({}), ["stop"])
277
+ }), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
331
278
  "ref": arrowRef,
332
279
  "class": ns2.e("arrow")
333
280
  }, null)]);
334
281
  };
335
282
  }
336
283
  });
284
+ const POPPER_TRIGGER_TOKEN = Symbol("popper-trigger");
285
+ const isObject = (val) => val !== null && typeof val === "object";
286
+ const ns$1 = useNamespace("popper-trigger");
287
+ function wrapContent(content) {
288
+ return h("span", { class: ns$1.b() }, content);
289
+ }
290
+ function getFirstValidChild(nodes) {
291
+ for (const child of nodes) {
292
+ if (isObject(child)) {
293
+ if (child.type === Comment) {
294
+ continue;
295
+ }
296
+ if (child.type === "svg" || child.type === Text) {
297
+ return wrapContent(child);
298
+ }
299
+ if (child.type === Fragment) {
300
+ return getFirstValidChild(child.children);
301
+ }
302
+ return child;
303
+ }
304
+ return wrapContent(child);
305
+ }
306
+ return null;
307
+ }
308
+ var PopperTrigger = defineComponent({
309
+ name: "DPopperTrigger",
310
+ setup(_, ctx) {
311
+ const {
312
+ slots,
313
+ attrs
314
+ } = ctx;
315
+ return () => {
316
+ var _a;
317
+ const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots, attrs);
318
+ const triggerRef = inject(POPPER_TRIGGER_TOKEN);
319
+ if (!defaultSlot) {
320
+ return null;
321
+ }
322
+ const firstValidChild = getFirstValidChild(defaultSlot);
323
+ if (!firstValidChild) {
324
+ return null;
325
+ }
326
+ return withDirectives(cloneVNode(firstValidChild, attrs), [[{
327
+ mounted(el) {
328
+ triggerRef.value = el;
329
+ },
330
+ updated(el) {
331
+ triggerRef.value = el;
332
+ },
333
+ unmounted() {
334
+ triggerRef.value = null;
335
+ }
336
+ }]]);
337
+ };
338
+ }
339
+ });
337
340
  const popoverProps = {
338
341
  isOpen: {
339
342
  type: Boolean,
@@ -374,6 +377,10 @@ const popoverProps = {
374
377
  mouseLeaveDelay: {
375
378
  type: Number,
376
379
  default: 100
380
+ },
381
+ disabled: {
382
+ type: Boolean,
383
+ default: false
377
384
  }
378
385
  };
379
386
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -1073,7 +1080,7 @@ var lodash = { exports: {} };
1073
1080
  }
1074
1081
  var runInContext = function runInContext2(context) {
1075
1082
  context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
1076
- 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;
1083
+ 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;
1077
1084
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
1078
1085
  var coreJsData = context["__core-js_shared__"];
1079
1086
  var funcToString = funcProto.toString;
@@ -1087,7 +1094,7 @@ var lodash = { exports: {} };
1087
1094
  var objectCtorString = funcToString.call(Object2);
1088
1095
  var oldDash = root._;
1089
1096
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1090
- var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol = 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 = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
1097
+ 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;
1091
1098
  var defineProperty = function() {
1092
1099
  try {
1093
1100
  var func = getNative(Object2, "defineProperty");
@@ -1097,12 +1104,12 @@ var lodash = { exports: {} };
1097
1104
  }
1098
1105
  }();
1099
1106
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
1100
- 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;
1101
- 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");
1102
- var metaMap = WeakMap2 && new WeakMap2();
1107
+ 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;
1108
+ 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");
1109
+ var metaMap = WeakMap && new WeakMap();
1103
1110
  var realNames = {};
1104
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
1105
- var symbolProto = Symbol ? Symbol.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1111
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
1112
+ var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1106
1113
  function lodash2(value) {
1107
1114
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
1108
1115
  if (value instanceof LodashWrapper) {
@@ -1118,7 +1125,7 @@ var lodash = { exports: {} };
1118
1125
  function object() {
1119
1126
  }
1120
1127
  return function(proto) {
1121
- if (!isObject(proto)) {
1128
+ if (!isObject2(proto)) {
1122
1129
  return {};
1123
1130
  }
1124
1131
  if (objectCreate) {
@@ -1480,7 +1487,7 @@ var lodash = { exports: {} };
1480
1487
  if (result2 !== undefined$1) {
1481
1488
  return result2;
1482
1489
  }
1483
- if (!isObject(value)) {
1490
+ if (!isObject2(value)) {
1484
1491
  return value;
1485
1492
  }
1486
1493
  var isArr = isArray(value);
@@ -1554,7 +1561,7 @@ var lodash = { exports: {} };
1554
1561
  }
1555
1562
  function baseDelay(func, wait, args) {
1556
1563
  if (typeof func != "function") {
1557
- throw new TypeError2(FUNC_ERROR_TEXT);
1564
+ throw new TypeError(FUNC_ERROR_TEXT);
1558
1565
  }
1559
1566
  return setTimeout(function() {
1560
1567
  func.apply(undefined$1, args);
@@ -1827,7 +1834,7 @@ var lodash = { exports: {} };
1827
1834
  return true;
1828
1835
  }
1829
1836
  function baseIsNative(value) {
1830
- if (!isObject(value) || isMasked(value)) {
1837
+ if (!isObject2(value) || isMasked(value)) {
1831
1838
  return false;
1832
1839
  }
1833
1840
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
@@ -1867,7 +1874,7 @@ var lodash = { exports: {} };
1867
1874
  return result2;
1868
1875
  }
1869
1876
  function baseKeysIn(object) {
1870
- if (!isObject(object)) {
1877
+ if (!isObject2(object)) {
1871
1878
  return nativeKeysIn(object);
1872
1879
  }
1873
1880
  var isProto = isPrototype(object), result2 = [];
@@ -1912,7 +1919,7 @@ var lodash = { exports: {} };
1912
1919
  }
1913
1920
  baseFor(source, function(srcValue, key) {
1914
1921
  stack || (stack = new Stack());
1915
- if (isObject(srcValue)) {
1922
+ if (isObject2(srcValue)) {
1916
1923
  baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1917
1924
  } else {
1918
1925
  var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1;
@@ -1952,7 +1959,7 @@ var lodash = { exports: {} };
1952
1959
  newValue = objValue;
1953
1960
  if (isArguments(objValue)) {
1954
1961
  newValue = toPlainObject(objValue);
1955
- } else if (!isObject(objValue) || isFunction(objValue)) {
1962
+ } else if (!isObject2(objValue) || isFunction(objValue)) {
1956
1963
  newValue = initCloneObject(srcValue);
1957
1964
  }
1958
1965
  } else {
@@ -2091,7 +2098,7 @@ var lodash = { exports: {} };
2091
2098
  return shuffleSelf(array, baseClamp(n, 0, array.length));
2092
2099
  }
2093
2100
  function baseSet(object, path, value, customizer) {
2094
- if (!isObject(object)) {
2101
+ if (!isObject2(object)) {
2095
2102
  return object;
2096
2103
  }
2097
2104
  path = castPath(path, object);
@@ -2105,7 +2112,7 @@ var lodash = { exports: {} };
2105
2112
  var objValue = nested[key];
2106
2113
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
2107
2114
  if (newValue === undefined$1) {
2108
- newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
2115
+ newValue = isObject2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
2109
2116
  }
2110
2117
  }
2111
2118
  assignValue(nested, key, newValue);
@@ -2349,7 +2356,7 @@ var lodash = { exports: {} };
2349
2356
  }
2350
2357
  function cloneArrayBuffer(arrayBuffer) {
2351
2358
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
2352
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
2359
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
2353
2360
  return result2;
2354
2361
  }
2355
2362
  function cloneDataView(dataView, isDeep) {
@@ -2555,7 +2562,7 @@ var lodash = { exports: {} };
2555
2562
  return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
2556
2563
  }
2557
2564
  var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
2558
- return isObject(result2) ? result2 : thisBinding;
2565
+ return isObject2(result2) ? result2 : thisBinding;
2559
2566
  };
2560
2567
  }
2561
2568
  function createCurry(func, bitmask, arity) {
@@ -2598,7 +2605,7 @@ var lodash = { exports: {} };
2598
2605
  while (index2--) {
2599
2606
  var func = funcs[index2];
2600
2607
  if (typeof func != "function") {
2601
- throw new TypeError2(FUNC_ERROR_TEXT);
2608
+ throw new TypeError(FUNC_ERROR_TEXT);
2602
2609
  }
2603
2610
  if (prereq && !wrapper && getFuncName(func) == "wrapper") {
2604
2611
  var wrapper = new LodashWrapper([], true);
@@ -2811,7 +2818,7 @@ var lodash = { exports: {} };
2811
2818
  function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) {
2812
2819
  var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
2813
2820
  if (!isBindKey && typeof func != "function") {
2814
- throw new TypeError2(FUNC_ERROR_TEXT);
2821
+ throw new TypeError(FUNC_ERROR_TEXT);
2815
2822
  }
2816
2823
  var length = partials ? partials.length : 0;
2817
2824
  if (!length) {
@@ -2869,7 +2876,7 @@ var lodash = { exports: {} };
2869
2876
  return objValue;
2870
2877
  }
2871
2878
  function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
2872
- if (isObject(objValue) && isObject(srcValue)) {
2879
+ if (isObject2(objValue) && isObject2(srcValue)) {
2873
2880
  stack.set(srcValue, objValue);
2874
2881
  baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
2875
2882
  stack["delete"](srcValue);
@@ -2931,7 +2938,7 @@ var lodash = { exports: {} };
2931
2938
  object = object.buffer;
2932
2939
  other = other.buffer;
2933
2940
  case arrayBufferTag:
2934
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
2941
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
2935
2942
  return false;
2936
2943
  }
2937
2944
  return true;
@@ -3093,7 +3100,7 @@ var lodash = { exports: {} };
3093
3100
  return result2;
3094
3101
  };
3095
3102
  var getTag = baseGetTag;
3096
- 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) {
3103
+ 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) {
3097
3104
  getTag = function(value) {
3098
3105
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3099
3106
  if (ctorString) {
@@ -3217,7 +3224,7 @@ var lodash = { exports: {} };
3217
3224
  return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
3218
3225
  }
3219
3226
  function isIterateeCall(value, index2, object) {
3220
- if (!isObject(object)) {
3227
+ if (!isObject2(object)) {
3221
3228
  return false;
3222
3229
  }
3223
3230
  var type = typeof index2;
@@ -3260,7 +3267,7 @@ var lodash = { exports: {} };
3260
3267
  return value === proto;
3261
3268
  }
3262
3269
  function isStrictComparable(value) {
3263
- return value === value && !isObject(value);
3270
+ return value === value && !isObject2(value);
3264
3271
  }
3265
3272
  function matchesStrictComparable(key, srcValue) {
3266
3273
  return function(object) {
@@ -4078,7 +4085,7 @@ var lodash = { exports: {} };
4078
4085
  };
4079
4086
  function after(n, func) {
4080
4087
  if (typeof func != "function") {
4081
- throw new TypeError2(FUNC_ERROR_TEXT);
4088
+ throw new TypeError(FUNC_ERROR_TEXT);
4082
4089
  }
4083
4090
  n = toInteger(n);
4084
4091
  return function() {
@@ -4095,7 +4102,7 @@ var lodash = { exports: {} };
4095
4102
  function before(n, func) {
4096
4103
  var result2;
4097
4104
  if (typeof func != "function") {
4098
- throw new TypeError2(FUNC_ERROR_TEXT);
4105
+ throw new TypeError(FUNC_ERROR_TEXT);
4099
4106
  }
4100
4107
  n = toInteger(n);
4101
4108
  return function() {
@@ -4139,10 +4146,10 @@ var lodash = { exports: {} };
4139
4146
  function debounce(func, wait, options) {
4140
4147
  var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
4141
4148
  if (typeof func != "function") {
4142
- throw new TypeError2(FUNC_ERROR_TEXT);
4149
+ throw new TypeError(FUNC_ERROR_TEXT);
4143
4150
  }
4144
4151
  wait = toNumber(wait) || 0;
4145
- if (isObject(options)) {
4152
+ if (isObject2(options)) {
4146
4153
  leading = !!options.leading;
4147
4154
  maxing = "maxWait" in options;
4148
4155
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -4228,7 +4235,7 @@ var lodash = { exports: {} };
4228
4235
  }
4229
4236
  function memoize(func, resolver) {
4230
4237
  if (typeof func != "function" || resolver != null && typeof resolver != "function") {
4231
- throw new TypeError2(FUNC_ERROR_TEXT);
4238
+ throw new TypeError(FUNC_ERROR_TEXT);
4232
4239
  }
4233
4240
  var memoized = function() {
4234
4241
  var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
@@ -4245,7 +4252,7 @@ var lodash = { exports: {} };
4245
4252
  memoize.Cache = MapCache;
4246
4253
  function negate(predicate) {
4247
4254
  if (typeof predicate != "function") {
4248
- throw new TypeError2(FUNC_ERROR_TEXT);
4255
+ throw new TypeError(FUNC_ERROR_TEXT);
4249
4256
  }
4250
4257
  return function() {
4251
4258
  var args = arguments;
@@ -4289,14 +4296,14 @@ var lodash = { exports: {} };
4289
4296
  });
4290
4297
  function rest(func, start) {
4291
4298
  if (typeof func != "function") {
4292
- throw new TypeError2(FUNC_ERROR_TEXT);
4299
+ throw new TypeError(FUNC_ERROR_TEXT);
4293
4300
  }
4294
4301
  start = start === undefined$1 ? start : toInteger(start);
4295
4302
  return baseRest(func, start);
4296
4303
  }
4297
4304
  function spread(func, start) {
4298
4305
  if (typeof func != "function") {
4299
- throw new TypeError2(FUNC_ERROR_TEXT);
4306
+ throw new TypeError(FUNC_ERROR_TEXT);
4300
4307
  }
4301
4308
  start = start == null ? 0 : nativeMax(toInteger(start), 0);
4302
4309
  return baseRest(function(args) {
@@ -4310,9 +4317,9 @@ var lodash = { exports: {} };
4310
4317
  function throttle(func, wait, options) {
4311
4318
  var leading = true, trailing = true;
4312
4319
  if (typeof func != "function") {
4313
- throw new TypeError2(FUNC_ERROR_TEXT);
4320
+ throw new TypeError(FUNC_ERROR_TEXT);
4314
4321
  }
4315
- if (isObject(options)) {
4322
+ if (isObject2(options)) {
4316
4323
  leading = "leading" in options ? !!options.leading : leading;
4317
4324
  trailing = "trailing" in options ? !!options.trailing : trailing;
4318
4325
  }
@@ -4420,7 +4427,7 @@ var lodash = { exports: {} };
4420
4427
  return typeof value == "number" && nativeIsFinite(value);
4421
4428
  }
4422
4429
  function isFunction(value) {
4423
- if (!isObject(value)) {
4430
+ if (!isObject2(value)) {
4424
4431
  return false;
4425
4432
  }
4426
4433
  var tag = baseGetTag(value);
@@ -4432,7 +4439,7 @@ var lodash = { exports: {} };
4432
4439
  function isLength(value) {
4433
4440
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
4434
4441
  }
4435
- function isObject(value) {
4442
+ function isObject2(value) {
4436
4443
  var type = typeof value;
4437
4444
  return value != null && (type == "object" || type == "function");
4438
4445
  }
@@ -4452,7 +4459,7 @@ var lodash = { exports: {} };
4452
4459
  }
4453
4460
  function isNative(value) {
4454
4461
  if (isMaskable(value)) {
4455
- throw new Error2(CORE_ERROR_TEXT);
4462
+ throw new Error(CORE_ERROR_TEXT);
4456
4463
  }
4457
4464
  return baseIsNative(value);
4458
4465
  }
@@ -4539,9 +4546,9 @@ var lodash = { exports: {} };
4539
4546
  if (isSymbol(value)) {
4540
4547
  return NAN;
4541
4548
  }
4542
- if (isObject(value)) {
4549
+ if (isObject2(value)) {
4543
4550
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
4544
- value = isObject(other) ? other + "" : other;
4551
+ value = isObject2(other) ? other + "" : other;
4545
4552
  }
4546
4553
  if (typeof value != "string") {
4547
4554
  return value === 0 ? value : +value;
@@ -4762,7 +4769,7 @@ var lodash = { exports: {} };
4762
4769
  var Ctor = object && object.constructor;
4763
4770
  if (isArrLike) {
4764
4771
  accumulator = isArr ? new Ctor() : [];
4765
- } else if (isObject(object)) {
4772
+ } else if (isObject2(object)) {
4766
4773
  accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
4767
4774
  } else {
4768
4775
  accumulator = {};
@@ -4990,7 +4997,7 @@ var lodash = { exports: {} };
4990
4997
  if (!variable) {
4991
4998
  source = "with (obj) {\n" + source + "\n}\n";
4992
4999
  } else if (reForbiddenIdentifierChars.test(variable)) {
4993
- throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
5000
+ throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
4994
5001
  }
4995
5002
  source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
4996
5003
  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}";
@@ -5044,7 +5051,7 @@ var lodash = { exports: {} };
5044
5051
  }
5045
5052
  function truncate(string, options) {
5046
5053
  var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
5047
- if (isObject(options)) {
5054
+ if (isObject2(options)) {
5048
5055
  var separator = "separator" in options ? options.separator : separator;
5049
5056
  length = "length" in options ? toInteger(options.length) : length;
5050
5057
  omission = "omission" in options ? baseToString(options.omission) : omission;
@@ -5109,7 +5116,7 @@ var lodash = { exports: {} };
5109
5116
  try {
5110
5117
  return apply(func, undefined$1, args);
5111
5118
  } catch (e) {
5112
- return isError(e) ? e : new Error2(e);
5119
+ return isError(e) ? e : new Error(e);
5113
5120
  }
5114
5121
  });
5115
5122
  var bindAll = flatRest(function(object, methodNames) {
@@ -5123,7 +5130,7 @@ var lodash = { exports: {} };
5123
5130
  var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee();
5124
5131
  pairs = !length ? [] : arrayMap(pairs, function(pair) {
5125
5132
  if (typeof pair[1] != "function") {
5126
- throw new TypeError2(FUNC_ERROR_TEXT);
5133
+ throw new TypeError(FUNC_ERROR_TEXT);
5127
5134
  }
5128
5135
  return [toIteratee(pair[0]), pair[1]];
5129
5136
  });
@@ -5174,13 +5181,13 @@ var lodash = { exports: {} };
5174
5181
  });
5175
5182
  function mixin(object, source, options) {
5176
5183
  var props = keys(source), methodNames = baseFunctions(source, props);
5177
- if (options == null && !(isObject(source) && (methodNames.length || !props.length))) {
5184
+ if (options == null && !(isObject2(source) && (methodNames.length || !props.length))) {
5178
5185
  options = source;
5179
5186
  source = object;
5180
5187
  object = this;
5181
5188
  methodNames = baseFunctions(source, keys(source));
5182
5189
  }
5183
- var chain2 = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object);
5190
+ var chain2 = !(isObject2(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object);
5184
5191
  arrayEach(methodNames, function(methodName) {
5185
5192
  var func = source[methodName];
5186
5193
  object[methodName] = func;
@@ -5526,7 +5533,7 @@ var lodash = { exports: {} };
5526
5533
  lodash2.isNil = isNil;
5527
5534
  lodash2.isNull = isNull;
5528
5535
  lodash2.isNumber = isNumber;
5529
- lodash2.isObject = isObject;
5536
+ lodash2.isObject = isObject2;
5530
5537
  lodash2.isObjectLike = isObjectLike;
5531
5538
  lodash2.isPlainObject = isPlainObject;
5532
5539
  lodash2.isRegExp = isRegExp;
@@ -5797,7 +5804,7 @@ const TransformOriginMap = {
5797
5804
  function usePopover(props, visible, placement, origin, popoverRef) {
5798
5805
  const { trigger, isOpen } = toRefs(props);
5799
5806
  const overlayStyles = computed(() => ({
5800
- zIndex: 1060,
5807
+ zIndex: "var(--devui-z-index-pop-up, 1060)",
5801
5808
  transformOrigin: TransformOriginMap[placement.value]
5802
5809
  }));
5803
5810
  const onDocumentClick = (e) => {
@@ -5822,11 +5829,16 @@ function usePopover(props, visible, placement, origin, popoverRef) {
5822
5829
  return { overlayStyles };
5823
5830
  }
5824
5831
  function usePopoverEvent(props, visible, origin) {
5825
- const { trigger, position, mouseEnterDelay, mouseLeaveDelay } = toRefs(props);
5832
+ const { trigger, position, mouseEnterDelay, mouseLeaveDelay, disabled } = toRefs(props);
5826
5833
  const isClick = computed(() => trigger.value === "click");
5827
5834
  const placement = ref(position.value[0].split("-")[0]);
5828
5835
  const isEnter = ref(false);
5829
- const onClick = () => isClick.value && (visible.value = !visible.value);
5836
+ const onClick = () => {
5837
+ if (disabled.value) {
5838
+ return;
5839
+ }
5840
+ isClick.value && (visible.value = !visible.value);
5841
+ };
5830
5842
  const enter = lodash.exports.debounce(() => {
5831
5843
  isEnter.value && (visible.value = true);
5832
5844
  }, mouseEnterDelay.value);
@@ -5834,6 +5846,9 @@ function usePopoverEvent(props, visible, origin) {
5834
5846
  !isEnter.value && (visible.value = false);
5835
5847
  }, mouseLeaveDelay.value);
5836
5848
  const onMouseenter = () => {
5849
+ if (disabled.value) {
5850
+ return;
5851
+ }
5837
5852
  if (!isClick.value) {
5838
5853
  isEnter.value = true;
5839
5854
  enter();
@@ -5845,6 +5860,15 @@ function usePopoverEvent(props, visible, origin) {
5845
5860
  leave();
5846
5861
  }
5847
5862
  };
5863
+ const quickLeave = () => {
5864
+ isEnter.value = false;
5865
+ visible.value = false;
5866
+ };
5867
+ watch(disabled, (newVal) => {
5868
+ if (newVal && visible.value) {
5869
+ quickLeave();
5870
+ }
5871
+ });
5848
5872
  const handlePositionChange = (pos) => {
5849
5873
  placement.value = pos.split("-")[0];
5850
5874
  };
@@ -5963,9 +5987,11 @@ var Popover = defineComponent({
5963
5987
  name: "DPopover",
5964
5988
  inheritAttrs: false,
5965
5989
  props: popoverProps,
5990
+ emits: ["show", "hide"],
5966
5991
  setup(props, {
5967
5992
  slots,
5968
- attrs
5993
+ attrs,
5994
+ emit
5969
5995
  }) {
5970
5996
  const {
5971
5997
  content,
@@ -5988,44 +6014,51 @@ var Popover = defineComponent({
5988
6014
  overlayStyles
5989
6015
  } = usePopover(props, visible, placement, origin, popoverRef);
5990
6016
  const ns2 = useNamespace("popover");
5991
- return () => {
5992
- var _a;
5993
- return createVNode(Fragment, null, [createVNode("div", {
5994
- "ref": origin,
5995
- "class": ns2.e("reference")
5996
- }, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), createVNode(Teleport, {
5997
- "to": "body"
6017
+ provide(POPPER_TRIGGER_TOKEN, origin);
6018
+ watch(visible, (newVal) => {
6019
+ if (newVal) {
6020
+ emit("show");
6021
+ } else {
6022
+ emit("hide");
6023
+ }
6024
+ });
6025
+ return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
6026
+ default: () => {
6027
+ var _a;
6028
+ return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
6029
+ }
6030
+ }), createVNode(Teleport, {
6031
+ "to": "body"
6032
+ }, {
6033
+ default: () => [createVNode(Transition, {
6034
+ "name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
5998
6035
  }, {
5999
- default: () => [createVNode(Transition, {
6000
- "name": showAnimation.value ? ns2.m(`fade-${placement.value}`) : ""
6001
- }, {
6002
- default: () => [createVNode(FlexibleOverlay, mergeProps({
6003
- "modelValue": visible.value,
6004
- "onUpdate:modelValue": ($event) => visible.value = $event,
6005
- "ref": popoverRef,
6006
- "origin": origin.value,
6007
- "position": position.value,
6008
- "align": align.value,
6009
- "offset": offset2.value,
6010
- "class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
6011
- "show-arrow": true,
6012
- "is-arrow-center": false,
6013
- "style": overlayStyles.value
6014
- }, attrs, {
6015
- "onPositionChange": handlePositionChange,
6016
- "onMouseenter": onMouseenter,
6017
- "onMouseleave": onMouseleave
6018
- }), {
6019
- default: () => {
6020
- var _a2;
6021
- return [createVNode(PopoverIcon, {
6022
- "type": popType.value
6023
- }, null), ((_a2 = slots.content) == null ? void 0 : _a2.call(slots)) || createVNode("span", null, [content.value])];
6024
- }
6025
- })]
6036
+ default: () => [createVNode(FlexibleOverlay, mergeProps({
6037
+ "modelValue": visible.value,
6038
+ "onUpdate:modelValue": ($event) => visible.value = $event,
6039
+ "ref": popoverRef,
6040
+ "origin": origin.value,
6041
+ "position": position.value,
6042
+ "align": align.value,
6043
+ "offset": offset2.value,
6044
+ "class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
6045
+ "show-arrow": true,
6046
+ "is-arrow-center": false,
6047
+ "style": overlayStyles.value
6048
+ }, attrs, {
6049
+ "onPositionChange": handlePositionChange,
6050
+ "onMouseenter": onMouseenter,
6051
+ "onMouseleave": onMouseleave
6052
+ }), {
6053
+ default: () => {
6054
+ var _a;
6055
+ return [createVNode(PopoverIcon, {
6056
+ "type": popType.value
6057
+ }, null), ((_a = slots.content) == null ? void 0 : _a.call(slots)) || createVNode("span", null, [content.value])];
6058
+ }
6026
6059
  })]
6027
- })]);
6028
- };
6060
+ })]
6061
+ })]);
6029
6062
  }
6030
6063
  });
6031
6064
  var index = {