@feedmepos/mf-hrm-portal 2.0.24-dev.9 → 2.0.24

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 (32) hide show
  1. package/dist/AuditLogList-DiVmHoNT.js +1037 -0
  2. package/dist/{EmployeeList-CYOUXmdo.js → EmployeeList-DCjDgFLf.js} +78 -78
  3. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js → FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js} +1 -1
  4. package/dist/{Main-DR0uJn8p.js → Main-B-4Hty-_.js} +9 -9
  5. package/dist/{Main-DHNuxBWB.js → Main-D1Pazgt0.js} +6 -6
  6. package/dist/{Main-9hhLn78R.js → Main-DWXAa4Zw.js} +6 -6
  7. package/dist/{PermissionSetList-CPzhnAsF.js → PermissionSetList-DE1vPSOS.js} +6 -6
  8. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DwVt6Zov.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DWqxG7LZ.js} +888 -888
  9. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-B3wDoRUf.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Duq1Ltmf.js} +1 -1
  10. package/dist/{RoleList-DQEogUW9.js → RoleList-CDZ0CwPn.js} +51 -49
  11. package/dist/SelectFilter-DUj7GBtT.js +251 -0
  12. package/dist/{TeamMemberList-BjZhJqoO.js → TeamMemberList-CGN9PqHo.js} +60 -60
  13. package/dist/{TimesheetList-FsSNYSN_.js → TimesheetList-CENyYssG.js} +10 -10
  14. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-DcyltQoo.js → TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-B1bqLX3y.js} +2 -2
  15. package/dist/{app-D9NotBhb.js → app-CpPiF3az.js} +330 -305
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-DtwtoL_z.js → dayjs.min-DROzhzjn.js} +1 -1
  18. package/dist/{employee-F_qzDON_.js → employee-hCtzhfBQ.js} +3 -3
  19. package/dist/{iteration-BQBKoufN.js → iteration-CHhRGYug.js} +3 -3
  20. package/dist/{lodash-gOdQI_3W.js → lodash-BHaHINha.js} +1 -1
  21. package/dist/{rule-BR05-rZt.js → rule-CKp_xSn-.js} +25 -25
  22. package/dist/src/components/form/SelectFilter.vue.d.ts +0 -3
  23. package/dist/src/stores/team.d.ts +1 -4
  24. package/dist/src/views/audit-log/locales/index.d.ts +16 -24
  25. package/dist/style.css +1 -1
  26. package/dist/tsconfig.app.tsbuildinfo +1 -1
  27. package/dist/{useAppStore-CAmajyh0.js → useAppStore-DT1XvZDd.js} +1 -1
  28. package/dist/{useLoading-D7Nr5flX.js → useLoading-CPT4hekh.js} +1 -1
  29. package/dist/{useReportPermissions-DRSVPDf-.js → useReportPermissions-DeR0m-om.js} +3 -3
  30. package/package.json +2 -2
  31. package/dist/AuditLogList-Cc0vtZTU.js +0 -1054
  32. package/dist/SelectFilter-C61IZSID.js +0 -269
@@ -1,269 +0,0 @@
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 C, renderSlot as z, withCtx as H, createCommentVNode as k, normalizeStyle as ee, Fragment as w, createBlock as R, unref as S, renderList as N, toDisplayString as E, 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: G, indeterminate: J } = ae(
103
- f,
104
- j,
105
- r
106
- );
107
- function K(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
- C(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
- C(F, { disabled: u.disabled }, {
151
- default: H(() => [
152
- C(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
- }, E(m.value), 3)) : k("", !0),
165
- C(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
- C(s, {
178
- name: "close",
179
- size: "sm",
180
- color: I.value
181
- }, null, 8, ["color"])
182
- ])) : k("", !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
- C(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
- ])) : k("", !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(), R(P, {
206
- key: 0,
207
- label: "All",
208
- "has-checkbox": "",
209
- "model-value": S(O),
210
- indeterminate: S(J),
211
- onClick: S(q)
212
- }, null, 8, ["model-value", "indeterminate", "onClick"])) : k("", !0),
213
- r.value.length ? (c(!0), d(w, { key: 1 }, N(y.value, (i) => (c(), d(w, {
214
- key: i.group
215
- }, [
216
- i.group ? (c(), d("div", ce, E(i.group) + " (" + E(i.options.length) + ") ", 1)) : k("", !0),
217
- (c(!0), d(w, null, N(i.options, (g) => {
218
- var D;
219
- return z(e.$slots, "option", {
220
- option: g,
221
- selected: S(O) || Array.isArray(t.value) && ((D = t.value) == null ? void 0 : D.includes(g.value)),
222
- toggle: () => S(G)(g.value)
223
- }, () => {
224
- var T;
225
- return [
226
- (c(), R(P, {
227
- key: g.value,
228
- label: g.label,
229
- "has-checkbox": "",
230
- "model-value": S(O) || Array.isArray(t.value) && ((T = t.value) == null ? void 0 : T.includes(g.value)),
231
- onClick: (fe) => S(G)(g.value)
232
- }, null, 8, ["label", "model-value", "onClick"]))
233
- ];
234
- }, !0);
235
- }), 256))
236
- ], 64))), 128)) : k("", !0)
237
- ], 64)) : (c(), d(w, { key: 1 }, [
238
- r.value.length ? (c(!0), d(w, { key: 0 }, N(r.value, (i) => z(e.$slots, "option", {
239
- option: i,
240
- selected: t.value === i.value,
241
- toggle: () => K(i.value)
242
- }, () => [
243
- (c(), R(P, {
244
- key: i.value,
245
- label: i.label,
246
- onClick: (g) => K(i.value)
247
- }, null, 8, ["label", "onClick"]))
248
- ], !0)), 256)) : k("", !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-77375076"]]);
266
- export {
267
- pe as S,
268
- de as _
269
- };