@feedmepos/mf-hrm-portal 2.1.0-dev → 2.1.0-dev.2
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-AGlAsWwd.js +1608 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-tiuei7CA.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js} +2 -2
- package/dist/EmployeeList-KvjoGI87.js +884 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-BgOhmojO.js → Main-BLh16xRg.js} +188 -185
- package/dist/Main-D3TSdtSE.js +94 -0
- package/dist/{Main-D2Wf__wM.js → Main-Dn1TfDRj.js} +1987 -1979
- package/dist/PermissionSetList-Ds69m9UU.js +392 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCKVpAwv.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js} +1122 -1122
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-D-14ca2J.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js} +1 -1
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js +42 -0
- package/dist/{RoleList-tSC8RJHe.js → RoleList-v8McRCnz.js} +231 -221
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js} +54 -20
- package/dist/{TeamMemberList-Bz-kDJ0e.js → TeamMemberList-BYQnNIhT.js} +137 -131
- package/dist/{TimesheetList-BFVhmcRt.js → TimesheetList-C1OWa6kf.js} +140 -134
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CtHuL5tW.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js} +2 -2
- package/dist/{app-DRnSocX8.js → app-CJouCBgi.js} +792 -475
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B8xOAypU.js → dayjs.min-DUugkgDM.js} +1 -1
- package/dist/{employee-UrXqUaik.js → employee-D5rEVmge.js} +3 -3
- package/dist/{iteration-LEYoQKiI.js → iteration-QRRNYlps.js} +1 -1
- package/dist/{lodash-Bq6_eZZ0.js → lodash-BlZhpHhM.js} +1 -1
- package/dist/{rule-CJC6Cq6S.js → rule-Dy7eMChN.js} +116 -110
- package/dist/src/api/audit-log/index.d.ts +23 -0
- package/dist/src/components/button/ResponsiveFabButton.vue.d.ts +7 -1
- package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
- package/dist/src/components/table/EmptyDataTemplate/index.vue.d.ts +4 -1
- package/dist/src/components/table/TableEmptyState.vue.d.ts +31 -0
- package/dist/src/stores/permission-set.d.ts +12 -3
- package/dist/src/stores/team.d.ts +4 -1
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/locales/index.d.ts +320 -16
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +1 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- 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-BGsfYWAR.js → useAppStore-CtMoad7V.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-BUM5R2qV.js → useLoading-CNqlchYO.js} +1 -1
- package/dist/{useReportPermissions-nlQ_BBL2.js → useReportPermissions-C5wGC9bf.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-C1bGND8z.js +0 -1037
- package/dist/EmployeeList-DqQF9xEx.js +0 -851
- package/dist/Main-DcKVuIjB.js +0 -90
- package/dist/PermissionSetList-CQpTa0eY.js +0 -384
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
- package/dist/SelectFilter-DUj7GBtT.js +0 -251
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as A, createElementBlock as d, openBlock as c, createElementVNode as _, createVNode as k, renderSlot as z, withCtx as H, createCommentVNode as S, normalizeStyle as ee, Fragment as w, createBlock as T, unref as C, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
|
|
2
|
+
import "@feedmepos/ui-library";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function ae(u, n, h = u) {
|
|
5
|
+
const l = $(!0), p = v(() => {
|
|
6
|
+
if (!l.value && !n.value)
|
|
7
|
+
return !0;
|
|
8
|
+
if (n.value && n.value.length > 0) {
|
|
9
|
+
const r = h.value.map((o) => o.value);
|
|
10
|
+
return n.value.length === r.length && n.value.every((o) => r.includes(o));
|
|
11
|
+
}
|
|
12
|
+
return !1;
|
|
13
|
+
}), t = v(() => {
|
|
14
|
+
var r, o, y, b;
|
|
15
|
+
return !!((r = n.value) != null && r.length && ((o = n.value) == null ? void 0 : o.length) > 0 && ((y = n.value) == null ? void 0 : y.length) < ((b = u.value) == null ? void 0 : b.length));
|
|
16
|
+
});
|
|
17
|
+
return { allCleared: l, allSelected: p, indeterminate: t, toggleAll: () => {
|
|
18
|
+
if (p.value) {
|
|
19
|
+
n.value = void 0, l.value = !0;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const r = h.value.map((o) => o.value);
|
|
23
|
+
r.length === u.value.length ? (n.value = void 0, l.value = !1) : (n.value = r, l.value = !1);
|
|
24
|
+
}, toggleOption: (r) => {
|
|
25
|
+
var y, b, B;
|
|
26
|
+
let o;
|
|
27
|
+
n.value === void 0 && l.value ? o = [r] : n.value === void 0 && !l.value ? o = (y = u.value.map((m) => m.value)) == null ? void 0 : y.filter((m) => m !== r) : (b = n.value) != null && b.includes(r) ? o = (B = n.value) == null ? void 0 : B.filter((m) => m !== r) : o = [...n.value || [], r], o.length === 0 ? (n.value = void 0, l.value = !0) : o.length === u.value.length ? (n.value = void 0, l.value = !1) : n.value = o;
|
|
28
|
+
} };
|
|
29
|
+
}
|
|
30
|
+
const ue = { class: "w-full flex flex-col gap-8" }, ne = { class: "flex items-center gap-8" }, re = { class: "inline-flex items-center" }, oe = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, se = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "flex gap-4 px-[6px] pt-4"
|
|
33
|
+
}, ie = { class: "flex-1" }, ce = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "px-12 pt-8 pb-4 text-xs font-semibold text-fm-color-typo-secondary select-none"
|
|
36
|
+
}, ve = /* @__PURE__ */ X({
|
|
37
|
+
__name: "SelectFilter",
|
|
38
|
+
props: {
|
|
39
|
+
items: { default: () => [] },
|
|
40
|
+
modelValue: {},
|
|
41
|
+
multiple: { type: Boolean, default: !1 },
|
|
42
|
+
placeholder: { default: "Select..." },
|
|
43
|
+
searchPlaceholder: { default: "Search" },
|
|
44
|
+
disabled: { type: Boolean, default: !1 },
|
|
45
|
+
variant: { default: "default" },
|
|
46
|
+
clearable: { type: Boolean, default: !1 },
|
|
47
|
+
searchable: { type: Boolean, default: !0 },
|
|
48
|
+
autoSelectFirst: { type: Boolean, default: !1 },
|
|
49
|
+
chipIcon: { default: "filter_list" },
|
|
50
|
+
showSelectAll: { type: Boolean, default: !0 },
|
|
51
|
+
maxHeight: { default: 300 },
|
|
52
|
+
selectedPrefix: { default: "Selected: " },
|
|
53
|
+
filterFn: {}
|
|
54
|
+
},
|
|
55
|
+
emits: ["update:modelValue", "change"],
|
|
56
|
+
setup(u, { expose: n, emit: h }) {
|
|
57
|
+
const l = u, p = h, t = v({
|
|
58
|
+
get: () => l.modelValue,
|
|
59
|
+
set: (e) => {
|
|
60
|
+
p("update:modelValue", e), p("change", e);
|
|
61
|
+
}
|
|
62
|
+
}), V = $(""), f = v(() => l.items), r = v(() => {
|
|
63
|
+
const e = V.value.trim();
|
|
64
|
+
if (!l.searchable || !e) return f.value;
|
|
65
|
+
if (l.filterFn)
|
|
66
|
+
return f.value.filter((s) => l.filterFn(s, e));
|
|
67
|
+
const a = e.toLowerCase();
|
|
68
|
+
return f.value.filter((s) => s.label.toLowerCase().includes(a));
|
|
69
|
+
}), o = v(() => f.value.some((e) => !!e.group)), y = v(() => {
|
|
70
|
+
if (!o.value)
|
|
71
|
+
return [{ group: "", options: r.value }];
|
|
72
|
+
const e = [], a = /* @__PURE__ */ new Map();
|
|
73
|
+
for (const s of r.value) {
|
|
74
|
+
const F = s.group ?? "";
|
|
75
|
+
let x = a.get(F);
|
|
76
|
+
x || (x = [], a.set(F, x), e.push({ group: F, options: x })), x.push(s);
|
|
77
|
+
}
|
|
78
|
+
return e;
|
|
79
|
+
}), b = v(() => {
|
|
80
|
+
if (!t.value || Array.isArray(t.value) && t.value.length === 0)
|
|
81
|
+
return l.placeholder;
|
|
82
|
+
if (Array.isArray(t.value) && t.value.length === 1) {
|
|
83
|
+
const a = f.value.find((s) => s.value === t.value[0]);
|
|
84
|
+
return (a == null ? void 0 : a.label) || l.placeholder;
|
|
85
|
+
}
|
|
86
|
+
const e = Array.isArray(t.value) ? t.value.length : 0;
|
|
87
|
+
return `${l.selectedPrefix}${e}`;
|
|
88
|
+
}), B = v(() => {
|
|
89
|
+
if (t.value === void 0 || t.value === null || t.value === "")
|
|
90
|
+
return l.placeholder;
|
|
91
|
+
const e = f.value.find((a) => a.value === t.value);
|
|
92
|
+
return (e == null ? void 0 : e.label) || l.placeholder;
|
|
93
|
+
}), m = v(
|
|
94
|
+
() => l.multiple ? b.value : B.value
|
|
95
|
+
), I = v(() => l.disabled ? "neutral-gray-200" : l.variant === "dark" ? "neutral-black" : "neutral-gray-400"), U = v(() => l.disabled ? "text-fm-color-neutral-gray-200" : l.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), L = $(void 0), j = new Proxy(L, {
|
|
96
|
+
get(e, a) {
|
|
97
|
+
return a === "value" ? Array.isArray(t.value) ? t.value : t.value === void 0 ? void 0 : [t.value] : L[a];
|
|
98
|
+
},
|
|
99
|
+
set(e, a, s) {
|
|
100
|
+
return a === "value" ? (t.value = s, !0) : (L[a] = s, !0);
|
|
101
|
+
}
|
|
102
|
+
}), { allSelected: O, toggleAll: q, toggleOption: E, indeterminate: J } = ae(
|
|
103
|
+
f,
|
|
104
|
+
j,
|
|
105
|
+
r
|
|
106
|
+
);
|
|
107
|
+
function G(e) {
|
|
108
|
+
var a;
|
|
109
|
+
l.multiple || (t.value = e, (a = M.value) == null || a.toggleMenu(!1));
|
|
110
|
+
}
|
|
111
|
+
function Q(e) {
|
|
112
|
+
e.stopPropagation(), !l.disabled && (t.value = null);
|
|
113
|
+
}
|
|
114
|
+
Y(
|
|
115
|
+
() => l.autoSelectFirst,
|
|
116
|
+
async (e) => {
|
|
117
|
+
if (e && !l.multiple && (t.value === void 0 || t.value === null)) {
|
|
118
|
+
await Z();
|
|
119
|
+
const a = f.value[0];
|
|
120
|
+
a && (t.value = a.value);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{ immediate: !0 }
|
|
124
|
+
);
|
|
125
|
+
const M = $(null);
|
|
126
|
+
return n({
|
|
127
|
+
open: () => {
|
|
128
|
+
var e;
|
|
129
|
+
return (e = M.value) == null ? void 0 : e.toggleMenu(!0);
|
|
130
|
+
},
|
|
131
|
+
close: () => {
|
|
132
|
+
var e;
|
|
133
|
+
return (e = M.value) == null ? void 0 : e.toggleMenu(!1);
|
|
134
|
+
}
|
|
135
|
+
}), (e, a) => {
|
|
136
|
+
const s = A("FmIcon"), F = A("FmChip"), x = A("FmSearch"), P = A("FmMenuItem"), W = A("FmMenu");
|
|
137
|
+
return c(), d("div", ue, [
|
|
138
|
+
_("div", ne, [
|
|
139
|
+
k(W, {
|
|
140
|
+
ref_key: "menuRef",
|
|
141
|
+
ref: M,
|
|
142
|
+
"close-on-click": !1,
|
|
143
|
+
disabled: u.disabled,
|
|
144
|
+
"z-index": 50,
|
|
145
|
+
"selector-for-dismiss-away-event-exclusion": ".fm-dialog, .fm-select__menu__wrapper"
|
|
146
|
+
}, {
|
|
147
|
+
"menu-button": H(() => [
|
|
148
|
+
z(e.$slots, "menu-button", {}, () => [
|
|
149
|
+
_("div", re, [
|
|
150
|
+
k(F, { disabled: u.disabled }, {
|
|
151
|
+
default: H(() => [
|
|
152
|
+
k(s, {
|
|
153
|
+
color: I.value,
|
|
154
|
+
name: u.chipIcon,
|
|
155
|
+
outline: "",
|
|
156
|
+
size: "sm"
|
|
157
|
+
}, null, 8, ["color", "name"]),
|
|
158
|
+
m.value ? (c(), d("div", {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: le([
|
|
161
|
+
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
162
|
+
U.value
|
|
163
|
+
])
|
|
164
|
+
}, N(m.value), 3)) : S("", !0),
|
|
165
|
+
k(s, {
|
|
166
|
+
color: I.value,
|
|
167
|
+
name: "keyboard_arrow_down",
|
|
168
|
+
size: "sm"
|
|
169
|
+
}, null, 8, ["color"]),
|
|
170
|
+
u.clearable && !u.multiple && t.value != null && t.value !== "" && !u.disabled ? (c(), d("button", {
|
|
171
|
+
key: 1,
|
|
172
|
+
class: "ml-4 focus:outline-none",
|
|
173
|
+
type: "button",
|
|
174
|
+
"aria-label": "Clear selection",
|
|
175
|
+
onClick: te(Q, ["stop"])
|
|
176
|
+
}, [
|
|
177
|
+
k(s, {
|
|
178
|
+
name: "close",
|
|
179
|
+
size: "sm",
|
|
180
|
+
color: I.value
|
|
181
|
+
}, null, 8, ["color"])
|
|
182
|
+
])) : S("", !0)
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["disabled"])
|
|
186
|
+
])
|
|
187
|
+
], !0)
|
|
188
|
+
]),
|
|
189
|
+
default: H(() => [
|
|
190
|
+
_("div", oe, [
|
|
191
|
+
u.searchable ? (c(), d("div", se, [
|
|
192
|
+
_("div", ie, [
|
|
193
|
+
k(x, {
|
|
194
|
+
modelValue: V.value,
|
|
195
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => V.value = i),
|
|
196
|
+
placeholder: u.searchPlaceholder
|
|
197
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
198
|
+
])
|
|
199
|
+
])) : S("", !0),
|
|
200
|
+
_("div", {
|
|
201
|
+
class: "flex-1 overflow-y-auto min-h-0",
|
|
202
|
+
style: ee({ maxHeight: typeof u.maxHeight == "number" ? u.maxHeight + "px" : u.maxHeight })
|
|
203
|
+
}, [
|
|
204
|
+
u.multiple ? (c(), d(w, { key: 0 }, [
|
|
205
|
+
u.showSelectAll ? (c(), T(P, {
|
|
206
|
+
key: 0,
|
|
207
|
+
label: "All",
|
|
208
|
+
"has-checkbox": "",
|
|
209
|
+
"model-value": C(O),
|
|
210
|
+
indeterminate: C(J),
|
|
211
|
+
onClick: C(q)
|
|
212
|
+
}, null, 8, ["model-value", "indeterminate", "onClick"])) : S("", !0),
|
|
213
|
+
r.value.length ? (c(!0), d(w, { key: 1 }, R(y.value, (i) => (c(), d(w, {
|
|
214
|
+
key: i.group
|
|
215
|
+
}, [
|
|
216
|
+
i.group ? (c(), d("div", ce, N(i.group) + " (" + N(i.options.length) + ") ", 1)) : S("", !0),
|
|
217
|
+
(c(!0), d(w, null, R(i.options, (g) => {
|
|
218
|
+
var K;
|
|
219
|
+
return z(e.$slots, "option", {
|
|
220
|
+
key: g.value,
|
|
221
|
+
option: g,
|
|
222
|
+
selected: C(O) || Array.isArray(t.value) && ((K = t.value) == null ? void 0 : K.includes(g.value)),
|
|
223
|
+
toggle: () => C(E)(g.value)
|
|
224
|
+
}, () => {
|
|
225
|
+
var D;
|
|
226
|
+
return [
|
|
227
|
+
k(P, {
|
|
228
|
+
label: g.label,
|
|
229
|
+
"has-checkbox": "",
|
|
230
|
+
"model-value": C(O) || Array.isArray(t.value) && ((D = t.value) == null ? void 0 : D.includes(g.value)),
|
|
231
|
+
onClick: (fe) => C(E)(g.value)
|
|
232
|
+
}, null, 8, ["label", "model-value", "onClick"])
|
|
233
|
+
];
|
|
234
|
+
}, !0);
|
|
235
|
+
}), 128))
|
|
236
|
+
], 64))), 128)) : S("", !0)
|
|
237
|
+
], 64)) : (c(), d(w, { key: 1 }, [
|
|
238
|
+
r.value.length ? (c(!0), d(w, { key: 0 }, R(r.value, (i) => z(e.$slots, "option", {
|
|
239
|
+
option: i,
|
|
240
|
+
selected: t.value === i.value,
|
|
241
|
+
toggle: () => G(i.value)
|
|
242
|
+
}, () => [
|
|
243
|
+
(c(), T(P, {
|
|
244
|
+
key: i.value,
|
|
245
|
+
label: i.label,
|
|
246
|
+
onClick: (g) => G(i.value)
|
|
247
|
+
}, null, 8, ["label", "onClick"]))
|
|
248
|
+
], !0)), 256)) : S("", !0)
|
|
249
|
+
], 64))
|
|
250
|
+
], 4)
|
|
251
|
+
])
|
|
252
|
+
]),
|
|
253
|
+
_: 3
|
|
254
|
+
}, 8, ["disabled"]),
|
|
255
|
+
z(e.$slots, "append-right", {}, void 0, !0)
|
|
256
|
+
])
|
|
257
|
+
]);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}), de = (u, n) => {
|
|
261
|
+
const h = u.__vccOpts || u;
|
|
262
|
+
for (const [l, p] of n)
|
|
263
|
+
h[l] = p;
|
|
264
|
+
return h;
|
|
265
|
+
}, pe = /* @__PURE__ */ de(ve, [["__scopeId", "data-v-81cde2b9"]]);
|
|
266
|
+
export {
|
|
267
|
+
pe as S,
|
|
268
|
+
de as _
|
|
269
|
+
};
|
|
@@ -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
|
+
};
|