vlite3 0.9.6 → 0.9.8
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/components/Accordion/Accordion.vue.d.ts +1 -1
- package/components/Accordion/AccordionItem.vue.d.ts +1 -1
- package/components/Accordion/AccordionTrigger.vue.d.ts +1 -1
- package/components/Alert.vue.d.ts +1 -1
- package/components/Avatar.vue.d.ts +2 -2
- package/components/Avatar.vue.js +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/BackButton.vue.d.ts +1 -1
- package/components/Badge.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/components/Button.vue.d.ts +2 -2
- package/components/CheckBox.vue.d.ts +1 -1
- package/components/Chip/Chip.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.js +55 -54
- package/components/DataTable/DataTableHeader.vue.js +5 -3
- package/components/DataTable/DataTableRow.vue.js +23 -24
- package/components/DatePicker.vue.js +93 -67
- package/components/DateRangePicker.vue.js +28 -26
- package/components/Dropdown/DropdownBooleanItem.vue.js +12 -9
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +51 -51
- package/components/Form/CustomFields.vue.d.ts +4 -0
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +147 -115
- package/components/Form/FormField.vue.d.ts +2 -1
- package/components/Form/FormField.vue.js +3 -0
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +38 -37
- package/components/Form/composables/useForm.d.ts +1 -1
- package/components/Form/composables/useForm.js +142 -125
- package/components/Form/types.d.ts +6 -0
- package/components/Form/utils/form.utils.js +115 -106
- package/components/Input.vue.d.ts +3 -3
- package/components/Kanban/KanbanBoard.vue2.js +29 -27
- package/components/List/List.vue.d.ts +1 -1
- package/components/List/List.vue.js +1 -1
- package/components/Navbar/Navbar.vue.d.ts +2 -2
- package/components/Navbar/NavbarItem.vue.d.ts +1 -1
- package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
- package/components/NumberInput.vue.d.ts +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -2
- package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +2 -2
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.d.ts +1 -1
- package/components/SidePanel.vue.d.ts +1 -1
- package/components/Spinner/Spinner.vue.d.ts +2 -2
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/StatusChip/StatusChip.vue.d.ts +1 -1
- package/index.js +255 -254
- package/package.json +2 -2
- package/style.css +6 -1
- package/utils/functions.d.ts +25 -10
- package/utils/functions.js +112 -70
|
@@ -1,92 +1,101 @@
|
|
|
1
|
-
function
|
|
1
|
+
function E(e) {
|
|
2
2
|
return !!e && typeof e == "object";
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
if (!
|
|
6
|
-
const
|
|
4
|
+
function d(e, n) {
|
|
5
|
+
if (!n || !e) return;
|
|
6
|
+
const o = n.split(".");
|
|
7
7
|
let y = e;
|
|
8
|
-
for (const
|
|
8
|
+
for (const t of o) {
|
|
9
9
|
if (y == null) return;
|
|
10
|
-
y = y[
|
|
10
|
+
y = y[t];
|
|
11
11
|
}
|
|
12
12
|
return y;
|
|
13
13
|
}
|
|
14
|
-
function h(e,
|
|
15
|
-
if (!
|
|
16
|
-
const y =
|
|
17
|
-
let
|
|
14
|
+
function h(e, n, o) {
|
|
15
|
+
if (!n) return e;
|
|
16
|
+
const y = n.split("."), t = { ...e };
|
|
17
|
+
let i = t;
|
|
18
18
|
for (let s = 0; s < y.length - 1; s++) {
|
|
19
19
|
const a = y[s];
|
|
20
|
-
Array.isArray(
|
|
20
|
+
Array.isArray(i[a]) ? i[a] = [...i[a]] : i[a] = i[a] ? { ...i[a] } : {}, i = i[a];
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return i[y[y.length - 1]] = o, t;
|
|
23
23
|
}
|
|
24
|
-
function v(e,
|
|
25
|
-
return !
|
|
24
|
+
function v(e, n) {
|
|
25
|
+
return !E(n) || !n.name ? e : d(e, n.name) === void 0 && n.value !== void 0 ? h(e, n.name, n.value) : e;
|
|
26
26
|
}
|
|
27
|
-
async function
|
|
28
|
-
let
|
|
27
|
+
async function O(e, n) {
|
|
28
|
+
let o = n ? A(n) : {};
|
|
29
29
|
const y = Array.isArray(e[0]) ? e.flat() : e;
|
|
30
|
-
for (const
|
|
31
|
-
if (!
|
|
32
|
-
const
|
|
33
|
-
let s =
|
|
30
|
+
for (const t of y) {
|
|
31
|
+
if (!t.name) continue;
|
|
32
|
+
const i = t.mapFrom || t.name;
|
|
33
|
+
let s = n ? d(n, i) : void 0;
|
|
34
34
|
if (s != null) {
|
|
35
|
-
const a =
|
|
35
|
+
const a = t.valueKey || t.key;
|
|
36
36
|
a && (Array.isArray(s) ? s = s.map(
|
|
37
|
-
(
|
|
38
|
-
) : typeof s == "object" && (s =
|
|
37
|
+
(u) => u && typeof u == "object" ? d(u, a) : u
|
|
38
|
+
) : typeof s == "object" && (s = d(s, a))), t.format && (s = await t.format(s, n || {}));
|
|
39
39
|
}
|
|
40
40
|
if (s === void 0) {
|
|
41
|
-
if (
|
|
42
|
-
const a =
|
|
41
|
+
if (t.mapFrom && n) {
|
|
42
|
+
const a = d(n, t.name);
|
|
43
43
|
a !== void 0 && (s = a);
|
|
44
44
|
}
|
|
45
45
|
if (s === void 0) {
|
|
46
|
-
const a = typeof
|
|
47
|
-
a !== void 0 && Object.assign(
|
|
46
|
+
const a = typeof t.value == "function" ? t.value() : t.value;
|
|
47
|
+
a !== void 0 && Object.assign(o, h(o, t.name, a));
|
|
48
48
|
} else
|
|
49
|
-
Object.assign(
|
|
49
|
+
Object.assign(o, h(o, t.name, s));
|
|
50
50
|
} else
|
|
51
|
-
Object.assign(
|
|
52
|
-
|
|
51
|
+
Object.assign(o, h(o, t.name, s));
|
|
52
|
+
if (o = v(o, t.addonLeft), o = v(o, t.addonRight), t.type === "customFields" && t.props?.schema) {
|
|
53
|
+
const a = t.props.schema;
|
|
54
|
+
let u = d(o, t.name);
|
|
55
|
+
if (Array.isArray(u) && u.length > 0) {
|
|
56
|
+
const f = await Promise.all(
|
|
57
|
+
u.map((r) => O(a, r))
|
|
58
|
+
);
|
|
59
|
+
Object.assign(o, h(o, t.name, f));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
|
-
return
|
|
63
|
+
return o;
|
|
55
64
|
}
|
|
56
|
-
function
|
|
57
|
-
return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(
|
|
65
|
+
function F(e, n) {
|
|
66
|
+
return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(n) : !1;
|
|
58
67
|
}
|
|
59
|
-
function
|
|
60
|
-
return Array.isArray(e) ? e.filter((
|
|
61
|
-
const
|
|
62
|
-
return
|
|
68
|
+
function b(e, n) {
|
|
69
|
+
return Array.isArray(e) ? e.filter((o) => o ? !n.every((t) => {
|
|
70
|
+
const i = o[t.name];
|
|
71
|
+
return i == null || i === "";
|
|
63
72
|
}) : !1) : [];
|
|
64
73
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
for (const
|
|
68
|
-
if (!
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
const s =
|
|
72
|
-
s &&
|
|
73
|
-
name:
|
|
74
|
+
function x(e, n) {
|
|
75
|
+
const o = [], y = Array.isArray(e[0]) ? e.flat() : e;
|
|
76
|
+
for (const t of y) {
|
|
77
|
+
if (!t.name) continue;
|
|
78
|
+
const i = t.type;
|
|
79
|
+
if (i === "file" || i === "avatarUpload" || i === "fileUploader") {
|
|
80
|
+
const s = d(n, t.name);
|
|
81
|
+
s && o.push({
|
|
82
|
+
name: t.name,
|
|
74
83
|
value: s,
|
|
75
|
-
type:
|
|
76
|
-
field:
|
|
84
|
+
type: i,
|
|
85
|
+
field: t
|
|
77
86
|
});
|
|
78
87
|
}
|
|
79
|
-
if (
|
|
80
|
-
const s =
|
|
88
|
+
if (i === "customFields" && t.props?.schema) {
|
|
89
|
+
const s = d(n, t.name);
|
|
81
90
|
if (Array.isArray(s)) {
|
|
82
|
-
const
|
|
83
|
-
(
|
|
91
|
+
const u = t.props.schema.filter(
|
|
92
|
+
(f) => f.type === "file" || f.type === "avatarUpload" || f.type === "fileUploader"
|
|
84
93
|
);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const l =
|
|
88
|
-
l &&
|
|
89
|
-
name: `${
|
|
94
|
+
u.length > 0 && s.forEach((f, r) => {
|
|
95
|
+
u.forEach((c) => {
|
|
96
|
+
const l = f?.[c.name];
|
|
97
|
+
l && o.push({
|
|
98
|
+
name: `${t.name}.${r}.${c.name}`,
|
|
90
99
|
value: l,
|
|
91
100
|
type: c.type,
|
|
92
101
|
field: c
|
|
@@ -96,96 +105,96 @@ function b(e, t) {
|
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
}
|
|
99
|
-
return
|
|
108
|
+
return o;
|
|
100
109
|
}
|
|
101
|
-
function
|
|
110
|
+
function A(e) {
|
|
102
111
|
if (e === null || typeof e != "object") return e;
|
|
103
112
|
if (e instanceof Date) return new Date(e.getTime());
|
|
104
113
|
if (e instanceof File) return e;
|
|
105
|
-
if (Array.isArray(e)) return e.map((
|
|
106
|
-
const
|
|
107
|
-
for (const
|
|
108
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
109
|
-
return
|
|
114
|
+
if (Array.isArray(e)) return e.map((o) => A(o));
|
|
115
|
+
const n = {};
|
|
116
|
+
for (const o in e)
|
|
117
|
+
Object.prototype.hasOwnProperty.call(e, o) && (n[o] = A(e[o]));
|
|
118
|
+
return n;
|
|
110
119
|
}
|
|
111
120
|
function N(e) {
|
|
112
121
|
return e ? typeof e == "object" && (typeof e.render == "function" || typeof e.setup == "function" || e.__name !== void 0 || e.name !== void 0) : !1;
|
|
113
122
|
}
|
|
114
|
-
function O(e) {
|
|
115
|
-
const t = e.type;
|
|
116
|
-
return t === "multiSelect" ? [] : t === "switch" || t === "check" ? !1 : null;
|
|
117
|
-
}
|
|
118
123
|
function S(e) {
|
|
124
|
+
const n = e.type;
|
|
125
|
+
return n === "multiSelect" ? [] : n === "switch" || n === "check" ? !1 : null;
|
|
126
|
+
}
|
|
127
|
+
function V(e) {
|
|
119
128
|
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
120
129
|
}
|
|
121
|
-
async function
|
|
122
|
-
const
|
|
123
|
-
for (const
|
|
124
|
-
if (!
|
|
125
|
-
let r =
|
|
126
|
-
const c =
|
|
127
|
-
if (
|
|
130
|
+
async function w(e, n, o, y) {
|
|
131
|
+
const t = o === void 0 && y === void 0, i = t ? A(e) : {}, s = Array.isArray(n[0]) ? n.flat() : n, a = o || [], u = y || [];
|
|
132
|
+
for (const f of s) {
|
|
133
|
+
if (!f.name) continue;
|
|
134
|
+
let r = d(e, f.name);
|
|
135
|
+
const c = f.name.split(".")[0], l = Object.prototype.hasOwnProperty.call(e, c);
|
|
136
|
+
if (V(r)) {
|
|
128
137
|
if (!l) continue;
|
|
129
|
-
r =
|
|
138
|
+
r = S(f);
|
|
130
139
|
}
|
|
131
|
-
if (r =
|
|
132
|
-
const k =
|
|
133
|
-
r = await Promise.all(r.map((
|
|
140
|
+
if (r = A(r), f.type === "customFields" && f.props?.schema && Array.isArray(r)) {
|
|
141
|
+
const k = f.props.schema;
|
|
142
|
+
r = await Promise.all(r.map((g) => w(g, k, o, y)));
|
|
134
143
|
}
|
|
135
144
|
let m = !1;
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
145
|
+
f.transform && (r = await f.transform(r, e), m = !0);
|
|
146
|
+
const p = f.mapTo || f.name;
|
|
147
|
+
p !== f.name && (m = !0, t && !f.name.includes(".") && delete i[f.name]), !t || m ? Object.assign(i, h(i, p, r)) : Object.assign(i, h(i, f.name, r));
|
|
139
148
|
}
|
|
140
149
|
if (a.length > 0) {
|
|
141
|
-
const
|
|
150
|
+
const f = (r, c) => {
|
|
142
151
|
if (!(!r || typeof r != "object") && !(!c || typeof c != "object"))
|
|
143
152
|
if (Array.isArray(r) && Array.isArray(c)) {
|
|
144
153
|
for (const l of a) {
|
|
145
|
-
const m = r.find((
|
|
146
|
-
m !== void 0 && c.forEach((
|
|
147
|
-
|
|
154
|
+
const m = r.find((p) => p && typeof p == "object" && p[l] !== void 0)?.[l];
|
|
155
|
+
m !== void 0 && c.forEach((p) => {
|
|
156
|
+
p && typeof p == "object" && p[l] === void 0 && (p[l] = A(m));
|
|
148
157
|
});
|
|
149
158
|
}
|
|
150
159
|
r.forEach((l, m) => {
|
|
151
|
-
c[m] &&
|
|
160
|
+
c[m] && f(l, c[m]);
|
|
152
161
|
});
|
|
153
162
|
} else {
|
|
154
163
|
for (const l of a)
|
|
155
|
-
r[l] !== void 0 && c[l] === void 0 && (c[l] =
|
|
164
|
+
r[l] !== void 0 && c[l] === void 0 && (c[l] = A(r[l]));
|
|
156
165
|
for (const l in c)
|
|
157
|
-
typeof c[l] == "object" && typeof r[l] == "object" &&
|
|
166
|
+
typeof c[l] == "object" && typeof r[l] == "object" && f(r[l], c[l]);
|
|
158
167
|
}
|
|
159
168
|
};
|
|
160
169
|
for (const r of a)
|
|
161
|
-
e[r] !== void 0 &&
|
|
162
|
-
|
|
170
|
+
e[r] !== void 0 && i[r] === void 0 && (i[r] = A(e[r]));
|
|
171
|
+
f(e, i);
|
|
163
172
|
}
|
|
164
|
-
if (
|
|
165
|
-
const
|
|
173
|
+
if (u.length > 0) {
|
|
174
|
+
const f = (r) => {
|
|
166
175
|
if (!(!r || typeof r != "object"))
|
|
167
176
|
if (Array.isArray(r))
|
|
168
|
-
r.forEach(
|
|
177
|
+
r.forEach(f);
|
|
169
178
|
else {
|
|
170
|
-
for (const c of
|
|
179
|
+
for (const c of u)
|
|
171
180
|
delete r[c];
|
|
172
181
|
for (const c in r)
|
|
173
|
-
|
|
182
|
+
f(r[c]);
|
|
174
183
|
}
|
|
175
184
|
};
|
|
176
|
-
i
|
|
185
|
+
f(i);
|
|
177
186
|
}
|
|
178
|
-
return
|
|
187
|
+
return i;
|
|
179
188
|
}
|
|
180
189
|
export {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
w as cleanSubmitValues,
|
|
191
|
+
x as collectFileFields,
|
|
192
|
+
A as deepClone,
|
|
193
|
+
F as evaluateConditional,
|
|
194
|
+
b as filterNullCustomFields,
|
|
195
|
+
d as getNestedValue,
|
|
196
|
+
O as initializeFormValues,
|
|
197
|
+
E as isAddonObject,
|
|
189
198
|
N as isComponent,
|
|
190
199
|
h as setNestedValue
|
|
191
200
|
};
|
|
@@ -26,12 +26,12 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {},
|
|
|
26
26
|
"onClick:icon"?: (event: MouseEvent) => any;
|
|
27
27
|
"onClick:icon-right"?: (event: MouseEvent) => any;
|
|
28
28
|
}>, {
|
|
29
|
-
|
|
29
|
+
type: import('../types').InputType;
|
|
30
|
+
class: string;
|
|
30
31
|
variant: InputVariant;
|
|
31
32
|
size: InputSize;
|
|
32
33
|
rounded: InputRounded;
|
|
33
|
-
|
|
34
|
-
class: string;
|
|
34
|
+
readonly: boolean;
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
loading: boolean;
|
|
37
37
|
modelValue: string | number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { defineComponent as T, defineAsyncComponent as V, ref as j, watch as z, onMounted as A, computed as F, openBlock as d, createElementBlock as i, normalizeClass as
|
|
1
|
+
import { defineComponent as T, defineAsyncComponent as V, ref as j, watch as z, onMounted as A, computed as F, openBlock as d, createElementBlock as i, normalizeClass as c, createElementVNode as r, renderSlot as g, unref as n, toDisplayString as y, setBlockTracking as v, Fragment as f, renderList as h, createVNode as x, withCtx as H, isMemoSame as J, createCommentVNode as O } from "vue";
|
|
2
2
|
import { VueDraggable as R } from "vue-draggable-plus";
|
|
3
3
|
import { useKanbanBoard as q } from "./useKanbanBoard.js";
|
|
4
|
+
import "../../core/config.js";
|
|
5
|
+
import "dayjs";
|
|
4
6
|
import { $t as G } from "../../utils/i18n.js";
|
|
5
7
|
const P = { class: "flex items-center justify-between font-semibold text-foreground" }, Q = {
|
|
6
8
|
key: 0,
|
|
@@ -8,7 +10,7 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
|
|
|
8
10
|
}, W = { class: "bg-body p-3 rounded-md shadow-sm border border-border text-sm" }, X = {
|
|
9
11
|
key: 0,
|
|
10
12
|
class: "py-4 flex justify-center shrink-0"
|
|
11
|
-
},
|
|
13
|
+
}, ae = /* @__PURE__ */ T({
|
|
12
14
|
__name: "KanbanBoard",
|
|
13
15
|
props: {
|
|
14
16
|
column: {},
|
|
@@ -24,42 +26,42 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
|
|
|
24
26
|
},
|
|
25
27
|
emits: ["change", "update:columnData"],
|
|
26
28
|
setup(o, { emit: C }) {
|
|
27
|
-
const k = V(() => import("../Spinner/Spinner.vue2.js")),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const k = V(() => import("../Spinner/Spinner.vue2.js")), t = o, m = C, D = j(null), { items: s, isInitialLoading: I, isLoadingMore: S, pageInfo: w, loadInitial: B, loadMore: K } = q(
|
|
30
|
+
t.column.id,
|
|
31
|
+
t.loadData,
|
|
32
|
+
t.columnData
|
|
31
33
|
), N = (e) => {
|
|
32
|
-
s.value = e,
|
|
34
|
+
s.value = e, m("update:columnData", e);
|
|
33
35
|
};
|
|
34
36
|
z(
|
|
35
|
-
() =>
|
|
37
|
+
() => t.columnData,
|
|
36
38
|
(e) => {
|
|
37
39
|
e && JSON.stringify(e) !== JSON.stringify(s.value) && (s.value = [...e]);
|
|
38
40
|
},
|
|
39
41
|
{ deep: !0 }
|
|
40
42
|
), A(() => {
|
|
41
|
-
|
|
43
|
+
t.loadData && (!t.columnData || t.columnData.length === 0) && B();
|
|
42
44
|
});
|
|
43
45
|
const $ = (e) => {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
+
const l = e.target;
|
|
47
|
+
l.scrollTop + l.clientHeight >= l.scrollHeight - 50 && K();
|
|
46
48
|
}, M = (e) => {
|
|
47
|
-
|
|
49
|
+
m("change", { type: "add", event: e, columnId: t.column.id });
|
|
48
50
|
}, U = (e) => {
|
|
49
|
-
|
|
51
|
+
m("change", { type: "remove", event: e, columnId: t.column.id });
|
|
50
52
|
}, E = (e) => {
|
|
51
|
-
|
|
53
|
+
m("change", { type: "update", event: e, columnId: t.column.id });
|
|
52
54
|
}, L = F(
|
|
53
|
-
() =>
|
|
55
|
+
() => t.column.titleI18n ? G(t.column.titleI18n) : t.column.title
|
|
54
56
|
);
|
|
55
|
-
return (e,
|
|
56
|
-
class:
|
|
57
|
+
return (e, l) => (d(), i("div", {
|
|
58
|
+
class: c([
|
|
57
59
|
"flex flex-col bg-card rounded-lg overflow-hidden shrink-0 border border-border/60",
|
|
58
60
|
o.boardClass || "w-80"
|
|
59
61
|
])
|
|
60
62
|
}, [
|
|
61
63
|
r("div", {
|
|
62
|
-
class:
|
|
64
|
+
class: c(["p-3 border-b border-border/80 ", o.headerClass])
|
|
63
65
|
}, [
|
|
64
66
|
g(e.$slots, "header", {
|
|
65
67
|
column: o.column,
|
|
@@ -73,20 +75,20 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
|
|
|
73
75
|
r("div", {
|
|
74
76
|
ref_key: "scrollContainer",
|
|
75
77
|
ref: D,
|
|
76
|
-
class:
|
|
78
|
+
class: c([
|
|
77
79
|
"flex-1 flex flex-col overflow-y-auto p-3 custom-scrollbar scrollable-container",
|
|
78
80
|
o.bodyClass
|
|
79
81
|
]),
|
|
80
82
|
onScroll: $
|
|
81
83
|
}, [
|
|
82
84
|
n(I) && n(s).length === 0 ? (d(), i("div", Q, [
|
|
83
|
-
|
|
85
|
+
l[0] || (v(-1, !0), (l[0] = (d(), i(f, null, h(3, (a) => r("div", {
|
|
84
86
|
key: "skeleton-" + a,
|
|
85
87
|
class: "bg-body p-3 rounded-md shadow-sm border border-border animate-pulse flex flex-col gap-3"
|
|
86
|
-
}, [...
|
|
88
|
+
}, [...l[3] || (l[3] = [
|
|
87
89
|
r("div", { class: "h-4 bg-muted/60 rounded w-2/3" }, null, -1),
|
|
88
90
|
r("div", { class: "h-3 bg-muted/60 rounded w-1/3" }, null, -1)
|
|
89
|
-
])])), 64))).cacheIndex = 0, v(1),
|
|
91
|
+
])])), 64))).cacheIndex = 0, v(1), l[0])
|
|
90
92
|
])) : (d(), i(f, { key: 1 }, [
|
|
91
93
|
g(e.$slots, "prepend-item", {
|
|
92
94
|
column: o.column,
|
|
@@ -98,15 +100,15 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
|
|
|
98
100
|
group: o.group,
|
|
99
101
|
animation: 150,
|
|
100
102
|
ghostClass: o.ghostClass || "kanban-ghost",
|
|
101
|
-
class:
|
|
103
|
+
class: c(["flex-1 flex flex-col gap-2 min-h-[50px] py-1", o.draggableClass]),
|
|
102
104
|
onAdd: M,
|
|
103
105
|
onRemove: U,
|
|
104
106
|
onUpdate: E
|
|
105
107
|
}, {
|
|
106
108
|
default: H(() => [
|
|
107
|
-
(d(!0), i(f, null, h(n(s), (a, Y, Z,
|
|
109
|
+
(d(!0), i(f, null, h(n(s), (a, Y, Z, u) => {
|
|
108
110
|
const b = [a];
|
|
109
|
-
if (
|
|
111
|
+
if (u && u.key === a[o.itemKey || "id"] && J(u, b)) return u;
|
|
110
112
|
const p = (d(), i("div", {
|
|
111
113
|
key: a[o.itemKey || "id"],
|
|
112
114
|
class: "cursor-grab active:cursor-grabbing"
|
|
@@ -119,7 +121,7 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
|
|
|
119
121
|
], !0)
|
|
120
122
|
]));
|
|
121
123
|
return p.memo = b, p;
|
|
122
|
-
},
|
|
124
|
+
}, l, 1), 128))
|
|
123
125
|
]),
|
|
124
126
|
_: 3
|
|
125
127
|
}, 8, ["model-value", "group", "ghostClass", "class"]),
|
|
@@ -140,5 +142,5 @@ const P = { class: "flex items-center justify-between font-semibold text-foregro
|
|
|
140
142
|
}
|
|
141
143
|
});
|
|
142
144
|
export {
|
|
143
|
-
|
|
145
|
+
ae as default
|
|
144
146
|
};
|
|
@@ -2,8 +2,8 @@ import { ListProps } from './types';
|
|
|
2
2
|
declare function __VLS_template(): any;
|
|
3
3
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ListProps> & Readonly<{}>, {
|
|
5
|
-
variant: import('./types').ListVariant;
|
|
6
5
|
class: string;
|
|
6
|
+
variant: import('./types').ListVariant;
|
|
7
7
|
loading: boolean;
|
|
8
8
|
columns: import('./types').ListColumns;
|
|
9
9
|
showColon: boolean;
|
|
@@ -5,7 +5,7 @@ import { $t as U } from "../../utils/i18n.js";
|
|
|
5
5
|
import { getObjectValue as $ } from "./utils.js";
|
|
6
6
|
const W = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "px-3 py-2.5 border-b border-border/70 flex items-center gap-2 bg-
|
|
8
|
+
class: "px-3 py-2.5 border-b border-border/70 flex items-center gap-2 bg-muted"
|
|
9
9
|
}, X = { class: "text-sm font-semibold text-gray-900 tracking-tight" }, Y = { class: "sm:hidden" }, Z = { class: "hidden sm:block" }, _ = { class: "sm:hidden" }, ee = { class: "hidden sm:block" }, te = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "px-3 py-8 text-center text-sm text-muted-foreground"
|
|
@@ -82,11 +82,11 @@ declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}
|
|
|
82
82
|
}, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{
|
|
83
83
|
"onToggle-mobile"?: () => any;
|
|
84
84
|
}>, {
|
|
85
|
-
variant: import('../../types/navbar.type').NavbarVariant;
|
|
86
|
-
floating: boolean;
|
|
87
85
|
class: string;
|
|
88
86
|
height: string;
|
|
89
87
|
border: boolean;
|
|
88
|
+
variant: import('../../types/navbar.type').NavbarVariant;
|
|
89
|
+
floating: boolean;
|
|
90
90
|
compact: boolean;
|
|
91
91
|
position: import('../../types/navbar.type').NavbarPosition;
|
|
92
92
|
contentClass: string;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
25
25
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
26
26
|
onClick?: (event: MouseEvent) => any;
|
|
27
27
|
}>, {
|
|
28
|
-
variant: "default" | "pill" | "underline" | "ghost";
|
|
29
28
|
class: string;
|
|
29
|
+
variant: "default" | "pill" | "underline" | "ghost";
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
active: boolean;
|
|
32
32
|
orientation: "horizontal" | "vertical";
|
|
@@ -10,9 +10,9 @@ interface Props {
|
|
|
10
10
|
class?: string;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
|
+
class: string;
|
|
13
14
|
variant: NavbarTabsVariant;
|
|
14
15
|
size: NavbarTabsSize;
|
|
15
|
-
class: string;
|
|
16
16
|
activeClass: string;
|
|
17
17
|
inactiveClass: string;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -24,11 +24,11 @@ declare const _default: import('vue').DefineComponent<NumberInputProps, {}, {},
|
|
|
24
24
|
onFocus?: (event: FocusEvent) => any;
|
|
25
25
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
26
26
|
}>, {
|
|
27
|
-
readonly: boolean;
|
|
28
27
|
mode: "solid" | "outline" | "ghost";
|
|
29
28
|
variant: "split" | "stacked";
|
|
30
29
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
31
30
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
31
|
+
readonly: boolean;
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
modelValue: number;
|
|
34
34
|
step: number;
|
|
@@ -20,9 +20,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
20
20
|
onComplete?: (value: string) => any;
|
|
21
21
|
}>, {
|
|
22
22
|
length: number;
|
|
23
|
+
type: "text" | "number";
|
|
23
24
|
variant: "solid" | "outline" | "ghost";
|
|
24
25
|
size: "sm" | "md" | "lg";
|
|
25
|
-
type: "text" | "number";
|
|
26
26
|
error: boolean;
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
placeholder: string;
|
|
@@ -18,9 +18,9 @@ declare const _default: import('vue').DefineComponent<PermissionEditorProps, {},
|
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<PermissionEditorProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: (value: string[]) => any;
|
|
20
20
|
}>, {
|
|
21
|
-
readonly: boolean;
|
|
22
|
-
size: PermissionMatrixSize;
|
|
23
21
|
class: string;
|
|
22
|
+
size: PermissionMatrixSize;
|
|
23
|
+
readonly: boolean;
|
|
24
24
|
layout: PermissionEditorLayout;
|
|
25
25
|
searchable: boolean;
|
|
26
26
|
defaultExpanded: string[];
|
|
@@ -4,9 +4,9 @@ declare const _default: import('vue').DefineComponent<PermissionMatrixProps, {},
|
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<PermissionMatrixProps> & Readonly<{
|
|
5
5
|
"onUpdate:modelValue"?: (value: PermissionMap) => any;
|
|
6
6
|
}>, {
|
|
7
|
-
readonly: boolean;
|
|
8
|
-
size: PermissionMatrixSize;
|
|
9
7
|
class: string;
|
|
8
|
+
size: PermissionMatrixSize;
|
|
9
|
+
readonly: boolean;
|
|
10
10
|
searchable: boolean;
|
|
11
11
|
toggleMode: import('./types').PermissionToggleMode;
|
|
12
12
|
collapsible: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ProgressBarProps, ProgressBarVariant, ProgressBarSize } from '../../types/progressbar';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
3
|
+
type: import('../../types/progressbar').ProgressBarType;
|
|
3
4
|
variant: ProgressBarVariant;
|
|
4
5
|
size: ProgressBarSize;
|
|
5
6
|
rounded: string;
|
|
6
|
-
type: import('../../types/progressbar').ProgressBarType;
|
|
7
7
|
striped: boolean;
|
|
8
8
|
indeterminate: boolean;
|
|
9
9
|
showValue: boolean;
|
|
@@ -120,8 +120,8 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
|
|
|
120
120
|
onDelete?: (items: any[]) => any;
|
|
121
121
|
onAdd?: () => any;
|
|
122
122
|
}>, {
|
|
123
|
-
data: any[];
|
|
124
123
|
name: string;
|
|
124
|
+
data: any[];
|
|
125
125
|
loading: boolean;
|
|
126
126
|
exportProps: Record<string, any> | boolean;
|
|
127
127
|
importProps: Record<string, any> | boolean;
|
|
@@ -50,8 +50,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
50
50
|
onOnAfterOpen?: () => any;
|
|
51
51
|
onOnAfterClose?: () => any;
|
|
52
52
|
}>, {
|
|
53
|
-
size: SidePanelSize;
|
|
54
53
|
class: string;
|
|
54
|
+
size: SidePanelSize;
|
|
55
55
|
headerClass: string;
|
|
56
56
|
position: SidePanelPosition;
|
|
57
57
|
show: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpinnerProps, SpinnerSize, SpinnerColor, SpinnerVariant } from './types';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
3
|
-
variant: SpinnerVariant;
|
|
4
|
-
size: SpinnerSize;
|
|
5
3
|
class: string;
|
|
6
4
|
color: SpinnerColor;
|
|
5
|
+
variant: SpinnerVariant;
|
|
6
|
+
size: SpinnerSize;
|
|
7
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
8
8
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StatsProps } from './types';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<StatsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsProps> & Readonly<{}>, {
|
|
3
|
-
variant: import('./types').StatsVariant;
|
|
4
3
|
class: string;
|
|
4
|
+
variant: import('./types').StatsVariant;
|
|
5
5
|
columns: number | string;
|
|
6
6
|
layout: import('./types').StatsLayout;
|
|
7
7
|
attached: boolean;
|
|
@@ -14,8 +14,8 @@ interface Props {
|
|
|
14
14
|
class?: string;
|
|
15
15
|
}
|
|
16
16
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
class: string;
|
|
17
18
|
size: ChipProps["size"];
|
|
18
19
|
hideIcon: boolean | null;
|
|
19
|
-
class: string;
|
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
21
|
export default _default;
|