@feedmepos/mf-hrm-portal 2.0.5-dev → 2.0.6-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.
- package/dist/AuditLogList-BxigxQv3.js +492 -0
- package/dist/{EmployeeList-B_pgDSOf.js → EmployeeList-DyvqwZtw.js} +6 -6
- package/dist/{Main-DsOSGRS7.js → Main-B8tSMq-U.js} +8 -8
- package/dist/{Main-BVogGot1.js → Main-CtH5MCty.js} +5 -5
- package/dist/PermissionSetList-DCONmOgn.js +323 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-07Dsea27.js +3092 -0
- package/dist/{RoleList-B09gFRrt.js → RoleList-jykDD_zm.js} +6 -6
- package/dist/{SelectFilter-NbXrJ4iH.js → SelectFilter-DUj7GBtT.js} +93 -89
- package/dist/TeamMemberList-DMrPgF1l.js +973 -0
- package/dist/{TimesheetList-BykQ0VO_.js → TimesheetList-Bk1XF9xy.js} +6 -6
- package/dist/{app-D0y0UR-U.js → app-BPlaahxK.js} +688 -785
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-COoXlyZR.js → dayjs.min-LweNOSZ_.js} +1 -1
- package/dist/{employee-UNFKUR2e.js → employee-DPfiL6rd.js} +3 -3
- package/dist/{index-2et9Y2xR.js → index-BAhsHYNv.js} +1 -1
- package/dist/{index-BPGh5yHT.js → index-CBxn7cxI.js} +1570 -1637
- package/dist/{lodash-CDk6w3_I.js → lodash-D1uG3PY3.js} +1 -1
- package/dist/{api → src/api}/permission-assignment/index.d.ts +0 -3
- package/dist/{api → src/api}/report-query/index.d.ts +0 -1
- package/dist/{components → src/components}/form/SelectFilter.vue.d.ts +2 -0
- package/dist/{helpers → src/helpers}/permission-set.d.ts +0 -9
- package/dist/{helpers → src/helpers}/rule.d.ts +1 -4
- package/dist/{types → src/types}/report-query.d.ts +0 -1
- package/dist/{views → src/views}/team/components/BasePermission.vue.d.ts +0 -17
- package/dist/{team-B0EB57-E.js → team-B1osnB4U.js} +1 -1
- package/dist/{timesheet-DmthH-5T.js → timesheet-rte2utJf.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Ba_pxve9.js → useAppStore-CqrjwnF_.js} +1 -1
- package/dist/{useLoading-PuFP-Lbd.js → useLoading-B5IjfVEP.js} +1 -1
- package/dist/useReportPermissions-C4Q29AQJ.js +65 -0
- package/package.json +2 -2
- package/dist/AuditLogList-BvEIB73A.js +0 -474
- package/dist/PermissionSetList-B243twFl.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JopeRj37.js +0 -3287
- package/dist/TeamMemberList-DZKq2mDD.js +0 -979
- package/dist/composables/useCustomReportPermissions.d.ts +0 -7
- package/dist/useReportPermissions-mKoU-8Yq.js +0 -59
- /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/{Entry.vue.d.ts → src/Entry.vue.d.ts} +0 -0
- /package/dist/{api → src/api}/audit-log/index.d.ts +0 -0
- /package/dist/{api → src/api}/employee/index.d.ts +0 -0
- /package/dist/{api → src/api}/index.d.ts +0 -0
- /package/dist/{api → src/api}/inventory/index.d.ts +0 -0
- /package/dist/{api → src/api}/permission-set/index.d.ts +0 -0
- /package/dist/{api → src/api}/public-setting/index.d.ts +0 -0
- /package/dist/{api → src/api}/role/index.d.ts +0 -0
- /package/dist/{api → src/api}/team/index.d.ts +0 -0
- /package/dist/{api → src/api}/timesheet/index.d.ts +0 -0
- /package/dist/{api → src/api}/user/index.d.ts +0 -0
- /package/dist/{app.d.ts → src/app.d.ts} +0 -0
- /package/dist/{components → src/components}/AppForm.vue.d.ts +0 -0
- /package/dist/{components → src/components}/CheckboxInput.vue.d.ts +0 -0
- /package/dist/{components → src/components}/CollapsibleWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/Navigator.vue.d.ts +0 -0
- /package/dist/{components → src/components}/Splash.vue.d.ts +0 -0
- /package/dist/{components → src/components}/button/ResponsiveFabButton.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormColumn.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FormSection.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/FullWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/HorizontalSplitter.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/LottieAnimation.vue.d.ts +0 -0
- /package/dist/{components → src/components}/layout/PageLayout.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/AppLoading.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/PageLoading.vue.d.ts +0 -0
- /package/dist/{components → src/components}/loading/index.d.ts +0 -0
- /package/dist/{components → src/components}/menu/BottomSheetMenu.vue.d.ts +0 -0
- /package/dist/{components → src/components}/menu/BottomSheetMenuItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/menu/ResponsiveContextMenu.vue.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/Icon.vue.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/EmptyDataTemplate/index.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useAppStore.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDateRange.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDiscardConfirm.d.ts +0 -0
- /package/dist/{composables → src/composables}/useElementPosition.d.ts +0 -0
- /package/dist/{composables → src/composables}/useFilterSelector.d.ts +0 -0
- /package/dist/{composables → src/composables}/useLoading.d.ts +0 -0
- /package/dist/{composables → src/composables}/useMessage.d.ts +0 -0
- /package/dist/{composables → src/composables}/useReportPermissions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRestaurantMap.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSearch.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSheet.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/component.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/iteration.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/object.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/portal-user.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/string.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/utils.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{router → src/router}/index.d.ts +0 -0
- /package/dist/{router → src/router}/shared.d.ts +0 -0
- /package/dist/{stores → src/stores}/employee.d.ts +0 -0
- /package/dist/{stores → src/stores}/permission-assignment.d.ts +0 -0
- /package/dist/{stores → src/stores}/permission-set.d.ts +0 -0
- /package/dist/{stores → src/stores}/role.d.ts +0 -0
- /package/dist/{stores → src/stores}/team.d.ts +0 -0
- /package/dist/{stores → src/stores}/timesheet.d.ts +0 -0
- /package/dist/{types → src/types}/audit-log.d.ts +0 -0
- /package/dist/{types → src/types}/employee.d.ts +0 -0
- /package/dist/{types → src/types}/permission-assignment.d.ts +0 -0
- /package/dist/{types → src/types}/permission-set.d.ts +0 -0
- /package/dist/{types → src/types}/restaurant.d.ts +0 -0
- /package/dist/{types → src/types}/role.d.ts +0 -0
- /package/dist/{types → src/types}/team.d.ts +0 -0
- /package/dist/{types → src/types}/timesheet.d.ts +0 -0
- /package/dist/{views → src/views}/audit-log/AuditLogList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/audit-log/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/hr/Main.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/Employee.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/EmployeeForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/employee/EmployeeList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/hr/role/RoleForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/role/RoleList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/hr/timesheet/TimesheetList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/Main.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/ConditionPermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/InheritPermissionTooltip.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PermissionWithTooltip.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PortalPermissionEditor.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PortalUserSearcher.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/components/PosRolePermission.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/locales/index.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/AddMemberForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/MemberInfo.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/TeamMemberList.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/member/TeamMemberMasterUser.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/permission-set/PermissionSetForm.vue.d.ts +0 -0
- /package/dist/{views → src/views}/team/permission-set/PermissionSetList.vue.d.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
|
|
2
|
-
import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-
|
|
2
|
+
import { e as ke, a as w, r as K, h as re, f as Ue, c as ve, d as Z } from "./index-CBxn7cxI.js";
|
|
3
3
|
import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ye, components as se, useDialog as Le, useBreakpoints as Ie, FmButtonColorThemeVariant as fe, FmButtonVariant as Ee } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Se } from "./app-
|
|
5
|
+
import { _ as Se } from "./app-BPlaahxK.js";
|
|
6
6
|
import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
|
|
7
|
-
import { u as Fe } from "./useAppStore-
|
|
8
|
-
import { u as xe } from "./useReportPermissions-
|
|
7
|
+
import { u as Fe } from "./useAppStore-CqrjwnF_.js";
|
|
8
|
+
import { u as xe } from "./useReportPermissions-C4Q29AQJ.js";
|
|
9
9
|
import { u as $e, _ as oe, a as Te, b as Be } from "./useRestaurantMap-D5BNPLKh.js";
|
|
10
|
-
import { l as ee } from "./lodash-
|
|
11
|
-
import { u as De } from "./useLoading-
|
|
10
|
+
import { l as ee } from "./lodash-D1uG3PY3.js";
|
|
11
|
+
import { u as De } from "./useLoading-B5IjfVEP.js";
|
|
12
12
|
const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-50 ml-5 flex flex-row items-start"
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { ref as B, computed as
|
|
1
|
+
import { ref as B, computed as v, defineComponent as G, watch as J, nextTick as Q, resolveComponent as C, createElementBlock as m, openBlock as c, createElementVNode as w, createVNode as k, renderSlot as _, withCtx as L, createCommentVNode as S, normalizeStyle as W, Fragment as V, createBlock as P, unref as p, renderList as N, normalizeClass as X, toDisplayString as Y, withModifiers as Z } from "vue";
|
|
2
2
|
import "@feedmepos/ui-library";
|
|
3
3
|
/* empty css */
|
|
4
|
-
function ee(t, u,
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
4
|
+
function ee(t, u, g = t) {
|
|
5
|
+
const e = B(!0), h = v(() => {
|
|
6
|
+
if (!e.value && !u.value)
|
|
7
7
|
return !0;
|
|
8
8
|
if (u.value && u.value.length > 0) {
|
|
9
|
-
const r =
|
|
9
|
+
const r = g.value.map((o) => o.value);
|
|
10
10
|
return u.value.length === r.length && u.value.every((o) => r.includes(o));
|
|
11
11
|
}
|
|
12
12
|
return !1;
|
|
13
|
-
}),
|
|
14
|
-
var r, o, y,
|
|
15
|
-
return !!((r = u.value) != null && r.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((y = u.value) == null ? void 0 : y.length) < ((
|
|
13
|
+
}), l = v(() => {
|
|
14
|
+
var r, o, y, f;
|
|
15
|
+
return !!((r = u.value) != null && r.length && ((o = u.value) == null ? void 0 : o.length) > 0 && ((y = u.value) == null ? void 0 : y.length) < ((f = t.value) == null ? void 0 : f.length));
|
|
16
16
|
});
|
|
17
|
-
return { allCleared:
|
|
18
|
-
if (
|
|
19
|
-
u.value = void 0,
|
|
17
|
+
return { allCleared: e, allSelected: h, indeterminate: l, toggleAll: () => {
|
|
18
|
+
if (h.value) {
|
|
19
|
+
u.value = void 0, e.value = !0;
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
const r =
|
|
23
|
-
r.length === t.value.length ? (u.value = void 0,
|
|
22
|
+
const r = g.value.map((o) => o.value);
|
|
23
|
+
r.length === t.value.length ? (u.value = void 0, e.value = !1) : (u.value = r, e.value = !1);
|
|
24
24
|
}, toggleOption: (r) => {
|
|
25
|
-
var y,
|
|
25
|
+
var y, f, x;
|
|
26
26
|
let o;
|
|
27
|
-
u.value === void 0 &&
|
|
27
|
+
u.value === void 0 && e.value ? o = [r] : u.value === void 0 && !e.value ? o = (y = t.value.map((b) => b.value)) == null ? void 0 : y.filter((b) => b !== r) : (f = u.value) != null && f.includes(r) ? o = (x = u.value) == null ? void 0 : x.filter((b) => b !== r) : o = [...u.value || [], r], o.length === 0 ? (u.value = void 0, e.value = !0) : o.length === t.value.length ? (u.value = void 0, e.value = !1) : u.value = o;
|
|
28
28
|
} };
|
|
29
29
|
}
|
|
30
30
|
const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-center gap-8" }, te = { class: "inline-flex items-center" }, ue = { class: "flex flex-col w-[360px] min-h-0 gap-8" }, ne = {
|
|
@@ -46,82 +46,86 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
46
46
|
chipIcon: { default: "filter_list" },
|
|
47
47
|
showSelectAll: { type: Boolean, default: !0 },
|
|
48
48
|
maxHeight: { default: 300 },
|
|
49
|
-
selectedPrefix: { default: "Selected: " }
|
|
49
|
+
selectedPrefix: { default: "Selected: " },
|
|
50
|
+
filterFn: {}
|
|
50
51
|
},
|
|
51
52
|
emits: ["update:modelValue", "change"],
|
|
52
|
-
setup(t, { expose: u, emit:
|
|
53
|
-
const
|
|
54
|
-
get: () =>
|
|
53
|
+
setup(t, { expose: u, emit: g }) {
|
|
54
|
+
const e = t, h = g, l = v({
|
|
55
|
+
get: () => e.modelValue,
|
|
55
56
|
set: (a) => {
|
|
56
|
-
|
|
57
|
+
h("update:modelValue", a), h("change", a);
|
|
57
58
|
}
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return
|
|
59
|
+
}), F = B(""), d = v(() => e.items), r = v(() => {
|
|
60
|
+
const a = F.value.trim();
|
|
61
|
+
if (!e.searchable || !a) return d.value;
|
|
62
|
+
if (e.filterFn)
|
|
63
|
+
return d.value.filter((i) => e.filterFn(i, a));
|
|
64
|
+
const n = a.toLowerCase();
|
|
65
|
+
return d.value.filter((i) => i.label.toLowerCase().includes(n));
|
|
66
|
+
}), o = v(() => {
|
|
67
|
+
if (!l.value || Array.isArray(l.value) && l.value.length === 0)
|
|
68
|
+
return e.placeholder;
|
|
69
|
+
if (Array.isArray(l.value) && l.value.length === 1) {
|
|
70
|
+
const n = d.value.find((i) => i.value === l.value[0]);
|
|
71
|
+
return (n == null ? void 0 : n.label) || e.placeholder;
|
|
68
72
|
}
|
|
69
|
-
const a = Array.isArray(
|
|
70
|
-
return `${
|
|
71
|
-
}), y =
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
74
|
-
const a =
|
|
75
|
-
return (a == null ? void 0 : a.label) ||
|
|
76
|
-
}),
|
|
77
|
-
() =>
|
|
78
|
-
), x =
|
|
73
|
+
const a = Array.isArray(l.value) ? l.value.length : 0;
|
|
74
|
+
return `${e.selectedPrefix}${a}`;
|
|
75
|
+
}), y = v(() => {
|
|
76
|
+
if (l.value === void 0 || l.value === null || l.value === "")
|
|
77
|
+
return e.placeholder;
|
|
78
|
+
const a = d.value.find((n) => n.value === l.value);
|
|
79
|
+
return (a == null ? void 0 : a.label) || e.placeholder;
|
|
80
|
+
}), f = v(
|
|
81
|
+
() => e.multiple ? o.value : y.value
|
|
82
|
+
), x = v(() => e.disabled ? "neutral-gray-200" : e.variant === "dark" ? "neutral-black" : "neutral-gray-400"), b = v(() => e.disabled ? "text-fm-color-neutral-gray-200" : e.variant === "dark" ? "text-fm-color-neutral-black" : "text-fm-color-neutral-gray-400"), M = B(void 0), E = new Proxy(M, {
|
|
79
83
|
get(a, n) {
|
|
80
|
-
return n === "value" ? Array.isArray(
|
|
84
|
+
return n === "value" ? Array.isArray(l.value) ? l.value : l.value === void 0 ? void 0 : [l.value] : M[n];
|
|
81
85
|
},
|
|
82
|
-
set(a, n,
|
|
83
|
-
return n === "value" ? (
|
|
86
|
+
set(a, n, i) {
|
|
87
|
+
return n === "value" ? (l.value = i, !0) : (M[n] = i, !0);
|
|
84
88
|
}
|
|
85
|
-
}), { allSelected:
|
|
86
|
-
|
|
89
|
+
}), { allSelected: z, toggleAll: K, toggleOption: H, indeterminate: D } = ee(
|
|
90
|
+
d,
|
|
87
91
|
E,
|
|
88
92
|
r
|
|
89
93
|
);
|
|
90
94
|
function O(a) {
|
|
91
95
|
var n;
|
|
92
|
-
|
|
96
|
+
e.multiple || (l.value = a, (n = A.value) == null || n.toggleMenu(!1));
|
|
93
97
|
}
|
|
94
98
|
function T(a) {
|
|
95
|
-
a.stopPropagation(), !
|
|
99
|
+
a.stopPropagation(), !e.disabled && (l.value = null);
|
|
96
100
|
}
|
|
97
101
|
J(
|
|
98
|
-
() =>
|
|
102
|
+
() => e.autoSelectFirst,
|
|
99
103
|
async (a) => {
|
|
100
|
-
if (a && !
|
|
104
|
+
if (a && !e.multiple && (l.value === void 0 || l.value === null)) {
|
|
101
105
|
await Q();
|
|
102
|
-
const n =
|
|
103
|
-
n && (
|
|
106
|
+
const n = d.value[0];
|
|
107
|
+
n && (l.value = n.value);
|
|
104
108
|
}
|
|
105
109
|
},
|
|
106
110
|
{ immediate: !0 }
|
|
107
111
|
);
|
|
108
|
-
const
|
|
112
|
+
const A = B(null);
|
|
109
113
|
return u({
|
|
110
114
|
open: () => {
|
|
111
115
|
var a;
|
|
112
|
-
return (a =
|
|
116
|
+
return (a = A.value) == null ? void 0 : a.toggleMenu(!0);
|
|
113
117
|
},
|
|
114
118
|
close: () => {
|
|
115
119
|
var a;
|
|
116
|
-
return (a =
|
|
120
|
+
return (a = A.value) == null ? void 0 : a.toggleMenu(!1);
|
|
117
121
|
}
|
|
118
122
|
}), (a, n) => {
|
|
119
|
-
const
|
|
120
|
-
return
|
|
121
|
-
|
|
123
|
+
const i = C("FmIcon"), U = C("FmChip"), j = C("FmSearch"), $ = C("FmMenuItem"), q = C("FmMenu");
|
|
124
|
+
return c(), m("div", le, [
|
|
125
|
+
w("div", ae, [
|
|
122
126
|
k(q, {
|
|
123
127
|
ref_key: "menuRef",
|
|
124
|
-
ref:
|
|
128
|
+
ref: A,
|
|
125
129
|
"close-on-click": !1,
|
|
126
130
|
disabled: t.disabled,
|
|
127
131
|
"z-index": 50,
|
|
@@ -129,35 +133,35 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
129
133
|
}, {
|
|
130
134
|
"menu-button": L(() => [
|
|
131
135
|
_(a.$slots, "menu-button", {}, () => [
|
|
132
|
-
|
|
136
|
+
w("div", te, [
|
|
133
137
|
k(U, { disabled: t.disabled }, {
|
|
134
138
|
default: L(() => [
|
|
135
|
-
k(
|
|
139
|
+
k(i, {
|
|
136
140
|
color: x.value,
|
|
137
141
|
name: t.chipIcon,
|
|
138
142
|
outline: "",
|
|
139
143
|
size: "sm"
|
|
140
144
|
}, null, 8, ["color", "name"]),
|
|
141
|
-
|
|
145
|
+
f.value ? (c(), m("div", {
|
|
142
146
|
key: 0,
|
|
143
147
|
class: X([
|
|
144
148
|
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
145
149
|
b.value
|
|
146
150
|
])
|
|
147
|
-
}, Y(
|
|
148
|
-
k(
|
|
151
|
+
}, Y(f.value), 3)) : S("", !0),
|
|
152
|
+
k(i, {
|
|
149
153
|
color: x.value,
|
|
150
154
|
name: "keyboard_arrow_down",
|
|
151
155
|
size: "sm"
|
|
152
156
|
}, null, 8, ["color"]),
|
|
153
|
-
t.clearable && !t.multiple &&
|
|
157
|
+
t.clearable && !t.multiple && l.value != null && l.value !== "" && !t.disabled ? (c(), m("button", {
|
|
154
158
|
key: 1,
|
|
155
159
|
class: "ml-4 focus:outline-none",
|
|
156
160
|
type: "button",
|
|
157
161
|
"aria-label": "Clear selection",
|
|
158
162
|
onClick: Z(T, ["stop"])
|
|
159
163
|
}, [
|
|
160
|
-
k(
|
|
164
|
+
k(i, {
|
|
161
165
|
name: "close",
|
|
162
166
|
size: "sm",
|
|
163
167
|
color: x.value
|
|
@@ -170,55 +174,55 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
170
174
|
], !0)
|
|
171
175
|
]),
|
|
172
176
|
default: L(() => [
|
|
173
|
-
|
|
174
|
-
t.searchable ? (
|
|
175
|
-
|
|
177
|
+
w("div", ue, [
|
|
178
|
+
t.searchable ? (c(), m("div", ne, [
|
|
179
|
+
w("div", re, [
|
|
176
180
|
k(j, {
|
|
177
|
-
modelValue:
|
|
178
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) =>
|
|
181
|
+
modelValue: F.value,
|
|
182
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => F.value = s),
|
|
179
183
|
placeholder: t.searchPlaceholder
|
|
180
184
|
}, null, 8, ["modelValue", "placeholder"])
|
|
181
185
|
])
|
|
182
186
|
])) : S("", !0),
|
|
183
|
-
|
|
187
|
+
w("div", {
|
|
184
188
|
class: "flex-1 overflow-y-auto min-h-0",
|
|
185
189
|
style: W({ maxHeight: typeof t.maxHeight == "number" ? t.maxHeight + "px" : t.maxHeight })
|
|
186
190
|
}, [
|
|
187
|
-
t.multiple ? (
|
|
188
|
-
t.showSelectAll ? (
|
|
191
|
+
t.multiple ? (c(), m(V, { key: 0 }, [
|
|
192
|
+
t.showSelectAll ? (c(), P($, {
|
|
189
193
|
key: 0,
|
|
190
194
|
label: "All",
|
|
191
195
|
"has-checkbox": "",
|
|
192
|
-
"model-value": p(
|
|
193
|
-
indeterminate: p(
|
|
194
|
-
onClick: p(
|
|
196
|
+
"model-value": p(z),
|
|
197
|
+
indeterminate: p(D),
|
|
198
|
+
onClick: p(K)
|
|
195
199
|
}, null, 8, ["model-value", "indeterminate", "onClick"])) : S("", !0),
|
|
196
|
-
r.value.length ? (
|
|
200
|
+
r.value.length ? (c(!0), m(V, { key: 1 }, N(r.value, (s) => {
|
|
197
201
|
var I;
|
|
198
202
|
return _(a.$slots, "option", {
|
|
199
203
|
option: s,
|
|
200
|
-
selected: p(
|
|
204
|
+
selected: p(z) || Array.isArray(l.value) && ((I = l.value) == null ? void 0 : I.includes(s.value)),
|
|
201
205
|
toggle: () => p(H)(s.value)
|
|
202
206
|
}, () => {
|
|
203
207
|
var R;
|
|
204
208
|
return [
|
|
205
|
-
(
|
|
209
|
+
(c(), P($, {
|
|
206
210
|
key: s.value,
|
|
207
211
|
label: s.label,
|
|
208
212
|
"has-checkbox": "",
|
|
209
|
-
"model-value": p(
|
|
213
|
+
"model-value": p(z) || Array.isArray(l.value) && ((R = l.value) == null ? void 0 : R.includes(s.value)),
|
|
210
214
|
onClick: (ie) => p(H)(s.value)
|
|
211
215
|
}, null, 8, ["label", "model-value", "onClick"]))
|
|
212
216
|
];
|
|
213
217
|
}, !0);
|
|
214
218
|
}), 256)) : S("", !0)
|
|
215
|
-
], 64)) : (
|
|
216
|
-
r.value.length ? (
|
|
219
|
+
], 64)) : (c(), m(V, { key: 1 }, [
|
|
220
|
+
r.value.length ? (c(!0), m(V, { key: 0 }, N(r.value, (s) => _(a.$slots, "option", {
|
|
217
221
|
option: s,
|
|
218
|
-
selected:
|
|
222
|
+
selected: l.value === s.value,
|
|
219
223
|
toggle: () => O(s.value)
|
|
220
224
|
}, () => [
|
|
221
|
-
(
|
|
225
|
+
(c(), P($, {
|
|
222
226
|
key: s.value,
|
|
223
227
|
label: s.label,
|
|
224
228
|
onClick: (I) => O(s.value)
|
|
@@ -236,11 +240,11 @@ const le = { class: "w-full flex flex-col gap-8" }, ae = { class: "flex items-ce
|
|
|
236
240
|
};
|
|
237
241
|
}
|
|
238
242
|
}), se = (t, u) => {
|
|
239
|
-
const
|
|
240
|
-
for (const [
|
|
241
|
-
|
|
242
|
-
return
|
|
243
|
-
}, fe = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-
|
|
243
|
+
const g = t.__vccOpts || t;
|
|
244
|
+
for (const [e, h] of u)
|
|
245
|
+
g[e] = h;
|
|
246
|
+
return g;
|
|
247
|
+
}, fe = /* @__PURE__ */ se(oe, [["__scopeId", "data-v-a9d0b3b3"]]);
|
|
244
248
|
export {
|
|
245
249
|
fe as S,
|
|
246
250
|
se as _
|