china-mobile-international-custom-components 0.0.40 → 0.0.41

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.
Files changed (41) hide show
  1. package/es/ApplicationTypeTag.mjs +1 -1
  2. package/es/AvailableRangePreview.mjs +1 -1
  3. package/es/AvailableRangeSetting.mjs +2 -2
  4. package/es/BackBar.mjs +49 -0
  5. package/es/SourcePublish.mjs +278 -269
  6. package/es/Table.mjs +6 -6
  7. package/es/assets/AiboxTable.css +1 -0
  8. package/es/assets/BackBar.css +1 -1
  9. package/es/assets/SourcePublish.css +1 -1
  10. package/es/chunks/AiboxTable.feSxtxGI.js +563 -0
  11. package/es/chunks/{BackBar.DwhmSL-a.js → BackBar.C3Tp-e_K.js} +1 -1
  12. package/es/chunks/BackBar.DE2EjQfI.js +606 -0
  13. package/es/chunks/BackBar.zjPh_z_w.js +601 -0
  14. package/es/chunks/index.D1cu8OUn.js +260 -0
  15. package/es/chunks/index.DENagLDS.js +313 -0
  16. package/es/index.mjs +4 -4
  17. package/lib/ApplicationTypeTag.js +1 -1
  18. package/lib/AvailableRangePreview.js +1 -1
  19. package/lib/AvailableRangeSetting.js +1 -1
  20. package/lib/BackBar.js +1 -0
  21. package/lib/SourcePublish.js +1 -1
  22. package/lib/Table.js +1 -1
  23. package/lib/assets/AiboxTable.css +1 -0
  24. package/lib/assets/BackBar.css +1 -1
  25. package/lib/assets/SourcePublish.css +1 -1
  26. package/lib/chunks/AiboxTable.DdCYg_mt.js +1 -0
  27. package/lib/chunks/BackBar.BL8repFN.js +1 -0
  28. package/lib/chunks/{BackBar.CYThcqhK.js → BackBar.CpYFuBeN.js} +1 -1
  29. package/lib/chunks/BackBar.DcGRWfNN.js +1 -0
  30. package/lib/chunks/index.5Su4CrC-.js +1 -0
  31. package/lib/chunks/index.B_esKpWv.js +1 -0
  32. package/lib/index.js +1 -1
  33. package/package.json +4 -4
  34. package/es/chunks/i18n.DUrvNBQz.js +0 -4028
  35. package/es/chunks/index.BcLVH95_.js +0 -4058
  36. package/es/chunks/index.ClqvUq64.js +0 -302
  37. package/es/chunks/index.Dh5IGfxO.js +0 -290
  38. package/lib/chunks/i18n.D-d0yyXi.js +0 -6
  39. package/lib/chunks/index.Bk55us0s.js +0 -1
  40. package/lib/chunks/index.CSLWrMRE.js +0 -1
  41. package/lib/chunks/index.CV29Us4A.js +0 -6
