vlite3 1.0.2 → 1.0.4
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/AttachmentsList/AttachmentsList.vue.d.ts +1 -0
- package/components/AttachmentsList/AttachmentsList.vue.js +108 -62
- package/components/AttachmentsList/types.d.ts +5 -0
- package/components/Chat/ChatBubble.vue.d.ts +5 -0
- package/components/Chat/ChatBubble.vue.js +147 -0
- package/components/Chat/ChatBubble.vue2.js +4 -0
- package/components/Chat/ChatInterface.vue.d.ts +18 -2
- package/components/Chat/ChatInterface.vue.js +298 -0
- package/components/Chat/ChatInterface.vue2.js +4 -0
- package/components/Chat/index.d.ts +1 -1
- package/components/Clock/Clock.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Form/utils/form.utils.d.ts +8 -5
- package/components/Form/utils/form.utils.js +142 -169
- package/components/Kanban/Kanban.vue.d.ts +3 -1
- package/components/Kanban/Kanban.vue.js +2 -2
- package/components/Kanban/Kanban.vue2.js +55 -35
- package/components/Kanban/types.d.ts +15 -0
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +23 -21
- package/package.json +1 -1
- package/style.css +2 -2
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
function
|
|
1
|
+
function U(e) {
|
|
2
2
|
return !!e && typeof e == "object";
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function x(e) {
|
|
5
5
|
return e ? typeof e == "object" && (typeof e.render == "function" || typeof e.setup == "function" || e.__name !== void 0 || e.name !== void 0) : !1;
|
|
6
6
|
}
|
|
7
|
-
function w(e,
|
|
8
|
-
if (typeof e.type == "function" && !
|
|
7
|
+
function w(e, n) {
|
|
8
|
+
if (typeof e.type == "function" && !x(e.type))
|
|
9
9
|
try {
|
|
10
|
-
return e.type(
|
|
11
|
-
} catch (
|
|
12
|
-
return console.error(`[vlite3/Form] Error evaluating dynamic type for field "${e.name}":`,
|
|
10
|
+
return e.type(n);
|
|
11
|
+
} catch (r) {
|
|
12
|
+
return console.error(`[vlite3/Form] Error evaluating dynamic type for field "${e.name}":`, r), "text";
|
|
13
13
|
}
|
|
14
14
|
return e.type;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
if (!
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
for (const
|
|
21
|
-
if (
|
|
22
|
-
|
|
16
|
+
function m(e, n) {
|
|
17
|
+
if (!n || !e) return;
|
|
18
|
+
const r = n.split(".");
|
|
19
|
+
let a = e;
|
|
20
|
+
for (const i of r) {
|
|
21
|
+
if (a == null) return;
|
|
22
|
+
a = a[i];
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return a;
|
|
25
25
|
}
|
|
26
|
-
function g(e,
|
|
27
|
-
if (!
|
|
28
|
-
const
|
|
29
|
-
let
|
|
30
|
-
for (let
|
|
31
|
-
const
|
|
32
|
-
Array.isArray(
|
|
26
|
+
function g(e, n, r) {
|
|
27
|
+
if (!n) return e;
|
|
28
|
+
const a = n.split("."), i = { ...e };
|
|
29
|
+
let f = i;
|
|
30
|
+
for (let u = 0; u < a.length - 1; u++) {
|
|
31
|
+
const t = a[u];
|
|
32
|
+
Array.isArray(f[t]) ? f[t] = [...f[t]] : f[t] = f[t] ? { ...f[t] } : {}, f = f[t];
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return f[a[a.length - 1]] = r, i;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return !
|
|
36
|
+
function E(e, n) {
|
|
37
|
+
return !U(n) || !n.name ? e : m(e, n.name) === void 0 && n.value !== void 0 ? g(e, n.name, n.value) : e;
|
|
38
38
|
}
|
|
39
|
-
async function
|
|
40
|
-
let
|
|
41
|
-
const
|
|
42
|
-
for (const
|
|
43
|
-
if (!
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
39
|
+
async function N(e, n, r, a) {
|
|
40
|
+
let i = n ? v(n) : {};
|
|
41
|
+
const f = r || i, u = Array.isArray(e[0]) ? e.flat() : e;
|
|
42
|
+
for (const t of u) {
|
|
43
|
+
if (!t.name) continue;
|
|
44
|
+
const d = { values: i, globalValues: f, isUpdate: a };
|
|
45
|
+
if (t.when && !b(t.when, d))
|
|
46
46
|
continue;
|
|
47
|
-
const
|
|
48
|
-
let
|
|
49
|
-
if (
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
) : typeof
|
|
47
|
+
const p = t.mapFrom || t.name;
|
|
48
|
+
let o = n ? m(n, p) : void 0;
|
|
49
|
+
if (o != null) {
|
|
50
|
+
const c = t.valueKey || t.key;
|
|
51
|
+
c && (Array.isArray(o) ? o = o.map(
|
|
52
|
+
(s) => s && typeof s == "object" ? m(s, c) : s
|
|
53
|
+
) : typeof o == "object" && (o = m(o, c))), t.format && (o = await t.format(o, n || {}));
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
|
|
55
|
+
if (o === void 0) {
|
|
56
|
+
if (t.mapFrom && n) {
|
|
57
|
+
const c = m(n, t.name);
|
|
58
|
+
c !== void 0 && (o = c);
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
60
|
+
if (o === void 0) {
|
|
61
|
+
const c = typeof t.value == "function" ? t.value() : t.value;
|
|
62
|
+
c !== void 0 && Object.assign(i, g(i, t.name, c));
|
|
63
63
|
} else
|
|
64
|
-
Object.assign(
|
|
64
|
+
Object.assign(i, g(i, t.name, o));
|
|
65
65
|
} else
|
|
66
|
-
Object.assign(
|
|
67
|
-
if (
|
|
68
|
-
const
|
|
69
|
-
let
|
|
70
|
-
if (Array.isArray(
|
|
71
|
-
const
|
|
72
|
-
|
|
66
|
+
Object.assign(i, g(i, t.name, o));
|
|
67
|
+
if (i = E(i, t.addonLeft), i = E(i, t.addonRight), w(t, d) === "customFields" && t.props?.schema) {
|
|
68
|
+
const c = t.props.schema;
|
|
69
|
+
let s = m(i, t.name);
|
|
70
|
+
if (Array.isArray(s) && s.length > 0) {
|
|
71
|
+
const y = await Promise.all(
|
|
72
|
+
s.map((l) => N(c, l, f, a))
|
|
73
73
|
);
|
|
74
|
-
Object.assign(
|
|
74
|
+
Object.assign(i, g(i, t.name, y));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return i;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(
|
|
80
|
+
function b(e, n) {
|
|
81
|
+
return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(n) : !1;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return Array.isArray(e) ? e.filter((
|
|
85
|
-
const
|
|
86
|
-
return
|
|
83
|
+
function z(e, n) {
|
|
84
|
+
return Array.isArray(e) ? e.filter((r) => r ? !n.every((i) => {
|
|
85
|
+
const f = r[i.name];
|
|
86
|
+
return f == null || f === "";
|
|
87
87
|
}) : !1) : [];
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
for (const
|
|
92
|
-
if (!
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
89
|
+
function C(e, n, r, a) {
|
|
90
|
+
const i = [], f = r || n, u = Array.isArray(e[0]) ? e.flat() : e;
|
|
91
|
+
for (const t of u) {
|
|
92
|
+
if (!t.name) continue;
|
|
93
|
+
const d = { values: n, globalValues: f, isUpdate: a };
|
|
94
|
+
if (t.when && !b(t.when, d))
|
|
95
95
|
continue;
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
name:
|
|
101
|
-
value:
|
|
102
|
-
type:
|
|
103
|
-
field:
|
|
96
|
+
const p = w(t, d);
|
|
97
|
+
if (p === "file" || p === "avatarUpload" || p === "fileUploader") {
|
|
98
|
+
const o = m(n, t.name);
|
|
99
|
+
o && i.push({
|
|
100
|
+
name: t.name,
|
|
101
|
+
value: o,
|
|
102
|
+
type: p,
|
|
103
|
+
field: t
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
if (
|
|
107
|
-
const
|
|
108
|
-
if (Array.isArray(
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
106
|
+
if (p === "customFields" && t.props?.schema) {
|
|
107
|
+
const o = m(n, t.name);
|
|
108
|
+
if (Array.isArray(o)) {
|
|
109
|
+
const s = t.props.schema.filter((y) => !x(y.type));
|
|
110
|
+
s.length > 0 && o.forEach((y, l) => {
|
|
111
|
+
s.forEach((h) => {
|
|
112
|
+
const O = { values: y || {}, globalValues: f, isUpdate: a };
|
|
113
|
+
if (h.when && !b(h.when, O))
|
|
114
114
|
return;
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
name: `${
|
|
120
|
-
value:
|
|
121
|
-
type:
|
|
122
|
-
field:
|
|
115
|
+
const V = w(h, O);
|
|
116
|
+
if (V === "file" || V === "avatarUpload" || V === "fileUploader") {
|
|
117
|
+
const A = y?.[h.name];
|
|
118
|
+
A && i.push({
|
|
119
|
+
name: `${t.name}.${l}.${h.name}`,
|
|
120
|
+
value: A,
|
|
121
|
+
type: V,
|
|
122
|
+
field: h
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -127,97 +127,70 @@ function j(e, t, s, u) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return i;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function v(e) {
|
|
133
133
|
if (e === null || typeof e != "object") return e;
|
|
134
134
|
if (e instanceof Date) return new Date(e.getTime());
|
|
135
135
|
if (e instanceof File) return e;
|
|
136
|
-
if (Array.isArray(e)) return e.map((
|
|
137
|
-
const
|
|
138
|
-
for (const
|
|
139
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
140
|
-
return
|
|
136
|
+
if (Array.isArray(e)) return e.map((r) => v(r));
|
|
137
|
+
const n = {};
|
|
138
|
+
for (const r in e)
|
|
139
|
+
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = v(e[r]));
|
|
140
|
+
return n;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const
|
|
144
|
-
return
|
|
142
|
+
function P(e, n) {
|
|
143
|
+
const r = w(e, n);
|
|
144
|
+
return r === "multiSelect" ? [] : r === "switch" || r === "check" ? !1 : null;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function K(e) {
|
|
147
147
|
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
function k(e, n) {
|
|
150
|
+
if (!(!e || typeof e != "object"))
|
|
151
|
+
if (Array.isArray(e))
|
|
152
|
+
e.forEach((r) => k(r, n));
|
|
153
|
+
else {
|
|
154
|
+
for (const r of n)
|
|
155
|
+
delete e[r];
|
|
156
|
+
for (const r in e)
|
|
157
|
+
k(e[r], n);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
async function $(e, n, r, a, i, f) {
|
|
161
|
+
const u = r === void 0 && a === void 0, t = u ? v(e) : {}, d = i || e, p = Array.isArray(n[0]) ? n.flat() : n, o = r || [], c = [];
|
|
162
|
+
for (const s of p) {
|
|
163
|
+
if (!s.name) continue;
|
|
164
|
+
const y = { values: e, globalValues: d, isUpdate: f };
|
|
165
|
+
if (s.when && !b(s.when, y))
|
|
155
166
|
continue;
|
|
156
|
-
let
|
|
157
|
-
const
|
|
158
|
-
if (
|
|
159
|
-
if (!
|
|
160
|
-
|
|
167
|
+
let l = m(e, s.name);
|
|
168
|
+
const h = s.name.split(".")[0], O = Object.prototype.hasOwnProperty.call(e, h), V = w(s, y);
|
|
169
|
+
if (K(l)) {
|
|
170
|
+
if (!O) continue;
|
|
171
|
+
l = P(s, y);
|
|
161
172
|
}
|
|
162
|
-
if (
|
|
163
|
-
const
|
|
164
|
-
|
|
173
|
+
if (l = v(l), V === "customFields" && s.props?.schema && Array.isArray(l)) {
|
|
174
|
+
const S = s.props.schema;
|
|
175
|
+
l = await Promise.all(l.map((T) => $(T, S, r, a, d, f)));
|
|
165
176
|
}
|
|
166
|
-
let
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
|
|
177
|
+
let A = !1;
|
|
178
|
+
s.transform && (l = await s.transform(l, e), A = !0);
|
|
179
|
+
const F = s.mapTo || s.name;
|
|
180
|
+
F !== s.name && (A = !0, u && !s.name.includes(".") && delete t[s.name]), !u || A ? Object.assign(t, g(t, F, l)) : Object.assign(t, g(t, s.name, l));
|
|
170
181
|
}
|
|
171
|
-
|
|
172
|
-
const r = (i, o) => {
|
|
173
|
-
if (!(!i || typeof i != "object") && !(!o || typeof o != "object"))
|
|
174
|
-
if (Array.isArray(i) && Array.isArray(o)) {
|
|
175
|
-
for (const a of c) {
|
|
176
|
-
const d = i.find((p) => p && typeof p == "object" && p[a] !== void 0)?.[a];
|
|
177
|
-
d !== void 0 && o.forEach((p) => {
|
|
178
|
-
p && typeof p == "object" && p[a] === void 0 && (p[a] = V(d));
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
i.forEach((a, d) => {
|
|
182
|
-
o[d] && r(a, o[d]);
|
|
183
|
-
});
|
|
184
|
-
} else {
|
|
185
|
-
for (const a of c)
|
|
186
|
-
i[a] !== void 0 && o[a] === void 0 && (o[a] = V(i[a]));
|
|
187
|
-
for (const a in o)
|
|
188
|
-
typeof o[a] == "object" && typeof i[a] == "object" && r(i[a], o[a]);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
for (const i of c)
|
|
192
|
-
e[i] !== void 0 && n[i] === void 0 && (n[i] = V(e[i]));
|
|
193
|
-
r(e, n);
|
|
194
|
-
}
|
|
195
|
-
if (y.length > 0) {
|
|
196
|
-
const r = (i) => {
|
|
197
|
-
if (!(!i || typeof i != "object"))
|
|
198
|
-
if (Array.isArray(i))
|
|
199
|
-
i.forEach(r);
|
|
200
|
-
else {
|
|
201
|
-
for (const o of y)
|
|
202
|
-
delete i[o];
|
|
203
|
-
for (const o in i)
|
|
204
|
-
r(i[o]);
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
r(n);
|
|
208
|
-
}
|
|
209
|
-
return n;
|
|
182
|
+
return o.length > 0 && k(t, o), c.length > 0 && k(t, c), t;
|
|
210
183
|
}
|
|
211
184
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
185
|
+
$ as cleanSubmitValues,
|
|
186
|
+
C as collectFileFields,
|
|
187
|
+
v as deepClone,
|
|
188
|
+
b as evaluateConditional,
|
|
189
|
+
z as filterNullCustomFields,
|
|
190
|
+
m as getNestedValue,
|
|
191
|
+
N as initializeFormValues,
|
|
192
|
+
U as isAddonObject,
|
|
193
|
+
x as isComponent,
|
|
221
194
|
w as resolveFieldType,
|
|
222
195
|
g as setNestedValue
|
|
223
196
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KanbanColumn, KanbanLoadDataResult, KanbanChangeEvent } from './types';
|
|
1
|
+
import { KanbanColumn, KanbanLoadDataResult, KanbanChangeEvent, KanbanMoveEvent } from './types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
columns: KanbanColumn[];
|
|
4
4
|
group?: string;
|
|
@@ -42,9 +42,11 @@ declare function __VLS_template(): {
|
|
|
42
42
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
43
43
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
44
44
|
change: (payload: KanbanChangeEvent) => any;
|
|
45
|
+
move: (payload: KanbanMoveEvent) => any;
|
|
45
46
|
"update:data": (val: Record<string | number, any[]>) => any;
|
|
46
47
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
48
|
onChange?: (payload: KanbanChangeEvent) => any;
|
|
49
|
+
onMove?: (payload: KanbanMoveEvent) => any;
|
|
48
50
|
"onUpdate:data"?: (val: Record<string | number, any[]>) => any;
|
|
49
51
|
}>, {
|
|
50
52
|
class: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Kanban.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50c60912"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as C, ref as h, openBlock as c, createElementBlock as i, normalizeClass as b, Fragment as x, renderList as k, createBlock as w, withCtx as r, renderSlot as m, mergeProps as u } from "vue";
|
|
2
|
+
import K from "./KanbanBoard.vue.js";
|
|
3
|
+
const $ = /* @__PURE__ */ C({
|
|
4
4
|
__name: "Kanban",
|
|
5
5
|
props: {
|
|
6
6
|
columns: {},
|
|
@@ -15,42 +15,62 @@ const K = /* @__PURE__ */ b({
|
|
|
15
15
|
ghostClass: {},
|
|
16
16
|
class: { default: "h-full w-full" }
|
|
17
17
|
},
|
|
18
|
-
emits: ["change", "update:data"],
|
|
19
|
-
setup(
|
|
20
|
-
const s =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
emits: ["change", "move", "update:data"],
|
|
19
|
+
setup(t, { emit: v }) {
|
|
20
|
+
const d = t, s = v, o = h({}), f = (e) => {
|
|
21
|
+
if (s("change", e), e.type === "remove" ? o.value.remove = { columnId: e.columnId, event: e.event } : e.type === "add" ? o.value.add = { columnId: e.columnId, event: e.event } : e.type === "update" && s("move", {
|
|
22
|
+
itemId: e.event.data?.[d.itemKey] || e.event.item?._underlying_vm_?.[d.itemKey],
|
|
23
|
+
item: e.event.data,
|
|
24
|
+
fromColumnId: e.columnId,
|
|
25
|
+
toColumnId: e.columnId,
|
|
26
|
+
oldIndex: e.event.oldIndex,
|
|
27
|
+
newIndex: e.event.newIndex
|
|
28
|
+
}), o.value.remove && o.value.add) {
|
|
29
|
+
const { remove: l, add: a } = o.value;
|
|
30
|
+
s("move", {
|
|
31
|
+
itemId: a.event.data?.[d.itemKey],
|
|
32
|
+
item: a.event.data,
|
|
33
|
+
fromColumnId: l.columnId,
|
|
34
|
+
toColumnId: a.columnId,
|
|
35
|
+
oldIndex: l.event.oldIndex,
|
|
36
|
+
newIndex: a.event.newIndex
|
|
37
|
+
}), o.value = {};
|
|
38
|
+
}
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
o.value = {};
|
|
41
|
+
}, 100);
|
|
42
|
+
}, g = (e, l) => {
|
|
43
|
+
d.data && s("update:data", { ...d.data, [e]: l });
|
|
44
|
+
}, I = (e) => d.data ? d.data[e] || [] : [];
|
|
45
|
+
return (e, l) => (c(), i("div", {
|
|
46
|
+
class: b(["flex gap-4 overflow-x-auto p-1 custom-scrollbar-x scrollable-container", d.class])
|
|
27
47
|
}, [
|
|
28
|
-
(
|
|
29
|
-
key:
|
|
30
|
-
column:
|
|
31
|
-
group:
|
|
32
|
-
"item-key":
|
|
33
|
-
"load-data":
|
|
34
|
-
"column-data":
|
|
35
|
-
"board-class":
|
|
36
|
-
"header-class":
|
|
37
|
-
"body-class":
|
|
38
|
-
"draggable-class":
|
|
39
|
-
"ghost-class":
|
|
40
|
-
onChange:
|
|
41
|
-
"onUpdate:columnData": (
|
|
48
|
+
(c(!0), i(x, null, k(t.columns, (a) => (c(), w(K, {
|
|
49
|
+
key: a.id,
|
|
50
|
+
column: a,
|
|
51
|
+
group: t.group,
|
|
52
|
+
"item-key": t.itemKey,
|
|
53
|
+
"load-data": t.loadData,
|
|
54
|
+
"column-data": I(a.id),
|
|
55
|
+
"board-class": t.boardClass,
|
|
56
|
+
"header-class": t.headerClass,
|
|
57
|
+
"body-class": t.bodyClass,
|
|
58
|
+
"draggable-class": t.draggableClass,
|
|
59
|
+
"ghost-class": t.ghostClass,
|
|
60
|
+
onChange: f,
|
|
61
|
+
"onUpdate:columnData": (n) => g(a.id, n)
|
|
42
62
|
}, {
|
|
43
|
-
header:
|
|
44
|
-
|
|
63
|
+
header: r((n) => [
|
|
64
|
+
m(e.$slots, "column-header", u({ ref_for: !0 }, n), void 0, !0)
|
|
45
65
|
]),
|
|
46
|
-
"prepend-item":
|
|
47
|
-
|
|
66
|
+
"prepend-item": r((n) => [
|
|
67
|
+
m(e.$slots, "prepend-item", u({ ref_for: !0 }, n), void 0, !0)
|
|
48
68
|
]),
|
|
49
|
-
item:
|
|
50
|
-
|
|
69
|
+
item: r((n) => [
|
|
70
|
+
m(e.$slots, "item", u({ ref_for: !0 }, n), void 0, !0)
|
|
51
71
|
]),
|
|
52
|
-
"append-item":
|
|
53
|
-
|
|
72
|
+
"append-item": r((n) => [
|
|
73
|
+
m(e.$slots, "append-item", u({ ref_for: !0 }, n), void 0, !0)
|
|
54
74
|
]),
|
|
55
75
|
_: 3
|
|
56
76
|
}, 8, ["column", "group", "item-key", "load-data", "column-data", "board-class", "header-class", "body-class", "draggable-class", "ghost-class", "onUpdate:columnData"]))), 128))
|
|
@@ -58,5 +78,5 @@ const K = /* @__PURE__ */ b({
|
|
|
58
78
|
}
|
|
59
79
|
});
|
|
60
80
|
export {
|
|
61
|
-
|
|
81
|
+
$ as default
|
|
62
82
|
};
|
|
@@ -13,11 +13,26 @@ export interface KanbanColumn {
|
|
|
13
13
|
titleI18n?: string;
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* KanbanChangeEvent represents the low-level DnD events
|
|
18
|
+
*/
|
|
16
19
|
export interface KanbanChangeEvent {
|
|
17
20
|
type: 'add' | 'remove' | 'update';
|
|
18
21
|
event: any;
|
|
19
22
|
columnId: string | number;
|
|
20
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* KanbanMoveEvent represents a consolidated high-level move
|
|
26
|
+
* standard for production API updates.
|
|
27
|
+
*/
|
|
28
|
+
export interface KanbanMoveEvent {
|
|
29
|
+
itemId: string | number;
|
|
30
|
+
item: any;
|
|
31
|
+
fromColumnId: string | number;
|
|
32
|
+
toColumnId: string | number;
|
|
33
|
+
oldIndex: number;
|
|
34
|
+
newIndex: number;
|
|
35
|
+
}
|
|
21
36
|
export interface KanbanProps {
|
|
22
37
|
columns: KanbanColumn[];
|
|
23
38
|
group?: string;
|
|
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
|
|
|
3
3
|
import v from "./Modal.vue.js";
|
|
4
4
|
import N from "./CommandPalette/CommandPaletteContent.vue.js";
|
|
5
5
|
import { $t as R } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ml-1" }, q = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|