@guodun/antdv 1.7.2 → 1.7.3
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/CHANGELOG.md +8 -0
- package/dist/es/components/contract-signing-location/style/index.css +1 -1
- package/dist/es/components/dept-selector/src/DeptSelector.vue.mjs +1 -0
- package/dist/es/components/pro-contract-signing-flow/style/index.css +1 -1
- package/dist/es/components/pro-contract-template-agent/style/index.css +1 -1
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/components/pro-selector/src/ProUserSelector.vue.mjs +1 -0
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +1 -0
- package/dist/es/components/pro-table/src/form-render.vue.mjs +1 -0
- package/dist/es/components/pro-table/src/pro-table.vue.mjs +23 -29
- package/dist/es/components/role-selector/src/RoleSelector.vue.mjs +1 -0
- package/dist/es/components/selector-core/components/DepartmentTree.vue.mjs +12 -10
- package/dist/es/components/selector-core/components/SelectionSummary.vue.mjs +1 -0
- package/dist/es/components/selector-core/components/SelectorDialog.vue.mjs +175 -171
- package/dist/lib/components/contract-signing-location/style/index.css +1 -1
- package/dist/lib/components/dept-selector/src/DeptSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-signing-flow/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-agent/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-selector/src/ProUserSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
- package/dist/lib/components/pro-table/src/form-render.vue.cjs +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue.cjs +1 -1
- package/dist/lib/components/role-selector/src/RoleSelector.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/DepartmentTree.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectionSummary.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectorDialog.vue.cjs +1 -1
- package/dist/theme/base.css +1 -1
- package/dist/theme/contract-signing-location.css +1 -1
- package/dist/theme/controls.css +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/theme/pro-contract-signing-flow.css +1 -1
- package/dist/theme/pro-drawer.css +1 -1
- package/dist/theme/pro-modal.css +1 -1
- package/dist/theme/pro-table.css +1 -1
- package/dist/theme/selector-core.css +1 -1
- package/dist/theme/var.css +1 -1
- package/package.json +3 -3
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import e from "../../pro-modal/src/ProModal.mjs";
|
|
2
2
|
import t from "../../icon/src/icon.mjs";
|
|
3
|
-
import { cloneEntities as n, entityKey as r, flattenDepartments as i, selectionLimit as
|
|
4
|
-
import { DEFAULT_SELECTION_ACTIVE_COLOR as
|
|
5
|
-
import { useSelectorData as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { Button as
|
|
3
|
+
import { cloneEntities as n, entityKey as r, flattenDepartments as i, selectionLimit as a, selectorLabels as o, toggleEntity as ee, toggleVisible as s } from "../model.mjs";
|
|
4
|
+
import { DEFAULT_SELECTION_ACTIVE_COLOR as c, createSelectionTheme as te } from "../selection-theme.mjs";
|
|
5
|
+
import { useSelectorData as ne } from "../useSelectorData.mjs";
|
|
6
|
+
import re from "./DepartmentTree.mjs";
|
|
7
|
+
import ie from "./PeoplePane.mjs";
|
|
8
|
+
import ae from "./RolePane.mjs";
|
|
9
|
+
import oe from "./SelectionSummary.mjs";
|
|
10
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, mergeModels as v, nextTick as se, normalizeClass as y, openBlock as b, ref as x, renderList as ce, toDisplayString as S, unref as C, useModel as le, watch as w, withCtx as T } from "vue";
|
|
11
|
+
import { Button as E, ConfigProvider as ue } from "ant-design-vue";
|
|
12
12
|
//#region src/components/selector-core/components/SelectorDialog.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var de = { class: "gd-ant-selector__dialog-root" }, fe = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "gd-ant-selector__variant-toolbar",
|
|
16
16
|
"aria-label": "用户方案比较"
|
|
17
|
-
},
|
|
17
|
+
}, pe = { class: "gd-ant-selector__segmented" }, me = ["aria-pressed"], he = ["aria-pressed"], ge = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "gd-ant-selector__tabs",
|
|
20
20
|
role: "tablist",
|
|
21
21
|
"aria-label": "选择对象类型"
|
|
22
|
-
},
|
|
22
|
+
}, _e = [
|
|
23
23
|
"id",
|
|
24
24
|
"aria-selected",
|
|
25
25
|
"tabindex",
|
|
26
26
|
"onClick",
|
|
27
27
|
"onKeydown"
|
|
28
|
-
],
|
|
28
|
+
], ve = ["role", "aria-labelledby"], ye = { class: "gd-ant-selector__footer" }, be = ["role"], xe = { class: "gd-ant-selector__footer-actions" }, Se = { key: 0 }, D = /* @__PURE__ */ _({
|
|
29
29
|
__name: "SelectorDialog",
|
|
30
|
-
props: /* @__PURE__ */
|
|
30
|
+
props: /* @__PURE__ */ v({
|
|
31
31
|
mode: {},
|
|
32
32
|
selected: {},
|
|
33
33
|
selection: { default: "checkbox" },
|
|
@@ -50,7 +50,7 @@ var fe = { class: "gd-ant-selector__dialog-root" }, pe = {
|
|
|
50
50
|
default: !1
|
|
51
51
|
},
|
|
52
52
|
valueField: { default: "roleKey" },
|
|
53
|
-
activeColor: { default:
|
|
53
|
+
activeColor: { default: c },
|
|
54
54
|
modalProps: { default: () => ({}) }
|
|
55
55
|
}, {
|
|
56
56
|
open: {
|
|
@@ -59,104 +59,104 @@ var fe = { class: "gd-ant-selector__dialog-root" }, pe = {
|
|
|
59
59
|
},
|
|
60
60
|
openModifiers: {}
|
|
61
61
|
}),
|
|
62
|
-
emits: /* @__PURE__ */
|
|
62
|
+
emits: /* @__PURE__ */ v([
|
|
63
63
|
"update:variant",
|
|
64
64
|
"confirm",
|
|
65
65
|
"cancel",
|
|
66
66
|
"changeTab"
|
|
67
67
|
], ["update:open"]),
|
|
68
|
-
setup(
|
|
69
|
-
let
|
|
70
|
-
function
|
|
68
|
+
setup(c, { emit: _ }) {
|
|
69
|
+
let v = le(c, "open"), D = c, O = _;
|
|
70
|
+
function k(e = D.selected) {
|
|
71
71
|
let t = n(e);
|
|
72
|
-
return
|
|
72
|
+
return D.mode === "group" && D.isSingle ? t.filter((e) => e.type === (D.initialTab || "dept")) : t;
|
|
73
73
|
}
|
|
74
|
-
let
|
|
75
|
-
mode:
|
|
74
|
+
let A = x(k()), j = x(D.variant), M = x(D.mode === "group" ? D.initialTab : D.mode), N = x(""), P = x(""), F = ne({
|
|
75
|
+
mode: D.mode,
|
|
76
76
|
get http() {
|
|
77
|
-
return
|
|
77
|
+
return D.http;
|
|
78
78
|
},
|
|
79
79
|
get prefix() {
|
|
80
|
-
return
|
|
80
|
+
return D.prefix;
|
|
81
81
|
},
|
|
82
82
|
get isBuiltInRequest() {
|
|
83
|
-
return
|
|
83
|
+
return D.isBuiltInRequest;
|
|
84
84
|
},
|
|
85
|
-
initData: () =>
|
|
86
|
-
treeData: () =>
|
|
87
|
-
roleOptions: () =>
|
|
88
|
-
fieldNames: () =>
|
|
89
|
-
valueField: () =>
|
|
90
|
-
}), { departments:
|
|
91
|
-
mode:
|
|
92
|
-
selection:
|
|
93
|
-
maxCount:
|
|
94
|
-
})), H =
|
|
85
|
+
initData: () => D.initData?.(),
|
|
86
|
+
treeData: () => D.treeData || [],
|
|
87
|
+
roleOptions: () => D.roleOptions || [],
|
|
88
|
+
fieldNames: () => D.fieldNames,
|
|
89
|
+
valueField: () => D.valueField
|
|
90
|
+
}), { departments: I, roles: L, members: R, treeLoading: z, roleLoading: Ce, memberLoading: we, treeError: B, roleError: Te, memberError: Ee } = F, V = u(() => a({
|
|
91
|
+
mode: D.mode,
|
|
92
|
+
selection: D.selection,
|
|
93
|
+
maxCount: D.maxCount
|
|
94
|
+
})), H = u(() => D.mode === "group"), U = u(() => D.mode !== "group" && D.selection === "radio"), W = u(() => M.value === "user" && (H.value || j.value === "B")), G = u(() => H.value || W.value), De = u(() => H.value ? "选择部门、角色与用户" : D.title || `选择${o[M.value]}`), K = u(() => H.value && !D.isSingle ? [
|
|
95
95
|
"dept",
|
|
96
96
|
"role",
|
|
97
97
|
"user"
|
|
98
|
-
] : [
|
|
98
|
+
] : [M.value]), Oe = u(() => G.value ? 1040 : D.mode === "user" ? 880 : D.mode === "dept" ? 800 : 760), q = u(() => te(D.activeColor));
|
|
99
99
|
async function ke(e) {
|
|
100
100
|
if (e === "role") {
|
|
101
|
-
await
|
|
101
|
+
await F.loadRoles();
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
await
|
|
104
|
+
await F.loadTree(), e === "user" && (H.value || j.value === "B") && !N.value && (N.value = I.value[0]?.key || "");
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
w([M, v], ([e, t]) => {
|
|
107
107
|
t && ke(e);
|
|
108
|
-
}, { immediate: !0 }),
|
|
108
|
+
}, { immediate: !0 }), w([
|
|
109
|
+
N,
|
|
109
110
|
M,
|
|
110
|
-
|
|
111
|
-
_
|
|
111
|
+
v
|
|
112
112
|
], ([e, t, n]) => {
|
|
113
|
-
n && H.value && t === "user" &&
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
}),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
n && H.value && t === "user" && F.loadMembers(e);
|
|
114
|
+
}), w(() => D.variant, (e) => {
|
|
115
|
+
j.value = e;
|
|
116
|
+
}), w(() => [
|
|
117
|
+
D.http,
|
|
118
|
+
D.prefix,
|
|
119
|
+
D.isBuiltInRequest
|
|
120
120
|
], () => {
|
|
121
|
-
|
|
121
|
+
F.reset();
|
|
122
122
|
});
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function J(e) {
|
|
124
|
+
j.value !== e && (j.value = e, O("update:variant", e), e === "B" && !N.value && (N.value = I.value[0]?.key || ""));
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}, { deep: !0 }),
|
|
129
|
-
|
|
130
|
-
}, { deep: !0 }),
|
|
131
|
-
|
|
126
|
+
w(() => D.treeData, () => {
|
|
127
|
+
D.mode === "dept" && !D.isBuiltInRequest && F.loadTree(!0);
|
|
128
|
+
}, { deep: !0 }), w(() => D.roleOptions, () => {
|
|
129
|
+
D.mode === "role" && !D.isBuiltInRequest && F.loadRoles(!0);
|
|
130
|
+
}, { deep: !0 }), w(() => D.selected, (e) => {
|
|
131
|
+
v.value || (A.value = k(e));
|
|
132
132
|
}, {
|
|
133
133
|
deep: !0,
|
|
134
134
|
immediate: !0
|
|
135
|
-
}),
|
|
136
|
-
e ? (
|
|
135
|
+
}), w(v, (e) => {
|
|
136
|
+
e ? (j.value = D.variant, A.value = k(), M.value = D.mode === "group" ? D.initialTab : D.mode, N.value = "", P.value = "") : (A.value = k(), P.value = "");
|
|
137
137
|
}, { immediate: !0 });
|
|
138
|
-
async function
|
|
139
|
-
await
|
|
138
|
+
async function Y() {
|
|
139
|
+
await F.loadTree(!0), !N.value && (H.value || j.value === "B") && (N.value = I.value[0]?.key || "");
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
-
mode:
|
|
144
|
-
selection:
|
|
145
|
-
maxCount:
|
|
146
|
-
}),
|
|
141
|
+
function X(e) {
|
|
142
|
+
A.value = ee(A.value, e, {
|
|
143
|
+
mode: D.mode,
|
|
144
|
+
selection: D.selection,
|
|
145
|
+
maxCount: D.maxCount
|
|
146
|
+
}), P.value = "";
|
|
147
147
|
}
|
|
148
148
|
function Ae(e) {
|
|
149
|
-
|
|
149
|
+
A.value = A.value.filter((t) => r(t) !== r(e)), P.value = "";
|
|
150
150
|
}
|
|
151
151
|
function je(e) {
|
|
152
|
-
|
|
152
|
+
A.value = e ? A.value.filter((t) => t.type !== e) : [], P.value = "";
|
|
153
153
|
}
|
|
154
|
-
let Me =
|
|
155
|
-
...i(
|
|
156
|
-
...I.value,
|
|
154
|
+
let Me = u(() => [
|
|
155
|
+
...i(I.value).map((e) => e.entity),
|
|
157
156
|
...L.value,
|
|
158
|
-
...
|
|
159
|
-
|
|
157
|
+
...R.value,
|
|
158
|
+
...i(I.value).flatMap((e) => e.members)
|
|
159
|
+
]), Z = u(() => A.value.map((e) => {
|
|
160
160
|
let t = Me.value.find((t) => r(t) === r(e));
|
|
161
161
|
return t ? {
|
|
162
162
|
...t,
|
|
@@ -166,127 +166,131 @@ var fe = { class: "gd-ant-selector__dialog-root" }, pe = {
|
|
|
166
166
|
subtitle: e.subtitle || t.subtitle
|
|
167
167
|
} : e;
|
|
168
168
|
}));
|
|
169
|
-
function
|
|
170
|
-
let e =
|
|
171
|
-
if (!e.length &&
|
|
172
|
-
|
|
169
|
+
function Q() {
|
|
170
|
+
let e = D.mode === "group" && D.isSingle ? Z.value.filter((e) => e.type === (D.initialTab || "dept")) : Z.value;
|
|
171
|
+
if (!e.length && D.mode !== "group") {
|
|
172
|
+
P.value = `请至少选择一项${o[M.value]}`;
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
O("confirm", n(e)), v.value = !1;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
177
|
+
function $() {
|
|
178
|
+
A.value = k(), O("cancel"), v.value = !1;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
180
|
+
function Ne(e) {
|
|
181
|
+
M.value !== e && (M.value = e, O("changeTab", e));
|
|
182
182
|
}
|
|
183
|
-
async function
|
|
183
|
+
async function Pe(e, t) {
|
|
184
184
|
let n = t;
|
|
185
|
-
if (e.key === "ArrowRight") n = (t + 1) %
|
|
186
|
-
else if (e.key === "ArrowLeft") n = (t - 1 +
|
|
185
|
+
if (e.key === "ArrowRight") n = (t + 1) % K.value.length;
|
|
186
|
+
else if (e.key === "ArrowLeft") n = (t - 1 + K.value.length) % K.value.length;
|
|
187
187
|
else if (e.key === "Home") n = 0;
|
|
188
|
-
else if (e.key === "End") n =
|
|
188
|
+
else if (e.key === "End") n = K.value.length - 1;
|
|
189
189
|
else return;
|
|
190
190
|
let r = e.currentTarget.parentElement;
|
|
191
|
-
e.preventDefault(),
|
|
191
|
+
e.preventDefault(), Ne(K.value[n]), await se(), r?.querySelector("[aria-selected=\"true\"]")?.focus();
|
|
192
192
|
}
|
|
193
|
-
let
|
|
194
|
-
let { class: e, style: t,
|
|
193
|
+
let Fe = u(() => {
|
|
194
|
+
let { class: e, style: t, width: n, ...r } = D.modalProps || {}, i = Array.isArray(e) ? e : e ? [e] : [], a = typeof t == "string" ? `${t};${Object.entries(q.value.style).map(([e, t]) => `${e}:${t}`).join(";")}` : {
|
|
195
195
|
...t || {},
|
|
196
|
-
...
|
|
197
|
-
}
|
|
196
|
+
...q.value.style
|
|
197
|
+
}, o = G.value ? "min(var(--gdant-selector-dialog-wide-width), calc(100vw - var(--gdant-selector-dialog-viewport-gap)))" : n ?? `min(${Oe.value}px, calc(100vw - var(--gdant-selector-dialog-viewport-gap)))`;
|
|
198
198
|
return {
|
|
199
|
-
width: `min(${Oe.value}px, calc(100vw - 32px))`,
|
|
200
199
|
centered: !0,
|
|
201
200
|
destroyOnClose: !0,
|
|
202
|
-
...
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
...r,
|
|
202
|
+
width: o,
|
|
203
|
+
class: [
|
|
204
|
+
"gd-ant-selector-modal",
|
|
205
|
+
G.value && "gd-ant-selector-modal--wide",
|
|
206
|
+
...i
|
|
207
|
+
].filter(Boolean).join(" "),
|
|
208
|
+
style: a
|
|
205
209
|
};
|
|
206
210
|
});
|
|
207
|
-
return (n, r) => (
|
|
208
|
-
default:
|
|
209
|
-
modelValue:
|
|
210
|
-
"onUpdate:modelValue": r[7] ||= (e) =>
|
|
211
|
+
return (n, r) => (b(), d(C(ue), { theme: q.value.config }, {
|
|
212
|
+
default: T(() => [g(e, {
|
|
213
|
+
modelValue: v.value,
|
|
214
|
+
"onUpdate:modelValue": r[7] ||= (e) => v.value = e,
|
|
211
215
|
title: De.value,
|
|
212
|
-
"modal-props":
|
|
213
|
-
onOnCancel:
|
|
214
|
-
onOnConfirm:
|
|
216
|
+
"modal-props": Fe.value,
|
|
217
|
+
onOnCancel: $,
|
|
218
|
+
onOnConfirm: Q
|
|
215
219
|
}, {
|
|
216
|
-
footer:
|
|
217
|
-
class:
|
|
218
|
-
role:
|
|
219
|
-
}, [
|
|
220
|
+
footer: T(() => [m("div", ye, [m("span", {
|
|
221
|
+
class: y(["gd-ant-selector__footer-status", { "gd-ant-selector__footer-status--warning": P.value || Number.isFinite(V.value) && A.value.length >= V.value && !U.value }]),
|
|
222
|
+
role: P.value ? "alert" : "status"
|
|
223
|
+
}, [P.value ? (b(), p(l, { key: 0 }, [h(S(P.value), 1)], 64)) : !U.value && Number.isFinite(V.value) && A.value.length >= V.value ? (b(), p(l, { key: 1 }, [h("已达 " + S(V.value) + " 人上限,取消已选后可继续选择", 1)], 64)) : (b(), p(l, { key: 2 }, [g(t, {
|
|
220
224
|
name: "carry-out",
|
|
221
225
|
size: 14,
|
|
222
226
|
"aria-hidden": "true"
|
|
223
|
-
}),
|
|
224
|
-
default:
|
|
227
|
+
}), h(" " + S(A.value.length ? `已选择 ${A.value.length} 项` : U.value ? "请选择一项" : "选择完成后点击确认"), 1)], 64))], 10, be), m("div", xe, [g(C(E), { onClick: $ }, {
|
|
228
|
+
default: T(() => [...r[9] ||= [h("取消", -1)]]),
|
|
225
229
|
_: 1
|
|
226
|
-
}),
|
|
230
|
+
}), g(C(E), {
|
|
227
231
|
type: "primary",
|
|
228
|
-
onClick:
|
|
232
|
+
onClick: Q
|
|
229
233
|
}, {
|
|
230
|
-
default:
|
|
234
|
+
default: T(() => [r[10] ||= h(" 确认选择", -1), A.value.length ? (b(), p("span", Se, "(" + S(A.value.length) + ")", 1)) : f("", !0)]),
|
|
231
235
|
_: 1
|
|
232
236
|
})])])]),
|
|
233
|
-
default:
|
|
234
|
-
|
|
237
|
+
default: T(() => [m("div", de, [
|
|
238
|
+
c.mode === "user" ? (b(), p("div", fe, [r[8] ||= m("span", null, [h("方案比较 "), m("small", null, "切换保留本次选择")], -1), m("div", pe, [m("button", {
|
|
235
239
|
type: "button",
|
|
236
|
-
"aria-pressed":
|
|
237
|
-
onClick: r[0] ||= (e) =>
|
|
238
|
-
}, "A · 逐级浏览", 8,
|
|
240
|
+
"aria-pressed": j.value === "A",
|
|
241
|
+
onClick: r[0] ||= (e) => J("A")
|
|
242
|
+
}, "A · 逐级浏览", 8, me), m("button", {
|
|
239
243
|
type: "button",
|
|
240
|
-
"aria-pressed":
|
|
241
|
-
onClick: r[1] ||= (e) =>
|
|
242
|
-
}, "B · 通讯录", 8,
|
|
243
|
-
H.value ? (
|
|
244
|
+
"aria-pressed": j.value === "B",
|
|
245
|
+
onClick: r[1] ||= (e) => J("B")
|
|
246
|
+
}, "B · 通讯录", 8, he)])])) : f("", !0),
|
|
247
|
+
H.value ? (b(), p("div", ge, [(b(!0), p(l, null, ce(K.value, (e, n) => (b(), p("button", {
|
|
244
248
|
id: `gd-ant-selector-tab-${e}`,
|
|
245
249
|
key: e,
|
|
246
250
|
type: "button",
|
|
247
251
|
role: "tab",
|
|
248
|
-
"aria-selected":
|
|
249
|
-
tabindex:
|
|
252
|
+
"aria-selected": M.value === e,
|
|
253
|
+
tabindex: M.value === e ? 0 : -1,
|
|
250
254
|
"aria-controls": "gd-ant-selector-panel",
|
|
251
|
-
onClick: (t) =>
|
|
252
|
-
onKeydown: (e) =>
|
|
255
|
+
onClick: (t) => Ne(e),
|
|
256
|
+
onKeydown: (e) => Pe(e, n)
|
|
253
257
|
}, [
|
|
254
|
-
|
|
258
|
+
g(t, {
|
|
255
259
|
name: e === "dept" ? "bumen" : e === "role" ? "a-jiaoseguanli2" : "zuzhijiagou",
|
|
256
260
|
size: 16,
|
|
257
261
|
"aria-hidden": "true"
|
|
258
262
|
}, null, 8, ["name"]),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
], 40,
|
|
262
|
-
|
|
263
|
+
h(" " + S(C(o)[e]) + " ", 1),
|
|
264
|
+
m("span", null, S(A.value.filter((t) => t.type === e).length), 1)
|
|
265
|
+
], 40, _e))), 128))])) : f("", !0),
|
|
266
|
+
m("div", { class: y(["gd-ant-selector__dialog-layout", { "gd-ant-selector__dialog-layout--three": W.value }]) }, [m("div", {
|
|
263
267
|
id: "gd-ant-selector-panel",
|
|
264
268
|
class: "gd-ant-selector__candidates",
|
|
265
269
|
role: H.value ? "tabpanel" : void 0,
|
|
266
|
-
"aria-labelledby": H.value ? `gd-ant-selector-tab-${
|
|
267
|
-
}, [
|
|
270
|
+
"aria-labelledby": H.value ? `gd-ant-selector-tab-${M.value}` : void 0
|
|
271
|
+
}, [M.value === "user" ? (b(), d(ie, {
|
|
268
272
|
key: 0,
|
|
269
|
-
nodes:
|
|
270
|
-
variant: H.value ? "B" :
|
|
271
|
-
active:
|
|
272
|
-
selected:
|
|
273
|
+
nodes: C(I),
|
|
274
|
+
variant: H.value ? "B" : j.value,
|
|
275
|
+
active: N.value,
|
|
276
|
+
selected: A.value,
|
|
273
277
|
limit: V.value,
|
|
274
278
|
radio: U.value,
|
|
275
279
|
group: H.value,
|
|
276
|
-
members:
|
|
277
|
-
loading: H.value ?
|
|
278
|
-
"tree-loading":
|
|
279
|
-
error: H.value ?
|
|
280
|
-
"tree-error":
|
|
281
|
-
onNavigate: r[2] ||= (e) =>
|
|
282
|
-
onToggle:
|
|
283
|
-
onBulk: r[3] ||= (e) =>
|
|
284
|
-
mode:
|
|
285
|
-
selection:
|
|
286
|
-
maxCount:
|
|
280
|
+
members: C(R),
|
|
281
|
+
loading: H.value ? C(we) : C(z),
|
|
282
|
+
"tree-loading": C(z),
|
|
283
|
+
error: H.value ? C(Ee) : C(B),
|
|
284
|
+
"tree-error": C(B),
|
|
285
|
+
onNavigate: r[2] ||= (e) => N.value = e,
|
|
286
|
+
onToggle: X,
|
|
287
|
+
onBulk: r[3] ||= (e) => A.value = C(s)(A.value, e, {
|
|
288
|
+
mode: c.mode,
|
|
289
|
+
selection: c.selection,
|
|
290
|
+
maxCount: c.maxCount
|
|
287
291
|
}),
|
|
288
|
-
onRetry: r[4] ||= (e) => H.value ?
|
|
289
|
-
onRetryTree:
|
|
292
|
+
onRetry: r[4] ||= (e) => H.value ? C(F).loadMembers(N.value, !0) : Y(),
|
|
293
|
+
onRetryTree: Y
|
|
290
294
|
}, null, 8, [
|
|
291
295
|
"nodes",
|
|
292
296
|
"variant",
|
|
@@ -300,36 +304,36 @@ var fe = { class: "gd-ant-selector__dialog-root" }, pe = {
|
|
|
300
304
|
"tree-loading",
|
|
301
305
|
"error",
|
|
302
306
|
"tree-error"
|
|
303
|
-
])) :
|
|
307
|
+
])) : M.value === "dept" ? (b(), d(re, {
|
|
304
308
|
key: 1,
|
|
305
|
-
nodes:
|
|
306
|
-
selected:
|
|
309
|
+
nodes: C(I),
|
|
310
|
+
selected: A.value,
|
|
307
311
|
radio: U.value,
|
|
308
|
-
loading:
|
|
309
|
-
error:
|
|
310
|
-
onToggle:
|
|
311
|
-
onRetry:
|
|
312
|
+
loading: C(z),
|
|
313
|
+
error: C(B),
|
|
314
|
+
onToggle: X,
|
|
315
|
+
onRetry: Y
|
|
312
316
|
}, null, 8, [
|
|
313
317
|
"nodes",
|
|
314
318
|
"selected",
|
|
315
319
|
"radio",
|
|
316
320
|
"loading",
|
|
317
321
|
"error"
|
|
318
|
-
])) : (
|
|
322
|
+
])) : (b(), d(ae, {
|
|
319
323
|
key: 2,
|
|
320
|
-
roles:
|
|
321
|
-
selected:
|
|
324
|
+
roles: C(L),
|
|
325
|
+
selected: A.value,
|
|
322
326
|
radio: U.value,
|
|
323
327
|
group: H.value,
|
|
324
|
-
loading:
|
|
325
|
-
error:
|
|
326
|
-
onToggle:
|
|
327
|
-
onBulk: r[5] ||= (e) =>
|
|
328
|
-
mode:
|
|
329
|
-
selection:
|
|
330
|
-
maxCount:
|
|
328
|
+
loading: C(Ce),
|
|
329
|
+
error: C(Te),
|
|
330
|
+
onToggle: X,
|
|
331
|
+
onBulk: r[5] ||= (e) => A.value = C(s)(A.value, e, {
|
|
332
|
+
mode: c.mode,
|
|
333
|
+
selection: c.selection,
|
|
334
|
+
maxCount: c.maxCount
|
|
331
335
|
}),
|
|
332
|
-
onRetry: r[6] ||= (e) =>
|
|
336
|
+
onRetry: r[6] ||= (e) => C(F).loadRoles(!0)
|
|
333
337
|
}, null, 8, [
|
|
334
338
|
"roles",
|
|
335
339
|
"selected",
|
|
@@ -337,8 +341,8 @@ var fe = { class: "gd-ant-selector__dialog-root" }, pe = {
|
|
|
337
341
|
"group",
|
|
338
342
|
"loading",
|
|
339
343
|
"error"
|
|
340
|
-
]))], 8,
|
|
341
|
-
selected:
|
|
344
|
+
]))], 8, ve), g(oe, {
|
|
345
|
+
selected: Z.value,
|
|
342
346
|
limit: V.value,
|
|
343
347
|
grouped: H.value,
|
|
344
348
|
onRemove: Ae,
|
|
@@ -360,4 +364,4 @@ var fe = { class: "gd-ant-selector__dialog-root" }, pe = {
|
|
|
360
364
|
}
|
|
361
365
|
});
|
|
362
366
|
//#endregion
|
|
363
|
-
export {
|
|
367
|
+
export { D as default };
|