@feedmepos/mf-hrm-portal 2.0.7-dev → 2.0.8-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.
Files changed (24) hide show
  1. package/dist/{AuditLogList-COq6WH3T.js → AuditLogList-Dp5B1jR-.js} +4 -4
  2. package/dist/{EmployeeList-CtosIPFL.js → EmployeeList-O6XTYBcz.js} +5 -5
  3. package/dist/{Main-B4YdcrGe.js → Main--bRTC1IR.js} +5 -5
  4. package/dist/{Main-CdsqeB2G.js → Main-XEb1ECXG.js} +8 -8
  5. package/dist/{PermissionSetList-BUORArci.js → PermissionSetList-DAwnZ-Gu.js} +3 -3
  6. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bx7A0p-f.js} +341 -341
  7. package/dist/{RoleList-D1NGE2IC.js → RoleList-BeB1etH6.js} +6 -6
  8. package/dist/{TeamMemberList-auSjZRNz.js → TeamMemberList-BKCsNEuQ.js} +7 -7
  9. package/dist/{TimesheetList-B8yCkaxb.js → TimesheetList-DNzuykEu.js} +6 -6
  10. package/dist/{app-CB3ye-CT.js → app-BovCLczm.js} +5 -5
  11. package/dist/app.js +1 -1
  12. package/dist/{dayjs.min-DOxEzdpe.js → dayjs.min-dxVeOXk_.js} +1 -1
  13. package/dist/{employee-G0pQg8_6.js → employee-DGiDGhcK.js} +3 -3
  14. package/dist/{index-Beu6IuhT.js → index-C0yiZ_7g.js} +3 -3
  15. package/dist/{index-DQArLkVB.js → index-CQ26ps7Z.js} +1 -1
  16. package/dist/{lodash-COjtwv4w.js → lodash-CBlFHm6b.js} +1 -1
  17. package/dist/src/api/permission-assignment/index.d.ts +1 -1
  18. package/dist/{team-CEtKQK6n.js → team-BqxJ-gNb.js} +1 -1
  19. package/dist/{timesheet-DZF9D3QQ.js → timesheet-BVR_FxsT.js} +2 -2
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/{useAppStore-9lbKMy_9.js → useAppStore-gvdZApLV.js} +1 -1
  22. package/dist/{useLoading-BIIvuJcM.js → useLoading-CCzb5k4G.js} +1 -1
  23. package/dist/{useReportPermissions-BXQ0-WwK.js → useReportPermissions-9TaHhs9I.js} +2 -2
  24. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
2
- import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-Beu6IuhT.js";
2
+ import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-C0yiZ_7g.js";
3
3
  import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as ye, components as se, useDialog as Le, useBreakpoints as Ie, FmButtonColorThemeVariant as fe, FmButtonVariant as Ee } from "@feedmepos/ui-library";
5
- import { _ as Se } from "./app-CB3ye-CT.js";
5
+ import { _ as Se } from "./app-BovCLczm.js";
6
6
  import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as Fe } from "./useAppStore-9lbKMy_9.js";
8
- import { u as xe } from "./useReportPermissions-BXQ0-WwK.js";
7
+ import { u as Fe } from "./useAppStore-gvdZApLV.js";
8
+ import { u as xe } from "./useReportPermissions-9TaHhs9I.js";
9
9
  import { u as $e, _ as oe, a as Te, b as Be } from "./useRestaurantMap-D5BNPLKh.js";
10
- import { l as ee } from "./lodash-COjtwv4w.js";
11
- import { u as De } from "./useLoading-BIIvuJcM.js";
10
+ import { l as ee } from "./lodash-CBlFHm6b.js";
11
+ import { u as De } from "./useLoading-CCzb5k4G.js";
12
12
  const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
13
13
  key: 0,
14
14
  class: "w-50 ml-5 flex flex-row items-start"
