@feedmepos/mf-hrm-portal 0.0.1-alpha.1 → 0.0.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.
Files changed (104) hide show
  1. package/package.json +1 -1
  2. package/dist/App.vue.d.ts +0 -2
  3. package/dist/EmployeeList-BU6n0y6w.js +0 -604
  4. package/dist/Entry.vue.d.ts +0 -2
  5. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js +0 -37
  6. package/dist/RoleList-kE8O8wyy.js +0 -492
  7. package/dist/TeamMemberList-BBl8auxB.js +0 -1447
  8. package/dist/TimesheetList-QmuwWz31.js +0 -395
  9. package/dist/api/employee/index.d.ts +0 -15
  10. package/dist/api/index.d.ts +0 -3
  11. package/dist/api/inventory/index.d.ts +0 -5
  12. package/dist/api/role/index.d.ts +0 -9
  13. package/dist/api/team/index.d.ts +0 -10
  14. package/dist/api/timesheet/index.d.ts +0 -6
  15. package/dist/api/user/index.d.ts +0 -6
  16. package/dist/app-DWSjl6MP.js +0 -1170
  17. package/dist/app-DXlbstZu.js +0 -2282
  18. package/dist/app.d.ts +0 -3
  19. package/dist/app.js +0 -6
  20. package/dist/components/AppForm.vue.d.ts +0 -45
  21. package/dist/components/CheckboxInput.vue.d.ts +0 -155
  22. package/dist/components/Navigator.vue.d.ts +0 -6
  23. package/dist/components/Splash.vue.d.ts +0 -2
  24. package/dist/composables/message.d.ts +0 -4
  25. package/dist/composables/restaurant.d.ts +0 -329
  26. package/dist/employee-C-ICOGva.js +0 -449
  27. package/dist/favicon.ico +0 -0
  28. package/dist/helpers/component.d.ts +0 -12
  29. package/dist/helpers/iteration.d.ts +0 -10
  30. package/dist/helpers/rule.d.ts +0 -28
  31. package/dist/helpers/utils.d.ts +0 -3
  32. package/dist/index-COaCoGwy.js +0 -57
  33. package/dist/loading-31nfQqf0.js +0 -140
  34. package/dist/lodash-P5mhhlxp.js +0 -3676
  35. package/dist/main-DlJuqlgg.js +0 -15636
  36. package/dist/main.d.ts +0 -1
  37. package/dist/restaurant-D5BNPLKh.js +0 -107
  38. package/dist/router/index.d.ts +0 -2
  39. package/dist/router/shared.d.ts +0 -10
  40. package/dist/rule-DjIknogy.js +0 -8229
  41. package/dist/search-Dh3HG-_h.js +0 -258
  42. package/dist/shared/api/index.d.ts +0 -3
  43. package/dist/shared/api/public.d.ts +0 -5
  44. package/dist/shared/components/button/ResponsiveFabButton.vue.d.ts +0 -3
  45. package/dist/shared/components/form/SelectFilter.vue.d.ts +0 -86
  46. package/dist/shared/components/layout/FormColumn.vue.d.ts +0 -12
  47. package/dist/shared/components/layout/FormItem.vue.d.ts +0 -17
  48. package/dist/shared/components/layout/FormSection.vue.d.ts +0 -18
  49. package/dist/shared/components/layout/FullWrapper.vue.d.ts +0 -9
  50. package/dist/shared/components/layout/HorizontalSplitter.vue.d.ts +0 -2
  51. package/dist/shared/components/layout/LottieAnimation.vue.d.ts +0 -39
  52. package/dist/shared/components/layout/PageLayout.vue.d.ts +0 -20
  53. package/dist/shared/components/loading/AppLoading.vue.d.ts +0 -20
  54. package/dist/shared/components/loading/PageLoading.vue.d.ts +0 -2
  55. package/dist/shared/components/loading/index.d.ts +0 -1
  56. package/dist/shared/components/menu/BottomSheetMenu.vue.d.ts +0 -13
  57. package/dist/shared/components/menu/BottomSheetMenuItem.vue.d.ts +0 -15
  58. package/dist/shared/components/menu/ResponsiveContextMenu.vue.d.ts +0 -13
  59. package/dist/shared/components/table/EmptyDataTemplate/Icon.vue.d.ts +0 -2
  60. package/dist/shared/components/table/EmptyDataTemplate/index.d.ts +0 -1
  61. package/dist/shared/components/table/EmptyDataTemplate/index.vue.d.ts +0 -18
  62. package/dist/shared/composable/dateRange.d.ts +0 -18
  63. package/dist/shared/composable/discardConfirm.d.ts +0 -1
  64. package/dist/shared/composable/elementPosition.d.ts +0 -17
  65. package/dist/shared/composable/filterSelector.d.ts +0 -12
  66. package/dist/shared/composable/loading.d.ts +0 -29
  67. package/dist/shared/composable/search.d.ts +0 -5
  68. package/dist/shared/composable/sheet.d.ts +0 -17
  69. package/dist/shared/helpers/createComponent.d.ts +0 -7
  70. package/dist/shared/helpers/iteration.d.ts +0 -11
  71. package/dist/shared/helpers/object.d.ts +0 -6
  72. package/dist/shared/helpers/string.d.ts +0 -12
  73. package/dist/shared/permission/posPermission.d.ts +0 -6
  74. package/dist/shared/stores/app.d.ts +0 -217
  75. package/dist/stores/employee.d.ts +0 -590
  76. package/dist/stores/role.d.ts +0 -214
  77. package/dist/stores/timesheet.d.ts +0 -253
  78. package/dist/style.css +0 -1
  79. package/dist/timesheet-Jwqi_LdM.js +0 -56
  80. package/dist/tsconfig.app.tsbuildinfo +0 -1
  81. package/dist/types/employee.d.ts +0 -30
  82. package/dist/types/permission.d.ts +0 -2
  83. package/dist/types/restaurant.d.ts +0 -18
  84. package/dist/types/role.d.ts +0 -37
  85. package/dist/types/team.d.ts +0 -49
  86. package/dist/types/timesheet.d.ts +0 -16
  87. package/dist/views/hr/locales/index.d.ts +0 -602
  88. package/dist/views/hr/views/employee/Employee.vue.d.ts +0 -2
  89. package/dist/views/hr/views/employee/EmployeeList.vue.d.ts +0 -38
  90. package/dist/views/hr/views/employee/components/EmployeeForm.vue.d.ts +0 -27
  91. package/dist/views/hr/views/main.vue.d.ts +0 -2
  92. package/dist/views/hr/views/role/RoleForm.vue.d.ts +0 -17
  93. package/dist/views/hr/views/role/RoleList.vue.d.ts +0 -5
  94. package/dist/views/hr/views/timesheet/TimesheetList.vue.d.ts +0 -2
  95. package/dist/views/team/locales/index.d.ts +0 -348
  96. package/dist/views/team/views/team/TeamMemberList.vue.d.ts +0 -2
  97. package/dist/views/team/views/team/components/AddMemberForm.vue.d.ts +0 -37
  98. package/dist/views/team/views/team/components/MemberInfo.vue.d.ts +0 -6
  99. package/dist/views/team/views/team/components/PortalPermissionEditor.vue.d.ts +0 -46
  100. package/dist/views/team/views/team/components/PortalUserSearcher.vue.d.ts +0 -40
  101. package/dist/views/team/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
  102. package/dist/views/team/views/team/components/TeamMemberConditionPermission.vue.d.ts +0 -50
  103. package/dist/views/team/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -710
  104. package/dist/views/team/views/team/components/TeamMemberRolePermission.vue.d.ts +0 -46
