@feedmepos/mf-hrm-portal 2.3.1 → 2.3.3-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-CcvVEriB.js → ApprovalCodeList-D8ZVkmrF.js} +14 -15
- package/dist/AuditLogList-Fby1fcGU.js +1777 -0
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B1uS6T3r.js +459 -0
- package/dist/EmployeeList-DY2Y-FtT.js +907 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +90 -0
- package/dist/{GrantUserList-1ErIV7b7.js → GrantUserList-RK38DjjY.js} +15 -16
- package/dist/{Main-R0qyd8Ea.js → Main-424HHE7m.js} +5 -5
- package/dist/Main-BuJe2QNl.js +101 -0
- package/dist/{Main-CD8OS1rM.js → Main-Pv9x678t.js} +11 -11
- package/dist/MyPosProfile-Rc2ZTeQR.js +301 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-ig3oxdhh.js → PermissionSetList-BT1oUm8M.js} +44 -46
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRrhFF3y.js +4243 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CD3d4RX6.js +1840 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DS4eMJ6w.js +547 -0
- package/dist/RoleList-CrLxn4_K.js +274 -0
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/TeamMemberList-D32ZtSLP.js +2060 -0
- package/dist/{TimesheetList-BvsUk6kd.js → TimesheetList-ByUp0yfA.js} +11 -11
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D3--3EhR.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-9x0jnL2P.js} +3 -3
- package/dist/{app-DKHtjxyC.js → app-BsAwRWj0.js} +6670 -11433
- package/dist/app.js +3 -3
- package/dist/{approval-code-BIpLingm.js → approval-code-BUuYtJAO.js} +1 -1
- package/dist/{dayjs.min-CNNMpacl.js → dayjs.min-C9xnIrg1.js} +13 -13
- package/dist/{employee-H2J0xRqJ.js → employee-DAwBQ0bc.js} +62 -66
- package/dist/{grant-user-uZmvD_bw.js → grant-user-D-PdX5g-.js} +1 -1
- package/dist/{iteration-DkcNkScw.js → iteration-Dat4Ismm.js} +1 -1
- package/dist/{lodash-g-62RoFP.js → lodash-DjYVoggD.js} +1 -1
- package/dist/member-grant-CQHFGo-k.js +55 -0
- package/dist/restaurant-dbllb9m8.js +45 -0
- package/dist/{role-CkxDtfst.js → role-DN-jiQnS.js} +5 -4
- package/dist/{rule-BWvSqhBk.js → rule-Bgcb9R7I.js} +108 -103
- package/dist/src/api/audit-log/index.d.ts +0 -4
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/my-pos-profile/index.d.ts +5 -0
- package/dist/src/api/restaurant/index.d.ts +0 -2
- package/dist/src/api/staff-invite/index.d.ts +17 -0
- package/dist/src/components/AppForm.vue.d.ts +2 -2
- package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +1 -3
- package/dist/src/composables/useMenuAccess.d.ts +56 -0
- package/dist/src/composables/useMessage.d.ts +2 -8
- package/dist/src/composables/useStaffInviteProviders.d.ts +19 -0
- package/dist/src/helpers/member-grant.d.ts +36 -0
- package/dist/src/helpers/my-pos-profile.d.ts +37 -0
- package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
- package/dist/src/helpers/staff-invite.d.ts +51 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +2 -3
- package/dist/src/stores/employee.d.ts +12 -12
- package/dist/src/stores/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +30 -0
- package/dist/src/types/employee.d.ts +0 -1
- package/dist/src/types/my-pos-profile.d.ts +25 -0
- package/dist/src/types/staff-invite.d.ts +100 -0
- package/dist/src/types/team.d.ts +17 -1
- package/dist/src/views/audit-log/constants.d.ts +30 -9
- package/dist/src/views/audit-log/locales/index.d.ts +0 -488
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +200 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +51 -0
- package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +44 -0
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +716 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +48 -3
- package/dist/src/views/{scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts → team/member/ExistingMemberNotice.vue.d.ts} +6 -5
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
- package/dist/string-DZQ1uNjn.js +22 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Bp0PwbAN.js → useAppStore-BABlZnfR.js} +1 -1
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-sgL8DRUz.js → useLoading-B47q5dVg.js} +1 -1
- package/dist/{useReportPermissions-CcIHwTRI.js → useReportPermissions-D-nbQAm5.js} +5 -5
- package/package.json +3 -5
- package/dist/AuditLogList-C61-SnWG.js +0 -1950
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZ-ZDviW.js +0 -438
- package/dist/EmployeeList-Cucr2mxn.js +0 -776
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-4XV2qPxn.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/Main-B-F_cdM_.js +0 -96
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ClG4YhnF.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js +0 -35
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
- package/dist/RoleList-BqR_Vf8H.js +0 -740
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dg7S6nFO.js +0 -544
- package/dist/ScheduleGeneralPage-QYijA95u.js +0 -811
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-Bnyqna_E.js +0 -2556
- package/dist/SchedulePage-BrBZmuMj.js +0 -19458
- package/dist/SchedulePositionPage-NCvNg8v5.js +0 -282
- package/dist/SelectFilter-r-QOCO99.js +0 -264
- package/dist/TeamMemberList-B6ZnfKV0.js +0 -1154
- package/dist/object-Dwyg2LgX.js +0 -16
- package/dist/restaurant-CHpkjUPy.js +0 -1880
- package/dist/src/api/schedule/index.d.ts +0 -68
- 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/audit-log/pos-row.d.ts +0 -27
- 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/ScheduleAutoScheduleDoneArt.vue.d.ts +0 -2
- 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 -34
- 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 -33
- 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/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 -35
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +0 -7
- 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 -17
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +0 -24
- package/dist/src/views/scheduling/composables/schedule-currency.d.ts +0 -22
- 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 -1
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +0 -9
- 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 -23
- 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 -9
- 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 -137
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -75
- 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 -301
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -615
- 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 -49
- 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 -32
- 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 -52
- 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 -60
- 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 -1543
- 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 -33
- 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 -127
- 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 -33
- package/dist/src/views/scheduling/data.d.ts +0 -123
- package/dist/src/views/scheduling/locales/index.d.ts +0 -6988
- 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 -140
- package/dist/src/views/scheduling/types.d.ts +0 -381
- package/dist/string-VNuQNweN.js +0 -15
- package/dist/useDiscardConfirm-CzZSPyvh.js +0 -28
- /package/dist/src/{components/layout/SchedulePromoBanner.vue.d.ts → views/my-pos-profile/MyPosProfile.vue.d.ts} +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { computed as g, defineComponent as se, ref as U, onMounted as te, resolveComponent as x, createElementBlock as $, openBlock as h, Fragment as A, createBlock as R, createElementVNode as r, createVNode as m, unref as a, withCtx as b, h as u, renderList as ne, toDisplayString as p, createTextVNode as T, resolveDynamicComponent as z, withModifiers as re, nextTick as K } from "vue";
|
|
2
|
+
import { e as d } from "./iteration-Dat4Ismm.js";
|
|
3
|
+
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as le, useSnackbar as ie, useBreakpoints as ce, components as D, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as ue } from "./app-BsAwRWj0.js";
|
|
6
|
+
import { _ as W } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
+
import { _ as de } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
+
import { f as w, r as pe, h as fe } from "./rule-Bgcb9R7I.js";
|
|
9
|
+
import { u as j } from "./restaurant-dbllb9m8.js";
|
|
10
|
+
import { u as _e } from "./role-DN-jiQnS.js";
|
|
11
|
+
import { u as he } from "./useReportPermissions-D-nbQAm5.js";
|
|
12
|
+
import { _ as ve } from "./RoleForm.vue_vue_type_script_setup_true_lang-DS4eMJ6w.js";
|
|
13
|
+
function ge() {
|
|
14
|
+
const B = j();
|
|
15
|
+
return g(() => {
|
|
16
|
+
const s = {};
|
|
17
|
+
return B.restaurants.value.forEach((f) => {
|
|
18
|
+
s[f._id] = f;
|
|
19
|
+
}), s;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const ye = {
|
|
23
|
+
class: "space-y-8"
|
|
24
|
+
}, Ce = {
|
|
25
|
+
class: "flex justify-end xs:px-16"
|
|
26
|
+
}, xe = {
|
|
27
|
+
class: "flex flex-col h-full overflow-auto"
|
|
28
|
+
}, Re = {
|
|
29
|
+
class: "pb-64 sm:hidden md:hidden lg:hidden"
|
|
30
|
+
}, be = {
|
|
31
|
+
class: "space-y-4"
|
|
32
|
+
}, we = {
|
|
33
|
+
class: "fm-typo-en-body-lg-600"
|
|
34
|
+
}, Fe = {
|
|
35
|
+
class: "text-fm-color-typo-secondary"
|
|
36
|
+
}, Ee = {
|
|
37
|
+
class: "line-clamp-2"
|
|
38
|
+
}, Le = {
|
|
39
|
+
class: "font-bold"
|
|
40
|
+
}, ke = {
|
|
41
|
+
class: "flex items-start gap-4"
|
|
42
|
+
}, Se = {
|
|
43
|
+
class: "line-clamp-2"
|
|
44
|
+
}, Ue = {
|
|
45
|
+
class: "font-bold"
|
|
46
|
+
}, Te = {
|
|
47
|
+
class: "flex items-start gap-4"
|
|
48
|
+
}, Be = {
|
|
49
|
+
class: "line-clamp-2"
|
|
50
|
+
}, Me = {
|
|
51
|
+
class: "font-bold"
|
|
52
|
+
}, Ge = /* @__PURE__ */ se({
|
|
53
|
+
__name: "RoleList",
|
|
54
|
+
setup(B, {
|
|
55
|
+
expose: M
|
|
56
|
+
}) {
|
|
57
|
+
const {
|
|
58
|
+
t: s
|
|
59
|
+
} = ae(), {
|
|
60
|
+
allReportPermissions: f
|
|
61
|
+
} = he(), G = j(), q = g(() => G.restaurants.value), I = g(() => q.value.map((e) => e._id));
|
|
62
|
+
function F(e, o) {
|
|
63
|
+
const n = o === d.F_RULE_SUBJECT.enum.report ? f.value : void 0, t = w(e, o, n);
|
|
64
|
+
return ["-", "All"].includes(t) ? () => null : () => u(D.FmTooltip, {
|
|
65
|
+
"z-index": "999",
|
|
66
|
+
placement: "top",
|
|
67
|
+
class: "ml-2"
|
|
68
|
+
}, {
|
|
69
|
+
content: () => u("div", [s("hr.role.tooltip.labels.permission"), ...e.filter((i) => i.subject === o).map((i) => u("div", ["- ", pe(i).label]))]),
|
|
70
|
+
default: () => u(D.FmIcon, {
|
|
71
|
+
name: "info",
|
|
72
|
+
color: me.NeutralGray400
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function J(e, o) {
|
|
77
|
+
const n = o === d.F_RULE_SUBJECT.enum.report ? f.value : void 0, t = w(e, o, n);
|
|
78
|
+
return () => t === "All" ? t : u("div", {
|
|
79
|
+
class: "flex items-center"
|
|
80
|
+
}, [t, F(e, o)()]);
|
|
81
|
+
}
|
|
82
|
+
function N(e) {
|
|
83
|
+
return [{
|
|
84
|
+
label: s("hr.role.form.update"),
|
|
85
|
+
onClick: () => E(e)
|
|
86
|
+
}, {
|
|
87
|
+
label: s("hr.role.remove.title"),
|
|
88
|
+
onClick: () => Z(e),
|
|
89
|
+
itemClass: "text-fm-color-typo-error",
|
|
90
|
+
disabled: fe(e.permissions)
|
|
91
|
+
}];
|
|
92
|
+
}
|
|
93
|
+
const H = ({
|
|
94
|
+
role: e,
|
|
95
|
+
className: o = ""
|
|
96
|
+
}) => m("div", {
|
|
97
|
+
class: o,
|
|
98
|
+
onClick: (n) => {
|
|
99
|
+
n.stopPropagation();
|
|
100
|
+
}
|
|
101
|
+
}, [m(W, {
|
|
102
|
+
items: N(e)
|
|
103
|
+
}, null)]), O = [{
|
|
104
|
+
accessorKey: "name",
|
|
105
|
+
header: () => s("hr.role.columns.name"),
|
|
106
|
+
enableSorting: !1
|
|
107
|
+
}, {
|
|
108
|
+
accessorKey: "operation",
|
|
109
|
+
header: () => s("hr.role.columns.operation"),
|
|
110
|
+
cell: (e) => u(J(e.row.original.permissions, d.F_RULE_SUBJECT.enum.order)),
|
|
111
|
+
enableSorting: !1
|
|
112
|
+
}, {
|
|
113
|
+
accessorKey: "report",
|
|
114
|
+
header: () => s("hr.role.columns.report"),
|
|
115
|
+
cell: (e) => u(J(e.row.original.permissions, d.F_RULE_SUBJECT.enum.report)),
|
|
116
|
+
enableSorting: !1
|
|
117
|
+
}, {
|
|
118
|
+
accessorKey: "restaurants",
|
|
119
|
+
header: () => s("hr.role.columns.restaurants"),
|
|
120
|
+
cell: (e) => e.row.original.restaurants.map((o, n) => {
|
|
121
|
+
const t = o.code, i = `${t ? t + " - " : ""}${o.name}`;
|
|
122
|
+
return u("div", (n ? `
|
|
123
|
+
` : "") + i);
|
|
124
|
+
}),
|
|
125
|
+
enableSorting: !1
|
|
126
|
+
}, {
|
|
127
|
+
id: "action",
|
|
128
|
+
size: 52,
|
|
129
|
+
meta: {
|
|
130
|
+
cellClass: "pl-16",
|
|
131
|
+
headerContentClass: "-mx-16"
|
|
132
|
+
},
|
|
133
|
+
cell: (e) => H({
|
|
134
|
+
role: e.row.original,
|
|
135
|
+
className: "flex w-full items-center justify-end"
|
|
136
|
+
})
|
|
137
|
+
}], E = async (e) => {
|
|
138
|
+
var o;
|
|
139
|
+
C.value = e._id, await K(), (o = S.value) == null || o.trigger();
|
|
140
|
+
}, _ = _e(), Q = ge(), X = g(() => {
|
|
141
|
+
const e = _.roles.value || [];
|
|
142
|
+
return (I.value.length === 0 ? e : e.filter((n) => n.restaurants.some((t) => I.value.includes(t.id)))).map((n) => {
|
|
143
|
+
const t = n.restaurants.map((i) => {
|
|
144
|
+
const c = Q.value[i.id];
|
|
145
|
+
return {
|
|
146
|
+
...i,
|
|
147
|
+
// Prefer live data from restaurantMap so names populate reactively
|
|
148
|
+
// even when restaurants loaded after roles.
|
|
149
|
+
name: (c == null ? void 0 : c.profile.name) || i.name,
|
|
150
|
+
code: c == null ? void 0 : c.profile.code
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
return {
|
|
154
|
+
...n,
|
|
155
|
+
restaurants: t
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
}), y = g(() => {
|
|
159
|
+
var o;
|
|
160
|
+
return (o = X.value) == null ? void 0 : o.filter((n) => {
|
|
161
|
+
const t = k.value.toLowerCase(), i = n.name.toLowerCase().includes(t), l = (n.restaurants || []).some((v) => {
|
|
162
|
+
var V;
|
|
163
|
+
return v.name.toLowerCase().includes(t) || ((V = v.code) == null ? void 0 : V.toLowerCase().includes(t));
|
|
164
|
+
});
|
|
165
|
+
return i || l;
|
|
166
|
+
});
|
|
167
|
+
}), P = le(), L = ie(), {
|
|
168
|
+
breakpoints: Y
|
|
169
|
+
} = ce(), Z = (e) => {
|
|
170
|
+
P.open({
|
|
171
|
+
title: s("hr.role.remove.title"),
|
|
172
|
+
message: s("hr.role.remove.message", {
|
|
173
|
+
name: e.name
|
|
174
|
+
}),
|
|
175
|
+
minWidth: Y.value.lg ? 588 : 0,
|
|
176
|
+
primaryActions: {
|
|
177
|
+
text: s("common.remove"),
|
|
178
|
+
close: !1,
|
|
179
|
+
variant: "destructive"
|
|
180
|
+
},
|
|
181
|
+
secondaryActions: {
|
|
182
|
+
text: s("common.cancel"),
|
|
183
|
+
close: !0
|
|
184
|
+
}
|
|
185
|
+
}).onPrimary(async () => {
|
|
186
|
+
await _.deleteRole(e).then(() => L.open({
|
|
187
|
+
message: s("hr.role.remove.successMessage", {
|
|
188
|
+
name: e.name
|
|
189
|
+
}),
|
|
190
|
+
type: "success"
|
|
191
|
+
})).catch((o) => L.open({
|
|
192
|
+
message: o,
|
|
193
|
+
type: "error"
|
|
194
|
+
})), P.close();
|
|
195
|
+
});
|
|
196
|
+
}, k = U(""), S = U(), C = U(void 0);
|
|
197
|
+
async function ee() {
|
|
198
|
+
var e;
|
|
199
|
+
C.value = void 0, await K(), (e = S.value) == null || e.trigger();
|
|
200
|
+
}
|
|
201
|
+
async function oe() {
|
|
202
|
+
if (_.roles.value.length === 0)
|
|
203
|
+
try {
|
|
204
|
+
await _.readRoles();
|
|
205
|
+
} catch (e) {
|
|
206
|
+
console.error("Failed to load roles:", e), L.open({
|
|
207
|
+
message: e instanceof Error ? e.message : String(e),
|
|
208
|
+
type: "error"
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return te(() => {
|
|
213
|
+
oe();
|
|
214
|
+
}), M({
|
|
215
|
+
create: ee
|
|
216
|
+
}), (e, o) => {
|
|
217
|
+
const n = x("FmSearch"), t = x("FmTable"), i = x("FmListItem"), c = x("FmList");
|
|
218
|
+
return h(), $(A, null, [(h(), R(ve, {
|
|
219
|
+
id: C.value,
|
|
220
|
+
key: C.value,
|
|
221
|
+
ref_key: "roleFormRef",
|
|
222
|
+
ref: S
|
|
223
|
+
}, null, 8, ["id"])), r("div", ye, [r("div", Ce, [m(n, {
|
|
224
|
+
modelValue: k.value,
|
|
225
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => k.value = l),
|
|
226
|
+
class: "w-[320px] xs:w-full",
|
|
227
|
+
autofocus: "",
|
|
228
|
+
placeholder: a(s)("hr.role.search.placeholder") + " / " + a(s)("hr.restaurant.search.placeholder")
|
|
229
|
+
}, null, 8, ["modelValue", "placeholder"])]), m(ue, null, {
|
|
230
|
+
default: b(() => [r("div", xe, [m(de, {
|
|
231
|
+
"is-loading": a(_).isLoading.value,
|
|
232
|
+
"is-empty": y.value.length === 0,
|
|
233
|
+
"collapse-at": "xs",
|
|
234
|
+
title: a(s)("hr.role.noData.title"),
|
|
235
|
+
subtitle: a(s)("hr.role.noData.subtitle")
|
|
236
|
+
}, {
|
|
237
|
+
default: b(() => [m(t, {
|
|
238
|
+
class: "xs:hidden",
|
|
239
|
+
"column-defs": O,
|
|
240
|
+
"row-data": y.value,
|
|
241
|
+
"page-size": y.value.length,
|
|
242
|
+
loading: a(_).isLoading.value,
|
|
243
|
+
"pin-header-row": "",
|
|
244
|
+
"hide-footer": "",
|
|
245
|
+
"shrink-at": !1,
|
|
246
|
+
onRowClick: o[1] || (o[1] = (l) => E(l.original))
|
|
247
|
+
}, null, 8, ["row-data", "page-size", "loading"])]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["is-loading", "is-empty", "title", "subtitle"]), r("div", Re, [m(c, {
|
|
250
|
+
separator: ""
|
|
251
|
+
}, {
|
|
252
|
+
default: b(() => [(h(!0), $(A, null, ne(y.value, (l) => (h(), R(i, {
|
|
253
|
+
key: l._id,
|
|
254
|
+
class: "py-12 px-16 items-center justify-between",
|
|
255
|
+
onClick: (v) => E(l)
|
|
256
|
+
}, {
|
|
257
|
+
default: b(() => [r("div", be, [r("p", we, p(l.name), 1), r("div", Fe, [r("p", Ee, [r("span", Le, p(a(s)("hr.role.labels.restaurant")) + ":", 1), T(" " + p(l.restaurants.map((v) => v.name).join(", ")), 1)]), r("p", ke, [r("span", Se, [r("span", Ue, p(a(s)("hr.role.labels.operation")) + ":", 1), T(" " + p(a(w)(l.permissions, a(d.F_RULE_SUBJECT).enum.order)), 1)]), (h(), R(z(F(l.permissions, a(d.F_RULE_SUBJECT).enum.order))))]), r("p", Te, [r("span", Be, [r("span", Me, p(a(s)("hr.role.labels.report")) + ":", 1), T(" " + p(a(w)(l.permissions, a(d.F_RULE_SUBJECT).enum.report, a(f))), 1)]), (h(), R(z(F(l.permissions, a(d.F_RULE_SUBJECT).enum.report))))])])]), r("div", {
|
|
258
|
+
onClick: o[2] || (o[2] = re(() => {
|
|
259
|
+
}, ["stop"]))
|
|
260
|
+
}, [m(W, {
|
|
261
|
+
items: N(l)
|
|
262
|
+
}, null, 8, ["items"])])]),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1032, ["onClick"]))), 128))]),
|
|
265
|
+
_: 1
|
|
266
|
+
})])])]),
|
|
267
|
+
_: 1
|
|
268
|
+
})])], 64);
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
export {
|
|
273
|
+
Ge as default
|
|
274
|
+
};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as A, createElementBlock as d, openBlock as c, createElementVNode as _, createVNode as k, renderSlot as z, withCtx as H, createCommentVNode as S, normalizeStyle as ee, Fragment as w, createBlock as T, unref as C, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
|
+
import "@feedmepos/ui-library";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function ae(u, n, h = u) {
|
|
5
|
+
const l = $(!0), p = v(() => {
|
|
6
|
+
if (!l.value && !n.value)
|
|
7
|
+
return !0;
|
|
8
|
+
if (n.value && n.value.length > 0) {
|
|
9
|
+
const r = h.value.map((o) => o.value);
|
|
10
|
+
return n.value.length === r.length && n.value.every((o) => r.includes(o));
|
|
11
|
+
}
|
|
12
|
+
return !1;
|
|
13
|
+
}), t = v(() => {
|
|
14
|
+
var r, o, y, b;
|
|
15
|
+
return !!((r = n.value) != null && r.length && ((o = n.value) == null ? void 0 : o.length) > 0 && ((y = n.value) == null ? void 0 : y.length) < ((b = u.value) == null ? void 0 : b.length));
|
|
16
|
+
});
|
|
17
|
+
return { allCleared: l, allSelected: p, indeterminate: t, toggleAll: () => {
|
|
18
|
+
if (p.value) {
|
|
19
|
+
n.value = void 0, l.value = !0;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const r = h.value.map((o) => o.value);
|
|
23
|
+
r.length === u.value.length ? (n.value = void 0, l.value = !1) : (n.value = r, l.value = !1);
|
|
24
|
+
}, toggleOption: (r) => {
|
|
25
|
+
var y, b, B;
|
|
26
|
+
let o;
|
|
27
|
+
n.value === void 0 && l.value ? o = [r] : n.value === void 0 && !l.value ? o = (y = u.value.map((m) => m.value)) == null ? void 0 : y.filter((m) => m !== r) : (b = n.value) != null && b.includes(r) ? o = (B = n.value) == null ? void 0 : B.filter((m) => m !== r) : o = [...n.value || [], r], o.length === 0 ? (n.value = void 0, l.value = !0) : o.length === u.value.length ? (n.value = void 0, l.value = !1) : n.value = o;
|
|
28
|
+
} };
|
|
29
|
+
}
|
|
30
|
+
const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-center gap-8" }, re = { class: "inline-flex items-center" }, oe = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, se = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "flex gap-4 px-[6px] pt-4"
|
|
33
|
+
}, ie = { class: "flex-1" }, ce = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "px-12 pt-8 pb-4 text-xs font-semibold text-fm-color-typo-secondary select-none"
|
|
36
|
+
}, ve = /* @__PURE__ */ X({
|
|
37
|
+
__name: "SelectFilter",
|
|
38
|
+
props: {
|
|
39
|
+
items: { default: () => [] },
|
|
40
|
+
modelValue: {},
|
|
41
|
+
multiple: { type: Boolean, default: !1 },
|
|
42
|
+
placeholder: { default: "Select..." },
|
|
43
|
+
searchPlaceholder: { default: "Search" },
|
|
44
|
+
disabled: { type: Boolean, default: !1 },
|
|
45
|
+
variant: { default: "default" },
|
|
46
|
+
clearable: { type: Boolean, default: !1 },
|
|
47
|
+
searchable: { type: Boolean, default: !0 },
|
|
48
|
+
autoSelectFirst: { type: Boolean, default: !1 },
|
|
49
|
+
chipIcon: { default: "filter_list" },
|
|
50
|
+
showSelectAll: { type: Boolean, default: !0 },
|
|
51
|
+
maxHeight: { default: 300 },
|
|
52
|
+
selectedPrefix: { default: "Selected: " },
|
|
53
|
+
filterFn: {}
|
|
54
|
+
},
|
|
55
|
+
emits: ["update:modelValue", "change"],
|
|
56
|
+
setup(u, { expose: n, emit: h }) {
|
|
57
|
+
const l = u, p = h, t = v({
|
|
58
|
+
get: () => l.modelValue,
|
|
59
|
+
set: (e) => {
|
|
60
|
+
p("update:modelValue", e), p("change", e);
|
|
61
|
+
}
|
|
62
|
+
}), V = $(""), f = v(() => l.items), r = v(() => {
|
|
63
|
+
const e = V.value.trim();
|
|
64
|
+
if (!l.searchable || !e) return f.value;
|
|
65
|
+
if (l.filterFn)
|
|
66
|
+
return f.value.filter((s) => l.filterFn(s, e));
|
|
67
|
+
const a = e.toLowerCase();
|
|
68
|
+
return f.value.filter((s) => s.label.toLowerCase().includes(a));
|
|
69
|
+
}), o = v(() => f.value.some((e) => !!e.group)), y = v(() => {
|
|
70
|
+
if (!o.value)
|
|
71
|
+
return [{ group: "", options: r.value }];
|
|
72
|
+
const e = [], a = /* @__PURE__ */ new Map();
|
|
73
|
+
for (const s of r.value) {
|
|
74
|
+
const F = s.group ?? "";
|
|
75
|
+
let x = a.get(F);
|
|
76
|
+
x || (x = [], a.set(F, x), e.push({ group: F, options: x })), x.push(s);
|
|
77
|
+
}
|
|
78
|
+
return e;
|
|
79
|
+
}), b = v(() => {
|
|
80
|
+
if (!t.value || Array.isArray(t.value) && t.value.length === 0)
|
|
81
|
+
return l.placeholder;
|
|
82
|
+
if (Array.isArray(t.value) && t.value.length === 1) {
|
|
83
|
+
const a = f.value.find((s) => s.value === t.value[0]);
|
|
84
|
+
return (a == null ? void 0 : a.label) || l.placeholder;
|
|
85
|
+
}
|
|
86
|
+
const e = Array.isArray(t.value) ? t.value.length : 0;
|
|
87
|
+
return `${l.selectedPrefix}${e}`;
|
|
88
|
+
}), B = v(() => {
|
|
89
|
+
if (t.value === void 0 || t.value === null || t.value === "")
|
|
90
|
+
return l.placeholder;
|
|
91
|
+
const e = f.value.find((a) => a.value === t.value);
|
|
92
|
+
return (e == null ? void 0 : e.label) || l.placeholder;
|
|
93
|
+
}), m = v(
|
|
94
|
+
() => l.multiple ? b.value : B.value
|
|
95
|
+
), I = v(() => l.disabled ? "neutral-gray-200" : l.variant === "dark" ? "neutral-black" : "neutral-gray-400"), U = v(() => l.disabled ? "text-fm-color-neutral-gray-200" : l.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), L = $(void 0), j = new Proxy(L, {
|
|
96
|
+
get(e, a) {
|
|
97
|
+
return a === "value" ? Array.isArray(t.value) ? t.value : t.value === void 0 ? void 0 : [t.value] : L[a];
|
|
98
|
+
},
|
|
99
|
+
set(e, a, s) {
|
|
100
|
+
return a === "value" ? (t.value = s, !0) : (L[a] = s, !0);
|
|
101
|
+
}
|
|
102
|
+
}), { allSelected: O, toggleAll: q, toggleOption: E, indeterminate: J } = ae(
|
|
103
|
+
f,
|
|
104
|
+
j,
|
|
105
|
+
r
|
|
106
|
+
);
|
|
107
|
+
function G(e) {
|
|
108
|
+
var a;
|
|
109
|
+
l.multiple || (t.value = e, (a = M.value) == null || a.toggleMenu(!1));
|
|
110
|
+
}
|
|
111
|
+
function Q(e) {
|
|
112
|
+
e.stopPropagation(), !l.disabled && (t.value = null);
|
|
113
|
+
}
|
|
114
|
+
Y(
|
|
115
|
+
() => l.autoSelectFirst,
|
|
116
|
+
async (e) => {
|
|
117
|
+
if (e && !l.multiple && (t.value === void 0 || t.value === null)) {
|
|
118
|
+
await Z();
|
|
119
|
+
const a = f.value[0];
|
|
120
|
+
a && (t.value = a.value);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{ immediate: !0 }
|
|
124
|
+
);
|
|
125
|
+
const M = $(null);
|
|
126
|
+
return n({
|
|
127
|
+
open: () => {
|
|
128
|
+
var e;
|
|
129
|
+
return (e = M.value) == null ? void 0 : e.toggleMenu(!0);
|
|
130
|
+
},
|
|
131
|
+
close: () => {
|
|
132
|
+
var e;
|
|
133
|
+
return (e = M.value) == null ? void 0 : e.toggleMenu(!1);
|
|
134
|
+
}
|
|
135
|
+
}), (e, a) => {
|
|
136
|
+
const s = A("FmIcon"), F = A("FmChip"), x = A("FmSearch"), P = A("FmMenuItem"), W = A("FmMenu");
|
|
137
|
+
return c(), d("div", ue, [
|
|
138
|
+
_("div", ne, [
|
|
139
|
+
k(W, {
|
|
140
|
+
ref_key: "menuRef",
|
|
141
|
+
ref: M,
|
|
142
|
+
"close-on-click": !1,
|
|
143
|
+
disabled: u.disabled,
|
|
144
|
+
"z-index": 50,
|
|
145
|
+
"selector-for-dismiss-away-event-exclusion": ".fm-dialog, .fm-select__menu__wrapper"
|
|
146
|
+
}, {
|
|
147
|
+
"menu-button": H(() => [
|
|
148
|
+
z(e.$slots, "menu-button", {}, () => [
|
|
149
|
+
_("div", re, [
|
|
150
|
+
k(F, { disabled: u.disabled }, {
|
|
151
|
+
default: H(() => [
|
|
152
|
+
k(s, {
|
|
153
|
+
color: I.value,
|
|
154
|
+
name: u.chipIcon,
|
|
155
|
+
outline: "",
|
|
156
|
+
size: "sm"
|
|
157
|
+
}, null, 8, ["color", "name"]),
|
|
158
|
+
m.value ? (c(), d("div", {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: le([
|
|
161
|
+
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
162
|
+
U.value
|
|
163
|
+
])
|
|
164
|
+
}, N(m.value), 3)) : S("", !0),
|
|
165
|
+
k(s, {
|
|
166
|
+
color: I.value,
|
|
167
|
+
name: "keyboard_arrow_down",
|
|
168
|
+
size: "sm"
|
|
169
|
+
}, null, 8, ["color"]),
|
|
170
|
+
u.clearable && !u.multiple && t.value != null && t.value !== "" && !u.disabled ? (c(), d("button", {
|
|
171
|
+
key: 1,
|
|
172
|
+
class: "ml-4 focus:outline-none",
|
|
173
|
+
type: "button",
|
|
174
|
+
"aria-label": "Clear selection",
|
|
175
|
+
onClick: te(Q, ["stop"])
|
|
176
|
+
}, [
|
|
177
|
+
k(s, {
|
|
178
|
+
name: "close",
|
|
179
|
+
size: "sm",
|
|
180
|
+
color: I.value
|
|
181
|
+
}, null, 8, ["color"])
|
|
182
|
+
])) : S("", !0)
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["disabled"])
|
|
186
|
+
])
|
|
187
|
+
], !0)
|
|
188
|
+
]),
|
|
189
|
+
default: H(() => [
|
|
190
|
+
_("div", oe, [
|
|
191
|
+
u.searchable ? (c(), d("div", se, [
|
|
192
|
+
_("div", ie, [
|
|
193
|
+
k(x, {
|
|
194
|
+
modelValue: V.value,
|
|
195
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => V.value = i),
|
|
196
|
+
placeholder: u.searchPlaceholder
|
|
197
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
198
|
+
])
|
|
199
|
+
])) : S("", !0),
|
|
200
|
+
_("div", {
|
|
201
|
+
class: "flex-1 overflow-y-auto min-h-0",
|
|
202
|
+
style: ee({ maxHeight: typeof u.maxHeight == "number" ? u.maxHeight + "px" : u.maxHeight })
|
|
203
|
+
}, [
|
|
204
|
+
u.multiple ? (c(), d(w, { key: 0 }, [
|
|
205
|
+
u.showSelectAll ? (c(), T(P, {
|
|
206
|
+
key: 0,
|
|
207
|
+
label: "All",
|
|
208
|
+
"has-checkbox": "",
|
|
209
|
+
"model-value": C(O),
|
|
210
|
+
indeterminate: C(J),
|
|
211
|
+
onClick: C(q)
|
|
212
|
+
}, null, 8, ["model-value", "indeterminate", "onClick"])) : S("", !0),
|
|
213
|
+
r.value.length ? (c(!0), d(w, { key: 1 }, R(y.value, (i) => (c(), d(w, {
|
|
214
|
+
key: i.group
|
|
215
|
+
}, [
|
|
216
|
+
i.group ? (c(), d("div", ce, N(i.group) + " (" + N(i.options.length) + ") ", 1)) : S("", !0),
|
|
217
|
+
(c(!0), d(w, null, R(i.options, (g) => {
|
|
218
|
+
var K;
|
|
219
|
+
return z(e.$slots, "option", {
|
|
220
|
+
key: g.value,
|
|
221
|
+
option: g,
|
|
222
|
+
selected: C(O) || Array.isArray(t.value) && ((K = t.value) == null ? void 0 : K.includes(g.value)),
|
|
223
|
+
toggle: () => C(E)(g.value)
|
|
224
|
+
}, () => {
|
|
225
|
+
var D;
|
|
226
|
+
return [
|
|
227
|
+
k(P, {
|
|
228
|
+
label: g.label,
|
|
229
|
+
"has-checkbox": "",
|
|
230
|
+
"model-value": C(O) || Array.isArray(t.value) && ((D = t.value) == null ? void 0 : D.includes(g.value)),
|
|
231
|
+
onClick: (fe) => C(E)(g.value)
|
|
232
|
+
}, null, 8, ["label", "model-value", "onClick"])
|
|
233
|
+
];
|
|
234
|
+
}, !0);
|
|
235
|
+
}), 128))
|
|
236
|
+
], 64))), 128)) : S("", !0)
|
|
237
|
+
], 64)) : (c(), d(w, { key: 1 }, [
|
|
238
|
+
r.value.length ? (c(!0), d(w, { key: 0 }, R(r.value, (i) => z(e.$slots, "option", {
|
|
239
|
+
option: i,
|
|
240
|
+
selected: t.value === i.value,
|
|
241
|
+
toggle: () => G(i.value)
|
|
242
|
+
}, () => [
|
|
243
|
+
(c(), T(P, {
|
|
244
|
+
key: i.value,
|
|
245
|
+
label: i.label,
|
|
246
|
+
onClick: (g) => G(i.value)
|
|
247
|
+
}, null, 8, ["label", "onClick"]))
|
|
248
|
+
], !0)), 256)) : S("", !0)
|
|
249
|
+
], 64))
|
|
250
|
+
], 4)
|
|
251
|
+
])
|
|
252
|
+
]),
|
|
253
|
+
_: 3
|
|
254
|
+
}, 8, ["disabled"]),
|
|
255
|
+
z(e.$slots, "append-right", {}, void 0, !0)
|
|
256
|
+
])
|
|
257
|
+
]);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}), de = (u, n) => {
|
|
261
|
+
const h = u.__vccOpts || u;
|
|
262
|
+
for (const [l, p] of n)
|
|
263
|
+
h[l] = p;
|
|
264
|
+
return h;
|
|
265
|
+
}, pe = /* @__PURE__ */ de(ve, [["__scopeId", "data-v-81cde2b9"]]);
|
|
266
|
+
export {
|
|
267
|
+
pe as S,
|
|
268
|
+
de as _
|
|
269
|
+
};
|