@feedmepos/mf-hrm-portal 2.3.0-dev → 2.3.0-dev.2
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-CJaNPHZC.js} +2 -2
- package/dist/{AuditLogList-BTifJhO1.js → AuditLogList-CHA98ZqW.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7rvthEI.js} +2 -2
- package/dist/{EmployeeList-DzcMtxJ3.js → EmployeeList-CVmMKt71.js} +4 -4
- package/dist/{GrantUserList-D5b7tJ8Y.js → GrantUserList-MYjgt5-F.js} +3 -3
- package/dist/{Main-DkLBemi7.js → Main-BgB9lD4K.js} +9 -9
- package/dist/{Main-DFwdAWqn.js → Main-C0cnqQ3B.js} +5 -5
- package/dist/{Main-B2r59IOW.js → Main-hlcHtrsc.js} +2 -2
- package/dist/{PermissionSetList-B80hrfMW.js → PermissionSetList-5f1WIaVa.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js} +823 -823
- package/dist/{RoleList-DHO4JRKF.js → RoleList-DNR4miXr.js} +7 -7
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.js +470 -0
- package/dist/{ScheduleGeneralPage-WlBM8bxV.js → ScheduleGeneralPage-Cd5AlY4z.js} +273 -236
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js +2188 -0
- package/dist/SchedulePage-C8m0-m3l.js +18257 -0
- package/dist/{SchedulePositionPage-C0hrO11d.js → SchedulePositionPage-DyRckyUx.js} +67 -66
- package/dist/{TeamMemberList-CgFWLRBM.js → TeamMemberList-mw5OveZG.js} +6 -6
- package/dist/{TimesheetList-Dp40G-0I.js → TimesheetList-BzXarZbM.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.js} +2 -2
- package/dist/{app-CmBSTvaI.js → app-DSsdRLHg.js} +657 -577
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CfL2DQ3d.js → dayjs.min-B6xBXQtU.js} +1 -1
- package/dist/{employee-DQcHjoij.js → employee-hMhzuqk1.js} +28 -27
- package/dist/{iteration-BlavheWG.js → iteration-B34AvpNC.js} +1 -1
- package/dist/{lodash-QerqayrJ.js → lodash-1Vyuy7Mu.js} +1 -1
- package/dist/{role-RM2YLO7n.js → role-DKOrgO6f.js} +1 -1
- package/dist/{rule-DjlvYIuP.js → rule-CBzQ3GeV.js} +2 -2
- package/dist/src/api/schedule/index.d.ts +5 -1
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +28 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +19 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +38 -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 +39 -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/{ScheduleOpenShiftCardMenu.vue.d.ts → ScheduleContextMenu.vue.d.ts} +10 -3
- 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 +10 -0
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/{ScheduleTourAllSet.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/{ScheduleExportDoneDialog.vue.d.ts → ScheduleOnboardingDemandFooter.vue.d.ts} +2 -2
- 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 +7 -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 -2
- 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-board-helpers.d.ts +1 -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-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 +10 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +14 -13
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +18 -2
- 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 -1
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +4 -19
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +13 -2
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -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 +25 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +19 -11
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +3 -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 +187 -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 +64 -487
- 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 -3
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +2 -24
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +62 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +10 -5
- 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 +11 -6
- 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 +32 -8
- package/dist/src/views/scheduling/schedule-store.d.ts +4 -1
- package/dist/src/views/scheduling/types.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Bl6Br79r.js → useReportPermissions-B2ev0j4w.js} +3 -3
- package/package.json +2 -1
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +0 -452
- 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/AppSidebar.vue.d.ts +0 -2
- package/dist/src/components/layout/withShell.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +0 -12
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
|
@@ -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 a, openBlock as l, 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 b, 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-DSsdRLHg.js";
|
|
5
|
+
import { an as L, ao as O, a7 as R, ak as u, al as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js";
|
|
6
|
+
import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.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" }, ae = ["onClick"], le = { 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(), k = (f, e = "info") => w.open({ message: f, type: e }), t = T({ notify: k }), v = O(), m = U(void 0, { notify: k });
|
|
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) => (l(), a("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,28 +109,28 @@ 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 ? (
|
|
114
|
+
o("div", se, [
|
|
115
|
+
!s(t).positions.value.length && !s(t).isAdding.value ? (l(), a("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
|
-
])])) : (
|
|
119
|
-
s(t).isAdding.value ? (
|
|
120
|
-
o("div",
|
|
121
|
-
|
|
119
|
+
])])) : (l(), a("div", oe, [
|
|
120
|
+
s(t).isAdding.value ? (l(), a("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",
|
|
125
126
|
placeholder: "New position name",
|
|
126
127
|
autofocus: "",
|
|
127
128
|
onKeyup: [
|
|
128
|
-
e[2] || (e[2] =
|
|
129
|
-
e[3] || (e[3] =
|
|
129
|
+
e[2] || (e[2] = b((n) => s(t).confirmAdd(), ["enter"])),
|
|
130
|
+
e[3] || (e[3] = b((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
|
-
(
|
|
162
|
+
])) : E("", !0),
|
|
163
|
+
(l(!0), a(C, null, V(s(t).positions.value, (n) => (l(), a("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", le, [
|
|
169
|
+
o("div", de, c(n.name), 1)
|
|
169
170
|
]),
|
|
170
|
-
s(t).pendingDeleteId.value === n.id ? (
|
|
171
|
-
o("span",
|
|
171
|
+
s(t).pendingDeleteId.value === n.id ? (l(), a("div", re, [
|
|
172
|
+
o("span", ue, c(s(t).usageCountFor(n.name) ? `Remove from ${s(t).usageCountFor(n.name)} 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
|
-
])) : (
|
|
199
|
+
])) : (l(), a(C, { key: 1 }, [
|
|
199
200
|
o("span", {
|
|
200
|
-
class:
|
|
201
|
+
class: h(["cfg-used", { none: !s(t).usageCountFor(n.name) }])
|
|
201
202
|
}, c(s(t).usageCountFor(n.name) ? `${s(t).usageCountFor(n.name)} 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, ae))), 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
|
+
}), be = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-40bada6a"]]);
|
|
261
262
|
export {
|
|
262
|
-
|
|
263
|
+
be as default
|
|
263
264
|
};
|
|
@@ -3,20 +3,20 @@ 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-
|
|
6
|
+
import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-DSsdRLHg.js";
|
|
7
7
|
import { u as ys, _ as gs } from "./useDiscardConfirm-DPhEV6v0.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
10
|
import { u as He } from "./useLoading-JFoghhRz.js";
|
|
11
11
|
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-
|
|
12
|
+
import { l as Pe } from "./lodash-1Vyuy7Mu.js";
|
|
13
|
+
import { c as he } from "./iteration-B34AvpNC.js";
|
|
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-CBzQ3GeV.js";
|
|
15
|
+
import { u as as } from "./role-DKOrgO6f.js";
|
|
16
16
|
import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js";
|
|
17
17
|
import "./useAppStore-d_nHyK5u.js";
|
|
18
18
|
import { g as ze, b as We, u as os } from "./restaurant-D7PEQjPY.js";
|
|
19
|
-
import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js";
|
|
20
20
|
import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
21
|
var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
|
|
22
22
|
const Ie = "__unassigned__";
|
|
@@ -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-B6xBXQtU.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-DSsdRLHg.js";
|
|
7
7
|
import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
8
|
import { u as ke } from "./useLoading-JFoghhRz.js";
|
|
9
|
-
import { g as Ce, s as Fe } from "./iteration-
|
|
9
|
+
import { g as Ce, s as Fe } from "./iteration-B34AvpNC.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-
|
|
12
|
+
import { u as Me } from "./employee-hMhzuqk1.js";
|
|
13
13
|
import { u as Te } from "./restaurant-D7PEQjPY.js";
|
|
14
|
-
import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
14
|
+
import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.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-B6xBXQtU.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
4
|
import { b as c, g as y } from "./restaurant-D7PEQjPY.js";
|
|
5
|
-
import { s as S } from "./iteration-
|
|
5
|
+
import { s as S } from "./iteration-B34AvpNC.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|