@feedmepos/mf-hrm-portal 2.0.4-dev → 2.0.6-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-BxigxQv3.js +492 -0
- package/dist/{EmployeeList-Cwwv_Zlz.js → EmployeeList-DyvqwZtw.js} +6 -6
- package/dist/{Main-91oL3FhD.js → Main-B8tSMq-U.js} +8 -8
- package/dist/{Main-Djsmh0z3.js → Main-CtH5MCty.js} +5 -5
- package/dist/PermissionSetList-DCONmOgn.js +323 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-07Dsea27.js +3092 -0
- package/dist/{RoleList-Dx7S9lLy.js → RoleList-jykDD_zm.js} +6 -6
- package/dist/{SelectFilter-NbXrJ4iH.js → SelectFilter-DUj7GBtT.js} +93 -89
- package/dist/TeamMemberList-DMrPgF1l.js +973 -0
- package/dist/{TimesheetList-DMWMr6qz.js → TimesheetList-Bk1XF9xy.js} +6 -6
- package/dist/{app-hn4p1_a3.js → app-BPlaahxK.js} +803 -897
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DnPftI7E.js → dayjs.min-LweNOSZ_.js} +1 -1
- package/dist/{employee-iJ_7LE99.js → employee-DPfiL6rd.js} +3 -3
- package/dist/{index-DRAOMLuj.js → index-BAhsHYNv.js} +1 -1
- package/dist/{index-Cm7g-tL7.js → index-CBxn7cxI.js} +1534 -1589
- package/dist/{lodash-DL2QGSnr.js → lodash-D1uG3PY3.js} +1 -1
- package/dist/{api → src/api}/report-query/index.d.ts +0 -1
- package/dist/{components → src/components}/form/SelectFilter.vue.d.ts +2 -0
- package/dist/{helpers → src/helpers}/permission-set.d.ts +0 -9
- package/dist/{helpers → src/helpers}/rule.d.ts +1 -4
- package/dist/{views → src/views}/team/components/BasePermission.vue.d.ts +0 -17
- package/dist/{team-C1LaI_Ne.js → team-B1osnB4U.js} +1 -1
- package/dist/{timesheet-DU4OLZK4.js → timesheet-rte2utJf.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CWLLJN_9.js → useAppStore-CqrjwnF_.js} +1 -1
- package/dist/{useLoading-BaqJwyj8.js → useLoading-B5IjfVEP.js} +1 -1
- package/dist/useReportPermissions-C4Q29AQJ.js +65 -0
- package/package.json +3 -3
- package/dist/AuditLogList-3LzPMYki.js +0 -474
- package/dist/PermissionSetList-Djw6Kq-P.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-FOlmgK60.js +0 -3287
- package/dist/TeamMemberList-CG-MGTve.js +0 -979
- package/dist/composables/useCustomReportPermissions.d.ts +0 -7
- package/dist/useReportPermissions-DC1NFQEs.js +0 -59
- /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/{Entry.vue.d.ts → src/Entry.vue.d.ts} +0 -0
- /package/dist/{api → src/api}/audit-log/index.d.ts +0 -0
- /package/dist/{api → src/api}/employee/index.d.ts +0 -0
- /package/dist/{api → src/api}/index.d.ts +0 -0
- /package/dist/{api → src/api}/inventory/index.d.ts +0 -0
- /package/dist/{api → src/api}/permission-assignment/index.d.ts +0 -0
- /package/dist/{api → src/api}/permission-set/index.d.ts +0 -0
- /package/dist/{api → src/api}/public-setting/index.d.ts +0 -0
- /package/dist/{api → src/api}/role/index.d.ts +0 -0
- /package/dist/{api → src/api}/team/index.d.ts +0 -0
- /package/dist/{api → src/api}/timesheet/index.d.ts +0 -0
- /package/dist/{api → src/api}/user/index.d.ts +0 -0
- /package/dist/{app.d.ts → src/app.d.ts} +0 -0
- /package/dist/{components → src/components}/AppForm.vue.d.ts +0 -0
- /package/dist/{components → src/components}/CheckboxInput.vue.d.ts +0 -0
- /package/dist/{components → src/components}/CollapsibleWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/Navigator.vue.d.ts +0 -0
- /package/dist/{components → src/components}/Splash.vue.d.ts +0 -0
- /package/dist/{components → src/components}/button/ResponsiveFabButton.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormColumn.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormSection.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FullWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/HorizontalSplitter.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/LottieAnimation.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/PageLayout.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/AppLoading.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/PageLoading.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/index.d.ts +0 -0
- /package/dist/{components → src/components}/menu/BottomSheetMenu.vue.d.ts +0 -0
- /package/dist/{components → src/components}/menu/BottomSheetMenuItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/menu/ResponsiveContextMenu.vue.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/Icon.vue.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/index.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useAppStore.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDateRange.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDiscardConfirm.d.ts +0 -0
- /package/dist/{composables → src/composables}/useElementPosition.d.ts +0 -0
- /package/dist/{composables → src/composables}/useFilterSelector.d.ts +0 -0
- /package/dist/{composables → src/composables}/useLoading.d.ts +0 -0
- /package/dist/{composables → src/composables}/useMessage.d.ts +0 -0
- /package/dist/{composables → src/composables}/useReportPermissions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRestaurantMap.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSearch.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSheet.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/component.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/iteration.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/object.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/portal-user.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/string.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/utils.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{router → src/router}/index.d.ts +0 -0
- /package/dist/{router → src/router}/shared.d.ts +0 -0
- /package/dist/{stores → src/stores}/employee.d.ts +0 -0
- /package/dist/{stores → src/stores}/permission-assignment.d.ts +0 -0
- /package/dist/{stores → src/stores}/permission-set.d.ts +0 -0
- /package/dist/{stores → src/stores}/role.d.ts +0 -0
- /package/dist/{stores → src/stores}/team.d.ts +0 -0
- /package/dist/{stores → src/stores}/timesheet.d.ts +0 -0
- /package/dist/{types → src/types}/audit-log.d.ts +0 -0
- /package/dist/{types → src/types}/employee.d.ts +0 -0
- /package/dist/{types → src/types}/permission-assignment.d.ts +0 -0
- /package/dist/{types → src/types}/permission-set.d.ts +0 -0
- /package/dist/{types → src/types}/report-query.d.ts +0 -0
- /package/dist/{types → src/types}/restaurant.d.ts +0 -0
- /package/dist/{types → src/types}/role.d.ts +0 -0
- /package/dist/{types → src/types}/team.d.ts +0 -0
- /package/dist/{types → src/types}/timesheet.d.ts +0 -0
- /package/dist/{views → src/views}/audit-log/AuditLogList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/audit-log/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/hr/Main.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/Employee.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/EmployeeForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/EmployeeList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/hr/role/RoleForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/role/RoleList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/timesheet/TimesheetList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/Main.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/ConditionPermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/InheritPermissionTooltip.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PermissionWithTooltip.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PortalPermissionEditor.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PortalUserSearcher.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PosRolePermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/AddMemberForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/MemberInfo.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/TeamMemberList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/TeamMemberMasterUser.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/permission-set/PermissionSetForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/permission-set/PermissionSetList.vue.d.ts +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
2
|
-
export declare function useCustomReportPermissions(): {
|
|
3
|
-
fetchCustomReportPermissions: () => Promise<void>;
|
|
4
|
-
customReportPermissions: import("vue").ComputedRef<IFdtoPortalPermissionsWithVisibilityCondition[]>;
|
|
5
|
-
isLoading: import("vue").ComputedRef<boolean>;
|
|
6
|
-
isLoaded: import("vue").ComputedRef<boolean>;
|
|
7
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { computed as u, ref as r } from "vue";
|
|
2
|
-
import { e as y, a as l, R } from "./index-Cm7g-tL7.js";
|
|
3
|
-
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
|
-
import "./app-hn4p1_a3.js";
|
|
5
|
-
const n = r([]), c = r(!1), t = r(!1), d = r(null);
|
|
6
|
-
function K() {
|
|
7
|
-
const m = h();
|
|
8
|
-
async function f() {
|
|
9
|
-
var o;
|
|
10
|
-
const s = (o = m.currentBusiness.value) == null ? void 0 : o.id;
|
|
11
|
-
if (s && (d.value !== s && (n.value = [], c.value = !1, t.value = !1, d.value = s), !(c.value || t.value))) {
|
|
12
|
-
t.value = !0;
|
|
13
|
-
try {
|
|
14
|
-
n.value = await R.fetchReportPermissions(s), c.value = !0;
|
|
15
|
-
} catch (e) {
|
|
16
|
-
console.warn("Failed to fetch dynamic report permissions, using hardcoded only:", e), n.value = [];
|
|
17
|
-
} finally {
|
|
18
|
-
t.value = !1;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
const i = y.filter(
|
|
23
|
-
(s) => s.subject === l.F_RULE_SUBJECT.enum.report && s.conditions
|
|
24
|
-
), p = u(() => {
|
|
25
|
-
const s = new Set(
|
|
26
|
-
i.map((e) => {
|
|
27
|
-
const a = typeof e.conditions == "string" ? JSON.parse(e.conditions) : e.conditions;
|
|
28
|
-
return a == null ? void 0 : a.name;
|
|
29
|
-
})
|
|
30
|
-
), o = n.value.filter((e) => !s.has(e.permissionKey)).map((e) => ({
|
|
31
|
-
label: e.name,
|
|
32
|
-
subject: l.F_RULE_SUBJECT.enum.report,
|
|
33
|
-
actions: ["read"],
|
|
34
|
-
conditions: { name: e.permissionKey },
|
|
35
|
-
inverted: !1,
|
|
36
|
-
reason: ""
|
|
37
|
-
}));
|
|
38
|
-
return [...i, ...o];
|
|
39
|
-
}), v = u(() => {
|
|
40
|
-
const s = new Set(
|
|
41
|
-
i.map((o) => {
|
|
42
|
-
const e = typeof o.conditions == "string" ? JSON.parse(o.conditions) : o.conditions;
|
|
43
|
-
return e == null ? void 0 : e.name;
|
|
44
|
-
})
|
|
45
|
-
);
|
|
46
|
-
for (const o of n.value)
|
|
47
|
-
s.add(o.permissionKey);
|
|
48
|
-
return s;
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
fetchReportPermissions: f,
|
|
52
|
-
allReportPermissions: p,
|
|
53
|
-
availableReportKeys: v,
|
|
54
|
-
isLoading: u(() => t.value)
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
K as u
|
|
59
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|