@feedmepos/mf-hrm-portal 1.1.2-dev → 1.1.4-dev.1
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/{EmployeeList-CKHgrdAO.js → EmployeeList-D3a7ngdE.js} +16 -18
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js → PageLayout.vue_vue_type_script_setup_true_lang-DuwNwJDM.js} +2 -2
- package/dist/{RoleList-Bef-7IhW.js → RoleList-CsxyMZW0.js} +53 -57
- package/dist/TeamMemberList-ZkrdrTlL.js +1508 -0
- package/dist/{TimesheetList-DVIk0Tis.js → TimesheetList-BwiUzcJ-.js} +41 -42
- package/dist/api/team/index.d.ts +1 -5
- package/dist/app-CrML_LtM.js +1202 -0
- package/dist/app.js +4 -4
- package/dist/components/AppForm.vue.d.ts +2 -3
- package/dist/components/CheckboxInput.vue.d.ts +4 -10
- package/dist/components/CollapsibleWrapper.vue.d.ts +2 -3
- package/dist/components/form/SelectFilter.vue.d.ts +2 -3
- package/dist/components/layout/FormColumn.vue.d.ts +3 -6
- package/dist/components/layout/FormItem.vue.d.ts +1 -2
- package/dist/components/layout/FormSection.vue.d.ts +1 -2
- package/dist/components/layout/FullWrapper.vue.d.ts +3 -6
- package/dist/components/layout/PageLayout.vue.d.ts +1 -2
- package/dist/components/menu/BottomSheetMenu.vue.d.ts +1 -2
- package/dist/components/menu/BottomSheetMenuItem.vue.d.ts +3 -6
- package/dist/components/table/EmptyDataTemplate/index.vue.d.ts +3 -6
- package/dist/composables/useAppStore.d.ts +6 -6
- package/dist/composables/useDateRange.d.ts +1 -1
- package/dist/composables/useRestaurantMap.d.ts +8 -4
- package/dist/composables/useSheet.d.ts +1 -1
- package/dist/employee-DSGaYrd4.js +449 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → empty-placeholder-ey8LJtN1.js} +2 -43
- package/dist/helpers/rule.d.ts +3 -4
- package/dist/index-CIaav54n.js +57 -0
- package/dist/{lodash-DpoPPi_j.js → lodash-dGfuW9fw.js} +343 -326
- package/dist/{Main-YQ5f-v03.js → main-CUI7RdvY.js} +1531 -1501
- package/dist/router/shared.d.ts +1 -4
- package/dist/{index-CicR1-Jp.js → rule-BLgeh_ly.js} +2672 -2721
- package/dist/stores/employee.d.ts +4 -4
- package/dist/stores/role.d.ts +4 -4
- package/dist/stores/timesheet.d.ts +19 -19
- package/dist/{timesheet-BRQvljNj.js → timesheet-BFrZzS2q.js} +14 -14
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/permission.d.ts +4 -1
- package/dist/types/team.d.ts +3 -13
- package/dist/useAppStore-DViQe2C8.js +93 -0
- package/dist/useLoading-DAoKseT-.js +141 -0
- package/dist/{useRestaurantMap-D5BNPLKh.js → useRestaurantMap-CpS9-OSq.js} +7 -7
- package/dist/{SelectFilter-NbXrJ4iH.js → useSearch-C25VELOk.js} +101 -90
- package/dist/views/hr/employee/{EmployeeForm.vue.d.ts → components/EmployeeForm.vue.d.ts} +7 -10
- package/dist/views/team/{member → components}/AddMemberForm.vue.d.ts +0 -1
- package/dist/views/team/components/PortalPermissionEditor.vue.d.ts +28 -68
- package/dist/views/team/components/TeamMemberBasePermission.vue.d.ts +36 -0
- package/dist/views/team/components/{ConditionPermission.vue.d.ts → TeamMemberConditionPermission.vue.d.ts} +1 -14
- package/dist/views/team/components/TeamMemberMasterUser.vue.d.ts +718 -0
- package/dist/views/team/components/{PosRolePermission.vue.d.ts → TeamMemberRolePermission.vue.d.ts} +1 -14
- package/dist/views/team/locales/index.d.ts +4 -176
- package/package.json +8 -13
- package/dist/AuditLogList-CjrocQS2.js +0 -316
- package/dist/Main-HzplGv-e.js +0 -85
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-xQ4fjIxa.js +0 -3050
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
- package/dist/RolePermissionList-BzwpQFeO.js +0 -285
- package/dist/TeamMemberList-D2Xey_w9.js +0 -949
- package/dist/api/audit-log/index.d.ts +0 -10
- package/dist/api/permission-assignment/index.d.ts +0 -10
- package/dist/api/permission-set/index.d.ts +0 -8
- package/dist/app-DUs516v0.js +0 -2592
- package/dist/dayjs.min-DVb8OkTL.js +0 -282
- package/dist/employee-jH7EJnhi.js +0 -172
- package/dist/helpers/permission-set.d.ts +0 -32
- package/dist/helpers/portal-user.d.ts +0 -8
- package/dist/stores/permission-assignment.d.ts +0 -277
- package/dist/stores/permission-set.d.ts +0 -250
- package/dist/stores/team.d.ts +0 -288
- package/dist/team-CiZSNUQW.js +0 -26
- package/dist/types/audit-log.d.ts +0 -19
- package/dist/types/permission-assignment.d.ts +0 -20
- package/dist/types/permission-set.d.ts +0 -20
- package/dist/useAppStore-RzLLN5d9.js +0 -180
- package/dist/useLoading-1OqFn86y.js +0 -99
- package/dist/useSearch-B6WK1LBB.js +0 -15
- package/dist/views/audit-log/locales/index.d.ts +0 -211
- package/dist/views/team/Main.vue.d.ts +0 -2
- package/dist/views/team/components/BasePermission.vue.d.ts +0 -64
- package/dist/views/team/components/InheritPermissionTooltip.vue.d.ts +0 -14
- package/dist/views/team/components/PermissionWithTooltip.vue.d.ts +0 -14
- package/dist/views/team/member/TeamMemberList.vue.d.ts +0 -4
- package/dist/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -55
- package/dist/views/team/role/RolePermissionForm.vue.d.ts +0 -19
- package/dist/views/team/role/RolePermissionList.vue.d.ts +0 -5
- /package/dist/views/{audit-log/AuditLogList.vue.d.ts → hr/main.vue.d.ts} +0 -0
- /package/dist/views/{hr/Main.vue.d.ts → team/TeamMemberList.vue.d.ts} +0 -0
- /package/dist/views/team/{member → components}/MemberInfo.vue.d.ts +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, computed as t, resolveComponent as c, createBlock as m, createElementBlock as u, openBlock as n, normalizeProps as v, mergeProps as r, createVNode as d } from "vue";
|
|
2
|
-
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
3
|
-
const _ = {
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "z-10 fixed bottom-72 right-16"
|
|
6
|
-
}, C = /* @__PURE__ */ p({
|
|
7
|
-
__name: "ResponsiveFabButton",
|
|
8
|
-
props: {
|
|
9
|
-
variant: {},
|
|
10
|
-
label: {},
|
|
11
|
-
icon: {},
|
|
12
|
-
size: {},
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
iconColor: {},
|
|
15
|
-
borderColor: {},
|
|
16
|
-
textColor: {},
|
|
17
|
-
bgColor: {},
|
|
18
|
-
type: {},
|
|
19
|
-
iconPosition: {},
|
|
20
|
-
prependIcon: {},
|
|
21
|
-
appendIcon: {},
|
|
22
|
-
loading: { type: Boolean },
|
|
23
|
-
disableIconStatus: { type: Boolean },
|
|
24
|
-
overwriteIconOutline: {}
|
|
25
|
-
},
|
|
26
|
-
setup(a) {
|
|
27
|
-
const o = a, i = t(() => o.variant === "primary" || !o.variant ? "fab" : o.variant), s = b(), l = t(() => s.breakpoints.value.xs);
|
|
28
|
-
return (B, k) => {
|
|
29
|
-
const e = c("FmButton");
|
|
30
|
-
return l.value ? (n(), u("div", _, [
|
|
31
|
-
d(e, r(o, { variant: i.value }), null, 16, ["variant"])
|
|
32
|
-
])) : (n(), m(e, v(r({ key: 0 }, o)), null, 16));
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
C as _
|
|
38
|
-
};
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, computed as V, resolveComponent as m, createElementBlock as w, openBlock as g, createElementVNode as h, createVNode as r, toDisplayString as C, unref as c, withCtx as _, createTextVNode as E, Fragment as D, renderList as M, ref as S, createBlock as W, nextTick as U, onMounted as q, h as L } from "vue";
|
|
2
|
-
import { useI18n as N, useCoreStore as K } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as j, useDialog as G, useBreakpoints as O, components as H, FmButtonColorThemeVariant as J, FmButtonVariant as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
5
|
-
import { v as Y, u as z } from "./index-CicR1-Jp.js";
|
|
6
|
-
import { u as Z } from "./useLoading-1OqFn86y.js";
|
|
7
|
-
import { a as ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-xQ4fjIxa.js";
|
|
8
|
-
const oe = { class: "flex flex-row items-center gap-8" }, te = /* @__PURE__ */ I({
|
|
9
|
-
__name: "PermissionWithTooltip",
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: {
|
|
12
|
-
type: Array,
|
|
13
|
-
required: !0
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
setup(P) {
|
|
17
|
-
const b = P, t = V(() => Y(b.modelValue)), { t: l } = N();
|
|
18
|
-
return (i, k) => {
|
|
19
|
-
const u = m("FmIcon"), y = m("FmTooltip");
|
|
20
|
-
return g(), w("div", oe, [
|
|
21
|
-
h("span", null, C(c(l)("team.labels.allowed", { count: t.value.length })), 1),
|
|
22
|
-
r(y, {
|
|
23
|
-
variant: "plain",
|
|
24
|
-
placement: "top"
|
|
25
|
-
}, {
|
|
26
|
-
content: _(() => [
|
|
27
|
-
h("div", null, [
|
|
28
|
-
E(C(c(l)("team.labels.permission")) + " ", 1),
|
|
29
|
-
(g(!0), w(D, null, M(t.value, (d, p) => (g(), w("div", {
|
|
30
|
-
key: `${d}-${p}`
|
|
31
|
-
}, " - " + C(d), 1))), 128))
|
|
32
|
-
])
|
|
33
|
-
]),
|
|
34
|
-
default: _(() => [
|
|
35
|
-
r(u, {
|
|
36
|
-
name: "info",
|
|
37
|
-
class: "cursor-pointer text-fm-color-neutral-gray-300"
|
|
38
|
-
})
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
})
|
|
42
|
-
]);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}), se = { class: "fm-typo-en-title-md-600" }, le = { class: "flex items-center justify-start gap-8" }, ne = /* @__PURE__ */ I({
|
|
46
|
-
__name: "RolePermissionForm",
|
|
47
|
-
props: {
|
|
48
|
-
modelValue: {
|
|
49
|
-
type: Object,
|
|
50
|
-
default: () => ({})
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
setup(P, { expose: b }) {
|
|
54
|
-
const t = P, { t: l } = N(), i = S(!1), k = V(() => {
|
|
55
|
-
var s;
|
|
56
|
-
return (s = t.modelValue) != null && s.id ? l("role.form.update.title") : l("role.form.create.title");
|
|
57
|
-
}), u = S(), y = j(), d = Z(y), p = z(), a = S({ ...t.modelValue }), x = [(s) => !!s || "Role name is required"], B = V(() => {
|
|
58
|
-
var s;
|
|
59
|
-
return (s = t.modelValue) != null && s.id ? l("role.form.update.confirmButtonLabel") : l("role.form.create.confirmButtonLabel");
|
|
60
|
-
});
|
|
61
|
-
async function T() {
|
|
62
|
-
await U(), i.value = !i.value, a.value = {
|
|
63
|
-
...t.modelValue
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function $(s) {
|
|
67
|
-
a.value = {
|
|
68
|
-
...a.value,
|
|
69
|
-
permissions: s
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
async function R() {
|
|
73
|
-
var o, f;
|
|
74
|
-
const s = await ((o = u.value) == null ? void 0 : o.validateInputsWithoutSubmit()), e = (f = K().currentBusiness.value) == null ? void 0 : f.id;
|
|
75
|
-
!(s != null && s.length) && e && d.minor(async () => {
|
|
76
|
-
var v;
|
|
77
|
-
if ((v = t.modelValue) != null && v.id) {
|
|
78
|
-
const { id: F, ...n } = a.value, A = n;
|
|
79
|
-
await p.updatePermissionSet(t.modelValue.id, A);
|
|
80
|
-
} else {
|
|
81
|
-
const F = {
|
|
82
|
-
...a.value,
|
|
83
|
-
businessId: e
|
|
84
|
-
};
|
|
85
|
-
await p.createPermissionSet(F);
|
|
86
|
-
}
|
|
87
|
-
i.value = !1;
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
return b({
|
|
91
|
-
trigger: T
|
|
92
|
-
}), (s, e) => {
|
|
93
|
-
const o = m("FmTextField"), f = m("FmForm"), v = m("FmButton"), F = m("FmSideSheet");
|
|
94
|
-
return g(), W(F, {
|
|
95
|
-
modelValue: i.value,
|
|
96
|
-
"onUpdate:modelValue": e[3] || (e[3] = (n) => i.value = n),
|
|
97
|
-
"max-width": 560,
|
|
98
|
-
"dismiss-away": ""
|
|
99
|
-
}, {
|
|
100
|
-
"side-sheet-header": _(() => [
|
|
101
|
-
h("p", se, C(k.value), 1)
|
|
102
|
-
]),
|
|
103
|
-
"side-sheet-footer": _(() => [
|
|
104
|
-
h("div", le, [
|
|
105
|
-
r(v, {
|
|
106
|
-
label: B.value,
|
|
107
|
-
size: "md",
|
|
108
|
-
variant: "primary",
|
|
109
|
-
type: "submit",
|
|
110
|
-
onClick: R
|
|
111
|
-
}, null, 8, ["label"]),
|
|
112
|
-
r(v, {
|
|
113
|
-
label: c(l)("common.cancel"),
|
|
114
|
-
size: "md",
|
|
115
|
-
variant: "secondary",
|
|
116
|
-
onClick: e[2] || (e[2] = (n) => i.value = !1)
|
|
117
|
-
}, null, 8, ["label"])
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
default: _(() => [
|
|
121
|
-
r(f, {
|
|
122
|
-
ref_key: "formRef",
|
|
123
|
-
ref: u
|
|
124
|
-
}, {
|
|
125
|
-
default: _(() => [
|
|
126
|
-
r(o, {
|
|
127
|
-
modelValue: a.value.name,
|
|
128
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => a.value.name = n),
|
|
129
|
-
label: c(l)("role.form.name"),
|
|
130
|
-
placeholder: c(l)("role.form.roleNamePlaceholder"),
|
|
131
|
-
rules: x
|
|
132
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
133
|
-
r(ee, {
|
|
134
|
-
"model-value": a.value.permissions,
|
|
135
|
-
class: "mt-24",
|
|
136
|
-
onPermissionChanged: e[1] || (e[1] = (n) => $(n))
|
|
137
|
-
}, null, 8, ["model-value"])
|
|
138
|
-
]),
|
|
139
|
-
_: 1
|
|
140
|
-
}, 512)
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 8, ["modelValue"]);
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
}), ae = { class: "space-y-8" }, re = { class: "flex justify-end xs:px-16" }, ie = {
|
|
147
|
-
key: 0,
|
|
148
|
-
class: "overflow-auto"
|
|
149
|
-
}, me = { class: "pb-64" }, ge = /* @__PURE__ */ I({
|
|
150
|
-
__name: "RolePermissionList",
|
|
151
|
-
setup(P, { expose: b }) {
|
|
152
|
-
const { t } = N(), l = j(), i = G(), { breakpoints: k } = O(), u = S(""), y = V(() => {
|
|
153
|
-
var e;
|
|
154
|
-
return (e = a.value) == null ? void 0 : e.filter((o) => {
|
|
155
|
-
const f = u.value.toLowerCase();
|
|
156
|
-
return o.name.toLowerCase().includes(f);
|
|
157
|
-
});
|
|
158
|
-
}), d = S(), p = z(), a = V(
|
|
159
|
-
() => p.permissionSets.value
|
|
160
|
-
), x = S();
|
|
161
|
-
async function B() {
|
|
162
|
-
await p.readPermissionSets();
|
|
163
|
-
}
|
|
164
|
-
function T(e) {
|
|
165
|
-
var o;
|
|
166
|
-
x.value = e, (o = d.value) == null || o.trigger();
|
|
167
|
-
}
|
|
168
|
-
const $ = [
|
|
169
|
-
{
|
|
170
|
-
accessorKey: "name",
|
|
171
|
-
header: () => t("role.table.columns.name")
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
accessorKey: "permission",
|
|
175
|
-
header: () => t("role.table.columns.permissions"),
|
|
176
|
-
enableSorting: !1,
|
|
177
|
-
cell(e) {
|
|
178
|
-
const o = e.row.original.permissions;
|
|
179
|
-
return L(te, { modelValue: o });
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
id: "action",
|
|
184
|
-
meta: {
|
|
185
|
-
cellClass: "pl-16",
|
|
186
|
-
headerContentClass: "-mx-16"
|
|
187
|
-
},
|
|
188
|
-
cell(e) {
|
|
189
|
-
return L("div", { class: "w-full flex justify-end items-center" }, [
|
|
190
|
-
L(H.FmButton, {
|
|
191
|
-
prependIcon: "delete",
|
|
192
|
-
variant: Q.Tertiary,
|
|
193
|
-
textColor: J.NeutralGray400,
|
|
194
|
-
class: "flex flex-end",
|
|
195
|
-
onClick: (o) => {
|
|
196
|
-
o.stopPropagation(), s(e.row.original);
|
|
197
|
-
}
|
|
198
|
-
})
|
|
199
|
-
]);
|
|
200
|
-
},
|
|
201
|
-
enableSorting: !1
|
|
202
|
-
}
|
|
203
|
-
];
|
|
204
|
-
function R() {
|
|
205
|
-
var e;
|
|
206
|
-
x.value = void 0, (e = d.value) == null || e.trigger();
|
|
207
|
-
}
|
|
208
|
-
async function s(e) {
|
|
209
|
-
i.open({
|
|
210
|
-
title: t("role.form.delete.title"),
|
|
211
|
-
message: t("role.form.delete.confirmationMessage", { roleName: e.name }),
|
|
212
|
-
minWidth: k.value.lg ? 588 : 0,
|
|
213
|
-
primaryActions: {
|
|
214
|
-
text: t("common.remove"),
|
|
215
|
-
close: !1,
|
|
216
|
-
variant: "destructive"
|
|
217
|
-
},
|
|
218
|
-
secondaryActions: { text: t("common.cancel"), close: !0 }
|
|
219
|
-
}).onPrimary(async () => {
|
|
220
|
-
try {
|
|
221
|
-
await p.deletePermissionSet(e.id), l.open({
|
|
222
|
-
message: t("role.form.delete.successMessage", { roleName: e.name }),
|
|
223
|
-
type: "success"
|
|
224
|
-
});
|
|
225
|
-
} catch (o) {
|
|
226
|
-
l.open({
|
|
227
|
-
message: o instanceof Error ? o.message : `${o}`,
|
|
228
|
-
type: "error"
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
i.close();
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
return q(() => {
|
|
235
|
-
B();
|
|
236
|
-
}), b({
|
|
237
|
-
create: R
|
|
238
|
-
}), (e, o) => {
|
|
239
|
-
const f = m("FmSearch"), v = m("FmTable"), F = m("FullWrapper");
|
|
240
|
-
return g(), w(D, null, [
|
|
241
|
-
r(ne, {
|
|
242
|
-
ref_key: "rolePermissionFormRef",
|
|
243
|
-
ref: d,
|
|
244
|
-
"model-value": x.value
|
|
245
|
-
}, null, 8, ["model-value"]),
|
|
246
|
-
h("div", ae, [
|
|
247
|
-
h("div", re, [
|
|
248
|
-
r(f, {
|
|
249
|
-
modelValue: u.value,
|
|
250
|
-
"onUpdate:modelValue": o[0] || (o[0] = (n) => u.value = n),
|
|
251
|
-
class: "w-[320px] xs:w-full",
|
|
252
|
-
autofocus: "",
|
|
253
|
-
placeholder: c(t)("role.search.placeholder")
|
|
254
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
255
|
-
]),
|
|
256
|
-
a.value.length > 0 ? (g(), w("div", ie, [
|
|
257
|
-
h("div", me, [
|
|
258
|
-
r(F, null, {
|
|
259
|
-
default: _(() => [
|
|
260
|
-
r(v, {
|
|
261
|
-
"column-defs": $,
|
|
262
|
-
"row-data": y.value,
|
|
263
|
-
"page-size": y.value.length,
|
|
264
|
-
"pin-header-row": "",
|
|
265
|
-
"hide-footer": "",
|
|
266
|
-
"shrink-at": !1,
|
|
267
|
-
onRowClick: o[1] || (o[1] = (n) => T(n.original))
|
|
268
|
-
}, null, 8, ["row-data", "page-size"])
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
})
|
|
272
|
-
])
|
|
273
|
-
])) : (g(), W(c(X), {
|
|
274
|
-
key: 1,
|
|
275
|
-
title: c(t)("role.noData.title"),
|
|
276
|
-
subtitle: c(t)("role.noData.subtitle")
|
|
277
|
-
}, null, 8, ["title", "subtitle"]))
|
|
278
|
-
])
|
|
279
|
-
], 64);
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
});
|
|
283
|
-
export {
|
|
284
|
-
ge as default
|
|
285
|
-
};
|