@feedmepos/mf-hrm-portal 2.3.2-dev.15 → 2.3.2-dev.17

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 (108) hide show
  1. package/dist/{ApprovalCodeList-qB2eycv0.js → ApprovalCodeList-Bo8IbNxV.js} +15 -14
  2. package/dist/{AuditLogList-DaqYMXFA.js → AuditLogList-C7CjPILA.js} +833 -823
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C-4BaMN-.js +438 -0
  4. package/dist/EmployeeList-BOP-gaTp.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BEOR-8QD.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-DqeHBPqr.js → GrantUserList-CXWGr3Wo.js} +16 -15
  8. package/dist/Main-BrP1frfO.js +96 -0
  9. package/dist/{Main-8SeOYhVr.js → Main-DeuWov9n.js} +5 -5
  10. package/dist/{Main-DnWIkti6.js → Main-bru10M5U.js} +2097 -2102
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-Bh0o_HFX.js → PermissionSetList--xt0piQz.js} +137 -136
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D5nvRsW3.js +4167 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DiNDrCy0.js +35 -0
  15. package/dist/RoleList-BEE-8EQK.js +740 -0
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BSmFLxZS.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cqo5kHcF.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-C0Y9XHXR.js → ScheduleGeneralPage-DxhgBLix.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-B1293tLU.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DGPwmNQb.js} +186 -187
  19. package/dist/{SchedulePage-Cqp0mIOQ.js → SchedulePage-oBdEvGWN.js} +20 -20
  20. package/dist/{SchedulePositionPage-DpF7fZ2G.js → SchedulePositionPage-BZps-kKs.js} +3 -3
  21. package/dist/{SelectFilter-jjUAj29l.js → SelectFilter-Bs_LCk3L.js} +1 -1
  22. package/dist/TeamMemberList-DCgNcs4P.js +1154 -0
  23. package/dist/{TimesheetList-CzUVfPGT.js → TimesheetList-BW6iCigo.js} +9 -9
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CZ6axjWg.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dv66Af5C.js} +3 -3
  25. package/dist/{app-IdmhLBBn.js → app-B8xnhtVI.js} +3706 -7569
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-BOfGQEGW.js → approval-code-B0jU1bvk.js} +1 -1
  28. package/dist/{dayjs.min-DkHZ47ah.js → dayjs.min-CdpSCqn1.js} +34 -34
  29. package/dist/{employee-CJXt2fuN.js → employee-DlFGiUgI.js} +47 -48
  30. package/dist/{grant-user-Bj6DpBWc.js → grant-user-C3C6glCk.js} +1 -1
  31. package/dist/{iteration-BRk48OAH.js → iteration-BM0iyDBd.js} +1 -1
  32. package/dist/{lodash-CDREeRGa.js → lodash-KK9U7NAy.js} +1 -1
  33. package/dist/restaurant-C7o2Yk6j.js +2688 -0
  34. package/dist/{role-CtYVs62K.js → role-DYCorsOh.js} +20 -19
  35. package/dist/rule-BhGHZqKO.js +783 -0
  36. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  37. package/dist/src/helpers/permission-set.d.ts +102 -1
  38. package/dist/src/helpers/rule.d.ts +2 -2
  39. package/dist/src/helpers/string.d.ts +1 -10
  40. package/dist/src/router/shared.d.ts +1 -3
  41. package/dist/src/stores/restaurant.d.ts +7 -7
  42. package/dist/src/stores/team.d.ts +1 -31
  43. package/dist/src/types/team.d.ts +1 -17
  44. package/dist/src/views/audit-log/locales/index.d.ts +0 -12
  45. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +1 -1
  46. package/dist/src/views/hr/locales/index.d.ts +0 -20
  47. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  48. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  49. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  50. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  51. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  52. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  53. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  54. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  55. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  56. package/dist/src/views/team/locales/index.d.ts +0 -716
  57. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  58. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  59. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  60. package/dist/string-VNuQNweN.js +15 -0
  61. package/dist/style.css +1 -1
  62. package/dist/tsconfig.app.tsbuildinfo +1 -1
  63. package/dist/{useAppStore-DAW1zVPH.js → useAppStore-C1lk2Q2j.js} +1 -1
  64. package/dist/{useLoading-C-AZgSLr.js → useLoading-CXdGsnHm.js} +1 -1
  65. package/dist/useReportPermissions-D_I4rFVo.js +82 -0
  66. package/package.json +3 -3
  67. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-orzPqq0L.js +0 -459
  68. package/dist/EmployeeList-h0fWCjea.js +0 -896
  69. package/dist/FormSection.vue_vue_type_script_setup_true_lang-rg4r9aRR.js +0 -90
  70. package/dist/Main-s-s803fq.js +0 -101
  71. package/dist/MyPosProfile-ChVMjpLY.js +0 -360
  72. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  73. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-05XZu7a9.js +0 -4212
  74. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-rb5MPBnA.js +0 -1797
  75. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-CwzYGZNY.js +0 -547
  76. package/dist/RoleList-BjcuUCyF.js +0 -274
  77. package/dist/TeamMemberList-B2wxF6Yn.js +0 -2082
  78. package/dist/member-grant-BkZ_oF44.js +0 -54
  79. package/dist/restaurant-BEdgW6Se.js +0 -49
  80. package/dist/rule-CWR80AmG.js +0 -839
  81. package/dist/src/api/my-pos-profile/index.d.ts +0 -3
  82. package/dist/src/api/sso-provider/index.d.ts +0 -5
  83. package/dist/src/api/staff-invite/index.d.ts +0 -16
  84. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  85. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  86. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  87. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  88. package/dist/src/composables/useTenant.d.ts +0 -11
  89. package/dist/src/helpers/member-grant.d.ts +0 -36
  90. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  91. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  92. package/dist/src/helpers/staff-invite.d.ts +0 -54
  93. package/dist/src/router/courtGuard.d.ts +0 -4
  94. package/dist/src/router/menu-access-guard.d.ts +0 -17
  95. package/dist/src/types/my-pos-profile.d.ts +0 -24
  96. package/dist/src/types/sso-provider.d.ts +0 -10
  97. package/dist/src/types/staff-invite.d.ts +0 -100
  98. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
  99. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  100. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
  101. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  102. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  103. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
  104. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  105. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  106. package/dist/string-DZQ1uNjn.js +0 -22
  107. package/dist/useReportPermissions-ld6buoVe.js +0 -80
  108. package/dist/useSsoProviders-DeTogbyW.js +0 -41
