@feedmepos/mf-common 1.29.10 → 1.29.12
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-83669bc2.js +128 -0
- package/dist/{ItemSelector-dfed278e.js → ItemSelector-98a91f79.js} +3 -3
- package/dist/{RestaurantSelector-4c6735d4.js → RestaurantSelector-d442ff46.js} +55 -55
- package/dist/{app-e095189e.js → app-7e617adf.js} +8450 -8566
- package/dist/app.js +17 -16
- package/dist/components/attribute/CustomAttributesForm.vue.d.ts.map +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/CustomAttributesForm-65b1d542.js +0 -102
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { defineComponent as C, computed as y, resolveComponent as N, openBlock as h, createElementBlock as v, createVNode as S, toDisplayString as F, unref as w, h as c } from "vue";
|
|
2
|
+
import { t as x, u as B } from "./app-7e617adf.js";
|
|
3
|
+
import { components as p } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as O } from "./object-27ce045b.js";
|
|
5
|
+
import "pinia";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
const U = { key: 0 }, z = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-fm-color-neutral-gray-500"
|
|
10
|
+
}, L = /* @__PURE__ */ C({
|
|
11
|
+
__name: "CustomAttributesForm",
|
|
12
|
+
props: {
|
|
13
|
+
entity: {},
|
|
14
|
+
modelValue: {},
|
|
15
|
+
valueOptions: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(g, { emit: k }) {
|
|
19
|
+
const n = g, V = k, { t: u } = x(), f = B();
|
|
20
|
+
function _(t) {
|
|
21
|
+
var e;
|
|
22
|
+
if ((e = n.valueOptions) != null && e[t] && n.valueOptions[t].length > 0)
|
|
23
|
+
return n.valueOptions[t];
|
|
24
|
+
if (n.entity === "restaurant") {
|
|
25
|
+
const a = f.restaurants.value.map((i) => {
|
|
26
|
+
var o;
|
|
27
|
+
return (o = i.customAttributes) == null ? void 0 : o[t];
|
|
28
|
+
}).filter((i) => typeof i == "string" && !!i), s = [...new Set(a)];
|
|
29
|
+
return s.length > 0 ? s : void 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const b = y(() => {
|
|
33
|
+
var t, e;
|
|
34
|
+
return ((e = (t = f.currentBusiness.value) == null ? void 0 : t.attributeSettings) == null ? void 0 : e.filter(
|
|
35
|
+
(a) => a.entity === n.entity
|
|
36
|
+
)) || [];
|
|
37
|
+
}), d = y(() => b.value.map((t) => {
|
|
38
|
+
var s;
|
|
39
|
+
const e = _(t.key), a = t.type === "boolean" ? !1 : "";
|
|
40
|
+
return {
|
|
41
|
+
key: t.key,
|
|
42
|
+
type: t.type,
|
|
43
|
+
value: ((s = n.modelValue) == null ? void 0 : s[t.key]) ?? a,
|
|
44
|
+
options: e
|
|
45
|
+
};
|
|
46
|
+
}) || []), A = [
|
|
47
|
+
{
|
|
48
|
+
header: () => u("portalshell.customAttributes.form.key"),
|
|
49
|
+
accessorKey: "key",
|
|
50
|
+
enableSorting: !1
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
header: () => u("portalshell.customAttributes.form.value"),
|
|
54
|
+
accessorKey: "value",
|
|
55
|
+
enableSorting: !1,
|
|
56
|
+
cell: (t) => {
|
|
57
|
+
var i;
|
|
58
|
+
const e = t.row.original, a = (o) => {
|
|
59
|
+
const l = O(n.modelValue), r = l[e.key] = typeof o == "string" ? o.trim() : o;
|
|
60
|
+
if (e.type === "number")
|
|
61
|
+
if (r === "" || r === null || r === void 0)
|
|
62
|
+
l[e.key] = "";
|
|
63
|
+
else {
|
|
64
|
+
if (typeof r == "boolean" || isNaN(Number(r)))
|
|
65
|
+
return;
|
|
66
|
+
l[e.key] = Number(r);
|
|
67
|
+
}
|
|
68
|
+
if (e.type === "boolean")
|
|
69
|
+
if (r === "" || r === null || r === void 0)
|
|
70
|
+
l[e.key] = "";
|
|
71
|
+
else if (typeof r == "string") {
|
|
72
|
+
const m = r.toLowerCase();
|
|
73
|
+
if (m === "true")
|
|
74
|
+
l[e.key] = !0;
|
|
75
|
+
else if (m === "false")
|
|
76
|
+
l[e.key] = !1;
|
|
77
|
+
else
|
|
78
|
+
return;
|
|
79
|
+
} else if (typeof r == "boolean")
|
|
80
|
+
l[e.key] = r;
|
|
81
|
+
else
|
|
82
|
+
return;
|
|
83
|
+
Object.keys(l).forEach((m) => {
|
|
84
|
+
(l[m] === "" || l[m] === null || l[m] === void 0) && delete l[m];
|
|
85
|
+
}), V("update:modelValue", l);
|
|
86
|
+
}, s = ((i = b.value.find((o) => o.key === e.key)) == null ? void 0 : i.options) || [];
|
|
87
|
+
return s != null && s.length ? c(p.FmSelect, {
|
|
88
|
+
modelValue: e.value,
|
|
89
|
+
placeholder: u("portalshell.customAttributes.form.valuePlaceholder"),
|
|
90
|
+
items: s.map((o) => ({ label: o, value: o })),
|
|
91
|
+
"onUpdate:modelValue": a
|
|
92
|
+
}) : e.type === "boolean" ? c(p.FmCheckbox, {
|
|
93
|
+
modelValue: e.value,
|
|
94
|
+
value: !0,
|
|
95
|
+
"onUpdate:modelValue": a
|
|
96
|
+
}) : e.type === "date" ? c(p.FmDatePicker, {
|
|
97
|
+
modelValue: e.value,
|
|
98
|
+
placeholder: u("portalshell.customAttributes.form.valuePlaceholder"),
|
|
99
|
+
"onUpdate:modelValue": a
|
|
100
|
+
}) : c(p.FmTextField, {
|
|
101
|
+
modelValue: e.value,
|
|
102
|
+
placeholder: u("portalshell.customAttributes.form.valuePlaceholder"),
|
|
103
|
+
datalist: e.options,
|
|
104
|
+
rules: [
|
|
105
|
+
(o) => e.type === "number" && isNaN(Number(o)) ? u("portalshell.customAttributes.form.attributeValueMustBeNumber") : !0
|
|
106
|
+
],
|
|
107
|
+
"onUpdate:modelValue": a
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
return (t, e) => {
|
|
113
|
+
const a = N("FmTable");
|
|
114
|
+
return d.value.length > 0 ? (h(), v("div", U, [
|
|
115
|
+
S(a, {
|
|
116
|
+
"column-defs": A,
|
|
117
|
+
"row-data": d.value,
|
|
118
|
+
"shrink-at": !1,
|
|
119
|
+
"page-size": d.value.length,
|
|
120
|
+
"hide-footer": ""
|
|
121
|
+
}, null, 8, ["row-data", "page-size"])
|
|
122
|
+
])) : (h(), v("p", z, F(w(u)("portalshell.customAttributes.form.noCustomAttributes")), 1));
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export {
|
|
127
|
+
L as default
|
|
128
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as pr, computed as Ut, defineComponent as dd, onMounted as cd, watch as ks, resolveComponent as ii, openBlock as jt, createElementBlock as an, createElementVNode as At, toDisplayString as js, unref as Tt, createVNode as Kt, isRef as fd, createCommentVNode as Lr, Fragment as so, renderList as lo, createBlock as ui, withCtx as co, normalizeClass as Go, Transition as Ms } from "vue";
|
|
2
|
-
import { c as gr, l as U, d as Me, e as Qe, f as $d, u as Ho, g as hd, a as pd, O as Ss, t as gd, b as bd } from "./app-
|
|
2
|
+
import { c as gr, l as U, d as Me, e as Qe, f as $d, u as Ho, g as hd, a as pd, O as Ss, t as gd, b as bd } from "./app-7e617adf.js";
|
|
3
3
|
import { FmButtonVariant as Vr } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as md } from "pinia";
|
|
5
5
|
import { c as Hr } from "./object-27ce045b.js";
|
|
@@ -50295,7 +50295,7 @@ const n$ = md("mf-common-menu", () => {
|
|
|
50295
50295
|
class: "flex-1",
|
|
50296
50296
|
"onUpdate:modelValue": (b) => H(c, b)
|
|
50297
50297
|
}, null, 8, ["indeterminate", "label", "model-value", "value", "onUpdate:modelValue"]),
|
|
50298
|
-
|
|
50298
|
+
n.showVariant && ((f = c.variant) != null && f.length) ? (jt(), ui(i, {
|
|
50299
50299
|
key: 0,
|
|
50300
50300
|
class: Go([
|
|
50301
50301
|
de.value.includes(c.value) ? "rotate-180" : "",
|
|
@@ -50309,7 +50309,7 @@ const n$ = md("mf-common-menu", () => {
|
|
|
50309
50309
|
]),
|
|
50310
50310
|
Kt(Ms, { name: "expand" }, {
|
|
50311
50311
|
default: co(() => [
|
|
50312
|
-
|
|
50312
|
+
n.showVariant && de.value.includes(c.value) ? (jt(), an("div", b$, [
|
|
50313
50313
|
(jt(!0), an(so, null, lo(c.variant, (b) => (jt(), ui(u, {
|
|
50314
50314
|
key: b.value,
|
|
50315
50315
|
label: b.label,
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { t as ve, u as de, a as fe, O as E, b as me } from "./app-
|
|
1
|
+
import { ref as S, computed as o, defineComponent as ae, mergeModels as ne, useModel as ue, watch as j, resolveComponent as k, openBlock as i, createElementBlock as b, createElementVNode as C, createVNode as y, withCtx as L, normalizeClass as re, toDisplayString as oe, createCommentVNode as N, createBlock as O, withModifiers as K, unref as g, isRef as se, Fragment as Q, renderList as T, renderSlot as ie, nextTick as ce } from "vue";
|
|
2
|
+
import { t as ve, u as de, a as fe, O as E, b as me } from "./app-7e617adf.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "pinia";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
function pe(
|
|
7
|
-
const a =
|
|
6
|
+
function pe(f, t, c = f) {
|
|
7
|
+
const a = S(!0), v = o(() => {
|
|
8
8
|
if (!a.value && !t.value)
|
|
9
9
|
return !0;
|
|
10
10
|
if (t.value && t.value.length > 0) {
|
|
11
|
-
const u = new Set(
|
|
12
|
-
return t.value.length ===
|
|
11
|
+
const u = new Set(c.value.map((n) => n.value));
|
|
12
|
+
return t.value.length === c.value.length && t.value.every((n) => u.has(n));
|
|
13
13
|
}
|
|
14
14
|
return !1;
|
|
15
|
-
}),
|
|
15
|
+
}), x = o(() => {
|
|
16
16
|
var u, n, h, m;
|
|
17
|
-
return !!((u = t.value) != null && u.length && ((n = t.value) == null ? void 0 : n.length) > 0 && ((h = t.value) == null ? void 0 : h.length) < ((m =
|
|
17
|
+
return !!((u = t.value) != null && u.length && ((n = t.value) == null ? void 0 : n.length) > 0 && ((h = t.value) == null ? void 0 : h.length) < ((m = f.value) == null ? void 0 : m.length));
|
|
18
18
|
});
|
|
19
|
-
return { allCleared: a, allSelected:
|
|
20
|
-
if (
|
|
19
|
+
return { allCleared: a, allSelected: v, indeterminate: x, toggleAll: () => {
|
|
20
|
+
if (v.value) {
|
|
21
21
|
t.value = void 0, a.value = !0;
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
const u =
|
|
25
|
-
u.length ===
|
|
24
|
+
const u = c.value.map((n) => n.value);
|
|
25
|
+
u.length === f.value.length ? (t.value = void 0, a.value = !1) : (t.value = u, a.value = !1);
|
|
26
26
|
}, toggleOption: (u) => {
|
|
27
27
|
var h, m, w;
|
|
28
28
|
let n;
|
|
29
|
-
t.value === void 0 && a.value ? n = [u] : t.value === void 0 && !a.value ? n = (h =
|
|
29
|
+
t.value === void 0 && a.value ? n = [u] : t.value === void 0 && !a.value ? n = (h = f.value.map((p) => p.value)) == null ? void 0 : h.filter((p) => p !== u) : (m = t.value) != null && m.includes(u) ? n = (w = t.value) == null ? void 0 : w.filter((p) => p !== u) : n = [...t.value || [], u], n.length === 0 ? (t.value = void 0, a.value = !0) : n.length === f.value.length ? (t.value = void 0, a.value = !1) : t.value = n;
|
|
30
30
|
} };
|
|
31
31
|
}
|
|
32
|
-
const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-center gap-8" }, be = { class: "inline-flex items-center" }, ye = { class: "flex flex-col w-[360px] min-h-0 gap-8" },
|
|
32
|
+
const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-center gap-8" }, be = { class: "inline-flex items-center" }, ye = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, _e = { class: "flex gap-4 px-[6px]" }, ke = { class: "flex-1" }, Ce = { class: "flex-1 overflow-y-auto min-h-0" }, Se = { key: 0 }, Me = /* @__PURE__ */ ae({
|
|
33
33
|
__name: "RestaurantSelector",
|
|
34
34
|
props: /* @__PURE__ */ ne({
|
|
35
35
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -43,22 +43,22 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
43
43
|
modelModifiers: {}
|
|
44
44
|
}),
|
|
45
45
|
emits: ["update:modelValue"],
|
|
46
|
-
setup(
|
|
47
|
-
const t =
|
|
46
|
+
setup(f) {
|
|
47
|
+
const t = f, { t: c } = ve(), a = ue(f, "modelValue"), { restaurants: v, restaurantAttributeSettings: x } = de(), R = o(() => v.value.length === 0);
|
|
48
48
|
function P(e) {
|
|
49
|
-
const l =
|
|
49
|
+
const l = v.value.map((_) => {
|
|
50
50
|
var A;
|
|
51
|
-
return (A =
|
|
52
|
-
}).filter((
|
|
51
|
+
return (A = _.customAttributes) == null ? void 0 : A[e];
|
|
52
|
+
}).filter((_) => typeof _ == "string" && !!_);
|
|
53
53
|
return [...new Set(l)];
|
|
54
54
|
}
|
|
55
|
-
const u = o(() =>
|
|
55
|
+
const u = o(() => x.value.map((e) => {
|
|
56
56
|
const l = P(e.key);
|
|
57
57
|
return {
|
|
58
58
|
...e,
|
|
59
59
|
values: l
|
|
60
60
|
};
|
|
61
|
-
})), { searchKey: n, filter: h } = fe(), m =
|
|
61
|
+
})), { searchKey: n, filter: h } = fe(), m = S(null);
|
|
62
62
|
function w(e) {
|
|
63
63
|
var l;
|
|
64
64
|
if (t.multiple)
|
|
@@ -71,8 +71,8 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
71
71
|
label: `${l} (${r ?? "--"})`,
|
|
72
72
|
value: e._id
|
|
73
73
|
};
|
|
74
|
-
}, M = o(() =>
|
|
75
|
-
() =>
|
|
74
|
+
}, M = o(() => v.value.map(p)), F = o(
|
|
75
|
+
() => v.value.filter((e) => t.managableOnly ? e.managable : !0).filter((e) => t.multiple ? !0 : E(e.customAttributes || {}, d.value)).map(p).filter(({ label: e }) => h([e])).filter((e) => {
|
|
76
76
|
var l;
|
|
77
77
|
return !((l = t.excludeRestaurants) != null && l.includes(e.value));
|
|
78
78
|
})
|
|
@@ -81,40 +81,40 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
81
81
|
return a.value ? a.value.length === 1 ? (e = M.value.find((l) => {
|
|
82
82
|
var r;
|
|
83
83
|
return l.value === ((r = a.value) == null ? void 0 : r[0]);
|
|
84
|
-
})) == null ? void 0 : e.label :
|
|
84
|
+
})) == null ? void 0 : e.label : c("portalshell.components.restaurantSelector.restaurantCount", {
|
|
85
85
|
count: a.value.length
|
|
86
|
-
}) :
|
|
86
|
+
}) : c("portalshell.components.restaurantSelector.allRestaurants");
|
|
87
87
|
}), q = o(() => {
|
|
88
88
|
var e;
|
|
89
|
-
return a.value ? ((e = M.value.find((l) => l.value === a.value)) == null ? void 0 : e.label) ||
|
|
89
|
+
return a.value ? ((e = M.value.find((l) => l.value === a.value)) == null ? void 0 : e.label) || c("portalshell.components.restaurantSelector.unknownRestaurant") : c("portalshell.components.restaurantSelector.selectRestaurant");
|
|
90
90
|
}), D = o(() => t.multiple ? W.value : q.value), B = o(() => t.disabled ? "neutral-gray-200" : t.variant === "dark" ? "neutral-black" : "neutral-gray-400"), G = o(() => t.disabled ? "text-fm-color-neutral-gray-200" : t.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), { allSelected: U, toggleAll: H, toggleOption: J, indeterminate: X } = pe(
|
|
91
91
|
M,
|
|
92
92
|
a,
|
|
93
93
|
F
|
|
94
|
-
), V =
|
|
94
|
+
), V = S(!1), Y = o(() => x.value.length > 0), z = S(null);
|
|
95
95
|
async function Z() {
|
|
96
96
|
t.disabled || (V.value ? V.value = !1 : (V.value = !0, await ce(), z.value && z.value.toggleProperty(!0)));
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const d = S((() => ({
|
|
99
99
|
logic: "AND",
|
|
100
100
|
rules: []
|
|
101
101
|
}))()), ee = o(() => {
|
|
102
102
|
var e, l;
|
|
103
|
-
return ((l = (e =
|
|
103
|
+
return ((l = (e = d.value) == null ? void 0 : e.rules) == null ? void 0 : l.length) || 0;
|
|
104
104
|
});
|
|
105
105
|
return j(
|
|
106
|
-
|
|
106
|
+
d,
|
|
107
107
|
() => {
|
|
108
108
|
var e;
|
|
109
109
|
if (t.multiple) {
|
|
110
|
-
if (!
|
|
110
|
+
if (!d.value || d.value.rules.length === 0) {
|
|
111
111
|
a.value = null;
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
const l =
|
|
114
|
+
const l = v.value.filter((r) => E(r.customAttributes || {}, d.value));
|
|
115
115
|
a.value = l.map((r) => r._id);
|
|
116
116
|
} else {
|
|
117
|
-
const l =
|
|
117
|
+
const l = v.value.filter((r) => E(r.customAttributes || {}, d.value));
|
|
118
118
|
l.length === 0 ? a.value = null : a.value = (e = l[0]) == null ? void 0 : e._id;
|
|
119
119
|
}
|
|
120
120
|
},
|
|
@@ -128,20 +128,20 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
128
128
|
},
|
|
129
129
|
{ immediate: !0 }
|
|
130
130
|
), (e, l) => {
|
|
131
|
-
const r =
|
|
132
|
-
return
|
|
133
|
-
|
|
131
|
+
const r = k("FmIcon"), _ = k("FmCircularProgress"), A = k("FmChip"), le = k("FmSearch"), $ = k("FmMenuItem"), te = k("FmMenu");
|
|
132
|
+
return i(), b("div", ge, [
|
|
133
|
+
C("div", he, [
|
|
134
134
|
y(te, {
|
|
135
135
|
"close-on-click": !1,
|
|
136
|
-
disabled:
|
|
136
|
+
disabled: e.disabled || R.value,
|
|
137
137
|
ref_key: "menuRef",
|
|
138
138
|
ref: m,
|
|
139
139
|
"z-index": 50,
|
|
140
140
|
"selector-for-dismiss-away-event-exclusion": ".fm-dialog, .fm-select__menu__wrapper"
|
|
141
141
|
}, {
|
|
142
142
|
"menu-button": L(() => [
|
|
143
|
-
|
|
144
|
-
y(A, { disabled:
|
|
143
|
+
C("div", be, [
|
|
144
|
+
y(A, { disabled: e.disabled }, {
|
|
145
145
|
default: L(() => [
|
|
146
146
|
y(r, {
|
|
147
147
|
color: B.value,
|
|
@@ -149,23 +149,23 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
149
149
|
outline: "",
|
|
150
150
|
size: "sm"
|
|
151
151
|
}, null, 8, ["color"]),
|
|
152
|
-
D.value ? (
|
|
152
|
+
D.value ? (i(), b("div", {
|
|
153
153
|
key: 0,
|
|
154
154
|
class: re([
|
|
155
155
|
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
156
156
|
G.value
|
|
157
157
|
])
|
|
158
158
|
}, oe(D.value), 3)) : N("", !0),
|
|
159
|
-
R.value ? (
|
|
159
|
+
R.value ? (i(), O(_, {
|
|
160
160
|
key: 1,
|
|
161
161
|
size: "md"
|
|
162
|
-
})) : (
|
|
162
|
+
})) : (i(), O(r, {
|
|
163
163
|
key: 2,
|
|
164
164
|
color: B.value,
|
|
165
165
|
name: "keyboard_arrow_down",
|
|
166
166
|
size: "sm"
|
|
167
167
|
}, null, 8, ["color"])),
|
|
168
|
-
Y.value ? (
|
|
168
|
+
Y.value ? (i(), b("div", {
|
|
169
169
|
key: 3,
|
|
170
170
|
class: "pl-8 flex items-center justify-center border-l border-fm-color-neutral-gray-200",
|
|
171
171
|
onClick: K(Z, ["stop"])
|
|
@@ -185,18 +185,18 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
185
185
|
])
|
|
186
186
|
]),
|
|
187
187
|
default: L(() => [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
C("div", ye, [
|
|
189
|
+
C("div", _e, [
|
|
190
|
+
C("div", ke, [
|
|
191
191
|
y(le, {
|
|
192
192
|
modelValue: g(n),
|
|
193
193
|
"onUpdate:modelValue": l[1] || (l[1] = (s) => se(n) ? n.value = s : null),
|
|
194
|
-
placeholder: g(
|
|
194
|
+
placeholder: g(c)("common.search")
|
|
195
195
|
}, null, 8, ["modelValue", "placeholder"])
|
|
196
196
|
])
|
|
197
197
|
]),
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
C("div", Ce, [
|
|
199
|
+
e.multiple ? (i(), b(Q, { key: 0 }, [
|
|
200
200
|
y($, {
|
|
201
201
|
label: "All",
|
|
202
202
|
"has-checkbox": "",
|
|
@@ -204,9 +204,9 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
204
204
|
indeterminate: g(X),
|
|
205
205
|
onClick: g(H)
|
|
206
206
|
}, null, 8, ["model-value", "indeterminate", "onClick"]),
|
|
207
|
-
(
|
|
207
|
+
(i(!0), b(Q, null, T(F.value, (s) => {
|
|
208
208
|
var I;
|
|
209
|
-
return
|
|
209
|
+
return i(), O($, {
|
|
210
210
|
key: s.value,
|
|
211
211
|
label: s.label,
|
|
212
212
|
"has-checkbox": "",
|
|
@@ -214,7 +214,7 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
214
214
|
onClick: (we) => g(J)(s.value)
|
|
215
215
|
}, null, 8, ["label", "model-value", "onClick"]);
|
|
216
216
|
}), 128))
|
|
217
|
-
], 64)) : (
|
|
217
|
+
], 64)) : (i(!0), b(Q, { key: 1 }, T(F.value, (s) => (i(), O($, {
|
|
218
218
|
key: s.value,
|
|
219
219
|
label: s.label,
|
|
220
220
|
onClick: (I) => w(s.value)
|
|
@@ -226,13 +226,13 @@ const ge = { class: "w-full flex flex-col gap-8" }, he = { class: "flex items-ce
|
|
|
226
226
|
}, 8, ["disabled"]),
|
|
227
227
|
ie(e.$slots, "append-right")
|
|
228
228
|
]),
|
|
229
|
-
V.value ? (
|
|
229
|
+
V.value ? (i(), b("div", Se, [
|
|
230
230
|
y(g(me), {
|
|
231
231
|
ref_key: "filterRef",
|
|
232
232
|
ref: z,
|
|
233
233
|
attributes: u.value,
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) =>
|
|
234
|
+
modelValue: d.value,
|
|
235
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => d.value = s)
|
|
236
236
|
}, null, 8, ["attributes", "modelValue"])
|
|
237
237
|
])) : N("", !0)
|
|
238
238
|
]);
|