@@ -0,0 +1,260 @@
1
+ import { w as P } from "./index.bCzIhWFw.js";
2
+ import { ref as u, computed as O, createBlock as N, openBlock as V, unref as m, withCtx as g, createElementVNode as k, createVNode as y, createElementBlock as w, createCommentVNode as M, Fragment as G, renderList as x, createTextVNode as _, toDisplayString as I, getCurrentInstance as $, watch as U, onMounted as F } from "vue";
3
+ import { emitsMap as t } from "color-star-custom-methods";
4
+ import { R as L, u as H, r as X, a as j, D as q, A as W } from "./index.DENagLDS.js";
5
+ import { ElDialog as Y, ElRadioGroup as z, ElRadio as J, ElButton as D } from "element-plus";
6
+ import { TreeShowSelect as K } from "color-star-custom-components";
7
+ import '../assets/index2.css';const Q = { class: "dialog-content" }, Z = {
8
+ key: 0,
9
+ class: "selection-area overflow-hidden"
10
+ }, ee = { class: "dialog-footer" }, le = {
11
+ __name: "Dialog",
12
+ props: {
13
+ // 弹窗显示控制
14
+ visible: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ // 当前选择的范围类型(是否全部可见)
19
+ allVisible: {
20
+ type: Boolean,
21
+ default: L.ALL
22
+ },
23
+ // 选中的项目列表
24
+ modelValue: {
25
+ type: Array,
26
+ default: () => []
27
+ },
28
+ // 树形数据
29
+ treeList: {
30
+ type: Array,
31
+ default: () => []
32
+ }
33
+ },
34
+ emits: [
35
+ t.updateVisible,
36
+ t.save,
37
+ t.cancel
38
+ ],
39
+ setup(p, { emit: h }) {
40
+ const b = p, c = h, C = u(!0), v = u(b.allVisible), s = u([...b.modelValue]), A = u(), { selectedMembers: T, selectedDepartments: r } = H(
41
+ s,
42
+ O(() => b.treeList),
43
+ !1
44
+ // 编辑模式
45
+ ), o = O(() => {
46
+ const l = [];
47
+ return r.value.forEach((a) => {
48
+ l.push({
49
+ ...a,
50
+ // TreeSelect列表模式不需要children
51
+ children: void 0
52
+ });
53
+ }), T.value.forEach((a) => {
54
+ l.push({
55
+ ...a,
56
+ children: void 0
57
+ });
58
+ }), l;
59
+ }), f = (l) => {
60
+ v.value = l, l === L.ALL && (s.value = []);
61
+ }, S = (l) => {
62
+ const { selectedNode: a } = l;
63
+ s.value = a || [];
64
+ }, E = () => {
65
+ c(t.cancel), c(t.updateVisible, !1);
66
+ }, R = () => {
67
+ c(t.save, {
68
+ type: v.value,
69
+ selectedItems: [...s.value]
70
+ }), c(t.updateVisible, !1);
71
+ };
72
+ return (l, a) => (V(), N(m(Y), {
73
+ modelValue: C.value,
74
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => C.value = n),
75
+ title: l.t("COMMON_DICT.ENUMS.AVAILABLE_RANGE_SETTING"),
76
+ "close-on-click-modal": !1,
77
+ "close-on-press-escape": !1,
78
+ "append-to-body": "",
79
+ onClose: E,
80
+ "modal-class": "available-range-setting-dialog"
81
+ }, {
82
+ footer: g(() => [
83
+ k("div", ee, [
84
+ y(m(D), {
85
+ onClick: E,
86
+ plain: ""
87
+ }, {
88
+ default: g(() => [
89
+ _(I(l.t("COMMON_BUTTON.CANCEL_TEXT")), 1)
90
+ ]),
91
+ _: 1
92
+ }),
93
+ y(m(D), {
94
+ type: "primary",
95
+ onClick: R
96
+ }, {
97
+ default: g(() => [
98
+ _(I(l.t("COMMON_BUTTON.SAVE_TEXT")), 1)
99
+ ]),
100
+ _: 1
101
+ })
102
+ ])
103
+ ]),
104
+ default: g(() => [
105
+ k("div", Q, [
106
+ y(m(z), {
107
+ class: "pd-b-16",
108
+ modelValue: v.value,
109
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => v.value = n),
110
+ onChange: f
111
+ }, {
112
+ default: g(() => [
113
+ (V(!0), w(G, null, x(m(X), (n) => (V(), N(m(J), {
114
+ key: n.value,
115
+ value: n.value
116
+ }, {
117
+ default: g(() => [
118
+ _(I(n.label), 1)
119
+ ]),
120
+ _: 2
121
+ }, 1032, ["value"]))), 128))
122
+ ]),
123
+ _: 1
124
+ }, 8, ["modelValue"]),
125
+ v.value === m(L).PARTIAL ? (V(), w("div", Z, [
126
+ y(m(K), {
127
+ modelValue: s.value,
128
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => s.value = n),
129
+ ref_key: "treeRef",
130
+ ref: A,
131
+ treeProps: m(j),
132
+ treeList: p.treeList,
133
+ hasFilter: !0,
134
+ rightTreeList: o.value,
135
+ style: { height: "500px" },
136
+ onGetCheckedNode: S
137
+ }, null, 8, ["modelValue", "treeProps", "treeList", "rightTreeList"])
138
+ ])) : M("", !0)
139
+ ])
140
+ ]),
141
+ _: 1
142
+ }, 8, ["modelValue", "title"]));
143
+ }
144
+ }, ae = () => $().appContext.config.globalProperties, te = () => {
145
+ const { $request: p, $env: h } = ae();
146
+ return {
147
+ availableRangeApi: () => p({
148
+ url: `${h.VITE_APP_AUTH_BASE_URL}/api/v1/admin/member/search`,
149
+ method: "get"
150
+ })
151
+ };
152
+ }, se = { class: "available-range-setting w-full" }, oe = /* @__PURE__ */ Object.assign({
153
+ name: "AvailableRangeSetting"
154
+ }, {
155
+ __name: "layout",
156
+ props: {
157
+ // 当前选择的范围类型(是否全部可见)
158
+ allVisible: {
159
+ type: Boolean,
160
+ default: L.ALL
161
+ },
162
+ // 选中的项目列表
163
+ modelValue: {
164
+ type: Array,
165
+ default: () => []
166
+ },
167
+ // 默认显示的数量
168
+ defaultShowCount: {
169
+ type: Number,
170
+ default: q.one
171
+ }
172
+ },
173
+ emits: [
174
+ t.updateAllVisible,
175
+ t.updateModelValue,
176
+ t.change
177
+ ],
178
+ setup(p, { expose: h, emit: b }) {
179
+ const c = p, { availableRangeApi: C } = te(), v = b, s = u(!1), A = u(!1), T = u([]), r = u(c.allVisible), o = u(c.modelValue), f = u(
180
+ new Set(o.value?.map((e) => e.memberId))
181
+ ), S = () => {
182
+ A.value = !0, C().then((e) => {
183
+ T.value = e?.data?.orgOptionSoList || [];
184
+ }).finally(() => {
185
+ A.value = !1;
186
+ });
187
+ }, E = () => {
188
+ s.value = !0;
189
+ }, R = (e) => {
190
+ r.value = e.type, o.value = e.selectedItems, f.value.clear(), o.value.forEach((i) => {
191
+ f.value.add(i.memberId);
192
+ }), v(t.updateAllVisible, r.value), v(t.updateModelValue, o.value), a();
193
+ }, l = () => {
194
+ s.value = !1;
195
+ }, a = () => {
196
+ const e = {
197
+ allVisible: r.value,
198
+ selectedItems: o.value
199
+ };
200
+ v(t.change, e);
201
+ }, n = u(null), B = () => {
202
+ const e = n.value?.allSelectedItems || [];
203
+ return {
204
+ allVisible: r.value,
205
+ visibleScope: e.map((d) => ({
206
+ memberId: d.memberId,
207
+ memberName: d.memberName,
208
+ memberType: d.memberType,
209
+ bnid: d.bnid
210
+ }))
211
+ };
212
+ };
213
+ return U(
214
+ () => c.allVisible,
215
+ (e) => {
216
+ r.value = e;
217
+ },
218
+ { immediate: !0 }
219
+ ), U(
220
+ () => c.modelValue,
221
+ (e) => {
222
+ o.value = e || [], f.value.clear(), o.value.forEach((i) => {
223
+ f.value.add(i.memberId);
224
+ });
225
+ },
226
+ { immediate: !0 }
227
+ ), F(() => {
228
+ S();
229
+ }), h({
230
+ getSelectedItems: B
231
+ }), (e, i) => (V(), w("div", se, [
232
+ y(m(W), {
233
+ allVisible: r.value,
234
+ "model-value": o.value,
235
+ "tree-list": T.value,
236
+ "default-show-count": p.defaultShowCount,
237
+ onEdit: E,
238
+ ref_key: "previewRef",
239
+ ref: n
240
+ }, null, 8, ["allVisible", "model-value", "tree-list", "default-show-count"]),
241
+ s.value ? (V(), N(le, {
242
+ key: 0,
243
+ visible: s.value,
244
+ "onUpdate:visible": i[0] || (i[0] = (d) => s.value = d),
245
+ allVisible: r.value,
246
+ "onUpdate:allVisible": i[1] || (i[1] = (d) => r.value = d),
247
+ modelValue: o.value,
248
+ "onUpdate:modelValue": i[2] || (i[2] = (d) => o.value = d),
249
+ "tree-list": T.value,
250
+ loading: A.value,
251
+ onSave: R,
252
+ onCancel: l
253
+ }, null, 8, ["visible", "allVisible", "modelValue", "tree-list", "loading"])) : M("", !0)
254
+ ]));
255
+ }
256
+ }), ce = P(oe);
257
+ export {
258
+ ce as A,
259
+ ae as g
260
+ };
@@ -0,0 +1,313 @@
1
+ import { w as k } from "./index.bCzIhWFw.js";
2
+ import { computed as m, createElementBlock as h, createCommentVNode as M, openBlock as i, Fragment as I, createElementVNode as y, toDisplayString as T, normalizeClass as N, createBlock as D, renderList as B, unref as b, withCtx as R, ref as O, watch as V, onMounted as U, createVNode as z, createTextVNode as F, nextTick as $ } from "vue";
3
+ import { ElPopover as H, ElButton as G } from "element-plus";
4
+ import { f as L } from "./i18n.BNeBD4gR.js";
5
+ import { _ as W } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import '../assets/index3.css';const A = {
7
+ ALL: !0,
8
+ PARTIAL: !1
9
+ }, Y = [
10
+ {
11
+ value: A.ALL,
12
+ get label() {
13
+ return L("COMMON_DICT.ENUMS.ALL_MEMBERS");
14
+ }
15
+ },
16
+ {
17
+ value: A.PARTIAL,
18
+ get label() {
19
+ return L("COMMON_DICT.ENUMS.PARTIAL_MEMBERS");
20
+ }
21
+ }
22
+ ], u = {
23
+ MEMBER: 1,
24
+ DEPARTMENT: 2
25
+ }, oe = {
26
+ label: "memberName",
27
+ children: "children",
28
+ value: "memberId"
29
+ }, w = {
30
+ one: 1,
31
+ two: 2
32
+ }, ie = {
33
+ UNPUBLISHED: 0,
34
+ // 未发布
35
+ UNDER_REVIEW: 1,
36
+ // 审核中
37
+ PUBLISHED: 2,
38
+ // 已发布
39
+ REJECTED: 3,
40
+ // 审核不通过
41
+ FAILED: 4
42
+ // 发布失败
43
+ }, q = {
44
+ key: 0,
45
+ class: "pd-l-16 text-dee0e3 pd-r-16"
46
+ }, J = { class: "fz-14 text-646a73 nowrap" }, X = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, j = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, K = {
47
+ __name: "TagList",
48
+ props: {
49
+ // 显示的标签
50
+ label: {
51
+ type: String,
52
+ required: !0
53
+ },
54
+ // 数据项列表
55
+ items: {
56
+ type: Array,
57
+ default: () => []
58
+ },
59
+ // 默认显示的数量
60
+ defaultShowCount: {
61
+ type: Number,
62
+ default: w.one
63
+ },
64
+ // 是否为只读模式
65
+ readonly: {
66
+ type: Boolean,
67
+ default: !1
68
+ }
69
+ },
70
+ setup(e) {
71
+ const l = e, r = m(() => l.readonly ? l.items : l.items.slice(0, l.defaultShowCount)), d = m(() => l.items.length > l.defaultShowCount), f = m(() => l.items.length - l.defaultShowCount), E = m(() => l.items.slice(l.defaultShowCount));
72
+ return (n, o) => e.items.length > 0 ? (i(), h(I, { key: 0 }, [
73
+ e.readonly ? M("", !0) : (i(), h("span", q, "|")),
74
+ y("span", J, T(e.label), 1),
75
+ y("div", {
76
+ class: N(["tag-list", { "flex items-center gap-4": !e.readonly }])
77
+ }, [
78
+ (i(!0), h(I, null, B(r.value, (s) => (i(), h("div", {
79
+ key: s.memberId,
80
+ class: N(["tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe nowrap", { "mg-r-4 mg-b-4": e.readonly }])
81
+ }, T(s.memberName), 3))), 128)),
82
+ !e.readonly && d.value ? (i(), D(b(H), {
83
+ key: 0,
84
+ placement: "top",
85
+ trigger: "click",
86
+ width: "300",
87
+ "popper-class": "tag-list-popover-wrapper"
88
+ }, {
89
+ reference: R(() => [
90
+ y("span", X, " +" + T(f.value), 1)
91
+ ]),
92
+ default: R(() => [
93
+ y("div", j, [
94
+ (i(!0), h(I, null, B(E.value, (s) => (i(), h("span", {
95
+ key: s.memberId,
96
+ class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe"
97
+ }, T(s.memberName), 1))), 128))
98
+ ])
99
+ ]),
100
+ _: 1
101
+ })) : M("", !0)
102
+ ], 2)
103
+ ], 64)) : M("", !0);
104
+ }
105
+ }, S = /* @__PURE__ */ W(K, [["__scopeId", "data-v-32a1fa42"]]), x = (e, l) => e?.filter(l) || [], g = (e, l) => x(e, (r) => r.memberType === l), C = (e, l) => {
106
+ if (e.children)
107
+ for (const r of e.children)
108
+ r.memberType === u.MEMBER ? l(r) : r.memberType === u.DEPARTMENT && C(r, l);
109
+ }, P = (e) => {
110
+ const l = [];
111
+ return C(e, (r) => l.push(r.memberId)), l;
112
+ };
113
+ function Q(e, l, r = !1) {
114
+ const d = m(() => {
115
+ if (!e.value) return [];
116
+ const n = [...e.value], o = g(
117
+ n,
118
+ u.DEPARTMENT
119
+ );
120
+ if (o.length > 0 && l.value && l.value.length > 0) {
121
+ const s = /* @__PURE__ */ new Set();
122
+ o.forEach((a) => {
123
+ const c = (p) => {
124
+ for (const v of p) {
125
+ if (v.memberType === u.DEPARTMENT && v.memberId === a.memberId)
126
+ return C(
127
+ v,
128
+ (_) => s.add(_)
129
+ ), !0;
130
+ if (v.children && c(v.children))
131
+ return !0;
132
+ }
133
+ return !1;
134
+ };
135
+ c(l.value);
136
+ });
137
+ const t = new Set(
138
+ g(n, u.MEMBER).map(
139
+ (a) => a.memberId
140
+ )
141
+ );
142
+ s.forEach((a) => {
143
+ t.has(a.memberId) || n.push(a);
144
+ });
145
+ }
146
+ return n;
147
+ }), f = m(() => {
148
+ if (r)
149
+ return g(
150
+ d.value,
151
+ u.MEMBER
152
+ );
153
+ {
154
+ const n = /* @__PURE__ */ new Set();
155
+ return E.value.forEach((o) => {
156
+ P(o).forEach((t) => n.add(t));
157
+ }), x(
158
+ d.value,
159
+ (o) => o.memberType === u.MEMBER && !n.has(o.memberId)
160
+ );
161
+ }
162
+ }), E = m(() => {
163
+ if (r)
164
+ return g(
165
+ d.value,
166
+ u.DEPARTMENT
167
+ );
168
+ {
169
+ const n = [], o = (t) => {
170
+ if (!t.children || t.children.length === 0) return !1;
171
+ const a = P(t);
172
+ return a.length === 0 ? !1 : a.every(
173
+ (c) => d.value.some(
174
+ (p) => p.memberType === u.MEMBER && p.memberId === c
175
+ )
176
+ );
177
+ }, s = (t, a = !1) => {
178
+ if (t.memberType === u.DEPARTMENT) {
179
+ const c = o(t);
180
+ if (c && !a) {
181
+ if (n.push({
182
+ memberId: t.memberId,
183
+ memberName: t.memberName,
184
+ memberType: u.DEPARTMENT,
185
+ children: t.children
186
+ }), t.children)
187
+ for (const p of t.children)
188
+ s(p, !0);
189
+ } else if (!c && t.children)
190
+ for (const p of t.children)
191
+ s(p, !1);
192
+ }
193
+ };
194
+ for (const t of l.value)
195
+ s(t, !1);
196
+ return n;
197
+ }
198
+ });
199
+ return {
200
+ selectedMembers: f,
201
+ selectedDepartments: E
202
+ };
203
+ }
204
+ const Z = { class: "text-1f2329" }, ee = { class: "fz-14 text-1f2329" }, te = {
205
+ __name: "layout",
206
+ props: {
207
+ // 当前选择的范围类型(是否全部可见)
208
+ allVisible: {
209
+ type: Boolean,
210
+ default: A.ALL
211
+ },
212
+ // 选中的项目列表(完整对象数组,由父组件根据ID从树中查找得到)
213
+ modelValue: {
214
+ type: Array,
215
+ default: () => []
216
+ },
217
+ // 完整的树形数据(用于判断部门成员是否全部选中)
218
+ treeList: {
219
+ type: Array,
220
+ default: () => []
221
+ },
222
+ // 是否为只读模式
223
+ readonly: {
224
+ type: Boolean,
225
+ default: !1
226
+ },
227
+ // 默认显示的数量
228
+ defaultShowCount: {
229
+ type: Number,
230
+ default: w.one
231
+ }
232
+ },
233
+ setup(e, { expose: l }) {
234
+ const r = O(null), d = () => {
235
+ r.value && $(() => {
236
+ r.value.scrollIntoView({
237
+ behavior: "smooth",
238
+ block: "center"
239
+ });
240
+ });
241
+ }, f = e, { selectedMembers: E, selectedDepartments: n } = Q(
242
+ m(() => f.modelValue),
243
+ m(() => f.treeList),
244
+ f.readonly
245
+ ), o = m(() => {
246
+ const t = E.value.length > 0, a = n.value.length > 0;
247
+ return t && !a || !t && a ? w.two : w.one;
248
+ }), s = m(() => [...E.value, ...n.value]);
249
+ return V(
250
+ () => [f.allVisible, f.modelValue],
251
+ () => {
252
+ d();
253
+ },
254
+ { immediate: !1, deep: !0 }
255
+ ), U(() => {
256
+ d();
257
+ }), l({
258
+ allSelectedItems: s
259
+ }), (t, a) => (i(), h("div", {
260
+ ref_key: "previewRef",
261
+ ref: r,
262
+ class: N(["available-range-preview w-full overflow-hidden", {
263
+ "flex items-center": !e.readonly
264
+ }])
265
+ }, [
266
+ e.readonly ? M("", !0) : (i(), h(I, { key: 0 }, [
267
+ y("div", Z, T(t.t("COMMON_DICT.ENUMS.AVAILABLE_RANGE")) + ": ", 1),
268
+ y("span", ee, T(b(Y).find((c) => c.value === e.allVisible)?.label), 1),
269
+ z(b(G), {
270
+ class: "mg-l-16",
271
+ type: "primary",
272
+ link: "",
273
+ onClick: a[0] || (a[0] = (c) => t.$emit("edit"))
274
+ }, {
275
+ default: R(() => [
276
+ F(T(t.t("COMMON_BUTTON.EDIT_TEXT")), 1)
277
+ ]),
278
+ _: 1
279
+ })
280
+ ], 64)),
281
+ e.allVisible === b(A).PARTIAL ? (i(), h("div", {
282
+ key: 1,
283
+ class: N(["flex-1 overflow-hidden", { "flex items-center": !e.readonly }])
284
+ }, [
285
+ b(E)?.length ? (i(), D(S, {
286
+ key: 0,
287
+ label: t.t("COMMON_DICT.ENUMS.MEMBER") + ":",
288
+ items: b(E),
289
+ "default-show-count": o.value,
290
+ readonly: e.readonly
291
+ }, null, 8, ["label", "items", "default-show-count", "readonly"])) : M("", !0),
292
+ b(n)?.length ? (i(), D(S, {
293
+ key: 1,
294
+ label: t.t("COMMON_DICT.ENUMS.DEPARTMENT") + ":",
295
+ items: b(n),
296
+ "default-show-count": o.value,
297
+ readonly: e.readonly
298
+ }, null, 8, ["label", "items", "default-show-count", "readonly"])) : M("", !0)
299
+ ], 2)) : M("", !0)
300
+ ], 2));
301
+ }
302
+ }, ue = k(te), me = k(S);
303
+ export {
304
+ ue as A,
305
+ w as D,
306
+ u as M,
307
+ ie as P,
308
+ A as R,
309
+ me as T,
310
+ oe as a,
311
+ Y as r,
312
+ Q as u
313
+ };
package/es/index.mjs CHANGED
@@ -2,17 +2,17 @@ import { CustomToggle as t } from "./CustomToggle.mjs";
2
2
  import { CustomTitle as o } from "./CustomTitle.mjs";
