@pantograph/vue 0.30.4 → 0.30.6
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/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-7KKRWq3t.js → ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BYkFlZWU.js → ActionButton.vue_vue_type_script_setup_true_lang-CH_Oquxt.js} +1 -1
- package/dist/Alert/index.js +2 -2
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Avatar/index.js +2 -2
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CzFkAcKT.js → Avatar.vue_vue_type_style_index_0_lang-Br3Z0y8H.js} +57 -57
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DldQzFne.js +1 -0
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Ck1_dbLq.js → Badge.vue_vue_type_script_setup_true_lang-BVE5H-tP.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CxBSrreK.js → Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js} +1 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DQMQ2WbE.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DAiX2m7y.js → BaseBadge.vue_vue_type_style_index_0_lang-Xgu4prlJ.js} +19 -19
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-qkW0olhp.js → BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js} +66 -62
- package/dist/Blanket/index.js +1 -1
- package/dist/Blanket/index.umd.cjs +1 -1
- package/dist/{Blanket.vue_vue_type_style_index_0_lang-Dv68meO4.js → Blanket.vue_vue_type_style_index_0_lang-BZDbPoxP.js} +1 -1
- package/dist/{Blanket.vue_vue_type_style_index_0_lang-WKNPEuJI.js → Blanket.vue_vue_type_style_index_0_lang-CDrlnkqH.js} +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BFY3zxov.js → Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BtiJfT68.js → Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js} +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/Checkbox/index.js +2 -2
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CAdNvT8f.js → Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-u9Jw1VwG.js → Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js} +10 -9
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Did8RS1T.js → ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BVjzmZnp.js → ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js} +1 -1
- package/dist/ColorSwatch/index.js +32 -34
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +1 -0
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-C_XuCb0R.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-oV_EmLx_.js} +14 -12
- package/dist/ColorTrigger/ColorTrigger.d.ts +0 -1
- package/dist/ColorTrigger/index.js +2 -2
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +89 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +1 -0
- package/dist/Combobox/Combobox.d.ts +2 -7
- package/dist/Combobox/index.js +73 -70
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Comment/CommentActions.d.ts +0 -8
- package/dist/Comment/CommentEditor.d.ts +0 -16
- package/dist/Comment/CommentMention.d.ts +4 -12
- package/dist/Comment/CommentReactions.d.ts +0 -4
- package/dist/Comment/CommentTrigger.d.ts +2 -1
- package/dist/Comment/index.js +12 -10
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +7 -7
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DropZone/DropZone.d.ts +3 -0
- package/dist/DropZone/index.js +122 -84
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/FloatButton/FloatButton.d.ts +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxiLfXCr.js → FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Y3NGu4lx.js → FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js} +1 -1
- package/dist/Form/Form.d.ts +3 -1
- package/dist/Form/FormItem.d.ts +0 -1
- package/dist/Form/index.js +3 -3
- package/dist/Form/index.umd.cjs +2 -2
- package/dist/GOPicker/GOPicker.d.ts +0 -1
- package/dist/GOPicker/index.js +10 -7
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DBKQk4LJ.js → GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CgjAIWEo.js → GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js} +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DsSD_y63.js → IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js → IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js} +1 -1
- package/dist/IndentLevel/index.js +2 -2
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BUUUBn2Z.js → IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Bv3yL1Lk.js → IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BYE7yX5H.js → Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Rv1Cz38f.js → Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-ByHGhDsA.js → Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js} +26 -25
- package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +1 -0
- package/dist/InputNumber/InputNumber.d.ts +9 -9
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-C4GMpH6O.js → InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js} +86 -85
- package/dist/Menu/index.js +2 -2
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +5 -1
- package/dist/MenuItem/index.js +2 -2
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-ByicYJot.js → MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js} +212 -209
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +1 -0
- package/dist/Pagination/index.js +22 -20
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-dTuUkmBY.js → RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js} +8 -6
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-CaB3l3Qh.js → RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +1 -0
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-BXQbBiaE.js → Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js} +9 -7
- package/dist/Select/Select.d.ts +0 -1
- package/dist/Select/index.js +2 -2
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-7Tq97moQ.js → Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js} +114 -112
- package/dist/{Select.vue_vue_type_style_index_0_lang-C0JCB5l1.js → Select.vue_vue_type_style_index_0_lang-DI_YhCCT.js} +1 -1
- package/dist/Steps/Step.d.ts +1 -0
- package/dist/Steps/index.js +1 -1
- package/dist/Steps/index.umd.cjs +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +2 -2
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BFHMw2kq.js → Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js} +17 -15
- package/dist/Tabs/index.js +2 -2
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/index.js +43 -42
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Toast/Toast.d.ts +39 -3
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +114 -83
- package/dist/Toast/index.umd.cjs +1 -1
- package/dist/Tree/Tree.d.ts +0 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Upload/index.js +29 -27
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{index-AwKp_D1S.js → index-ClFtJyYC.js} +2 -2
- package/dist/index-DBiL8Htz.js +1 -0
- package/dist/index-DzG8mnap.js +1 -0
- package/dist/{index-BdPkHVwS.js → index-Y3XMSR_o.js} +72 -69
- package/dist/index.js +25 -25
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +26 -26
- package/dist/use/index.umd.cjs +1 -1
- package/package.json +3 -3
- package/dist/Avatar.vue_vue_type_style_index_0_lang-CX1z2Bid.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-O-9lK4KI.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1jasaOz.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CDF1AL9P.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BkJ15M1P.js +0 -88
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bm5rLiVf.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-CTIaAkrW.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DW-JqPiv.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-zBvtuEx_.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CLYRU64q.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-B9pNw4SK.js +0 -1
- package/dist/index-CLWvy5OA.js +0 -1
- package/dist/index-J_dmgfpe.js +0 -1
package/dist/Toast/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import { getComponentOptions as
|
|
4
|
-
import { isEmptyElement as d, installComponent as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
1
|
+
import { defineComponent as R, useSlots as j, computed as P, createElementBlock as q, openBlock as T, normalizeClass as w, unref as p, renderSlot as F, createVNode as N, createBlock as G, createCommentVNode as J, h as s } from "vue";
|
|
2
|
+
import { cva as K } from "class-variance-authority";
|
|
3
|
+
import { getComponentOptions as M, getBemBlock as Q, generateVariantClassList as $, normCls as a, getBemElement as l, getComponentName as U } from "@pantograph/utils";
|
|
4
|
+
import { isEmptyElement as d, installComponent as W } from "@pantograph/utils-vue";
|
|
5
|
+
import { _ as X } from "../index-ClFtJyYC.js";
|
|
6
|
+
import { _ as Y } from "../IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js";
|
|
7
|
+
import { _ as D } from "../Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js";
|
|
8
|
+
import { _ as Z } from "../Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js";
|
|
7
9
|
import "../Progress/index.js";
|
|
8
|
-
import { getCssCoreVar as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import { getCssCoreVar as x } from "@pantograph/tokens";
|
|
11
|
+
import "../Button/index.js";
|
|
12
|
+
import { i as oo } from "../isNumber-BduWbB-B.js";
|
|
13
|
+
import { _ as to } from "../Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js";
|
|
14
|
+
const eo = ["info", "success", "warning", "error"], no = /* @__PURE__ */ R({
|
|
15
|
+
...M("Toast"),
|
|
13
16
|
__name: "Toast",
|
|
14
17
|
props: {
|
|
15
18
|
type: {},
|
|
@@ -17,6 +20,7 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
|
|
|
17
20
|
progress: { type: Boolean, default: !1 },
|
|
18
21
|
closable: { type: Boolean, default: !0 },
|
|
19
22
|
paused: { type: Boolean },
|
|
23
|
+
actions: { type: Boolean },
|
|
20
24
|
title: {},
|
|
21
25
|
description: {},
|
|
22
26
|
icon: {},
|
|
@@ -29,22 +33,24 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
|
|
|
29
33
|
actionsCls: {},
|
|
30
34
|
headerCls: {},
|
|
31
35
|
closeCls: {},
|
|
32
|
-
|
|
36
|
+
okProps: { default: () => ({
|
|
37
|
+
text: "Confirm"
|
|
38
|
+
}) },
|
|
39
|
+
cancelProps: { default: () => ({
|
|
40
|
+
text: "Dismiss",
|
|
41
|
+
type: "ghost",
|
|
42
|
+
color: "neutral"
|
|
43
|
+
}) }
|
|
33
44
|
},
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
emits: ["ok", "cancel", "closeNotification"],
|
|
46
|
+
setup(L, { emit: E }) {
|
|
47
|
+
const t = L, o = j(), f = E, c = Q("toast"), V = K(c, {
|
|
36
48
|
variants: {
|
|
37
|
-
type:
|
|
38
|
-
paused:
|
|
49
|
+
type: $(eo, c),
|
|
50
|
+
paused: $("paused", c)
|
|
39
51
|
}
|
|
40
|
-
}),
|
|
41
|
-
|
|
42
|
-
variants: {
|
|
43
|
-
inline: y("inline", h)
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
const A = b(() => {
|
|
47
|
-
switch (o.type) {
|
|
52
|
+
}), A = P(() => {
|
|
53
|
+
switch (t.type) {
|
|
48
54
|
case "info":
|
|
49
55
|
return "sky";
|
|
50
56
|
case "success":
|
|
@@ -55,9 +61,9 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
|
|
|
55
61
|
return "red";
|
|
56
62
|
}
|
|
57
63
|
return "primary";
|
|
58
|
-
}), g =
|
|
59
|
-
if (
|
|
60
|
-
switch (
|
|
64
|
+
}), g = P(() => {
|
|
65
|
+
if (t.icon) return t.icon;
|
|
66
|
+
switch (t.type) {
|
|
61
67
|
case "info":
|
|
62
68
|
return "tabler:info-circle";
|
|
63
69
|
case "success":
|
|
@@ -67,102 +73,127 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
|
|
|
67
73
|
case "error":
|
|
68
74
|
return "tabler:circle-x";
|
|
69
75
|
}
|
|
70
|
-
}),
|
|
71
|
-
var
|
|
72
|
-
const r = (
|
|
76
|
+
}), z = () => {
|
|
77
|
+
var C;
|
|
78
|
+
const r = (C = o.icon) == null ? void 0 : C.call(o), u = !d(r);
|
|
73
79
|
if (u || g.value)
|
|
74
|
-
return
|
|
80
|
+
return s(
|
|
75
81
|
"div",
|
|
76
|
-
{ class:
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
{ class: l(c, "icon") },
|
|
83
|
+
s(
|
|
84
|
+
Z,
|
|
79
85
|
{
|
|
80
86
|
icon: g.value,
|
|
81
87
|
size: "sm",
|
|
82
|
-
style: { color:
|
|
88
|
+
style: { color: x("rouad") }
|
|
83
89
|
},
|
|
84
90
|
u ? { icon: r } : {}
|
|
85
91
|
)
|
|
86
92
|
);
|
|
87
|
-
},
|
|
93
|
+
}, H = () => {
|
|
88
94
|
const u = (() => {
|
|
89
95
|
var n;
|
|
90
|
-
const e = (n =
|
|
91
|
-
if (i ||
|
|
92
|
-
return
|
|
96
|
+
const e = (n = o.description) == null ? void 0 : n.call(o), i = !d(e);
|
|
97
|
+
if (i || t.description)
|
|
98
|
+
return s(
|
|
93
99
|
"div",
|
|
94
100
|
{
|
|
95
|
-
class: l(
|
|
101
|
+
class: a(l(c, "description"), t.descriptionCls, "paragraph")
|
|
96
102
|
},
|
|
97
|
-
i ? e :
|
|
103
|
+
i ? e : t.description
|
|
98
104
|
);
|
|
99
105
|
})(), v = (() => {
|
|
100
106
|
var n;
|
|
101
|
-
const e = (n =
|
|
102
|
-
if (
|
|
103
|
-
return
|
|
107
|
+
const e = (n = o.title) == null ? void 0 : n.call(o), i = !d(e);
|
|
108
|
+
if (t.title || i)
|
|
109
|
+
return s(
|
|
104
110
|
"div",
|
|
105
|
-
{ class: l(
|
|
106
|
-
i ? e :
|
|
111
|
+
{ class: a(l(c, "title"), t.titleCls, "paragraph") },
|
|
112
|
+
i ? e : t.title
|
|
107
113
|
);
|
|
108
|
-
})(),
|
|
114
|
+
})(), B = (() => {
|
|
109
115
|
var n;
|
|
110
|
-
const e = (n =
|
|
111
|
-
if (
|
|
112
|
-
return
|
|
116
|
+
const e = (n = o.closeButton) == null ? void 0 : n.call(o), i = !d(e);
|
|
117
|
+
if (t.closable || i)
|
|
118
|
+
return s(
|
|
113
119
|
"div",
|
|
114
|
-
{ class: l(
|
|
115
|
-
i ? e :
|
|
120
|
+
{ class: a(l(c, "close"), t.closeCls) },
|
|
121
|
+
i ? e : s(Y, {
|
|
116
122
|
icon: "tabler:x",
|
|
117
123
|
color: "neutral",
|
|
118
124
|
type: "ghost",
|
|
119
|
-
onClick:
|
|
125
|
+
onClick: (m) => f("closeNotification", m)
|
|
120
126
|
})
|
|
121
127
|
);
|
|
122
|
-
})(),
|
|
128
|
+
})(), I = (() => {
|
|
123
129
|
var n;
|
|
124
|
-
const e = (n =
|
|
130
|
+
const e = (n = o.link) == null ? void 0 : n.call(o);
|
|
125
131
|
if (!d(e)) return e;
|
|
126
|
-
})(),
|
|
127
|
-
var
|
|
128
|
-
const e = (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
})(), h = (() => {
|
|
133
|
+
var m;
|
|
134
|
+
const e = (m = o.actions) == null ? void 0 : m.call(o), i = !d(e);
|
|
135
|
+
let n;
|
|
136
|
+
if (i ? n = e : t.actions && (n = s(X, void 0, () => {
|
|
137
|
+
var _, b;
|
|
138
|
+
return [
|
|
139
|
+
(_ = t.cancelProps) != null && _.hide ? null : s(
|
|
140
|
+
D,
|
|
141
|
+
{
|
|
142
|
+
...t.cancelProps ?? {},
|
|
143
|
+
onClick: (y) => f("cancel", y)
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
default: o.cancel,
|
|
147
|
+
preIcon: o.cancelPreIcon,
|
|
148
|
+
postIcon: o.cancelPostIcon
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
(b = t.okProps) != null && b.hide ? null : s(
|
|
152
|
+
D,
|
|
153
|
+
{
|
|
154
|
+
...t.okProps ?? {},
|
|
155
|
+
onClick: (y) => f("ok", y)
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
default: o.ok,
|
|
159
|
+
preIcon: o.okPreIcon,
|
|
160
|
+
postIcon: o.okPostIcon
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
];
|
|
164
|
+
})), n)
|
|
165
|
+
return s("div", { class: a(l(c, "actions"), t.actionsCls) }, n);
|
|
166
|
+
})(), k = !I && !u, O = () => {
|
|
167
|
+
if (!v && !B && !(k && h)) return null;
|
|
137
168
|
const e = [v];
|
|
138
|
-
return
|
|
139
|
-
},
|
|
140
|
-
|
|
169
|
+
return k && e.push(h), e.push(B), s("div", { class: a(l(c, "header"), t.headerCls) }, e);
|
|
170
|
+
}, S = [s("div", { class: a(l(c, "content"), t.contentCls) }, [
|
|
171
|
+
O(),
|
|
141
172
|
u
|
|
142
173
|
])];
|
|
143
|
-
return
|
|
174
|
+
return k || S.push(I, h), s("div", { class: a(l(c, "body"), t.bodyCls) }, S);
|
|
144
175
|
};
|
|
145
|
-
return (r, u) => (T(),
|
|
146
|
-
class:
|
|
176
|
+
return (r, u) => (T(), q("div", {
|
|
177
|
+
class: w(p(a)(p(V)({ type: r.type, paused: r.paused }), t.class))
|
|
147
178
|
}, [
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
r.progress && p(
|
|
179
|
+
F(r.$slots, "default", {}, () => [
|
|
180
|
+
N(z),
|
|
181
|
+
N(H),
|
|
182
|
+
r.progress && p(oo)(r.duration) && ![0, 1 / 0].includes(r.duration) ? (T(), G(p(to), {
|
|
152
183
|
key: 0,
|
|
153
|
-
class:
|
|
184
|
+
class: w(p(a)(p(l)(p(c), "progress"), r.progressCls)),
|
|
154
185
|
noTransition: "",
|
|
155
186
|
notRounded: "",
|
|
156
187
|
duration: r.duration,
|
|
157
188
|
color: A.value
|
|
158
|
-
}, null, 8, ["class", "duration", "color"])) :
|
|
189
|
+
}, null, 8, ["class", "duration", "color"])) : J("", !0)
|
|
159
190
|
])
|
|
160
191
|
], 2));
|
|
161
192
|
}
|
|
162
|
-
}),
|
|
193
|
+
}), So = W(no, U("Toast"));
|
|
163
194
|
export {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
195
|
+
no as Toast,
|
|
196
|
+
So as ToastPlugin,
|
|
197
|
+
eo as ToastTypes,
|
|
198
|
+
no as default
|
|
168
199
|
};
|
package/dist/Toast/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("class-variance-authority"),n=require("@pantograph/utils"),a=require("@pantograph/utils-vue"),A=require("../index-DzG8mnap.js"),z=require("../IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js"),S=require("../Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js"),M=require("../Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js");require("../Progress/index.umd.cjs");const O=require("@pantograph/tokens");require("../Button/index.umd.cjs");const j=require("../isNumber-DMOjxgl8.js"),G=require("../Progress.vue_vue_type_style_index_0_lang-D_g_XsJ4.js"),T=["info","success","warning","error"],_=e.defineComponent({...n.getComponentOptions("Toast"),__name:"Toast",props:{type:{},duration:{default:3e3},progress:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},paused:{type:Boolean},actions:{type:Boolean},title:{},description:{},icon:{},class:{},bodyCls:{},progressCls:{},contentCls:{},titleCls:{},descriptionCls:{},actionsCls:{},headerCls:{},closeCls:{},okProps:{default:()=>({text:"Confirm"})},cancelProps:{default:()=>({text:"Dismiss",type:"ghost",color:"neutral"})}},emits:["ok","cancel","closeNotification"],setup(b,{emit:P}){const o=b,t=e.useSlots(),m=P,c=n.getBemBlock("toast"),q=D.cva(c,{variants:{type:n.generateVariantClassList(T,c),paused:n.generateVariantClassList("paused",c)}}),N=e.computed(()=>{switch(o.type){case"info":return"sky";case"success":return"green";case"warning":return"yellow";case"error":return"red"}return"primary"}),g=e.computed(()=>{if(o.icon)return o.icon;switch(o.type){case"info":return"tabler:info-circle";case"success":return"tabler:circle-check";case"warning":return"tabler:alert-triangle";case"error":return"tabler:circle-x"}}),V=()=>{var d;const i=(d=t.icon)==null?void 0:d.call(t),u=!a.isEmptyElement(i);if(u||g.value)return e.h("div",{class:n.getBemElement(c,"icon")},e.h(M._sfc_main,{icon:g.value,size:"sm",style:{color:O.getCssCoreVar("rouad")}},u?{icon:i}:{}))},w=()=>{const u=(()=>{var r;const s=(r=t.description)==null?void 0:r.call(t),l=!a.isEmptyElement(s);if(l||o.description)return e.h("div",{class:n.normCls(n.getBemElement(c,"description"),o.descriptionCls,"paragraph")},l?s:o.description)})(),y=(()=>{var r;const s=(r=t.title)==null?void 0:r.call(t),l=!a.isEmptyElement(s);if(o.title||l)return e.h("div",{class:n.normCls(n.getBemElement(c,"title"),o.titleCls,"paragraph")},l?s:o.title)})(),k=(()=>{var r;const s=(r=t.closeButton)==null?void 0:r.call(t),l=!a.isEmptyElement(s);if(o.closable||l)return e.h("div",{class:n.normCls(n.getBemElement(c,"close"),o.closeCls)},l?s:e.h(z._sfc_main,{icon:"tabler:x",color:"neutral",type:"ghost",onClick:p=>m("closeNotification",p)}))})(),v=(()=>{var r;const s=(r=t.link)==null?void 0:r.call(t);if(!a.isEmptyElement(s))return s})(),f=(()=>{var p;const s=(p=t.actions)==null?void 0:p.call(t),l=!a.isEmptyElement(s);let r;if(l?r=s:o.actions&&(r=e.h(A._sfc_main,void 0,()=>{var E,I;return[(E=o.cancelProps)!=null&&E.hide?null:e.h(S._sfc_main,{...o.cancelProps??{},onClick:h=>m("cancel",h)},{default:t.cancel,preIcon:t.cancelPreIcon,postIcon:t.cancelPostIcon}),(I=o.okProps)!=null&&I.hide?null:e.h(S._sfc_main,{...o.okProps??{},onClick:h=>m("ok",h)},{default:t.ok,preIcon:t.okPreIcon,postIcon:t.okPostIcon})]})),r)return e.h("div",{class:n.normCls(n.getBemElement(c,"actions"),o.actionsCls)},r)})(),C=!v&&!u,L=()=>{if(!y&&!k&&!(C&&f))return null;const s=[y];return C&&s.push(f),s.push(k),e.h("div",{class:n.normCls(n.getBemElement(c,"header"),o.headerCls)},s)},B=[e.h("div",{class:n.normCls(n.getBemElement(c,"content"),o.contentCls)},[L(),u])];return C||B.push(v,f),e.h("div",{class:n.normCls(n.getBemElement(c,"body"),o.bodyCls)},B)};return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(q)({type:i.type,paused:i.paused}),o.class))},[e.renderSlot(i.$slots,"default",{},()=>[e.createVNode(V),e.createVNode(w),i.progress&&e.unref(j.isNumber)(i.duration)&&![0,1/0].includes(i.duration)?(e.openBlock(),e.createBlock(e.unref(G._sfc_main),{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(c),"progress"),i.progressCls)),noTransition:"",notRounded:"",duration:i.duration,color:N.value},null,8,["class","duration","color"])):e.createCommentVNode("",!0)])],2))}}),H=a.installComponent(_,n.getComponentName("Toast"));exports.Toast=_;exports.ToastPlugin=H;exports.ToastTypes=T;exports.default=_;
|
package/dist/Tree/Tree.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ declare const __VLS_component: import('vue').DefineComponent<TreeProps, {
|
|
|
64
64
|
onChoose?: ((event: Sortable.SortableEvent) => any) | undefined;
|
|
65
65
|
onUnchoose?: ((event: Sortable.SortableEvent) => any) | undefined;
|
|
66
66
|
}>, {
|
|
67
|
-
size: import('./Tree.model').TreeSize;
|
|
68
67
|
disabled: boolean;
|
|
69
68
|
selectionBehavior: "toggle" | "replace";
|
|
70
69
|
focusable: boolean;
|
package/dist/Tree/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o, T as t, a as T, b as i, c as p, d, _ as n, i as l, p as m } from "../index-
|
|
1
|
+
import { _ as o, T as t, a as T, b as i, c as p, d, _ as n, i as l, p as m } from "../index-Y3XMSR_o.js";
|
|
2
2
|
import "@pantograph/utils-vue";
|
|
3
3
|
import "@pantograph/utils";
|
|
4
4
|
export {
|
package/dist/Tree/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-DBiL8Htz.js");require("@pantograph/utils-vue");require("@pantograph/utils");exports.Tree=e._sfc_main;exports.TreeGaps=e.TreeGaps;exports.TreeNode=e._sfc_main$1;exports.TreeNodePlugin=e.TreeNodePlugin;exports.TreePlugin=e.TreePlugin;exports.TreeSizes=e.TreeSizes;exports.default=e._sfc_main;exports.injectTreeContext=e.injectTreeContext;exports.provideTreeContext=e.provideTreeContext;
|
package/dist/Upload/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as V, createElementBlock as G, openBlock as U, Fragment as fe, createBlock as R, createCommentVNode as j, createVNode as
|
|
1
|
+
import { defineComponent as V, createElementBlock as G, openBlock as U, Fragment as fe, createBlock as R, createCommentVNode as j, createVNode as D, unref as i, normalizeClass as q, createSlots as lt, withCtx as te, withModifiers as M, computed as x, h as K, createElementVNode as _e, mergeProps as Ce, useSlots as ze, useAttrs as Ie, ref as Y, watch as ce, nextTick as be, readonly as it, renderSlot as Le, normalizeProps as Te, guardReactiveProps as Re } from "vue";
|
|
2
2
|
import { createContext as me } from "reka-ui";
|
|
3
3
|
import { getBemBlock as at, getBemElement as B, getComponentOptions as W, normCls as ge, generateVariantClassList as H, usePCId as de, getComponentName as ve } from "@pantograph/utils";
|
|
4
4
|
import { cva as Be } from "class-variance-authority";
|
|
5
5
|
import { _ as Se } from "../Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js";
|
|
6
|
-
import { _ as rt } from "../FloatButton.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as J } from "../IconButton.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as rt } from "../FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js";
|
|
7
|
+
import { _ as J } from "../IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js";
|
|
8
8
|
import { _ as ut } from "../Image.vue_vue_type_style_index_0_lang-CQv-I6_G.js";
|
|
9
9
|
import { isFunction as Z, isEqual as ct, throttle as pt, pick as dt, cloneDeep as C } from "es-toolkit";
|
|
10
|
-
import { _ as ft } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as ft } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js";
|
|
11
11
|
import { isEmptyElement as N, useFormInput as mt, installComponent as he } from "@pantograph/utils-vue";
|
|
12
12
|
import { _ as gt } from "../FormValidation.vue_vue_type_style_index_0_lang-5tWE2LgD.js";
|
|
13
13
|
import { i as se } from "../isObject-vmP43YLW.js";
|
|
@@ -217,7 +217,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
217
217
|
key: 0,
|
|
218
218
|
src: i(Oe)(i(t).props.uploadFile) ? i(t).props.uploadFile.thumbUrl ?? i(t).props.uploadFile.url : void 0,
|
|
219
219
|
aspectRatio: "1:1",
|
|
220
|
-
class:
|
|
220
|
+
class: q(i(B)(i(L), "image")),
|
|
221
221
|
sizeRange: "xsm",
|
|
222
222
|
alt: i(t).label.value,
|
|
223
223
|
hovered: i(t).props.uploadFile.status === "uploading",
|
|
@@ -249,12 +249,12 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
249
249
|
key: 1,
|
|
250
250
|
type: "circle",
|
|
251
251
|
size: i(s).progressSize.value,
|
|
252
|
-
class:
|
|
252
|
+
class: q(i(B)(i(L), "progress")),
|
|
253
253
|
indeterminate: i(t).props.uploadFile.status === "waiting",
|
|
254
254
|
percent: ((g = i(t).props.uploadFile) == null ? void 0 : g.percent) ?? 0
|
|
255
255
|
}, null, 8, ["size", "class", "indeterminate", "percent"])) : j("", !0),
|
|
256
|
-
|
|
257
|
-
class:
|
|
256
|
+
D(rt, {
|
|
257
|
+
class: q(
|
|
258
258
|
i(ge)(i(B)(i(L), "cancel"), "pantograph-tokens pantograph-dark")
|
|
259
259
|
),
|
|
260
260
|
color: "neutral",
|
|
@@ -337,12 +337,12 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
337
337
|
i(s).props.go ? (U(), R(zt, { key: 0 })) : j("", !0),
|
|
338
338
|
["error", "done"].includes(i(t).props.uploadFile.status) ? (U(), G("div", {
|
|
339
339
|
key: 2,
|
|
340
|
-
class:
|
|
340
|
+
class: q(i(B)(i(L), "content"))
|
|
341
341
|
}, [
|
|
342
342
|
_e("div", {
|
|
343
|
-
class:
|
|
343
|
+
class: q(i(B)(i(L), "title"))
|
|
344
344
|
}, [
|
|
345
|
-
|
|
345
|
+
D(n)
|
|
346
346
|
], 2),
|
|
347
347
|
i(t).props.uploadFile.status === "error" ? (U(), R(gt, {
|
|
348
348
|
key: 0,
|
|
@@ -351,18 +351,18 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
351
351
|
})) : i(s).props.size !== "md" ? (U(), R(d, { key: 1 })) : j("", !0)
|
|
352
352
|
], 2)) : (U(), R(Se, {
|
|
353
353
|
key: 1,
|
|
354
|
-
class:
|
|
354
|
+
class: q(i(B)(i(L), "progress")),
|
|
355
355
|
percent: ((o = i(t).props.uploadFile) == null ? void 0 : o.percent) ?? 0,
|
|
356
356
|
label: i(t).label.value,
|
|
357
357
|
helperText: g.value,
|
|
358
358
|
helperTextCls: i(B)(i(L), "percent")
|
|
359
359
|
}, {
|
|
360
360
|
label: te(() => [
|
|
361
|
-
|
|
361
|
+
D(n)
|
|
362
362
|
]),
|
|
363
363
|
_: 1
|
|
364
364
|
}, 8, ["class", "percent", "label", "helperText", "helperTextCls"])),
|
|
365
|
-
|
|
365
|
+
D(p, null, {
|
|
366
366
|
default: te(() => {
|
|
367
367
|
var h;
|
|
368
368
|
return [
|
|
@@ -389,7 +389,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
389
389
|
color: "neutral",
|
|
390
390
|
onClick: c[0] || (c[0] = M((v) => i(s).resetRequest(i(t).props.uploadFile.uid), ["stop"]))
|
|
391
391
|
}, null, 8, ["icon"])) : j("", !0),
|
|
392
|
-
|
|
392
|
+
D(J, {
|
|
393
393
|
icon: ["done", "error"].includes(i(t).props.uploadFile.status) ? "tabler:trash" : "tabler:x",
|
|
394
394
|
size: "sm",
|
|
395
395
|
type: "ghost",
|
|
@@ -443,7 +443,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
443
443
|
status: (u = g.uploadFile) == null ? void 0 : u.status
|
|
444
444
|
})
|
|
445
445
|
}, { ...((o = (c = i(n).props).getUploadItemProps) == null ? void 0 : o.call(c, g.uploadFile)) ?? {} }), [
|
|
446
|
-
|
|
446
|
+
D(r)
|
|
447
447
|
], 16);
|
|
448
448
|
};
|
|
449
449
|
}
|
|
@@ -461,7 +461,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
461
461
|
}), n = g, r++;
|
|
462
462
|
}
|
|
463
463
|
return d;
|
|
464
|
-
},
|
|
464
|
+
}, De = (e, { getUid: s, chunkFile: t, chunkSize: d }) => {
|
|
465
465
|
if (se(e)) {
|
|
466
466
|
let n;
|
|
467
467
|
if (e instanceof File)
|
|
@@ -502,8 +502,8 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
|
|
|
502
502
|
}
|
|
503
503
|
}, Bt = (e, s) => {
|
|
504
504
|
if (se(e))
|
|
505
|
-
return e instanceof Blob || e instanceof File ?
|
|
506
|
-
},
|
|
505
|
+
return e instanceof Blob || e instanceof File ? De(e, s) : (!e.uid && !Object.isFrozen(e) && (e.uid = s.getUid()), e);
|
|
506
|
+
}, qe = (e, s) => {
|
|
507
507
|
if (e && s) {
|
|
508
508
|
const t = Array.isArray(s) ? s : s.split(","), d = (e == null ? void 0 : e.name) || "", n = (e == null ? void 0 : e.type) || "", r = n.replace(/\/.*$/, "");
|
|
509
509
|
return t.some((g) => {
|
|
@@ -614,9 +614,9 @@ const Me = /* @__PURE__ */ V({
|
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
}, Ve = (l) => {
|
|
617
|
-
vt(l) && l.filter((m) => !c.value.directory ||
|
|
617
|
+
vt(l) && l.filter((m) => !c.value.directory || qe(m, v.value)).forEach((m) => {
|
|
618
618
|
Ge(
|
|
619
|
-
|
|
619
|
+
De(m, {
|
|
620
620
|
getUid: Fe,
|
|
621
621
|
chunkFile: h.value,
|
|
622
622
|
chunkSize: c.value.chunkSize
|
|
@@ -905,7 +905,7 @@ const Me = /* @__PURE__ */ V({
|
|
|
905
905
|
var b;
|
|
906
906
|
return (b = P.fileList.value) != null && b.length ? (U(), G("div", {
|
|
907
907
|
key: 0,
|
|
908
|
-
class:
|
|
908
|
+
class: q(
|
|
909
909
|
i(ge)(
|
|
910
910
|
i(Qe)({
|
|
911
911
|
size: P.props.size,
|
|
@@ -915,7 +915,7 @@ const Me = /* @__PURE__ */ V({
|
|
|
915
915
|
)
|
|
916
916
|
)
|
|
917
917
|
}, [
|
|
918
|
-
|
|
918
|
+
D(et)
|
|
919
919
|
], 2)) : j("", !0);
|
|
920
920
|
};
|
|
921
921
|
}
|
|
@@ -966,7 +966,9 @@ const Me = /* @__PURE__ */ V({
|
|
|
966
966
|
},
|
|
967
967
|
emits: ["addFiles"],
|
|
968
968
|
setup(e, { emit: s }) {
|
|
969
|
-
const t = s, d = e, { getDisabled: n } = mt(
|
|
969
|
+
const t = s, d = e, { getDisabled: n } = mt({
|
|
970
|
+
exports: ["getDisabled"]
|
|
971
|
+
}), r = Y(), g = (v) => {
|
|
970
972
|
const { files: f } = v.target;
|
|
971
973
|
t("addFiles", Array.prototype.slice.call(f)), p.value && (p.value.value = "");
|
|
972
974
|
}, p = Y(), u = () => {
|
|
@@ -980,7 +982,7 @@ const Me = /* @__PURE__ */ V({
|
|
|
980
982
|
let f = [];
|
|
981
983
|
v.dataTransfer && (d.directory ? f = await jt(Array.prototype.slice.call(v.dataTransfer.items)) : f = Array.prototype.slice.call(v.dataTransfer.files)), d.multiple || (f = f.slice(0, 1)), t(
|
|
982
984
|
"addFiles",
|
|
983
|
-
f.filter((I) =>
|
|
985
|
+
f.filter((I) => qe(I, d.accept))
|
|
984
986
|
);
|
|
985
987
|
}, h = x(() => n.value ? {} : {
|
|
986
988
|
onClick: u,
|
|
@@ -1083,14 +1085,14 @@ const Me = /* @__PURE__ */ V({
|
|
|
1083
1085
|
disabled: o.disabled,
|
|
1084
1086
|
accept: c.getAccept.value,
|
|
1085
1087
|
onAddFiles: c.addFiles.value,
|
|
1086
|
-
class:
|
|
1088
|
+
class: q(o.triggerCls)
|
|
1087
1089
|
}, {
|
|
1088
1090
|
default: te((v) => [
|
|
1089
1091
|
Le(o.$slots, "default", Te(Re(v)))
|
|
1090
1092
|
]),
|
|
1091
1093
|
_: 3
|
|
1092
1094
|
}, 8, ["multiple", "directory", "disabled", "accept", "onAddFiles", "class"])),
|
|
1093
|
-
|
|
1095
|
+
D(Me, {
|
|
1094
1096
|
action: o.action,
|
|
1095
1097
|
ref_key: "listRef",
|
|
1096
1098
|
ref: u
|