@das-fed/upf-ui 6.4.0-dev.209 → 6.4.0-dev.210
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 +4 -4
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +4 -4
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +4 -4
- package/package.json +5 -5
- package/packages/business-components/ai-panel/index-B4pMosXu.js +143 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8873 -8773
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2056 -2049
- 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 +130 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +904 -896
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +249 -246
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +1 -0
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +12 -6
- package/packages/components/autocomplete/index.js.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 +63 -61
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +23 -22
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +224 -223
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +44 -42
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -63
- 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 +834 -832
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +437 -431
- 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 +4586 -4556
- 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.js +88 -88
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +10 -6
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +16 -14
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +53 -51
- 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 +102 -101
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +604 -599
- 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 +182 -173
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +110 -110
- package/packages/components/tree-select/index.js.gz +0 -0
- 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 +1240 -1208
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CwdJKHy0.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 se, watch as te, useSlots as ue, ref as Q, onMounted as re, openBlock as o, createElementBlock as u, normalizeStyle as y, createBlock as O, unref as r, mergeProps as U, isRef as A, withCtx as W, withDirectives as g, renderSlot as C, createCommentVNode as c, normalizeClass as n, Fragment as $, renderList as B, createElementVNode as j, createTextVNode as M, 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 s = T, z = p(() => s.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: t, isFocus: F, checkboxIndeterminate: v } = oe(D);
|
|
65
|
+
const I = s.layout, m = S;
|
|
66
|
+
se(() => {
|
|
67
|
+
t.value = s.modelValue, v.value = s.indeterminate, s.checkboxType == "default" && s.optionType == "default" && s.modelValue && (v.value = !1);
|
|
68
|
+
}), te(t, (e) => {
|
|
69
69
|
m("update:modelValue", e);
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const b = K(s, "defaultProps"), V = K(s, "options"), f = p(() => V.value.length ? V.value.map((e) => {
|
|
72
72
|
var l;
|
|
73
73
|
return {
|
|
74
|
-
value: e[
|
|
75
|
-
label: e[
|
|
74
|
+
value: e[b.value.value],
|
|
75
|
+
label: e[b.value.label],
|
|
76
76
|
disabled: e.disabled,
|
|
77
77
|
isFocus: !1,
|
|
78
|
-
checked: (l =
|
|
78
|
+
checked: (l = s.modelValue) == null ? void 0 : l.includes(e[b.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
|
+
}) : []), N = () => {
|
|
82
|
+
v && (v.value = !1, m("update:indeterminate", v.value), m("update:modelValue", t.value)), m("change", t.value);
|
|
83
|
+
}, X = s.disabled, Y = f.value.some((e) => !!e.mutual), L = (e, l) => {
|
|
84
84
|
if (!X)
|
|
85
85
|
if (e == "group") {
|
|
86
86
|
if (l.disabled) return;
|
|
87
|
-
Y ? l.mutual ? (
|
|
87
|
+
console.log(f, "---checkboxOptions"), Y ? l.mutual ? (f.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, f.value.forEach((i) => {
|
|
90
|
+
i.mutual && (i.checked = !f.value.some((a) => a.checked));
|
|
91
|
+
})) : l.checked = !l.checked, l.isFocus = !0, t.value = f.value.filter((i) => i.checked).map((i) => i.value), m("change", t.value);
|
|
92
92
|
} else
|
|
93
|
-
|
|
93
|
+
t.value = !t.value, F.value = !0, m("change", t.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 (!s.isView) return [];
|
|
97
|
+
if ((!((e = V.value) != null && e.length) || !((l = t.value) != null && l.length)) && s.checkboxType == "group") return [];
|
|
98
|
+
if (s.checkboxType == "group")
|
|
99
99
|
return V.value.filter((a) => {
|
|
100
|
-
if (
|
|
100
|
+
if (t.value.includes(a[b.value.value]))
|
|
101
101
|
return a;
|
|
102
102
|
});
|
|
103
103
|
{
|
|
104
|
-
if (!
|
|
104
|
+
if (!t.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: t.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(() => s.maxWidth ? s.maxWidth : s.width), h = p(() => {
|
|
117
117
|
let e = `${Number(String(Z.value).split("px")[0])}`;
|
|
118
|
-
if (
|
|
118
|
+
if (s.maxWidth)
|
|
119
119
|
return `max-width:${e}px`;
|
|
120
|
-
if (
|
|
121
|
-
return Number(e) > 72 &&
|
|
120
|
+
if (s.width)
|
|
121
|
+
return Number(e) > 72 && s.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(() => s.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(), O(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(t),
|
|
151
|
+
"onUpdate:checked": l[0] || (l[0] = (a) => A(t) ? t.value = a : t = a),
|
|
152
152
|
disabled: e.disabled
|
|
153
153
|
}, e.$attrs, {
|
|
154
154
|
optionType: e.optionType,
|
|
155
155
|
indeterminate: r(v),
|
|
156
|
-
onChange:
|
|
156
|
+
onChange: N,
|
|
157
157
|
class: [e.size, { nolabel: Object.keys(e.$slots).length == 0 }]
|
|
158
158
|
}), {
|
|
159
|
-
default:
|
|
159
|
+
default: W(() => [
|
|
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(t),
|
|
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(), O(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(t),
|
|
201
|
+
"onUpdate:value": l[3] || (l[3] = (a) => A(t) ? t.value = a : t = a),
|
|
202
202
|
name: e.name,
|
|
203
|
-
onChange:
|
|
203
|
+
onChange: N
|
|
204
204
|
}), {
|
|
205
|
-
default:
|
|
206
|
-
(o(!0), u($, null, B(
|
|
205
|
+
default: W(() => [
|
|
206
|
+
(o(!0), u($, null, B(f.value, (a, d) => (o(), O(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: W(() => [
|
|
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
|
+
M(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(f.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
|
+
M(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(b).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(b).label] || Object.keys(e.$slots).length > 0 }])
|
|
282
282
|
}, null, 8, ["class"]),
|
|
283
|
-
a[r(
|
|
283
|
+
a[r(b).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
|
+
M(k(a[r(b).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(f.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 s = T.__vccOpts || T;
|
|
322
322
|
for (const [z, D] of S)
|
|
323
|
-
|
|
324
|
-
return
|
|
323
|
+
s[z] = D;
|
|
324
|
+
return s;
|
|
325
325
|
}, Ve = /* @__PURE__ */ Te(xe, [["__scopeId", "data-v-b535aca4"]]), qe = {
|
|
326
326
|
"--demo-alert-bg": {
|
|
327
327
|
light: "#fff",
|
|
Binary file
|