@feedmepos/mf-settings 0.0.48-beta.0 → 0.0.48-beta.1-ex

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 (28) hide show
  1. package/dist/App-cddefb91.js +4351 -0
  2. package/dist/{Business-d368701b.js → Business-2da2ffc4.js} +236 -236
  3. package/dist/{CreateBusiness-fe3fc91e.js → CreateBusiness-fc4661b1.js} +12 -14
  4. package/dist/FoodCourt-17a5dadd.js +12451 -0
  5. package/dist/Tagging-0a2c6a6b.js +6694 -0
  6. package/dist/actionButton-6b6e9e60.js +88 -0
  7. package/dist/app.js +719 -13
  8. package/dist/apps/mf-settings/src/api/business.d.ts +1 -1
  9. package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
  10. package/dist/apps/mf-settings/src/api/restaurant.d.ts +1 -1
  11. package/dist/apps/mf-settings/src/app.d.ts +1 -2
  12. package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
  13. package/dist/apps/mf-settings/src/components/tagging/TaggingForm.vue.d.ts +3 -3
  14. package/dist/apps/mf-settings/src/extensions/business.d.ts +1 -1
  15. package/dist/apps/mf-settings/src/extensions/profile.d.ts +1 -1
  16. package/dist/apps/mf-settings/src/init.d.ts +1 -0
  17. package/dist/apps/mf-settings/src/manager/restaurant.d.ts +1 -1
  18. package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +16 -16
  19. package/dist/apps/mf-settings/src/types/restaurant.d.ts +1 -1
  20. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/business-8b22c801.js +31 -0
  22. package/dist/createForm-ad247a74.js +92 -0
  23. package/dist/index.esm2017-c60b1ce5.js +3147 -0
  24. package/dist/loading-eb019aa4.js +2385 -0
  25. package/dist/packages/shared/src/stores/app.d.ts +1 -1
  26. package/package.json +3 -3
  27. package/dist/FoodCourt-103e9580.js +0 -25602
  28. package/dist/app-b94d060a.js +0 -17440
