vue-devui 1.0.0-rc.9 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/README.md +189 -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 +8036 -260
  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 +110 -45
  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 +7778 -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 +12022 -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 +22 -5
  33. package/drawer/index.umd.js +1 -1
  34. package/drawer/style.css +1 -1
  35. package/dropdown/index.es.js +92 -123
  36. package/dropdown/index.umd.js +1 -1
  37. package/dropdown/style.css +1 -1
  38. package/editable-select/index.es.js +374 -149
  39. package/editable-select/index.umd.js +1 -1
  40. package/editable-select/style.css +1 -1
  41. package/form/index.es.js +102 -123
  42. package/form/index.umd.js +14 -14
  43. package/form/style.css +1 -1
  44. package/icon/index.es.js +107 -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 +8097 -170
  49. package/input/index.umd.js +27 -1
  50. package/input/style.css +1 -1
  51. package/input-number/index.es.js +34 -32
  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/index.es.js +51 -51
  57. package/loading/index.umd.js +1 -1
  58. package/loading/style.css +1 -1
  59. package/mention/index.d.ts +7 -0
  60. package/mention/index.es.js +8326 -0
  61. package/mention/index.umd.js +36 -0
  62. package/mention/package.json +7 -0
  63. package/mention/style.css +1 -0
  64. package/menu/index.d.ts +7 -0
  65. package/menu/index.es.js +921 -0
  66. package/menu/index.umd.js +1 -0
  67. package/menu/package.json +7 -0
  68. package/menu/style.css +1 -0
  69. package/message/index.d.ts +7 -0
  70. package/message/index.es.js +539 -0
  71. package/message/index.umd.js +1 -0
  72. package/message/package.json +7 -0
  73. package/message/style.css +1 -0
  74. package/modal/index.es.js +390 -185
  75. package/modal/index.umd.js +1 -1
  76. package/modal/style.css +1 -1
  77. package/notification/index.es.js +148 -79
  78. package/notification/index.umd.js +1 -1
  79. package/notification/style.css +1 -1
  80. package/nuxt/components/Collapse.js +3 -0
  81. package/nuxt/components/CollapseItem.js +3 -0
  82. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  83. package/nuxt/components/DatePickerPro.js +3 -0
  84. package/nuxt/components/IconGroup.js +3 -0
  85. package/nuxt/components/Mention.js +3 -0
  86. package/nuxt/components/Menu.js +3 -0
  87. package/nuxt/components/MenuItem.js +3 -0
  88. package/nuxt/components/Message.js +3 -0
  89. package/nuxt/components/OptionGroup.js +3 -0
  90. package/nuxt/components/RadioButton.js +3 -0
  91. package/nuxt/components/Step.js +3 -0
  92. package/nuxt/components/Steps.js +3 -0
  93. package/nuxt/components/SubMenu.js +3 -0
  94. package/nuxt/components/TABLE_TOKEN.js +3 -0
  95. package/nuxt/components/TimePicker.js +3 -0
  96. package/nuxt/components/TimeSelect.js +3 -0
  97. package/nuxt/components/animationInjectionKey.js +3 -0
  98. package/nuxt/components/collapseItemProps.js +3 -0
  99. package/nuxt/components/collapseProps.js +3 -0
  100. package/nuxt/components/datePickerProCommonProps.js +3 -0
  101. package/nuxt/components/datePickerProPanelProps.js +3 -0
  102. package/nuxt/components/datePickerProProps.js +3 -0
  103. package/nuxt/components/mentionProps.js +3 -0
  104. package/nuxt/components/messageProps.js +3 -0
  105. package/nuxt/components/paginationInjectionKey.js +3 -0
  106. package/nuxt/components/roundInjectionKey.js +3 -0
  107. package/nuxt/components/skeletonItemProps.js +3 -0
  108. package/nuxt/components/stepProps.js +3 -0
  109. package/nuxt/components/stepsProps.js +3 -0
  110. package/nuxt/components/tableProps.js +3 -0
  111. package/nuxt/components/timerPickerPanelProps.js +3 -0
  112. package/nuxt/components/treeNodeProps.js +3 -0
  113. package/overlay/index.es.js +87 -140
  114. package/overlay/index.umd.js +1 -1
  115. package/overlay/style.css +1 -1
  116. package/package.json +7 -4
  117. package/pagination/index.es.js +10180 -129
  118. package/pagination/index.umd.js +27 -1
  119. package/pagination/style.css +1 -1
  120. package/panel/index.es.js +4 -0
  121. package/panel/index.umd.js +1 -1
  122. package/panel/style.css +1 -1
  123. package/popover/index.es.js +111 -164
  124. package/popover/index.umd.js +16 -16
  125. package/popover/style.css +1 -1
  126. package/progress/style.css +1 -1
  127. package/radio/index.es.js +7860 -58
  128. package/radio/index.umd.js +27 -1
  129. package/radio/style.css +1 -1
  130. package/rate/style.css +1 -1
  131. package/result/index.es.js +93 -41
  132. package/result/index.umd.js +1 -1
  133. package/result/style.css +1 -1
  134. package/search/index.es.js +3737 -1206
  135. package/search/index.umd.js +18 -18
  136. package/search/style.css +1 -1
  137. package/select/index.es.js +4446 -2499
  138. package/select/index.umd.js +17 -17
  139. package/select/style.css +1 -1
  140. package/skeleton/index.es.js +87 -261
  141. package/skeleton/index.umd.js +1 -1
  142. package/skeleton/style.css +1 -1
  143. package/slider/index.es.js +116 -143
  144. package/slider/index.umd.js +1 -1
  145. package/slider/style.css +1 -1
  146. package/splitter/index.es.js +284 -152
  147. package/splitter/index.umd.js +16 -16
  148. package/splitter/style.css +1 -1
  149. package/statistic/index.es.js +34 -16
  150. package/statistic/index.umd.js +1 -1
  151. package/statistic/style.css +1 -1
  152. package/status/index.es.js +4 -0
  153. package/status/index.umd.js +1 -1
  154. package/status/style.css +1 -1
  155. package/steps/index.d.ts +7 -0
  156. package/steps/index.es.js +387 -0
  157. package/steps/index.umd.js +1 -0
  158. package/steps/package.json +7 -0
  159. package/steps/style.css +1 -0
  160. package/style.css +1 -1
  161. package/switch/index.es.js +7785 -60
  162. package/switch/index.umd.js +27 -1
  163. package/switch/style.css +1 -1
  164. package/table/index.es.js +4224 -1502
  165. package/table/index.umd.js +17 -17
  166. package/table/style.css +1 -1
  167. package/tabs/index.es.js +281 -83
  168. package/tabs/index.umd.js +1 -1
  169. package/tabs/style.css +1 -1
  170. package/tag/index.es.js +5 -1
  171. package/tag/index.umd.js +1 -1
  172. package/tag/style.css +1 -1
  173. package/textarea/index.es.js +3362 -1061
  174. package/textarea/index.umd.js +19 -19
  175. package/textarea/style.css +1 -1
  176. package/time-picker/index.d.ts +7 -0
  177. package/time-picker/index.es.js +9549 -0
  178. package/time-picker/index.umd.js +27 -0
  179. package/time-picker/package.json +7 -0
  180. package/time-picker/style.css +1 -0
  181. package/time-select/index.d.ts +7 -0
  182. package/time-select/index.es.js +9610 -0
  183. package/time-select/index.umd.js +27 -0
  184. package/time-select/package.json +7 -0
  185. package/time-select/style.css +1 -0
  186. package/timeline/index.es.js +93 -41
  187. package/timeline/index.umd.js +1 -1
  188. package/timeline/style.css +1 -1
  189. package/tooltip/index.es.js +127 -168
  190. package/tooltip/index.umd.js +16 -16
  191. package/tooltip/style.css +1 -1
  192. package/tree/index.es.js +11045 -607
  193. package/tree/index.umd.js +27 -1
  194. package/tree/style.css +1 -1
  195. package/upload/index.es.js +394 -111
  196. package/upload/index.umd.js +1 -1
  197. package/upload/style.css +1 -1
  198. package/vue-devui.es.js +19687 -11762
  199. package/vue-devui.umd.js +24 -23
  200. package/date-picker/index.es.js +0 -1298
  201. package/date-picker/index.umd.js +0 -1
  202. package/date-picker/style.css +0 -1
  203. package/nuxt/components/DatePicker.js +0 -3
  204. package/nuxt/components/Loading.js +0 -3
  205. package/nuxt/components/StickSlider.js +0 -3
  206. package/nuxt/components/formControlProps.js +0 -3
  207. package/nuxt/components/overlayEmits.js +0 -3
  208. package/nuxt/components/overlayProps.js +0 -3