@@ -2,16 +2,16 @@ import { defineComponent as le, ref as F, resolveComponent as g, createBlock as
2
2
  import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
3
3
  import { useBreakpoints as Ce, useSnackbar as Me, useDialog as Le, components as Fe } from "@feedmepos/ui-library";
4
4
  import { _ as Ee, S as xe } from "./SelectFilter-DUj7GBtT.js";
5
- import { f as Te, U as ze, _ as qe } from "./app-CB3ye-CT.js";
5
+ import { f as Te, U as ze, _ as qe } from "./app-BovCLczm.js";
6
6
  import { _ as Ke } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
7
  import { u as Ne } from "./useSearch-B6WK1LBB.js";
8
- import { u as Ge } from "./useLoading-BIIvuJcM.js";
9
- import { g as Se, l as Be, u as De, m as We, n as Je, o as pe, q as Oe, p as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as He, t as fe } from "./index-Beu6IuhT.js";
10
- import "./index-DQArLkVB.js";
11
- import { u as Ae } from "./useAppStore-9lbKMy_9.js";
8
+ import { u as Ge } from "./useLoading-CCzb5k4G.js";
9
+ import { g as Se, l as Be, u as De, m as We, n as Je, o as pe, q as Oe, p as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as He, t as fe } from "./index-C0yiZ_7g.js";
10
+ import "./index-CQ26ps7Z.js";
11
+ import { u as Ae } from "./useAppStore-gvdZApLV.js";
12
12
  /* empty css */
13
- import { _ as es, a as ss } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ChqCTn1L.js";
14
- import { u as ts } from "./team-CEtKQK6n.js";
13
+ import { _ as es, a as ss } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bx7A0p-f.js";
14
+ import { u as ts } from "./team-BqxJ-gNb.js";
15
15
  const os = /* @__PURE__ */ le({
16
16
  __name: "BottomSheetMenu",
17
17
  setup(t) {
@@ -1,13 +1,13 @@
1
1
  import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
2
- import { d as v } from "./dayjs.min-DOxEzdpe.js";
2
+ import { d as v } from "./dayjs.min-dxVeOXk_.js";
3
3
  import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
5
- import { _ as xe } from "./app-CB3ye-CT.js";
5
+ import { _ as xe } from "./app-BovCLczm.js";
6
6
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-BIIvuJcM.js";
8
- import { i as Ce, j as Ve, s as Fe } from "./index-Beu6IuhT.js";
9
- import { u as Ye } from "./employee-G0pQg8_6.js";
10
- import { u as Le } from "./timesheet-DZF9D3QQ.js";
7
+ import { u as ke } from "./useLoading-CCzb5k4G.js";
8
+ import { i as Ce, j as Ve, s as Fe } from "./index-C0yiZ_7g.js";
9
+ import { u as Ye } from "./employee-DGiDGhcK.js";
10
+ import { u as Le } from "./timesheet-BVR_FxsT.js";
11
11
  function Me(x, a) {
12
12
  return ["years", "months"].find((S) => {
13
13
  const k = x.startOf(S), f = x.endOf(S);
@@ -2168,7 +2168,7 @@ var is = /* @__PURE__ */ function() {
2168
2168
  return this[E].originalRules;
2169
2169
  }
2170
2170
  }]), e;
2171
- }(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), i = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.restaurant = "business::restaurant", e.role = "business::role", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_reports_closeup = "business::report::reports::closeup", e.report_reports_dailySales = "business::report::reports::dailySales", e.report_reports_hourlySales = "business::report::reports::hourlySales", e.report_reports_drawer = "business::report::reports::drawer", e.report_reports_userProductSales = "business::report::reports::userProductSales", e.report_reports_counter = "business::report::reports::counter", e.report_reports_discount = "business::report::reports::discount", e.report_reports_timesheet = "business::report::reports::timesheet", e.report_reports_productSales = "business::report::reports::productSales", e.report_reports_addonSales = "business::report::reports::addonSales", e.report_reports_void = "business::report::reports::void", e.report_reports_refund = "business::report::reports::refund", e))(i || {}), Y = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(Y || {}), Re = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(Re || {});
2171
+ }(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), i = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.restaurant = "business::restaurant", e.role = "business::role", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_reports_closeup = "business::report::reports::closeup", e.report_reports_dailySales = "business::report::reports::dailySales", e.report_reports_hourlySales = "business::report::reports::hourlySales", e.report_reports_drawer = "business::report::reports::drawer", e.report_reports_userProductSales = "business::report::reports::userProductSales", e.report_reports_counter = "business::report::reports::counter", e.report_reports_discount = "business::report::reports::discount", e.report_reports_timesheet = "business::report::reports::timesheet", e.report_reports_productSales = "business::report::reports::productSales", e.report_reports_addonSales = "business::report::reports::addonSales", e.report_reports_void = "business::report::reports::void", e.report_reports_refund = "business::report::reports::refund", e))(i || {}), Y = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(Y || {}), Re = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(Re || {});
2172
2172
  const b = {
2173
2173
  general: "General",
2174
2174
  inventory: "Inventory",
@@ -3217,10 +3217,10 @@ const Ae = (e) => ({
3217
3217
  }
3218
3218
  ]
3219
3219
  }
