@feedmepos/mf-hrm-portal 2.0.5-dev → 2.0.7-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-COq6WH3T.js +492 -0
- package/dist/{EmployeeList-B_pgDSOf.js → EmployeeList-CtosIPFL.js} +6 -6
- package/dist/{Main-BVogGot1.js → Main-B4YdcrGe.js} +5 -5
- package/dist/{Main-DsOSGRS7.js → Main-CdsqeB2G.js} +8 -8
- package/dist/{PermissionSetList-B243twFl.js → PermissionSetList-BUORArci.js} +3 -3
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js +3333 -0
- package/dist/{RoleList-B09gFRrt.js → RoleList-D1NGE2IC.js} +6 -6
- package/dist/{SelectFilter-NbXrJ4iH.js → SelectFilter-DUj7GBtT.js} +93 -89
- package/dist/{TeamMemberList-DZKq2mDD.js → TeamMemberList-auSjZRNz.js} +8 -8
- package/dist/{TimesheetList-BykQ0VO_.js → TimesheetList-B8yCkaxb.js} +6 -6
- package/dist/{app-D0y0UR-U.js → app-CB3ye-CT.js} +16 -16
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-COoXlyZR.js → dayjs.min-DOxEzdpe.js} +1 -1
- package/dist/{employee-UNFKUR2e.js → employee-G0pQg8_6.js} +3 -3
- package/dist/{index-BPGh5yHT.js → index-Beu6IuhT.js} +258 -257
- package/dist/{index-2et9Y2xR.js → index-DQArLkVB.js} +1 -1
- package/dist/{lodash-CDk6w3_I.js → lodash-COjtwv4w.js} +1 -1
- package/dist/{components → src/components}/form/SelectFilter.vue.d.ts +2 -0
- package/dist/{team-B0EB57-E.js → team-CEtKQK6n.js} +1 -1
- package/dist/{timesheet-DmthH-5T.js → timesheet-DZF9D3QQ.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Ba_pxve9.js → useAppStore-9lbKMy_9.js} +1 -1
- package/dist/{useLoading-PuFP-Lbd.js → useLoading-BIIvuJcM.js} +1 -1
- package/dist/{useReportPermissions-mKoU-8Yq.js → useReportPermissions-BXQ0-WwK.js} +2 -2
- package/package.json +2 -2
- package/dist/AuditLogList-BvEIB73A.js +0 -474
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JopeRj37.js +0 -3287
- /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/{Entry.vue.d.ts → src/Entry.vue.d.ts} +0 -0
- /package/dist/{api → src/api}/audit-log/index.d.ts +0 -0
- /package/dist/{api → src/api}/employee/index.d.ts +0 -0
- /package/dist/{api → src/api}/index.d.ts +0 -0
- /package/dist/{api → src/api}/inventory/index.d.ts +0 -0
- /package/dist/{api → src/api}/permission-assignment/index.d.ts +0 -0
- /package/dist/{api → src/api}/permission-set/index.d.ts +0 -0
- /package/dist/{api → src/api}/public-setting/index.d.ts +0 -0
- /package/dist/{api → src/api}/report-query/index.d.ts +0 -0
- /package/dist/{api → src/api}/role/index.d.ts +0 -0
- /package/dist/{api → src/api}/team/index.d.ts +0 -0
- /package/dist/{api → src/api}/timesheet/index.d.ts +0 -0
- /package/dist/{api → src/api}/user/index.d.ts +0 -0
- /package/dist/{app.d.ts → src/app.d.ts} +0 -0
- /package/dist/{components → src/components}/AppForm.vue.d.ts +0 -0
- /package/dist/{components → src/components}/CheckboxInput.vue.d.ts +0 -0
- /package/dist/{components → src/components}/CollapsibleWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/Navigator.vue.d.ts +0 -0
- /package/dist/{components → src/components}/Splash.vue.d.ts +0 -0
- /package/dist/{components → src/components}/button/ResponsiveFabButton.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormColumn.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormSection.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FullWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/HorizontalSplitter.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/LottieAnimation.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/PageLayout.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/AppLoading.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/PageLoading.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/index.d.ts +0 -0
- /package/dist/{components → src/components}/menu/BottomSheetMenu.vue.d.ts +0 -0
- /package/dist/{components → src/components}/menu/BottomSheetMenuItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/menu/ResponsiveContextMenu.vue.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/Icon.vue.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/index.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useAppStore.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCustomReportPermissions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDateRange.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDiscardConfirm.d.ts +0 -0
- /package/dist/{composables → src/composables}/useElementPosition.d.ts +0 -0
- /package/dist/{composables → src/composables}/useFilterSelector.d.ts +0 -0
- /package/dist/{composables → src/composables}/useLoading.d.ts +0 -0
- /package/dist/{composables → src/composables}/useMessage.d.ts +0 -0
- /package/dist/{composables → src/composables}/useReportPermissions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRestaurantMap.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSearch.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSheet.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/component.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/iteration.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/object.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/permission-set.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/portal-user.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/rule.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/string.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/utils.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{router → src/router}/index.d.ts +0 -0
- /package/dist/{router → src/router}/shared.d.ts +0 -0
- /package/dist/{stores → src/stores}/employee.d.ts +0 -0
- /package/dist/{stores → src/stores}/permission-assignment.d.ts +0 -0
- /package/dist/{stores → src/stores}/permission-set.d.ts +0 -0
- /package/dist/{stores → src/stores}/role.d.ts +0 -0
- /package/dist/{stores → src/stores}/team.d.ts +0 -0
- /package/dist/{stores → src/stores}/timesheet.d.ts +0 -0
- /package/dist/{types → src/types}/audit-log.d.ts +0 -0
- /package/dist/{types → src/types}/employee.d.ts +0 -0
- /package/dist/{types → src/types}/permission-assignment.d.ts +0 -0
- /package/dist/{types → src/types}/permission-set.d.ts +0 -0
- /package/dist/{types → src/types}/report-query.d.ts +0 -0
- /package/dist/{types → src/types}/restaurant.d.ts +0 -0
- /package/dist/{types → src/types}/role.d.ts +0 -0
- /package/dist/{types → src/types}/team.d.ts +0 -0
- /package/dist/{types → src/types}/timesheet.d.ts +0 -0
- /package/dist/{views → src/views}/audit-log/AuditLogList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/audit-log/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/hr/Main.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/Employee.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/EmployeeForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/EmployeeList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/hr/role/RoleForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/role/RoleList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/timesheet/TimesheetList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/Main.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/BasePermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/ConditionPermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/InheritPermissionTooltip.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PermissionWithTooltip.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PortalPermissionEditor.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PortalUserSearcher.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PosRolePermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/AddMemberForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/MemberInfo.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/TeamMemberList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/TeamMemberMasterUser.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/permission-set/PermissionSetForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/permission-set/PermissionSetList.vue.d.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
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 ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-
|
|
2
|
+
import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-Beu6IuhT.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 Le, useBreakpoints as Ie, FmButtonColorThemeVariant as fe, FmButtonVariant as Ee } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Se } from "./app-
|
|
5
|
+
import { _ as Se } from "./app-CB3ye-CT.js";
|
|
6
6
|
import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as Fe } from "./useAppStore-
|
|
8
|
-
import { u as xe } from "./useReportPermissions-
|
|
7
|
+
import { u as Fe } from "./useAppStore-9lbKMy_9.js";
|
|
8
|
+
import { u as xe } from "./useReportPermissions-BXQ0-WwK.js";
|
|
9
9
|
import { u as $e, _ as oe, a as Te, b as Be } from "./useRestaurantMap-D5BNPLKh.js";
|
|
10
|
-
import { l as ee } from "./lodash-
|
|
11
|
-
import { u as De } from "./useLoading-
|
|
10
|
+
import { l as ee } from "./lodash-COjtwv4w.js";
|
|
11
|
+
import { u as De } from "./useLoading-BIIvuJcM.js";
|
|
12
12
|
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 = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-50 ml-5 flex flex-row items-start"
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { ref as B, computed as
|
|
1
|
+
import { ref as B, computed as v, defineComponent as G, watch as J, nextTick as Q, resolveComponent as C, createElementBlock as m, openBlock as c, createElementVNode as w, createVNode as k, renderSlot as _, withCtx as L, createCommentVNode as S, normalizeStyle as W, Fragment as V, createBlock as P, unref as p, renderList as N, normalizeClass as X, toDisplayString as Y, withModifiers as Z } from "vue";
|
|
2
2
|
import "@feedmepos/ui-library";
|
|
3
3
|
/* empty css */
|
|
4
|
-
function ee(t, u,
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
4
|
+
function ee(t, u, g = t) {
|
|
5
|
+
const e = B(!0), h = v(() => {
|
|
6
|
+
if (!e.value && !u.value)
|
|
7
7
|
return !0;
|
|
8
8
|
if (u.value && u.value.length > 0) {
|
|
9
|
-
const r =
|
|
9
|
+
const r = g.value.map((o) => o.value);
|
|
10
10
|
return u.value.length === r.length && u.value.every((o) => r.includes(o));
|
|
11
11
|
}
|
|
12
12
|
return !1;
|
|
13
|
-
}),
|
|
14
|
-
var r, o, y,
|
|
15
|
-
return !!((r = u.value) != null && r.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((y = u.value) == null ? void 0 : y.length) < ((
|
|
13
|
+
}), l = v(() => {
|
|
14
|
+
var r, o, y, f;
|
|
15
|
+
return !!((r = u.value) != null && r.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((y = u.value) == null ? void 0 : y.length) < ((f = t.value) == null ? void 0 : f.length));
|
|
16
16
|
});
|
|
17
|
-
return { allCleared:
|
|
18
|
-
if (
|
|
19
|
-
u.value = void 0,
|
|
17
|
+
return { allCleared: e, allSelected: h, indeterminate: l, toggleAll: () => {
|
|
18
|
+
if (h.value) {
|
|
19
|
+
u.value = void 0, e.value = !0;
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
const r =
|
|
23
|
-
r.length === t.value.length ? (u.value = void 0,
|
|
22
|
+
const r = g.value.map((o) => o.value);
|
|
23
|
+
r.length === t.value.length ? (u.value = void 0, e.value = !1) : (u.value = r, e.value = !1);
|
|
24
24
|
}, toggleOption: (r) => {
|
|
25
|
-
var y,
|
|
25
|
+
var y, f, x;
|
|
26
26
|
let o;
|
|
27
|
-
u.value === void 0 &&
|
|
27
|
+
u.value === void 0 && e.value ? o = [r] : u.value === void 0 && !e.value ? o = (y = t.value.map((b) => b.value)) == null ? void 0 : y.filter((b) => b !== r) : (f = u.value) != null && f.includes(r) ? o = (x = u.value) == null ? void 0 : x.filter((b) => b !== r) : o = [...u.value || [], r], o.length === 0 ? (u.value = void 0, e.value = !0) : o.length === t.value.length ? (u.value = void 0, e.value = !1) : u.value = o;
|
|
28
28
|
} };
|
|
29
29
|
}
|
|
30
30
|
const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-center gap-8" }, te = { class: "inline-flex items-center" }, ue = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, ne = {
|
|
@@ -46,82 +46,86 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
46
46
|
chipIcon: { default: "filter_list" },
|
|
47
47
|
showSelectAll: { type: Boolean, default: !0 },
|
|
48
48
|
maxHeight: { default: 300 },
|
|
49
|
-
selectedPrefix: { default: "Selected: " }
|
|
49
|
+
selectedPrefix: { default: "Selected: " },
|
|
50
|
+
filterFn: {}
|
|
50
51
|
},
|
|
51
52
|
emits: ["update:modelValue", "change"],
|
|
52
|
-
setup(t, { expose: u, emit:
|
|
53
|
-
const
|
|
54
|
-
get: () =>
|
|
53
|
+
setup(t, { expose: u, emit: g }) {
|
|
54
|
+
const e = t, h = g, l = v({
|
|
55
|
+
get: () => e.modelValue,
|
|
55
56
|
set: (a) => {
|
|
56
|
-
|
|
57
|
+
h("update:modelValue", a), h("change", a);
|
|
57
58
|
}
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return
|
|
59
|
+
}), F = B(""), d = v(() => e.items), r = v(() => {
|
|
60
|
+
const a = F.value.trim();
|
|
61
|
+
if (!e.searchable || !a) return d.value;
|
|
62
|
+
if (e.filterFn)
|
|
63
|
+
return d.value.filter((i) => e.filterFn(i, a));
|
|
64
|
+
const n = a.toLowerCase();
|
|
65
|
+
return d.value.filter((i) => i.label.toLowerCase().includes(n));
|
|
66
|
+
}), o = v(() => {
|
|
67
|
+
if (!l.value || Array.isArray(l.value) && l.value.length === 0)
|
|
68
|
+
return e.placeholder;
|
|
69
|
+
if (Array.isArray(l.value) && l.value.length === 1) {
|
|
70
|
+
const n = d.value.find((i) => i.value === l.value[0]);
|
|
71
|
+
return (n == null ? void 0 : n.label) || e.placeholder;
|
|
68
72
|
}
|
|
69
|
-
const a = Array.isArray(
|
|
70
|
-
return `${
|
|
71
|
-
}), y =
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
74
|
-
const a =
|
|
75
|
-
return (a == null ? void 0 : a.label) ||
|
|
76
|
-
}),
|
|
77
|
-
() =>
|
|
78
|
-
), x =
|
|
73
|
+
const a = Array.isArray(l.value) ? l.value.length : 0;
|
|
74
|
+
return `${e.selectedPrefix}${a}`;
|
|
75
|
+
}), y = v(() => {
|
|
76
|
+
if (l.value === void 0 || l.value === null || l.value === "")
|
|
77
|
+
return e.placeholder;
|
|
78
|
+
const a = d.value.find((n) => n.value === l.value);
|
|
79
|
+
return (a == null ? void 0 : a.label) || e.placeholder;
|
|
80
|
+
}), f = v(
|
|
81
|
+
() => e.multiple ? o.value : y.value
|
|
82
|
+
), x = v(() => e.disabled ? "neutral-gray-200" : e.variant === "dark" ? "neutral-black" : "neutral-gray-400"), b = v(() => e.disabled ? "text-fm-color-neutral-gray-200" : e.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), M = B(void 0), E = new Proxy(M, {
|
|
79
83
|
get(a, n) {
|
|
80
|
-
return n === "value" ? Array.isArray(
|
|
84
|
+
return n === "value" ? Array.isArray(l.value) ? l.value : l.value === void 0 ? void 0 : [l.value] : M[n];
|
|
81
85
|
},
|
|
82
|
-
set(a, n,
|
|
83
|
-
return n === "value" ? (
|
|
86
|
+
set(a, n, i) {
|
|
87
|
+
return n === "value" ? (l.value = i, !0) : (M[n] = i, !0);
|
|
84
88
|
}
|
|
85
|
-
}), { allSelected:
|
|
86
|
-
|
|
89
|
+
}), { allSelected: z, toggleAll: K, toggleOption: H, indeterminate: D } = ee(
|
|
90
|
+
d,
|
|
87
91
|
E,
|
|
88
92
|
r
|
|
89
93
|
);
|
|
90
94
|
function O(a) {
|
|
91
95
|
var n;
|
|
92
|
-
|
|
96
|
+
e.multiple || (l.value = a, (n = A.value) == null || n.toggleMenu(!1));
|
|
93
97
|
}
|
|
94
98
|
function T(a) {
|
|
95
|
-
a.stopPropagation(), !
|
|
99
|
+
a.stopPropagation(), !e.disabled && (l.value = null);
|
|
96
100
|
}
|
|
97
101
|
J(
|
|
98
|
-
() =>
|
|
102
|
+
() => e.autoSelectFirst,
|
|
99
103
|
async (a) => {
|
|
100
|
-
if (a && !
|
|
104
|
+
if (a && !e.multiple && (l.value === void 0 || l.value === null)) {
|
|
101
105
|
await Q();
|
|
102
|
-
const n =
|
|
103
|
-
n && (
|
|
106
|
+
const n = d.value[0];
|
|
107
|
+
n && (l.value = n.value);
|
|
104
108
|
}
|
|
105
109
|
},
|
|
106
110
|
{ immediate: !0 }
|
|
107
111
|
);
|
|
108
|
-
const
|
|
112
|
+
const A = B(null);
|
|
109
113
|
return u({
|
|
110
114
|
open: () => {
|
|
111
115
|
var a;
|
|
112
|
-
return (a =
|
|
116
|
+
return (a = A.value) == null ? void 0 : a.toggleMenu(!0);
|
|
113
117
|
},
|
|
114
118
|
close: () => {
|
|
115
119
|
var a;
|
|
116
|
-
return (a =
|
|
120
|
+
return (a = A.value) == null ? void 0 : a.toggleMenu(!1);
|
|
117
121
|
}
|
|
118
122
|
}), (a, n) => {
|
|
119
|
-
const
|
|
120
|
-
return
|
|
121
|
-
|
|
123
|
+
const i = C("FmIcon"), U = C("FmChip"), j = C("FmSearch"), $ = C("FmMenuItem"), q = C("FmMenu");
|
|
124
|
+
return c(), m("div", le, [
|
|
125
|
+
w("div", ae, [
|
|
122
126
|
k(q, {
|
|
123
127
|
ref_key: "menuRef",
|
|
124
|
-
ref:
|
|
128
|
+
ref: A,
|
|
125
129
|
"close-on-click": !1,
|
|
126
130
|
disabled: t.disabled,
|
|
127
131
|
"z-index": 50,
|
|
@@ -129,35 +133,35 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
129
133
|
}, {
|
|
130
134
|
"menu-button": L(() => [
|
|
131
135
|
_(a.$slots, "menu-button", {}, () => [
|
|
132
|
-
|
|
136
|
+
w("div", te, [
|
|
133
137
|
k(U, { disabled: t.disabled }, {
|
|
134
138
|
default: L(() => [
|
|
135
|
-
k(
|
|
139
|
+
k(i, {
|
|
136
140
|
color: x.value,
|
|
137
141
|
name: t.chipIcon,
|
|
138
142
|
outline: "",
|
|
139
143
|
size: "sm"
|
|
140
144
|
}, null, 8, ["color", "name"]),
|
|
141
|
-
|
|
145
|
+
f.value ? (c(), m("div", {
|
|
142
146
|
key: 0,
|
|
143
147
|
class: X([
|
|
144
148
|
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
145
149
|
b.value
|
|
146
150
|
])
|
|
147
|
-
}, Y(
|
|
148
|
-
k(
|
|
151
|
+
}, Y(f.value), 3)) : S("", !0),
|
|
152
|
+
k(i, {
|
|
149
153
|
color: x.value,
|
|
150
154
|
name: "keyboard_arrow_down",
|
|
151
155
|
size: "sm"
|
|
152
156
|
}, null, 8, ["color"]),
|
|
153
|
-
t.clearable && !t.multiple &&
|
|
157
|
+
t.clearable && !t.multiple && l.value != null && l.value !== "" && !t.disabled ? (c(), m("button", {
|
|
154
158
|
key: 1,
|
|
155
159
|
class: "ml-4 focus:outline-none",
|
|
156
160
|
type: "button",
|
|
157
161
|
"aria-label": "Clear selection",
|
|
158
162
|
onClick: Z(T, ["stop"])
|
|
159
163
|
}, [
|
|
160
|
-
k(
|
|
164
|
+
k(i, {
|
|
161
165
|
name: "close",
|
|
162
166
|
size: "sm",
|
|
163
167
|
color: x.value
|
|
@@ -170,55 +174,55 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
170
174
|
], !0)
|
|
171
175
|
]),
|
|
172
176
|
default: L(() => [
|
|
173
|
-
|
|
174
|
-
t.searchable ? (
|
|
175
|
-
|
|
177
|
+
w("div", ue, [
|
|
178
|
+
t.searchable ? (c(), m("div", ne, [
|
|
179
|
+
w("div", re, [
|
|
176
180
|
k(j, {
|
|
177
|
-
modelValue:
|
|
178
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) =>
|
|
181
|
+
modelValue: F.value,
|
|
182
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => F.value = s),
|
|
179
183
|
placeholder: t.searchPlaceholder
|
|
180
184
|
}, null, 8, ["modelValue", "placeholder"])
|
|
181
185
|
])
|
|
182
186
|
])) : S("", !0),
|
|
183
|
-
|
|
187
|
+
w("div", {
|
|
184
188
|
class: "flex-1 overflow-y-auto min-h-0",
|
|
185
189
|
style: W({ maxHeight: typeof t.maxHeight == "number" ? t.maxHeight + "px" : t.maxHeight })
|
|
186
190
|
}, [
|
|
187
|
-
t.multiple ? (
|
|
188
|
-
t.showSelectAll ? (
|
|
191
|
+
t.multiple ? (c(), m(V, { key: 0 }, [
|
|
192
|
+
t.showSelectAll ? (c(), P($, {
|
|
189
193
|
key: 0,
|
|
190
194
|
label: "All",
|
|
191
195
|
"has-checkbox": "",
|
|
192
|
-
"model-value": p(
|
|
193
|
-
indeterminate: p(
|
|
194
|
-
onClick: p(
|
|
196
|
+
"model-value": p(z),
|
|
197
|
+
indeterminate: p(D),
|
|
198
|
+
onClick: p(K)
|
|
195
199
|
}, null, 8, ["model-value", "indeterminate", "onClick"])) : S("", !0),
|
|
196
|
-
r.value.length ? (
|
|
200
|
+
r.value.length ? (c(!0), m(V, { key: 1 }, N(r.value, (s) => {
|
|
197
201
|
var I;
|
|
198
202
|
return _(a.$slots, "option", {
|
|
199
203
|
option: s,
|
|
200
|
-
selected: p(
|
|
204
|
+
selected: p(z) || Array.isArray(l.value) && ((I = l.value) == null ? void 0 : I.includes(s.value)),
|
|
201
205
|
toggle: () => p(H)(s.value)
|
|
202
206
|
}, () => {
|
|
203
207
|
var R;
|
|
204
208
|
return [
|
|
205
|
-
(
|
|
209
|
+
(c(), P($, {
|
|
206
210
|
key: s.value,
|
|
207
211
|
label: s.label,
|
|
208
212
|
"has-checkbox": "",
|
|
209
|
-
"model-value": p(
|
|
213
|
+
"model-value": p(z) || Array.isArray(l.value) && ((R = l.value) == null ? void 0 : R.includes(s.value)),
|
|
210
214
|
onClick: (ie) => p(H)(s.value)
|
|
211
215
|
}, null, 8, ["label", "model-value", "onClick"]))
|
|
212
216
|
];
|
|
213
217
|
}, !0);
|
|
214
218
|
}), 256)) : S("", !0)
|
|
215
|
-
], 64)) : (
|
|
216
|
-
r.value.length ? (
|
|
219
|
+
], 64)) : (c(), m(V, { key: 1 }, [
|
|
220
|
+
r.value.length ? (c(!0), m(V, { key: 0 }, N(r.value, (s) => _(a.$slots, "option", {
|
|
217
221
|
option: s,
|
|
218
|
-
selected:
|
|
222
|
+
selected: l.value === s.value,
|
|
219
223
|
toggle: () => O(s.value)
|
|
220
224
|
}, () => [
|
|
221
|
-
(
|
|
225
|
+
(c(), P($, {
|
|
222
226
|
key: s.value,
|
|
223
227
|
label: s.label,
|
|
224
228
|
onClick: (I) => O(s.value)
|
|
@@ -236,11 +240,11 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
236
240
|
};
|
|
237
241
|
}
|
|
238
242
|
}), se = (t, u) => {
|
|
239
|
-
const
|
|
240
|
-
for (const [
|
|
241
|
-
|
|
242
|
-
return
|
|
243
|
-
}, fe = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-
|
|
243
|
+
const g = t.__vccOpts || t;
|
|
244
|
+
for (const [e, h] of u)
|
|
245
|
+
g[e] = h;
|
|
246
|
+
return g;
|
|
247
|
+
}, fe = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-a9d0b3b3"]]);
|
|
244
248
|
export {
|
|
245
249
|
fe as S,
|
|
246
250
|
se as _
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as le, ref as F, resolveComponent as g, createBlock as I, openBlock as f, withCtx as A, createElementVNode as i, renderSlot as be, createCommentVNode as G, withModifiers as Pe, nextTick as ke, createElementBlock as T, normalizeClass as $e, createTextVNode as Re, toDisplayString as N, computed as k, Fragment as ue, renderList as ye, createVNode as c, unref as r, watch as Ie, isRef as he, createSlots as je } from "vue";
|
|
2
2
|
import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
|
|
3
3
|
import { useBreakpoints as Ce, useSnackbar as Me, useDialog as Le, components as Fe } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as Ee, S as xe } from "./SelectFilter-
|
|
5
|
-
import { f as Te, U as ze, _ as qe } from "./app-
|
|
4
|
+
import { _ as Ee, S as xe } from "./SelectFilter-DUj7GBtT.js";
|
|
5
|
+
import { f as Te, U as ze, _ as qe } from "./app-CB3ye-CT.js";
|
|
6
6
|
import { _ as Ke } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
7
|
import { u as Ne } from "./useSearch-B6WK1LBB.js";
|
|
8
|
-
import { u as Ge } from "./useLoading-
|
|
9
|
-
import { g as Se, l as Be, u as De, m as We, n as Je, o as pe, q as Oe, p as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as He, t as fe } from "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { u as Ae } from "./useAppStore-
|
|
8
|
+
import { u as Ge } from "./useLoading-BIIvuJcM.js";
|
|
9
|
+
import { g as Se, l as Be, u as De, m as We, n as Je, o as pe, q as Oe, p as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as He, t as fe } from "./index-Beu6IuhT.js";
|
|
10
|
+
import "./index-DQArLkVB.js";
|
|
11
|
+
import { u as Ae } from "./useAppStore-9lbKMy_9.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { _ as es, a as ss } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as ts } from "./team-
|
|
13
|
+
import { _ as es, a as ss } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js";
|
|
14
|
+
import { u as ts } from "./team-CEtKQK6n.js";
|
|
15
15
|
const os = /* @__PURE__ */ le({
|
|
16
16
|
__name: "BottomSheetMenu",
|
|
17
17
|
setup(t) {
|
|
@@ -1,13 +1,13 @@
|
|
|
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-DOxEzdpe.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-CB3ye-CT.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 { i as Ce, j as Ve, s as Fe } from "./index-
|
|
9
|
-
import { u as Ye } from "./employee-
|
|
10
|
-
import { u as Le } from "./timesheet-
|
|
7
|
+
import { u as ke } from "./useLoading-BIIvuJcM.js";
|
|
8
|
+
import { i as Ce, j as Ve, s as Fe } from "./index-Beu6IuhT.js";
|
|
9
|
+
import { u as Ye } from "./employee-G0pQg8_6.js";
|
|
10
|
+
import { u as Le } from "./timesheet-DZF9D3QQ.js";
|
|
11
11
|
function Me(x, a) {
|
|
12
12
|
return ["years", "months"].find((S) => {
|
|
13
13
|
const k = x.startOf(S), f = x.endOf(S);
|
|
@@ -2418,73 +2418,73 @@ const gA = /* @__PURE__ */ new Set([
|
|
|
2418
2418
|
closeup: {
|
|
2419
2419
|
label: "Closeup",
|
|
2420
2420
|
subject: i.report_reports_closeup,
|
|
2421
|
-
actions: [t.manage, t.create],
|
|
2421
|
+
actions: [t.manage, t.read, t.create],
|
|
2422
2422
|
category: b.reports
|
|
2423
2423
|
},
|
|
2424
2424
|
dailySales: {
|
|
2425
2425
|
label: "Daily Sales",
|
|
2426
2426
|
subject: i.report_reports_dailySales,
|
|
2427
|
-
actions: [t.manage, t.create],
|
|
2427
|
+
actions: [t.manage, t.read, t.create],
|
|
2428
2428
|
category: b.reports
|
|
2429
2429
|
},
|
|
2430
2430
|
hourlySales: {
|
|
2431
2431
|
label: "Hourly Sales",
|
|
2432
2432
|
subject: i.report_reports_hourlySales,
|
|
2433
|
-
actions: [t.manage, t.create],
|
|
2433
|
+
actions: [t.manage, t.read, t.create],
|
|
2434
2434
|
category: b.reports
|
|
2435
2435
|
},
|
|
2436
2436
|
drawer: {
|
|
2437
2437
|
label: "Drawer",
|
|
2438
2438
|
subject: i.report_reports_drawer,
|
|
2439
|
-
actions: [t.manage, t.create],
|
|
2439
|
+
actions: [t.manage, t.read, t.create],
|
|
2440
2440
|
category: b.reports
|
|
2441
2441
|
},
|
|
2442
2442
|
userProductSales: {
|
|
2443
2443
|
label: "User Product Sales",
|
|
2444
2444
|
subject: i.report_reports_userProductSales,
|
|
2445
|
-
actions: [t.manage, t.create],
|
|
2445
|
+
actions: [t.manage, t.read, t.create],
|
|
2446
2446
|
category: b.reports
|
|
2447
2447
|
},
|
|
2448
2448
|
counter: {
|
|
2449
2449
|
label: "Counter",
|
|
2450
2450
|
subject: i.report_reports_counter,
|
|
2451
|
-
actions: [t.manage, t.create],
|
|
2451
|
+
actions: [t.manage, t.read, t.create],
|
|
2452
2452
|
category: b.reports
|
|
2453
2453
|
},
|
|
2454
2454
|
discount: {
|
|
2455
2455
|
label: "Discount",
|
|
2456
2456
|
subject: i.report_reports_discount,
|
|
2457
|
-
actions: [t.manage, t.create],
|
|
2457
|
+
actions: [t.manage, t.read, t.create],
|
|
2458
2458
|
category: b.reports
|
|
2459
2459
|
},
|
|
2460
2460
|
timesheet: {
|
|
2461
2461
|
label: "Timesheet",
|
|
2462
2462
|
subject: i.report_reports_timesheet,
|
|
2463
|
-
actions: [t.manage, t.create],
|
|
2463
|
+
actions: [t.manage, t.read, t.create],
|
|
2464
2464
|
category: b.reports
|
|
2465
2465
|
},
|
|
2466
2466
|
productSales: {
|
|
2467
2467
|
label: "Product Sales",
|
|
2468
2468
|
subject: i.report_reports_productSales,
|
|
2469
|
-
actions: [t.manage, t.create],
|
|
2469
|
+
actions: [t.manage, t.read, t.create],
|
|
2470
2470
|
category: b.reports
|
|
2471
2471
|
},
|
|
2472
2472
|
addonSales: {
|
|
2473
2473
|
label: "Addon Sales",
|
|
2474
2474
|
subject: i.report_reports_addonSales,
|
|
2475
|
-
actions: [t.manage, t.create],
|
|
2475
|
+
actions: [t.manage, t.read, t.create],
|
|
2476
2476
|
category: b.reports
|
|
2477
2477
|
},
|
|
2478
2478
|
void: {
|
|
2479
2479
|
label: "Void",
|
|
2480
2480
|
subject: i.report_reports_void,
|
|
2481
|
-
actions: [t.manage, t.create],
|
|
2481
|
+
actions: [t.manage, t.read, t.create],
|
|
2482
2482
|
category: b.reports
|
|
2483
2483
|
},
|
|
2484
2484
|
refund: {
|
|
2485
2485
|
label: "Refund",
|
|
2486
2486
|
subject: i.report_reports_refund,
|
|
2487
|
-
actions: [t.manage, t.create],
|
|
2487
|
+
actions: [t.manage, t.read, t.create],
|
|
2488
2488
|
category: b.reports
|
|
2489
2489
|
}
|
|
2490
2490
|
};
|
|
@@ -3217,10 +3217,10 @@ const Ae = (e) => ({
|
|
|
3217
3217
|
}
|
|
3218
3218
|
]
|
|
3219
3219
|
}
|
|
3220
|
-
}), _s = ue(F(() => import("./Main-
|
|
3221
|
-
F(() => import("./AuditLogList-
|
|
3222
|
-
), tA = F(() => import("./EmployeeList-
|
|
3223
|
-
() => import("./PermissionSetList-
|
|
3220
|
+
}), _s = ue(F(() => import("./Main-CdsqeB2G.js"))), $s = ue(F(() => import("./Main-B4YdcrGe.js"))), eA = ue(
|
|
3221
|
+
F(() => import("./AuditLogList-COq6WH3T.js"))
|
|
3222
|
+
), tA = F(() => import("./EmployeeList-CtosIPFL.js")), sA = F(() => import("./RoleList-D1NGE2IC.js")), AA = F(() => import("./TimesheetList-B8yCkaxb.js")), rA = F(() => import("./TeamMemberList-auSjZRNz.js")), aA = F(
|
|
3223
|
+
() => import("./PermissionSetList-BUORArci.js")
|
|
3224
3224
|
), BA = [
|
|
3225
3225
|
{
|
|
3226
3226
|
path: "/",
|
package/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as T } from "./dayjs.min-
|
|
1
|
+
import { d as T } from "./dayjs.min-DOxEzdpe.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, t as b, k as S, s as v } from "./index-
|
|
6
|
-
import { u as x } from "./useAppStore-
|
|
5
|
+
import { b as r, g as o, t as b, k as S, s as v } from "./index-Beu6IuhT.js";
|
|
6
|
+
import { u as x } from "./useAppStore-9lbKMy_9.js";
|
|
7
7
|
const n = {
|
|
8
8
|
async readEmployees() {
|
|
9
9
|
return o(await r().get("/pos-users"));
|