@feedmepos/mf-common 1.17.0-beta.5 → 1.17.0-beta.7
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-09d2e73a.js → CustomAttributesForm-4bcca918.js} +1 -1
- package/dist/{ItemSelector-e9a022e4.js → ItemSelector-a11fe943.js} +1 -1
- package/dist/{RestaurantSelector-05977386.js → RestaurantSelector-90e32152.js} +11 -10
- package/dist/{app-78af1c3b.js → app-c2db7fc4.js} +488 -491
- package/dist/app.js +1 -1
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as _, computed as m, resolveComponent as v, openBlock as c, createElementBlock as p, createVNode as k, toDisplayString as A, unref as N, h as V } from "vue";
|
2
|
-
import { n as S, u as C } from "./app-
|
2
|
+
import { n as S, u as C } from "./app-c2db7fc4.js";
|
3
3
|
import { components as O } from "@feedmepos/ui-library";
|
4
4
|
import { c as w } from "./object-27ce045b.js";
|
5
5
|
import "pinia";
|
@@ -2,7 +2,7 @@ import { ref as lt, computed as Re, defineComponent as si, onMounted as li, watc
|
|
2
2
|
import { x as Mn, v as ci } from "./app-f61631fd.js";
|
3
3
|
import { FmButtonVariant as Un } from "@feedmepos/ui-library";
|
4
4
|
import { c as er } from "./object-27ce045b.js";
|
5
|
-
import { c as on, l as fe, e as Nt, a as ve, d as Ze, b as Ke, f as di, u as En, g as pi, n as hi } from "./app-
|
5
|
+
import { c as on, l as fe, e as Nt, a as ve, d as Ze, b as Ke, f as di, u as En, g as pi, n as hi } from "./app-c2db7fc4.js";
|
6
6
|
import { defineStore as fi } from "pinia";
|
7
7
|
import "vue-router";
|
8
8
|
var $t = {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as C, computed as i, defineComponent as J, mergeModels as X, useModel as Y, watch as Z, resolveComponent as x, openBlock as v, createElementBlock as h, createElementVNode as k, createVNode as m, withCtx as O, normalizeClass as ee, toDisplayString as le, createCommentVNode as B, withModifiers as E, unref as y, Fragment as
|
2
|
-
import { x as
|
1
|
+
import { ref as C, computed as i, defineComponent as J, mergeModels as X, useModel as Y, watch as Z, resolveComponent as x, openBlock as v, createElementBlock as h, createElementVNode as k, createVNode as m, withCtx as O, normalizeClass as ee, toDisplayString as le, createCommentVNode as B, withModifiers as E, unref as y, Fragment as z, renderList as $, createBlock as D, renderSlot as te, nextTick as ae } from "vue";
|
2
|
+
import { x as L, v as ne } from "./app-f61631fd.js";
|
3
3
|
import { storeToRefs as re } from "pinia";
|
4
|
-
import { n as ue, u as oe } from "./app-
|
4
|
+
import { n as ue, u as oe } from "./app-c2db7fc4.js";
|
5
5
|
import "@feedmepos/ui-library";
|
6
6
|
import "vue-router";
|
7
7
|
function se(p, t) {
|
@@ -20,7 +20,7 @@ function se(p, t) {
|
|
20
20
|
t.value === void 0 && r.value ? a = [u] : t.value === void 0 && !r.value ? a = (f = p.value.map((c) => c.value)) == null ? void 0 : f.filter((c) => c !== u) : (b = t.value) != null && b.includes(u) ? a = (w = t.value) == null ? void 0 : w.filter((c) => c !== u) : a = [...t.value || [], u], a.length === 0 ? (t.value = void 0, r.value = !0) : a.length === p.value.length ? (t.value = void 0, r.value = !1) : t.value = a;
|
21
21
|
} };
|
22
22
|
}
|
23
|
-
const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center gap-8" }, de = { class: "inline-flex items-center" }, ve = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, fe = { class: "flex gap-4 px-[6px]" }, me = { class: "flex-1" }, pe = { class: "flex-1 overflow-y-auto min-h-0" }, ge = { key: 0 }, Fe = /* @__PURE__ */ J({
|
23
|
+
const ie = { class: "w-full flex flex-col gap-8" }, ce = { class: "flex items-center gap-8" }, de = { class: "inline-flex items-center" }, ve = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, fe = { class: "flex gap-4 px-[6px]" }, me = { class: "flex-1" }, pe = { class: "flex-1 overflow-y-auto min-h-0" }, ge = { key: 0 }, Fe = /* @__PURE__ */ J({
|
24
24
|
__name: "RestaurantSelector",
|
25
25
|
props: /* @__PURE__ */ X({
|
26
26
|
multiple: { type: Boolean, default: !1 },
|
@@ -58,7 +58,7 @@ const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center ga
|
|
58
58
|
label: e.profile.name,
|
59
59
|
value: e._id
|
60
60
|
}))), c = i(
|
61
|
-
() => g.value.filter((e) => t.managableOnly ? e.managable : !0).filter((e) => a.value ? e.profile.name.toLowerCase().includes(a.value.toLowerCase()) : !0).filter((e) => t.multiple ? !0 :
|
61
|
+
() => g.value.filter((e) => t.managableOnly ? e.managable : !0).filter((e) => a.value ? e.profile.name.toLowerCase().includes(a.value.toLowerCase()) : !0).filter((e) => t.multiple ? !0 : L(e.customAttributes, d.value)).map((e) => ({
|
62
62
|
label: e.profile.name,
|
63
63
|
value: e._id
|
64
64
|
})).filter((e) => {
|
@@ -97,10 +97,10 @@ const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center ga
|
|
97
97
|
n.value = null;
|
98
98
|
return;
|
99
99
|
}
|
100
|
-
const l = g.value.filter((o) =>
|
100
|
+
const l = g.value.filter((o) => L(o.customAttributes, d.value));
|
101
101
|
n.value = l.map((o) => o._id);
|
102
102
|
} else {
|
103
|
-
const l = g.value.filter((o) =>
|
103
|
+
const l = g.value.filter((o) => L(o.customAttributes, d.value));
|
104
104
|
l.length === 0 ? n.value = null : n.value = (e = l[0]) == null ? void 0 : e._id;
|
105
105
|
}
|
106
106
|
}), (e, l) => {
|
@@ -146,6 +146,7 @@ const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center ga
|
|
146
146
|
}, [
|
147
147
|
m(o, {
|
148
148
|
name: "filter_alt",
|
149
|
+
size: "sm",
|
149
150
|
outline: G.value === 0,
|
150
151
|
color: e.disabled ? "neutral-gray-200" : "neutral-gray-400",
|
151
152
|
onClick: l[0] || (l[0] = E(() => {
|
@@ -169,7 +170,7 @@ const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center ga
|
|
169
170
|
])
|
170
171
|
]),
|
171
172
|
k("div", pe, [
|
172
|
-
e.multiple ? (v(), h(
|
173
|
+
e.multiple ? (v(), h(z, { key: 0 }, [
|
173
174
|
m(R, {
|
174
175
|
label: "All",
|
175
176
|
"has-checkbox": "",
|
@@ -177,7 +178,7 @@ const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center ga
|
|
177
178
|
indeterminate: y(P),
|
178
179
|
onClick: y(j)
|
179
180
|
}, null, 8, ["model-value", "indeterminate", "onClick"]),
|
180
|
-
(v(!0), h(
|
181
|
+
(v(!0), h(z, null, $(c.value, (s) => {
|
181
182
|
var M;
|
182
183
|
return v(), D(R, {
|
183
184
|
key: s.value,
|
@@ -187,7 +188,7 @@ const ie = { class: "flex flex-col gap-8" }, ce = { class: "flex items-center ga
|
|
187
188
|
onClick: (ye) => y(K)(s.value)
|
188
189
|
}, null, 8, ["label", "model-value", "onClick"]);
|
189
190
|
}), 128))
|
190
|
-
], 64)) : (v(!0), h(
|
191
|
+
], 64)) : (v(!0), h(z, { key: 1 }, $(c.value, (s) => (v(), D(R, {
|
191
192
|
key: s.value,
|
192
193
|
label: s.label,
|
193
194
|
onClick: (M) => b(s.value)
|