@feedmepos/mf-hrm-portal 2.3.0-dev.18 → 2.3.0-dev.19
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-B10IvyLu.js → ApprovalCodeList-INrLNl4W.js} +7 -7
- package/dist/{AuditLogList-BJ8GXIzu.js → AuditLogList-BDgSBAPi.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DfXqKPnU.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQS6Y708.js} +2 -2
- package/dist/{EmployeeList-CNj262HG.js → EmployeeList-DsuNI7P7.js} +264 -254
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-BvSLGM1C.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +6 -6
- package/dist/{GrantUserList-R259wy0R.js → GrantUserList-Bmgie1HE.js} +8 -8
- package/dist/{Main-DZ5T4TP1.js → Main-B1e9eyqv.js} +11 -11
- package/dist/{Main-yUEWFlC3.js → Main-BKt8r7Ut.js} +8 -8
- package/dist/{Main-DLgW7BX_.js → Main-SBhiLPdR.js} +5 -5
- package/dist/{PermissionSetList-Xrzkx52n.js → PermissionSetList-CMOKTS_m.js} +18 -19
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BhR3MM-s.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-K1Ad4e-f.js} +1071 -1071
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
- package/dist/{RoleList-RRDkrVmu.js → RoleList-DcbQo51I.js} +20 -21
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/{TeamMemberList-CPpBsvi7.js → TeamMemberList-Bvjq14lE.js} +24 -25
- package/dist/{TimesheetList-CWl2faUZ.js → TimesheetList-CybTPHdT.js} +10 -10
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dc0_djRp.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CGmVMnqS.js} +3 -3
- package/dist/{app-COWpQb6i.js → app-CEcv-vMB.js} +2893 -3966
- package/dist/app.js +1 -1
- package/dist/{approval-code-BXUiojPH.js → approval-code-jIjkeVEb.js} +1 -1
- package/dist/{dayjs.min-Dv2S110T.js → dayjs.min-yw8fgQPr.js} +1 -1
- package/dist/{employee-Drs22uVf.js → employee-ByRgP_2p.js} +28 -29
- package/dist/{grant-user-CBJ3gEgW.js → grant-user-SNiDV22U.js} +1 -1
- package/dist/{iteration-B23jisFZ.js → iteration-B3Z1Ojal.js} +1 -1
- package/dist/{lodash-CQM_jgZN.js → lodash-D2BUlQJ1.js} +1 -1
- package/dist/{restaurant-D2mfKHaH.js → restaurant-BTpBmfBV.js} +224 -230
- package/dist/{role-k4mdt-op.js → role-_BDO50Cj.js} +2 -2
- package/dist/{rule-xOAXApqp.js → rule-FuP71XrW.js} +36 -36
- package/dist/src/api/restaurant/index.d.ts +0 -2
- package/dist/src/composables/useDiscardConfirm.d.ts +1 -3
- package/dist/src/composables/useMessage.d.ts +2 -8
- package/dist/src/router/shared.d.ts +1 -4
- package/dist/src/types/employee.d.ts +0 -1
- package/dist/src/views/audit-log/locales/index.d.ts +0 -252
- 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/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DZCdxlCd.js → useAppStore-DCwd8GWN.js} +1 -1
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-Nygx2zn8.js → useLoading-CXzTpIVv.js} +1 -1
- package/dist/{useReportPermissions-BB4JiYDf.js → useReportPermissions-5AYWAQ8e.js} +3 -3
- package/package.json +2 -4
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BhkmMQxt.js +0 -532
- package/dist/ScheduleGeneralPage-CfcIh0Fy.js +0 -776
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-WYuVJxed.js +0 -2435
- package/dist/SchedulePage-CHu1VI-U.js +0 -19201
- package/dist/SchedulePositionPage-Dx2fZ1QI.js +0 -262
- package/dist/SelectFilter-DoeKbbjT.js +0 -264
- package/dist/object-Dwyg2LgX.js +0 -16
- package/dist/src/api/schedule/index.d.ts +0 -63
- package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
- package/dist/src/components/layout/withScheduleShell.d.ts +0 -10
- package/dist/src/types/schedule.d.ts +0 -23
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -41
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -31
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +0 -29
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -32
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -38
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +0 -15
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -35
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -70
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -35
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -50
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -20
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +0 -33
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +0 -5
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +0 -7
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +0 -51
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +0 -15
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -82
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -63
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +0 -9
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +0 -19
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -21
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +0 -23
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +0 -3
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +0 -16
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +0 -22
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -29
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +0 -8
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -7
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -119
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -73
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -297
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -612
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -28
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +0 -80
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -12
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -60
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -44
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -111
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -59
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -47
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -166
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +0 -24
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +0 -30
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +0 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +0 -38
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +0 -30
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -51
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -79
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -59
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +0 -58
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +0 -45
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +0 -231
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -1521
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -25
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +0 -19
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -35
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -126
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -313
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -40
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -245
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +0 -63
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -255
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -49
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +0 -95
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +0 -9
- package/dist/src/views/scheduling/country-rules/index.d.ts +0 -29
- package/dist/src/views/scheduling/data.d.ts +0 -123
- package/dist/src/views/scheduling/locales/index.d.ts +0 -688
- package/dist/src/views/scheduling/schedule-constants.d.ts +0 -7
- package/dist/src/views/scheduling/schedule-state.d.ts +0 -767
- package/dist/src/views/scheduling/schedule-store.d.ts +0 -135
- package/dist/src/views/scheduling/types.d.ts +0 -380
- package/dist/useDiscardConfirm-CzZSPyvh.js +0 -28
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, ref as A, onMounted as F, computed as S, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as x, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as z, withDirectives as E, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
|
|
2
|
-
import { useRouter as B } from "vue-router";
|
|
3
|
-
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { R as L, a as O } from "./app-COWpQb6i.js";
|
|
5
|
-
import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-WYuVJxed.js";
|
|
6
|
-
import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BhkmMQxt.js";
|
|
7
|
-
const H = { class: "main" }, G = {
|
|
8
|
-
id: "viewPositions",
|
|
9
|
-
class: "view"
|
|
10
|
-
}, J = { class: "sp-head" }, Q = { class: "outlet-bar" }, X = { class: "sp-body" }, Y = { class: "sp-content" }, Z = { class: "sp-panel" }, ee = { class: "cfg-head" }, se = { class: "cfg-count" }, te = { id: "skList" }, oe = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "cfg-empty"
|
|
13
|
-
}, ae = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "cfg-list"
|
|
16
|
-
}, ne = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "cfg-row"
|
|
19
|
-
}, ie = { class: "cfg-main" }, le = ["onClick"], de = { class: "cfg-main" }, re = { class: "cfg-name" }, ue = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "cfg-confirm"
|
|
22
|
-
}, ce = { class: "q" }, ve = /* @__PURE__ */ M({
|
|
23
|
-
__name: "SchedulePositionPage",
|
|
24
|
-
setup(fe) {
|
|
25
|
-
const y = A(null);
|
|
26
|
-
R(y);
|
|
27
|
-
const w = B(), _ = I(), b = (m, e = "info") => _.open({ message: m, type: e }), t = W({ notify: b }), v = K(), f = j(void 0, { notify: b });
|
|
28
|
-
F(async () => {
|
|
29
|
-
await v.resolve() && await T(/* @__PURE__ */ new Date());
|
|
30
|
-
});
|
|
31
|
-
const $ = S(
|
|
32
|
-
() => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
33
|
-
);
|
|
34
|
-
function D(m) {
|
|
35
|
-
v.switchTo(m, /* @__PURE__ */ new Date());
|
|
36
|
-
}
|
|
37
|
-
function N() {
|
|
38
|
-
w.push({ name: L.SCHEDULE });
|
|
39
|
-
}
|
|
40
|
-
return (m, e) => (l(), i("div", {
|
|
41
|
-
ref_key: "rootEl",
|
|
42
|
-
ref: y,
|
|
43
|
-
class: "sch"
|
|
44
|
-
}, [
|
|
45
|
-
o("div", H, [
|
|
46
|
-
o("div", G, [
|
|
47
|
-
o("div", J, [
|
|
48
|
-
n(u, {
|
|
49
|
-
hierarchy: "ghost",
|
|
50
|
-
size: "sm",
|
|
51
|
-
class: "sp-back",
|
|
52
|
-
type: "button",
|
|
53
|
-
onClick: N
|
|
54
|
-
}, {
|
|
55
|
-
default: d(() => [...e[7] || (e[7] = [
|
|
56
|
-
o("svg", {
|
|
57
|
-
width: "12",
|
|
58
|
-
height: "12",
|
|
59
|
-
viewBox: "0 0 16 16",
|
|
60
|
-
fill: "none",
|
|
61
|
-
"aria-hidden": "true"
|
|
62
|
-
}, [
|
|
63
|
-
o("path", {
|
|
64
|
-
d: "M10 3.5L5.5 8l4.5 4.5",
|
|
65
|
-
stroke: "currentColor",
|
|
66
|
-
"stroke-width": "1.7",
|
|
67
|
-
"stroke-linecap": "round",
|
|
68
|
-
"stroke-linejoin": "round"
|
|
69
|
-
})
|
|
70
|
-
], -1),
|
|
71
|
-
o("span", null, "Back to schedule", -1)
|
|
72
|
-
])]),
|
|
73
|
-
_: 1
|
|
74
|
-
}),
|
|
75
|
-
e[9] || (e[9] = x('<div class="sp-title-row" data-v-77f876af><div class="sp-title" data-v-77f876af>Position</div><span class="page-tags" data-v-77f876af><span class="sch-badge page-tag-premium" data-color="brand" data-v-77f876af>Premium</span><span class="sch-badge" data-color="info" data-v-77f876af>Free until 31 Dec 2026</span></span></div><div class="sp-sub" data-v-77f876af>What your employees can do — the same catalogue across every outlet.</div>', 2)),
|
|
76
|
-
o("div", Q, [
|
|
77
|
-
e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
78
|
-
n(U, {
|
|
79
|
-
class: "outlet-sel",
|
|
80
|
-
"aria-label": "Outlet being configured",
|
|
81
|
-
searchable: "",
|
|
82
|
-
title: "Which outlet's roster the staff counts below are read from",
|
|
83
|
-
"model-value": s(v).outletId.value,
|
|
84
|
-
options: $.value,
|
|
85
|
-
"onUpdate:modelValue": D
|
|
86
|
-
}, null, 8, ["model-value", "options"])
|
|
87
|
-
])
|
|
88
|
-
]),
|
|
89
|
-
o("div", X, [
|
|
90
|
-
o("div", Y, [
|
|
91
|
-
o("div", Z, [
|
|
92
|
-
o("div", ee, [
|
|
93
|
-
e[11] || (e[11] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
|
|
94
|
-
o("span", se, c(s(t).count.value), 1),
|
|
95
|
-
e[12] || (e[12] = o("span", { class: "cfg-spacer" }, null, -1)),
|
|
96
|
-
n(u, {
|
|
97
|
-
hierarchy: "primary",
|
|
98
|
-
size: "sm",
|
|
99
|
-
class: "am-btn am-btn-primary",
|
|
100
|
-
type: "button",
|
|
101
|
-
onClick: e[0] || (e[0] = (a) => s(f).openNew())
|
|
102
|
-
}, {
|
|
103
|
-
default: d(() => [...e[10] || (e[10] = [
|
|
104
|
-
r(" + Add position ", -1)
|
|
105
|
-
])]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
o("div", {
|
|
110
|
-
class: h(["ce-err", { show: s(t).error.value }])
|
|
111
|
-
}, c(s(t).error.value), 3),
|
|
112
|
-
o("div", te, [
|
|
113
|
-
!s(t).positions.value.length && !s(t).isAdding.value ? (l(), i("div", oe, [...e[13] || (e[13] = [
|
|
114
|
-
r(" No positions yet.", -1),
|
|
115
|
-
o("br", null, null, -1),
|
|
116
|
-
r(" Add one and it becomes assignable on every employee. ", -1)
|
|
117
|
-
])])) : (l(), i("div", ae, [
|
|
118
|
-
s(t).isAdding.value ? (l(), i("div", ne, [
|
|
119
|
-
o("div", ie, [
|
|
120
|
-
E(o("input", {
|
|
121
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => s(t).newName.value = a),
|
|
122
|
-
type: "text",
|
|
123
|
-
class: "cfg-name-input",
|
|
124
|
-
placeholder: "New position name",
|
|
125
|
-
autofocus: "",
|
|
126
|
-
onKeyup: [
|
|
127
|
-
e[2] || (e[2] = k((a) => s(t).confirmAdd(), ["enter"])),
|
|
128
|
-
e[3] || (e[3] = k((a) => s(t).cancelAdd(), ["esc"]))
|
|
129
|
-
]
|
|
130
|
-
}, null, 544), [
|
|
131
|
-
[P, s(t).newName.value]
|
|
132
|
-
])
|
|
133
|
-
]),
|
|
134
|
-
n(u, {
|
|
135
|
-
hierarchy: "secondary",
|
|
136
|
-
size: "sm",
|
|
137
|
-
class: "cfg-btn",
|
|
138
|
-
type: "button",
|
|
139
|
-
disabled: !s(t).newName.value.trim() || s(t).saving.value,
|
|
140
|
-
onClick: e[4] || (e[4] = (a) => s(t).confirmAdd())
|
|
141
|
-
}, {
|
|
142
|
-
default: d(() => [
|
|
143
|
-
r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}, 8, ["disabled"]),
|
|
147
|
-
n(u, {
|
|
148
|
-
hierarchy: "secondary",
|
|
149
|
-
size: "sm",
|
|
150
|
-
class: "cfg-btn",
|
|
151
|
-
type: "button",
|
|
152
|
-
disabled: s(t).saving.value,
|
|
153
|
-
onClick: e[5] || (e[5] = (a) => s(t).cancelAdd())
|
|
154
|
-
}, {
|
|
155
|
-
default: d(() => [...e[14] || (e[14] = [
|
|
156
|
-
r(" Cancel ", -1)
|
|
157
|
-
])]),
|
|
158
|
-
_: 1
|
|
159
|
-
}, 8, ["disabled"])
|
|
160
|
-
])) : z("", !0),
|
|
161
|
-
(l(!0), i(C, null, V(s(t).positions.value, (a) => (l(), i("div", {
|
|
162
|
-
key: a.id,
|
|
163
|
-
class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== a.id }]),
|
|
164
|
-
onClick: (p) => s(t).pendingDeleteId.value !== a.id && s(f).openEdit(a.id, a.name)
|
|
165
|
-
}, [
|
|
166
|
-
o("div", de, [
|
|
167
|
-
o("div", re, c(a.name), 1)
|
|
168
|
-
]),
|
|
169
|
-
s(t).pendingDeleteId.value === a.id ? (l(), i("div", ue, [
|
|
170
|
-
o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}?` : "Delete?"), 1),
|
|
171
|
-
n(u, {
|
|
172
|
-
hierarchy: "danger",
|
|
173
|
-
size: "sm",
|
|
174
|
-
class: "cfg-yes",
|
|
175
|
-
type: "button",
|
|
176
|
-
disabled: s(t).saving.value,
|
|
177
|
-
onClick: g((p) => s(t).confirmDelete(a.id), ["stop"])
|
|
178
|
-
}, {
|
|
179
|
-
default: d(() => [
|
|
180
|
-
r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
}, 8, ["disabled", "onClick"]),
|
|
184
|
-
n(u, {
|
|
185
|
-
hierarchy: "secondary",
|
|
186
|
-
size: "sm",
|
|
187
|
-
class: "cfg-no",
|
|
188
|
-
type: "button",
|
|
189
|
-
disabled: s(t).saving.value,
|
|
190
|
-
onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
|
|
191
|
-
}, {
|
|
192
|
-
default: d(() => [...e[15] || (e[15] = [
|
|
193
|
-
r(" Keep ", -1)
|
|
194
|
-
])]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["disabled"])
|
|
197
|
-
])) : (l(), i(C, { key: 1 }, [
|
|
198
|
-
o("span", {
|
|
199
|
-
class: h(["cfg-used", { none: !s(t).usageCountFor(a.id) }])
|
|
200
|
-
}, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}` : "unused"), 3),
|
|
201
|
-
n(u, {
|
|
202
|
-
hierarchy: "secondary",
|
|
203
|
-
size: "sm",
|
|
204
|
-
class: "cfg-btn",
|
|
205
|
-
type: "button",
|
|
206
|
-
onClick: g((p) => s(f).openEdit(a.id, a.name), ["stop"])
|
|
207
|
-
}, {
|
|
208
|
-
default: d(() => [...e[16] || (e[16] = [
|
|
209
|
-
r(" Edit ", -1)
|
|
210
|
-
])]),
|
|
211
|
-
_: 1
|
|
212
|
-
}, 8, ["onClick"]),
|
|
213
|
-
n(u, {
|
|
214
|
-
hierarchy: "ghost",
|
|
215
|
-
size: "sm",
|
|
216
|
-
"icon-only": "",
|
|
217
|
-
class: "cfg-del",
|
|
218
|
-
type: "button",
|
|
219
|
-
"aria-label": `Delete ${a.name}`,
|
|
220
|
-
onClick: g((p) => s(t).askDelete(a.id), ["stop"])
|
|
221
|
-
}, {
|
|
222
|
-
default: d(() => [...e[17] || (e[17] = [
|
|
223
|
-
o("svg", {
|
|
224
|
-
width: "14",
|
|
225
|
-
height: "14",
|
|
226
|
-
viewBox: "0 0 16 16",
|
|
227
|
-
fill: "none",
|
|
228
|
-
"aria-hidden": "true"
|
|
229
|
-
}, [
|
|
230
|
-
o("path", {
|
|
231
|
-
d: "M2.5 4.5h11M6 4.5V3a.8.8 0 0 1 .8-.8h2.4a.8.8 0 0 1 .8.8v1.5M4 4.5l.6 8.2a1 1 0 0 0 1 .93h4.8a1 1 0 0 0 1-.93l.6-8.2",
|
|
232
|
-
stroke: "currentColor",
|
|
233
|
-
"stroke-width": "1.4",
|
|
234
|
-
"stroke-linecap": "round",
|
|
235
|
-
"stroke-linejoin": "round"
|
|
236
|
-
}),
|
|
237
|
-
o("path", {
|
|
238
|
-
d: "M6.6 7v4M9.4 7v4",
|
|
239
|
-
stroke: "currentColor",
|
|
240
|
-
"stroke-width": "1.3",
|
|
241
|
-
"stroke-linecap": "round"
|
|
242
|
-
})
|
|
243
|
-
], -1)
|
|
244
|
-
])]),
|
|
245
|
-
_: 1
|
|
246
|
-
}, 8, ["aria-label", "onClick"])
|
|
247
|
-
], 64))
|
|
248
|
-
], 10, le))), 128))
|
|
249
|
-
]))
|
|
250
|
-
])
|
|
251
|
-
])
|
|
252
|
-
])
|
|
253
|
-
])
|
|
254
|
-
])
|
|
255
|
-
]),
|
|
256
|
-
n(q, { modal: s(f) }, null, 8, ["modal"])
|
|
257
|
-
], 512));
|
|
258
|
-
}
|
|
259
|
-
}), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-77f876af"]]);
|
|
260
|
-
export {
|
|
261
|
-
ke as default
|
|
262
|
-
};
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
|
-
import "@feedmepos/ui-library";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { a as ae } from "./app-COWpQb6i.js";
|
|
5
|
-
function ue(r, u, _ = r) {
|
|
6
|
-
const t = $(!0), C = v(() => {
|
|
7
|
-
if (!t.value && !u.value)
|
|
8
|
-
return !0;
|
|
9
|
-
if (u.value && u.value.length > 0) {
|
|
10
|
-
const n = _.value.map((o) => o.value);
|
|
11
|
-
return u.value.length === n.length && u.value.every((o) => n.includes(o));
|
|
12
|
-
}
|
|
13
|
-
return !1;
|
|
14
|
-
}), l = v(() => {
|
|
15
|
-
var n, o, h, p;
|
|
16
|
-
return !!((n = u.value) != null && n.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((h = u.value) == null ? void 0 : h.length) < ((p = r.value) == null ? void 0 : p.length));
|
|
17
|
-
});
|
|
18
|
-
return { allCleared: t, allSelected: C, indeterminate: l, toggleAll: () => {
|
|
19
|
-
if (C.value) {
|
|
20
|
-
u.value = void 0, t.value = !0;
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const n = _.value.map((o) => o.value);
|
|
24
|
-
n.length === r.value.length ? (u.value = void 0, t.value = !1) : (u.value = n, t.value = !1);
|
|
25
|
-
}, toggleOption: (n) => {
|
|
26
|
-
var h, p, B;
|
|
27
|
-
let o;
|
|
28
|
-
u.value === void 0 && t.value ? o = [n] : u.value === void 0 && !t.value ? o = (h = r.value.map((m) => m.value)) == null ? void 0 : h.filter((m) => m !== n) : (p = u.value) != null && p.includes(n) ? o = (B = u.value) == null ? void 0 : B.filter((m) => m !== n) : o = [...u.value || [], n], o.length === 0 ? (u.value = void 0, t.value = !0) : o.length === r.value.length ? (u.value = void 0, t.value = !1) : u.value = o;
|
|
29
|
-
} };
|
|
30
|
-
}
|
|
31
|
-
const ne = { class: "w-full flex flex-col gap-8" }, re = { class: "flex items-center gap-8" }, oe = { class: "inline-flex items-center" }, se = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, ie = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "flex gap-4 px-[6px] pt-4"
|
|
34
|
-
}, ce = { class: "flex-1" }, ve = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "px-12 pt-8 pb-4 text-xs font-semibold text-fm-color-typo-secondary select-none"
|
|
37
|
-
}, de = /* @__PURE__ */ X({
|
|
38
|
-
__name: "SelectFilter",
|
|
39
|
-
props: {
|
|
40
|
-
items: { default: () => [] },
|
|
41
|
-
modelValue: {},
|
|
42
|
-
multiple: { type: Boolean, default: !1 },
|
|
43
|
-
placeholder: { default: "Select..." },
|
|
44
|
-
searchPlaceholder: { default: "Search" },
|
|
45
|
-
disabled: { type: Boolean, default: !1 },
|
|
46
|
-
variant: { default: "default" },
|
|
47
|
-
clearable: { type: Boolean, default: !1 },
|
|
48
|
-
searchable: { type: Boolean, default: !0 },
|
|
49
|
-
autoSelectFirst: { type: Boolean, default: !1 },
|
|
50
|
-
chipIcon: { default: "filter_list" },
|
|
51
|
-
showSelectAll: { type: Boolean, default: !0 },
|
|
52
|
-
maxHeight: { default: 300 },
|
|
53
|
-
selectedPrefix: { default: "Selected: " },
|
|
54
|
-
filterFn: {}
|
|
55
|
-
},
|
|
56
|
-
emits: ["update:modelValue", "change"],
|
|
57
|
-
setup(r, { expose: u, emit: _ }) {
|
|
58
|
-
const t = r, C = _, l = v({
|
|
59
|
-
get: () => t.modelValue,
|
|
60
|
-
set: (e) => {
|
|
61
|
-
C("update:modelValue", e), C("change", e);
|
|
62
|
-
}
|
|
63
|
-
}), V = $(""), f = v(() => t.items), n = v(() => {
|
|
64
|
-
const e = V.value.trim();
|
|
65
|
-
if (!t.searchable || !e) return f.value;
|
|
66
|
-
if (t.filterFn)
|
|
67
|
-
return f.value.filter((s) => t.filterFn(s, e));
|
|
68
|
-
const a = e.toLowerCase();
|
|
69
|
-
return f.value.filter((s) => s.label.toLowerCase().includes(a));
|
|
70
|
-
}), o = v(() => f.value.some((e) => !!e.group)), h = v(() => {
|
|
71
|
-
if (!o.value)
|
|
72
|
-
return [{ group: "", options: n.value }];
|
|
73
|
-
const e = [], a = /* @__PURE__ */ new Map();
|
|
74
|
-
for (const s of n.value) {
|
|
75
|
-
const w = s.group ?? "";
|
|
76
|
-
let y = a.get(w);
|
|
77
|
-
y || (y = [], a.set(w, y), e.push({ group: w, options: y })), y.push(s);
|
|
78
|
-
}
|
|
79
|
-
return e;
|
|
80
|
-
}), p = v(() => {
|
|
81
|
-
if (!l.value || Array.isArray(l.value) && l.value.length === 0)
|
|
82
|
-
return t.placeholder;
|
|
83
|
-
if (Array.isArray(l.value) && l.value.length === 1) {
|
|
84
|
-
const a = f.value.find((s) => s.value === l.value[0]);
|
|
85
|
-
return (a == null ? void 0 : a.label) || t.placeholder;
|
|
86
|
-
}
|
|
87
|
-
const e = Array.isArray(l.value) ? l.value.length : 0;
|
|
88
|
-
return `${t.selectedPrefix}${e}`;
|
|
89
|
-
}), B = v(() => {
|
|
90
|
-
if (l.value === void 0 || l.value === null || l.value === "")
|
|
91
|
-
return t.placeholder;
|
|
92
|
-
const e = f.value.find((a) => a.value === l.value);
|
|
93
|
-
return (e == null ? void 0 : e.label) || t.placeholder;
|
|
94
|
-
}), m = v(
|
|
95
|
-
() => t.multiple ? p.value : B.value
|
|
96
|
-
), I = v(() => t.disabled ? "neutral-gray-200" : t.variant === "dark" ? "neutral-black" : "neutral-gray-400"), U = v(() => t.disabled ? "text-fm-color-neutral-gray-200" : t.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), L = $(void 0), j = new Proxy(L, {
|
|
97
|
-
get(e, a) {
|
|
98
|
-
return a === "value" ? Array.isArray(l.value) ? l.value : l.value === void 0 ? void 0 : [l.value] : L[a];
|
|
99
|
-
},
|
|
100
|
-
set(e, a, s) {
|
|
101
|
-
return a === "value" ? (l.value = s, !0) : (L[a] = s, !0);
|
|
102
|
-
}
|
|
103
|
-
}), { allSelected: P, toggleAll: q, toggleOption: E, indeterminate: J } = ue(
|
|
104
|
-
f,
|
|
105
|
-
j,
|
|
106
|
-
n
|
|
107
|
-
);
|
|
108
|
-
function G(e) {
|
|
109
|
-
var a;
|
|
110
|
-
t.multiple || (l.value = e, (a = M.value) == null || a.toggleMenu(!1));
|
|
111
|
-
}
|
|
112
|
-
function Q(e) {
|
|
113
|
-
e.stopPropagation(), !t.disabled && (l.value = null);
|
|
114
|
-
}
|
|
115
|
-
Y(
|
|
116
|
-
() => t.autoSelectFirst,
|
|
117
|
-
async (e) => {
|
|
118
|
-
if (e && !t.multiple && (l.value === void 0 || l.value === null)) {
|
|
119
|
-
await Z();
|
|
120
|
-
const a = f.value[0];
|
|
121
|
-
a && (l.value = a.value);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{ immediate: !0 }
|
|
125
|
-
);
|
|
126
|
-
const M = $(null);
|
|
127
|
-
return u({
|
|
128
|
-
open: () => {
|
|
129
|
-
var e;
|
|
130
|
-
return (e = M.value) == null ? void 0 : e.toggleMenu(!0);
|
|
131
|
-
},
|
|
132
|
-
close: () => {
|
|
133
|
-
var e;
|
|
134
|
-
return (e = M.value) == null ? void 0 : e.toggleMenu(!1);
|
|
135
|
-
}
|
|
136
|
-
}), (e, a) => {
|
|
137
|
-
const s = F("FmIcon"), w = F("FmChip"), y = F("FmSearch"), H = F("FmMenuItem"), W = F("FmMenu");
|
|
138
|
-
return c(), d("div", ne, [
|
|
139
|
-
A("div", re, [
|
|
140
|
-
b(W, {
|
|
141
|
-
ref_key: "menuRef",
|
|
142
|
-
ref: M,
|
|
143
|
-
"close-on-click": !1,
|
|
144
|
-
disabled: r.disabled,
|
|
145
|
-
"z-index": 50,
|
|
146
|
-
"selector-for-dismiss-away-event-exclusion": ".fm-dialog, .fm-select__menu__wrapper"
|
|
147
|
-
}, {
|
|
148
|
-
"menu-button": O(() => [
|
|
149
|
-
z(e.$slots, "menu-button", {}, () => [
|
|
150
|
-
A("div", oe, [
|
|
151
|
-
b(w, { disabled: r.disabled }, {
|
|
152
|
-
default: O(() => [
|
|
153
|
-
b(s, {
|
|
154
|
-
color: I.value,
|
|
155
|
-
name: r.chipIcon,
|
|
156
|
-
outline: "",
|
|
157
|
-
size: "sm"
|
|
158
|
-
}, null, 8, ["color", "name"]),
|
|
159
|
-
m.value ? (c(), d("div", {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: le([
|
|
162
|
-
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
163
|
-
U.value
|
|
164
|
-
])
|
|
165
|
-
}, N(m.value), 3)) : x("", !0),
|
|
166
|
-
b(s, {
|
|
167
|
-
color: I.value,
|
|
168
|
-
name: "keyboard_arrow_down",
|
|
169
|
-
size: "sm"
|
|
170
|
-
}, null, 8, ["color"]),
|
|
171
|
-
r.clearable && !r.multiple && l.value != null && l.value !== "" && !r.disabled ? (c(), d("button", {
|
|
172
|
-
key: 1,
|
|
173
|
-
class: "ml-4 focus:outline-none",
|
|
174
|
-
type: "button",
|
|
175
|
-
"aria-label": "Clear selection",
|
|
176
|
-
onClick: te(Q, ["stop"])
|
|
177
|
-
}, [
|
|
178
|
-
b(s, {
|
|
179
|
-
name: "close",
|
|
180
|
-
size: "sm",
|
|
181
|
-
color: I.value
|
|
182
|
-
}, null, 8, ["color"])
|
|
183
|
-
])) : x("", !0)
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}, 8, ["disabled"])
|
|
187
|
-
])
|
|
188
|
-
], !0)
|
|
189
|
-
]),
|
|
190
|
-
default: O(() => [
|
|
191
|
-
A("div", se, [
|
|
192
|
-
r.searchable ? (c(), d("div", ie, [
|
|
193
|
-
A("div", ce, [
|
|
194
|
-
b(y, {
|
|
195
|
-
modelValue: V.value,
|
|
196
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) => V.value = i),
|
|
197
|
-
placeholder: r.searchPlaceholder
|
|
198
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
199
|
-
])
|
|
200
|
-
])) : x("", !0),
|
|
201
|
-
A("div", {
|
|
202
|
-
class: "flex-1 overflow-y-auto min-h-0",
|
|
203
|
-
style: ee({ maxHeight: typeof r.maxHeight == "number" ? r.maxHeight + "px" : r.maxHeight })
|
|
204
|
-
}, [
|
|
205
|
-
r.multiple ? (c(), d(S, { key: 0 }, [
|
|
206
|
-
r.showSelectAll ? (c(), T(H, {
|
|
207
|
-
key: 0,
|
|
208
|
-
label: "All",
|
|
209
|
-
"has-checkbox": "",
|
|
210
|
-
"model-value": k(P),
|
|
211
|
-
indeterminate: k(J),
|
|
212
|
-
onClick: k(q)
|
|
213
|
-
}, null, 8, ["model-value", "indeterminate", "onClick"])) : x("", !0),
|
|
214
|
-
n.value.length ? (c(!0), d(S, { key: 1 }, R(h.value, (i) => (c(), d(S, {
|
|
215
|
-
key: i.group
|
|
216
|
-
}, [
|
|
217
|
-
i.group ? (c(), d("div", ve, N(i.group) + " (" + N(i.options.length) + ") ", 1)) : x("", !0),
|
|
218
|
-
(c(!0), d(S, null, R(i.options, (g) => {
|
|
219
|
-
var K;
|
|
220
|
-
return z(e.$slots, "option", {
|
|
221
|
-
key: g.value,
|
|
222
|
-
option: g,
|
|
223
|
-
selected: k(P) || Array.isArray(l.value) && ((K = l.value) == null ? void 0 : K.includes(g.value)),
|
|
224
|
-
toggle: () => k(E)(g.value)
|
|
225
|
-
}, () => {
|
|
226
|
-
var D;
|
|
227
|
-
return [
|
|
228
|
-
b(H, {
|
|
229
|
-
label: g.label,
|
|
230
|
-
"has-checkbox": "",
|
|
231
|
-
"model-value": k(P) || Array.isArray(l.value) && ((D = l.value) == null ? void 0 : D.includes(g.value)),
|
|
232
|
-
onClick: (fe) => k(E)(g.value)
|
|
233
|
-
}, null, 8, ["label", "model-value", "onClick"])
|
|
234
|
-
];
|
|
235
|
-
}, !0);
|
|
236
|
-
}), 128))
|
|
237
|
-
], 64))), 128)) : x("", !0)
|
|
238
|
-
], 64)) : (c(), d(S, { key: 1 }, [
|
|
239
|
-
n.value.length ? (c(!0), d(S, { key: 0 }, R(n.value, (i) => z(e.$slots, "option", {
|
|
240
|
-
option: i,
|
|
241
|
-
selected: l.value === i.value,
|
|
242
|
-
toggle: () => G(i.value)
|
|
243
|
-
}, () => [
|
|
244
|
-
(c(), T(H, {
|
|
245
|
-
key: i.value,
|
|
246
|
-
label: i.label,
|
|
247
|
-
onClick: (g) => G(i.value)
|
|
248
|
-
}, null, 8, ["label", "onClick"]))
|
|
249
|
-
], !0)), 256)) : x("", !0)
|
|
250
|
-
], 64))
|
|
251
|
-
], 4)
|
|
252
|
-
])
|
|
253
|
-
]),
|
|
254
|
-
_: 3
|
|
255
|
-
}, 8, ["disabled"]),
|
|
256
|
-
z(e.$slots, "append-right", {}, void 0, !0)
|
|
257
|
-
])
|
|
258
|
-
]);
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
}), ye = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-81cde2b9"]]);
|
|
262
|
-
export {
|
|
263
|
-
ye as S
|
|
264
|
-
};
|
package/dist/object-Dwyg2LgX.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { toRaw as n } from "vue";
|
|
2
|
-
function t(r) {
|
|
3
|
-
return JSON.parse(JSON.stringify(r));
|
|
4
|
-
}
|
|
5
|
-
function o(r) {
|
|
6
|
-
if (typeof structuredClone > "u")
|
|
7
|
-
return t(r);
|
|
8
|
-
try {
|
|
9
|
-
return structuredClone(n(r));
|
|
10
|
-
} catch {
|
|
11
|
-
return t(r);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
o as c
|
|
16
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleBulkSaveAssignmentsReq, FdtoScheduleBulkSaveAssignmentsResult, FdtoScheduleBulkReplaceDemandReq, FdtoScheduleClearScheduleReq, FdtoScheduleCopyScheduleReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleReplaceDemandReq, FdtoScheduleSettings, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleCompleteOnboardingReq, FdtoScheduleValidatePosAccessReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleUpdateTimeOffStatusReq } from '@/types/schedule';
|
|
2
|
-
declare const ScheduleAPI: {
|
|
3
|
-
completeOnboarding(restaurantId: string, req: FdtoScheduleCompleteOnboardingReq): Promise<any>;
|
|
4
|
-
listEmployeeProfiles(employeeIds?: string[]): Promise<FdtoScheduleEmployee[]>;
|
|
5
|
-
listEmployeeConfigs(restaurantId: string): Promise<FdtoScheduleEmployeeConfig[]>;
|
|
6
|
-
saveEmployeeConfigs(restaurantId: string, req: FdtoScheduleSaveEmployeeConfigsReq): Promise<FdtoScheduleEmployeeConfig[]>;
|
|
7
|
-
getSettings(restaurantId: string): Promise<FdtoScheduleSettings>;
|
|
8
|
-
saveSettings(restaurantId: string, req: FdtoScheduleSaveSettingsReq): Promise<FdtoScheduleSettings>;
|
|
9
|
-
generateAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleGenerateReq): Promise<FdtoScheduleAutoScheduleResult>;
|
|
10
|
-
getAutoScheduleCapabilities(restaurantId: string): Promise<FdtoScheduleAutoScheduleCapabilities>;
|
|
11
|
-
applyAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleApplyReq): Promise<FdtoScheduleAutoScheduleApplyResult>;
|
|
12
|
-
/** One outlet's whole board over `[from, to]` (inclusive, 'YYYY-MM-DD'). */
|
|
13
|
-
readBoard(restaurantId: string, from: string, to: string): Promise<FdtoScheduleBoard>;
|
|
14
|
-
createTimeOff(restaurantId: string, req: FdtoScheduleCreateTimeOffReq): Promise<FdtoScheduleTimeOff>;
|
|
15
|
-
updateTimeOffStatus(restaurantId: string, id: string, req: FdtoScheduleUpdateTimeOffStatusReq): Promise<FdtoScheduleTimeOff | null>;
|
|
16
|
-
deleteTimeOff(restaurantId: string, id: string): Promise<void>;
|
|
17
|
-
/** Creates or updates the employee's shared business-level scheduling profile. */
|
|
18
|
-
createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
19
|
-
/** Edits the employee's shared business-level scheduling profile. */
|
|
20
|
-
updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
21
|
-
validatePosAccess(req: FdtoScheduleValidatePosAccessReq): Promise<void>;
|
|
22
|
-
/** Positions are shared across the business. */
|
|
23
|
-
createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
24
|
-
updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
25
|
-
/** Deleting one position is `deletePositions` with a single-id array — the backend's
|
|
26
|
-
* `DELETE positions/:id` route is gone; this is now `DELETE positions?ids=`. */
|
|
27
|
-
deletePosition(id: string): Promise<void>;
|
|
28
|
-
/** Creates one flat demand interval. */
|
|
29
|
-
createDemand(restaurantId: string, req: FdtoScheduleSaveDemandReq): Promise<FdtoScheduleDemand>;
|
|
30
|
-
/** Deletes a batch of demands in one request — e.g. `saveDemand` replacing a whole
|
|
31
|
-
* day/weekday's demand rows wholesale. Deleting one demand is just this with a single-id
|
|
32
|
-
* array. */
|
|
33
|
-
deleteDemands(restaurantId: string, ids: string[]): Promise<{
|
|
34
|
-
ok: true;
|
|
35
|
-
deletedCount: number;
|
|
36
|
-
}>;
|
|
37
|
-
/** Atomically replaces one date/weekday's flattened demand rows. */
|
|
38
|
-
replaceDemands(restaurantId: string, req: FdtoScheduleReplaceDemandReq): Promise<FdtoScheduleDemand[]>;
|
|
39
|
-
/** Atomically replaces several date/weekday demand generations. */
|
|
40
|
-
bulkReplaceDemands(restaurantId: string, req: FdtoScheduleBulkReplaceDemandReq): Promise<FdtoScheduleDemand[]>;
|
|
41
|
-
/** Replaces one date's note/holiday-mark. All three fields back to empty/false clears it. */
|
|
42
|
-
saveScheduleDay(restaurantId: string, date: string, req: FdtoScheduleSaveScheduleDayReq): Promise<FdtoScheduleScheduleDay | null>;
|
|
43
|
-
/** A one-off shift assignment. */
|
|
44
|
-
createAssignment(restaurantId: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment>;
|
|
45
|
-
updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
|
|
46
|
-
/** Atomically applies assignment updates, creates, and deletes used by moves and swaps. */
|
|
47
|
-
bulkSaveAssignments(restaurantId: string, req: FdtoScheduleBulkSaveAssignmentsReq): Promise<FdtoScheduleBulkSaveAssignmentsResult>;
|
|
48
|
-
/** Replaces demand and/or assignments in one backend transaction. */
|
|
49
|
-
copySchedule(restaurantId: string, req: FdtoScheduleCopyScheduleReq): Promise<any>;
|
|
50
|
-
/** Clears demand and/or assignments in one backend transaction. */
|
|
51
|
-
clearSchedule(restaurantId: string, req: FdtoScheduleClearScheduleReq): Promise<any>;
|
|
52
|
-
/** Deletes a batch of assignments in one request — e.g. a shift split into several segments
|
|
53
|
-
* getting replaced wholesale. Deleting one assignment is just this with a single-id
|
|
54
|
-
* array. */
|
|
55
|
-
deleteAssignments(restaurantId: string, ids: string[]): Promise<{
|
|
56
|
-
ok: true;
|
|
57
|
-
deletedCount: number;
|
|
58
|
-
}>;
|
|
59
|
-
/** Flips a batch of assignments to one status in a single request — e.g. Publish sending
|
|
60
|
-
* every DRAFT shift on the board to PUBLISHED at once. */
|
|
61
|
-
bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
|
|
62
|
-
};
|
|
63
|
-
export default ScheduleAPI;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare var __VLS_1: {};
|
|
2
|
-
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof __VLS_1) => any;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
-
new (): {
|
|
10
|
-
$slots: S;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Component } from 'vue';
|
|
2
|
-
/** Wrap a scheduling route in the layout needed by the scheduling board's full-bleed CSS. */
|
|
3
|
-
export declare function withScheduleShell(Comp: Component): {
|
|
4
|
-
inheritAttrs: boolean;
|
|
5
|
-
setup(_: unknown, { attrs }: {
|
|
6
|
-
attrs: Record<string, unknown>;
|
|
7
|
-
}): () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>;
|
|
10
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public portal-facing Schedule types.
|
|
3
|
-
*
|
|
4
|
-
* Wire contracts are inferred once from the shared package. This file keeps
|
|
5
|
-
* only view-model commands that intentionally do not cross HTTP (for example
|
|
6
|
-
* replacing a period made up of several persisted demand rows).
|
|
7
|
-
*/
|
|
8
|
-
export type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleApplyReq, FdtoScheduleAutoScheduleApplyResult, FdtoScheduleAutoScheduleCapabilities, FdtoScheduleAutoScheduleGenerateReq, FdtoScheduleAutoScheduleObjective, FdtoScheduleAutoSchedulePlanner, FdtoScheduleAutoScheduleProposal, FdtoScheduleAutoScheduleRejection, FdtoScheduleAutoScheduleResult, FdtoScheduleAutoScheduleTiming, FdtoScheduleAutoScheduleUnfilledNeed, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleBulkSaveAssignmentsReq, FdtoScheduleBulkSaveAssignmentsResult, FdtoScheduleBulkReplaceDemandReq, FdtoScheduleClearScheduleReq, FdtoScheduleCopyScheduleReq, FdtoScheduleCompleteOnboardingReq, FdtoScheduleBreak, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleEmployeeConfig, FdtoScheduleDayOperatingHours, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoScheduleOptionalDateRange, FdtoSchedulePayRate, FdtoSchedulePosition, FdtoSchedulePositionRef, FdtoSchedulePositionSelectorReq, FdtoScheduleRestaurantProfile, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleReplaceDemandReq, FdtoScheduleSaveEmployeeConfigsReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleSaveSettingsReq, FdtoScheduleScheduleDay, FdtoScheduleSettings, FdtoScheduleUpdateEmployeeProfileReq, FdtoScheduleValidatePosAccessReq, FdtoScheduleCreateTimeOffReq, FdtoScheduleTimeOff, FdtoScheduleTimeOffDayPart, FdtoScheduleTimeOffQuery, FdtoScheduleTimeOffStatus, FdtoScheduleTimeOffType, FdtoScheduleUpdateTimeOffStatusReq, } from '@feedmepos/hrm-schedule-contract';
|
|
9
|
-
/** UI-level date replacement command. The store expands these periods into flat
|
|
10
|
-
* ShiftDemand rows before calling the shared HTTP contract. */
|
|
11
|
-
export interface ScheduleReplaceDemandReq {
|
|
12
|
-
date: string;
|
|
13
|
-
periods: Array<{
|
|
14
|
-
startTime: string;
|
|
15
|
-
endTime: string;
|
|
16
|
-
headcount: number;
|
|
17
|
-
roles?: Array<{
|
|
18
|
-
positionId?: string;
|
|
19
|
-
positionName: string;
|
|
20
|
-
headcount: number;
|
|
21
|
-
}>;
|
|
22
|
-
}>;
|
|
23
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
-
export default _default;
|