@feedmepos/mf-common 1.21.0-beta.1 → 1.22.0
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/{CustomAttributesForm-f9e4e1af.js → CustomAttributesForm-f2c78b5d.js} +1 -1
- package/dist/{ItemSelector-e3d0ce74.js → ItemSelector-eea13da8.js} +1 -1
- package/dist/{RestaurantSelector-f9009fb5.js → RestaurantSelector-0a39796b.js} +1 -1
- package/dist/{app-5a4abdae.js → app-ee67eec0.js} +40097 -38514
- package/dist/app.d.ts +8 -5
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +25 -25
- package/dist/components/Portal/PortalDesktop.vue.d.ts +2 -74
- package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalMobile.vue.d.ts +3 -75
- package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalTablet.vue.d.ts +2 -74
- package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -1
- package/dist/components/Portal/index.d.ts +3 -2
- package/dist/components/Portal/index.d.ts.map +1 -1
- package/dist/components/Portal/index.vue.d.ts +2 -74
- package/dist/components/Portal/index.vue.d.ts.map +1 -1
- package/dist/components/UserInfo/index.vue.d.ts +5 -148
- package/dist/components/UserInfo/index.vue.d.ts.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/store.d.ts +16 -16
- package/dist/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/utils/country.d.ts +9 -8
- package/dist/utils/country.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/app.d.ts
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
import { type App } from "vue";
|
2
|
+
import type { Router } from "vue-router";
|
2
3
|
import { FeedMeAuth } from "@feedmepos/auth";
|
3
|
-
import type { FmNamespace } from "@/store";
|
4
4
|
import type { FeedMeI18nOptions } from "@feedmepos/i18n";
|
5
|
+
import enUS from "./locales/en-US.json";
|
6
|
+
import { useCoreStore } from "./store";
|
7
|
+
import type { FmNamespace } from "@/store";
|
5
8
|
export declare function initialize(clientId: string, namespace?: FmNamespace): void;
|
6
9
|
export declare const onAuthStateChanged: typeof FeedMeAuth.onAuthStateChanged;
|
7
10
|
export { baseClientInstance } from "./api";
|
8
11
|
export { default as FmNavBar } from "./App.vue";
|
9
12
|
export { useCoreStore, FeedMeAuth };
|
10
|
-
export {
|
13
|
+
export { useCountry } from "./utils/country";
|
11
14
|
export { FmpUser } from "./store";
|
12
15
|
export { installRouteValidation, Permission, type ValidationManifest, type RouteValidationResult } from "./permission/permission";
|
13
16
|
export { default as PermissionWrapper } from "./components/PermissionWrapper.vue";
|
@@ -30,6 +33,7 @@ export declare const portalShellI18nMessages: {
|
|
30
33
|
country: {
|
31
34
|
label: string;
|
32
35
|
au: string;
|
36
|
+
bn: string;
|
33
37
|
my: string;
|
34
38
|
sg: string;
|
35
39
|
id: string;
|
@@ -200,6 +204,7 @@ export declare const portalShellI18nMessages: {
|
|
200
204
|
country: {
|
201
205
|
label: string;
|
202
206
|
au: string;
|
207
|
+
bn: string;
|
203
208
|
my: string;
|
204
209
|
sg: string;
|
205
210
|
id: string;
|
@@ -367,6 +372,7 @@ export declare const portalShellI18nMessages: {
|
|
367
372
|
manageAccount: string;
|
368
373
|
country: {
|
369
374
|
label: string;
|
375
|
+
bn: string;
|
370
376
|
my: string;
|
371
377
|
sg: string;
|
372
378
|
id: string;
|
@@ -521,9 +527,6 @@ export declare const portalShellI18nMessages: {
|
|
521
527
|
export type PortalShellI18nSchema = typeof enUS;
|
522
528
|
export { useI18n } from "@feedmepos/i18n";
|
523
529
|
export type { CommonMessagesSchema, FeedMeI18nOptions, I18n, DefineLocaleMessage } from "@feedmepos/i18n";
|
524
|
-
import enUS from "./locales/en-US.json";
|
525
|
-
import { useCoreStore } from "./store";
|
526
|
-
import type { Router } from "vue-router";
|
527
530
|
export declare function createFeedMeI18n(options: FeedMeI18nOptions): import("vue-i18n").I18n<{}, {}, {}, string, boolean>;
|
528
531
|
export { setEnabledLocales } from "./composables/useLocale";
|
529
532
|
export { useLocale } from "./composables/useLocale";
|
package/dist/app.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAKxD,OAAO,IAAI,MAAM,sBAAsB,CAAA;AAGvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,WAAW,QAenE;AAED,eAAO,MAAM,kBAAkB,sCAAgC,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,WAAW,CAAA;AAE/C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGjC,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAA;AAEh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ACJ,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,OAAO,CAAA;IACd,mBAAmB,EAAE,MAAM,CAAA;CAC5B,QAkBF;AAED,wBAAgB,YAAY,WAM3B;AAGD,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAA;AAGhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAEhC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAsE,CAAA;AAG/F,cAAc,+BAA+B,CAAA"}
|
package/dist/app.js
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
import "vue";
|
2
|
-
import {
|
2
|
+
import { C as n, x as l, y as r, F as u, _ as M, m as S, I as m, P as d, r as P, R as h, f as p, z as c, g, j as C, h as E, i as F, v as _, B as A, q as I, o as R, p as O, A as b, s as w, D as y, u as B, k as L, n as T, t as f, w as v } from "./app-ee67eec0.js";
|
3
|
+
import "@feedmepos/ui-library";
|
3
4
|
import "pinia";
|
4
5
|
import "vue-router";
|
5
|
-
import "@feedmepos/ui-library";
|
6
6
|
export {
|
7
|
-
n as
|
8
|
-
l as
|
9
|
-
r as
|
10
|
-
u as
|
11
|
-
M as
|
12
|
-
S as
|
13
|
-
m as
|
14
|
-
d as
|
15
|
-
p as Permission,
|
7
|
+
n as CustomAttributesForm,
|
8
|
+
l as FM_POST_MESSAGE_REQUEST,
|
9
|
+
r as FM_POST_MESSAGE_RESPONSE,
|
10
|
+
u as FeedMeAuth,
|
11
|
+
M as FmNavBar,
|
12
|
+
S as FmpUser,
|
13
|
+
m as ItemSelector,
|
14
|
+
d as Permission,
|
16
15
|
P as PermissionWrapper,
|
17
16
|
h as RestaurantSelector,
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
p as baseClientInstance,
|
18
|
+
c as callMethodOnWindow,
|
19
|
+
g as createFeedMeI18n,
|
20
|
+
C as detectLocale,
|
21
|
+
E as initVueClientMonitoring,
|
22
|
+
F as initialize,
|
23
|
+
_ as installBusinessQueryStatePlugin,
|
24
|
+
A as installPostMessageMethodCall,
|
25
|
+
I as installRouteValidation,
|
27
26
|
R as onAuthStateChanged,
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
O as portalShellI18nMessages,
|
28
|
+
b as registerPostMessageMethod,
|
29
|
+
w as setEnabledLocales,
|
30
|
+
y as uninstallPostMessageMethodCall,
|
31
|
+
B as useCoreStore,
|
32
|
+
L as useCountry,
|
33
33
|
T as useI18n,
|
34
34
|
f as useLocale,
|
35
35
|
v as withPermission
|
@@ -5,43 +5,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
5
5
|
logout: () => void;
|
6
6
|
"select-business": (business: import("@/store").FmpBusiness, shouldReload: boolean) => void;
|
7
7
|
"open-my-business": () => void;
|
8
|
-
"select-country": (country:
|
9
|
-
taxLevel?: number | null | undefined;
|
10
|
-
currency: {
|
11
|
-
locale?: string | null | undefined;
|
12
|
-
symbol: string;
|
13
|
-
code: string;
|
14
|
-
precision: number;
|
15
|
-
format: string;
|
16
|
-
};
|
17
|
-
code: string;
|
18
|
-
name: string;
|
19
|
-
callingCode: string;
|
20
|
-
roundingOptions: {
|
21
|
-
amount: number;
|
22
|
-
precision: number;
|
23
|
-
}[];
|
24
|
-
taxSystems: {
|
25
|
-
code: string;
|
26
|
-
name: string;
|
27
|
-
variants: {
|
28
|
-
default?: boolean | null | undefined;
|
29
|
-
rateByTime?: {
|
30
|
-
rate: {
|
31
|
-
amount: number;
|
32
|
-
precision: number;
|
33
|
-
};
|
34
|
-
startDate: string;
|
35
|
-
}[] | null | undefined;
|
36
|
-
code: string;
|
37
|
-
name: string;
|
38
|
-
rate: {
|
39
|
-
amount: number;
|
40
|
-
precision: number;
|
41
|
-
};
|
42
|
-
}[];
|
43
|
-
}[];
|
44
|
-
}, shouldReload: boolean) => void;
|
8
|
+
"select-country": (country: import("./index").Country, shouldReload: boolean) => void;
|
45
9
|
"select-app": (app: PortalApp) => void;
|
46
10
|
"update:dropdownOpened": (value: boolean) => void;
|
47
11
|
"goto:settings": () => void;
|
@@ -51,43 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
51
15
|
onLogout?: (() => any) | undefined;
|
52
16
|
"onSelect-business"?: ((business: import("@/store").FmpBusiness, shouldReload: boolean) => any) | undefined;
|
53
17
|
"onOpen-my-business"?: (() => any) | undefined;
|
54
|
-
"onSelect-country"?: ((country:
|
55
|
-
taxLevel?: number | null | undefined;
|
56
|
-
currency: {
|
57
|
-
locale?: string | null | undefined;
|
58
|
-
symbol: string;
|
59
|
-
code: string;
|
60
|
-
precision: number;
|
61
|
-
format: string;
|
62
|
-
};
|
63
|
-
code: string;
|
64
|
-
name: string;
|
65
|
-
callingCode: string;
|
66
|
-
roundingOptions: {
|
67
|
-
amount: number;
|
68
|
-
precision: number;
|
69
|
-
}[];
|
70
|
-
taxSystems: {
|
71
|
-
code: string;
|
72
|
-
name: string;
|
73
|
-
variants: {
|
74
|
-
default?: boolean | null | undefined;
|
75
|
-
rateByTime?: {
|
76
|
-
rate: {
|
77
|
-
amount: number;
|
78
|
-
precision: number;
|
79
|
-
};
|
80
|
-
startDate: string;
|
81
|
-
}[] | null | undefined;
|
82
|
-
code: string;
|
83
|
-
name: string;
|
84
|
-
rate: {
|
85
|
-
amount: number;
|
86
|
-
precision: number;
|
87
|
-
};
|
88
|
-
}[];
|
89
|
-
}[];
|
90
|
-
}, shouldReload: boolean) => any) | undefined;
|
18
|
+
"onSelect-country"?: ((country: import("./index").Country, shouldReload: boolean) => any) | undefined;
|
91
19
|
"onSelect-app"?: ((app: PortalApp) => any) | undefined;
|
92
20
|
"onUpdate:dropdownOpened"?: ((value: boolean) => any) | undefined;
|
93
21
|
"onGoto:settings"?: (() => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PortalDesktop.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/PortalDesktop.vue.ts"],"names":[],"mappings":"AASA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAK7D,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,SAAS,CAAA
|
1
|
+
{"version":3,"file":"PortalDesktop.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/PortalDesktop.vue.ts"],"names":[],"mappings":"AASA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAK7D,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;AAuqBtD,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"}
|
@@ -1,47 +1,11 @@
|
|
1
|
-
import type { PortalProps } from "@/components/Portal/index";
|
1
|
+
import type { Country, PortalProps } from "@/components/Portal/index";
|
2
2
|
import { type FmpBusiness } from "@/store";
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PortalProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
4
4
|
login: () => void;
|
5
5
|
logout: () => void;
|
6
6
|
"select-business": (business: FmpBusiness, shouldReload: boolean) => void;
|
7
7
|
"open-my-business": () => void;
|
8
|
-
"select-country": (country:
|
9
|
-
taxLevel?: number | null | undefined;
|
10
|
-
currency: {
|
11
|
-
locale?: string | null | undefined;
|
12
|
-
symbol: string;
|
13
|
-
code: string;
|
14
|
-
precision: number;
|
15
|
-
format: string;
|
16
|
-
};
|
17
|
-
code: string;
|
18
|
-
name: string;
|
19
|
-
callingCode: string;
|
20
|
-
roundingOptions: {
|
21
|
-
amount: number;
|
22
|
-
precision: number;
|
23
|
-
}[];
|
24
|
-
taxSystems: {
|
25
|
-
code: string;
|
26
|
-
name: string;
|
27
|
-
variants: {
|
28
|
-
default?: boolean | null | undefined;
|
29
|
-
rateByTime?: {
|
30
|
-
rate: {
|
31
|
-
amount: number;
|
32
|
-
precision: number;
|
33
|
-
};
|
34
|
-
startDate: string;
|
35
|
-
}[] | null | undefined;
|
36
|
-
code: string;
|
37
|
-
name: string;
|
38
|
-
rate: {
|
39
|
-
amount: number;
|
40
|
-
precision: number;
|
41
|
-
};
|
42
|
-
}[];
|
43
|
-
}[];
|
44
|
-
}, shouldReload: boolean) => void;
|
8
|
+
"select-country": (country: Country, shouldReload: boolean) => void;
|
45
9
|
"select-app": (app: import("@/store").PortalApp) => void;
|
46
10
|
"update:dropdownOpened": (value: boolean) => void;
|
47
11
|
"goto:settings": () => void;
|
@@ -51,43 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
51
15
|
onLogout?: (() => any) | undefined;
|
52
16
|
"onSelect-business"?: ((business: FmpBusiness, shouldReload: boolean) => any) | undefined;
|
53
17
|
"onOpen-my-business"?: (() => any) | undefined;
|
54
|
-
"onSelect-country"?: ((country:
|
55
|
-
taxLevel?: number | null | undefined;
|
56
|
-
currency: {
|
57
|
-
locale?: string | null | undefined;
|
58
|
-
symbol: string;
|
59
|
-
code: string;
|
60
|
-
precision: number;
|
61
|
-
format: string;
|
62
|
-
};
|
63
|
-
code: string;
|
64
|
-
name: string;
|
65
|
-
callingCode: string;
|
66
|
-
roundingOptions: {
|
67
|
-
amount: number;
|
68
|
-
precision: number;
|
69
|
-
}[];
|
70
|
-
taxSystems: {
|
71
|
-
code: string;
|
72
|
-
name: string;
|
73
|
-
variants: {
|
74
|
-
default?: boolean | null | undefined;
|
75
|
-
rateByTime?: {
|
76
|
-
rate: {
|
77
|
-
amount: number;
|
78
|
-
precision: number;
|
79
|
-
};
|
80
|
-
startDate: string;
|
81
|
-
}[] | null | undefined;
|
82
|
-
code: string;
|
83
|
-
name: string;
|
84
|
-
rate: {
|
85
|
-
amount: number;
|
86
|
-
precision: number;
|
87
|
-
};
|
88
|
-
}[];
|
89
|
-
}[];
|
90
|
-
}, shouldReload: boolean) => any) | undefined;
|
18
|
+
"onSelect-country"?: ((country: Country, shouldReload: boolean) => any) | undefined;
|
91
19
|
"onSelect-app"?: ((app: import("@/store").PortalApp) => any) | undefined;
|
92
20
|
"onUpdate:dropdownOpened"?: ((value: boolean) => any) | undefined;
|
93
21
|
"onGoto:settings"?: (() => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PortalMobile.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/PortalMobile.vue.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"PortalMobile.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/PortalMobile.vue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAgB,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAInF,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;AAk4CxD,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"}
|
@@ -4,43 +4,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
4
4
|
logout: () => void;
|
5
5
|
"select-business": (business: import("@/store").FmpBusiness, shouldReload: boolean) => void;
|
6
6
|
"open-my-business": () => void;
|
7
|
-
"select-country": (country:
|
8
|
-
taxLevel?: number | null | undefined;
|
9
|
-
currency: {
|
10
|
-
locale?: string | null | undefined;
|
11
|
-
symbol: string;
|
12
|
-
code: string;
|
13
|
-
precision: number;
|
14
|
-
format: string;
|
15
|
-
};
|
16
|
-
code: string;
|
17
|
-
name: string;
|
18
|
-
callingCode: string;
|
19
|
-
roundingOptions: {
|
20
|
-
amount: number;
|
21
|
-
precision: number;
|
22
|
-
}[];
|
23
|
-
taxSystems: {
|
24
|
-
code: string;
|
25
|
-
name: string;
|
26
|
-
variants: {
|
27
|
-
default?: boolean | null | undefined;
|
28
|
-
rateByTime?: {
|
29
|
-
rate: {
|
30
|
-
amount: number;
|
31
|
-
precision: number;
|
32
|
-
};
|
33
|
-
startDate: string;
|
34
|
-
}[] | null | undefined;
|
35
|
-
code: string;
|
36
|
-
name: string;
|
37
|
-
rate: {
|
38
|
-
amount: number;
|
39
|
-
precision: number;
|
40
|
-
};
|
41
|
-
}[];
|
42
|
-
}[];
|
43
|
-
}, shouldReload: boolean) => void;
|
7
|
+
"select-country": (country: import("@/components/Portal/index").Country, shouldReload: boolean) => void;
|
44
8
|
"select-app": (app: import("@/store").PortalApp) => void;
|
45
9
|
"update:dropdownOpened": (value: boolean) => void;
|
46
10
|
"goto:settings": () => void;
|
@@ -50,43 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
50
14
|
onLogout?: (() => any) | undefined;
|
51
15
|
"onSelect-business"?: ((business: import("@/store").FmpBusiness, shouldReload: boolean) => any) | undefined;
|
52
16
|
"onOpen-my-business"?: (() => any) | undefined;
|
53
|
-
"onSelect-country"?: ((country:
|
54
|
-
taxLevel?: number | null | undefined;
|
55
|
-
currency: {
|
56
|
-
locale?: string | null | undefined;
|
57
|
-
symbol: string;
|
58
|
-
code: string;
|
59
|
-
precision: number;
|
60
|
-
format: string;
|
61
|
-
};
|
62
|
-
code: string;
|
63
|
-
name: string;
|
64
|
-
callingCode: string;
|
65
|
-
roundingOptions: {
|
66
|
-
amount: number;
|
67
|
-
precision: number;
|
68
|
-
}[];
|
69
|
-
taxSystems: {
|
70
|
-
code: string;
|
71
|
-
name: string;
|
72
|
-
variants: {
|
73
|
-
default?: boolean | null | undefined;
|
74
|
-
rateByTime?: {
|
75
|
-
rate: {
|
76
|
-
amount: number;
|
77
|
-
precision: number;
|
78
|
-
};
|
79
|
-
startDate: string;
|
80
|
-
}[] | null | undefined;
|
81
|
-
code: string;
|
82
|
-
name: string;
|
83
|
-
rate: {
|
84
|
-
amount: number;
|
85
|
-
precision: number;
|
86
|
-
};
|
87
|
-
}[];
|
88
|
-
}[];
|
89
|
-
}, shouldReload: boolean) => any) | undefined;
|
17
|
+
"onSelect-country"?: ((country: import("@/components/Portal/index").Country, shouldReload: boolean) => any) | undefined;
|
90
18
|
"onSelect-app"?: ((app: import("@/store").PortalApp) => any) | undefined;
|
91
19
|
"onUpdate:dropdownOpened"?: ((value: boolean) => any) | undefined;
|
92
20
|
"onGoto:settings"?: (() => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PortalTablet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/PortalTablet.vue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,2BAA2B,CAAA
|
1
|
+
{"version":3,"file":"PortalTablet.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/PortalTablet.vue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,2BAA2B,CAAA;;;;;;;;;;;;;;;;;;;;;;AAqzB1E,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"}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import type { FeedMeUser } from "@feedmepos/auth";
|
2
2
|
import type { FdoCountry } from "@feedmepos/core/entity";
|
3
3
|
import { type FmpBusiness, type PortalApp } from "@/store";
|
4
|
+
export type Country = Pick<FdoCountry, "code">;
|
4
5
|
export interface PortalProps {
|
5
6
|
dropdownOpened: boolean;
|
6
7
|
apps: PortalApp[];
|
7
8
|
currentApp: PortalApp | undefined;
|
8
9
|
businesses: FmpBusiness[];
|
9
10
|
currentBusiness: FmpBusiness | undefined;
|
10
|
-
countries:
|
11
|
+
countries: Country[];
|
11
12
|
currentCountry: string | undefined;
|
12
13
|
user: FeedMeUser | null;
|
13
14
|
embedded: boolean;
|
@@ -17,7 +18,7 @@ export interface PortalEvents {
|
|
17
18
|
(event: "logout"): void;
|
18
19
|
(event: "select-business", business: FmpBusiness, shouldReload: boolean): void;
|
19
20
|
(event: "open-my-business"): void;
|
20
|
-
(event: "select-country", country:
|
21
|
+
(event: "select-country", country: Country, shouldReload: boolean): void;
|
21
22
|
(event: "select-app", app: PortalApp): void;
|
22
23
|
(event: "update:dropdownOpened", value: boolean): void;
|
23
24
|
(event: "goto:settings"): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAA;AAE1D,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,OAAO,CAAA;IACvB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,UAAU,EAAE,WAAW,EAAE,CAAA;IACzB,eAAe,EAAE,WAAW,GAAG,SAAS,CAAA;IACxC,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD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
5
5
|
"select-business": (business: import("@/store").FmpBusiness, shouldReload: boolean) => void;
|
6
6
|
"open-my-business": () => void;
|
7
|
-
"select-country": (country:
|
8
|
-
taxLevel?: number | null | undefined;
|
9
|
-
currency: {
|
10
|
-
locale?: string | null | undefined;
|
11
|
-
symbol: string;
|
12
|
-
code: string;
|
13
|
-
precision: number;
|
14
|
-
format: string;
|
15
|
-
};
|
16
|
-
code: string;
|
17
|
-
name: string;
|
18
|
-
callingCode: string;
|
19
|
-
roundingOptions: {
|
20
|
-
amount: number;
|
21
|
-
precision: number;
|
22
|
-
}[];
|
23
|
-
taxSystems: {
|
24
|
-
code: string;
|
25
|
-
name: string;
|
26
|
-
variants: {
|
27
|
-
default?: boolean | null | undefined;
|
28
|
-
rateByTime?: {
|
29
|
-
rate: {
|
30
|
-
amount: number;
|
31
|
-
precision: number;
|
32
|
-
};
|
33
|
-
startDate: string;
|
34
|
-
}[] | null | undefined;
|
35
|
-
code: string;
|
36
|
-
name: string;
|
37
|
-
rate: {
|
38
|
-
amount: number;
|
39
|
-
precision: number;
|
40
|
-
};
|
41
|
-
}[];
|
42
|
-
}[];
|
43
|
-
}, shouldReload: boolean) => void;
|
7
|
+
"select-country": (country: import("@/components/Portal/index").Country, shouldReload: boolean) => void;
|
44
8
|
"select-app": (app: import("@/store").PortalApp) => void;
|
45
9
|
"update:dropdownOpened": (value: boolean) => void;
|
46
10
|
"goto:settings": () => void;
|
@@ -50,43 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
50
14
|
onLogout?: (() => any) | undefined;
|
51
15
|
"onSelect-business"?: ((business: import("@/store").FmpBusiness, shouldReload: boolean) => any) | undefined;
|
52
16
|
"onOpen-my-business"?: (() => any) | undefined;
|
53
|
-
"onSelect-country"?: ((country:
|
54
|
-
taxLevel?: number | null | undefined;
|
55
|
-
currency: {
|
56
|
-
locale?: string | null | undefined;
|
57
|
-
symbol: string;
|
58
|
-
code: string;
|
59
|
-
precision: number;
|
60
|
-
format: string;
|
61
|
-
};
|
62
|
-
code: string;
|
63
|
-
name: string;
|
64
|
-
callingCode: string;
|
65
|
-
roundingOptions: {
|
66
|
-
amount: number;
|
67
|
-
precision: number;
|
68
|
-
}[];
|
69
|
-
taxSystems: {
|
70
|
-
code: string;
|
71
|
-
name: string;
|
72
|
-
variants: {
|
73
|
-
default?: boolean | null | undefined;
|
74
|
-
rateByTime?: {
|
75
|
-
rate: {
|
76
|
-
amount: number;
|
77
|
-
precision: number;
|
78
|
-
};
|
79
|
-
startDate: string;
|
80
|
-
}[] | null | undefined;
|
81
|
-
code: string;
|
82
|
-
name: string;
|
83
|
-
rate: {
|
84
|
-
amount: number;
|
85
|
-
precision: number;
|
86
|
-
};
|
87
|
-
}[];
|
88
|
-
}[];
|
89
|
-
}, shouldReload: boolean) => any) | undefined;
|
17
|
+
"onSelect-country"?: ((country: import("@/components/Portal/index").Country, shouldReload: boolean) => any) | undefined;
|
90
18
|
"onSelect-app"?: ((app: import("@/store").PortalApp) => any) | undefined;
|
91
19
|
"onUpdate:dropdownOpened"?: ((value: boolean) => any) | undefined;
|
92
20
|
"onGoto:settings"?: (() => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/index.vue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,2BAA2B,CAAA
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Portal/index.vue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,2BAA2B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAiM1E,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"}
|