@feedmepos/mf-transaction 0.0.49 → 0.0.50-alpha.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.
- package/dist/{Receipt-CbB43FcI.js → App-C2eFOWps.js} +105694 -55900
- package/dist/{app-BOGbEdwR.js → app-Lz_6_4Y_.js} +32 -43
- package/dist/app.js +3 -4
- package/dist/apps/mf-transaction/src/app.d.ts +0 -1
- package/dist/apps/mf-transaction/src/types/item.interface.d.ts +187 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptSubItem.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index.es-C6q0jT4J.js → index.es-qiDiJNmA.js} +299 -300
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +121 -0
- package/dist/packages/shared/src/components/info/CustomAttributeChip.vue.d.ts +29 -0
- package/dist/packages/shared/src/composable/filterSelector.d.ts +1 -1
- package/dist/packages/shared/src/stores/app.d.ts +2 -2
- package/package.json +3 -4
- package/dist/App-Bd2Vg00Y.js +0 -23
- package/dist/apps/mf-transaction/src/api/employee/index.d.ts +0 -13
- package/dist/apps/mf-transaction/src/api/inventory/index.d.ts +0 -5
- package/dist/apps/mf-transaction/src/api/payment/index.d.ts +0 -3
- package/dist/apps/mf-transaction/src/api/role/index.d.ts +0 -9
- package/dist/apps/mf-transaction/src/api/team/index.d.ts +0 -9
- package/dist/apps/mf-transaction/src/api/timesheet/index.d.ts +0 -6
- package/dist/apps/mf-transaction/src/api/user/index.d.ts +0 -6
- package/dist/apps/mf-transaction/src/components/Navigator.vue.d.ts +0 -2
- package/dist/apps/mf-transaction/src/router/index.d.ts +0 -2
- package/dist/apps/mf-transaction/src/router/shared.d.ts +0 -3
- package/dist/config-h_h_CICV.js +0 -49780
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export interface BaseOption {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export interface SelectFilterOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export interface Props {
|
|
10
|
+
/** Items to show in the menu (must contain label & value) */
|
|
11
|
+
items: SelectFilterOption[];
|
|
12
|
+
/** v-model value (single or multiple depending on `multiple`) */
|
|
13
|
+
modelValue?: any | any[] | null;
|
|
14
|
+
/** Enable multi-select */
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
/** Placeholder text when nothing selected */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** Search input placeholder */
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
/** Disable the whole control */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Visual variant */
|
|
23
|
+
variant?: "default" | "dark";
|
|
24
|
+
/** Allow clearing selection with clear button (single only currently) */
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
/** Show search box */
|
|
27
|
+
searchable?: boolean;
|
|
28
|
+
/** Auto select first option when available */
|
|
29
|
+
autoSelectFirst?: boolean;
|
|
30
|
+
/** Custom icon for chip */
|
|
31
|
+
chipIcon?: string;
|
|
32
|
+
/** If true and multiple, show an All toggle entry */
|
|
33
|
+
showSelectAll?: boolean;
|
|
34
|
+
/** Max height for options scroll area */
|
|
35
|
+
maxHeight?: string | number;
|
|
36
|
+
/** When user selected some items, we should display like "selectedPrefix: <count>" */
|
|
37
|
+
selectedPrefix?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
40
|
+
items: () => never[];
|
|
41
|
+
multiple: boolean;
|
|
42
|
+
placeholder: string;
|
|
43
|
+
searchPlaceholder: string;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
variant: string;
|
|
46
|
+
clearable: boolean;
|
|
47
|
+
searchable: boolean;
|
|
48
|
+
autoSelectFirst: boolean;
|
|
49
|
+
chipIcon: string;
|
|
50
|
+
showSelectAll: boolean;
|
|
51
|
+
maxHeight: number;
|
|
52
|
+
selectedPrefix: string;
|
|
53
|
+
}>>, {
|
|
54
|
+
open: () => void | undefined;
|
|
55
|
+
close: () => void | undefined;
|
|
56
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
"update:modelValue": (value: any) => void;
|
|
58
|
+
change: (value: any) => void;
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
60
|
+
items: () => never[];
|
|
61
|
+
multiple: boolean;
|
|
62
|
+
placeholder: string;
|
|
63
|
+
searchPlaceholder: string;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
variant: string;
|
|
66
|
+
clearable: boolean;
|
|
67
|
+
searchable: boolean;
|
|
68
|
+
autoSelectFirst: boolean;
|
|
69
|
+
chipIcon: string;
|
|
70
|
+
showSelectAll: boolean;
|
|
71
|
+
maxHeight: number;
|
|
72
|
+
selectedPrefix: string;
|
|
73
|
+
}>>> & Readonly<{
|
|
74
|
+
onChange?: ((value: any) => any) | undefined;
|
|
75
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
76
|
+
}>, {
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
variant: "default" | "dark";
|
|
79
|
+
items: SelectFilterOption[];
|
|
80
|
+
maxHeight: string | number;
|
|
81
|
+
placeholder: string;
|
|
82
|
+
searchable: boolean;
|
|
83
|
+
multiple: boolean;
|
|
84
|
+
autoSelectFirst: boolean;
|
|
85
|
+
searchPlaceholder: string;
|
|
86
|
+
clearable: boolean;
|
|
87
|
+
chipIcon: string;
|
|
88
|
+
showSelectAll: boolean;
|
|
89
|
+
selectedPrefix: string;
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
91
|
+
"menu-button"?(_: {}): any;
|
|
92
|
+
option?(_: {
|
|
93
|
+
option: SelectFilterOption;
|
|
94
|
+
selected: boolean;
|
|
95
|
+
toggle: () => void;
|
|
96
|
+
}): any;
|
|
97
|
+
"append-right"?(_: {}): any;
|
|
98
|
+
}>;
|
|
99
|
+
export default _default;
|
|
100
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
101
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
102
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
103
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
104
|
+
} : {
|
|
105
|
+
type: import('vue').PropType<T[K]>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
type __VLS_WithDefaults<P, D> = {
|
|
110
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
111
|
+
default: D[K];
|
|
112
|
+
}> : P[K];
|
|
113
|
+
};
|
|
114
|
+
type __VLS_Prettify<T> = {
|
|
115
|
+
[K in keyof T]: T[K];
|
|
116
|
+
} & {};
|
|
117
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
118
|
+
new (): {
|
|
119
|
+
$slots: S;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
customAttributes?: Record<string, any>;
|
|
3
|
+
ellipsis?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
6
|
+
ellipsis: boolean;
|
|
7
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
8
|
+
ellipsis: boolean;
|
|
9
|
+
}>>> & Readonly<{}>, {
|
|
10
|
+
ellipsis: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_Prettify<T> = {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} & {};
|
|
@@ -2,7 +2,7 @@ import { type Ref } from "vue";
|
|
|
2
2
|
interface Option<T> {
|
|
3
3
|
value: T;
|
|
4
4
|
}
|
|
5
|
-
export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined | null>): {
|
|
5
|
+
export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined | null>, filteredOptions?: Ref<Option<T>[]>): {
|
|
6
6
|
allCleared: Ref<boolean, boolean>;
|
|
7
7
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
8
8
|
indeterminate: import("vue").ComputedRef<boolean>;
|
|
@@ -82,7 +82,7 @@ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-st
|
|
|
82
82
|
};
|
|
83
83
|
assets: {
|
|
84
84
|
groups: {
|
|
85
|
-
key: "
|
|
85
|
+
key: "portal" | "pos";
|
|
86
86
|
assets: {
|
|
87
87
|
type: "image" | "lottie";
|
|
88
88
|
key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
|
|
@@ -179,7 +179,7 @@ export declare const useAppStore: import("pinia").StoreDefinition<"portal-app-st
|
|
|
179
179
|
};
|
|
180
180
|
assets: {
|
|
181
181
|
groups: {
|
|
182
|
-
key: "
|
|
182
|
+
key: "portal" | "pos";
|
|
183
183
|
assets: {
|
|
184
184
|
type: "image" | "lottie";
|
|
185
185
|
key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot" | "advertisement";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-transaction",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.50-alpha.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@feedmepos/core-dart": "^0.2.6",
|
|
20
20
|
"@feedmepos/kitchen": "^2.4.11",
|
|
21
21
|
"@feedmepos/payment-entity": "0.1.3",
|
|
22
|
-
"@feedmepos/print": "file:../../core-legacy-1.
|
|
22
|
+
"@feedmepos/print": "file:../../core-legacy-1.3.tar.gz",
|
|
23
23
|
"@feedmepos/printer": "^0.0.8",
|
|
24
24
|
"@feedmepos/ui-library": "1.7.0",
|
|
25
25
|
"@vitejs/plugin-vue-jsx": "^4.0.0",
|
|
@@ -31,9 +31,8 @@
|
|
|
31
31
|
"pinia": "^2.1.7",
|
|
32
32
|
"vue": "^3.5.16",
|
|
33
33
|
"vue-i18n": "10.0.5",
|
|
34
|
-
"vue-router": "^4.3.0",
|
|
35
34
|
"xlsx": "^0.18.5",
|
|
36
|
-
"@feedmepos/mf-common": "^1.
|
|
35
|
+
"@feedmepos/mf-common": "^1.27.5"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@casl/ability": "^3.4.0",
|
package/dist/App-Bd2Vg00Y.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, resolveComponent as n, createBlock as c, openBlock as s } from "vue";
|
|
2
|
-
import { storeToRefs as p } from "pinia";
|
|
3
|
-
import { k as u, s as m } from "./config-h_h_CICV.js";
|
|
4
|
-
import { useCoreStore as a } from "@feedmepos/mf-common";
|
|
5
|
-
const g = /* @__PURE__ */ t({
|
|
6
|
-
__name: "App",
|
|
7
|
-
setup(i) {
|
|
8
|
-
const { currentCountry: o } = p(a());
|
|
9
|
-
u.setCountry(o.value);
|
|
10
|
-
try {
|
|
11
|
-
m(o.value);
|
|
12
|
-
} catch (r) {
|
|
13
|
-
console.error("Error setting country config for legacy core", r);
|
|
14
|
-
}
|
|
15
|
-
return (r, f) => {
|
|
16
|
-
const e = n("RouterView");
|
|
17
|
-
return s(), c(e);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
g as default
|
|
23
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FdtoUpdatePosUserReq, FdtoUpdatePosMasterUserReq } from "@feedmepos/core/entity";
|
|
2
|
-
import type { IFdtoPosUser } from "../../types/employee";
|
|
3
|
-
declare const EmployeeAPI: {
|
|
4
|
-
readEmployees(): Promise<IFdtoPosUser[]>;
|
|
5
|
-
createEmployee(dto: FdtoUpdatePosUserReq): Promise<IFdtoPosUser[]>;
|
|
6
|
-
createMasterEmployee(dto: FdtoUpdatePosMasterUserReq): Promise<IFdtoPosUser[]>;
|
|
7
|
-
migrateToMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<IFdtoPosUser[]>;
|
|
8
|
-
updateEmployee(employeeId: string, dto: FdtoUpdatePosUserReq): Promise<IFdtoPosUser[]>;
|
|
9
|
-
updateMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<IFdtoPosUser[]>;
|
|
10
|
-
deleteEmployee(employee: IFdtoPosUser): Promise<IFdtoPosUser[]>;
|
|
11
|
-
generateEmployeePasscode(): Promise<string>;
|
|
12
|
-
};
|
|
13
|
-
export default EmployeeAPI;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FdoPosRole } from "@feedmepos/core/entity";
|
|
2
|
-
import type { IFdtoPosRole } from "../../types/role";
|
|
3
|
-
declare const RoleAPI: {
|
|
4
|
-
readRoles(): Promise<IFdtoPosRole[]>;
|
|
5
|
-
createRole(dto: IFdtoUpdateRoleReq): Promise<IFdtoPosRole[]>;
|
|
6
|
-
updateRole(roleId: string, dto: IFdtoUpdateRoleReq): Promise<IFdtoPosRole[]>;
|
|
7
|
-
deleteRole(role: FdoPosRole): Promise<IFdtoPosRole[]>;
|
|
8
|
-
};
|
|
9
|
-
export default RoleAPI;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FTeamMember } from "@/types/team";
|
|
2
|
-
export declare const portalTeamPermissions: readonly unknown[];
|
|
3
|
-
export declare const teamApi: {
|
|
4
|
-
readTeamMembers(): Promise<FTeamMember[]>;
|
|
5
|
-
createTeamMember(req: IFdtoCreatePortalUserReq): Promise<FTeamMember>;
|
|
6
|
-
updateTeamMember(permissionUserId: string, req: IFdtoUpdatePortalUserReq): Promise<FTeamMember>;
|
|
7
|
-
deleteTeamMember(permissionUserId: string): Promise<boolean>;
|
|
8
|
-
};
|
|
9
|
-
export default teamApi;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IFdtoTimesheet } from "../../types/timesheet";
|
|
2
|
-
declare const TimesheetAPI: {
|
|
3
|
-
readTimesheets(startIso: string, endIso: string): Promise<IFdtoTimesheet[]>;
|
|
4
|
-
updateTimesheet(restaurantId: string, dto: UpdateTimesheetDTO): Promise<void>;
|
|
5
|
-
};
|
|
6
|
-
export default TimesheetAPI;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|