@feedmepos/mf-hrm-portal 1.1.2-dev → 1.1.3-dev
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/{AuditLogList-CjrocQS2.js → AuditLogList-DNQh1rE9.js} +4 -4
- package/dist/{EmployeeList-CKHgrdAO.js → EmployeeList-zU7fmC4c.js} +5 -5
- package/dist/{Main-HzplGv-e.js → Main-BqhrqOzx.js} +4 -4
- package/dist/{Main-YQ5f-v03.js → Main-DGymQNz9.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-xQ4fjIxa.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BvjXcknf.js} +550 -550
- package/dist/{RoleList-Bef-7IhW.js → RoleList-jbZqer7A.js} +5 -5
- package/dist/{RolePermissionList-BzwpQFeO.js → RolePermissionList-Dd8ks5i7.js} +3 -3
- package/dist/{TeamMemberList-D2Xey_w9.js → TeamMemberList-uamoOFIV.js} +6 -6
- package/dist/{TimesheetList-DVIk0Tis.js → TimesheetList-hgT9DrHd.js} +6 -6
- package/dist/{app-DUs516v0.js → app-CcbYGJ22.js} +142 -136
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DVb8OkTL.js → dayjs.min-CgN1oBQf.js} +1 -1
- package/dist/{employee-jH7EJnhi.js → employee-khk560IC.js} +3 -3
- package/dist/{index-CicR1-Jp.js → index-D5sdamN5.js} +1 -1
- package/dist/{lodash-DpoPPi_j.js → lodash-7Am6_Zd3.js} +1 -1
- package/dist/{team-CiZSNUQW.js → team-CFyc6tnm.js} +1 -1
- package/dist/{timesheet-BRQvljNj.js → timesheet-DKhEeLe7.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-RzLLN5d9.js → useAppStore-DOSLuH24.js} +1 -1
- package/dist/{useLoading-1OqFn86y.js → useLoading-BA-GSZ3R.js} +1 -1
- package/package.json +2 -2
|
@@ -702,7 +702,7 @@ const Ce = {
|
|
|
702
702
|
__proto__: null,
|
|
703
703
|
default: wA,
|
|
704
704
|
hr: ve
|
|
705
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
705
|
+
}, Symbol.toStringTag, { value: "Module" })), je = {
|
|
706
706
|
employee: {
|
|
707
707
|
title: "員工",
|
|
708
708
|
exportButtonLabel: "導出",
|
|
@@ -851,17 +851,17 @@ const Ce = {
|
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
}, bA = {
|
|
854
|
-
hr:
|
|
854
|
+
hr: je
|
|
855
855
|
}, MA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
856
856
|
__proto__: null,
|
|
857
857
|
default: bA,
|
|
858
|
-
hr:
|
|
858
|
+
hr: je
|
|
859
859
|
}, Symbol.toStringTag, { value: "Module" })), DA = {
|
|
860
860
|
"en-US": mA,
|
|
861
861
|
"zh-CN": fA,
|
|
862
862
|
"th-TH": dA,
|
|
863
863
|
"zh-Hant": MA
|
|
864
|
-
},
|
|
864
|
+
}, xe = {
|
|
865
865
|
title: "Team members",
|
|
866
866
|
actions: {
|
|
867
867
|
addMember: "Add member",
|
|
@@ -989,13 +989,13 @@ const Ce = {
|
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
}, YA = {
|
|
992
|
-
team:
|
|
992
|
+
team: xe,
|
|
993
993
|
role: Qe
|
|
994
994
|
}, CA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
995
995
|
__proto__: null,
|
|
996
996
|
default: YA,
|
|
997
997
|
role: Qe,
|
|
998
|
-
team:
|
|
998
|
+
team: xe
|
|
999
999
|
}, Symbol.toStringTag, { value: "Module" })), Xe = {
|
|
1000
1000
|
title: "สมาชิกในทีม",
|
|
1001
1001
|
actions: {
|
|
@@ -1405,13 +1405,13 @@ const Ce = {
|
|
|
1405
1405
|
default: EA,
|
|
1406
1406
|
role: ye,
|
|
1407
1407
|
team: Pe
|
|
1408
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1408
|
+
}, Symbol.toStringTag, { value: "Module" })), jA = {
|
|
1409
1409
|
"en-US": CA,
|
|
1410
1410
|
"zh-CN": hA,
|
|
1411
1411
|
"th-TH": pA,
|
|
1412
1412
|
"zh-Hant": vA
|
|
1413
1413
|
};
|
|
1414
|
-
var
|
|
1414
|
+
var xA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1415
1415
|
function QA(e) {
|
|
1416
1416
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1417
1417
|
}
|
|
@@ -1419,7 +1419,7 @@ var Oe = { exports: {} };
|
|
|
1419
1419
|
(function(e, o) {
|
|
1420
1420
|
(function(n, t) {
|
|
1421
1421
|
e.exports = t();
|
|
1422
|
-
})(
|
|
1422
|
+
})(xA, function() {
|
|
1423
1423
|
return function(n) {
|
|
1424
1424
|
var t = {};
|
|
1425
1425
|
function s(a) {
|
|
@@ -1435,13 +1435,13 @@ var Oe = { exports: {} };
|
|
|
1435
1435
|
if (1 & l && (a = s(a)), 8 & l || 4 & l && typeof a == "object" && a && a.__esModule) return a;
|
|
1436
1436
|
var u = /* @__PURE__ */ Object.create(null);
|
|
1437
1437
|
if (s.r(u), Object.defineProperty(u, "default", { enumerable: !0, value: a }), 2 & l && typeof a != "string")
|
|
1438
|
-
for (var
|
|
1438
|
+
for (var b in a)
|
|
1439
1439
|
s.d(
|
|
1440
1440
|
u,
|
|
1441
|
-
|
|
1441
|
+
b,
|
|
1442
1442
|
(function(Y) {
|
|
1443
1443
|
return a[Y];
|
|
1444
|
-
}).bind(null,
|
|
1444
|
+
}).bind(null, b)
|
|
1445
1445
|
);
|
|
1446
1446
|
return u;
|
|
1447
1447
|
}, s.n = function(a) {
|
|
@@ -1479,7 +1479,7 @@ var Oe = { exports: {} };
|
|
|
1479
1479
|
}), s.d(t, "comparable", function() {
|
|
1480
1480
|
return k;
|
|
1481
1481
|
});
|
|
1482
|
-
var u = l("Array"),
|
|
1482
|
+
var u = l("Array"), b = l("Object"), Y = l("Function");
|
|
1483
1483
|
function G(A, r) {
|
|
1484
1484
|
return Y(A.get) ? A.get(r) : A[r];
|
|
1485
1485
|
}
|
|
@@ -1502,7 +1502,7 @@ var Oe = { exports: {} };
|
|
|
1502
1502
|
function V(A, r, c, i) {
|
|
1503
1503
|
return A.validate(A.options, r, c, i);
|
|
1504
1504
|
}
|
|
1505
|
-
var
|
|
1505
|
+
var j = {
|
|
1506
1506
|
$eq: p(function(A, r) {
|
|
1507
1507
|
return A(r);
|
|
1508
1508
|
}),
|
|
@@ -1537,7 +1537,7 @@ var Oe = { exports: {} };
|
|
|
1537
1537
|
return A(r);
|
|
1538
1538
|
},
|
|
1539
1539
|
$all: function(A, r, c, i) {
|
|
1540
|
-
return
|
|
1540
|
+
return j.$and(A, r, c, i);
|
|
1541
1541
|
},
|
|
1542
1542
|
$size: function(A, r) {
|
|
1543
1543
|
return !!r && A === r.length;
|
|
@@ -1548,7 +1548,7 @@ var Oe = { exports: {} };
|
|
|
1548
1548
|
return !1;
|
|
1549
1549
|
},
|
|
1550
1550
|
$nor: function(A, r, c, i) {
|
|
1551
|
-
return !
|
|
1551
|
+
return !j.$or(A, r, c, i);
|
|
1552
1552
|
},
|
|
1553
1553
|
$and: function(A, r, c, i) {
|
|
1554
1554
|
for (var g = 0, m = A.length; g < m; g++)
|
|
@@ -1563,15 +1563,15 @@ var Oe = { exports: {} };
|
|
|
1563
1563
|
},
|
|
1564
1564
|
$elemMatch: function(A, r, c, i) {
|
|
1565
1565
|
return u(r) ? !!~function(g, m) {
|
|
1566
|
-
for (var
|
|
1567
|
-
if (G(g,
|
|
1566
|
+
for (var d = 0; d < g.length; d++)
|
|
1567
|
+
if (G(g, d), V(m, G(g, d))) return d;
|
|
1568
1568
|
return -1;
|
|
1569
1569
|
}(r, A) : V(A, r, c, i);
|
|
1570
1570
|
},
|
|
1571
1571
|
$exists: function(A, r, c, i) {
|
|
1572
1572
|
return i.hasOwnProperty(c) === A;
|
|
1573
1573
|
}
|
|
1574
|
-
},
|
|
1574
|
+
}, x = {
|
|
1575
1575
|
$eq: function(A, r, c) {
|
|
1576
1576
|
var i = c.comparable, g = c.compare;
|
|
1577
1577
|
return A instanceof RegExp ? p(function(m) {
|
|
@@ -1624,8 +1624,8 @@ var Oe = { exports: {} };
|
|
|
1624
1624
|
for (w = A.length; w--; ) if (A[w] == null) return !0;
|
|
1625
1625
|
}
|
|
1626
1626
|
for (w = A.length; w--; ) {
|
|
1627
|
-
var
|
|
1628
|
-
if (
|
|
1627
|
+
var d = V(oe(G(A, w), c), m, w, A);
|
|
1628
|
+
if (d && String(d) !== "[object Object]" && String(m) !== "[object Object]")
|
|
1629
1629
|
return !0;
|
|
1630
1630
|
}
|
|
1631
1631
|
return !!~A.indexOf(m);
|
|
@@ -1636,9 +1636,9 @@ var Oe = { exports: {} };
|
|
|
1636
1636
|
};
|
|
1637
1637
|
},
|
|
1638
1638
|
$nin: function(A, r, c) {
|
|
1639
|
-
var i =
|
|
1640
|
-
return function(g, m,
|
|
1641
|
-
return !i(g, m,
|
|
1639
|
+
var i = x.$in(A, r, c);
|
|
1640
|
+
return function(g, m, d, w) {
|
|
1641
|
+
return !i(g, m, d, w);
|
|
1642
1642
|
};
|
|
1643
1643
|
},
|
|
1644
1644
|
$mod: function(A) {
|
|
@@ -1647,16 +1647,16 @@ var Oe = { exports: {} };
|
|
|
1647
1647
|
};
|
|
1648
1648
|
},
|
|
1649
1649
|
$ne: function(A, r, c) {
|
|
1650
|
-
var i =
|
|
1651
|
-
return I(function(g, m,
|
|
1652
|
-
return !i(g, m,
|
|
1650
|
+
var i = x.$eq(A, r, c);
|
|
1651
|
+
return I(function(g, m, d, w) {
|
|
1652
|
+
return !i(g, m, d, w);
|
|
1653
1653
|
});
|
|
1654
1654
|
},
|
|
1655
1655
|
$and: function(A, r, c) {
|
|
1656
1656
|
return A.map(P(c));
|
|
1657
1657
|
},
|
|
1658
1658
|
$all: function(A, r, c) {
|
|
1659
|
-
return
|
|
1659
|
+
return x.$and(A, r, c);
|
|
1660
1660
|
},
|
|
1661
1661
|
$or: function(A, r, c) {
|
|
1662
1662
|
return A.map(P(c));
|
|
@@ -1666,8 +1666,8 @@ var Oe = { exports: {} };
|
|
|
1666
1666
|
},
|
|
1667
1667
|
$not: function(A, r, c) {
|
|
1668
1668
|
var i = P(c)(A);
|
|
1669
|
-
return function(g, m,
|
|
1670
|
-
return !V(i, g, m,
|
|
1669
|
+
return function(g, m, d) {
|
|
1670
|
+
return !V(i, g, m, d);
|
|
1671
1671
|
};
|
|
1672
1672
|
},
|
|
1673
1673
|
$type: function(A) {
|
|
@@ -1704,8 +1704,8 @@ var Oe = { exports: {} };
|
|
|
1704
1704
|
for (var _ = 0, Ke = q.length; _ < Ke; _++) le(G(q, _), Z, z, q, S);
|
|
1705
1705
|
else le(G(q, ie), Z, z + 1, q, S);
|
|
1706
1706
|
}(r, c, 0, r, m), m.length === 1) {
|
|
1707
|
-
var
|
|
1708
|
-
return V(i,
|
|
1707
|
+
var d = m[0];
|
|
1708
|
+
return V(i, d[0], d[1], d[2]);
|
|
1709
1709
|
}
|
|
1710
1710
|
for (var w = g && g.$ne !== void 0, C = w, h = 0; h < m.length; h++) {
|
|
1711
1711
|
var Q = m[h], W = V(i, Q[0], Q[1], Q[2]);
|
|
@@ -1717,17 +1717,17 @@ var Oe = { exports: {} };
|
|
|
1717
1717
|
return X({ keyPath: A, child: r, query: c }, Ne);
|
|
1718
1718
|
}
|
|
1719
1719
|
function P(A) {
|
|
1720
|
-
var r = A.comparable, c = A.expressions, i = function(
|
|
1720
|
+
var r = A.comparable, c = A.expressions, i = function(d) {
|
|
1721
1721
|
var w;
|
|
1722
|
-
return (!
|
|
1723
|
-
}, g = function(
|
|
1724
|
-
|
|
1722
|
+
return (!d || !(w = d) || w.constructor !== Object && w.constructor !== Array && w.constructor.toString() !== "function Object() { [native code] }" && w.constructor.toString() !== "function Array() { [native code] }" || w.toJSON) && (d = { $eq: d }), d;
|
|
1723
|
+
}, g = function(d) {
|
|
1724
|
+
d = r(d);
|
|
1725
1725
|
var w = [];
|
|
1726
|
-
for (var C in
|
|
1727
|
-
var h =
|
|
1726
|
+
for (var C in d) {
|
|
1727
|
+
var h = d[C];
|
|
1728
1728
|
if (C !== "$options") {
|
|
1729
|
-
var Q =
|
|
1730
|
-
if (Q)
|
|
1729
|
+
var Q = j[C] || A && c && c[C];
|
|
1730
|
+
if (Q) x[C] && (h = x[C](h, d, A)), w.push(X(r(h), Q));
|
|
1731
1731
|
else {
|
|
1732
1732
|
if (C.charCodeAt(0) === 36)
|
|
1733
1733
|
throw new Error("Unknown operation " + C);
|
|
@@ -1736,22 +1736,22 @@ var Oe = { exports: {} };
|
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
return w.length === 1 ? w[0] : X(w,
|
|
1740
|
-
}, m = function(
|
|
1741
|
-
return
|
|
1742
|
-
if (!
|
|
1739
|
+
return w.length === 1 ? w[0] : X(w, j.$and);
|
|
1740
|
+
}, m = function(d) {
|
|
1741
|
+
return d = i(d), function w(C, h) {
|
|
1742
|
+
if (!b(C)) return h;
|
|
1743
1743
|
for (var Q in C) h.push(Q), w(C[Q], h);
|
|
1744
1744
|
return h;
|
|
1745
|
-
}(
|
|
1745
|
+
}(d, []).join(",").search(/[$.]/) === -1 ? X(d, N) : g(d);
|
|
1746
1746
|
};
|
|
1747
|
-
return function(
|
|
1748
|
-
return g(i(
|
|
1747
|
+
return function(d) {
|
|
1748
|
+
return g(i(d));
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
1751
|
function N(A, r) {
|
|
1752
1752
|
if (Object.prototype.toString.call(A) !== Object.prototype.toString.call(r))
|
|
1753
1753
|
return !1;
|
|
1754
|
-
if (
|
|
1754
|
+
if (b(A)) {
|
|
1755
1755
|
if (Object.keys(A).length !== Object.keys(r).length) return !1;
|
|
1756
1756
|
for (var c in A) if (!N(A[c], r[c])) return !1;
|
|
1757
1757
|
return !0;
|
|
@@ -1768,8 +1768,8 @@ var Oe = { exports: {} };
|
|
|
1768
1768
|
var c = P(r)(A);
|
|
1769
1769
|
return r && r.select && (c = {
|
|
1770
1770
|
options: c,
|
|
1771
|
-
validate: function(i, g, m,
|
|
1772
|
-
return V(i, g && r.select(g), m,
|
|
1771
|
+
validate: function(i, g, m, d) {
|
|
1772
|
+
return V(i, g && r.select(g), m, d);
|
|
1773
1773
|
}
|
|
1774
1774
|
}), c;
|
|
1775
1775
|
}
|
|
@@ -1831,7 +1831,7 @@ function R(e, o, n) {
|
|
|
1831
1831
|
return yA() ? R = Reflect.construct : R = function(s, a, l) {
|
|
1832
1832
|
var u = [null];
|
|
1833
1833
|
u.push.apply(u, a);
|
|
1834
|
-
var
|
|
1834
|
+
var b = Function.bind.apply(s, u), Y = new b();
|
|
1835
1835
|
return l && J(Y, l.prototype), Y;
|
|
1836
1836
|
}, R.apply(null, arguments);
|
|
1837
1837
|
}
|
|
@@ -1897,8 +1897,8 @@ var Ze = function(o) {
|
|
|
1897
1897
|
field: l,
|
|
1898
1898
|
subjectName: this.ability.subjectName(a)
|
|
1899
1899
|
});
|
|
1900
|
-
var
|
|
1901
|
-
throw this.message = this._customMessage ||
|
|
1900
|
+
var b = u ? u.reason : "";
|
|
1901
|
+
throw this.message = this._customMessage || b || U(this), this;
|
|
1902
1902
|
}
|
|
1903
1903
|
}, n._setMetadata = function(s) {
|
|
1904
1904
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1986,15 +1986,15 @@ var kA = /* @__PURE__ */ function() {
|
|
|
1986
1986
|
var a = this.buildIndexFor(t);
|
|
1987
1987
|
return this[v].indexedRules = a.rules, this[v].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", s), this;
|
|
1988
1988
|
}, o.buildIndexFor = function(t) {
|
|
1989
|
-
for (var s = /* @__PURE__ */ Object.create(null), a = this[v].RuleType, l = !0, u = !1,
|
|
1990
|
-
var Y = new a(t[
|
|
1989
|
+
for (var s = /* @__PURE__ */ Object.create(null), a = this[v].RuleType, l = !0, u = !1, b = 0; b < t.length; b++) {
|
|
1990
|
+
var Y = new a(t[b]), G = this.expandActions(Y.actions), p = se(Y.subject), I = t.length - b - 1;
|
|
1991
1991
|
l = !!(l && Y.inverted), !u && Y.fields && (u = !0);
|
|
1992
1992
|
for (var V = 0; V < p.length; V++) {
|
|
1993
|
-
var
|
|
1994
|
-
s[
|
|
1995
|
-
for (var
|
|
1996
|
-
var X = G[
|
|
1997
|
-
s[
|
|
1993
|
+
var j = p[V];
|
|
1994
|
+
s[j] = s[j] || /* @__PURE__ */ Object.create(null);
|
|
1995
|
+
for (var x = 0; x < G.length; x++) {
|
|
1996
|
+
var X = G[x];
|
|
1997
|
+
s[j][X] = s[j][X] || /* @__PURE__ */ Object.create(null), s[j][X][I] = Y;
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
@@ -2023,8 +2023,8 @@ var kA = /* @__PURE__ */ function() {
|
|
|
2023
2023
|
var a = this.subjectName(s), l = this[v].mergedRules, u = a + "_" + t;
|
|
2024
2024
|
return l[u] || (l[u] = this.mergeRulesFor(t, a)), l[u];
|
|
2025
2025
|
}, o.mergeRulesFor = function(t, s) {
|
|
2026
|
-
var a = this[v].indexedRules, l = [s, "all"].reduce(function(u,
|
|
2027
|
-
var Y = a[
|
|
2026
|
+
var a = this[v].indexedRules, l = [s, "all"].reduce(function(u, b) {
|
|
2027
|
+
var Y = a[b];
|
|
2028
2028
|
return Y ? Object.assign(u, Y[t], Y.manage) : u;
|
|
2029
2029
|
}, []);
|
|
2030
2030
|
return l.filter(Boolean);
|
|
@@ -2060,141 +2060,146 @@ var kA = /* @__PURE__ */ function() {
|
|
|
2060
2060
|
return this[v].originalRules;
|
|
2061
2061
|
}
|
|
2062
2062
|
}]), e;
|
|
2063
|
-
}(),
|
|
2063
|
+
}(), f = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(f || {}), B = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory = "business::inventory", e.inventory_stock = "business::inventory::stock", e.inventory_stock_adjustment = "business::inventory::stock::adjustment", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_integration = "business::inventory::integration", e.inventory_orderDraft = "business::inventory::orderDraft", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_employee_list = "business::hrm::employee::list", e.hrm_employee_role = "business::hrm::employee::role", e.hrm_employee_timesheet = "business::hrm::employee::timesheet", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_teamMember_list = "business::hrm::teamMember::list", e.hrm_teamMember_role = "business::hrm::teamMember::role", e.menu = "business::menu", e.restaurant = "business::restaurant", e.profile = "business::profile", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(D || {}), ze = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ze || {});
|
|
2064
2064
|
const M = {
|
|
2065
2065
|
general: "General",
|
|
2066
2066
|
inventory: "Inventory",
|
|
2067
2067
|
hrm: "HRM",
|
|
2068
2068
|
crm: "CRM"
|
|
2069
2069
|
}, SA = "access-denied", K = {
|
|
2070
|
-
Action:
|
|
2070
|
+
Action: f,
|
|
2071
2071
|
Subject: {
|
|
2072
|
-
Business:
|
|
2072
|
+
Business: B,
|
|
2073
2073
|
Restaurant: ze
|
|
2074
2074
|
}
|
|
2075
2075
|
}, Ie = {
|
|
2076
|
-
[D.role]:
|
|
2077
|
-
[D.permission]:
|
|
2078
|
-
[D.promotion]:
|
|
2079
|
-
[D.voucher]:
|
|
2080
|
-
[D.membership]:
|
|
2081
|
-
[D.stock]:
|
|
2082
|
-
[D.wastageTemplate]:
|
|
2083
|
-
[D.closingTemplate]:
|
|
2084
|
-
[D.orderTemplate]:
|
|
2085
|
-
[D.ingredient]:
|
|
2086
|
-
[D.recipe]:
|
|
2087
|
-
[D.unit]:
|
|
2088
|
-
[D.supplier]:
|
|
2089
|
-
[D.warehouse]:
|
|
2090
|
-
[D.publish]:
|
|
2091
|
-
[D.integration]:
|
|
2092
|
-
[D.orderDraft]:
|
|
2093
|
-
[D.unitCostHistory]:
|
|
2076
|
+
[D.role]: B.hrm_employee_role,
|
|
2077
|
+
[D.permission]: B.hrm_teamMember,
|
|
2078
|
+
[D.promotion]: B.crm_promotion,
|
|
2079
|
+
[D.voucher]: B.crm_voucher,
|
|
2080
|
+
[D.membership]: B.crm_membership,
|
|
2081
|
+
[D.stock]: B.inventory_stock,
|
|
2082
|
+
[D.wastageTemplate]: B.inventory_wastageTemplate,
|
|
2083
|
+
[D.closingTemplate]: B.inventory_closingTemplate,
|
|
2084
|
+
[D.orderTemplate]: B.inventory_orderTemplate,
|
|
2085
|
+
[D.ingredient]: B.inventory_ingredient,
|
|
2086
|
+
[D.recipe]: B.inventory_recipe,
|
|
2087
|
+
[D.unit]: B.inventory_unit,
|
|
2088
|
+
[D.supplier]: B.inventory_supplier,
|
|
2089
|
+
[D.warehouse]: B.inventory_warehouse,
|
|
2090
|
+
[D.publish]: B.inventory_publish,
|
|
2091
|
+
[D.integration]: B.inventory_integration,
|
|
2092
|
+
[D.orderDraft]: B.inventory_orderDraft,
|
|
2093
|
+
[D.unitCostHistory]: B.inventory_unitCostHistory
|
|
2094
2094
|
}, yt = {
|
|
2095
2095
|
// General
|
|
2096
2096
|
restaurant: {
|
|
2097
2097
|
label: "Restaurant Owner",
|
|
2098
|
-
subject:
|
|
2099
|
-
actions: [
|
|
2098
|
+
subject: B.restaurant,
|
|
2099
|
+
actions: [f.manage]
|
|
2100
2100
|
},
|
|
2101
2101
|
menu: {
|
|
2102
2102
|
label: "Menu Management",
|
|
2103
|
-
subject:
|
|
2104
|
-
actions: [
|
|
2103
|
+
subject: B.menu,
|
|
2104
|
+
actions: [f.manage]
|
|
2105
2105
|
},
|
|
2106
2106
|
// inventory
|
|
2107
2107
|
stock: {
|
|
2108
2108
|
label: "Stock Management",
|
|
2109
|
-
subject:
|
|
2110
|
-
actions: [
|
|
2109
|
+
subject: B.inventory_stock,
|
|
2110
|
+
actions: [f.manage]
|
|
2111
2111
|
},
|
|
2112
2112
|
wastageTemplate: {
|
|
2113
2113
|
label: "Wastage Template Management",
|
|
2114
|
-
subject:
|
|
2115
|
-
actions: [
|
|
2114
|
+
subject: B.inventory_wastageTemplate,
|
|
2115
|
+
actions: [f.manage]
|
|
2116
2116
|
},
|
|
2117
2117
|
closingTemplate: {
|
|
2118
2118
|
label: "Closing Template Management",
|
|
2119
|
-
subject:
|
|
2120
|
-
actions: [
|
|
2119
|
+
subject: B.inventory_closingTemplate,
|
|
2120
|
+
actions: [f.manage]
|
|
2121
2121
|
},
|
|
2122
2122
|
orderTemplate: {
|
|
2123
2123
|
label: "Order Template Management",
|
|
2124
|
-
subject:
|
|
2125
|
-
actions: [
|
|
2124
|
+
subject: B.inventory_orderTemplate,
|
|
2125
|
+
actions: [f.manage]
|
|
2126
2126
|
},
|
|
2127
2127
|
ingredient: {
|
|
2128
2128
|
label: "Ingredient Management",
|
|
2129
|
-
subject:
|
|
2130
|
-
actions: [
|
|
2129
|
+
subject: B.inventory_ingredient,
|
|
2130
|
+
actions: [f.manage]
|
|
2131
2131
|
},
|
|
2132
2132
|
recipe: {
|
|
2133
2133
|
label: "Recipe Management",
|
|
2134
|
-
subject:
|
|
2135
|
-
actions: [
|
|
2134
|
+
subject: B.inventory_recipe,
|
|
2135
|
+
actions: [f.manage]
|
|
2136
2136
|
},
|
|
2137
2137
|
unit: {
|
|
2138
2138
|
label: "Unit Management",
|
|
2139
|
-
subject:
|
|
2140
|
-
actions: [
|
|
2139
|
+
subject: B.inventory_unit,
|
|
2140
|
+
actions: [f.manage]
|
|
2141
2141
|
},
|
|
2142
2142
|
supplier: {
|
|
2143
2143
|
label: "Supplier Management",
|
|
2144
|
-
subject:
|
|
2145
|
-
actions: [
|
|
2144
|
+
subject: B.inventory_supplier,
|
|
2145
|
+
actions: [f.manage]
|
|
2146
2146
|
},
|
|
2147
2147
|
warehouse: {
|
|
2148
2148
|
label: "Warehouse Management",
|
|
2149
|
-
subject:
|
|
2150
|
-
actions: [
|
|
2149
|
+
subject: B.inventory_warehouse,
|
|
2150
|
+
actions: [f.manage]
|
|
2151
2151
|
},
|
|
2152
2152
|
publish: {
|
|
2153
2153
|
label: "Publish Management",
|
|
2154
|
-
subject:
|
|
2155
|
-
actions: [
|
|
2154
|
+
subject: B.inventory_publish,
|
|
2155
|
+
actions: [f.manage]
|
|
2156
2156
|
},
|
|
2157
2157
|
integration: {
|
|
2158
2158
|
label: "Integration Management",
|
|
2159
|
-
subject:
|
|
2160
|
-
actions: [
|
|
2159
|
+
subject: B.inventory_integration,
|
|
2160
|
+
actions: [f.manage]
|
|
2161
2161
|
},
|
|
2162
2162
|
orderDraft: {
|
|
2163
2163
|
label: "Order Draft Management",
|
|
2164
|
-
subject:
|
|
2165
|
-
actions: [
|
|
2164
|
+
subject: B.inventory_orderDraft,
|
|
2165
|
+
actions: [f.manage]
|
|
2166
2166
|
},
|
|
2167
2167
|
unitCostHistory: {
|
|
2168
2168
|
label: "Unit Cost History Management",
|
|
2169
|
-
subject:
|
|
2170
|
-
actions: [
|
|
2169
|
+
subject: B.inventory_unitCostHistory,
|
|
2170
|
+
actions: [f.manage]
|
|
2171
|
+
},
|
|
2172
|
+
stockAdjustment: {
|
|
2173
|
+
label: "Stock Adjustment Management",
|
|
2174
|
+
subject: B.inventory_stock_adjustment,
|
|
2175
|
+
actions: [f.manage]
|
|
2171
2176
|
},
|
|
2172
2177
|
// CRM
|
|
2173
2178
|
promotion: {
|
|
2174
2179
|
label: "Promotion Management",
|
|
2175
|
-
subject:
|
|
2176
|
-
actions: [
|
|
2180
|
+
subject: B.crm_promotion,
|
|
2181
|
+
actions: [f.manage]
|
|
2177
2182
|
},
|
|
2178
2183
|
voucher: {
|
|
2179
2184
|
label: "Voucher Management",
|
|
2180
|
-
subject:
|
|
2181
|
-
actions: [
|
|
2185
|
+
subject: B.crm_voucher,
|
|
2186
|
+
actions: [f.manage]
|
|
2182
2187
|
},
|
|
2183
2188
|
membership: {
|
|
2184
2189
|
label: "Membership Management",
|
|
2185
|
-
subject:
|
|
2186
|
-
actions: [
|
|
2190
|
+
subject: B.crm_membership,
|
|
2191
|
+
actions: [f.manage]
|
|
2187
2192
|
},
|
|
2188
2193
|
// HRM
|
|
2189
2194
|
permission: {
|
|
2190
2195
|
label: "Team Management",
|
|
2191
|
-
subject:
|
|
2192
|
-
actions: [
|
|
2196
|
+
subject: B.hrm_teamMember,
|
|
2197
|
+
actions: [f.manage]
|
|
2193
2198
|
},
|
|
2194
2199
|
role: {
|
|
2195
2200
|
label: "Role Management",
|
|
2196
|
-
subject:
|
|
2197
|
-
actions: [
|
|
2201
|
+
subject: B.hrm_employee_role,
|
|
2202
|
+
actions: [f.manage]
|
|
2198
2203
|
}
|
|
2199
2204
|
}, Ot = {
|
|
2200
2205
|
// General
|
|
@@ -2214,6 +2219,7 @@ const M = {
|
|
|
2214
2219
|
integration: M.inventory,
|
|
2215
2220
|
orderDraft: M.inventory,
|
|
2216
2221
|
unitCostHistory: M.inventory,
|
|
2222
|
+
stockAdjustment: M.inventory,
|
|
2217
2223
|
// CRM
|
|
2218
2224
|
promotion: M.crm,
|
|
2219
2225
|
voucher: M.crm,
|
|
@@ -2430,7 +2436,7 @@ const ee = (e) => ({
|
|
|
2430
2436
|
}
|
|
2431
2437
|
]
|
|
2432
2438
|
}
|
|
2433
|
-
}), pt = ne(H(() => import("./Main-
|
|
2439
|
+
}), pt = ne(H(() => import("./Main-DGymQNz9.js"))), Vt = ne(H(() => import("./Main-BqhrqOzx.js"))), ht = ne(H(() => import("./AuditLogList-DNQh1rE9.js"))), Et = H(() => import("./EmployeeList-zU7fmC4c.js")), vt = H(() => import("./RoleList-jbZqer7A.js")), jt = H(() => import("./TimesheetList-hgT9DrHd.js")), xt = H(() => import("./TeamMemberList-uamoOFIV.js")), Qt = H(() => import("./RolePermissionList-Dd8ks5i7.js")), zt = [
|
|
2434
2440
|
{
|
|
2435
2441
|
path: "/",
|
|
2436
2442
|
name: "home",
|
|
@@ -2454,7 +2460,7 @@ const ee = (e) => ({
|
|
|
2454
2460
|
{
|
|
2455
2461
|
path: "timesheet",
|
|
2456
2462
|
name: "timesheet",
|
|
2457
|
-
component:
|
|
2463
|
+
component: jt
|
|
2458
2464
|
}
|
|
2459
2465
|
]
|
|
2460
2466
|
},
|
|
@@ -2477,7 +2483,7 @@ const ee = (e) => ({
|
|
|
2477
2483
|
{
|
|
2478
2484
|
path: "member",
|
|
2479
2485
|
name: "team-member",
|
|
2480
|
-
component:
|
|
2486
|
+
component: xt
|
|
2481
2487
|
},
|
|
2482
2488
|
{
|
|
2483
2489
|
path: "role",
|
|
@@ -2522,8 +2528,8 @@ const ee = (e) => ({
|
|
|
2522
2528
|
}), u;
|
|
2523
2529
|
}), l = T();
|
|
2524
2530
|
return _e(() => {
|
|
2525
|
-
var
|
|
2526
|
-
let u = (
|
|
2531
|
+
var b;
|
|
2532
|
+
let u = (b = s.currentRoute.value) == null ? void 0 : b.name;
|
|
2527
2533
|
switch (u) {
|
|
2528
2534
|
case E.EMPLOYEE:
|
|
2529
2535
|
case E.ROLE:
|
|
@@ -2541,11 +2547,11 @@ const ee = (e) => ({
|
|
|
2541
2547
|
u = E.EMPLOYEE;
|
|
2542
2548
|
}
|
|
2543
2549
|
l.value !== u && (l.value = u);
|
|
2544
|
-
}), (u,
|
|
2550
|
+
}), (u, b) => {
|
|
2545
2551
|
const Y = ae("FmCollapsibleTabs");
|
|
2546
2552
|
return O(), L(Y, {
|
|
2547
2553
|
modelValue: l.value,
|
|
2548
|
-
"onUpdate:modelValue":
|
|
2554
|
+
"onUpdate:modelValue": b[0] || (b[0] = (G) => l.value = G),
|
|
2549
2555
|
items: a.value,
|
|
2550
2556
|
class: "py-16"
|
|
2551
2557
|
}, null, 8, ["modelValue", "items"]);
|
|
@@ -2563,7 +2569,7 @@ const ee = (e) => ({
|
|
|
2563
2569
|
};
|
|
2564
2570
|
}
|
|
2565
2571
|
}), Nt = () => {
|
|
2566
|
-
const e = [
|
|
2572
|
+
const e = [jA, DA, uA], o = new Set(e.flatMap((n) => Object.keys(n)));
|
|
2567
2573
|
return Array.from(o).reduce(
|
|
2568
2574
|
(n, t) => {
|
|
2569
2575
|
const s = t;
|
|
@@ -2579,14 +2585,14 @@ export {
|
|
|
2579
2585
|
E as R,
|
|
2580
2586
|
Yt as _,
|
|
2581
2587
|
M as a,
|
|
2582
|
-
|
|
2583
|
-
|
|
2588
|
+
_A as b,
|
|
2589
|
+
xA as c,
|
|
2584
2590
|
It as d,
|
|
2585
2591
|
zt as e,
|
|
2586
2592
|
QA as g,
|
|
2587
2593
|
K as h,
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2594
|
+
Nt as i,
|
|
2595
|
+
yt as o,
|
|
2596
|
+
Ot as r,
|
|
2591
2597
|
Zt as s
|
|
2592
2598
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as v } from "./dayjs.min-
|
|
1
|
+
import { d as v } from "./dayjs.min-CgN1oBQf.js";
|
|
2
2
|
import { defineStore as T, storeToRefs as _ } from "pinia";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
import { useCoreStore as U } from "@feedmepos/mf-common";
|
|
5
|
-
import { b as o, g as n, t as $, k as b, s as I } from "./index-
|
|
6
|
-
import { u as S } from "./useAppStore-
|
|
5
|
+
import { b as o, g as n, t as $, k as b, s as I } from "./index-D5sdamN5.js";
|
|
6
|
+
import { u as S } from "./useAppStore-DOSLuH24.js";
|
|
7
7
|
const c = {
|
|
8
8
|
async readEmployees() {
|
|
9
9
|
return n(await o().get("/pos-users"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCoreStore as Zo, baseClientInstance as Ma } from "@feedmepos/mf-common";
|
|
2
|
-
import { c as p, h as Hi,
|
|
2
|
+
import { c as p, h as Hi, b as Aa, o as pa, r as ja } from "./app-CcbYGJ22.js";
|
|
3
3
|
import { defineStore as Yo, storeToRefs as wo } from "pinia";
|
|
4
4
|
import { ref as Go } from "vue";
|
|
5
5
|
const Zi = [
|