3220
- }), _s = ue(F(() => import("./Main-CdsqeB2G.js"))), $s = ue(F(() => import("./Main-B4YdcrGe.js"))), eA = ue(
3221
- F(() => import("./AuditLogList-COq6WH3T.js"))
3222
- ), tA = F(() => import("./EmployeeList-CtosIPFL.js")), sA = F(() => import("./RoleList-D1NGE2IC.js")), AA = F(() => import("./TimesheetList-B8yCkaxb.js")), rA = F(() => import("./TeamMemberList-auSjZRNz.js")), aA = F(
3223
- () => import("./PermissionSetList-BUORArci.js")
3220
+ }), _s = ue(F(() => import("./Main-XEb1ECXG.js"))), $s = ue(F(() => import("./Main--bRTC1IR.js"))), eA = ue(
3221
+ F(() => import("./AuditLogList-Dp5B1jR-.js"))
3222
+ ), tA = F(() => import("./EmployeeList-O6XTYBcz.js")), sA = F(() => import("./RoleList-BeB1etH6.js")), AA = F(() => import("./TimesheetList-DNzuykEu.js")), rA = F(() => import("./TeamMemberList-BKCsNEuQ.js")), aA = F(
3223
+ () => import("./PermissionSetList-DAwnZ-Gu.js")
3224
3224
  ), BA = [
3225
3225
  {
3226
3226
  path: "/",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as e, b as r, r as o } from "./app-CB3ye-CT.js";
1
+ import { d as e, b as r, r as o } from "./app-BovCLczm.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-CB3ye-CT.js";
1
+ import { g as Q, c as K } from "./app-BovCLczm.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,9 +1,9 @@
1
- import { d as T } from "./dayjs.min-DOxEzdpe.js";
1
+ import { d as T } from "./dayjs.min-dxVeOXk_.js";
2
2
  import { defineStore as _, storeToRefs as U } from "pinia";
3
3
  import { ref as I } from "vue";
4
4
  import { useCoreStore as $ } from "@feedmepos/mf-common";
5
- import { b as r, g as o, t as b, k as S, s as v } from "./index-Beu6IuhT.js";
6
- import { u as x } from "./useAppStore-9lbKMy_9.js";
5
+ import { b as r, g as o, t as b, k as S, s as v } from "./index-C0yiZ_7g.js";
6
+ import { u as x } from "./useAppStore-gvdZApLV.js";
7
7
  const n = {
8
8
  async readEmployees() {
9
9
  return o(await r().get("/pos-users"));
@@ -1,5 +1,5 @@
1
1
  import { useCoreStore as In, baseClientInstance as gd, FeedMeAuth as yd } from "@feedmepos/mf-common";
2
- import { c as U, i as Zo, u as hn, w as oa, N as bd, a as Or, p as Je, U as Ed } from "./app-CB3ye-CT.js";
2
+ import { c as U, i as Zo, u as hn, w as oa, N as bd, a as Or, p as Je, U as Ed } from "./app-BovCLczm.js";
3
3
  import { defineStore as ra, storeToRefs as aa } from "pinia";
4
4
  import { ref as Gt, computed as Fo } from "vue";
5
5
  const Bo = [
@@ -10212,9 +10212,9 @@ const wt = "/permission-assignments", fn = {
10212
10212
  async delete(e) {
10213
10213
  return W(await ee().delete(`${wt}/${e}`));
10214
10214
  },
10215
- async addReportManagePermission(e) {
10215
+ async addReportManagePermission(e, n) {
10216
10216
  return W(
10217
- await ee().post("/my-permissions/report-manage", { permissionKey: e })
10217
+ await ee().post("/my-permissions/report-manage", { permissionKey: e, label: n })
10218
10218
  );
10219
10219
  }
10220
10220
  }, xc = ra("permissionAssignment", () => {
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
2
2
  var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
3
3
  var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
4
4
  import { readonly as Nt, ref as Rt } from "vue";
5
- import { c as st } from "./app-CB3ye-CT.js";
5
+ import { c as st } from "./app-BovCLczm.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-CB3ye-CT.js";
1
+ import { c as jt } from "./app-BovCLczm.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -6,7 +6,7 @@ declare const PermissionAssignmentAPI: {
6
6
  create(dto: IFdtoCreatePermissionAssignmentReq): Promise<IFdtoPermissionAssignment>;
7
7
  update(id: string, dto: IFdtoUpdatePermissionAssignmentReq): Promise<IFdtoPermissionAssignment>;
8
8
  delete(id: string): Promise<boolean>;
9
- addReportManagePermission(permissionKey: string): Promise<{
9
+ addReportManagePermission(permissionKey: string, label: string): Promise<{
10
10
  success: boolean;
11
11
  }>;
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d } from "pinia";
2
2
  import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./index-Beu6IuhT.js";
3
+ import { t as f } from "./index-C0yiZ_7g.js";
4
4
  const I = d("team", () => {
5
5
  const r = s([]), a = s(!1), m = o(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
@@ -1,7 +1,7 @@
1
- import { d as i } from "./dayjs.min-DOxEzdpe.js";
1
+ import { d as i } from "./dayjs.min-dxVeOXk_.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as c, g as y, k as u, j as S, s as g } from "./index-Beu6IuhT.js";
4
+ import { b as c, g as y, k as u, j as S, s as g } from "./index-C0yiZ_7g.js";
5
5
  const f = {
6
6
  async readTimesheets(t, e) {
7
7
  return y(await c().get(`timesheet?start=${t}&end=${e}`));