@das-fed/upf-ui 6.4.0-dev.210 → 6.4.0-dev.212
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/front-end/i18n/front-end-page/dasui_en-US.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +5 -5
- package/package.json +5 -5
- package/packages/business-components/ai-panel/{index-BgyMyjJo.js → index-BybM3Q9u.js} +700 -711
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +142 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-Bw7rNZmA.js → index-CwdJKHy0.js} +9 -9
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8773 -8873
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +50 -50
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +149 -149
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +60 -60
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +128 -130
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +896 -904
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +246 -249
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/button/index.js +182 -178
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/calendar/index.js +104 -104
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +27 -27
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +54 -54
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +459 -459
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +61 -63
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +22 -23
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +223 -224
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +42 -44
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +63 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +32 -32
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +51 -51
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +44 -44
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +832 -834
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +431 -437
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +33 -33
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4556 -4586
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +2 -2
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.d.ts +3 -0
- package/packages/components/select/index.js +348 -310
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.js +6 -10
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +35 -35
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +101 -102
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +599 -604
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree/index.js +173 -182
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +427 -409
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +8 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +10 -4
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1208 -1240
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js +0 -143
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/checkbox/style.css';
|
|
2
|
-
import { defineComponent as ae, computed as p, reactive as le, toRefs as oe, watchEffect as
|
|
2
|
+
import { defineComponent as ae, computed as p, reactive as le, toRefs as oe, watchEffect as te, watch as se, useSlots as ue, ref as Q, onMounted as re, openBlock as o, createElementBlock as u, normalizeStyle as y, createBlock as W, unref as r, mergeProps as U, isRef as A, withCtx as M, withDirectives as g, renderSlot as C, createCommentVNode as c, normalizeClass as n, Fragment as $, renderList as B, createElementVNode as j, createTextVNode as N, toDisplayString as k, createVNode as G } from "vue";
|
|
3
3
|
import { withInstall as ie } from "@das-fed/upf-utils/with-install/index";
|
|
4
4
|
import { CheckboxGroup as de } from "ant-design-vue/es";
|
|
5
5
|
import "ant-design-vue/es/checkbox/style/css";
|
|
@@ -55,77 +55,77 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
55
55
|
ce({
|
|
56
56
|
select: import("@das-fed/upf-ui/packages/icons/select")
|
|
57
57
|
});
|
|
58
|
-
const
|
|
58
|
+
const t = T, z = p(() => t.noSetDefaultVal ? "" : "-"), D = le({
|
|
59
59
|
checkboxValue: null,
|
|
60
60
|
isFocus: !1,
|
|
61
61
|
checkboxLayout: "",
|
|
62
62
|
checkboxIndeterminate: !1
|
|
63
63
|
});
|
|
64
|
-
let { checkboxValue:
|
|
65
|
-
const I =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}),
|
|
64
|
+
let { checkboxValue: s, isFocus: F, checkboxIndeterminate: v } = oe(D);
|
|
65
|
+
const I = t.layout, m = S;
|
|
66
|
+
te(() => {
|
|
67
|
+
s.value = t.modelValue, v.value = t.indeterminate, t.checkboxType == "default" && t.optionType == "default" && t.modelValue && (v.value = !1);
|
|
68
|
+
}), se(s, (e) => {
|
|
69
69
|
m("update:modelValue", e);
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const f = K(t, "defaultProps"), V = K(t, "options"), b = p(() => V.value.length ? V.value.map((e) => {
|
|
72
72
|
var l;
|
|
73
73
|
return {
|
|
74
|
-
value: e[
|
|
75
|
-
label: e[
|
|
74
|
+
value: e[f.value.value],
|
|
75
|
+
label: e[f.value.label],
|
|
76
76
|
disabled: e.disabled,
|
|
77
77
|
isFocus: !1,
|
|
78
|
-
checked: (l =
|
|
78
|
+
checked: (l = t.modelValue) == null ? void 0 : l.includes(e[f.value.value]),
|
|
79
79
|
mutual: e.mutual
|
|
80
80
|
};
|
|
81
|
-
}) : []),
|
|
82
|
-
v && (v.value = !1, m("update:indeterminate", v.value), m("update:modelValue",
|
|
83
|
-
}, X =
|
|
81
|
+
}) : []), O = () => {
|
|
82
|
+
v && (v.value = !1, m("update:indeterminate", v.value), m("update:modelValue", s.value)), m("change", s.value);
|
|
83
|
+
}, X = t.disabled, Y = b.value.some((e) => !!e.mutual), L = (e, l) => {
|
|
84
84
|
if (!X)
|
|
85
85
|
if (e == "group") {
|
|
86
86
|
if (l.disabled) return;
|
|
87
|
-
|
|
87
|
+
Y ? l.mutual ? (b.value.forEach((i) => {
|
|
88
88
|
i.checked = !1;
|
|
89
|
-
}), l.checked = !0) : (l.checked = !l.checked,
|
|
90
|
-
i.mutual && (i.checked = !
|
|
91
|
-
})) : l.checked = !l.checked, l.isFocus = !0,
|
|
89
|
+
}), l.checked = !0) : (l.checked = !l.checked, b.value.forEach((i) => {
|
|
90
|
+
i.mutual && (i.checked = !b.value.some((a) => a.checked));
|
|
91
|
+
})) : l.checked = !l.checked, l.isFocus = !0, s.value = b.value.filter((i) => i.checked).map((i) => i.value), m("change", s.value);
|
|
92
92
|
} else
|
|
93
|
-
|
|
93
|
+
s.value = !s.value, F.value = !0, m("change", s.value);
|
|
94
94
|
}, R = p(() => {
|
|
95
95
|
var e, l, i;
|
|
96
|
-
if (!
|
|
97
|
-
if ((!((e = V.value) != null && e.length) || !((l =
|
|
98
|
-
if (
|
|
96
|
+
if (!t.isView) return [];
|
|
97
|
+
if ((!((e = V.value) != null && e.length) || !((l = s.value) != null && l.length)) && t.checkboxType == "group") return [];
|
|
98
|
+
if (t.checkboxType == "group")
|
|
99
99
|
return V.value.filter((a) => {
|
|
100
|
-
if (
|
|
100
|
+
if (s.value.includes(a[f.value.value]))
|
|
101
101
|
return a;
|
|
102
102
|
});
|
|
103
103
|
{
|
|
104
|
-
if (!
|
|
104
|
+
if (!s.value) return [];
|
|
105
105
|
const a = ue();
|
|
106
106
|
let d = null;
|
|
107
107
|
return a && a.default && ((i = a.default()) == null ? void 0 : i.length) == 0 && (d = a.default()[0].children), [
|
|
108
108
|
{
|
|
109
|
-
value:
|
|
109
|
+
value: s.value,
|
|
110
110
|
label: d
|
|
111
111
|
}
|
|
112
112
|
];
|
|
113
113
|
}
|
|
114
114
|
}), P = (e, l) => {
|
|
115
115
|
e == "group" ? l.isFocus = !1 : F.value = !1;
|
|
116
|
-
}, Z = p(() =>
|
|
116
|
+
}, Z = p(() => t.maxWidth ? t.maxWidth : t.width), h = p(() => {
|
|
117
117
|
let e = `${Number(String(Z.value).split("px")[0])}`;
|
|
118
|
-
if (
|
|
118
|
+
if (t.maxWidth)
|
|
119
119
|
return `max-width:${e}px`;
|
|
120
|
-
if (
|
|
121
|
-
return Number(e) > 72 &&
|
|
120
|
+
if (t.width)
|
|
121
|
+
return Number(e) > 72 && t.maxWidth ? `width:${e};max-width:${e}px;` : `width:${e}px`;
|
|
122
122
|
}), E = Q(null), _ = () => {
|
|
123
123
|
setTimeout(() => {
|
|
124
124
|
var l, i;
|
|
125
125
|
const e = (i = (l = E.value) == null ? void 0 : l.$el) == null ? void 0 : i.querySelectorAll(".ant-checkbox-input");
|
|
126
126
|
e && e.length && e.forEach((a) => a.setAttribute("tabindex", "-1"));
|
|
127
127
|
}, 1e3);
|
|
128
|
-
}, q = p(() =>
|
|
128
|
+
}, q = p(() => t.formSize), ee = p(() => ({
|
|
129
129
|
"--checkbox-height": q.value && {
|
|
130
130
|
small: "24px",
|
|
131
131
|
default: "32px",
|
|
@@ -143,20 +143,20 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
143
143
|
class: "das-ui-checkbox",
|
|
144
144
|
style: y(ee.value)
|
|
145
145
|
}, [
|
|
146
|
-
e.checkboxType == "default" && e.optionType == "default" && !e.isView ? (o(),
|
|
146
|
+
e.checkboxType == "default" && e.optionType == "default" && !e.isView ? (o(), W(r(H), U({
|
|
147
147
|
key: 0,
|
|
148
148
|
ref_key: "checkboxRef",
|
|
149
149
|
ref: E,
|
|
150
|
-
checked: r(
|
|
151
|
-
"onUpdate:checked": l[0] || (l[0] = (a) => A(
|
|
150
|
+
checked: r(s),
|
|
151
|
+
"onUpdate:checked": l[0] || (l[0] = (a) => A(s) ? s.value = a : s = a),
|
|
152
152
|
disabled: e.disabled
|
|
153
153
|
}, e.$attrs, {
|
|
154
154
|
optionType: e.optionType,
|
|
155
155
|
indeterminate: r(v),
|
|
156
|
-
onChange:
|
|
156
|
+
onChange: O,
|
|
157
157
|
class: [e.size, { nolabel: Object.keys(e.$slots).length == 0 }]
|
|
158
158
|
}), {
|
|
159
|
-
default:
|
|
159
|
+
default: M(() => [
|
|
160
160
|
g((o(), u("div", {
|
|
161
161
|
class: "label",
|
|
162
162
|
style: y([h.value, { color: "#666" }])
|
|
@@ -175,7 +175,7 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
175
175
|
e.size,
|
|
176
176
|
{
|
|
177
177
|
"das-ui-checkbox-square--disabled": e.disabled,
|
|
178
|
-
"das-ui-checkbox-square--checked": !!r(
|
|
178
|
+
"das-ui-checkbox-square--checked": !!r(s),
|
|
179
179
|
"das-ui-checkbox-square--focus": r(F),
|
|
180
180
|
"ellipsis-square-checkbox": !!h.value
|
|
181
181
|
}
|
|
@@ -191,25 +191,25 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
191
191
|
[r(x)]
|
|
192
192
|
])
|
|
193
193
|
], 38)) : c("", !0),
|
|
194
|
-
e.checkboxType == "group" && e.optionType == "default" && !e.isView ? (o(),
|
|
194
|
+
e.checkboxType == "group" && e.optionType == "default" && !e.isView ? (o(), W(i, U({
|
|
195
195
|
key: 2,
|
|
196
196
|
ref_key: "checkboxRef",
|
|
197
197
|
ref: E
|
|
198
198
|
}, e.$attrs, {
|
|
199
199
|
class: [e.size, { "das-ui-checkbox-vertical": r(I) == "vertical" }],
|
|
200
|
-
value: r(
|
|
201
|
-
"onUpdate:value": l[3] || (l[3] = (a) => A(
|
|
200
|
+
value: r(s),
|
|
201
|
+
"onUpdate:value": l[3] || (l[3] = (a) => A(s) ? s.value = a : s = a),
|
|
202
202
|
name: e.name,
|
|
203
|
-
onChange:
|
|
203
|
+
onChange: O
|
|
204
204
|
}), {
|
|
205
|
-
default:
|
|
206
|
-
(o(!0), u($, null, B(
|
|
205
|
+
default: M(() => [
|
|
206
|
+
(o(!0), u($, null, B(b.value, (a, d) => (o(), W(r(H), {
|
|
207
207
|
key: d,
|
|
208
208
|
value: a.value,
|
|
209
209
|
"onUpdate:value": (w) => a.value = w,
|
|
210
210
|
disabled: a.disabled || e.disabled
|
|
211
211
|
}, {
|
|
212
|
-
default:
|
|
212
|
+
default: M(() => [
|
|
213
213
|
j("div", {
|
|
214
214
|
class: n(["label", { "label-min-width": !!h.value }]),
|
|
215
215
|
style: y([h.value, { color: "#666" }])
|
|
@@ -219,7 +219,7 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
219
219
|
index: d
|
|
220
220
|
}, () => [
|
|
221
221
|
g((o(), u("div", null, [
|
|
222
|
-
|
|
222
|
+
N(k(a.label), 1)
|
|
223
223
|
])), [
|
|
224
224
|
[r(x)]
|
|
225
225
|
])
|
|
@@ -235,7 +235,7 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
235
235
|
key: 3,
|
|
236
236
|
class: n(["das-ui-checkbox-square-group", [e.size, { "das-ui-checkbox-vertical": r(I) == "vertical" }]])
|
|
237
237
|
}, [
|
|
238
|
-
(o(!0), u($, null, B(
|
|
238
|
+
(o(!0), u($, null, B(b.value, (a, d) => (o(), u("div", {
|
|
239
239
|
class: n([
|
|
240
240
|
"das-ui-checkbox-square",
|
|
241
241
|
{
|
|
@@ -260,7 +260,7 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
260
260
|
})
|
|
261
261
|
])) : c("", !0),
|
|
262
262
|
g((o(), u("div", null, [
|
|
263
|
-
|
|
263
|
+
N(k(a.label), 1)
|
|
264
264
|
])), [
|
|
265
265
|
[r(x)]
|
|
266
266
|
])
|
|
@@ -271,21 +271,21 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
271
271
|
class: n(["das-ui-checkbox-view-group", { "flex-view": R.value.length > 1 }])
|
|
272
272
|
}, [
|
|
273
273
|
R.value.length ? (o(!0), u($, { key: 0 }, B(R.value, (a, d) => (o(), u("div", {
|
|
274
|
-
class: n(["das-checkbox-item-view", a[r(
|
|
274
|
+
class: n(["das-checkbox-item-view", a[r(f).label] && "nonelabel-item-view"]),
|
|
275
275
|
key: d
|
|
276
276
|
}, [
|
|
277
277
|
G(r(J), {
|
|
278
278
|
size: "mini",
|
|
279
279
|
icon: "select",
|
|
280
280
|
iconColor: "#666",
|
|
281
|
-
class: n(["view-icon", { "m-r-5": a[r(
|
|
281
|
+
class: n(["view-icon", { "m-r-5": a[r(f).label] || Object.keys(e.$slots).length > 0 }])
|
|
282
282
|
}, null, 8, ["class"]),
|
|
283
|
-
a[r(
|
|
283
|
+
a[r(f).label] ? g((o(), u("div", {
|
|
284
284
|
key: 0,
|
|
285
285
|
class: n(["label", e.size]),
|
|
286
286
|
style: y([h.value, { color: "#666" }])
|
|
287
287
|
}, [
|
|
288
|
-
|
|
288
|
+
N(k(a[r(f).label]), 1)
|
|
289
289
|
], 6)), [
|
|
290
290
|
[r(x)]
|
|
291
291
|
]) : C(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
@@ -295,7 +295,7 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
295
295
|
key: 5,
|
|
296
296
|
class: n(["das-ui-checkbox-square-group das-ui-checkbox-filter-square-group", { "das-ui-checkbox-vertical": r(I) == "vertical" }])
|
|
297
297
|
}, [
|
|
298
|
-
(o(!0), u($, null, B(
|
|
298
|
+
(o(!0), u($, null, B(b.value, (a, d) => (o(), u("div", {
|
|
299
299
|
class: n([
|
|
300
300
|
"das-ui-checkbox-square",
|
|
301
301
|
{
|
|
@@ -318,10 +318,10 @@ const fe = { class: "label" }, be = ["onClick", "onBlur", "tabindex"], he = {
|
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
}), Te = (T, S) => {
|
|
321
|
-
const
|
|
321
|
+
const t = T.__vccOpts || T;
|
|
322
322
|
for (const [z, D] of S)
|
|
323
|
-
|
|
324
|
-
return
|
|
323
|
+
t[z] = D;
|
|
324
|
+
return t;
|
|
325
325
|
}, Ve = /* @__PURE__ */ Te(xe, [["__scopeId", "data-v-b535aca4"]]), qe = {
|
|
326
326
|
"--demo-alert-bg": {
|
|
327
327
|
light: "#fff",
|
|
Binary file
|