@@ -1,16 +1,17 @@
1
- import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as l, withCtx as k, createVNode as m, createElementVNode as P, toDisplayString as J, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
2
- import { useI18n as se } from "@feedmepos/mf-common";
3
- import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as Q } from "@feedmepos/ui-library";
4
- import { h as X, u as he, _ as be, s as _e } from "./app-IdmhLBBn.js";
5
- import { _ as ge } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
- import { _ as ye } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
- import { u as ie, P as W, a as ae, p as Y, $ as Pe, H as we, R as B, B as xe, x as Fe, T as ke, E as Ce, m as Ie } from "./rule-CWR80AmG.js";
8
- import { l as $ } from "./lodash-CDREeRGa.js";
9
- import { c as Ve } from "./iteration-BRk48OAH.js";
10
- import { u as Re } from "./useDiscardConfirm-CzZSPyvh.js";
11
- import { u as je } from "./useLoading-C-AZgSLr.js";
12
- import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-05XZu7a9.js";
13
- const $e = { class: "flex w-full items-center justify-between" }, Le = { class: "fm-typo-en-title-md-600" }, Te = { class: "fm-typo-en-title-sm-600 mt-24" }, Be = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
1
+ import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
2
+ import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
3
+ import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
4
+ import { c as Q, _ as he } from "./app-B8xnhtVI.js";
5
+ import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
+ import { _ as ge } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
+ import { u as ie, c as M, d as ae, p as Y, i as Pe, b as ye, m as A, n as we, o as xe, k as Fe, l as ke, v as Ce } from "./rule-BhGHZqKO.js";
8
+ import { l as T } from "./lodash-KK9U7NAy.js";
9
+ import { c as Ie } from "./iteration-BM0iyDBd.js";
10
+ import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
11
+ import { u as Re } from "./useLoading-CXdGsnHm.js";
12
+ import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D5nvRsW3.js";
13
+ import { A as je } from "./restaurant-C7o2Yk6j.js";
14
+ const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
14
15
  __name: "PermissionSetForm",
15
16
  props: {
16
17
  modelValue: {
@@ -18,87 +19,87 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
18
19
  default: () => ({})
19
20
  }
20
21
  },
