@feedmepos/mf-hrm-portal 2.2.5-dev.9 → 2.3.0-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-D5l9vIsE.js → ApprovalCodeList-cG0zmQVJ.js} +5 -5
- package/dist/{AuditLogList-ByTa5UJY.js → AuditLogList-BTifJhO1.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js} +2 -2
- package/dist/{EmployeeList-Bv6ANk-P.js → EmployeeList-DzcMtxJ3.js} +6 -6
- package/dist/{GrantUserList-Bt8w3p4j.js → GrantUserList-D5b7tJ8Y.js} +6 -6
- package/dist/{Main-DqiGpT4v.js → Main-B2r59IOW.js} +5 -5
- package/dist/{Main-DHJcgePj.js → Main-DFwdAWqn.js} +8 -8
- package/dist/{Main-DkP8dWgn.js → Main-DkLBemi7.js} +11 -11
- package/dist/{PermissionSetList-BIGv1u67.js → PermissionSetList-B80hrfMW.js} +7 -7
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js +4167 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js} +1 -1
- package/dist/{RoleList-CH6NDKPU.js → RoleList-DHO4JRKF.js} +9 -9
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +452 -0
- package/dist/ScheduleGeneralPage-WlBM8bxV.js +629 -0
- package/dist/SchedulePage-Nm0krGVU.js +17056 -0
- package/dist/SchedulePositionPage-C0hrO11d.js +263 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +1150 -0
- package/dist/{TeamMemberList-BwfG3go2.js → TeamMemberList-CgFWLRBM.js} +10 -10
- package/dist/{TimesheetList-DcoqzbLO.js → TimesheetList-Dp40G-0I.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js} +3 -3
- package/dist/{app-BcZ6C8M8.js → app-CmBSTvaI.js} +851 -739
- package/dist/app.js +1 -1
- package/dist/{approval-code-jIjkeVEb.js → approval-code-C9DmR4Md.js} +1 -1
- package/dist/{dayjs.min-Ch0iysTG.js → dayjs.min-CfL2DQ3d.js} +1 -1
- package/dist/{employee-DwYHFacQ.js → employee-DQcHjoij.js} +4 -4
- package/dist/{grant-user-SNiDV22U.js → grant-user-Bv-pJ9Wt.js} +1 -1
- package/dist/{iteration-D1uWLp0V.js → iteration-BlavheWG.js} +1 -1
- package/dist/{lodash-DErxm7xf.js → lodash-QerqayrJ.js} +1 -1
- package/dist/{restaurant-BTpBmfBV.js → restaurant-D7PEQjPY.js} +257 -251
- package/dist/{role-B9VanAny.js → role-RM2YLO7n.js} +2 -2
- package/dist/{rule-C4f_Ilzr.js → rule-DjlvYIuP.js} +3 -3
- package/dist/src/api/restaurant/index.d.ts +2 -0
- package/dist/src/api/schedule/index.d.ts +12 -2
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/types/schedule.d.ts +10 -218
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +11 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/{ScheduleLegendBar.vue.d.ts → ScheduleCoach.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +9 -1
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleExportDoneDialog.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingComplete.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +1 -2
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +2 -2
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +6 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +6 -6
- package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +6 -0
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +33 -0
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +5 -0
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +50 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +8 -2
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +22 -1
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +3 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +2 -8
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +12 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +11 -8
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +10 -2
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +158 -12
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +110 -13
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +11 -1
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -3
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +24 -1
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +4 -2
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +33 -1
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +1 -3
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +20 -31
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +327 -75
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +5 -3
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -5
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +53 -1
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -4
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +8 -9
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +63 -92
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +30 -2
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +5 -11
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +4 -4
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +93 -0
- package/dist/src/views/scheduling/data.d.ts +6 -19
- package/dist/src/views/scheduling/locales/index.d.ts +116 -4
- package/dist/src/views/scheduling/schedule-state.d.ts +679 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +16 -60
- package/dist/src/views/scheduling/types.d.ts +29 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DCwd8GWN.js → useAppStore-d_nHyK5u.js} +1 -1
- package/dist/{useLoading-CXzTpIVv.js → useLoading-JFoghhRz.js} +1 -1
- package/dist/{useReportPermissions-CTr56kBo.js → useReportPermissions-Bl6Br79r.js} +3 -3
- package/package.json +3 -2
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js +0 -4167
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js +0 -426
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +0 -690
- package/dist/ScheduleGeneralPage-DJPENJZ2.js +0 -320
- package/dist/SchedulePage-C1egcbIC.js +0 -14421
- package/dist/SchedulePositionPage-OhL_hsqG.js +0 -293
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +0 -242
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +0 -35
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, ref as D, onMounted as N, createElementBlock as l, openBlock as d, createElementVNode as i, createVNode as o, withCtx as r, toDisplayString as v, unref as e, createTextVNode as u, normalizeClass as g, createCommentVNode as E, withDirectives as b, withKeys as m, vModelText as h, Fragment as p, renderList as z, withModifiers as f } from "vue";
|
|
2
|
-
import { useRouter as M } from "vue-router";
|
|
3
|
-
import { R as x } from "./app-BcZ6C8M8.js";
|
|
4
|
-
import { H as A, I as S, y as P, _ as c } from "./ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js";
|
|
5
|
-
import { u as V, a as F, _ as B } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js";
|
|
6
|
-
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const K = { class: "main" }, L = {
|
|
8
|
-
id: "viewPositions",
|
|
9
|
-
class: "view"
|
|
10
|
-
}, R = { class: "sp-head" }, U = { class: "sp-body" }, j = { class: "sp-content" }, H = { class: "sp-panel" }, T = { class: "cfg-head" }, W = { class: "cfg-count" }, q = { id: "skList" }, O = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "cfg-empty"
|
|
13
|
-
}, G = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "cfg-list"
|
|
16
|
-
}, J = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "cfg-row"
|
|
19
|
-
}, Q = { class: "cfg-main" }, X = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "cfg-row"
|
|
22
|
-
}, Y = { class: "cfg-main" }, Z = ["onKeyup"], ee = ["onClick"], se = { class: "cfg-main" }, te = { class: "cfg-name" }, ie = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "cfg-confirm"
|
|
25
|
-
}, ne = { class: "q" }, oe = /* @__PURE__ */ $({
|
|
26
|
-
__name: "SchedulePositionPage",
|
|
27
|
-
setup(ae) {
|
|
28
|
-
const y = D(null);
|
|
29
|
-
A(y);
|
|
30
|
-
const C = M(), s = V(), _ = S(), k = F();
|
|
31
|
-
N(async () => {
|
|
32
|
-
await _.resolve() && await P(/* @__PURE__ */ new Date());
|
|
33
|
-
});
|
|
34
|
-
function w() {
|
|
35
|
-
C.push({ name: x.SCHEDULE });
|
|
36
|
-
}
|
|
37
|
-
return (le, t) => (d(), l("div", {
|
|
38
|
-
ref_key: "rootEl",
|
|
39
|
-
ref: y,
|
|
40
|
-
class: "sch"
|
|
41
|
-
}, [
|
|
42
|
-
i("div", K, [
|
|
43
|
-
i("div", L, [
|
|
44
|
-
i("div", R, [
|
|
45
|
-
o(c, {
|
|
46
|
-
hierarchy: "ghost",
|
|
47
|
-
size: "sm",
|
|
48
|
-
class: "sp-back",
|
|
49
|
-
type: "button",
|
|
50
|
-
onClick: w
|
|
51
|
-
}, {
|
|
52
|
-
default: r(() => [...t[10] || (t[10] = [
|
|
53
|
-
i("svg", {
|
|
54
|
-
width: "12",
|
|
55
|
-
height: "12",
|
|
56
|
-
viewBox: "0 0 16 16",
|
|
57
|
-
fill: "none",
|
|
58
|
-
"aria-hidden": "true"
|
|
59
|
-
}, [
|
|
60
|
-
i("path", {
|
|
61
|
-
d: "M10 3.5L5.5 8l4.5 4.5",
|
|
62
|
-
stroke: "currentColor",
|
|
63
|
-
"stroke-width": "1.7",
|
|
64
|
-
"stroke-linecap": "round",
|
|
65
|
-
"stroke-linejoin": "round"
|
|
66
|
-
})
|
|
67
|
-
], -1),
|
|
68
|
-
i("span", null, "Back to schedule", -1)
|
|
69
|
-
])]),
|
|
70
|
-
_: 1
|
|
71
|
-
}),
|
|
72
|
-
t[11] || (t[11] = i("div", { class: "sp-title" }, "Position", -1)),
|
|
73
|
-
t[12] || (t[12] = i("div", { class: "sp-sub" }, "What your staff can do — the same catalogue across every outlet.", -1))
|
|
74
|
-
]),
|
|
75
|
-
i("div", U, [
|
|
76
|
-
i("div", j, [
|
|
77
|
-
i("div", H, [
|
|
78
|
-
i("div", T, [
|
|
79
|
-
t[14] || (t[14] = i("div", { class: "cfg-title" }, "Configured positions", -1)),
|
|
80
|
-
i("span", W, v(e(s).count.value), 1),
|
|
81
|
-
t[15] || (t[15] = i("span", { class: "cfg-spacer" }, null, -1)),
|
|
82
|
-
o(c, {
|
|
83
|
-
hierarchy: "primary",
|
|
84
|
-
size: "sm",
|
|
85
|
-
class: "am-btn am-btn-primary",
|
|
86
|
-
type: "button",
|
|
87
|
-
onClick: t[0] || (t[0] = (n) => e(k).openNew())
|
|
88
|
-
}, {
|
|
89
|
-
default: r(() => [...t[13] || (t[13] = [
|
|
90
|
-
u(" + Add position ", -1)
|
|
91
|
-
])]),
|
|
92
|
-
_: 1
|
|
93
|
-
})
|
|
94
|
-
]),
|
|
95
|
-
i("div", {
|
|
96
|
-
class: g(["ce-err", { show: e(s).error.value }])
|
|
97
|
-
}, v(e(s).error.value), 3),
|
|
98
|
-
i("div", q, [
|
|
99
|
-
!e(s).positions.value.length && !e(s).isAdding.value ? (d(), l("div", O, [...t[16] || (t[16] = [
|
|
100
|
-
u(" No positions yet.", -1),
|
|
101
|
-
i("br", null, null, -1),
|
|
102
|
-
u(" Add one and it becomes assignable on every employee. ", -1)
|
|
103
|
-
])])) : (d(), l("div", G, [
|
|
104
|
-
e(s).isAdding.value ? (d(), l("div", J, [
|
|
105
|
-
i("div", Q, [
|
|
106
|
-
b(i("input", {
|
|
107
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) => e(s).newName.value = n),
|
|
108
|
-
type: "text",
|
|
109
|
-
class: "cfg-name-input",
|
|
110
|
-
placeholder: "New position name",
|
|
111
|
-
autofocus: "",
|
|
112
|
-
onKeyup: [
|
|
113
|
-
t[2] || (t[2] = m((n) => e(s).confirmAdd(), ["enter"])),
|
|
114
|
-
t[3] || (t[3] = m((n) => e(s).cancelAdd(), ["esc"]))
|
|
115
|
-
]
|
|
116
|
-
}, null, 544), [
|
|
117
|
-
[h, e(s).newName.value]
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
o(c, {
|
|
121
|
-
hierarchy: "secondary",
|
|
122
|
-
size: "sm",
|
|
123
|
-
class: "cfg-btn",
|
|
124
|
-
type: "button",
|
|
125
|
-
disabled: !e(s).newName.value.trim() || e(s).saving.value,
|
|
126
|
-
onClick: t[4] || (t[4] = (n) => e(s).confirmAdd())
|
|
127
|
-
}, {
|
|
128
|
-
default: r(() => [
|
|
129
|
-
u(v(e(s).saving.value ? "Adding…" : "Add"), 1)
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
}, 8, ["disabled"]),
|
|
133
|
-
o(c, {
|
|
134
|
-
hierarchy: "secondary",
|
|
135
|
-
size: "sm",
|
|
136
|
-
class: "cfg-btn",
|
|
137
|
-
type: "button",
|
|
138
|
-
disabled: e(s).saving.value,
|
|
139
|
-
onClick: t[5] || (t[5] = (n) => e(s).cancelAdd())
|
|
140
|
-
}, {
|
|
141
|
-
default: r(() => [...t[17] || (t[17] = [
|
|
142
|
-
u(" Cancel ", -1)
|
|
143
|
-
])]),
|
|
144
|
-
_: 1
|
|
145
|
-
}, 8, ["disabled"])
|
|
146
|
-
])) : E("", !0),
|
|
147
|
-
(d(!0), l(p, null, z(e(s).positions.value, (n) => (d(), l(p, {
|
|
148
|
-
key: n.id
|
|
149
|
-
}, [
|
|
150
|
-
e(s).editingId.value === n.id ? (d(), l("div", X, [
|
|
151
|
-
i("div", Y, [
|
|
152
|
-
b(i("input", {
|
|
153
|
-
"onUpdate:modelValue": t[6] || (t[6] = (a) => e(s).editingName.value = a),
|
|
154
|
-
type: "text",
|
|
155
|
-
class: "cfg-name-input",
|
|
156
|
-
autofocus: "",
|
|
157
|
-
onKeyup: [
|
|
158
|
-
m((a) => e(s).saveEdit(n.id), ["enter"]),
|
|
159
|
-
t[7] || (t[7] = m((a) => e(s).cancelEdit(), ["esc"]))
|
|
160
|
-
]
|
|
161
|
-
}, null, 40, Z), [
|
|
162
|
-
[h, e(s).editingName.value]
|
|
163
|
-
])
|
|
164
|
-
]),
|
|
165
|
-
o(c, {
|
|
166
|
-
hierarchy: "secondary",
|
|
167
|
-
size: "sm",
|
|
168
|
-
class: "cfg-btn",
|
|
169
|
-
type: "button",
|
|
170
|
-
disabled: !e(s).editingName.value.trim() || e(s).saving.value,
|
|
171
|
-
onClick: (a) => e(s).saveEdit(n.id)
|
|
172
|
-
}, {
|
|
173
|
-
default: r(() => [
|
|
174
|
-
u(v(e(s).saving.value ? "Saving…" : "Save"), 1)
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["disabled", "onClick"]),
|
|
178
|
-
o(c, {
|
|
179
|
-
hierarchy: "secondary",
|
|
180
|
-
size: "sm",
|
|
181
|
-
class: "cfg-btn",
|
|
182
|
-
type: "button",
|
|
183
|
-
disabled: e(s).saving.value,
|
|
184
|
-
onClick: t[8] || (t[8] = (a) => e(s).cancelEdit())
|
|
185
|
-
}, {
|
|
186
|
-
default: r(() => [...t[18] || (t[18] = [
|
|
187
|
-
u(" Cancel ", -1)
|
|
188
|
-
])]),
|
|
189
|
-
_: 1
|
|
190
|
-
}, 8, ["disabled"])
|
|
191
|
-
])) : (d(), l("div", {
|
|
192
|
-
key: 1,
|
|
193
|
-
class: g(["cfg-row", { "is-clickable": e(s).pendingDeleteId.value !== n.id }]),
|
|
194
|
-
onClick: (a) => e(s).pendingDeleteId.value !== n.id && e(s).startEdit(n.id)
|
|
195
|
-
}, [
|
|
196
|
-
i("div", se, [
|
|
197
|
-
i("div", te, v(n.name), 1)
|
|
198
|
-
]),
|
|
199
|
-
e(s).pendingDeleteId.value === n.id ? (d(), l("div", ie, [
|
|
200
|
-
i("span", ne, v(e(s).usageCountFor(n.name) ? `Remove from ${e(s).usageCountFor(n.name)} staff?` : "Delete?"), 1),
|
|
201
|
-
o(c, {
|
|
202
|
-
hierarchy: "danger",
|
|
203
|
-
size: "sm",
|
|
204
|
-
class: "cfg-yes",
|
|
205
|
-
type: "button",
|
|
206
|
-
disabled: e(s).saving.value,
|
|
207
|
-
onClick: f((a) => e(s).confirmDelete(n.id), ["stop"])
|
|
208
|
-
}, {
|
|
209
|
-
default: r(() => [
|
|
210
|
-
u(v(e(s).saving.value ? "Deleting…" : "Delete"), 1)
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["disabled", "onClick"]),
|
|
214
|
-
o(c, {
|
|
215
|
-
hierarchy: "secondary",
|
|
216
|
-
size: "sm",
|
|
217
|
-
class: "cfg-no",
|
|
218
|
-
type: "button",
|
|
219
|
-
disabled: e(s).saving.value,
|
|
220
|
-
onClick: t[9] || (t[9] = f((a) => e(s).cancelDelete(), ["stop"]))
|
|
221
|
-
}, {
|
|
222
|
-
default: r(() => [...t[19] || (t[19] = [
|
|
223
|
-
u(" Keep ", -1)
|
|
224
|
-
])]),
|
|
225
|
-
_: 1
|
|
226
|
-
}, 8, ["disabled"])
|
|
227
|
-
])) : (d(), l(p, { key: 1 }, [
|
|
228
|
-
i("span", {
|
|
229
|
-
class: g(["cfg-used", { none: !e(s).usageCountFor(n.name) }])
|
|
230
|
-
}, v(e(s).usageCountFor(n.name) ? `${e(s).usageCountFor(n.name)} staff` : "unused"), 3),
|
|
231
|
-
o(c, {
|
|
232
|
-
hierarchy: "secondary",
|
|
233
|
-
size: "sm",
|
|
234
|
-
class: "cfg-btn",
|
|
235
|
-
type: "button",
|
|
236
|
-
onClick: f((a) => e(s).startEdit(n.id), ["stop"])
|
|
237
|
-
}, {
|
|
238
|
-
default: r(() => [...t[20] || (t[20] = [
|
|
239
|
-
u(" Edit ", -1)
|
|
240
|
-
])]),
|
|
241
|
-
_: 1
|
|
242
|
-
}, 8, ["onClick"]),
|
|
243
|
-
o(c, {
|
|
244
|
-
hierarchy: "ghost",
|
|
245
|
-
size: "sm",
|
|
246
|
-
"icon-only": "",
|
|
247
|
-
class: "cfg-del",
|
|
248
|
-
type: "button",
|
|
249
|
-
"aria-label": `Delete ${n.name}`,
|
|
250
|
-
onClick: f((a) => e(s).askDelete(n.id), ["stop"])
|
|
251
|
-
}, {
|
|
252
|
-
default: r(() => [...t[21] || (t[21] = [
|
|
253
|
-
i("svg", {
|
|
254
|
-
width: "14",
|
|
255
|
-
height: "14",
|
|
256
|
-
viewBox: "0 0 16 16",
|
|
257
|
-
fill: "none",
|
|
258
|
-
"aria-hidden": "true"
|
|
259
|
-
}, [
|
|
260
|
-
i("path", {
|
|
261
|
-
d: "M2.5 4.5h11M6 4.5V3a.8.8 0 0 1 .8-.8h2.4a.8.8 0 0 1 .8.8v1.5M4 4.5l.6 8.2a1 1 0 0 0 1 .93h4.8a1 1 0 0 0 1-.93l.6-8.2",
|
|
262
|
-
stroke: "currentColor",
|
|
263
|
-
"stroke-width": "1.4",
|
|
264
|
-
"stroke-linecap": "round",
|
|
265
|
-
"stroke-linejoin": "round"
|
|
266
|
-
}),
|
|
267
|
-
i("path", {
|
|
268
|
-
d: "M6.6 7v4M9.4 7v4",
|
|
269
|
-
stroke: "currentColor",
|
|
270
|
-
"stroke-width": "1.3",
|
|
271
|
-
"stroke-linecap": "round"
|
|
272
|
-
})
|
|
273
|
-
], -1)
|
|
274
|
-
])]),
|
|
275
|
-
_: 1
|
|
276
|
-
}, 8, ["aria-label", "onClick"])
|
|
277
|
-
], 64))
|
|
278
|
-
], 10, ee))
|
|
279
|
-
], 64))), 128))
|
|
280
|
-
]))
|
|
281
|
-
])
|
|
282
|
-
])
|
|
283
|
-
])
|
|
284
|
-
])
|
|
285
|
-
])
|
|
286
|
-
]),
|
|
287
|
-
o(B, { modal: e(k) }, null, 8, ["modal"])
|
|
288
|
-
], 512));
|
|
289
|
-
}
|
|
290
|
-
}), fe = /* @__PURE__ */ I(oe, [["__scopeId", "data-v-5285df68"]]);
|
|
291
|
-
export {
|
|
292
|
-
fe as default
|
|
293
|
-
};
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Z, useAttrs as ee, computed as m, ref as h, watch as te, nextTick as z, onBeforeUnmount as ne, createElementBlock as a, openBlock as i, normalizeClass as D, createElementVNode as p, createBlock as oe, mergeProps as le, toDisplayString as v, Teleport as ie, createCommentVNode as g, withDirectives as ae, vModelText as se, Fragment as _, renderList as ue, createTextVNode as re } from "vue";
|
|
2
|
-
const ce = ["disabled", "aria-expanded"], de = { class: "sch" }, pe = ["aria-multiselectable"], fe = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "fx-pop-head"
|
|
5
|
-
}, me = {
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "fx-pop-search"
|
|
8
|
-
}, he = {
|
|
9
|
-
key: 2,
|
|
10
|
-
class: "fx-opt is-off"
|
|
11
|
-
}, ve = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "fx-grp"
|
|
14
|
-
}, ye = ["aria-selected", "onClick"], be = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "fx-opt-text"
|
|
17
|
-
}, ke = { key: 0 }, ge = /* @__PURE__ */ Z({
|
|
18
|
-
inheritAttrs: !1,
|
|
19
|
-
__name: "ScheduleSelect",
|
|
20
|
-
props: {
|
|
21
|
-
modelValue: {},
|
|
22
|
-
options: {},
|
|
23
|
-
multiple: { type: Boolean },
|
|
24
|
-
selected: {},
|
|
25
|
-
placeholder: {},
|
|
26
|
-
disabled: { type: Boolean },
|
|
27
|
-
menuTitle: {},
|
|
28
|
-
searchable: { type: Boolean }
|
|
29
|
-
},
|
|
30
|
-
emits: ["update:modelValue", "toggle"],
|
|
31
|
-
setup(d, { emit: P }) {
|
|
32
|
-
const o = d, E = P, U = ee(), I = m(() => U.class ?? ""), u = h(!1), $ = h(null), y = h(null), b = h(null), O = m(() => {
|
|
33
|
-
var e, n;
|
|
34
|
-
if (o.multiple) {
|
|
35
|
-
const t = ((e = o.selected) == null ? void 0 : e.length) ?? 0;
|
|
36
|
-
return t ? `${t} selected` : o.placeholder ?? "";
|
|
37
|
-
}
|
|
38
|
-
return ((n = o.options.find((t) => t.value === o.modelValue)) == null ? void 0 : n.label) ?? "";
|
|
39
|
-
});
|
|
40
|
-
function B(e) {
|
|
41
|
-
var n;
|
|
42
|
-
return o.multiple ? !!((n = o.selected) != null && n.includes(e.value)) : e.value === o.modelValue;
|
|
43
|
-
}
|
|
44
|
-
const L = m(() => !!o.menuTitle || o.options.some((e) => e.hint)), f = h(""), H = h(null), S = m(() => {
|
|
45
|
-
const e = f.value.trim().toLowerCase();
|
|
46
|
-
return !o.searchable || !e ? o.options : o.options.filter((n) => `${n.label} ${n.hint ?? ""}`.toLowerCase().includes(e));
|
|
47
|
-
}), T = m(() => {
|
|
48
|
-
const e = [];
|
|
49
|
-
let n;
|
|
50
|
-
for (const t of S.value)
|
|
51
|
-
t.group !== n && (n = t.group, n && e.push({ heading: n })), e.push({ option: t });
|
|
52
|
-
return e;
|
|
53
|
-
}), k = 5, r = 8;
|
|
54
|
-
function M() {
|
|
55
|
-
const e = b.value, n = y.value;
|
|
56
|
-
if (!e || !n) return;
|
|
57
|
-
const t = n.getBoundingClientRect(), l = window.innerWidth || document.documentElement.clientWidth, s = window.innerHeight || document.documentElement.clientHeight;
|
|
58
|
-
e.style.minWidth = `${Math.round(t.width)}px`, e.style.maxWidth = `${Math.max(180, Math.round(l - r * 2))}px`;
|
|
59
|
-
const x = s - t.bottom - k - r, Q = t.top - k - r;
|
|
60
|
-
e.style.maxHeight = `${Math.max(120, Math.min(320, Math.max(x, Q)))}px`;
|
|
61
|
-
const w = e.offsetHeight, X = e.offsetWidth;
|
|
62
|
-
let C = t.bottom + k;
|
|
63
|
-
C + w > s - r && (C = t.top - k - w >= r ? t.top - k - w : Math.max(r, s - w - r));
|
|
64
|
-
const Y = Math.min(Math.max(r, t.left), Math.max(r, l - X - r));
|
|
65
|
-
e.style.top = `${Math.round(C)}px`, e.style.left = `${Math.round(Y)}px`, e.style.visibility = "visible";
|
|
66
|
-
}
|
|
67
|
-
function A(e) {
|
|
68
|
-
var t, l;
|
|
69
|
-
const n = e.target;
|
|
70
|
-
n && ((t = $.value) != null && t.contains(n) || (l = b.value) != null && l.contains(n)) || c();
|
|
71
|
-
}
|
|
72
|
-
function W(e) {
|
|
73
|
-
const n = b.value, t = e.target;
|
|
74
|
-
if (n && t && t !== document && n.contains(t)) return;
|
|
75
|
-
const l = y.value;
|
|
76
|
-
if (!l) return;
|
|
77
|
-
const s = l.getBoundingClientRect(), x = window.innerHeight || document.documentElement.clientHeight;
|
|
78
|
-
if (s.bottom < 0 || s.top > x) {
|
|
79
|
-
c();
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
M();
|
|
83
|
-
}
|
|
84
|
-
function R() {
|
|
85
|
-
document.addEventListener("click", A), document.addEventListener("scroll", W, !0), window.addEventListener("resize", c);
|
|
86
|
-
}
|
|
87
|
-
function q() {
|
|
88
|
-
document.removeEventListener("click", A), document.removeEventListener("scroll", W, !0), window.removeEventListener("resize", c);
|
|
89
|
-
}
|
|
90
|
-
async function V() {
|
|
91
|
-
var e, n, t;
|
|
92
|
-
o.disabled || u.value || (f.value = "", u.value = !0, await z(), M(), (e = H.value) == null || e.focus(), (t = (n = b.value) == null ? void 0 : n.querySelector(".fx-opt.is-on")) == null || t.scrollIntoView({ block: "nearest" }), R());
|
|
93
|
-
}
|
|
94
|
-
function c() {
|
|
95
|
-
u.value && (u.value = !1, f.value = "", q());
|
|
96
|
-
}
|
|
97
|
-
te(f, async () => {
|
|
98
|
-
u.value && (await z(), M());
|
|
99
|
-
});
|
|
100
|
-
function j(e) {
|
|
101
|
-
var n;
|
|
102
|
-
if (e.key === "Escape")
|
|
103
|
-
e.preventDefault(), c(), (n = y.value) == null || n.focus();
|
|
104
|
-
else if (e.key === "Enter") {
|
|
105
|
-
e.preventDefault();
|
|
106
|
-
const t = S.value.find((l) => !l.disabled);
|
|
107
|
-
t && N(t);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function K() {
|
|
111
|
-
u.value ? c() : V();
|
|
112
|
-
}
|
|
113
|
-
function N(e) {
|
|
114
|
-
if (!e.disabled) {
|
|
115
|
-
if (o.multiple && !e.command) {
|
|
116
|
-
E("toggle", e.value);
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
if (c(), o.multiple) {
|
|
120
|
-
E("update:modelValue", e.value);
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
e.value !== o.modelValue && E("update:modelValue", e.value);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
const F = m(() => o.options.filter((e) => !e.disabled));
|
|
127
|
-
function G(e) {
|
|
128
|
-
const n = F.value;
|
|
129
|
-
if (o.multiple || !n.length) {
|
|
130
|
-
V();
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
const t = n.findIndex((x) => x.value === o.modelValue), l = e === "Home" ? 0 : e === "End" ? n.length - 1 : e === "ArrowDown" ? Math.min(n.length - 1, (t < 0 ? -1 : t) + 1) : Math.max(0, (t < 0 ? 1 : t) - 1), s = n[l];
|
|
134
|
-
s && s.value !== o.modelValue ? E("update:modelValue", s.value) : V();
|
|
135
|
-
}
|
|
136
|
-
function J(e) {
|
|
137
|
-
var n;
|
|
138
|
-
if (e.key === "Escape") {
|
|
139
|
-
if (!u.value) return;
|
|
140
|
-
e.preventDefault(), c(), (n = y.value) == null || n.focus();
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
144
|
-
e.preventDefault(), K();
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Home" && e.key !== "End" || (e.preventDefault(), G(e.key));
|
|
148
|
-
}
|
|
149
|
-
return ne(q), (e, n) => (i(), a("div", {
|
|
150
|
-
ref_key: "rootEl",
|
|
151
|
-
ref: $,
|
|
152
|
-
class: D(["fx-sel", I.value])
|
|
153
|
-
}, [
|
|
154
|
-
p("button", le({
|
|
155
|
-
ref_key: "btnEl",
|
|
156
|
-
ref: y
|
|
157
|
-
}, e.$attrs, {
|
|
158
|
-
type: "button",
|
|
159
|
-
class: ["sch-input fx-btn", { "is-open": u.value }],
|
|
160
|
-
disabled: d.disabled,
|
|
161
|
-
"aria-haspopup": "listbox",
|
|
162
|
-
"aria-expanded": u.value,
|
|
163
|
-
onClick: n[0] || (n[0] = (t) => K()),
|
|
164
|
-
onKeydown: J
|
|
165
|
-
}), v(O.value), 17, ce),
|
|
166
|
-
(i(), oe(ie, { to: "body" }, [
|
|
167
|
-
p("div", de, [
|
|
168
|
-
u.value ? (i(), a("div", {
|
|
169
|
-
key: 0,
|
|
170
|
-
ref_key: "popEl",
|
|
171
|
-
ref: b,
|
|
172
|
-
class: D(["fx-pop", { "fx-pop-rich": L.value }]),
|
|
173
|
-
role: "listbox",
|
|
174
|
-
"aria-multiselectable": d.multiple || void 0,
|
|
175
|
-
style: { visibility: "hidden" }
|
|
176
|
-
}, [
|
|
177
|
-
d.menuTitle ? (i(), a("div", fe, v(d.menuTitle), 1)) : g("", !0),
|
|
178
|
-
d.searchable ? (i(), a("div", me, [
|
|
179
|
-
ae(p("input", {
|
|
180
|
-
ref_key: "searchEl",
|
|
181
|
-
ref: H,
|
|
182
|
-
"onUpdate:modelValue": n[1] || (n[1] = (t) => f.value = t),
|
|
183
|
-
class: "sch-input fx-pop-q",
|
|
184
|
-
type: "search",
|
|
185
|
-
placeholder: "Search",
|
|
186
|
-
autocomplete: "off",
|
|
187
|
-
spellcheck: "false",
|
|
188
|
-
"aria-label": "Search",
|
|
189
|
-
onKeydown: j
|
|
190
|
-
}, null, 544), [
|
|
191
|
-
[se, f.value]
|
|
192
|
-
])
|
|
193
|
-
])) : g("", !0),
|
|
194
|
-
d.searchable && !T.value.length ? (i(), a("div", he, "No matches")) : g("", !0),
|
|
195
|
-
(i(!0), a(_, null, ue(T.value, (t, l) => (i(), a(_, { key: l }, [
|
|
196
|
-
"heading" in t ? (i(), a("div", ve, v(t.heading), 1)) : (i(), a("div", {
|
|
197
|
-
key: 1,
|
|
198
|
-
class: D(["fx-opt", {
|
|
199
|
-
"is-on": B(t.option),
|
|
200
|
-
"is-off": t.option.disabled,
|
|
201
|
-
"is-new": t.option.command
|
|
202
|
-
}]),
|
|
203
|
-
role: "option",
|
|
204
|
-
"aria-selected": B(t.option),
|
|
205
|
-
onClick: (s) => N(t.option)
|
|
206
|
-
}, [
|
|
207
|
-
n[2] || (n[2] = p("span", {
|
|
208
|
-
class: "fx-tick",
|
|
209
|
-
"aria-hidden": "true"
|
|
210
|
-
}, [
|
|
211
|
-
p("svg", {
|
|
212
|
-
width: "11",
|
|
213
|
-
height: "11",
|
|
214
|
-
viewBox: "0 0 16 16",
|
|
215
|
-
fill: "none"
|
|
216
|
-
}, [
|
|
217
|
-
p("path", {
|
|
218
|
-
d: "m3.5 8.4 3 3 6-7",
|
|
219
|
-
stroke: "currentColor",
|
|
220
|
-
"stroke-width": "2.2",
|
|
221
|
-
"stroke-linecap": "round",
|
|
222
|
-
"stroke-linejoin": "round"
|
|
223
|
-
})
|
|
224
|
-
])
|
|
225
|
-
], -1)),
|
|
226
|
-
L.value ? (i(), a("span", be, [
|
|
227
|
-
p("b", null, v(t.option.label), 1),
|
|
228
|
-
t.option.hint ? (i(), a("small", ke, v(t.option.hint), 1)) : g("", !0)
|
|
229
|
-
])) : (i(), a(_, { key: 1 }, [
|
|
230
|
-
re(v(t.option.label), 1)
|
|
231
|
-
], 64))
|
|
232
|
-
], 10, ye))
|
|
233
|
-
], 64))), 128))
|
|
234
|
-
], 10, pe)) : g("", !0)
|
|
235
|
-
])
|
|
236
|
-
]))
|
|
237
|
-
], 2));
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
export {
|
|
241
|
-
ge as _
|
|
242
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { FdtoScheduleAutoScheduleObjective } from '@/types/schedule';
|
|
2
|
-
import type { CoverageSegment, Employee, Proposal } from '../types';
|
|
3
|
-
export interface SolverInput {
|
|
4
|
-
dayCount: number;
|
|
5
|
-
employees: Employee[];
|
|
6
|
-
/** Coverage of a day against an explicit set of employees (the working copy). */
|
|
7
|
-
segmentsWith: (dayIdx: number, employees: Employee[]) => CoverageSegment[];
|
|
8
|
-
/** Days the board will not take shifts on (locked week). */
|
|
9
|
-
skipDay: (dayIdx: number) => boolean;
|
|
10
|
-
objective: FdtoScheduleAutoScheduleObjective;
|
|
11
|
-
allowOvertime: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface SolverOutput {
|
|
14
|
-
proposals: Proposal[];
|
|
15
|
-
unfilled: number;
|
|
16
|
-
totalHours: number;
|
|
17
|
-
overtimeHours: number;
|
|
18
|
-
cost: number;
|
|
19
|
-
explanations: string[];
|
|
20
|
-
}
|
|
21
|
-
export declare function solveAutoSchedule(input: SolverInput): SolverOutput;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
-
import type { ScheduleAreaBoardApi } from './useScheduleAreaBoard';
|
|
3
|
-
export type ScheduleLegendKey = 'empty' | 'draft' | 'pub' | 'open' | 'warn' | 'ot' | 'leave';
|
|
4
|
-
export interface ScheduleLegendItem {
|
|
5
|
-
key: ScheduleLegendKey;
|
|
6
|
-
count: number;
|
|
7
|
-
label: string;
|
|
8
|
-
/** The warnings figure is the one worth acting on, so it renders as a control that
|
|
9
|
-
* cycles the grid through each conflict — see jumpToConflict(). */
|
|
10
|
-
action: boolean;
|
|
11
|
-
title?: string;
|
|
12
|
-
}
|
|
13
|
-
interface ScheduleConflictRef {
|
|
14
|
-
empId: number;
|
|
15
|
-
dayIdx: number;
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface ScheduleLegendBarOptions {
|
|
19
|
-
/** Toast for the conflict cycle — "Conflict 2 of 5 · Nadia, Wed". */
|
|
20
|
-
onJump?: (message: string) => void;
|
|
21
|
-
}
|
|
22
|
-
/** The footer legend under the scheduler: every state a card can be in, counted off the
|
|
23
|
-
* same records the grid renders. Ported from the mockup's renderLegend(). Every figure is
|
|
24
|
-
* scoped to the days currently on screen, except warnings — which counts the whole week, so
|
|
25
|
-
* the number stays stable while jumpToConflict() pages through days one at a time (the
|
|
26
|
-
* mockup's conflictCount() is likewise whole-data rather than span-scoped).
|
|
27
|
-
*
|
|
28
|
-
* Distinct from useScheduleLegend, which is the day header's coverage badges. */
|
|
29
|
-
export declare function useScheduleLegendBar(board: ScheduleBoardApi, areaBoard: ScheduleAreaBoardApi, opts?: ScheduleLegendBarOptions): {
|
|
30
|
-
items: import("vue").ComputedRef<ScheduleLegendItem[]>;
|
|
31
|
-
conflicts: import("vue").ComputedRef<ScheduleConflictRef[]>;
|
|
32
|
-
jumpToConflict: () => void;
|
|
33
|
-
};
|
|
34
|
-
export type ScheduleLegendBarApi = ReturnType<typeof useScheduleLegendBar>;
|
|
35
|
-
export {};
|