@feedmepos/mf-hrm-portal 2.2.5-dev → 2.2.5-dev.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/dist/{ApprovalCodeList-DgcWZ3SZ.js → ApprovalCodeList-BuIPVwsl.js} +2 -2
- package/dist/{AuditLogList-vWKMMGvd.js → AuditLogList-l3fv_3jD.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BYY9dMSQ.js} +2 -2
- package/dist/EmployeeList-HjNxPBcN.js +786 -0
- package/dist/{GrantUserList-BAW0C1bA.js → GrantUserList-B91EBl82.js} +3 -3
- package/dist/{Main-B7Nn8CLQ.js → Main-C_tQuQsU.js} +9 -9
- package/dist/{Main-Wr6cTqfM.js → Main-DeqJPnm7.js} +2 -2
- package/dist/{Main-NzpdRNB3.js → Main-TuG-h_qY.js} +5 -5
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D6AFOleD.js → PermissionSetList-qVaYkiQ4.js} +18 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DcpNr0M4.js} +784 -784
- package/dist/{RoleList-BuqpmXn_.js → RoleList-CM0m4nya.js} +7 -7
- package/dist/TeamMemberList-GkMQuyoE.js +1153 -0
- package/dist/{TimesheetList-B5FyVyCz.js → TimesheetList-Ci2r3AOF.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QbQ7tbJP.js} +2 -2
- package/dist/{app-8samJY5z.js → app-MXDLzWd6.js} +1140 -1132
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Ba4X_9nY.js → dayjs.min-DRqYbe11.js} +1 -1
- package/dist/{employee-BcFgm8Rt.js → employee-zsQMMIVM.js} +3 -3
- package/dist/{iteration-Dhdew1jW.js → iteration-CtN8sidV.js} +1 -1
- package/dist/{lodash-CJ3mHku0.js → lodash-BwY7earz.js} +1 -1
- package/dist/{role-BViYS7RK.js → role-Ds1yN3BN.js} +1 -1
- package/dist/{rule-Dxt1ZSQS.js → rule-DkG2eGGH.js} +257 -253
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -0
- package/dist/src/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +12 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-BiyAfGvZ.js → useReportPermissions-B_YakoB-.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-Cu4RxVQX.js +0 -889
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +0 -85
- package/dist/TeamMemberList-M6HA9BWu.js +0 -1248
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-DRqYbe11.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as A } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as he } from "./app-
|
|
6
|
+
import { _ as he } from "./app-MXDLzWd6.js";
|
|
7
7
|
import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
|
|
8
8
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { u as te } from "./useLoading-CXzTpIVv.js";
|
|
10
10
|
import { u as ae } from "./grant-user-SNiDV22U.js";
|
|
11
11
|
import { u as se } from "./restaurant-BTpBmfBV.js";
|
|
12
|
-
import { u as re } from "./role-
|
|
12
|
+
import { u as re } from "./role-Ds1yN3BN.js";
|
|
13
13
|
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
15
15
|
__name: "GrantUserForm",
|
|
@@ -5,18 +5,18 @@ import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
7
|
import { u as gf } from "./restaurant-BTpBmfBV.js";
|
|
8
|
-
import { u as _f } from "./role-
|
|
8
|
+
import { u as _f } from "./role-Ds1yN3BN.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-zsQMMIVM.js";
|
|
11
|
+
import "./lodash-BwY7earz.js";
|
|
12
12
|
import "./useAppStore-DCwd8GWN.js";
|
|
13
|
-
import "./iteration-
|
|
13
|
+
import "./iteration-CtN8sidV.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { R as pt } from "./app-
|
|
16
|
-
import "./rule-
|
|
17
|
-
import "./useReportPermissions-
|
|
18
|
-
import "./dayjs.min-
|
|
19
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
15
|
+
import { R as pt } from "./app-MXDLzWd6.js";
|
|
16
|
+
import "./rule-DkG2eGGH.js";
|
|
17
|
+
import "./useReportPermissions-B_YakoB-.js";
|
|
18
|
+
import "./dayjs.min-DRqYbe11.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QbQ7tbJP.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -5,10 +5,10 @@ import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
|
5
5
|
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
7
|
import { u as j } from "./restaurant-BTpBmfBV.js";
|
|
8
|
-
import { u as H } from "./role-
|
|
8
|
+
import { u as H } from "./role-Ds1yN3BN.js";
|
|
9
9
|
import { u as J } from "./grant-user-SNiDV22U.js";
|
|
10
10
|
import { u as K } from "./approval-code-jIjkeVEb.js";
|
|
11
|
-
import { R as n } from "./app-
|
|
11
|
+
import { R as n } from "./app-MXDLzWd6.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -5,12 +5,12 @@ import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lan
|
|
|
5
5
|
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
6
|
import { u as w } from "./restaurant-BTpBmfBV.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./iteration-
|
|
8
|
+
import "./rule-DkG2eGGH.js";
|
|
9
|
+
import "./lodash-BwY7earz.js";
|
|
10
|
+
import "./iteration-CtN8sidV.js";
|
|
11
11
|
import "./useAppStore-DCwd8GWN.js";
|
|
12
|
-
import { R as v } from "./app-
|
|
13
|
-
import "./role-
|
|
12
|
+
import { R as v } from "./app-MXDLzWd6.js";
|
|
13
|
+
import "./role-Ds1yN3BN.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js";
|
|
16
16
|
const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as I, createElementBlock as u, openBlock as m, normalizeStyle as P, computed as x, resolveComponent as k, createElementVNode as r, createVNode as p, toDisplayString as _, Fragment as L, renderList as S, createCommentVNode as $, withKeys as F, withModifiers as V, normalizeClass as j } from "vue";
|
|
2
|
+
const ee = /* @__PURE__ */ I({
|
|
3
|
+
__name: "Skeleton",
|
|
4
|
+
props: {
|
|
5
|
+
width: { default: "160px" }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (a, t) => (m(), u("div", {
|
|
9
|
+
class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
|
|
10
|
+
style: P({ width: e.width })
|
|
11
|
+
}, null, 4));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function B(e) {
|
|
15
|
+
return e.map((a) => a.restaurantId).filter(Boolean);
|
|
16
|
+
}
|
|
17
|
+
function w(e, a, t) {
|
|
18
|
+
const o = B(a);
|
|
19
|
+
return e.filter((l) => l.managable || l._id === t).map((l) => ({
|
|
20
|
+
label: `${l.profile.code ? `${l.profile.code} - ` : ""}${l.profile.name}`,
|
|
21
|
+
value: l._id,
|
|
22
|
+
disabled: o.includes(l._id) && l._id !== t
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
function C(e, a, t, o) {
|
|
26
|
+
return a ? e.filter((l) => l.restaurants.some((s) => s.id == a)).map((l) => ({
|
|
27
|
+
label: l.name,
|
|
28
|
+
value: l._id,
|
|
29
|
+
disabled: !o.isRoleUsable(l, a) && l._id !== t
|
|
30
|
+
})) : [];
|
|
31
|
+
}
|
|
32
|
+
function K(e, a, t, o) {
|
|
33
|
+
var s, c;
|
|
34
|
+
const l = C(e, a, t, o);
|
|
35
|
+
return ((s = l.find((n) => n.value === t && !n.disabled)) == null ? void 0 : s.value) ?? ((c = l.find((n) => !n.disabled)) == null ? void 0 : c.value) ?? "";
|
|
36
|
+
}
|
|
37
|
+
function N(e, a) {
|
|
38
|
+
const t = B(a), o = e.some(
|
|
39
|
+
(s) => s.managable && !t.includes(s._id)
|
|
40
|
+
), l = a.every((s) => s.restaurantId && s.roleId);
|
|
41
|
+
return o && l;
|
|
42
|
+
}
|
|
43
|
+
function E(e, a, t, o) {
|
|
44
|
+
var s;
|
|
45
|
+
const l = ((s = e[a]) == null ? void 0 : s.restaurantId) ?? "";
|
|
46
|
+
return o.isRestaurantLocked(l) ? e : e.length === 1 ? [t()] : e.filter((c, n) => n !== a);
|
|
47
|
+
}
|
|
48
|
+
const M = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, D = { class: "fm-typo-en-title-sm-600" }, G = { class: "space-y-16" }, q = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, H = { class: "text-sm font-semibold text-fm-color-typo-primary" }, J = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Q = { class: "flex justify-self-end" }, T = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], te = /* @__PURE__ */ I({
|
|
49
|
+
__name: "OutletRoleAssignment",
|
|
50
|
+
props: {
|
|
51
|
+
modelValue: {},
|
|
52
|
+
restaurants: {},
|
|
53
|
+
roles: {},
|
|
54
|
+
isRoleUsable: {},
|
|
55
|
+
isRestaurantLocked: { type: Function, default: () => !1 },
|
|
56
|
+
createRow: {},
|
|
57
|
+
title: {},
|
|
58
|
+
restaurantLabel: {},
|
|
59
|
+
roleLabel: {},
|
|
60
|
+
addLabel: {},
|
|
61
|
+
removeLabel: {}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:modelValue"],
|
|
64
|
+
setup(e, { emit: a }) {
|
|
65
|
+
const t = e, o = a, l = x(() => ({
|
|
66
|
+
isRoleUsable: t.isRoleUsable,
|
|
67
|
+
isRestaurantLocked: t.isRestaurantLocked
|
|
68
|
+
}));
|
|
69
|
+
function s(d) {
|
|
70
|
+
return w(t.restaurants, t.modelValue, d);
|
|
71
|
+
}
|
|
72
|
+
function c(d) {
|
|
73
|
+
return C(t.roles, d.restaurantId, d.roleId, l.value);
|
|
74
|
+
}
|
|
75
|
+
function n(d) {
|
|
76
|
+
return t.isRestaurantLocked(d);
|
|
77
|
+
}
|
|
78
|
+
function U(d, f) {
|
|
79
|
+
const b = t.modelValue[d], v = K(t.roles, f, b.roleId, l.value), h = [...t.modelValue];
|
|
80
|
+
h[d] = { ...b, restaurantId: f, roleId: v }, o("update:modelValue", h);
|
|
81
|
+
}
|
|
82
|
+
function z(d, f) {
|
|
83
|
+
const b = t.modelValue[d], v = [...t.modelValue];
|
|
84
|
+
v[d] = { ...b, roleId: f }, o("update:modelValue", v);
|
|
85
|
+
}
|
|
86
|
+
function O() {
|
|
87
|
+
o("update:modelValue", [...t.modelValue, t.createRow()]);
|
|
88
|
+
}
|
|
89
|
+
function R(d) {
|
|
90
|
+
o(
|
|
91
|
+
"update:modelValue",
|
|
92
|
+
E(t.modelValue, d, t.createRow, l.value)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
const A = x(() => N(t.restaurants, t.modelValue));
|
|
96
|
+
return (d, f) => {
|
|
97
|
+
const b = k("FmSelect"), v = k("FmIcon"), h = k("FmButton");
|
|
98
|
+
return m(), u("div", M, [
|
|
99
|
+
r("div", D, _(e.title), 1),
|
|
100
|
+
r("div", G, [
|
|
101
|
+
r("div", q, [
|
|
102
|
+
r("div", H, _(e.restaurantLabel), 1),
|
|
103
|
+
r("div", J, _(e.roleLabel), 1),
|
|
104
|
+
f[0] || (f[0] = r("div", null, null, -1))
|
|
105
|
+
]),
|
|
106
|
+
(m(!0), u(L, null, S(e.modelValue, (i, y) => (m(), u("div", {
|
|
107
|
+
key: `${i.restaurantId || "new"}-${y}`,
|
|
108
|
+
class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
|
|
109
|
+
}, [
|
|
110
|
+
p(b, {
|
|
111
|
+
class: "min-w-0",
|
|
112
|
+
"model-value": i.restaurantId,
|
|
113
|
+
items: s(i.restaurantId),
|
|
114
|
+
multiselect: !1,
|
|
115
|
+
searchable: "",
|
|
116
|
+
"search-debounce": 300,
|
|
117
|
+
placeholder: e.restaurantLabel,
|
|
118
|
+
disabled: n(i.restaurantId),
|
|
119
|
+
"onUpdate:modelValue": (g) => U(y, g)
|
|
120
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
121
|
+
p(b, {
|
|
122
|
+
class: "min-w-0",
|
|
123
|
+
"model-value": i.roleId,
|
|
124
|
+
items: c(i),
|
|
125
|
+
multiselect: !1,
|
|
126
|
+
placeholder: e.roleLabel,
|
|
127
|
+
disabled: !i.restaurantId || n(i.restaurantId),
|
|
128
|
+
"onUpdate:modelValue": (g) => z(y, g)
|
|
129
|
+
}, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
|
|
130
|
+
r("div", Q, [
|
|
131
|
+
e.modelValue.length > 1 ? (m(), u("div", {
|
|
132
|
+
key: 0,
|
|
133
|
+
role: "button",
|
|
134
|
+
tabindex: n(i.restaurantId) ? -1 : 0,
|
|
135
|
+
"aria-disabled": n(i.restaurantId),
|
|
136
|
+
class: j(["inline-flex h-40 w-40 shrink-0 items-center justify-center rounded-lg text-fm-color-neutral-gray-400 transition-colors hover:bg-fm-color-neutral-gray-100 focus:outline-none focus:ring-2 focus:ring-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-neutral-gray-200 disabled:hover:bg-transparent", {
|
|
137
|
+
"cursor-pointer": !n(i.restaurantId),
|
|
138
|
+
"pointer-events-none": n(i.restaurantId)
|
|
139
|
+
}]),
|
|
140
|
+
"aria-label": e.removeLabel,
|
|
141
|
+
onClick: V((g) => R(y), ["stop"]),
|
|
142
|
+
onKeydown: [
|
|
143
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["enter"]),
|
|
144
|
+
F(V((g) => R(y), ["prevent", "stop"]), ["space"])
|
|
145
|
+
]
|
|
146
|
+
}, [
|
|
147
|
+
p(v, {
|
|
148
|
+
name: "delete",
|
|
149
|
+
size: "md"
|
|
150
|
+
})
|
|
151
|
+
], 42, T)) : $("", !0)
|
|
152
|
+
])
|
|
153
|
+
]))), 128))
|
|
154
|
+
]),
|
|
155
|
+
p(h, {
|
|
156
|
+
type: "button",
|
|
157
|
+
variant: "secondary",
|
|
158
|
+
"text-color": "primary",
|
|
159
|
+
"border-color": "primary",
|
|
160
|
+
"prepend-icon": "add",
|
|
161
|
+
label: e.addLabel,
|
|
162
|
+
size: "md",
|
|
163
|
+
disabled: !A.value,
|
|
164
|
+
onClick: V(O, ["stop"])
|
|
165
|
+
}, null, 8, ["label", "disabled"])
|
|
166
|
+
]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}), W = {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "fm-typo-body-sm-400 text-fm-color-typo-secondary"
|
|
172
|
+
}, le = /* @__PURE__ */ I({
|
|
173
|
+
__name: "PasscodeGenerateButton",
|
|
174
|
+
props: {
|
|
175
|
+
label: {},
|
|
176
|
+
hint: {},
|
|
177
|
+
disabled: { type: Boolean, default: !1 },
|
|
178
|
+
loading: { type: Boolean, default: !1 }
|
|
179
|
+
},
|
|
180
|
+
emits: ["click"],
|
|
181
|
+
setup(e) {
|
|
182
|
+
return (a, t) => {
|
|
183
|
+
const o = k("FmButton");
|
|
184
|
+
return m(), u(L, null, [
|
|
185
|
+
p(o, {
|
|
186
|
+
variant: "secondary",
|
|
187
|
+
"text-color": "primary",
|
|
188
|
+
"border-color": "primary",
|
|
189
|
+
label: e.label,
|
|
190
|
+
size: "md",
|
|
191
|
+
loading: e.loading,
|
|
192
|
+
disabled: e.disabled,
|
|
193
|
+
onClick: t[0] || (t[0] = (l) => a.$emit("click"))
|
|
194
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
195
|
+
e.disabled ? (m(), u("div", W, _(e.hint), 1)) : $("", !0)
|
|
196
|
+
], 64);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}), X = { class: "flex items-center gap-8" }, Y = ["aria-label"], ae = /* @__PURE__ */ I({
|
|
200
|
+
__name: "PasscodePinField",
|
|
201
|
+
props: {
|
|
202
|
+
modelValue: {},
|
|
203
|
+
masked: { type: Boolean },
|
|
204
|
+
length: { default: 4 },
|
|
205
|
+
toggleLabel: {}
|
|
206
|
+
},
|
|
207
|
+
emits: ["update:modelValue", "update:masked", "complete"],
|
|
208
|
+
setup(e, { emit: a }) {
|
|
209
|
+
const t = a;
|
|
210
|
+
return (o, l) => {
|
|
211
|
+
const s = k("FmPinField"), c = k("FmIcon");
|
|
212
|
+
return m(), u("div", X, [
|
|
213
|
+
p(s, {
|
|
214
|
+
"model-value": e.modelValue,
|
|
215
|
+
length: e.length,
|
|
216
|
+
masked: e.masked,
|
|
217
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => t("update:modelValue", n)),
|
|
218
|
+
onComplete: l[1] || (l[1] = (n) => t("complete", n)),
|
|
219
|
+
onFocus: l[2] || (l[2] = (n) => t("update:masked", !1))
|
|
220
|
+
}, null, 8, ["model-value", "length", "masked"]),
|
|
221
|
+
r("button", {
|
|
222
|
+
type: "button",
|
|
223
|
+
class: "flex items-center justify-center rounded-full p-4 hover:bg-fm-color-neutral-gray-100",
|
|
224
|
+
"aria-label": e.toggleLabel,
|
|
225
|
+
onClick: l[3] || (l[3] = (n) => t("update:masked", !e.masked))
|
|
226
|
+
}, [
|
|
227
|
+
p(c, {
|
|
228
|
+
name: e.masked ? "visibility" : "visibility_off",
|
|
229
|
+
size: "md",
|
|
230
|
+
class: "text-fm-color-neutral-gray-300"
|
|
231
|
+
}, null, 8, ["name"])
|
|
232
|
+
], 8, Y)
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
export {
|
|
238
|
+
ae as _,
|
|
239
|
+
le as a,
|
|
240
|
+
te as b,
|
|
241
|
+
ee as c,
|
|
242
|
+
B as s
|
|
243
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
2
|
import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { b as Q, _ as he } from "./app-
|
|
4
|
+
import { b as Q, _ as he } from "./app-MXDLzWd6.js";
|
|
5
5
|
import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
6
|
import { u as ge, _ as Pe } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
-
import { u as ie, c as M, d as ae, p as Y, i as ye, b as we, m as A,
|
|
8
|
-
import { l as T } from "./lodash-
|
|
9
|
-
import { c as Ve } from "./iteration-
|
|
7
|
+
import { u as ie, c as M, d as ae, p as Y, i as ye, b as we, m as A, n as xe, o as Fe, k as ke, l as Ce, v as Ie } from "./rule-DkG2eGGH.js";
|
|
8
|
+
import { l as T } from "./lodash-BwY7earz.js";
|
|
9
|
+
import { c as Ve } from "./iteration-CtN8sidV.js";
|
|
10
10
|
import { u as Re } from "./useLoading-CXzTpIVv.js";
|
|
11
|
-
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DcpNr0M4.js";
|
|
12
12
|
import { A as je } from "./restaurant-BTpBmfBV.js";
|
|
13
13
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
14
14
|
__name: "PermissionSetForm",
|
|
@@ -22,10 +22,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
22
22
|
const o = K, { t: i } = se(), f = v(!1), $ = b(() => {
|
|
23
23
|
var e;
|
|
24
24
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
|
|
25
|
-
}), I = v(),
|
|
25
|
+
}), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = Re(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], O = b(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
|
|
28
|
-
}),
|
|
28
|
+
}), q = b(
|
|
29
29
|
() => l.permissionSets.value.filter((e) => {
|
|
30
30
|
var s;
|
|
31
31
|
return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
|
|
@@ -162,7 +162,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
162
162
|
"side-sheet-footer": C(() => [
|
|
163
163
|
y("div", Le, [
|
|
164
164
|
m(k, {
|
|
165
|
-
label:
|
|
165
|
+
label: O.value,
|
|
166
166
|
size: "md",
|
|
167
167
|
variant: "primary",
|
|
168
168
|
type: "submit",
|
|
@@ -194,7 +194,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
194
194
|
multiselect: "",
|
|
195
195
|
searchable: "",
|
|
196
196
|
"search-debounce": 300,
|
|
197
|
-
items:
|
|
197
|
+
items: q.value,
|
|
198
198
|
label: r(i)("permissionSet.form.includedSets"),
|
|
199
199
|
placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
|
|
200
200
|
class: "mt-16",
|
|
@@ -215,10 +215,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
215
215
|
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
}), De = { class: "space-y-8" },
|
|
218
|
+
}), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
|
|
219
219
|
__name: "PermissionSetList",
|
|
220
220
|
setup(K, { expose: D }) {
|
|
221
|
-
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints:
|
|
221
|
+
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
|
|
222
222
|
var n;
|
|
223
223
|
return (n = d.value) == null ? void 0 : n.filter((t) => {
|
|
224
224
|
const c = w.value.toLowerCase();
|
|
@@ -234,7 +234,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
234
234
|
var t;
|
|
235
235
|
a.value = n, (t = R.value) == null || t.trigger();
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const O = [
|
|
238
238
|
{
|
|
239
239
|
accessorKey: "name",
|
|
240
240
|
header: () => o("permissionSet.table.columns.name")
|
|
@@ -304,7 +304,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
304
304
|
enableSorting: !1
|
|
305
305
|
}
|
|
306
306
|
];
|
|
307
|
-
function
|
|
307
|
+
function q() {
|
|
308
308
|
var n;
|
|
309
309
|
a.value = void 0, (n = R.value) == null || n.trigger();
|
|
310
310
|
}
|
|
@@ -312,7 +312,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
312
312
|
I.open({
|
|
313
313
|
title: o("permissionSet.form.delete.title"),
|
|
314
314
|
message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
|
|
315
|
-
minWidth:
|
|
315
|
+
minWidth: N.value.lg ? 588 : 0,
|
|
316
316
|
primaryActions: {
|
|
317
317
|
text: o("common.remove"),
|
|
318
318
|
close: !1,
|
|
@@ -337,7 +337,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
337
337
|
return fe(() => {
|
|
338
338
|
p(), f();
|
|
339
339
|
}), D({
|
|
340
|
-
create:
|
|
340
|
+
create: q
|
|
341
341
|
}), (n, t) => {
|
|
342
342
|
const c = h("FmSearch"), _ = h("FmTable");
|
|
343
343
|
return ee(), ve(Se, null, [
|
|
@@ -347,7 +347,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
347
347
|
"model-value": a.value
|
|
348
348
|
}, null, 8, ["model-value"]),
|
|
349
349
|
y("div", De, [
|
|
350
|
-
y("div",
|
|
350
|
+
y("div", Ne, [
|
|
351
351
|
m(c, {
|
|
352
352
|
modelValue: w.value,
|
|
353
353
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
|
|
@@ -358,7 +358,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
358
358
|
]),
|
|
359
359
|
m(he, null, {
|
|
360
360
|
default: C(() => [
|
|
361
|
-
y("div",
|
|
361
|
+
y("div", Oe, [
|
|
362
362
|
m(_e, {
|
|
363
363
|
"is-loading": r(l).isLoading.value,
|
|
364
364
|
"is-empty": V.value.length === 0,
|
|
@@ -368,7 +368,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
368
368
|
}, {
|
|
369
369
|
default: C(() => [
|
|
370
370
|
m(_, {
|
|
371
|
-
"column-defs":
|
|
371
|
+
"column-defs": O,
|
|
372
372
|
"row-data": V.value,
|
|
373
373
|
"page-size": V.value.length,
|
|
374
374
|
loading: r(l).isLoading.value,
|