21
- setup(M, { expose: A }) {
22
- const o = M, { t: i } = se(), f = v(!1), L = h(() => {
22
+ setup(K, { expose: D }) {
23
+ const o = K, { t: i } = se(), f = v(!1), $ = b(() => {
23
24
  var e;
24
25
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
25
- }), C = v(), D = oe(), w = te(), { breakpoints: I } = ne(), V = je(D), r = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), T = [(e) => !!e || i("permissionSet.form.nameRequired")], N = h(() => {
26
+ }), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = Re(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], O = b(() => {
26
27
  var e;
27
28
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
28
- }), q = h(
29
- () => r.permissionSets.value.filter((e) => {
29
+ }), q = b(
30
+ () => l.permissionSets.value.filter((e) => {
30
31
  var s;
31
32
  return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
32
33
  }).map((e) => ({ label: e.name, value: e.id }))
33
- ), R = h(
34
- () => W(a.value, r.permissionSets.value)
34
+ ), E = b(
35
+ () => M(a.value, l.permissionSets.value)
35
36
  ), {
36
37
  fetchCustomReportPermissions: n,
37
38
  customReportPermissions: t,
38
39
  isLoaded: c
39
40
  } = ae(), _ = new Set(
40
41
  Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
41
- ), g = h(() => {
42
+ ), g = b(() => {
42
43
  const e = new Set(_);
43
44
  for (const s of t.value) e.add(s.subject);
44
45
  return e;
45
- }), z = h(() => {
46
+ }), z = b(() => {
46
47
  const e = /* @__PURE__ */ new Set();
47
48
  for (const s of Y)
48
- s.category === X.reports && e.add(s.subject);
49
+ s.category === Q.reports && e.add(s.subject);
49
50
  for (const s of t.value)
50
- s.category === X.reports && e.add(s.subject);
51
+ s.category === Q.reports && e.add(s.subject);
51
52
  return e;
52
- }), y = v({ name: "", permissionSetIds: [], userPermissions: [] });
53
- async function O() {
53
+ }), P = v({ name: "", permissionSetIds: [], userPermissions: [] });
54
+ async function U() {
54
55
  var s, u;
55
56
  await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
56
57
  const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
57
- p.value = we(
58
- B(R.value),
58
+ p.value = ye(
59
+ A(E.value),
59
60
  e
60
- ), y.value = {
61
+ ), P.value = {
61
62
  name: d.value.name ?? "",
62
63
  permissionSetIds: [...a.value],
63
- userPermissions: Ve(p.value)
64
+ userPermissions: Ie(p.value)
64
65
  };
65
66
  }
66
67
  ue(f, async (e) => {
67
68
  e && await n();
68
69
  });
69
- const U = Re(
70
- () => !$.isEqual(d.value.name ?? "", y.value.name) || !$.isEqual(a.value, y.value.permissionSetIds) || !$.isEqual(p.value, y.value.userPermissions),
70
+ const W = Ve(
71
+ () => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
71
72
  () => {
72
73
  f.value = !1;
73
74
  }
74
75
  );
75
- function le() {
76
- const e = B(R.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, z.value), F = ke(x);
77
- return Ce(e, F);
76
+ function re() {
77
+ const e = A(E.value), s = c.value ? g.value : _, u = we(p.value, s), x = xe(u, z.value), F = Fe(x);
78
+ return ke(e, F);
78
79
  }
79
- function K(e) {
80
- return B(
81
- W(e, r.permissionSets.value)
80
+ function J(e) {
81
+ return A(
82
+ M(e, l.permissionSets.value)
82
83
  );
83
84
  }
84
- function H(e) {
85
- p.value = K(e);
85
+ function X(e) {
86
+ p.value = J(e);
86
87
  }
87
- function re(e) {
88
+ function le(e) {
88
89
  const s = [...e ?? []];
89
- if ($.isEqual(s, a.value)) return;
90
- const u = !$.isEqual(
90
+ if (T.isEqual(s, a.value)) return;
91
+ const u = !T.isEqual(
91
92
  p.value,
92
- K(a.value)
93
+ J(a.value)
93
94
  );
94
95
  if (a.value = s, !u) {
95
- H(s);
96
+ X(s);
96
97
  return;
97
98
  }
98
99
  w.open({
99
100
  title: i("permissionSet.form.overrideInherited.title"),
100
101
  message: i("permissionSet.form.overrideInherited.message"),
101
- minWidth: I.value.lg ? 588 : 0,
102
+ minWidth: V.value.lg ? 588 : 0,
102
103
  primaryActions: {
103
104
  text: i("permissionSet.form.overrideInherited.override"),
104
105
  close: !1
@@ -108,86 +109,86 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
108
109
  close: !0
109
110
  }
110
111
  }).onPrimary(() => {
111
- H(s), w.close();
112
+ X(s), w.close();
112
113
  });
113
114
  }
114
115
  async function me() {
115
- var u;
116
- const e = await ((u = C.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = he().id.value;
117
- !(e != null && e.length) && s && V.minor(async () => {
118
- var F;
119
- const x = le();
120
- if ((F = o.modelValue) != null && F.id) {
121
- const j = {
116
+ var u, x;
117
+ const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = be().currentBusiness.value) == null ? void 0 : x.id;
118
+ !(e != null && e.length) && s && R.minor(async () => {
119
+ var L;
120
+ const F = re();
121
+ if ((L = o.modelValue) != null && L.id) {
122
+ const k = {
122
123
  name: d.value.name,
123
- permissions: x,
124
+ permissions: F,
124
125
  permissionSetIds: a.value,
125
126
  businessId: d.value.businessId
126
127
  };
127
- await r.updatePermissionSet(o.modelValue.id, j);
128
+ await l.updatePermissionSet(o.modelValue.id, k);
128
129
  } else {
129
- const j = {
130
+ const k = {
130
131
  name: d.value.name,
131
132
  businessId: s,
132
- permissions: x,
133
+ permissions: F,
133
134
  permissionSetIds: a.value
134
135
  };
135
- await r.createPermissionSet(j);
136
+ await l.createPermissionSet(k);
136
137
  }
137
138
  f.value = !1;
138
139
  });
139
140
  }
140
- return A({
141
- trigger: O
141
+ return D({
142
+ trigger: U
142
143
  }), (e, s) => {
143
- const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), j = b("FmForm"), G = b("FmButton"), ce = b("FmSideSheet");
144
+ const u = h("FmIcon"), x = h("FmTextField"), F = h("FmSelect"), L = h("FmForm"), k = h("FmButton"), ce = h("FmSideSheet");
144
145
  return ee(), de(ce, {
145
146
  modelValue: f.value,
146
- "onUpdate:modelValue": s[2] || (s[2] = (E) => f.value = E),
147
+ "onUpdate:modelValue": s[2] || (s[2] = (j) => f.value = j),
147
148
  "max-width": 960,
148
149
  "close-button": !1,
149
- "onOn:clickedAway": l(U)
150
+ "onOn:clickedAway": r(W)
150
151
  }, {
151
- "side-sheet-header": k(() => [
152
- P("div", $e, [
153
- P("p", Le, J(L.value), 1),
152
+ "side-sheet-header": C(() => [
153
+ y("div", Te, [
154
+ y("p", $e, G($.value), 1),
154
155
  m(u, {
155
156
  name: "close",
156
157
  size: "md",
157
158
  class: "cursor-pointer",
158
- onClick: l(U)
159
+ onClick: r(W)
159
160
  }, null, 8, ["onClick"])
160
161
  ])
161
162
  ]),
162
- "side-sheet-footer": k(() => [
163
- P("div", Be, [
164
- m(G, {
165
- label: N.value,
163
+ "side-sheet-footer": C(() => [
164
+ y("div", Le, [
165
+ m(k, {
166
+ label: O.value,
166
167
  size: "md",
167
168
  variant: "primary",
168
169
  type: "submit",
169
170
  onClick: me
170
171
  }, null, 8, ["label"]),
171
- m(G, {
172
- label: l(i)("common.cancel"),
172
+ m(k, {
173
+ label: r(i)("common.cancel"),
173
174
  size: "md",
174
175
  variant: "secondary",
175
- onClick: l(U)
176
+ onClick: r(W)
176
177
  }, null, 8, ["label", "onClick"])
177
178
  ])
178
179
  ]),
179
- default: k(() => [
180
- m(j, {
180
+ default: C(() => [
181
+ m(L, {
181
182
  ref_key: "formRef",
182
- ref: C
183
+ ref: I
183
184
  }, {
184
- default: k(() => [
185
+ default: C(() => [
185
186
  m(x, {
186
187
  modelValue: d.value.name,
187
- "onUpdate:modelValue": s[0] || (s[0] = (E) => d.value.name = E),
188
- label: l(i)("permissionSet.form.name"),
189
- placeholder: l(i)("permissionSet.form.namePlaceholder"),
190
- rules: T
188
+ "onUpdate:modelValue": s[0] || (s[0] = (j) => d.value.name = j),
189
+ label: r(i)("permissionSet.form.name"),
190
+ placeholder: r(i)("permissionSet.form.namePlaceholder"),
191
+ rules: B
191
192
  }, null, 8, ["modelValue", "label", "placeholder"]),
192
193
  m(F, {
193
194
  "model-value": a.value,
@@ -195,16 +196,16 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
195
196
  searchable: "",
196
197
  "search-debounce": 300,
197
198
  items: q.value,
198
- label: l(i)("permissionSet.form.includedSets"),
199
- placeholder: l(i)("permissionSet.form.includedSetsPlaceholder"),
199
+ label: r(i)("permissionSet.form.includedSets"),
200
+ placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
200
201
  class: "mt-16",
201
- "onUpdate:modelValue": re
202
+ "onUpdate:modelValue": le
202
203
  }, null, 8, ["model-value", "items", "label", "placeholder"]),
203
- P("div", Te, J(l(i)("team.memberForm.permissions.title")), 1),
204
+ y("div", Be, G(r(i)("team.memberForm.permissions.title")), 1),
204
205
  m(Ee, {
205
206
  modelValue: p.value,
206
- "onUpdate:modelValue": s[1] || (s[1] = (E) => p.value = E),
207
- "inherit-permissions": R.value,
207
+ "onUpdate:modelValue": s[1] || (s[1] = (j) => p.value = j),
208
+ "inherit-permissions": E.value,
208
209
  class: "mt-16"
209
210
  }, null, 8, ["modelValue", "inherit-permissions"])
210
211
  ]),
@@ -215,26 +216,26 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
215
216
  }, 8, ["modelValue", "onOn:clickedAway"]);
216
217
  };
217
218
  }
218
- }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, qe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
219
+ }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, es = /* @__PURE__ */ Z({
219
220
  __name: "PermissionSetList",
220
- setup(M, { expose: A }) {
221
- const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), L = oe(), C = te(), { breakpoints: D } = ne(), w = v(""), I = h(() => {
221
+ setup(K, { expose: D }) {
222
+ const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
222
223
  var n;
223
224
  return (n = d.value) == null ? void 0 : n.filter((t) => {
224
225
  const c = w.value.toLowerCase();
225
226
  return t.name.toLowerCase().includes(c);
226
227
  });
227
- }), V = v(), r = ie(), d = h(
228
- () => r.permissionSets.value
228
+ }), R = v(), l = ie(), d = b(
229
+ () => l.permissionSets.value
229
230
  ), a = v();
230
231
  async function p() {
231
- await r.readPermissionSets();
232
+ await l.readPermissionSets();
232
233
  }
233
- function T(n) {
234
+ function B(n) {
234
235
  var t;
235
- a.value = n, (t = V.value) == null || t.trigger();
236
+ a.value = n, (t = R.value) == null || t.trigger();
236
237
  }
237
- const N = [
238
+ const O = [
238
239
  {
239
240
  accessorKey: "name",
240
241
  header: () => o("permissionSet.table.columns.name")
@@ -244,27 +245,27 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
244
245
  header: () => o("permissionSet.table.columns.permissions"),
245
246
  enableSorting: !1,
246
247
  cell(n) {
247
- const t = n.row.original, c = W(
248
+ const t = n.row.original, c = M(
248
249
  [t.id],
249
- r.permissionSets.value
250
- ), _ = B(c), g = _.length, z = Ie(
250
+ l.permissionSets.value
251
+ ), _ = A(c), g = _.length, z = Ce(
251
252
  _,
252
253
  i.value
253
254
  );
254
255
  return S("div", { class: "flex items-center gap-8" }, [
255
256
  S("span", o("team.labels.allowed", { count: g })),
256
257
  S(
257
- Q.FmTooltip,
258
+ H.FmTooltip,
258
259
  { variant: "plain", placement: "top" },
259
260
  {
260
- default: () => S(Q.FmIcon, {
261
+ default: () => S(H.FmIcon, {
261
262
  name: "info",
262
263
  class: "cursor-pointer text-fm-color-neutral-gray-300"
263
264
  }),
264
265
  content: () => S("div", [
265
266
  o("team.labels.permission"),
266
267
  ...z.map(
267
- (y, O) => S("div", { key: `${y}-${O}` }, `- ${y}`)
268
+ (P, U) => S("div", { key: `${P}-${U}` }, `- ${P}`)
268
269
  )
269
270
  ])
270
271
  }
@@ -288,12 +289,12 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
288
289
  onClick: (c) => c.stopPropagation()
289
290
  },
290
291
  [
291
- S(ye, {
292
+ S(ge, {
292
293
  items: [
293
- { label: o("common.update"), onClick: () => T(t) },
294
+ { label: o("common.update"), onClick: () => B(t) },
294
295
  {
295
296
  label: o("common.remove"),
296
- onClick: () => R(t),
297
+ onClick: () => E(t),
297
298
  itemClass: "text-fm-color-typo-error"
298
299
  }
299
300
  ]
@@ -306,13 +307,13 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
306
307
  ];
307
308
  function q() {
308
309
  var n;
309
- a.value = void 0, (n = V.value) == null || n.trigger();
310
+ a.value = void 0, (n = R.value) == null || n.trigger();
310
311
  }
311
- async function R(n) {
312
- C.open({
312
+ async function E(n) {
313
+ I.open({
313
314
  title: o("permissionSet.form.delete.title"),
314
315
  message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
315
- minWidth: D.value.lg ? 588 : 0,
316
+ minWidth: N.value.lg ? 588 : 0,
316
317
  primaryActions: {
317
318
  text: o("common.remove"),
318
319
  close: !1,
@@ -321,61 +322,61 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
321
322
  secondaryActions: { text: o("common.cancel"), close: !0 }
322
323
  }).onPrimary(async () => {
323
324
  try {
324
- await r.deletePermissionSet(n.id), L.open({
325
+ await l.deletePermissionSet(n.id), $.open({
325
326
  message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
326
327
  type: "success"
327
328
  });
328
329
  } catch (t) {
329
- const c = t instanceof _e && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
330
+ const c = t instanceof je && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
330
331
  permissionSetName: n.name
331
332
  }) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
332
- L.open({ message: c, type: "error" });
333
+ $.open({ message: c, type: "error" });
333
334
  }
334
- C.close();
335
+ I.close();
335
336
  });
336
337
  }
337
338
  return fe(() => {
338
339
  p(), f();
339
- }), A({
340
+ }), D({
340
341
  create: q
341
342
  }), (n, t) => {
342
- const c = b("FmSearch"), _ = b("FmTable");
343
+ const c = h("FmSearch"), _ = h("FmTable");
343
344
  return ee(), ve(Se, null, [
344
345
  m(Ae, {
345
346
  ref_key: "permissionSetFormRef",
346
- ref: V,
347
+ ref: R,
347
348
  "model-value": a.value
348
349
  }, null, 8, ["model-value"]),
349
- P("div", De, [
350
- P("div", Ne, [
350
+ y("div", De, [
351
+ y("div", Ne, [
351
352
  m(c, {
352
353
  modelValue: w.value,
353
354
  "onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
354
355
  class: "w-[320px] xs:w-full",
355
356
  autofocus: "",
356
- placeholder: l(o)("permissionSet.search.placeholder")
357
+ placeholder: r(o)("permissionSet.search.placeholder")
357
358
  }, null, 8, ["modelValue", "placeholder"])
358
359
  ]),
359
- m(be, null, {
360
- default: k(() => [
361
- P("div", qe, [
362
- m(ge, {
363
- "is-loading": l(r).isLoading.value,
364
- "is-empty": I.value.length === 0,
360
+ m(he, null, {
361
+ default: C(() => [
362
+ y("div", Oe, [
363
+ m(_e, {
364
+ "is-loading": r(l).isLoading.value,
365
+ "is-empty": V.value.length === 0,
365
366
  "collapse-at": !1,
366
- title: l(o)("permissionSet.noData.title"),
367
- subtitle: l(o)("permissionSet.noData.subtitle")
367
+ title: r(o)("permissionSet.noData.title"),
368
+ subtitle: r(o)("permissionSet.noData.subtitle")
368
369
  }, {
369
- default: k(() => [
370
+ default: C(() => [
370
371
  m(_, {
371
- "column-defs": N,
372
- "row-data": I.value,
373
- "page-size": I.value.length,
374
- loading: l(r).isLoading.value,
372
+ "column-defs": O,
373
+ "row-data": V.value,
374
+ "page-size": V.value.length,
375
+ loading: r(l).isLoading.value,
375
376
  "pin-header-row": "",
376
377
  "hide-footer": "",
377
378
  "shrink-at": !1,
378
- onRowClick: t[1] || (t[1] = (g) => T(g.original))
379
+ onRowClick: t[1] || (t[1] = (g) => B(g.original))
379
380
  }, null, 8, ["row-data", "page-size", "loading"])
380
381
  ]),
381
382
  _: 1
@@ -390,5 +391,5 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
390
391
  }
391
392
  });
392
393
  export {
393
- Ze as default
394
+ es as default
394
395
  };