@feedmepos/mf-hrm-portal 2.3.0-dev.13 → 2.3.0-dev.14

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.
Files changed (40) hide show
  1. package/dist/{ApprovalCodeList-D3egZFML.js → ApprovalCodeList-C9dauQ81.js} +4 -4
  2. package/dist/{AuditLogList-BzbaEsSj.js → AuditLogList-zW_N_ECT.js} +17 -18
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Do52KbKm.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js} +2 -2
  4. package/dist/{EmployeeList-BiM8dRwZ.js → EmployeeList-8jkHTd7q.js} +255 -267
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js} +6 -6
  6. package/dist/{GrantUserList-Dj2ms20E.js → GrantUserList-Dj55GA7O.js} +5 -5
  7. package/dist/{Main-C2z7Jf9A.js → Main-0TfvGJ4N.js} +5 -5
  8. package/dist/{Main-DmpwTPaI.js → Main-BQNkTyET.js} +9 -9
  9. package/dist/{Main-DklZWoKj.js → Main-CuUG6svQ.js} +2 -2
  10. package/dist/{PermissionSetList-C-qgCcRO.js → PermissionSetList-BsLi-TOK.js} +5 -5
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ggZB5zWW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js} +1014 -1014
  12. package/dist/{RoleList-ohfin77B.js → RoleList-DLDcyVWT.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-diuWysro.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js} +190 -181
  14. package/dist/{ScheduleGeneralPage-aCljFf21.js → ScheduleGeneralPage-BhYI6O9g.js} +132 -133
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-x_-BYkcc.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js} +669 -646
  16. package/dist/{SchedulePage-DdMHF6kX.js → SchedulePage-DPU4taJt.js} +7407 -7359
  17. package/dist/{SchedulePositionPage-CID91orD.js → SchedulePositionPage-Byt6nmUj.js} +82 -84
  18. package/dist/{SelectFilter-CG13h83-.js → SelectFilter-1fh00OZW.js} +1 -1
  19. package/dist/{TeamMemberList-DJIKL4dE.js → TeamMemberList-CyUX8Afk.js} +35 -36
  20. package/dist/{TimesheetList-BPXWPNfT.js → TimesheetList-Q4FeNgOT.js} +52 -53
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DVcV0knM.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js} +2 -2
  22. package/dist/{app-Bz8568j8.js → app-TuHQoM7K.js} +676 -666
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-DhSRKSu4.js → dayjs.min-DXnA8GYn.js} +1 -1
  25. package/dist/{employee-BM44u8b-.js → employee-Ctnil3cD.js} +3 -3
  26. package/dist/{iteration-BHDxs89d.js → iteration-BxOzv27y.js} +1 -1
  27. package/dist/{lodash-DgSYLwYD.js → lodash-CKT_RxJs.js} +1 -1
  28. package/dist/object-Dwyg2LgX.js +16 -0
  29. package/dist/{role-BMJ7LEHN.js → role-CNEJPyaD.js} +1 -1
  30. package/dist/{rule-CCo7_ckA.js → rule-FbuHv6Gh.js} +2 -2
  31. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
  32. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +3 -1
  33. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +2 -0
  34. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +3 -1
  35. package/dist/src/views/scheduling/data.d.ts +17 -0
  36. package/dist/style.css +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{useReportPermissions-C_Cd__n1.js → useReportPermissions-lemBrd1S.js} +3 -3
  39. package/package.json +1 -1
  40. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, r as o } from "./app-Bz8568j8.js";
1
+ import { j as e, i as r, r as o } from "./app-TuHQoM7K.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, f as K } from "./app-Bz8568j8.js";
1
+ import { h as Q, g as K } from "./app-TuHQoM7K.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as g } from "./dayjs.min-DhSRKSu4.js";
1
+ import { d as g } from "./dayjs.min-DXnA8GYn.js";
2
2
  import { defineStore as $, storeToRefs as x } from "pinia";
3
3
  import { ref as m } from "vue";
4
- import { s as E } from "./iteration-BHDxs89d.js";
4
+ import { s as E } from "./iteration-BxOzv27y.js";
5
5
  import { b as l, g as f, u as I } from "./restaurant-BbYRA_IT.js";
6
6
  import { i as v } from "./utils-BZkjJbju.js";
