@feedmepos/mf-hrm-portal 2.2.0-dev → 2.2.1-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 (35) hide show
  1. package/dist/{ApprovalCodeList-Cwy-Rn90.js → ApprovalCodeList-BgPrC2H1.js} +2 -2
  2. package/dist/AuditLogList-B9k56ux1.js +1611 -0
  3. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-BTDBRB1-.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BKxQPhjZ.js} +2 -2
  4. package/dist/{EmployeeList-DJrCBYvi.js → EmployeeList-f05XEwMS.js} +8 -7
  5. package/dist/{GrantUserList-UgQBjh54.js → GrantUserList-Db4_e87R.js} +3 -3
  6. package/dist/{Main-B5YknOhi.js → Main-C83-6ZYQ.js} +9 -9
  7. package/dist/{Main-DQXiP6Io.js → Main-CZoUt9IM.js} +2 -2
  8. package/dist/{Main-BnWK_GkW.js → Main-DPmBwatV.js} +5 -5
  9. package/dist/{PermissionSetList-CfPZPmfV.js → PermissionSetList-CqcbzdXp.js} +5 -5
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CPk4KJUW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DMS04nsd.js} +912 -912
  11. package/dist/{RoleList-CHnu2j25.js → RoleList-DsINcxpz.js} +7 -7
  12. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
  13. package/dist/{TeamMemberList-DprMQ_8g.js → TeamMemberList-DuP1QWAS.js} +22 -21
  14. package/dist/{TimesheetList-D5G1dJfp.js → TimesheetList-D_Xq4ESR.js} +5 -5
  15. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DFfYiBBf.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-O2_M0Ktw.js} +2 -2
  16. package/dist/{app-BhF0Kk5X.js → app-3bHRu-TD.js} +780 -484
  17. package/dist/app.js +1 -1
  18. package/dist/{dayjs.min-Do1gXFxN.js → dayjs.min-BjrK6J3b.js} +1 -1
  19. package/dist/{employee-BRCSs9t_.js → employee-Ck_DJyl9.js} +3 -3
  20. package/dist/{iteration-C2XLVxL1.js → iteration-Bl07BT2c.js} +1 -1
  21. package/dist/{lodash-eudyY8-f.js → lodash-CwAowwGK.js} +1 -1
  22. package/dist/{role-CSL6Qv8l.js → role-Z1BT4HFT.js} +1 -1
  23. package/dist/{rule-D3DPWTm1.js → rule-DYmHm3nE.js} +2 -2
  24. package/dist/src/api/audit-log/index.d.ts +6 -0
  25. package/dist/src/types/audit-log.d.ts +1 -1
  26. package/dist/src/views/audit-log/event-line.d.ts +13 -0
  27. package/dist/src/views/audit-log/locales/index.d.ts +296 -0
  28. package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
  29. package/dist/style.css +1 -1
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  32. package/dist/{useReportPermissions-CSdIiY_7.js → useReportPermissions-DCF1U1Us.js} +3 -3
  33. package/package.json +1 -1
  34. package/dist/AuditLogList-CfDEZ6Z-.js +0 -1149
  35. package/dist/useDebounce-CWb5QR9G.js +0 -28
@@ -1,16 +1,16 @@
1
1
  import { computed as R, defineComponent as we, ref as D, watch as oe, onMounted as ke, resolveComponent as F, createBlock as j, openBlock as c, unref as o, withCtx as b, createElementVNode as n, createVNode as u, createElementBlock as C, Fragment as E, createCommentVNode as re, renderList as Q, toDisplayString as U, normalizeClass as ze, h as B, createTextVNode as pe, resolveDynamicComponent as xe, withModifiers as Ke, nextTick as Ce } from "vue";
2
- import { e as L } from "./iteration-C2XLVxL1.js";
2
+ import { e as L } from "./iteration-Bl07BT2c.js";
3
3
  import { useI18n as Ve } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Se, components as ve, useDialog as Ne, useBreakpoints as Oe, FmButtonColorThemeVariant as Je } from "@feedmepos/ui-library";
5
- import { k as qe, A as We, S as Ge, _ as He } from "./app-BhF0Kk5X.js";
5
+ import { k as qe, A as We, S as Ge, _ as He } from "./app-3bHRu-TD.js";
6
6
  import { u as Qe, _ as Fe } from "./useDiscardConfirm-DPhEV6v0.js";
