@feedmepos/mf-hrm-portal 2.1.0-dev.2 → 2.1.0
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.
- package/dist/AuditLogList-Rrg_dNYp.js +1149 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CJEkZVoJ.js} +104 -100
- package/dist/{EmployeeList-KvjoGI87.js → EmployeeList-CckyPQlP.js} +9 -10
- package/dist/{Main-Dn1TfDRj.js → Main-BUvX24j0.js} +9 -9
- package/dist/{Main-BLh16xRg.js → Main-BdPIZkik.js} +4 -4
- package/dist/{Main-D3TSdtSE.js → Main-C4cSWAts.js} +6 -6
- package/dist/{PermissionSetList-Ds69m9UU.js → PermissionSetList-CP8J9Prx.js} +6 -6
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C7X69eQq.js +4121 -0
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-ZAEcrK9Q.js} +2 -1
- package/dist/{RoleList-v8McRCnz.js → RoleList-BHvGGF82.js} +8 -8
- package/dist/TeamMemberList-DPkocw3U.js +1185 -0
- package/dist/{TimesheetList-C1OWa6kf.js → TimesheetList-mOWHmWwo.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CpUHcGUj.js} +2 -2
- package/dist/{app-CJouCBgi.js → app-DnaRDAJY.js} +394 -674
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DUugkgDM.js → dayjs.min-NAaPKajp.js} +1 -1
- package/dist/{employee-D5rEVmge.js → employee-CILPIL-b.js} +3 -3
- package/dist/{iteration-QRRNYlps.js → iteration-B7PEDIWb.js} +3 -3
- package/dist/{lodash-BlZhpHhM.js → lodash-CgE5OnVa.js} +1 -1
- package/dist/{rule-Dy7eMChN.js → rule-BmSYQ3Op.js} +17 -13
- package/dist/src/api/audit-log/index.d.ts +0 -6
- package/dist/src/composables/useBasePermission.d.ts +1 -1
- package/dist/src/helpers/filter.d.ts +15 -0
- package/dist/src/helpers/permission-reconcile.d.ts +15 -0
- package/dist/src/helpers/permission-reconcile.test.d.ts +1 -0
- package/dist/src/helpers/permission-set.d.ts +4 -2
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/locales/index.d.ts +0 -296
- package/dist/src/views/team/locales/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CtMoad7V.js → useAppStore-DMmL9JnJ.js} +1 -1
- package/dist/useDebounce-CWb5QR9G.js +28 -0
- package/dist/{useLoading-CNqlchYO.js → useLoading-D56E7ykF.js} +1 -1
- package/dist/{useReportPermissions-C5wGC9bf.js → useReportPermissions-BKj02rVj.js} +3 -3
- package/package.json +2 -2
- package/dist/AuditLogList-AGlAsWwd.js +0 -1608
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js +0 -4030
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/TeamMemberList-BYQnNIhT.js +0 -1169
- package/dist/src/views/audit-log/event-line.d.ts +0 -13
- package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
- package/dist/useDebounce-B8ZPVS5C.js +0 -15
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
2
|
-
import { e as H, f as se, U as j } from "./app-
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { l as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as N, onMounted as te, nextTick as ne, onUnmounted as oe, resolveComponent as h, createElementBlock as g, openBlock as s, Fragment as U, createElementVNode as x, renderSlot as P, createCommentVNode as E, toDisplayString as ae, createVNode as le, normalizeStyle as ue, watch as W, defineAsyncComponent as re, computed as I, renderList as A, createBlock as p, withCtx as G, unref as D, resolveDynamicComponent as ie } from "vue";
|
|
2
|
+
import { e as H, f as se, U as j } from "./app-DnaRDAJY.js";
|
|
3
|
+
import { useI18n as de, useCoreStore as ce } from "@feedmepos/mf-common";
|
|
4
|
+
import { l as me } from "./lodash-CgE5OnVa.js";
|
|
5
|
+
const fe = { class: "flex items-center" }, ve = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "ml-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
8
|
-
},
|
|
8
|
+
}, be = { class: "ml-auto" }, Ne = /* @__PURE__ */ B({
|
|
9
9
|
__name: "CollapsibleWrapper",
|
|
10
10
|
props: {
|
|
11
11
|
title: { default: "" },
|
|
@@ -13,30 +13,30 @@ const me = { class: "flex items-center" }, fe = {
|
|
|
13
13
|
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
14
14
|
},
|
|
15
15
|
setup(t) {
|
|
16
|
-
const
|
|
16
|
+
const l = N(t.initiallyCollapsed), c = N(), m = N(0);
|
|
17
17
|
let f;
|
|
18
18
|
function F() {
|
|
19
|
-
|
|
19
|
+
l.value = !l.value;
|
|
20
20
|
}
|
|
21
21
|
function v() {
|
|
22
22
|
c.value && (m.value = c.value.scrollHeight);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
25
|
-
await
|
|
24
|
+
return te(async () => {
|
|
25
|
+
await ne(), c.value && (f = new ResizeObserver(() => {
|
|
26
26
|
v();
|
|
27
27
|
}), f.observe(c.value));
|
|
28
|
-
}),
|
|
28
|
+
}), oe(() => {
|
|
29
29
|
f == null || f.disconnect();
|
|
30
30
|
}), (k, r) => {
|
|
31
31
|
const d = h("FmButton");
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
return s(), g(U, null, [
|
|
33
|
+
x("div", { onClick: F }, [
|
|
34
|
+
x("div", fe, [
|
|
35
35
|
P(k.$slots, "title"),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
icon:
|
|
36
|
+
l.value && t.subtitle ? (s(), g("span", ve, ae(t.subtitle), 1)) : E("", !0),
|
|
37
|
+
x("div", be, [
|
|
38
|
+
le(d, {
|
|
39
|
+
icon: l.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
40
40
|
"text-color": "neutral-gray-400",
|
|
41
41
|
variant: "tertiary",
|
|
42
42
|
size: "md"
|
|
@@ -44,11 +44,11 @@ const me = { class: "flex items-center" }, fe = {
|
|
|
44
44
|
])
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
|
-
|
|
47
|
+
x("div", {
|
|
48
48
|
ref_key: "contentRef",
|
|
49
49
|
ref: c,
|
|
50
50
|
class: "transition-all duration-300 ease-in-out overflow-hidden",
|
|
51
|
-
style:
|
|
51
|
+
style: ue({ maxHeight: l.value ? "0" : m.value + "px" })
|
|
52
52
|
}, [
|
|
53
53
|
P(k.$slots, "default")
|
|
54
54
|
], 4)
|
|
@@ -59,9 +59,9 @@ const me = { class: "flex items-center" }, fe = {
|
|
|
59
59
|
function O(t) {
|
|
60
60
|
return `${t.subject}::${t.builderKey}`;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const u =
|
|
64
|
-
function
|
|
62
|
+
function Se(t) {
|
|
63
|
+
const u = N(/* @__PURE__ */ new Map());
|
|
64
|
+
function l(r, d) {
|
|
65
65
|
const y = new Map(u.value);
|
|
66
66
|
y.set(O(r), d), u.value = y;
|
|
67
67
|
}
|
|
@@ -75,8 +75,8 @@ function xe(t) {
|
|
|
75
75
|
}
|
|
76
76
|
function f(r) {
|
|
77
77
|
const d = /* @__PURE__ */ new Map();
|
|
78
|
-
for (const [y,
|
|
79
|
-
y.startsWith(`${r}::`) && d.set(y,
|
|
78
|
+
for (const [y, S] of u.value.entries())
|
|
79
|
+
y.startsWith(`${r}::`) && d.set(y, S);
|
|
80
80
|
return d;
|
|
81
81
|
}
|
|
82
82
|
function F(r) {
|
|
@@ -100,7 +100,7 @@ function xe(t) {
|
|
|
100
100
|
{ deep: !0 }
|
|
101
101
|
), {
|
|
102
102
|
drafts: u,
|
|
103
|
-
setDraft:
|
|
103
|
+
setDraft: l,
|
|
104
104
|
getDraft: c,
|
|
105
105
|
hasDraftsForSubject: m,
|
|
106
106
|
getDraftsForSubject: f,
|
|
@@ -109,19 +109,19 @@ function xe(t) {
|
|
|
109
109
|
clearDraft: k
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
112
|
+
const ye = {}, L = /* @__PURE__ */ new Map();
|
|
113
|
+
function pe(t) {
|
|
114
114
|
const u = L.get(t);
|
|
115
115
|
if (u) return u;
|
|
116
|
-
const
|
|
117
|
-
if (!
|
|
118
|
-
const c =
|
|
116
|
+
const l = ye[t];
|
|
117
|
+
if (!l) return;
|
|
118
|
+
const c = re(l);
|
|
119
119
|
return L.set(t, c), c;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return !
|
|
121
|
+
function ke(t, u) {
|
|
122
|
+
return !me.isEqual(t, u);
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const Ve = { class: "flex flex-col gap-8" }, he = { class: "flex flex-col gap-4" }, ge = "condition-form-select-menu", Z = 120, Fe = 220, Ce = /* @__PURE__ */ B({
|
|
125
125
|
__name: "ConditionFormRenderer",
|
|
126
126
|
props: {
|
|
127
127
|
config: {},
|
|
@@ -131,27 +131,27 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
131
131
|
},
|
|
132
132
|
emits: ["update:modelValue"],
|
|
133
133
|
setup(t, { emit: u }) {
|
|
134
|
-
const
|
|
135
|
-
let v =
|
|
134
|
+
const l = t, c = u, { t: m } = de(), f = ce(), F = I(() => H(l.config, l.modelValue));
|
|
135
|
+
let v = l.modelValue;
|
|
136
136
|
W(
|
|
137
|
-
() =>
|
|
137
|
+
() => l.modelValue,
|
|
138
138
|
(e) => {
|
|
139
139
|
v = e;
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
function k(e) {
|
|
143
|
-
return "static" in e ? e.static.map((n) => ({ value: n.value, label: m(n.labelKey) })) :
|
|
143
|
+
return "static" in e ? e.static.map((n) => ({ value: n.value, label: m(n.labelKey) })) : l.optionProviders[e.provider] ?? [];
|
|
144
144
|
}
|
|
145
145
|
function r(e, n) {
|
|
146
|
-
const
|
|
147
|
-
se(
|
|
146
|
+
const a = d(
|
|
147
|
+
se(l.config, { ...l.modelValue, [e]: n })
|
|
148
148
|
);
|
|
149
|
-
|
|
149
|
+
ke(a, v) && (v = a, c("update:modelValue", a));
|
|
150
150
|
}
|
|
151
151
|
function d(e) {
|
|
152
152
|
const n = { ...e };
|
|
153
|
-
for (const
|
|
154
|
-
|
|
153
|
+
for (const a of H(l.config, n))
|
|
154
|
+
a.kind === "date" && !n[a.key] && (n[a.key] = K(J()));
|
|
155
155
|
return n;
|
|
156
156
|
}
|
|
157
157
|
function y() {
|
|
@@ -159,9 +159,9 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
159
159
|
if (e != null && e.timezone) return e.timezone;
|
|
160
160
|
if (e != null && e.timeZone) return e.timeZone;
|
|
161
161
|
const n = (e == null ? void 0 : e.country) ?? (f.currentCountry.value instanceof Object ? f.currentCountry.value.code : f.currentCountry.value);
|
|
162
|
-
return
|
|
162
|
+
return S(n);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function S(e) {
|
|
165
165
|
switch ((e || "").toUpperCase()) {
|
|
166
166
|
case "MY":
|
|
167
167
|
return "Asia/Kuala_Lumpur";
|
|
@@ -194,7 +194,7 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
function $(e, n) {
|
|
197
|
-
const
|
|
197
|
+
const a = new Intl.DateTimeFormat("en-CA", {
|
|
198
198
|
timeZone: n,
|
|
199
199
|
year: "numeric",
|
|
200
200
|
month: "2-digit",
|
|
@@ -204,7 +204,7 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
204
204
|
second: "2-digit",
|
|
205
205
|
hourCycle: "h23"
|
|
206
206
|
}).formatToParts(e), b = Object.fromEntries(
|
|
207
|
-
|
|
207
|
+
a.filter((V) => V.type !== "literal").map((V) => [V.type, V.value])
|
|
208
208
|
);
|
|
209
209
|
return {
|
|
210
210
|
year: Number(b.year),
|
|
@@ -217,31 +217,31 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
217
217
|
}
|
|
218
218
|
function z(e, n) {
|
|
219
219
|
try {
|
|
220
|
-
const
|
|
220
|
+
const a = $(n, e);
|
|
221
221
|
return (Date.UTC(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
a.year,
|
|
223
|
+
a.month - 1,
|
|
224
|
+
a.day,
|
|
225
|
+
a.hour,
|
|
226
|
+
a.minute,
|
|
227
|
+
a.second
|
|
228
228
|
) - n.getTime()) / 6e4;
|
|
229
229
|
} catch {
|
|
230
230
|
return 0;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
function K(e) {
|
|
234
|
-
const [n,
|
|
235
|
-
if (!n || !
|
|
236
|
-
const V = y(), C = new Date(Date.UTC(n,
|
|
237
|
-
return new Date(C.getTime() -
|
|
234
|
+
const [n, a, b] = e.split("-").map(Number);
|
|
235
|
+
if (!n || !a || !b) return "";
|
|
236
|
+
const V = y(), C = new Date(Date.UTC(n, a - 1, b, 0, 0, 0, 0)), M = z(V, C), w = new Date(C.getTime() - M * 6e4), _ = z(V, w);
|
|
237
|
+
return new Date(C.getTime() - _ * 6e4).toISOString();
|
|
238
238
|
}
|
|
239
239
|
function R(e) {
|
|
240
240
|
const n = new Date(e);
|
|
241
241
|
if (Number.isNaN(n.getTime())) return "";
|
|
242
242
|
try {
|
|
243
|
-
const
|
|
244
|
-
return `${String(
|
|
243
|
+
const a = $(n, y());
|
|
244
|
+
return `${String(a.year).padStart(4, "0")}-${String(a.month).padStart(2, "0")}-${String(a.day).padStart(2, "0")}`;
|
|
245
245
|
} catch {
|
|
246
246
|
return e.slice(0, 10);
|
|
247
247
|
}
|
|
@@ -253,90 +253,94 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
253
253
|
return "options" in e ? k(e.options) : [];
|
|
254
254
|
}
|
|
255
255
|
function X(e) {
|
|
256
|
-
const n =
|
|
256
|
+
const n = l.modelValue[e];
|
|
257
257
|
return n == null ? "" : String(n);
|
|
258
258
|
}
|
|
259
259
|
function q(e) {
|
|
260
|
-
const n =
|
|
260
|
+
const n = l.modelValue[e];
|
|
261
261
|
return typeof n != "string" || !n ? "" : R(n);
|
|
262
262
|
}
|
|
263
263
|
function Y(e, n) {
|
|
264
264
|
r(e, n ? K(n) : "");
|
|
265
265
|
}
|
|
266
|
+
function Q(e, n) {
|
|
267
|
+
let a = Math.floor(Number(n) || (e.min ?? 0));
|
|
268
|
+
e.min !== void 0 && (a = Math.max(e.min, a)), e.max !== void 0 && (a = Math.min(e.max, a)), r(e.key, a);
|
|
269
|
+
}
|
|
266
270
|
return (e, n) => {
|
|
267
|
-
const
|
|
268
|
-
return
|
|
269
|
-
(
|
|
271
|
+
const a = h("FmRadio"), b = h("FmRadioGroup"), V = h("FmSelect"), C = h("FmTextField"), M = h("FmDatePicker"), w = h("FmCheckbox"), _ = h("FmFormGroup");
|
|
272
|
+
return s(), g("div", Ve, [
|
|
273
|
+
(s(!0), g(U, null, A(F.value, (o) => (s(), g(U, {
|
|
270
274
|
key: o.key
|
|
271
275
|
}, [
|
|
272
|
-
o.kind === "radio" ? (
|
|
276
|
+
o.kind === "radio" ? (s(), p(b, {
|
|
273
277
|
key: 0,
|
|
274
278
|
"model-value": t.modelValue[o.key],
|
|
275
279
|
disabled: t.disabled,
|
|
276
|
-
"onUpdate:modelValue": (
|
|
280
|
+
"onUpdate:modelValue": (i) => r(o.key, i)
|
|
277
281
|
}, {
|
|
278
282
|
default: G(() => [
|
|
279
|
-
(
|
|
280
|
-
key:
|
|
281
|
-
value:
|
|
282
|
-
label:
|
|
283
|
+
(s(!0), g(U, null, A(T(o), (i) => (s(), p(a, {
|
|
284
|
+
key: i.value,
|
|
285
|
+
value: i.value,
|
|
286
|
+
label: i.label
|
|
283
287
|
}, null, 8, ["value", "label"]))), 128))
|
|
284
288
|
]),
|
|
285
289
|
_: 2
|
|
286
|
-
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"])) : o.kind === "select" ? (
|
|
290
|
+
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"])) : o.kind === "select" ? (s(), p(V, {
|
|
287
291
|
key: 1,
|
|
288
292
|
"model-value": t.modelValue[o.key],
|
|
289
293
|
label: D(m)(o.labelKey),
|
|
290
294
|
items: T(o),
|
|
291
|
-
"menu-id":
|
|
295
|
+
"menu-id": ge,
|
|
292
296
|
"menu-z-index": Z,
|
|
293
|
-
"max-height":
|
|
297
|
+
"max-height": Fe,
|
|
294
298
|
"shift-menu": "",
|
|
295
299
|
placement: "bottom-start",
|
|
296
300
|
disabled: t.disabled,
|
|
297
|
-
"onUpdate:modelValue": (
|
|
298
|
-
}, null, 8, ["model-value", "label", "items", "disabled", "onUpdate:modelValue"])) : o.kind === "number" ? (
|
|
301
|
+
"onUpdate:modelValue": (i) => r(o.key, i)
|
|
302
|
+
}, null, 8, ["model-value", "label", "items", "disabled", "onUpdate:modelValue"])) : o.kind === "number" ? (s(), p(C, {
|
|
299
303
|
key: 2,
|
|
300
304
|
"model-value": X(o.key),
|
|
301
305
|
type: "number",
|
|
302
306
|
class: "!w-[120px] ml-32",
|
|
303
307
|
label: D(m)(o.labelKey),
|
|
304
308
|
disabled: t.disabled,
|
|
305
|
-
"onUpdate:modelValue": (
|
|
306
|
-
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "text" ? (
|
|
309
|
+
"onUpdate:modelValue": (i) => Q(o, i)
|
|
310
|
+
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "text" ? (s(), p(C, {
|
|
307
311
|
key: 3,
|
|
308
312
|
"model-value": t.modelValue[o.key] ?? "",
|
|
309
313
|
label: D(m)(o.labelKey),
|
|
310
314
|
disabled: t.disabled,
|
|
311
|
-
"onUpdate:modelValue": (
|
|
312
|
-
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "date" ? (
|
|
315
|
+
"onUpdate:modelValue": (i) => r(o.key, i)
|
|
316
|
+
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "date" ? (s(), p(M, {
|
|
313
317
|
key: 4,
|
|
314
318
|
"model-value": q(o.key),
|
|
315
319
|
label: D(m)(o.labelKey),
|
|
316
320
|
"z-index": Z,
|
|
317
321
|
disabled: t.disabled,
|
|
318
|
-
"onUpdate:modelValue": (
|
|
319
|
-
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "switch" ? (
|
|
322
|
+
"onUpdate:modelValue": (i) => Y(o.key, i)
|
|
323
|
+
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "switch" ? (s(), p(w, {
|
|
320
324
|
key: 5,
|
|
321
325
|
"model-value": !!t.modelValue[o.key],
|
|
322
326
|
value: !0,
|
|
323
327
|
label: D(m)(o.labelKey),
|
|
324
328
|
disabled: t.disabled,
|
|
325
|
-
"onUpdate:modelValue": (
|
|
326
|
-
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "multiselect" ? (
|
|
329
|
+
"onUpdate:modelValue": (i) => r(o.key, i)
|
|
330
|
+
}, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : o.kind === "multiselect" ? (s(), p(_, {
|
|
327
331
|
key: 6,
|
|
328
332
|
"model-value": t.modelValue[o.key] ?? [],
|
|
329
|
-
"onUpdate:modelValue": (
|
|
333
|
+
"onUpdate:modelValue": (i) => r(o.key, i)
|
|
330
334
|
}, {
|
|
331
335
|
default: G(() => [
|
|
332
|
-
|
|
333
|
-
(
|
|
334
|
-
key:
|
|
336
|
+
x("div", he, [
|
|
337
|
+
(s(!0), g(U, null, A(T(o), (i) => (s(), p(w, {
|
|
338
|
+
key: i.value,
|
|
335
339
|
"model-value": t.modelValue[o.key] ?? [],
|
|
336
|
-
value:
|
|
337
|
-
label:
|
|
340
|
+
value: i.value,
|
|
341
|
+
label: i.label,
|
|
338
342
|
disabled: t.disabled,
|
|
339
|
-
"onUpdate:modelValue": (
|
|
343
|
+
"onUpdate:modelValue": (ee) => r(o.key, ee)
|
|
340
344
|
}, null, 8, ["model-value", "value", "label", "disabled", "onUpdate:modelValue"]))), 128))
|
|
341
345
|
])
|
|
342
346
|
]),
|
|
@@ -346,7 +350,7 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
346
350
|
]);
|
|
347
351
|
};
|
|
348
352
|
}
|
|
349
|
-
}),
|
|
353
|
+
}), Te = /* @__PURE__ */ B({
|
|
350
354
|
__name: "ConditionFormHost",
|
|
351
355
|
props: {
|
|
352
356
|
builder: {},
|
|
@@ -356,19 +360,19 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
356
360
|
},
|
|
357
361
|
emits: ["update:modelValue"],
|
|
358
362
|
setup(t, { emit: u }) {
|
|
359
|
-
const
|
|
360
|
-
() =>
|
|
363
|
+
const l = t, c = u, m = I(
|
|
364
|
+
() => l.builder.form && j(l.builder.form) ? l.builder.form : void 0
|
|
361
365
|
), f = I(
|
|
362
|
-
() =>
|
|
366
|
+
() => l.builder.form && !j(l.builder.form) ? pe(l.builder.form.component) : void 0
|
|
363
367
|
);
|
|
364
|
-
return (F, v) => m.value ? (
|
|
368
|
+
return (F, v) => m.value ? (s(), p(Ce, {
|
|
365
369
|
key: 0,
|
|
366
370
|
config: m.value,
|
|
367
371
|
"model-value": t.modelValue ?? m.value.defaults,
|
|
368
372
|
disabled: t.disable,
|
|
369
373
|
"option-providers": t.optionProviders,
|
|
370
374
|
"onUpdate:modelValue": v[0] || (v[0] = (k) => c("update:modelValue", k))
|
|
371
|
-
}, null, 8, ["config", "model-value", "disabled", "option-providers"])) : f.value ? (
|
|
375
|
+
}, null, 8, ["config", "model-value", "disabled", "option-providers"])) : f.value ? (s(), p(ie(f.value), {
|
|
372
376
|
key: 1,
|
|
373
377
|
"model-value": t.modelValue,
|
|
374
378
|
disable: t.disable,
|
|
@@ -377,7 +381,7 @@ const ke = { class: "flex flex-col gap-8" }, Ve = { class: "flex flex-col gap-4"
|
|
|
377
381
|
}
|
|
378
382
|
});
|
|
379
383
|
export {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
384
|
+
Ne as _,
|
|
385
|
+
Te as a,
|
|
386
|
+
Se as u
|
|
383
387
|
};
|
|
@@ -2,18 +2,17 @@ import { toRaw as je, defineComponent as Ae, ref as v, computed as x, watch as a
|
|
|
2
2
|
import { useI18n as De, useCoreStore as We } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Ne, components as ze, useDialog as Qe, useBreakpoints as Ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { S as fe, _ as Ze } from "./SelectFilter-ATOm0hdn.js";
|
|
5
|
-
import { _ as Xe, a as ea } from "./app-
|
|
5
|
+
import { _ as Xe, a as ea } from "./app-DnaRDAJY.js";
|
|
6
6
|
import { _ as Re, u as aa, H as la } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
|
|
7
7
|
import { u as ta, _ as sa } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
8
8
|
import { _ as oa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js";
|
|
9
|
-
import { _ as Ue } from "./
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import { l as ia } from "./lodash-BlZhpHhM.js";
|
|
9
|
+
import { u as ra, _ as Ue } from "./useDebounce-CWb5QR9G.js";
|
|
10
|
+
import { u as Ke, E as na } from "./employee-CILPIL-b.js";
|
|
11
|
+
import { u as Oe } from "./iteration-B7PEDIWb.js";
|
|
12
|
+
import { l as ia } from "./lodash-CgE5OnVa.js";
|
|
14
13
|
import { _ as $e } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
15
|
-
import { u as Be } from "./useLoading-
|
|
16
|
-
import { u as Ee } from "./useAppStore-
|
|
14
|
+
import { u as Be } from "./useLoading-D56E7ykF.js";
|
|
15
|
+
import { u as Ee } from "./useAppStore-DMmL9JnJ.js";
|
|
17
16
|
/* empty css */
|
|
18
17
|
function Me(z) {
|
|
19
18
|
return JSON.parse(JSON.stringify(z));
|
|
@@ -878,7 +877,7 @@ const ua = { class: "flex w-full items-center justify-between" }, ca = { class:
|
|
|
878
877
|
})) : H("", !0)])], 64);
|
|
879
878
|
};
|
|
880
879
|
}
|
|
881
|
-
}),
|
|
880
|
+
}), al = /* @__PURE__ */ Ze(Na, [["__scopeId", "data-v-9cf34375"]]);
|
|
882
881
|
export {
|
|
883
|
-
|
|
882
|
+
al as default
|
|
884
883
|
};
|
|
@@ -4,17 +4,17 @@ import { useCoreStore as uf, useI18n as vf } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as gf } from "./iteration-
|
|
8
|
-
import { u as _f } from "./useAppStore-
|
|
7
|
+
import { u as gf } from "./iteration-B7PEDIWb.js";
|
|
8
|
+
import { u as _f } from "./useAppStore-DMmL9JnJ.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
10
|
+
import "./employee-CILPIL-b.js";
|
|
11
|
+
import "./lodash-CgE5OnVa.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { R as pt } from "./app-
|
|
14
|
-
import "./rule-
|
|
15
|
-
import "./useReportPermissions-
|
|
16
|
-
import "./dayjs.min-
|
|
17
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-
|
|
13
|
+
import { R as pt } from "./app-DnaRDAJY.js";
|
|
14
|
+
import "./rule-BmSYQ3Op.js";
|
|
15
|
+
import "./useReportPermissions-BKj02rVj.js";
|
|
16
|
+
import "./dayjs.min-NAaPKajp.js";
|
|
17
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CpUHcGUj.js";
|
|
18
18
|
var Nn = {};
|
|
19
19
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
20
20
|
var qt = {};
|
|
@@ -2,14 +2,14 @@ import { ref as S, defineComponent as J, computed as F, watch as ce, resolveComp
|
|
|
2
2
|
import { useI18n as Q, useCoreStore as ye } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as X, components as K, useDialog as Ue, useBreakpoints as he, FmButtonVariant as j } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
5
|
-
import { u as Y } from "./useAppStore-
|
|
6
|
-
import { g as z, a as be, b as q, u as Z } from "./iteration-
|
|
5
|
+
import { u as Y } from "./useAppStore-DMmL9JnJ.js";
|
|
6
|
+
import { g as z, a as be, b as q, u as Z } from "./iteration-B7PEDIWb.js";
|
|
7
7
|
import { defineStore as we } from "pinia";
|
|
8
8
|
import { S as D } from "./SelectFilter-ATOm0hdn.js";
|
|
9
|
-
import { _ as ke } from "./app-
|
|
9
|
+
import { _ as ke } from "./app-DnaRDAJY.js";
|
|
10
10
|
import { _ as le, u as Fe, H as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
|
|
11
11
|
import { _ as Se } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js";
|
|
12
|
-
import { u as ue } from "./useLoading-
|
|
12
|
+
import { u as ue } from "./useLoading-D56E7ykF.js";
|
|
13
13
|
import { _ as Ie } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
|
|
14
14
|
const H = {
|
|
15
15
|
async getGrantUsers() {
|
|
@@ -3,14 +3,14 @@ import { useRouter as N, useRoute as h } from "vue-router";
|
|
|
3
3
|
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
5
|
import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as w } from "./iteration-
|
|
6
|
+
import { u as w } from "./iteration-B7PEDIWb.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
|
-
import "./rule-
|
|
9
|
-
import "./lodash-
|
|
10
|
-
import "./useAppStore-
|
|
11
|
-
import { R as v } from "./app-
|
|
8
|
+
import "./rule-BmSYQ3Op.js";
|
|
9
|
+
import "./lodash-CgE5OnVa.js";
|
|
10
|
+
import "./useAppStore-DMmL9JnJ.js";
|
|
11
|
+
import { R as v } from "./app-DnaRDAJY.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import "./PortalUserSearcher.
|
|
13
|
+
import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-ZAEcrK9Q.js";
|
|
14
14
|
const $ = { class: "space-y-24" }, X = /* @__PURE__ */ M({
|
|
15
15
|
__name: "Main",
|
|
16
16
|
setup(q) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as f, computed as h, watch as ue, resolveComponent as _, 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
2
|
import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { v as Q, _ as _e } from "./app-
|
|
4
|
+
import { v as Q, _ as _e } from "./app-DnaRDAJY.js";
|
|
5
5
|
import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js";
|
|
6
6
|
import { u as ge, _ as Pe } from "./useDiscardConfirm-DPhEV6v0.js";
|
|
7
|
-
import { u as ie, c as M, i as ae, p as Y, j as ye, d as we, m as L, n as xe, o as Fe, s as ke, q as Ce, w as Ie } from "./rule-
|
|
8
|
-
import { l as j } from "./lodash-
|
|
9
|
-
import { d as Re, A as Ve } from "./iteration-
|
|
10
|
-
import { u as Ee } from "./useLoading-
|
|
11
|
-
import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as ie, c as M, i as ae, p as Y, j as ye, d as we, m as L, n as xe, o as Fe, s as ke, q as Ce, w as Ie } from "./rule-BmSYQ3Op.js";
|
|
8
|
+
import { l as j } from "./lodash-CgE5OnVa.js";
|
|
9
|
+
import { d as Re, A as Ve } from "./iteration-B7PEDIWb.js";
|
|
10
|
+
import { u as Ee } from "./useLoading-D56E7ykF.js";
|
|
11
|
+
import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C7X69eQq.js";
|
|
12
12
|
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({
|
|
13
13
|
__name: "PermissionSetForm",
|
|
14
14
|
props: {
|