7
- import { u as P } from "./role-BMJ7LEHN.js";
7
+ import { u as P } from "./role-CNEJPyaD.js";
8
8
  const o = {
9
9
  async readEmployees() {
10
10
  return f(await l().get("/pos-users"));
@@ -1,4 +1,4 @@
1
- import { f as B } from "./app-Bz8568j8.js";
1
+ import { g as B } from "./app-TuHQoM7K.js";
2
2
  var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
3
3
  (function(e) {
4
4
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
@@ -1,4 +1,4 @@
1
- import { f as jt } from "./app-Bz8568j8.js";
1
+ import { g as jt } from "./app-TuHQoM7K.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -0,0 +1,16 @@
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,7 +1,7 @@
1
1
  import { defineStore as x, storeToRefs as b } from "pinia";
2
2
  import { ref as w } from "vue";
3
3
  import { useCoreStore as B } from "@feedmepos/mf-common";
4
- import { s as v } from "./iteration-BHDxs89d.js";
4
+ import { s as v } from "./iteration-BxOzv27y.js";
5
5
  import { g as f, b as p, u as I } from "./restaurant-BbYRA_IT.js";
6
6
  const R = {
7
7
  async readRoles() {
@@ -1,5 +1,5 @@
1
- import { s as W, c as q, e as y } from "./iteration-BHDxs89d.js";
2
- import { e as O, b as V, c as _, v as F, n as h, O as ee, D as M } from "./app-Bz8568j8.js";
1
+ import { s as W, c as q, e as y } from "./iteration-BxOzv27y.js";
2
+ import { f as O, c as V, d as _, v as F, n as h, O as ee, D as M } from "./app-TuHQoM7K.js";
3
3
  import { s as se } from "./utils-BZkjJbju.js";
4
4
  import { g, b as v, q as x, u as te } from "./restaurant-BbYRA_IT.js";
5
5
  import { defineStore as z, storeToRefs as K } from "pinia";
@@ -23,7 +23,8 @@ export interface TeamRow {
23
23
  picked: boolean;
24
24
  /** '' means "Any position" — a person with none. */
25
25
  position: string;
26
- second: string;
26
+ /** Additional positions this employee also covers. */
27
+ second: string[];
27
28
  employment: TeamEmployment;
28
29
  maxHours: string;
29
30
  rate: string;
@@ -41,7 +41,9 @@ export declare function useScheduleCostRail(board: ScheduleBoardApi, proposalAt?
41
41
  weeklyCost: import("vue").ComputedRef<number>;
42
42
  otHours: import("vue").ComputedRef<number>;
43
43
  monthlyOtUsed: import("vue").ComputedRef<number>;
44
- monthlyOtCapHours: number;
44
+ monthlyOtCapHours: import("vue").ComputedRef<number | null>;
45
+ monthlyOtProgress: import("vue").ComputedRef<number>;
46
+ monthlyOtHigh: import("vue").ComputedRef<boolean>;
45
47
  bySection: import("vue").ComputedRef<ScheduleSectionCost[]>;
46
48
  otRisk: import("vue").ComputedRef<ScheduleOtRisk[]>;
47
49
  };
@@ -181,6 +181,8 @@ export declare function useScheduleOnboardingEmployees(options: ScheduleOnboardi
181
181
  seedEmployees: (missingOnly?: boolean) => void;
182
182
  pickAll: (checked: boolean) => void;
183
183
  setPosition: (empId: number, value: string) => void;
184
+ removePositionFromRows: (position: string) => void;
185
+ toggleSecond: (empId: number, position: string) => void;
184
186
  setEmployment: (empId: number, kind: TeamEmployment) => void;
185
187
  setHours: (empId: number, value: string) => void;
186
188
  setRate: (empId: number, value: string) => void;
@@ -644,7 +644,7 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
644
644
  namedTotal: (range: import("./onboarding-types").ScheduleOnboardingRange) => number;
645
645
  copyDay: (mode: "all" | "wk" | "we") => void;
646
646
  addPositionNamed: (name?: string) => void;
647
- removePosition: (id: string) => void;
647
+ removePosition: (id: string) => Promise<void>;
648
648
  reviewRows: import("vue").ComputedRef<ReviewRow[]>;
649
649
  goTo: (target: ScheduleOnboardingStep) => void;
650
650
  avail: Record<number, import("./onboarding-types").AvailRow>;
@@ -824,6 +824,8 @@ export declare function useScheduleOnboardingWizard(board: ScheduleBoardApi, add
824
824
  teamSomePicked: import("vue").ComputedRef<boolean>;
825
825
  pickAll: (checked: boolean) => void;
826
826
  setPosition: (empId: number, value: string) => void;
827
+ removePositionFromRows: (position: string) => void;
828
+ toggleSecond: (empId: number, position: string) => void;
827
829
  setEmployment: (empId: number, kind: import("./onboarding-types").TeamEmployment) => void;
828
830
  setHours: (empId: number, value: string) => void;
829
831
  setRate: (empId: number, value: string) => void;
@@ -25,6 +25,23 @@ export declare function positionIdOf(name: string): string | undefined;
25
25
  /** The selector shape every position-carrying save request wants — `undefined` for a blank
26
26
  * name (the field itself has nothing to name), a resolved id alongside the name otherwise. */
27
27
  export declare function positionSelectorOf(name: string | undefined, positionId?: string): FdtoSchedulePositionSelectorReq | undefined;
28
+ /** Position IDs are authoritative after a rename. Keep the stored name only as a fallback for
29
+ * archived or legacy references that cannot be resolved back to the active catalogue. */
30
+ export declare function positionNameOf(position: {
31
+ positionId?: string | null;
32
+ positionName: string;
33
+ } | null | undefined, catalogue?: readonly {
34
+ id: string;
35
+ name: string;
36
+ }[]): string | undefined;
37
+ /** Resolves a position only when it still exists in the active catalogue. */
38
+ export declare function activePositionNameOf(position: {
39
+ positionId?: string | null;
40
+ positionName: string;
41
+ } | null | undefined, catalogue?: readonly {
42
+ id: string;
43
+ name: string;
44
+ }[]): string | undefined;
28
45
  /** A saved position reference can outlive its catalogue entry after a soft delete. */
29
46
  export declare function isArchivedPosition(name: string | undefined, positionId?: string): boolean;
30
47
  /** Which coverage positions a station label counts toward. Positions ARE the roles in this