7
7
  import { _ as Xe } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
- import { e as Ye, r as W, h as Ue, f as Ze, g as Re, a as es, b as ne } from "./rule-D3DPWTm1.js";
8
+ import { e as Ye, r as W, h as Ue, f as Ze, g as Re, a as es, b as ne } from "./rule-DYmHm3nE.js";
9
9
  import { u as _e } from "./restaurant-YOVMuuFY.js";
10
- import { u as $e } from "./role-CSL6Qv8l.js";
11
- import { u as Ee } from "./useReportPermissions-CSdIiY_7.js";
12
- import { l as ie } from "./lodash-eudyY8-f.js";
13
- import { u as ss, _ as ts, a as as } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-BTDBRB1-.js";
10
+ import { u as $e } from "./role-Z1BT4HFT.js";
11
+ import { u as Ee } from "./useReportPermissions-DCF1U1Us.js";
12
+ import { l as ie } from "./lodash-CwAowwGK.js";
13
+ import { u as ss, _ as ts, a as as } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-BKxQPhjZ.js";
14
14
  import { _ as fe } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
15
15
  import { u as ls } from "./useLoading-BH02lYns.js";
16
16
  function os() {
@@ -0,0 +1,16 @@
1
+ import { defineComponent as t, createElementBlock as n, openBlock as o, normalizeStyle as l } from "vue";
2
+ const i = /* @__PURE__ */ t({
3
+ __name: "Skeleton",
4
+ props: {
5
+ width: { default: "160px" }
6
+ },
7
+ setup(e) {
8
+ return (r, a) => (o(), n("div", {
9
+ class: "h-16 animate-pulse rounded bg-fm-color-neutral-gray-200",
10
+ style: l({ width: e.width })
11
+ }, null, 4));
12
+ }
13
+ });
14
+ export {
15
+ i as _
16
+ };
@@ -1,19 +1,20 @@
1
1
  import { defineComponent as Ie, resolveComponent as F, createElementBlock as N, openBlock as y, createElementVNode as u, createVNode as d, toDisplayString as k, unref as r, computed as I, ref as b, createCommentVNode as K, withCtx as ue, createBlock as z, watch as fe, Fragment as Ne, renderList as us, withKeys as qe, withModifiers as Ve, nextTick as ms, onUnmounted as ds, h as cs, createTextVNode as ps } from "vue";
2
2
  import { useI18n as Pe, useCoreStore as Ae, baseClientInstance as Ke } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as He, useDialog as es, useBreakpoints as ss, components as je } from "@feedmepos/ui-library";
4
- import { u as fs, _ as vs } from "./useDebounce-CWb5QR9G.js";
5
- import { _ as bs, S as ye } from "./SelectFilter-ATOm0hdn.js";
6
- import { v as ze, m as hs, b as ys, _ as _s, a as gs } from "./app-BhF0Kk5X.js";
7
- import { u as xs, _ as Us } from "./useDiscardConfirm-DPhEV6v0.js";
8
- import { _ as Ss } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
4
+ import { u as fs } from "./useDebounce-B8ZPVS5C.js";
5
+ import { _ as vs, S as ye } from "./SelectFilter-ATOm0hdn.js";
6
+ import { v as ze, m as bs, b as hs, _ as ys, a as _s } from "./app-3bHRu-TD.js";
7
+ import { u as gs, _ as xs } from "./useDiscardConfirm-DPhEV6v0.js";
8
+ import { _ as Us } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
+ import { _ as Ss } from "./Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js";
9
10
  import { u as Fs } from "./useLoading-BH02lYns.js";
10
- import { l as Se } from "./lodash-eudyY8-f.js";
11
- import { c as he } from "./iteration-C2XLVxL1.js";
12
- import { u as ts, c as Le, d as Ge, m as Me, i as as, p as We, j as Vs, k as Je, l as Xe, s as ws, n as Is, o as Ps, q as ks, v as Rs, t as Fe } from "./rule-D3DPWTm1.js";
13
- import { u as ls } from "./role-CSL6Qv8l.js";
11
+ import { l as Se } from "./lodash-CwAowwGK.js";
12
+ import { c as he } from "./iteration-Bl07BT2c.js";
13
+ import { u as ts, c as Le, d as Ge, m as Me, i as as, p as We, j as Vs, k as Je, l as Xe, s as ws, n as Is, o as Ps, q as ks, v as Rs, t as Fe } from "./rule-DYmHm3nE.js";
14
+ import { u as ls } from "./role-Z1BT4HFT.js";
14
15
  import { u as os, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DVVSBIx2.js";
15
16
  import { g as Ze, u as rs } from "./restaurant-YOVMuuFY.js";
16
- import { _ as Cs } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CPk4KJUW.js";
17
+ import { _ as Cs } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DMS04nsd.js";
17
18
  var ge = /* @__PURE__ */ ((i) => (i.Update = "Update", i.Remove = "Remove", i))(ge || {});
18
19
  const we = "__unassigned__";
19
20
  function Qe(i) {
@@ -200,7 +201,7 @@ const Ms = { class: "w-full flex flex-col gap-16" }, Ns = { class: "flex items-c
200
201
  ]);
201
202
  };
