@feedmepos/mf-hrm-portal 2.3.0-dev.2 → 2.3.0-dev.21
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-CJaNPHZC.js → ApprovalCodeList-DuPmMQ8Z.js} +7 -7
- package/dist/{AuditLogList-CHA98ZqW.js → AuditLogList-BeRA_284.js} +18 -19
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7rvthEI.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-StnBAQOk.js} +2 -2
- package/dist/{EmployeeList-CVmMKt71.js → EmployeeList-qmjsbCjj.js} +255 -266
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-oQJgMciC.js} +6 -6
- package/dist/{GrantUserList-MYjgt5-F.js → GrantUserList--WUK7zrV.js} +8 -8
- package/dist/{Main-hlcHtrsc.js → Main-9X2iCXoX.js} +5 -5
- package/dist/{Main-C0cnqQ3B.js → Main-BIAeEQV9.js} +8 -8
- package/dist/{Main-BgB9lD4K.js → Main-tPL_YTwT.js} +11 -11
- package/dist/{PermissionSetList-5f1WIaVa.js → PermissionSetList-ByTyQe0s.js} +19 -18
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bp9WwlnI.js +4167 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-DNR4miXr.js → RoleList-INlydQmP.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-d8KDvgNu.js +530 -0
- package/dist/ScheduleGeneralPage-DbOoP9Ez.js +776 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-UowMybGr.js +2439 -0
- package/dist/SchedulePage-CjOZtRlK.js +19291 -0
- package/dist/{SchedulePositionPage-DyRckyUx.js → SchedulePositionPage-CnDqkvL9.js} +78 -80
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-BWw4B9tM.js} +1 -1
- package/dist/{TeamMemberList-mw5OveZG.js → TeamMemberList-BgYtoXht.js} +27 -27
- package/dist/{TimesheetList-BzXarZbM.js → TimesheetList-Dg0QYsWO.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-eTd4J1CB.js} +3 -3
- package/dist/{app-DSsdRLHg.js → app-CDo04LrB.js} +2891 -2474
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-B6xBXQtU.js → dayjs.min-KFBmxZF3.js} +1 -1
- package/dist/{employee-hMhzuqk1.js → employee-BRaYoaOY.js} +4 -4
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-B34AvpNC.js → iteration-p-TjO05t.js} +1 -1
- package/dist/{lodash-1Vyuy7Mu.js → lodash-D72lpJgs.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{restaurant-D7PEQjPY.js → restaurant-D2mfKHaH.js} +48 -48
- package/dist/{role-DKOrgO6f.js → role-a35Vc8gC.js} +2 -2
- package/dist/{rule-CBzQ3GeV.js → rule-BRRw0K7p.js} +3 -3
- package/dist/src/api/schedule/index.d.ts +9 -1
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/types/schedule.d.ts +3 -4
- package/dist/src/views/audit-log/locales/index.d.ts +252 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -8
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -4
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -1
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +1 -5
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingAssignPositionModal.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -10
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +29 -11
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -9
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +11 -3
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +86 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +3 -5
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +13 -3
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +20 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +5 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +5 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +47 -3
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +408 -29
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -4
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +70 -4
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -2
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +41 -3
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +47 -6
- package/dist/src/views/scheduling/country-rules/index.d.ts +9 -4
- package/dist/src/views/scheduling/data.d.ts +22 -1
- package/dist/src/views/scheduling/locales/index.d.ts +28 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +272 -208
- package/dist/src/views/scheduling/schedule-store.d.ts +36 -11
- package/dist/src/views/scheduling/types.d.ts +30 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-JFoghhRz.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-B2ev0j4w.js → useReportPermissions-Ca-9DEOI.js} +3 -3
- package/package.json +1 -1
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js +0 -4167
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.js +0 -470
- package/dist/ScheduleGeneralPage-Cd5AlY4z.js +0 -666
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js +0 -2188
- package/dist/SchedulePage-C8m0-m3l.js +0 -18257
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -124
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { defineComponent as M, ref as A, onMounted as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { R as
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
|
|
8
|
-
const q = { class: "main" }, H = {
|
|
1
|
+
import { defineComponent as M, ref as A, onMounted as F, computed as S, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as x, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as z, withDirectives as E, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
|
|
2
|
+
import { useRouter as B } from "vue-router";
|
|
3
|
+
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { R as L, a as O } from "./app-CDo04LrB.js";
|
|
5
|
+
import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-UowMybGr.js";
|
|
6
|
+
import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-d8KDvgNu.js";
|
|
7
|
+
const H = { class: "main" }, G = {
|
|
9
8
|
id: "viewPositions",
|
|
10
9
|
class: "view"
|
|
11
|
-
},
|
|
10
|
+
}, J = { class: "sp-head" }, Q = { class: "outlet-bar" }, X = { class: "sp-body" }, Y = { class: "sp-content" }, Z = { class: "sp-panel" }, ee = { class: "cfg-head" }, se = { class: "cfg-count" }, te = { id: "skList" }, oe = {
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "cfg-empty"
|
|
14
|
-
},
|
|
13
|
+
}, ae = {
|
|
15
14
|
key: 1,
|
|
16
15
|
class: "cfg-list"
|
|
17
16
|
}, ne = {
|
|
18
17
|
key: 0,
|
|
19
18
|
class: "cfg-row"
|
|
20
|
-
}, ie = { class: "cfg-main" },
|
|
19
|
+
}, ie = { class: "cfg-main" }, le = ["onClick"], de = { class: "cfg-main" }, re = { class: "cfg-name" }, ue = {
|
|
21
20
|
key: 0,
|
|
22
21
|
class: "cfg-confirm"
|
|
23
|
-
},
|
|
22
|
+
}, ce = { class: "q" }, ve = /* @__PURE__ */ M({
|
|
24
23
|
__name: "SchedulePositionPage",
|
|
25
|
-
setup(
|
|
24
|
+
setup(fe) {
|
|
26
25
|
const y = A(null);
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
await v.resolve() && await
|
|
26
|
+
R(y);
|
|
27
|
+
const w = B(), _ = I(), b = (m, e = "info") => _.open({ message: m, type: e }), t = W({ notify: b }), v = K(), f = j(void 0, { notify: b });
|
|
28
|
+
F(async () => {
|
|
29
|
+
await v.resolve() && await T(/* @__PURE__ */ new Date());
|
|
31
30
|
});
|
|
32
|
-
const $ =
|
|
31
|
+
const $ = S(
|
|
33
32
|
() => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
34
33
|
);
|
|
35
|
-
function D(
|
|
36
|
-
v.switchTo(
|
|
34
|
+
function D(m) {
|
|
35
|
+
v.switchTo(m, /* @__PURE__ */ new Date());
|
|
37
36
|
}
|
|
38
37
|
function N() {
|
|
39
|
-
|
|
38
|
+
w.push({ name: L.SCHEDULE });
|
|
40
39
|
}
|
|
41
|
-
return (
|
|
40
|
+
return (m, e) => (l(), i("div", {
|
|
42
41
|
ref_key: "rootEl",
|
|
43
42
|
ref: y,
|
|
44
43
|
class: "sch"
|
|
45
44
|
}, [
|
|
46
|
-
o("div",
|
|
47
|
-
o("div",
|
|
48
|
-
o("div",
|
|
49
|
-
|
|
45
|
+
o("div", H, [
|
|
46
|
+
o("div", G, [
|
|
47
|
+
o("div", J, [
|
|
48
|
+
n(u, {
|
|
50
49
|
hierarchy: "ghost",
|
|
51
50
|
size: "sm",
|
|
52
51
|
class: "sp-back",
|
|
@@ -73,11 +72,10 @@ const q = { class: "main" }, H = {
|
|
|
73
72
|
])]),
|
|
74
73
|
_: 1
|
|
75
74
|
}),
|
|
76
|
-
e[9] || (e[9] =
|
|
77
|
-
|
|
78
|
-
o("div", J, [
|
|
75
|
+
e[9] || (e[9] = x('<div class="sp-title-row" data-v-77f876af><div class="sp-title" data-v-77f876af>Position</div><span class="page-tags" data-v-77f876af><span class="sch-badge page-tag-premium" data-color="brand" data-v-77f876af>Premium</span><span class="sch-badge" data-color="info" data-v-77f876af>Free until 31 Dec 2026</span></span></div><div class="sp-sub" data-v-77f876af>What your employees can do — the same catalogue across every outlet.</div>', 2)),
|
|
76
|
+
o("div", Q, [
|
|
79
77
|
e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
80
|
-
|
|
78
|
+
n(U, {
|
|
81
79
|
class: "outlet-sel",
|
|
82
80
|
"aria-label": "Outlet being configured",
|
|
83
81
|
searchable: "",
|
|
@@ -88,21 +86,21 @@ const q = { class: "main" }, H = {
|
|
|
88
86
|
}, null, 8, ["model-value", "options"])
|
|
89
87
|
])
|
|
90
88
|
]),
|
|
91
|
-
o("div",
|
|
92
|
-
o("div",
|
|
93
|
-
o("div",
|
|
94
|
-
o("div",
|
|
95
|
-
e[
|
|
96
|
-
o("span",
|
|
97
|
-
e[
|
|
98
|
-
|
|
89
|
+
o("div", X, [
|
|
90
|
+
o("div", Y, [
|
|
91
|
+
o("div", Z, [
|
|
92
|
+
o("div", ee, [
|
|
93
|
+
e[11] || (e[11] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
|
|
94
|
+
o("span", se, c(s(t).count.value), 1),
|
|
95
|
+
e[12] || (e[12] = o("span", { class: "cfg-spacer" }, null, -1)),
|
|
96
|
+
n(u, {
|
|
99
97
|
hierarchy: "primary",
|
|
100
98
|
size: "sm",
|
|
101
99
|
class: "am-btn am-btn-primary",
|
|
102
100
|
type: "button",
|
|
103
|
-
onClick: e[0] || (e[0] = (
|
|
101
|
+
onClick: e[0] || (e[0] = (a) => s(f).openNew())
|
|
104
102
|
}, {
|
|
105
|
-
default: d(() => [...e[
|
|
103
|
+
default: d(() => [...e[10] || (e[10] = [
|
|
106
104
|
r(" + Add position ", -1)
|
|
107
105
|
])]),
|
|
108
106
|
_: 1
|
|
@@ -111,79 +109,79 @@ const q = { class: "main" }, H = {
|
|
|
111
109
|
o("div", {
|
|
112
110
|
class: h(["ce-err", { show: s(t).error.value }])
|
|
113
111
|
}, c(s(t).error.value), 3),
|
|
114
|
-
o("div",
|
|
115
|
-
!s(t).positions.value.length && !s(t).isAdding.value ? (l(),
|
|
112
|
+
o("div", te, [
|
|
113
|
+
!s(t).positions.value.length && !s(t).isAdding.value ? (l(), i("div", oe, [...e[13] || (e[13] = [
|
|
116
114
|
r(" No positions yet.", -1),
|
|
117
115
|
o("br", null, null, -1),
|
|
118
116
|
r(" Add one and it becomes assignable on every employee. ", -1)
|
|
119
|
-
])])) : (l(),
|
|
120
|
-
s(t).isAdding.value ? (l(),
|
|
117
|
+
])])) : (l(), i("div", ae, [
|
|
118
|
+
s(t).isAdding.value ? (l(), i("div", ne, [
|
|
121
119
|
o("div", ie, [
|
|
122
|
-
|
|
123
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
120
|
+
E(o("input", {
|
|
121
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => s(t).newName.value = a),
|
|
124
122
|
type: "text",
|
|
125
123
|
class: "cfg-name-input",
|
|
126
124
|
placeholder: "New position name",
|
|
127
125
|
autofocus: "",
|
|
128
126
|
onKeyup: [
|
|
129
|
-
e[2] || (e[2] =
|
|
130
|
-
e[3] || (e[3] =
|
|
127
|
+
e[2] || (e[2] = k((a) => s(t).confirmAdd(), ["enter"])),
|
|
128
|
+
e[3] || (e[3] = k((a) => s(t).cancelAdd(), ["esc"]))
|
|
131
129
|
]
|
|
132
130
|
}, null, 544), [
|
|
133
131
|
[P, s(t).newName.value]
|
|
134
132
|
])
|
|
135
133
|
]),
|
|
136
|
-
|
|
134
|
+
n(u, {
|
|
137
135
|
hierarchy: "secondary",
|
|
138
136
|
size: "sm",
|
|
139
137
|
class: "cfg-btn",
|
|
140
138
|
type: "button",
|
|
141
139
|
disabled: !s(t).newName.value.trim() || s(t).saving.value,
|
|
142
|
-
onClick: e[4] || (e[4] = (
|
|
140
|
+
onClick: e[4] || (e[4] = (a) => s(t).confirmAdd())
|
|
143
141
|
}, {
|
|
144
142
|
default: d(() => [
|
|
145
143
|
r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
|
|
146
144
|
]),
|
|
147
145
|
_: 1
|
|
148
146
|
}, 8, ["disabled"]),
|
|
149
|
-
|
|
147
|
+
n(u, {
|
|
150
148
|
hierarchy: "secondary",
|
|
151
149
|
size: "sm",
|
|
152
150
|
class: "cfg-btn",
|
|
153
151
|
type: "button",
|
|
154
152
|
disabled: s(t).saving.value,
|
|
155
|
-
onClick: e[5] || (e[5] = (
|
|
153
|
+
onClick: e[5] || (e[5] = (a) => s(t).cancelAdd())
|
|
156
154
|
}, {
|
|
157
|
-
default: d(() => [...e[
|
|
155
|
+
default: d(() => [...e[14] || (e[14] = [
|
|
158
156
|
r(" Cancel ", -1)
|
|
159
157
|
])]),
|
|
160
158
|
_: 1
|
|
161
159
|
}, 8, ["disabled"])
|
|
162
|
-
])) :
|
|
163
|
-
(l(!0),
|
|
164
|
-
key:
|
|
165
|
-
class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !==
|
|
166
|
-
onClick: (p) => s(t).pendingDeleteId.value !==
|
|
160
|
+
])) : z("", !0),
|
|
161
|
+
(l(!0), i(C, null, V(s(t).positions.value, (a) => (l(), i("div", {
|
|
162
|
+
key: a.id,
|
|
163
|
+
class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== a.id }]),
|
|
164
|
+
onClick: (p) => s(t).pendingDeleteId.value !== a.id && s(f).openEdit(a.id, a.name)
|
|
167
165
|
}, [
|
|
168
|
-
o("div",
|
|
169
|
-
o("div",
|
|
166
|
+
o("div", de, [
|
|
167
|
+
o("div", re, c(a.name), 1)
|
|
170
168
|
]),
|
|
171
|
-
s(t).pendingDeleteId.value ===
|
|
172
|
-
o("span",
|
|
173
|
-
|
|
169
|
+
s(t).pendingDeleteId.value === a.id ? (l(), i("div", ue, [
|
|
170
|
+
o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}?` : "Delete?"), 1),
|
|
171
|
+
n(u, {
|
|
174
172
|
hierarchy: "danger",
|
|
175
173
|
size: "sm",
|
|
176
174
|
class: "cfg-yes",
|
|
177
175
|
type: "button",
|
|
178
176
|
disabled: s(t).saving.value,
|
|
179
|
-
onClick: g((p) => s(t).confirmDelete(
|
|
177
|
+
onClick: g((p) => s(t).confirmDelete(a.id), ["stop"])
|
|
180
178
|
}, {
|
|
181
179
|
default: d(() => [
|
|
182
180
|
r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
|
|
183
181
|
]),
|
|
184
182
|
_: 1
|
|
185
183
|
}, 8, ["disabled", "onClick"]),
|
|
186
|
-
|
|
184
|
+
n(u, {
|
|
187
185
|
hierarchy: "secondary",
|
|
188
186
|
size: "sm",
|
|
189
187
|
class: "cfg-no",
|
|
@@ -191,37 +189,37 @@ const q = { class: "main" }, H = {
|
|
|
191
189
|
disabled: s(t).saving.value,
|
|
192
190
|
onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
|
|
193
191
|
}, {
|
|
194
|
-
default: d(() => [...e[
|
|
192
|
+
default: d(() => [...e[15] || (e[15] = [
|
|
195
193
|
r(" Keep ", -1)
|
|
196
194
|
])]),
|
|
197
195
|
_: 1
|
|
198
196
|
}, 8, ["disabled"])
|
|
199
|
-
])) : (l(),
|
|
197
|
+
])) : (l(), i(C, { key: 1 }, [
|
|
200
198
|
o("span", {
|
|
201
|
-
class: h(["cfg-used", { none: !s(t).usageCountFor(
|
|
202
|
-
}, c(s(t).usageCountFor(
|
|
203
|
-
|
|
199
|
+
class: h(["cfg-used", { none: !s(t).usageCountFor(a.id) }])
|
|
200
|
+
}, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}` : "unused"), 3),
|
|
201
|
+
n(u, {
|
|
204
202
|
hierarchy: "secondary",
|
|
205
203
|
size: "sm",
|
|
206
204
|
class: "cfg-btn",
|
|
207
205
|
type: "button",
|
|
208
|
-
onClick: g((p) => s(
|
|
206
|
+
onClick: g((p) => s(f).openEdit(a.id, a.name), ["stop"])
|
|
209
207
|
}, {
|
|
210
|
-
default: d(() => [...e[
|
|
208
|
+
default: d(() => [...e[16] || (e[16] = [
|
|
211
209
|
r(" Edit ", -1)
|
|
212
210
|
])]),
|
|
213
211
|
_: 1
|
|
214
212
|
}, 8, ["onClick"]),
|
|
215
|
-
|
|
213
|
+
n(u, {
|
|
216
214
|
hierarchy: "ghost",
|
|
217
215
|
size: "sm",
|
|
218
216
|
"icon-only": "",
|
|
219
217
|
class: "cfg-del",
|
|
220
218
|
type: "button",
|
|
221
|
-
"aria-label": `Delete ${
|
|
222
|
-
onClick: g((p) => s(t).askDelete(
|
|
219
|
+
"aria-label": `Delete ${a.name}`,
|
|
220
|
+
onClick: g((p) => s(t).askDelete(a.id), ["stop"])
|
|
223
221
|
}, {
|
|
224
|
-
default: d(() => [...e[
|
|
222
|
+
default: d(() => [...e[17] || (e[17] = [
|
|
225
223
|
o("svg", {
|
|
226
224
|
width: "14",
|
|
227
225
|
height: "14",
|
|
@@ -247,7 +245,7 @@ const q = { class: "main" }, H = {
|
|
|
247
245
|
_: 1
|
|
248
246
|
}, 8, ["aria-label", "onClick"])
|
|
249
247
|
], 64))
|
|
250
|
-
], 10,
|
|
248
|
+
], 10, le))), 128))
|
|
251
249
|
]))
|
|
252
250
|
])
|
|
253
251
|
])
|
|
@@ -255,10 +253,10 @@ const q = { class: "main" }, H = {
|
|
|
255
253
|
])
|
|
256
254
|
])
|
|
257
255
|
]),
|
|
258
|
-
|
|
256
|
+
n(q, { modal: s(f) }, null, 8, ["modal"])
|
|
259
257
|
], 512));
|
|
260
258
|
}
|
|
261
|
-
}),
|
|
259
|
+
}), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-77f876af"]]);
|
|
262
260
|
export {
|
|
263
|
-
|
|
261
|
+
ke as default
|
|
264
262
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
2
|
import "@feedmepos/ui-library";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
4
|
+
import { a as ae } from "./app-CDo04LrB.js";
|
|
5
5
|
function ue(r, u, _ = r) {
|
|
6
6
|
const t = $(!0), C = v(() => {
|
|
7
7
|
if (!t.value && !u.value)
|
|
@@ -2,22 +2,22 @@ import { defineComponent as we, resolveComponent as F, createElementBlock as L,
|
|
|
2
2
|
import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { u as ps } from "./useDebounce-B8ZPVS5C.js";
|
|
5
|
-
import { S as ye } from "./SelectFilter-
|
|
6
|
-
import { v as Te, m as
|
|
7
|
-
import {
|
|
5
|
+
import { S as ye } from "./SelectFilter-BWw4B9tM.js";
|
|
6
|
+
import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-CDo04LrB.js";
|
|
7
|
+
import { _ as gs } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
8
|
import { _ as _s } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { s as Us, _ as Ss, a as xs, b as Fs, c as Ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
|
|
10
|
-
import { u as He } from "./useLoading-
|
|
10
|
+
import { u as He } from "./useLoading-Nygx2zn8.js";
|
|
11
|
+
import { u as Is } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
11
12
|
import { n as es } from "./string-VNuQNweN.js";
|
|
12
|
-
import { l as Pe } from "./lodash-
|
|
13
|
-
import { c as he } from "./iteration-
|
|
14
|
-
import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as
|
|
15
|
-
import { u as as } from "./role-
|
|
16
|
-
import { u as ls, i as
|
|
17
|
-
import "./useAppStore-
|
|
18
|
-
import { g as ze, b as We, u as os } from "./restaurant-
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
import { l as Pe } from "./lodash-D72lpJgs.js";
|
|
14
|
+
import { c as he } from "./iteration-p-TjO05t.js";
|
|
15
|
+
import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-BRRw0K7p.js";
|
|
16
|
+
import { u as as } from "./role-a35Vc8gC.js";
|
|
17
|
+
import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js";
|
|
18
|
+
import "./useAppStore-DZCdxlCd.js";
|
|
19
|
+
import { g as ze, b as We, u as os } from "./restaurant-D2mfKHaH.js";
|
|
20
|
+
import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bp9WwlnI.js";
|
|
21
21
|
var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
|
|
22
22
|
const Ie = "__unassigned__";
|
|
23
23
|
function Je(o) {
|
|
@@ -84,7 +84,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
84
84
|
const v = N, { t: a } = Ve(), m = Le(), J = Ze(), { supportedCountries: k, ready: I } = ls(), R = S(() => {
|
|
85
85
|
var U;
|
|
86
86
|
const g = (U = J.currentCountry.value) == null ? void 0 : U.toUpperCase();
|
|
87
|
-
return g &&
|
|
87
|
+
return g && Ms(g) ? g : void 0;
|
|
88
88
|
}), h = p("phone"), C = p(""), d = p(""), f = p(), j = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, E = S(() => j.test(d.value.trim()));
|
|
89
89
|
async function D() {
|
|
90
90
|
const g = h.value === "phone" ? C.value.replace(/ /g, "") : d.value.trim();
|
|
@@ -205,7 +205,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
205
205
|
]);
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
}), at = /* @__PURE__ */
|
|
208
|
+
}), at = /* @__PURE__ */ vs(tt, [["__scopeId", "data-v-827dfd60"]]), lt = { class: "flex flex-col gap-40" }, ot = { class: "flex items-center" }, rt = { class: "flex-1 flex flex-col" }, nt = { class: "fm-typo-en-title-sm-600" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "flex flex-row gap-16" }, mt = { class: "flex flex-col gap-8" }, dt = { class: "fm-typo-en-body-lg-400" }, ct = { class: "space-y-16" }, je = 4, pt = /* @__PURE__ */ we({
|
|
209
209
|
__name: "TeamMemberMasterUser",
|
|
210
210
|
props: {
|
|
211
211
|
modelValue: {
|
|
@@ -434,7 +434,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
434
434
|
((Z = v.initialValue) == null ? void 0 : Z.permissions) || []
|
|
435
435
|
)
|
|
436
436
|
), { customReportPermissions: j, isLoaded: E } = ts(), D = new Set(
|
|
437
|
-
Ge.filter((s) => s.subject.startsWith(
|
|
437
|
+
Ge.filter((s) => s.subject.startsWith(ws)).map((s) => s.subject)
|
|
438
438
|
), $ = S(() => {
|
|
439
439
|
const s = new Set(D);
|
|
440
440
|
for (const c of j.value) s.add(c.subject);
|
|
@@ -515,12 +515,12 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
function O() {
|
|
518
|
-
const s = E.value ? $.value : D, c =
|
|
519
|
-
return
|
|
518
|
+
const s = E.value ? $.value : D, c = Rs(f.value, s);
|
|
519
|
+
return Cs(c, w.value);
|
|
520
520
|
}
|
|
521
521
|
function Me() {
|
|
522
|
-
const s = $e(C.value), c =
|
|
523
|
-
return
|
|
522
|
+
const s = $e(C.value), c = Vs(O());
|
|
523
|
+
return ks(s, c);
|
|
524
524
|
}
|
|
525
525
|
function ke() {
|
|
526
526
|
var K, z, Q, A, W, Y, H, le, be, ce;
|
|
@@ -531,7 +531,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
531
531
|
customPermissions: s,
|
|
532
532
|
permissions: c.map((oe) => ({
|
|
533
533
|
...oe,
|
|
534
|
-
subject:
|
|
534
|
+
subject: fs(oe.subject)
|
|
535
535
|
})),
|
|
536
536
|
permissionSetIds: h.value,
|
|
537
537
|
name: ((Q = k.value) == null ? void 0 : Q.displayName) || ((A = v.initialValue) == null ? void 0 : A.name) || "",
|
|
@@ -627,7 +627,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
627
627
|
]),
|
|
628
628
|
u("div", gt, [
|
|
629
629
|
u("div", _t, V(l(a)("team.memberForm.permissions.title")), 1),
|
|
630
|
-
i(
|
|
630
|
+
i(Ns, {
|
|
631
631
|
modelValue: f.value,
|
|
632
632
|
"onUpdate:modelValue": c[1] || (c[1] = (ce) => f.value = ce),
|
|
633
633
|
"inherit-permissions": C.value,
|
|
@@ -695,7 +695,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
695
695
|
ls();
|
|
696
696
|
const {
|
|
697
697
|
t: a
|
|
698
|
-
} = Ve(), m = Ze(), J = os(), k = as(), I = Le(), R = He(I), h = ss(), C =
|
|
698
|
+
} = Ve(), m = Ze(), J = os(), k = as(), I = Le(), R = He(I), h = ss(), C = $s(), d = p(!0), f = p(!1), j = S(() => J.isLoading.value), E = p([]), D = p(0), $ = p(1), w = p(""), n = p("");
|
|
699
699
|
pe(J.restaurants, (e) => {
|
|
700
700
|
if (e.length > 0 && E.value.length > 0) {
|
|
701
701
|
const t = new Map(e.map((x) => [x._id, x.profile.name])), _ = e.map((x) => x.profile.name).sort();
|
|
@@ -870,7 +870,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
870
870
|
function ve() {
|
|
871
871
|
X++, ue.value = !1, B.value = ee.CLOSED;
|
|
872
872
|
}
|
|
873
|
-
const fe =
|
|
873
|
+
const fe = Is(() => {
|
|
874
874
|
var e;
|
|
875
875
|
return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
|
|
876
876
|
}, ve);
|
|
@@ -920,7 +920,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
920
920
|
permissionSubjects: [...Z.value ?? []].sort(),
|
|
921
921
|
permissionSetIds: [...s.value ?? []].sort()
|
|
922
922
|
});
|
|
923
|
-
}), K = S(() => Object.values(
|
|
923
|
+
}), K = S(() => Object.values(bs).map((e) => ({
|
|
924
924
|
label: e.label,
|
|
925
925
|
value: e.subject
|
|
926
926
|
}))), z = S(() => [{
|
|
@@ -1081,10 +1081,10 @@ const Ht = /* @__PURE__ */ we({
|
|
|
1081
1081
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
1082
1082
|
autofocus: "",
|
|
1083
1083
|
placeholder: l(a)("team.search.placeholder")
|
|
1084
|
-
}, null, 8, ["modelValue", "placeholder"])])), (Fe = l(m).currentBusiness.value) != null && Fe._id ? (y(), G(
|
|
1084
|
+
}, null, 8, ["modelValue", "placeholder"])])), (Fe = l(m).currentBusiness.value) != null && Fe._id ? (y(), G(hs, {
|
|
1085
1085
|
key: 2
|
|
1086
1086
|
}, {
|
|
1087
|
-
default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(
|
|
1087
|
+
default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(ys, {
|
|
1088
1088
|
key: 0
|
|
1089
1089
|
})), f.value ? (y(), G(_s, {
|
|
1090
1090
|
key: 1,
|