@feedmepos/mf-hrm-portal 2.3.0-dev → 2.3.0-dev.11
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-cG0zmQVJ.js → ApprovalCodeList-Ce9BWzt9.js} +5 -5
- package/dist/{AuditLogList-BTifJhO1.js → AuditLogList-Cw7WN8K4.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BuofBFPC.js} +2 -2
- package/dist/{EmployeeList-DzcMtxJ3.js → EmployeeList-B8qWPNvj.js} +25 -24
- package/dist/{GrantUserList-D5b7tJ8Y.js → GrantUserList-CgigJIPF.js} +6 -6
- package/dist/{Main-DFwdAWqn.js → Main-BfoVdxlY.js} +8 -8
- package/dist/{Main-B2r59IOW.js → Main-Cg2vC_cj.js} +5 -5
- package/dist/{Main-DkLBemi7.js → Main-D26pgKy1.js} +11 -11
- package/dist/{PermissionSetList-B80hrfMW.js → PermissionSetList-CbtDiF4k.js} +19 -18
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.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-BVz6q3HE.js} +1 -1
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-DHO4JRKF.js → RoleList-D0I8mbyI.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js +492 -0
- package/dist/ScheduleGeneralPage-Kv4pnxCL.js +778 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js +2285 -0
- package/dist/SchedulePage-BMWd0bod.js +17942 -0
- package/dist/{SchedulePositionPage-C0hrO11d.js → SchedulePositionPage-5Xvx6Dk5.js} +66 -65
- package/dist/{TeamMemberList-CgFWLRBM.js → TeamMemberList-Bh7i5l16.js} +24 -23
- package/dist/{TimesheetList-Dp40G-0I.js → TimesheetList-BJKU-hnk.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js} +3 -3
- package/dist/{app-CmBSTvaI.js → app-BDJ5qxhF.js} +678 -594
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-DHsUgc4K.js} +1 -1
- package/dist/{dayjs.min-CfL2DQ3d.js → dayjs.min-BWM0vY4w.js} +1 -1
- package/dist/{employee-DQcHjoij.js → employee-bBSuAJUr.js} +29 -28
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-qzKHFTro.js} +1 -1
- package/dist/{iteration-BlavheWG.js → iteration-Dg7VAkAn.js} +1 -1
- package/dist/{lodash-QerqayrJ.js → lodash-BknY3p4o.js} +1 -1
- package/dist/{restaurant-D7PEQjPY.js → restaurant-BbYRA_IT.js} +4 -3
- package/dist/{role-RM2YLO7n.js → role-BJnJnNd_.js} +2 -2
- package/dist/{rule-DjlvYIuP.js → rule-BEuOY7Wf.js} +3 -3
- package/dist/src/api/schedule/index.d.ts +8 -1
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +3 -4
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +32 -0
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/{ScheduleOnboardingComplete.vue.d.ts → ScheduleCompletionDialog.vue.d.ts} +8 -3
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +2 -1
- package/dist/src/views/scheduling/components/{ScheduleShiftCardMenu.vue.d.ts → ScheduleContextMenu.vue.d.ts} +7 -2
- package/dist/src/views/scheduling/components/{SchedulePdfPreview.vue.d.ts → ScheduleExportPreview.vue.d.ts} +1 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/{ScheduleExportDoneDialog.vue.d.ts → ScheduleOnboardingAssignPositionModal.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingClosedDayConfirm.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/{ScheduleEmployeeMenu.vue.d.ts → ScheduleOnboardingDemandDays.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +17 -1
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -2
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -4
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +2 -12
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +3 -3
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +1 -1
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +13 -0
- 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 +5 -1
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +7 -1
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +19 -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 +11 -0
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +1 -4
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +35 -21
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -8
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +3 -3
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +52 -11
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +1 -2
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -3
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +7 -24
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +26 -5
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +6 -3
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +29 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +19 -11
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +5 -6
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +206 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +313 -529
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +10 -7
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +4 -1
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +4 -2
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +9 -1
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +32 -4
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +8 -25
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +19 -3
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +31 -9
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +4 -1
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +6 -4
- package/dist/src/views/scheduling/country-rules/index.d.ts +24 -0
- package/dist/src/views/scheduling/data.d.ts +16 -7
- package/dist/src/views/scheduling/locales/index.d.ts +80 -0
- package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +104 -16
- package/dist/src/views/scheduling/schedule-store.d.ts +30 -6
- package/dist/src/views/scheduling/types.d.ts +29 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-BoLkvkE2.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-JFoghhRz.js → useLoading-Ch1AUYT1.js} +1 -1
- package/dist/{useReportPermissions-Bl6Br79r.js → useReportPermissions-D8hJ5W0t.js} +3 -3
- package/package.json +2 -1
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js +0 -4167
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +0 -452
- package/dist/ScheduleGeneralPage-WlBM8bxV.js +0 -629
- package/dist/SchedulePage-Nm0krGVU.js +0 -17056
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +0 -1150
- package/dist/src/components/layout/withShell.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +0 -6
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -122
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
- /package/dist/src/{components/layout/AppSidebar.vue.d.ts → views/scheduling/components/SchedulePublishShareArt.vue.d.ts} +0 -0
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
|
|
1
|
+
import { defineComponent as M, ref as A, onMounted as x, computed as z, createElementBlock as l, openBlock as a, createElementVNode as o, createVNode as i, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as E, withDirectives as S, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
|
|
2
|
+
import { useRouter as F } from "vue-router";
|
|
3
|
+
import { useSnackbar as B } from "@feedmepos/ui-library";
|
|
4
|
+
import { R as I } from "./app-BDJ5qxhF.js";
|
|
5
|
+
import { as as L, at as O, ab as R, ao as u, ap as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js";
|
|
6
|
+
import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js";
|
|
7
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const q = { class: "main" }, H = {
|
|
8
9
|
id: "viewPositions",
|
|
9
10
|
class: "view"
|
|
10
|
-
},
|
|
11
|
+
}, G = { class: "sp-head" }, J = { class: "outlet-bar" }, Q = { class: "sp-body" }, X = { class: "sp-content" }, Y = { class: "sp-panel" }, Z = { class: "cfg-head" }, ee = { class: "cfg-count" }, se = { id: "skList" }, te = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "cfg-empty"
|
|
13
|
-
},
|
|
14
|
+
}, oe = {
|
|
14
15
|
key: 1,
|
|
15
16
|
class: "cfg-list"
|
|
16
|
-
},
|
|
17
|
+
}, ne = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "cfg-row"
|
|
19
|
-
},
|
|
20
|
+
}, ie = { class: "cfg-main" }, le = ["onClick"], ae = { class: "cfg-main" }, de = { class: "cfg-name" }, re = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "cfg-confirm"
|
|
22
|
-
},
|
|
23
|
+
}, ue = { class: "q" }, ce = /* @__PURE__ */ M({
|
|
23
24
|
__name: "SchedulePositionPage",
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
await v.resolve() && await
|
|
25
|
+
setup(ve) {
|
|
26
|
+
const y = A(null);
|
|
27
|
+
L(y);
|
|
28
|
+
const _ = F(), w = B(), b = (f, e = "info") => w.open({ message: f, type: e }), t = T({ notify: b }), v = O(), m = U(void 0, { notify: b });
|
|
29
|
+
x(async () => {
|
|
30
|
+
await v.resolve() && await R(/* @__PURE__ */ new Date());
|
|
30
31
|
});
|
|
31
|
-
const
|
|
32
|
+
const $ = z(
|
|
32
33
|
() => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
33
34
|
);
|
|
34
|
-
function
|
|
35
|
-
v.switchTo(
|
|
35
|
+
function D(f) {
|
|
36
|
+
v.switchTo(f, /* @__PURE__ */ new Date());
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
38
|
+
function N() {
|
|
39
|
+
_.push({ name: I.SCHEDULE });
|
|
39
40
|
}
|
|
40
|
-
return (
|
|
41
|
+
return (f, e) => (a(), l("div", {
|
|
41
42
|
ref_key: "rootEl",
|
|
42
|
-
ref:
|
|
43
|
+
ref: y,
|
|
43
44
|
class: "sch"
|
|
44
45
|
}, [
|
|
45
|
-
o("div",
|
|
46
|
-
o("div",
|
|
47
|
-
o("div",
|
|
46
|
+
o("div", q, [
|
|
47
|
+
o("div", H, [
|
|
48
|
+
o("div", G, [
|
|
48
49
|
i(u, {
|
|
49
50
|
hierarchy: "ghost",
|
|
50
51
|
size: "sm",
|
|
51
52
|
class: "sp-back",
|
|
52
53
|
type: "button",
|
|
53
|
-
onClick:
|
|
54
|
+
onClick: N
|
|
54
55
|
}, {
|
|
55
56
|
default: d(() => [...e[7] || (e[7] = [
|
|
56
57
|
o("svg", {
|
|
@@ -74,25 +75,25 @@ const U = { class: "main" }, W = {
|
|
|
74
75
|
}),
|
|
75
76
|
e[9] || (e[9] = o("div", { class: "sp-title" }, "Position", -1)),
|
|
76
77
|
e[10] || (e[10] = o("div", { class: "sp-sub" }, "What your staff can do — the same catalogue across every outlet.", -1)),
|
|
77
|
-
o("div",
|
|
78
|
+
o("div", J, [
|
|
78
79
|
e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
79
|
-
i(
|
|
80
|
+
i(K, {
|
|
80
81
|
class: "outlet-sel",
|
|
81
82
|
"aria-label": "Outlet being configured",
|
|
82
83
|
searchable: "",
|
|
83
84
|
title: "Which outlet's roster the staff counts below are read from",
|
|
84
85
|
"model-value": s(v).outletId.value,
|
|
85
|
-
options:
|
|
86
|
-
"onUpdate:modelValue":
|
|
86
|
+
options: $.value,
|
|
87
|
+
"onUpdate:modelValue": D
|
|
87
88
|
}, null, 8, ["model-value", "options"])
|
|
88
89
|
])
|
|
89
90
|
]),
|
|
90
|
-
o("div",
|
|
91
|
-
o("div",
|
|
92
|
-
o("div",
|
|
93
|
-
o("div",
|
|
91
|
+
o("div", Q, [
|
|
92
|
+
o("div", X, [
|
|
93
|
+
o("div", Y, [
|
|
94
|
+
o("div", Z, [
|
|
94
95
|
e[12] || (e[12] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
|
|
95
|
-
o("span",
|
|
96
|
+
o("span", ee, c(s(t).count.value), 1),
|
|
96
97
|
e[13] || (e[13] = o("span", { class: "cfg-spacer" }, null, -1)),
|
|
97
98
|
i(u, {
|
|
98
99
|
hierarchy: "primary",
|
|
@@ -108,17 +109,17 @@ const U = { class: "main" }, W = {
|
|
|
108
109
|
})
|
|
109
110
|
]),
|
|
110
111
|
o("div", {
|
|
111
|
-
class:
|
|
112
|
+
class: h(["ce-err", { show: s(t).error.value }])
|
|
112
113
|
}, c(s(t).error.value), 3),
|
|
113
|
-
o("div",
|
|
114
|
-
!s(t).positions.value.length && !s(t).isAdding.value ? (a(), l("div",
|
|
114
|
+
o("div", se, [
|
|
115
|
+
!s(t).positions.value.length && !s(t).isAdding.value ? (a(), l("div", te, [...e[14] || (e[14] = [
|
|
115
116
|
r(" No positions yet.", -1),
|
|
116
117
|
o("br", null, null, -1),
|
|
117
118
|
r(" Add one and it becomes assignable on every employee. ", -1)
|
|
118
|
-
])])) : (a(), l("div",
|
|
119
|
-
s(t).isAdding.value ? (a(), l("div",
|
|
120
|
-
o("div",
|
|
121
|
-
|
|
119
|
+
])])) : (a(), l("div", oe, [
|
|
120
|
+
s(t).isAdding.value ? (a(), l("div", ne, [
|
|
121
|
+
o("div", ie, [
|
|
122
|
+
S(o("input", {
|
|
122
123
|
"onUpdate:modelValue": e[1] || (e[1] = (n) => s(t).newName.value = n),
|
|
123
124
|
type: "text",
|
|
124
125
|
class: "cfg-name-input",
|
|
@@ -129,7 +130,7 @@ const U = { class: "main" }, W = {
|
|
|
129
130
|
e[3] || (e[3] = k((n) => s(t).cancelAdd(), ["esc"]))
|
|
130
131
|
]
|
|
131
132
|
}, null, 544), [
|
|
132
|
-
[
|
|
133
|
+
[P, s(t).newName.value]
|
|
133
134
|
])
|
|
134
135
|
]),
|
|
135
136
|
i(u, {
|
|
@@ -158,24 +159,24 @@ const U = { class: "main" }, W = {
|
|
|
158
159
|
])]),
|
|
159
160
|
_: 1
|
|
160
161
|
}, 8, ["disabled"])
|
|
161
|
-
])) :
|
|
162
|
-
(a(!0), l(
|
|
162
|
+
])) : E("", !0),
|
|
163
|
+
(a(!0), l(C, null, V(s(t).positions.value, (n) => (a(), l("div", {
|
|
163
164
|
key: n.id,
|
|
164
|
-
class:
|
|
165
|
-
onClick: (
|
|
165
|
+
class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== n.id }]),
|
|
166
|
+
onClick: (p) => s(t).pendingDeleteId.value !== n.id && s(m).openEdit(n.id, n.name)
|
|
166
167
|
}, [
|
|
167
|
-
o("div",
|
|
168
|
-
o("div",
|
|
168
|
+
o("div", ae, [
|
|
169
|
+
o("div", de, c(n.name), 1)
|
|
169
170
|
]),
|
|
170
|
-
s(t).pendingDeleteId.value === n.id ? (a(), l("div",
|
|
171
|
-
o("span",
|
|
171
|
+
s(t).pendingDeleteId.value === n.id ? (a(), l("div", re, [
|
|
172
|
+
o("span", ue, c(s(t).usageCountFor(n.id) ? `Remove from ${s(t).usageCountFor(n.id)} staff?` : "Delete?"), 1),
|
|
172
173
|
i(u, {
|
|
173
174
|
hierarchy: "danger",
|
|
174
175
|
size: "sm",
|
|
175
176
|
class: "cfg-yes",
|
|
176
177
|
type: "button",
|
|
177
178
|
disabled: s(t).saving.value,
|
|
178
|
-
onClick:
|
|
179
|
+
onClick: g((p) => s(t).confirmDelete(n.id), ["stop"])
|
|
179
180
|
}, {
|
|
180
181
|
default: d(() => [
|
|
181
182
|
r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
|
|
@@ -188,23 +189,23 @@ const U = { class: "main" }, W = {
|
|
|
188
189
|
class: "cfg-no",
|
|
189
190
|
type: "button",
|
|
190
191
|
disabled: s(t).saving.value,
|
|
191
|
-
onClick: e[6] || (e[6] =
|
|
192
|
+
onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
|
|
192
193
|
}, {
|
|
193
194
|
default: d(() => [...e[16] || (e[16] = [
|
|
194
195
|
r(" Keep ", -1)
|
|
195
196
|
])]),
|
|
196
197
|
_: 1
|
|
197
198
|
}, 8, ["disabled"])
|
|
198
|
-
])) : (a(), l(
|
|
199
|
+
])) : (a(), l(C, { key: 1 }, [
|
|
199
200
|
o("span", {
|
|
200
|
-
class:
|
|
201
|
-
}, c(s(t).usageCountFor(n.
|
|
201
|
+
class: h(["cfg-used", { none: !s(t).usageCountFor(n.id) }])
|
|
202
|
+
}, c(s(t).usageCountFor(n.id) ? `${s(t).usageCountFor(n.id)} staff` : "unused"), 3),
|
|
202
203
|
i(u, {
|
|
203
204
|
hierarchy: "secondary",
|
|
204
205
|
size: "sm",
|
|
205
206
|
class: "cfg-btn",
|
|
206
207
|
type: "button",
|
|
207
|
-
onClick:
|
|
208
|
+
onClick: g((p) => s(m).openEdit(n.id, n.name), ["stop"])
|
|
208
209
|
}, {
|
|
209
210
|
default: d(() => [...e[17] || (e[17] = [
|
|
210
211
|
r(" Edit ", -1)
|
|
@@ -218,7 +219,7 @@ const U = { class: "main" }, W = {
|
|
|
218
219
|
class: "cfg-del",
|
|
219
220
|
type: "button",
|
|
220
221
|
"aria-label": `Delete ${n.name}`,
|
|
221
|
-
onClick:
|
|
222
|
+
onClick: g((p) => s(t).askDelete(n.id), ["stop"])
|
|
222
223
|
}, {
|
|
223
224
|
default: d(() => [...e[18] || (e[18] = [
|
|
224
225
|
o("svg", {
|
|
@@ -246,7 +247,7 @@ const U = { class: "main" }, W = {
|
|
|
246
247
|
_: 1
|
|
247
248
|
}, 8, ["aria-label", "onClick"])
|
|
248
249
|
], 64))
|
|
249
|
-
], 10,
|
|
250
|
+
], 10, le))), 128))
|
|
250
251
|
]))
|
|
251
252
|
])
|
|
252
253
|
])
|
|
@@ -254,10 +255,10 @@ const U = { class: "main" }, W = {
|
|
|
254
255
|
])
|
|
255
256
|
])
|
|
256
257
|
]),
|
|
257
|
-
i(
|
|
258
|
+
i(W, { modal: s(m) }, null, 8, ["modal"])
|
|
258
259
|
], 512));
|
|
259
260
|
}
|
|
260
|
-
}),
|
|
261
|
+
}), ke = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-6c156586"]]);
|
|
261
262
|
export {
|
|
262
|
-
|
|
263
|
+
ke as default
|
|
263
264
|
};
|
|
@@ -3,20 +3,21 @@ 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
5
|
import { S as ye } from "./SelectFilter-CG13h83-.js";
|
|
6
|
-
import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { s as
|
|
10
|
-
import { u as He } from "./useLoading-
|
|
6
|
+
import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-BDJ5qxhF.js";
|
|
7
|
+
import { _ as ys } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
|
+
import { _ as gs } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
+
import { s as _s, _ as Us, a as Ss, b as xs, c as Fs } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
|
|
10
|
+
import { u as He } from "./useLoading-Ch1AUYT1.js";
|
|
11
|
+
import { u as Ps } 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 Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-
|
|
15
|
-
import { u as as } from "./role-
|
|
16
|
-
import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
17
|
-
import "./useAppStore-
|
|
18
|
-
import { g as ze, b as We, u as os } from "./restaurant-
|
|
19
|
-
import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { l as Pe } from "./lodash-BknY3p4o.js";
|
|
14
|
+
import { c as he } from "./iteration-Dg7VAkAn.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 Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-BEuOY7Wf.js";
|
|
16
|
+
import { u as as } from "./role-BJnJnNd_.js";
|
|
17
|
+
import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
|
|
18
|
+
import "./useAppStore-BoLkvkE2.js";
|
|
19
|
+
import { g as ze, b as We, u as os } from "./restaurant-BbYRA_IT.js";
|
|
20
|
+
import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js";
|
|
20
21
|
import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
22
|
var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
|
|
22
23
|
const Ie = "__unassigned__";
|
|
@@ -245,7 +246,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
245
246
|
}
|
|
246
247
|
const C = S(() => {
|
|
247
248
|
var n;
|
|
248
|
-
return
|
|
249
|
+
return _s(((n = v.modelValue) == null ? void 0 : n.roles) ?? []);
|
|
249
250
|
});
|
|
250
251
|
function d(n) {
|
|
251
252
|
return v.usableRoleIds === null || v.usableRoleIds.includes(n._id);
|
|
@@ -348,7 +349,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
348
349
|
]
|
|
349
350
|
}, {
|
|
350
351
|
default: ie(() => [
|
|
351
|
-
i(
|
|
352
|
+
i(Us, {
|
|
352
353
|
modelValue: R.value,
|
|
353
354
|
"onUpdate:modelValue": b[2] || (b[2] = (r) => R.value = r),
|
|
354
355
|
masked: I.value,
|
|
@@ -360,7 +361,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
360
361
|
]),
|
|
361
362
|
_: 1
|
|
362
363
|
}, 8, ["modelValue", "rules"]),
|
|
363
|
-
i(
|
|
364
|
+
i(Ss, {
|
|
364
365
|
label: l(m)("team.memberForm.masterUser.passcodeGenerate"),
|
|
365
366
|
hint: l(m)("team.memberForm.masterUser.passcodeSelectOutletFirst"),
|
|
366
367
|
loading: E.value,
|
|
@@ -378,7 +379,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
378
379
|
]
|
|
379
380
|
}, {
|
|
380
381
|
default: ie(() => [
|
|
381
|
-
i(
|
|
382
|
+
i(xs, {
|
|
382
383
|
"model-value": o.modelValue.roles,
|
|
383
384
|
restaurants: o.restaurants,
|
|
384
385
|
roles: o.roles,
|
|
@@ -684,7 +685,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
|
|
|
684
685
|
var ee = /* @__PURE__ */ function(o) {
|
|
685
686
|
return o[o.ADD = 0] = "ADD", o[o.UPDATE = 1] = "UPDATE", o[o.CLOSED = 2] = "CLOSED", o;
|
|
686
687
|
}(ee || {});
|
|
687
|
-
const
|
|
688
|
+
const ea = /* @__PURE__ */ we({
|
|
688
689
|
__name: "TeamMemberList",
|
|
689
690
|
setup(o, {
|
|
690
691
|
expose: N
|
|
@@ -723,7 +724,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
723
724
|
onClick: () => se(Ue.Remove, e),
|
|
724
725
|
itemClass: "text-fm-color-typo-error"
|
|
725
726
|
}, re = e.doc.isOwner ? [_] : [_, x];
|
|
726
|
-
return i(
|
|
727
|
+
return i(ys, {
|
|
727
728
|
class: t,
|
|
728
729
|
items: re
|
|
729
730
|
}, null);
|
|
@@ -754,7 +755,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
754
755
|
enableSorting: !1,
|
|
755
756
|
cell(e) {
|
|
756
757
|
if (j.value)
|
|
757
|
-
return ds(
|
|
758
|
+
return ds(Fs);
|
|
758
759
|
const t = e.row.original;
|
|
759
760
|
return U(t);
|
|
760
761
|
}
|
|
@@ -870,7 +871,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
870
871
|
function ve() {
|
|
871
872
|
X++, ue.value = !1, B.value = ee.CLOSED;
|
|
872
873
|
}
|
|
873
|
-
const fe =
|
|
874
|
+
const fe = Ps(() => {
|
|
874
875
|
var e;
|
|
875
876
|
return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
|
|
876
877
|
}, ve);
|
|
@@ -1086,7 +1087,7 @@ const Ht = /* @__PURE__ */ we({
|
|
|
1086
1087
|
}, {
|
|
1087
1088
|
default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(hs, {
|
|
1088
1089
|
key: 0
|
|
1089
|
-
})), f.value ? (y(), G(
|
|
1090
|
+
})), f.value ? (y(), G(gs, {
|
|
1090
1091
|
key: 1,
|
|
1091
1092
|
"is-loading": d.value,
|
|
1092
1093
|
"is-empty": D.value === 0,
|
|
@@ -1150,5 +1151,5 @@ const Ht = /* @__PURE__ */ we({
|
|
|
1150
1151
|
}
|
|
1151
1152
|
});
|
|
1152
1153
|
export {
|
|
1153
|
-
|
|
1154
|
+
ea as default
|
|
1154
1155
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as r, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-BWM0vY4w.js";
|
|
3
3
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as De } from "./SelectFilter-CG13h83-.js";
|
|
6
|
-
import { _ as Se } from "./app-
|
|
6
|
+
import { _ as Se } from "./app-BDJ5qxhF.js";
|
|
7
7
|
import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { u as ke } from "./useLoading-
|
|
9
|
-
import { g as Ce, s as Fe } from "./iteration-
|
|
8
|
+
import { u as ke } from "./useLoading-Ch1AUYT1.js";
|
|
9
|
+
import { g as Ce, s as Fe } from "./iteration-Dg7VAkAn.js";
|
|
10
10
|
import { f as Ye } from "./utils-BZkjJbju.js";
|
|
11
11
|
import { n as Le } from "./string-VNuQNweN.js";
|
|
12
|
-
import { u as Me } from "./employee-
|
|
13
|
-
import { u as Te } from "./restaurant-
|
|
14
|
-
import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
12
|
+
import { u as Me } from "./employee-bBSuAJUr.js";
|
|
13
|
+
import { u as Te } from "./restaurant-BbYRA_IT.js";
|
|
14
|
+
import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js";
|
|
15
15
|
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
function $e(x, a) {
|
|
17
17
|
return ["years", "months"].find((S) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-BWM0vY4w.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y } from "./restaurant-
|
|
5
|
-
import { s as S } from "./iteration-
|
|
4
|
+
import { b as c, g as y } from "./restaurant-BbYRA_IT.js";
|
|
5
|
+
import { s as S } from "./iteration-Dg7VAkAn.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|