@feedmepos/mf-hrm-portal 2.3.0-dev.11 → 2.3.0-dev.12

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 (31) hide show
  1. package/dist/{ApprovalCodeList-Ce9BWzt9.js → ApprovalCodeList--NA0toYU.js} +2 -2
  2. package/dist/{AuditLogList-Cw7WN8K4.js → AuditLogList-B-NaB6OX.js} +3 -3
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BuofBFPC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-AEr2bDPY.js} +2 -2
  4. package/dist/{EmployeeList-B8qWPNvj.js → EmployeeList-idO38m7y.js} +4 -4
  5. package/dist/{GrantUserList-CgigJIPF.js → GrantUserList-B1S7yDKu.js} +3 -3
  6. package/dist/{Main-D26pgKy1.js → Main-D5cWrqP3.js} +9 -9
  7. package/dist/{Main-Cg2vC_cj.js → Main-cdf9NV8P.js} +2 -2
  8. package/dist/{Main-BfoVdxlY.js → Main-mcCvBPvJ.js} +5 -5
  9. package/dist/{PermissionSetList-CbtDiF4k.js → PermissionSetList-3_f6sJpK.js} +5 -5
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmin3rlY.js} +1153 -1153
  11. package/dist/{RoleList-D0I8mbyI.js → RoleList-ByQelhuG.js} +7 -7
  12. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-e4YOu59G.js} +1 -1
  13. package/dist/{ScheduleGeneralPage-Kv4pnxCL.js → ScheduleGeneralPage-TKWgkAoE.js} +4 -4
  14. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js → ScheduleModal.vue_vue_type_script_setup_true_lang-6bTAsmpp.js} +178 -175
  15. package/dist/{SchedulePage-BMWd0bod.js → SchedulePage-BpvgQYqL.js} +1812 -1769
  16. package/dist/{SchedulePositionPage-5Xvx6Dk5.js → SchedulePositionPage-BjvKTHyY.js} +3 -3
  17. package/dist/{TeamMemberList-Bh7i5l16.js → TeamMemberList-CJzF0wNK.js} +6 -6
  18. package/dist/{TimesheetList-BJKU-hnk.js → TimesheetList-CJcSs_B1.js} +5 -5
  19. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-zttvxhi-.js} +2 -2
  20. package/dist/{app-BDJ5qxhF.js → app-DLiYhsK2.js} +8 -8
  21. package/dist/app.js +1 -1
  22. package/dist/{dayjs.min-BWM0vY4w.js → dayjs.min-ar-wg1yi.js} +1 -1
  23. package/dist/{employee-bBSuAJUr.js → employee-CmUfaF0i.js} +3 -3
  24. package/dist/{iteration-Dg7VAkAn.js → iteration-uWvyRKkX.js} +1 -1
  25. package/dist/{lodash-BknY3p4o.js → lodash-BzVEbSHJ.js} +1 -1
  26. package/dist/{role-BJnJnNd_.js → role-R2KDFlIY.js} +1 -1
  27. package/dist/{rule-BEuOY7Wf.js → rule-C6ELRd3E.js} +2 -2
  28. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +10 -8
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/{useReportPermissions-D8hJ5W0t.js → useReportPermissions-B2U347Ey.js} +3 -3
  31. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as M, ref as A, onMounted as x, computed as z, createElementBlock as l, openBlock as a, createElementVNode as o, createVNode as i, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as E, withDirectives as S, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
2
2
  import { useRouter as F } from "vue-router";
3
3
  import { useSnackbar as B } from "@feedmepos/ui-library";
