@feedmepos/mf-transaction 0.0.5-beta → 0.0.6-beta

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 (116) hide show
  1. package/dist/{app-De8rdDAe.js → app-DvTXMdAl.js} +80295 -80084
  2. package/dist/app.js +1 -1
  3. package/dist/{src → apps/mf-transaction/src}/App.vue.d.ts +1 -1
  4. package/dist/{src → apps/mf-transaction/src}/Entry.vue.d.ts +1 -1
  5. package/dist/{src → apps/mf-transaction/src}/api/role/index.d.ts +1 -1
  6. package/dist/{src → apps/mf-transaction/src}/api/team/index.d.ts +2 -2
  7. package/dist/{src → apps/mf-transaction/src}/api/timesheet/index.d.ts +1 -1
  8. package/dist/{src → apps/mf-transaction/src}/components/AppForm.vue.d.ts +5 -5
  9. package/dist/{src → apps/mf-transaction/src}/components/CheckboxInput.vue.d.ts +6 -6
  10. package/dist/apps/mf-transaction/src/components/FilterDialog.vue.d.ts +13 -0
  11. package/dist/{src → apps/mf-transaction/src}/components/Navigator.vue.d.ts +1 -1
  12. package/dist/apps/mf-transaction/src/components/RestaurantSelector.vue.d.ts +6 -0
  13. package/dist/{src → apps/mf-transaction/src}/views/online/OnlineTransaction.vue.d.ts +1 -1
  14. package/dist/{src → apps/mf-transaction/src}/views/online/PaymentTable.vue.d.ts +15 -6
  15. package/dist/{src → apps/mf-transaction/src}/views/online/SettlementTable.vue.d.ts +8 -8
  16. package/dist/{src → apps/mf-transaction/src}/views/online/detail/FmSettlement.vue.d.ts +6 -6
  17. package/dist/{src → apps/mf-transaction/src}/views/online/detail/RmsSettlement.vue.d.ts +3 -3
  18. package/dist/{src → apps/mf-transaction/src}/views/online/detail/SettlementDetail.vue.d.ts +2 -2
  19. package/dist/{src → apps/mf-transaction/src}/views/receipt/ExportReceipt.vue.d.ts +3 -3
  20. package/dist/{src → apps/mf-transaction/src}/views/receipt/Receipt.vue.d.ts +1 -1
  21. package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/ReceiptDetail.vue.d.ts +4 -4
  22. package/dist/apps/mf-transaction/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +14 -0
  23. package/dist/apps/mf-transaction/src/views/receipt/detail/info/InfoBasic.vue.d.ts +20 -0
  24. package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/InfoRow.vue.d.ts +4 -4
  25. package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +14 -0
  26. package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +14 -0
  27. package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +14 -0
  28. package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/ReceiptSubItem.vue.d.ts +4 -4
  29. package/dist/apps/mf-transaction/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +14 -0
  30. package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -0
  31. package/dist/{index.es-JoRL4qNk.js → index.es-Yqc0W6vL.js} +589 -589
  32. package/dist/packages/shared/src/api/index.d.ts +3 -0
  33. package/dist/packages/shared/src/api/public.d.ts +5 -0
  34. package/dist/packages/shared/src/components/button/ResponsiveFabButton.vue.d.ts +12 -0
  35. package/dist/packages/shared/src/components/form/FormLabel.vue.d.ts +33 -0
  36. package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +46 -0
  37. package/dist/packages/shared/src/components/form/RestaurantSelector.vue.d.ts +28 -0
  38. package/dist/packages/shared/src/components/form/RestaurantSelectorMultiple.vue.d.ts +22 -0
  39. package/dist/packages/shared/src/components/info/InfoBasic.vue.d.ts +20 -0
  40. package/dist/packages/shared/src/components/info/Summary.vue.d.ts +19 -0
  41. package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +30 -0
  42. package/dist/packages/shared/src/components/layout/HorizontalSplitter.vue.d.ts +2 -0
  43. package/dist/packages/shared/src/components/layout/PageLayout.vue.d.ts +24 -0
  44. package/dist/packages/shared/src/components/map/GoogleMap.vue.d.ts +79 -0
  45. package/dist/packages/shared/src/components/menu/BottomSheetMenu.vue.d.ts +9 -0
  46. package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +16 -0
  47. package/dist/packages/shared/src/components/types.d.ts +95 -0
  48. package/dist/packages/shared/src/composable/clipboard.d.ts +3 -0
  49. package/dist/packages/shared/src/composable/filterSelector.d.ts +12 -0
  50. package/dist/packages/shared/src/composable/loading.d.ts +29 -0
  51. package/dist/packages/shared/src/feature/featureMinVersion.d.ts +34 -0
  52. package/dist/packages/shared/src/helpers/actionButton.d.ts +8 -0
  53. package/dist/packages/shared/src/helpers/contextMenu.d.ts +13 -0
  54. package/dist/packages/shared/src/helpers/createComponent.d.ts +7 -0
  55. package/dist/packages/shared/src/helpers/createForm.d.ts +2 -0
  56. package/dist/packages/shared/src/helpers/iteration.d.ts +10 -0
  57. package/dist/packages/shared/src/helpers/map.d.ts +370 -0
  58. package/dist/packages/shared/src/helpers/object.d.ts +6 -0
  59. package/dist/packages/shared/src/helpers/rules.d.ts +1 -0
  60. package/dist/packages/shared/src/stores/app.d.ts +207 -0
  61. package/dist/style.css +1 -1
  62. package/package.json +3 -2
  63. package/dist/src/components/FilterDialog.vue.d.ts +0 -13
  64. package/dist/src/components/RestaurantSelector.vue.d.ts +0 -6
  65. package/dist/src/helpers/rule.d.ts +0 -29
  66. package/dist/src/stores/employee.d.ts +0 -539
  67. package/dist/src/stores/role.d.ts +0 -205
  68. package/dist/src/stores/timesheet.d.ts +0 -253
  69. package/dist/src/types/employee.d.ts +0 -29
  70. package/dist/src/types/permission.d.ts +0 -68
  71. package/dist/src/types/role.d.ts +0 -37
  72. package/dist/src/types/team.d.ts +0 -47
  73. package/dist/src/types/timesheet.d.ts +0 -16
  74. package/dist/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +0 -14
  75. package/dist/src/views/receipt/detail/info/InfoBasic.vue.d.ts +0 -20
  76. package/dist/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +0 -14
  77. package/dist/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +0 -14
  78. package/dist/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +0 -14
  79. package/dist/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +0 -14
  80. package/dist/src/views/team/TeamMemberList.vue.d.ts +0 -2
  81. package/dist/src/views/team/components/AddMemberForm.vue.d.ts +0 -40
  82. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -38
  83. package/dist/src/views/team/components/PortalUserSearcher.vue.d.ts +0 -40
  84. package/dist/src/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
  85. package/dist/src/views/team/components/TeamMemberConditionPermission.vue.d.ts +0 -50
  86. package/dist/src/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -836
  87. package/dist/src/views/team/components/TeamMemberRolePermission.vue.d.ts +0 -46
  88. package/dist/tsconfig.app.tsbuildinfo +0 -1
  89. /package/dist/{src → apps/mf-transaction/src}/api/bill/index.d.ts +0 -0
  90. /package/dist/{src → apps/mf-transaction/src}/api/employee/index.d.ts +0 -0
  91. /package/dist/{src → apps/mf-transaction/src}/api/index.d.ts +0 -0
  92. /package/dist/{src → apps/mf-transaction/src}/api/inventory/index.d.ts +0 -0
  93. /package/dist/{src → apps/mf-transaction/src}/api/payment/index.d.ts +0 -0
  94. /package/dist/{src → apps/mf-transaction/src}/api/transaction/index.d.ts +0 -0
  95. /package/dist/{src → apps/mf-transaction/src}/api/user/index.d.ts +0 -0
  96. /package/dist/{src → apps/mf-transaction/src}/app.d.ts +0 -0
  97. /package/dist/{src → apps/mf-transaction/src}/composables/dateRange.d.ts +0 -0
  98. /package/dist/{src → apps/mf-transaction/src}/composables/message.d.ts +0 -0
  99. /package/dist/{src → apps/mf-transaction/src}/helpers/component.d.ts +0 -0
  100. /package/dist/{src → apps/mf-transaction/src}/helpers/createComponent.d.ts +0 -0
  101. /package/dist/{src → apps/mf-transaction/src}/helpers/createForm.d.ts +0 -0
  102. /package/dist/{src → apps/mf-transaction/src}/helpers/export.d.ts +0 -0
  103. /package/dist/{src → apps/mf-transaction/src}/helpers/idToDate.d.ts +0 -0
  104. /package/dist/{src → apps/mf-transaction/src}/helpers/iteration.d.ts +0 -0
  105. /package/dist/{src → apps/mf-transaction/src}/helpers/random.d.ts +0 -0
  106. /package/dist/{src → apps/mf-transaction/src}/helpers/string.d.ts +0 -0
  107. /package/dist/{src → apps/mf-transaction/src}/helpers/time.d.ts +0 -0
  108. /package/dist/{src → apps/mf-transaction/src}/helpers/utils.d.ts +0 -0
  109. /package/dist/{src → apps/mf-transaction/src}/main.d.ts +0 -0
  110. /package/dist/{src → apps/mf-transaction/src}/router/index.d.ts +0 -0
  111. /package/dist/{src → apps/mf-transaction/src}/router/shared.d.ts +0 -0
  112. /package/dist/{src → apps/mf-transaction/src}/types/restaurant.d.ts +0 -0
  113. /package/dist/{src → apps/mf-transaction/src}/types/transaction.d.ts +0 -0
  114. /package/dist/{src → apps/mf-transaction/src}/views/online/settlement.d.ts +0 -0
  115. /package/dist/{src → apps/mf-transaction/src}/views/receipt/form.d.ts +0 -0
  116. /package/dist/{src → apps/mf-transaction/src}/views/receipt/receipt.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { type AxiosInstance, type AxiosResponse } from "axios";
