@feedmepos/mf-common 0.0.9 → 0.25.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 (121) hide show
  1. package/README.md +16 -33
  2. package/dist/App.vue.d.ts +19 -5
  3. package/dist/App.vue.d.ts.map +1 -0
  4. package/dist/CustomAttributesForm-dde99c83.js +96 -0
  5. package/dist/Entry.vue.d.ts +3 -0
  6. package/dist/Entry.vue.d.ts.map +1 -0
  7. package/dist/ItemSelector-cafebff4.js +24797 -0
  8. package/dist/RestaurantSelector-c90b09ab.js +218 -0
  9. package/dist/api/index.d.ts +54 -3
  10. package/dist/api/index.d.ts.map +1 -0
  11. package/dist/api/menu.d.ts +7 -0
  12. package/dist/api/menu.d.ts.map +1 -0
  13. package/dist/app-1a83be54.js +41042 -0
  14. package/dist/app-9575c6c7.js +7846 -0
  15. package/dist/app.d.ts +706 -1299
  16. package/dist/app.d.ts.map +1 -0
  17. package/dist/app.js +37 -15375
  18. package/dist/components/AllBusinessDialog.vue.d.ts +17 -0
  19. package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -0
  20. package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts +3 -0
  21. package/dist/components/ChangePassword/ConfirmPassword.vue.d.ts.map +1 -0
  22. package/dist/components/ChangePassword/NewPassword.vue.d.ts +3 -0
  23. package/dist/components/ChangePassword/NewPassword.vue.d.ts.map +1 -0
  24. package/dist/components/ChangePassword/PasswordField.vue.d.ts +15 -0
  25. package/dist/components/ChangePassword/PasswordField.vue.d.ts.map +1 -0
  26. package/dist/components/DebugUserDialog.vue.d.ts +3 -0
  27. package/dist/components/DebugUserDialog.vue.d.ts.map +1 -0
  28. package/dist/components/FeedmeLogo.vue.d.ts +3 -0
  29. package/dist/components/FeedmeLogo.vue.d.ts.map +1 -0
  30. package/dist/components/ItemSelector.vue.d.ts +46 -0
  31. package/dist/components/ItemSelector.vue.d.ts.map +1 -0
  32. package/dist/components/ManageAccountDialog.vue.d.ts +15 -0
  33. package/dist/components/ManageAccountDialog.vue.d.ts.map +1 -0
  34. package/dist/components/MyBusinessDialog.vue.d.ts +15 -0
  35. package/dist/components/MyBusinessDialog.vue.d.ts.map +1 -0
  36. package/dist/components/NoPermission.vue.d.ts +3 -0
  37. package/dist/components/NoPermission.vue.d.ts.map +1 -0
  38. package/dist/components/PermissionWrapper.vue.d.ts +10 -0
  39. package/dist/components/PermissionWrapper.vue.d.ts.map +1 -0
  40. package/dist/components/Portal/Ads.vue.d.ts +16 -0
  41. package/dist/components/Portal/Ads.vue.d.ts.map +1 -0
  42. package/dist/components/Portal/BusinessDialogMobile.vue.d.ts +17 -0
  43. package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -0
  44. package/dist/components/Portal/PortalDesktop.vue.d.ts +34 -0
  45. package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -0
  46. package/dist/components/Portal/PortalMobile.vue.d.ts +34 -0
  47. package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -0
  48. package/dist/components/Portal/PortalSidebar.vue.d.ts +3 -0
  49. package/dist/components/Portal/PortalSidebar.vue.d.ts.map +1 -0
  50. package/dist/components/Portal/PortalTablet.vue.d.ts +33 -0
  51. package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -0
  52. package/dist/components/Portal/index.d.ts +28 -0
  53. package/dist/components/Portal/index.d.ts.map +1 -0
  54. package/dist/components/Portal/index.vue.d.ts +40 -0
  55. package/dist/components/Portal/index.vue.d.ts.map +1 -0
  56. package/dist/components/RestaurantSelector.vue.d.ts +48 -0
  57. package/dist/components/RestaurantSelector.vue.d.ts.map +1 -0
  58. package/dist/components/SelectCountryDialog.vue.d.ts +93 -0
  59. package/dist/components/SelectCountryDialog.vue.d.ts.map +1 -0
  60. package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts +25 -0
  61. package/dist/components/UserInfo/ProfileMenuItem.vue.d.ts.map +1 -0
  62. package/dist/components/UserInfo/index.vue.d.ts +72 -0
  63. package/dist/components/UserInfo/index.vue.d.ts.map +1 -0
  64. package/dist/components/attribute/CustomAttributesForm.vue.d.ts +25 -0
  65. package/dist/components/attribute/CustomAttributesForm.vue.d.ts.map +1 -0
  66. package/dist/components/attribute/MongoQueryBuilder.vue.d.ts +22 -0
  67. package/dist/components/attribute/MongoQueryBuilder.vue.d.ts.map +1 -0
  68. package/dist/components/attribute/OptionChip.vue.d.ts +16 -0
  69. package/dist/components/attribute/OptionChip.vue.d.ts.map +1 -0
  70. package/dist/composables/filterSelector.d.ts +13 -0
  71. package/dist/composables/filterSelector.d.ts.map +1 -0
  72. package/dist/composables/search.d.ts +6 -0
  73. package/dist/composables/search.d.ts.map +1 -0
  74. package/dist/composables/useDebugUser.d.ts +6 -0
  75. package/dist/composables/useDebugUser.d.ts.map +1 -0
  76. package/dist/composables/useLocale.d.ts +27 -0
  77. package/dist/composables/useLocale.d.ts.map +1 -0
  78. package/dist/composables/usePaginatedBusinesses.d.ts +145 -0
  79. package/dist/composables/usePaginatedBusinesses.d.ts.map +1 -0
  80. package/dist/favicon.ico +0 -0
  81. package/dist/locales/en-US.json +33 -0
  82. package/dist/locales/th-TH.json +33 -0
  83. package/dist/locales/types.d.ts +104 -0
  84. package/dist/locales/zh-CN.json +33 -0
  85. package/dist/logo.svg +15 -0
  86. package/dist/main.d.ts +2 -1
  87. package/dist/main.d.ts.map +1 -0
  88. package/dist/object-27ce045b.js +16 -0
  89. package/dist/permission/permission.d.ts +107 -0
  90. package/dist/permission/permission.d.ts.map +1 -0
  91. package/dist/plugin/loading.d.ts +18 -0
  92. package/dist/plugin/loading.d.ts.map +1 -0
  93. package/dist/router/index.d.ts +3 -0
  94. package/dist/router/index.d.ts.map +1 -0
  95. package/dist/router/query.d.ts +3 -0
  96. package/dist/router/query.d.ts.map +1 -0
  97. package/dist/store.d.ts +13951 -301
  98. package/dist/store.d.ts.map +1 -0
  99. package/dist/stores/menu.d.ts +7231 -0
  100. package/dist/stores/menu.d.ts.map +1 -0
  101. package/dist/style.css +1 -1
  102. package/dist/tsconfig.app.tsbuildinfo +1 -1
  103. package/dist/utils/businessStorage.d.ts +12 -0
  104. package/dist/utils/businessStorage.d.ts.map +1 -0
  105. package/dist/utils/clipboard.d.ts +2 -0
  106. package/dist/utils/clipboard.d.ts.map +1 -0
  107. package/dist/utils/country.d.ts +11 -0
  108. package/dist/utils/country.d.ts.map +1 -0
  109. package/dist/utils/object.d.ts +2 -0
  110. package/dist/utils/object.d.ts.map +1 -0
  111. package/dist/utils/postMessageMethodCall.d.ts +16 -0
  112. package/dist/utils/postMessageMethodCall.d.ts.map +1 -0
  113. package/dist/utils/storage.d.ts +6 -0
  114. package/dist/utils/storage.d.ts.map +1 -0
  115. package/dist/vite-preset.d.ts +12 -2
  116. package/dist/vite-preset.d.ts.map +1 -0
  117. package/dist/vite-preset.js +89 -47
  118. package/package.json +27 -13
  119. package/dist/FeedmeLogo.vue.d.ts +0 -2
  120. package/dist/UserInfo.vue.d.ts +0 -268
  121. package/dist/auth.d.ts +0 -84
