@feedmepos/mf-hrm-portal 2.2.5-dev → 2.2.5-dev.4
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-DgcWZ3SZ.js → ApprovalCodeList-D0B_X3Sf.js} +4 -4
- package/dist/{AuditLogList-vWKMMGvd.js → AuditLogList-D9anf4YQ.js} +18 -17
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js} +2 -2
- package/dist/EmployeeList-DREDu3Ou.js +788 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
- package/dist/{GrantUserList-BAW0C1bA.js → GrantUserList-CLDshEN9.js} +5 -5
- package/dist/{Main-Wr6cTqfM.js → Main-DtMaG42L.js} +2 -2
- package/dist/{Main-NzpdRNB3.js → Main-QhQxU593.js} +5 -5
- package/dist/{Main-B7Nn8CLQ.js → Main-lqlb8tPw.js} +9 -9
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D6AFOleD.js → PermissionSetList-BK8yBpJJ.js} +22 -21
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-uSdvH81B.js} +924 -923
- package/dist/{RoleList-BuqpmXn_.js → RoleList-D6AX6BqB.js} +7 -7
- package/dist/ScheduleGeneralPage-DAECTCDu.js +242 -0
- package/dist/SchedulePage-CdFR7JuO.js +10751 -0
- package/dist/SchedulePositionPage-DTtKg0sx.js +220 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +199 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/TeamMemberList-BM5JoR6J.js +1155 -0
- package/dist/{TimesheetList-B5FyVyCz.js → TimesheetList-Ch_f_PD5.js} +54 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CxqxqwyD.js} +2 -2
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-8samJY5z.js → app-tDHL6k4G.js} +3092 -2499
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Ba4X_9nY.js → dayjs.min-B_XWc0Hu.js} +1 -1
- package/dist/employee-Bs_2vqBY.js +139 -0
- package/dist/index-Cz2b95YF.js +70 -0
- package/dist/{iteration-Dhdew1jW.js → index-jxRluZiW.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-CJ3mHku0.js → lodash-D5vM3paU.js} +1 -1
- package/dist/{role-BViYS7RK.js → role-7ccipEEe.js} +4 -3
- package/dist/{rule-Dxt1ZSQS.js → rule-7faruCdz.js} +282 -277
- package/dist/src/api/schedule/index.d.ts +44 -0
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -0
- package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/withShell.d.ts +14 -0
- package/dist/src/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -0
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/schedule.d.ts +232 -0
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +4 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +4 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +34 -0
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +31 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +54 -0
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +67 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +38 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +29 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +86 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +66 -0
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +113 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +136 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +415 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +48 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +82 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +68 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +139 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +26 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +80 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +179 -0
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +91 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +183 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +225 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +174 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +44 -0
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
- package/dist/src/views/scheduling/data.d.ts +105 -0
- package/dist/src/views/scheduling/locales/index.d.ts +496 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +116 -0
- package/dist/src/views/scheduling/types.d.ts +311 -0
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +12 -3
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-BiyAfGvZ.js → useReportPermissions-FieO4EAD.js} +3 -3
- package/dist/useScheduleOutlet-CmIG5dwQ.js +557 -0
- package/dist/useSchedulePositions-DPVAgdB2.js +103 -0
- package/package.json +1 -1
- package/dist/EmployeeList-Cu4RxVQX.js +0 -889
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +0 -85
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-M6HA9BWu.js +0 -1248
- package/dist/employee-BcFgm8Rt.js +0 -204
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleDemandRowApi } from '../composables/useScheduleDemandRow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
row: ScheduleDemandRowApi;
|
|
6
|
+
/** The position view has no frozen name column, so the lead block has nowhere to sit —
|
|
7
|
+
* placing it anyway would land it in Monday's track and push every day along one. */
|
|
8
|
+
mode: 'area' | 'employee';
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
openSheet: (dayIdx: number) => any;
|
|
12
|
+
segEnter: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
13
|
+
segLeave: () => any;
|
|
14
|
+
segClick: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
15
|
+
segFocus: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onOpenSheet?: ((dayIdx: number) => any) | undefined;
|
|
18
|
+
onSegEnter?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
19
|
+
onSegLeave?: (() => any) | undefined;
|
|
20
|
+
onSegClick?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
21
|
+
onSegFocus?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScheduleDemandSheetApi } from '../composables/useScheduleDemandSheet';
|
|
2
|
+
import { type ScheduleTimePickerApi } from '../composables/useScheduleTimePicker';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
sheet: ScheduleDemandSheetApi;
|
|
5
|
+
/** Positions the breakdown rows can name. */
|
|
6
|
+
positions: string[];
|
|
7
|
+
timePicker: ScheduleTimePickerApi;
|
|
8
|
+
};
|
|
9
|
+
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>;
|
|
10
|
+
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { useScheduleEmployeeProfile } from '../composables/useScheduleEmployeeProfile';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
profile: ReturnType<typeof useScheduleEmployeeProfile>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
remove: () => any;
|
|
7
|
+
edit: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onRemove?: (() => any) | undefined;
|
|
10
|
+
onEdit?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ScheduleEmployeeLoad } from '../composables/useScheduleEmployeeIdentity';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
load: ScheduleEmployeeLoad;
|
|
4
|
+
/** Adds "· per week" to the load label where the visible span is longer than a week. */
|
|
5
|
+
perWeek?: boolean;
|
|
6
|
+
/** The ⋯ button. Hosts that have nothing to hang off it pass false. */
|
|
7
|
+
menu?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
openMenu: (empId: number, anchor: HTMLElement) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onOpenMenu?: ((empId: number, anchor: HTMLElement) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
menu: boolean;
|
|
15
|
+
perWeek: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleFilterBarApi } from '../composables/useScheduleFilterBar';
|
|
3
|
+
import type { ScheduleRosterApi } from '../composables/useScheduleRoster';
|
|
4
|
+
import type { ScheduleOutletApi } from '../composables/useScheduleOutlet';
|
|
5
|
+
import type { useScheduleRangeCalendar } from '../composables/useScheduleRangeCalendar';
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
board: ScheduleBoardApi;
|
|
8
|
+
calendar: ReturnType<typeof useScheduleRangeCalendar>;
|
|
9
|
+
filterBar: ScheduleFilterBarApi;
|
|
10
|
+
outlet: ScheduleOutletApi;
|
|
11
|
+
roster: ScheduleRosterApi;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
comingSoon: () => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onComingSoon?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleGapPopoverApi } from '../composables/useScheduleGapPopover';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
gap: ScheduleGapPopoverApi;
|
|
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,18 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { useScheduleLegend } from '../composables/useScheduleLegend';
|
|
3
|
+
import type { ScheduleViewMode } from '../composables/useScheduleFilterBar';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
board: ScheduleBoardApi;
|
|
6
|
+
legend: ReturnType<typeof useScheduleLegend>;
|
|
7
|
+
mode: ScheduleViewMode;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
scroll: (delta: number) => any;
|
|
11
|
+
comingSoon: () => any;
|
|
12
|
+
openDayNote: (dayIdx: number, anchor: HTMLElement) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onScroll?: ((delta: number) => any) | undefined;
|
|
15
|
+
onComingSoon?: (() => any) | undefined;
|
|
16
|
+
onOpenDayNote?: ((dayIdx: number, anchor: HTMLElement) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { useScheduleLeave } from '../composables/useScheduleLeave';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
leave: ReturnType<typeof useScheduleLeave>;
|
|
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 { ScheduleLegendBarApi } from '../composables/useScheduleLegendBar';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
legendBar: ScheduleLegendBarApi;
|
|
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,12 @@
|
|
|
1
|
+
import type { useScheduleSetupBanner } from '../composables/useScheduleSetupBanner';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
setupBanner: ReturnType<typeof useScheduleSetupBanner>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
setUp: () => any;
|
|
7
|
+
uploadSchedule: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onSetUp?: (() => any) | undefined;
|
|
10
|
+
onUploadSchedule?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
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,14 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
|
|
3
|
+
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
board: ScheduleBoardApi;
|
|
6
|
+
menu: ScheduleOpenShiftCardApi;
|
|
7
|
+
popover: ScheduleShiftPopoverApi;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
assign: (openId: number) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onAssign?: ((openId: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleExportApi } from '../composables/useScheduleExport';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
exportApi: ScheduleExportApi;
|
|
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,8 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { SchedulePublishApi } from '../composables/useSchedulePublish';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
publish: SchedulePublishApi;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ScheduleAutoScheduleApi } from '../composables/useScheduleAutoSchedule';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
autoSchedule: ScheduleAutoScheduleApi;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
applied: (count: number) => any;
|
|
7
|
+
appliedAndPublish: (count: number) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onApplied?: ((count: number) => any) | undefined;
|
|
10
|
+
onAppliedAndPublish?: ((count: number) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** One row of the menu. `group` heads the rows that carry it — consecutive options sharing
|
|
2
|
+
* a group are drawn under one heading, the way an `<optgroup>` would. A disabled option is a
|
|
3
|
+
* statement rather than a choice ("No position yet" is the field saying the catalogue is
|
|
4
|
+
* empty), so it is dimmed and inert rather than offered and refused. */
|
|
5
|
+
export interface ScheduleSelectOption {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
group?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
|
12
|
+
modelValue: string;
|
|
13
|
+
options: ScheduleSelectOption[];
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: string) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
18
|
+
modelValue: string;
|
|
19
|
+
options: ScheduleSelectOption[];
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
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,12 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleShiftActionsApi } from '../composables/useScheduleShiftActions';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
actions: ScheduleShiftActionsApi;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
editShift: (empId: number, dayIdx: number) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DaySlot, Proposal } from '../types';
|
|
2
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
slot: DaySlot;
|
|
6
|
+
empId: number;
|
|
7
|
+
dayIdx: number;
|
|
8
|
+
/** Position in the VISIBLE column order — month-edge is a neighbour comparison. */
|
|
9
|
+
colIndex: number;
|
|
10
|
+
proposal?: Proposal | null;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
drop: (empId: number, dayIdx: number, ev: DragEvent) => any;
|
|
14
|
+
addShift: (empId: number, dayIdx: number, anchor: HTMLElement) => any;
|
|
15
|
+
editShift: (empId: number, dayIdx: number) => any;
|
|
16
|
+
editLeave: (empId: number, dayIdx: number) => any;
|
|
17
|
+
dragStart: (empId: number, dayIdx: number, ev: DragEvent) => any;
|
|
18
|
+
dragEnd: () => any;
|
|
19
|
+
openMenu: (empId: number, dayIdx: number, anchor: HTMLElement) => any;
|
|
20
|
+
toggleProposal: (id: number) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onDrop?: ((empId: number, dayIdx: number, ev: DragEvent) => any) | undefined;
|
|
23
|
+
onAddShift?: ((empId: number, dayIdx: number, anchor: HTMLElement) => any) | undefined;
|
|
24
|
+
onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
25
|
+
onEditLeave?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
26
|
+
onDragStart?: ((empId: number, dayIdx: number, ev: DragEvent) => any) | undefined;
|
|
27
|
+
onDragEnd?: (() => any) | undefined;
|
|
28
|
+
onOpenMenu?: ((empId: number, dayIdx: number, anchor: HTMLElement) => any) | undefined;
|
|
29
|
+
onToggleProposal?: ((id: number) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
popover: ScheduleShiftPopoverApi;
|
|
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 { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
popover: ScheduleShiftPopoverApi;
|
|
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 { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
popover: ScheduleShiftPopoverApi;
|
|
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,14 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
3
|
+
import type { ScheduleTimePickerApi } from '../composables/useScheduleTimePicker';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
board: ScheduleBoardApi;
|
|
6
|
+
popover: ScheduleShiftPopoverApi;
|
|
7
|
+
timePicker: ScheduleTimePickerApi;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
swap: (empId: number, dayIdx: number) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSwap?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
popover: ScheduleShiftPopoverApi;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
2
|
+
import { type ScheduleTimePickerApi } from '../composables/useScheduleTimePicker';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
popover: ScheduleShiftPopoverApi;
|
|
5
|
+
timePicker: ScheduleTimePickerApi;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleShiftPopoverApi } from '../composables/useScheduleShiftPopover';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
popover: ScheduleShiftPopoverApi;
|
|
6
|
+
/** "Empty shift — leave it open" reads as a real option when this shift is free to stay
|
|
7
|
+
* unstaffed. A shift authored to answer a specific coverage gap has no such reading — it
|
|
8
|
+
* does nothing for that gap unstaffed — so its caller passes a placeholder that asks
|
|
9
|
+
* for a pick instead of offering to skip one. */
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/** Pairs with the placeholder above: the blank option itself becomes unpickable, so
|
|
12
|
+
* there's no way back to "nobody" once this select is showing. */
|
|
13
|
+
forceChoice?: boolean;
|
|
14
|
+
/** In the header this picker IS the heading — a name-sized control with an avatar next
|
|
15
|
+
* to it. Reused lower down as one field among Hours and Headcount, it has to take
|
|
16
|
+
* their treatment instead: a bordered, row-sized select with no avatar, since nobody
|
|
17
|
+
* is picked yet on a shift still being created. */
|
|
18
|
+
compact?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
placeholder: string;
|
|
22
|
+
compact: boolean;
|
|
23
|
+
forceChoice: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
row: ScheduleAllShiftsRowApi;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
editShift: (empId: number, dayIdx: number) => any;
|
|
9
|
+
openAssign: (openId: number) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
12
|
+
onOpenAssign?: ((openId: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ScheduleStaffRailApi } from '../composables/useScheduleStaffRail';
|
|
2
|
+
import type { ScheduleAreaDragDropApi } from '../composables/useScheduleAreaDragDrop';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
rail: ScheduleStaffRailApi;
|
|
5
|
+
dragDrop: ScheduleAreaDragDropApi;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
addEmployee: () => any;
|
|
9
|
+
jumpToOpen: () => any;
|
|
10
|
+
openEmployee: (empId: number) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onAddEmployee?: (() => any) | undefined;
|
|
13
|
+
onJumpToOpen?: (() => any) | undefined;
|
|
14
|
+
onOpenEmployee?: ((empId: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Proposal } from '../types';
|
|
2
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
3
|
+
import type { ScheduleRosterApi } from '../composables/useScheduleRoster';
|
|
4
|
+
import type { ScheduleOpenShiftCardApi } from '../composables/useScheduleOpenShiftCard';
|
|
5
|
+
import type { ScheduleAllShiftsRowApi } from '../composables/useScheduleAllShiftsRow';
|
|
6
|
+
import type { ScheduleDemandRowApi } from '../composables/useScheduleDemandRow';
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
board: ScheduleBoardApi;
|
|
9
|
+
roster: ScheduleRosterApi;
|
|
10
|
+
openShiftCard: ScheduleOpenShiftCardApi;
|
|
11
|
+
allShiftsRow: ScheduleAllShiftsRowApi;
|
|
12
|
+
demandRow: ScheduleDemandRowApi;
|
|
13
|
+
proposalAt?: (empId: number, dayIdx: number) => Proposal | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
addShift: (empId: number, dayIdx: number, anchor: HTMLElement) => any;
|
|
17
|
+
editShift: (empId: number, dayIdx: number) => any;
|
|
18
|
+
editLeave: (empId: number, dayIdx: number) => any;
|
|
19
|
+
dragEnd: () => any;
|
|
20
|
+
toggleProposal: (id: number) => any;
|
|
21
|
+
openAssign: (openId: number) => any;
|
|
22
|
+
openOpenShiftMenu: (openId: number, anchor: HTMLElement) => any;
|
|
23
|
+
addOpenShift: (dayIdx: number) => any;
|
|
24
|
+
segEnter: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
25
|
+
segLeave: () => any;
|
|
26
|
+
segClick: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
27
|
+
segFocus: (dayIdx: number, from: number, to: number, anchor: HTMLElement) => any;
|
|
28
|
+
openEmployeeMenu: (empId: number) => any;
|
|
29
|
+
dragShiftStart: (empId: number, dayIdx: number, ev: DragEvent) => any;
|
|
30
|
+
dropOnCell: (empId: number, dayIdx: number, ev: DragEvent) => any;
|
|
31
|
+
openCardMenu: (empId: number, dayIdx: number, anchor: HTMLElement) => any;
|
|
32
|
+
addEmployee: () => any;
|
|
33
|
+
openDemandSheet: (dayIdx: number) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
|
+
onAddShift?: ((empId: number, dayIdx: number, anchor: HTMLElement) => any) | undefined;
|
|
36
|
+
onEditShift?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
37
|
+
onEditLeave?: ((empId: number, dayIdx: number) => any) | undefined;
|
|
38
|
+
onDragEnd?: (() => any) | undefined;
|
|
39
|
+
onToggleProposal?: ((id: number) => any) | undefined;
|
|
40
|
+
onOpenAssign?: ((openId: number) => any) | undefined;
|
|
41
|
+
onOpenOpenShiftMenu?: ((openId: number, anchor: HTMLElement) => any) | undefined;
|
|
42
|
+
onAddOpenShift?: ((dayIdx: number) => any) | undefined;
|
|
43
|
+
onSegEnter?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
44
|
+
onSegLeave?: (() => any) | undefined;
|
|
45
|
+
onSegClick?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
46
|
+
onSegFocus?: ((dayIdx: number, from: number, to: number, anchor: HTMLElement) => any) | undefined;
|
|
47
|
+
onOpenEmployeeMenu?: ((empId: number) => any) | undefined;
|
|
48
|
+
onDragShiftStart?: ((empId: number, dayIdx: number, ev: DragEvent) => any) | undefined;
|
|
49
|
+
onDropOnCell?: ((empId: number, dayIdx: number, ev: DragEvent) => any) | undefined;
|
|
50
|
+
onOpenCardMenu?: ((empId: number, dayIdx: number, anchor: HTMLElement) => any) | undefined;
|
|
51
|
+
onAddEmployee?: (() => any) | undefined;
|
|
52
|
+
onOpenDemandSheet?: ((dayIdx: number) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleCostRailApi } from '../composables/useScheduleCostRail';
|
|
3
|
+
import type { ScheduleStatsRowApi } from '../composables/useScheduleStatsRow';
|
|
4
|
+
import type { ScheduleViewMode } from '../composables/useScheduleFilterBar';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
board: ScheduleBoardApi;
|
|
7
|
+
costRail: ScheduleCostRailApi;
|
|
8
|
+
stats: ScheduleStatsRowApi;
|
|
9
|
+
mode: ScheduleViewMode;
|
|
10
|
+
};
|
|
11
|
+
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
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleShiftActionsApi } from '../composables/useScheduleShiftActions';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
board: ScheduleBoardApi;
|
|
5
|
+
actions: ScheduleShiftActionsApi;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleTimePickerApi } from '../composables/useScheduleTimePicker';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
timePicker: ScheduleTimePickerApi;
|
|
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,22 @@
|
|
|
1
|
+
import type { ScheduleBoardApi } from '../composables/useScheduleBoard';
|
|
2
|
+
import type { ScheduleTopbarApi } from '../composables/useScheduleTopbar';
|
|
3
|
+
import type { ScheduleAutoScheduleApi } from '../composables/useScheduleAutoSchedule';
|
|
4
|
+
import type { ScheduleCopyWeekApi } from '../composables/useScheduleCopyWeek';
|
|
5
|
+
import type { ScheduleExportApi } from '../composables/useScheduleExport';
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
board: ScheduleBoardApi;
|
|
8
|
+
topbar: ScheduleTopbarApi;
|
|
9
|
+
autoSchedule: ScheduleAutoScheduleApi;
|
|
10
|
+
copyWeek: ScheduleCopyWeekApi;
|
|
11
|
+
exportApi: ScheduleExportApi;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"dev-reset": () => any;
|
|
15
|
+
"sched-status-click": () => any;
|
|
16
|
+
"clear-shifts": () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onDev-reset"?: (() => any) | undefined;
|
|
19
|
+
"onSched-status-click"?: (() => any) | undefined;
|
|
20
|
+
"onClear-shifts"?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { EmployeeAvailHours } from '../types';
|
|
2
|
+
import type { FdtoScheduleUpdateEmployeeProfileReq } from '@/types/schedule';
|
|
3
|
+
export type ScheduleAddEmployeeStep = 'mode' | 'details';
|
|
4
|
+
export type ScheduleAddEmployeeMode = 'new' | 'existing';
|
|
5
|
+
export interface ScheduleAddEmployeeForm {
|
|
6
|
+
name: string;
|
|
7
|
+
mobile: string;
|
|
8
|
+
dial: string;
|
|
9
|
+
employment: 'full' | 'part';
|
|
10
|
+
locations: string[];
|
|
11
|
+
payBasis: 'hourly' | 'monthly';
|
|
12
|
+
payAmount: string;
|
|
13
|
+
maxHours: string;
|
|
14
|
+
otAfterDaily: string;
|
|
15
|
+
maxOtHours: string;
|
|
16
|
+
/** For a part-timer: days they CAN work. For a full-timer: days they're OFF — the
|
|
17
|
+
* mockup inverts the same array's meaning by employment type. */
|
|
18
|
+
availDays: boolean[];
|
|
19
|
+
availHours: EmployeeAvailHours[];
|
|
20
|
+
preferences: string;
|
|
21
|
+
primaryPosition: string;
|
|
22
|
+
secondaryPositions: string[];
|
|
23
|
+
seniority: '' | 'senior' | 'junior';
|
|
24
|
+
passcode: string[];
|
|
25
|
+
masterUser: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** A salaried month, for converting a monthly figure into the hourly one the cost rail
|
|
28
|
+
* actually reads. Ported verbatim from the mockup's MONTH_HOURS. */
|
|
29
|
+
export declare const MONTH_HOURS = 173;
|
|
30
|
+
/** A freshly-ticked worked day defaults to the whole day rather than the outlet's current
|
|
31
|
+
* trading hours — trading hours can change, and narrowing a person's stated availability to
|
|
32
|
+
* whatever the outlet happens to trade today isn't something this form should assume for them.
|
|
33
|
+
* `23:59`, not `24:00`: a part-timer's per-day fields are native `<input type="time">`s, which
|
|
34
|
+
* only accept `00:00`–`23:59` — `24:00` would render as blank there despite being a valid
|
|
35
|
+
* `FdtoScheduleTime` on the wire. */
|
|
36
|
+
export declare function defaultAvailHours(): EmployeeAvailHours;
|
|
37
|
+
export declare function blankForm(): ScheduleAddEmployeeForm;
|
|
38
|
+
/** Coverage and Auto-Schedule are still authored per role, so a role is derived from the
|
|
39
|
+
* primary position rather than asked for twice. Unlike position, Employee.role is one of a
|
|
40
|
+
* fixed small set the grid groups by, so an unrecognised (or unset) position falls back to
|
|
41
|
+
* the first known role instead of leaving the record without one. */
|
|
42
|
+
export declare function roleFromPosition(position: string): string;
|
|
43
|
+
export declare function generateCode(): string;
|
|
44
|
+
/** `raw` is typed `string` because that's the form field's declared type, but Vue 3 casts
|
|
45
|
+
* `v-model` on an `<input type="number">` to an actual `number` regardless — the DOM does this
|
|
46
|
+
* itself, independent of the `.number` modifier, so the runtime value disagrees with the type
|
|
47
|
+
* the moment someone types a digit. `String()` first is what makes `.trim()` safe either way. */
|
|
48
|
+
export declare function parsePositiveInt(raw: string, min: number, max: number): number | undefined;
|
|
49
|
+
export declare function parseNonNegativeInt(raw: string, max: number): number | undefined;
|
|
50
|
+
export declare function initials(name: string): string;
|
|
51
|
+
export declare function isPartTimeForm(form: ScheduleAddEmployeeForm): boolean;
|
|
52
|
+
/** `availDays[i]` always means "is this a working day" — the same convention the board model
|
|
53
|
+
* and `ScheduleEmployeeDetailPanel` read (a day off is one marked NOT worked), regardless of
|
|
54
|
+
* employment type. Only the full-time TOGGLE BUTTON is framed as "mark a day off" rather than
|
|
55
|
+
* "mark a work day" — see `useScheduleAddEmployee`'s `dayLit`, which flips this value for
|
|
56
|
+
* that button's pressed state without touching what's actually stored. */
|
|
57
|
+
export declare function dayIsWorkedInForm(form: ScheduleAddEmployeeForm, i: number): boolean;
|
|
58
|
+
/** Days this form currently marks as worked, converted to Mongo's weekday convention. */
|
|
59
|
+
export declare function availabilityPayload(form: ScheduleAddEmployeeForm): Array<{
|
|
60
|
+
dayOfWeek: number;
|
|
61
|
+
start: string;
|
|
62
|
+
end: string;
|
|
63
|
+
}>;
|
|
64
|
+
/** The EmployeeProfile fields `createExisting` and `updateExisting` both send — everything but
|
|
65
|
+
* `employeeId`, which only the create path has (an update targets one already known from the
|
|
66
|
+
* URL). Shared here so the two payloads cannot silently drift apart. */
|
|
67
|
+
export declare function toEmployeeProfileFields(form: ScheduleAddEmployeeForm, name: string, payAmountNumber: number): FdtoScheduleUpdateEmployeeProfileReq;
|