2
+ export declare const baseClientInstance: (url?: string) => AxiosInstance;
3
+ export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;
@@ -0,0 +1,5 @@
1
+ import type { PublicSettingApi } from "~shared/stores/app";
2
+ export declare const publicSettingApi: {
3
+ read(): Promise<PublicSettingApi>;
4
+ update(dto: PublicSettingApi): Promise<PublicSettingApi>;
5
+ };
@@ -0,0 +1,12 @@
1
+ import { type FmButtonProps } from "@feedmepos/ui-library";
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FmButtonProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FmButtonProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToRuntimeProps<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,33 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ label: string;
3
+ optional?: boolean | undefined;
4
+ subLabel?: string | undefined;
5
+ }>, {
6
+ optional: boolean;
7
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ label: string;
9
+ optional?: boolean | undefined;
10
+ subLabel?: string | undefined;
11
+ }>, {
12
+ optional: boolean;
13
+ }>>> & Readonly<{}>, {
14
+ optional: boolean;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
@@ -0,0 +1,46 @@
1
+ interface Props {
2
+ label?: string;
3
+ subLabel?: string;
4
+ modelValue: File | null | undefined;
5
+ previousUrl: string | null | undefined;
6
+ width?: number;
7
+ height?: number;
8
+ canDelete?: boolean;
9
+ }
10
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ width: number;
12
+ height: number;
13
+ canDelete: boolean;
14
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:model-value": (file: File) => void;
16
+ "reset:model-value": () => void;
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ width: number;
19
+ height: number;
20
+ canDelete: boolean;
21
+ }>>> & Readonly<{
22
+ "onUpdate:model-value"?: ((file: File) => any) | undefined;
23
+ "onReset:model-value"?: (() => any) | undefined;
24
+ }>, {
25
+ width: number;
26
+ height: number;
27
+ canDelete: boolean;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,28 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: import("vue").PropType<string>;
3
+ label: {
4
+ type: import("vue").PropType<string>;
5
+ };
6
+ managableOnly: {
7
+ type: import("vue").PropType<boolean>;
8
+ default: boolean;
9
+ };
10
+ excludeRestaurants: {
11
+ type: import("vue").PropType<string[]>;
12
+ };
13
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ modelValue: import("vue").PropType<string>;
15
+ label: {
16
+ type: import("vue").PropType<string>;
17
+ };
18
+ managableOnly: {
19
+ type: import("vue").PropType<boolean>;
20
+ default: boolean;
21
+ };
22
+ excludeRestaurants: {
23
+ type: import("vue").PropType<string[]>;
24
+ };
25
+ }>> & Readonly<{}>, {
26
+ managableOnly: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,22 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: import("vue").PropType<string[]>;
3
+ managableOnly: {
4
+ type: import("vue").PropType<boolean>;
5
+ default: boolean;
6
+ };
7
+ excludeRestaurants: {
8
+ type: import("vue").PropType<string[]>;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ modelValue: import("vue").PropType<string[]>;
12
+ managableOnly: {
13
+ type: import("vue").PropType<boolean>;
14
+ default: boolean;
15
+ };
16
+ excludeRestaurants: {
17
+ type: import("vue").PropType<string[]>;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ managableOnly: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ name: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ value: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ name: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ value: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,19 @@
1
+ interface Props {
2
+ title: string;
3
+ variant: "full" | "dialog";
4
+ items: {
5
+ name: string;
6
+ value: string | null | undefined;
7
+ }[];
8
+ }
9
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,30 @@
1
+ interface FullScreenFormProps {
2
+ show: boolean;
3
+ title: string;
4
+ primaryAction: {
5
+ label: string;
6
+ };
7
+ secondaryActions: {
8
+ label: string;
9
+ click?: () => void;
10
+ }[];
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FullScreenFormProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FullScreenFormProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
13
+ "append-title"?(_: {}): any;
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,24 @@
1
+ interface Props {
2
+ heading: string;
3
+ }
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
5
+ "prepend-heading"?(_: {}): any;
6
+ "sub-heading"?(_: {}): any;
7
+ "append-heading"?(_: {}): any;
8
+ default?(_: {}): any;
9
+ }>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,79 @@
1
+ import { type PropType } from "vue";
2
+ import { type MarkerChangeEvent, type PolygonChangeEvent, type MapCoordinate, type MapPolygon } from "../types";
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ markers: {
5
+ type: PropType<MapCoordinate[]>;
6
+ default: () => never[];
7
+ };
8
+ polygons: {
9
+ type: PropType<MapPolygon[]>;
10
+ default: () => never[];
11
+ };
12
+ zoom: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ editable: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ center: {
21
+ type: PropType<{
22
+ lat: number;
23
+ lng: number;
24
+ }>;
25
+ default: {
26
+ lat: number;
27
+ lng: number;
28
+ };
29
+ };
30
+ }>, {
31
+ setCenter: (coordinate: MapCoordinate) => void;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ "map-click": (ev: MapCoordinate) => void;
34
+ "marker-change": (ev: MarkerChangeEvent) => void;
35
+ "polygon-change": (ev: PolygonChangeEvent) => void;
36
+ "polygon-right-click": (ev: number) => void;
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
+ markers: {
39
+ type: PropType<MapCoordinate[]>;
40
+ default: () => never[];
41
+ };
42
+ polygons: {
43
+ type: PropType<MapPolygon[]>;
44
+ default: () => never[];
45
+ };
46
+ zoom: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ editable: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ center: {
55
+ type: PropType<{
56
+ lat: number;
57
+ lng: number;
58
+ }>;
59
+ default: {
60
+ lat: number;
61
+ lng: number;
62
+ };
63
+ };
64
+ }>> & Readonly<{
65
+ "onMap-click"?: ((ev: MapCoordinate) => any) | undefined;
66
+ "onMarker-change"?: ((ev: MarkerChangeEvent) => any) | undefined;
67
+ "onPolygon-change"?: ((ev: PolygonChangeEvent) => any) | undefined;
68
+ "onPolygon-right-click"?: ((ev: number) => any) | undefined;
69
+ }>, {
70
+ center: {
71
+ lat: number;
72
+ lng: number;
73
+ };
74
+ markers: MapCoordinate[];
75
+ polygons: MapPolygon[];
76
+ zoom: number;
77
+ editable: boolean;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
79
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -0,0 +1,16 @@
1
+ interface BottomSheetMenuItemProps {
2
+ label: string;
3
+ icon?: string;
4
+ disabled?: boolean;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BottomSheetMenuItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<BottomSheetMenuItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,95 @@
1
+ import { type DefineComponent } from "vue";
2
+ export type InputModel = string | number | boolean | null;
3
+ export declare enum AUTH_CODE_TYPE {
4
+ ALL = "ALL",
5
+ ALPHA = "ALPHA",
6
+ ALPHANUMERIC = "ALPHANUMERIC",
7
+ NUMERIC = "NUMERIC"
8
+ }
9
+ export interface GlobalDialogType extends DefineComponent {
10
+ onDialogOK: (v?: any) => void;
11
+ onDialogCancel: () => void;
12
+ validate: () => Promise<boolean>;
13
+ reset: () => void;
14
+ }
15
+ export type DatePickerData = Date | {
16
+ start: Date;
17
+ end: Date;
18
+ };
19
+ export interface PickerGroup {
20
+ label: string;
21
+ value: string;
22
+ options: PickerOption[];
23
+ }
24
+ export interface PickerOption {
25
+ label: string;
26
+ value: string;
27
+ }
28
+ export interface CheckboxOption {
29
+ key?: string;
30
+ label: string;
31
+ value: any;
32
+ disable?: boolean;
33
+ suffix?: {
34
+ text: string;
35
+ class: string;
36
+ };
37
+ }
38
+ export interface TableColumn<T> {
39
+ name: string;
40
+ label: string;
41
+ field: keyof T | ((v: T) => any);
42
+ sort?: boolean | ((a: {
43
+ index: number;
44
+ value: any;
45
+ }, b: {
46
+ index: number;
47
+ value: any;
48
+ }) => number);
49
+ hide?: boolean;
50
+ format?: (v: any) => string;
51
+ align?: "left" | "right" | "center";
52
+ option?: {
53
+ style?: string;
54
+ class?: string;
55
+ };
56
+ }
57
+ export interface TableOption<T> {
58
+ columns: TableColumn<T>[];
59
+ data: T[];
60
+ rowId?: keyof T | ((v: T) => string);
61
+ initialSort?: {
62
+ key: string;
63
+ descending?: boolean;
64
+ };
65
+ pagination?: {
66
+ sortBy?: string;
67
+ descending?: boolean;
68
+ page?: number;
69
+ rowsPerPage?: number;
70
+ };
71
+ }
72
+ export interface MoreActionOption {
73
+ label: string;
74
+ class?: string;
75
+ disable?: boolean | string;
76
+ hide?: boolean;
77
+ callback: () => Promise<unknown>;
78
+ }
79
+ export interface MapCoordinate {
80
+ lat: number;
81
+ lng: number;
82
+ }
83
+ export interface MapPolygon {
84
+ paths: MapCoordinate[];
85
+ strokeColor?: string;
86
+ fillColor?: string;
87
+ }
88
+ export interface MarkerChangeEvent {
89
+ index: number;
90
+ position: MapCoordinate;
91
+ }
92
+ export interface PolygonChangeEvent {
93
+ index: number;
94
+ path: MapCoordinate[];
95
+ }
@@ -0,0 +1,3 @@
1
+ export declare function useClipboard(): {
2
+ copyTextToClipboard: (id: string, toast?: string) => Promise<void>;
3
+ };
@@ -0,0 +1,12 @@
1
+ import { type Ref } from "vue";
2
+ interface Option<T> {
3
+ value: T;
4
+ }
5
+ export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined>): {
6
+ allCleared: Ref<boolean, boolean>;
7
+ allSelected: import("vue").ComputedRef<boolean>;
8
+ indeterminate: import("vue").ComputedRef<boolean>;
9
+ toggleAll: () => void;
10
+ toggleOption: (value: T) => void;
11
+ };
12
+ export {};
@@ -0,0 +1,29 @@
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;
@@ -0,0 +1,34 @@
1
+ export declare enum FeatureName {
2
+ menuV3 = 0,
3
+ applyEffectOnOrder = 1,
4
+ nestedAddon = 2,
5
+ feedmeDelivery = 3,
6
+ taxAndServiceChargeV4 = 4,
7
+ itemCombo = 5,
8
+ itemTakeaway = 6,
9
+ transferInventory = 7,
10
+ qrEPayment = 8,
11
+ deliveryIntegration = 9,
12
+ rmsPayment = 10,
13
+ queue = 11,
14
+ paymentVoucher = 12
15
+ }
16
+ export declare const featureVersionMapping: {
17
+ 0: string;
18
+ 1: string;
19
+ 2: string;
20
+ 4: string;
21
+ 5: string;
22
+ 6: string;
23
+ 7: string;
24
+ 8: string;
25
+ 9: string;
26
+ 3: string;
27
+ 10: string;
28
+ 11: string;
29
+ 12: string;
30
+ };
31
+ export declare function posCanUse(feature: FeatureName, posVersion: any): any;
32
+ export declare function getCalculatorVersion(posVersion: string): number | null;
33
+ export declare function featureRequireVersion(feature: FeatureName): string;
34
+ export declare function posCanUseRule(feature: FeatureName, currentVersion: string, errorFormatter?: (String: any) => String): any;
@@ -0,0 +1,8 @@
1
+ interface ActionIconOption {
2
+ name: string;
3
+ onClick: () => void;
4
+ }
5
+ export declare function createIconActionButtonsCell(buttons: ActionIconOption[]): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
+ [key: string]: any;
7
+ }>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ export type MenuActionProps = {
2
+ label: string;
3
+ color: string;
4
+ onClick?: () => void;
5
+ };
6
+ export declare enum MenuActionEnum {
7
+ Update = "Update",
8
+ Remove = "Remove"
9
+ }
10
+ export declare const DefaultMenuActions: Record<MenuActionEnum, MenuActionProps>;
11
+ export declare function createContextMenuComponents(actions: MenuActionProps[]): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
+ [key: string]: any;
13
+ }>;
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import { type ComponentInternalInstance } from "vue";
2
+ export declare function createForm<T>(currentInstance: ComponentInternalInstance, component: T, props: InstanceType<T>["$props"]): void;
@@ -0,0 +1,10 @@
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 {};