@feedmepos/mf-hrm-portal 1.1.3-dev.8 → 1.1.3-dev.9

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 (25) hide show
  1. package/dist/{AuditLogList-CVOicxwC.js → AuditLogList-FDOzktEG.js} +101 -105
  2. package/dist/{EmployeeList-CSBiU32b.js → EmployeeList-BlULf09V.js} +5 -5
  3. package/dist/{Main-D9xZDqBk.js → Main-BEXtYa2u.js} +5 -5
  4. package/dist/{Main-BTCSW3JL.js → Main-r19cnUfU.js} +8 -8
  5. package/dist/{PermissionSetList-r1ZvAW01.js → PermissionSetList-CNfiMPnB.js} +3 -3
  6. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DXsl8Y5d.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bu-eBtus.js} +389 -389
  7. package/dist/{RoleList-Ca2gg1OL.js → RoleList-BGmWrKAP.js} +6 -6
  8. package/dist/TeamMemberList-_DLS33js.js +965 -0
  9. package/dist/{TimesheetList-DGRLp8ZY.js → TimesheetList-_iQScXAp.js} +6 -6
  10. package/dist/{app-c-GiPrdn.js → app-BwF4Swnp.js} +16 -8
  11. package/dist/app.js +1 -1
  12. package/dist/{dayjs.min-CJ2WQsea.js → dayjs.min-DVWcfk3W.js} +1 -1
  13. package/dist/{employee-8oXtifwK.js → employee-09CJRs3Q.js} +3 -3
  14. package/dist/{index-DSwL5tAm.js → index-BIzqz5Rs.js} +5 -3
  15. package/dist/{index-AdCh0qd6.js → index-C-0bzcOw.js} +1 -1
  16. package/dist/{lodash-C7JpKSnW.js → lodash-f-cIBAzV.js} +1 -1
  17. package/dist/{team-Fs4KPQg5.js → team-doxRPLFp.js} +1 -1
  18. package/dist/{timesheet-D05cQ6a7.js → timesheet-Dd_xXYAz.js} +2 -2
  19. package/dist/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{useAppStore-D1eLjzj4.js → useAppStore-CbDp946u.js} +1 -1
  21. package/dist/{useLoading-DB77wFeJ.js → useLoading-s8etox00.js} +1 -1
  22. package/dist/{useReportPermissions-p2VZ4ugv.js → useReportPermissions-BphupOls.js} +2 -2
  23. package/dist/views/team/locales/index.d.ts +8 -0
  24. package/package.json +2 -2
  25. package/dist/TeamMemberList-D__tUUst.js +0 -945
@@ -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-CJ2WQsea.js";
2
+ import { d as v } from "./dayjs.min-DVWcfk3W.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-c-GiPrdn.js";
5
+ import { _ as xe } from "./app-BwF4Swnp.js";
6
6
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-DB77wFeJ.js";
8
- import { i as Ce, j as Ve, s as Fe } from "./index-DSwL5tAm.js";
9
- import { u as Ye } from "./employee-8oXtifwK.js";
10
- import { u as Le } from "./timesheet-D05cQ6a7.js";
7
+ import { u as ke } from "./useLoading-s8etox00.js";
8
+ import { i as Ce, j as Ve, s as Fe } from "./index-BIzqz5Rs.js";
9
+ import { u as Ye } from "./employee-09CJRs3Q.js";
10
+ import { u as Le } from "./timesheet-Dd_xXYAz.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);
@@ -1029,7 +1029,9 @@ const ye = {
1029
1029
  code: "Code",
1030
1030
  name: "Name",
1031
1031
  role: "Role",
1032
- nameEmptyError: "Please enter name"
1032
+ nameEmptyError: "Please enter name",
1033
+ restaurantRequired: "Please select at least 1 restaurant",
1034
+ roleRequired: "Please assign a role to each selected restaurant"
1033
1035
  },
