@object-ui/plugin-kanban 0.3.0
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/CHANGELOG.md +48 -0
- package/LICENSE +21 -0
- package/README.md +170 -0
- package/dist/KanbanImpl-mGLdSHcd.js +3335 -0
- package/dist/KanbanImpl.d.ts +24 -0
- package/dist/KanbanImpl.d.ts.map +1 -0
- package/dist/index-i_5clVsp.js +746 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.umd.cjs +18 -0
- package/dist/types.d.ts +45 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +44 -0
- package/src/KanbanImpl.tsx +284 -0
- package/src/index.test.ts +104 -0
- package/src/index.tsx +168 -0
- package/src/types.ts +47 -0
- package/tsconfig.json +11 -0
- package/vite.config.ts +38 -0
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
import U, { Suspense as dr } from "react";
|
|
2
|
+
import { ComponentRegistry as vr } from "@object-ui/core";
|
|
3
|
+
import { Skeleton as pr } from "@object-ui/components";
|
|
4
|
+
var V = { exports: {} }, I = {};
|
|
5
|
+
var Oe;
|
|
6
|
+
function br() {
|
|
7
|
+
if (Oe) return I;
|
|
8
|
+
Oe = 1;
|
|
9
|
+
var R = U, E = /* @__PURE__ */ Symbol.for("react.element"), P = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, T = R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
|
+
function v(y, c, w) {
|
|
11
|
+
var b, h = {}, C = null, Y = null;
|
|
12
|
+
w !== void 0 && (C = "" + w), c.key !== void 0 && (C = "" + c.key), c.ref !== void 0 && (Y = c.ref);
|
|
13
|
+
for (b in c) m.call(c, b) && !k.hasOwnProperty(b) && (h[b] = c[b]);
|
|
14
|
+
if (y && y.defaultProps) for (b in c = y.defaultProps, c) h[b] === void 0 && (h[b] = c[b]);
|
|
15
|
+
return { $$typeof: E, type: y, key: C, ref: Y, props: h, _owner: T.current };
|
|
16
|
+
}
|
|
17
|
+
return I.Fragment = P, I.jsx = v, I.jsxs = v, I;
|
|
18
|
+
}
|
|
19
|
+
var W = {};
|
|
20
|
+
var Se;
|
|
21
|
+
function gr() {
|
|
22
|
+
return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
+
var R = U, E = /* @__PURE__ */ Symbol.for("react.element"), P = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), T = /* @__PURE__ */ Symbol.for("react.strict_mode"), k = /* @__PURE__ */ Symbol.for("react.profiler"), v = /* @__PURE__ */ Symbol.for("react.provider"), y = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), h = /* @__PURE__ */ Symbol.for("react.memo"), C = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.offscreen"), Q = Symbol.iterator, we = "@@iterator";
|
|
24
|
+
function je(e) {
|
|
25
|
+
if (e === null || typeof e != "object")
|
|
26
|
+
return null;
|
|
27
|
+
var r = Q && e[Q] || e[we];
|
|
28
|
+
return typeof r == "function" ? r : null;
|
|
29
|
+
}
|
|
30
|
+
var j = R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
|
+
function f(e) {
|
|
32
|
+
{
|
|
33
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
34
|
+
t[n - 1] = arguments[n];
|
|
35
|
+
xe("error", e, t);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function xe(e, r, t) {
|
|
39
|
+
{
|
|
40
|
+
var n = j.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
41
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
42
|
+
var s = t.map(function(i) {
|
|
43
|
+
return String(i);
|
|
44
|
+
});
|
|
45
|
+
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var De = !1, Ae = !1, Fe = !1, Ie = !1, We = !1, ee;
|
|
49
|
+
ee = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
|
+
function Ye(e) {
|
|
51
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === k || We || e === T || e === w || e === b || Ie || e === Y || De || Ae || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === h || e.$$typeof === v || e.$$typeof === y || e.$$typeof === c || // This needs to include all possible module reference object
|
|
52
|
+
// types supported by any Flight configuration anywhere since
|
|
53
|
+
// we don't know which Flight build this will end up being used
|
|
54
|
+
// with.
|
|
55
|
+
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
56
|
+
}
|
|
57
|
+
function $e(e, r, t) {
|
|
58
|
+
var n = e.displayName;
|
|
59
|
+
if (n)
|
|
60
|
+
return n;
|
|
61
|
+
var o = r.displayName || r.name || "";
|
|
62
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
63
|
+
}
|
|
64
|
+
function re(e) {
|
|
65
|
+
return e.displayName || "Context";
|
|
66
|
+
}
|
|
67
|
+
function _(e) {
|
|
68
|
+
if (e == null)
|
|
69
|
+
return null;
|
|
70
|
+
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
71
|
+
return e.displayName || e.name || null;
|
|
72
|
+
if (typeof e == "string")
|
|
73
|
+
return e;
|
|
74
|
+
switch (e) {
|
|
75
|
+
case m:
|
|
76
|
+
return "Fragment";
|
|
77
|
+
case P:
|
|
78
|
+
return "Portal";
|
|
79
|
+
case k:
|
|
80
|
+
return "Profiler";
|
|
81
|
+
case T:
|
|
82
|
+
return "StrictMode";
|
|
83
|
+
case w:
|
|
84
|
+
return "Suspense";
|
|
85
|
+
case b:
|
|
86
|
+
return "SuspenseList";
|
|
87
|
+
}
|
|
88
|
+
if (typeof e == "object")
|
|
89
|
+
switch (e.$$typeof) {
|
|
90
|
+
case y:
|
|
91
|
+
var r = e;
|
|
92
|
+
return re(r) + ".Consumer";
|
|
93
|
+
case v:
|
|
94
|
+
var t = e;
|
|
95
|
+
return re(t._context) + ".Provider";
|
|
96
|
+
case c:
|
|
97
|
+
return $e(e, e.render, "ForwardRef");
|
|
98
|
+
case h:
|
|
99
|
+
var n = e.displayName || null;
|
|
100
|
+
return n !== null ? n : _(e.type) || "Memo";
|
|
101
|
+
case C: {
|
|
102
|
+
var o = e, s = o._payload, i = o._init;
|
|
103
|
+
try {
|
|
104
|
+
return _(i(s));
|
|
105
|
+
} catch {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
var O = Object.assign, A = 0, te, ne, ae, ie, oe, se, ue;
|
|
113
|
+
function le() {
|
|
114
|
+
}
|
|
115
|
+
le.__reactDisabledLog = !0;
|
|
116
|
+
function Me() {
|
|
117
|
+
{
|
|
118
|
+
if (A === 0) {
|
|
119
|
+
te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, se = console.groupCollapsed, ue = console.groupEnd;
|
|
120
|
+
var e = {
|
|
121
|
+
configurable: !0,
|
|
122
|
+
enumerable: !0,
|
|
123
|
+
value: le,
|
|
124
|
+
writable: !0
|
|
125
|
+
};
|
|
126
|
+
Object.defineProperties(console, {
|
|
127
|
+
info: e,
|
|
128
|
+
log: e,
|
|
129
|
+
warn: e,
|
|
130
|
+
error: e,
|
|
131
|
+
group: e,
|
|
132
|
+
groupCollapsed: e,
|
|
133
|
+
groupEnd: e
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
A++;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function Le() {
|
|
140
|
+
{
|
|
141
|
+
if (A--, A === 0) {
|
|
142
|
+
var e = {
|
|
143
|
+
configurable: !0,
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
writable: !0
|
|
146
|
+
};
|
|
147
|
+
Object.defineProperties(console, {
|
|
148
|
+
log: O({}, e, {
|
|
149
|
+
value: te
|
|
150
|
+
}),
|
|
151
|
+
info: O({}, e, {
|
|
152
|
+
value: ne
|
|
153
|
+
}),
|
|
154
|
+
warn: O({}, e, {
|
|
155
|
+
value: ae
|
|
156
|
+
}),
|
|
157
|
+
error: O({}, e, {
|
|
158
|
+
value: ie
|
|
159
|
+
}),
|
|
160
|
+
group: O({}, e, {
|
|
161
|
+
value: oe
|
|
162
|
+
}),
|
|
163
|
+
groupCollapsed: O({}, e, {
|
|
164
|
+
value: se
|
|
165
|
+
}),
|
|
166
|
+
groupEnd: O({}, e, {
|
|
167
|
+
value: ue
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
A < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var B = j.ReactCurrentDispatcher, K;
|
|
175
|
+
function $(e, r, t) {
|
|
176
|
+
{
|
|
177
|
+
if (K === void 0)
|
|
178
|
+
try {
|
|
179
|
+
throw Error();
|
|
180
|
+
} catch (o) {
|
|
181
|
+
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
182
|
+
K = n && n[1] || "";
|
|
183
|
+
}
|
|
184
|
+
return `
|
|
185
|
+
` + K + e;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
var J = !1, M;
|
|
189
|
+
{
|
|
190
|
+
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
191
|
+
M = new Ne();
|
|
192
|
+
}
|
|
193
|
+
function ce(e, r) {
|
|
194
|
+
if (!e || J)
|
|
195
|
+
return "";
|
|
196
|
+
{
|
|
197
|
+
var t = M.get(e);
|
|
198
|
+
if (t !== void 0)
|
|
199
|
+
return t;
|
|
200
|
+
}
|
|
201
|
+
var n;
|
|
202
|
+
J = !0;
|
|
203
|
+
var o = Error.prepareStackTrace;
|
|
204
|
+
Error.prepareStackTrace = void 0;
|
|
205
|
+
var s;
|
|
206
|
+
s = B.current, B.current = null, Me();
|
|
207
|
+
try {
|
|
208
|
+
if (r) {
|
|
209
|
+
var i = function() {
|
|
210
|
+
throw Error();
|
|
211
|
+
};
|
|
212
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
213
|
+
set: function() {
|
|
214
|
+
throw Error();
|
|
215
|
+
}
|
|
216
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
217
|
+
try {
|
|
218
|
+
Reflect.construct(i, []);
|
|
219
|
+
} catch (p) {
|
|
220
|
+
n = p;
|
|
221
|
+
}
|
|
222
|
+
Reflect.construct(e, [], i);
|
|
223
|
+
} else {
|
|
224
|
+
try {
|
|
225
|
+
i.call();
|
|
226
|
+
} catch (p) {
|
|
227
|
+
n = p;
|
|
228
|
+
}
|
|
229
|
+
e.call(i.prototype);
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
try {
|
|
233
|
+
throw Error();
|
|
234
|
+
} catch (p) {
|
|
235
|
+
n = p;
|
|
236
|
+
}
|
|
237
|
+
e();
|
|
238
|
+
}
|
|
239
|
+
} catch (p) {
|
|
240
|
+
if (p && n && typeof p.stack == "string") {
|
|
241
|
+
for (var a = p.stack.split(`
|
|
242
|
+
`), d = n.stack.split(`
|
|
243
|
+
`), u = a.length - 1, l = d.length - 1; u >= 1 && l >= 0 && a[u] !== d[l]; )
|
|
244
|
+
l--;
|
|
245
|
+
for (; u >= 1 && l >= 0; u--, l--)
|
|
246
|
+
if (a[u] !== d[l]) {
|
|
247
|
+
if (u !== 1 || l !== 1)
|
|
248
|
+
do
|
|
249
|
+
if (u--, l--, l < 0 || a[u] !== d[l]) {
|
|
250
|
+
var g = `
|
|
251
|
+
` + a[u].replace(" at new ", " at ");
|
|
252
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, g), g;
|
|
253
|
+
}
|
|
254
|
+
while (u >= 1 && l >= 0);
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
} finally {
|
|
259
|
+
J = !1, B.current = s, Le(), Error.prepareStackTrace = o;
|
|
260
|
+
}
|
|
261
|
+
var D = e ? e.displayName || e.name : "", S = D ? $(D) : "";
|
|
262
|
+
return typeof e == "function" && M.set(e, S), S;
|
|
263
|
+
}
|
|
264
|
+
function Ve(e, r, t) {
|
|
265
|
+
return ce(e, !1);
|
|
266
|
+
}
|
|
267
|
+
function Ue(e) {
|
|
268
|
+
var r = e.prototype;
|
|
269
|
+
return !!(r && r.isReactComponent);
|
|
270
|
+
}
|
|
271
|
+
function L(e, r, t) {
|
|
272
|
+
if (e == null)
|
|
273
|
+
return "";
|
|
274
|
+
if (typeof e == "function")
|
|
275
|
+
return ce(e, Ue(e));
|
|
276
|
+
if (typeof e == "string")
|
|
277
|
+
return $(e);
|
|
278
|
+
switch (e) {
|
|
279
|
+
case w:
|
|
280
|
+
return $("Suspense");
|
|
281
|
+
case b:
|
|
282
|
+
return $("SuspenseList");
|
|
283
|
+
}
|
|
284
|
+
if (typeof e == "object")
|
|
285
|
+
switch (e.$$typeof) {
|
|
286
|
+
case c:
|
|
287
|
+
return Ve(e.render);
|
|
288
|
+
case h:
|
|
289
|
+
return L(e.type, r, t);
|
|
290
|
+
case C: {
|
|
291
|
+
var n = e, o = n._payload, s = n._init;
|
|
292
|
+
try {
|
|
293
|
+
return L(s(o), r, t);
|
|
294
|
+
} catch {
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return "";
|
|
299
|
+
}
|
|
300
|
+
var F = Object.prototype.hasOwnProperty, fe = {}, de = j.ReactDebugCurrentFrame;
|
|
301
|
+
function N(e) {
|
|
302
|
+
if (e) {
|
|
303
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
304
|
+
de.setExtraStackFrame(t);
|
|
305
|
+
} else
|
|
306
|
+
de.setExtraStackFrame(null);
|
|
307
|
+
}
|
|
308
|
+
function Be(e, r, t, n, o) {
|
|
309
|
+
{
|
|
310
|
+
var s = Function.call.bind(F);
|
|
311
|
+
for (var i in e)
|
|
312
|
+
if (s(e, i)) {
|
|
313
|
+
var a = void 0;
|
|
314
|
+
try {
|
|
315
|
+
if (typeof e[i] != "function") {
|
|
316
|
+
var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
317
|
+
throw d.name = "Invariant Violation", d;
|
|
318
|
+
}
|
|
319
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
|
+
} catch (u) {
|
|
321
|
+
a = u;
|
|
322
|
+
}
|
|
323
|
+
a && !(a instanceof Error) && (N(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), N(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, N(o), f("Failed %s type: %s", t, a.message), N(null));
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
var Ke = Array.isArray;
|
|
328
|
+
function q(e) {
|
|
329
|
+
return Ke(e);
|
|
330
|
+
}
|
|
331
|
+
function Je(e) {
|
|
332
|
+
{
|
|
333
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
334
|
+
return t;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
function qe(e) {
|
|
338
|
+
try {
|
|
339
|
+
return ve(e), !1;
|
|
340
|
+
} catch {
|
|
341
|
+
return !0;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
function ve(e) {
|
|
345
|
+
return "" + e;
|
|
346
|
+
}
|
|
347
|
+
function pe(e) {
|
|
348
|
+
if (qe(e))
|
|
349
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ve(e);
|
|
350
|
+
}
|
|
351
|
+
var be = j.ReactCurrentOwner, ze = {
|
|
352
|
+
key: !0,
|
|
353
|
+
ref: !0,
|
|
354
|
+
__self: !0,
|
|
355
|
+
__source: !0
|
|
356
|
+
}, ge, me;
|
|
357
|
+
function Ge(e) {
|
|
358
|
+
if (F.call(e, "ref")) {
|
|
359
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
360
|
+
if (r && r.isReactWarning)
|
|
361
|
+
return !1;
|
|
362
|
+
}
|
|
363
|
+
return e.ref !== void 0;
|
|
364
|
+
}
|
|
365
|
+
function Xe(e) {
|
|
366
|
+
if (F.call(e, "key")) {
|
|
367
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
368
|
+
if (r && r.isReactWarning)
|
|
369
|
+
return !1;
|
|
370
|
+
}
|
|
371
|
+
return e.key !== void 0;
|
|
372
|
+
}
|
|
373
|
+
function He(e, r) {
|
|
374
|
+
typeof e.ref == "string" && be.current;
|
|
375
|
+
}
|
|
376
|
+
function Ze(e, r) {
|
|
377
|
+
{
|
|
378
|
+
var t = function() {
|
|
379
|
+
ge || (ge = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
380
|
+
};
|
|
381
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
382
|
+
get: t,
|
|
383
|
+
configurable: !0
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function Qe(e, r) {
|
|
388
|
+
{
|
|
389
|
+
var t = function() {
|
|
390
|
+
me || (me = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
391
|
+
};
|
|
392
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
393
|
+
get: t,
|
|
394
|
+
configurable: !0
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
var er = function(e, r, t, n, o, s, i) {
|
|
399
|
+
var a = {
|
|
400
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
401
|
+
$$typeof: E,
|
|
402
|
+
// Built-in properties that belong on the element
|
|
403
|
+
type: e,
|
|
404
|
+
key: r,
|
|
405
|
+
ref: t,
|
|
406
|
+
props: i,
|
|
407
|
+
// Record the component responsible for creating this element.
|
|
408
|
+
_owner: s
|
|
409
|
+
};
|
|
410
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
411
|
+
configurable: !1,
|
|
412
|
+
enumerable: !1,
|
|
413
|
+
writable: !0,
|
|
414
|
+
value: !1
|
|
415
|
+
}), Object.defineProperty(a, "_self", {
|
|
416
|
+
configurable: !1,
|
|
417
|
+
enumerable: !1,
|
|
418
|
+
writable: !1,
|
|
419
|
+
value: n
|
|
420
|
+
}), Object.defineProperty(a, "_source", {
|
|
421
|
+
configurable: !1,
|
|
422
|
+
enumerable: !1,
|
|
423
|
+
writable: !1,
|
|
424
|
+
value: o
|
|
425
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
426
|
+
};
|
|
427
|
+
function rr(e, r, t, n, o) {
|
|
428
|
+
{
|
|
429
|
+
var s, i = {}, a = null, d = null;
|
|
430
|
+
t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), Ge(r) && (d = r.ref, He(r, o));
|
|
431
|
+
for (s in r)
|
|
432
|
+
F.call(r, s) && !ze.hasOwnProperty(s) && (i[s] = r[s]);
|
|
433
|
+
if (e && e.defaultProps) {
|
|
434
|
+
var u = e.defaultProps;
|
|
435
|
+
for (s in u)
|
|
436
|
+
i[s] === void 0 && (i[s] = u[s]);
|
|
437
|
+
}
|
|
438
|
+
if (a || d) {
|
|
439
|
+
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
440
|
+
a && Ze(i, l), d && Qe(i, l);
|
|
441
|
+
}
|
|
442
|
+
return er(e, a, d, o, n, be.current, i);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
var z = j.ReactCurrentOwner, ye = j.ReactDebugCurrentFrame;
|
|
446
|
+
function x(e) {
|
|
447
|
+
if (e) {
|
|
448
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
449
|
+
ye.setExtraStackFrame(t);
|
|
450
|
+
} else
|
|
451
|
+
ye.setExtraStackFrame(null);
|
|
452
|
+
}
|
|
453
|
+
var G;
|
|
454
|
+
G = !1;
|
|
455
|
+
function X(e) {
|
|
456
|
+
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
457
|
+
}
|
|
458
|
+
function he() {
|
|
459
|
+
{
|
|
460
|
+
if (z.current) {
|
|
461
|
+
var e = _(z.current.type);
|
|
462
|
+
if (e)
|
|
463
|
+
return `
|
|
464
|
+
|
|
465
|
+
Check the render method of \`` + e + "`.";
|
|
466
|
+
}
|
|
467
|
+
return "";
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function tr(e) {
|
|
471
|
+
return "";
|
|
472
|
+
}
|
|
473
|
+
var Re = {};
|
|
474
|
+
function nr(e) {
|
|
475
|
+
{
|
|
476
|
+
var r = he();
|
|
477
|
+
if (!r) {
|
|
478
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
479
|
+
t && (r = `
|
|
480
|
+
|
|
481
|
+
Check the top-level render call using <` + t + ">.");
|
|
482
|
+
}
|
|
483
|
+
return r;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function _e(e, r) {
|
|
487
|
+
{
|
|
488
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
489
|
+
return;
|
|
490
|
+
e._store.validated = !0;
|
|
491
|
+
var t = nr(r);
|
|
492
|
+
if (Re[t])
|
|
493
|
+
return;
|
|
494
|
+
Re[t] = !0;
|
|
495
|
+
var n = "";
|
|
496
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + _(e._owner.type) + "."), x(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), x(null);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
function Ee(e, r) {
|
|
500
|
+
{
|
|
501
|
+
if (typeof e != "object")
|
|
502
|
+
return;
|
|
503
|
+
if (q(e))
|
|
504
|
+
for (var t = 0; t < e.length; t++) {
|
|
505
|
+
var n = e[t];
|
|
506
|
+
X(n) && _e(n, r);
|
|
507
|
+
}
|
|
508
|
+
else if (X(e))
|
|
509
|
+
e._store && (e._store.validated = !0);
|
|
510
|
+
else if (e) {
|
|
511
|
+
var o = je(e);
|
|
512
|
+
if (typeof o == "function" && o !== e.entries)
|
|
513
|
+
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
514
|
+
X(i.value) && _e(i.value, r);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function ar(e) {
|
|
519
|
+
{
|
|
520
|
+
var r = e.type;
|
|
521
|
+
if (r == null || typeof r == "string")
|
|
522
|
+
return;
|
|
523
|
+
var t;
|
|
524
|
+
if (typeof r == "function")
|
|
525
|
+
t = r.propTypes;
|
|
526
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
527
|
+
// Inner props are checked in the reconciler.
|
|
528
|
+
r.$$typeof === h))
|
|
529
|
+
t = r.propTypes;
|
|
530
|
+
else
|
|
531
|
+
return;
|
|
532
|
+
if (t) {
|
|
533
|
+
var n = _(r);
|
|
534
|
+
Be(t, e.props, "prop", n, e);
|
|
535
|
+
} else if (r.PropTypes !== void 0 && !G) {
|
|
536
|
+
G = !0;
|
|
537
|
+
var o = _(r);
|
|
538
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
539
|
+
}
|
|
540
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
function ir(e) {
|
|
544
|
+
{
|
|
545
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
546
|
+
var n = r[t];
|
|
547
|
+
if (n !== "children" && n !== "key") {
|
|
548
|
+
x(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
e.ref !== null && (x(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
var Te = {};
|
|
556
|
+
function Ce(e, r, t, n, o, s) {
|
|
557
|
+
{
|
|
558
|
+
var i = Ye(e);
|
|
559
|
+
if (!i) {
|
|
560
|
+
var a = "";
|
|
561
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
562
|
+
var d = tr();
|
|
563
|
+
d ? a += d : a += he();
|
|
564
|
+
var u;
|
|
565
|
+
e === null ? u = "null" : q(e) ? u = "array" : e !== void 0 && e.$$typeof === E ? (u = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a);
|
|
566
|
+
}
|
|
567
|
+
var l = rr(e, r, t, o, s);
|
|
568
|
+
if (l == null)
|
|
569
|
+
return l;
|
|
570
|
+
if (i) {
|
|
571
|
+
var g = r.children;
|
|
572
|
+
if (g !== void 0)
|
|
573
|
+
if (n)
|
|
574
|
+
if (q(g)) {
|
|
575
|
+
for (var D = 0; D < g.length; D++)
|
|
576
|
+
Ee(g[D], e);
|
|
577
|
+
Object.freeze && Object.freeze(g);
|
|
578
|
+
} else
|
|
579
|
+
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
580
|
+
else
|
|
581
|
+
Ee(g, e);
|
|
582
|
+
}
|
|
583
|
+
if (F.call(r, "key")) {
|
|
584
|
+
var S = _(e), p = Object.keys(r).filter(function(fr) {
|
|
585
|
+
return fr !== "key";
|
|
586
|
+
}), H = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
|
+
if (!Te[S + H]) {
|
|
588
|
+
var cr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
|
|
589
|
+
f(`A props object containing a "key" prop is being spread into JSX:
|
|
590
|
+
let props = %s;
|
|
591
|
+
<%s {...props} />
|
|
592
|
+
React keys must be passed directly to JSX without using spread:
|
|
593
|
+
let props = %s;
|
|
594
|
+
<%s key={someKey} {...props} />`, H, S, cr, S), Te[S + H] = !0;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return e === m ? ir(l) : ar(l), l;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
function or(e, r, t) {
|
|
601
|
+
return Ce(e, r, t, !0);
|
|
602
|
+
}
|
|
603
|
+
function sr(e, r, t) {
|
|
604
|
+
return Ce(e, r, t, !1);
|
|
605
|
+
}
|
|
606
|
+
var ur = sr, lr = or;
|
|
607
|
+
W.Fragment = m, W.jsx = ur, W.jsxs = lr;
|
|
608
|
+
})()), W;
|
|
609
|
+
}
|
|
610
|
+
var Pe;
|
|
611
|
+
function mr() {
|
|
612
|
+
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? V.exports = br() : V.exports = gr()), V.exports;
|
|
613
|
+
}
|
|
614
|
+
var Z = mr();
|
|
615
|
+
const yr = U.lazy(() => import("./KanbanImpl-mGLdSHcd.js")), ke = ({ schema: R }) => {
|
|
616
|
+
const E = U.useMemo(() => {
|
|
617
|
+
const { columns: P = [], data: m, groupBy: T } = R;
|
|
618
|
+
if (m && T && Array.isArray(m)) {
|
|
619
|
+
const k = m.reduce((v, y) => {
|
|
620
|
+
const c = y[T];
|
|
621
|
+
return v[c] || (v[c] = []), v[c].push(y), v;
|
|
622
|
+
}, {});
|
|
623
|
+
return P.map((v) => ({
|
|
624
|
+
...v,
|
|
625
|
+
cards: [
|
|
626
|
+
...v.cards || [],
|
|
627
|
+
// Preserve static cards
|
|
628
|
+
...k[v.id] || []
|
|
629
|
+
// Add dynamic cards
|
|
630
|
+
]
|
|
631
|
+
}));
|
|
632
|
+
}
|
|
633
|
+
return P;
|
|
634
|
+
}, [R]);
|
|
635
|
+
return /* @__PURE__ */ Z.jsx(dr, { fallback: /* @__PURE__ */ Z.jsx(pr, { className: "w-full h-[600px]" }), children: /* @__PURE__ */ Z.jsx(
|
|
636
|
+
yr,
|
|
637
|
+
{
|
|
638
|
+
columns: E,
|
|
639
|
+
onCardMove: R.onCardMove,
|
|
640
|
+
className: R.className
|
|
641
|
+
}
|
|
642
|
+
) });
|
|
643
|
+
};
|
|
644
|
+
vr.register(
|
|
645
|
+
"kanban",
|
|
646
|
+
ke,
|
|
647
|
+
{
|
|
648
|
+
label: "Kanban Board",
|
|
649
|
+
icon: "LayoutDashboard",
|
|
650
|
+
category: "plugin",
|
|
651
|
+
inputs: [
|
|
652
|
+
{
|
|
653
|
+
name: "columns",
|
|
654
|
+
type: "array",
|
|
655
|
+
label: "Columns",
|
|
656
|
+
description: "Array of { id, title, cards, limit, className }",
|
|
657
|
+
required: !0
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
name: "onCardMove",
|
|
661
|
+
type: "code",
|
|
662
|
+
label: "On Card Move",
|
|
663
|
+
description: "Callback when a card is moved",
|
|
664
|
+
advanced: !0
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "className",
|
|
668
|
+
type: "string",
|
|
669
|
+
label: "CSS Class"
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
defaultProps: {
|
|
673
|
+
columns: [
|
|
674
|
+
{
|
|
675
|
+
id: "todo",
|
|
676
|
+
title: "To Do",
|
|
677
|
+
cards: [
|
|
678
|
+
{
|
|
679
|
+
id: "card-1",
|
|
680
|
+
title: "Task 1",
|
|
681
|
+
description: "This is the first task",
|
|
682
|
+
badges: [
|
|
683
|
+
{ label: "High Priority", variant: "destructive" },
|
|
684
|
+
{ label: "Feature", variant: "default" }
|
|
685
|
+
]
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
id: "card-2",
|
|
689
|
+
title: "Task 2",
|
|
690
|
+
description: "This is the second task",
|
|
691
|
+
badges: [
|
|
692
|
+
{ label: "Bug", variant: "destructive" }
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
]
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
id: "in-progress",
|
|
699
|
+
title: "In Progress",
|
|
700
|
+
limit: 3,
|
|
701
|
+
cards: [
|
|
702
|
+
{
|
|
703
|
+
id: "card-3",
|
|
704
|
+
title: "Task 3",
|
|
705
|
+
description: "Currently working on this",
|
|
706
|
+
badges: [
|
|
707
|
+
{ label: "In Progress", variant: "default" }
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
]
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
id: "done",
|
|
714
|
+
title: "Done",
|
|
715
|
+
cards: [
|
|
716
|
+
{
|
|
717
|
+
id: "card-4",
|
|
718
|
+
title: "Task 4",
|
|
719
|
+
description: "This task is completed",
|
|
720
|
+
badges: [
|
|
721
|
+
{ label: "Completed", variant: "outline" }
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
id: "card-5",
|
|
726
|
+
title: "Task 5",
|
|
727
|
+
description: "Another completed task",
|
|
728
|
+
badges: [
|
|
729
|
+
{ label: "Completed", variant: "outline" }
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
className: "w-full"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
);
|
|
739
|
+
const Er = {
|
|
740
|
+
kanban: ke
|
|
741
|
+
};
|
|
742
|
+
export {
|
|
743
|
+
ke as K,
|
|
744
|
+
Z as j,
|
|
745
|
+
Er as k
|
|
746
|
+
};
|