@feedmepos/mf-hrm-portal 1.1.0-dev → 1.1.1-dev
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-D62QRWN-.js +232 -0
- package/dist/{EmployeeList-tmUqs5a6.js → EmployeeList-CMUbRS7j.js} +156 -150
- package/dist/Main-BbZ-t-pu.js +85 -0
- package/dist/{main-DOtgCRZe.js → Main-un3v_g6p.js} +1500 -1532
- 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/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CZKBfM_R.js +3119 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +38 -0
- package/dist/{RoleList-C5xG7LHg.js → RoleList-mlTepnhN.js} +52 -50
- package/dist/RolePermissionList-tR-Kmlu7.js +285 -0
- package/dist/TeamMemberList-BkRQl6x8.js +948 -0
- package/dist/{TimesheetList-CZfo4Dua.js → TimesheetList-i5yaAzhB.js} +21 -21
- package/dist/api/audit-log/index.d.ts +10 -0
- package/dist/api/index.d.ts +1 -3
- package/dist/api/permission-assignment/index.d.ts +10 -0
- package/dist/api/permission-set/index.d.ts +8 -0
- package/dist/api/team/index.d.ts +2 -1
- package/dist/app-4LaGLcWC.js +2305 -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/useRestaurantMap.d.ts +4 -8
- package/dist/composables/useSheet.d.ts +1 -1
- package/dist/{employee-BQc7Wgpu.js → employee-BZTntAR0.js} +9 -9
- package/dist/helpers/permission-set.d.ts +32 -0
- package/dist/helpers/portal-user.d.ts +8 -0
- package/dist/helpers/rule.d.ts +4 -3
- package/dist/index-BsEM84j5.js +8440 -0
- package/dist/{empty-placeholder-ey8LJtN1.js → index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js} +43 -2
- package/dist/{lodash-DNzKT_gG.js → lodash-DYaYvsmp.js} +326 -343
- package/dist/router/shared.d.ts +3 -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 +250 -0
- package/dist/stores/role.d.ts +4 -4
- package/dist/stores/team.d.ts +288 -0
- package/dist/stores/timesheet.d.ts +19 -19
- package/dist/team-eo_yQh1g.js +26 -0
- package/dist/{timesheet-B4M1nCIm.js → timesheet-CfPIK52Q.js} +14 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/audit-log.d.ts +18 -0
- package/dist/types/permission-assignment.d.ts +20 -0
- package/dist/types/permission-set.d.ts +20 -0
- package/dist/types/permission.d.ts +4 -3
- package/dist/types/team.d.ts +13 -3
- package/dist/useAppStore-D0F-tWJO.js +180 -0
- package/dist/useLoading-DpbOtToC.js +99 -0
- package/dist/useRestaurantMap-D5BNPLKh.js +107 -0
- package/dist/{useSearch-C25VELOk.js → useSearch-C6gRA62e.js} +8 -8
- package/dist/views/hr/employee/{components/EmployeeForm.vue.d.ts → EmployeeForm.vue.d.ts} +10 -7
- package/dist/views/hr/locales/index.d.ts +0 -214
- package/dist/views/team/components/BasePermission.vue.d.ts +76 -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 +176 -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/role/RolePermissionForm.vue.d.ts +19 -0
- package/dist/views/{hr/grant-user/GrantUserList.vue.d.ts → team/role/RolePermissionList.vue.d.ts} +0 -12
- package/package.json +14 -9
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BY9VGOoM.js +0 -71
- package/dist/HorizontalSplitter-B9DVYJIM.js +0 -12
- package/dist/Main-ebQsujY3.js +0 -600
- package/dist/TeamMemberList-09_3YTHe.js +0 -1509
- package/dist/api/grant-user/index.d.ts +0 -8
- package/dist/app-B4KDGOw1.js +0 -1432
- package/dist/index-CSG8t9Dl.js +0 -58
- package/dist/role-DGAu9X1X.js +0 -9728
- package/dist/rule-CSj0p2P3.js +0 -450
- package/dist/stores/grant-user.d.ts +0 -86
- package/dist/types/grant-user.d.ts +0 -17
- package/dist/useAppStore-CKmMR-gI.js +0 -93
- package/dist/useLoading-v4m-6mEy.js +0 -141
- package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
- package/dist/views/hr/grant-user/components/GrantUserForm.vue.d.ts +0 -14
- 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/{grant-user/Main.vue.d.ts → Main.vue.d.ts} +0 -0
- /package/dist/views/hr/{main.vue.d.ts → audit-log/AuditLogList.vue.d.ts} +0 -0
- /package/dist/views/team/{TeamMemberList.vue.d.ts → Main.vue.d.ts} +0 -0
- /package/dist/views/team/{components → member}/MemberInfo.vue.d.ts +0 -0
|
@@ -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-CKmMR-gI.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,39 +0,0 @@
|
|
|
1
|
-
import { useI18n as a, useCoreStore as n } from "@feedmepos/mf-common";
|
|
2
|
-
import { useDialog as i } from "@feedmepos/ui-library";
|
|
3
|
-
import { computed as m } from "vue";
|
|
4
|
-
function l(o, s) {
|
|
5
|
-
const r = i(), { t } = a();
|
|
6
|
-
function e() {
|
|
7
|
-
o() ? r.open({
|
|
8
|
-
title: t("portalCommon.dismiss.title"),
|
|
9
|
-
message: t("portalCommon.dismiss.message"),
|
|
10
|
-
zIndex: 200,
|
|
11
|
-
primaryActions: {
|
|
12
|
-
text: t("portalCommon.dismiss.primaryActions"),
|
|
13
|
-
variant: "primary",
|
|
14
|
-
close: !0
|
|
15
|
-
},
|
|
16
|
-
secondaryActions: {
|
|
17
|
-
text: t("common.cancel"),
|
|
18
|
-
variant: "tertiary",
|
|
19
|
-
close: !0
|
|
20
|
-
}
|
|
21
|
-
}).onPrimary(() => {
|
|
22
|
-
s();
|
|
23
|
-
}) : s();
|
|
24
|
-
}
|
|
25
|
-
return e;
|
|
26
|
-
}
|
|
27
|
-
function d() {
|
|
28
|
-
const o = n();
|
|
29
|
-
return m(() => {
|
|
30
|
-
const r = {};
|
|
31
|
-
return o.restaurants.value.forEach((t) => {
|
|
32
|
-
r[t._id] = t;
|
|
33
|
-
}), r;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
d as a,
|
|
38
|
-
l as u
|
|
39
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {
|
|
2
|
-
show: import("vue").Ref<boolean, boolean>;
|
|
3
|
-
trigger: () => void;
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
5
|
-
default?: ((props: {
|
|
6
|
-
trigger: () => void;
|
|
7
|
-
}) => any) | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -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;
|