@@ -1,29 +0,0 @@
1
- import { type ComputedRef, type Ref } from 'vue';
2
- import { type SnackbarProvider } from '@feedmepos/ui-library';
3
- export interface UseLoadingReturn {
4
- queue: ComputedRef<{
5
- id: string;
6
- isGlobal: boolean;
7
- }[]>;
8
- checkIsLoading: (id: string) => boolean;
9
- global: <T>(fn: () => Promise<T>, config?: {
10
- onSuccess?: (resp: T) => Promise<void> | void;
11
- successMessage?: string;
12
- }) => Promise<T>;
13
- minor: <T>(fn: () => Promise<T>, config?: {
14
- customId?: string | string[];
15
- isLoading?: Ref<boolean>;
16
- message?: string | Ref<string>;
17
- caption?: string | Ref<string>;
18
- icon?: string;
19
- successMessage?: string;
20
- successIcon?: string;
21
- }) => Promise<T>;
22
- custom: <T>(fn: () => Promise<T>, config?: {
23
- isLoading?: Ref<boolean>;
24
- successMessage?: string;
25
- customId?: string | string[];
26
- }) => Promise<T>;
27
- }
28
- declare const useLoading: (snackbar: SnackbarProvider) => UseLoadingReturn;
29
- export default useLoading;
@@ -1,5 +0,0 @@
1
- declare const useSearch: (initialValue?: string) => {
2
- searchKey: import("vue").Ref<string, string>;
3
- filter: (searchableFields: unknown[]) => boolean;
4
- };
5
- export default useSearch;
@@ -1,17 +0,0 @@
1
- export interface SheetEvent {
2
- (e: 'update:show', value: boolean): void;
3
- (e: 'submit', value: any): void;
4
- }
5
- export default function useSheet(): {
6
- open: <Component extends abstract new (...args: any[]) => any>({ component, props, }: {
7
- component: Component;
8
- props?: InstanceType<Component>["$props"] | undefined;
9
- }) => {
10
- instance: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
- [key: string]: any;
12
- }>;
13
- close: () => Promise<void>;
14
- onOk: (okFn: (value: any) => void) => void;
15
- onCancel: (cancelFn: () => void) => void;
16
- };
17
- };
@@ -1,7 +0,0 @@
1
- import { type ComponentInternalInstance } from 'vue';
2
- export declare const createComponentProgrammatically: <Component extends abstract new (...args: any) => any>(component: Component, currentInstance: ComponentInternalInstance | null, props: InstanceType<Component>["$props"]) => {
3
- container: HTMLDivElement;
4
- vNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
- [key: string]: any;
6
- }>;
7
- };
@@ -1,11 +0,0 @@
1
- export declare function clone<T>(value: T, exceptKey?: string[]): T;
2
- type Selector<T> = keyof T | ((item: T) => string);
3
- export declare function sort<T>(arr: T[], option?: {
4
- selector?: Selector<T>;
5
- descending?: boolean;
6
- } | undefined): T[];
7
- export declare function group<T>(arr: T[], by: Selector<T>): {
8
- [key: string]: T[];
9
- };
10
- export declare function chunk<T>(list: T[], size: number): T[][];
11
- export {};
@@ -1,6 +0,0 @@
1
- export declare function clone<T>(value: T): T;
2
- export declare function arrayToObject<T extends {
3
- [key: string]: any;
4
- }, K extends keyof T>(array: T[], idKey?: K): {
5
- [key: string]: T;
6
- };
@@ -1,12 +0,0 @@
1
- declare function randomString(length: number, config?: {
2
- includeSpecialCase: boolean;
3
- }): string;
4
- declare const filter: {
5
- alphabetOnly(word: string): string;
6
- alphaNumeric(word: string): string;
7
- numericOnly(word: string): string;
8
- };
9
- declare const validate: {
10
- email(input: string): RegExpMatchArray | null;
11
- };
12
- export { filter, validate, randomString };
@@ -1,6 +0,0 @@
1
- import type { FdoPermissionRule } from '@feedmepos/core/entity';
2
- /**
3
- * TODO:Previously, it's exported from @feedmepos/core, but it's removed under new versions
4
- * So we redefine here temporarily
5
- */
6
- export declare const fullPosPermissions: FdoPermissionRule[];
@@ -1,217 +0,0 @@
1
- import type { FdoPublicSetting } from '@feedmepos/core/entity';
2
- export type PublicSettingApi = FdoPublicSetting & {
3
- aiSettings: {
4
- remy: {
5
- enable: boolean;
6
- };
7
- };
8
- };
9
- interface AppState {
10
- loadingQueue: LoadingQueue[];
11
- publicSetting: PublicSettingApi;
12
- }
13
- interface LoadingQueue {
14
- id: string;
15
- isGlobal: boolean;
16
- }
17
- export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-store", AppState, {}, {
18
- addLoadingQueues(queues: LoadingQueue[]): void;
19
- clearLoadingQueue(): void;
20
- resolveQueues(queueIds: string[]): void;
21
- promise<F extends (...args: any[]) => any>(callback: F, isGlobal?: boolean): Promise<ReturnType<F>>;
22
- getPublicSetting(): Promise<{
23
- delivery: {
24
- feedMe: {
25
- operatingHours?: {
26
- 0: {
27
- hours: {
28
- end: string;
29
- start: string;
30
- }[];
31
- enable: boolean;
32
- };
33
- 2: {
34
- hours: {
35
- end: string;
36
- start: string;
37
- }[];
38
- enable: boolean;
39
- };
40
- 1: {
41
- hours: {
42
- end: string;
43
- start: string;
44
- }[];
45
- enable: boolean;
46
- };
47
- 3: {
48
- hours: {
49
- end: string;
50
- start: string;
51
- }[];
52
- enable: boolean;
53
- };
54
- 4: {
55
- hours: {
56
- end: string;
57
- start: string;
58
- }[];
59
- enable: boolean;
60
- };
61
- 5: {
62
- hours: {
63
- end: string;
64
- start: string;
65
- }[];
66
- enable: boolean;
67
- };
68
- 6: {
69
- hours: {
70
- end: string;
71
- start: string;
72
- }[];
73
- enable: boolean;
74
- };
75
- } | null | undefined;
76
- maxDistance: number;
77
- enable: boolean;
78
- areas: {
79
- polygon: number[][];
80
- }[];
81
- };
82
- };
83
- assets: {
84
- groups: {
85
- key: "portal" | "pos";
86
- assets: {
87
- type: "image" | "lottie";
88
- key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
89
- path: string;
90
- files: {
91
- responsive?: {
92
- mobile?: string | null | undefined;
93
- tablet?: string | null | undefined;
94
- desktop?: string | null | undefined;
95
- } | null | undefined;
96
- url: string;
97
- createdAt: string;
98
- config: {
99
- useWhen: {
100
- end: string;
101
- start: string;
102
- };
103
- recurring: boolean;
104
- };
105
- lastUpdate: string;
106
- }[];
107
- }[];
108
- }[];
109
- };
110
- sms: {
111
- firebase: boolean;
112
- };
113
- aiSettings: {
114
- remy: {
115
- enable: boolean;
116
- };
117
- };
118
- }>;
119
- updatePublicSetting(setting: Partial<FdoPublicSetting>): Promise<{
120
- delivery: {
121
- feedMe: {
122
- operatingHours?: {
123
- 0: {
124
- hours: {
125
- end: string;
126
- start: string;
127
- }[];
128
- enable: boolean;
129
- };
130
- 2: {
131
- hours: {
132
- end: string;
133
- start: string;
134
- }[];
135
- enable: boolean;
136
- };
137
- 1: {
138
- hours: {
139
- end: string;
140
- start: string;
141
- }[];
142
- enable: boolean;
143
- };
144
- 3: {
145
- hours: {
146
- end: string;
147
- start: string;
148
- }[];
149
- enable: boolean;
150
- };
151
- 4: {
152
- hours: {
153
- end: string;
154
- start: string;
155
- }[];
156
- enable: boolean;
157
- };
158
- 5: {
159
- hours: {
160
- end: string;
161
- start: string;
162
- }[];
163
- enable: boolean;
164
- };
165
- 6: {
166
- hours: {
167
- end: string;
168
- start: string;
169
- }[];
170
- enable: boolean;
171
- };
172
- } | null | undefined;
173
- maxDistance: number;
174
- enable: boolean;
175
- areas: {
176
- polygon: number[][];
177
- }[];
178
- };
179
- };
180
- assets: {
181
- groups: {
182
- key: "portal" | "pos";
183
- assets: {
184
- type: "image" | "lottie";
185
- key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
186
- path: string;
187
- files: {
188
- responsive?: {
189
- mobile?: string | null | undefined;
190
- tablet?: string | null | undefined;
191
- desktop?: string | null | undefined;
192
- } | null | undefined;
193
- url: string;
194
- createdAt: string;
195
- config: {
196
- useWhen: {
197
- end: string;
198
- start: string;
199
- };
200
- recurring: boolean;
201
- };
202
- lastUpdate: string;
203
- }[];
204
- }[];
205
- }[];
206
- };
207
- sms: {
208
- firebase: boolean;
209
- };
210
- aiSettings: {
211
- remy: {
212
- enable: boolean;
213
- };
214
- };
215
- }>;
216
- }>;
217
- export {};