202
203
  }
203
- }), st = /* @__PURE__ */ bs(et, [["__scopeId", "data-v-827dfd60"]]), tt = { class: "flex flex-col gap-40" }, at = { class: "flex items-center" }, lt = { class: "flex-1 flex flex-col" }, ot = { class: "fm-typo-en-title-sm-600" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, nt = { class: "flex flex-row gap-16" }, it = { class: "flex flex-col gap-8" }, ut = { class: "fm-typo-en-body-lg-400" }, mt = { class: "space-y-16 rounded-lg border border-fm-color-neutral-gray-200 p-16" }, dt = { class: "fm-typo-en-title-sm-600" }, ct = { class: "space-y-16" }, pt = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, ft = { class: "text-sm font-semibold text-fm-color-typo-primary" }, vt = { class: "text-sm font-semibold text-fm-color-typo-primary" }, bt = { class: "flex justify-self-end" }, ht = ["aria-label", "onClick", "onKeydown"], Te = 4, yt = /* @__PURE__ */ Ie({
204
+ }), st = /* @__PURE__ */ vs(et, [["__scopeId", "data-v-827dfd60"]]), tt = { class: "flex flex-col gap-40" }, at = { class: "flex items-center" }, lt = { class: "flex-1 flex flex-col" }, ot = { class: "fm-typo-en-title-sm-600" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, nt = { class: "flex flex-row gap-16" }, it = { class: "flex flex-col gap-8" }, ut = { class: "fm-typo-en-body-lg-400" }, mt = { class: "space-y-16 rounded-lg border border-fm-color-neutral-gray-200 p-16" }, dt = { class: "fm-typo-en-title-sm-600" }, ct = { class: "space-y-16" }, pt = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, ft = { class: "text-sm font-semibold text-fm-color-typo-primary" }, vt = { class: "text-sm font-semibold text-fm-color-typo-primary" }, bt = { class: "flex justify-self-end" }, ht = ["aria-label", "onClick", "onKeydown"], Te = 4, yt = /* @__PURE__ */ Ie({
204
205
  __name: "TeamMemberMasterUser",
205
206
  props: {
206
207
  modelValue: {
@@ -597,7 +598,7 @@ const Ms = { class: "w-full flex flex-col gap-16" }, Ns = { class: "flex items-c
597
598
  customPermissions: s,
598
599
  permissions: c.map((re) => ({
599
600
  ...re,
600
- subject: hs(re.subject)
601
+ subject: bs(re.subject)
601
602
  })),
602
603
  permissionSetIds: g.value,
603
604
  name: ((Q = V.value) == null ? void 0 : Q.displayName) || ((q = n.initialValue) == null ? void 0 : q.name) || "",
@@ -748,7 +749,7 @@ const Ms = { class: "w-full flex flex-col gap-16" }, Ns = { class: "flex items-c
748
749
  var ee = /* @__PURE__ */ function(i) {
749
750
  return i[i.ADD = 0] = "ADD", i[i.UPDATE = 1] = "UPDATE", i[i.CLOSED = 2] = "CLOSED", i;
750
751
  }(ee || {});
751
- const ea = /* @__PURE__ */ Ie({
752
+ const sa = /* @__PURE__ */ Ie({
752
753
  __name: "TeamMemberList",
753
754
  setup(i, {
754
755
  expose: R
@@ -787,7 +788,7 @@ const ea = /* @__PURE__ */ Ie({
787
788
  onClick: () => B(ge.Remove, e),
788
789
  itemClass: "text-fm-color-typo-error"
789
790
  }, ne = e.doc.isOwner ? [U] : [U, P];
790
- return d(Us, {
791
+ return d(xs, {
791
792
  class: t,
792
793
  items: ne
793
794
  }, null);
@@ -817,7 +818,7 @@ const ea = /* @__PURE__ */ Ie({
817
818
  enableSorting: !1,
818
819
  cell(e) {
819
820
  if (me.value)
820
- return cs(vs);
821
+ return cs(Ss);
821
822
  const t = e.row.original;
822
823
  return l(t);
823
824
  }
@@ -931,7 +932,7 @@ const ea = /* @__PURE__ */ Ie({
931
932
  function ve() {
932
933
  D++, O.value = !1, _.value = ee.CLOSED;
933
934
  }
934
- const be = xs(() => {
935
+ const be = gs(() => {
935
936
  var e;
936
937
  return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
937
938
  }, ve);
@@ -981,7 +982,7 @@ const ea = /* @__PURE__ */ Ie({
981
982
  permissionSubjects: [...Z.value ?? []].sort(),
982
983
  permissionSetIds: [...s.value ?? []].sort()
983
984
  });
984
- }), T = I(() => Object.values(ys).map((e) => ({
985
+ }), T = I(() => Object.values(hs).map((e) => ({
985
986
  label: e.label,
986
987
  value: e.subject
987
988
  }))), G = I(() => [{
@@ -1142,12 +1143,12 @@ const ea = /* @__PURE__ */ Ie({
1142
1143
  class: "w-[320px] xs:w-full xs:mt-8",
1143
1144
  autofocus: "",
1144
1145
  placeholder: r(a)("team.search.placeholder")
1145
- }, null, 8, ["modelValue", "placeholder"])])), (Ue = r(f).currentBusiness.value) != null && Ue._id ? (y(), z(_s, {
1146
+ }, null, 8, ["modelValue", "placeholder"])])), (Ue = r(f).currentBusiness.value) != null && Ue._id ? (y(), z(ys, {
1146
1147
  key: 2
1147
1148
  }, {
1148
- default: ue(() => [u("div", Nt, [h.value ? K("", !0) : (y(), z(gs, {
1149
+ default: ue(() => [u("div", Nt, [h.value ? K("", !0) : (y(), z(_s, {
1149
1150
  key: 0
1150
- })), h.value ? (y(), z(Ss, {
1151
+ })), h.value ? (y(), z(Us, {
1151
1152
  key: 1,
1152
1153
  "is-loading": p.value,
1153
1154
  "is-empty": L.value === 0,
@@ -1211,5 +1212,5 @@ const ea = /* @__PURE__ */ Ie({
1211
1212
  }
1212
1213
  });
1213
1214
  export {
1214
- ea as default
1215
+ sa as default
1215
1216
  };
@@ -1,16 +1,16 @@
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-Do1gXFxN.js";
2
+ import { d as v } from "./dayjs.min-BjrK6J3b.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, _ as Se } from "./SelectFilter-ATOm0hdn.js";
6
- import { _ as Ve } from "./app-BhF0Kk5X.js";
6
+ import { _ as Ve } from "./app-3bHRu-TD.js";
7
7
  import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
8
  import { u as Ce } from "./useLoading-BH02lYns.js";
9
- import { g as Fe, s as Ye } from "./iteration-C2XLVxL1.js";
9
+ import { g as Fe, s as Ye } from "./iteration-Bl07BT2c.js";
10
10
  import { f as Le } from "./utils-BZkjJbju.js";
11
- import { u as Me } from "./employee-BRCSs9t_.js";
11
+ import { u as Me } from "./employee-Ck_DJyl9.js";
12
12
  import { u as Te } from "./restaurant-YOVMuuFY.js";
13
- import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DFfYiBBf.js";
13
+ import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-O2_M0Ktw.js";
14
14
  function Ie(x, a) {
15
15
  return ["years", "months"].find((S) => {
16
16
  const V = x.startOf(S), m = x.endOf(S);
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-Do1gXFxN.js";
1
+ import { d as i } from "./dayjs.min-BjrK6J3b.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-YOVMuuFY.js";
5
- import { s as S } from "./iteration-C2XLVxL1.js";
5
+ import { s as S } from "./iteration-Bl07BT2c.js";
6
6
  import { i as f, f as g } from "./utils-BZkjJbju.js";
7
7
  const u = {
8
8
  async readTimesheets(t, e) {