@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.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/{ApprovalCodeList-xOyDG5ug.js → ApprovalCodeList-D8ZVkmrF.js} +13 -14
- package/dist/{AuditLogList-Dd6HyFhk.js → AuditLogList-Fby1fcGU.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B1uS6T3r.js} +2 -2
- package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-DY2Y-FtT.js} +16 -17
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +90 -0
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-RK38DjjY.js} +14 -15
- package/dist/{Main-Cg9SOzcz.js → Main-424HHE7m.js} +5 -5
- package/dist/{Main-BSHf8gTE.js → Main-BuJe2QNl.js} +12 -11
- package/dist/{Main-BcixH7R5.js → Main-Pv9x678t.js} +11 -11
- package/dist/{MyPosProfile-CN8Bj3aV.js → MyPosProfile-Rc2ZTeQR.js} +1 -1
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-BT1oUm8M.js} +20 -20
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRrhFF3y.js} +1008 -1008
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CD3d4RX6.js} +1 -1
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DS4eMJ6w.js +547 -0
- package/dist/RoleList-CrLxn4_K.js +274 -0
- package/dist/TeamMemberList-D32ZtSLP.js +2060 -0
- package/dist/{TimesheetList-CECFKt7H.js → TimesheetList-ByUp0yfA.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-9x0jnL2P.js} +3 -3
- package/dist/{app-CdrnR_Pw.js → app-BsAwRWj0.js} +208 -188
- package/dist/app.js +1 -1
- package/dist/{approval-code-Bwvwehz9.js → approval-code-BUuYtJAO.js} +1 -1
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-C9xnIrg1.js} +1 -1
- package/dist/{employee-Dg-J9goA.js → employee-DAwBQ0bc.js} +5 -5
- package/dist/{grant-user-whFOaPZI.js → grant-user-D-PdX5g-.js} +1 -1
- package/dist/{iteration-ZpERYj3o.js → iteration-Dat4Ismm.js} +1 -1
- package/dist/{lodash-7SZBZ8VQ.js → lodash-DjYVoggD.js} +1 -1
- package/dist/{member-grant-C46lvrh2.js → member-grant-CQHFGo-k.js} +2 -2
- package/dist/{restaurant-CKhT6kgj.js → restaurant-dbllb9m8.js} +1 -1
- package/dist/{role-C6hFKOfU.js → role-DN-jiQnS.js} +3 -3
- package/dist/{rule-BlMymDXm.js → rule-Bgcb9R7I.js} +19 -19
- package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +2 -6
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -2
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +0 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-BABlZnfR.js} +1 -1
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-B47q5dVg.js} +1 -1
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-D-nbQAm5.js} +5 -5
- package/package.json +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/RoleList-ALmAwN0U.js +0 -739
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { defineComponent as re, ref as K, computed as g, resolveComponent as b, createBlock as O, openBlock as _, withCtx as $, createElementVNode as s, createElementBlock as S, createCommentVNode as Y, toDisplayString as C, unref as a, Fragment as H, renderList as te, createVNode as c, renderSlot as xe, isRef as ue, withModifiers as de, createTextVNode as be, normalizeClass as ke, h as x } from "vue";
|
|
2
|
-
import { d as Ve } from "./dayjs.min-
|
|
2
|
+
import { d as Ve } from "./dayjs.min-C9xnIrg1.js";
|
|
3
3
|
import { useI18n as ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ie, components as z, useDialog as we, useBreakpoints as Fe, FmButtonVariant as se } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as q } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as $e } from "./app-
|
|
7
|
-
import { _ as pe, u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as ve } from "./useLoading-
|
|
10
|
-
import { u as fe } from "./approval-code-
|
|
11
|
-
import { u as ce } from "./restaurant-
|
|
12
|
-
import { _ as Be } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
6
|
+
import { _ as $e } from "./app-BsAwRWj0.js";
|
|
7
|
+
import { _ as Se, a as pe, u as Ae, H as Pe } from "./FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js";
|
|
8
|
+
import { _ as Be } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
|
|
9
|
+
import { u as ve } from "./useLoading-B47q5dVg.js";
|
|
10
|
+
import { u as fe } from "./approval-code-BUuYtJAO.js";
|
|
11
|
+
import { u as ce } from "./restaurant-dbllb9m8.js";
|
|
13
12
|
function Ie(d) {
|
|
14
13
|
var e;
|
|
15
14
|
const r = (e = d.conditions) == null ? void 0 : e.adjustment;
|
|
@@ -264,7 +263,7 @@ const je = { class: "pr-24" }, De = { class: "fm-typo-en-title-md-600" }, Re = {
|
|
|
264
263
|
]),
|
|
265
264
|
default: $(() => [
|
|
266
265
|
s("div", He, [
|
|
267
|
-
c(
|
|
266
|
+
c(Se, {
|
|
268
267
|
title: a(i)("approvalCode.form.section")
|
|
269
268
|
}, {
|
|
270
269
|
default: $(() => [
|
|
@@ -382,7 +381,7 @@ const je = { class: "pr-24" }, De = { class: "fm-typo-en-title-md-600" }, Re = {
|
|
|
382
381
|
class: "text-xs"
|
|
383
382
|
}, Ct = {
|
|
384
383
|
class: "flex flex-col gap-4"
|
|
385
|
-
}, me = 10, gt = 2,
|
|
384
|
+
}, me = 10, gt = 2, Bt = /* @__PURE__ */ re({
|
|
386
385
|
__name: "ApprovalCodeList",
|
|
387
386
|
setup(d, {
|
|
388
387
|
expose: r
|
|
@@ -397,7 +396,7 @@ const je = { class: "pr-24" }, De = { class: "fm-typo-en-title-md-600" }, Re = {
|
|
|
397
396
|
}))), M = g(() => w.approvalCodes), {
|
|
398
397
|
searchKey: p,
|
|
399
398
|
filter: B
|
|
400
|
-
} =
|
|
399
|
+
} = Ae(), I = g(() => {
|
|
401
400
|
const t = {};
|
|
402
401
|
return i.value.forEach((o) => {
|
|
403
402
|
t[o._id] = o.profile.name;
|
|
@@ -647,7 +646,7 @@ const je = { class: "pr-24" }, De = { class: "fm-typo-en-title-md-600" }, Re = {
|
|
|
647
646
|
"onUpdate:modelValue": o[5] || (o[5] = (l) => ue(p) ? p.value = l : null),
|
|
648
647
|
autofocus: "",
|
|
649
648
|
placeholder: a(e)("approvalCode.search.placeholder")
|
|
650
|
-
}, null, 8, ["modelValue", "placeholder"])]), c(
|
|
649
|
+
}, null, 8, ["modelValue", "placeholder"])]), c(Pe), s("div", rt, [c(q, {
|
|
651
650
|
modelValue: V.value,
|
|
652
651
|
"onUpdate:modelValue": o[6] || (o[6] = (l) => V.value = l),
|
|
653
652
|
multiple: "",
|
|
@@ -715,7 +714,7 @@ const je = { class: "pr-24" }, De = { class: "fm-typo-en-title-md-600" }, Re = {
|
|
|
715
714
|
_: 1
|
|
716
715
|
})])]),
|
|
717
716
|
_: 1
|
|
718
|
-
})) : (_(), O(a(
|
|
717
|
+
})) : (_(), O(a(Be), {
|
|
719
718
|
key: 1,
|
|
720
719
|
title: a(e)("approvalCode.noData.title"),
|
|
721
720
|
subtitle: a(e)("approvalCode.noData.subtitle")
|
|
@@ -724,5 +723,5 @@ const je = { class: "pr-24" }, De = { class: "fm-typo-en-title-md-600" }, Re = {
|
|
|
724
723
|
}
|
|
725
724
|
});
|
|
726
725
|
export {
|
|
727
|
-
|
|
726
|
+
Bt as default
|
|
728
727
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Mt, ref as S, computed as A, onMounted as Ao, onBeforeUnmount as Fo, watch as de, resolveComponent as N, createElementBlock as b, openBlock as v, createBlock as we, createCommentVNode as j, createElementVNode as a, Fragment as q, renderList as ae, withCtx as B, createVNode as m, toDisplayString as l, unref as c, nextTick as Mo, onUnmounted as Oo, createTextVNode as Ve, normalizeClass as Do } from "vue";
|
|
2
|
-
import { d as D } from "./dayjs.min-
|
|
2
|
+
import { d as D } from "./dayjs.min-C9xnIrg1.js";
|
|
3
3
|
import { useI18n as Ot, useCoreStore as jo } from "@feedmepos/mf-common";
|
|
4
|
-
import { g as Ze, b as et, B as St, _ as Co } from "./app-
|
|
4
|
+
import { g as Ze, b as et, B as St, _ as Co } from "./app-BsAwRWj0.js";
|
|
5
5
|
import { components as ue } from "@feedmepos/ui-library";
|
|
6
6
|
import { S as Pe, _ as To } from "./SelectFilter-ATOm0hdn.js";
|
|
7
7
|
import { _ as Vo } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
8
8
|
import { _ as Po } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
-
import { t as Eo, p as kt } from "./rule-
|
|
9
|
+
import { t as Eo, p as kt } from "./rule-Bgcb9R7I.js";
|
|
10
10
|
import { defineStore as $o } from "pinia";
|
|
11
11
|
import { u as No } from "./useDebounce-B8ZPVS5C.js";
|
|
12
12
|
import { n as Uo } from "./string-DZQ1uNjn.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as B, ref as S, onMounted as le, nextTick as ue, onUnmounted as re, resolveComponent as g, createElementBlock as b, openBlock as u, Fragment as C, createElementVNode as U, createVNode as A, renderSlot as T, createCommentVNode as w, toDisplayString as E, normalizeStyle as se, normalizeClass as X, watch as q, defineAsyncComponent as ie, computed as K, renderList as M, createBlock as h, withCtx as j, unref as D, resolveDynamicComponent as de } from "vue";
|
|
2
2
|
import { useI18n as Y, useCoreStore as me } from "@feedmepos/mf-common";
|
|
3
|
-
import { x as L, G as ce, U as W } from "./app-
|
|
4
|
-
import { l as fe } from "./lodash-
|
|
3
|
+
import { x as L, G as ce, U as W } from "./app-BsAwRWj0.js";
|
|
4
|
+
import { l as fe } from "./lodash-DjYVoggD.js";
|
|
5
5
|
const ye = { class: "flex min-w-0 flex-col gap-4" }, be = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
@@ -2,19 +2,18 @@ import { defineComponent as Ve, computed as x, resolveComponent as I, createElem
|
|
|
2
2
|
import { useI18n as $e, useCoreStore as We } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Me, components as Pe, useDialog as Qe, useBreakpoints as Ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { S as fe, _ as Ze } from "./SelectFilter-ATOm0hdn.js";
|
|
5
|
-
import { _ as Xe, a as ea } from "./app-
|
|
6
|
-
import { _ as Ee, u as aa, H as la } from "./
|
|
5
|
+
import { _ as Xe, a as ea } from "./app-BsAwRWj0.js";
|
|
6
|
+
import { _ as Ee, a as Fe, u as aa, H as la } from "./FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js";
|
|
7
7
|
import { u as ta, _ as sa } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
8
|
import { _ as oa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
-
import { c as ra, b as na, a as ia, p as ua, r as da, s as ca, _ as ma, d as pa, e as
|
|
9
|
+
import { c as ra, b as na, a as ia, p as ua, r as da, s as ca, _ as ma, d as pa, e as Ue } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
|
|
10
10
|
import { u as fa } from "./useDebounce-B8ZPVS5C.js";
|
|
11
11
|
import { n as va } from "./string-DZQ1uNjn.js";
|
|
12
|
-
import { u as Ae, E as ya } from "./employee-
|
|
13
|
-
import { u as De } from "./restaurant-
|
|
14
|
-
import { l as ga } from "./lodash-
|
|
15
|
-
import {
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as _e } from "./role-C6hFKOfU.js";
|
|
12
|
+
import { u as Ae, E as ya } from "./employee-DAwBQ0bc.js";
|
|
13
|
+
import { u as De } from "./restaurant-dbllb9m8.js";
|
|
14
|
+
import { l as ga } from "./lodash-DjYVoggD.js";
|
|
15
|
+
import { u as Ne } from "./useLoading-B47q5dVg.js";
|
|
16
|
+
import { u as _e } from "./role-DN-jiQnS.js";
|
|
18
17
|
/* empty css */
|
|
19
18
|
const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, ba = { class: "fm-typo-en-title-sm-600" }, _a = { class: "space-y-16" }, Va = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, ka = { class: "text-sm font-semibold text-fm-color-typo-primary" }, xa = { class: "text-sm font-semibold text-fm-color-typo-primary" }, wa = { class: "flex justify-self-end" }, Ia = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], Ra = /* @__PURE__ */ Ve({
|
|
20
19
|
__name: "OutletRoleAssignment",
|
|
@@ -340,11 +339,11 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
340
339
|
]),
|
|
341
340
|
default: w(() => [
|
|
342
341
|
m("div", Ua, [
|
|
343
|
-
n(
|
|
342
|
+
n(Ee, {
|
|
344
343
|
title: t(u)("hr.employee.form.employeeSetting")
|
|
345
344
|
}, {
|
|
346
345
|
default: w(() => [
|
|
347
|
-
n(
|
|
346
|
+
n(Fe, {
|
|
348
347
|
label: t(u)("hr.employee.form.masterUserConfig")
|
|
349
348
|
}, {
|
|
350
349
|
default: w(() => [
|
|
@@ -374,7 +373,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
374
373
|
rules: [(o) => !!o || t(u)("hr.employee.form.required")]
|
|
375
374
|
}, null, 8, ["modelValue", "label", "rules"])
|
|
376
375
|
]),
|
|
377
|
-
n(
|
|
376
|
+
n(Fe, {
|
|
378
377
|
label: t(u)("hr.employee.form.passcode")
|
|
379
378
|
}, {
|
|
380
379
|
default: w(() => [
|
|
@@ -413,7 +412,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
413
412
|
]),
|
|
414
413
|
_: 1
|
|
415
414
|
}, 8, ["title"]),
|
|
416
|
-
n(
|
|
415
|
+
n(Ee, null, {
|
|
417
416
|
default: w(() => [
|
|
418
417
|
n($, {
|
|
419
418
|
modelValue: s.value.restaurants,
|
|
@@ -588,7 +587,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
588
587
|
header: () => l("hr.employee.columns.restaurants"),
|
|
589
588
|
enableSorting: !1,
|
|
590
589
|
cell(e) {
|
|
591
|
-
return E.value || F.value ? pe(
|
|
590
|
+
return E.value || F.value ? pe(Ue) : e.row.original.restaurants.map((a, i) => {
|
|
592
591
|
const g = ie(a);
|
|
593
592
|
return pe("div", {
|
|
594
593
|
key: a.restaurantId || i
|
|
@@ -602,7 +601,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
602
601
|
header: () => l("hr.employee.columns.assignedRole"),
|
|
603
602
|
enableSorting: !1,
|
|
604
603
|
cell(e) {
|
|
605
|
-
return E.value || F.value ? pe(
|
|
604
|
+
return E.value || F.value ? pe(Ue, {
|
|
606
605
|
width: "120px"
|
|
607
606
|
}) : e.row.original.restaurants.map((a, i) => {
|
|
608
607
|
const g = A(a);
|
|
@@ -902,7 +901,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
|
|
|
902
901
|
})) : H("", !0)])], 64);
|
|
903
902
|
};
|
|
904
903
|
}
|
|
905
|
-
}),
|
|
904
|
+
}), ml = /* @__PURE__ */ Ze(Ja, [["__scopeId", "data-v-5aed0d1c"]]);
|
|
906
905
|
export {
|
|
907
|
-
|
|
906
|
+
ml as default
|
|
908
907
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { createElementBlock as s, openBlock as o, createElementVNode as n, ref as y, computed as _, defineComponent as d, renderSlot as r, createCommentVNode as i, toDisplayString as a, normalizeClass as m, createVNode as h, withCtx as b } from "vue";
|
|
2
|
+
import { _ as x } from "./SelectFilter-ATOm0hdn.js";
|
|
3
|
+
const $ = {};
|
|
4
|
+
function k(e, t) {
|
|
5
|
+
return o(), s("div", null, [...t[0] || (t[0] = [
|
|
6
|
+
n("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
7
|
+
])]);
|
|
8
|
+
}
|
|
9
|
+
const E = /* @__PURE__ */ x($, [["render", k]]), H = (e) => {
|
|
10
|
+
const t = y("");
|
|
11
|
+
function l(c) {
|
|
12
|
+
return `${c}`.trim().toLowerCase();
|
|
13
|
+
}
|
|
14
|
+
const u = _(() => l(t.value));
|
|
15
|
+
function f(c) {
|
|
16
|
+
return u.value ? c.some((p) => l(p).includes(u.value)) : !0;
|
|
17
|
+
}
|
|
18
|
+
return { searchKey: t, filter: f };
|
|
19
|
+
}, v = { class: "space-y-8" }, w = { class: "flex items-center justify-between" }, C = { class: "space-y-8" }, S = { class: "fm-typo-en-body-lg-600" }, g = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
22
|
+
}, K = /* @__PURE__ */ d({
|
|
23
|
+
__name: "FormItem",
|
|
24
|
+
props: {
|
|
25
|
+
label: {},
|
|
26
|
+
description: {}
|
|
27
|
+
},
|
|
28
|
+
setup(e) {
|
|
29
|
+
return (t, l) => (o(), s("div", v, [
|
|
30
|
+
n("div", w, [
|
|
31
|
+
n("div", C, [
|
|
32
|
+
n("p", S, a(e.label), 1),
|
|
33
|
+
e.description ? (o(), s("p", g, a(e.description), 1)) : i("", !0)
|
|
34
|
+
]),
|
|
35
|
+
r(t.$slots, "append")
|
|
36
|
+
]),
|
|
37
|
+
r(t.$slots, "default")
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
}), B = /* @__PURE__ */ d({
|
|
41
|
+
__name: "FormColumn",
|
|
42
|
+
props: {
|
|
43
|
+
shrinkable: { type: Boolean }
|
|
44
|
+
},
|
|
45
|
+
setup(e) {
|
|
46
|
+
return (t, l) => (o(), s("div", {
|
|
47
|
+
class: m(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
48
|
+
}, [
|
|
49
|
+
r(t.$slots, "default")
|
|
50
|
+
], 2));
|
|
51
|
+
}
|
|
52
|
+
}), V = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "flex flex-row justify-between items-center"
|
|
55
|
+
}, F = { class: "space-y-4" }, N = { class: "fm-typo-en-title-sm-600" }, T = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
58
|
+
}, D = /* @__PURE__ */ d({
|
|
59
|
+
__name: "FormSection",
|
|
60
|
+
props: {
|
|
61
|
+
title: {},
|
|
62
|
+
subTitle: {},
|
|
63
|
+
shrinkable: { type: Boolean }
|
|
64
|
+
},
|
|
65
|
+
setup(e) {
|
|
66
|
+
return (t, l) => (o(), s("div", {
|
|
67
|
+
class: m(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
68
|
+
}, [
|
|
69
|
+
e.title ? (o(), s("div", V, [
|
|
70
|
+
n("div", F, [
|
|
71
|
+
n("p", N, a(e.title), 1),
|
|
72
|
+
e.subTitle ? (o(), s("p", T, a(e.subTitle), 1)) : i("", !0)
|
|
73
|
+
]),
|
|
74
|
+
r(t.$slots, "append-title")
|
|
75
|
+
])) : i("", !0),
|
|
76
|
+
h(B, { shrinkable: e.shrinkable }, {
|
|
77
|
+
default: b(() => [
|
|
78
|
+
r(t.$slots, "default")
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["shrinkable"])
|
|
82
|
+
], 2));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
E as H,
|
|
87
|
+
D as _,
|
|
88
|
+
K as a,
|
|
89
|
+
H as u
|
|
90
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-C9xnIrg1.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as A } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as he } from "./app-
|
|
7
|
-
import { _ as Q, u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as te } from "./useLoading-
|
|
10
|
-
import { u as ae } from "./grant-user-
|
|
11
|
-
import { u as se } from "./restaurant-
|
|
12
|
-
import { u as re } from "./role-
|
|
13
|
-
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
6
|
+
import { _ as he } from "./app-BsAwRWj0.js";
|
|
7
|
+
import { _ as Ue, a as Q, u as xe, H as be } from "./FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js";
|
|
8
|
+
import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { u as te } from "./useLoading-B47q5dVg.js";
|
|
10
|
+
import { u as ae } from "./grant-user-D-PdX5g-.js";
|
|
11
|
+
import { u as se } from "./restaurant-dbllb9m8.js";
|
|
12
|
+
import { u as re } from "./role-DN-jiQnS.js";
|
|
14
13
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
15
14
|
__name: "GrantUserForm",
|
|
16
15
|
setup(le, { expose: M }) {
|
|
@@ -88,7 +87,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
88
87
|
]),
|
|
89
88
|
default: g(() => [
|
|
90
89
|
o("div", Fe, [
|
|
91
|
-
l(
|
|
90
|
+
l(Ue, {
|
|
92
91
|
title: s(d)("grantUser.form.section")
|
|
93
92
|
}, {
|
|
94
93
|
default: g(() => [
|
|
@@ -172,7 +171,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
172
171
|
}, Ee = {
|
|
173
172
|
key: 0,
|
|
174
173
|
class: "flex flex-col gap-4"
|
|
175
|
-
},
|
|
174
|
+
}, st = /* @__PURE__ */ X({
|
|
176
175
|
__name: "GrantUserList",
|
|
177
176
|
setup(le, {
|
|
178
177
|
expose: M
|
|
@@ -186,7 +185,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
186
185
|
} = re(), h = f(() => x.grantUsers), {
|
|
187
186
|
searchKey: n,
|
|
188
187
|
filter: B
|
|
189
|
-
} =
|
|
188
|
+
} = xe(), U = f(() => {
|
|
190
189
|
var e;
|
|
191
190
|
return (e = h.value) == null ? void 0 : e.filter((t) => {
|
|
192
191
|
const m = !y.value || y.value.includes(t.restaurantId), G = !k.value || k.value.includes(t.status), L = b.value[t.restaurantId] || "", j = V.value[t.roleId] || "";
|
|
@@ -395,7 +394,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
395
394
|
"onUpdate:modelValue": t[3] || (t[3] = (r) => H(n) ? n.value = r : null),
|
|
396
395
|
autofocus: "",
|
|
397
396
|
placeholder: s(a)("grantUser.search.placeholder")
|
|
398
|
-
}, null, 8, ["modelValue", "placeholder"])]), l(
|
|
397
|
+
}, null, 8, ["modelValue", "placeholder"])]), l(be), o("div", Re, [l(A, {
|
|
399
398
|
modelValue: y.value,
|
|
400
399
|
"onUpdate:modelValue": t[4] || (t[4] = (r) => y.value = r),
|
|
401
400
|
multiple: "",
|
|
@@ -413,7 +412,7 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
413
412
|
"selected-prefix": s(a)("grantUser.filter.selected_status_prefix"),
|
|
414
413
|
placeholder: s(a)("grantUser.filter.status_placeholder")
|
|
415
414
|
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), l(he, null, {
|
|
416
|
-
default: g(() => [o("div", ze, [l(
|
|
415
|
+
default: g(() => [o("div", ze, [l(Ve, {
|
|
417
416
|
"is-loading": s(x).isLoading,
|
|
418
417
|
"is-empty": U.value.length === 0,
|
|
419
418
|
title: s(a)("grantUser.noData.title"),
|
|
@@ -460,5 +459,5 @@ const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, w
|
|
|
460
459
|
}
|
|
461
460
|
});
|
|
462
461
|
export {
|
|
463
|
-
|
|
462
|
+
st as default
|
|
464
463
|
};
|
|
@@ -4,11 +4,11 @@ import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as j } from "./restaurant-
|
|
8
|
-
import { u as H } from "./role-
|
|
9
|
-
import { u as J } from "./grant-user-
|
|
10
|
-
import { u as K } from "./approval-code-
|
|
11
|
-
import { R as n } from "./app-
|
|
7
|
+
import { u as j } from "./restaurant-dbllb9m8.js";
|
|
8
|
+
import { u as H } from "./role-DN-jiQnS.js";
|
|
9
|
+
import { u as J } from "./grant-user-D-PdX5g-.js";
|
|
10
|
+
import { u as K } from "./approval-code-BUuYtJAO.js";
|
|
11
|
+
import { R as n } from "./app-BsAwRWj0.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -3,18 +3,19 @@ import { useRouter as x, useRoute as F } from "vue-router";
|
|
|
3
3
|
import { useI18n as I, useCoreStore as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as $ } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
5
|
import { _ as q } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
7
|
-
import { u as P } from "./restaurant-
|
|
6
|
+
import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CD3d4RX6.js";
|
|
7
|
+
import { u as P } from "./restaurant-dbllb9m8.js";
|
|
8
8
|
import "@feedmepos/ui-library";
|
|
9
|
-
import "./rule-
|
|
10
|
-
import "./lodash-
|
|
11
|
-
import "./iteration-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import { R as B } from "./app-
|
|
14
|
-
import "./member-grant-
|
|
15
|
-
import "./role-
|
|
9
|
+
import "./rule-Bgcb9R7I.js";
|
|
10
|
+
import "./lodash-DjYVoggD.js";
|
|
11
|
+
import "./iteration-Dat4Ismm.js";
|
|
12
|
+
import "./useAppStore-BABlZnfR.js";
|
|
13
|
+
import { R as B } from "./app-BsAwRWj0.js";
|
|
14
|
+
import "./member-grant-CQHFGo-k.js";
|
|
15
|
+
import "./role-DN-jiQnS.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
|
|
17
|
+
import "./useReportPermissions-D-nbQAm5.js";
|
|
18
|
+
const U = { class: "space-y-24" }, se = /* @__PURE__ */ M({
|
|
18
19
|
__name: "Main",
|
|
19
20
|
setup(j) {
|
|
20
21
|
const { t: o } = I(), b = x(), S = F(), T = O(), { readRestaurants: V } = P(), { loadProviders: L } = D(), f = R(), _ = R(), s = {
|
|
@@ -96,5 +97,5 @@ const U = { class: "space-y-24" }, ue = /* @__PURE__ */ M({
|
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
se as default
|
|
100
101
|
};
|
|
@@ -4,19 +4,19 @@ import { useCoreStore as uf, useI18n as vf } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as gf } from "./restaurant-
|
|
8
|
-
import { u as _f } from "./role-
|
|
7
|
+
import { u as gf } from "./restaurant-dbllb9m8.js";
|
|
8
|
+
import { u as _f } from "./role-DN-jiQnS.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import "./iteration-
|
|
10
|
+
import "./employee-DAwBQ0bc.js";
|
|
11
|
+
import "./lodash-DjYVoggD.js";
|
|
12
|
+
import "./useAppStore-BABlZnfR.js";
|
|
13
|
+
import "./iteration-Dat4Ismm.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { R as pt } from "./app-
|
|
16
|
-
import "./rule-
|
|
17
|
-
import "./useReportPermissions-
|
|
18
|
-
import "./dayjs.min-
|
|
19
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
15
|
+
import { R as pt } from "./app-BsAwRWj0.js";
|
|
16
|
+
import "./rule-Bgcb9R7I.js";
|
|
17
|
+
import "./useReportPermissions-D-nbQAm5.js";
|
|
18
|
+
import "./dayjs.min-C9xnIrg1.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-9x0jnL2P.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as V, ref as r, computed as k, resolveComponent as P, c
|
|
|
2
2
|
import { useI18n as L, useCoreStore as Z, FeedMeAuth as ee } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as se, components as ae, SnackbarPosition as le } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
5
|
-
import { t as re, f as ie, a as ce, r as de, i as U, c as ue, d as me, p as pe, o as fe } from "./app-
|
|
5
|
+
import { t as re, f as ie, a as ce, r as de, i as U, c as ue, d as me, p as pe, o as fe } from "./app-BsAwRWj0.js";
|
|
6
6
|
import { _ as ye } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
|
|
7
7
|
const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = { class: "fm-typo-en-title-sm-600 text-center" }, ve = { class: "py-[4px]" }, Pe = {
|
|
8
8
|
class: "flex items-center justify-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 px-16 py-[20px]",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as v, computed as
|
|
2
|
-
import { useI18n as se, useCoreStore as
|
|
1
|
+
import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
|
+
import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
4
|
+
import { k as Q, _ as be, s as _e } from "./app-BsAwRWj0.js";
|
|
5
5
|
import { _ as ge } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
6
|
import { u as Pe, _ as ye } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
-
import { u as ie, c as M,
|
|
8
|
-
import { l as T } from "./lodash-
|
|
9
|
-
import { c as Re } from "./iteration-
|
|
10
|
-
import { u as Ee } from "./useLoading-
|
|
11
|
-
import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as ie, c as M, a as ae, p as Y, R as we, g as xe, m as A, l as Fe, n as ke, o as Ce, q as Ie, v as Ve } from "./rule-Bgcb9R7I.js";
|
|
8
|
+
import { l as T } from "./lodash-DjYVoggD.js";
|
|
9
|
+
import { c as Re } from "./iteration-Dat4Ismm.js";
|
|
10
|
+
import { u as Ee } from "./useLoading-B47q5dVg.js";
|
|
11
|
+
import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRrhFF3y.js";
|
|
12
12
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
13
13
|
__name: "PermissionSetForm",
|
|
14
14
|
props: {
|
|
@@ -18,18 +18,18 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(K, { expose: D }) {
|
|
21
|
-
const o = K, { t: i } = se(), f = v(!1), $ =
|
|
21
|
+
const o = K, { t: i } = se(), f = v(!1), $ = h(() => {
|
|
22
22
|
var e;
|
|
23
23
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
|
|
24
|
-
}), I = v(), q = oe(), w = te(), { breakpoints: V } = ne(), R = Ee(q), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], N =
|
|
24
|
+
}), I = v(), q = oe(), w = te(), { breakpoints: V } = ne(), R = Ee(q), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], N = h(() => {
|
|
25
25
|
var e;
|
|
26
26
|
return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
|
|
27
|
-
}), O =
|
|
27
|
+
}), O = h(
|
|
28
28
|
() => l.permissionSets.value.filter((e) => {
|
|
29
29
|
var s;
|
|
30
30
|
return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
|
|
31
31
|
}).map((e) => ({ label: e.name, value: e.id }))
|
|
32
|
-
), E =
|
|
32
|
+
), E = h(
|
|
33
33
|
() => M(a.value, l.permissionSets.value)
|
|
34
34
|
), {
|
|
35
35
|
fetchCustomReportPermissions: n,
|
|
@@ -37,11 +37,11 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
37
37
|
isLoaded: c
|
|
38
38
|
} = ae(), _ = new Set(
|
|
39
39
|
Y.filter((e) => e.subject.startsWith(we)).map((e) => e.subject)
|
|
40
|
-
), g =
|
|
40
|
+
), g = h(() => {
|
|
41
41
|
const e = new Set(_);
|
|
42
42
|
for (const s of t.value) e.add(s.subject);
|
|
43
43
|
return e;
|
|
44
|
-
}), z =
|
|
44
|
+
}), z = h(() => {
|
|
45
45
|
const e = /* @__PURE__ */ new Set();
|
|
46
46
|
for (const s of Y)
|
|
47
47
|
s.category === Q.reports && e.add(s.subject);
|
|
@@ -112,7 +112,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
112
112
|
}
|
|
113
113
|
async function me() {
|
|
114
114
|
var u, x;
|
|
115
|
-
const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x =
|
|
115
|
+
const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = he().currentBusiness.value) == null ? void 0 : x.id;
|
|
116
116
|
!(e != null && e.length) && s && R.minor(async () => {
|
|
117
117
|
var L;
|
|
118
118
|
const F = re();
|
|
@@ -139,7 +139,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
139
139
|
return D({
|
|
140
140
|
trigger: U
|
|
141
141
|
}), (e, s) => {
|
|
142
|
-
const u =
|
|
142
|
+
const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), L = b("FmForm"), k = b("FmButton"), ce = b("FmSideSheet");
|
|
143
143
|
return ee(), de(ce, {
|
|
144
144
|
modelValue: f.value,
|
|
145
145
|
"onUpdate:modelValue": s[2] || (s[2] = (j) => f.value = j),
|
|
@@ -217,13 +217,13 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
217
217
|
}), De = { class: "space-y-8" }, qe = { class: "flex justify-end xs:px-16" }, Ne = { class: "flex flex-col h-full overflow-auto" }, Ye = /* @__PURE__ */ Z({
|
|
218
218
|
__name: "PermissionSetList",
|
|
219
219
|
setup(K, { expose: D }) {
|
|
220
|
-
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: q } = ne(), w = v(""), V =
|
|
220
|
+
const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: q } = ne(), w = v(""), V = h(() => {
|
|
221
221
|
var n;
|
|
222
222
|
return (n = d.value) == null ? void 0 : n.filter((t) => {
|
|
223
223
|
const c = w.value.toLowerCase();
|
|
224
224
|
return t.name.toLowerCase().includes(c);
|
|
225
225
|
});
|
|
226
|
-
}), R = v(), l = ie(), d =
|
|
226
|
+
}), R = v(), l = ie(), d = h(
|
|
227
227
|
() => l.permissionSets.value
|
|
228
228
|
), a = v();
|
|
229
229
|
async function p() {
|
|
@@ -338,7 +338,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
338
338
|
}), D({
|
|
339
339
|
create: O
|
|
340
340
|
}), (n, t) => {
|
|
341
|
-
const c =
|
|
341
|
+
const c = b("FmSearch"), _ = b("FmTable");
|
|
342
342
|
return ee(), ve(Se, null, [
|
|
343
343
|
m(Ae, {
|
|
344
344
|
ref_key: "permissionSetFormRef",
|
|
@@ -355,7 +355,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
|
|
|
355
355
|
placeholder: r(o)("permissionSet.search.placeholder")
|
|
356
356
|
}, null, 8, ["modelValue", "placeholder"])
|
|
357
357
|
]),
|
|
358
|
-
m(
|
|
358
|
+
m(be, null, {
|
|
359
359
|
default: C(() => [
|
|
360
360
|
y("div", Ne, [
|
|
361
361
|
m(ge, {
|