@feedmepos/mf-settings 0.0.50-prod → 0.0.52
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-ccc37fd9.js → App-22950de9.js} +152 -143
- package/dist/Business-c9b59843.js +3893 -0
- package/dist/{CreateBusiness-ec365db8.js → CreateBusiness-0850150d.js} +86 -86
- package/dist/{FoodCourt-652c44f9.js → FoodCourt-ad9640e4.js} +60 -61
- package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
- package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
- package/dist/{Tagging-798e2bb7.js → Tagging-55538d2b.js} +6402 -6404
- package/dist/TemplateBuilder-54a34178.js +27 -0
- package/dist/{app-bd3cfc9c.js → app-b66ea7e1.js} +358 -40
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +1 -0
- package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
- package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-93826a8c.js → business-906742ba.js} +1 -1
- package/dist/{loading-6ee8ebc9.js → index-72d7bc88.js} +465 -466
- package/dist/{tslib.es6-449ce8af.js → map-695afd6f.js} +444 -561
- package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
- package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
- package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
- package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
- package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
- package/dist/packages/shared/src/helpers/string.d.ts +12 -0
- package/package.json +3 -3
- package/dist/Business-edf5bd92.js +0 -11975
- package/dist/TemplateBuilder-3e34e9e8.js +0 -27
|
@@ -1,12 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as K, computed as N, resolveComponent as z, openBlock as j, createBlock as P, normalizeProps as it, mergeProps as G, createElementBlock as X, createVNode as tt, mergeModels as ot, useModel as ut, watchEffect as ct, withCtx as Q, Fragment as lt, renderList as ft } from "vue";
|
|
2
|
+
import { useBreakpoints as dt, useSnackbar as ht } from "@feedmepos/ui-library";
|
|
3
|
+
import { c as mt, g as $t } from "./index-f1e5e565.js";
|
|
4
|
+
import { useCoreStore as pt } from "@feedmepos/mf-common";
|
|
5
|
+
const vt = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "z-10 fixed bottom-72 right-16"
|
|
8
|
+
}, Dt = /* @__PURE__ */ K({
|
|
9
|
+
__name: "ResponsiveFabButton",
|
|
10
|
+
props: {
|
|
11
|
+
variant: {},
|
|
12
|
+
label: {},
|
|
13
|
+
icon: {},
|
|
14
|
+
size: {},
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
iconColor: {},
|
|
17
|
+
borderColor: {},
|
|
18
|
+
textColor: {},
|
|
19
|
+
bgColor: {},
|
|
20
|
+
type: {},
|
|
21
|
+
iconPosition: {},
|
|
22
|
+
prependIcon: {},
|
|
23
|
+
appendIcon: {},
|
|
24
|
+
loading: { type: Boolean },
|
|
25
|
+
disableIconStatus: { type: Boolean },
|
|
26
|
+
overwriteIconOutline: {}
|
|
27
|
+
},
|
|
28
|
+
setup(S) {
|
|
29
|
+
const M = S, v = N(() => M.variant === "primary" || !M.variant ? "fab" : M.variant), y = dt(), D = N(() => y.breakpoints.value.xs);
|
|
30
|
+
return (g, l) => {
|
|
31
|
+
const m = z("FmButton");
|
|
32
|
+
return D.value ? (j(), X("div", vt, [
|
|
33
|
+
tt(m, G(M, { variant: v.value }), null, 16, ["variant"])
|
|
34
|
+
])) : (j(), P(m, it(G({ key: 0 }, M)), null, 16));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
function St() {
|
|
39
|
+
const S = ht();
|
|
40
|
+
return { copyTextToClipboard: async (v, y = "Copied") => {
|
|
41
|
+
const D = "text/plain", g = new Blob([v], { type: D }), l = [new ClipboardItem({ [D]: g })];
|
|
42
|
+
await navigator.clipboard.write(l), y && S.open({
|
|
43
|
+
title: y,
|
|
44
|
+
message: v,
|
|
45
|
+
type: "success"
|
|
46
|
+
});
|
|
47
|
+
} };
|
|
48
|
+
}
|
|
5
49
|
var et = { exports: {} };
|
|
6
50
|
(function(S, M) {
|
|
7
51
|
(function(v, y) {
|
|
8
52
|
S.exports = y();
|
|
9
|
-
})(
|
|
53
|
+
})(mt, function() {
|
|
10
54
|
var v = 1e3, y = 6e4, D = 36e5, g = "millisecond", l = "second", m = "minute", w = "hour", _ = "day", T = "week", $ = "month", E = "quarter", k = "year", B = "date", R = "Invalid Date", nt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, rt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, at = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
|
|
11
55
|
var n = ["th", "st", "nd", "rd"], t = a % 100;
|
|
12
56
|
return "[" + a + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
@@ -292,10 +336,10 @@ var et = { exports: {} };
|
|
|
292
336
|
}, f.en = C[Y], f.Ls = C, f.p = {}, f;
|
|
293
337
|
});
|
|
294
338
|
})(et);
|
|
295
|
-
var
|
|
296
|
-
const
|
|
339
|
+
var yt = et.exports;
|
|
340
|
+
const wt = /* @__PURE__ */ $t(yt), kt = /* @__PURE__ */ K({
|
|
297
341
|
__name: "RestaurantSelector",
|
|
298
|
-
props: /* @__PURE__ */
|
|
342
|
+
props: /* @__PURE__ */ ot({
|
|
299
343
|
managableOnly: { type: Boolean, default: !1 },
|
|
300
344
|
excludeRestaurants: {},
|
|
301
345
|
label: {},
|
|
@@ -306,7 +350,7 @@ const Dt = /* @__PURE__ */ ot(vt), St = /* @__PURE__ */ K({
|
|
|
306
350
|
}),
|
|
307
351
|
emits: ["update:modelValue"],
|
|
308
352
|
setup(S) {
|
|
309
|
-
const M = S, v =
|
|
353
|
+
const M = S, v = ut(S, "modelValue"), { restaurants: y } = pt(), D = N(() => {
|
|
310
354
|
var l;
|
|
311
355
|
return ((l = g.value.find((m) => m.value === v.value)) == null ? void 0 : l.label) || "Select restaurant";
|
|
312
356
|
}), g = N(
|
|
@@ -318,20 +362,20 @@ const Dt = /* @__PURE__ */ ot(vt), St = /* @__PURE__ */ K({
|
|
|
318
362
|
return !((m = M.excludeRestaurants) != null && m.includes(l.value));
|
|
319
363
|
})
|
|
320
364
|
);
|
|
321
|
-
return
|
|
365
|
+
return ct(() => {
|
|
322
366
|
M.autoSelectFirst && g.value.length > 0 && (v.value = g.value[0].value);
|
|
323
367
|
}), (l, m) => {
|
|
324
368
|
const w = z("FmChip"), _ = z("FmMenuItem"), T = z("FmMenu");
|
|
325
369
|
return j(), P(T, null, {
|
|
326
|
-
"menu-button":
|
|
327
|
-
|
|
370
|
+
"menu-button": Q(() => [
|
|
371
|
+
tt(w, {
|
|
328
372
|
icon: "storefront",
|
|
329
373
|
label: D.value,
|
|
330
374
|
"right-icon": "keyboard_arrow_down"
|
|
331
375
|
}, null, 8, ["label"])
|
|
332
376
|
]),
|
|
333
|
-
default:
|
|
334
|
-
(j(!0),
|
|
377
|
+
default: Q(() => [
|
|
378
|
+
(j(!0), X(lt, null, ft(g.value, ($) => (j(), P(_, {
|
|
335
379
|
key: $.value,
|
|
336
380
|
label: $.label,
|
|
337
381
|
onClick: (E) => v.value = $.value
|
|
@@ -342,54 +386,10 @@ const Dt = /* @__PURE__ */ ot(vt), St = /* @__PURE__ */ K({
|
|
|
342
386
|
};
|
|
343
387
|
}
|
|
344
388
|
});
|
|
345
|
-
function wt() {
|
|
346
|
-
const S = $t();
|
|
347
|
-
return { copyTextToClipboard: async (v, y = "Copied") => {
|
|
348
|
-
const D = "text/plain", g = new Blob([v], { type: D }), l = [new ClipboardItem({ [D]: g })];
|
|
349
|
-
await navigator.clipboard.write(l), y && S.open({
|
|
350
|
-
title: y,
|
|
351
|
-
message: v,
|
|
352
|
-
type: "success"
|
|
353
|
-
});
|
|
354
|
-
} };
|
|
355
|
-
}
|
|
356
|
-
const yt = {
|
|
357
|
-
key: 1,
|
|
358
|
-
class: "z-10 fixed bottom-72 right-16"
|
|
359
|
-
}, kt = /* @__PURE__ */ K({
|
|
360
|
-
__name: "ResponsiveFabButton",
|
|
361
|
-
props: {
|
|
362
|
-
variant: {},
|
|
363
|
-
label: {},
|
|
364
|
-
icon: {},
|
|
365
|
-
size: {},
|
|
366
|
-
disabled: { type: Boolean },
|
|
367
|
-
iconColor: {},
|
|
368
|
-
borderColor: {},
|
|
369
|
-
textColor: {},
|
|
370
|
-
bgColor: {},
|
|
371
|
-
type: {},
|
|
372
|
-
iconPosition: {},
|
|
373
|
-
prependIcon: {},
|
|
374
|
-
appendIcon: {},
|
|
375
|
-
loading: { type: Boolean },
|
|
376
|
-
disableIconStatus: { type: Boolean },
|
|
377
|
-
overwriteIconOutline: {}
|
|
378
|
-
},
|
|
379
|
-
setup(S) {
|
|
380
|
-
const M = S, v = N(() => M.variant === "primary" || !M.variant ? "fab" : M.variant), y = pt(), D = N(() => y.breakpoints.value.xs);
|
|
381
|
-
return (g, l) => {
|
|
382
|
-
const m = z("FmButton");
|
|
383
|
-
return D.value ? (j(), tt("div", yt, [
|
|
384
|
-
X(m, Q(M, { variant: v.value }), null, 16, ["variant"])
|
|
385
|
-
])) : (j(), P(m, ht(Q({ key: 0 }, M)), null, 16));
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
389
|
export {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
390
|
+
wt as D,
|
|
391
|
+
kt as _,
|
|
392
|
+
Dt as a,
|
|
393
|
+
yt as d,
|
|
394
|
+
St as u
|
|
395
395
|
};
|