@@ -1,28 +1,66 @@
1
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
2
  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
3
  var __publicField = (obj, key, value) => {
21
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
5
  return value;
23
6
  };
24
- import { defineComponent, createVNode, Teleport, Transition, renderSlot, isVNode, computed, onMounted, watch, onUnmounted, ref, unref, nextTick, mergeProps, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, toRefs, provide, reactive, resolveComponent, onUpdated } from "vue";
7
+ import { watch, onUnmounted, defineComponent, toRefs, createVNode, Transition, mergeProps, ref, unref, nextTick, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, provide, Teleport, reactive, getCurrentInstance, resolveComponent, onUpdated } from "vue";
25
8
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
9
+ const fixedOverlayProps = {
10
+ modelValue: {
11
+ type: Boolean,
12
+ default: false
13
+ },
14
+ lockScroll: {
15
+ type: Boolean,
16
+ default: true
17
+ },
18
+ closeOnClickOverlay: {
19
+ type: Boolean,
20
+ default: true
21
+ }
22
+ };
23
+ function lockScroll() {
24
+ if (document.documentElement.scrollHeight > document.documentElement.clientHeight) {
25
+ const scrollTop = document.documentElement.scrollTop;
26
+ const style = document.documentElement.getAttribute("style");
27
+ document.documentElement.style.position = "fixed";
28
+ document.documentElement.style.top = `-${scrollTop}px`;
29
+ document.documentElement.style.width = document.documentElement.style.width || "100%";
30
+ document.documentElement.style.overflowY = "scroll";
31
+ return () => {
32
+ if (style) {
33
+ document.documentElement.setAttribute("style", style);
34
+ } else {
35
+ document.documentElement.removeAttribute("style");
36
+ }
37
+ document.documentElement.scrollTop = scrollTop;
38
+ };
39
+ }
40
+ return;
41
+ }
42
+ function useFixedOverlay(props, ctx) {
43
+ let lockScrollCb;
44
+ const onClick = (event) => {
45
+ event.preventDefault();
46
+ ctx.emit("click", event);
47
+ if (props.closeOnClickOverlay) {
48
+ ctx.emit("update:modelValue", false);
49
+ }
50
+ };
51
+ const removeBodyAdditions = () => {
52
+ lockScrollCb == null ? void 0 : lockScrollCb();
53
+ };
54
+ watch(() => props.modelValue, (val) => {
55
+ if (val) {
56
+ props.lockScroll && (lockScrollCb = lockScroll());
57
+ } else {
58
+ removeBodyAdditions();
59
+ }
60
+ });
61
+ onUnmounted(removeBodyAdditions);
62
+ return { onClick };
63
+ }
26
64
  function createBem(namespace, element, modifier) {
27
65
  let cls = namespace;
28
66
  if (element) {
@@ -46,130 +84,31 @@ function useNamespace(block, needDot = false) {
46
84
  em
47
85
  };
48
86
  }
49
- var baseOverlay = "";
50
- function _isSlot(s) {
51
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
52
- }
53
- const CommonOverlay = defineComponent({
54
- setup(props, ctx) {
55
- const ns2 = useNamespace("overlay");
56
- return () => {
57
- let _slot;
58
- return createVNode(Teleport, {
59
- "to": "#d-overlay-anchor"
60
- }, {
61
- default: () => [createVNode(Transition, {
62
- "name": ns2.e("fade")
63
- }, _isSlot(_slot = renderSlot(ctx.slots, "default")) ? _slot : {
64
- default: () => [_slot]
65
- })]
66
- });
67
- };
68
- }
69
- });
70
- const overlayProps = {
71
- visible: {
72
- type: Boolean
73
- },
74
- backgroundBlock: {
75
- type: Boolean,
76
- default: false
77
- },
78
- backgroundClass: {
79
- type: String,
80
- default: ""
81
- },
82
- backgroundStyle: {
83
- type: [String, Object]
84
- },
85
- onBackdropClick: {
86
- type: Function
87
- },
88
- backdropClose: {
89
- type: Boolean,
90
- default: true
91
- },
92
- hasBackdrop: {
93
- type: Boolean,
94
- default: true
95
- }
96
- };
97
- const fixedOverlayProps = __spreadProps(__spreadValues({}, overlayProps), {
98
- overlayStyle: {
99
- type: [String, Object],
100
- default: void 0
101
- }
102
- });
103
- const overlayEmits = ["update:visible", "backdropClick"];
104
- function useOverlayLogic(props, ctx) {
105
- const ns2 = useNamespace("overlay");
106
- const backgroundClass = computed(() => {
107
- return [ns2.e("background"), props.backgroundClass, !props.hasBackdrop ? ns2.em("background", "disabled") : ns2.em("background", "color")];
108
- });
109
- const overlayClass = computed(() => {
110
- return ns2.b();
111
- });
112
- const handleBackdropClick = (event) => {
113
- var _a;
114
- event.preventDefault();
115
- (_a = props.onBackdropClick) == null ? void 0 : _a.call(props);
116
- if (props.backdropClose) {
117
- ctx.emit("update:visible", false);
118
- }
119
- };
120
- const handleOverlayBubbleCancel = (event) => event.cancelBubble = true;
121
- onMounted(() => {
122
- const body = document.body;
123
- const originOverflow = body.style.overflow;
124
- const originPosition = body.style.position;
125
- watch([() => props.visible, () => props.backgroundBlock], ([visible, backgroundBlock]) => {
126
- if (backgroundBlock) {
127
- const top = body.getBoundingClientRect().y;
128
- if (visible) {
129
- body.style.overflowY = "scroll";
130
- body.style.position = visible ? "fixed" : "";
131
- body.style.top = `${top}px`;
132
- } else {
133
- body.style.overflowY = originOverflow;
134
- body.style.position = originPosition;
135
- body.style.top = "";
136
- window.scrollTo(0, -top);
137
- }
138
- }
139
- });
140
- onUnmounted(() => {
141
- document.body.style.overflow = originOverflow;
142
- });
143
- });
144
- return {
145
- backgroundClass,
146
- overlayClass,
147
- handleBackdropClick,
148
- handleOverlayBubbleCancel
149
- };
150
- }
151
87
  var fixedOverlay = "";
152
88
  defineComponent({
153
89
  name: "DFixedOverlay",
90
+ inheritAttrs: false,
154
91
  props: fixedOverlayProps,
155
- emits: overlayEmits,
92
+ emits: ["update:modelValue", "click"],
156
93
  setup(props, ctx) {
157
94
  const {
158
- backgroundClass,
159
- overlayClass,
160
- handleBackdropClick,
161
- handleOverlayBubbleCancel
162
- } = useOverlayLogic(props, ctx);
163
- return () => createVNode(CommonOverlay, null, {
164
- default: () => [props.visible && createVNode("div", {
165
- "class": backgroundClass.value,
166
- "style": props.backgroundStyle,
167
- "onClick": handleBackdropClick
168
- }, [createVNode("div", {
169
- "class": overlayClass.value,
170
- "style": props.overlayStyle,
171
- "onClick": handleOverlayBubbleCancel
172
- }, [renderSlot(ctx.slots, "default")])])]
95
+ modelValue
96
+ } = toRefs(props);
97
+ const ns2 = useNamespace("fixed-overlay");
98
+ const {
99
+ onClick
100
+ } = useFixedOverlay(props, ctx);
101
+ return () => createVNode(Transition, {
102
+ "name": ns2.m("fade")
103
+ }, {
104
+ default: () => {
105
+ var _a, _b;
106
+ return [modelValue.value && createVNode("div", mergeProps({
107
+ "class": ns2.b()
108
+ }, ctx.attrs, {
109
+ "onClick": onClick
110
+ }), [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)])];
111
+ }
173
112
  });
174
113
  }
175
114
  });
@@ -204,6 +143,10 @@ const flexibleOverlayProps = {
204
143
  isArrowCenter: {
205
144
  type: Boolean,
206
145
  default: true
146
+ },
147
+ clickEventBubble: {
148
+ type: Boolean,
149
+ default: false
207
150
  }
208
151
  };
209
152
  function getScrollParent(element) {
@@ -318,6 +261,9 @@ const FlexibleOverlay = defineComponent({
318
261
  expose
319
262
  }) {
320
263
  const ns2 = useNamespace("flexible-overlay");
264
+ const {
265
+ clickEventBubble
266
+ } = toRefs(props);
321
267
  const {
322
268
  arrowRef,
323
269
  overlayRef,
@@ -331,7 +277,10 @@ const FlexibleOverlay = defineComponent({
331
277
  return props.modelValue && createVNode("div", mergeProps({
332
278
  "ref": overlayRef,
333
279
  "class": ns2.b()
334
- }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
280
+ }, attrs, {
281
+ "onClick": withModifiers(() => ({}), [clickEventBubble.value ? "" : "stop"]),
282
+ "onPointerup": withModifiers(() => ({}), ["stop"])
283
+ }), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
335
284
  "ref": arrowRef,
336
285
  "class": ns2.e("arrow")
337
286
  }, null)]);
@@ -1150,10 +1099,10 @@ var lodash = { exports: {} };
1150
1099
  }();
1151
1100
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
1152
1101
  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;
1153
- 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 DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
1154
1103
  var metaMap = WeakMap2 && new WeakMap2();
1155
1104
  var realNames = {};
1156
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
1105
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
1157
1106
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
1158
1107
  function lodash2(value) {
1159
1108
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -1509,7 +1458,7 @@ var lodash = { exports: {} };
1509
1458
  function baseAt(object, paths) {
1510
1459
  var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
1511
1460
  while (++index2 < length) {
1512
- result2[index2] = skip ? undefined$1 : get(object, paths[index2]);
1461
+ result2[index2] = skip ? undefined$1 : get2(object, paths[index2]);
1513
1462
  }
1514
1463
  return result2;
1515
1464
  }
@@ -1954,7 +1903,7 @@ var lodash = { exports: {} };
1954
1903
  return matchesStrictComparable(toKey(path), srcValue);
1955
1904
  }
1956
1905
  return function(object) {
1957
- var objValue = get(object, path);
1906
+ var objValue = get2(object, path);
1958
1907
  return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1959
1908
  };
1960
1909
  }