@@ -1,4 +1,4 @@
1
- import type { FdoBusiness, FdoCustomAttribute } from "@feedmepos/core";
1
+ import type { FdoBusiness, FdoCustomAttribute } from "@feedmepos/core/entity";
2
2
  export interface UpdateBusinessProfile {
3
3
  name: string;
4
4
  url?: string;
@@ -1,5 +1,5 @@
1
1
  import { FoodCourtCreateDto, FoodCourtDto, FoodCourtUpdateDto } from "@feedmepos/ordering-model";
2
- import type { FdoRestaurant } from "@feedmepos/core";
2
+ import type { FdoRestaurant } from "@feedmepos/core/entity";
3
3
  export declare const foodCourtApi: {
4
4
  read(restaurantId: string): Promise<FoodCourtDto[]>;
5
5
  readById(restaurantId: string, id: string): Promise<FoodCourtDto>;
@@ -1,5 +1,5 @@
1
1
  import type { ExtendedRestaurant } from "@/types/restaurant";
2
- import type { FdoProfile, FdoRestaurant } from "@feedmepos/core";
2
+ import type { FdoProfile, FdoRestaurant } from "@feedmepos/core/entity";
3
3
  import { type AxiosResponse } from "axios";
4
4
  export type RestaurantAttributes = Record<string, string>;
5
5
  export declare function formatRestaurant(restaurant: FdoRestaurant): ExtendedRestaurant;
@@ -1,7 +1,6 @@
1
1
  import enUS from "./locales/en-US.json";
2
2
  export { routers } from "./router/shared";
3
- export { default as FmApp } from "./App.vue";
4
- export declare function initSettings(): Promise<void>;
3
+ export declare const FmApp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
4
  export type AppMessagesSchema = typeof enUS;
6
5
  export declare const i18nMessages: {
7
6
  "en-US": {
@@ -41,8 +41,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
41
41
  required: true;
42
42
  };
43
43
  }>> & Readonly<{}>, {
44
- initialValue: RestaurantDialogData;
45
44
  restaurantId: string;
45
+ initialValue: RestaurantDialogData;
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
47
47
  trigger?(_: {
48
48
  trigger: (restaurantId?: string | undefined, initialValue?: RestaurantDialogData | undefined) => void;
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
4
4
  type: PropType<{
5
5
  type: "string" | "number" | "boolean" | "date";
6
6
  key: string;
7
- entity: "item" | "restaurant";
7
+ entity: "restaurant" | "item";
8
8
  }>;
9
9
  default: undefined;
10
10
  };
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
16
16
  type: PropType<{
17
17
  type: "string" | "number" | "boolean" | "date";
18
18
  key: string;
19
- entity: "item" | "restaurant";
19
+ entity: "restaurant" | "item";
20
20
  }>;
21
21
  default: undefined;
22
22
  };
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
24
24
  initialValue: {
25
25
  type: "string" | "number" | "boolean" | "date";
26
26
  key: string;
27
- entity: "item" | "restaurant";
27
+ entity: "restaurant" | "item";
28
28
  };
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
30
30
  default?(_: {
@@ -1,2 +1,2 @@
1
- import { FdoBusiness, FdoRestaurant } from "@feedmepos/core";
1
+ import { FdoBusiness, FdoRestaurant } from "@feedmepos/core/entity";
2
2
  export declare function canCreateRestaurant(business: FdoBusiness, restaurants: FdoRestaurant[]): boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { FdoProfile, FdoAddress } from "@feedmepos/core";
1
+ import { FdoProfile, FdoAddress } from "@feedmepos/core/entity";
2
2
  export interface Address extends FdoAddress {
3
3
  formatted: string;
4
4
  isValidPostcode: boolean;
@@ -0,0 +1 @@
1
+ export declare function initSettings(): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { FdoProfile } from "@feedmepos/core";
1
+ import type { FdoProfile } from "@feedmepos/core/entity";
2
2
  import type { ExtendedRestaurant } from "@/types/restaurant";
3
3
  type UpdateRestaurantData = {
4
4
  newThumbnailPhoto?: File;
@@ -1,27 +1,27 @@
1
- import { type FdoCustomAttribute } from "@feedmepos/core";
1
+ import { type FdoCustomAttribute } from "@feedmepos/core/entity";
2
2
  export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<"mf-settings-attribute-settings", import("pinia")._UnwrapAll<Pick<{
3
3
  customAttributes: import("vue").Ref<{
4
4
  type: "string" | "number" | "boolean" | "date";
5
5
  key: string;
6
- entity: "item" | "restaurant";
6
+ entity: "restaurant" | "item";
7
7
  }[], {
8
8
  type: "string" | "number" | "boolean" | "date";
9
9
  key: string;
10
- entity: "item" | "restaurant";
10
+ entity: "restaurant" | "item";
11
11
  }[] | {
12
12
  type: "string" | "number" | "boolean" | "date";
13
13
  key: string;
14
- entity: "item" | "restaurant";
14
+ entity: "restaurant" | "item";
15
15
  }[]>;
16
16
  restaurantAttributes: import("vue").ComputedRef<{
17
17
  type: "string" | "number" | "boolean" | "date";
18
18
  key: string;
19
- entity: "item" | "restaurant";
19
+ entity: "restaurant" | "item";
20
20
  }[]>;
21
21
  itemAttributes: import("vue").ComputedRef<{
22
22
  type: "string" | "number" | "boolean" | "date";
23
23
  key: string;
24
- entity: "item" | "restaurant";
24
+ entity: "restaurant" | "item";
25
25
  }[]>;
26
26
  readAttributeSettings: () => Promise<void>;
27
27
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
@@ -30,25 +30,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
30
30
  customAttributes: import("vue").Ref<{
31
31
  type: "string" | "number" | "boolean" | "date";
32
32
  key: string;
33
- entity: "item" | "restaurant";
33
+ entity: "restaurant" | "item";
34
34
  }[], {
35
35
  type: "string" | "number" | "boolean" | "date";
36
36
  key: string;
37
- entity: "item" | "restaurant";
37
+ entity: "restaurant" | "item";
38
38
  }[] | {
39
39
  type: "string" | "number" | "boolean" | "date";
40
40
  key: string;
41
- entity: "item" | "restaurant";
41
+ entity: "restaurant" | "item";
42
42
  }[]>;
43
43
  restaurantAttributes: import("vue").ComputedRef<{
44
44
  type: "string" | "number" | "boolean" | "date";
45
45
  key: string;
46
- entity: "item" | "restaurant";
46
+ entity: "restaurant" | "item";
47
47
  }[]>;
48
48
  itemAttributes: import("vue").ComputedRef<{
49
49
  type: "string" | "number" | "boolean" | "date";
50
50
  key: string;
51
- entity: "item" | "restaurant";
51
+ entity: "restaurant" | "item";
52
52
  }[]>;
53
53
  readAttributeSettings: () => Promise<void>;
54
54
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
@@ -57,25 +57,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
57
57
  customAttributes: import("vue").Ref<{
58
58
  type: "string" | "number" | "boolean" | "date";
59
59
  key: string;
60
- entity: "item" | "restaurant";
60
+ entity: "restaurant" | "item";
61
61
  }[], {
62
62
  type: "string" | "number" | "boolean" | "date";
63
63
  key: string;
64
- entity: "item" | "restaurant";
64
+ entity: "restaurant" | "item";
65
65
  }[] | {
66
66
  type: "string" | "number" | "boolean" | "date";
67
67
  key: string;
68
- entity: "item" | "restaurant";
68
+ entity: "restaurant" | "item";
69
69
  }[]>;
70
70
  restaurantAttributes: import("vue").ComputedRef<{
71
71
  type: "string" | "number" | "boolean" | "date";
72
72
  key: string;
73
- entity: "item" | "restaurant";
73
+ entity: "restaurant" | "item";
74
74
  }[]>;
75
75
  itemAttributes: import("vue").ComputedRef<{
76
76
  type: "string" | "number" | "boolean" | "date";
77
77
  key: string;
78
- entity: "item" | "restaurant";
78
+ entity: "restaurant" | "item";
79
79
  }[]>;
80
80
  readAttributeSettings: () => Promise<void>;
81
81
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { FdoRestaurant } from "@feedmepos/core";
1
+ import { FdoRestaurant } from "@feedmepos/core/entity";
2
2
  import type { Profile } from "@/extensions/profile";
3
3
  export interface ExtendedRestaurant extends FdoRestaurant {
4
4
  id: string;