@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
package/dist/app.js
CHANGED
|
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
} & {
|
|
7
7
|
default?: (props: typeof __VLS_5) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
10
|
title: {
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: undefined;
|
|
@@ -36,7 +36,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
36
36
|
title: string;
|
|
37
37
|
required: string | boolean;
|
|
38
38
|
inline: boolean;
|
|
39
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
40
41
|
export default _default;
|
|
41
42
|
type __VLS_WithSlots<T, S> = T & {
|
|
42
43
|
new (): {
|
|
@@ -9,11 +9,14 @@ export interface CheckboxOption {
|
|
|
9
9
|
class: string;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
declare var __VLS_5: {}, __VLS_24: `checkbox-${any}-
|
|
12
|
+
declare var __VLS_5: {}, __VLS_24: `checkbox-${any}-append`, __VLS_25: {
|
|
13
|
+
option: CheckboxOption;
|
|
14
|
+
selected: boolean;
|
|
15
|
+
}, __VLS_28: `checkbox-${any}-end`, __VLS_29: {
|
|
13
16
|
option: CheckboxOption;
|
|
14
17
|
value: boolean;
|
|
15
18
|
disable: boolean | undefined;
|
|
16
|
-
},
|
|
19
|
+
}, __VLS_32: `checkbox-${any}-bottom`, __VLS_33: {
|
|
17
20
|
option: CheckboxOption;
|
|
18
21
|
disable: boolean | undefined;
|
|
19
22
|
value: boolean;
|
|
@@ -22,10 +25,12 @@ type __VLS_Slots = {} & {
|
|
|
22
25
|
[K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
|
|
23
26
|
} & {
|
|
24
27
|
[K in NonNullable<typeof __VLS_28>]?: (props: typeof __VLS_29) => any;
|
|
28
|
+
} & {
|
|
29
|
+
[K in NonNullable<typeof __VLS_32>]?: (props: typeof __VLS_33) => any;
|
|
25
30
|
} & {
|
|
26
31
|
top?: (props: typeof __VLS_5) => any;
|
|
27
32
|
};
|
|
28
|
-
declare const
|
|
33
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
34
|
options: {
|
|
30
35
|
type: PropType<CheckboxOption[]>;
|
|
31
36
|
required: true;
|
|
@@ -146,7 +151,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
146
151
|
falsyShowSlot: boolean;
|
|
147
152
|
bottomSlotIndent: string;
|
|
148
153
|
alignCenter: boolean;
|
|
149
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
154
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
155
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
150
156
|
export default _default;
|
|
151
157
|
type __VLS_WithSlots<T, S> = T & {
|
|
152
158
|
new (): {
|
|
@@ -8,10 +8,11 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_7) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
12
|
title: string;
|
|
13
13
|
initiallyCollapsed: boolean;
|
|
14
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
16
|
export default _default;
|
|
16
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
17
18
|
new (): {
|
|
@@ -54,7 +54,7 @@ type __VLS_Slots = {} & {
|
|
|
54
54
|
} & {
|
|
55
55
|
'append-right'?: (props: typeof __VLS_57) => any;
|
|
56
56
|
};
|
|
57
|
-
declare const
|
|
57
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
58
58
|
open: () => void | undefined;
|
|
59
59
|
close: () => void | undefined;
|
|
60
60
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -77,7 +77,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
77
77
|
showSelectAll: boolean;
|
|
78
78
|
maxHeight: string | number;
|
|
79
79
|
selectedPrefix: string;
|
|
80
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
81
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
81
82
|
export default _default;
|
|
82
83
|
type __VLS_WithSlots<T, S> = T & {
|
|
83
84
|
new (): {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
shrinkable?: boolean;
|
|
3
3
|
}
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
10
|
export default _default;
|
|
8
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
12
|
new (): {
|
|
@@ -8,7 +8,8 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_3) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -9,7 +9,8 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
} & {
|
|
10
10
|
default?: (props: typeof __VLS_6) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
4
7
|
export default _default;
|
|
5
8
|
type __VLS_WithSlots<T, S> = T & {
|
|
6
9
|
new (): {
|
|
@@ -11,7 +11,8 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
} & {
|
|
12
12
|
default?: (props: typeof __VLS_7) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
16
|
export default _default;
|
|
16
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
17
18
|
new (): {
|
|
@@ -4,7 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
} & {
|
|
5
5
|
default?: (props: typeof __VLS_16) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
9
|
export default _default;
|
|
9
10
|
type __VLS_WithSlots<T, S> = T & {
|
|
10
11
|
new (): {
|
|
@@ -4,9 +4,12 @@ interface BottomSheetMenuItemProps {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
itemClass?: string;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
declare var __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
content?: (props: typeof __VLS_5) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<BottomSheetMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BottomSheetMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
13
|
export default _default;
|
|
11
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
12
15
|
new (): {
|
|
@@ -7,9 +7,12 @@ interface Props {
|
|
|
7
7
|
callback: () => void;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
declare var __VLS_8: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
action?: (props: typeof __VLS_8) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
16
|
export default _default;
|
|
14
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
18
|
new (): {
|
|
@@ -89,9 +89,9 @@ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-st
|
|
|
89
89
|
path: string;
|
|
90
90
|
files: {
|
|
91
91
|
responsive?: {
|
|
92
|
-
mobile?: string | null | undefined;
|
|
93
|
-
tablet?: string | null | undefined;
|
|
94
|
-
desktop?: string | null | undefined;
|
|
92
|
+
mobile?: string | null | undefined | undefined;
|
|
93
|
+
tablet?: string | null | undefined | undefined;
|
|
94
|
+
desktop?: string | null | undefined | undefined;
|
|
95
95
|
} | null | undefined;
|
|
96
96
|
url: string;
|
|
97
97
|
createdAt: string;
|
|
@@ -186,9 +186,9 @@ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-st
|
|
|
186
186
|
path: string;
|
|
187
187
|
files: {
|
|
188
188
|
responsive?: {
|
|
189
|
-
mobile?: string | null | undefined;
|
|
190
|
-
tablet?: string | null | undefined;
|
|
191
|
-
desktop?: string | null | undefined;
|
|
189
|
+
mobile?: string | null | undefined | undefined;
|
|
190
|
+
tablet?: string | null | undefined | undefined;
|
|
191
|
+
desktop?: string | null | undefined | undefined;
|
|
192
192
|
} | null | undefined;
|
|
193
193
|
url: string;
|
|
194
194
|
createdAt: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare function useRestaurantMap(): import("vue").ComputedRef<Record<string, {
|
|
2
2
|
channel?: string | null | undefined;
|
|
3
|
+
machineId?: string | null | undefined;
|
|
4
|
+
catalogId?: string | null | undefined;
|
|
3
5
|
customAttributes?: Record<string, any> | null | undefined;
|
|
4
6
|
takeaway?: {
|
|
5
7
|
catalogId?: string | null | undefined;
|
|
6
8
|
} | null | undefined;
|
|
7
|
-
machineId?: string | null | undefined;
|
|
8
|
-
catalogId?: string | null | undefined;
|
|
9
9
|
inHouseDelivery?: {
|
|
10
10
|
taxes?: Record<string, {
|
|
11
11
|
inclusive: boolean;
|
|
@@ -78,8 +78,8 @@ export declare function useRestaurantMap(): import("vue").ComputedRef<Record<str
|
|
|
78
78
|
autoAccept?: boolean | null | undefined;
|
|
79
79
|
autoAcceptPaidOnly?: boolean | null | undefined;
|
|
80
80
|
ignoreStock?: boolean | null | undefined;
|
|
81
|
-
enable: boolean;
|
|
82
81
|
catalogId: string | null;
|
|
82
|
+
enable: boolean;
|
|
83
83
|
areas: {
|
|
84
84
|
minPurchase?: {
|
|
85
85
|
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
@@ -137,10 +137,6 @@ export declare function useRestaurantMap(): import("vue").ComputedRef<Record<str
|
|
|
137
137
|
acceptQueue?: boolean | null | undefined;
|
|
138
138
|
anonymousOrder: boolean;
|
|
139
139
|
} | null | undefined;
|
|
140
|
-
driveThru?: {
|
|
141
|
-
catalogId?: string | null | undefined;
|
|
142
|
-
enabled: boolean;
|
|
143
|
-
} | null | undefined;
|
|
144
140
|
pf_business?: {
|
|
145
141
|
internal?: boolean | null | undefined;
|
|
146
142
|
url?: string | null | undefined;
|
|
@@ -150,7 +146,7 @@ export declare function useRestaurantMap(): import("vue").ComputedRef<Record<str
|
|
|
150
146
|
options?: any[] | null | undefined;
|
|
151
147
|
type: "string" | "number" | "boolean" | "date";
|
|
152
148
|
key: string;
|
|
153
|
-
entity: "
|
|
149
|
+
entity: "item" | "group" | "restaurant" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
154
150
|
}[] | null | undefined;
|
|
155
151
|
pf_agent?: {
|
|
156
152
|
clickupId?: string | null | undefined;
|
|
@@ -5,7 +5,7 @@ export interface SheetEvent {
|
|
|
5
5
|
export default function useSheet(): {
|
|
6
6
|
open: <Component extends abstract new (...args: any[]) => any>({ component, props, }: {
|
|
7
7
|
component: Component;
|
|
8
|
-
props?: InstanceType<Component>["$props"]
|
|
8
|
+
props?: InstanceType<Component>["$props"];
|
|
9
9
|
}) => {
|
|
10
10
|
instance: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
11
|
[key: string]: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { g as se, c as ne } from "./app-4LaGLcWC.js";
|
|
2
|
+
import { defineStore as ae, storeToRefs as oe } from "pinia";
|
|
3
3
|
import { ref as q } from "vue";
|
|
4
|
-
import { useCoreStore as
|
|
5
|
-
import { t as ce } from "./index-
|
|
6
|
-
import {
|
|
4
|
+
import { useCoreStore as ie } from "@feedmepos/mf-common";
|
|
5
|
+
import { b as O, g as Y, t as ue, k as ce, s as Q } from "./index-BsEM84j5.js";
|
|
6
|
+
import { u as le } from "./useAppStore-D0F-tWJO.js";
|
|
7
7
|
var K = { exports: {} };
|
|
8
8
|
(function(u, v) {
|
|
9
9
|
(function(I, T) {
|
|
@@ -324,7 +324,7 @@ const de = /* @__PURE__ */ se(fe), k = {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
async function C(u) {
|
|
327
|
-
const v =
|
|
327
|
+
const v = le().roles.value, { restaurants: I } = ie(), T = u.reduce((_, x) => {
|
|
328
328
|
var U;
|
|
329
329
|
const { _id: b, restaurantId: D } = x, M = _.findIndex((i) => i._id === b), E = ((U = I.value.find((i) => i._id === D)) == null ? void 0 : U.profile.name) || "", w = v.find((i) => i._id === x.role), p = {
|
|
330
330
|
restaurantId: D,
|
|
@@ -334,7 +334,7 @@ async function C(u) {
|
|
|
334
334
|
};
|
|
335
335
|
return M < 0 ? _.push({
|
|
336
336
|
...x,
|
|
337
|
-
since: de(
|
|
337
|
+
since: de(ce(b)).format("DD/MM/YYYY"),
|
|
338
338
|
restaurants: [p]
|
|
339
339
|
}) : _[M].restaurants.some((i) => i.restaurantId === D) || (_[M].restaurants = Q([..._[M].restaurants, p], {
|
|
340
340
|
selector: "restaurantName"
|
|
@@ -342,7 +342,7 @@ async function C(u) {
|
|
|
342
342
|
}, []);
|
|
343
343
|
return Q(T, { selector: "name" });
|
|
344
344
|
}
|
|
345
|
-
const me =
|
|
345
|
+
const me = ae("employee", () => {
|
|
346
346
|
const u = q([]), v = q(!1), I = q([]);
|
|
347
347
|
async function T() {
|
|
348
348
|
try {
|
|
@@ -413,7 +413,7 @@ const me = ie("employee", () => {
|
|
|
413
413
|
}
|
|
414
414
|
async function p() {
|
|
415
415
|
try {
|
|
416
|
-
I.value = await
|
|
416
|
+
I.value = await ue.readTeamMemberPosUserIds();
|
|
417
417
|
} catch (i) {
|
|
418
418
|
console.log("Error reading team member pos user ids:", i);
|
|
419
419
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { InheritedPermission, IFdtoPermissionSet } from '@/types/permission-set';
|
|
2
|
+
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
3
|
+
/**
|
|
4
|
+
* Transform permission sets by grouping role names by collection IDs for a specific field
|
|
5
|
+
* @param permissionSets - Array of permission sets with their permissions
|
|
6
|
+
* @param field - The field name to extract collection IDs from (e.g., 'restaurantId', 'warehouseId')
|
|
7
|
+
* @param resource - The collection of resource (e.g., list of restaurants, warehouses)
|
|
8
|
+
* @returns Array of objects containing collection ID and associated role names
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformByCollection(permissionSets: IFdtoPermissionSet[], field: string, resourceIds: string[]): InheritedPermission[];
|
|
11
|
+
/**
|
|
12
|
+
* Combine base permissions (permissions set) with user permissions
|
|
13
|
+
* @param basePermissions - Base permissions
|
|
14
|
+
* @param overridePermissions - User permissions
|
|
15
|
+
* @returns Combined permissions
|
|
16
|
+
* Return combined result with below criteria:
|
|
17
|
+
* - If base has it and user doesn't, return base permission with { inverted: true }
|
|
18
|
+
* - If user has it and base doesn't, return user permission
|
|
19
|
+
* - If base and user has it, nothing return
|
|
20
|
+
* For permission with conditions (collection: warehouses, roles, restaurants)
|
|
21
|
+
* - If base conditions different from user conditions, return rule with { inverted: true } and conditions on collection ids to be denied
|
|
22
|
+
* - If base has conditions and user doesn't, return base with { inverted: true } without conditions, essentially denied all access
|
|
23
|
+
* - If user has conditions and base doesn't, return user's rule (user added)
|
|
24
|
+
*/
|
|
25
|
+
export declare function getOverridePermissions(basePermissions: FdoPermissionRule[], overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
26
|
+
/**
|
|
27
|
+
* Combine base permissions with override permissions to get effective permissions
|
|
28
|
+
* @param basePermissions - Base permissions from permission sets
|
|
29
|
+
* @param overridePermissions - Override permissions from permission user
|
|
30
|
+
* @returns - Combined effective permissions
|
|
31
|
+
*/
|
|
32
|
+
export declare function getEffectivePermissions(basePermissions: FdoPermissionRule[], overridePermissions: FdoPermissionRule[]): FdoPermissionRule[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FTeamMember, IFdtoPortalUser } from '@/types/team';
|
|
2
|
+
/**
|
|
3
|
+
* Combine portal user data with permission assignment and return as team member data
|
|
4
|
+
* @param doc
|
|
5
|
+
* @param options
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function portalUserToTeamMember(doc: IFdtoPortalUser): FTeamMember;
|
package/dist/helpers/rule.d.ts
CHANGED
|
@@ -14,15 +14,16 @@ export declare function ruleExtension(rule: FdoPermissionRule): {
|
|
|
14
14
|
fields?: string[] | null | undefined;
|
|
15
15
|
inverted?: boolean | null | undefined;
|
|
16
16
|
subject: string;
|
|
17
|
-
actions: ("
|
|
17
|
+
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
18
18
|
};
|
|
19
19
|
export declare function getMaxDiscount(rules: FdoPermissionRule[]): number;
|
|
20
|
-
export declare function getManagableRestaurantIds(rules: RawRule[]): string[] | null;
|
|
20
|
+
export declare function getManagableRestaurantIds(rules: (FdoPermissionRule | RawRule)[]): string[] | null;
|
|
21
21
|
export declare function hasAdminRule(rules: FdoPermissionRule[]): boolean;
|
|
22
|
-
export declare function usableRoleIds(rules: RawRule[]): string[] | null;
|
|
22
|
+
export declare function usableRoleIds(rules: (FdoPermissionRule | RawRule)[]): string[] | null;
|
|
23
23
|
export declare function fromValue(values: string[], maxDiscountPercentage: number): {
|
|
24
24
|
subject: string;
|
|
25
25
|
actions: ("delete" | "update" | "create" | "read" | "manage")[];
|
|
26
26
|
conditions: object;
|
|
27
27
|
}[];
|
|
28
28
|
export declare function toRule(v: string): Rule;
|
|
29
|
+
export declare function mapAndSortPermissions(permissions: Array<FdoPermissionRule | RawRule>): string[];
|