@feedmepos/mf-settings 0.0.58 → 0.0.60-prod

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 (35) hide show
  1. package/dist/{App-854f8c7c.js → App-6764d848.js} +98 -107
  2. package/dist/Business-b47a567c.js +12067 -0
  3. package/dist/{CreateBusiness-fa4096f9.js → CreateBusiness-a76b0aad.js} +12 -11
  4. package/dist/{FoodCourt-0a28a67f.js → FoodCourt-1aa87d54.js} +13 -11
  5. package/dist/{LicenseOrder-86aa7996.js → LicenseOrder-bd3d3012.js} +8 -8
  6. package/dist/ReasonTemplate-412d40c7.js +2234 -0
  7. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js +88 -0
  8. package/dist/{Tagging-5fcdf95d.js → Tagging-081df4ce.js} +8 -7
  9. package/dist/TemplateBuilder-3e34e9e8.js +27 -0
  10. package/dist/_plugin-vue_export-helper-dad06003.js +9 -0
  11. package/dist/{app-59ccea16.js → app-b53618fd.js} +320 -66
  12. package/dist/app.js +4 -3
  13. package/dist/apps/mf-settings/src/View/ReasonTemplate.vue.d.ts +2 -0
  14. package/dist/apps/mf-settings/src/api/index.d.ts +2 -0
  15. package/dist/apps/mf-settings/src/app.d.ts +123 -0
  16. package/dist/apps/mf-settings/src/components/reason/ReasonTemplateForm.vue.d.ts +28 -0
  17. package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +2 -2
  18. package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +9 -0
  19. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{business-ad1b9825.js → business-74c64909.js} +1 -1
  21. package/dist/createForm-d3b97d2e.js +50 -0
  22. package/dist/dayjs.min-2edeb0fb.js +310 -0
  23. package/dist/index-33f7f731.js +17967 -0
  24. package/dist/{index-71e4b8aa.js → index-5db6bbb6.js} +1037 -1026
  25. package/dist/{index-759f69a1.js → index-cc4114ab.js} +1721 -1731
  26. package/dist/{map-695afd6f.js → map-54b71412.js} +527 -410
  27. package/dist/object-27ce045b.js +16 -0
  28. package/dist/rules-2bee6632.js +6 -0
  29. package/package.json +2 -2
  30. package/dist/Business-ddbd12c2.js +0 -3925
  31. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js +0 -395
  32. package/dist/TemplateBuilder-54a34178.js +0 -27
  33. package/dist/index-e68421c3.js +0 -18030
  34. package/dist/object-8ac0c0d8.js +0 -63
  35. package/dist/rules-c9fa22f8.js +0 -13
package/dist/app.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as e, i as F, r as f } from "./app-59ccea16.js";
2
+ import { F as a, R as n, i as F, r as R } from "./app-b53618fd.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
6
6
  import "@feedmepos/mf-common";
7
7
  import "@feedmepos/mf-e-invoice";
8
8
  export {
9
- e as FmApp,
9
+ a as FmApp,
10
+ n as ReasonTemplateView,
10
11
  F as i18nMessages,
11
- f as routers
12
+ R as routers
12
13
  };
@@ -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;
@@ -5,3 +5,5 @@ export declare const businessClientInstance: () => AxiosInstance;
5
5
  export declare const restaurantClientInstance: (restaurantId: any, prefix?: string) => AxiosInstance;
6
6
  export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;
7
7
  export declare function getData<T>(response: AxiosResponse<T>): T;
8
+ export declare function readRestaurantSetting(restaurantId: string): Promise<any>;
9
+ export declare function setRestaurantSetting(restaurantId: string, data: any): Promise<any>;
@@ -587,6 +587,67 @@ export declare const i18nMessages: {
587
587
  title: string;
588
588
  subtitle: string;
589
589
  };
