@feedmepos/mf-settings 0.0.48-beta.0 → 0.0.48-beta.0-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.
- package/dist/{Business-d368701b.js → Business-c2cc9ee7.js} +5 -4
- package/dist/{CreateBusiness-fe3fc91e.js → CreateBusiness-e05859f6.js} +5 -4
- package/dist/FoodCourt-b9e42611.js +12454 -0
- package/dist/{app-b94d060a.js → app-29117ada.js} +49 -48
- package/dist/app.js +7 -6
- package/dist/apps/mf-settings/src/api/business.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +1 -1
- package/dist/apps/mf-settings/src/extensions/business.d.ts +1 -1
- package/dist/apps/mf-settings/src/extensions/profile.d.ts +1 -1
- package/dist/apps/mf-settings/src/manager/restaurant.d.ts +1 -1
- package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +1 -1
- package/dist/apps/mf-settings/src/types/restaurant.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/packages/shared/src/stores/app.d.ts +1 -1
- package/package.json +3 -3
- package/dist/FoodCourt-103e9580.js +0 -25602
|
@@ -5,8 +5,9 @@ import { useRouter as V0, RouterView as G0 } from "vue-router";
|
|
|
5
5
|
import { FmApp as q0, routers as K0 } from "@feedmepos/mf-e-invoice";
|
|
6
6
|
import { SnackbarPosition as cu, useDialog as Bh, useSnackbar as $h, components as Wh, useBreakpoints as Hh, FmButtonVariant as j0 } from "@feedmepos/ui-library";
|
|
7
7
|
import { defineStore as Vh } from "pinia";
|
|
8
|
-
import { F_COUNTRY as po,
|
|
8
|
+
import { F_COUNTRY as po, F_FEATURE as z0 } from "@feedmepos/core/entity";
|
|
9
9
|
import "@vue/devtools-api";
|
|
10
|
+
import { Pos as Y0 } from "@feedmepos/core";
|
|
10
11
|
class Hi {
|
|
11
12
|
constructor(e = null, r = {}) {
|
|
12
13
|
if (this.apiKey = e, this.options = r, typeof window > "u")
|
|
@@ -45,16 +46,16 @@ const Cu = ln(null), J0 = () => Cu.value;
|
|
|
45
46
|
function X0(t) {
|
|
46
47
|
Cu.value || (Cu.value = t);
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const H1 = Object.freeze({
|
|
49
50
|
jb: {
|
|
50
51
|
lat: 1.492659,
|
|
51
52
|
lng: 103.7413591
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
|
-
function
|
|
55
|
+
function V1(t) {
|
|
55
56
|
return [t.lng, t.lat];
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function G1(t) {
|
|
58
59
|
if (t.length !== 2)
|
|
59
60
|
throw Error("Invalid coordinate array");
|
|
60
61
|
return {
|
|
@@ -7342,16 +7343,16 @@ const Vd = "@firebase/storage", Gd = "0.11.2";
|
|
|
7342
7343
|
* limitations under the License.
|
|
7343
7344
|
*/
|
|
7344
7345
|
const Xp = "storage";
|
|
7345
|
-
function
|
|
7346
|
+
function q1(t, e, r) {
|
|
7346
7347
|
return t = Bt(t), DS(t, e, r);
|
|
7347
7348
|
}
|
|
7348
|
-
function
|
|
7349
|
+
function K1(t) {
|
|
7349
7350
|
return t = Bt(t), US(t);
|
|
7350
7351
|
}
|
|
7351
|
-
function
|
|
7352
|
+
function j1(t) {
|
|
7352
7353
|
return t = Bt(t), MS(t);
|
|
7353
7354
|
}
|
|
7354
|
-
function
|
|
7355
|
+
function z1(t, e) {
|
|
7355
7356
|
return t = Bt(t), $S(t, e);
|
|
7356
7357
|
}
|
|
7357
7358
|
function HS(t = ep(), e) {
|
|
@@ -7380,7 +7381,7 @@ function VS(t, e, r, s = {}) {
|
|
|
7380
7381
|
* See the License for the specific language governing permissions and
|
|
7381
7382
|
* limitations under the License.
|
|
7382
7383
|
*/
|
|
7383
|
-
function
|
|
7384
|
+
function Y1(t, e) {
|
|
7384
7385
|
return t = Bt(t), kS(t, e);
|
|
7385
7386
|
}
|
|
7386
7387
|
function GS(t, { instanceIdentifier: e }) {
|
|
@@ -9825,22 +9826,22 @@ Be.getAdapter = ym.getAdapter;
|
|
|
9825
9826
|
Be.HttpStatusCode = BC;
|
|
9826
9827
|
Be.default = Be;
|
|
9827
9828
|
const Oc = Be, {
|
|
9828
|
-
Axios:
|
|
9829
|
+
Axios: Q1,
|
|
9829
9830
|
AxiosError: Tm,
|
|
9830
|
-
CanceledError:
|
|
9831
|
-
isCancel:
|
|
9832
|
-
CancelToken:
|
|
9833
|
-
VERSION:
|
|
9834
|
-
all:
|
|
9835
|
-
Cancel:
|
|
9836
|
-
isAxiosError:
|
|
9837
|
-
spread:
|
|
9838
|
-
toFormData:
|
|
9839
|
-
AxiosHeaders:
|
|
9840
|
-
HttpStatusCode:
|
|
9841
|
-
formToJSON:
|
|
9842
|
-
getAdapter:
|
|
9843
|
-
mergeConfig:
|
|
9831
|
+
CanceledError: Z1,
|
|
9832
|
+
isCancel: eP,
|
|
9833
|
+
CancelToken: tP,
|
|
9834
|
+
VERSION: nP,
|
|
9835
|
+
all: rP,
|
|
9836
|
+
Cancel: iP,
|
|
9837
|
+
isAxiosError: sP,
|
|
9838
|
+
spread: oP,
|
|
9839
|
+
toFormData: aP,
|
|
9840
|
+
AxiosHeaders: uP,
|
|
9841
|
+
HttpStatusCode: cP,
|
|
9842
|
+
formToJSON: lP,
|
|
9843
|
+
getAdapter: fP,
|
|
9844
|
+
mergeConfig: dP
|
|
9844
9845
|
} = Oc;
|
|
9845
9846
|
var ei = globalThis && globalThis.__awaiter || function(t, e, r, s) {
|
|
9846
9847
|
function o(u) {
|
|
@@ -10427,7 +10428,7 @@ const lh = Vh("portal-app-store", {
|
|
|
10427
10428
|
}, wn = (t = "", e = void 0) => {
|
|
10428
10429
|
const { portalBackendUrl: r } = zC(e);
|
|
10429
10430
|
return jC(r)(t);
|
|
10430
|
-
},
|
|
10431
|
+
}, hP = () => {
|
|
10431
10432
|
var e;
|
|
10432
10433
|
const t = Ln();
|
|
10433
10434
|
if (t.currentBusiness.value) {
|
|
@@ -10435,7 +10436,7 @@ const lh = Vh("portal-app-store", {
|
|
|
10435
10436
|
return wn(r);
|
|
10436
10437
|
} else
|
|
10437
10438
|
throw new Error("Invalid business");
|
|
10438
|
-
},
|
|
10439
|
+
}, pP = (t, e) => {
|
|
10439
10440
|
const r = `/restaurants/${t}`, s = e ? `/${e}${r}` : r;
|
|
10440
10441
|
if (t)
|
|
10441
10442
|
return wn(s);
|
|
@@ -10518,10 +10519,10 @@ function YC(t, e) {
|
|
|
10518
10519
|
return o;
|
|
10519
10520
|
}
|
|
10520
10521
|
var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10521
|
-
function
|
|
10522
|
+
function mP(t) {
|
|
10522
10523
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10523
10524
|
}
|
|
10524
|
-
function
|
|
10525
|
+
function gP(t) {
|
|
10525
10526
|
if (t.__esModule)
|
|
10526
10527
|
return t;
|
|
10527
10528
|
var e = t.default;
|
|
@@ -17272,7 +17273,7 @@ const w1 = /* @__PURE__ */ Jt({
|
|
|
17272
17273
|
{
|
|
17273
17274
|
path: "/business",
|
|
17274
17275
|
name: "$settings-my-business",
|
|
17275
|
-
component: () => import("./Business-
|
|
17276
|
+
component: () => import("./Business-c2cc9ee7.js"),
|
|
17276
17277
|
meta: {
|
|
17277
17278
|
i18nKey: "settings.business.title"
|
|
17278
17279
|
}
|
|
@@ -17280,7 +17281,7 @@ const w1 = /* @__PURE__ */ Jt({
|
|
|
17280
17281
|
{
|
|
17281
17282
|
path: "/create-business",
|
|
17282
17283
|
name: "$settings-create-business",
|
|
17283
|
-
component: () => import("./CreateBusiness-
|
|
17284
|
+
component: () => import("./CreateBusiness-e05859f6.js"),
|
|
17284
17285
|
meta: {
|
|
17285
17286
|
hideNavigation: !0
|
|
17286
17287
|
}
|
|
@@ -17288,7 +17289,7 @@ const w1 = /* @__PURE__ */ Jt({
|
|
|
17288
17289
|
{
|
|
17289
17290
|
path: "/foodcourt",
|
|
17290
17291
|
name: "$settings-food-court",
|
|
17291
|
-
component: () => import("./FoodCourt-
|
|
17292
|
+
component: () => import("./FoodCourt-b9e42611.js"),
|
|
17292
17293
|
meta: {
|
|
17293
17294
|
i18nKey: "settings.food_court.list.title"
|
|
17294
17295
|
}
|
|
@@ -17343,7 +17344,7 @@ const w1 = /* @__PURE__ */ Jt({
|
|
|
17343
17344
|
__name: "NavigationTab",
|
|
17344
17345
|
emits: ["close-navigation"],
|
|
17345
17346
|
setup(t, { emit: e }) {
|
|
17346
|
-
const r = e, { t: s } = sc(), o = V0(), u = Ln(), c = Ge(() => u.restaurants.value.some(({ posVersion: g }) =>
|
|
17347
|
+
const r = e, { t: s } = sc(), o = V0(), u = Ln(), c = Ge(() => u.restaurants.value.some(({ posVersion: g }) => Y0.canUse({ feature: z0.Enum.templateBuilder, posVersion: g ?? "" }))), f = Ge(() => S1.filter((_) => {
|
|
17347
17348
|
var b;
|
|
17348
17349
|
return _.redirect || (b = _.meta) != null && b.hideNavigation ? !1 : !(_.name === "$settings-template-builder" && !c.value);
|
|
17349
17350
|
}).map((_) => {
|
|
@@ -17370,7 +17371,7 @@ const w1 = /* @__PURE__ */ Jt({
|
|
|
17370
17371
|
}, null, 8, ["modelValue", "items"]);
|
|
17371
17372
|
};
|
|
17372
17373
|
}
|
|
17373
|
-
}),
|
|
17374
|
+
}), _P = /* @__PURE__ */ Jt({
|
|
17374
17375
|
__name: "App",
|
|
17375
17376
|
setup(t) {
|
|
17376
17377
|
const e = Ln();
|
|
@@ -17396,7 +17397,7 @@ async function N1() {
|
|
|
17396
17397
|
async function L1() {
|
|
17397
17398
|
await C1(), await N1();
|
|
17398
17399
|
}
|
|
17399
|
-
const
|
|
17400
|
+
const vP = {
|
|
17400
17401
|
"en-US": {
|
|
17401
17402
|
...jS,
|
|
17402
17403
|
...pd["en-US"]
|
|
@@ -17408,33 +17409,33 @@ const _P = {
|
|
|
17408
17409
|
};
|
|
17409
17410
|
export {
|
|
17410
17411
|
S1 as A,
|
|
17411
|
-
|
|
17412
|
+
_P as B,
|
|
17412
17413
|
or as F,
|
|
17413
17414
|
tO as _,
|
|
17414
17415
|
wo as a,
|
|
17415
|
-
|
|
17416
|
+
H1 as b,
|
|
17416
17417
|
xi as c,
|
|
17417
17418
|
J0 as d,
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17419
|
+
G1 as e,
|
|
17420
|
+
V1 as f,
|
|
17421
|
+
mP as g,
|
|
17421
17422
|
wn as h,
|
|
17422
|
-
|
|
17423
|
+
hP as i,
|
|
17423
17424
|
br as j,
|
|
17424
17425
|
HS as k,
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17426
|
+
Y1 as l,
|
|
17427
|
+
K1 as m,
|
|
17428
|
+
j1 as n,
|
|
17428
17429
|
Am as o,
|
|
17429
17430
|
b1 as p,
|
|
17430
17431
|
Au as q,
|
|
17431
|
-
|
|
17432
|
+
z1 as r,
|
|
17432
17433
|
y1 as s,
|
|
17433
17434
|
_1 as t,
|
|
17434
|
-
|
|
17435
|
+
q1 as u,
|
|
17435
17436
|
E1 as v,
|
|
17436
|
-
|
|
17437
|
-
|
|
17437
|
+
gP as w,
|
|
17438
|
+
pP as x,
|
|
17438
17439
|
L1 as y,
|
|
17439
|
-
|
|
17440
|
+
vP as z
|
|
17440
17441
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as f, z as u, y as x, A as y } from "./app-29117ada.js";
|
|
2
2
|
import "@feedmepos/mf-common";
|
|
3
3
|
import "@feedmepos/mf-mdm";
|
|
4
4
|
import "vue";
|
|
@@ -6,11 +6,12 @@ import "vue-router";
|
|
|
6
6
|
import "@feedmepos/mf-e-invoice";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
8
|
import "pinia";
|
|
9
|
-
import "@feedmepos/core";
|
|
9
|
+
import "@feedmepos/core/entity";
|
|
10
10
|
import "@vue/devtools-api";
|
|
11
|
+
import "@feedmepos/core";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
f as FmApp,
|
|
14
|
+
u as i18nMessages,
|
|
15
|
+
x as initSettings,
|
|
16
|
+
y as routers
|
|
16
17
|
};
|
|
@@ -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,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 { 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";
|