@feedmepos/mf-hrm-portal 2.0.15-dev → 2.0.15-dev.3

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 (36) hide show
  1. package/dist/{AuditLogList-DBIsI4YF.js → AuditLogList-eyzJecZc.js} +4 -4
  2. package/dist/EmployeeList-QibdsTN-.js +736 -0
  3. package/dist/{Main-BAZAQTWi.js → Main-B_QCpWOx.js} +4 -4
  4. package/dist/{Main-D7yzD5SW.js → Main-Bjfm9a6M.js} +5 -5
  5. package/dist/{Main-B3YiMuFq.js → Main-DX1aet8y.js} +1298 -1294
  6. package/dist/{PermissionSetList-DBT9LtfT.js → PermissionSetList-fE9Zfrl6.js} +30 -30
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JpCfRxA9.js} +500 -500
  8. package/dist/RoleList-ByXZemFz.js +528 -0
  9. package/dist/{TeamMemberList-BCv5Vixx.js → TeamMemberList-D-_icv19.js} +327 -324
  10. package/dist/{TimesheetList-DpMBgVtY.js → TimesheetList-DVvz6id4.js} +7 -7
  11. package/dist/{app-pvHHFjbx.js → app-DJG3HGqG.js} +220 -261
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-BK_bM9xY.js → dayjs.min-CN6o-ax9.js} +1 -1
  14. package/dist/{employee-DhkixwiI.js → employee-CU-G-rAZ.js} +71 -74
  15. package/dist/{index-DK4fVbTF.js → index-ynxje0mm.js} +1 -1
  16. package/dist/{iteration-Bk3cnP07.js → iteration-C6Km_Rno.js} +1 -1
  17. package/dist/{lodash-TrOlqj07.js → lodash-DZvG4gEx.js} +1 -1
  18. package/dist/rule-X41LxaES.js +991 -0
  19. package/dist/src/helpers/rule.d.ts +1 -1
  20. package/dist/src/stores/employee.d.ts +124 -19
  21. package/dist/src/types/employee.d.ts +3 -0
  22. package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +4 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{timesheet-DSQeCVfL.js → timesheet-DUtxTIA4.js} +9 -9
  25. package/dist/tsconfig.app.tsbuildinfo +1 -1
  26. package/dist/useAppStore-CrUYEAtX.js +171 -0
  27. package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
  28. package/dist/{useLoading-fEAOlgoV.js → useLoading-hGUqfW4U.js} +1 -1
  29. package/dist/{useReportPermissions-CkOk_2tl.js → useReportPermissions-BgTdISQy.js} +3 -3
  30. package/dist/utils-BZkjJbju.js +17 -0
  31. package/package.json +1 -1
  32. package/dist/EmployeeList-BOSxLZbY.js +0 -702
  33. package/dist/RoleList-DeE5tN-5.js +0 -519
  34. package/dist/index-Bckj5jnu.js +0 -998
  35. package/dist/useAppStore-DwfwjZpc.js +0 -168
  36. package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
