@feedmepos/mf-hrm-portal 1.1.3-dev.7 → 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 (27) hide show
  1. package/dist/{AuditLogList-n6xAYZGv.js → AuditLogList-FDOzktEG.js} +119 -109
  2. package/dist/{EmployeeList-D9rLxXo5.js → EmployeeList-BlULf09V.js} +5 -5
  3. package/dist/{Main-BCa8A1rV.js → Main-BEXtYa2u.js} +5 -5
  4. package/dist/{Main-zQF3GD9j.js → Main-r19cnUfU.js} +8 -8
  5. package/dist/PermissionSetList-CNfiMPnB.js +323 -0
  6. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BA1LS-wd.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bu-eBtus.js} +253 -253
  7. package/dist/{RoleList-Cfv9wKaN.js → RoleList-BGmWrKAP.js} +6 -6
  8. package/dist/TeamMemberList-_DLS33js.js +965 -0
  9. package/dist/{TimesheetList-B0e-Muws.js → TimesheetList-_iQScXAp.js} +6 -6
  10. package/dist/{app-DKSPx49S.js → app-BwF4Swnp.js} +24 -8
  11. package/dist/app.js +1 -1
  12. package/dist/{dayjs.min-DZJQ_JpV.js → dayjs.min-DVWcfk3W.js} +1 -1
  13. package/dist/{employee-DKRqMph9.js → employee-09CJRs3Q.js} +3 -3
  14. package/dist/{index-D09s817L.js → index-BIzqz5Rs.js} +7 -5
  15. package/dist/{index-BwyUbhZj.js → index-C-0bzcOw.js} +1 -1
  16. package/dist/{lodash-CL6AaeJB.js → lodash-f-cIBAzV.js} +1 -1
  17. package/dist/{team-DEjtUFVl.js → team-doxRPLFp.js} +1 -1
  18. package/dist/{timesheet-B0usAfjL.js → timesheet-Dd_xXYAz.js} +2 -2
  19. package/dist/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{useAppStore-DfaKfSuR.js → useAppStore-CbDp946u.js} +1 -1
  21. package/dist/{useLoading-D2AX24ph.js → useLoading-s8etox00.js} +1 -1
  22. package/dist/{useReportPermissions-CwsHq61C.js → useReportPermissions-BphupOls.js} +2 -2
  23. package/dist/views/audit-log/locales/index.d.ts +8 -0
  24. package/dist/views/team/locales/index.d.ts +8 -0
  25. package/package.json +2 -2
  26. package/dist/PermissionSetList-EsoA_anf.js +0 -338
  27. package/dist/TeamMemberList-HkvCqzPj.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-DZJQ_JpV.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-DKSPx49S.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-D2AX24ph.js";
8
- import { i as Ce, j as Ve, s as Fe } from "./index-D09s817L.js";
9
- import { u as Ye } from "./employee-DKRqMph9.js";
10
- import { u as Le } from "./timesheet-B0usAfjL.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);
@@ -31,6 +31,7 @@ const ye = {
31
31
  user: "User",
32
32
  subject: "Subject",
33
33
  action: "Action",
34
+ operation: "Operation",
34
35
  outcome: "Status"
35
36
  },
