@feedmepos/mf-hrm-portal 1.1.6-dev → 2.0.0
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-Cm3ueTso.js +474 -0
- package/dist/EmployeeList-vMcIqBU_.js +626 -0
- package/dist/{main-C370wsCl.js → Main-CeGYov-a.js} +1502 -1531
- package/dist/Main-gHCENd4i.js +86 -0
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-DuwNwJDM.js → PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js} +2 -2
- package/dist/PermissionSetList-Dw69OYF4.js +323 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-bvPOPUhu.js +3092 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +38 -0
- package/dist/RoleList-D1CrixYc.js +497 -0
- package/dist/{useSearch-C25VELOk.js → SelectFilter-NbXrJ4iH.js} +90 -101
- package/dist/TeamMemberList-M0Q8CP4h.js +973 -0
- package/dist/{TimesheetList-qaolOL4w.js → TimesheetList-BmOfy0pc.js} +31 -29
- package/dist/api/audit-log/index.d.ts +14 -0
- package/dist/api/index.d.ts +5 -0
- package/dist/api/permission-assignment/index.d.ts +10 -0
- package/dist/api/permission-set/index.d.ts +8 -0
- package/dist/api/report-query/index.d.ts +5 -0
- package/dist/api/team/index.d.ts +2 -1
- package/dist/app-RUdgf-7_.js +3286 -0
- package/dist/app.js +1 -1
- package/dist/components/AppForm.vue.d.ts +3 -2
- package/dist/components/CheckboxInput.vue.d.ts +10 -4
- package/dist/components/CollapsibleWrapper.vue.d.ts +3 -2
- package/dist/components/form/SelectFilter.vue.d.ts +3 -2
- package/dist/components/layout/FormColumn.vue.d.ts +6 -3
- package/dist/components/layout/FormItem.vue.d.ts +2 -1
- package/dist/components/layout/FormSection.vue.d.ts +2 -1
- package/dist/components/layout/FullWrapper.vue.d.ts +6 -3
- package/dist/components/layout/PageLayout.vue.d.ts +2 -1
- package/dist/components/menu/BottomSheetMenu.vue.d.ts +2 -1
- package/dist/components/menu/BottomSheetMenuItem.vue.d.ts +6 -3
- package/dist/components/table/EmptyDataTemplate/index.vue.d.ts +6 -3
- package/dist/composables/useAppStore.d.ts +6 -6
- package/dist/composables/useDateRange.d.ts +1 -1
- package/dist/composables/useReportPermissions.d.ts +14 -0
- package/dist/composables/useRestaurantMap.d.ts +4 -8
- package/dist/composables/useSheet.d.ts +1 -1
- package/dist/dayjs.min-D9w2-Exz.js +282 -0
- package/dist/employee-B3jBmvNJ.js +144 -0
- package/dist/helpers/permission-set.d.ts +69 -0
- package/dist/helpers/portal-user.d.ts +8 -0
- package/dist/helpers/rule.d.ts +5 -4
- package/dist/index-BMVQbdBd.js +827 -0
- package/dist/index-BS6B6k7h.js +10340 -0
- package/dist/{empty-placeholder-ey8LJtN1.js → index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js} +43 -2
- package/dist/{lodash-B5BTJU4_.js → lodash-CglPbFKR.js} +326 -343
- package/dist/router/shared.d.ts +4 -1
- package/dist/stores/employee.d.ts +4 -4
- package/dist/stores/permission-assignment.d.ts +277 -0
- package/dist/stores/permission-set.d.ts +265 -0
- package/dist/stores/role.d.ts +4 -4
- package/dist/stores/team.d.ts +300 -0
- package/dist/stores/timesheet.d.ts +19 -19
- package/dist/style.css +1 -1
- package/dist/team-afjBSzOz.js +33 -0
- package/dist/{timesheet-Cy-jSzje.js → timesheet-fOBJOS1i.js} +14 -14
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/audit-log.d.ts +1 -0
- package/dist/types/permission-assignment.d.ts +20 -0
- package/dist/types/permission-set.d.ts +24 -0
- package/dist/types/report-query.d.ts +6 -0
- package/dist/types/team.d.ts +13 -3
- package/dist/useAppStore-D-SLROq6.js +168 -0
- package/dist/useLoading-CLQGJW7G.js +99 -0
- package/dist/useReportPermissions-Cx4ghxj6.js +65 -0
- package/dist/{useRestaurantMap-CpS9-OSq.js → useRestaurantMap-D5BNPLKh.js} +7 -7
- package/dist/useSearch-B6WK1LBB.js +15 -0
- package/dist/views/audit-log/locales/index.d.ts +295 -0
- package/dist/views/hr/employee/{components/EmployeeForm.vue.d.ts → EmployeeForm.vue.d.ts} +10 -7
- package/dist/views/team/Main.vue.d.ts +2 -0
- package/dist/views/team/components/BasePermission.vue.d.ts +64 -0
- package/dist/views/team/components/{TeamMemberConditionPermission.vue.d.ts → ConditionPermission.vue.d.ts} +14 -1
- package/dist/views/team/components/InheritPermissionTooltip.vue.d.ts +14 -0
- package/dist/views/team/components/PermissionWithTooltip.vue.d.ts +14 -0
- package/dist/views/team/components/PortalPermissionEditor.vue.d.ts +68 -28
- package/dist/views/team/components/{TeamMemberRolePermission.vue.d.ts → PosRolePermission.vue.d.ts} +14 -1
- package/dist/views/team/locales/index.d.ts +200 -4
- package/dist/views/team/{components → member}/AddMemberForm.vue.d.ts +1 -0
- package/dist/views/team/member/TeamMemberList.vue.d.ts +4 -0
- package/dist/views/team/member/TeamMemberMasterUser.vue.d.ts +55 -0
- package/dist/views/team/permission-set/PermissionSetForm.vue.d.ts +19 -0
- package/dist/views/team/permission-set/PermissionSetList.vue.d.ts +5 -0
- package/package.json +15 -8
- package/dist/EmployeeList-CP42mLpi.js +0 -605
- package/dist/RoleList-CsctaXlu.js +0 -492
- package/dist/TeamMemberList-DtXoUa5K.js +0 -1508
- package/dist/app-G_Dbs0OJ.js +0 -1202
- package/dist/employee-BTWpYxn5.js +0 -449
- package/dist/index-8ift6lz3.js +0 -57
- package/dist/rule-CM7JgjNr.js +0 -142112
- package/dist/types/permission.d.ts +0 -4
- package/dist/useAppStore-zINIo0LR.js +0 -93
- package/dist/useLoading-CWBRIBiy.js +0 -141
- package/dist/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
- package/dist/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -718
- /package/dist/views/{hr/main.vue.d.ts → audit-log/AuditLogList.vue.d.ts} +0 -0
- /package/dist/views/{team/TeamMemberList.vue.d.ts → hr/Main.vue.d.ts} +0 -0
- /package/dist/views/team/{components → member}/MemberInfo.vue.d.ts +0 -0
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Permission, fullPermission as fullPortalPermissions, type AbilityConstructOption, type PermissionLevelDetail, type IFdtoPortalPermission, type IPermissionUser, } from '@feedmepos/mf-common';
|
|
2
|
-
export declare const inventorySubjects: string[];
|
|
3
|
-
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
|
-
export declare const fullPosPermissions: FdoPermissionRule[];
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineStore as p } from "pinia";
|
|
2
|
-
import { g as s } from "./rule-CM7JgjNr.js";
|
|
3
|
-
import { baseClientInstance as d } from "@feedmepos/mf-common";
|
|
4
|
-
var n = [];
|
|
5
|
-
for (var r = 0; r < 256; ++r)
|
|
6
|
-
n.push((r + 256).toString(16).slice(1));
|
|
7
|
-
function l(e, t = 0) {
|
|
8
|
-
return (n[e[t + 0]] + n[e[t + 1]] + n[e[t + 2]] + n[e[t + 3]] + "-" + n[e[t + 4]] + n[e[t + 5]] + "-" + n[e[t + 6]] + n[e[t + 7]] + "-" + n[e[t + 8]] + n[e[t + 9]] + "-" + n[e[t + 10]] + n[e[t + 11]] + n[e[t + 12]] + n[e[t + 13]] + n[e[t + 14]] + n[e[t + 15]]).toLowerCase();
|
|
9
|
-
}
|
|
10
|
-
var u, g = new Uint8Array(16);
|
|
11
|
-
function y() {
|
|
12
|
-
if (!u && (u = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !u))
|
|
13
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
14
|
-
return u(g);
|
|
15
|
-
}
|
|
16
|
-
var m = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
17
|
-
const o = {
|
|
18
|
-
randomUUID: m
|
|
19
|
-
};
|
|
20
|
-
function b(e, t, a) {
|
|
21
|
-
if (o.randomUUID && !e)
|
|
22
|
-
return o.randomUUID();
|
|
23
|
-
e = e || {};
|
|
24
|
-
var i = e.random || (e.rng || y)();
|
|
25
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, l(i);
|
|
26
|
-
}
|
|
27
|
-
const c = {
|
|
28
|
-
async read() {
|
|
29
|
-
return s(await d("/").get("/public-setting"));
|
|
30
|
-
},
|
|
31
|
-
async update(e) {
|
|
32
|
-
return s(await d("/").put("/public-setting", e));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
function h() {
|
|
36
|
-
return {
|
|
37
|
-
loadingQueue: [],
|
|
38
|
-
publicSetting: {
|
|
39
|
-
delivery: {
|
|
40
|
-
feedMe: {
|
|
41
|
-
areas: [],
|
|
42
|
-
enable: !1,
|
|
43
|
-
maxDistance: 0
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
sms: {
|
|
47
|
-
firebase: !1
|
|
48
|
-
},
|
|
49
|
-
assets: {
|
|
50
|
-
groups: []
|
|
51
|
-
},
|
|
52
|
-
aiSettings: {
|
|
53
|
-
remy: { enable: !1 }
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
const U = p("portal-app-store", {
|
|
59
|
-
state: () => h(),
|
|
60
|
-
actions: {
|
|
61
|
-
addLoadingQueues(e) {
|
|
62
|
-
this.loadingQueue = [...this.loadingQueue, ...e];
|
|
63
|
-
},
|
|
64
|
-
clearLoadingQueue() {
|
|
65
|
-
this.loadingQueue = [];
|
|
66
|
-
},
|
|
67
|
-
resolveQueues(e) {
|
|
68
|
-
this.loadingQueue = this.loadingQueue.filter((t) => !e.includes(t.id));
|
|
69
|
-
},
|
|
70
|
-
async promise(e, t = !0) {
|
|
71
|
-
const a = b();
|
|
72
|
-
try {
|
|
73
|
-
const i = [{ id: a, isGlobal: t }];
|
|
74
|
-
return this.addLoadingQueues(i), await e();
|
|
75
|
-
} finally {
|
|
76
|
-
this.resolveQueues([a]);
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
async getPublicSetting() {
|
|
80
|
-
return this.publicSetting = await c.read(), this.publicSetting;
|
|
81
|
-
},
|
|
82
|
-
async updatePublicSetting(e) {
|
|
83
|
-
return this.publicSetting = await c.update({
|
|
84
|
-
...this.publicSetting,
|
|
85
|
-
...e
|
|
86
|
-
}), this.publicSetting;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
export {
|
|
91
|
-
U as u,
|
|
92
|
-
b as v
|
|
93
|
-
};
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as _, createElementBlock as L, unref as i, resolveComponent as c, createVNode as h, normalizeClass as v, withCtx as I, createElementVNode as n, toDisplayString as w, renderSlot as M, createBlock as C, withModifiers as E, createCommentVNode as b, computed as O, isRef as T, watch as $ } from "vue";
|
|
2
|
-
import { E as B } from "./empty-placeholder-ey8LJtN1.js";
|
|
3
|
-
import { SnackbarPosition as y } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as S, v as Q } from "./useAppStore-zINIo0LR.js";
|
|
5
|
-
const k = ["src"], D = /* @__PURE__ */ x({
|
|
6
|
-
__name: "Icon",
|
|
7
|
-
setup(s) {
|
|
8
|
-
return (o, d) => (_(), L("img", { src: i(B) }, null, 8, k));
|
|
9
|
-
}
|
|
10
|
-
}), G = { class: "xs:px-16" }, N = { class: "flex flex-col gap-4 items-center" }, P = { class: "fm-typo-en-title-sm-600" }, V = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400 max-w-[800px]" }, z = /* @__PURE__ */ x({
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: {
|
|
13
|
-
title: {},
|
|
14
|
-
subtitle: {},
|
|
15
|
-
action: {}
|
|
16
|
-
},
|
|
17
|
-
setup(s) {
|
|
18
|
-
return (o, d) => {
|
|
19
|
-
const a = c("fm-button"), e = c("fm-card");
|
|
20
|
-
return _(), L("div", G, [
|
|
21
|
-
h(e, {
|
|
22
|
-
class: v(["flex flex-col items-center justify-center", "p-24 space-y-24"]),
|
|
23
|
-
variant: "outlined"
|
|
24
|
-
}, {
|
|
25
|
-
default: I(() => [
|
|
26
|
-
h(D),
|
|
27
|
-
n("div", N, [
|
|
28
|
-
n("p", P, w(s.title), 1),
|
|
29
|
-
n("p", V, w(s.subtitle), 1)
|
|
30
|
-
]),
|
|
31
|
-
M(o.$slots, "action", {}, () => [
|
|
32
|
-
s.action ? (_(), C(a, {
|
|
33
|
-
key: 0,
|
|
34
|
-
label: s.action.text,
|
|
35
|
-
"prepend-icon": s.action.icon ?? "add",
|
|
36
|
-
onClick: E(s.action.callback, ["stop"])
|
|
37
|
-
}, null, 8, ["label", "prepend-icon", "onClick"])) : b("", !0)
|
|
38
|
-
])
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
})
|
|
42
|
-
]);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}), H = (s) => {
|
|
46
|
-
async function o(a, e) {
|
|
47
|
-
var m, l;
|
|
48
|
-
let r = [];
|
|
49
|
-
!e || !e.customId ? r.push(`${(/* @__PURE__ */ new Date()).toISOString()}_${Q().split("-")[0]}`) : typeof e.customId == "string" ? r.push(e.customId) : r = e.customId;
|
|
50
|
-
const u = S();
|
|
51
|
-
u.addLoadingQueues(
|
|
52
|
-
r.map((t) => ({
|
|
53
|
-
id: t,
|
|
54
|
-
isGlobal: (e == null ? void 0 : e.isGlobal) || !1
|
|
55
|
-
}))
|
|
56
|
-
);
|
|
57
|
-
try {
|
|
58
|
-
const t = await a();
|
|
59
|
-
return await ((m = e == null ? void 0 : e.onSuccess) == null ? void 0 : m.call(e, t)), t;
|
|
60
|
-
} catch (t) {
|
|
61
|
-
const p = t instanceof Error ? t.message : `${t}`;
|
|
62
|
-
throw e != null && e.onError ? await e.onError(p) : s.open({
|
|
63
|
-
type: "error",
|
|
64
|
-
message: p
|
|
65
|
-
}), t;
|
|
66
|
-
} finally {
|
|
67
|
-
u.resolveQueues(r), (l = e == null ? void 0 : e.onComplete) == null || l.call(e);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const d = S();
|
|
71
|
-
return {
|
|
72
|
-
queue: O(() => d.loadingQueue),
|
|
73
|
-
checkIsLoading: (a) => d.loadingQueue.some((e) => e.id === a),
|
|
74
|
-
global: async (a, e) => await o(a, {
|
|
75
|
-
isGlobal: !0,
|
|
76
|
-
onSuccess: async (r) => {
|
|
77
|
-
var u;
|
|
78
|
-
await ((u = e == null ? void 0 : e.onSuccess) == null ? void 0 : u.call(e, r)), e != null && e.successMessage && s.open({
|
|
79
|
-
type: "success",
|
|
80
|
-
message: e.successMessage,
|
|
81
|
-
position: y.BOTTOM
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}),
|
|
85
|
-
minor: async (a, e) => {
|
|
86
|
-
const r = s.open({
|
|
87
|
-
type: "info",
|
|
88
|
-
message: "Loading",
|
|
89
|
-
spinner: !0,
|
|
90
|
-
persistent: !0
|
|
91
|
-
}), u = (m, l) => {
|
|
92
|
-
if (!l) return;
|
|
93
|
-
const t = (p) => {
|
|
94
|
-
s.updateSnackbar(r, { [m]: p });
|
|
95
|
-
};
|
|
96
|
-
T(l) ? (t(l.value), $(l, (p) => t(p))) : t(l);
|
|
97
|
-
};
|
|
98
|
-
return u("title", e == null ? void 0 : e.message), u("message", e == null ? void 0 : e.caption), await o(
|
|
99
|
-
async () => (e != null && e.isLoading && (e.isLoading.value = !0), await a()),
|
|
100
|
-
{
|
|
101
|
-
onSuccess: () => {
|
|
102
|
-
const m = (e == null ? void 0 : e.successMessage) || "Completed";
|
|
103
|
-
s.close(r), s.open({
|
|
104
|
-
type: "success",
|
|
105
|
-
title: m,
|
|
106
|
-
position: y.BOTTOM
|
|
107
|
-
});
|
|
108
|
-
},
|
|
109
|
-
onError: (m) => {
|
|
110
|
-
const l = `${m}` || "Error";
|
|
111
|
-
s.close(r), s.open({
|
|
112
|
-
type: "error",
|
|
113
|
-
title: l,
|
|
114
|
-
position: y.BOTTOM
|
|
115
|
-
});
|
|
116
|
-
},
|
|
117
|
-
onComplete: () => {
|
|
118
|
-
e != null && e.isLoading && (e.isLoading.value = !1);
|
|
119
|
-
},
|
|
120
|
-
customId: e == null ? void 0 : e.customId
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
},
|
|
124
|
-
custom: async (a, e) => await o(
|
|
125
|
-
async () => (e != null && e.isLoading && (e.isLoading.value = !0), await a()),
|
|
126
|
-
{
|
|
127
|
-
onSuccess: async () => {
|
|
128
|
-
e != null && e.successMessage && s.open({ message: e.successMessage });
|
|
129
|
-
},
|
|
130
|
-
onComplete: () => {
|
|
131
|
-
e && e.isLoading && (e.isLoading.value = !1);
|
|
132
|
-
},
|
|
133
|
-
customId: e == null ? void 0 : e.customId
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
export {
|
|
139
|
-
z as _,
|
|
140
|
-
H as u
|
|
141
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { RawRule } from '@casl/ability';
|
|
2
|
-
import { type PropType } from 'vue';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
modelValue: {
|
|
5
|
-
type: PropType<RawRule[]>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
disable: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
12
|
-
excludedSubjects: {
|
|
13
|
-
type: PropType<string[]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
-
"update:model-value": (subject: RawRule[]) => any;
|
|
18
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
modelValue: {
|
|
20
|
-
type: PropType<RawRule[]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
disable: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
excludedSubjects: {
|
|
28
|
-
type: PropType<string[]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
}>> & Readonly<{
|
|
32
|
-
"onUpdate:model-value"?: ((subject: RawRule[]) => any) | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
disable: boolean;
|
|
35
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
-
export default _default;
|