@feedmepos/mf-hrm-portal 2.0.8-dev.13 → 2.0.8-dev.15
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-Cj2xXdHG.js → AuditLogList-dJ7Se6DM.js} +7 -8
- package/dist/{EmployeeList-CTei88Z-.js → EmployeeList-3EaEXmGW.js} +5 -5
- package/dist/{Main-UZKIBbhP.js → Main-5Z-5nKOD.js} +9 -9
- package/dist/{Main-ffhglNE6.js → Main-6J60Mo7C.js} +6 -6
- package/dist/{Main-YOsPWA5i.js → Main-WzeZsfbx.js} +4 -4
- package/dist/{PermissionSetList-CDwUZEDC.js → PermissionSetList-DLrxvdja.js} +28 -28
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CJB_D-js.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C1VJ74vl.js} +269 -269
- package/dist/{RoleList-D0eFBPPz.js → RoleList-BZiSifWg.js} +7 -7
- package/dist/{TeamMemberList-CZt85DOo.js → TeamMemberList-Esq2sswx.js} +8 -8
- package/dist/{TimesheetList-4q6a8LDx.js → TimesheetList-jczuepyB.js} +7 -7
- package/dist/{app-ToDa5jSo.js → app-C3BXWtUJ.js} +104 -68
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-EReIS4rK.js → dayjs.min-Vaxxz7Yf.js} +1 -1
- package/dist/{employee-B3EpasYr.js → employee-Dxgf22wP.js} +4 -4
- package/dist/{index-DCuwuFh8.js → index-CiFCJVf9.js} +2 -2
- package/dist/{index-R4S96vIE.js → index-DymDuXcW.js} +1 -1
- package/dist/{iteration-yUKJnIop.js → iteration-DV_V8Ohg.js} +1 -1
- package/dist/{lodash-7RAXVJQB.js → lodash-Cr3gZaOu.js} +1 -1
- package/dist/src/views/audit-log/locales/index.d.ts +36 -0
- package/dist/{team-HoPvaH9h.js → team-LfEADD17.js} +1 -1
- package/dist/{timesheet-BuTUEVgV.js → timesheet-CC0RXblG.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Ba_6tRe5.js → useAppStore-TLnfNvDT.js} +1 -1
- package/dist/{useLoading-Bv16lZo3.js → useLoading-CjCAzYMY.js} +1 -1
- package/dist/{useReportPermissions-CJx0JVuf.js → useReportPermissions-D2PGr00s.js} +3 -3
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
|
|
2
|
-
import { e as w } from "./iteration-
|
|
2
|
+
import { e as w } from "./iteration-DV_V8Ohg.js";
|
|
3
3
|
import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ye, components as se, useDialog as ke, useBreakpoints as Ue, FmButtonColorThemeVariant as ve, FmButtonVariant as Le } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Ie } from "./app-
|
|
5
|
+
import { _ as Ie } from "./app-C3BXWtUJ.js";
|
|
6
6
|
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-
|
|
8
|
-
import { u as Fe } from "./useAppStore-
|
|
9
|
-
import { u as xe } from "./useReportPermissions-
|
|
7
|
+
import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-CiFCJVf9.js";
|
|
8
|
+
import { u as Fe } from "./useAppStore-TLnfNvDT.js";
|
|
9
|
+
import { u as xe } from "./useReportPermissions-D2PGr00s.js";
|
|
10
10
|
import { u as $e, a as Te } from "./useRestaurantMap-e9fQJiLC.js";
|
|
11
|
-
import { l as ee } from "./lodash-
|
|
11
|
+
import { l as ee } from "./lodash-Cr3gZaOu.js";
|
|
12
12
|
import { _ as oe, a as Be } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
|
|
13
|
-
import { u as De } from "./useLoading-
|
|
13
|
+
import { u as De } from "./useLoading-CjCAzYMY.js";
|
|
14
14
|
const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "w-50 ml-5 flex flex-row items-start"
|
|
@@ -2,17 +2,17 @@ import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as
|
|
|
2
2
|
import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
|
|
3
3
|
import { useBreakpoints as Ne, useSnackbar as Be, useDialog as Te, components as Fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ze, S as xe } from "./SelectFilter-DUj7GBtT.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as Se, f as qe, N as Ke, _ as Ge } from "./app-C3BXWtUJ.js";
|
|
6
6
|
import { _ as We } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { u as De } from "./useSearch-B6WK1LBB.js";
|
|
8
|
-
import { u as Je } from "./useLoading-
|
|
9
|
-
import { g as Ue, d as Oe } from "./iteration-
|
|
10
|
-
import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { u as Ee } from "./useAppStore-
|
|
8
|
+
import { u as Je } from "./useLoading-CjCAzYMY.js";
|
|
9
|
+
import { g as Ue, d as Oe } from "./iteration-DV_V8Ohg.js";
|
|
10
|
+
import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-CiFCJVf9.js";
|
|
11
|
+
import "./index-DymDuXcW.js";
|
|
12
|
+
import { u as Ee } from "./useAppStore-TLnfNvDT.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as lt } from "./team-
|
|
14
|
+
import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C1VJ74vl.js";
|
|
15
|
+
import { u as lt } from "./team-LfEADD17.js";
|
|
16
16
|
const nt = /* @__PURE__ */ ae({
|
|
17
17
|
__name: "BottomSheetMenu",
|
|
18
18
|
setup(o) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-Vaxxz7Yf.js";
|
|
3
3
|
import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as xe } from "./app-
|
|
5
|
+
import { _ as xe } from "./app-C3BXWtUJ.js";
|
|
6
6
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as ke } from "./useLoading-
|
|
8
|
-
import { c as Ce, s as Ve } from "./iteration-
|
|
9
|
-
import { b as Fe } from "./index-
|
|
10
|
-
import { u as Ye } from "./employee-
|
|
11
|
-
import { u as Le } from "./timesheet-
|
|
7
|
+
import { u as ke } from "./useLoading-CjCAzYMY.js";
|
|
8
|
+
import { c as Ce, s as Ve } from "./iteration-DV_V8Ohg.js";
|
|
9
|
+
import { b as Fe } from "./index-CiFCJVf9.js";
|
|
10
|
+
import { u as Ye } from "./employee-Dxgf22wP.js";
|
|
11
|
+
import { u as Le } from "./timesheet-CC0RXblG.js";
|
|
12
12
|
function Me(x, a) {
|
|
13
13
|
return ["years", "months"].find((S) => {
|
|
14
14
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isRef as mt, ref as T, shallowRef as dt, watchEffect as he, computed as ie, h as fe, defineComponent as z, createBlock as $, renderSlot as Ye, createCommentVNode as Bt, unref as Z, openBlock as W, createElementBlock as Ge, createElementVNode as O, toDisplayString as we, watch as
|
|
2
|
-
import { useBreakpoints as
|
|
1
|
+
import { isRef as mt, ref as T, shallowRef as dt, watchEffect as he, computed as ie, h as fe, defineComponent as z, createBlock as $, renderSlot as Ye, createCommentVNode as Bt, unref as Z, openBlock as W, createElementBlock as Ge, createElementVNode as O, toDisplayString as we, watch as Me, nextTick as De, onMounted as Ve, onBeforeUnmount as pt, normalizeStyle as bt, resolveComponent as le, withCtx as ft, createVNode as wt, defineAsyncComponent as Mt } from "vue";
|
|
2
|
+
import { useBreakpoints as Dt } from "@feedmepos/ui-library";
|
|
3
3
|
import { useRoute as vt, useRouter as yt } from "vue-router";
|
|
4
4
|
import { useCoreStore as ue, useI18n as je } from "@feedmepos/mf-common";
|
|
5
5
|
const Ee = {
|
|
@@ -27,6 +27,15 @@ const Ee = {
|
|
|
27
27
|
update: "Update",
|
|
28
28
|
delete: "Delete"
|
|
29
29
|
},
|
|
30
|
+
modules: {
|
|
31
|
+
all: "All",
|
|
32
|
+
inventory: "Inventory",
|
|
33
|
+
report: "Report",
|
|
34
|
+
hrm: "HRM",
|
|
35
|
+
payment: "Payment",
|
|
36
|
+
menu: "Menu",
|
|
37
|
+
crm: "CRM"
|
|
38
|
+
},
|
|
30
39
|
columns: {
|
|
31
40
|
timestamp: "Date",
|
|
32
41
|
user: "User",
|
|
@@ -137,6 +146,15 @@ const Ee = {
|
|
|
137
146
|
update: "อัปเดต",
|
|
138
147
|
delete: "ลบ"
|
|
139
148
|
},
|
|
149
|
+
modules: {
|
|
150
|
+
all: "ทั้งหมด",
|
|
151
|
+
inventory: "คลังสินค้า",
|
|
152
|
+
report: "รายงาน",
|
|
153
|
+
hrm: "ทรัพยากรบุคคล",
|
|
154
|
+
payment: "การชำระเงิน",
|
|
155
|
+
menu: "เมนู",
|
|
156
|
+
crm: "CRM"
|
|
157
|
+
},
|
|
140
158
|
columns: {
|
|
141
159
|
timestamp: "วันที่",
|
|
142
160
|
user: "ผู้ใช้",
|
|
@@ -248,6 +266,15 @@ const Ee = {
|
|
|
248
266
|
update: "更新",
|
|
249
267
|
delete: "删除"
|
|
250
268
|
},
|
|
269
|
+
modules: {
|
|
270
|
+
all: "全部",
|
|
271
|
+
inventory: "库存",
|
|
272
|
+
report: "报表",
|
|
273
|
+
hrm: "人事",
|
|
274
|
+
payment: "支付",
|
|
275
|
+
menu: "菜单",
|
|
276
|
+
crm: "CRM"
|
|
277
|
+
},
|
|
251
278
|
columns: {
|
|
252
279
|
timestamp: "日期",
|
|
253
280
|
user: "用户",
|
|
@@ -359,6 +386,15 @@ const Ee = {
|
|
|
359
386
|
update: "更新",
|
|
360
387
|
delete: "刪除"
|
|
361
388
|
},
|
|
389
|
+
modules: {
|
|
390
|
+
all: "全部",
|
|
391
|
+
inventory: "庫存",
|
|
392
|
+
report: "報表",
|
|
393
|
+
hrm: "人事",
|
|
394
|
+
payment: "支付",
|
|
395
|
+
menu: "菜單",
|
|
396
|
+
crm: "CRM"
|
|
397
|
+
},
|
|
362
398
|
columns: {
|
|
363
399
|
timestamp: "日期",
|
|
364
400
|
user: "用戶",
|
|
@@ -1973,14 +2009,14 @@ var Le = { exports: {} };
|
|
|
1973
2009
|
return te;
|
|
1974
2010
|
});
|
|
1975
2011
|
var m = u("Array"), b = u("Object"), v = u("Function");
|
|
1976
|
-
function
|
|
2012
|
+
function M(t, A) {
|
|
1977
2013
|
return v(t.get) ? t.get(A) : t[A];
|
|
1978
2014
|
}
|
|
1979
2015
|
function y(t) {
|
|
1980
2016
|
return function(A, l) {
|
|
1981
2017
|
if (!m(l) || !l.length) return t(A, l);
|
|
1982
2018
|
for (var g = 0, d = l.length; g < d; g++)
|
|
1983
|
-
if (t(A,
|
|
2019
|
+
if (t(A, M(l, g))) return !0;
|
|
1984
2020
|
return !1;
|
|
1985
2021
|
};
|
|
1986
2022
|
}
|
|
@@ -1988,7 +2024,7 @@ var Le = { exports: {} };
|
|
|
1988
2024
|
return function(A, l) {
|
|
1989
2025
|
if (!m(l) || !l.length) return t(A, l);
|
|
1990
2026
|
for (var g = 0, d = l.length; g < d; g++)
|
|
1991
|
-
if (!t(A,
|
|
2027
|
+
if (!t(A, M(l, g))) return !1;
|
|
1992
2028
|
return !0;
|
|
1993
2029
|
};
|
|
1994
2030
|
}
|
|
@@ -2037,7 +2073,7 @@ var Le = { exports: {} };
|
|
|
2037
2073
|
},
|
|
2038
2074
|
$or: function(t, A, l, g) {
|
|
2039
2075
|
for (var d = 0, p = t.length; d < p; d++)
|
|
2040
|
-
if (h(
|
|
2076
|
+
if (h(M(t, d), A, l, g)) return !0;
|
|
2041
2077
|
return !1;
|
|
2042
2078
|
},
|
|
2043
2079
|
$nor: function(t, A, l, g) {
|
|
@@ -2045,7 +2081,7 @@ var Le = { exports: {} };
|
|
|
2045
2081
|
},
|
|
2046
2082
|
$and: function(t, A, l, g) {
|
|
2047
2083
|
for (var d = 0, p = t.length; d < p; d++)
|
|
2048
|
-
if (!h(
|
|
2084
|
+
if (!h(M(t, d), A, l, g)) return !1;
|
|
2049
2085
|
return !0;
|
|
2050
2086
|
},
|
|
2051
2087
|
$regex: y(function(t, A) {
|
|
@@ -2057,7 +2093,7 @@ var Le = { exports: {} };
|
|
|
2057
2093
|
$elemMatch: function(t, A, l, g) {
|
|
2058
2094
|
return m(A) ? !!~function(d, p) {
|
|
2059
2095
|
for (var f = 0; f < d.length; f++)
|
|
2060
|
-
if (
|
|
2096
|
+
if (M(d, f), h(p, M(d, f))) return f;
|
|
2061
2097
|
return -1;
|
|
2062
2098
|
}(A, t) : h(t, A, l, g);
|
|
2063
2099
|
},
|
|
@@ -2109,29 +2145,29 @@ var Le = { exports: {} };
|
|
|
2109
2145
|
if (!(d instanceof Array)) {
|
|
2110
2146
|
var p = g(d);
|
|
2111
2147
|
if (p === d && n(d) === "object") {
|
|
2112
|
-
for (
|
|
2113
|
-
if (String(t[
|
|
2148
|
+
for (D = t.length; D--; )
|
|
2149
|
+
if (String(t[D]) === String(d) && String(d) !== "[object Object]")
|
|
2114
2150
|
return !0;
|
|
2115
2151
|
}
|
|
2116
2152
|
if (p === void 0) {
|
|
2117
|
-
for (
|
|
2153
|
+
for (D = t.length; D--; ) if (t[D] == null) return !0;
|
|
2118
2154
|
}
|
|
2119
|
-
for (
|
|
2120
|
-
var f = h(de(
|
|
2155
|
+
for (D = t.length; D--; ) {
|
|
2156
|
+
var f = h(de(M(t, D), l), p, D, t);
|
|
2121
2157
|
if (f && String(f) !== "[object Object]" && String(p) !== "[object Object]")
|
|
2122
2158
|
return !0;
|
|
2123
2159
|
}
|
|
2124
2160
|
return !!~t.indexOf(p);
|
|
2125
2161
|
}
|
|
2126
|
-
for (var
|
|
2127
|
-
if (~t.indexOf(g(
|
|
2162
|
+
for (var D = d.length; D--; )
|
|
2163
|
+
if (~t.indexOf(g(M(d, D)))) return !0;
|
|
2128
2164
|
return !1;
|
|
2129
2165
|
};
|
|
2130
2166
|
},
|
|
2131
2167
|
$nin: function(t, A, l) {
|
|
2132
2168
|
var g = q.$in(t, A, l);
|
|
2133
|
-
return function(d, p, f,
|
|
2134
|
-
return !g(d, p, f,
|
|
2169
|
+
return function(d, p, f, D) {
|
|
2170
|
+
return !g(d, p, f, D);
|
|
2135
2171
|
};
|
|
2136
2172
|
},
|
|
2137
2173
|
$mod: function(t) {
|
|
@@ -2141,8 +2177,8 @@ var Le = { exports: {} };
|
|
|
2141
2177
|
},
|
|
2142
2178
|
$ne: function(t, A, l) {
|
|
2143
2179
|
var g = q.$eq(t, A, l);
|
|
2144
|
-
return H(function(d, p, f,
|
|
2145
|
-
return !g(d, p, f,
|
|
2180
|
+
return H(function(d, p, f, D) {
|
|
2181
|
+
return !g(d, p, f, D);
|
|
2146
2182
|
});
|
|
2147
2183
|
},
|
|
2148
2184
|
$and: function(t, A, l) {
|
|
@@ -2192,17 +2228,17 @@ var Le = { exports: {} };
|
|
|
2192
2228
|
if (function pe(X, U, R, ut, se) {
|
|
2193
2229
|
if (R === U.length || X == null)
|
|
2194
2230
|
return void se.push([X, U[R - 1], ut]);
|
|
2195
|
-
var be =
|
|
2231
|
+
var be = M(U, R);
|
|
2196
2232
|
if (m(X) && isNaN(Number(be)))
|
|
2197
|
-
for (var re = 0, gt = X.length; re < gt; re++) pe(
|
|
2198
|
-
else pe(
|
|
2233
|
+
for (var re = 0, gt = X.length; re < gt; re++) pe(M(X, re), U, R, X, se);
|
|
2234
|
+
else pe(M(X, be), U, R + 1, X, se);
|
|
2199
2235
|
}(A, l, 0, A, p), p.length === 1) {
|
|
2200
2236
|
var f = p[0];
|
|
2201
2237
|
return h(g, f[0], f[1], f[2]);
|
|
2202
2238
|
}
|
|
2203
|
-
for (var
|
|
2239
|
+
for (var D = d && d.$ne !== void 0, Y = D, E = 0; E < p.length; E++) {
|
|
2204
2240
|
var P = p[E], J = h(g, P[0], P[1], P[2]);
|
|
2205
|
-
|
|
2241
|
+
D ? Y &= J : Y |= J;
|
|
2206
2242
|
}
|
|
2207
2243
|
return Y;
|
|
2208
2244
|
}
|
|
@@ -2211,29 +2247,29 @@ var Le = { exports: {} };
|
|
|
2211
2247
|
}
|
|
2212
2248
|
function I(t) {
|
|
2213
2249
|
var A = t.comparable, l = t.expressions, g = function(f) {
|
|
2214
|
-
var
|
|
2215
|
-
return (!f || !(
|
|
2250
|
+
var D;
|
|
2251
|
+
return (!f || !(D = f) || D.constructor !== Object && D.constructor !== Array && D.constructor.toString() !== "function Object() { [native code] }" && D.constructor.toString() !== "function Array() { [native code] }" || D.toJSON) && (f = { $eq: f }), f;
|
|
2216
2252
|
}, d = function(f) {
|
|
2217
2253
|
f = A(f);
|
|
2218
|
-
var
|
|
2254
|
+
var D = [];
|
|
2219
2255
|
for (var Y in f) {
|
|
2220
2256
|
var E = f[Y];
|
|
2221
2257
|
if (Y !== "$options") {
|
|
2222
2258
|
var P = j[Y] || t && l && l[Y];
|
|
2223
|
-
if (P) q[Y] && (E = q[Y](E, f, t)),
|
|
2259
|
+
if (P) q[Y] && (E = q[Y](E, f, t)), D.push(Q(A(E), P));
|
|
2224
2260
|
else {
|
|
2225
2261
|
if (Y.charCodeAt(0) === 36)
|
|
2226
2262
|
throw new Error("Unknown operation " + Y);
|
|
2227
2263
|
var J = Y.split(".");
|
|
2228
|
-
|
|
2264
|
+
D.push(it(J, p(E), E));
|
|
2229
2265
|
}
|
|
2230
2266
|
}
|
|
2231
2267
|
}
|
|
2232
|
-
return
|
|
2268
|
+
return D.length === 1 ? D[0] : Q(D, j.$and);
|
|
2233
2269
|
}, p = function(f) {
|
|
2234
|
-
return f = g(f), function
|
|
2270
|
+
return f = g(f), function D(Y, E) {
|
|
2235
2271
|
if (!b(Y)) return E;
|
|
2236
|
-
for (var P in Y) E.push(P),
|
|
2272
|
+
for (var P in Y) E.push(P), D(Y[P], E);
|
|
2237
2273
|
return E;
|
|
2238
2274
|
}(f, []).join(",").search(/[$.]/) === -1 ? Q(f, K) : d(f);
|
|
2239
2275
|
};
|
|
@@ -2409,9 +2445,9 @@ function ps(e) {
|
|
|
2409
2445
|
function bs(e) {
|
|
2410
2446
|
return JSON.parse(JSON.stringify(e));
|
|
2411
2447
|
}
|
|
2412
|
-
var fs = /[-/\\^$+?.()|[\]{}]/g, ws = /\.?\*+\.?/g,
|
|
2448
|
+
var fs = /[-/\\^$+?.()|[\]{}]/g, ws = /\.?\*+\.?/g, Ms = /\*+/, Ds = /\./g;
|
|
2413
2449
|
function vs(e, o, c) {
|
|
2414
|
-
var r = c[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", n = e.replace(
|
|
2450
|
+
var r = c[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", n = e.replace(Ds, "\\$&").replace(Ms, a + r);
|
|
2415
2451
|
return o + e.length === c.length ? "(?:" + n + ")?" : n;
|
|
2416
2452
|
}
|
|
2417
2453
|
function ys(e, o, c) {
|
|
@@ -2480,13 +2516,13 @@ var Ys = /* @__PURE__ */ function() {
|
|
|
2480
2516
|
return this[x].indexedRules = n.rules, this[x].hasPerFieldRules = n.hasPerFieldRules, this.emit("updated", a), this;
|
|
2481
2517
|
}, o.buildIndexFor = function(r) {
|
|
2482
2518
|
for (var a = /* @__PURE__ */ Object.create(null), n = this[x].RuleType, u = !0, m = !1, b = 0; b < r.length; b++) {
|
|
2483
|
-
var v = new n(r[b]),
|
|
2519
|
+
var v = new n(r[b]), M = this.expandActions(v.actions), y = oe(v.subject), H = r.length - b - 1;
|
|
2484
2520
|
u = !!(u && v.inverted), !m && v.fields && (m = !0);
|
|
2485
2521
|
for (var h = 0; h < y.length; h++) {
|
|
2486
2522
|
var j = y[h];
|
|
2487
2523
|
a[j] = a[j] || /* @__PURE__ */ Object.create(null);
|
|
2488
|
-
for (var q = 0; q <
|
|
2489
|
-
var Q =
|
|
2524
|
+
for (var q = 0; q < M.length; q++) {
|
|
2525
|
+
var Q = M[q];
|
|
2490
2526
|
a[j][Q] = a[j][Q] || /* @__PURE__ */ Object.create(null), a[j][Q][H] = v;
|
|
2491
2527
|
}
|
|
2492
2528
|
}
|
|
@@ -2568,10 +2604,10 @@ const w = {
|
|
|
2568
2604
|
{ key: "inventory", label: "Inventory", subjectPrefixes: ["business::inventory", "inventory"] },
|
|
2569
2605
|
{ key: "report", label: "Report", subjectPrefixes: ["business::report", "report"] },
|
|
2570
2606
|
{ key: "hrm", label: "HRM", subjectPrefixes: ["business::hrm", "hrm"] },
|
|
2571
|
-
{ key: "payment", label: "Payment", subjectPrefixes: ["business::payment", "payment"] }
|
|
2607
|
+
{ key: "payment", label: "Payment", subjectPrefixes: ["business::payment", "payment"] },
|
|
2608
|
+
{ key: "menu", label: "Menu", subjectPrefixes: ["business::menu", "menu"] },
|
|
2609
|
+
{ key: "crm", label: "CRM", subjectPrefixes: ["business::crm", "crm"] }
|
|
2572
2610
|
// Add more as modules are revamped with new actionguard:
|
|
2573
|
-
// { key: 'menu', label: 'Menu', subjectPrefixes: ['business::menu'] },
|
|
2574
|
-
// { key: 'crm', label: 'CRM', subjectPrefixes: ['business::crm'] },
|
|
2575
2611
|
// { key: 'restaurantOperation', label: 'Restaurant Operation', subjectPrefixes: ['restaurant'] },
|
|
2576
2612
|
], Gs = "access-denied", S = {
|
|
2577
2613
|
Action: s,
|
|
@@ -3405,9 +3441,9 @@ function Us(e) {
|
|
|
3405
3441
|
return new Ys(Ws(e));
|
|
3406
3442
|
}
|
|
3407
3443
|
function Rs(e, o, c) {
|
|
3408
|
-
const r = Array.isArray(e) ? e : [e], a = Us(o), n = (
|
|
3444
|
+
const r = Array.isArray(e) ? e : [e], a = Us(o), n = (M) => M.subject, u = (M) => a.can(M.action, n(M), M.field) ? !0 : M.coverSubject !== void 0 ? a.can(M.action, M.coverSubject, M.field) : !1, m = r.find((M) => !u(M));
|
|
3409
3445
|
if (m) {
|
|
3410
|
-
const
|
|
3446
|
+
const M = a.relevantRuleFor(
|
|
3411
3447
|
m.action,
|
|
3412
3448
|
n(m),
|
|
3413
3449
|
m.field
|
|
@@ -3415,7 +3451,7 @@ function Rs(e, o, c) {
|
|
|
3415
3451
|
return {
|
|
3416
3452
|
granted: !1,
|
|
3417
3453
|
decisivePermission: m,
|
|
3418
|
-
decisiveRule:
|
|
3454
|
+
decisiveRule: M ?? null
|
|
3419
3455
|
};
|
|
3420
3456
|
}
|
|
3421
3457
|
const b = r[0], v = a.relevantRuleFor(b.action, n(b), b.field);
|
|
@@ -3435,12 +3471,12 @@ function Ks(e, o, c) {
|
|
|
3435
3471
|
shallow: u = !0,
|
|
3436
3472
|
onError: m = Ts
|
|
3437
3473
|
} = r, b = T(!a), v = u ? dt(o) : T(o);
|
|
3438
|
-
let
|
|
3474
|
+
let M = 0;
|
|
3439
3475
|
return he(async (y) => {
|
|
3440
3476
|
if (!b.value)
|
|
3441
3477
|
return;
|
|
3442
|
-
|
|
3443
|
-
const H =
|
|
3478
|
+
M++;
|
|
3479
|
+
const H = M;
|
|
3444
3480
|
let h = !1;
|
|
3445
3481
|
n && Promise.resolve().then(() => {
|
|
3446
3482
|
n.value = !0;
|
|
@@ -3451,11 +3487,11 @@ function Ks(e, o, c) {
|
|
|
3451
3487
|
n && (n.value = !1), h || q();
|
|
3452
3488
|
});
|
|
3453
3489
|
});
|
|
3454
|
-
H ===
|
|
3490
|
+
H === M && (v.value = j);
|
|
3455
3491
|
} catch (j) {
|
|
3456
3492
|
m(j);
|
|
3457
3493
|
} finally {
|
|
3458
|
-
n && H ===
|
|
3494
|
+
n && H === M && (n.value = !1), h = !0;
|
|
3459
3495
|
}
|
|
3460
3496
|
}), a ? ie(() => (b.value = !0, v.value)) : v;
|
|
3461
3497
|
}
|
|
@@ -3596,10 +3632,10 @@ function dr(e, o) {
|
|
|
3596
3632
|
};
|
|
3597
3633
|
}
|
|
3598
3634
|
}
|
|
3599
|
-
return
|
|
3600
|
-
await
|
|
3601
|
-
}),
|
|
3602
|
-
a && (await
|
|
3635
|
+
return Me(o, async () => {
|
|
3636
|
+
await De(), r();
|
|
3637
|
+
}), Me(e, async (a) => {
|
|
3638
|
+
a && (await De(), r());
|
|
3603
3639
|
}), Ve(() => {
|
|
3604
3640
|
window.addEventListener("resize", r);
|
|
3605
3641
|
}), pt(() => {
|
|
@@ -3609,7 +3645,7 @@ function dr(e, o) {
|
|
|
3609
3645
|
const Br = /* @__PURE__ */ z({
|
|
3610
3646
|
__name: "FullWrapper",
|
|
3611
3647
|
setup(e) {
|
|
3612
|
-
const o =
|
|
3648
|
+
const o = Dt(), c = T(null), r = dr(c), a = ie(() => {
|
|
3613
3649
|
var m;
|
|
3614
3650
|
const u = o.isAtMost("sm") ? 56 : 0;
|
|
3615
3651
|
return {
|
|
@@ -3639,7 +3675,7 @@ const Br = /* @__PURE__ */ z({
|
|
|
3639
3675
|
});
|
|
3640
3676
|
};
|
|
3641
3677
|
}
|
|
3642
|
-
}), F = (e) =>
|
|
3678
|
+
}), F = (e) => Mt({
|
|
3643
3679
|
loader: e,
|
|
3644
3680
|
loadingComponent: br
|
|
3645
3681
|
});
|
|
@@ -3653,10 +3689,10 @@ const ae = (e) => ({
|
|
|
3653
3689
|
}
|
|
3654
3690
|
]
|
|
3655
3691
|
}
|
|
3656
|
-
}), fr = ee(F(() => import("./Main-
|
|
3657
|
-
F(() => import("./AuditLogList-
|
|
3658
|
-
),
|
|
3659
|
-
() => import("./PermissionSetList-
|
|
3692
|
+
}), fr = ee(F(() => import("./Main-5Z-5nKOD.js"))), wr = ee(F(() => import("./Main-6J60Mo7C.js"))), Mr = ee(
|
|
3693
|
+
F(() => import("./AuditLogList-dJ7Se6DM.js"))
|
|
3694
|
+
), Dr = ee(F(() => import("./Main-WzeZsfbx.js"))), vr = F(() => import("./EmployeeList-3EaEXmGW.js")), yr = F(() => import("./RoleList-BZiSifWg.js")), Cr = F(() => import("./TimesheetList-jczuepyB.js")), hr = F(() => import("./TeamMemberList-Esq2sswx.js")), Yr = F(
|
|
3695
|
+
() => import("./PermissionSetList-DLrxvdja.js")
|
|
3660
3696
|
), Xr = [
|
|
3661
3697
|
{
|
|
3662
3698
|
path: "/",
|
|
@@ -3688,7 +3724,7 @@ const ae = (e) => ({
|
|
|
3688
3724
|
{
|
|
3689
3725
|
path: "/audit-log",
|
|
3690
3726
|
name: "audit-log",
|
|
3691
|
-
component:
|
|
3727
|
+
component: Mr,
|
|
3692
3728
|
meta: ae(S.Subject.Business.hrm_auditLog)
|
|
3693
3729
|
},
|
|
3694
3730
|
{
|
|
@@ -3716,7 +3752,7 @@ const ae = (e) => ({
|
|
|
3716
3752
|
{
|
|
3717
3753
|
path: "/pos-grant",
|
|
3718
3754
|
name: "pos-grant",
|
|
3719
|
-
component:
|
|
3755
|
+
component: Dr
|
|
3720
3756
|
}
|
|
3721
3757
|
], Gr = /* @__PURE__ */ z({
|
|
3722
3758
|
__name: "Navigator",
|
|
@@ -3786,8 +3822,8 @@ const ae = (e) => ({
|
|
|
3786
3822
|
}
|
|
3787
3823
|
m.value !== b && (m.value = b);
|
|
3788
3824
|
}), (b, v) => {
|
|
3789
|
-
const
|
|
3790
|
-
return W(), $(
|
|
3825
|
+
const M = le("FmCollapsibleTabs");
|
|
3826
|
+
return W(), $(M, {
|
|
3791
3827
|
modelValue: m.value,
|
|
3792
3828
|
"onUpdate:modelValue": v[0] || (v[0] = (y) => m.value = y),
|
|
3793
3829
|
items: u.value,
|
|
@@ -3824,16 +3860,16 @@ export {
|
|
|
3824
3860
|
Fr as N,
|
|
3825
3861
|
G as R,
|
|
3826
3862
|
Br as _,
|
|
3827
|
-
|
|
3828
|
-
|
|
3863
|
+
w as a,
|
|
3864
|
+
S as b,
|
|
3829
3865
|
ns as c,
|
|
3830
|
-
|
|
3831
|
-
|
|
3866
|
+
zs as d,
|
|
3867
|
+
Vs as e,
|
|
3832
3868
|
Pr as f,
|
|
3833
3869
|
os as g,
|
|
3834
3870
|
qr as h,
|
|
3835
|
-
|
|
3871
|
+
Or as i,
|
|
3872
|
+
Hr as j,
|
|
3836
3873
|
Xr as r,
|
|
3837
|
-
S as u,
|
|
3838
3874
|
s as y
|
|
3839
3875
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
1
|
+
import { d as T } from "./dayjs.min-Vaxxz7Yf.js";
|
|
2
2
|
import { defineStore as _, storeToRefs as U } from "pinia";
|
|
3
3
|
import { ref as I } from "vue";
|
|
4
4
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
|
5
|
-
import { b as r, g as o, s as v } from "./iteration-
|
|
6
|
-
import { t as b, i as S } from "./index-
|
|
7
|
-
import { u as x } from "./useAppStore-
|
|
5
|
+
import { b as r, g as o, s as v } from "./iteration-DV_V8Ohg.js";
|
|
6
|
+
import { t as b, i as S } from "./index-CiFCJVf9.js";
|
|
7
|
+
import { u as x } from "./useAppStore-TLnfNvDT.js";
|
|
8
8
|
const n = {
|
|
9
9
|
async readEmployees() {
|
|
10
10
|
return o(await r().get("/pos-users"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-
|
|
2
|
-
import {
|
|
1
|
+
import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-DV_V8Ohg.js";
|
|
2
|
+
import { b as J, e as R, d as F, a as D, y as S, N as Q } from "./app-C3BXWtUJ.js";
|
|
3
3
|
import { defineStore as x, storeToRefs as k } from "pinia";
|
|
4
4
|
import { ref as h, computed as N } from "vue";
|
|
5
5
|
import { useCoreStore as q } from "@feedmepos/mf-common";
|
|
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
|
|
|
2
2
|
var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
|
|
3
3
|
var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
|
|
4
4
|
import { readonly as Nt, ref as Rt } from "vue";
|
|
5
|
-
import { c as st } from "./app-
|
|
5
|
+
import { c as st } from "./app-C3BXWtUJ.js";
|
|
6
6
|
var Pt = { exports: {} };
|
|
7
7
|
(function(_, h) {
|
|
8
8
|
(function(y, p) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as U } from "./app-
|
|
1
|
+
import { c as U } from "./app-C3BXWtUJ.js";
|
|
2
2
|
import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
|
|
3
3
|
var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
|
|
4
4
|
(function(e) {
|
|
@@ -27,6 +27,15 @@ export declare const i18nMessages: {
|
|
|
27
27
|
update: string;
|
|
28
28
|
delete: string;
|
|
29
29
|
};
|
|
30
|
+
modules: {
|
|
31
|
+
all: string;
|
|
32
|
+
inventory: string;
|
|
33
|
+
report: string;
|
|
34
|
+
hrm: string;
|
|
35
|
+
payment: string;
|
|
36
|
+
menu: string;
|
|
37
|
+
crm: string;
|
|
38
|
+
};
|
|
30
39
|
columns: {
|
|
31
40
|
timestamp: string;
|
|
32
41
|
user: string;
|
|
@@ -134,6 +143,15 @@ export declare const i18nMessages: {
|
|
|
134
143
|
update: string;
|
|
135
144
|
delete: string;
|
|
136
145
|
};
|
|
146
|
+
modules: {
|
|
147
|
+
all: string;
|
|
148
|
+
inventory: string;
|
|
149
|
+
report: string;
|
|
150
|
+
hrm: string;
|
|
151
|
+
payment: string;
|
|
152
|
+
menu: string;
|
|
153
|
+
crm: string;
|
|
154
|
+
};
|
|
137
155
|
columns: {
|
|
138
156
|
timestamp: string;
|
|
139
157
|
user: string;
|
|
@@ -242,6 +260,15 @@ export declare const i18nMessages: {
|
|
|
242
260
|
update: string;
|
|
243
261
|
delete: string;
|
|
244
262
|
};
|
|
263
|
+
modules: {
|
|
264
|
+
all: string;
|
|
265
|
+
inventory: string;
|
|
266
|
+
report: string;
|
|
267
|
+
hrm: string;
|
|
268
|
+
payment: string;
|
|
269
|
+
menu: string;
|
|
270
|
+
crm: string;
|
|
271
|
+
};
|
|
245
272
|
columns: {
|
|
246
273
|
timestamp: string;
|
|
247
274
|
user: string;
|
|
@@ -350,6 +377,15 @@ export declare const i18nMessages: {
|
|
|
350
377
|
update: string;
|
|
351
378
|
delete: string;
|
|
352
379
|
};
|
|
380
|
+
modules: {
|
|
381
|
+
all: string;
|
|
382
|
+
inventory: string;
|
|
383
|
+
report: string;
|
|
384
|
+
hrm: string;
|
|
385
|
+
payment: string;
|
|
386
|
+
menu: string;
|
|
387
|
+
crm: string;
|
|
388
|
+
};
|
|
353
389
|
columns: {
|
|
354
390
|
timestamp: string;
|
|
355
391
|
user: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
2
|
import { ref as s, computed as o } from "vue";
|
|
3
|
-
import { t as f } from "./index-
|
|
3
|
+
import { t as f } from "./index-CiFCJVf9.js";
|
|
4
4
|
const I = d("team", () => {
|
|
5
5
|
const r = s([]), a = s(!1), m = o(
|
|
6
6
|
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-Vaxxz7Yf.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y, s as S } from "./iteration-
|
|
5
|
-
import { i as u, b as g } from "./index-
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-DV_V8Ohg.js";
|
|
5
|
+
import { i as u, b as g } from "./index-CiFCJVf9.js";
|
|
6
6
|
const f = {
|
|
7
7
|
async readTimesheets(t, e) {
|
|
8
8
|
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|