x-next 1.4.0 → 1.6.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.
- package/AI_USAGE.md +2 -2
- package/CHANGELOG.md +71 -0
- package/dist/_utils/color.d.ts +53 -0
- package/dist/components/color-picker/ColorPicker.d.ts +239 -0
- package/dist/components/color-picker/gradient-slider.d.ts +52 -0
- package/dist/components/color-picker/index.d.ts +238 -0
- package/dist/components/color-picker/panel.d.ts +721 -0
- package/dist/components/color-picker/sv-panel.d.ts +48 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +3 -3
- package/dist/components/date-picker/index.d.ts +6 -6
- package/dist/components/dropdown/Dropdown.vue.d.ts +34 -4
- package/dist/components/dropdown/DropdownButton.vue.d.ts +37 -6
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +34 -4
- package/dist/components/dropdown/dropdown-panel.vue.d.ts +30 -0
- package/dist/components/dropdown/index.d.ts +212 -29
- package/dist/components/form/FormItem.vue.d.ts +3 -3
- package/dist/components/form/form-item-label.vue.d.ts +3 -3
- package/dist/components/form/index.d.ts +6 -6
- package/dist/components/form-select/Select.d.ts +3 -3
- package/dist/components/form-select/SelectDropdown.vue.d.ts +30 -0
- package/dist/components/form-select/index.d.ts +66 -6
- package/dist/components/form-slider/Slider.vue.d.ts +3 -3
- package/dist/components/form-slider/index.d.ts +6 -6
- package/dist/components/form-slider/slider-button.vue.d.ts +3 -3
- package/dist/components/heatmap/Heatmap.d.ts +311 -0
- package/dist/components/heatmap/helpers/matrix.d.ts +58 -0
- package/dist/components/heatmap/index.d.ts +372 -0
- package/dist/components/heatmap/interface.d.ts +57 -0
- package/dist/components/image/Image.vue.d.ts +3 -3
- package/dist/components/image/ImagePreview.vue.d.ts +3 -3
- package/dist/components/image/ImagePreviewAction.d.ts +3 -3
- package/dist/components/image/ImagePreviewGroup.vue.d.ts +3 -3
- package/dist/components/image/index.d.ts +24 -24
- package/dist/components/image/preview-toolbar.vue.d.ts +3 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/components/menu/sub-menu-pop.vue.d.ts +3 -3
- package/dist/components/network/Network.vue.d.ts +1 -1
- package/dist/components/network/index.d.ts +3 -3
- package/dist/components/network/utils.d.ts +2 -0
- package/dist/components/pagination/page-item-ellipsis.vue.d.ts +9 -0
- package/dist/components/pagination/page-jumper.vue.d.ts +6 -0
- package/dist/components/pagination/page-options.vue.d.ts +6 -6
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popup/Popup.d.ts +1 -1
- package/dist/components/popup/index.d.ts +3 -3
- package/dist/components/skeleton/SkeletonShape.vue.d.ts +3 -3
- package/dist/components/skeleton/index.d.ts +6 -6
- package/dist/components/spin/Spin.d.ts +38 -0
- package/dist/components/spin/index.d.ts +30 -0
- package/dist/components/steps/context.d.ts +9 -0
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/tabs/TabPane.vue.d.ts +2 -0
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +9 -3
- package/dist/components/tabs/interface.d.ts +4 -0
- package/dist/components/time-picker/TimePicker.vue.d.ts +3 -3
- package/dist/components/time-picker/index.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/trigger/Trigger.d.ts +1 -1
- package/dist/components/trigger/index.d.ts +3 -3
- package/dist/components/watermark/Watermark.d.ts +1 -1
- package/dist/components/watermark/index.d.ts +3 -3
- package/dist/es/_styles/palette-aliases.js +8 -0
- package/dist/es/_utils/color.js +73 -0
- package/dist/es/components/button/Button.js +2 -2
- package/dist/es/components/color-picker/ColorPicker.js +239 -0
- package/dist/es/components/color-picker/gradient-slider.js +79 -0
- package/dist/es/components/color-picker/index.js +8 -0
- package/dist/es/components/color-picker/panel.js +307 -0
- package/dist/es/components/color-picker/sv-panel.js +99 -0
- package/dist/es/components/dropdown/Dropdown.vue2.js +11 -4
- package/dist/es/components/dropdown/DropdownButton.vue.js +8 -7
- package/dist/es/components/dropdown/DropdownButton.vue2.js +19 -17
- package/dist/es/components/dropdown/DropdownSubmenu.vue.js +18 -17
- package/dist/es/components/dropdown/dropdown-panel.vue.js +17 -17
- package/dist/es/components/form-input/Input.js +7 -7
- package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
- package/dist/es/components/form-input/InputSearch.js +2 -2
- package/dist/es/components/form-input-number/InputNumber.js +12 -12
- package/dist/es/components/heatmap/Heatmap.js +334 -0
- package/dist/es/components/heatmap/helpers/matrix.js +106 -0
- package/dist/es/components/heatmap/index.js +8 -0
- package/dist/es/components/index.js +118 -114
- package/dist/es/components/menu/MenuSubMenu.js +50 -36
- package/dist/es/components/menu/sub-menu-pop.vue2.js +30 -30
- package/dist/es/components/network/Network.vue2.js +72 -72
- package/dist/es/components/network/utils.js +44 -35
- package/dist/es/components/pagination/Pagination.js +124 -112
- package/dist/es/components/pagination/page-item-ellipsis.vue.js +13 -12
- package/dist/es/components/pagination/page-item-ellipsis.vue2.js +19 -15
- package/dist/es/components/pagination/page-jumper.vue.js +13 -12
- package/dist/es/components/pagination/page-jumper.vue2.js +7 -4
- package/dist/es/components/pagination/page-options.vue.js +4 -3
- package/dist/es/components/pagination/page-options.vue2.js +17 -15
- package/dist/es/components/skeleton/Skeleton.vue.js +11 -9
- package/dist/es/components/skeleton/SkeletonLine.vue.js +9 -8
- package/dist/es/components/skeleton/SkeletonShape.vue.js +8 -7
- package/dist/es/components/spin/Spin.js +124 -60
- package/dist/es/components/steps/Step.vue2.js +51 -47
- package/dist/es/components/steps/Steps.vue2.js +22 -19
- package/dist/es/components/table/Table.js +3 -1
- package/dist/es/components/tabs/TabPane.vue.js +11 -9
- package/dist/es/components/tabs/TabPane.vue2.js +28 -24
- package/dist/es/components/tabs/tabs-nav.js +20 -18
- package/dist/es/components/tabs/tabs-tab.vue.js +10 -8
- package/dist/es/components/trigger/Trigger.js +19 -19
- package/dist/es/icons/_self/empty-better.js +25 -8
- package/dist/es/index.js +162 -158
- package/dist/es/locale/en-US.js +19 -2
- package/dist/es/locale/zh-CN.js +19 -2
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +30 -0
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/color-picker.css +1 -0
- package/dist/style/color-picker.js +2 -0
- package/dist/style/date-picker.css +1 -1
- package/dist/style/dropdown.css +1 -1
- package/dist/style/empty.css +1 -1
- package/dist/style/form-checkbox.css +1 -1
- package/dist/style/form-input-tag.css +1 -1
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-radio.css +1 -1
- package/dist/style/form-textarea.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/heatmap.css +1 -0
- package/dist/style/heatmap.js +2 -0
- package/dist/style/image.css +1 -1
- package/dist/style/menu.css +1 -1
- package/dist/style/pagination.css +1 -1
- package/dist/style/skeleton.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style/steps.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style/tabs.css +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +3 -2
- package/volar.d.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, toRefs as le, ref as
|
|
1
|
+
import { defineComponent as ae, toRefs as le, ref as b, computed as h, watch as H, nextTick as I, onMounted as ie, createVNode as r } from "vue";
|
|
2
2
|
import { getTabListStyle as ne, updateScrollOffset as oe } from "./utils.js";
|
|
3
3
|
import re from "./tabs-tab.vue.js";
|
|
4
4
|
import W from "./tabs-button.js";
|
|
@@ -56,7 +56,9 @@ const Re = /* @__PURE__ */ ae({
|
|
|
56
56
|
default: !0
|
|
57
57
|
},
|
|
58
58
|
scrollPosition: {
|
|
59
|
-
|
|
59
|
+
/* ScrollPosition 含 number(滚动到指定像素),只声明 String 会让
|
|
60
|
+
`:scroll-position="200"` 触发 prop 类型校验告警 */
|
|
61
|
+
type: [String, Number],
|
|
60
62
|
default: "auto"
|
|
61
63
|
}
|
|
62
64
|
},
|
|
@@ -73,10 +75,10 @@ const Re = /* @__PURE__ */ ae({
|
|
|
73
75
|
scrollPosition: s
|
|
74
76
|
} = le(a), u = ce("tabs--nav"), {
|
|
75
77
|
t: q
|
|
76
|
-
} = ve(), n =
|
|
78
|
+
} = ve(), n = b(), m = b(), g = b({}), y = h(() => {
|
|
77
79
|
if (!P(S.value))
|
|
78
80
|
return g.value[S.value];
|
|
79
|
-
}), C =
|
|
81
|
+
}), C = b(), L = h(() => a.editable && ["line", "card", "card-gutter"].includes(a.type)), d = b(!1), B = b(0), k = b(0), o = b(0), M = () => {
|
|
80
82
|
var e, t;
|
|
81
83
|
return (T.value === "vertical" ? (e = n.value) == null ? void 0 : e.offsetHeight : (t = n.value) == null ? void 0 : t.offsetWidth) ?? 0;
|
|
82
84
|
}, D = () => !m.value || !n.value ? 0 : T.value === "vertical" ? m.value.offsetHeight - n.value.offsetHeight : m.value.offsetWidth - n.value.offsetWidth, w = () => {
|
|
@@ -84,9 +86,9 @@ const Re = /* @__PURE__ */ ae({
|
|
|
84
86
|
}, K = () => n.value && m.value ? a.direction === "vertical" ? m.value.offsetHeight > n.value.offsetHeight : m.value.offsetWidth > n.value.offsetWidth : !1, f = (e) => {
|
|
85
87
|
(!n.value || !m.value || e < 0) && (e = 0), o.value = Math.min(e, k.value);
|
|
86
88
|
}, E = () => {
|
|
87
|
-
if (!
|
|
89
|
+
if (!y.value || !n.value || !d.value) return;
|
|
88
90
|
oe(n.value, T.value);
|
|
89
|
-
const e = T.value === "horizontal", t = e ? "offsetLeft" : "offsetTop", c = e ? "offsetWidth" : "offsetHeight", l =
|
|
91
|
+
const e = T.value === "horizontal", t = e ? "offsetLeft" : "offsetTop", c = e ? "offsetWidth" : "offsetHeight", l = y.value[t], i = y.value[c], v = n.value[c], ee = window.getComputedStyle(y.value), te = e ? s.value === "end" ? "marginRight" : "marginLeft" : s.value === "end" ? "marginBottom" : "marginTop", x = parseFloat(ee[te]) || 0;
|
|
90
92
|
s.value === "auto" ? l < o.value ? f(l - x) : l + i > o.value + v && f(l + i - v + x) : s.value === "center" ? f(l + (i - v + x) / 2) : s.value === "start" ? f(l - x) : s.value === "end" ? f(l + i - v + x) : fe(s.value) && f(l - s.value);
|
|
91
93
|
}, U = (e) => {
|
|
92
94
|
if (!d.value) return;
|
|
@@ -99,7 +101,7 @@ const Re = /* @__PURE__ */ ae({
|
|
|
99
101
|
}, j = (e, t) => {
|
|
100
102
|
z("click", e, t);
|
|
101
103
|
}, F = () => a.tabs.filter((e) => !e.disabled), V = (e) => {
|
|
102
|
-
|
|
104
|
+
I(() => {
|
|
103
105
|
var t;
|
|
104
106
|
(t = g.value[e]) == null || t.focus();
|
|
105
107
|
});
|
|
@@ -115,27 +117,27 @@ const Re = /* @__PURE__ */ ae({
|
|
|
115
117
|
}
|
|
116
118
|
}, Y = (e, t) => {
|
|
117
119
|
z("delete", e, t);
|
|
118
|
-
},
|
|
120
|
+
}, N = (e) => {
|
|
119
121
|
const t = e === "previous" ? o.value - B.value : o.value + B.value;
|
|
120
122
|
f(t);
|
|
121
123
|
}, G = () => {
|
|
122
124
|
w(), C.value && C.value.$forceUpdate();
|
|
123
125
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
H($, () => {
|
|
127
|
+
I(() => {
|
|
126
128
|
const e = new Set(a.tabs.map((t) => String(t.key)));
|
|
127
129
|
Object.keys(g.value).forEach((t) => {
|
|
128
130
|
e.has(t) || delete g.value[t];
|
|
129
131
|
}), w();
|
|
130
132
|
});
|
|
131
|
-
}),
|
|
133
|
+
}), H([p, s], () => {
|
|
132
134
|
setTimeout(() => {
|
|
133
135
|
E();
|
|
134
136
|
}, 0);
|
|
135
137
|
}), ie(() => {
|
|
136
138
|
w();
|
|
137
139
|
});
|
|
138
|
-
const
|
|
140
|
+
const A = () => !L.value || !a.showAddButton ? null : r(se, {
|
|
139
141
|
as: "button",
|
|
140
142
|
"aria-label": q("tabs.add"),
|
|
141
143
|
class: u.element("add-btn"),
|
|
@@ -162,7 +164,7 @@ const Re = /* @__PURE__ */ ae({
|
|
|
162
164
|
type: "previous",
|
|
163
165
|
direction: a.direction,
|
|
164
166
|
disabled: o.value <= 0,
|
|
165
|
-
onClick:
|
|
167
|
+
onClick: N
|
|
166
168
|
}, null), r(O, {
|
|
167
169
|
onResize: () => w()
|
|
168
170
|
}, {
|
|
@@ -192,22 +194,22 @@ const Re = /* @__PURE__ */ ae({
|
|
|
192
194
|
var l, i;
|
|
193
195
|
return [((i = (l = t.slots).title) == null ? void 0 : i.call(l)) ?? t.title];
|
|
194
196
|
}
|
|
195
|
-
})), a.type === "line" &&
|
|
197
|
+
})), a.type === "line" && y.value && r(ue, {
|
|
196
198
|
ref: C,
|
|
197
|
-
activeTabRef:
|
|
199
|
+
activeTabRef: y.value,
|
|
198
200
|
direction: a.direction,
|
|
199
201
|
disabled: !1,
|
|
200
202
|
animation: a.animation
|
|
201
203
|
}, null)])]
|
|
202
|
-
}), !d.value &&
|
|
204
|
+
}), !d.value && A()])]
|
|
203
205
|
}), d.value && r(W, {
|
|
204
206
|
type: "next",
|
|
205
207
|
direction: a.direction,
|
|
206
208
|
disabled: o.value >= k.value,
|
|
207
|
-
onClick:
|
|
209
|
+
onClick: N
|
|
208
210
|
}, null), r("div", {
|
|
209
211
|
class: u.element("extra")
|
|
210
|
-
}, [d.value &&
|
|
212
|
+
}, [d.value && A(), (e = R.extra) == null ? void 0 : e.call(R)])]);
|
|
211
213
|
};
|
|
212
214
|
}
|
|
213
215
|
});
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as a, openBlock as o, createElementBlock as
|
|
1
|
+
import i from "./tabs-tab.vue2.js";
|
|
2
|
+
import { resolveComponent as a, openBlock as o, createElementBlock as n, mergeProps as r, createElementVNode as d, normalizeClass as t, renderSlot as c, createBlock as b, withModifiers as m, withCtx as p, createVNode as f, createCommentVNode as u } from "vue";
|
|
3
3
|
import v from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const h = ["tabindex", "aria-selected", "aria-disabled"];
|
|
4
|
+
const h = ["id", "tabindex", "aria-selected", "aria-disabled", "aria-controls"];
|
|
5
5
|
function k(e, C, N, $, B, V) {
|
|
6
|
-
const
|
|
7
|
-
return o(),
|
|
6
|
+
const l = a("icon-close"), s = a("icon-hover");
|
|
7
|
+
return o(), n("div", r({
|
|
8
8
|
role: "tab",
|
|
9
|
+
id: e.tab.tabId,
|
|
9
10
|
tabindex: e.active && !e.tab.disabled ? 0 : -1,
|
|
10
11
|
"aria-selected": e.active,
|
|
11
12
|
"aria-disabled": e.tab.disabled || void 0,
|
|
13
|
+
"aria-controls": e.tab.panelId,
|
|
12
14
|
class: e.cls
|
|
13
15
|
}, e.eventHandlers), [
|
|
14
16
|
d("span", {
|
|
@@ -16,7 +18,7 @@ function k(e, C, N, $, B, V) {
|
|
|
16
18
|
}, [
|
|
17
19
|
c(e.$slots, "default")
|
|
18
20
|
], 2),
|
|
19
|
-
e.editable && e.tab.closable ? (o(), b(
|
|
21
|
+
e.editable && e.tab.closable ? (o(), b(s, {
|
|
20
22
|
key: 0,
|
|
21
23
|
as: "button",
|
|
22
24
|
"aria-label": e.t("tabs.close", { title: String(e.tab.title ?? e.tab.key) }),
|
|
@@ -24,13 +26,13 @@ function k(e, C, N, $, B, V) {
|
|
|
24
26
|
onClick: m(e.handleDelete, ["stop"])
|
|
25
27
|
}, {
|
|
26
28
|
default: p(() => [
|
|
27
|
-
f(
|
|
29
|
+
f(l)
|
|
28
30
|
]),
|
|
29
31
|
_: 1
|
|
30
32
|
}, 8, ["aria-label", "class", "onClick"])) : u("", !0)
|
|
31
33
|
], 16, h);
|
|
32
34
|
}
|
|
33
|
-
const E = /* @__PURE__ */ v(
|
|
35
|
+
const E = /* @__PURE__ */ v(i, [["render", k]]);
|
|
34
36
|
export {
|
|
35
37
|
E as default
|
|
36
38
|
};
|
|
@@ -2,12 +2,12 @@ import { defineComponent as Be, toRefs as Oe, computed as P, inject as Ee, ref a
|
|
|
2
2
|
import { getScrollElements as le, getElementScrollRect as ne, getPopupStyle as $e, getTransformOrigin as Ge, getArrowStyle as He } from "./utils.js";
|
|
3
3
|
import ue from "../../_container/resize-observer-v2.js";
|
|
4
4
|
import { on as G, off as ie } from "../../_utils/dom.js";
|
|
5
|
-
import { isEmptyChildren as Ue, mergeFirstChild as
|
|
6
|
-
import
|
|
5
|
+
import { isEmptyChildren as Ue, mergeFirstChild as Ke } from "../../_utils/vue-eco.js";
|
|
6
|
+
import Xe from "../../_hooks/use-pick-slots.js";
|
|
7
7
|
import { triggerInjectionKey as ae } from "./context.js";
|
|
8
8
|
import { throttleByRaf as se } from "../../_utils/throttle-by-raf.js";
|
|
9
|
-
import
|
|
10
|
-
import { useResizeObserver as
|
|
9
|
+
import Ye from "../../_hooks/use-popup-manager.js";
|
|
10
|
+
import { useResizeObserver as _e } from "../../_hooks/use-resize-observer.js";
|
|
11
11
|
import qe from "../../_container/client-only.js";
|
|
12
12
|
import { useTeleportContainer as Je } from "../../_hooks/use-teleport-container.js";
|
|
13
13
|
import { useFirstElement as Qe } from "../../_hooks/use-first-element.js";
|
|
@@ -337,7 +337,7 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
337
337
|
} = Oe(o), g = eo("trigger"), ce = P(() => Ze(n, oo)), p = P(() => [].concat(o.trigger)), k = /* @__PURE__ */ new Set(), u = Ee(ae, void 0), {
|
|
338
338
|
children: M,
|
|
339
339
|
firstElement: T
|
|
340
|
-
} = Qe(), y = s(), H = s(o.defaultPopupVisible), B = s(o.position), U = s({}),
|
|
340
|
+
} = Qe(), y = s(), H = s(o.defaultPopupVisible), B = s(o.position), U = s({}), K = s({}), X = s({}), S = s(!1), fe = s(), f = s({
|
|
341
341
|
top: 0,
|
|
342
342
|
left: 0
|
|
343
343
|
});
|
|
@@ -351,7 +351,7 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
351
351
|
documentContainer: !0
|
|
352
352
|
}), {
|
|
353
353
|
zIndex: me
|
|
354
|
-
} =
|
|
354
|
+
} = Ye("popup", {
|
|
355
355
|
visible: l
|
|
356
356
|
});
|
|
357
357
|
let R = 0, h = !1, z = !1;
|
|
@@ -368,7 +368,7 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
368
368
|
left: t
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
},
|
|
371
|
+
}, Y = () => {
|
|
372
372
|
S.value = !0;
|
|
373
373
|
}, m = () => {
|
|
374
374
|
if (!T.value || !y.value || !D.value)
|
|
@@ -396,13 +396,13 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
396
396
|
customStyle: o.popupStyle,
|
|
397
397
|
autoFitPosition: o.autoFitPosition
|
|
398
398
|
});
|
|
399
|
-
o.autoFitTransformOrigin && (
|
|
399
|
+
o.autoFitTransformOrigin && (K.value = {
|
|
400
400
|
transformOrigin: Ge(C)
|
|
401
401
|
}), o.autoFitPopupMinWidth ? w.minWidth = `${t.width}px` : o.autoFitPopupWidth && (w.width = `${t.width}px`), B.value !== C && (B.value = C), U.value = w, o.showArrow ? $(() => {
|
|
402
|
-
|
|
402
|
+
X.value = He(C, t, i(), {
|
|
403
403
|
customStyle: o.arrowStyle
|
|
404
|
-
}),
|
|
405
|
-
}) :
|
|
404
|
+
}), Y();
|
|
405
|
+
}) : Y();
|
|
406
406
|
}, a = (e, t) => {
|
|
407
407
|
const i = R !== 0;
|
|
408
408
|
if (e === l.value && !i)
|
|
@@ -420,11 +420,11 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
420
420
|
}, pe = (e) => {
|
|
421
421
|
var t;
|
|
422
422
|
(t = n.onClick) == null || t.call(n, e), !(o.disabled || l.value && !o.clickToClose) && (p.value.includes("click") ? (V(e), a(!l.value)) : p.value.includes("contextMenu") && l.value && a(!1));
|
|
423
|
-
},
|
|
423
|
+
}, _ = (e) => {
|
|
424
424
|
var t;
|
|
425
425
|
(t = n.onMouseenter) == null || t.call(n, e), !(o.disabled || !p.value.includes("hover")) && (V(e), a(!0, o.mouseEnterDelay));
|
|
426
426
|
}, q = (e) => {
|
|
427
|
-
u == null || u.onMouseenter(e),
|
|
427
|
+
u == null || u.onMouseenter(e), _(e);
|
|
428
428
|
}, J = (e) => {
|
|
429
429
|
var t;
|
|
430
430
|
(t = n.onMouseleave) == null || t.call(n, e), !(o.disabled || !p.value.includes("hover")) && a(!1, o.mouseLeaveDelay);
|
|
@@ -452,7 +452,7 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
452
452
|
}));
|
|
453
453
|
const j = () => {
|
|
454
454
|
ie(document.documentElement, "mousedown", W), h = !1;
|
|
455
|
-
}, N =
|
|
455
|
+
}, N = Xe(v, "content"), Ce = P(() => {
|
|
456
456
|
var e;
|
|
457
457
|
return o.hideEmpty && Ue((e = N.value) == null ? void 0 : e.call(N));
|
|
458
458
|
}), W = (e) => {
|
|
@@ -512,7 +512,7 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
512
512
|
const {
|
|
513
513
|
createResizeObserver: Se,
|
|
514
514
|
destroyResizeObserver: Re
|
|
515
|
-
} =
|
|
515
|
+
} = _e({
|
|
516
516
|
elementRef: D,
|
|
517
517
|
onResize: x
|
|
518
518
|
});
|
|
@@ -542,10 +542,10 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
542
542
|
};
|
|
543
543
|
return () => {
|
|
544
544
|
var e;
|
|
545
|
-
return M.value = ((e = v.default) == null ? void 0 : e.call(v)) ?? [],
|
|
545
|
+
return M.value = ((e = v.default) == null ? void 0 : e.call(v)) ?? [], Ke(M.value, {
|
|
546
546
|
class: Te.value,
|
|
547
547
|
onClick: pe,
|
|
548
|
-
onMouseenter:
|
|
548
|
+
onMouseenter: _,
|
|
549
549
|
onMouseleave: J,
|
|
550
550
|
onFocusin: ye,
|
|
551
551
|
onFocusout: he,
|
|
@@ -590,14 +590,14 @@ const oo = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"
|
|
|
590
590
|
var t;
|
|
591
591
|
return [xe(c("div", {
|
|
592
592
|
class: g.element("popup-wrapper"),
|
|
593
|
-
style:
|
|
593
|
+
style: K.value
|
|
594
594
|
}, [c("div", {
|
|
595
595
|
class: [g.element("content"), o.contentClass],
|
|
596
596
|
style: o.contentStyle
|
|
597
597
|
}, [(t = v.content) == null ? void 0 : t.call(v)]), o.showArrow && c("div", {
|
|
598
598
|
ref: fe,
|
|
599
599
|
class: [g.element("arrow"), o.arrowClass],
|
|
600
|
-
style:
|
|
600
|
+
style: X.value
|
|
601
601
|
}, null)]), [[Ie, l.value]])];
|
|
602
602
|
}
|
|
603
603
|
})])]
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { h as a, createVNode as l } from "vue";
|
|
2
|
-
import { generateIcon as
|
|
3
|
-
const
|
|
2
|
+
import { generateIcon as e } from "../icon.js";
|
|
3
|
+
const t = {
|
|
4
|
+
planes: "var(--x-empty-illustration-planes)",
|
|
5
|
+
mid: "var(--x-empty-illustration-mid)",
|
|
6
|
+
strong: "var(--x-empty-illustration-strong)",
|
|
7
|
+
highlight: "var(--x-empty-illustration-highlight)"
|
|
8
|
+
}, n = e("EmptyBetter", a(l("svg", {
|
|
4
9
|
width: "184",
|
|
5
10
|
height: "152",
|
|
6
11
|
viewBox: "0 0 184 152",
|
|
@@ -12,30 +17,42 @@ const n = t("EmptyBetter", a(l("svg", {
|
|
|
12
17
|
transform: "translate(24 31.67)"
|
|
13
18
|
}, [l("ellipse", {
|
|
14
19
|
"fill-opacity": ".8",
|
|
15
|
-
|
|
20
|
+
style: {
|
|
21
|
+
fill: t.planes
|
|
22
|
+
},
|
|
16
23
|
cx: "67.797",
|
|
17
24
|
cy: "106.89",
|
|
18
25
|
rx: "67.797",
|
|
19
26
|
ry: "12.668"
|
|
20
27
|
}, null), l("path", {
|
|
21
28
|
d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
|
|
22
|
-
|
|
29
|
+
style: {
|
|
30
|
+
fill: t.strong
|
|
31
|
+
}
|
|
23
32
|
}, null), l("path", {
|
|
24
33
|
d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
|
|
25
34
|
fill: "url(#linearGradient-1)",
|
|
26
35
|
transform: "translate(13.56)"
|
|
27
36
|
}, null), l("path", {
|
|
28
37
|
d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
|
|
29
|
-
|
|
38
|
+
style: {
|
|
39
|
+
fill: t.planes
|
|
40
|
+
}
|
|
30
41
|
}, null), l("path", {
|
|
31
42
|
d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
|
|
32
|
-
|
|
43
|
+
style: {
|
|
44
|
+
fill: t.mid
|
|
45
|
+
}
|
|
33
46
|
}, null)]), l("path", {
|
|
34
47
|
d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
|
|
35
|
-
|
|
48
|
+
style: {
|
|
49
|
+
fill: t.mid
|
|
50
|
+
}
|
|
36
51
|
}, null), l("g", {
|
|
37
52
|
transform: "translate(149.65 15.383)",
|
|
38
|
-
|
|
53
|
+
style: {
|
|
54
|
+
fill: t.highlight
|
|
55
|
+
}
|
|
39
56
|
}, [l("ellipse", {
|
|
40
57
|
cx: "20.654",
|
|
41
58
|
cy: "3.167",
|