@feedmepos/mf-hrm-portal 2.3.0-dev.3 → 2.3.0-dev.31
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-SjyWZghY.js → ApprovalCodeList-CWch1fPp.js} +7 -7
- package/dist/{AuditLogList-aTI3QeO0.js → AuditLogList-Dghwxogp.js} +18 -19
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang--JTV7non.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BrZD73bP.js} +2 -2
- package/dist/{EmployeeList-D2Q_2ZE0.js → EmployeeList-BSrQTgKS.js} +255 -266
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-BaoNK72R.js} +6 -6
- package/dist/{GrantUserList-6YXLPuHR.js → GrantUserList-Cqlm7SC8.js} +8 -8
- package/dist/{Main-dSqOeBRJ.js → Main-Cv6emTjo.js} +11 -11
- package/dist/{Main-B-a6F9g8.js → Main-Cy39OsdC.js} +8 -8
- package/dist/{Main-CFIWlIaC.js → Main-GFkUfBG7.js} +5 -5
- package/dist/{PermissionSetList-DxkaPCMs.js → PermissionSetList-DckK2K9d.js} +19 -18
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CLegdfVG.js +4167 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-DQZ_w5uM.js → RoleList-Bfpgb4WK.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Tqp7ALu_.js +530 -0
- package/dist/ScheduleGeneralPage-DpvA2Qmg.js +776 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-DgXhOBUA.js +2457 -0
- package/dist/SchedulePage-DGBxv7Xl.js +19366 -0
- package/dist/{SchedulePositionPage-BGrZBU3g.js → SchedulePositionPage-CoDH-_GS.js} +79 -81
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-BmPl0nGk.js} +1 -1
- package/dist/{TeamMemberList-BiTHVJwE.js → TeamMemberList-C4sRgPCJ.js} +27 -27
- package/dist/{TimesheetList-CUkYacGW.js → TimesheetList-BvbGXbQJ.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B1Y587O-.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CjlquA4w.js} +3 -3
- package/dist/{app-CAKCDrbJ.js → app-P7IBQlke.js} +2891 -2474
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-CZ8QYRoc.js → dayjs.min-F98FDy4j.js} +1 -1
- package/dist/{employee-D56eWEFe.js → employee-1Xm80pW8.js} +51 -47
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-BVJdyLNq.js → iteration-BdSsaLV1.js} +1 -1
- package/dist/{lodash-BcIRkQPW.js → lodash-DbhAtFh7.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{restaurant-D7PEQjPY.js → restaurant-D2mfKHaH.js} +48 -48
- package/dist/{role-B-eZDaBX.js → role-BPGfYbnf.js} +2 -2
- package/dist/{rule-D6AIfx8b.js → rule-C3777WTe.js} +3 -3
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/schedule/index.d.ts +17 -2
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/stores/employee.d.ts +12 -12
- package/dist/src/types/schedule.d.ts +3 -4
- package/dist/src/views/audit-log/locales/index.d.ts +252 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -8
- package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleAutoScheduleDetailsModal.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -4
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +2 -6
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -1
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +1 -5
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -10
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +33 -0
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +46 -11
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -9
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +126 -4
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +86 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +3 -5
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +14 -3
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +20 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -3
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +48 -4
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +425 -29
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -4
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +70 -4
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -2
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +41 -3
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +47 -6
- package/dist/src/views/scheduling/country-rules/index.d.ts +9 -4
- package/dist/src/views/scheduling/data.d.ts +22 -1
- package/dist/src/views/scheduling/locales/index.d.ts +28 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +362 -298
- package/dist/src/views/scheduling/schedule-store.d.ts +41 -12
- package/dist/src/views/scheduling/types.d.ts +33 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-JFoghhRz.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-DHA0jrIr.js → useReportPermissions-CW4Tk5tm.js} +3 -3
- package/package.json +3 -2
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DnKckKZ0.js +0 -4167
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dr6QruG6.js +0 -470
- package/dist/ScheduleGeneralPage-CvskrXcV.js +0 -666
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-C4On5sVD.js +0 -2157
- package/dist/SchedulePage-CW-K836l.js +0 -18248
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +0 -23
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -124
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -4,7 +4,7 @@ import type { ScheduleAutoScheduleApi } from '../composables/useScheduleAutoSche
|
|
|
4
4
|
import type { ScheduleExportApi } from '../composables/useScheduleExport';
|
|
5
5
|
import type { SchedulePublishApi } from '../composables/useSchedulePublish';
|
|
6
6
|
type __VLS_Props = {
|
|
7
|
-
kind: 'onboarding' | 'tour' | 'export' | 'publish-share';
|
|
7
|
+
kind: 'onboarding' | 'tour' | 'auto-schedule' | 'export' | 'publish-share';
|
|
8
8
|
wizard?: ScheduleOnboardingWizardApi;
|
|
9
9
|
tour?: ScheduleTourApi;
|
|
10
10
|
autoSchedule?: ScheduleAutoScheduleApi;
|
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
open: boolean;
|
|
3
3
|
title: string;
|
|
4
4
|
message: string;
|
|
5
|
+
affectedDates?: string[];
|
|
5
6
|
/** `clash-q` gives the message an orange warning-callout background instead of plain text —
|
|
6
7
|
* used by the "might conflict" dialog, kept as an opt-in rather than the default look. */
|
|
7
8
|
messageClass?: string;
|
|
@@ -10,6 +11,7 @@ type __VLS_Props = {
|
|
|
10
11
|
* consequence of pressing the button. Omitted entirely when there's nothing to point to. */
|
|
11
12
|
note?: string;
|
|
12
13
|
confirmLabel?: string;
|
|
14
|
+
loading?: boolean;
|
|
13
15
|
cancelLabel?: string;
|
|
14
16
|
tone?: 'primary' | 'danger';
|
|
15
17
|
/** The "!" mark is for dialogs guarding something irreversible — a reversible action
|
|
@@ -24,9 +26,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
26
|
onConfirm?: (() => any) | undefined;
|
|
25
27
|
}>, {
|
|
26
28
|
icon: boolean;
|
|
29
|
+
loading: boolean;
|
|
27
30
|
confirmLabel: string;
|
|
28
|
-
tone: "primary" | "danger";
|
|
29
31
|
messageClass: string;
|
|
30
32
|
cancelLabel: string;
|
|
33
|
+
tone: "primary" | "danger";
|
|
31
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
35
|
export default _default;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
2
|
import type { ScheduleShiftActionsApi } from '../composables/useScheduleShiftActions';
|
|
3
|
-
import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
|
|
4
3
|
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
5
4
|
import type { ScheduleEmployeeMenuApi } from '../composables/useScheduleEmployeeMenu';
|
|
6
5
|
type __VLS_Props = {
|
|
7
|
-
kind: 'shift' | '
|
|
6
|
+
kind: 'shift' | 'employee';
|
|
8
7
|
board?: ScheduleBoardApi;
|
|
9
8
|
actions?: ScheduleShiftActionsApi;
|
|
10
|
-
openShiftMenu?: ScheduleOpenShiftCardApi;
|
|
11
9
|
popover?: ScheduleShiftPopoverApi;
|
|
12
10
|
employeeMenu?: ScheduleEmployeeMenuApi;
|
|
13
11
|
};
|
|
14
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
13
|
editShift: (empId: number, dayIdx: number, slotIndex: number) => any;
|
|
16
|
-
assign: (openId: number) => any;
|
|
17
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
15
|
onEditShift?: ((empId: number, dayIdx: number, slotIndex: number) => any) | undefined;
|
|
19
|
-
onAssign?: ((openId: number) => any) | undefined;
|
|
20
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
17
|
export default _default;
|
|
@@ -2,11 +2,16 @@ import type { ScheduleDayTimelineApi } from '../composables/useScheduleDayTimeli
|
|
|
2
2
|
import type { ScheduleRosterApi } from '../composables/useScheduleRoster';
|
|
3
3
|
import type { ScheduleViewMode } from '../composables/useScheduleFilterBar';
|
|
4
4
|
import type { ScheduleAreaDragDropApi } from '../composables/useScheduleAreaDragDrop';
|
|
5
|
+
import type { ScheduleDragDropApi } from '../composables/useScheduleDragDrop';
|
|
5
6
|
type __VLS_Props = {
|
|
6
7
|
timeline: ScheduleDayTimelineApi;
|
|
7
8
|
roster: ScheduleRosterApi;
|
|
8
9
|
mode: ScheduleViewMode;
|
|
9
10
|
dragDrop?: ScheduleAreaDragDropApi;
|
|
11
|
+
shiftDragDrop?: ScheduleDragDropApi;
|
|
12
|
+
onDropEmployee?: (employeeId: number, event: DragEvent, slotIndex?: number) => void;
|
|
13
|
+
onDropPosition?: (employeeId: number, event: DragEvent, slotIndex?: number) => void;
|
|
14
|
+
onDropPositionCell?: (position: string, event: DragEvent) => void;
|
|
10
15
|
};
|
|
11
16
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
17
|
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleOnboardingWizardApi } from '../composables/useScheduleOnboardingWizard';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ScheduleOnboardingWizardApi;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleOnboardingWizardApi } from '../composables/useScheduleOnboardingWizard';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ScheduleOnboardingWizardApi;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
export interface ScheduleSelectOption {
|
|
6
6
|
value: string;
|
|
7
7
|
label: string;
|
|
8
|
+
/** Stable identity used when two options can share the same display value. */
|
|
9
|
+
id?: string;
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
group?: string;
|
|
10
12
|
/** Second line under the label. Any option carrying one switches the menu to the rich
|
|
@@ -22,8 +24,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
24
|
* close the menu and emit `update:modelValue`. */
|
|
23
25
|
multiple?: boolean;
|
|
24
26
|
selected?: string[];
|
|
27
|
+
/** Stable selected identity for single-select menus whose labels may be duplicated. */
|
|
28
|
+
selectedId?: string;
|
|
25
29
|
/** Closed-control text while a multi-select has nothing picked. */
|
|
26
30
|
placeholder?: string;
|
|
31
|
+
/** Optional closed-control text for a selected value that is not available in the menu. */
|
|
32
|
+
selectedLabel?: string;
|
|
27
33
|
disabled?: boolean;
|
|
28
34
|
/** Heading over the menu. Also switches to the rich layout. */
|
|
29
35
|
menuTitle?: string;
|
|
@@ -42,8 +48,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
48
|
* close the menu and emit `update:modelValue`. */
|
|
43
49
|
multiple?: boolean;
|
|
44
50
|
selected?: string[];
|
|
51
|
+
/** Stable selected identity for single-select menus whose labels may be duplicated. */
|
|
52
|
+
selectedId?: string;
|
|
45
53
|
/** Closed-control text while a multi-select has nothing picked. */
|
|
46
54
|
placeholder?: string;
|
|
55
|
+
/** Optional closed-control text for a selected value that is not available in the menu. */
|
|
56
|
+
selectedLabel?: string;
|
|
47
57
|
disabled?: boolean;
|
|
48
58
|
/** Heading over the menu. Also switches to the rich layout. */
|
|
49
59
|
menuTitle?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
2
|
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
3
|
-
import type
|
|
3
|
+
import { type ScheduleTimePickerApi } from '../composables/useScheduleTimePicker';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
board: ScheduleBoardApi;
|
|
6
6
|
popover: ScheduleShiftPopoverApi;
|
|
@@ -2,15 +2,11 @@ import type { Proposal } from '../types';
|
|
|
2
2
|
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
3
3
|
import type { ScheduleDragDropApi } from '../composables/useScheduleDragDrop';
|
|
4
4
|
import type { ScheduleRosterApi } from '../composables/useScheduleRoster';
|
|
5
|
-
import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
|
|
6
|
-
import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
|
|
7
5
|
import type { ScheduleDemandRowApi } from '../composables/useScheduleDemandRow';
|
|
8
6
|
type __VLS_Props = {
|
|
9
7
|
board: ScheduleBoardApi;
|
|
10
8
|
dragDrop: ScheduleDragDropApi;
|
|
11
9
|
roster: ScheduleRosterApi;
|
|
12
|
-
openShiftCard: ScheduleOpenShiftCardApi;
|
|
13
|
-
allShiftsRow: ScheduleAllShiftsRowApi;
|
|
14
10
|
demandRow: ScheduleDemandRowApi;
|
|
15
11
|
proposalAt?: (empId: number, dayIdx: number) => Proposal | undefined;
|
|
16
12
|
};
|
|
@@ -23,9 +19,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
23
19
|
toggleProposal: (id: number) => any;
|
|
24
20
|
proposalDragStart: (id: number, ev: DragEvent) => any;
|
|
25
21
|
proposalDragEnd: () => any;
|
|
26
|
-
openAssign: (openId: number) => any;
|
|
27
|
-
openOpenShiftMenu: (openId: number, anchor: HTMLElement) => any;
|
|
28
|
-
addOpenShift: (dayIdx: number) => any;
|
|
29
22
|
segEnter: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
30
23
|
segLeave: () => any;
|
|
31
24
|
segClick: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
@@ -44,9 +37,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
44
37
|
onToggleProposal?: ((id: number) => any) | undefined;
|
|
45
38
|
onProposalDragStart?: ((id: number, ev: DragEvent) => any) | undefined;
|
|
46
39
|
onProposalDragEnd?: (() => any) | undefined;
|
|
47
|
-
onOpenAssign?: ((openId: number) => any) | undefined;
|
|
48
|
-
onOpenOpenShiftMenu?: ((openId: number, anchor: HTMLElement) => any) | undefined;
|
|
49
|
-
onAddOpenShift?: ((dayIdx: number) => any) | undefined;
|
|
50
40
|
onSegEnter?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
51
41
|
onSegLeave?: (() => any) | undefined;
|
|
52
42
|
onSegClick?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleObjective, FdtoScheduleAutoScheduleProposal, FdtoScheduleAutoScheduleResult } from '@/types/schedule';
|
|
2
|
+
import { ApiError } from '@/api';
|
|
3
|
+
import type { Proposal } from '../types';
|
|
4
|
+
/** ISO date of `dayIdx` in the week starting `weekKey` (YYYY-MM-DD, local arithmetic). */
|
|
5
|
+
export declare function dateOfProposal(weekKey: string, dayIdx: number): string;
|
|
6
|
+
/** Server proposals → board proposals for the week whose Monday is `weekKey`. A proposal whose
|
|
7
|
+
* date is not one of `dateKeyOf(0..RANGE_LEN-1)` or whose employee the board does not hold is
|
|
8
|
+
* dropped. Ids come from `nextId` so they stay unique across weeks. */
|
|
9
|
+
export declare function proposalsFromResult(proposals: FdtoScheduleAutoScheduleProposal[], weekKey: string, dateKeyOf: (dayIdx: number) => string | null, nextId: () => number, holds: (empId: number) => boolean): Proposal[];
|
|
10
|
+
/** The apply body for the accepted proposals, each re-dated from its own week and day. */
|
|
11
|
+
export declare function applyRequestOf(proposals: Proposal[], allowOvertime: boolean, status?: FdtoScheduleAutoScheduleApplyReq['status']): FdtoScheduleAutoScheduleApplyReq;
|
|
12
|
+
export interface ClassifiedExplanation {
|
|
13
|
+
kind: 'reject' | 'ai' | 'plain';
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
16
|
+
/** Sorts one `result.explanations` line into what the Details panel renders it as. The matched
|
|
17
|
+
* prefix is stripped from `text` in every case — the panel re-adds its own label/marker for
|
|
18
|
+
* `reject` and `ai`, so the raw wire prefix never doubles up with it. */
|
|
19
|
+
export declare function classifyExplanation(line: string): ClassifiedExplanation;
|
|
20
|
+
/** Whether `error` is a server refusal whose own message is meant for the user: a client error
|
|
21
|
+
* (0 < status < 500). A network failure (0) or a server error (5xx) is not. */
|
|
22
|
+
export declare function isClientRefusal(error: unknown): error is ApiError;
|
|
23
|
+
/** A client-error refusal shows its own message; a network failure or 5xx shows the generic one. */
|
|
24
|
+
export declare function generateErrorMessage(error: unknown): string;
|
|
25
|
+
/** The result shown when "fill gaps" is off: nothing proposed, one explanation. */
|
|
26
|
+
export declare function fillGapsOffResult(week: {
|
|
27
|
+
from: string;
|
|
28
|
+
to: string;
|
|
29
|
+
}, objective: FdtoScheduleAutoScheduleObjective, allowOvertime: boolean): FdtoScheduleAutoScheduleResult;
|
|
30
|
+
/** The snackbar shown once a run finishes, whether it went to the server or (fill gaps off) was
|
|
31
|
+
* answered locally. `wallMs` is measured client-side around the request — it is what the manager
|
|
32
|
+
* actually waited, not just the server's own `timing.totalMs`. */
|
|
33
|
+
export declare function generateDoneMessage(result: FdtoScheduleAutoScheduleResult, wallMs: number): string;
|
|
@@ -23,7 +23,8 @@ export interface TeamRow {
|
|
|
23
23
|
picked: boolean;
|
|
24
24
|
/** '' means "Any position" — a person with none. */
|
|
25
25
|
position: string;
|
|
26
|
-
|
|
26
|
+
/** Additional positions this employee also covers. */
|
|
27
|
+
second: string[];
|
|
27
28
|
employment: TeamEmployment;
|
|
28
29
|
maxHours: string;
|
|
29
30
|
rate: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type RemyDemandScope = {
|
|
2
|
+
mode: 'day';
|
|
3
|
+
isoDate: string;
|
|
4
|
+
label: string;
|
|
5
|
+
} | {
|
|
6
|
+
mode: 'weekday';
|
|
7
|
+
weekday: string;
|
|
8
|
+
} | {
|
|
9
|
+
mode: 'weekdays';
|
|
10
|
+
};
|
|
11
|
+
/** The text prefilled into the host Remy panel: one line naming the outlet and day, which the
|
|
12
|
+
* user continues with their demand. The "attach a roster image or describe it in words" guidance
|
|
13
|
+
* lives on the sheet's Ask Remy tooltip, not here. Names the outlet the way a manager knows it;
|
|
14
|
+
* Remy resolves it to an id itself (hrm_find_outlet), so no outlet id appears in the text. */
|
|
15
|
+
export declare function remyDemandPrompt(outletName: string, scope: RemyDemandScope): string;
|
|
@@ -11,12 +11,12 @@ export interface ScheduleAddEmployeeForm {
|
|
|
11
11
|
payBasis: 'hourly' | 'monthly';
|
|
12
12
|
payAmount: string;
|
|
13
13
|
maxHours: string;
|
|
14
|
+
maxHoursPerDay: string;
|
|
14
15
|
minHours: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
maxOtHours: string;
|
|
16
|
+
workingHoursEnabled: boolean;
|
|
17
|
+
overtimeEnabled: boolean;
|
|
18
|
+
/** Blank means no employee override; the outlet overtime setting is inherited. */
|
|
19
|
+
maxHoursPerMonth: string;
|
|
20
20
|
/** For a part-timer: days they CAN work. For a full-timer: days they're OFF — the
|
|
21
21
|
* mockup inverts the same array's meaning by employment type. */
|
|
22
22
|
availDays: boolean[];
|
|
@@ -31,9 +31,13 @@ export interface ScheduleAddEmployeeForm {
|
|
|
31
31
|
masterCode: string;
|
|
32
32
|
/** Gates the fields below it — someone can be fully scheduled with this off. */
|
|
33
33
|
posAccessEnabled: boolean;
|
|
34
|
-
/** WHAT the passcode opens the till as,
|
|
35
|
-
*
|
|
36
|
-
|
|
34
|
+
/** WHAT the passcode opens the till as, and WHERE — a row per outlet. Not restricted to the
|
|
35
|
+
* outlets picked in Work locations above: a floating manager can be rostered at one outlet
|
|
36
|
+
* and hold POS admin at several others. */
|
|
37
|
+
posRoles: {
|
|
38
|
+
outlet: string;
|
|
39
|
+
roleId: string;
|
|
40
|
+
}[];
|
|
37
41
|
}
|
|
38
42
|
/** A salaried month, for converting a monthly figure into the hourly one the cost rail
|
|
39
43
|
* actually reads. Ported verbatim from the mockup's MONTH_HOURS. */
|
|
@@ -6,6 +6,10 @@ export { isoDateKey } from './schedule-calendar';
|
|
|
6
6
|
export declare function isWorkSlot(slot: DaySlot): slot is WorkSlot;
|
|
7
7
|
export declare function isLeaveSlot(slot: DaySlot): slot is LeaveSlot;
|
|
8
8
|
export declare function workSlotsOf(day: DaySlot): WorkSlot[];
|
|
9
|
+
/** Whether two periods occupy any of the same working time. Endpoints that touch are
|
|
10
|
+
* back-to-back, not a conflict. Overnight ranges use the shared clock rules. */
|
|
11
|
+
export declare function shiftsOverlap(a: Pick<WorkSlot, 'start' | 'end'>, b: Pick<WorkSlot, 'start' | 'end'>): boolean;
|
|
12
|
+
export declare function overlapsAnotherSlot(slots: WorkSlot[], target: WorkSlot): boolean;
|
|
9
13
|
/** The inverse of `workSlotsOf` — bare slot for one, the array for two or more, so a day
|
|
10
14
|
* that's back down to its last period reads as a normal single shift again rather than a
|
|
11
15
|
* one-element array everything else has to unwrap. */
|
|
@@ -8,14 +8,12 @@ export declare function useScheduleDayMeta(dateKey: (dayIdx: number) => string |
|
|
|
8
8
|
onPersistError?: (message: string) => void;
|
|
9
9
|
}): {
|
|
10
10
|
dayNote: (dayIdx: number) => ScheduleDayNote | null;
|
|
11
|
-
setDayNote: (dayIdx: number, title: string, desc: string) => void;
|
|
11
|
+
setDayNote: (dayIdx: number, title: string, desc: string, isPublicHoliday?: boolean) => void;
|
|
12
12
|
clearDayNote: (dayIdx: number) => void;
|
|
13
13
|
isStandingClosedWeekday: (dayIdx: number) => boolean;
|
|
14
14
|
holidayName: (dayIdx: number) => string | null;
|
|
15
|
-
holidayIsAuto: (dayIdx: number) => boolean;
|
|
16
15
|
isPublicHoliday: (dayIdx: number) => boolean;
|
|
17
16
|
holidayRateApplies: (dayIdx: number) => boolean;
|
|
18
|
-
setHolidayNormal: (dayIdx: number, toNormal: boolean) => void;
|
|
19
17
|
setPublicHoliday: (dayIdx: number, on: boolean) => void;
|
|
20
18
|
otRateOn: (dayIdx: number) => number;
|
|
21
19
|
regularRateOn: (dayIdx: number) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DemandPeriod } from '../types';
|
|
1
|
+
import type { DemandPeriod, Employee } from '../types';
|
|
2
2
|
import { format12h as t12, formatShortMinutes as minToShort, fromMinutes as minToHHMM, spanMinutes as spanOf, toMinutes as toMin } from './schedule-time';
|
|
3
3
|
export { minToHHMM, minToShort, spanOf, t12, toMin };
|
|
4
4
|
export declare function rangeText(from: number, to: number): string;
|
|
@@ -9,3 +9,15 @@ export interface ScheduleCoverageAxis {
|
|
|
9
9
|
from: number;
|
|
10
10
|
to: number;
|
|
11
11
|
}
|
|
12
|
+
/** Fills named position rows from the people on, as a maximum matching (Kuhn's augmenting
|
|
13
|
+
* paths) so a flexible person is moved off one row when another row has nobody else. Rows are
|
|
14
|
+
* tried in the order given (scarcest first); within a row, main-position holders are offered
|
|
15
|
+
* first, then secondary holders, then people with no positions. Returns heads filled per row
|
|
16
|
+
* (same order as `rows`) and the ids spent. */
|
|
17
|
+
export declare function matchSlots(rows: Array<{
|
|
18
|
+
position: string;
|
|
19
|
+
required: number;
|
|
20
|
+
}>, on: Employee[], qualified: (e: Employee, position: string) => boolean): {
|
|
21
|
+
got: number[];
|
|
22
|
+
spent: Set<number>;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function errorMessage(error: unknown, fallback: string): string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CoverageSegment, Employee } from '../types';
|
|
2
|
+
import type { ScheduleCoverageAxis } from './schedule-demand-domain';
|
|
3
|
+
export interface QuickPickRules {
|
|
4
|
+
minHoursPerDay: number | null;
|
|
5
|
+
maxHoursPerDay: number | null;
|
|
6
|
+
}
|
|
7
|
+
export interface QuickPickCandidate {
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
/** Position name, or '' for any position. */
|
|
11
|
+
role: string;
|
|
12
|
+
/** Max short among the runs this shift covers. */
|
|
13
|
+
short: number;
|
|
14
|
+
label: string;
|
|
15
|
+
covers: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}
|
|
18
|
+
/** Up to 3 shifts for one employee on one day, built the way the auto-schedule planner builds
|
|
19
|
+
* them: one per (short run, position the person can fill), padded to their daily minimum,
|
|
20
|
+
* capped at their maximum, kept inside their availability window and clear of their existing
|
|
21
|
+
* shifts. Rest-gap and weekly-cap checks are left to the shift editor's own warnings. */
|
|
22
|
+
export declare function buildQuickPicks(emp: Employee, dayIdx: number, segments: CoverageSegment[], axis: ScheduleCoverageAxis, rules: QuickPickRules, qualifiedFor: (emp: Employee, position: string) => boolean): QuickPickCandidate[];
|
|
@@ -12,6 +12,9 @@ export declare function timeRangeBreakOf(sl: WorkSlot): {
|
|
|
12
12
|
startTime: string;
|
|
13
13
|
endTime: string;
|
|
14
14
|
} | null;
|
|
15
|
+
/** The two visible paid periods around a custom clock-window break. Shared by Weekly cards and
|
|
16
|
+
* Daily timeline bars so the split wording cannot drift between views. */
|
|
17
|
+
export declare function splitTimeLabels(sl: WorkSlot): [string, string] | null;
|
|
15
18
|
/** Same face as `t12`, but never drops the minutes — two ranges stacked on a split card need
|
|
16
19
|
* to line up at a glance, and "10am" next to "10:30am" reads as two different units. */
|
|
17
20
|
export declare function t12Full(hhmm: string): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useAppStore } from '@feedmepos/mf-remy-panel';
|
|
2
|
+
export interface RemyActivateOptions {
|
|
3
|
+
prompt?: string;
|
|
4
|
+
forceNewConversation?: boolean;
|
|
5
|
+
fullscreen?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** HRM never bundles or mounts a Remy panel of its own — `@feedmepos/mf-remy-panel` is externalised
|
|
8
|
+
* by the shared vite preset, so inside the host portal this import resolves to the ONE panel
|
|
9
|
+
* instance the host already created. The host portal owns initialisation (with env-specific
|
|
10
|
+
* backend/license URLs) before any HRM view mounts. HRM must never call `initializeRemyChat`:
|
|
11
|
+
* it re-initialises the shared panel instance and, without arguments, points it at production. */
|
|
12
|
+
export interface RemyAppStoreApi {
|
|
13
|
+
store: ReturnType<typeof useAppStore>;
|
|
14
|
+
activate: (options: RemyActivateOptions) => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare function useRemyAppStore(): RemyAppStoreApi;
|
|
@@ -21,10 +21,11 @@ export declare function useScheduleAddEmployee(board: ScheduleBoardApi, options?
|
|
|
21
21
|
payBasis: "hourly" | "monthly";
|
|
22
22
|
payAmount: string;
|
|
23
23
|
maxHours: string;
|
|
24
|
+
maxHoursPerDay: string;
|
|
24
25
|
minHours: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
workingHoursEnabled: boolean;
|
|
27
|
+
overtimeEnabled: boolean;
|
|
28
|
+
maxHoursPerMonth: string;
|
|
28
29
|
availDays: boolean[];
|
|
29
30
|
availHours: {
|
|
30
31
|
from: string;
|
|
@@ -38,7 +39,10 @@ export declare function useScheduleAddEmployee(board: ScheduleBoardApi, options?
|
|
|
38
39
|
masterUser: boolean;
|
|
39
40
|
masterCode: string;
|
|
40
41
|
posAccessEnabled: boolean;
|
|
41
|
-
|
|
42
|
+
posRoles: {
|
|
43
|
+
outlet: string;
|
|
44
|
+
roleId: string;
|
|
45
|
+
}[];
|
|
42
46
|
};
|
|
43
47
|
sectionId: import("vue").Ref<string, string>;
|
|
44
48
|
isEditing: import("vue").ComputedRef<boolean>;
|
|
@@ -50,16 +54,17 @@ export declare function useScheduleAddEmployee(board: ScheduleBoardApi, options?
|
|
|
50
54
|
dayLit: (index: number) => boolean;
|
|
51
55
|
avLabel: import("vue").ComputedRef<"Weekly availability" | "Time off days">;
|
|
52
56
|
avAllLabel: import("vue").ComputedRef<"Clear all" | "Select all" | "No days off" | "Every day off">;
|
|
53
|
-
maxHoursPlaceholder: import("vue").ComputedRef<
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
maxHoursPlaceholder: import("vue").ComputedRef<string>;
|
|
58
|
+
minHoursPlaceholder: import("vue").ComputedRef<string>;
|
|
59
|
+
maxHoursPerDayPlaceholder: import("vue").ComputedRef<string>;
|
|
60
|
+
maxHoursPerMonthPlaceholder: import("vue").ComputedRef<string>;
|
|
61
|
+
toggleOvertime: () => void;
|
|
56
62
|
payUnit: import("vue").ComputedRef<"/month" | "/hour">;
|
|
57
63
|
effectiveRate: import("vue").ComputedRef<number>;
|
|
58
64
|
passcodeValue: import("vue").ComputedRef<string>;
|
|
59
65
|
passcodeOk: import("vue").ComputedRef<boolean>;
|
|
60
66
|
currentLocationLabel: import("vue").ComputedRef<string>;
|
|
61
67
|
locationOptions: import("vue").Reactive<string[]>;
|
|
62
|
-
masterCodeError: import("vue").ComputedRef<boolean>;
|
|
63
68
|
isNewUser: import("vue").ComputedRef<boolean>;
|
|
64
69
|
footerHint: import("vue").ComputedRef<"Pick who — this outlet's own pay, position and hours are still set here." | "One short form. Rest days are set on their profile afterwards.">;
|
|
65
70
|
primaryRoleLabel: import("vue").ComputedRef<string>;
|
|
@@ -67,13 +72,34 @@ export declare function useScheduleAddEmployee(board: ScheduleBoardApi, options?
|
|
|
67
72
|
payLine: import("vue").ComputedRef<string>;
|
|
68
73
|
nameError: import("vue").ComputedRef<boolean>;
|
|
69
74
|
passError: import("vue").ComputedRef<boolean>;
|
|
75
|
+
posRolesError: import("vue").ComputedRef<boolean>;
|
|
70
76
|
availabilityError: import("vue").ComputedRef<boolean>;
|
|
71
77
|
saving: import("vue").Ref<boolean, boolean>;
|
|
72
78
|
saveError: import("vue").Ref<string | null, string | null>;
|
|
79
|
+
deferScheduleWrites: import("vue").Ref<boolean, boolean>;
|
|
73
80
|
candidatesLoading: import("vue").Ref<boolean, boolean>;
|
|
74
81
|
candidatesError: import("vue").Ref<string | null, string | null>;
|
|
82
|
+
selectingExisting: import("vue").Ref<boolean, boolean>;
|
|
83
|
+
candidates: import("vue").Ref<{
|
|
84
|
+
employeeId: string;
|
|
85
|
+
name: string;
|
|
86
|
+
otherOutlets: string[];
|
|
87
|
+
locations: string[];
|
|
88
|
+
}[], import("../types").ExistingStaffCandidate[] | {
|
|
89
|
+
employeeId: string;
|
|
90
|
+
name: string;
|
|
91
|
+
otherOutlets: string[];
|
|
92
|
+
locations: string[];
|
|
93
|
+
}[]>;
|
|
94
|
+
candidatesTotal: import("vue").Ref<number, number>;
|
|
95
|
+
candidatesPage: import("vue").Ref<number, number>;
|
|
96
|
+
candidatesPageItemCount: import("vue").Ref<number, number>;
|
|
97
|
+
candidatesPageSize: number;
|
|
98
|
+
searchExisting: (search: string) => void;
|
|
99
|
+
goToExistingPage: (page: number, search: string) => void;
|
|
75
100
|
openWizard: (section: string) => void;
|
|
76
101
|
openEditFor: (emp: Employee) => void;
|
|
102
|
+
confirmClose: () => void;
|
|
77
103
|
close: () => void;
|
|
78
104
|
setMode: (m: ScheduleAddEmployeeMode) => void;
|
|
79
105
|
openSelectExisting: () => void;
|
|
@@ -93,10 +119,19 @@ export declare function useScheduleAddEmployee(board: ScheduleBoardApi, options?
|
|
|
93
119
|
setAvailHour: (index: number, field: "from" | "to", value: string) => void;
|
|
94
120
|
copyAvailHourDown: (index: number) => void;
|
|
95
121
|
setPasscodeDigit: (index: number, value: string) => void;
|
|
96
|
-
generatePasscode: () => void
|
|
122
|
+
generatePasscode: () => Promise<void>;
|
|
123
|
+
isGeneratingPasscode: import("vue").Ref<boolean, boolean>;
|
|
97
124
|
togglePosAccess: () => void;
|
|
98
|
-
|
|
99
|
-
|
|
125
|
+
addPosRoleRow: () => void;
|
|
126
|
+
removePosRoleRow: (index: number) => void;
|
|
127
|
+
isCurrentOutletRow: (index: number) => boolean;
|
|
128
|
+
setPosRoleOutlet: (index: number, outlet: string) => void;
|
|
129
|
+
setPosRoleId: (index: number, roleId: string) => void;
|
|
130
|
+
posRoleOptionsFor: (outlet: string) => import("../../../types/role").Role[];
|
|
131
|
+
isPosRoleUsable: (role: import("../../../types/role").Role) => boolean;
|
|
132
|
+
setMasterUserRoleAccess: (roleIds: string[] | null | undefined) => void;
|
|
133
|
+
isPosOutletUsable: (outlet: string) => boolean;
|
|
134
|
+
posRolesHint: import("vue").ComputedRef<"" | "No outlet assigned, so their passcode will not open a till yet." | "The same outlet is listed twice — only the last role on it will apply.">;
|
|
100
135
|
create: () => Promise<boolean>;
|
|
101
136
|
};
|
|
102
137
|
export type ScheduleAddEmployeeApi = ReturnType<typeof useScheduleAddEmployee>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
2
|
import type { ScheduleDemandApi } from './useScheduleDemand';
|
|
3
|
+
import { type QuickPickCandidate } from './schedule-quick-pick';
|
|
3
4
|
import { type ScheduleAnchorRect } from './schedule-popover-position';
|
|
4
5
|
export interface ScheduleAddPickState {
|
|
5
6
|
open: boolean;
|
|
@@ -15,15 +16,6 @@ export interface ScheduleAddPickLeaveOption {
|
|
|
15
16
|
reason: string;
|
|
16
17
|
swatch: string;
|
|
17
18
|
}
|
|
18
|
-
export interface ScheduleAddPickSuggestion {
|
|
19
|
-
start: string;
|
|
20
|
-
end: string;
|
|
21
|
-
short: number;
|
|
22
|
-
label: string;
|
|
23
|
-
/** "Covers 16:00–22:00 demand" — the demand this offer answers, shown under the label. */
|
|
24
|
-
covers: string;
|
|
25
|
-
title: string;
|
|
26
|
-
}
|
|
27
19
|
/** The "+ Add" quick-pick popover on an employee's empty cell — ported from the mockup's
|
|
28
20
|
* openAddShiftPicker()/renderAddPickList(), scoped to what this board actually has: our one
|
|
29
21
|
* active shift pattern, a fixed leave-reason list, and a demand-gap suggestion, all committed
|
|
@@ -57,7 +49,7 @@ export declare function useScheduleAddPick(board: ScheduleBoardApi, demand: Sche
|
|
|
57
49
|
start: string;
|
|
58
50
|
end: string;
|
|
59
51
|
} | null>;
|
|
60
|
-
|
|
52
|
+
suggestions: import("vue").ComputedRef<QuickPickCandidate[]>;
|
|
61
53
|
filteredPatterns: import("vue").ComputedRef<{
|
|
62
54
|
key: string;
|
|
63
55
|
label: string;
|
|
@@ -71,7 +63,7 @@ export declare function useScheduleAddPick(board: ScheduleBoardApi, demand: Sche
|
|
|
71
63
|
hasResults: import("vue").ComputedRef<boolean>;
|
|
72
64
|
openFor: (empId: number, dayIdx: number, anchor: HTMLElement) => void;
|
|
73
65
|
close: () => void;
|
|
74
|
-
pickSuggested: () => void;
|
|
66
|
+
pickSuggested: (index: number) => void;
|
|
75
67
|
pickPattern: (key: string) => void;
|
|
76
68
|
pickTypedRange: (start: string, end: string) => void;
|
|
77
69
|
pickLeave: (reason: string) => void;
|
|
@@ -37,19 +37,6 @@ export declare function qualifiedFor(emp: Employee, position: string): boolean;
|
|
|
37
37
|
export declare function useScheduleAreaBoard(board: ScheduleBoardApi): {
|
|
38
38
|
positionRows: import("vue").ComputedRef<string[]>;
|
|
39
39
|
assignedOn: (dayIdx: number, position: string) => ScheduleAssignedSlot[];
|
|
40
|
-
unfilledOpenShiftsOn: (dayIdx: number, position: string) => {
|
|
41
|
-
id: number;
|
|
42
|
-
dayIdx: number;
|
|
43
|
-
position: string;
|
|
44
|
-
required: number;
|
|
45
|
-
filledBy: number | null;
|
|
46
|
-
sen?: "junior" | "senior" | undefined;
|
|
47
|
-
empType?: "full" | "part" | undefined;
|
|
48
|
-
name?: string | undefined;
|
|
49
|
-
start: string;
|
|
50
|
-
end: string;
|
|
51
|
-
breakMins?: number | undefined;
|
|
52
|
-
}[];
|
|
53
40
|
poolFor: (position: string) => Employee[];
|
|
54
41
|
cellMeta: (dayIdx: number, position: string) => SchedulePositionCellMeta;
|
|
55
42
|
positionWeekMeta: (position: string) => {
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import type { ScheduleBoardApi } from './useScheduleBoard';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* dropStaffOnCell(), scoped to this board's model (no "unspecialised, so ask what they can
|
|
5
|
-
* do" grant flow, no split shifts): dropping fills an existing open shift for that position/day
|
|
6
|
-
* if there is one, otherwise opens the shift editor pre-filled with this person, day and
|
|
7
|
-
* position so the manager sets the hours. */
|
|
8
|
-
export declare function useScheduleAreaDragDrop(board: ScheduleBoardApi, areaBoard: ScheduleAreaBoardApi, handlers: {
|
|
9
|
-
onFillOpenShift: (openId: number, empId: number) => void;
|
|
2
|
+
/** Dragging a person from the staff rail onto a position/day cell opens a normal assigned shift. */
|
|
3
|
+
export declare function useScheduleAreaDragDrop(board: ScheduleBoardApi, handlers: {
|
|
10
4
|
onCreateShift: (empId: number, dayIdx: number, position: string) => void;
|
|
11
|
-
onNotQualified: (empName: string, position: string) => void;
|
|
12
5
|
}): {
|
|
13
6
|
draggingEmpId: import("vue").Ref<number | null, number | null>;
|
|
14
7
|
startRailDrag: (empId: number) => void;
|