@@ -2845,8 +2794,8 @@ var lodash = { exports: {} };
2845
2794
  return func(number);
2846
2795
  };
2847
2796
  }
2848
- var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values2) {
2849
- return new Set(values2);
2797
+ var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
2798
+ return new Set2(values2);
2850
2799
  };
2851
2800
  function createToPairs(keysFunc) {
2852
2801
  return function(object) {
@@ -3145,7 +3094,7 @@ var lodash = { exports: {} };
3145
3094
  return result2;
3146
3095
  };
3147
3096
  var getTag = baseGetTag;
3148
- 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) {
3097
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
3149
3098
  getTag = function(value) {
3150
3099
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
3151
3100
  if (ctorString) {
@@ -4687,7 +4636,7 @@ var lodash = { exports: {} };
4687
4636
  function functionsIn(object) {
4688
4637
  return object == null ? [] : baseFunctions(object, keysIn(object));
4689
4638
  }
4690
- function get(object, path, defaultValue) {
4639
+ function get2(object, path, defaultValue) {
4691
4640
  var result2 = object == null ? undefined$1 : baseGet(object, path);
4692
4641
  return result2 === undefined$1 ? defaultValue : result2;
4693
4642
  }
@@ -5542,7 +5491,7 @@ var lodash = { exports: {} };
5542
5491
  lodash2.forInRight = forInRight;
5543
5492
  lodash2.forOwn = forOwn;
5544
5493
  lodash2.forOwnRight = forOwnRight;
5545
- lodash2.get = get;
5494
+ lodash2.get = get2;
5546
5495
  lodash2.gt = gt;
5547
5496
  lodash2.gte = gte;
5548
5497
  lodash2.has = has;
@@ -5840,7 +5789,7 @@ var lodash = { exports: {} };
5840
5789
  }
5841
5790
  }).call(commonjsGlobal);
5842
5791
  })(lodash, lodash.exports);