1034
1036
  posRole: {
1035
1037
  placeholder: "Search POS role"
@@ -1167,7 +1169,9 @@ const ye = {
1167
1169
  code: "รหัส",
1168
1170
  name: "ชื่อ",
1169
1171
  role: "บทบาท",
1170
- nameEmptyError: "กรุณาป้อนชื่อ"
1172
+ nameEmptyError: "กรุณาป้อนชื่อ",
1173
+ restaurantRequired: "กรุณาเลือกร้านอาหารอย่างน้อย 1 แห่ง",
1174
+ roleRequired: "กรุณากำหนดบทบาทให้กับร้านอาหารที่เลือกทุกแห่ง"
1171
1175
  },
1172
1176
  posRole: {
1173
1177
  placeholder: "ค้นหาบทบาท POS"
@@ -1305,7 +1309,9 @@ const ye = {
1305
1309
  code: "工号",
1306
1310
  name: "姓名",
1307
1311
  role: "角色",
1308
- nameEmptyError: "请输入姓名"
1312
+ nameEmptyError: "请输入姓名",
1313
+ restaurantRequired: "请至少选择 1 间餐厅",
1314
+ roleRequired: "请为每间已选餐厅分配一个角色"
1309
1315
  },
1310
1316
  posRole: {
1311
1317
  placeholder: "搜索 POS 角色"
@@ -1443,7 +1449,9 @@ const ye = {
1443
1449
  code: "工號",
1444
1450
  name: "姓名",
1445
1451
  role: "角色",
1446
- nameEmptyError: "請輸入姓名"
1452
+ nameEmptyError: "請輸入姓名",
1453
+ restaurantRequired: "請至少選擇 1 間餐廳",
1454
+ roleRequired: "請為每間已選餐廳分配一個角色"
1447
1455
  },
1448
1456
  posRole: {
1449
1457
  placeholder: "搜索角色"
@@ -3111,10 +3119,10 @@ const se = (e) => ({
3111
3119
  }
3112
3120
  ]
3113
3121
  }
3114
- }), SA = ue(F(() => import("./Main-BTCSW3JL.js"))), _A = ue(F(() => import("./Main-D9xZDqBk.js"))), $A = ue(
3115
- F(() => import("./AuditLogList-CVOicxwC.js"))
3116
- ), es = F(() => import("./EmployeeList-CSBiU32b.js")), ts = F(() => import("./RoleList-Ca2gg1OL.js")), As = F(() => import("./TimesheetList-DGRLp8ZY.js")), ss = F(() => import("./TeamMemberList-D__tUUst.js")), rs = F(
3117
- () => import("./PermissionSetList-r1ZvAW01.js")
3122
+ }), SA = ue(F(() => import("./Main-r19cnUfU.js"))), _A = ue(F(() => import("./Main-BEXtYa2u.js"))), $A = ue(
3123
+ F(() => import("./AuditLogList-FDOzktEG.js"))
3124
+ ), es = F(() => import("./EmployeeList-BlULf09V.js")), ts = F(() => import("./RoleList-BGmWrKAP.js")), As = F(() => import("./TimesheetList-_iQScXAp.js")), ss = F(() => import("./TeamMemberList-_DLS33js.js")), rs = F(
3125
+ () => import("./PermissionSetList-CNfiMPnB.js")
3118
3126
  ), ms = [
3119
3127
  {
3120
3128
  path: "/",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as e, i as r, r as o } from "./app-c-GiPrdn.js";
1
+ import { b as e, i as r, r as o } from "./app-BwF4Swnp.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-c-GiPrdn.js";
1
+ import { g as Q, c as K } from "./app-BwF4Swnp.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-CJ2WQsea.js";
1
+ import { d as T } from "./dayjs.min-DVWcfk3W.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-DSwL5tAm.js";
6
- import { u as x } from "./useAppStore-D1eLjzj4.js";
5
+ import { b as r, g as o, t as b, k as S, s as v } from "./index-BIzqz5Rs.js";
6
+ import { u as x } from "./useAppStore-CbDp946u.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 yi, baseClientInstance as ud, FeedMeAuth as cd } from "@feedmepos/mf-common";
2
- import { c as U, a as No, o as _n, N as Jr, w as md } from "./app-c-GiPrdn.js";
2
+ import { c as U, a as No, o as _n, N as Jr, w as md } from "./app-BwF4Swnp.js";
3
3
  import { defineStore as Xr, storeToRefs as Qr } from "pinia";
4
4
  import { ref as xr } from "vue";
5
5
  const Po = [
@@ -10112,9 +10112,11 @@ function Rm(e, n) {
10112
10112
  if (m && u) {
10113
10113
  if (m.conditions && u.conditions) {
10114
10114
  const f = JSON.parse(m.conditions), h = JSON.parse(u.conditions), E = Object.keys(f)[0], v = f[E].$in.filter(
10115
- (b) => !h[E].$in.includes(b)
10115
+ (R) => !h[E].$in.includes(R)
10116
10116
  );
10117
- v.length > 0 && r.push(t(m, v));
10117
+ v.length > 0 && r.push(t(m, v)), h[E].$in.filter(
10118
+ (R) => !f[E].$in.includes(R)
10119
+ ).length > 0 && r.push(u);
10118
10120
  } else if (!m.conditions && u.conditions)
10119
10121
  r.push(u);
10120
10122
  else if (!m.conditions && !u.conditions) {
@@ -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-c-GiPrdn.js";
5
+ import { c as st } from "./app-BwF4Swnp.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-c-GiPrdn.js";
1
+ import { c as jt } from "./app-BwF4Swnp.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,6 +1,6 @@
1
1
  import { defineStore as u } from "pinia";
2
2
  import { ref as t, computed as m } from "vue";
3
- import { t as l } from "./index-DSwL5tAm.js";
3
+ import { t as l } from "./index-BIzqz5Rs.js";
4
4
  const b = u("team", () => {
5
5
  const r = t([]), a = t(!1), s = m(
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-CJ2WQsea.js";
1
+ import { d as i } from "./dayjs.min-DVWcfk3W.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-DSwL5tAm.js";
4
+ import { b as c, g as y, k as u, j as S, s as g } from "./index-BIzqz5Rs.js";
5
5
  const f = {
6
6
  async readTimesheets(t, e) {
7
7
  return y(await c().get(`timesheet?start=${t}&end=${e}`));