@feedmepos/mf-hrm-portal 2.2.5-dev.7 → 2.2.5-dev.8
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-dn-WwNAd.js → ApprovalCodeList-BzL73nqc.js} +2 -2
- package/dist/{AuditLogList-BqVp9fxD.js → AuditLogList-BEZoHLsX.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DnAet2oc.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DDrP7ywR.js} +2 -2
- package/dist/{EmployeeList-BwTJre5k.js → EmployeeList-s4FYw1ZF.js} +5 -5
- package/dist/{GrantUserList-CZek1r4F.js → GrantUserList-Ci_ElhHZ.js} +3 -3
- package/dist/{Main-MjSYZdOq.js → Main-BojQuzZI.js} +5 -5
- package/dist/{Main-DVA51sj2.js → Main-CKr3RGvf.js} +2 -2
- package/dist/{Main-CbmA-SYo.js → Main-N1CNGDAy.js} +9 -9
- package/dist/{PermissionSetList-lkHmXhNm.js → PermissionSetList-DLknSOzA.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-cFQDQCal.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DK2Bx8Aw.js} +772 -772
- package/dist/{RoleList-BSs0SmFo.js → RoleList-Cm7_q5l9.js} +7 -7
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DrJ1vA88.js +426 -0
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-DX5JR7bi.js +600 -0
- package/dist/ScheduleGeneralPage-CmR4BZAp.js +323 -0
- package/dist/SchedulePage-CN3ZsQ9E.js +13905 -0
- package/dist/SchedulePositionPage-Bv3zraaF.js +293 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-Buu8NEQf.js +221 -0
- package/dist/{TeamMemberList-Dit_nV6d.js → TeamMemberList-D2OfkfJP.js} +6 -6
- package/dist/{TimesheetList-B-FlRO7E.js → TimesheetList-DEdLpYuM.js} +4 -4
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DZUJR8K_.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BfMkNvCz.js} +1 -1
- package/dist/{app-BpnOPodL.js → app-Dmmpy4k-.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-4GLfSOGZ.js → dayjs.min-DcfKURXN.js} +1 -1
- package/dist/{employee-ChdVnSmd.js → employee-D3ZpYH4j.js} +3 -3
- package/dist/{index-DYoVJQTd.js → index-BxkisKEs.js} +1 -1
- package/dist/{index-CilJxsY7.js → index-D-VlxJu9.js} +1 -1
- package/dist/{lodash-CcFIMCiJ.js → lodash-p40sRkqQ.js} +1 -1
- package/dist/{role-OXCiWTVq.js → role-CM1urkJZ.js} +1 -1
- package/dist/{rule-8iyCO_LZ.js → rule-BPApyMJY.js} +2 -2
- package/dist/src/api/schedule/index.d.ts +0 -3
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +2 -4
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +1 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +14 -7
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +11 -2
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +8 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +5 -3
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +53 -3
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1181 -55
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +10 -1
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +5 -5
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/data.d.ts +6 -1
- package/dist/src/views/scheduling/schedule-store.d.ts +11 -1
- package/dist/src/views/scheduling/types.d.ts +9 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-C3fuFTUC.js → useReportPermissions-5EhPvVT9.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleGeneralPage-DD9n2TUe.js +0 -242
- package/dist/SchedulePage-B0X97zVC.js +0 -10761
- package/dist/SchedulePositionPage-BXz1USn3.js +0 -220
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DAHke2rH.js +0 -201
- package/dist/useScheduleOutlet-TPZJHgSY.js +0 -546
- package/dist/useSchedulePositions-DCkaKHQm.js +0 -103
|
@@ -1,14 +1,475 @@
|
|
|
1
1
|
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
2
|
import type { ScheduleAddEmployeeApi } from './useScheduleAddEmployee';
|
|
3
|
-
export type ScheduleOnboardingStep = '
|
|
3
|
+
export type ScheduleOnboardingStep = 'hours' | 'staffing' | 'positions' | 'team' | 'availability' | 'review';
|
|
4
4
|
export declare const STEP_LABELS: Record<ScheduleOnboardingStep, string>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export interface ScheduleOnboardingSession {
|
|
6
|
+
from: string;
|
|
7
|
+
to: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ScheduleOnboardingDayHours {
|
|
10
|
+
open: boolean;
|
|
11
|
+
sessions: ScheduleOnboardingSession[];
|
|
12
|
+
}
|
|
13
|
+
export interface ScheduleOnboardingRange {
|
|
14
|
+
from: string;
|
|
15
|
+
to: string;
|
|
16
|
+
/** Blank until typed: an unset range asks for nobody. */
|
|
17
|
+
n: number | null;
|
|
18
|
+
roles: Array<{
|
|
19
|
+
position: string;
|
|
20
|
+
n: number | null;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
export type TeamEmployment = 'full' | 'part';
|
|
24
|
+
export type TeamBasis = 'monthly' | 'hourly';
|
|
25
|
+
export interface TeamRow {
|
|
26
|
+
picked: boolean;
|
|
27
|
+
/** '' means "Any position" — a person with none. */
|
|
28
|
+
position: string;
|
|
29
|
+
second: string;
|
|
30
|
+
employment: TeamEmployment;
|
|
31
|
+
maxHours: string;
|
|
32
|
+
rate: string;
|
|
33
|
+
basis: TeamBasis;
|
|
34
|
+
}
|
|
35
|
+
export interface AvailDay {
|
|
36
|
+
on: boolean;
|
|
37
|
+
from: string;
|
|
38
|
+
to: string;
|
|
39
|
+
}
|
|
40
|
+
export interface AvailRow {
|
|
41
|
+
offDays: boolean[];
|
|
42
|
+
days: AvailDay[];
|
|
43
|
+
}
|
|
44
|
+
export interface ReviewRow {
|
|
45
|
+
step: ScheduleOnboardingStep;
|
|
46
|
+
title: string;
|
|
47
|
+
text: string;
|
|
48
|
+
sub?: string;
|
|
49
|
+
}
|
|
50
|
+
/** "Set up scheduling", step by step — V6.2's six-step flow. Positions, staffing demand and the
|
|
51
|
+
* team are real screens over real pieces. Operational hours start from the restaurant profile
|
|
52
|
+
* (RULES.dayHours / closedWeekdays) and are edited on a local copy: there is no scheduling
|
|
53
|
+
* endpoint for them yet (TODO: save them where the backend settles). Availability and Review are
|
|
54
|
+
* placeholders until their designs are ported. Finishing sets `scheduleSetupCompleted`. */
|
|
11
55
|
export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, addEmployee: ScheduleAddEmployeeApi): {
|
|
56
|
+
board: {
|
|
57
|
+
dayNote: (dayIdx: number) => import("../types").ScheduleDayNote | null;
|
|
58
|
+
setDayNote: (dayIdx: number, title: string, desc: string) => void;
|
|
59
|
+
clearDayNote: (dayIdx: number) => void;
|
|
60
|
+
toggleClosed: (dayIdx: number) => {
|
|
61
|
+
closed: boolean;
|
|
62
|
+
rostered: number;
|
|
63
|
+
};
|
|
64
|
+
isManuallyClosed: (dayIdx: number) => boolean;
|
|
65
|
+
isStandingClosedWeekday: (dayIdx: number) => boolean;
|
|
66
|
+
holidayName: (dayIdx: number) => string | null;
|
|
67
|
+
holidayIsAuto: (dayIdx: number) => boolean;
|
|
68
|
+
isPublicHoliday: (dayIdx: number) => boolean;
|
|
69
|
+
holidayRateApplies: (dayIdx: number) => boolean;
|
|
70
|
+
setHolidayNormal: (dayIdx: number, toNormal: boolean) => void;
|
|
71
|
+
setPublicHoliday: (dayIdx: number, on: boolean) => void;
|
|
72
|
+
otRateOn: (dayIdx: number) => number;
|
|
73
|
+
regularRateOn: (dayIdx: number) => number;
|
|
74
|
+
isHoliday: (dayIdx: number) => boolean;
|
|
75
|
+
employees: import("vue").Ref<{
|
|
76
|
+
id: number;
|
|
77
|
+
name: string;
|
|
78
|
+
role: string;
|
|
79
|
+
initials: string;
|
|
80
|
+
color: string;
|
|
81
|
+
weekHours: number;
|
|
82
|
+
pct: number;
|
|
83
|
+
contractHours?: number | undefined;
|
|
84
|
+
rate: number;
|
|
85
|
+
positions: string[];
|
|
86
|
+
shifts: ({
|
|
87
|
+
start: string;
|
|
88
|
+
end: string;
|
|
89
|
+
role: string;
|
|
90
|
+
status: import("../types").ShiftStatus;
|
|
91
|
+
clock?: {
|
|
92
|
+
in: string | null;
|
|
93
|
+
out: string | null;
|
|
94
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
95
|
+
} | undefined;
|
|
96
|
+
conflict?: boolean | undefined;
|
|
97
|
+
conflictReason?: string | undefined;
|
|
98
|
+
openId?: number | undefined;
|
|
99
|
+
breakMins?: number | undefined;
|
|
100
|
+
assignmentId?: string | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
timeOff: "approved" | "pending";
|
|
103
|
+
reason: string;
|
|
104
|
+
half?: boolean | undefined;
|
|
105
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
106
|
+
from?: string | undefined;
|
|
107
|
+
to?: string | undefined;
|
|
108
|
+
appliedOn?: string | undefined;
|
|
109
|
+
note?: string | undefined;
|
|
110
|
+
cert?: {
|
|
111
|
+
name: string;
|
|
112
|
+
size: string;
|
|
113
|
+
} | null | undefined;
|
|
114
|
+
bal?: {
|
|
115
|
+
type: string;
|
|
116
|
+
entitled: number;
|
|
117
|
+
used: number;
|
|
118
|
+
} | undefined;
|
|
119
|
+
} | {
|
|
120
|
+
start: string;
|
|
121
|
+
end: string;
|
|
122
|
+
role: string;
|
|
123
|
+
status: import("../types").ShiftStatus;
|
|
124
|
+
clock?: {
|
|
125
|
+
in: string | null;
|
|
126
|
+
out: string | null;
|
|
127
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
128
|
+
} | undefined;
|
|
129
|
+
conflict?: boolean | undefined;
|
|
130
|
+
conflictReason?: string | undefined;
|
|
131
|
+
openId?: number | undefined;
|
|
132
|
+
breakMins?: number | undefined;
|
|
133
|
+
assignmentId?: string | undefined;
|
|
134
|
+
}[] | null)[];
|
|
135
|
+
remarks: {
|
|
136
|
+
author: string;
|
|
137
|
+
date: string;
|
|
138
|
+
type: "note" | "warning" | "praise";
|
|
139
|
+
text: string;
|
|
140
|
+
}[];
|
|
141
|
+
section: string;
|
|
142
|
+
compGroup?: string | undefined;
|
|
143
|
+
mobile?: string | undefined;
|
|
144
|
+
dial?: string | undefined;
|
|
145
|
+
locations?: string[] | undefined;
|
|
146
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
147
|
+
payAmount?: number | undefined;
|
|
148
|
+
maxHours?: number | undefined;
|
|
149
|
+
maxOtHours?: number | undefined;
|
|
150
|
+
minHours?: number | undefined;
|
|
151
|
+
otAfterDaily?: number | undefined;
|
|
152
|
+
preferences?: string[] | undefined;
|
|
153
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
154
|
+
availDays?: boolean[] | undefined;
|
|
155
|
+
availHours?: {
|
|
156
|
+
from: string;
|
|
157
|
+
to: string;
|
|
158
|
+
}[] | undefined;
|
|
159
|
+
passcode?: string | undefined;
|
|
160
|
+
masterUser?: boolean | undefined;
|
|
161
|
+
}[], import("../types").Employee[] | {
|
|
162
|
+
id: number;
|
|
163
|
+
name: string;
|
|
164
|
+
role: string;
|
|
165
|
+
initials: string;
|
|
166
|
+
color: string;
|
|
167
|
+
weekHours: number;
|
|
168
|
+
pct: number;
|
|
169
|
+
contractHours?: number | undefined;
|
|
170
|
+
rate: number;
|
|
171
|
+
positions: string[];
|
|
172
|
+
shifts: ({
|
|
173
|
+
start: string;
|
|
174
|
+
end: string;
|
|
175
|
+
role: string;
|
|
176
|
+
status: import("../types").ShiftStatus;
|
|
177
|
+
clock?: {
|
|
178
|
+
in: string | null;
|
|
179
|
+
out: string | null;
|
|
180
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
181
|
+
} | undefined;
|
|
182
|
+
conflict?: boolean | undefined;
|
|
183
|
+
conflictReason?: string | undefined;
|
|
184
|
+
openId?: number | undefined;
|
|
185
|
+
breakMins?: number | undefined;
|
|
186
|
+
assignmentId?: string | undefined;
|
|
187
|
+
} | {
|
|
188
|
+
timeOff: "approved" | "pending";
|
|
189
|
+
reason: string;
|
|
190
|
+
half?: boolean | undefined;
|
|
191
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
192
|
+
from?: string | undefined;
|
|
193
|
+
to?: string | undefined;
|
|
194
|
+
appliedOn?: string | undefined;
|
|
195
|
+
note?: string | undefined;
|
|
196
|
+
cert?: {
|
|
197
|
+
name: string;
|
|
198
|
+
size: string;
|
|
199
|
+
} | null | undefined;
|
|
200
|
+
bal?: {
|
|
201
|
+
type: string;
|
|
202
|
+
entitled: number;
|
|
203
|
+
used: number;
|
|
204
|
+
} | undefined;
|
|
205
|
+
} | {
|
|
206
|
+
start: string;
|
|
207
|
+
end: string;
|
|
208
|
+
role: string;
|
|
209
|
+
status: import("../types").ShiftStatus;
|
|
210
|
+
clock?: {
|
|
211
|
+
in: string | null;
|
|
212
|
+
out: string | null;
|
|
213
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
214
|
+
} | undefined;
|
|
215
|
+
conflict?: boolean | undefined;
|
|
216
|
+
conflictReason?: string | undefined;
|
|
217
|
+
openId?: number | undefined;
|
|
218
|
+
breakMins?: number | undefined;
|
|
219
|
+
assignmentId?: string | undefined;
|
|
220
|
+
}[] | null)[];
|
|
221
|
+
remarks: {
|
|
222
|
+
author: string;
|
|
223
|
+
date: string;
|
|
224
|
+
type: "note" | "warning" | "praise";
|
|
225
|
+
text: string;
|
|
226
|
+
}[];
|
|
227
|
+
section: string;
|
|
228
|
+
compGroup?: string | undefined;
|
|
229
|
+
mobile?: string | undefined;
|
|
230
|
+
dial?: string | undefined;
|
|
231
|
+
locations?: string[] | undefined;
|
|
232
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
233
|
+
payAmount?: number | undefined;
|
|
234
|
+
maxHours?: number | undefined;
|
|
235
|
+
maxOtHours?: number | undefined;
|
|
236
|
+
minHours?: number | undefined;
|
|
237
|
+
otAfterDaily?: number | undefined;
|
|
238
|
+
preferences?: string[] | undefined;
|
|
239
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
240
|
+
availDays?: boolean[] | undefined;
|
|
241
|
+
availHours?: {
|
|
242
|
+
from: string;
|
|
243
|
+
to: string;
|
|
244
|
+
}[] | undefined;
|
|
245
|
+
passcode?: string | undefined;
|
|
246
|
+
masterUser?: boolean | undefined;
|
|
247
|
+
}[]>;
|
|
248
|
+
sections: import("vue").Ref<{
|
|
249
|
+
id: string;
|
|
250
|
+
label: string;
|
|
251
|
+
roles: string[];
|
|
252
|
+
system?: boolean | undefined;
|
|
253
|
+
}[], import("../types").Section[] | {
|
|
254
|
+
id: string;
|
|
255
|
+
label: string;
|
|
256
|
+
roles: string[];
|
|
257
|
+
system?: boolean | undefined;
|
|
258
|
+
}[]>;
|
|
259
|
+
openShifts: import("vue").Ref<{
|
|
260
|
+
id: number;
|
|
261
|
+
dayIdx: number;
|
|
262
|
+
position: string;
|
|
263
|
+
required: number;
|
|
264
|
+
filledBy: number | null;
|
|
265
|
+
sen?: "junior" | "senior" | undefined;
|
|
266
|
+
empType?: "full" | "part" | undefined;
|
|
267
|
+
name?: string | undefined;
|
|
268
|
+
start: string;
|
|
269
|
+
end: string;
|
|
270
|
+
breakMins?: number | undefined;
|
|
271
|
+
}[], import("../types").OpenShift[] | {
|
|
272
|
+
id: number;
|
|
273
|
+
dayIdx: number;
|
|
274
|
+
position: string;
|
|
275
|
+
required: number;
|
|
276
|
+
filledBy: number | null;
|
|
277
|
+
sen?: "junior" | "senior" | undefined;
|
|
278
|
+
empType?: "full" | "part" | undefined;
|
|
279
|
+
name?: string | undefined;
|
|
280
|
+
start: string;
|
|
281
|
+
end: string;
|
|
282
|
+
breakMins?: number | undefined;
|
|
283
|
+
}[]>;
|
|
284
|
+
highlightEmpId: import("vue").Ref<number | null, number | null>;
|
|
285
|
+
rangeStart: import("vue").Ref<Date, Date>;
|
|
286
|
+
weekOffset: import("vue").ComputedRef<number>;
|
|
287
|
+
peekWeek: (offset: number) => import("./schedule-week-cache").WeekBucket;
|
|
288
|
+
isRecentlySaved: (empId: number, dayIdx: number) => boolean;
|
|
289
|
+
isWeekLocked: (offset?: number) => boolean;
|
|
290
|
+
dayLocked: (dayIdx: number) => boolean;
|
|
291
|
+
pendingChanges: import("vue").Ref<{
|
|
292
|
+
empId: number;
|
|
293
|
+
dayIdx: number;
|
|
294
|
+
kind: "add" | "change" | "remove";
|
|
295
|
+
label: string;
|
|
296
|
+
}[], import("../types").PendingChange[] | {
|
|
297
|
+
empId: number;
|
|
298
|
+
dayIdx: number;
|
|
299
|
+
kind: "add" | "change" | "remove";
|
|
300
|
+
label: string;
|
|
301
|
+
}[]>;
|
|
302
|
+
unpublishedChanges: import("vue").ComputedRef<import("../types").PendingChange[]>;
|
|
303
|
+
persistPublish: (items: Array<{
|
|
304
|
+
empId: number;
|
|
305
|
+
dayIdx: number;
|
|
306
|
+
slot: import("../types").WorkSlot;
|
|
307
|
+
}>) => Promise<void>;
|
|
308
|
+
recordChange: (empId: number, dayIdx: number, kind: import("../types").PendingChange["kind"], label: string) => void;
|
|
309
|
+
scheduleVersions: import("vue").Ref<{
|
|
310
|
+
v: number;
|
|
311
|
+
at: Date;
|
|
312
|
+
by: string;
|
|
313
|
+
note: string;
|
|
314
|
+
changeCount: number;
|
|
315
|
+
staffAffected: number;
|
|
316
|
+
snapshot: {
|
|
317
|
+
id: number;
|
|
318
|
+
name: string;
|
|
319
|
+
weekHours: number;
|
|
320
|
+
shifts: ({
|
|
321
|
+
start: string;
|
|
322
|
+
end: string;
|
|
323
|
+
role: string;
|
|
324
|
+
status: import("../types").ShiftStatus;
|
|
325
|
+
clock?: {
|
|
326
|
+
in: string | null;
|
|
327
|
+
out: string | null;
|
|
328
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
329
|
+
} | undefined;
|
|
330
|
+
conflict?: boolean | undefined;
|
|
331
|
+
conflictReason?: string | undefined;
|
|
332
|
+
openId?: number | undefined;
|
|
333
|
+
breakMins?: number | undefined;
|
|
334
|
+
assignmentId?: string | undefined;
|
|
335
|
+
} | {
|
|
336
|
+
timeOff: "approved" | "pending";
|
|
337
|
+
reason: string;
|
|
338
|
+
half?: boolean | undefined;
|
|
339
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
340
|
+
from?: string | undefined;
|
|
341
|
+
to?: string | undefined;
|
|
342
|
+
appliedOn?: string | undefined;
|
|
343
|
+
note?: string | undefined;
|
|
344
|
+
cert?: {
|
|
345
|
+
name: string;
|
|
346
|
+
size: string;
|
|
347
|
+
} | null | undefined;
|
|
348
|
+
bal?: {
|
|
349
|
+
type: string;
|
|
350
|
+
entitled: number;
|
|
351
|
+
used: number;
|
|
352
|
+
} | undefined;
|
|
353
|
+
} | {
|
|
354
|
+
start: string;
|
|
355
|
+
end: string;
|
|
356
|
+
role: string;
|
|
357
|
+
status: import("../types").ShiftStatus;
|
|
358
|
+
clock?: {
|
|
359
|
+
in: string | null;
|
|
360
|
+
out: string | null;
|
|
361
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
362
|
+
} | undefined;
|
|
363
|
+
conflict?: boolean | undefined;
|
|
364
|
+
conflictReason?: string | undefined;
|
|
365
|
+
openId?: number | undefined;
|
|
366
|
+
breakMins?: number | undefined;
|
|
367
|
+
assignmentId?: string | undefined;
|
|
368
|
+
}[] | null)[];
|
|
369
|
+
}[];
|
|
370
|
+
}[], import("../types").ScheduleVersion[] | {
|
|
371
|
+
v: number;
|
|
372
|
+
at: Date;
|
|
373
|
+
by: string;
|
|
374
|
+
note: string;
|
|
375
|
+
changeCount: number;
|
|
376
|
+
staffAffected: number;
|
|
377
|
+
snapshot: {
|
|
378
|
+
id: number;
|
|
379
|
+
name: string;
|
|
380
|
+
weekHours: number;
|
|
381
|
+
shifts: ({
|
|
382
|
+
start: string;
|
|
383
|
+
end: string;
|
|
384
|
+
role: string;
|
|
385
|
+
status: import("../types").ShiftStatus;
|
|
386
|
+
clock?: {
|
|
387
|
+
in: string | null;
|
|
388
|
+
out: string | null;
|
|
389
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
390
|
+
} | undefined;
|
|
391
|
+
conflict?: boolean | undefined;
|
|
392
|
+
conflictReason?: string | undefined;
|
|
393
|
+
openId?: number | undefined;
|
|
394
|
+
breakMins?: number | undefined;
|
|
395
|
+
assignmentId?: string | undefined;
|
|
396
|
+
} | {
|
|
397
|
+
timeOff: "approved" | "pending";
|
|
398
|
+
reason: string;
|
|
399
|
+
half?: boolean | undefined;
|
|
400
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
401
|
+
from?: string | undefined;
|
|
402
|
+
to?: string | undefined;
|
|
403
|
+
appliedOn?: string | undefined;
|
|
404
|
+
note?: string | undefined;
|
|
405
|
+
cert?: {
|
|
406
|
+
name: string;
|
|
407
|
+
size: string;
|
|
408
|
+
} | null | undefined;
|
|
409
|
+
bal?: {
|
|
410
|
+
type: string;
|
|
411
|
+
entitled: number;
|
|
412
|
+
used: number;
|
|
413
|
+
} | undefined;
|
|
414
|
+
} | {
|
|
415
|
+
start: string;
|
|
416
|
+
end: string;
|
|
417
|
+
role: string;
|
|
418
|
+
status: import("../types").ShiftStatus;
|
|
419
|
+
clock?: {
|
|
420
|
+
in: string | null;
|
|
421
|
+
out: string | null;
|
|
422
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
423
|
+
} | undefined;
|
|
424
|
+
conflict?: boolean | undefined;
|
|
425
|
+
conflictReason?: string | undefined;
|
|
426
|
+
openId?: number | undefined;
|
|
427
|
+
breakMins?: number | undefined;
|
|
428
|
+
assignmentId?: string | undefined;
|
|
429
|
+
}[] | null)[];
|
|
430
|
+
}[];
|
|
431
|
+
}[]>;
|
|
432
|
+
lastUpdatedAt: import("vue").Ref<Date | null, Date | null>;
|
|
433
|
+
lastPublishedAt: import("vue").Ref<Date | null, Date | null>;
|
|
434
|
+
pushVersion: (note: string, opts?: Partial<import("../types").ScheduleVersion>) => import("../types").ScheduleVersion;
|
|
435
|
+
snapshotSchedule: () => import("../types").ScheduleVersionSnapshot[];
|
|
436
|
+
scheduleStatus: import("vue").ComputedRef<import("../types").ScheduleStatusInfo>;
|
|
437
|
+
conflictCount: () => number;
|
|
438
|
+
granularity: import("vue").Ref<import("./useScheduleBoard").ScheduleGranularity, import("./useScheduleBoard").ScheduleGranularity>;
|
|
439
|
+
focusDayIdx: import("vue").Ref<number, number>;
|
|
440
|
+
setGranularity: (value: import("./useScheduleBoard").ScheduleGranularity) => void;
|
|
441
|
+
dayDates: import("vue").ComputedRef<Date[]>;
|
|
442
|
+
dayLabels: import("vue").ComputedRef<string[]>;
|
|
443
|
+
visibleDayIndices: import("vue").ComputedRef<number[]>;
|
|
444
|
+
visibleDays: import("vue").ComputedRef<{
|
|
445
|
+
dayIdx: number;
|
|
446
|
+
date: Date;
|
|
447
|
+
}[]>;
|
|
448
|
+
rangeLabel: import("vue").ComputedRef<string>;
|
|
449
|
+
isToday: (dayIdx: number) => boolean;
|
|
450
|
+
dateKey: (dayIdx: number) => string | null;
|
|
451
|
+
navigate: (delta: number) => void;
|
|
452
|
+
goToday: () => void;
|
|
453
|
+
membersOf: (sectionId: string) => import("../types").Employee[];
|
|
454
|
+
sectionCost: (sectionId: string, members?: import("../types").Employee[]) => number;
|
|
455
|
+
totalWeeklyCost: import("vue").ComputedRef<number>;
|
|
456
|
+
employeeById: (id: number) => import("../types").Employee | undefined;
|
|
457
|
+
commitShift: (empId: number, dayIdx: number, slot: import("../types").WorkSlot | import("../types").WorkSlot[]) => void;
|
|
458
|
+
commitShiftAt: (offset: number, empId: number, dayIdx: number, slot: import("../types").WorkSlot | import("../types").WorkSlot[]) => void;
|
|
459
|
+
removeShift: (empId: number, dayIdx: number) => void;
|
|
460
|
+
removeShiftAt: (offset: number, empId: number, dayIdx: number) => void;
|
|
461
|
+
moveShift: (fromEmpId: number, fromDayIdx: number, toEmpId: number, toDayIdx: number) => boolean;
|
|
462
|
+
swapShifts: (empIdA: number, empIdB: number, dayIdx: number) => boolean;
|
|
463
|
+
clearShiftsInRange: () => {
|
|
464
|
+
shifts: number;
|
|
465
|
+
open: number;
|
|
466
|
+
leave: number;
|
|
467
|
+
};
|
|
468
|
+
requiredFor: (dayIdx: number, position: string) => number;
|
|
469
|
+
scheduledFor: (dayIdx: number, position: string) => number;
|
|
470
|
+
compGroupRate: (name: string | undefined) => number | undefined;
|
|
471
|
+
UNASSIGNED: string;
|
|
472
|
+
};
|
|
12
473
|
open: import("vue").Ref<boolean, boolean>;
|
|
13
474
|
step: import("vue").Ref<ScheduleOnboardingStep, ScheduleOnboardingStep>;
|
|
14
475
|
stepIndex: import("vue").ComputedRef<number>;
|
|
@@ -42,53 +503,718 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
|
|
|
42
503
|
cancelDelete: () => void;
|
|
43
504
|
confirmDelete: (id: string) => Promise<void>;
|
|
44
505
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
506
|
+
steps: ScheduleOnboardingStep[];
|
|
507
|
+
isSkippable: import("vue").ComputedRef<boolean>;
|
|
508
|
+
hours: import("vue").Reactive<ScheduleOnboardingDayHours[]>;
|
|
509
|
+
hoursMatchProfile: import("vue").ComputedRef<boolean>;
|
|
510
|
+
openDayCount: import("vue").ComputedRef<number>;
|
|
511
|
+
resetHours: () => void;
|
|
512
|
+
toggleDay: (dayIdx: number) => void;
|
|
513
|
+
addSession: (dayIdx: number) => void;
|
|
514
|
+
removeSession: (dayIdx: number, sessionIdx: number) => void;
|
|
515
|
+
setSessionTime: (dayIdx: number, sessionIdx: number, field: "from" | "to", value: string) => void;
|
|
516
|
+
demand: import("vue").Reactive<ScheduleOnboardingRange[][]>;
|
|
517
|
+
dmDay: import("vue").Ref<number, number>;
|
|
518
|
+
note: import("vue").Ref<string, string>;
|
|
519
|
+
staffingSaving: import("vue").Ref<boolean, boolean>;
|
|
520
|
+
namedPositions: import("vue").ComputedRef<string[]>;
|
|
521
|
+
suggestedPositions: import("vue").ComputedRef<string[]>;
|
|
522
|
+
daysSet: import("vue").ComputedRef<number>;
|
|
523
|
+
openDays: import("vue").ComputedRef<number[]>;
|
|
524
|
+
isShut: (dayIdx: number) => boolean;
|
|
525
|
+
dmPeak: (dayIdx: number) => number;
|
|
526
|
+
daySpan: (dayIdx: number) => string;
|
|
527
|
+
selectDay: (dayIdx: number) => void;
|
|
528
|
+
setRangeTime: (j: number, field: "from" | "to", value: string) => void;
|
|
529
|
+
setRangeCount: (j: number, value: string) => void;
|
|
530
|
+
addRange: () => void;
|
|
531
|
+
removeRange: (j: number) => void;
|
|
532
|
+
addRole: (j: number) => void;
|
|
533
|
+
setRole: (j: number, k: number, field: "position" | "n", value: string) => void;
|
|
534
|
+
removeRole: (j: number, k: number) => void;
|
|
535
|
+
namedTotal: (r: ScheduleOnboardingRange) => number;
|
|
536
|
+
copyDay: (mode: "all" | "wk" | "we") => void;
|
|
537
|
+
addPositionNamed: (name?: string) => void;
|
|
538
|
+
removePosition: (id: string) => void;
|
|
539
|
+
reviewRows: import("vue").ComputedRef<ReviewRow[]>;
|
|
540
|
+
goTo: (target: ScheduleOnboardingStep) => void;
|
|
541
|
+
avail: Record<number, AvailRow>;
|
|
542
|
+
avTab: import("vue").Ref<"full" | "part", "full" | "part">;
|
|
543
|
+
avPicked: Record<number, boolean>;
|
|
544
|
+
avBulkOpen: import("vue").Ref<boolean, boolean>;
|
|
545
|
+
avBulk: {
|
|
546
|
+
off: ("" | "y" | "n")[];
|
|
547
|
+
on: ("" | "y" | "n")[];
|
|
548
|
+
from: string;
|
|
549
|
+
to: string;
|
|
550
|
+
};
|
|
551
|
+
avBulkReady: import("vue").ComputedRef<boolean>;
|
|
552
|
+
avFulls: import("vue").ComputedRef<{
|
|
553
|
+
emp: {
|
|
554
|
+
id: number;
|
|
555
|
+
name: string;
|
|
556
|
+
role: string;
|
|
557
|
+
initials: string;
|
|
558
|
+
color: string;
|
|
559
|
+
weekHours: number;
|
|
560
|
+
pct: number;
|
|
561
|
+
contractHours?: number | undefined;
|
|
562
|
+
rate: number;
|
|
563
|
+
positions: string[];
|
|
564
|
+
shifts: ({
|
|
565
|
+
start: string;
|
|
566
|
+
end: string;
|
|
567
|
+
role: string;
|
|
568
|
+
status: import("../types").ShiftStatus;
|
|
569
|
+
clock?: {
|
|
570
|
+
in: string | null;
|
|
571
|
+
out: string | null;
|
|
572
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
573
|
+
} | undefined;
|
|
574
|
+
conflict?: boolean | undefined;
|
|
575
|
+
conflictReason?: string | undefined;
|
|
576
|
+
openId?: number | undefined;
|
|
577
|
+
breakMins?: number | undefined;
|
|
578
|
+
assignmentId?: string | undefined;
|
|
579
|
+
} | {
|
|
580
|
+
timeOff: "approved" | "pending";
|
|
581
|
+
reason: string;
|
|
582
|
+
half?: boolean | undefined;
|
|
583
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
584
|
+
from?: string | undefined;
|
|
585
|
+
to?: string | undefined;
|
|
586
|
+
appliedOn?: string | undefined;
|
|
587
|
+
note?: string | undefined;
|
|
588
|
+
cert?: {
|
|
589
|
+
name: string;
|
|
590
|
+
size: string;
|
|
591
|
+
} | null | undefined;
|
|
592
|
+
bal?: {
|
|
593
|
+
type: string;
|
|
594
|
+
entitled: number;
|
|
595
|
+
used: number;
|
|
596
|
+
} | undefined;
|
|
597
|
+
} | {
|
|
598
|
+
start: string;
|
|
599
|
+
end: string;
|
|
600
|
+
role: string;
|
|
601
|
+
status: import("../types").ShiftStatus;
|
|
602
|
+
clock?: {
|
|
603
|
+
in: string | null;
|
|
604
|
+
out: string | null;
|
|
605
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
606
|
+
} | undefined;
|
|
607
|
+
conflict?: boolean | undefined;
|
|
608
|
+
conflictReason?: string | undefined;
|
|
609
|
+
openId?: number | undefined;
|
|
610
|
+
breakMins?: number | undefined;
|
|
611
|
+
assignmentId?: string | undefined;
|
|
612
|
+
}[] | null)[];
|
|
613
|
+
remarks: {
|
|
614
|
+
author: string;
|
|
615
|
+
date: string;
|
|
616
|
+
type: "note" | "warning" | "praise";
|
|
617
|
+
text: string;
|
|
618
|
+
}[];
|
|
619
|
+
section: string;
|
|
620
|
+
compGroup?: string | undefined;
|
|
621
|
+
mobile?: string | undefined;
|
|
622
|
+
dial?: string | undefined;
|
|
623
|
+
locations?: string[] | undefined;
|
|
624
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
625
|
+
payAmount?: number | undefined;
|
|
626
|
+
maxHours?: number | undefined;
|
|
627
|
+
maxOtHours?: number | undefined;
|
|
628
|
+
minHours?: number | undefined;
|
|
629
|
+
otAfterDaily?: number | undefined;
|
|
630
|
+
preferences?: string[] | undefined;
|
|
631
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
632
|
+
availDays?: boolean[] | undefined;
|
|
633
|
+
availHours?: {
|
|
634
|
+
from: string;
|
|
635
|
+
to: string;
|
|
636
|
+
}[] | undefined;
|
|
637
|
+
passcode?: string | undefined;
|
|
638
|
+
masterUser?: boolean | undefined;
|
|
639
|
+
};
|
|
640
|
+
row: TeamRow;
|
|
641
|
+
}[]>;
|
|
642
|
+
avParts: import("vue").ComputedRef<{
|
|
643
|
+
emp: {
|
|
644
|
+
id: number;
|
|
645
|
+
name: string;
|
|
646
|
+
role: string;
|
|
647
|
+
initials: string;
|
|
648
|
+
color: string;
|
|
649
|
+
weekHours: number;
|
|
650
|
+
pct: number;
|
|
651
|
+
contractHours?: number | undefined;
|
|
652
|
+
rate: number;
|
|
653
|
+
positions: string[];
|
|
654
|
+
shifts: ({
|
|
655
|
+
start: string;
|
|
656
|
+
end: string;
|
|
657
|
+
role: string;
|
|
658
|
+
status: import("../types").ShiftStatus;
|
|
659
|
+
clock?: {
|
|
660
|
+
in: string | null;
|
|
661
|
+
out: string | null;
|
|
662
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
663
|
+
} | undefined;
|
|
664
|
+
conflict?: boolean | undefined;
|
|
665
|
+
conflictReason?: string | undefined;
|
|
666
|
+
openId?: number | undefined;
|
|
667
|
+
breakMins?: number | undefined;
|
|
668
|
+
assignmentId?: string | undefined;
|
|
669
|
+
} | {
|
|
670
|
+
timeOff: "approved" | "pending";
|
|
671
|
+
reason: string;
|
|
672
|
+
half?: boolean | undefined;
|
|
673
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
674
|
+
from?: string | undefined;
|
|
675
|
+
to?: string | undefined;
|
|
676
|
+
appliedOn?: string | undefined;
|
|
677
|
+
note?: string | undefined;
|
|
678
|
+
cert?: {
|
|
679
|
+
name: string;
|
|
680
|
+
size: string;
|
|
681
|
+
} | null | undefined;
|
|
682
|
+
bal?: {
|
|
683
|
+
type: string;
|
|
684
|
+
entitled: number;
|
|
685
|
+
used: number;
|
|
686
|
+
} | undefined;
|
|
687
|
+
} | {
|
|
688
|
+
start: string;
|
|
689
|
+
end: string;
|
|
690
|
+
role: string;
|
|
691
|
+
status: import("../types").ShiftStatus;
|
|
692
|
+
clock?: {
|
|
693
|
+
in: string | null;
|
|
694
|
+
out: string | null;
|
|
695
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
696
|
+
} | undefined;
|
|
697
|
+
conflict?: boolean | undefined;
|
|
698
|
+
conflictReason?: string | undefined;
|
|
699
|
+
openId?: number | undefined;
|
|
700
|
+
breakMins?: number | undefined;
|
|
701
|
+
assignmentId?: string | undefined;
|
|
702
|
+
}[] | null)[];
|
|
703
|
+
remarks: {
|
|
704
|
+
author: string;
|
|
705
|
+
date: string;
|
|
706
|
+
type: "note" | "warning" | "praise";
|
|
707
|
+
text: string;
|
|
708
|
+
}[];
|
|
709
|
+
section: string;
|
|
710
|
+
compGroup?: string | undefined;
|
|
711
|
+
mobile?: string | undefined;
|
|
712
|
+
dial?: string | undefined;
|
|
713
|
+
locations?: string[] | undefined;
|
|
714
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
715
|
+
payAmount?: number | undefined;
|
|
716
|
+
maxHours?: number | undefined;
|
|
717
|
+
maxOtHours?: number | undefined;
|
|
718
|
+
minHours?: number | undefined;
|
|
719
|
+
otAfterDaily?: number | undefined;
|
|
720
|
+
preferences?: string[] | undefined;
|
|
721
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
722
|
+
availDays?: boolean[] | undefined;
|
|
723
|
+
availHours?: {
|
|
724
|
+
from: string;
|
|
725
|
+
to: string;
|
|
726
|
+
}[] | undefined;
|
|
727
|
+
passcode?: string | undefined;
|
|
728
|
+
masterUser?: boolean | undefined;
|
|
729
|
+
};
|
|
730
|
+
row: TeamRow;
|
|
731
|
+
}[]>;
|
|
732
|
+
avGroup: import("vue").ComputedRef<{
|
|
733
|
+
emp: {
|
|
734
|
+
id: number;
|
|
735
|
+
name: string;
|
|
736
|
+
role: string;
|
|
737
|
+
initials: string;
|
|
738
|
+
color: string;
|
|
739
|
+
weekHours: number;
|
|
740
|
+
pct: number;
|
|
741
|
+
contractHours?: number | undefined;
|
|
742
|
+
rate: number;
|
|
743
|
+
positions: string[];
|
|
744
|
+
shifts: ({
|
|
745
|
+
start: string;
|
|
746
|
+
end: string;
|
|
747
|
+
role: string;
|
|
748
|
+
status: import("../types").ShiftStatus;
|
|
749
|
+
clock?: {
|
|
750
|
+
in: string | null;
|
|
751
|
+
out: string | null;
|
|
752
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
753
|
+
} | undefined;
|
|
754
|
+
conflict?: boolean | undefined;
|
|
755
|
+
conflictReason?: string | undefined;
|
|
756
|
+
openId?: number | undefined;
|
|
757
|
+
breakMins?: number | undefined;
|
|
758
|
+
assignmentId?: string | undefined;
|
|
759
|
+
} | {
|
|
760
|
+
timeOff: "approved" | "pending";
|
|
761
|
+
reason: string;
|
|
762
|
+
half?: boolean | undefined;
|
|
763
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
764
|
+
from?: string | undefined;
|
|
765
|
+
to?: string | undefined;
|
|
766
|
+
appliedOn?: string | undefined;
|
|
767
|
+
note?: string | undefined;
|
|
768
|
+
cert?: {
|
|
769
|
+
name: string;
|
|
770
|
+
size: string;
|
|
771
|
+
} | null | undefined;
|
|
772
|
+
bal?: {
|
|
773
|
+
type: string;
|
|
774
|
+
entitled: number;
|
|
775
|
+
used: number;
|
|
776
|
+
} | undefined;
|
|
777
|
+
} | {
|
|
778
|
+
start: string;
|
|
779
|
+
end: string;
|
|
780
|
+
role: string;
|
|
781
|
+
status: import("../types").ShiftStatus;
|
|
782
|
+
clock?: {
|
|
783
|
+
in: string | null;
|
|
784
|
+
out: string | null;
|
|
785
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
786
|
+
} | undefined;
|
|
787
|
+
conflict?: boolean | undefined;
|
|
788
|
+
conflictReason?: string | undefined;
|
|
789
|
+
openId?: number | undefined;
|
|
790
|
+
breakMins?: number | undefined;
|
|
791
|
+
assignmentId?: string | undefined;
|
|
792
|
+
}[] | null)[];
|
|
793
|
+
remarks: {
|
|
794
|
+
author: string;
|
|
795
|
+
date: string;
|
|
796
|
+
type: "note" | "warning" | "praise";
|
|
797
|
+
text: string;
|
|
798
|
+
}[];
|
|
799
|
+
section: string;
|
|
800
|
+
compGroup?: string | undefined;
|
|
801
|
+
mobile?: string | undefined;
|
|
802
|
+
dial?: string | undefined;
|
|
803
|
+
locations?: string[] | undefined;
|
|
804
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
805
|
+
payAmount?: number | undefined;
|
|
806
|
+
maxHours?: number | undefined;
|
|
807
|
+
maxOtHours?: number | undefined;
|
|
808
|
+
minHours?: number | undefined;
|
|
809
|
+
otAfterDaily?: number | undefined;
|
|
810
|
+
preferences?: string[] | undefined;
|
|
811
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
812
|
+
availDays?: boolean[] | undefined;
|
|
813
|
+
availHours?: {
|
|
814
|
+
from: string;
|
|
815
|
+
to: string;
|
|
816
|
+
}[] | undefined;
|
|
817
|
+
passcode?: string | undefined;
|
|
818
|
+
masterUser?: boolean | undefined;
|
|
819
|
+
};
|
|
820
|
+
row: TeamRow;
|
|
821
|
+
}[]>;
|
|
822
|
+
avSelected: import("vue").ComputedRef<{
|
|
823
|
+
emp: {
|
|
824
|
+
id: number;
|
|
825
|
+
name: string;
|
|
826
|
+
role: string;
|
|
827
|
+
initials: string;
|
|
828
|
+
color: string;
|
|
829
|
+
weekHours: number;
|
|
830
|
+
pct: number;
|
|
831
|
+
contractHours?: number | undefined;
|
|
832
|
+
rate: number;
|
|
833
|
+
positions: string[];
|
|
834
|
+
shifts: ({
|
|
835
|
+
start: string;
|
|
836
|
+
end: string;
|
|
837
|
+
role: string;
|
|
838
|
+
status: import("../types").ShiftStatus;
|
|
839
|
+
clock?: {
|
|
840
|
+
in: string | null;
|
|
841
|
+
out: string | null;
|
|
842
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
843
|
+
} | undefined;
|
|
844
|
+
conflict?: boolean | undefined;
|
|
845
|
+
conflictReason?: string | undefined;
|
|
846
|
+
openId?: number | undefined;
|
|
847
|
+
breakMins?: number | undefined;
|
|
848
|
+
assignmentId?: string | undefined;
|
|
849
|
+
} | {
|
|
850
|
+
timeOff: "approved" | "pending";
|
|
851
|
+
reason: string;
|
|
852
|
+
half?: boolean | undefined;
|
|
853
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
854
|
+
from?: string | undefined;
|
|
855
|
+
to?: string | undefined;
|
|
856
|
+
appliedOn?: string | undefined;
|
|
857
|
+
note?: string | undefined;
|
|
858
|
+
cert?: {
|
|
859
|
+
name: string;
|
|
860
|
+
size: string;
|
|
861
|
+
} | null | undefined;
|
|
862
|
+
bal?: {
|
|
863
|
+
type: string;
|
|
864
|
+
entitled: number;
|
|
865
|
+
used: number;
|
|
866
|
+
} | undefined;
|
|
867
|
+
} | {
|
|
868
|
+
start: string;
|
|
869
|
+
end: string;
|
|
870
|
+
role: string;
|
|
871
|
+
status: import("../types").ShiftStatus;
|
|
872
|
+
clock?: {
|
|
873
|
+
in: string | null;
|
|
874
|
+
out: string | null;
|
|
875
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
876
|
+
} | undefined;
|
|
877
|
+
conflict?: boolean | undefined;
|
|
878
|
+
conflictReason?: string | undefined;
|
|
879
|
+
openId?: number | undefined;
|
|
880
|
+
breakMins?: number | undefined;
|
|
881
|
+
assignmentId?: string | undefined;
|
|
882
|
+
}[] | null)[];
|
|
883
|
+
remarks: {
|
|
884
|
+
author: string;
|
|
885
|
+
date: string;
|
|
886
|
+
type: "note" | "warning" | "praise";
|
|
887
|
+
text: string;
|
|
888
|
+
}[];
|
|
889
|
+
section: string;
|
|
890
|
+
compGroup?: string | undefined;
|
|
891
|
+
mobile?: string | undefined;
|
|
892
|
+
dial?: string | undefined;
|
|
893
|
+
locations?: string[] | undefined;
|
|
894
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
895
|
+
payAmount?: number | undefined;
|
|
896
|
+
maxHours?: number | undefined;
|
|
897
|
+
maxOtHours?: number | undefined;
|
|
898
|
+
minHours?: number | undefined;
|
|
899
|
+
otAfterDaily?: number | undefined;
|
|
900
|
+
preferences?: string[] | undefined;
|
|
901
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
902
|
+
availDays?: boolean[] | undefined;
|
|
903
|
+
availHours?: {
|
|
904
|
+
from: string;
|
|
905
|
+
to: string;
|
|
906
|
+
}[] | undefined;
|
|
907
|
+
passcode?: string | undefined;
|
|
908
|
+
masterUser?: boolean | undefined;
|
|
78
909
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
910
|
+
row: TeamRow;
|
|
911
|
+
}[]>;
|
|
912
|
+
avFullDone: import("vue").ComputedRef<number>;
|
|
913
|
+
avPartDone: import("vue").ComputedRef<number>;
|
|
914
|
+
avOffCount: (dayIdx: number) => number | null;
|
|
915
|
+
avFullSub: (empId: number) => string;
|
|
916
|
+
avPartSummary: (empId: number) => string;
|
|
917
|
+
avShowsByDay: (empId: number) => boolean;
|
|
918
|
+
canDays: (empId: number) => number[];
|
|
919
|
+
avPickAll: (checked: boolean) => void;
|
|
920
|
+
toggleOff: (empId: number, dayIdx: number) => void;
|
|
921
|
+
toggleCan: (empId: number, dayIdx: number) => void;
|
|
922
|
+
setAvailTime: (empId: number, dayIdx: number | null, field: "from" | "to", v: string) => void;
|
|
923
|
+
toggleVary: (empId: number) => void;
|
|
924
|
+
bulkDay: (which: "off" | "on", dayIdx: number) => void;
|
|
925
|
+
applyAvBulk: () => void;
|
|
926
|
+
skip: () => void;
|
|
927
|
+
teamRows: import("vue").ComputedRef<{
|
|
928
|
+
emp: {
|
|
929
|
+
id: number;
|
|
930
|
+
name: string;
|
|
931
|
+
role: string;
|
|
932
|
+
initials: string;
|
|
933
|
+
color: string;
|
|
934
|
+
weekHours: number;
|
|
935
|
+
pct: number;
|
|
936
|
+
contractHours?: number | undefined;
|
|
937
|
+
rate: number;
|
|
938
|
+
positions: string[];
|
|
939
|
+
shifts: ({
|
|
940
|
+
start: string;
|
|
941
|
+
end: string;
|
|
942
|
+
role: string;
|
|
943
|
+
status: import("../types").ShiftStatus;
|
|
944
|
+
clock?: {
|
|
945
|
+
in: string | null;
|
|
946
|
+
out: string | null;
|
|
947
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
948
|
+
} | undefined;
|
|
949
|
+
conflict?: boolean | undefined;
|
|
950
|
+
conflictReason?: string | undefined;
|
|
951
|
+
openId?: number | undefined;
|
|
952
|
+
breakMins?: number | undefined;
|
|
953
|
+
assignmentId?: string | undefined;
|
|
954
|
+
} | {
|
|
955
|
+
timeOff: "approved" | "pending";
|
|
956
|
+
reason: string;
|
|
957
|
+
half?: boolean | undefined;
|
|
958
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
959
|
+
from?: string | undefined;
|
|
960
|
+
to?: string | undefined;
|
|
961
|
+
appliedOn?: string | undefined;
|
|
962
|
+
note?: string | undefined;
|
|
963
|
+
cert?: {
|
|
964
|
+
name: string;
|
|
965
|
+
size: string;
|
|
966
|
+
} | null | undefined;
|
|
967
|
+
bal?: {
|
|
968
|
+
type: string;
|
|
969
|
+
entitled: number;
|
|
970
|
+
used: number;
|
|
971
|
+
} | undefined;
|
|
972
|
+
} | {
|
|
973
|
+
start: string;
|
|
974
|
+
end: string;
|
|
975
|
+
role: string;
|
|
976
|
+
status: import("../types").ShiftStatus;
|
|
977
|
+
clock?: {
|
|
978
|
+
in: string | null;
|
|
979
|
+
out: string | null;
|
|
980
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
981
|
+
} | undefined;
|
|
982
|
+
conflict?: boolean | undefined;
|
|
983
|
+
conflictReason?: string | undefined;
|
|
984
|
+
openId?: number | undefined;
|
|
985
|
+
breakMins?: number | undefined;
|
|
986
|
+
assignmentId?: string | undefined;
|
|
987
|
+
}[] | null)[];
|
|
988
|
+
remarks: {
|
|
989
|
+
author: string;
|
|
990
|
+
date: string;
|
|
991
|
+
type: "note" | "warning" | "praise";
|
|
992
|
+
text: string;
|
|
993
|
+
}[];
|
|
994
|
+
section: string;
|
|
995
|
+
compGroup?: string | undefined;
|
|
996
|
+
mobile?: string | undefined;
|
|
997
|
+
dial?: string | undefined;
|
|
998
|
+
locations?: string[] | undefined;
|
|
999
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
1000
|
+
payAmount?: number | undefined;
|
|
1001
|
+
maxHours?: number | undefined;
|
|
1002
|
+
maxOtHours?: number | undefined;
|
|
1003
|
+
minHours?: number | undefined;
|
|
1004
|
+
otAfterDaily?: number | undefined;
|
|
1005
|
+
preferences?: string[] | undefined;
|
|
1006
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
1007
|
+
availDays?: boolean[] | undefined;
|
|
1008
|
+
availHours?: {
|
|
1009
|
+
from: string;
|
|
1010
|
+
to: string;
|
|
1011
|
+
}[] | undefined;
|
|
1012
|
+
passcode?: string | undefined;
|
|
1013
|
+
masterUser?: boolean | undefined;
|
|
1014
|
+
};
|
|
1015
|
+
row: TeamRow;
|
|
1016
|
+
}[]>;
|
|
1017
|
+
teamPicked: import("vue").ComputedRef<number>;
|
|
1018
|
+
teamAllPicked: import("vue").ComputedRef<boolean>;
|
|
1019
|
+
teamSomePicked: import("vue").ComputedRef<boolean>;
|
|
1020
|
+
pickAll: (checked: boolean) => void;
|
|
1021
|
+
setPosition: (empId: number, value: string) => void;
|
|
1022
|
+
setEmployment: (empId: number, kind: TeamEmployment) => void;
|
|
1023
|
+
setHours: (empId: number, v: string) => void;
|
|
1024
|
+
setRate: (empId: number, v: string) => void;
|
|
1025
|
+
bulkOpen: import("vue").Ref<boolean, boolean>;
|
|
1026
|
+
bulk: {
|
|
1027
|
+
scope: "all" | "full" | "part" | "nopos" | "nopay";
|
|
1028
|
+
position: string;
|
|
1029
|
+
second: string;
|
|
1030
|
+
employment: "" | TeamEmployment;
|
|
1031
|
+
maxHours: string;
|
|
1032
|
+
rate: string;
|
|
1033
|
+
basis: "" | TeamBasis;
|
|
84
1034
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1035
|
+
bulkCount: import("vue").ComputedRef<number>;
|
|
1036
|
+
applyBulk: () => void;
|
|
1037
|
+
BULK_NONE: string;
|
|
1038
|
+
remainingCommon: import("vue").ComputedRef<string[]>;
|
|
1039
|
+
ANY_POSITION_KEY: string;
|
|
1040
|
+
holdersOf: (key: string) => {
|
|
1041
|
+
id: number;
|
|
1042
|
+
name: string;
|
|
1043
|
+
role: string;
|
|
1044
|
+
initials: string;
|
|
1045
|
+
color: string;
|
|
1046
|
+
weekHours: number;
|
|
1047
|
+
pct: number;
|
|
1048
|
+
contractHours?: number | undefined;
|
|
1049
|
+
rate: number;
|
|
1050
|
+
positions: string[];
|
|
1051
|
+
shifts: ({
|
|
1052
|
+
start: string;
|
|
1053
|
+
end: string;
|
|
1054
|
+
role: string;
|
|
1055
|
+
status: import("../types").ShiftStatus;
|
|
1056
|
+
clock?: {
|
|
1057
|
+
in: string | null;
|
|
1058
|
+
out: string | null;
|
|
1059
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
1060
|
+
} | undefined;
|
|
1061
|
+
conflict?: boolean | undefined;
|
|
1062
|
+
conflictReason?: string | undefined;
|
|
1063
|
+
openId?: number | undefined;
|
|
1064
|
+
breakMins?: number | undefined;
|
|
1065
|
+
assignmentId?: string | undefined;
|
|
1066
|
+
} | {
|
|
1067
|
+
timeOff: "approved" | "pending";
|
|
1068
|
+
reason: string;
|
|
1069
|
+
half?: boolean | undefined;
|
|
1070
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
1071
|
+
from?: string | undefined;
|
|
1072
|
+
to?: string | undefined;
|
|
1073
|
+
appliedOn?: string | undefined;
|
|
1074
|
+
note?: string | undefined;
|
|
1075
|
+
cert?: {
|
|
1076
|
+
name: string;
|
|
1077
|
+
size: string;
|
|
1078
|
+
} | null | undefined;
|
|
1079
|
+
bal?: {
|
|
1080
|
+
type: string;
|
|
1081
|
+
entitled: number;
|
|
1082
|
+
used: number;
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
} | {
|
|
1085
|
+
start: string;
|
|
1086
|
+
end: string;
|
|
1087
|
+
role: string;
|
|
1088
|
+
status: import("../types").ShiftStatus;
|
|
1089
|
+
clock?: {
|
|
1090
|
+
in: string | null;
|
|
1091
|
+
out: string | null;
|
|
1092
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
1093
|
+
} | undefined;
|
|
1094
|
+
conflict?: boolean | undefined;
|
|
1095
|
+
conflictReason?: string | undefined;
|
|
1096
|
+
openId?: number | undefined;
|
|
1097
|
+
breakMins?: number | undefined;
|
|
1098
|
+
assignmentId?: string | undefined;
|
|
1099
|
+
}[] | null)[];
|
|
1100
|
+
remarks: {
|
|
1101
|
+
author: string;
|
|
1102
|
+
date: string;
|
|
1103
|
+
type: "note" | "warning" | "praise";
|
|
1104
|
+
text: string;
|
|
1105
|
+
}[];
|
|
1106
|
+
section: string;
|
|
1107
|
+
compGroup?: string | undefined;
|
|
1108
|
+
mobile?: string | undefined;
|
|
1109
|
+
dial?: string | undefined;
|
|
1110
|
+
locations?: string[] | undefined;
|
|
1111
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
1112
|
+
payAmount?: number | undefined;
|
|
1113
|
+
maxHours?: number | undefined;
|
|
1114
|
+
maxOtHours?: number | undefined;
|
|
1115
|
+
minHours?: number | undefined;
|
|
1116
|
+
otAfterDaily?: number | undefined;
|
|
1117
|
+
preferences?: string[] | undefined;
|
|
1118
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
1119
|
+
availDays?: boolean[] | undefined;
|
|
1120
|
+
availHours?: {
|
|
1121
|
+
from: string;
|
|
1122
|
+
to: string;
|
|
1123
|
+
}[] | undefined;
|
|
1124
|
+
passcode?: string | undefined;
|
|
1125
|
+
masterUser?: boolean | undefined;
|
|
1126
|
+
}[];
|
|
1127
|
+
candidatesFor: (key: string) => {
|
|
1128
|
+
id: number;
|
|
1129
|
+
name: string;
|
|
1130
|
+
role: string;
|
|
1131
|
+
initials: string;
|
|
1132
|
+
color: string;
|
|
1133
|
+
weekHours: number;
|
|
1134
|
+
pct: number;
|
|
1135
|
+
contractHours?: number | undefined;
|
|
1136
|
+
rate: number;
|
|
1137
|
+
positions: string[];
|
|
1138
|
+
shifts: ({
|
|
1139
|
+
start: string;
|
|
1140
|
+
end: string;
|
|
1141
|
+
role: string;
|
|
1142
|
+
status: import("../types").ShiftStatus;
|
|
1143
|
+
clock?: {
|
|
1144
|
+
in: string | null;
|
|
1145
|
+
out: string | null;
|
|
1146
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
conflict?: boolean | undefined;
|
|
1149
|
+
conflictReason?: string | undefined;
|
|
1150
|
+
openId?: number | undefined;
|
|
1151
|
+
breakMins?: number | undefined;
|
|
1152
|
+
assignmentId?: string | undefined;
|
|
1153
|
+
} | {
|
|
1154
|
+
timeOff: "approved" | "pending";
|
|
1155
|
+
reason: string;
|
|
1156
|
+
half?: boolean | undefined;
|
|
1157
|
+
halfPart?: "AM" | "PM" | undefined;
|
|
1158
|
+
from?: string | undefined;
|
|
1159
|
+
to?: string | undefined;
|
|
1160
|
+
appliedOn?: string | undefined;
|
|
1161
|
+
note?: string | undefined;
|
|
1162
|
+
cert?: {
|
|
1163
|
+
name: string;
|
|
1164
|
+
size: string;
|
|
1165
|
+
} | null | undefined;
|
|
1166
|
+
bal?: {
|
|
1167
|
+
type: string;
|
|
1168
|
+
entitled: number;
|
|
1169
|
+
used: number;
|
|
1170
|
+
} | undefined;
|
|
1171
|
+
} | {
|
|
1172
|
+
start: string;
|
|
1173
|
+
end: string;
|
|
1174
|
+
role: string;
|
|
1175
|
+
status: import("../types").ShiftStatus;
|
|
1176
|
+
clock?: {
|
|
1177
|
+
in: string | null;
|
|
1178
|
+
out: string | null;
|
|
1179
|
+
status: "on-time" | "late" | "early-out" | "absent";
|
|
1180
|
+
} | undefined;
|
|
1181
|
+
conflict?: boolean | undefined;
|
|
1182
|
+
conflictReason?: string | undefined;
|
|
1183
|
+
openId?: number | undefined;
|
|
1184
|
+
breakMins?: number | undefined;
|
|
1185
|
+
assignmentId?: string | undefined;
|
|
1186
|
+
}[] | null)[];
|
|
1187
|
+
remarks: {
|
|
1188
|
+
author: string;
|
|
1189
|
+
date: string;
|
|
1190
|
+
type: "note" | "warning" | "praise";
|
|
1191
|
+
text: string;
|
|
1192
|
+
}[];
|
|
1193
|
+
section: string;
|
|
1194
|
+
compGroup?: string | undefined;
|
|
1195
|
+
mobile?: string | undefined;
|
|
1196
|
+
dial?: string | undefined;
|
|
1197
|
+
locations?: string[] | undefined;
|
|
1198
|
+
payBasis?: "hourly" | "monthly" | undefined;
|
|
1199
|
+
payAmount?: number | undefined;
|
|
1200
|
+
maxHours?: number | undefined;
|
|
1201
|
+
maxOtHours?: number | undefined;
|
|
1202
|
+
minHours?: number | undefined;
|
|
1203
|
+
otAfterDaily?: number | undefined;
|
|
1204
|
+
preferences?: string[] | undefined;
|
|
1205
|
+
seniority?: "senior" | "junior" | "" | undefined;
|
|
1206
|
+
availDays?: boolean[] | undefined;
|
|
1207
|
+
availHours?: {
|
|
1208
|
+
from: string;
|
|
1209
|
+
to: string;
|
|
1210
|
+
}[] | undefined;
|
|
1211
|
+
passcode?: string | undefined;
|
|
1212
|
+
masterUser?: boolean | undefined;
|
|
1213
|
+
}[];
|
|
1214
|
+
posPicker: import("vue").Ref<string | null, string | null>;
|
|
1215
|
+
togglePicker: (key: string) => void;
|
|
1216
|
+
assignTo: (empId: number, key: string) => Promise<void>;
|
|
1217
|
+
unassign: (empId: number, key: string) => Promise<void>;
|
|
92
1218
|
employeeCount: import("vue").ComputedRef<number>;
|
|
93
1219
|
addEmployee: {
|
|
94
1220
|
open: import("vue").Ref<boolean, boolean>;
|
|
@@ -104,6 +1230,7 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
|
|
|
104
1230
|
payBasis: "hourly" | "monthly";
|
|
105
1231
|
payAmount: string;
|
|
106
1232
|
maxHours: string;
|
|
1233
|
+
minHours: string;
|
|
107
1234
|
otAfterDaily: string;
|
|
108
1235
|
maxOtHours: string;
|
|
109
1236
|
availDays: boolean[];
|
|
@@ -170,10 +1297,9 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
|
|
|
170
1297
|
};
|
|
171
1298
|
openWizard: () => void;
|
|
172
1299
|
close: () => void;
|
|
173
|
-
next: () => void
|
|
1300
|
+
next: () => Promise<void>;
|
|
174
1301
|
back: () => void;
|
|
175
|
-
|
|
176
|
-
submitStaffing: () => Promise<void>;
|
|
1302
|
+
jump: (idx: number) => void;
|
|
177
1303
|
addTeamMember: () => void;
|
|
178
1304
|
};
|
|
179
1305
|
export type ScheduleOnboardingWizardApi = ReturnType<typeof useScheduleOnboardingWizard>;
|