@feedmepos/mf-hrm-portal 2.1.0-dev → 2.1.0-dev.2
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/dist/AuditLogList-AGlAsWwd.js +1608 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-tiuei7CA.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js} +2 -2
- package/dist/EmployeeList-KvjoGI87.js +884 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-BgOhmojO.js → Main-BLh16xRg.js} +188 -185
- package/dist/Main-D3TSdtSE.js +94 -0
- package/dist/{Main-D2Wf__wM.js → Main-Dn1TfDRj.js} +1987 -1979
- package/dist/PermissionSetList-Ds69m9UU.js +392 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCKVpAwv.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js} +1122 -1122
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-D-14ca2J.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js} +1 -1
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js +42 -0
- package/dist/{RoleList-tSC8RJHe.js → RoleList-v8McRCnz.js} +231 -221
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js} +54 -20
- package/dist/{TeamMemberList-Bz-kDJ0e.js → TeamMemberList-BYQnNIhT.js} +137 -131
- package/dist/{TimesheetList-BFVhmcRt.js → TimesheetList-C1OWa6kf.js} +140 -134
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CtHuL5tW.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js} +2 -2
- package/dist/{app-DRnSocX8.js → app-CJouCBgi.js} +792 -475
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B8xOAypU.js → dayjs.min-DUugkgDM.js} +1 -1
- package/dist/{employee-UrXqUaik.js → employee-D5rEVmge.js} +3 -3
- package/dist/{iteration-LEYoQKiI.js → iteration-QRRNYlps.js} +1 -1
- package/dist/{lodash-Bq6_eZZ0.js → lodash-BlZhpHhM.js} +1 -1
- package/dist/{rule-CJC6Cq6S.js → rule-Dy7eMChN.js} +116 -110
- package/dist/src/api/audit-log/index.d.ts +23 -0
- package/dist/src/components/button/ResponsiveFabButton.vue.d.ts +7 -1
- package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
- package/dist/src/components/table/EmptyDataTemplate/index.vue.d.ts +4 -1
- package/dist/src/components/table/TableEmptyState.vue.d.ts +31 -0
- package/dist/src/stores/permission-set.d.ts +12 -3
- package/dist/src/stores/team.d.ts +4 -1
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/locales/index.d.ts +320 -16
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +1 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- package/dist/src/views/team/locales/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BGsfYWAR.js → useAppStore-CtMoad7V.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-BUM5R2qV.js → useLoading-CNqlchYO.js} +1 -1
- package/dist/{useReportPermissions-nlQ_BBL2.js → useReportPermissions-C5wGC9bf.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-C1bGND8z.js +0 -1037
- package/dist/EmployeeList-DqQF9xEx.js +0 -851
- package/dist/Main-DcKVuIjB.js +0 -90
- package/dist/PermissionSetList-CQpTa0eY.js +0 -384
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
- package/dist/SelectFilter-DUj7GBtT.js +0 -251
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as Ve, resolveComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as Ve, resolveComponent as P, createElementBlock as N, openBlock as b, createElementVNode as r, createVNode as d, toDisplayString as C, unref as l, ref as f, computed as R, createCommentVNode as q, withCtx as ue, createBlock as K, watch as pe, Fragment as Ae, renderList as rs, withKeys as Te, withModifiers as Fe, nextTick as is, onUnmounted as us, h as ms, createTextVNode as ds } from "vue";
|
|
2
|
+
import { useI18n as we, useCoreStore as je, baseClientInstance as qe } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Qe, useDialog as Ye, useBreakpoints as He, components as Oe } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as cs
|
|
5
|
-
import { _ as
|
|
6
|
-
import { v as Ke, m as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { u as as } from "./
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
4
|
+
import { u as cs } from "./useDebounce-B8ZPVS5C.js";
|
|
5
|
+
import { _ as ps, S as be } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
+
import { v as Ke, m as vs, b as fs, _ as bs, a as hs } from "./app-CJouCBgi.js";
|
|
7
|
+
import { u as ys, _ as _s } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
|
+
import { _ as gs } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js";
|
|
9
|
+
import { _ as xs } from "./Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js";
|
|
10
|
+
import { u as Ss } from "./useLoading-CNqlchYO.js";
|
|
11
|
+
import { l as Se } from "./lodash-BlZhpHhM.js";
|
|
12
|
+
import { g as ze, d as ve, u as es } from "./iteration-QRRNYlps.js";
|
|
13
|
+
import { u as ss, c as Be, d as Ge, m as Ne, i as ts, p as We, j as Us, k as Je, l as Xe, n as Fs, o as Vs, s as ws, q as Ps, v as Is, t as Ue } from "./rule-Dy7eMChN.js";
|
|
14
|
+
import { u as as } from "./useAppStore-CtMoad7V.js";
|
|
15
|
+
import { u as ls } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js";
|
|
16
|
+
import { _ as ks } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js";
|
|
16
17
|
var ye = /* @__PURE__ */ ((c) => (c.Update = "Update", c.Remove = "Remove", c))(ye || {});
|
|
17
18
|
const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-center gap-16" }, Cs = { class: "space-y-4 min-w-0 flex-1" }, Ms = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, Ns = { class: "fm-typo-en-body-lg-600 truncate" }, As = { class: "w-full flex gap-16 items-center" }, Ds = { class: "flex-1 flex flex-col gap-4 min-w-0" }, Os = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, Bs = { class: "fm-typo-en-body-lg-600 truncate" }, Es = { class: "flex-1 flex flex-col gap-4 min-w-0" }, js = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, Ls = { class: "fm-typo-en-body-lg-600 truncate" }, Ts = /* @__PURE__ */ Ve({
|
|
18
19
|
__name: "MemberInfo",
|
|
@@ -20,15 +21,15 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
20
21
|
data: {}
|
|
21
22
|
},
|
|
22
23
|
setup(c) {
|
|
23
|
-
const { t: A } =
|
|
24
|
+
const { t: A } = we();
|
|
24
25
|
return (n, a) => {
|
|
25
|
-
const p =
|
|
26
|
+
const p = P("FmAvatar");
|
|
26
27
|
return b(), N("div", $s, [
|
|
27
28
|
r("div", Rs, [
|
|
28
29
|
d(p, {
|
|
29
30
|
size: "xl",
|
|
30
|
-
|
|
31
|
-
}, null, 8, ["
|
|
31
|
+
name: c.data.name
|
|
32
|
+
}, null, 8, ["name"]),
|
|
32
33
|
r("div", Cs, [
|
|
33
34
|
r("p", Ms, C(l(A)("team.memberForm.memberInfo.memberName")), 1),
|
|
34
35
|
r("p", Ns, C(c.data.name || "--"), 1)
|
|
@@ -69,8 +70,8 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
69
70
|
__name: "PortalUserSearcher",
|
|
70
71
|
emits: ["invite"],
|
|
71
72
|
setup(c, { emit: A }) {
|
|
72
|
-
const n = A, { t: a } =
|
|
73
|
-
async function
|
|
73
|
+
const n = A, { t: a } = we(), p = Qe(), { supportedCountries: D, ready: I } = ls(), U = f("phone"), z = f(""), k = f(""), h = f();
|
|
74
|
+
async function v() {
|
|
74
75
|
if (!z.value && !k.value) {
|
|
75
76
|
p.open({
|
|
76
77
|
type: "error",
|
|
@@ -90,7 +91,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
90
91
|
y || (y = "Feed Me");
|
|
91
92
|
const [V, E] = y.split(" ");
|
|
92
93
|
return E ? `${V[0]}${E[0]}` : V.slice(0, 2);
|
|
93
|
-
}), X =
|
|
94
|
+
}), X = f(!1);
|
|
94
95
|
function G(y) {
|
|
95
96
|
n("invite", y), X.value = !0;
|
|
96
97
|
}
|
|
@@ -99,14 +100,14 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
99
100
|
}
|
|
100
101
|
return (y, V) => {
|
|
101
102
|
var Z, Q, O;
|
|
102
|
-
const E =
|
|
103
|
+
const E = P("FmRadio"), W = P("FmPhoneNumber"), i = P("FmCircularProgress"), o = P("FmTextField"), _ = P("FmRadioGroup"), w = P("FmButton");
|
|
103
104
|
return b(), N("div", qs, [
|
|
104
105
|
X.value ? q("", !0) : (b(), N("div", Ks, [
|
|
105
106
|
d(_, {
|
|
106
107
|
modelValue: U.value,
|
|
107
108
|
"onUpdate:modelValue": V[2] || (V[2] = ($) => U.value = $)
|
|
108
109
|
}, {
|
|
109
|
-
default:
|
|
110
|
+
default: ue(() => [
|
|
110
111
|
d(E, {
|
|
111
112
|
value: "phone",
|
|
112
113
|
label: l(a)("team.memberForm.searchUser.phoneNumber")
|
|
@@ -135,10 +136,10 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
135
136
|
]),
|
|
136
137
|
_: 1
|
|
137
138
|
}, 8, ["modelValue"]),
|
|
138
|
-
d(
|
|
139
|
+
d(w, {
|
|
139
140
|
label: l(a)("team.memberForm.searchUser.search"),
|
|
140
141
|
variant: "secondary",
|
|
141
|
-
onClick:
|
|
142
|
+
onClick: v
|
|
142
143
|
}, null, 8, ["label"])
|
|
143
144
|
])),
|
|
144
145
|
h.value ? (b(), N("div", {
|
|
@@ -154,7 +155,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
154
155
|
])
|
|
155
156
|
])) : q("", !0),
|
|
156
157
|
X.value ? (b(), N("div", Zs, [
|
|
157
|
-
d(
|
|
158
|
+
d(w, {
|
|
158
159
|
label: l(a)("team.memberForm.searchUser.changeUser"),
|
|
159
160
|
variant: "secondary",
|
|
160
161
|
onClick: j
|
|
@@ -163,7 +164,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
163
164
|
]);
|
|
164
165
|
};
|
|
165
166
|
}
|
|
166
|
-
}), Ys = /* @__PURE__ */
|
|
167
|
+
}), Ys = /* @__PURE__ */ ps(Qs, [["__scopeId", "data-v-a439fdd8"]]), Hs = { class: "flex flex-col gap-40" }, et = { class: "flex items-center" }, st = { class: "flex-1 flex flex-col" }, tt = { class: "fm-typo-en-title-sm-600" }, at = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, lt = { class: "flex flex-row gap-16" }, ot = { class: "flex flex-col gap-8" }, nt = { class: "fm-typo-en-body-lg-400" }, rt = { class: "space-y-16 rounded-lg border border-fm-color-neutral-gray-200 p-16" }, it = { class: "fm-typo-en-title-sm-600" }, ut = { class: "space-y-16" }, mt = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, dt = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ct = { class: "text-sm font-semibold text-fm-color-typo-primary" }, pt = { class: "flex justify-self-end" }, vt = ["aria-label", "onClick", "onKeydown"], Ee = 4, ft = /* @__PURE__ */ Ve({
|
|
167
168
|
__name: "TeamMemberMasterUser",
|
|
168
169
|
props: {
|
|
169
170
|
modelValue: {
|
|
@@ -189,7 +190,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
189
190
|
},
|
|
190
191
|
emits: ["update:model-value"],
|
|
191
192
|
setup(c, { emit: A }) {
|
|
192
|
-
const n = c, a = A, { t: p } =
|
|
193
|
+
const n = c, a = A, { t: p } = we(), D = f(!0), I = f([]);
|
|
193
194
|
function U() {
|
|
194
195
|
return { restaurantId: "", roleId: "" };
|
|
195
196
|
}
|
|
@@ -212,7 +213,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
212
213
|
const _ = ve(n.modelValue);
|
|
213
214
|
_[i] = o, a("update:model-value", _);
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function v(i = "") {
|
|
216
217
|
return n.restaurants.filter((o) => o.managable || o._id === i).map((o) => ({
|
|
217
218
|
label: `${o.profile.code ? `${o.profile.code} - ` : ""}${o.profile.name}`,
|
|
218
219
|
value: o._id,
|
|
@@ -229,15 +230,15 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
229
230
|
function X(i, o) {
|
|
230
231
|
var O, $, Y;
|
|
231
232
|
if (!n.modelValue) return;
|
|
232
|
-
const _ = n.modelValue.roles.length > 0 ? [...n.modelValue.roles] : [U()],
|
|
233
|
+
const _ = n.modelValue.roles.length > 0 ? [...n.modelValue.roles] : [U()], w = ((O = _[i]) == null ? void 0 : O.roleId) ?? "", Z = g(w), Q = (($ = Z.find((m) => m.value === w && !m.disabled)) == null ? void 0 : $.value) ?? ((Y = Z.find((m) => !m.disabled)) == null ? void 0 : Y.value) ?? "";
|
|
233
234
|
_[i] = { restaurantId: o, roleId: Q }, h("roles", _);
|
|
234
235
|
}
|
|
235
236
|
function G(i, o) {
|
|
236
|
-
var
|
|
237
|
+
var w;
|
|
237
238
|
if (!n.modelValue) return;
|
|
238
239
|
const _ = n.modelValue.roles.length > 0 ? [...n.modelValue.roles] : [U()];
|
|
239
240
|
_[i] = {
|
|
240
|
-
restaurantId: ((
|
|
241
|
+
restaurantId: ((w = _[i]) == null ? void 0 : w.restaurantId) ?? "",
|
|
241
242
|
roleId: o
|
|
242
243
|
}, h("roles", _);
|
|
243
244
|
}
|
|
@@ -249,7 +250,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
249
250
|
const o = n.modelValue.roles.length > 0 ? [...n.modelValue.roles] : [U()];
|
|
250
251
|
h(
|
|
251
252
|
"roles",
|
|
252
|
-
o.length === 1 ? [U()] : o.filter((_,
|
|
253
|
+
o.length === 1 ? [U()] : o.filter((_, w) => w !== i)
|
|
253
254
|
);
|
|
254
255
|
}
|
|
255
256
|
const V = R(() => {
|
|
@@ -292,7 +293,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
292
293
|
}
|
|
293
294
|
});
|
|
294
295
|
return (i, o) => {
|
|
295
|
-
const _ =
|
|
296
|
+
const _ = P("FmSwitch"), w = P("FmTextField"), Z = P("FmPinField"), Q = P("FmFormGroup"), O = P("FmSelect"), $ = P("FmIcon"), Y = P("FmButton");
|
|
296
297
|
return b(), N("div", Hs, [
|
|
297
298
|
r("div", et, [
|
|
298
299
|
r("div", st, [
|
|
@@ -309,12 +310,12 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
309
310
|
]),
|
|
310
311
|
c.modelValue ? (b(), N(Ae, { key: 0 }, [
|
|
311
312
|
r("div", lt, [
|
|
312
|
-
d(
|
|
313
|
+
d(w, {
|
|
313
314
|
"model-value": c.modelValue.code,
|
|
314
315
|
label: l(p)("team.memberForm.masterUser.code"),
|
|
315
316
|
"onUpdate:modelValue": o[0] || (o[0] = (m) => h("code", m))
|
|
316
317
|
}, null, 8, ["model-value", "label"]),
|
|
317
|
-
d(
|
|
318
|
+
d(w, {
|
|
318
319
|
"model-value": c.modelValue.name,
|
|
319
320
|
class: "w-full",
|
|
320
321
|
label: l(p)("team.memberForm.masterUser.name"),
|
|
@@ -331,7 +332,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
331
332
|
(m) => (m == null ? void 0 : m.filter((x) => !!x).length) !== Ee ? l(p)("team.memberForm.masterUser.passcodeRequired") : !0
|
|
332
333
|
]
|
|
333
334
|
}, {
|
|
334
|
-
default:
|
|
335
|
+
default: ue(() => [
|
|
335
336
|
(b(), K(Z, {
|
|
336
337
|
key: `pin-field-${D.value}`,
|
|
337
338
|
modelValue: I.value,
|
|
@@ -353,7 +354,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
353
354
|
(m) => !m || m.length === 0 || m.every((x) => !x.restaurantId) ? l(p)("team.memberForm.masterUser.restaurantRequired") : m.some((x) => !x.restaurantId || !x.roleId) ? l(p)("team.memberForm.masterUser.roleRequired") : !0
|
|
354
355
|
]
|
|
355
356
|
}, {
|
|
356
|
-
default:
|
|
357
|
+
default: ue(() => [
|
|
357
358
|
r("div", rt, [
|
|
358
359
|
r("div", it, C(l(p)("team.memberForm.masterUser.assignmentSection")), 1),
|
|
359
360
|
r("div", ut, [
|
|
@@ -369,7 +370,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
369
370
|
d(O, {
|
|
370
371
|
class: "min-w-0",
|
|
371
372
|
"model-value": m.restaurantId,
|
|
372
|
-
items:
|
|
373
|
+
items: v(m.restaurantId),
|
|
373
374
|
multiselect: !1,
|
|
374
375
|
placeholder: l(p)("team.table.columns.restaurant"),
|
|
375
376
|
"onUpdate:modelValue": (H) => X(x, H)
|
|
@@ -446,14 +447,14 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
446
447
|
},
|
|
447
448
|
setup(c, { expose: A }) {
|
|
448
449
|
var $e, Re, se;
|
|
449
|
-
const n = c, { t: a } =
|
|
450
|
+
const n = c, { t: a } = we(), p = Ye(), { breakpoints: D } = He(), I = f(), U = ss(), z = R(
|
|
450
451
|
() => U.permissionSets.value.map((s) => ({
|
|
451
452
|
label: s.name,
|
|
452
453
|
value: s.id
|
|
453
454
|
}))
|
|
454
|
-
), k =
|
|
455
|
+
), k = f((($e = n.initialValue) == null ? void 0 : $e.permissionSetIds) || []), h = R(
|
|
455
456
|
() => Be(k.value, U.permissionSets.value)
|
|
456
|
-
),
|
|
457
|
+
), v = f((Re = n.initialValue) == null ? void 0 : Re.posUser), g = f(
|
|
457
458
|
Ge(
|
|
458
459
|
Ne(h.value),
|
|
459
460
|
((se = n.initialValue) == null ? void 0 : se.permissions) || []
|
|
@@ -483,7 +484,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
483
484
|
disabled: !!s && !s.includes(u._id)
|
|
484
485
|
})
|
|
485
486
|
);
|
|
486
|
-
}),
|
|
487
|
+
}), w = f({ permissionSetIds: [], userPermissions: [], posUser: void 0 });
|
|
487
488
|
function Z(s) {
|
|
488
489
|
I.value = void 0, k.value = [...(s == null ? void 0 : s.permissionSetIds) ?? []], g.value = Ge(
|
|
489
490
|
Ne(
|
|
@@ -493,20 +494,20 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
493
494
|
)
|
|
494
495
|
),
|
|
495
496
|
(s == null ? void 0 : s.permissions) || []
|
|
496
|
-
),
|
|
497
|
+
), v.value = s != null && s.posUser ? ee(ve(s.posUser), g.value) : void 0, fe.value = !!v.value, w.value = {
|
|
497
498
|
permissionSetIds: [...k.value],
|
|
498
499
|
userPermissions: ve(g.value),
|
|
499
|
-
posUser:
|
|
500
|
+
posUser: v.value ? ve(v.value) : void 0
|
|
500
501
|
};
|
|
501
502
|
}
|
|
502
503
|
function Q() {
|
|
503
|
-
return !n.initialValue && I.value ? !0 : !Se.isEqual(k.value,
|
|
504
|
+
return !n.initialValue && I.value ? !0 : !Se.isEqual(k.value, w.value.permissionSetIds) || !Se.isEqual(g.value, w.value.userPermissions) || !Se.isEqual(v.value, w.value.posUser);
|
|
504
505
|
}
|
|
505
506
|
function O(s) {
|
|
506
507
|
I.value = s;
|
|
507
508
|
}
|
|
508
509
|
function $(s) {
|
|
509
|
-
|
|
510
|
+
v.value = ee(v.value, s);
|
|
510
511
|
}
|
|
511
512
|
function Y(s) {
|
|
512
513
|
return Ne(
|
|
@@ -544,32 +545,32 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
544
545
|
});
|
|
545
546
|
}
|
|
546
547
|
function H() {
|
|
547
|
-
const s = Ne(h.value), u = G.value ? y.value : j, B = Fs(g.value, u), L = Vs(B, V.value), T =
|
|
548
|
-
return
|
|
548
|
+
const s = Ne(h.value), u = G.value ? y.value : j, B = Fs(g.value, u), L = Vs(B, V.value), T = ws(L);
|
|
549
|
+
return Ps(s, T);
|
|
549
550
|
}
|
|
550
|
-
function
|
|
551
|
-
var B, L, T, te, ae,
|
|
552
|
-
const s = H(), u = g.value.filter((
|
|
551
|
+
function Pe() {
|
|
552
|
+
var B, L, T, te, ae, de, le, oe, ne, Ce;
|
|
553
|
+
const s = H(), u = g.value.filter((ce) => !ce.inverted);
|
|
553
554
|
return {
|
|
554
555
|
email: ((B = I.value) == null ? void 0 : B.email) ?? void 0,
|
|
555
556
|
phoneNumber: ((L = I.value) == null ? void 0 : L.phoneNumber) ?? void 0,
|
|
556
557
|
customPermissions: s,
|
|
557
|
-
permissions: u.map((
|
|
558
|
-
...
|
|
559
|
-
subject:
|
|
558
|
+
permissions: u.map((ce) => ({
|
|
559
|
+
...ce,
|
|
560
|
+
subject: vs(ce.subject)
|
|
560
561
|
})),
|
|
561
562
|
permissionSetIds: k.value,
|
|
562
563
|
name: ((T = I.value) == null ? void 0 : T.displayName) || ((te = n.initialValue) == null ? void 0 : te.name) || "",
|
|
563
|
-
posUser:
|
|
564
|
-
...
|
|
565
|
-
name:
|
|
566
|
-
code:
|
|
567
|
-
passcode:
|
|
568
|
-
roles:
|
|
569
|
-
} :
|
|
564
|
+
posUser: v.value ? {
|
|
565
|
+
...v.value,
|
|
566
|
+
name: v.value.name || ((de = (ae = n.initialValue) == null ? void 0 : ae.posUser) == null ? void 0 : de.name) || ((le = n.initialValue) == null ? void 0 : le.name) || ((oe = I.value) == null ? void 0 : oe.displayName) || "",
|
|
567
|
+
code: v.value.code || ((Ce = (ne = n.initialValue) == null ? void 0 : ne.posUser) == null ? void 0 : Ce.code) || "",
|
|
568
|
+
passcode: v.value.passcode,
|
|
569
|
+
roles: v.value.roles.filter((ce) => !!ce.roleId)
|
|
570
|
+
} : v.value === null ? null : void 0
|
|
570
571
|
};
|
|
571
572
|
}
|
|
572
|
-
const _e =
|
|
573
|
+
const _e = f();
|
|
573
574
|
function ee(s, u) {
|
|
574
575
|
if (!s) return s;
|
|
575
576
|
const B = Je(u), L = Xe(u);
|
|
@@ -579,52 +580,52 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
579
580
|
(te) => (B === null || B.includes(te.roleId)) && (L === null || L.includes(te.restaurantId))
|
|
580
581
|
), T;
|
|
581
582
|
}
|
|
582
|
-
const fe =
|
|
583
|
+
const fe = f(!!v.value), me = f(!1);
|
|
583
584
|
function ge(s) {
|
|
584
|
-
|
|
585
|
+
v.value = s, me.value = !0;
|
|
585
586
|
}
|
|
586
587
|
pe(
|
|
587
|
-
() => !!
|
|
588
|
+
() => !!v.value,
|
|
588
589
|
async (s) => {
|
|
589
|
-
s && !fe.value &&
|
|
590
|
+
s && !fe.value && me.value && (await is(), _e.value && _e.value.$el.scrollIntoView({ behavior: "smooth", block: "start" })), fe.value = s;
|
|
590
591
|
}
|
|
591
592
|
);
|
|
592
|
-
const Ie =
|
|
593
|
+
const Ie = f();
|
|
593
594
|
async function ke() {
|
|
594
|
-
return (await Ie.value.validateInputsWithoutSubmit()).length ? null :
|
|
595
|
+
return (await Ie.value.validateInputsWithoutSubmit()).length ? null : Pe();
|
|
595
596
|
}
|
|
596
597
|
return pe(
|
|
597
598
|
() => n.initialValue,
|
|
598
599
|
(s, u) => {
|
|
599
600
|
if (!u || !s || u.id !== s.id) {
|
|
600
|
-
|
|
601
|
+
me.value = !1, Z(s);
|
|
601
602
|
return;
|
|
602
603
|
}
|
|
603
|
-
s.posUser !== void 0 && !
|
|
604
|
-
...
|
|
605
|
-
posUser:
|
|
604
|
+
s.posUser !== void 0 && !me.value && (v.value = s.posUser ? ee(ve(s.posUser), g.value) : void 0, w.value = {
|
|
605
|
+
...w.value,
|
|
606
|
+
posUser: v.value ? ve(v.value) : void 0
|
|
606
607
|
});
|
|
607
608
|
},
|
|
608
609
|
{ immediate: !0 }
|
|
609
610
|
), pe(
|
|
610
611
|
g,
|
|
611
612
|
(s) => {
|
|
612
|
-
|
|
613
|
+
v.value = ee(v.value, s);
|
|
613
614
|
},
|
|
614
615
|
{ deep: !0 }
|
|
615
616
|
), A({
|
|
616
|
-
readFormData:
|
|
617
|
+
readFormData: Pe,
|
|
617
618
|
validate: ke,
|
|
618
619
|
isModified: Q
|
|
619
620
|
}), (s, u) => {
|
|
620
|
-
const B =
|
|
621
|
+
const B = P("FmSelect"), L = P("FmCircularProgress"), T = P("FmForm");
|
|
621
622
|
return b(), K(T, {
|
|
622
623
|
ref_key: "formRef",
|
|
623
624
|
ref: Ie,
|
|
624
625
|
class: "mx-4"
|
|
625
626
|
}, {
|
|
626
|
-
default:
|
|
627
|
-
var te, ae,
|
|
627
|
+
default: ue(() => {
|
|
628
|
+
var te, ae, de, le, oe;
|
|
628
629
|
return [
|
|
629
630
|
r("div", bt, [
|
|
630
631
|
r("div", ht, [
|
|
@@ -666,8 +667,8 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
666
667
|
key: 2,
|
|
667
668
|
ref_key: "masterUserContentRef",
|
|
668
669
|
ref: _e,
|
|
669
|
-
"model-value":
|
|
670
|
-
"fallback-name": ((ae = c.initialValue) == null ? void 0 : ae.name) || ((
|
|
670
|
+
"model-value": v.value,
|
|
671
|
+
"fallback-name": ((ae = c.initialValue) == null ? void 0 : ae.name) || ((de = I.value) == null ? void 0 : de.displayName) || "",
|
|
671
672
|
"fallback-passcode": (oe = (le = c.initialValue) == null ? void 0 : le.posUser) == null ? void 0 : oe.passcode,
|
|
672
673
|
roles: _.value,
|
|
673
674
|
restaurants: o.value,
|
|
@@ -683,9 +684,9 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
683
684
|
}
|
|
684
685
|
}), Vt = {
|
|
685
686
|
class: "space-y-24"
|
|
686
|
-
}, Pt = {
|
|
687
|
-
class: "space-y-8"
|
|
688
687
|
}, wt = {
|
|
688
|
+
class: "space-y-8"
|
|
689
|
+
}, Pt = {
|
|
689
690
|
key: 0,
|
|
690
691
|
class: "flex w-full items-start justify-between px-16"
|
|
691
692
|
}, It = {
|
|
@@ -696,7 +697,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
696
697
|
}, $t = {
|
|
697
698
|
class: "flex items-start gap-8"
|
|
698
699
|
}, Rt = {
|
|
699
|
-
class: "flex h-full flex-col"
|
|
700
|
+
class: "flex h-full flex-col overflow-auto"
|
|
700
701
|
}, Ct = {
|
|
701
702
|
class: "flex w-full items-center justify-between"
|
|
702
703
|
}, Mt = {
|
|
@@ -707,7 +708,7 @@ const $s = { class: "w-full flex flex-col gap-16" }, Rs = { class: "flex items-c
|
|
|
707
708
|
var re = /* @__PURE__ */ function(c) {
|
|
708
709
|
return c[c.ADD = 0] = "ADD", c[c.UPDATE = 1] = "UPDATE", c[c.CLOSED = 2] = "CLOSED", c;
|
|
709
710
|
}(re || {});
|
|
710
|
-
const
|
|
711
|
+
const Qt = /* @__PURE__ */ Ve({
|
|
711
712
|
__name: "TeamMemberList",
|
|
712
713
|
setup(c, {
|
|
713
714
|
expose: A
|
|
@@ -718,7 +719,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
718
719
|
ls();
|
|
719
720
|
const {
|
|
720
721
|
t: a
|
|
721
|
-
} =
|
|
722
|
+
} = we(), p = je(), D = es(), I = as(), U = Qe(), z = Ss(U), k = ss(), h = Is(), v = f(!0), g = f(!1), X = R(() => D.isLoading.value), G = f([]), j = f(0), y = f(1), V = f(""), E = f("");
|
|
722
723
|
pe(D.restaurants, (e) => {
|
|
723
724
|
if (e.length > 0 && G.value.length > 0) {
|
|
724
725
|
const t = new Map(e.map((F) => [F._id, F.profile.name])), S = e.map((F) => F.profile.name).sort();
|
|
@@ -743,7 +744,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
743
744
|
onClick: () => Y(ye.Remove, e),
|
|
744
745
|
itemClass: "text-fm-color-typo-error"
|
|
745
746
|
}, J = e.doc.isOwner ? [S] : [S, F];
|
|
746
|
-
return d(
|
|
747
|
+
return d(_s, {
|
|
747
748
|
class: t,
|
|
748
749
|
items: J
|
|
749
750
|
}, null);
|
|
@@ -756,7 +757,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
756
757
|
return d("div", {
|
|
757
758
|
class: "flex items-center gap-8"
|
|
758
759
|
}, [d(Oe.FmAvatar, {
|
|
759
|
-
|
|
760
|
+
name: t.name,
|
|
760
761
|
size: "sm",
|
|
761
762
|
class: "shrink-0"
|
|
762
763
|
}, null), d("span", {
|
|
@@ -773,7 +774,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
773
774
|
enableSorting: !1,
|
|
774
775
|
cell(e) {
|
|
775
776
|
if (X.value)
|
|
776
|
-
return ms(
|
|
777
|
+
return ms(xs);
|
|
777
778
|
const t = e.row.original;
|
|
778
779
|
return o(t);
|
|
779
780
|
}
|
|
@@ -791,7 +792,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
791
792
|
enableSorting: !1,
|
|
792
793
|
cell(e) {
|
|
793
794
|
const t = e.row.original;
|
|
794
|
-
return
|
|
795
|
+
return w(t);
|
|
795
796
|
},
|
|
796
797
|
meta: {
|
|
797
798
|
width: "200px"
|
|
@@ -811,7 +812,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
811
812
|
},
|
|
812
813
|
enableSorting: !1
|
|
813
814
|
}];
|
|
814
|
-
function
|
|
815
|
+
function w(e) {
|
|
815
816
|
if (e.doc.isOwner)
|
|
816
817
|
return a("team.labels.businessOwner");
|
|
817
818
|
const t = d(Oe.FmTooltip, {
|
|
@@ -862,7 +863,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
862
863
|
posUser: void 0
|
|
863
864
|
};
|
|
864
865
|
}
|
|
865
|
-
const O =
|
|
866
|
+
const O = f(!1);
|
|
866
867
|
let $ = 0;
|
|
867
868
|
const Y = async (e, t) => {
|
|
868
869
|
if (e == ye.Update) {
|
|
@@ -883,16 +884,16 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
883
884
|
}
|
|
884
885
|
}
|
|
885
886
|
e == ye.Remove && $e(t);
|
|
886
|
-
}, m = Ye(), x =
|
|
887
|
+
}, m = Ye(), x = f(re.CLOSED), H = R(() => x.value !== re.CLOSED), Pe = R(() => x.value === re.ADD ? a("common.add") : a("common.update")), _e = R(() => x.value === re.ADD ? a("team.actions.addMember") : a("team.actions.updateMember")), ee = f();
|
|
887
888
|
function fe() {
|
|
888
889
|
$++, O.value = !1, x.value = re.CLOSED;
|
|
889
890
|
}
|
|
890
|
-
const
|
|
891
|
+
const me = ys(() => {
|
|
891
892
|
var e;
|
|
892
893
|
return ((e = le.value) == null ? void 0 : e.isModified()) ?? !1;
|
|
893
894
|
}, fe);
|
|
894
895
|
function ge() {
|
|
895
|
-
|
|
896
|
+
me();
|
|
896
897
|
}
|
|
897
898
|
function Ie(e) {
|
|
898
899
|
e || ge();
|
|
@@ -918,7 +919,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
918
919
|
}
|
|
919
920
|
}).onPrimary(async () => {
|
|
920
921
|
ne.value || (await z.minor(async () => {
|
|
921
|
-
await Ue.deleteTeamMember(e.id), await
|
|
922
|
+
await Ue.deleteTeamMember(e.id), await de();
|
|
922
923
|
}, {
|
|
923
924
|
isLoading: ne,
|
|
924
925
|
successMessage: a("team.removeMember.successMessage", {
|
|
@@ -928,7 +929,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
928
929
|
});
|
|
929
930
|
}, Re = () => {
|
|
930
931
|
ee.value = null, x.value = re.ADD;
|
|
931
|
-
}, se =
|
|
932
|
+
}, se = f(), s = f(), u = f(), B = R(() => {
|
|
932
933
|
var e;
|
|
933
934
|
return JSON.stringify({
|
|
934
935
|
businessId: ((e = p.currentBusiness.value) == null ? void 0 : e._id) ?? "",
|
|
@@ -937,7 +938,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
937
938
|
permissionSubjects: [...s.value ?? []].sort(),
|
|
938
939
|
permissionSetIds: [...u.value ?? []].sort()
|
|
939
940
|
});
|
|
940
|
-
}), L = R(() => Object.values(
|
|
941
|
+
}), L = R(() => Object.values(fs).map((e) => ({
|
|
941
942
|
label: e.label,
|
|
942
943
|
value: e.subject
|
|
943
944
|
}))), T = R(() => k.permissionSets.value.map((e) => ({
|
|
@@ -949,7 +950,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
949
950
|
}
|
|
950
951
|
async function ae(e = y.value) {
|
|
951
952
|
var t, S, F;
|
|
952
|
-
|
|
953
|
+
v.value = !0;
|
|
953
954
|
try {
|
|
954
955
|
const J = await Ue.readTeamMembersPage({
|
|
955
956
|
limit: he,
|
|
@@ -961,24 +962,24 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
961
962
|
});
|
|
962
963
|
G.value = J.items, j.value = J.total;
|
|
963
964
|
} finally {
|
|
964
|
-
|
|
965
|
+
v.value = !1;
|
|
965
966
|
}
|
|
966
967
|
}
|
|
967
|
-
async function
|
|
968
|
+
async function de() {
|
|
968
969
|
var t;
|
|
969
970
|
if (!((t = p.currentBusiness.value) != null && t._id)) return;
|
|
970
971
|
await ae(y.value);
|
|
971
972
|
const e = Math.max(1, Math.ceil(j.value / he));
|
|
972
973
|
y.value > e && (y.value = e, await ae(y.value));
|
|
973
974
|
}
|
|
974
|
-
const le =
|
|
975
|
+
const le = f(), oe = f(!1), ne = f(!1);
|
|
975
976
|
async function Ce() {
|
|
976
977
|
if (!le.value) return;
|
|
977
978
|
const e = await le.value.validate();
|
|
978
979
|
if (!e) return;
|
|
979
980
|
const t = x.value === re.ADD;
|
|
980
981
|
await z.minor(async () => {
|
|
981
|
-
await (t ? Ue.createTeamMember(e) : Ue.updateTeamMember(ee.value.id, e)), fe(), await Le(), await
|
|
982
|
+
await (t ? Ue.createTeamMember(e) : Ue.updateTeamMember(ee.value.id, e)), fe(), await Le(), await de();
|
|
982
983
|
}, {
|
|
983
984
|
successMessage: t ? a("team.addMember.successMessage", {
|
|
984
985
|
memberName: e.name
|
|
@@ -988,7 +989,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
988
989
|
isLoading: oe
|
|
989
990
|
}), x.value = re.CLOSED;
|
|
990
991
|
}
|
|
991
|
-
async function
|
|
992
|
+
async function ce() {
|
|
992
993
|
await k.readPermissionSets();
|
|
993
994
|
}
|
|
994
995
|
async function Le() {
|
|
@@ -1020,7 +1021,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
1020
1021
|
var e;
|
|
1021
1022
|
if ((e = p.currentBusiness.value) != null && e._id)
|
|
1022
1023
|
try {
|
|
1023
|
-
await Promise.all([D.readRestaurants(),
|
|
1024
|
+
await Promise.all([D.readRestaurants(), ce(), Le(), n(), te()]);
|
|
1024
1025
|
} catch (t) {
|
|
1025
1026
|
console.error("Failed to load team member dependencies:", t), U.open({
|
|
1026
1027
|
message: t instanceof Error ? t.message : String(t),
|
|
@@ -1033,8 +1034,8 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
1033
1034
|
create: Re
|
|
1034
1035
|
}), (e, t) => {
|
|
1035
1036
|
var xe;
|
|
1036
|
-
const S =
|
|
1037
|
-
return b(), N(Ae, null, [r("div", Vt, [r("div",
|
|
1037
|
+
const S = P("FmSearch"), F = P("FmTable"), J = P("FmIcon"), ie = P("FmButton"), Me = P("FmSideSheet");
|
|
1038
|
+
return b(), N(Ae, null, [r("div", Vt, [r("div", wt, [l(ke).xs ? (b(), N("div", kt, [d(S, {
|
|
1038
1039
|
modelValue: V.value,
|
|
1039
1040
|
"onUpdate:modelValue": t[4] || (t[4] = (M) => V.value = M),
|
|
1040
1041
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
@@ -1064,7 +1065,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
1064
1065
|
items: T.value,
|
|
1065
1066
|
"selected-prefix": l(a)("team.filter.selected_assigned_role_prefix"),
|
|
1066
1067
|
placeholder: l(a)("team.filter.assigned_role_placeholder")
|
|
1067
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (b(), N("div",
|
|
1068
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (b(), N("div", Pt, [r("div", It, [d(be, {
|
|
1068
1069
|
modelValue: se.value,
|
|
1069
1070
|
"onUpdate:modelValue": t[0] || (t[0] = (M) => se.value = M),
|
|
1070
1071
|
multiple: "",
|
|
@@ -1095,44 +1096,49 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
1095
1096
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
1096
1097
|
autofocus: "",
|
|
1097
1098
|
placeholder: l(a)("team.search.placeholder")
|
|
1098
|
-
}, null, 8, ["modelValue", "placeholder"])])), (xe = l(p).currentBusiness.value) != null && xe._id ? (b(), K(
|
|
1099
|
+
}, null, 8, ["modelValue", "placeholder"])])), (xe = l(p).currentBusiness.value) != null && xe._id ? (b(), K(bs, {
|
|
1099
1100
|
key: 2
|
|
1100
1101
|
}, {
|
|
1101
|
-
default:
|
|
1102
|
+
default: ue(() => [r("div", Rt, [g.value ? q("", !0) : (b(), K(hs, {
|
|
1103
|
+
key: 0
|
|
1104
|
+
})), g.value ? (b(), K(gs, {
|
|
1102
1105
|
key: 1,
|
|
1106
|
+
"is-loading": v.value,
|
|
1107
|
+
"is-empty": j.value === 0,
|
|
1103
1108
|
title: l(a)("team.emptyState.title"),
|
|
1104
1109
|
subtitle: l(a)("team.emptyState.description")
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1110
|
+
}, {
|
|
1111
|
+
default: ue(() => [(b(), K(F, {
|
|
1112
|
+
key: B.value,
|
|
1113
|
+
"column-defs": _,
|
|
1114
|
+
"row-data": G.value,
|
|
1115
|
+
"page-size": he,
|
|
1116
|
+
"page-count": Math.ceil(j.value / he),
|
|
1117
|
+
"row-count": j.value,
|
|
1118
|
+
"fetch-fn": os,
|
|
1119
|
+
"hide-footer": j.value <= he,
|
|
1120
|
+
loading: v.value,
|
|
1121
|
+
"pin-header-row": "",
|
|
1122
|
+
onRowClick: t[8] || (t[8] = (M) => Y(l(ye).Update, M.original))
|
|
1123
|
+
}, null, 8, ["row-data", "page-count", "row-count", "hide-footer", "loading"]))]),
|
|
1124
|
+
_: 1
|
|
1125
|
+
}, 8, ["is-loading", "is-empty", "title", "subtitle"])) : q("", !0)])]),
|
|
1120
1126
|
_: 1
|
|
1121
1127
|
})) : q("", !0)])]), d(Me, {
|
|
1122
1128
|
"model-value": H.value,
|
|
1123
1129
|
"max-width": 960,
|
|
1124
1130
|
"close-button": !1,
|
|
1125
1131
|
"onUpdate:modelValue": Ie,
|
|
1126
|
-
"onOn:clickedAway": l(
|
|
1132
|
+
"onOn:clickedAway": l(me)
|
|
1127
1133
|
}, {
|
|
1128
|
-
"side-sheet-header":
|
|
1134
|
+
"side-sheet-header": ue(() => [r("div", Ct, [r("p", Mt, C(_e.value), 1), d(J, {
|
|
1129
1135
|
name: "close",
|
|
1130
1136
|
size: "md",
|
|
1131
1137
|
class: "cursor-pointer",
|
|
1132
|
-
onClick: l(
|
|
1138
|
+
onClick: l(me)
|
|
1133
1139
|
}, null, 8, ["onClick"])])]),
|
|
1134
|
-
"side-sheet-footer":
|
|
1135
|
-
label:
|
|
1140
|
+
"side-sheet-footer": ue(() => [r("div", Nt, [d(ie, {
|
|
1141
|
+
label: Pe.value,
|
|
1136
1142
|
size: "md",
|
|
1137
1143
|
variant: "primary",
|
|
1138
1144
|
"is-loading": oe.value,
|
|
@@ -1145,7 +1151,7 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
1145
1151
|
disabled: oe.value,
|
|
1146
1152
|
onClick: ge
|
|
1147
1153
|
}, null, 8, ["label", "disabled"])])]),
|
|
1148
|
-
default:
|
|
1154
|
+
default: ue(() => [H.value ? (b(), K(Ft, {
|
|
1149
1155
|
key: 0,
|
|
1150
1156
|
ref_key: "memberForm",
|
|
1151
1157
|
ref: le,
|
|
@@ -1159,5 +1165,5 @@ const Zt = /* @__PURE__ */ Ve({
|
|
|
1159
1165
|
}
|
|
1160
1166
|
});
|
|
1161
1167
|
export {
|
|
1162
|
-
|
|
1168
|
+
Qt as default
|
|
1163
1169
|
};
|