590
+ reasonTemplate: {
591
+ title: string;
592
+ addTemplate: string;
593
+ actions: {
594
+ void: string;
595
+ refund: string;
596
+ rejectOrder: string;
597
+ };
598
+ table: {
599
+ action: string;
600
+ reasons: string;
601
+ compulsory: string;
602
+ allowOther: string;
603
+ };
604
+ emptyState: {
605
+ title: string;
606
+ description: string;
607
+ };
608
+ form: {
609
+ title: {
610
+ add: string;
611
+ edit: string;
612
+ };
613
+ message: {
614
+ created: string;
615
+ updated: string;
616
+ };
617
+ sections: {
618
+ basic: {
619
+ title: string;
620
+ action: {
621
+ label: string;
622
+ };
623
+ newReason: {
624
+ label: string;
625
+ placeholder: string;
626
+ };
627
+ reasons: {
628
+ label: string;
629
+ min_required: string;
630
+ name_required: string;
631
+ };
632
+ };
633
+ options: {
634
+ title: string;
635
+ compulsory: {
636
+ label: string;
637
+ sublabel: string;
638
+ };
639
+ allowOther: {
640
+ label: string;
641
+ sublabel: string;
642
+ };
643
+ };
644
+ };
645
+ };
646
+ delete: {
647
+ title: string;
648
+ message: string;
649
+ };
650
+ };
590
651
  };
591
652
  };
592
653
  "zh-CN": {
@@ -1178,8 +1239,70 @@ export declare const i18nMessages: {
1178
1239
  title: string;
1179
1240
  subtitle: string;
1180
1241
  };
1242
+ reasonTemplate: {
1243
+ title: string;
1244
+ addTemplate: string;
1245
+ actions: {
1246
+ void: string;
1247
+ refund: string;
1248
+ rejectOrder: string;
1249
+ };
1250
+ table: {
1251
+ action: string;
1252
+ reasons: string;
1253
+ compulsory: string;
1254
+ allowOther: string;
1255
+ };
1256
+ emptyState: {
1257
+ title: string;
1258
+ description: string;
1259
+ };
1260
+ form: {
1261
+ title: {
1262
+ add: string;
1263
+ edit: string;
1264
+ };
1265
+ message: {
1266
+ created: string;
1267
+ updated: string;
1268
+ };
1269
+ sections: {
1270
+ basic: {
1271
+ title: string;
1272
+ action: {
1273
+ label: string;
1274
+ };
1275
+ newReason: {
1276
+ label: string;
1277
+ placeholder: string;
1278
+ };
1279
+ reasons: {
1280
+ label: string;
1281
+ min_required: string;
1282
+ name_required: string;
1283
+ };
1284
+ };
1285
+ options: {
1286
+ title: string;
1287
+ compulsory: {
1288
+ label: string;
1289
+ sublabel: string;
1290
+ };
1291
+ allowOther: {
1292
+ label: string;
1293
+ sublabel: string;
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ delete: {
1299
+ title: string;
1300
+ message: string;
1301
+ };
1302
+ };
1181
1303
  };
1182
1304
  };
1183
1305
  "th-TH": any;
1184
1306
  "zh-Hant": any;
1185
1307
  };
1308
+ export declare const ReasonTemplateView: any;
@@ -0,0 +1,28 @@
1
+ import { type FdoReasonTemplate } from "@feedmepos/core/entity";
2
+ interface Props {
3
+ initialValue?: FdoReasonTemplate;
4
+ onSave: (template: FdoReasonTemplate) => Promise<void>;
5
+ }
6
+ declare function trigger(): void;
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {
8
+ trigger: typeof trigger;
9
+ }, {}, {}, {}, 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
+ trigger?(_: {
11
+ trigger: typeof trigger;
12
+ }): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,5 +1,5 @@
1
1
  import { type FdoCustomAttribute } from "@feedmepos/core/entity";
2
- export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<"mf-settings-attribute-settings", import("pinia")._UnwrapAll<Pick<{
2
+ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<"mf-settings-attribute-settings", Pick<{
3
3
  customAttributes: import("vue").Ref<{
4
4
  type: "string" | "number" | "boolean" | "date";
5
5
  key: string;
@@ -26,7 +26,7 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
26
26
  readAttributeSettings: () => Promise<void>;
27
27
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
28
28
  deleteAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
29
- }, "customAttributes">>, Pick<{
29
+ }, "customAttributes">, Pick<{
30
30
  customAttributes: import("vue").Ref<{
31
31
  type: "string" | "number" | "boolean" | "date";
32
32
  key: string;
@@ -0,0 +1,9 @@
1
+ import { FdoReasonTemplate } from "@feedmepos/core/entity";
2
+ export declare enum F_REASON_TEMPLATE_ACTION {
3
+ VOID = "VOID",
4
+ REFUND = "REFUND",
5
+ REJECT_ORDER = "REJECT_ORDER"
6
+ }
7
+ export interface FEReasonTemplate extends FdoReasonTemplate {
8
+ id: string;
9
+ }