@feedmepos/mf-order-setting 0.0.90 → 0.0.91
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/DisplaySystemView-n7Kqdw-h.js +6564 -0
- package/dist/{KioskDevicesView-WuOTJ9Fi.js → KioskDevicesView-Bz6seroM.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DdHfATyN.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-I39sE8Pe.js} +3 -3
- package/dist/{KioskSettingView-Bsja2OqT.js → KioskSettingView-Cajjh4Zm.js} +3 -3
- package/dist/{KioskView-BH5qGTM_.js → KioskView-BPSbsMi5.js} +93 -89
- package/dist/{OrderSettingsView-D6V1ztiS.js → OrderSettingsView-jPxZ3JDM.js} +5 -5
- package/dist/{app-DsMk7W2h.js → app-DIhv5ssA.js} +266 -254
- package/dist/app.js +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +18 -6
- package/dist/frontend/mf-order/src/main.d.ts +18 -6
- package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +6 -3
- package/dist/frontend/mf-order/src/modules/kiosk/bindDeviceError.d.ts +20 -0
- package/dist/frontend/mf-order/src/views/display-system/CanvasArea.vue.d.ts +48 -0
- package/dist/frontend/mf-order/src/views/display-system/DisplayLayoutCanvas.vue.d.ts +17 -14
- package/dist/frontend/mf-order/src/views/display-system/DisplayModulePickerDialog.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DGDiI0fr.js → index-Clp_YRJ2.js} +1 -1
- package/dist/{index-BUDM0Rqn.js → index-CmqNrkNl.js} +1 -1
- package/dist/{index-C2n1MV_1.js → index-vaSLX6r3.js} +2 -2
- package/dist/{order.dto-BRDWWgMV.js → order.dto-DV1qL3Q_.js} +21 -1
- package/dist/package/entity/alert/investigation.dto.d.ts +26 -0
- package/dist/package/entity/alert/lark-callback.dto.d.ts +19 -0
- package/dist/package/entity/alert/record-resolution.dto.d.ts +35 -0
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/kiosk/kiosk.do.d.ts +105 -0
- package/dist/package/entity/kiosk/kiosk.dto.d.ts +76 -0
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/locales/en-US.json +11 -4
- package/src/locales/zh-CN.json +9 -4
- package/src/modules/display-system/interface.spec.ts +90 -5
- package/src/modules/display-system/interface.ts +31 -21
- package/src/modules/kiosk/bindDeviceError.spec.ts +42 -0
- package/src/modules/kiosk/bindDeviceError.ts +40 -0
- package/src/views/display-system/CanvasArea.vue +355 -0
- package/src/views/display-system/DisplayLayoutCanvas.spec.ts +57 -0
- package/src/views/display-system/DisplayLayoutCanvas.vue +173 -298
- package/src/views/display-system/DisplayModulePickerDialog.spec.ts +71 -0
- package/src/views/display-system/DisplayModulePickerDialog.vue +107 -0
- package/src/views/display-system/DisplayTemplateEditor.spec.ts +151 -0
- package/src/views/display-system/DisplayTemplateEditor.vue +233 -193
- package/src/views/kiosk/KioskView.vue +2 -4
- package/vitest.config.ts +2 -0
- package/dist/DisplaySystemView-tosCa7Ej.js +0 -6485
- package/dist/frontend/mf-order/src/views/display-system/DisplayModulePalette.vue.d.ts +0 -13
- package/src/views/display-system/DisplayModulePalette.vue +0 -140
package/dist/app.js
CHANGED
|
@@ -128,6 +128,8 @@ export declare const i18nMessages: {
|
|
|
128
128
|
bindDevice: string;
|
|
129
129
|
bindDeviceFailed: string;
|
|
130
130
|
bindDeviceMessage: string;
|
|
131
|
+
bindDeviceNetworkError: string;
|
|
132
|
+
bindDeviceNoQuota: string;
|
|
131
133
|
bindDevicePermissionDenied: string;
|
|
132
134
|
cancel: string;
|
|
133
135
|
cancelResetPin: string;
|
|
@@ -727,21 +729,23 @@ export declare const i18nMessages: {
|
|
|
727
729
|
};
|
|
728
730
|
ui: {
|
|
729
731
|
splitAreaHint: string;
|
|
730
|
-
mergeGroupHint: string;
|
|
731
732
|
splitLimit: string;
|
|
732
733
|
moveItemUp: string;
|
|
733
734
|
moveItemDown: string;
|
|
734
735
|
removeItem: string;
|
|
735
736
|
presetAds: string;
|
|
736
737
|
emptyArea: string;
|
|
738
|
+
pickModuleTitle: string;
|
|
739
|
+
pickModuleHint: string;
|
|
740
|
+
replaceModuleConfirmTitle: string;
|
|
741
|
+
replaceModuleConfirmMessage: string;
|
|
742
|
+
replaceModuleConfirmAction: string;
|
|
737
743
|
areaNeedsModule: string;
|
|
738
744
|
sectionContent: string;
|
|
739
745
|
sectionAnnounce: string;
|
|
740
746
|
inspectorArea: string;
|
|
741
747
|
inspectorModule: string;
|
|
742
748
|
inspectorEmpty: string;
|
|
743
|
-
paletteTitle: string;
|
|
744
|
-
paletteHint: string;
|
|
745
749
|
uiScale: string;
|
|
746
750
|
uiScaleHint: string;
|
|
747
751
|
hideFooter: string;
|
|
@@ -752,7 +756,10 @@ export declare const i18nMessages: {
|
|
|
752
756
|
directionColumn: string;
|
|
753
757
|
resetLayout: string;
|
|
754
758
|
areaOnly: string;
|
|
759
|
+
removeAreaConfirmTitle: string;
|
|
760
|
+
removeAreaConfirmMessage: string;
|
|
755
761
|
removeAreaTooltip: string;
|
|
762
|
+
changeModuleTooltip: string;
|
|
756
763
|
splitArea: string;
|
|
757
764
|
templateName: string;
|
|
758
765
|
orientation: string;
|
|
@@ -1639,21 +1646,23 @@ export declare const i18nMessages: {
|
|
|
1639
1646
|
};
|
|
1640
1647
|
ui: {
|
|
1641
1648
|
splitAreaHint: string;
|
|
1642
|
-
mergeGroupHint: string;
|
|
1643
1649
|
splitLimit: string;
|
|
1644
1650
|
moveItemUp: string;
|
|
1645
1651
|
moveItemDown: string;
|
|
1646
1652
|
removeItem: string;
|
|
1647
1653
|
presetAds: string;
|
|
1648
1654
|
emptyArea: string;
|
|
1655
|
+
pickModuleTitle: string;
|
|
1656
|
+
pickModuleHint: string;
|
|
1657
|
+
replaceModuleConfirmTitle: string;
|
|
1658
|
+
replaceModuleConfirmMessage: string;
|
|
1659
|
+
replaceModuleConfirmAction: string;
|
|
1649
1660
|
areaNeedsModule: string;
|
|
1650
1661
|
sectionContent: string;
|
|
1651
1662
|
sectionAnnounce: string;
|
|
1652
1663
|
inspectorArea: string;
|
|
1653
1664
|
inspectorModule: string;
|
|
1654
1665
|
inspectorEmpty: string;
|
|
1655
|
-
paletteTitle: string;
|
|
1656
|
-
paletteHint: string;
|
|
1657
1666
|
uiScale: string;
|
|
1658
1667
|
uiScaleHint: string;
|
|
1659
1668
|
hideFooter: string;
|
|
@@ -1664,7 +1673,10 @@ export declare const i18nMessages: {
|
|
|
1664
1673
|
directionColumn: string;
|
|
1665
1674
|
resetLayout: string;
|
|
1666
1675
|
areaOnly: string;
|
|
1676
|
+
removeAreaConfirmTitle: string;
|
|
1677
|
+
removeAreaConfirmMessage: string;
|
|
1667
1678
|
removeAreaTooltip: string;
|
|
1679
|
+
changeModuleTooltip: string;
|
|
1668
1680
|
splitArea: string;
|
|
1669
1681
|
templateName: string;
|
|
1670
1682
|
orientation: string;
|
|
@@ -127,6 +127,8 @@ export declare const i18nMessages: {
|
|
|
127
127
|
bindDevice: string;
|
|
128
128
|
bindDeviceFailed: string;
|
|
129
129
|
bindDeviceMessage: string;
|
|
130
|
+
bindDeviceNetworkError: string;
|
|
131
|
+
bindDeviceNoQuota: string;
|
|
130
132
|
bindDevicePermissionDenied: string;
|
|
131
133
|
cancel: string;
|
|
132
134
|
cancelResetPin: string;
|
|
@@ -726,21 +728,23 @@ export declare const i18nMessages: {
|
|
|
726
728
|
};
|
|
727
729
|
ui: {
|
|
728
730
|
splitAreaHint: string;
|
|
729
|
-
mergeGroupHint: string;
|
|
730
731
|
splitLimit: string;
|
|
731
732
|
moveItemUp: string;
|
|
732
733
|
moveItemDown: string;
|
|
733
734
|
removeItem: string;
|
|
734
735
|
presetAds: string;
|
|
735
736
|
emptyArea: string;
|
|
737
|
+
pickModuleTitle: string;
|
|
738
|
+
pickModuleHint: string;
|
|
739
|
+
replaceModuleConfirmTitle: string;
|
|
740
|
+
replaceModuleConfirmMessage: string;
|
|
741
|
+
replaceModuleConfirmAction: string;
|
|
736
742
|
areaNeedsModule: string;
|
|
737
743
|
sectionContent: string;
|
|
738
744
|
sectionAnnounce: string;
|
|
739
745
|
inspectorArea: string;
|
|
740
746
|
inspectorModule: string;
|
|
741
747
|
inspectorEmpty: string;
|
|
742
|
-
paletteTitle: string;
|
|
743
|
-
paletteHint: string;
|
|
744
748
|
uiScale: string;
|
|
745
749
|
uiScaleHint: string;
|
|
746
750
|
hideFooter: string;
|
|
@@ -751,7 +755,10 @@ export declare const i18nMessages: {
|
|
|
751
755
|
directionColumn: string;
|
|
752
756
|
resetLayout: string;
|
|
753
757
|
areaOnly: string;
|
|
758
|
+
removeAreaConfirmTitle: string;
|
|
759
|
+
removeAreaConfirmMessage: string;
|
|
754
760
|
removeAreaTooltip: string;
|
|
761
|
+
changeModuleTooltip: string;
|
|
755
762
|
splitArea: string;
|
|
756
763
|
templateName: string;
|
|
757
764
|
orientation: string;
|
|
@@ -1638,21 +1645,23 @@ export declare const i18nMessages: {
|
|
|
1638
1645
|
};
|
|
1639
1646
|
ui: {
|
|
1640
1647
|
splitAreaHint: string;
|
|
1641
|
-
mergeGroupHint: string;
|
|
1642
1648
|
splitLimit: string;
|
|
1643
1649
|
moveItemUp: string;
|
|
1644
1650
|
moveItemDown: string;
|
|
1645
1651
|
removeItem: string;
|
|
1646
1652
|
presetAds: string;
|
|
1647
1653
|
emptyArea: string;
|
|
1654
|
+
pickModuleTitle: string;
|
|
1655
|
+
pickModuleHint: string;
|
|
1656
|
+
replaceModuleConfirmTitle: string;
|
|
1657
|
+
replaceModuleConfirmMessage: string;
|
|
1658
|
+
replaceModuleConfirmAction: string;
|
|
1648
1659
|
areaNeedsModule: string;
|
|
1649
1660
|
sectionContent: string;
|
|
1650
1661
|
sectionAnnounce: string;
|
|
1651
1662
|
inspectorArea: string;
|
|
1652
1663
|
inspectorModule: string;
|
|
1653
1664
|
inspectorEmpty: string;
|
|
1654
|
-
paletteTitle: string;
|
|
1655
|
-
paletteHint: string;
|
|
1656
1665
|
uiScale: string;
|
|
1657
1666
|
uiScaleHint: string;
|
|
1658
1667
|
hideFooter: string;
|
|
@@ -1663,7 +1672,10 @@ export declare const i18nMessages: {
|
|
|
1663
1672
|
directionColumn: string;
|
|
1664
1673
|
resetLayout: string;
|
|
1665
1674
|
areaOnly: string;
|
|
1675
|
+
removeAreaConfirmTitle: string;
|
|
1676
|
+
removeAreaConfirmMessage: string;
|
|
1666
1677
|
removeAreaTooltip: string;
|
|
1678
|
+
changeModuleTooltip: string;
|
|
1667
1679
|
splitArea: string;
|
|
1668
1680
|
templateName: string;
|
|
1669
1681
|
orientation: string;
|
|
@@ -123,17 +123,20 @@ export declare function applyWeightPercent(children: DisplaySplitDraft['children
|
|
|
123
123
|
/** Direction a container nested inside `direction` must run. Same-direction
|
|
124
124
|
* nesting says exactly what one more sibling says, and the API refuses it. */
|
|
125
125
|
export declare function crossDirection(direction: DisplaySplitDraft['direction']): DisplaySplitDraft['direction'];
|
|
126
|
+
/** Rotate a layout while preserving the API's alternating container directions. */
|
|
127
|
+
export declare function setLayoutDirection(split: DisplaySplitDraft, direction: DisplaySplitDraft['direction']): void;
|
|
126
128
|
export declare const DISPLAY_CONTAINER_CHILD_LIMIT = 6;
|
|
127
129
|
/** Turns a single-area template into a two-area split, or adds one more area to
|
|
128
130
|
* the top-level container. Returns the id of the area that was created. */
|
|
129
131
|
export declare function addArea(draft: DisplayTemplateDraft, direction: DisplaySplitDraft['direction'], block?: DisplayBlockDraft): string | undefined;
|
|
132
|
+
/** Adds a sibling to whichever container holds `zoneId` -- the top-level split
|
|
133
|
+
* or a nested group -- up to the same limit as the top level. Returns the id
|
|
134
|
+
* of the area that was created. */
|
|
135
|
+
export declare function addAreaBeside(draft: DisplayTemplateDraft, zoneId: string, block?: DisplayBlockDraft): string | undefined;
|
|
130
136
|
/** Splits one area into a nested container running across its parent, so the
|
|
131
137
|
* area becomes two. Returns the id of the area that was created. */
|
|
132
138
|
export declare function splitArea(draft: DisplayTemplateDraft, zoneId: string, block?: DisplayBlockDraft): string | undefined;
|
|
133
139
|
export declare function removeArea(draft: DisplayTemplateDraft, zoneId: string): boolean;
|
|
134
|
-
/** Collapses the nested container holding `zoneId` back into a single area,
|
|
135
|
-
* keeping that area's module. Returns the id of the area that remains. */
|
|
136
|
-
export declare function mergeGroup(draft: DisplayTemplateDraft, zoneId: string): string | undefined;
|
|
137
140
|
/** An area holds one module, so placing one is a replacement. Rotation is
|
|
138
141
|
* media.carousel's job, which is why nothing here can be refused. */
|
|
139
142
|
export declare function setBlock(draft: DisplayTemplateDraft, zoneId: string, block: DisplayBlockDraft): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error code kiosk-backend puts on the 400 it returns when the business has no
|
|
3
|
+
* free, unexpired kiosk license (see KIOSK_LICENSE_QUOTA_EXHAUSTED in
|
|
4
|
+
* backend/apps/kiosk-backend/src/kiosk/kiosk.service.ts).
|
|
5
|
+
*/
|
|
6
|
+
export declare const KIOSK_LICENSE_QUOTA_EXHAUSTED = "KIOSK_LICENSE_QUOTA_EXHAUSTED";
|
|
7
|
+
export type BindDeviceErrorKey = 'order.bindDevicePermissionDenied' | 'order.bindDeviceNoQuota' | 'order.bindDeviceNetworkError' | 'order.bindDeviceFailed';
|
|
8
|
+
/** The parts of an `SvcCompanyApiError` that decide which message to show. */
|
|
9
|
+
export interface BindDeviceApiError {
|
|
10
|
+
status?: number;
|
|
11
|
+
code?: string;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Picks the message for a failed "Bind device" (bind code request), so the
|
|
16
|
+
* merchant learns WHY it failed instead of a bare "please try again".
|
|
17
|
+
*
|
|
18
|
+
* `apiError` is null when the failure was not an API error at all.
|
|
19
|
+
*/
|
|
20
|
+
export declare function bindDeviceErrorKey(apiError: BindDeviceApiError | null): BindDeviceErrorKey;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type DisplayZoneDraft, type DisplaySplitDraft } from '@/modules/display-system/interface';
|
|
2
|
+
interface EdgeAction {
|
|
3
|
+
direction: DisplaySplitDraft['direction'];
|
|
4
|
+
kind: 'bootstrap' | 'split' | 'extend';
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
zone: DisplayZoneDraft;
|
|
8
|
+
areaNumber: number;
|
|
9
|
+
percent: number;
|
|
10
|
+
weight: number;
|
|
11
|
+
removable: boolean;
|
|
12
|
+
edgeActions: EdgeAction[];
|
|
13
|
+
selectedZoneId: string;
|
|
14
|
+
selectedBlockId: string;
|
|
15
|
+
scope: 'area' | 'module';
|
|
16
|
+
dragging: boolean;
|
|
17
|
+
dropZoneId: string;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
dragleave: () => any;
|
|
21
|
+
dragover: () => any;
|
|
22
|
+
drop: () => any;
|
|
23
|
+
"select-zone": (zoneId: string) => any;
|
|
24
|
+
"select-block": (payload: {
|
|
25
|
+
zoneId: string;
|
|
26
|
+
blockId: string;
|
|
27
|
+
}) => any;
|
|
28
|
+
"open-module-picker": (zoneId: string) => any;
|
|
29
|
+
"remove-area": (zoneId: string) => any;
|
|
30
|
+
"edge-click": (action: EdgeAction) => any;
|
|
31
|
+
"block-dragstart": (eventData: DragEvent) => any;
|
|
32
|
+
"block-dragend": () => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
onDragleave?: (() => any) | undefined;
|
|
35
|
+
onDragover?: (() => any) | undefined;
|
|
36
|
+
onDrop?: (() => any) | undefined;
|
|
37
|
+
"onSelect-zone"?: ((zoneId: string) => any) | undefined;
|
|
38
|
+
"onSelect-block"?: ((payload: {
|
|
39
|
+
zoneId: string;
|
|
40
|
+
blockId: string;
|
|
41
|
+
}) => any) | undefined;
|
|
42
|
+
"onOpen-module-picker"?: ((zoneId: string) => any) | undefined;
|
|
43
|
+
"onRemove-area"?: ((zoneId: string) => any) | undefined;
|
|
44
|
+
"onEdge-click"?: ((action: EdgeAction) => any) | undefined;
|
|
45
|
+
"onBlock-dragstart"?: ((eventData: DragEvent) => any) | undefined;
|
|
46
|
+
"onBlock-dragend"?: (() => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
export default _default;
|
|
@@ -3,8 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
root: DisplayLayoutDraft;
|
|
4
4
|
selectedZoneId: string;
|
|
5
5
|
selectedBlockId: string;
|
|
6
|
-
/** Set while
|
|
7
|
-
* themselves as drop targets. */
|
|
6
|
+
/** Set while an existing module is dragged between areas. */
|
|
8
7
|
dragging: boolean;
|
|
9
8
|
/** Which scope the inspector is editing. Selecting a module also selects its
|
|
10
9
|
* area, so without this both would light up the same way and there would be
|
|
@@ -22,17 +21,19 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
22
21
|
zoneId: string;
|
|
23
22
|
blockId: string;
|
|
24
23
|
}) => any;
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
"open-module-picker": (zoneId: string) => any;
|
|
25
|
+
"remove-area": (zoneId: string) => any;
|
|
26
|
+
"block-dragstart": () => any;
|
|
27
|
+
"block-dragend": () => any;
|
|
28
28
|
"move-block": (payload: {
|
|
29
29
|
fromZoneId: string;
|
|
30
30
|
toZoneId: string;
|
|
31
31
|
}) => any;
|
|
32
|
+
"add-area": (direction: "ROW" | "COLUMN") => any;
|
|
32
33
|
"split-area": (zoneId: string) => any;
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"extend-area": (zoneId: string) => any;
|
|
35
|
+
"resize-start": () => any;
|
|
36
|
+
"resize-end": () => any;
|
|
36
37
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
38
|
onResize?: ((payload: {
|
|
38
39
|
path: number[];
|
|
@@ -44,16 +45,18 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
44
45
|
zoneId: string;
|
|
45
46
|
blockId: string;
|
|
46
47
|
}) => any) | undefined;
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
"onOpen-module-picker"?: ((zoneId: string) => any) | undefined;
|
|
49
|
+
"onRemove-area"?: ((zoneId: string) => any) | undefined;
|
|
50
|
+
"onBlock-dragstart"?: (() => any) | undefined;
|
|
51
|
+
"onBlock-dragend"?: (() => any) | undefined;
|
|
50
52
|
"onMove-block"?: ((payload: {
|
|
51
53
|
fromZoneId: string;
|
|
52
54
|
toZoneId: string;
|
|
53
55
|
}) => any) | undefined;
|
|
56
|
+
"onAdd-area"?: ((direction: "ROW" | "COLUMN") => any) | undefined;
|
|
54
57
|
"onSplit-area"?: ((zoneId: string) => any) | undefined;
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
+
"onExtend-area"?: ((zoneId: string) => any) | undefined;
|
|
59
|
+
"onResize-start"?: (() => any) | undefined;
|
|
60
|
+
"onResize-end"?: (() => any) | undefined;
|
|
58
61
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
59
62
|
export default _default;
|
|
@@ -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;
|