@@ -14,6 +14,7 @@ export interface IFdtoPosUserSummary {
14
14
  code?: string;
15
15
  passcode: string;
16
16
  isMasterUser: boolean;
17
+ isRestricted: boolean;
17
18
  restaurantRole: {
18
19
  restaurantId: string;
19
20
  roleId: string;
@@ -31,9 +32,11 @@ export interface IFdtoEmployeePage {
31
32
  total: number;
32
33
  }
33
34
  export type Employee = IFdtoPosUser & {
35
+ isRestricted: boolean;
34
36
  restaurants: {
35
37
  restaurantId: string;
36
38
  restaurantName: string;
39
+ restaurantCode?: string;
37
40
  roleId: string;
38
41
  roleName: string;
39
42
  }[];
@@ -12,9 +12,11 @@ declare const _default: import("vue").DefineComponent<{}, {
12
12
  isMasterUser: boolean;
13
13
  restaurantId: string;
14
14
  code?: string | undefined;
15
+ isRestricted: boolean;
15
16
  restaurants: {
16
17
  restaurantId: string;
17
18
  restaurantName: string;
19
+ restaurantCode?: string | undefined;
18
20
  roleId: string;
19
21
  roleName: string;
20
22
  }[];
@@ -28,9 +30,11 @@ declare const _default: import("vue").DefineComponent<{}, {
28
30
  passcode: string;
29
31
  isMasterUser: boolean;
30
32
  restaurantId: string;
33
+ isRestricted: boolean;
31
34
  restaurants: {
32
35
  restaurantId: string;
33
36
  restaurantName: string;
37
+ restaurantCode?: string | undefined;
34
38
  roleId: string;
35
39
  roleName: string;
36
40
  }[];
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .employee-list-table[data-v-08257b97] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-member-list-table[data-v-3716cb64] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label::-webkit-scrollbar{display:none}.audit-log-operation-label-detail{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail::-webkit-scrollbar{display:none}
1
+ .employee-list-table[data-v-a0537433] [class~=gap-24]>div:first-child{display:none}.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-member-list-table[data-v-d77998ca] [class~=gap-24]>div:first-child{display:none}.audit-log-action-label{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label::-webkit-scrollbar{display:none}.audit-log-operation-label-detail{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail::-webkit-scrollbar{display:none}
@@ -1,9 +1,9 @@
1
- import { d as i } from "./dayjs.min-BK_bM9xY.js";
1
+ import { d as i } from "./dayjs.min-CN6o-ax9.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, s as S } from "./iteration-Bk3cnP07.js";
5
- import { i as u, b as g } from "./index-Bckj5jnu.js";
6
- const f = {
4
+ import { b as c, g as y, s as S } from "./iteration-C6Km_Rno.js";
5
+ import { i as f, f as g } from "./utils-BZkjJbju.js";
6
+ const u = {
7
7
  async readTimesheets(t, e) {
8
8
  return y(await c().get(`timesheet?start=${t}&end=${e}`));
9
9
  },
@@ -13,7 +13,7 @@ const f = {
13
13
  };
14
14
  function A(t) {
15
15
  const e = t.map((n) => {
16
- const { startedAt: s, endedAt: a } = n, r = i(u(s)), o = a ? i(u(a)) : null, m = (o == null ? void 0 : o.diff(r, "minute", !1)) || 0, h = o ? g(m) : "", d = "YYYY-MM-DD hh:mm a";
16
+ const { startedAt: s, endedAt: a } = n, r = i(f(s)), o = a ? i(f(a)) : null, m = (o == null ? void 0 : o.diff(r, "minute", !1)) || 0, h = o ? g(m) : "", d = "YYYY-MM-DD hh:mm a";
17
17
  return {
18
18
  ...n,
19
19
  start: r.format(d),
@@ -27,14 +27,14 @@ function A(t) {
27
27
  const D = p("timesheet", () => {
28
28
  const t = l([]);
29
29
  async function e(s, a) {
30
- const r = await f.readTimesheets(
30
+ const r = await u.readTimesheets(
31
31
  i(s).startOf("day").toISOString(),
32
32
  i(a).endOf("day").toISOString()
33
33
  );
34
34
  t.value = A(r);
35
35
  }
36
36
  async function n(s, a, r) {
37
- await f.updateTimesheet(s.restaurantId, {
37
+ await u.updateTimesheet(s.restaurantId, {
38
38
  id: s._id,
39
39
  startAt: a,
40
40
  endAt: r
@@ -45,7 +45,7 @@ const D = p("timesheet", () => {
45
45
  readTimesheet: e,
46
46
  updateTimesheet: n
47
47
  };
48
- }), M = () => {
48
+ }), $ = () => {
49
49
  const t = D();
50
50
  return {
51
51
  ...t,
@@ -53,5 +53,5 @@ const D = p("timesheet", () => {
53
53
  };
54
54
  };
55
55
  export {
56
- M as u
56
+ $ as u
57
57
  };