@@ -0,0 +1,25 @@
1
+ interface Props {
2
+ title?: string;
3
+ subtitle?: string;
4
+ perpendIcon?: string;
5
+ appendIcon?: string;
6
+ }
7
+ 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>, {
8
+ "title-slot"?(_: {}): 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
+ };
25
+ //# sourceMappingURL=ProfileMenuItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/UserInfo/ProfileMenuItem.vue.ts"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;;;;AA2ID,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,72 @@
1
+ import { type PropType } from "vue";
2
+ import type { FeedMeUser } from "@feedmepos/auth";
3
+ import type { Country } from "@/components/Portal/index";
4
+ import { type FmpBusiness } from "@/store";
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ user: {
7
+ type: PropType<FeedMeUser | null>;
8
+ default: undefined;
9
+ };
10
+ businesses: {
11
+ type: PropType<FmpBusiness[]>;
12
+ required: true;
13
+ };
14
+ currentBusiness: {
15
+ type: PropType<FmpBusiness>;
16
+ default: undefined;
17
+ };
18
+ countries: {
19
+ type: PropType<Country[]>;
20
+ required: true;
21
+ };
22
+ currentCountry: {
23
+ type: PropType<string | undefined>;
24
+ required: true;
25
+ };
26
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ login: () => void;
28
+ logout: () => void;
29
+ "select-business": (business: FmpBusiness, shouldReload: boolean) => void;
30
+ "open-my-business": () => void;
31
+ "select-country": (country: Country, shouldReload: boolean) => void;
32
+ "select-app": (app: import("@/store").PortalApp) => void;
33
+ "update:dropdownOpened": (value: boolean) => void;
34
+ "goto:settings": () => void;
35
+ "goto:portal-v2": () => void;
36
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
+ user: {
38
+ type: PropType<FeedMeUser | null>;
39
+ default: undefined;
40
+ };
41
+ businesses: {
42
+ type: PropType<FmpBusiness[]>;
43
+ required: true;
44
+ };
45
+ currentBusiness: {
46
+ type: PropType<FmpBusiness>;
47
+ default: undefined;
48
+ };
49
+ countries: {
50
+ type: PropType<Country[]>;
51
+ required: true;
52
+ };
53
+ currentCountry: {
54
+ type: PropType<string | undefined>;
55
+ required: true;
56
+ };
57
+ }>> & Readonly<{
58
+ onLogin?: (() => any) | undefined;
59
+ onLogout?: (() => any) | undefined;
60
+ "onSelect-business"?: ((business: FmpBusiness, shouldReload: boolean) => any) | undefined;
61
+ "onOpen-my-business"?: (() => any) | undefined;
62
+ "onSelect-country"?: ((country: Country, shouldReload: boolean) => any) | undefined;
63
+ "onSelect-app"?: ((app: import("@/store").PortalApp) => any) | undefined;
64
+ "onUpdate:dropdownOpened"?: ((value: boolean) => any) | undefined;
65
+ "onGoto:settings"?: (() => any) | undefined;
66
+ "onGoto:portal-v2"?: (() => any) | undefined;
67
+ }>, {
68
+ currentBusiness: FmpBusiness;
69
+ user: FeedMeUser | null;
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
+ export default _default;
72
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/UserInfo/index.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,QAAQ,EAAoB,MAAM,KAAK,CAAA;AAG/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAQjD,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,2BAA2B,CAAA;AAGtE,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAglBxD,wBA4BG"}
@@ -0,0 +1,25 @@
1
+ import { type FdoCustomAttributeEntity } from "@feedmepos/core/entity";
2
+ export type CustomAttributes = Record<string, any>;
3
+ interface Props {
4
+ entity: FdoCustomAttributeEntity;
5
+ modelValue: CustomAttributes;
6
+ valueOptions?: {
7
+ [key: string]: string[];
8
+ };
9
+ }
10
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: CustomAttributes) => void;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: CustomAttributes) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
25
+ //# sourceMappingURL=CustomAttributesForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomAttributesForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/attribute/CustomAttributesForm.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,wBAAwB,CAAA;AAO/B,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAIlD,UAAU,KAAK;IACb,MAAM,EAAE,wBAAwB,CAAA;IAChC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,YAAY,CAAC,EAAE;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KACxB,CAAA;CACF;;;;;;AA6LD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { type FdoCustomAttributeEntity } from "@feedmepos/core/entity";
2
+ export type CustomAttributeFilter = any;
3
+ interface Props {
4
+ entity: FdoCustomAttributeEntity;
5
+ modelValue: CustomAttributeFilter;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: any) => void;
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
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
+ //# sourceMappingURL=MongoQueryBuilder.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MongoQueryBuilder.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/attribute/MongoQueryBuilder.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAQ/F,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAA;AAIvC,UAAU,KAAK;IACb,MAAM,EAAE,wBAAwB,CAAA;IAChC,UAAU,EAAE,qBAAqB,CAAA;CAClC;;;;;;AAkQD,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ interface Props {
2
+ label: string;
3
+ selected: boolean;
4
+ }
5
+ 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>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
16
+ //# sourceMappingURL=OptionChip.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OptionChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/attribute/OptionChip.vue.ts"],"names":[],"mappings":"AAMA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;CAClB;;AAwDD,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
@@ -0,0 +1,13 @@
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 | null>): {
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 {};
13
+ //# sourceMappingURL=filterSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterSelector.d.ts","sourceRoot":"","sources":["../../../src/composables/filterSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAE7C,UAAU,MAAM,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,CAAA;CACT;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC;;;;;0BAkBnE,CAAC;EAwB/B"}
@@ -0,0 +1,6 @@
1
+ declare const useSearch: (initialValue?: string) => {
2
+ searchKey: import("vue").Ref<string, string>;
3
+ filter: (arr: unknown[]) => boolean;
4
+ };
5
+ export default useSearch;
6
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/composables/search.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,kBAAmB,MAAM;;kBASjB,OAAO,EAAE,KAAG,OAAO;CAMzC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare function useDebugUser(): {
2
+ isDebugging: import("vue").ComputedRef<boolean | undefined>;
3
+ hasDebugPermission: import("vue").ComputedRef<boolean | undefined>;
4
+ toggleDebug(): void;
5
+ };
6
+ //# sourceMappingURL=useDebugUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebugUser.d.ts","sourceRoot":"","sources":["../../../src/composables/useDebugUser.ts"],"names":[],"mappings":"AAUA,wBAAgB,YAAY;;;;EA+F3B"}
@@ -0,0 +1,27 @@
1
+ export type LOCALE = "en-US" | "zh-CN" | "zh-TW" | "th-TH" | "jp-JP" | "id-ID" | "vi-VN" | "ms-MY" | "ph-PH";
2
+ export declare const ALL_LOCALE_OPTIONS: {
3
+ code: LOCALE;
4
+ name: string;
5
+ }[];
6
+ export declare const enabledLocales: import("vue").Ref<LOCALE[], LOCALE[]>;
7
+ declare function setEnabledLocales(locales: LOCALE[]): void;
8
+ export { setEnabledLocales };
9
+ export declare function useLocale(): {
10
+ localeSelectorEnabled: boolean;
11
+ locale: import("vue").ComputedRef<string>;
12
+ localeList: never[];
13
+ localeFullName: import("vue").ComputedRef<string>;
14
+ selectLocale: () => never;
15
+ setEnabledLocales?: undefined;
16
+ } | {
17
+ localeSelectorEnabled: import("vue").ComputedRef<boolean>;
18
+ locale: import("vue").WritableComputedRef<string, string>;
19
+ localeFullName: import("vue").ComputedRef<string>;
20
+ localeList: import("vue").ComputedRef<{
21
+ code: LOCALE;
22
+ name: string;
23
+ }[]>;
24
+ selectLocale: (localeCode: string) => void;
25
+ setEnabledLocales: typeof setEnabledLocales;
26
+ };
27
+ //# sourceMappingURL=useLocale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../src/composables/useLocale.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,MAAM,GACd,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,CAAA;AAEX,eAAO,MAAM,kBAAkB,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAU9D,CAAA;AAED,eAAO,MAAM,cAAc,uCAAoC,CAAA;AAE/D,iBAAS,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,QAE3C;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAE5B,wBAAgB,SAAS;;;;;;;;;;;;;;;+BAgCW,MAAM;;EAczC"}
@@ -0,0 +1,145 @@
1
+ import type { FmpBusiness } from "@/store";
2
+ export declare function usePaginatedBusinesses(): {
3
+ searchKeyword: import("vue").Ref<string, string>;
4
+ debouncedSearchKeyword: Readonly<import("vue").Ref<string, string>>;
5
+ isLoading: import("vue").Ref<boolean, boolean>;
6
+ businesses: import("vue").Ref<{
7
+ id: string;
8
+ internal?: boolean | null | undefined;
9
+ url?: string | null | undefined;
10
+ expiredAt?: string | null | undefined;
11
+ agentId?: string | null | undefined;
12
+ attributeSettings?: {
13
+ type: "string" | "number" | "boolean" | "date";
14
+ key: string;
15
+ entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
16
+ }[] | null | undefined;
17
+ pf_agent?: {
18
+ clickupId?: string | null | undefined;
19
+ members?: {
20
+ pf_user?: {
21
+ email?: string | null | undefined;
22
+ phoneNumber?: string | null | undefined;
23
+ birthday?: string | null | undefined;
24
+ gender?: "MALE" | "FEMALE" | null | undefined;
25
+ addresses?: {
26
+ name: string;
27
+ address: string;
28
+ coordinates: number[];
29
+ }[] | null | undefined;
30
+ photoURL?: string | null | undefined;
31
+ displayName?: string | null | undefined;
32
+ imported?: {
33
+ raw: Record<string, any>;
34
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
35
+ } | null | undefined;
36
+ _id: string;
37
+ } | null | undefined;
38
+ role: "ADMIN";
39
+ userId: string;
40
+ }[] | null | undefined;
41
+ code: string;
42
+ name: string;
43
+ _id: string;
44
+ isReseller: boolean;
45
+ } | null | undefined;
46
+ thumbnail?: string | null | undefined;
47
+ billingInfos?: {
48
+ _id?: string | null | undefined;
49
+ name: string;
50
+ address: {
51
+ coordinates?: number[] | null | undefined;
52
+ line2?: string | null | undefined;
53
+ state: string;
54
+ country: string;
55
+ line1: string;
56
+ city: string;
57
+ postcode: string;
58
+ };
59
+ email: string;
60
+ companyName: string;
61
+ contact: string;
62
+ }[] | null | undefined;
63
+ customerDisplayImages?: {
64
+ url: string;
65
+ restaurantIds: string[];
66
+ }[] | null | undefined;
67
+ name: string;
68
+ _id: string;
69
+ ownerId: string;
70
+ restaurantQuota: number;
71
+ warehouseQuota: number;
72
+ menuVersion: string;
73
+ }[], FmpBusiness[] | {
74
+ id: string;
75
+ internal?: boolean | null | undefined;
76
+ url?: string | null | undefined;
77
+ expiredAt?: string | null | undefined;
78
+ agentId?: string | null | undefined;
79
+ attributeSettings?: {
80
+ type: "string" | "number" | "boolean" | "date";
81
+ key: string;
82
+ entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
83
+ }[] | null | undefined;
84
+ pf_agent?: {
85
+ clickupId?: string | null | undefined;
86
+ members?: {
87
+ pf_user?: {
88
+ email?: string | null | undefined;
89
+ phoneNumber?: string | null | undefined;
90
+ birthday?: string | null | undefined;
91
+ gender?: "MALE" | "FEMALE" | null | undefined;
92
+ addresses?: {
93
+ name: string;
94
+ address: string;
95
+ coordinates: number[];
96
+ }[] | null | undefined;
97
+ photoURL?: string | null | undefined;
98
+ displayName?: string | null | undefined;
99
+ imported?: {
100
+ raw: Record<string, any>;
101
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
102
+ } | null | undefined;
103
+ _id: string;
104
+ } | null | undefined;
105
+ role: "ADMIN";
106
+ userId: string;
107
+ }[] | null | undefined;
108
+ code: string;
109
+ name: string;
110
+ _id: string;
111
+ isReseller: boolean;
112
+ } | null | undefined;
113
+ thumbnail?: string | null | undefined;
114
+ billingInfos?: {
115
+ _id?: string | null | undefined;
116
+ name: string;
117
+ address: {
118
+ coordinates?: number[] | null | undefined;
119
+ line2?: string | null | undefined;
120
+ state: string;
121
+ country: string;
122
+ line1: string;
123
+ city: string;
124
+ postcode: string;
125
+ };
126
+ email: string;
127
+ companyName: string;
128
+ contact: string;
129
+ }[] | null | undefined;
130
+ customerDisplayImages?: {
131
+ url: string;
132
+ restaurantIds: string[];
133
+ }[] | null | undefined;
134
+ name: string;
135
+ _id: string;
136
+ ownerId: string;
137
+ restaurantQuota: number;
138
+ warehouseQuota: number;
139
+ menuVersion: string;
140
+ }[]>;
141
+ totalResources: import("vue").Ref<number, number>;
142
+ loadBusinesses: (reset?: boolean) => Promise<void>;
143
+ onScroll: (event: Event) => Promise<void>;
144
+ };
145
+ //# sourceMappingURL=usePaginatedBusinesses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaginatedBusinesses.d.ts","sourceRoot":"","sources":["../../../src/composables/usePaginatedBusinesses.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,wBAAgB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA6CL,KAAK;EAiBrC"}
package/dist/favicon.ico CHANGED
Binary file
@@ -0,0 +1,33 @@
1
+ {
2
+ "common": {
3
+ "yes": "Yes",
4
+ "no": "No",
5
+ "ok": "OK",
6
+ "accept": "Accept",
7
+ "download": "Download",
8
+ "export": "Export",
9
+ "import": "Import",
10
+ "save": "Save",
11
+ "update": "Update",
12
+ "cancel": "Cancel",
13
+ "confirm": "Confirm",
14
+ "delete": "Delete",
15
+ "edit": "Edit",
16
+ "create": "Create",
17
+ "search": "Search",
18
+ "filter": "Filter",
19
+ "sort": "Sort",
20
+ "refresh": "Refresh",
21
+ "close": "Close",
22
+ "back": "Back",
23
+ "continue": "Continue",
24
+ "next": "Next",
25
+ "previous": "Previous",
26
+ "add": "Add",
27
+ "remove": "Remove",
28
+ "select": "Select",
29
+ "selectAll": "Select all",
30
+ "unselectAll": "Unselect all",
31
+ "selected": "{ count } selected"
32
+ }
33
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "common": {
3
+ "yes": "ใช่",
4
+ "no": "ไม่ใช่",
5
+ "ok": "ตกลง",
6
+ "accept": "ยอมรับ",
7
+ "download": "ดาวน์โหลด",
8
+ "export": "ส่งออก",
9
+ "import": "นำเข้า",
10
+ "save": "บันทึก",
11
+ "update": "อัปเดต",
12
+ "cancel": "ยกเลิก",
13
+ "confirm": "ยืนยัน",
14
+ "delete": "ลบ",
15
+ "edit": "แก้ไข",
16
+ "create": "สร้าง",
17
+ "search": "ค้นหา",
18
+ "filter": "กรอง",
19
+ "sort": "เรียงลำดับ",
20
+ "refresh": "รีเฟรช",
21
+ "close": "ปิด",
22
+ "back": "กลับ",
23
+ "continue": "ดำเนินการต่อ",
24
+ "next": "ต่อไป",
25
+ "previous": "ก่อนหน้า",
26
+ "add": "เพิ่ม",
27
+ "remove": "ลบออก",
28
+ "select": "เลือก",
29
+ "selectAll": "เลือกทั้งหมด",
30
+ "unselectAll": "ยกเลิกการเลือกทั้งหมด",
31
+ "selected": "{ count } เลือกแล้ว"
32
+ }
33
+ }
@@ -0,0 +1,104 @@
1
+ import { default as enUS } from './en-US.json';
2
+
3
+ export type CommonMessagesSchema = typeof enUS;
4
+ export declare const locales: {
5
+ readonly "en-US": {
6
+ common: {
7
+ yes: string;
8
+ no: string;
9
+ ok: string;
10
+ accept: string;
11
+ download: string;
12
+ export: string;
13
+ import: string;
14
+ save: string;
15
+ update: string;
16
+ cancel: string;
17
+ confirm: string;
18
+ delete: string;
19
+ edit: string;
20
+ create: string;
21
+ search: string;
22
+ filter: string;
23
+ sort: string;
24
+ refresh: string;
25
+ close: string;
26
+ back: string;
27
+ continue: string;
28
+ next: string;
29
+ previous: string;
30
+ add: string;
31
+ remove: string;
32
+ select: string;
33
+ selectAll: string;
34
+ unselectAll: string;
35
+ selected: string;
36
+ };
37
+ };
38
+ readonly "zh-CN": {
39
+ common: {
40
+ yes: string;
41
+ no: string;
42
+ ok: string;
43
+ accept: string;
44
+ download: string;
45
+ export: string;
46
+ import: string;
47
+ save: string;
48
+ update: string;
49
+ cancel: string;
50
+ confirm: string;
51
+ delete: string;
52
+ edit: string;
53
+ create: string;
54
+ search: string;
55
+ filter: string;
56
+ sort: string;
57
+ refresh: string;
58
+ close: string;
59
+ back: string;
60
+ continue: string;
61
+ next: string;
62
+ previous: string;
63
+ add: string;
64
+ remove: string;
65
+ select: string;
66
+ selectAll: string;
67
+ unselectAll: string;
68
+ selected: string;
69
+ };
70
+ };
71
+ readonly "th-TH": {
72
+ common: {
73
+ yes: string;
74
+ no: string;
75
+ ok: string;
76
+ accept: string;
77
+ download: string;
78
+ export: string;
79
+ import: string;
80
+ save: string;
81
+ update: string;
82
+ cancel: string;
83
+ confirm: string;
84
+ delete: string;
85
+ edit: string;
86
+ create: string;
87
+ search: string;
88
+ filter: string;
89
+ sort: string;
90
+ refresh: string;
91
+ close: string;
92
+ back: string;
93
+ continue: string;
94
+ next: string;
95
+ previous: string;
96
+ add: string;
97
+ remove: string;
98
+ select: string;
99
+ selectAll: string;
100
+ unselectAll: string;
101
+ selected: string;
102
+ };
103
+ };
104
+ };
@@ -0,0 +1,33 @@
1
+ {
2
+ "common": {
3
+ "yes": "是",
4
+ "no": "否",
5
+ "ok": "好",
6
+ "accept": "同意",
7
+ "download": "下载",
8
+ "export": "导出",
9
+ "import": "导入",
10
+ "save": "保存",
11
+ "update": "更新",
12
+ "cancel": "取消",
13
+ "confirm": "确认",
14
+ "delete": "删除",
15
+ "edit": "编辑",
16
+ "create": "创建",
17
+ "search": "搜索",
18
+ "filter": "筛选",
19
+ "sort": "排序",
20
+ "refresh": "刷新",
21
+ "close": "关闭",
22
+ "back": "返回",
23
+ "continue": "继续",
24
+ "next": "下一步",
25
+ "previous": "上一步",
26
+ "add": "添加",
27
+ "remove": "移除",
28
+ "select": "选择",
29
+ "selectAll": "全选",
30
+ "unselectAll": "取消全选",
31
+ "selected": "已选择 { count }项"
32
+ }
33
+ }
package/dist/logo.svg ADDED
@@ -0,0 +1,15 @@
1
+ <svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M239.449 0H148.553C66.5106 0 0.00195312 66.5086 0.00195312 148.551V239.447C0.00195312 321.489 66.5106 387.998 148.553 387.998H239.449C321.491 387.998 388 321.489 388 239.447V148.551C388 66.5086 321.491 0 239.449 0Z" fill="url(#paint0_linear_8849_557)" style=""/>
3
+ <mask id="mask0_8849_557" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="388" height="388">
4
+ <path d="M239.447 0H148.551C66.5086 0 0 66.5086 0 148.551V239.447C0 321.489 66.5086 387.998 148.551 387.998H239.447C321.49 387.998 387.998 321.489 387.998 239.447V148.551C387.998 66.5086 321.49 0 239.447 0Z" fill="white" style="fill:white;fill:white;fill-opacity:1;"/>
5
+ </mask>
6
+ <g mask="url(#mask0_8849_557)">
7
+ <path d="M82.587 258.589V258.76C83.2747 264.893 84.1917 271.598 85.3953 278.648L101.271 392.296H127.462V253.946C127.462 241.395 137.033 231.194 148.839 231.194H150.329C162.135 231.194 171.706 241.395 171.706 253.946V392.296H216.352V253.946C216.352 241.395 225.923 231.194 237.729 231.194H239.219C251.025 231.194 260.596 241.395 260.596 253.946V392.296H286.959L302.835 277.788C303.981 271.025 304.841 264.549 305.471 258.589V258.187C307.649 238.759 307.649 225.061 307.649 225.061C307.649 182.938 290.054 148.264 252.286 119.78C241.97 112.043 233.029 100.466 232.17 75.7079C232.17 75.7079 229.705 12.9519 253.719 -33.7568H134.339C158.353 12.9519 155.888 75.7079 155.888 75.7079C155.029 100.409 146.088 111.986 135.772 119.78C97.9465 148.321 80.4092 182.938 80.4092 225.061C80.4092 225.061 80.4092 238.873 82.587 258.474V258.589Z" fill="white" style="fill:white;fill:white;fill-opacity:1;"/>
8
+ </g>
9
+ <defs>
10
+ <linearGradient id="paint0_linear_8849_557" x1="43.5013" y1="344.556" x2="344.501" y2="43.5567" gradientUnits="userSpaceOnUse">
11
+ <stop stop-color="#FF5D53" style="stop-color:#FF5D53;stop-color:color(display-p3 1.0000 0.3647 0.3255);stop-opacity:1;"/>
12
+ <stop offset="1" stop-color="#FCA23E" style="stop-color:#FCA23E;stop-color:color(display-p3 0.9882 0.6353 0.2431);stop-opacity:1;"/>
13
+ </linearGradient>
14
+ </defs>
15
+ </svg>
package/dist/main.d.ts CHANGED
@@ -1 +1,2 @@
1
- import './assets/main.css';
1
+ import "./assets/main.css";
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAKA,OAAO,mBAAmB,CAAA"}