formue-crud 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/formue-crud.js +11 -10
- package/dist/formue-crud.umd.cjs +16 -16
- package/package.json +1 -1
package/dist/formue-crud.js
CHANGED
@@ -5275,8 +5275,9 @@ function K0(l, e) {
|
|
5275
5275
|
return e.find((t) => t.field == l);
|
5276
5276
|
}
|
5277
5277
|
function q0(l) {
|
5278
|
-
let e = l.filter((
|
5279
|
-
|
5278
|
+
let e = l.filter((r) => r.isHeader && r.field !== "_actions_");
|
5279
|
+
const t = l.find((r) => r.field === "_actions_");
|
5280
|
+
let i = {
|
5280
5281
|
title: "",
|
5281
5282
|
value: "_actions_",
|
5282
5283
|
field: "_actions_",
|
@@ -5285,9 +5286,10 @@ function q0(l) {
|
|
5285
5286
|
headerSort: !1,
|
5286
5287
|
hozAlign: "left",
|
5287
5288
|
headerHozAlign: "left"
|
5288
|
-
}
|
5289
|
-
|
5290
|
-
|
5289
|
+
};
|
5290
|
+
t && (i = { ...i, ...t }), e.push(i);
|
5291
|
+
let s = 0;
|
5292
|
+
return l.find((r) => r.field === "_select_" && r.isHeader) && (s = 1), e.splice(s, 0, {
|
5291
5293
|
title: "#",
|
5292
5294
|
type: "text",
|
5293
5295
|
value: "_index_",
|
@@ -16485,7 +16487,7 @@ function uc(l) {
|
|
16485
16487
|
// formatter: updateRowNumber
|
16486
16488
|
// }
|
16487
16489
|
};
|
16488
|
-
return V.cloneDeep(l).map((s) => s.field in t ? { ...
|
16490
|
+
return V.cloneDeep(l).map((s) => s.field in t ? { ...t[s.field], ...s } : s).map((s) => {
|
16489
16491
|
for (const r of e)
|
16490
16492
|
r in s && delete s[r];
|
16491
16493
|
return { ...s, headerSort: !1 };
|
@@ -16644,9 +16646,7 @@ const cs = (l, e) => {
|
|
16644
16646
|
}, Yx = { class: "dark:text-muted-200 text-muted-600" }, Xx = {
|
16645
16647
|
__name: "MTable",
|
16646
16648
|
setup(l) {
|
16647
|
-
const e = Oe(null), t = Et("store"), i = Et("tableOptions");
|
16648
|
-
console.log("tableOptions"), console.log(i);
|
16649
|
-
const s = mr(() => t.mainItems.length === 0 && !t.loadings.mainLoading);
|
16649
|
+
const e = Oe(null), t = Et("store"), i = Et("tableOptions"), s = mr(() => t.mainItems.length === 0 && !t.loadings.mainLoading);
|
16650
16650
|
return Pa(() => {
|
16651
16651
|
const r = _x({
|
16652
16652
|
options: i,
|
@@ -16788,7 +16788,7 @@ const bR = (l, e) => {
|
|
16788
16788
|
return l.normalizer(e);
|
16789
16789
|
const t = vR[l.type];
|
16790
16790
|
return t ? t(l, e) : fc(l, e);
|
16791
|
-
}, yR = { class: "flex flex-col text-right" }, CR = { class: "mb-5" }, ER = { class: "flex justify-end" }, xR = ["disabled"], RR = { key: 0 }, _R = { key: 1 }, TR = {
|
16791
|
+
}, yR = { class: "flex flex-col text-right" }, CR = { class: "mb-5" }, ER = { class: "flex justify-end pb-3" }, xR = ["disabled"], RR = { key: 0 }, _R = { key: 1 }, TR = {
|
16792
16792
|
__name: "FormCore",
|
16793
16793
|
setup(l) {
|
16794
16794
|
const { event: e, listen: t } = $e, i = Et("store"), s = Oe(null);
|
@@ -17930,6 +17930,7 @@ const qT = ({ headers: l, baseURL: e } = { headers: [], baseURL: "" }) => {
|
|
17930
17930
|
s.dir = i || "rtl", l.config.globalProperties.$fcTr = (r) => s.translate(r), Q0(e);
|
17931
17931
|
};
|
17932
17932
|
export {
|
17933
|
+
Rx as ActionButton,
|
17933
17934
|
tM as MCrud,
|
17934
17935
|
$0 as fields,
|
17935
17936
|
iM as install,
|