3
3
  import { COLUMN_TYPES as i, MODES as r, PageContainer as n } from "./PageContainer.mjs";
4
4
  import { l as T, a as p, n as E, M as l, N as _, S as m, T as A, d as P, e as S, f as c, h as g, k as u, m as N, g as f, j as L, c as C, b as I, i as O, p as d, t as M } from "./chunks/layout.C0EtkrZg.js";
5
- import { A as R } from "./chunks/index.Doax01RQ.js";
6
- import { A as y, D as b, M as B, P as h, R as U, T as Y, a as H, r as v } from "./chunks/index.CSPp4g5C.js";
5
+ import { A as R } from "./chunks/index.D1cu8OUn.js";
6
+ import { A as y, D as b, M as B, P as h, R as U, T as Y, a as H, r as v } from "./chunks/index.DENagLDS.js";
7
7
  import { ApplicationIcon as D } from "./ApplicationIcon.mjs";
8
8
  import { ApplicationTypeTag as F, useApplicationTypeTag as x } from "./ApplicationTypeTag.mjs";
9
9
  import { API_CHANNEL_TYPES as G, AUTHORIZED_CHANNEL_TYPES as j, ApiTooltip as k, CHANNEL_ICON_CONFIG as w, FeishuTooltip as K, LIBRARY_PAGE as W, OFFICIAL_LABEL as $, OPEN_STATUS_VALUE as z, PUBLISH_TYPE_ICON_MAPPING as V, PermissionSetting as Z, PublishIcon as q, PublishSettings as J, RELEASE_CHANNEL_CONFIG as Q, RELEASE_CHANNEL_TYPE as X, STORE_CHANNEL_TYPES as aa, SourcePublish as ea, getChannelsByType as sa, getStoreDetailType as ta, serviceStatus as oa, serviceType as ia, serviceTypeMap as ra } from "./SourcePublish.mjs";