36
37
  outcome: {
@@ -53,6 +54,7 @@ const ye = {
53
54
  user: "User",
54
55
  email: "E-mail",
55
56
  action: "Action",
57
+ operation: "Operation",
56
58
  subject: "Subject",
57
59
  field: "Field",
58
60
  outcome: "Outcome",
@@ -104,6 +106,7 @@ const ye = {
104
106
  user: "ผู้ใช้",
105
107
  subject: "หัวข้อ",
106
108
  action: "การกระทำ",
109
+ operation: "รายละเอียดการดำเนินการ",
107
110
  outcome: "สถานะ"
108
111
  },
109
112
  outcome: {
@@ -126,6 +129,7 @@ const ye = {
126
129
  user: "ผู้ใช้",
127
130
  email: "อีเมล",
128
131
  action: "การกระทำ",
132
+ operation: "รายละเอียดการดำเนินการ",
129
133
  subject: "หัวข้อ",
130
134
  field: "ฟิลด์",
131
135
  outcome: "ผลลัพธ์",
@@ -178,6 +182,7 @@ const ye = {
178
182
  user: "用户",
179
183
  subject: "主题",
180
184
  action: "操作",
185
+ operation: "操作说明",
181
186
  outcome: "状态"
182
187
  },
183
188
  outcome: {
@@ -200,6 +205,7 @@ const ye = {
200
205
  user: "用户",
201
206
  email: "邮箱",
202
207
  action: "操作",
208
+ operation: "操作说明",
203
209
  subject: "主题",
204
210
  field: "字段",
205
211
  outcome: "结果",
@@ -252,6 +258,7 @@ const ye = {
252
258
  user: "用戶",
253
259
  subject: "主題",
254
260
  action: "操作",
261
+ operation: "操作說明",
255
262
  outcome: "狀態"
256
263
  },
257
264
  outcome: {
@@ -274,6 +281,7 @@ const ye = {
274
281
  user: "用戶",
275
282
  email: "電子郵件",
276
283
  action: "操作",
284
+ operation: "操作說明",
277
285
  subject: "主題",
278
286
  field: "字段",
279
287
  outcome: "結果",
@@ -1021,7 +1029,9 @@ const ye = {
1021
1029
  code: "Code",
1022
1030
  name: "Name",
1023
1031
  role: "Role",
1024
- 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"
1025
1035
  },
1026
1036
  posRole: {
1027
1037
  placeholder: "Search POS role"
@@ -1159,7 +1169,9 @@ const ye = {
1159
1169
  code: "รหัส",
1160
1170
  name: "ชื่อ",
1161
1171
  role: "บทบาท",
1162
- nameEmptyError: "กรุณาป้อนชื่อ"
1172
+ nameEmptyError: "กรุณาป้อนชื่อ",
1173
+ restaurantRequired: "กรุณาเลือกร้านอาหารอย่างน้อย 1 แห่ง",
1174
+ roleRequired: "กรุณากำหนดบทบาทให้กับร้านอาหารที่เลือกทุกแห่ง"
1163
1175
  },
1164
1176
  posRole: {
1165
1177
  placeholder: "ค้นหาบทบาท POS"
@@ -1297,7 +1309,9 @@ const ye = {
1297
1309
  code: "工号",
1298
1310
  name: "姓名",
1299
1311
  role: "角色",
1300
- nameEmptyError: "请输入姓名"
1312
+ nameEmptyError: "请输入姓名",
1313
+ restaurantRequired: "请至少选择 1 间餐厅",
1314
+ roleRequired: "请为每间已选餐厅分配一个角色"
1301
1315
  },
1302
1316
  posRole: {
1303
1317
  placeholder: "搜索 POS 角色"
@@ -1435,7 +1449,9 @@ const ye = {
1435
1449
  code: "工號",
1436
1450
  name: "姓名",
1437
1451
  role: "角色",
1438
- nameEmptyError: "請輸入姓名"
1452
+ nameEmptyError: "請輸入姓名",
1453
+ restaurantRequired: "請至少選擇 1 間餐廳",
1454
+ roleRequired: "請為每間已選餐廳分配一個角色"
1439
1455
  },
1440
1456
  posRole: {
1441
1457
  placeholder: "搜索角色"
@@ -3103,10 +3119,10 @@ const se = (e) => ({
3103
3119
  }
3104
3120
  ]
3105
3121
  }
3106
- }), SA = ue(F(() => import("./Main-zQF3GD9j.js"))), _A = ue(F(() => import("./Main-BCa8A1rV.js"))), $A = ue(
3107
- F(() => import("./AuditLogList-n6xAYZGv.js"))
3108
- ), es = F(() => import("./EmployeeList-D9rLxXo5.js")), ts = F(() => import("./RoleList-Cfv9wKaN.js")), As = F(() => import("./TimesheetList-B0e-Muws.js")), ss = F(() => import("./TeamMemberList-HkvCqzPj.js")), rs = F(
3109
- () => import("./PermissionSetList-EsoA_anf.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")
3110
3126
  ), ms = [
3111
3127
  {
3112
3128
  path: "/",
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as e, i as r, r as o } from "./app-DKSPx49S.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-DKSPx49S.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-DZJQ_JpV.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-D09s817L.js";
6
- import { u as x } from "./useAppStore-DfaKfSuR.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-DKSPx49S.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) {
@@ -10305,8 +10307,8 @@ const Hc = Object.freeze(
10305
10307
  };
10306
10308
  export {
10307
10309
  ps as $,
10308
- Os as A,
10309
- jc as B,
10310
+ jc as A,
10311
+ Os as B,
10310
10312
  Im as C,
10311
10313
  wc as D,
10312
10314
  Qe as a,
@@ -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-DKSPx49S.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-DKSPx49S.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-D09s817L.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-DZJQ_JpV.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-D09s817L.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}`));