4
- import { R as I } from "./app-BDJ5qxhF.js";
5
- import { as as L, at as O, ab as R, ao as u, ap as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js";
6
- import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js";
4
+ import { R as I } from "./app-DLiYhsK2.js";
5
+ import { as as L, at as O, ab as R, ao as u, ap as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-6bTAsmpp.js";
6
+ import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-e4YOu59G.js";
7
7
  import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const q = { class: "main" }, H = {
9
9
  id: "viewPositions",
@@ -3,21 +3,21 @@ import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
4
4
  import { u as ps } from "./useDebounce-B8ZPVS5C.js";
5
5
  import { S as ye } from "./SelectFilter-CG13h83-.js";
6
- import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-BDJ5qxhF.js";
6
+ import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-DLiYhsK2.js";
7
7
  import { _ as ys } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
8
  import { _ as gs } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { s as _s, _ as Us, a as Ss, b as xs, c as Fs } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
10
  import { u as He } from "./useLoading-Ch1AUYT1.js";
11
11
  import { u as Ps } from "./useDiscardConfirm-CzZSPyvh.js";
12
12
  import { n as es } from "./string-VNuQNweN.js";
13
- import { l as Pe } from "./lodash-BknY3p4o.js";
14
- import { c as he } from "./iteration-Dg7VAkAn.js";
15
- import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-BEuOY7Wf.js";
16
- import { u as as } from "./role-BJnJnNd_.js";
13
+ import { l as Pe } from "./lodash-BzVEbSHJ.js";
14
+ import { c as he } from "./iteration-uWvyRKkX.js";
15
+ import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-C6ELRd3E.js";
16
+ import { u as as } from "./role-R2KDFlIY.js";
17
17
  import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
18
18
  import "./useAppStore-BoLkvkE2.js";
19
19
  import { g as ze, b as We, u as os } from "./restaurant-BbYRA_IT.js";
20
- import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js";
20
+ import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmin3rlY.js";
21
21
  import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
22
22
  var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
23
23
  const Ie = "__unassigned__";
@@ -1,17 +1,17 @@
1
1
  import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as r, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
2
- import { d as v } from "./dayjs.min-BWM0vY4w.js";
2
+ import { d as v } from "./dayjs.min-ar-wg1yi.js";
3
3
  import { useI18n as _e } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
5
5
  import { S as De } from "./SelectFilter-CG13h83-.js";
6
- import { _ as Se } from "./app-BDJ5qxhF.js";
6
+ import { _ as Se } from "./app-DLiYhsK2.js";
7
7
  import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
8
  import { u as ke } from "./useLoading-Ch1AUYT1.js";
9
- import { g as Ce, s as Fe } from "./iteration-Dg7VAkAn.js";
9
+ import { g as Ce, s as Fe } from "./iteration-uWvyRKkX.js";
10
10
  import { f as Ye } from "./utils-BZkjJbju.js";
11
11
  import { n as Le } from "./string-VNuQNweN.js";
12
- import { u as Me } from "./employee-bBSuAJUr.js";
12
+ import { u as Me } from "./employee-CmUfaF0i.js";
13
13
  import { u as Te } from "./restaurant-BbYRA_IT.js";
14
- import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js";
14
+ import { u as Ie } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-zttvxhi-.js";
15
15
  import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  function $e(x, a) {
17
17
  return ["years", "months"].find((S) => {
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-BWM0vY4w.js";
1
+ import { d as i } from "./dayjs.min-ar-wg1yi.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
4
  import { b as c, g as y } from "./restaurant-BbYRA_IT.js";
5
- import { s as S } from "./iteration-Dg7VAkAn.js";
5
+ import { s as S } from "./iteration-uWvyRKkX.js";
6
6
  import { i as f, f as g } from "./utils-BZkjJbju.js";
7
7
  const u = {
8
8
  async readTimesheets(t, e) {
@@ -9833,16 +9833,16 @@ const _e = (e) => ({
9833
9833
  }
9834
9834
  ]
9835
9835
  }
9836
- }), jc = ot(pe(() => import("./Main-D26pgKy1.js"))), Ec = ot(pe(() => import("./Main-BfoVdxlY.js"))), Pc = ot(
9837
- pe(() => import("./AuditLogList-Cw7WN8K4.js"))
9838
- ), Oc = ot(pe(() => import("./Main-Cg2vC_cj.js"))), Gc = pe(() => import("./ApprovalCodeList-Ce9BWzt9.js")), Yc = pe(() => import("./GrantUserList-CgigJIPF.js")), Vc = pe(() => import("./EmployeeList-B8qWPNvj.js")), Fc = pe(() => import("./RoleList-D0I8mbyI.js")), Sc = pe(() => import("./TimesheetList-BJKU-hnk.js")), kc = pe(() => import("./TeamMemberList-Bh7i5l16.js")), Rc = pe(
9839
- () => import("./PermissionSetList-CbtDiF4k.js")
9836
+ }), jc = ot(pe(() => import("./Main-D5cWrqP3.js"))), Ec = ot(pe(() => import("./Main-mcCvBPvJ.js"))), Pc = ot(
9837
+ pe(() => import("./AuditLogList-B-NaB6OX.js"))
9838
+ ), Oc = ot(pe(() => import("./Main-cdf9NV8P.js"))), Gc = pe(() => import("./ApprovalCodeList--NA0toYU.js")), Yc = pe(() => import("./GrantUserList-B1S7yDKu.js")), Vc = pe(() => import("./EmployeeList-idO38m7y.js")), Fc = pe(() => import("./RoleList-ByQelhuG.js")), Sc = pe(() => import("./TimesheetList-CJcSs_B1.js")), kc = pe(() => import("./TeamMemberList-CJzF0wNK.js")), Rc = pe(
9839
+ () => import("./PermissionSetList-3_f6sJpK.js")
9840
9840
  ), Hc = Ws(
9841
- ot(pe(() => import("./SchedulePage-BMWd0bod.js")))
9841
+ ot(pe(() => import("./SchedulePage-BpvgQYqL.js")))
9842
9842
  ), Ic = Ws(
9843
- ot(pe(() => import("./SchedulePositionPage-5Xvx6Dk5.js")))
9843
+ ot(pe(() => import("./SchedulePositionPage-BjvKTHyY.js")))
9844
9844
  ), Tc = Ws(
9845
- ot(pe(() => import("./ScheduleGeneralPage-Kv4pnxCL.js")))
9845
+ ot(pe(() => import("./ScheduleGeneralPage-TKWgkAoE.js")))
9846
9846
  ), ou = [
9847
9847
  {
9848
9848
  path: "/",
@@ -10892,7 +10892,7 @@ const iu = /* @__PURE__ */ at({
10892
10892
  };
10893
10893
  }
10894
10894
  });
10895
- var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.11", mode: "fmmf" };
10895
+ var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.12", mode: "fmmf" };
10896
10896
  console.log(
10897
10897
  `%c${xs.name}%c v${xs.version} %c${xs.mode}`,
10898
10898
  "background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, r as o } from "./app-BDJ5qxhF.js";
1
+ import { h as e, i as r, r as o } from "./app-DLiYhsK2.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-BDJ5qxhF.js";
1
+ import { g as Q, f as K } from "./app-DLiYhsK2.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-BWM0vY4w.js";
1
+ import { d as g } from "./dayjs.min-ar-wg1yi.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-Dg7VAkAn.js";
4
+ import { s as E } from "./iteration-uWvyRKkX.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-BJnJnNd_.js";
7
+ import { u as P } from "./role-R2KDFlIY.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-BDJ5qxhF.js";
1
+ import { f as B } from "./app-DLiYhsK2.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-BDJ5qxhF.js";
1
+ import { f as jt } from "./app-DLiYhsK2.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -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-Dg7VAkAn.js";
4
+ import { s as v } from "./iteration-uWvyRKkX.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-Dg7VAkAn.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-BDJ5qxhF.js";
1
+ import { s as W, c as q, e as y } from "./iteration-uWvyRKkX.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-DLiYhsK2.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";
@@ -1,16 +1,18 @@
1
1
  import type { ScheduleSelectOption } from '../components/ScheduleSelect.vue';
2
2
  /** Which outlet the board is scheduling, and the picker that changes it.
3
3
  *
4
- * On entry the host shell's own selection wins — mf-common keeps `currentRestaurant` in sync
5
- * with the `?restaurantId=` in the URL, so arriving from anywhere else in the portal lands on
6
- * the outlet that was already being looked at. Only when the shell has no opinion does this
7
- * fall back to the first outlet in the business, which is better than an empty board.
4
+ * On entry the outlet last picked in the schedule wins, remembered per business in localStorage.
5
+ * The host shell (mf-common) resets its own `currentRestaurant` to the first manageable outlet
6
+ * and rewrites `?restaurantId=` on every reload, so neither the URL nor the shell's selection
7
+ * can carry the user's pick across a refresh. Only when nothing was ever picked here does the
8
+ * shell's selection decide, so arriving from elsewhere in the portal lands on the outlet that
9
+ * was already being looked at. Failing that it falls back to the first outlet in the business,
10
+ * which is better than an empty board.
8
11
  *
9
- * Switching from the picker writes the new id back into `?restaurantId=` too — via
10
- * `router.replace`, not a navigation, so it does not reload the page or add a history entry.
12
+ * Switching from the picker saves the pick and writes the new id back into `?restaurantId=` too,
13
+ * via `router.replace`, not a navigation, so it does not reload the page or add a history entry.
11
14
  * The picker already re-fetches everything the new outlet needs (see switchTo below); this just
12
- * keeps the address bar honest about which one is on screen, so a refresh or a copied link lands
13
- * back on it instead of silently snapping to whatever the shell had before. */
15
+ * keeps the address bar honest about which one is on screen. */
14
16
  export declare function useScheduleOutlet(): {
15
17
  options: import("vue").ComputedRef<ScheduleSelectOption[]>;
16
18
  ready: import("vue").Ref<boolean, boolean>;