10
10
  import { DocSyncSelect as na } from "./DocSyncSelect.mjs";
11
11
  import { AiboxTable as Ta } from "./Table.mjs";
12
- import { a as pa, T as Ea } from "./chunks/BackBar.DwhmSL-a.js";
12
+ import { a as pa, T as Ea } from "./chunks/BackBar.zjPh_z_w.js";
13
13
  import { A as la, S as _a } from "./chunks/config.DE5PZU2F.js";
14
14
  import { dayjs as ma } from "element-plus";
15
- import { e as ha, c as Ua, d as Ya, g as Ha, b as va, f as Da, l as Fa, a as xa, s as Ga, u as ja } from "./chunks/i18n.DUrvNBQz.js";
15
+ import { e as ha, c as Ua, d as Ya, g as Ha, b as va, f as Da, l as Fa, a as xa, s as Ga, u as ja } from "./chunks/i18n.BNeBD4gR.js";
16
16
  const a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
17
  __proto__: null,
18
18
  API_CHANNEL_TYPES: G,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/ApplicationTypeTag.css');const I=require("./chunks/index.CkihWzK6.js"),t=require("vue"),a=require("./chunks/config.4W9n_uQg.js"),i=require("./chunks/i18n.D-d0yyXi.js"),_=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),A=()=>{const{t:e}=i.useI18n();return{APPLICATION_TYPE_TAB_LIST:[{label:e("APPLICATION_LIBRARY.TAB_LIST.ALL"),value:a.APPLICATION_TYPE.all},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT"),value:a.APPLICATION_TYPE.autonomous,alias:e("APPLICATION_LIBRARY.TAB_LIST.PLANNED")},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),value:a.APPLICATION_TYPE.dialogue,alias:e("APPLICATION_LIBRARY.TAB_LIST.DIALOG")}]}},r=Object.assign({name:"ApplicationTypeTag"},{__name:"layout",props:{type:{type:[String,Number],required:!0}},setup(e){const o=e,{APPLICATION_TYPE_TAB_LIST:n}=A(),s=t.computed(()=>n.find(T=>T.value===o.type)?.alias||""),u=t.computed(()=>o.type===a.APPLICATION_TYPE.dialogue?"dialogue":"autonomously");return(T,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(u.value)},t.toDisplayString(s.value),3))}}),c=_._export_sfc(r,[["__scopeId","data-v-b4885355"]]),l=I.withInstall(c);exports.ApplicationTypeTag=l;exports.default=l;exports.useApplicationTypeTag=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/ApplicationTypeTag.css');const I=require("./chunks/index.CkihWzK6.js"),t=require("vue"),a=require("./chunks/config.4W9n_uQg.js"),i=require("./chunks/i18n.Giy85Rng.js"),_=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),A=()=>{const{t:e}=i.useI18n();return{APPLICATION_TYPE_TAB_LIST:[{label:e("APPLICATION_LIBRARY.TAB_LIST.ALL"),value:a.APPLICATION_TYPE.all},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT"),value:a.APPLICATION_TYPE.autonomous,alias:e("APPLICATION_LIBRARY.TAB_LIST.PLANNED")},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),value:a.APPLICATION_TYPE.dialogue,alias:e("APPLICATION_LIBRARY.TAB_LIST.DIALOG")}]}},r=Object.assign({name:"ApplicationTypeTag"},{__name:"layout",props:{type:{type:[String,Number],required:!0}},setup(e){const o=e,{APPLICATION_TYPE_TAB_LIST:n}=A(),s=t.computed(()=>n.find(T=>T.value===o.type)?.alias||""),u=t.computed(()=>o.type===a.APPLICATION_TYPE.dialogue?"dialogue":"autonomously");return(T,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(u.value)},t.toDisplayString(s.value),3))}}),c=_._export_sfc(r,[["__scopeId","data-v-b4885355"]]),l=I.withInstall(c);exports.ApplicationTypeTag=l;exports.default=l;exports.useApplicationTypeTag=A;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const e=require("./chunks/index.CP9rhXZ5.js");exports.AvailableRangePreview=e.AvailableRangePreview;exports.TagList=e.TagList;exports.default=e.AvailableRangePreview;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const e=require("./chunks/index.5Su4CrC-.js");exports.AvailableRangePreview=e.AvailableRangePreview;exports.TagList=e.TagList;exports.default=e.AvailableRangePreview;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const a=require("./chunks/index.6X8xsqRJ.js"),e=require("./chunks/index.CP9rhXZ5.js");exports.AvailableRangeSetting=a.AvailableRangeSetting;exports.default=a.AvailableRangeSetting;exports.DEFAULT_SHOW_COUNT=e.DEFAULT_SHOW_COUNT;exports.MEMBER_DEPARTMENT_TYPES=e.MEMBER_DEPARTMENT_TYPES;exports.PUBLISH_STATUS=e.PUBLISH_STATUS;exports.RANGE_TYPES=e.RANGE_TYPES;exports.availableRangeTreeProps=e.availableRangeTreeProps;exports.rangeOptions=e.rangeOptions;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const a=require("./chunks/index.B_esKpWv.js"),e=require("./chunks/index.5Su4CrC-.js");exports.AvailableRangeSetting=a.AvailableRangeSetting;exports.default=a.AvailableRangeSetting;exports.DEFAULT_SHOW_COUNT=e.DEFAULT_SHOW_COUNT;exports.MEMBER_DEPARTMENT_TYPES=e.MEMBER_DEPARTMENT_TYPES;exports.PUBLISH_STATUS=e.PUBLISH_STATUS;exports.RANGE_TYPES=e.RANGE_TYPES;exports.availableRangeTreeProps=e.availableRangeTreeProps;exports.rangeOptions=e.rangeOptions;
package/lib/BackBar.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/BackBar.css');const e=require("vue"),l=require("vue-router"),n=require("color-message-aibox-vue"),s=require("element-plus"),u={class:"back-bar__icon"},i={key:0,class:"back-bar__title"},d={__name:"BackBar",props:{goBackFn:{type:Function,default:null},backBarStyle:{type:String,default:"#fff"},title:{type:String,default:""}},setup(t){const o=t,c=l.useRouter(),r=()=>{o.goBackFn?o.goBackFn():c.back()};return(a,k)=>(e.openBlock(),e.createElementBlock("div",{class:"back-bar",style:e.normalizeStyle({"background-color":t.backBarStyle})},[e.createElementVNode("div",u,[e.createVNode(e.unref(s.ElIcon),{onClick:e.withModifiers(r,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(n.IconZuo))]),_:1})]),e.renderSlot(a.$slots,"default"),t.title?(e.openBlock(),e.createElementBlock("div",i,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],4))}};exports.default=d;