5843
- const TransformOriginMap = {
5792
+ const transformOriginMap = {
5844
5793
  top: "50% calc(100% + 8px)",
5845
5794
  bottom: "50% -8px",
5846
5795
  left: "calc(100% + 8px)",
@@ -5853,7 +5802,7 @@ function useTooltip(origin, props) {
5853
5802
  const positionArr = computed(() => typeof position.value === "string" ? [position.value] : position.value);
5854
5803
  const placement = ref(positionArr.value[0]);
5855
5804
  const overlayStyles = computed(() => ({
5856
- transformOrigin: TransformOriginMap[placement.value]
5805
+ transformOrigin: transformOriginMap[placement.value]
5857
5806
  }));
5858
5807
  const enter = lodash.exports.debounce(() => {
5859
5808
  isEnter.value && (visible.value = true);
@@ -5897,7 +5846,16 @@ function useTooltip(origin, props) {
5897
5846
  timer = setTimeout(quickLeave, hideAfter.value);
5898
5847
  }
5899
5848
  });
5900
- return { visible, placement, positionArr, overlayStyles, onPositionChange, onMouseenter, onMouseleave, onMouseenterOverlay };
5849
+ return {
5850
+ visible,
5851
+ placement,
5852
+ positionArr,
5853
+ overlayStyles,
5854
+ onPositionChange,
5855
+ onMouseenter,
5856
+ onMouseleave,
5857
+ onMouseenterOverlay
5858
+ };
5901
5859
  }
5902
5860
  var tooltip = "";
5903
5861
  var DToolTip = defineComponent({
@@ -5922,6 +5880,9 @@ var DToolTip = defineComponent({
5922
5880
  onMouseenterOverlay
5923
5881
  } = useTooltip(origin, props);
5924
5882
  const ns2 = useNamespace("tooltip");
5883
+ const className = computed(() => {
5884
+ return [ns2.b(), ns2.m(placement.value)].join(" ");
5885
+ });
5925
5886
  provide(POPPER_TRIGGER_TOKEN, origin);
5926
5887
  return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
5927
5888
  default: () => {
@@ -5938,7 +5899,7 @@ var DToolTip = defineComponent({
5938
5899
  "modelValue": visible.value,
5939
5900
  "onUpdate:modelValue": ($event) => visible.value = $event,
5940
5901
  "ref": tooltipRef,
5941
- "class": ns2.b(),
5902
+ "class": className.value,
5942
5903
  "origin": origin.value,
5943
5904
  "position": positionArr.value,
5944
5905
  "offset": 6,
@@ -6066,6 +6027,175 @@ const splitterBarProps = {
6066
6027
  }
6067
6028
  };
6068
6029
  var splitterBar = "";
6030
+ function deepAssign(...objects) {
6031
+ const isObject2 = (obj) => obj && typeof obj === "object";
6032
+ return objects.reduce((prev, from) => {
6033
+ Object.keys(from).forEach((key) => {
6034
+ const pVal = prev[key];
6035
+ const oVal = from[key];
6036
+ if (Array.isArray(pVal) && Array.isArray(oVal)) {
6037
+ prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
6038
+ } else if (isObject2(pVal) && isObject2(oVal)) {
6039
+ prev[key] = deepAssign(pVal, oVal);
6040
+ } else {
6041
+ prev[key] = oVal;
6042
+ }
6043
+ });
6044
+ return prev;
6045
+ }, {});
6046
+ }
6047
+ var zhCN = {
6048
+ pagination: {
6049
+ totalItemText: "\u6240\u6709\u6761\u76EE",
6050
+ goToText: "\u8DF3\u81F3",
6051
+ perPage: "\u6761/\u9875"
6052
+ },
6053
+ accordion: {
6054
+ loading: "\u52A0\u8F7D\u4E2D",
6055
+ noData: "\u6CA1\u6709\u6570\u636E"
6056
+ },
6057
+ autoCompleteDropdown: {
6058
+ latestInput: "\u6700\u8FD1\u8F93\u5165"
6059
+ },
6060
+ cascaderList: {
6061
+ noData: "\u6CA1\u6709\u6570\u636E"
6062
+ },
6063
+ colorPicker: {
6064
+ foundationPanel: "\u57FA\u7840\u9762\u677F",
6065
+ advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
6066
+ },
6067
+ datePickerPro: {
6068
+ ok: "\u786E\u5B9A",
6069
+ placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
6070
+ month1: "1\u6708",
6071
+ month2: "2\u6708",
6072
+ month3: "3\u6708",
6073
+ month4: "4\u6708",
6074
+ month5: "5\u6708",
6075
+ month6: "6\u6708",
6076
+ month7: "7\u6708",
6077
+ month8: "8\u6708",
6078
+ month9: "9\u6708",
6079
+ month10: "10\u6708",
6080
+ month11: "11\u6708",
6081
+ month12: "12\u6708",
6082
+ year: "\u5E74",
6083
+ startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
6084
+ endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
6085
+ getWeekDays() {
6086
+ return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
6087
+ },
6088
+ getTimeArr() {
6089
+ return ["\u65F6", "\u5206", "\u79D2"];
6090
+ },
6091
+ getYearMonthStr(year, month) {
6092
+ return `${year}\u5E74${month}\u6708`;
6093
+ }
6094
+ },
6095
+ editableSelect: {
6096
+ noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
6097
+ noData: "\u6CA1\u6709\u6570\u636E"
6098
+ },
6099
+ input: {
6100
+ placeholder: "\u8BF7\u8F93\u5165"
6101
+ },
6102
+ splitterBar: {
6103
+ collapse: "\u6536\u8D77",
6104
+ expand: "\u5C55\u5F00"
6105
+ },
6106
+ stepsGuide: {
6107
+ previous: "\u4E0A\u4E00\u6B65",
6108
+ continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
6109
+ ok: "\u6211\u77E5\u9053\u5566"
6110
+ },
6111
+ table: {
6112
+ selectAll: "\u5168\u9009",
6113
+ ok: "\u786E\u5B9A"
6114
+ },
6115
+ timePopup: {
6116
+ ok: "\u786E\u5B9A"
6117
+ },
6118
+ transfer: {
6119
+ unit: "\u9879",
6120
+ panelUnit: "\u9879",
6121
+ headerUnit: "\u9879",
6122
+ noData: "\u6682\u65E0\u6570\u636E",
6123
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
6124
+ },
6125
+ tree: {
6126
+ loading: "\u52A0\u8F7D\u4E2D",
6127
+ newNode: "\u65B0\u8282\u70B9",
6128
+ selectPlaceholder: "\u8BF7\u9009\u62E9"
6129
+ },
6130
+ upload: {
6131
+ placeholder: "\u9009\u62E9\u6587\u4EF6",
6132
+ getExistSameNameFilesMsg(sameNames) {
6133
+ return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
6134
+ },
6135
+ getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
6136
+ return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
6137
+ },
6138
+ getBeyondMaximalFileSizeMsg(filename, maximalSize) {
6139
+ return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
6140
+ },
6141
+ getNotAllowedFileTypeMsg(filename, scope) {
6142
+ return `\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${scope}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
6143
+ }
6144
+ },
6145
+ search: {
6146
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
6147
+ },
6148
+ select: {
6149
+ placeholder: "\u8BF7\u9009\u62E9",
6150
+ noDataText: "\u65E0\u6570\u636E",
6151
+ noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
6152
+ loadingText: "\u52A0\u8F7D\u4E2D..."
6153
+ },
6154
+ tagInput: {
6155
+ maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
6156
+ },
6157
+ timeSelect: {
6158
+ placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
6159
+ }
6160
+ };
6161
+ const lang = ref("zh-CN");
6162
+ let langMessages = reactive({
6163
+ [lang.value]: zhCN
6164
+ });
6165
+ const Locale = {
6166
+ messages() {
6167
+ return langMessages[lang.value];
6168
+ },
6169
+ lang() {
6170
+ return lang.value;
6171
+ },
6172
+ use(newLang, newMessages) {
6173
+ lang.value = newLang;
6174
+ this.add({ [newLang]: newMessages });
6175
+ },
6176
+ add(newMessages = {}) {
6177
+ langMessages = deepAssign(langMessages, newMessages);
6178
+ }
6179
+ };
6180
+ const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
6181
+ function get(object, path) {
6182
+ const keys = path.split(".");
6183
+ let result = object;
6184
+ keys.forEach((key) => {
6185
+ var _a;
6186
+ result = (_a = result[key]) != null ? _a : "";
6187
+ });
6188
+ return result;
6189
+ }
6190
+ function createI18nTranslate(name, app, newPrefix) {
6191
+ const prefix = newPrefix || camelize(name) + ".";
6192
+ return (path) => {
6193
+ var _a;
6194
+ const messages = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
6195
+ const message = get(messages, prefix + path) || get(messages, path);
6196
+ return message;
6197
+ };
6198
+ }
6069
6199
  var DSplitterBar = defineComponent({
6070
6200
  name: "DSplitterBar",
6071
6201
  components: {
@@ -6073,6 +6203,8 @@ var DSplitterBar = defineComponent({
6073
6203
  },
6074
6204
  props: splitterBarProps,
6075
6205
  setup(props) {
6206
+ const app = getCurrentInstance();
6207
+ const t = createI18nTranslate("DSplitterBar", app);
6076
6208
  const ns2 = useNamespace("splitter");
6077
6209
  const store = inject("splitterStore");
6078
6210
  const state = reactive({
@@ -6253,14 +6385,14 @@ var DSplitterBar = defineComponent({
6253
6385
  const renderCollapsedTip = () => {
6254
6386
  var _a, _b, _c, _d;
6255
6387
  if (!props || props.index === void 0) {
6256
- return "\u6536\u8D77";
6388
+ return t("collapse");
6257
6389
  }
6258
6390
  const {
6259
6391
  pane,
6260
6392
  nearPane
6261
6393
  } = queryPanes(props.index, props.index + 1);
6262
6394
  const isCollapsed = ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapsed) || ((_d = (_c = nearPane == null ? void 0 : nearPane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed);
6263
- return isCollapsed ? "\u5C55\u5F00" : "\u6536\u8D77";
6395
+ return isCollapsed ? t("expand") : t("collapse");
6264
6396
  };
6265
6397
  return () => {
6266
6398
  return withDirectives(createVNode("div", {