@feedmepos/mf-menu 0.32.11-dev → 0.32.12-dev
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/{App-BMQJXzfs.js → App-D0JZMDPU.js} +14 -10
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BwPzEkZi.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5fI7pDt.js} +3 -3
- package/dist/{Catalog-DD9pz5om.js → Catalog-BIVVmu4F.js} +6 -6
- package/dist/{Category-Dbxxz-jo.js → Category-Cmf6dD5G.js} +6 -6
- package/dist/{Category-B_PZ_G_u.js → Category-DoEzIDPA.js} +4 -4
- package/dist/{CookingGuide-DHnJp0ti.js → CookingGuide-DxQ5vDF5.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwLbvoN2.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BQscJC6_.js} +1 -1
- package/dist/{Group-D5DNbNUE.js → Group-EAACXFDr.js} +1 -1
- package/dist/{Group-TogIQUnh.js → Group-l59a7MQy.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BtiHaKaM.js → Group.vue_vue_type_script_setup_true_lang-CdIKM2jO.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DRYeG7wX.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CendqbFI.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CX-Q1qT4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-B3I3jPxC.js} +3891 -3871
- package/dist/{Ingredient-B_Cu5XUX.js → Ingredient-B7kPk3oV.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-JMpeJ55c.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CzpY9mWg.js} +2 -2
- package/dist/{LinkProductSideSheet-qp0TBdii.js → LinkProductSideSheet-CeXhbGnn.js} +208 -213
- package/dist/{MenuSetting-CuMpJ9E0.js → MenuSetting-CCtL2qui.js} +5 -5
- package/dist/{PrintRoute-DQVaF9Jy.js → PrintRoute-DMLRAZJg.js} +4 -4
- package/dist/{Product-DZkUA6iZ.js → Product-BAcGhIEf.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BJfoQDpz.js → Product.vue_vue_type_script_setup_true_lang-V8-_F7WQ.js} +14 -14
- package/dist/{ProductInternalTools-KzWVZEWb.js → ProductInternalTools-BrQwrwyG.js} +28 -29
- package/dist/{Products-Bo7V88vF.js → Products-O5YVYdlT.js} +11 -11
- package/dist/Publish-CtKo19_y.js +1262 -0
- package/dist/{Recipe-DDIYbpDs.js → Recipe-ORx3rnvx.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CEtK-cui.js → RuleView.vue_vue_type_script_setup_true_lang-biTDrokQ.js} +2 -2
- package/dist/{Scheduler-CnRzjrae.js → Scheduler-B7v3W8eG.js} +3 -3
- package/dist/{ServingSequence-BI-_zfXH.js → ServingSequence-DczYH8BU.js} +3 -3
- package/dist/{Setting-CObzXORw.js → Setting-fNLED9R0.js} +5 -5
- package/dist/{Subcategory-SwoAI9Ll.js → Subcategory-DjK1PTao.js} +4 -4
- package/dist/{Takeaway-CoRzd77l.js → Takeaway-ChMYycO_.js} +1 -1
- package/dist/{Takeaway-DtwZd8AR.js → Takeaway-LjEJbd4e.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Dug9sZJl.js → Takeaway.vue_vue_type_script_setup_true_lang-CMdZM60P.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-1lzIehRE.js → Thumbnail.vue_vue_type_script_setup_true_lang-Yh_aUxqS.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-NjBNW9ch.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CEmOkHc5.js} +21 -20
- package/dist/{Unit-BkIkJdrO.js → Unit-DGZ9xVpM.js} +2 -2
- package/dist/{Variant-DNqk4G2y.js → Variant-CUasE1B5.js} +3 -3
- package/dist/{_id_-uch349de.js → _id_-CXV1a1UW.js} +10 -10
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-C5IMDITK.js → app--9ZjQ_dH.js} +35 -35
- package/dist/{app-0e_XOvyp.js → app-E7mszfIB.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +9 -3
- package/dist/apps/mf-menu/src/app.d.ts +47 -0
- package/dist/apps/mf-menu/src/components/ProgressBar.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/calender/DateTimePicker.vue.d.ts +73 -0
- package/dist/apps/mf-menu/src/components/calender/FmCalendar.vue.d.ts +80 -0
- package/dist/apps/mf-menu/src/components/calender/FmDateRangeYearMonthPicker.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/components/calender/FmTimeInput.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/calender/TimeInput.vue.d.ts +32 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTreeNode.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +5 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductPrice.vue.d.ts +5 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +9 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +9 -1
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductPrice.vue.d.ts +5 -1
- package/dist/apps/mf-menu/src/views/Publish/PublishProgressView.vue.d.ts +198 -0
- package/dist/apps/mf-menu/src/views/Publish/PublishRestaurantSelector.vue.d.ts +17 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BLErS-90.js → linked-status-Doclb1U6.js} +2 -2
- package/dist/assets/{override-menu-Bns6Vkk-.js → override-menu-BWkFILg4.js} +2 -2
- package/dist/assets/{validate-menu-v_LSEIFo.js → validate-menu-BS4T4zZm.js} +2 -2
- package/dist/{catalog-BuRtQI40.js → catalog-PkvD9BV_.js} +1 -1
- package/dist/{catalogSetting-B6GcQUXu.js → catalogSetting-Cd9aIJs2.js} +1 -1
- package/dist/{category-CztP5_ri.js → category-1NLh1OVo.js} +1 -1
- package/dist/{currency-qSlZ481F.js → currency-J1RZcMOx.js} +1 -1
- package/dist/dayjs.min-CXjOYO85.js +6 -0
- package/dist/{index-BbIeWj3n.js → index-BPpNi-Hh.js} +3 -3
- package/dist/{index-DMdZCp2g.js → index-BiCSP8Fy.js} +1 -1
- package/dist/{index-9XceRQZF.js → index-CisutoS9.js} +1 -1
- package/dist/{index-CJg7adB_.js → index-D9h3wl03.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-CgDE93jl.js → index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js} +4479 -4432
- package/dist/{item-ByIhAQnU.js → item-Ctnd-m_D.js} +956 -925
- package/dist/{jszip.min-C4evSkfb.js → jszip.min-Bwz_vC7R.js} +353 -353
- package/dist/{menu-VanBYNI5.js → menu-DpTANxng.js} +1 -1
- package/dist/{menuV2-Pl32HC6Y.js → menuV2-BBMwj4p0.js} +61 -61
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-COST6Ohr.js → priceTier-DAG2W_y3.js} +1 -1
- package/dist/{scheduler-DIFsyx8F.js → scheduler-DYuLkKsc.js} +4 -4
- package/dist/{subcategory-D_YPCzZt.js → subcategory-BJ0oG92x.js} +2 -2
- package/dist/{toExcel-BTHGNmrM.js → toExcel-C5_3G21q.js} +2 -2
- package/dist/tooltip-B5BiPMx9.js +32 -0
- package/dist/{unit-scfKpGAE.js → unit-CNwmGzjU.js} +2 -2
- package/package.json +2 -3
- package/dist/Publish-B1cSJdud.js +0 -586
- package/dist/iteration-Brm6sHmJ.js +0 -27
- package/dist/tooltip-CQW9YRO5.js +0 -60
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore as r } from "pinia";
|
|
2
|
-
import { a8 as a, a9 as s, aa as l } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a8 as a, a9 as s, aa as l } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
3
3
|
const u = {
|
|
4
4
|
async read() {
|
|
5
5
|
return a(await s().get("/public-setting"));
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FdoMasterCatalogSetting, FdoMenuV4, FdtoRestaurantWithMenuV4, FdtoPublishMenuRestaurant, FdoMenuV4PriceTierSetting, FdoRuleGroupSettings } from "@feedmepos/menu/entity";
|
|
1
|
+
import type { FdoMasterCatalogSetting, FdoMenuV4, FdtoRestaurantWithMenuV4, FdtoPublishMenuRestaurant, FdoMenuV4PriceTierSetting, FdoRuleGroupSettings, FdoPublishMenuMeta } from "@feedmepos/menu/entity";
|
|
2
2
|
import { type UpdateMenuRequest } from "@feedmepos/menu/manager";
|
|
3
3
|
import { useCoreStore } from "@feedmepos/mf-common";
|
|
4
4
|
export type MenuV4Doc = FdoMenuV4 & {
|
|
@@ -25,6 +25,9 @@ export interface PaginatedResponse<T> {
|
|
|
25
25
|
totalResources: number;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
export type PublishMenuMetaDoc = FdoPublishMenuMeta & {
|
|
29
|
+
_rev: string;
|
|
30
|
+
};
|
|
28
31
|
export declare const menuService: {
|
|
29
32
|
coreStore: () => ReturnType<typeof useCoreStore>;
|
|
30
33
|
url: string;
|
|
@@ -35,8 +38,8 @@ export declare const menuService: {
|
|
|
35
38
|
updateMenuSetting: (req: UpdateMenuSettingReq) => Promise<MenuV4Doc>;
|
|
36
39
|
updateMasterCatalog: (dto: FdoMasterCatalogSetting) => Promise<MenuV4Doc>;
|
|
37
40
|
publishMenu: (dto: FdtoPublishMenuRestaurant) => Promise<boolean>;
|
|
38
|
-
publishMultipleMenu: (restaurantIds: string[]) => Promise<boolean>;
|
|
39
|
-
publishAllMenu: () => Promise<boolean>;
|
|
41
|
+
publishMultipleMenu: (restaurantIds: string[], schedulerTime?: string) => Promise<boolean>;
|
|
42
|
+
publishAllMenu: (schedulerTime?: string) => Promise<boolean>;
|
|
40
43
|
revertRestaurantMenu: (restaurantId: string) => Promise<boolean>;
|
|
41
44
|
importMenu: (menu: FdoMenuV4) => Promise<MenuV4Doc>;
|
|
42
45
|
readRestaurantsWithMenu: () => Promise<FdtoRestaurantWithMenuV4[]>;
|
|
@@ -45,4 +48,7 @@ export declare const menuService: {
|
|
|
45
48
|
limit?: number;
|
|
46
49
|
}) => Promise<PaginatedResponse<FdtoRestaurantWithMenuV4>>;
|
|
47
50
|
migrateV3ToV4: () => Promise<MenuV4Doc>;
|
|
51
|
+
getPublishMenuMeta: () => Promise<FdoPublishMenuMeta>;
|
|
52
|
+
getPublishRestaurantsProgress: () => Promise<number>;
|
|
53
|
+
deleteSchedulerPublish: (schedulerTime: string) => Promise<FdoPublishMenuMeta>;
|
|
48
54
|
};
|
|
@@ -1495,6 +1495,12 @@ export declare const i18nMessages: {
|
|
|
1495
1495
|
publish_all: string;
|
|
1496
1496
|
refresh: string;
|
|
1497
1497
|
revert: string;
|
|
1498
|
+
publish_progress: string;
|
|
1499
|
+
add_scheduler_publish: string;
|
|
1500
|
+
snackbar: {
|
|
1501
|
+
all_published: string;
|
|
1502
|
+
some_failed: string;
|
|
1503
|
+
};
|
|
1498
1504
|
};
|
|
1499
1505
|
labels: {
|
|
1500
1506
|
main_version: string;
|
|
@@ -1526,6 +1532,23 @@ export declare const i18nMessages: {
|
|
|
1526
1532
|
cancel: string;
|
|
1527
1533
|
};
|
|
1528
1534
|
};
|
|
1535
|
+
scheduler: {
|
|
1536
|
+
calender: {
|
|
1537
|
+
day: {
|
|
1538
|
+
sun: string;
|
|
1539
|
+
mon: string;
|
|
1540
|
+
tue: string;
|
|
1541
|
+
wed: string;
|
|
1542
|
+
thu: string;
|
|
1543
|
+
fri: string;
|
|
1544
|
+
sat: string;
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
date: {
|
|
1548
|
+
monthFormat: string;
|
|
1549
|
+
yearFormat: string;
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1529
1552
|
};
|
|
1530
1553
|
tax_setting: {
|
|
1531
1554
|
title: string;
|
|
@@ -3176,6 +3199,12 @@ export declare const i18nMessages: {
|
|
|
3176
3199
|
publish_all: string;
|
|
3177
3200
|
refresh: string;
|
|
3178
3201
|
revert: string;
|
|
3202
|
+
publish_progress: string;
|
|
3203
|
+
add_scheduler_publish: string;
|
|
3204
|
+
snackbar: {
|
|
3205
|
+
all_published: string;
|
|
3206
|
+
some_failed: string;
|
|
3207
|
+
};
|
|
3179
3208
|
};
|
|
3180
3209
|
labels: {
|
|
3181
3210
|
main_version: string;
|
|
@@ -4856,6 +4885,12 @@ export declare const i18nMessages: {
|
|
|
4856
4885
|
publish_all: string;
|
|
4857
4886
|
refresh: string;
|
|
4858
4887
|
revert: string;
|
|
4888
|
+
publish_progress: string;
|
|
4889
|
+
add_scheduler_publish: string;
|
|
4890
|
+
snackbar: {
|
|
4891
|
+
all_published: string;
|
|
4892
|
+
some_failed: string;
|
|
4893
|
+
};
|
|
4859
4894
|
};
|
|
4860
4895
|
labels: {
|
|
4861
4896
|
main_version: string;
|
|
@@ -6537,6 +6572,12 @@ export declare const i18nMessages: {
|
|
|
6537
6572
|
publish_all: string;
|
|
6538
6573
|
refresh: string;
|
|
6539
6574
|
revert: string;
|
|
6575
|
+
publish_progress: string;
|
|
6576
|
+
add_scheduler_publish: string;
|
|
6577
|
+
snackbar: {
|
|
6578
|
+
all_published: string;
|
|
6579
|
+
some_failed: string;
|
|
6580
|
+
};
|
|
6540
6581
|
};
|
|
6541
6582
|
labels: {
|
|
6542
6583
|
main_version: string;
|
|
@@ -8218,6 +8259,12 @@ export declare const i18nMessages: {
|
|
|
8218
8259
|
publish_all: string;
|
|
8219
8260
|
refresh: string;
|
|
8220
8261
|
revert: string;
|
|
8262
|
+
publish_progress: string;
|
|
8263
|
+
add_scheduler_publish: string;
|
|
8264
|
+
snackbar: {
|
|
8265
|
+
all_published: string;
|
|
8266
|
+
some_failed: string;
|
|
8267
|
+
};
|
|
8221
8268
|
};
|
|
8222
8269
|
labels: {
|
|
8223
8270
|
main_version: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
bgcolor?: string | undefined;
|
|
3
|
+
completed?: number | undefined;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
bgcolor?: string | undefined;
|
|
6
|
+
completed?: number | undefined;
|
|
7
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type FormChildProps } from "@feedmepos/ui-library";
|
|
2
|
+
interface FmDatePickerProps extends FormChildProps {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
showValidBorder?: boolean;
|
|
5
|
+
/** The mininmum date shown in matrix */
|
|
6
|
+
min?: string;
|
|
7
|
+
/** The maximum date shown in matrix */
|
|
8
|
+
max?: string;
|
|
9
|
+
/** Z-index of the calendar */
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmDatePickerProps>, {
|
|
13
|
+
label: string;
|
|
14
|
+
labelMark: string;
|
|
15
|
+
labelInfo: string;
|
|
16
|
+
disabled: undefined;
|
|
17
|
+
focused: boolean;
|
|
18
|
+
rules: () => never[];
|
|
19
|
+
helperText: string;
|
|
20
|
+
helperState: string;
|
|
21
|
+
showValidBorder: boolean;
|
|
22
|
+
min: () => string;
|
|
23
|
+
max: () => string;
|
|
24
|
+
zIndex: undefined;
|
|
25
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"update:schedulerTime": (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmDatePickerProps>, {
|
|
28
|
+
label: string;
|
|
29
|
+
labelMark: string;
|
|
30
|
+
labelInfo: string;
|
|
31
|
+
disabled: undefined;
|
|
32
|
+
focused: boolean;
|
|
33
|
+
rules: () => never[];
|
|
34
|
+
helperText: string;
|
|
35
|
+
helperState: string;
|
|
36
|
+
showValidBorder: boolean;
|
|
37
|
+
min: () => string;
|
|
38
|
+
max: () => string;
|
|
39
|
+
zIndex: undefined;
|
|
40
|
+
}>>> & Readonly<{
|
|
41
|
+
"onUpdate:schedulerTime"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
max: string;
|
|
45
|
+
label: string;
|
|
46
|
+
zIndex: number;
|
|
47
|
+
rules: import("@feedmepos/ui-library").ValidationRule[];
|
|
48
|
+
min: string;
|
|
49
|
+
labelMark: "required" | "optional" | "none";
|
|
50
|
+
labelInfo: string;
|
|
51
|
+
focused: boolean;
|
|
52
|
+
helperText: string;
|
|
53
|
+
helperState: "error" | "success" | "warning" | "none";
|
|
54
|
+
showValidBorder: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
59
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
60
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
61
|
+
} : {
|
|
62
|
+
type: import('vue').PropType<T[K]>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_WithDefaults<P, D> = {
|
|
67
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
68
|
+
default: D[K];
|
|
69
|
+
}> : P[K];
|
|
70
|
+
};
|
|
71
|
+
type __VLS_Prettify<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import dayjs, { type Dayjs } from "dayjs";
|
|
2
|
+
type CellClassStatus = ((date: Dayjs) => boolean) | boolean;
|
|
3
|
+
type ClassAcceptance = Array<string | null | undefined> | Record<string, boolean | null | undefined> | string | null | undefined;
|
|
4
|
+
interface Props {
|
|
5
|
+
days: {
|
|
6
|
+
date: Dayjs;
|
|
7
|
+
isCurrentMonth: boolean;
|
|
8
|
+
}[][];
|
|
9
|
+
dayCellClass?: {
|
|
10
|
+
status?: {
|
|
11
|
+
isSelected?: CellClassStatus;
|
|
12
|
+
isStart?: CellClassStatus;
|
|
13
|
+
isEnd?: CellClassStatus;
|
|
14
|
+
isBetween?: CellClassStatus;
|
|
15
|
+
};
|
|
16
|
+
className?: ClassAcceptance | ((date: Dayjs) => ClassAcceptance);
|
|
17
|
+
} | ((date: Dayjs) => {
|
|
18
|
+
status?: {
|
|
19
|
+
isSelected?: boolean;
|
|
20
|
+
isStart?: boolean;
|
|
21
|
+
isEnd?: boolean;
|
|
22
|
+
isBetween?: boolean;
|
|
23
|
+
};
|
|
24
|
+
className?: ClassAcceptance;
|
|
25
|
+
});
|
|
26
|
+
onDayClick: (date: {
|
|
27
|
+
date: Dayjs;
|
|
28
|
+
isCurrentMonth: boolean;
|
|
29
|
+
}) => void;
|
|
30
|
+
onCellMouseOver?: (date: Dayjs) => void;
|
|
31
|
+
cellSize?: "md" | "lg";
|
|
32
|
+
}
|
|
33
|
+
export type CalendarProps = Props;
|
|
34
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
35
|
+
cellSize: string;
|
|
36
|
+
dayCellClass: undefined;
|
|
37
|
+
onCellMouseOver: undefined;
|
|
38
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
39
|
+
cellSize: string;
|
|
40
|
+
dayCellClass: undefined;
|
|
41
|
+
onCellMouseOver: undefined;
|
|
42
|
+
}>>> & Readonly<{}>, {
|
|
43
|
+
dayCellClass: {
|
|
44
|
+
status?: {
|
|
45
|
+
isSelected?: CellClassStatus | undefined;
|
|
46
|
+
isStart?: CellClassStatus | undefined;
|
|
47
|
+
isEnd?: CellClassStatus | undefined;
|
|
48
|
+
isBetween?: CellClassStatus | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
className?: ClassAcceptance | ((date: dayjs.Dayjs) => ClassAcceptance);
|
|
51
|
+
} | ((date: dayjs.Dayjs) => {
|
|
52
|
+
status?: {
|
|
53
|
+
isSelected?: boolean | undefined;
|
|
54
|
+
isStart?: boolean | undefined;
|
|
55
|
+
isEnd?: boolean | undefined;
|
|
56
|
+
isBetween?: boolean | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
className?: ClassAcceptance;
|
|
59
|
+
});
|
|
60
|
+
onCellMouseOver: (date: dayjs.Dayjs) => void;
|
|
61
|
+
cellSize: "md" | "lg";
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type __VLS_WithDefaults<P, D> = {
|
|
74
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
75
|
+
default: D[K];
|
|
76
|
+
}> : P[K];
|
|
77
|
+
};
|
|
78
|
+
type __VLS_Prettify<T> = {
|
|
79
|
+
[K in keyof T]: T[K];
|
|
80
|
+
} & {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Dayjs } from "dayjs";
|
|
2
|
+
export interface FmDateRangeMonthPickerProps {
|
|
3
|
+
modelValue: Dayjs;
|
|
4
|
+
picker: "month" | "year";
|
|
5
|
+
min: string;
|
|
6
|
+
max: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FmDateRangeMonthPickerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: Dayjs) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FmDateRangeMonthPickerProps>>> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: Dayjs) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare enum Period {
|
|
3
|
+
AM = "AM",
|
|
4
|
+
PM = "PM"
|
|
5
|
+
}
|
|
6
|
+
export interface TimeInputData {
|
|
7
|
+
hours: number;
|
|
8
|
+
minutes: number;
|
|
9
|
+
period: Period;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: PropType<TimeInputData>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:model-value": (newValue: TimeInputData) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: PropType<TimeInputData>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{
|
|
24
|
+
"onUpdate:model-value"?: ((newValue: TimeInputData) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
min: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
max: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:model-value": (newValue: number) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
min: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
max: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
"onUpdate:model-value"?: ((newValue: number) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import "vue-advanced-cropper/dist/style.css";
|
|
2
2
|
interface Props {
|
|
3
3
|
modelValue: File | null | undefined;
|
|
4
|
+
trackingId?: string;
|
|
4
5
|
}
|
|
5
6
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
7
|
"update:model-value": (file: File) => void;
|
|
7
8
|
"reset:model-value": () => void;
|
|
9
|
+
"update:tracking-id": (trackingId: string | undefined) => void;
|
|
8
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
9
11
|
"onUpdate:model-value"?: ((file: File) => any) | undefined;
|
|
10
12
|
"onReset:model-value"?: (() => any) | undefined;
|
|
13
|
+
"onUpdate:tracking-id"?: ((trackingId: string | undefined) => any) | undefined;
|
|
11
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
15
|
export default _default;
|
|
13
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
27
|
onToggleExpand?: (() => any) | undefined;
|
|
28
28
|
onDragStart?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
dragging: boolean;
|
|
31
30
|
expanded: boolean;
|
|
31
|
+
dragging: boolean;
|
|
32
32
|
dropTarget: boolean;
|
|
33
33
|
dropPosition: "before" | "after" | "inside" | null;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -4,6 +4,11 @@ export interface FocusedParam {
|
|
|
4
4
|
type: FocusedType;
|
|
5
5
|
id?: string;
|
|
6
6
|
}
|
|
7
|
+
export interface IFdtoMenuV4ItemTracking {
|
|
8
|
+
_thumbnailTrackingId?: string;
|
|
9
|
+
_descriptionTrackingId?: string;
|
|
10
|
+
_priceTrackingId?: string;
|
|
11
|
+
}
|
|
7
12
|
interface Props {
|
|
8
13
|
/**
|
|
9
14
|
* the initial form data for edit
|
|
@@ -6,7 +6,11 @@ interface Props {
|
|
|
6
6
|
form: Partial<FdoMenuV4Item>;
|
|
7
7
|
fallback: FdoMenuV4Item | undefined;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:form": (key: string | number | symbol, value: any) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
12
|
+
"onUpdate:form"?: ((key: string | number | symbol, value: any) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
14
|
export default _default;
|
|
11
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
16
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -5,7 +5,11 @@ interface Props {
|
|
|
5
5
|
form: Partial<FdoMenuV4Item>;
|
|
6
6
|
fallback: FdoMenuV4Item | undefined;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:form": (key: string | number | symbol, value: any) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
11
|
+
"onUpdate:form"?: ((key: string | number | symbol, value: any) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
13
|
export default _default;
|
|
10
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FdoPublishMenuMeta } from "node_modules/@feedmepos/menu/entity/publish_menu_meta.do";
|
|
1
2
|
import { type _ExtractActionsFromSetupStore, type _ExtractGettersFromSetupStore, type _ExtractStateFromSetupStore, type StoreDefinition } from "pinia";
|
|
2
3
|
import { type ComputedRef, type Ref } from "vue";
|
|
3
4
|
import { F_MENU_VERSION, type FdoDecimal, type PublishForRestaurantDto } from "@feedmepos/core-dart";
|
|
@@ -23,7 +24,9 @@ interface MenuState {
|
|
|
23
24
|
};
|
|
24
25
|
featureFlags: {
|
|
25
26
|
uniqueProductCode: boolean;
|
|
27
|
+
schedulerPublish: boolean;
|
|
26
28
|
};
|
|
29
|
+
nextSchedulerPublish: FdoPublishMenuMeta["nextSchedulePublish"];
|
|
27
30
|
}
|
|
28
31
|
interface ITaxSetting {
|
|
29
32
|
systemCode: string;
|
|
@@ -8241,6 +8244,7 @@ interface MenuStore {
|
|
|
8241
8244
|
skus: ComputedRef<FSku[]>;
|
|
8242
8245
|
rules: ComputedRef<MenuRules>;
|
|
8243
8246
|
taxSetting: ComputedRef<ITaxSetting>;
|
|
8247
|
+
runningPublishJob: ComputedRef<string | null>;
|
|
8244
8248
|
readMenu: () => Promise<void>;
|
|
8245
8249
|
readRestaurants: () => Promise<void>;
|
|
8246
8250
|
selectCatalog: (id: string | null) => void;
|
|
@@ -8250,12 +8254,15 @@ interface MenuStore {
|
|
|
8250
8254
|
migrate: () => Promise<void>;
|
|
8251
8255
|
updateMenu: (data: UpdateMenuModuleRequest | UpdateMenuModuleRequest[], performValidate?: boolean) => Promise<FdtoUpdateMenuRes | void>;
|
|
8252
8256
|
publishMenu: (dto: PublishForRestaurantDto, shouldRefreshData?: boolean) => Promise<void>;
|
|
8253
|
-
publishMultipleMenu: (restaurantIds: string[], shouldRefreshData?: boolean) => Promise<void>;
|
|
8254
|
-
publishAllMenu: () => Promise<void>;
|
|
8257
|
+
publishMultipleMenu: (restaurantIds: string[], schedulerTime?: string, shouldRefreshData?: boolean) => Promise<void>;
|
|
8258
|
+
publishAllMenu: (schedulerTime?: string) => Promise<void>;
|
|
8255
8259
|
importMenu: (menu: FdoMenuV4) => Promise<void>;
|
|
8256
8260
|
revertRestaurantMenu: (restaurantId: string) => Promise<void>;
|
|
8257
8261
|
updateMainCatalogSetting: (setting: FdoMasterCatalogSetting) => Promise<void>;
|
|
8258
8262
|
updateMenuSetting: (setting: UpdateMenuSettingReq) => Promise<void>;
|
|
8263
|
+
getNextSchedulerPublish: () => Promise<FdoPublishMenuMeta["nextSchedulePublish"]>;
|
|
8264
|
+
getPublishRestaurantsProgress: () => Promise<number>;
|
|
8265
|
+
deleteSchedulerPublish: (schedulerTime: string) => Promise<FdoPublishMenuMeta["nextSchedulePublish"]>;
|
|
8259
8266
|
encodeTax: (tax: FdoProductTaxSetting) => string;
|
|
8260
8267
|
decodeTax: (identifier: string) => FdoProductTaxSetting;
|
|
8261
8268
|
getSelectedTax: (tax: Tax | undefined | null, fallbackTax: Tax | undefined | null, taxOptions: {
|
|
@@ -7,7 +7,15 @@ interface Props {
|
|
|
7
7
|
fallback: FdoMenuV4Item | undefined;
|
|
8
8
|
thumbnail: File | null | undefined;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:form": (key: string | number | symbol, value: any) => void;
|
|
12
|
+
"update:thumbnail": (file: File | null) => void;
|
|
13
|
+
"reset:thumbnail": () => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
15
|
+
"onUpdate:form"?: ((key: string | number | symbol, value: any) => any) | undefined;
|
|
16
|
+
"onUpdate:thumbnail"?: ((file: File | null) => any) | undefined;
|
|
17
|
+
"onReset:thumbnail"?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
19
|
export default _default;
|
|
12
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -5,7 +5,11 @@ interface Props {
|
|
|
5
5
|
form: Partial<FdoMenuV4Item>;
|
|
6
6
|
fallback: FdoMenuV4Item | undefined;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:form": (key: string | number | symbol, value: any) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
11
|
+
"onUpdate:form"?: ((key: string | number | symbol, value: any) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
13
|
export default _default;
|
|
10
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|