china-mobile-international-custom-components 0.0.33 → 0.0.35
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/es/ApplicationTypeTag.mjs +46 -5
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +11 -261
- package/es/DocSyncSelect.mjs +458 -0
- package/es/PageContainer.mjs +340 -324
- package/es/SourcePublish.mjs +1230 -0
- package/es/assets/ApplicationTypeTag.css +1 -0
- package/es/assets/DocSyncSelect.css +1 -0
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/SourcePublish.css +1 -0
- package/es/assets/index2.css +1 -1
- package/es/assets/index3.css +1 -1
- package/es/chunks/i18n.D5TCTMH9.js +4024 -0
- package/es/chunks/index.CSPp4g5C.js +303 -0
- package/es/chunks/index.Doax01RQ.js +254 -0
- package/es/index.mjs +138 -92
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/DocSyncSelect.js +1 -0
- package/lib/PageContainer.js +1 -1
- package/lib/SourcePublish.js +1 -0
- package/lib/assets/ApplicationTypeTag.css +1 -0
- package/lib/assets/DocSyncSelect.css +1 -0
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/SourcePublish.css +1 -0
- package/lib/assets/index2.css +1 -1
- package/lib/assets/index3.css +1 -1
- package/lib/chunks/i18n.DOz2kyiP.js +6 -0
- package/lib/chunks/index.6X8xsqRJ.js +1 -0
- package/lib/chunks/index.CP9rhXZ5.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,48 @@
|
|
|
1
|
-
import "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { A as
|
|
1
|
+
import { w as I } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { computed as A, createElementBlock as _, openBlock as n, normalizeClass as r, toDisplayString as p } from "vue";
|
|
3
|
+
import { A as t } from "./chunks/config.DE5PZU2F.js";
|
|
4
|
+
import { u } from "./chunks/i18n.D5TCTMH9.js";
|
|
5
|
+
import { _ as i } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import './assets/ApplicationTypeTag.css';const L = () => {
|
|
7
|
+
const { t: a } = u();
|
|
8
|
+
return {
|
|
9
|
+
APPLICATION_TYPE_TAB_LIST: [
|
|
10
|
+
{
|
|
11
|
+
label: a("APPLICATION_LIBRARY.TAB_LIST.ALL"),
|
|
12
|
+
value: t.all
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: a("APPLICATION_LIBRARY.TAB_LIST.AGENT"),
|
|
16
|
+
value: t.autonomous,
|
|
17
|
+
alias: a("APPLICATION_LIBRARY.TAB_LIST.PLANNED")
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: a("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),
|
|
21
|
+
value: t.dialogue,
|
|
22
|
+
alias: a("APPLICATION_LIBRARY.TAB_LIST.DIALOG")
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
}, c = /* @__PURE__ */ Object.assign({
|
|
27
|
+
name: "ApplicationTypeTag"
|
|
28
|
+
}, {
|
|
29
|
+
__name: "layout",
|
|
30
|
+
props: {
|
|
31
|
+
// 应用类型值
|
|
32
|
+
type: {
|
|
33
|
+
type: [String, Number],
|
|
34
|
+
required: !0
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(a) {
|
|
38
|
+
const e = a, { APPLICATION_TYPE_TAB_LIST: s } = L(), l = A(() => s.find((o) => o.value === e.type)?.alias || ""), T = A(() => e.type === t.dialogue ? "dialogue" : "autonomously");
|
|
39
|
+
return (o, m) => (n(), _("div", {
|
|
40
|
+
class: r(T.value)
|
|
41
|
+
}, p(l.value), 3));
|
|
42
|
+
}
|
|
43
|
+
}), P = /* @__PURE__ */ i(c, [["__scopeId", "data-v-6ba8ff75"]]), f = I(P);
|
|
3
44
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
45
|
+
f as ApplicationTypeTag,
|
|
46
|
+
f as default,
|
|
47
|
+
L as useApplicationTypeTag
|
|
7
48
|
};
|
|
@@ -1,263 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { R as L, u as G, r as H, a as Y, A as $ } from "./chunks/index.ClqvUq64.js";
|
|
5
|
-
import { D as de, M as me, P as ve } from "./chunks/index.ClqvUq64.js";
|
|
6
|
-
import { ElDialog as j, ElRadioGroup as W, ElRadio as q, ElButton as P } from "element-plus";
|
|
7
|
-
import { TreeShowSelect as z } from "color-star-custom-components";
|
|
8
|
-
const J = { class: "dialog-content" }, K = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "selection-area overflow-hidden"
|
|
11
|
-
}, Q = { class: "dialog-footer" }, X = {
|
|
12
|
-
__name: "Dialog",
|
|
13
|
-
props: {
|
|
14
|
-
// 弹窗显示控制
|
|
15
|
-
visible: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !1
|
|
18
|
-
},
|
|
19
|
-
// 当前选择的范围类型(是否全部可见)
|
|
20
|
-
allVisible: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: L.ALL
|
|
23
|
-
},
|
|
24
|
-
// 选中的项目列表
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default: () => []
|
|
28
|
-
},
|
|
29
|
-
// 树形数据
|
|
30
|
-
treeList: {
|
|
31
|
-
type: Array,
|
|
32
|
-
default: () => []
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: [
|
|
36
|
-
t.updateVisible,
|
|
37
|
-
t.save,
|
|
38
|
-
t.cancel
|
|
39
|
-
],
|
|
40
|
-
setup(h, { emit: E }) {
|
|
41
|
-
const y = h, a = E, c = r(!0), o = r(y.allVisible), d = r([...y.modelValue]), f = r(), { selectedMembers: m, selectedDepartments: s } = G(
|
|
42
|
-
d,
|
|
43
|
-
w(() => y.treeList),
|
|
44
|
-
!1
|
|
45
|
-
// 编辑模式
|
|
46
|
-
), b = w(() => {
|
|
47
|
-
const i = [];
|
|
48
|
-
return s.value.forEach((e) => {
|
|
49
|
-
i.push({
|
|
50
|
-
...e,
|
|
51
|
-
// TreeSelect列表模式不需要children
|
|
52
|
-
children: void 0
|
|
53
|
-
});
|
|
54
|
-
}), m.value.forEach((e) => {
|
|
55
|
-
i.push({
|
|
56
|
-
...e,
|
|
57
|
-
children: void 0
|
|
58
|
-
});
|
|
59
|
-
}), i;
|
|
60
|
-
}), S = (i) => {
|
|
61
|
-
o.value = i, i === L.ALL && (d.value = []);
|
|
62
|
-
}, R = (i) => {
|
|
63
|
-
const { selectedNode: e } = i;
|
|
64
|
-
d.value = e || [];
|
|
65
|
-
}, T = () => {
|
|
66
|
-
a(t.cancel), a(t.updateVisible, !1);
|
|
67
|
-
}, D = () => {
|
|
68
|
-
a(t.save, {
|
|
69
|
-
type: o.value,
|
|
70
|
-
selectedItems: [...d.value]
|
|
71
|
-
}), a(t.updateVisible, !1);
|
|
72
|
-
};
|
|
73
|
-
return (i, e) => (g(), C(p(j), {
|
|
74
|
-
modelValue: c.value,
|
|
75
|
-
"onUpdate:modelValue": e[2] || (e[2] = (n) => c.value = n),
|
|
76
|
-
title: "可用范围设置",
|
|
77
|
-
"close-on-click-modal": !1,
|
|
78
|
-
"close-on-press-escape": !1,
|
|
79
|
-
"append-to-body": "",
|
|
80
|
-
onClose: T
|
|
81
|
-
}, {
|
|
82
|
-
footer: V(() => [
|
|
83
|
-
N("div", Q, [
|
|
84
|
-
A(p(P), {
|
|
85
|
-
onClick: T,
|
|
86
|
-
plain: ""
|
|
87
|
-
}, {
|
|
88
|
-
default: V(() => [...e[3] || (e[3] = [
|
|
89
|
-
I("取消", -1)
|
|
90
|
-
])]),
|
|
91
|
-
_: 1
|
|
92
|
-
}),
|
|
93
|
-
A(p(P), {
|
|
94
|
-
type: "primary",
|
|
95
|
-
onClick: D
|
|
96
|
-
}, {
|
|
97
|
-
default: V(() => [...e[4] || (e[4] = [
|
|
98
|
-
I("保存", -1)
|
|
99
|
-
])]),
|
|
100
|
-
_: 1
|
|
101
|
-
})
|
|
102
|
-
])
|
|
103
|
-
]),
|
|
104
|
-
default: V(() => [
|
|
105
|
-
N("div", J, [
|
|
106
|
-
A(p(W), {
|
|
107
|
-
class: "pd-b-16",
|
|
108
|
-
modelValue: o.value,
|
|
109
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => o.value = n),
|
|
110
|
-
onChange: S
|
|
111
|
-
}, {
|
|
112
|
-
default: V(() => [
|
|
113
|
-
(g(!0), k(M, null, x(p(H), (n) => (g(), C(p(q), {
|
|
114
|
-
key: n.value,
|
|
115
|
-
value: n.value
|
|
116
|
-
}, {
|
|
117
|
-
default: V(() => [
|
|
118
|
-
I(O(n.label), 1)
|
|
119
|
-
]),
|
|
120
|
-
_: 2
|
|
121
|
-
}, 1032, ["value"]))), 128))
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["modelValue"]),
|
|
125
|
-
o.value === p(L).PARTIAL ? (g(), k("div", K, [
|
|
126
|
-
A(p(z), {
|
|
127
|
-
modelValue: d.value,
|
|
128
|
-
"onUpdate:modelValue": e[1] || (e[1] = (n) => d.value = n),
|
|
129
|
-
ref_key: "treeRef",
|
|
130
|
-
ref: f,
|
|
131
|
-
treeProps: p(Y),
|
|
132
|
-
treeList: h.treeList,
|
|
133
|
-
hasFilter: !0,
|
|
134
|
-
rightTreeList: b.value,
|
|
135
|
-
style: { height: "500px" },
|
|
136
|
-
onGetCheckedNode: R
|
|
137
|
-
}, null, 8, ["modelValue", "treeProps", "treeList", "rightTreeList"])
|
|
138
|
-
])) : U("", !0)
|
|
139
|
-
])
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["modelValue"]));
|
|
143
|
-
}
|
|
144
|
-
}, Z = { class: "available-range-setting w-full" }, ee = /* @__PURE__ */ Object.assign({
|
|
145
|
-
name: "AvailableRangeSetting"
|
|
146
|
-
}, {
|
|
147
|
-
__name: "layout",
|
|
148
|
-
props: {
|
|
149
|
-
// 当前选择的范围类型(是否全部可见)
|
|
150
|
-
allVisible: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
default: L.ALL
|
|
153
|
-
},
|
|
154
|
-
// 选中的项目列表
|
|
155
|
-
modelValue: {
|
|
156
|
-
type: Array,
|
|
157
|
-
default: () => []
|
|
158
|
-
},
|
|
159
|
-
// 获取组织架构数据的接口
|
|
160
|
-
loadDataApi: {
|
|
161
|
-
type: Function,
|
|
162
|
-
default: () => () => []
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
emits: [
|
|
166
|
-
t.updateAllVisible,
|
|
167
|
-
t.updateModelValue,
|
|
168
|
-
t.change
|
|
169
|
-
],
|
|
170
|
-
setup(h, { expose: E, emit: y }) {
|
|
171
|
-
const a = h, c = y, o = r(!1), d = r(!1), f = r([]), m = r(a.allVisible), s = r(a.modelValue), b = r(
|
|
172
|
-
new Set(s.value?.map((l) => l.memberId))
|
|
173
|
-
), S = () => {
|
|
174
|
-
a.loadDataApi && typeof a.loadDataApi == "function" ? (d.value = !0, a.loadDataApi().then((l) => {
|
|
175
|
-
f.value = l?.data?.orgOptionSoList || [];
|
|
176
|
-
}).finally(() => {
|
|
177
|
-
d.value = !1;
|
|
178
|
-
})) : f.value = [];
|
|
179
|
-
}, R = () => {
|
|
180
|
-
o.value = !0;
|
|
181
|
-
}, T = (l) => {
|
|
182
|
-
m.value = l.type, s.value = l.selectedItems, b.value.clear(), s.value.forEach((u) => {
|
|
183
|
-
b.value.add(u.memberId);
|
|
184
|
-
}), c(t.updateAllVisible, m.value), c(t.updateModelValue, s.value), i();
|
|
185
|
-
}, D = () => {
|
|
186
|
-
o.value = !1;
|
|
187
|
-
}, i = () => {
|
|
188
|
-
const l = {
|
|
189
|
-
allVisible: m.value,
|
|
190
|
-
selectedItems: s.value
|
|
191
|
-
};
|
|
192
|
-
c(t.change, l);
|
|
193
|
-
}, e = r(null), n = () => {
|
|
194
|
-
const l = e.value?.allSelectedItems || [];
|
|
195
|
-
return {
|
|
196
|
-
allVisible: m.value,
|
|
197
|
-
visibleScope: l.map((v) => ({
|
|
198
|
-
memberId: v.memberId,
|
|
199
|
-
memberName: v.memberName,
|
|
200
|
-
memberType: v.memberType,
|
|
201
|
-
bnid: v.bnid
|
|
202
|
-
}))
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
return _(
|
|
206
|
-
() => a.allVisible,
|
|
207
|
-
(l) => {
|
|
208
|
-
m.value = l;
|
|
209
|
-
},
|
|
210
|
-
{ immediate: !0 }
|
|
211
|
-
), _(
|
|
212
|
-
() => a.modelValue,
|
|
213
|
-
(l) => {
|
|
214
|
-
s.value = l || [], b.value.clear(), s.value.forEach((u) => {
|
|
215
|
-
b.value.add(u.memberId);
|
|
216
|
-
});
|
|
217
|
-
},
|
|
218
|
-
{ immediate: !0 }
|
|
219
|
-
), _(
|
|
220
|
-
() => a.loadDataApi,
|
|
221
|
-
() => {
|
|
222
|
-
S();
|
|
223
|
-
},
|
|
224
|
-
{ immediate: !1 }
|
|
225
|
-
), F(() => {
|
|
226
|
-
S();
|
|
227
|
-
}), E({
|
|
228
|
-
getSelectedItems: n
|
|
229
|
-
}), (l, u) => (g(), k("div", Z, [
|
|
230
|
-
A(p($), {
|
|
231
|
-
allVisible: m.value,
|
|
232
|
-
"model-value": s.value,
|
|
233
|
-
"tree-list": f.value,
|
|
234
|
-
onEdit: R,
|
|
235
|
-
ref_key: "previewRef",
|
|
236
|
-
ref: e
|
|
237
|
-
}, null, 8, ["allVisible", "model-value", "tree-list"]),
|
|
238
|
-
o.value ? (g(), C(X, {
|
|
239
|
-
key: 0,
|
|
240
|
-
visible: o.value,
|
|
241
|
-
"onUpdate:visible": u[0] || (u[0] = (v) => o.value = v),
|
|
242
|
-
allVisible: m.value,
|
|
243
|
-
"onUpdate:allVisible": u[1] || (u[1] = (v) => m.value = v),
|
|
244
|
-
modelValue: s.value,
|
|
245
|
-
"onUpdate:modelValue": u[2] || (u[2] = (v) => s.value = v),
|
|
246
|
-
"tree-list": f.value,
|
|
247
|
-
loading: d.value,
|
|
248
|
-
onSave: T,
|
|
249
|
-
onCancel: D
|
|
250
|
-
}, null, 8, ["visible", "allVisible", "modelValue", "tree-list", "loading"])) : U("", !0)
|
|
251
|
-
]));
|
|
252
|
-
}
|
|
253
|
-
}), ne = B(ee);
|
|
1
|
+
import "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { A as r, A as T } from "./chunks/index.Doax01RQ.js";
|
|
3
|
+
import { D as o, M as t, P as A, R as S, a as P, r as R } from "./chunks/index.CSPp4g5C.js";
|
|
254
4
|
export {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
5
|
+
r as AvailableRangeSetting,
|
|
6
|
+
o as DEFAULT_SHOW_COUNT,
|
|
7
|
+
t as MEMBER_DEPARTMENT_TYPES,
|
|
8
|
+
A as PUBLISH_STATUS,
|
|
9
|
+
S as RANGE_TYPES,
|
|
10
|
+
P as availableRangeTreeProps,
|
|
11
|
+
T as default,
|
|
12
|
+
R as rangeOptions
|
|
263
13
|
};
|