@lanaco/lnc-react-ui 4.0.11 → 4.0.13
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/Kanban.cjs +12 -12
- package/dist/Kanban.js +2974 -2485
- package/dist/Modal.cjs +15 -15
- package/dist/Modal.js +78 -74
- package/dist/Table.cjs +64 -64
- package/dist/Table.js +1212 -766
- package/dist/ThemeProvider.cjs +26 -26
- package/dist/ThemeProvider.js +525 -557
- package/package.json +2 -1
- package/dist/index-DBXXH_TD.cjs +0 -1
- package/dist/index-DLVVKJXD.js +0 -451
package/dist/Table.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useLayoutEffect as
|
|
3
|
-
import { n as
|
|
4
|
-
import { P as
|
|
5
|
-
import { m as
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
var or = be ? Me : V, he = {
|
|
1
|
+
import { jsx as m, jsxs as de, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { useLayoutEffect as Kr, useEffect as je, useState as Ht, useMemo as Xr, createElement as z, isValidElement as qr, forwardRef as Jr, useImperativeHandle as Zr } from "react";
|
|
3
|
+
import { n as v } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
5
|
+
import { m as jt, n as Qr, a as S, g as Ne, s as xt, u as en, o as U, r as P, i as B } from "./utils-C52T57HO.js";
|
|
6
|
+
import { c as F, g as De } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
|
+
import { u as M } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
import { i as tn } from "./index-CvebWhtp.js";
|
|
9
|
+
import $t from "./CheckBoxInput.js";
|
|
10
|
+
import rn from "./Icon.js";
|
|
11
|
+
import nn from "./Spinner.js";
|
|
12
|
+
var on = jt ? Kr : je, Nt = {
|
|
14
13
|
x: 0,
|
|
15
14
|
y: 0,
|
|
16
15
|
width: 0,
|
|
@@ -20,56 +19,503 @@ var or = be ? Me : V, he = {
|
|
|
20
19
|
bottom: 0,
|
|
21
20
|
right: 0
|
|
22
21
|
};
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
return new window.ResizeObserver(function(
|
|
26
|
-
if (
|
|
27
|
-
var
|
|
28
|
-
|
|
22
|
+
function an() {
|
|
23
|
+
var t = Ht(null), h = t[0], l = t[1], i = Ht(Nt), g = i[0], b = i[1], T = Xr(function() {
|
|
24
|
+
return new window.ResizeObserver(function(E) {
|
|
25
|
+
if (E[0]) {
|
|
26
|
+
var w = E[0].contentRect, A = w.x, C = w.y, R = w.width, y = w.height, O = w.top, W = w.left, Y = w.bottom, _ = w.right;
|
|
27
|
+
b({ x: A, y: C, width: R, height: y, top: O, left: W, bottom: Y, right: _ });
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
30
|
}, []);
|
|
32
|
-
return
|
|
33
|
-
if (
|
|
34
|
-
return
|
|
35
|
-
|
|
31
|
+
return on(function() {
|
|
32
|
+
if (h)
|
|
33
|
+
return T.observe(h), function() {
|
|
34
|
+
T.disconnect();
|
|
36
35
|
};
|
|
37
|
-
}, [
|
|
36
|
+
}, [h]), [l, g];
|
|
38
37
|
}
|
|
39
|
-
const
|
|
40
|
-
return [
|
|
38
|
+
const ln = jt && typeof window.ResizeObserver < "u" ? an : function() {
|
|
39
|
+
return [Qr, Nt];
|
|
41
40
|
};
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
var $e = { exports: {} };
|
|
42
|
+
$e.exports;
|
|
43
|
+
(function(t, h) {
|
|
44
|
+
var l = 200, i = "__lodash_hash_undefined__", g = 9007199254740991, b = "[object Arguments]", T = "[object Array]", E = "[object Boolean]", w = "[object Date]", A = "[object Error]", C = "[object Function]", R = "[object GeneratorFunction]", y = "[object Map]", O = "[object Number]", W = "[object Object]", Y = "[object Promise]", _ = "[object RegExp]", d = "[object Set]", H = "[object String]", re = "[object Symbol]", ue = "[object WeakMap]", X = "[object ArrayBuffer]", j = "[object DataView]", _e = "[object Float32Array]", pe = "[object Float64Array]", ye = "[object Int8Array]", fe = "[object Int16Array]", Te = "[object Int32Array]", Ee = "[object Uint8Array]", we = "[object Uint8ClampedArray]", ke = "[object Uint16Array]", Ce = "[object Uint32Array]", ne = /[\\^$.*+?()[\]{}|]/g, Se = /\w*$/, L = /^\[object .+?Constructor\]$/, ze = /^(?:0|[1-9]\d*)$/, u = {};
|
|
45
|
+
u[b] = u[T] = u[X] = u[j] = u[E] = u[w] = u[_e] = u[pe] = u[ye] = u[fe] = u[Te] = u[y] = u[O] = u[W] = u[_] = u[d] = u[H] = u[re] = u[Ee] = u[we] = u[ke] = u[Ce] = !0, u[A] = u[C] = u[ue] = !1;
|
|
46
|
+
var We = typeof F == "object" && F && F.Object === Object && F, q = typeof self == "object" && self && self.Object === Object && self, $ = We || q || Function("return this")(), Ae = h && !h.nodeType && h, Oe = Ae && !0 && t && !t.nodeType && t, J = Oe && Oe.exports === Ae;
|
|
47
|
+
function Ye(e, r) {
|
|
48
|
+
return e.set(r[0], r[1]), e;
|
|
49
|
+
}
|
|
50
|
+
function Ge(e, r) {
|
|
51
|
+
return e.add(r), e;
|
|
52
|
+
}
|
|
53
|
+
function Fe(e, r) {
|
|
54
|
+
for (var n = -1, a = e ? e.length : 0; ++n < a && r(e[n], n, e) !== !1; )
|
|
55
|
+
;
|
|
56
|
+
return e;
|
|
57
|
+
}
|
|
58
|
+
function Me(e, r) {
|
|
59
|
+
for (var n = -1, a = r.length, I = e.length; ++n < a; )
|
|
60
|
+
e[I + n] = r[n];
|
|
61
|
+
return e;
|
|
62
|
+
}
|
|
63
|
+
function Le(e, r, n, a) {
|
|
64
|
+
for (var I = -1, D = e ? e.length : 0; ++I < D; )
|
|
65
|
+
n = r(n, e[I], I, e);
|
|
66
|
+
return n;
|
|
67
|
+
}
|
|
68
|
+
function Ue(e, r) {
|
|
69
|
+
for (var n = -1, a = Array(e); ++n < e; )
|
|
70
|
+
a[n] = r(n);
|
|
71
|
+
return a;
|
|
72
|
+
}
|
|
73
|
+
function Ve(e, r) {
|
|
74
|
+
return e == null ? void 0 : e[r];
|
|
75
|
+
}
|
|
76
|
+
function Re(e) {
|
|
77
|
+
var r = !1;
|
|
78
|
+
if (e != null && typeof e.toString != "function")
|
|
79
|
+
try {
|
|
80
|
+
r = !!(e + "");
|
|
81
|
+
} catch {
|
|
82
|
+
}
|
|
83
|
+
return r;
|
|
84
|
+
}
|
|
85
|
+
function ve(e) {
|
|
86
|
+
var r = -1, n = Array(e.size);
|
|
87
|
+
return e.forEach(function(a, I) {
|
|
88
|
+
n[++r] = [I, a];
|
|
89
|
+
}), n;
|
|
90
|
+
}
|
|
91
|
+
function he(e, r) {
|
|
92
|
+
return function(n) {
|
|
93
|
+
return e(r(n));
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function Ie(e) {
|
|
97
|
+
var r = -1, n = Array(e.size);
|
|
98
|
+
return e.forEach(function(a) {
|
|
99
|
+
n[++r] = a;
|
|
100
|
+
}), n;
|
|
101
|
+
}
|
|
102
|
+
var Ke = Array.prototype, Xe = Function.prototype, oe = Object.prototype, be = $["__core-js_shared__"], qe = function() {
|
|
103
|
+
var e = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || "");
|
|
104
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
105
|
+
}(), s = Xe.toString, c = oe.hasOwnProperty, f = oe.toString, p = RegExp(
|
|
106
|
+
"^" + s.call(c).replace(ne, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
107
|
+
), N = J ? $.Buffer : void 0, G = $.Symbol, ae = $.Uint8Array, Je = he(Object.getPrototypeOf, Object), Wt = Object.create, Yt = oe.propertyIsEnumerable, Gt = Ke.splice, _t = Object.getOwnPropertySymbols, Ft = N ? N.isBuffer : void 0, Mt = he(Object.keys, Object), Ze = se($, "DataView"), ge = se($, "Map"), Qe = se($, "Promise"), et = se($, "Set"), tt = se($, "WeakMap"), me = se(Object, "create"), Ut = ee(Ze), Vt = ee(ge), Kt = ee(Qe), Xt = ee(et), qt = ee(tt), pt = G ? G.prototype : void 0, yt = pt ? pt.valueOf : void 0;
|
|
108
|
+
function Z(e) {
|
|
109
|
+
var r = -1, n = e ? e.length : 0;
|
|
110
|
+
for (this.clear(); ++r < n; ) {
|
|
111
|
+
var a = e[r];
|
|
112
|
+
this.set(a[0], a[1]);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function Jt() {
|
|
116
|
+
this.__data__ = me ? me(null) : {};
|
|
117
|
+
}
|
|
118
|
+
function Zt(e) {
|
|
119
|
+
return this.has(e) && delete this.__data__[e];
|
|
120
|
+
}
|
|
121
|
+
function Qt(e) {
|
|
122
|
+
var r = this.__data__;
|
|
123
|
+
if (me) {
|
|
124
|
+
var n = r[e];
|
|
125
|
+
return n === i ? void 0 : n;
|
|
126
|
+
}
|
|
127
|
+
return c.call(r, e) ? r[e] : void 0;
|
|
128
|
+
}
|
|
129
|
+
function er(e) {
|
|
130
|
+
var r = this.__data__;
|
|
131
|
+
return me ? r[e] !== void 0 : c.call(r, e);
|
|
132
|
+
}
|
|
133
|
+
function tr(e, r) {
|
|
134
|
+
var n = this.__data__;
|
|
135
|
+
return n[e] = me && r === void 0 ? i : r, this;
|
|
136
|
+
}
|
|
137
|
+
Z.prototype.clear = Jt, Z.prototype.delete = Zt, Z.prototype.get = Qt, Z.prototype.has = er, Z.prototype.set = tr;
|
|
138
|
+
function V(e) {
|
|
139
|
+
var r = -1, n = e ? e.length : 0;
|
|
140
|
+
for (this.clear(); ++r < n; ) {
|
|
141
|
+
var a = e[r];
|
|
142
|
+
this.set(a[0], a[1]);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function rr() {
|
|
146
|
+
this.__data__ = [];
|
|
147
|
+
}
|
|
148
|
+
function nr(e) {
|
|
149
|
+
var r = this.__data__, n = He(r, e);
|
|
150
|
+
if (n < 0)
|
|
151
|
+
return !1;
|
|
152
|
+
var a = r.length - 1;
|
|
153
|
+
return n == a ? r.pop() : Gt.call(r, n, 1), !0;
|
|
154
|
+
}
|
|
155
|
+
function or(e) {
|
|
156
|
+
var r = this.__data__, n = He(r, e);
|
|
157
|
+
return n < 0 ? void 0 : r[n][1];
|
|
158
|
+
}
|
|
159
|
+
function ar(e) {
|
|
160
|
+
return He(this.__data__, e) > -1;
|
|
161
|
+
}
|
|
162
|
+
function lr(e, r) {
|
|
163
|
+
var n = this.__data__, a = He(n, e);
|
|
164
|
+
return a < 0 ? n.push([e, r]) : n[a][1] = r, this;
|
|
165
|
+
}
|
|
166
|
+
V.prototype.clear = rr, V.prototype.delete = nr, V.prototype.get = or, V.prototype.has = ar, V.prototype.set = lr;
|
|
167
|
+
function le(e) {
|
|
168
|
+
var r = -1, n = e ? e.length : 0;
|
|
169
|
+
for (this.clear(); ++r < n; ) {
|
|
170
|
+
var a = e[r];
|
|
171
|
+
this.set(a[0], a[1]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function ir() {
|
|
175
|
+
this.__data__ = {
|
|
176
|
+
hash: new Z(),
|
|
177
|
+
map: new (ge || V)(),
|
|
178
|
+
string: new Z()
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function sr(e) {
|
|
182
|
+
return xe(this, e).delete(e);
|
|
183
|
+
}
|
|
184
|
+
function cr(e) {
|
|
185
|
+
return xe(this, e).get(e);
|
|
186
|
+
}
|
|
187
|
+
function dr(e) {
|
|
188
|
+
return xe(this, e).has(e);
|
|
189
|
+
}
|
|
190
|
+
function ur(e, r) {
|
|
191
|
+
return xe(this, e).set(e, r), this;
|
|
192
|
+
}
|
|
193
|
+
le.prototype.clear = ir, le.prototype.delete = sr, le.prototype.get = cr, le.prototype.has = dr, le.prototype.set = ur;
|
|
194
|
+
function ie(e) {
|
|
195
|
+
this.__data__ = new V(e);
|
|
196
|
+
}
|
|
197
|
+
function fr() {
|
|
198
|
+
this.__data__ = new V();
|
|
199
|
+
}
|
|
200
|
+
function hr(e) {
|
|
201
|
+
return this.__data__.delete(e);
|
|
202
|
+
}
|
|
203
|
+
function br(e) {
|
|
204
|
+
return this.__data__.get(e);
|
|
205
|
+
}
|
|
206
|
+
function gr(e) {
|
|
207
|
+
return this.__data__.has(e);
|
|
208
|
+
}
|
|
209
|
+
function mr(e, r) {
|
|
210
|
+
var n = this.__data__;
|
|
211
|
+
if (n instanceof V) {
|
|
212
|
+
var a = n.__data__;
|
|
213
|
+
if (!ge || a.length < l - 1)
|
|
214
|
+
return a.push([e, r]), this;
|
|
215
|
+
n = this.__data__ = new le(a);
|
|
216
|
+
}
|
|
217
|
+
return n.set(e, r), this;
|
|
218
|
+
}
|
|
219
|
+
ie.prototype.clear = fr, ie.prototype.delete = hr, ie.prototype.get = br, ie.prototype.has = gr, ie.prototype.set = mr;
|
|
220
|
+
function _r(e, r) {
|
|
221
|
+
var n = ot(e) || Wr(e) ? Ue(e.length, String) : [], a = n.length, I = !!a;
|
|
222
|
+
for (var D in e)
|
|
223
|
+
c.call(e, D) && !(I && (D == "length" || Nr(D, a))) && n.push(D);
|
|
224
|
+
return n;
|
|
225
|
+
}
|
|
226
|
+
function Tt(e, r, n) {
|
|
227
|
+
var a = e[r];
|
|
228
|
+
(!(c.call(e, r) && St(a, n)) || n === void 0 && !(r in e)) && (e[r] = n);
|
|
229
|
+
}
|
|
230
|
+
function He(e, r) {
|
|
231
|
+
for (var n = e.length; n--; )
|
|
232
|
+
if (St(e[n][0], r))
|
|
233
|
+
return n;
|
|
234
|
+
return -1;
|
|
235
|
+
}
|
|
236
|
+
function pr(e, r) {
|
|
237
|
+
return e && Et(r, at(r), e);
|
|
238
|
+
}
|
|
239
|
+
function rt(e, r, n, a, I, D, K) {
|
|
240
|
+
var k;
|
|
241
|
+
if (a && (k = D ? a(e, I, D, K) : a(e)), k !== void 0)
|
|
242
|
+
return k;
|
|
243
|
+
if (!Pe(e))
|
|
244
|
+
return e;
|
|
245
|
+
var Lt = ot(e);
|
|
246
|
+
if (Lt) {
|
|
247
|
+
if (k = Br(e), !r)
|
|
248
|
+
return Hr(e, k);
|
|
249
|
+
} else {
|
|
250
|
+
var ce = Q(e), Rt = ce == C || ce == R;
|
|
251
|
+
if (Gr(e))
|
|
252
|
+
return Sr(e, r);
|
|
253
|
+
if (ce == W || ce == b || Rt && !D) {
|
|
254
|
+
if (Re(e))
|
|
255
|
+
return D ? e : {};
|
|
256
|
+
if (k = jr(Rt ? {} : e), !r)
|
|
257
|
+
return xr(e, pr(k, e));
|
|
258
|
+
} else {
|
|
259
|
+
if (!u[ce])
|
|
260
|
+
return D ? e : {};
|
|
261
|
+
k = $r(e, ce, rt, r);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
K || (K = new ie());
|
|
265
|
+
var vt = K.get(e);
|
|
266
|
+
if (vt)
|
|
267
|
+
return vt;
|
|
268
|
+
if (K.set(e, k), !Lt)
|
|
269
|
+
var It = n ? Pr(e) : at(e);
|
|
270
|
+
return Fe(It || e, function(lt, Be) {
|
|
271
|
+
It && (Be = lt, lt = e[Be]), Tt(k, Be, rt(lt, r, n, a, Be, e, K));
|
|
272
|
+
}), k;
|
|
273
|
+
}
|
|
274
|
+
function yr(e) {
|
|
275
|
+
return Pe(e) ? Wt(e) : {};
|
|
276
|
+
}
|
|
277
|
+
function Tr(e, r, n) {
|
|
278
|
+
var a = r(e);
|
|
279
|
+
return ot(e) ? a : Me(a, n(e));
|
|
280
|
+
}
|
|
281
|
+
function Er(e) {
|
|
282
|
+
return f.call(e);
|
|
283
|
+
}
|
|
284
|
+
function wr(e) {
|
|
285
|
+
if (!Pe(e) || kr(e))
|
|
286
|
+
return !1;
|
|
287
|
+
var r = Ot(e) || Re(e) ? p : L;
|
|
288
|
+
return r.test(ee(e));
|
|
289
|
+
}
|
|
290
|
+
function Cr(e) {
|
|
291
|
+
if (!Ct(e))
|
|
292
|
+
return Mt(e);
|
|
293
|
+
var r = [];
|
|
294
|
+
for (var n in Object(e))
|
|
295
|
+
c.call(e, n) && n != "constructor" && r.push(n);
|
|
296
|
+
return r;
|
|
297
|
+
}
|
|
298
|
+
function Sr(e, r) {
|
|
299
|
+
if (r)
|
|
300
|
+
return e.slice();
|
|
301
|
+
var n = new e.constructor(e.length);
|
|
302
|
+
return e.copy(n), n;
|
|
303
|
+
}
|
|
304
|
+
function nt(e) {
|
|
305
|
+
var r = new e.constructor(e.byteLength);
|
|
306
|
+
return new ae(r).set(new ae(e)), r;
|
|
307
|
+
}
|
|
308
|
+
function Ar(e, r) {
|
|
309
|
+
var n = r ? nt(e.buffer) : e.buffer;
|
|
310
|
+
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
311
|
+
}
|
|
312
|
+
function Or(e, r, n) {
|
|
313
|
+
var a = r ? n(ve(e), !0) : ve(e);
|
|
314
|
+
return Le(a, Ye, new e.constructor());
|
|
315
|
+
}
|
|
316
|
+
function Lr(e) {
|
|
317
|
+
var r = new e.constructor(e.source, Se.exec(e));
|
|
318
|
+
return r.lastIndex = e.lastIndex, r;
|
|
319
|
+
}
|
|
320
|
+
function Rr(e, r, n) {
|
|
321
|
+
var a = r ? n(Ie(e), !0) : Ie(e);
|
|
322
|
+
return Le(a, Ge, new e.constructor());
|
|
323
|
+
}
|
|
324
|
+
function vr(e) {
|
|
325
|
+
return yt ? Object(yt.call(e)) : {};
|
|
326
|
+
}
|
|
327
|
+
function Ir(e, r) {
|
|
328
|
+
var n = r ? nt(e.buffer) : e.buffer;
|
|
329
|
+
return new e.constructor(n, e.byteOffset, e.length);
|
|
330
|
+
}
|
|
331
|
+
function Hr(e, r) {
|
|
332
|
+
var n = -1, a = e.length;
|
|
333
|
+
for (r || (r = Array(a)); ++n < a; )
|
|
334
|
+
r[n] = e[n];
|
|
335
|
+
return r;
|
|
336
|
+
}
|
|
337
|
+
function Et(e, r, n, a) {
|
|
338
|
+
n || (n = {});
|
|
339
|
+
for (var I = -1, D = r.length; ++I < D; ) {
|
|
340
|
+
var K = r[I], k = void 0;
|
|
341
|
+
Tt(n, K, k === void 0 ? e[K] : k);
|
|
342
|
+
}
|
|
343
|
+
return n;
|
|
344
|
+
}
|
|
345
|
+
function xr(e, r) {
|
|
346
|
+
return Et(e, wt(e), r);
|
|
347
|
+
}
|
|
348
|
+
function Pr(e) {
|
|
349
|
+
return Tr(e, at, wt);
|
|
350
|
+
}
|
|
351
|
+
function xe(e, r) {
|
|
352
|
+
var n = e.__data__;
|
|
353
|
+
return Dr(r) ? n[typeof r == "string" ? "string" : "hash"] : n.map;
|
|
354
|
+
}
|
|
355
|
+
function se(e, r) {
|
|
356
|
+
var n = Ve(e, r);
|
|
357
|
+
return wr(n) ? n : void 0;
|
|
358
|
+
}
|
|
359
|
+
var wt = _t ? he(_t, Object) : Ur, Q = Er;
|
|
360
|
+
(Ze && Q(new Ze(new ArrayBuffer(1))) != j || ge && Q(new ge()) != y || Qe && Q(Qe.resolve()) != Y || et && Q(new et()) != d || tt && Q(new tt()) != ue) && (Q = function(e) {
|
|
361
|
+
var r = f.call(e), n = r == W ? e.constructor : void 0, a = n ? ee(n) : void 0;
|
|
362
|
+
if (a)
|
|
363
|
+
switch (a) {
|
|
364
|
+
case Ut:
|
|
365
|
+
return j;
|
|
366
|
+
case Vt:
|
|
367
|
+
return y;
|
|
368
|
+
case Kt:
|
|
369
|
+
return Y;
|
|
370
|
+
case Xt:
|
|
371
|
+
return d;
|
|
372
|
+
case qt:
|
|
373
|
+
return ue;
|
|
374
|
+
}
|
|
375
|
+
return r;
|
|
376
|
+
});
|
|
377
|
+
function Br(e) {
|
|
378
|
+
var r = e.length, n = e.constructor(r);
|
|
379
|
+
return r && typeof e[0] == "string" && c.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
380
|
+
}
|
|
381
|
+
function jr(e) {
|
|
382
|
+
return typeof e.constructor == "function" && !Ct(e) ? yr(Je(e)) : {};
|
|
383
|
+
}
|
|
384
|
+
function $r(e, r, n, a) {
|
|
385
|
+
var I = e.constructor;
|
|
386
|
+
switch (r) {
|
|
387
|
+
case X:
|
|
388
|
+
return nt(e);
|
|
389
|
+
case E:
|
|
390
|
+
case w:
|
|
391
|
+
return new I(+e);
|
|
392
|
+
case j:
|
|
393
|
+
return Ar(e, a);
|
|
394
|
+
case _e:
|
|
395
|
+
case pe:
|
|
396
|
+
case ye:
|
|
397
|
+
case fe:
|
|
398
|
+
case Te:
|
|
399
|
+
case Ee:
|
|
400
|
+
case we:
|
|
401
|
+
case ke:
|
|
402
|
+
case Ce:
|
|
403
|
+
return Ir(e, a);
|
|
404
|
+
case y:
|
|
405
|
+
return Or(e, a, n);
|
|
406
|
+
case O:
|
|
407
|
+
case H:
|
|
408
|
+
return new I(e);
|
|
409
|
+
case _:
|
|
410
|
+
return Lr(e);
|
|
411
|
+
case d:
|
|
412
|
+
return Rr(e, a, n);
|
|
413
|
+
case re:
|
|
414
|
+
return vr(e);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
function Nr(e, r) {
|
|
418
|
+
return r = r ?? g, !!r && (typeof e == "number" || ze.test(e)) && e > -1 && e % 1 == 0 && e < r;
|
|
419
|
+
}
|
|
420
|
+
function Dr(e) {
|
|
421
|
+
var r = typeof e;
|
|
422
|
+
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
|
|
423
|
+
}
|
|
424
|
+
function kr(e) {
|
|
425
|
+
return !!qe && qe in e;
|
|
426
|
+
}
|
|
427
|
+
function Ct(e) {
|
|
428
|
+
var r = e && e.constructor, n = typeof r == "function" && r.prototype || oe;
|
|
429
|
+
return e === n;
|
|
430
|
+
}
|
|
431
|
+
function ee(e) {
|
|
432
|
+
if (e != null) {
|
|
433
|
+
try {
|
|
434
|
+
return s.call(e);
|
|
435
|
+
} catch {
|
|
436
|
+
}
|
|
437
|
+
try {
|
|
438
|
+
return e + "";
|
|
439
|
+
} catch {
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return "";
|
|
443
|
+
}
|
|
444
|
+
function zr(e) {
|
|
445
|
+
return rt(e, !1, !0);
|
|
446
|
+
}
|
|
447
|
+
function St(e, r) {
|
|
448
|
+
return e === r || e !== e && r !== r;
|
|
449
|
+
}
|
|
450
|
+
function Wr(e) {
|
|
451
|
+
return Yr(e) && c.call(e, "callee") && (!Yt.call(e, "callee") || f.call(e) == b);
|
|
452
|
+
}
|
|
453
|
+
var ot = Array.isArray;
|
|
454
|
+
function At(e) {
|
|
455
|
+
return e != null && Fr(e.length) && !Ot(e);
|
|
456
|
+
}
|
|
457
|
+
function Yr(e) {
|
|
458
|
+
return Mr(e) && At(e);
|
|
459
|
+
}
|
|
460
|
+
var Gr = Ft || Vr;
|
|
461
|
+
function Ot(e) {
|
|
462
|
+
var r = Pe(e) ? f.call(e) : "";
|
|
463
|
+
return r == C || r == R;
|
|
464
|
+
}
|
|
465
|
+
function Fr(e) {
|
|
466
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= g;
|
|
467
|
+
}
|
|
468
|
+
function Pe(e) {
|
|
469
|
+
var r = typeof e;
|
|
470
|
+
return !!e && (r == "object" || r == "function");
|
|
471
|
+
}
|
|
472
|
+
function Mr(e) {
|
|
473
|
+
return !!e && typeof e == "object";
|
|
474
|
+
}
|
|
475
|
+
function at(e) {
|
|
476
|
+
return At(e) ? _r(e) : Cr(e);
|
|
477
|
+
}
|
|
478
|
+
function Ur() {
|
|
479
|
+
return [];
|
|
480
|
+
}
|
|
481
|
+
function Vr() {
|
|
482
|
+
return !1;
|
|
483
|
+
}
|
|
484
|
+
t.exports = zr;
|
|
485
|
+
})($e, $e.exports);
|
|
486
|
+
var sn = $e.exports;
|
|
487
|
+
const Pt = /* @__PURE__ */ De(sn);
|
|
488
|
+
var cn = typeof F == "object" && F && F.Object === Object && F, dn = typeof self == "object" && self && self.Object === Object && self, un = cn || dn || Function("return this")(), fn = un.isFinite;
|
|
489
|
+
function hn(t) {
|
|
490
|
+
return typeof t == "number" && fn(t);
|
|
45
491
|
}
|
|
46
|
-
var
|
|
47
|
-
const
|
|
48
|
-
function
|
|
49
|
-
var
|
|
50
|
-
return !!
|
|
492
|
+
var bn = hn;
|
|
493
|
+
const gn = /* @__PURE__ */ De(bn);
|
|
494
|
+
function mn(t) {
|
|
495
|
+
var h = typeof t;
|
|
496
|
+
return !!t && (h == "object" || h == "function");
|
|
51
497
|
}
|
|
52
|
-
var
|
|
53
|
-
const
|
|
498
|
+
var _n = mn;
|
|
499
|
+
const pn = /* @__PURE__ */ De(_n), yn = v.tbody``, it = (t) => {
|
|
54
500
|
const {
|
|
55
|
-
__TYPE__:
|
|
56
|
-
className:
|
|
57
|
-
size:
|
|
58
|
-
color:
|
|
59
|
-
} =
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
className:
|
|
62
|
-
size:
|
|
63
|
-
color:
|
|
64
|
-
theme:
|
|
65
|
-
}, children:
|
|
501
|
+
__TYPE__: h = "TABLE_BODY",
|
|
502
|
+
className: l = "",
|
|
503
|
+
size: i = "small",
|
|
504
|
+
color: g = "primary"
|
|
505
|
+
} = t, b = M();
|
|
506
|
+
return /* @__PURE__ */ m(yn, { "data-tbody": !0, ...{
|
|
507
|
+
className: l,
|
|
508
|
+
size: i,
|
|
509
|
+
color: g,
|
|
510
|
+
theme: b
|
|
511
|
+
}, children: t.children });
|
|
66
512
|
};
|
|
67
|
-
|
|
68
|
-
__TYPE__:
|
|
513
|
+
it.propTypes = {
|
|
514
|
+
__TYPE__: o.string,
|
|
69
515
|
//----------------------------------------
|
|
70
|
-
className:
|
|
71
|
-
size:
|
|
72
|
-
color:
|
|
516
|
+
className: o.string,
|
|
517
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
518
|
+
color: o.oneOf([
|
|
73
519
|
"primary",
|
|
74
520
|
"secondary",
|
|
75
521
|
"success",
|
|
@@ -80,29 +526,29 @@ K.propTypes = {
|
|
|
80
526
|
"gray"
|
|
81
527
|
])
|
|
82
528
|
};
|
|
83
|
-
|
|
84
|
-
const
|
|
529
|
+
it.displayName = "TABLE_BODY";
|
|
530
|
+
const Tn = v.thead`
|
|
85
531
|
border-radius: 0.5rem 0.5rem 0 0;
|
|
86
|
-
`,
|
|
532
|
+
`, st = (t) => {
|
|
87
533
|
const {
|
|
88
|
-
__TYPE__:
|
|
89
|
-
className:
|
|
90
|
-
size:
|
|
91
|
-
color:
|
|
92
|
-
} =
|
|
93
|
-
return /* @__PURE__ */
|
|
94
|
-
className:
|
|
95
|
-
size:
|
|
96
|
-
color:
|
|
97
|
-
theme:
|
|
98
|
-
}, children:
|
|
534
|
+
__TYPE__: h = "TABLE_HEAD",
|
|
535
|
+
className: l = "",
|
|
536
|
+
size: i = "small",
|
|
537
|
+
color: g = "primary"
|
|
538
|
+
} = t, b = M();
|
|
539
|
+
return /* @__PURE__ */ m(Tn, { ...{
|
|
540
|
+
className: l,
|
|
541
|
+
size: i,
|
|
542
|
+
color: g,
|
|
543
|
+
theme: b
|
|
544
|
+
}, children: t.children });
|
|
99
545
|
};
|
|
100
|
-
|
|
101
|
-
__TYPE__:
|
|
546
|
+
st.propTypes = {
|
|
547
|
+
__TYPE__: o.string,
|
|
102
548
|
//----------------------------------------
|
|
103
|
-
className:
|
|
104
|
-
size:
|
|
105
|
-
color:
|
|
549
|
+
className: o.string,
|
|
550
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
551
|
+
color: o.oneOf([
|
|
106
552
|
"primary",
|
|
107
553
|
"secondary",
|
|
108
554
|
"success",
|
|
@@ -113,24 +559,24 @@ Q.propTypes = {
|
|
|
113
559
|
"gray"
|
|
114
560
|
])
|
|
115
561
|
};
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
${(
|
|
119
|
-
|
|
562
|
+
st.displayName = "TABLE_HEAD";
|
|
563
|
+
const En = v.tr`
|
|
564
|
+
${(t) => t.noBorder == !1 && `border-bottom: 1px solid ${S(
|
|
565
|
+
t.theme,
|
|
120
566
|
"TableRow",
|
|
121
567
|
null,
|
|
122
568
|
"enabled",
|
|
123
569
|
"border"
|
|
124
570
|
)};`}
|
|
125
|
-
${(
|
|
126
|
-
|
|
571
|
+
${(t) => t.noBorder == !1 && `border-left: 1px solid ${S(
|
|
572
|
+
t.theme,
|
|
127
573
|
"TableRow",
|
|
128
574
|
null,
|
|
129
575
|
"enabled",
|
|
130
576
|
"border"
|
|
131
577
|
)};`}
|
|
132
|
-
${(
|
|
133
|
-
|
|
578
|
+
${(t) => t.noBorder == !1 && `border-right: 1px solid ${S(
|
|
579
|
+
t.theme,
|
|
134
580
|
"TableRow",
|
|
135
581
|
null,
|
|
136
582
|
"enabled",
|
|
@@ -142,11 +588,11 @@ ${(e) => e.noBorder == !1 && `border-right: 1px solid ${f(
|
|
|
142
588
|
&:last-of-type > td:last-of-type {
|
|
143
589
|
border-radius: 0 0 0.5rem 0;
|
|
144
590
|
}
|
|
145
|
-
${(
|
|
591
|
+
${(t) => t.IsSelected !== !0 ? `
|
|
146
592
|
&:hover {
|
|
147
593
|
& > td {
|
|
148
|
-
background-color: ${
|
|
149
|
-
|
|
594
|
+
background-color: ${S(
|
|
595
|
+
t.theme,
|
|
150
596
|
"TableRow",
|
|
151
597
|
null,
|
|
152
598
|
"hover",
|
|
@@ -154,62 +600,62 @@ ${(e) => e.noBorder == !1 && `border-right: 1px solid ${f(
|
|
|
154
600
|
)};
|
|
155
601
|
}
|
|
156
602
|
}` : ""}
|
|
157
|
-
${(
|
|
603
|
+
${(t) => t.IsSelected === !0 ? `
|
|
158
604
|
& > td {
|
|
159
|
-
background-color: ${
|
|
160
|
-
|
|
605
|
+
background-color: ${S(
|
|
606
|
+
t.theme,
|
|
161
607
|
"TableRow",
|
|
162
|
-
|
|
608
|
+
t.color,
|
|
163
609
|
"active",
|
|
164
610
|
"background"
|
|
165
611
|
)};
|
|
166
612
|
}
|
|
167
613
|
` : ""}
|
|
168
|
-
`,
|
|
614
|
+
`, ct = (t) => {
|
|
169
615
|
const {
|
|
170
|
-
__TYPE__:
|
|
171
|
-
onRowClick:
|
|
616
|
+
__TYPE__: h = "TABLE_ROW",
|
|
617
|
+
onRowClick: l = () => {
|
|
172
618
|
},
|
|
173
|
-
RowData:
|
|
174
|
-
Index:
|
|
175
|
-
IsSelected:
|
|
176
|
-
noBorder:
|
|
619
|
+
RowData: i = {},
|
|
620
|
+
Index: g,
|
|
621
|
+
IsSelected: b = null,
|
|
622
|
+
noBorder: T = !1,
|
|
177
623
|
//----------------
|
|
178
|
-
className:
|
|
179
|
-
size:
|
|
180
|
-
color:
|
|
181
|
-
} =
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
|
|
624
|
+
className: E = "",
|
|
625
|
+
size: w = "small",
|
|
626
|
+
color: A = "primary"
|
|
627
|
+
} = t, C = M();
|
|
628
|
+
return /* @__PURE__ */ z(
|
|
629
|
+
En,
|
|
184
630
|
{
|
|
185
631
|
...{
|
|
186
|
-
className:
|
|
187
|
-
size:
|
|
188
|
-
color:
|
|
189
|
-
theme:
|
|
632
|
+
className: E,
|
|
633
|
+
size: w,
|
|
634
|
+
color: A,
|
|
635
|
+
theme: C
|
|
190
636
|
},
|
|
191
|
-
IsSelected:
|
|
192
|
-
key:
|
|
193
|
-
onClick: (
|
|
194
|
-
|
|
637
|
+
IsSelected: b,
|
|
638
|
+
key: g,
|
|
639
|
+
onClick: (O) => {
|
|
640
|
+
O.stopPropagation(), O.nativeEvent.stopImmediatePropagation(), l && l(O, i);
|
|
195
641
|
},
|
|
196
|
-
noBorder:
|
|
642
|
+
noBorder: T
|
|
197
643
|
},
|
|
198
|
-
|
|
644
|
+
t.children
|
|
199
645
|
);
|
|
200
646
|
};
|
|
201
|
-
|
|
202
|
-
__TYPE__:
|
|
647
|
+
ct.propTypes = {
|
|
648
|
+
__TYPE__: o.string,
|
|
203
649
|
//----------------------------------------
|
|
204
|
-
onRowClick:
|
|
205
|
-
RowData:
|
|
650
|
+
onRowClick: o.func,
|
|
651
|
+
RowData: o.object,
|
|
206
652
|
//----------------------------------------
|
|
207
|
-
IsSelected:
|
|
208
|
-
noBorder:
|
|
653
|
+
IsSelected: o.bool,
|
|
654
|
+
noBorder: o.bool,
|
|
209
655
|
//----------------------------------------
|
|
210
|
-
className:
|
|
211
|
-
size:
|
|
212
|
-
color:
|
|
656
|
+
className: o.string,
|
|
657
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
658
|
+
color: o.oneOf([
|
|
213
659
|
"primary",
|
|
214
660
|
"secondary",
|
|
215
661
|
"success",
|
|
@@ -220,111 +666,111 @@ Z.propTypes = {
|
|
|
220
666
|
"gray"
|
|
221
667
|
])
|
|
222
668
|
};
|
|
223
|
-
|
|
224
|
-
var
|
|
225
|
-
function
|
|
226
|
-
return
|
|
669
|
+
ct.displayName = "TABLE_ROW";
|
|
670
|
+
var wn = "[object AsyncFunction]", Cn = "[object Function]", Sn = "[object GeneratorFunction]", An = "[object Null]", On = "[object Proxy]", Ln = "[object Undefined]", Rn = typeof F == "object" && F && F.Object === Object && F, vn = typeof self == "object" && self && self.Object === Object && self, In = Rn || vn || Function("return this")(), Dt = Object.prototype, Hn = Dt.hasOwnProperty, kt = Dt.toString, Bt = In.Symbol, te = Bt ? Bt.toStringTag : void 0;
|
|
671
|
+
function xn(t) {
|
|
672
|
+
return t == null ? t === void 0 ? Ln : An : te && te in Object(t) ? Pn(t) : Bn(t);
|
|
227
673
|
}
|
|
228
|
-
function
|
|
229
|
-
var
|
|
674
|
+
function Pn(t) {
|
|
675
|
+
var h = Hn.call(t, te), l = t[te];
|
|
230
676
|
try {
|
|
231
|
-
|
|
232
|
-
var
|
|
677
|
+
t[te] = void 0;
|
|
678
|
+
var i = !0;
|
|
233
679
|
} catch {
|
|
234
680
|
}
|
|
235
|
-
var
|
|
236
|
-
return
|
|
681
|
+
var g = kt.call(t);
|
|
682
|
+
return i && (h ? t[te] = l : delete t[te]), g;
|
|
237
683
|
}
|
|
238
|
-
function
|
|
239
|
-
return
|
|
684
|
+
function Bn(t) {
|
|
685
|
+
return kt.call(t);
|
|
240
686
|
}
|
|
241
|
-
function
|
|
242
|
-
if (
|
|
687
|
+
function jn(t) {
|
|
688
|
+
if (!$n(t))
|
|
243
689
|
return !1;
|
|
244
|
-
var
|
|
245
|
-
return
|
|
690
|
+
var h = xn(t);
|
|
691
|
+
return h == Cn || h == Sn || h == wn || h == On;
|
|
246
692
|
}
|
|
247
|
-
function
|
|
248
|
-
var
|
|
249
|
-
return
|
|
693
|
+
function $n(t) {
|
|
694
|
+
var h = typeof t;
|
|
695
|
+
return t != null && (h == "object" || h == "function");
|
|
250
696
|
}
|
|
251
|
-
var
|
|
252
|
-
const
|
|
697
|
+
var Nn = jn;
|
|
698
|
+
const Dn = /* @__PURE__ */ De(Nn), kn = v.td`
|
|
253
699
|
white-space: nowrap;
|
|
254
700
|
overflow: hidden;
|
|
255
701
|
text-overflow: ellipsis;
|
|
256
|
-
width: ${(
|
|
702
|
+
width: ${(t) => t.width};
|
|
257
703
|
padding: 0.875rem 1.5rem;
|
|
258
704
|
|
|
259
|
-
background-color: ${(
|
|
705
|
+
background-color: ${(t) => S(t.theme, "TableRow", null, "enabled", "background")};
|
|
260
706
|
|
|
261
|
-
${(
|
|
707
|
+
${(t) => t.bgColor}
|
|
262
708
|
|
|
263
|
-
${(
|
|
264
|
-
`,
|
|
709
|
+
${(t) => Ne(t.theme, "TableCell", t.size, "enabled")};
|
|
710
|
+
`, dt = (t) => {
|
|
265
711
|
const {
|
|
266
|
-
__TYPE__:
|
|
267
|
-
Column:
|
|
268
|
-
RowData:
|
|
269
|
-
Index:
|
|
270
|
-
EnableSelection:
|
|
271
|
-
EnableRowHighlight:
|
|
272
|
-
GetRowHighlightColor:
|
|
712
|
+
__TYPE__: h = "TABLE_CELL",
|
|
713
|
+
Column: l = {},
|
|
714
|
+
RowData: i = {},
|
|
715
|
+
Index: g = 0,
|
|
716
|
+
EnableSelection: b = !1,
|
|
717
|
+
EnableRowHighlight: T = !1,
|
|
718
|
+
GetRowHighlightColor: E = () => "",
|
|
273
719
|
//----------------
|
|
274
|
-
className:
|
|
275
|
-
size:
|
|
276
|
-
color:
|
|
277
|
-
} =
|
|
278
|
-
className:
|
|
279
|
-
size:
|
|
280
|
-
color:
|
|
281
|
-
theme:
|
|
282
|
-
},
|
|
283
|
-
const
|
|
284
|
-
return
|
|
285
|
-
},
|
|
286
|
-
var
|
|
287
|
-
return
|
|
288
|
-
background-color: ${
|
|
720
|
+
className: w = "",
|
|
721
|
+
size: A = "small",
|
|
722
|
+
color: C = "primary"
|
|
723
|
+
} = t, R = M(), y = {
|
|
724
|
+
className: w,
|
|
725
|
+
size: A,
|
|
726
|
+
color: C,
|
|
727
|
+
theme: R
|
|
728
|
+
}, O = (d) => {
|
|
729
|
+
const H = new Option().style;
|
|
730
|
+
return H.color = d, H.color !== "";
|
|
731
|
+
}, W = () => l && l.width ? l.width + "%" : "auto", Y = () => {
|
|
732
|
+
var d = E(i);
|
|
733
|
+
return T === !0 && O(d) ? `
|
|
734
|
+
background-color: ${d};
|
|
289
735
|
` : "";
|
|
290
|
-
},
|
|
291
|
-
if (
|
|
292
|
-
var
|
|
293
|
-
if (
|
|
736
|
+
}, _ = () => {
|
|
737
|
+
if (l.render && Dn(l.render)) {
|
|
738
|
+
var d = l.render(i);
|
|
739
|
+
if (qr(d)) return d;
|
|
294
740
|
console.error(
|
|
295
|
-
`${
|
|
741
|
+
`${l.id}/${l.accessor}: invalid render function.`
|
|
296
742
|
);
|
|
297
743
|
}
|
|
298
|
-
return
|
|
299
|
-
`${
|
|
300
|
-
),
|
|
744
|
+
return tn(l.accessor) && console.error(
|
|
745
|
+
`${l.index}: accessor property is required when the render function is not suplied`
|
|
746
|
+
), i[l.accessor];
|
|
301
747
|
};
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
|
|
748
|
+
return /* @__PURE__ */ z(
|
|
749
|
+
kn,
|
|
304
750
|
{
|
|
305
|
-
...
|
|
306
|
-
bgColor:
|
|
307
|
-
selection:
|
|
308
|
-
width:
|
|
309
|
-
key:
|
|
310
|
-
title:
|
|
751
|
+
...y,
|
|
752
|
+
bgColor: Y(),
|
|
753
|
+
selection: b,
|
|
754
|
+
width: W(),
|
|
755
|
+
key: g,
|
|
756
|
+
title: i[l.accessor]
|
|
311
757
|
},
|
|
312
|
-
|
|
758
|
+
_()
|
|
313
759
|
);
|
|
314
760
|
};
|
|
315
|
-
|
|
316
|
-
__TYPE__:
|
|
761
|
+
dt.propTypes = {
|
|
762
|
+
__TYPE__: o.string,
|
|
317
763
|
//----------------------------------------
|
|
318
|
-
Column:
|
|
319
|
-
RowData:
|
|
320
|
-
Index:
|
|
321
|
-
EnableSelection:
|
|
322
|
-
EnableRowHighlight:
|
|
323
|
-
GetRowHighlightColor:
|
|
764
|
+
Column: o.object,
|
|
765
|
+
RowData: o.object,
|
|
766
|
+
Index: o.number,
|
|
767
|
+
EnableSelection: o.bool,
|
|
768
|
+
EnableRowHighlight: o.bool,
|
|
769
|
+
GetRowHighlightColor: o.func,
|
|
324
770
|
//----------------------------------------
|
|
325
|
-
className:
|
|
326
|
-
size:
|
|
327
|
-
color:
|
|
771
|
+
className: o.string,
|
|
772
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
773
|
+
color: o.oneOf([
|
|
328
774
|
"primary",
|
|
329
775
|
"secondary",
|
|
330
776
|
"success",
|
|
@@ -335,69 +781,69 @@ ee.propTypes = {
|
|
|
335
781
|
"gray"
|
|
336
782
|
])
|
|
337
783
|
};
|
|
338
|
-
|
|
339
|
-
const
|
|
784
|
+
dt.displayName = "TABLE_CELL";
|
|
785
|
+
const zn = v.td`
|
|
340
786
|
padding: 0 0 0 1.25rem;
|
|
341
|
-
background-color: ${(
|
|
787
|
+
background-color: ${(t) => S(t.theme, "TableRow", null, "enabled", "background")};
|
|
342
788
|
|
|
343
|
-
width: ${(
|
|
344
|
-
${(
|
|
345
|
-
`,
|
|
789
|
+
width: ${(t) => t.width}%;
|
|
790
|
+
${(t) => t.bgColor}
|
|
791
|
+
`, ut = (t) => {
|
|
346
792
|
const {
|
|
347
|
-
__TYPE__:
|
|
348
|
-
RowData:
|
|
349
|
-
onSelectRow:
|
|
793
|
+
__TYPE__: h = "TABLE_SELECTION_CELL",
|
|
794
|
+
RowData: l = {},
|
|
795
|
+
onSelectRow: i = () => {
|
|
350
796
|
},
|
|
351
|
-
IsSelected:
|
|
352
|
-
Index:
|
|
353
|
-
EnableRowHighlight:
|
|
354
|
-
GetRowHighlightColor:
|
|
797
|
+
IsSelected: g = null,
|
|
798
|
+
Index: b = 0,
|
|
799
|
+
EnableRowHighlight: T = !1,
|
|
800
|
+
GetRowHighlightColor: E = () => "",
|
|
355
801
|
//----------------
|
|
356
|
-
className:
|
|
357
|
-
size:
|
|
358
|
-
color:
|
|
359
|
-
} =
|
|
360
|
-
className:
|
|
361
|
-
size:
|
|
362
|
-
color:
|
|
363
|
-
theme:
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
const
|
|
368
|
-
return
|
|
802
|
+
className: w = "",
|
|
803
|
+
size: A = "small",
|
|
804
|
+
color: C = "primary"
|
|
805
|
+
} = t, R = M(), y = {
|
|
806
|
+
className: w,
|
|
807
|
+
size: A,
|
|
808
|
+
color: C,
|
|
809
|
+
theme: R
|
|
810
|
+
}, O = (_, d) => {
|
|
811
|
+
i(_, l, g);
|
|
812
|
+
}, W = (_) => {
|
|
813
|
+
const d = new Option().style;
|
|
814
|
+
return d.color = _, d.color !== "";
|
|
369
815
|
};
|
|
370
|
-
return /* @__PURE__ */
|
|
371
|
-
|
|
816
|
+
return /* @__PURE__ */ z(
|
|
817
|
+
zn,
|
|
372
818
|
{
|
|
373
819
|
bgColor: (() => {
|
|
374
|
-
var
|
|
375
|
-
return
|
|
376
|
-
background-color: ${
|
|
820
|
+
var _ = E(l);
|
|
821
|
+
return T === !0 && W(_) ? `
|
|
822
|
+
background-color: ${_};
|
|
377
823
|
` : "";
|
|
378
824
|
})(),
|
|
379
|
-
...
|
|
380
|
-
key:
|
|
381
|
-
width:
|
|
825
|
+
...y,
|
|
826
|
+
key: b,
|
|
827
|
+
width: t.width
|
|
382
828
|
},
|
|
383
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ m($t, { id: b, checked: g, onChange: O })
|
|
384
830
|
);
|
|
385
831
|
};
|
|
386
|
-
|
|
387
|
-
__TYPE__:
|
|
832
|
+
ut.propTypes = {
|
|
833
|
+
__TYPE__: o.string,
|
|
388
834
|
//----------------------------------------
|
|
389
|
-
Column:
|
|
390
|
-
RowData:
|
|
391
|
-
onSelectRow:
|
|
392
|
-
Index:
|
|
393
|
-
SelectedData:
|
|
394
|
-
IsSelected:
|
|
395
|
-
EnableRowHighlight:
|
|
396
|
-
GetRowHighlightColor:
|
|
835
|
+
Column: o.object,
|
|
836
|
+
RowData: o.object,
|
|
837
|
+
onSelectRow: o.func,
|
|
838
|
+
Index: o.number,
|
|
839
|
+
SelectedData: o.array,
|
|
840
|
+
IsSelected: o.bool,
|
|
841
|
+
EnableRowHighlight: o.bool,
|
|
842
|
+
GetRowHighlightColor: o.func,
|
|
397
843
|
//----------------------------------------
|
|
398
|
-
className:
|
|
399
|
-
size:
|
|
400
|
-
color:
|
|
844
|
+
className: o.string,
|
|
845
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
846
|
+
color: o.oneOf([
|
|
401
847
|
"primary",
|
|
402
848
|
"secondary",
|
|
403
849
|
"success",
|
|
@@ -408,33 +854,33 @@ re.propTypes = {
|
|
|
408
854
|
"gray"
|
|
409
855
|
])
|
|
410
856
|
};
|
|
411
|
-
|
|
412
|
-
const
|
|
857
|
+
ut.displayName = "TABLE_SELECTION_CELL";
|
|
858
|
+
const Wn = v.tr`
|
|
413
859
|
border-radius: 0.5rem 0.5rem 0 0;
|
|
414
|
-
`,
|
|
860
|
+
`, ft = (t) => {
|
|
415
861
|
const {
|
|
416
|
-
__TYPE__:
|
|
417
|
-
Index:
|
|
862
|
+
__TYPE__: h = "TABLE_HEAD_ROW",
|
|
863
|
+
Index: l = 0,
|
|
418
864
|
//-------------
|
|
419
|
-
className:
|
|
420
|
-
size:
|
|
421
|
-
color:
|
|
422
|
-
} =
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
-
className:
|
|
425
|
-
size:
|
|
426
|
-
color:
|
|
427
|
-
theme:
|
|
428
|
-
}, key:
|
|
865
|
+
className: i = "",
|
|
866
|
+
size: g = "small",
|
|
867
|
+
color: b = "primary"
|
|
868
|
+
} = t, T = M();
|
|
869
|
+
return /* @__PURE__ */ z(Wn, { ...{
|
|
870
|
+
className: i,
|
|
871
|
+
size: g,
|
|
872
|
+
color: b,
|
|
873
|
+
theme: T
|
|
874
|
+
}, key: l }, t.children);
|
|
429
875
|
};
|
|
430
|
-
|
|
431
|
-
__TYPE__:
|
|
876
|
+
ft.propTypes = {
|
|
877
|
+
__TYPE__: o.string,
|
|
432
878
|
//----------------------------------------
|
|
433
|
-
Index:
|
|
879
|
+
Index: o.any,
|
|
434
880
|
//----------------------------------------
|
|
435
|
-
className:
|
|
436
|
-
size:
|
|
437
|
-
color:
|
|
881
|
+
className: o.string,
|
|
882
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
883
|
+
color: o.oneOf([
|
|
438
884
|
"primary",
|
|
439
885
|
"secondary",
|
|
440
886
|
"success",
|
|
@@ -445,20 +891,20 @@ te.propTypes = {
|
|
|
445
891
|
"gray"
|
|
446
892
|
])
|
|
447
893
|
};
|
|
448
|
-
|
|
449
|
-
const
|
|
894
|
+
ft.displayName = "TABLE_HEAD_ROW";
|
|
895
|
+
const Yn = v.th`
|
|
450
896
|
white-space: nowrap;
|
|
451
897
|
overflow: hidden;
|
|
452
898
|
text-overflow: ellipsis;
|
|
453
899
|
text-align: left;
|
|
454
900
|
transition: all 250ms ease;
|
|
455
901
|
padding: 0.875rem 1.5rem;
|
|
456
|
-
cursor: ${(
|
|
457
|
-
width: ${(
|
|
902
|
+
cursor: ${(t) => t.ordering ? "pointer" : "default"};
|
|
903
|
+
width: ${(t) => t.width};
|
|
458
904
|
|
|
459
905
|
&:hover {
|
|
460
|
-
${(
|
|
461
|
-
|
|
906
|
+
${(t) => t.ordering ? `background-color: ${S(
|
|
907
|
+
t.theme,
|
|
462
908
|
"TableHeadCell",
|
|
463
909
|
null,
|
|
464
910
|
"hover",
|
|
@@ -466,33 +912,33 @@ white-space: nowrap;
|
|
|
466
912
|
)};` : ""}
|
|
467
913
|
}
|
|
468
914
|
|
|
469
|
-
${(
|
|
470
|
-
|
|
915
|
+
${(t) => Ne(
|
|
916
|
+
t.theme,
|
|
471
917
|
"TableHeadCell",
|
|
472
|
-
|
|
918
|
+
t.size,
|
|
473
919
|
"enabled"
|
|
474
920
|
)};
|
|
475
921
|
|
|
476
|
-
color: ${(
|
|
922
|
+
color: ${(t) => S(t.theme, "TableHeadCell", null, "enabled", "text")}};
|
|
477
923
|
|
|
478
|
-
background-color: ${(
|
|
479
|
-
|
|
924
|
+
background-color: ${(t) => S(
|
|
925
|
+
t.theme,
|
|
480
926
|
"TableHeadCell",
|
|
481
927
|
null,
|
|
482
928
|
"enabled",
|
|
483
929
|
"background"
|
|
484
930
|
)}};
|
|
485
931
|
|
|
486
|
-
border-top: ${(
|
|
487
|
-
|
|
932
|
+
border-top: ${(t) => "1px solid " + S(
|
|
933
|
+
t.theme,
|
|
488
934
|
"TableHeadCell",
|
|
489
935
|
null,
|
|
490
936
|
"enabled",
|
|
491
937
|
"border"
|
|
492
938
|
)}};
|
|
493
939
|
|
|
494
|
-
border-bottom: ${(
|
|
495
|
-
|
|
940
|
+
border-bottom: ${(t) => "1px solid " + S(
|
|
941
|
+
t.theme,
|
|
496
942
|
"TableHeadCell",
|
|
497
943
|
null,
|
|
498
944
|
"enabled",
|
|
@@ -502,8 +948,8 @@ white-space: nowrap;
|
|
|
502
948
|
|
|
503
949
|
&:first-of-type {
|
|
504
950
|
border-radius: 0.5rem 0 0 0;
|
|
505
|
-
border-left: ${(
|
|
506
|
-
|
|
951
|
+
border-left: ${(t) => "1px solid " + S(
|
|
952
|
+
t.theme,
|
|
507
953
|
"TableHeadCell",
|
|
508
954
|
null,
|
|
509
955
|
"enabled",
|
|
@@ -513,116 +959,116 @@ white-space: nowrap;
|
|
|
513
959
|
|
|
514
960
|
&:last-of-type {
|
|
515
961
|
border-radius: 0 0.5rem 0 0;
|
|
516
|
-
border-right: ${(
|
|
517
|
-
|
|
962
|
+
border-right: ${(t) => "1px solid " + S(
|
|
963
|
+
t.theme,
|
|
518
964
|
"TableHeadCell",
|
|
519
965
|
null,
|
|
520
966
|
"enabled",
|
|
521
967
|
"border"
|
|
522
968
|
)}};
|
|
523
969
|
}
|
|
524
|
-
`,
|
|
970
|
+
`, Gn = v.div`
|
|
525
971
|
display: flex;
|
|
526
972
|
flex-direction: row;
|
|
527
973
|
align-items: center;
|
|
528
|
-
`,
|
|
974
|
+
`, Fn = v.span`
|
|
529
975
|
padding-right: 0.25rem;
|
|
530
976
|
white-space: nowrap;
|
|
531
977
|
overflow: hidden;
|
|
532
978
|
text-overflow: ellipsis;
|
|
533
979
|
|
|
534
|
-
color: ${(
|
|
535
|
-
|
|
980
|
+
color: ${(t) => S(
|
|
981
|
+
t.theme,
|
|
536
982
|
"TableHeadCell",
|
|
537
|
-
|
|
983
|
+
t.color,
|
|
538
984
|
"enabled",
|
|
539
985
|
"text"
|
|
540
986
|
)};
|
|
541
987
|
|
|
542
|
-
font-weight: ${(
|
|
543
|
-
|
|
988
|
+
font-weight: ${(t) => S(
|
|
989
|
+
t.theme,
|
|
544
990
|
"TableHeadCell",
|
|
545
|
-
|
|
991
|
+
t.color,
|
|
546
992
|
"enabled",
|
|
547
993
|
"fontWeight"
|
|
548
994
|
)};
|
|
549
|
-
`,
|
|
995
|
+
`, Mn = v.span`
|
|
550
996
|
& i {
|
|
551
|
-
color: ${(
|
|
552
|
-
|
|
997
|
+
color: ${(t) => t.sort ? "transparent" : S(
|
|
998
|
+
t.theme,
|
|
553
999
|
"TableHeadCell",
|
|
554
|
-
|
|
1000
|
+
t.color,
|
|
555
1001
|
"enabled",
|
|
556
1002
|
"text"
|
|
557
1003
|
)};
|
|
558
1004
|
|
|
559
|
-
font-weight: ${(
|
|
560
|
-
|
|
1005
|
+
font-weight: ${(t) => S(
|
|
1006
|
+
t.theme,
|
|
561
1007
|
"TableHeadCell",
|
|
562
|
-
|
|
1008
|
+
t.color,
|
|
563
1009
|
"enabled",
|
|
564
1010
|
"fontWeight"
|
|
565
1011
|
)};
|
|
566
1012
|
}
|
|
567
|
-
`,
|
|
1013
|
+
`, ht = (t) => {
|
|
568
1014
|
const {
|
|
569
|
-
__TYPE__:
|
|
570
|
-
Column:
|
|
571
|
-
Ordering:
|
|
572
|
-
Index:
|
|
573
|
-
onColumnClick:
|
|
1015
|
+
__TYPE__: h = "TABLE_HEAD_CELL",
|
|
1016
|
+
Column: l = {},
|
|
1017
|
+
Ordering: i = {},
|
|
1018
|
+
Index: g = 0,
|
|
1019
|
+
onColumnClick: b = () => {
|
|
574
1020
|
},
|
|
575
|
-
EnableSelectAll:
|
|
576
|
-
EnableOrdering:
|
|
1021
|
+
EnableSelectAll: T = !1,
|
|
1022
|
+
EnableOrdering: E = !1,
|
|
577
1023
|
//-----------
|
|
578
|
-
className:
|
|
579
|
-
size:
|
|
580
|
-
color:
|
|
581
|
-
} =
|
|
582
|
-
className:
|
|
583
|
-
size:
|
|
584
|
-
color:
|
|
585
|
-
theme:
|
|
586
|
-
},
|
|
587
|
-
if (
|
|
588
|
-
let
|
|
589
|
-
return
|
|
1024
|
+
className: w = "",
|
|
1025
|
+
size: A = "small",
|
|
1026
|
+
color: C = "primary"
|
|
1027
|
+
} = t, R = M(), y = {
|
|
1028
|
+
className: w,
|
|
1029
|
+
size: A,
|
|
1030
|
+
color: C,
|
|
1031
|
+
theme: R
|
|
1032
|
+
}, O = () => {
|
|
1033
|
+
if (l.sortable === !0 && E === !0) {
|
|
1034
|
+
let _;
|
|
1035
|
+
return i && i.columnId === l.id ? (i.ascending === !0 && (_ = "angle-up"), i.descending === !0 && (_ = "angle-down"), i.ascending && i.descending && (_ = "sort")) : _ = "sort", /* @__PURE__ */ m(Mn, { ...y, sort: _ === "sort", children: /* @__PURE__ */ m(rn, { ...y, sizeInUnits: "14px", icon: _ }) });
|
|
590
1036
|
}
|
|
591
|
-
return /* @__PURE__ */
|
|
592
|
-
},
|
|
593
|
-
var
|
|
594
|
-
|
|
595
|
-
},
|
|
596
|
-
return /* @__PURE__ */
|
|
597
|
-
|
|
1037
|
+
return /* @__PURE__ */ m(x, {});
|
|
1038
|
+
}, W = (_) => {
|
|
1039
|
+
var d = { columnId: l.id, ascending: !1, descending: !0 };
|
|
1040
|
+
E === !0 && l.sortable === !0 && i && i.columnId === l.id && (i.ascending === !0 && (d.ascending = !1, d.descending = !1), i.descending === !0 && (d.ascending = !0, d.descending = !1), i.descending === !1 && i.ascending === !1 && (d.ascending = !1, d.descending = !0), b(_, l, d)), E === !0 && l.sortable === !0 && i && i.columnId !== l.id && b(_, l, d), (l.sortable !== !0 || E !== !0) && b(_, l);
|
|
1041
|
+
}, Y = () => l && l.width ? l.width + "%" : "auto";
|
|
1042
|
+
return /* @__PURE__ */ z(
|
|
1043
|
+
Yn,
|
|
598
1044
|
{
|
|
599
|
-
onClick:
|
|
600
|
-
...
|
|
601
|
-
selection:
|
|
602
|
-
ordering:
|
|
603
|
-
key:
|
|
604
|
-
width:
|
|
605
|
-
title:
|
|
1045
|
+
onClick: W,
|
|
1046
|
+
...y,
|
|
1047
|
+
selection: T,
|
|
1048
|
+
ordering: E === !0 && l.sortable === !0,
|
|
1049
|
+
key: g,
|
|
1050
|
+
width: Y(),
|
|
1051
|
+
title: l.displayName
|
|
606
1052
|
},
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
|
|
1053
|
+
/* @__PURE__ */ de(Gn, { ...y, children: [
|
|
1054
|
+
/* @__PURE__ */ m(Fn, { ...y, children: l.displayName }),
|
|
1055
|
+
O()
|
|
610
1056
|
] })
|
|
611
1057
|
);
|
|
612
1058
|
};
|
|
613
|
-
|
|
614
|
-
__TYPE__:
|
|
1059
|
+
ht.propTypes = {
|
|
1060
|
+
__TYPE__: o.string,
|
|
615
1061
|
//----------------------------------------
|
|
616
|
-
Columns:
|
|
617
|
-
Ordering:
|
|
618
|
-
Index:
|
|
619
|
-
EnableSelectAll:
|
|
620
|
-
EnableOrdering:
|
|
621
|
-
onColumnClick:
|
|
1062
|
+
Columns: o.object,
|
|
1063
|
+
Ordering: o.object,
|
|
1064
|
+
Index: o.any,
|
|
1065
|
+
EnableSelectAll: o.bool,
|
|
1066
|
+
EnableOrdering: o.bool,
|
|
1067
|
+
onColumnClick: o.func,
|
|
622
1068
|
//----------------------------------------
|
|
623
|
-
className:
|
|
624
|
-
size:
|
|
625
|
-
color:
|
|
1069
|
+
className: o.string,
|
|
1070
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
1071
|
+
color: o.oneOf([
|
|
626
1072
|
"primary",
|
|
627
1073
|
"secondary",
|
|
628
1074
|
"success",
|
|
@@ -633,28 +1079,28 @@ oe.propTypes = {
|
|
|
633
1079
|
"gray"
|
|
634
1080
|
])
|
|
635
1081
|
};
|
|
636
|
-
|
|
637
|
-
const
|
|
1082
|
+
ht.displayName = "TABLE_HEAD_CELL";
|
|
1083
|
+
const Un = v.th`
|
|
638
1084
|
text-align: left;
|
|
639
|
-
width: ${(
|
|
1085
|
+
width: ${(t) => t.width};
|
|
640
1086
|
padding-left: 1.25rem;
|
|
641
|
-
background-color: ${(
|
|
642
|
-
|
|
1087
|
+
background-color: ${(t) => S(
|
|
1088
|
+
t.theme,
|
|
643
1089
|
"TableHeadCell",
|
|
644
1090
|
null,
|
|
645
1091
|
"enabled",
|
|
646
1092
|
"background"
|
|
647
1093
|
)}};
|
|
648
|
-
border-top: ${(
|
|
649
|
-
|
|
1094
|
+
border-top: ${(t) => "1px solid " + S(
|
|
1095
|
+
t.theme,
|
|
650
1096
|
"TableHeadCell",
|
|
651
1097
|
null,
|
|
652
1098
|
"enabled",
|
|
653
1099
|
"border"
|
|
654
1100
|
)}};
|
|
655
1101
|
|
|
656
|
-
border-bottom: ${(
|
|
657
|
-
|
|
1102
|
+
border-bottom: ${(t) => "1px solid " + S(
|
|
1103
|
+
t.theme,
|
|
658
1104
|
"TableHeadCell",
|
|
659
1105
|
null,
|
|
660
1106
|
"enabled",
|
|
@@ -662,51 +1108,51 @@ const Fr = w.th`
|
|
|
662
1108
|
)}};
|
|
663
1109
|
|
|
664
1110
|
border-radius: 0.5rem 0 0 0;
|
|
665
|
-
`,
|
|
1111
|
+
`, bt = (t) => {
|
|
666
1112
|
const {
|
|
667
|
-
__TYPE__:
|
|
668
|
-
EnableSelectAll:
|
|
669
|
-
IsSelected:
|
|
670
|
-
Index:
|
|
671
|
-
onSelectAll:
|
|
1113
|
+
__TYPE__: h = "TABLE_HEAD_SELECTION_CELL",
|
|
1114
|
+
EnableSelectAll: l,
|
|
1115
|
+
IsSelected: i = null,
|
|
1116
|
+
Index: g = 0,
|
|
1117
|
+
onSelectAll: b,
|
|
672
1118
|
//----------------
|
|
673
|
-
className:
|
|
674
|
-
size:
|
|
675
|
-
color:
|
|
676
|
-
} =
|
|
677
|
-
return /* @__PURE__ */
|
|
678
|
-
|
|
1119
|
+
className: T = "",
|
|
1120
|
+
size: E = "small",
|
|
1121
|
+
color: w = "primary"
|
|
1122
|
+
} = t, A = M();
|
|
1123
|
+
return /* @__PURE__ */ z(
|
|
1124
|
+
Un,
|
|
679
1125
|
{
|
|
680
1126
|
...{
|
|
681
|
-
className:
|
|
682
|
-
size:
|
|
683
|
-
color:
|
|
684
|
-
theme:
|
|
1127
|
+
className: T,
|
|
1128
|
+
size: E,
|
|
1129
|
+
color: w,
|
|
1130
|
+
theme: A
|
|
685
1131
|
},
|
|
686
|
-
selection:
|
|
687
|
-
key:
|
|
688
|
-
width:
|
|
1132
|
+
selection: l,
|
|
1133
|
+
key: g,
|
|
1134
|
+
width: t.width
|
|
689
1135
|
},
|
|
690
|
-
|
|
691
|
-
|
|
1136
|
+
l && /* @__PURE__ */ m(
|
|
1137
|
+
$t,
|
|
692
1138
|
{
|
|
693
|
-
id:
|
|
694
|
-
checked:
|
|
695
|
-
onChange: (
|
|
1139
|
+
id: g,
|
|
1140
|
+
checked: i || !1,
|
|
1141
|
+
onChange: (R) => b(R, i)
|
|
696
1142
|
}
|
|
697
1143
|
)
|
|
698
1144
|
);
|
|
699
1145
|
};
|
|
700
|
-
|
|
701
|
-
__TYPE__:
|
|
1146
|
+
bt.propTypes = {
|
|
1147
|
+
__TYPE__: o.string,
|
|
702
1148
|
//----------------------------------------
|
|
703
|
-
Index:
|
|
704
|
-
IsSelected:
|
|
705
|
-
EnableSelectAll:
|
|
1149
|
+
Index: o.number,
|
|
1150
|
+
IsSelected: o.bool,
|
|
1151
|
+
EnableSelectAll: o.bool,
|
|
706
1152
|
//----------------------------------------
|
|
707
|
-
className:
|
|
708
|
-
size:
|
|
709
|
-
color:
|
|
1153
|
+
className: o.string,
|
|
1154
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
1155
|
+
color: o.oneOf([
|
|
710
1156
|
"primary",
|
|
711
1157
|
"secondary",
|
|
712
1158
|
"success",
|
|
@@ -717,69 +1163,69 @@ ne.propTypes = {
|
|
|
717
1163
|
"gray"
|
|
718
1164
|
])
|
|
719
1165
|
};
|
|
720
|
-
|
|
721
|
-
const
|
|
1166
|
+
bt.displayName = "TABLE_HEAD_SELECTION_CELL";
|
|
1167
|
+
const Vn = v.td`
|
|
722
1168
|
white-space: nowrap;
|
|
723
1169
|
overflow: hidden;
|
|
724
1170
|
text-overflow: ellipsis;
|
|
725
1171
|
padding: 0.25rem 0.125rem;
|
|
726
|
-
`,
|
|
727
|
-
width: ${(
|
|
1172
|
+
`, Kn = v.div`
|
|
1173
|
+
width: ${(t) => t.width};
|
|
728
1174
|
height: 100%;
|
|
729
1175
|
border-radius: 100px;
|
|
730
|
-
background-color: ${(
|
|
731
|
-
`,
|
|
1176
|
+
background-color: ${(t) => t.bgColor} !important;
|
|
1177
|
+
`, gt = (t) => {
|
|
732
1178
|
const {
|
|
733
|
-
__TYPE__:
|
|
734
|
-
RowData:
|
|
735
|
-
Index:
|
|
736
|
-
GetRowStatusIndicatorColor:
|
|
1179
|
+
__TYPE__: h = "TABLE_ROW_STATUS_INDICATOR_CELL",
|
|
1180
|
+
RowData: l = {},
|
|
1181
|
+
Index: i,
|
|
1182
|
+
GetRowStatusIndicatorColor: g,
|
|
737
1183
|
//----------------
|
|
738
|
-
className:
|
|
739
|
-
size:
|
|
740
|
-
color:
|
|
741
|
-
} =
|
|
742
|
-
className:
|
|
743
|
-
size:
|
|
744
|
-
color:
|
|
745
|
-
theme:
|
|
746
|
-
},
|
|
747
|
-
const
|
|
748
|
-
return
|
|
1184
|
+
className: b = "",
|
|
1185
|
+
size: T = "small",
|
|
1186
|
+
color: E = "Primary"
|
|
1187
|
+
} = t, w = M(), A = {
|
|
1188
|
+
className: b,
|
|
1189
|
+
size: T,
|
|
1190
|
+
color: E,
|
|
1191
|
+
theme: w
|
|
1192
|
+
}, C = () => "4px", R = (y) => {
|
|
1193
|
+
const O = new Option().style;
|
|
1194
|
+
return O.color = y, O.color !== "";
|
|
749
1195
|
};
|
|
750
|
-
return /* @__PURE__ */
|
|
751
|
-
|
|
1196
|
+
return /* @__PURE__ */ z(
|
|
1197
|
+
Vn,
|
|
752
1198
|
{
|
|
753
|
-
...
|
|
754
|
-
width:
|
|
755
|
-
key:
|
|
1199
|
+
...A,
|
|
1200
|
+
width: C(),
|
|
1201
|
+
key: i,
|
|
756
1202
|
bgColor: () => {
|
|
757
|
-
var
|
|
758
|
-
return
|
|
1203
|
+
var y = g(l);
|
|
1204
|
+
return R(y) ? y : xt.NONE;
|
|
759
1205
|
}
|
|
760
1206
|
},
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
-
|
|
1207
|
+
/* @__PURE__ */ m(
|
|
1208
|
+
Kn,
|
|
763
1209
|
{
|
|
764
|
-
...
|
|
765
|
-
width:
|
|
1210
|
+
...A,
|
|
1211
|
+
width: C(),
|
|
766
1212
|
bgColor: () => {
|
|
767
|
-
var
|
|
768
|
-
return
|
|
1213
|
+
var y = g(l);
|
|
1214
|
+
return R(y) ? y : xt.NONE;
|
|
769
1215
|
}
|
|
770
1216
|
}
|
|
771
1217
|
)
|
|
772
1218
|
);
|
|
773
1219
|
};
|
|
774
|
-
|
|
775
|
-
__TYPE__:
|
|
1220
|
+
gt.propTypes = {
|
|
1221
|
+
__TYPE__: o.string,
|
|
776
1222
|
//----------------------------------------
|
|
777
|
-
Column:
|
|
778
|
-
RowData:
|
|
1223
|
+
Column: o.object,
|
|
1224
|
+
RowData: o.object,
|
|
779
1225
|
//----------------------------------------
|
|
780
|
-
className:
|
|
781
|
-
size:
|
|
782
|
-
color:
|
|
1226
|
+
className: o.string,
|
|
1227
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
1228
|
+
color: o.oneOf([
|
|
783
1229
|
"primary",
|
|
784
1230
|
"secondary",
|
|
785
1231
|
"success",
|
|
@@ -790,21 +1236,21 @@ le.propTypes = {
|
|
|
790
1236
|
"gray"
|
|
791
1237
|
])
|
|
792
1238
|
};
|
|
793
|
-
|
|
794
|
-
const
|
|
1239
|
+
gt.displayName = "TABLE_ROW_STATUS_INDICATOR_CELL";
|
|
1240
|
+
const Xn = v.th`
|
|
795
1241
|
padding: 0.125rem;
|
|
796
1242
|
width: 8px;
|
|
797
1243
|
|
|
798
|
-
background-color: ${(
|
|
799
|
-
|
|
1244
|
+
background-color: ${(t) => S(
|
|
1245
|
+
t.theme,
|
|
800
1246
|
"TableHeadCell",
|
|
801
1247
|
null,
|
|
802
1248
|
"enabled",
|
|
803
1249
|
"background"
|
|
804
1250
|
)}};
|
|
805
1251
|
|
|
806
|
-
border-bottom: ${(
|
|
807
|
-
|
|
1252
|
+
border-bottom: ${(t) => "1px solid " + S(
|
|
1253
|
+
t.theme,
|
|
808
1254
|
"TableHeadCell",
|
|
809
1255
|
null,
|
|
810
1256
|
"enabled",
|
|
@@ -812,28 +1258,28 @@ const Vr = w.th`
|
|
|
812
1258
|
)}};
|
|
813
1259
|
|
|
814
1260
|
border-radius: 0.5rem 0 0 0;
|
|
815
|
-
`,
|
|
1261
|
+
`, mt = (t) => {
|
|
816
1262
|
const {
|
|
817
|
-
__TYPE__:
|
|
818
|
-
Index:
|
|
1263
|
+
__TYPE__: h = "TABLE_HEAD_ROW_STATUS_INDICATOR_CELL",
|
|
1264
|
+
Index: l,
|
|
819
1265
|
//-----------
|
|
820
|
-
className:
|
|
821
|
-
size:
|
|
822
|
-
color:
|
|
823
|
-
} =
|
|
824
|
-
return /* @__PURE__ */
|
|
825
|
-
className:
|
|
826
|
-
size:
|
|
827
|
-
color:
|
|
828
|
-
theme:
|
|
829
|
-
}, key:
|
|
1266
|
+
className: i = "",
|
|
1267
|
+
size: g = "small",
|
|
1268
|
+
color: b = "primary"
|
|
1269
|
+
} = t, T = M();
|
|
1270
|
+
return /* @__PURE__ */ z(Xn, { ...{
|
|
1271
|
+
className: i,
|
|
1272
|
+
size: g,
|
|
1273
|
+
color: b,
|
|
1274
|
+
theme: T
|
|
1275
|
+
}, key: l });
|
|
830
1276
|
};
|
|
831
|
-
|
|
832
|
-
__TYPE__:
|
|
1277
|
+
mt.propTypes = {
|
|
1278
|
+
__TYPE__: o.string,
|
|
833
1279
|
//----------------------------------------
|
|
834
|
-
className:
|
|
835
|
-
size:
|
|
836
|
-
color:
|
|
1280
|
+
className: o.string,
|
|
1281
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
1282
|
+
color: o.oneOf([
|
|
837
1283
|
"primary",
|
|
838
1284
|
"secondary",
|
|
839
1285
|
"success",
|
|
@@ -844,19 +1290,19 @@ ae.propTypes = {
|
|
|
844
1290
|
"gray"
|
|
845
1291
|
])
|
|
846
1292
|
};
|
|
847
|
-
|
|
848
|
-
const
|
|
1293
|
+
mt.displayName = "TABLE_HEAD_ROW_STATUS_INDICATOR_CELL";
|
|
1294
|
+
const qn = v.div`
|
|
849
1295
|
display: flex;
|
|
850
1296
|
flex-direction: column;
|
|
851
1297
|
padding: 0.625rem;
|
|
852
1298
|
margin: 0.125rem;
|
|
853
1299
|
border-radius: 0.125rem;
|
|
854
|
-
overflow-x: ${(
|
|
1300
|
+
overflow-x: ${(t) => t.isLoading ? "hidden" : "auto"};
|
|
855
1301
|
white-space: nowrap;
|
|
856
1302
|
position: relative;
|
|
857
1303
|
|
|
858
|
-
${(
|
|
859
|
-
`,
|
|
1304
|
+
${(t) => Ne(t.theme, "Table", t.size, "enabled")};
|
|
1305
|
+
`, Jn = v.div`
|
|
860
1306
|
position: absolute;
|
|
861
1307
|
top: 0px;
|
|
862
1308
|
right: 0px;
|
|
@@ -865,8 +1311,8 @@ const Mr = w.div`
|
|
|
865
1311
|
overflow: auto;
|
|
866
1312
|
z-index: 1000;
|
|
867
1313
|
opacity: 0.7;
|
|
868
|
-
background-color: ${(
|
|
869
|
-
|
|
1314
|
+
background-color: ${(t) => S(
|
|
1315
|
+
t.theme,
|
|
870
1316
|
"Background",
|
|
871
1317
|
"primary",
|
|
872
1318
|
"enabled",
|
|
@@ -876,28 +1322,28 @@ const Mr = w.div`
|
|
|
876
1322
|
display: flex;
|
|
877
1323
|
align-items: center;
|
|
878
1324
|
justify-content: center;
|
|
879
|
-
`,
|
|
1325
|
+
`, Zn = v.table`
|
|
880
1326
|
height: 1px;
|
|
881
|
-
width: ${(
|
|
1327
|
+
width: ${(t) => t.tableWidth};
|
|
882
1328
|
white-space: nowrap;
|
|
883
1329
|
border-collapse: collapse;
|
|
884
1330
|
border-radius: 0.5rem;
|
|
885
1331
|
border-style: hidden;
|
|
886
1332
|
table-layout: fixed;
|
|
887
|
-
${(
|
|
888
|
-
|
|
1333
|
+
${(t) => t.noBorder == !1 && `box-shadow: 0 0 0 0.0625rem ${S(
|
|
1334
|
+
t.theme,
|
|
889
1335
|
"Table",
|
|
890
1336
|
null,
|
|
891
1337
|
"enabled",
|
|
892
1338
|
"border"
|
|
893
1339
|
)};`}
|
|
894
|
-
`,
|
|
1340
|
+
`, Qn = v.span`
|
|
895
1341
|
display: flex;
|
|
896
1342
|
align-items: center;
|
|
897
1343
|
justify-content: center;
|
|
898
|
-
${(
|
|
1344
|
+
${(t) => Ne(t.theme, "Table", t.size, "enabled")};
|
|
899
1345
|
padding: 0.5rem;
|
|
900
|
-
`,
|
|
1346
|
+
`, fo = {
|
|
901
1347
|
TableContainer: "TABLE_CONTAINER",
|
|
902
1348
|
TableRow: "TABLE_ROW",
|
|
903
1349
|
TableCell: "TABLE_CELL",
|
|
@@ -913,400 +1359,400 @@ const Mr = w.div`
|
|
|
913
1359
|
TableLoader: "TABLE_LOADER",
|
|
914
1360
|
TableBody: "TABLE_BODY",
|
|
915
1361
|
TableHead: "TABLE_HEAD"
|
|
916
|
-
},
|
|
1362
|
+
}, zt = Jr((t, h) => {
|
|
917
1363
|
var {
|
|
918
|
-
__TYPE__:
|
|
919
|
-
EnableSelection:
|
|
920
|
-
EnableOrdering:
|
|
921
|
-
EnableSelectAll:
|
|
922
|
-
EnableLoader:
|
|
923
|
-
PreRenderedTableBody:
|
|
924
|
-
PreRenderedTableHead:
|
|
925
|
-
noBorder:
|
|
1364
|
+
__TYPE__: l = "TABLE",
|
|
1365
|
+
EnableSelection: i = !1,
|
|
1366
|
+
EnableOrdering: g = !1,
|
|
1367
|
+
EnableSelectAll: b = !1,
|
|
1368
|
+
EnableLoader: T = !1,
|
|
1369
|
+
PreRenderedTableBody: E = !1,
|
|
1370
|
+
PreRenderedTableHead: w = !1,
|
|
1371
|
+
noBorder: A = !1,
|
|
926
1372
|
//--------------------
|
|
927
|
-
EnableRowStatusIndicator:
|
|
928
|
-
EnableRowHighlight:
|
|
929
|
-
GetRowStatusIndicatorColor:
|
|
1373
|
+
EnableRowStatusIndicator: C = !1,
|
|
1374
|
+
EnableRowHighlight: R = !1,
|
|
1375
|
+
GetRowStatusIndicatorColor: y = () => {
|
|
930
1376
|
},
|
|
931
|
-
GetRowHighlightColor:
|
|
1377
|
+
GetRowHighlightColor: O = () => {
|
|
932
1378
|
},
|
|
933
1379
|
//--------------------
|
|
934
|
-
NoDataText:
|
|
935
|
-
NoDataComponent:
|
|
1380
|
+
NoDataText: W = "No data to show",
|
|
1381
|
+
NoDataComponent: Y = null,
|
|
936
1382
|
//--------------------
|
|
937
|
-
Loading:
|
|
1383
|
+
Loading: _ = !1,
|
|
938
1384
|
// TODO: add alignText prop to Column object
|
|
939
|
-
Columns:
|
|
940
|
-
Data:
|
|
941
|
-
SelectedData:
|
|
942
|
-
SelectedEntirePage:
|
|
943
|
-
RowIdentifier:
|
|
944
|
-
VisibilityPattern:
|
|
945
|
-
Ordering:
|
|
1385
|
+
Columns: d = [],
|
|
1386
|
+
Data: H = [],
|
|
1387
|
+
SelectedData: re = [],
|
|
1388
|
+
SelectedEntirePage: ue = !1,
|
|
1389
|
+
RowIdentifier: X = "id",
|
|
1390
|
+
VisibilityPattern: j = null,
|
|
1391
|
+
Ordering: _e = {},
|
|
946
1392
|
//--------------------
|
|
947
1393
|
onColumnClick: pe = () => {
|
|
948
1394
|
},
|
|
949
|
-
onRowClick:
|
|
1395
|
+
onRowClick: ye = () => {
|
|
950
1396
|
},
|
|
951
|
-
onSelectRow:
|
|
1397
|
+
onSelectRow: fe = () => {
|
|
952
1398
|
},
|
|
953
|
-
onSelectAll:
|
|
1399
|
+
onSelectAll: Te = () => {
|
|
954
1400
|
},
|
|
955
1401
|
//--------------------
|
|
956
|
-
tableWidth:
|
|
957
|
-
className:
|
|
958
|
-
style:
|
|
959
|
-
color:
|
|
960
|
-
size:
|
|
961
|
-
} =
|
|
962
|
-
const
|
|
963
|
-
theme:
|
|
964
|
-
color:
|
|
965
|
-
size:
|
|
1402
|
+
tableWidth: Ee = "100%",
|
|
1403
|
+
className: we = "",
|
|
1404
|
+
style: ke = {},
|
|
1405
|
+
color: Ce = "primary",
|
|
1406
|
+
size: ne = "small"
|
|
1407
|
+
} = t;
|
|
1408
|
+
const Se = M(), L = {
|
|
1409
|
+
theme: Se,
|
|
1410
|
+
color: Ce,
|
|
1411
|
+
size: ne
|
|
966
1412
|
};
|
|
967
|
-
|
|
968
|
-
|
|
1413
|
+
Zr(
|
|
1414
|
+
h,
|
|
969
1415
|
() => ({
|
|
970
|
-
getTableData: () =>
|
|
1416
|
+
getTableData: () => H
|
|
971
1417
|
}),
|
|
972
1418
|
[
|
|
973
|
-
|
|
1419
|
+
H
|
|
974
1420
|
// Update functions when certain state changes
|
|
975
1421
|
]
|
|
976
1422
|
);
|
|
977
|
-
const [
|
|
978
|
-
var
|
|
979
|
-
|
|
980
|
-
|
|
1423
|
+
const [ze, { width: u }] = ln();
|
|
1424
|
+
var We = en();
|
|
1425
|
+
je(() => {
|
|
1426
|
+
i === !0 && (X === null || X === "") && console.error(
|
|
981
1427
|
"Error: Selection is enabled but the 'RowIdentifier' is empty"
|
|
982
1428
|
);
|
|
983
|
-
}, []),
|
|
984
|
-
(
|
|
985
|
-
}, [
|
|
986
|
-
|
|
987
|
-
}, [
|
|
988
|
-
const
|
|
989
|
-
let
|
|
990
|
-
if (
|
|
991
|
-
var
|
|
992
|
-
if (
|
|
993
|
-
...
|
|
994
|
-
...
|
|
995
|
-
})),
|
|
996
|
-
var
|
|
997
|
-
|
|
998
|
-
...
|
|
999
|
-
width:
|
|
1429
|
+
}, []), je(() => {
|
|
1430
|
+
(d == null || d.length === 0) && console.error("Error: Columns array must have at least one item.");
|
|
1431
|
+
}, [d]), je(() => {
|
|
1432
|
+
j && (j.hasOwnProperty(U.XS.type) || console.error(q(U.XS.type)), j.hasOwnProperty(U.S.type) || console.error(q(U.S.type)), j.hasOwnProperty(U.M.type) || console.error(q(U.M.type)), j.hasOwnProperty(U.L.type) || console.error(q(U.L.type)), j.hasOwnProperty(U.XL.type) || console.error(q(U.XL.type)));
|
|
1433
|
+
}, [j]);
|
|
1434
|
+
const q = (s) => `Error: 'VisibilityPattern' missing property ${s}.`, $ = () => {
|
|
1435
|
+
let s = [];
|
|
1436
|
+
if (pn(j)) {
|
|
1437
|
+
var c = 0;
|
|
1438
|
+
if (s = j[We].map((f) => ({
|
|
1439
|
+
...d.find((N) => String(N.id) === String(f.id)),
|
|
1440
|
+
...f
|
|
1441
|
+
})), i === !0) {
|
|
1442
|
+
var c = J() / u * 100 / s.length;
|
|
1443
|
+
C === !0 && (c += 3 / u * 100), s = s.map((p) => ({
|
|
1444
|
+
...p,
|
|
1445
|
+
width: p.width - c
|
|
1000
1446
|
}));
|
|
1001
1447
|
}
|
|
1002
|
-
} else if (
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1005
|
-
...
|
|
1006
|
-
width:
|
|
1448
|
+
} else if (s = d.map((f) => ({ ...f })), i === !0) {
|
|
1449
|
+
var c = J() / u * 100 / s.length;
|
|
1450
|
+
C === !0 && (c += 3 / u * 100), s = s.map((p) => ({
|
|
1451
|
+
...p,
|
|
1452
|
+
width: p.width - c
|
|
1007
1453
|
}));
|
|
1008
1454
|
}
|
|
1009
|
-
return
|
|
1010
|
-
},
|
|
1011
|
-
if (
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1014
|
-
var
|
|
1015
|
-
|
|
1455
|
+
return s;
|
|
1456
|
+
}, Ae = (s, c) => {
|
|
1457
|
+
if (s && s.length > 0) {
|
|
1458
|
+
var f = 0, p = s.map((G) => G.width).reduce((G, ae) => G + ae);
|
|
1459
|
+
i === !0 && (f = J() / u * 100);
|
|
1460
|
+
var N = p + f;
|
|
1461
|
+
gn(N) && (N > 101 || N < 98) && console.error(`Error: Row ${c} - sum of column widths is ${N}.`);
|
|
1016
1462
|
}
|
|
1017
|
-
},
|
|
1018
|
-
let
|
|
1019
|
-
(
|
|
1463
|
+
}, Oe = (s) => {
|
|
1464
|
+
let c = {}, f = re.find(
|
|
1465
|
+
(p) => String(p[X]) === String(s[X])
|
|
1020
1466
|
);
|
|
1021
|
-
return
|
|
1022
|
-
},
|
|
1023
|
-
let
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1026
|
-
var
|
|
1027
|
-
onRowClick:
|
|
1028
|
-
onSelectRow:
|
|
1029
|
-
RowData:
|
|
1030
|
-
SelectedData:
|
|
1031
|
-
EnableSelection:
|
|
1032
|
-
Columns:
|
|
1033
|
-
ColumnsToRender:
|
|
1034
|
-
Index:
|
|
1035
|
-
key:
|
|
1036
|
-
...
|
|
1037
|
-
...
|
|
1038
|
-
},
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1467
|
+
return f != null ? c.IsSelected = !0 : c.IsSelected = !1, c;
|
|
1468
|
+
}, J = () => ne === "small" ? 37 : ne === "medium" ? 43 : ne === "large" ? 49 : 37, Ye = (s = {}, c) => {
|
|
1469
|
+
let f = {};
|
|
1470
|
+
var p = $();
|
|
1471
|
+
Ae(p, c), i === !0 && (f = Oe(s));
|
|
1472
|
+
var N = {
|
|
1473
|
+
onRowClick: ye,
|
|
1474
|
+
onSelectRow: fe,
|
|
1475
|
+
RowData: s,
|
|
1476
|
+
SelectedData: re,
|
|
1477
|
+
EnableSelection: i,
|
|
1478
|
+
Columns: d,
|
|
1479
|
+
ColumnsToRender: p,
|
|
1480
|
+
Index: c,
|
|
1481
|
+
key: c,
|
|
1482
|
+
...L,
|
|
1483
|
+
...f
|
|
1484
|
+
}, G = /* @__PURE__ */ de(x, { children: [
|
|
1485
|
+
C === !0 && Ie(s),
|
|
1486
|
+
i === !0 && Fe(f.IsSelected, s),
|
|
1487
|
+
p.map((ae, Je) => Ge(s, ae, Je, c, p))
|
|
1042
1488
|
] });
|
|
1043
|
-
return
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
) || /* @__PURE__ */
|
|
1048
|
-
},
|
|
1049
|
-
var
|
|
1050
|
-
RowData:
|
|
1051
|
-
Column:
|
|
1052
|
-
ColumnsToRender:
|
|
1053
|
-
Index:
|
|
1054
|
-
RowIndex:
|
|
1055
|
-
key:
|
|
1056
|
-
EnableSelection:
|
|
1057
|
-
RowIdentifier:
|
|
1058
|
-
EnableRowHighlight:
|
|
1059
|
-
GetRowHighlightColor:
|
|
1060
|
-
...
|
|
1489
|
+
return P(
|
|
1490
|
+
B("TABLE_ROW", t.children),
|
|
1491
|
+
N,
|
|
1492
|
+
G
|
|
1493
|
+
) || /* @__PURE__ */ z(ct, { ...N, key: c, noBorder: A }, G);
|
|
1494
|
+
}, Ge = (s, c, f, p, N) => {
|
|
1495
|
+
var G = {
|
|
1496
|
+
RowData: s,
|
|
1497
|
+
Column: c,
|
|
1498
|
+
ColumnsToRender: N,
|
|
1499
|
+
Index: f,
|
|
1500
|
+
RowIndex: p,
|
|
1501
|
+
key: f,
|
|
1502
|
+
EnableSelection: i,
|
|
1503
|
+
RowIdentifier: X,
|
|
1504
|
+
EnableRowHighlight: R,
|
|
1505
|
+
GetRowHighlightColor: O,
|
|
1506
|
+
...L
|
|
1061
1507
|
};
|
|
1062
|
-
return
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
) || /* @__PURE__ */
|
|
1066
|
-
},
|
|
1067
|
-
var
|
|
1068
|
-
SelectedData:
|
|
1069
|
-
RowData:
|
|
1070
|
-
onSelectRow:
|
|
1071
|
-
Index:
|
|
1072
|
-
key:
|
|
1073
|
-
IsSelected:
|
|
1074
|
-
EnableRowHighlight:
|
|
1075
|
-
GetRowHighlightColor:
|
|
1076
|
-
...
|
|
1508
|
+
return P(
|
|
1509
|
+
B("TABLE_CELL", t.children),
|
|
1510
|
+
G
|
|
1511
|
+
) || /* @__PURE__ */ z(dt, { ...G, key: f });
|
|
1512
|
+
}, Fe = (s, c, f = -1) => {
|
|
1513
|
+
var p = {
|
|
1514
|
+
SelectedData: re,
|
|
1515
|
+
RowData: c,
|
|
1516
|
+
onSelectRow: fe,
|
|
1517
|
+
Index: f,
|
|
1518
|
+
key: f,
|
|
1519
|
+
IsSelected: s,
|
|
1520
|
+
EnableRowHighlight: R,
|
|
1521
|
+
GetRowHighlightColor: O,
|
|
1522
|
+
...L
|
|
1077
1523
|
};
|
|
1078
|
-
return
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
) || /* @__PURE__ */
|
|
1082
|
-
|
|
1524
|
+
return P(
|
|
1525
|
+
B("TABLE_SELLECTION_CELL", t.children),
|
|
1526
|
+
p
|
|
1527
|
+
) || /* @__PURE__ */ z(
|
|
1528
|
+
ut,
|
|
1083
1529
|
{
|
|
1084
|
-
...
|
|
1085
|
-
key:
|
|
1086
|
-
width:
|
|
1530
|
+
...p,
|
|
1531
|
+
key: f,
|
|
1532
|
+
width: J() / u * 100
|
|
1087
1533
|
}
|
|
1088
1534
|
);
|
|
1089
|
-
},
|
|
1090
|
-
var
|
|
1091
|
-
Columns:
|
|
1092
|
-
...
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1535
|
+
}, Me = () => {
|
|
1536
|
+
var s = {
|
|
1537
|
+
Columns: d,
|
|
1538
|
+
...L
|
|
1539
|
+
}, c = /* @__PURE__ */ de(x, { children: [
|
|
1540
|
+
C === !0 && Ke(),
|
|
1541
|
+
i === !0 && Ue(),
|
|
1542
|
+
$().map((f, p) => Le(f, p))
|
|
1097
1543
|
] });
|
|
1098
|
-
return
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
) || /* @__PURE__ */
|
|
1103
|
-
},
|
|
1104
|
-
var
|
|
1105
|
-
Index:
|
|
1106
|
-
Column:
|
|
1107
|
-
Ordering:
|
|
1108
|
-
EnableOrdering:
|
|
1109
|
-
EnableSelectAll:
|
|
1544
|
+
return P(
|
|
1545
|
+
B("TABLE_HEAD_ROW", t.children),
|
|
1546
|
+
s,
|
|
1547
|
+
c
|
|
1548
|
+
) || /* @__PURE__ */ z(ft, { ...s, key: 0 }, c);
|
|
1549
|
+
}, Le = (s, c, f) => {
|
|
1550
|
+
var p = {
|
|
1551
|
+
Index: c,
|
|
1552
|
+
Column: s,
|
|
1553
|
+
Ordering: _e,
|
|
1554
|
+
EnableOrdering: g,
|
|
1555
|
+
EnableSelectAll: b,
|
|
1110
1556
|
onColumnClick: pe,
|
|
1111
|
-
ColumnsToRender:
|
|
1112
|
-
...
|
|
1557
|
+
ColumnsToRender: f,
|
|
1558
|
+
...L
|
|
1113
1559
|
};
|
|
1114
|
-
return
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
) || /* @__PURE__ */
|
|
1118
|
-
},
|
|
1119
|
-
var
|
|
1560
|
+
return P(
|
|
1561
|
+
B("TABLE_HEAD_CELL", t.children),
|
|
1562
|
+
p
|
|
1563
|
+
) || /* @__PURE__ */ z(ht, { ...p, key: c });
|
|
1564
|
+
}, Ue = () => {
|
|
1565
|
+
var s = {
|
|
1120
1566
|
Index: -1,
|
|
1121
|
-
IsSelected:
|
|
1122
|
-
onSelectAll:
|
|
1123
|
-
EnableSelectAll:
|
|
1124
|
-
...
|
|
1567
|
+
IsSelected: ue,
|
|
1568
|
+
onSelectAll: Te,
|
|
1569
|
+
EnableSelectAll: b,
|
|
1570
|
+
...L
|
|
1125
1571
|
};
|
|
1126
|
-
return
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
) || /* @__PURE__ */
|
|
1130
|
-
|
|
1572
|
+
return P(
|
|
1573
|
+
B("TABLE_HEAD_SELECTION_CELL", t.children),
|
|
1574
|
+
s
|
|
1575
|
+
) || /* @__PURE__ */ z(
|
|
1576
|
+
bt,
|
|
1131
1577
|
{
|
|
1132
|
-
...
|
|
1578
|
+
...s,
|
|
1133
1579
|
key: -1,
|
|
1134
|
-
width:
|
|
1580
|
+
width: J() / u * 100
|
|
1135
1581
|
}
|
|
1136
1582
|
);
|
|
1137
|
-
},
|
|
1138
|
-
Data:
|
|
1139
|
-
Columns:
|
|
1140
|
-
...
|
|
1141
|
-
}) || /* @__PURE__ */
|
|
1142
|
-
Data:
|
|
1143
|
-
Columns:
|
|
1144
|
-
...
|
|
1145
|
-
}) || /* @__PURE__ */
|
|
1146
|
-
|
|
1583
|
+
}, Ve = () => P(B("TABLE_HEADER", t.children), {
|
|
1584
|
+
Data: H,
|
|
1585
|
+
Columns: d,
|
|
1586
|
+
...L
|
|
1587
|
+
}) || /* @__PURE__ */ m(x, {}), Re = () => P(B("TABLE_FOOTER", t.children), {
|
|
1588
|
+
Data: H,
|
|
1589
|
+
Columns: d,
|
|
1590
|
+
...L
|
|
1591
|
+
}) || /* @__PURE__ */ m(x, {}), ve = () => P(
|
|
1592
|
+
B("TABLE_SPECIAL_LAST_ROW", t.children),
|
|
1147
1593
|
{
|
|
1148
|
-
Data:
|
|
1149
|
-
Columns:
|
|
1150
|
-
ColumnsToRender:
|
|
1151
|
-
Disabled:
|
|
1152
|
-
...
|
|
1594
|
+
Data: H,
|
|
1595
|
+
Columns: d,
|
|
1596
|
+
ColumnsToRender: $(),
|
|
1597
|
+
Disabled: _,
|
|
1598
|
+
...L
|
|
1153
1599
|
}
|
|
1154
|
-
) || /* @__PURE__ */
|
|
1155
|
-
if (
|
|
1156
|
-
var
|
|
1157
|
-
return
|
|
1600
|
+
) || /* @__PURE__ */ m(x, {}), he = () => {
|
|
1601
|
+
if (H == null || H && H.length === 0) {
|
|
1602
|
+
var s = $().length;
|
|
1603
|
+
return i === !0 && s++, C === !0 && s++, /* @__PURE__ */ m("tr", { children: /* @__PURE__ */ m("td", { colSpan: s, children: Y ? /* @__PURE__ */ m(Y, {}) : /* @__PURE__ */ m(Qn, { ...L, children: W }) }) });
|
|
1158
1604
|
}
|
|
1159
|
-
return /* @__PURE__ */
|
|
1160
|
-
},
|
|
1161
|
-
var
|
|
1162
|
-
...
|
|
1605
|
+
return /* @__PURE__ */ m(x, {});
|
|
1606
|
+
}, Ie = (s) => {
|
|
1607
|
+
var c = {
|
|
1608
|
+
...L,
|
|
1163
1609
|
key: -1,
|
|
1164
|
-
RowData:
|
|
1165
|
-
GetRowStatusIndicatorColor:
|
|
1610
|
+
RowData: s,
|
|
1611
|
+
GetRowStatusIndicatorColor: y
|
|
1166
1612
|
};
|
|
1167
|
-
return
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
) || /* @__PURE__ */
|
|
1171
|
-
},
|
|
1172
|
-
var
|
|
1173
|
-
...
|
|
1613
|
+
return C === !0 ? /* @__PURE__ */ m(x, { children: P(
|
|
1614
|
+
B("TABLE_ROW_STATUS_INDICATOR_CELL", t.children),
|
|
1615
|
+
c
|
|
1616
|
+
) || /* @__PURE__ */ m(gt, { ...c, noBorder: A }) }) : /* @__PURE__ */ m(x, {});
|
|
1617
|
+
}, Ke = () => {
|
|
1618
|
+
var s = {
|
|
1619
|
+
...L,
|
|
1174
1620
|
key: -1
|
|
1175
1621
|
};
|
|
1176
|
-
return
|
|
1177
|
-
|
|
1622
|
+
return C === !0 ? /* @__PURE__ */ m(x, { children: P(
|
|
1623
|
+
B(
|
|
1178
1624
|
"TABLE_HEAD_ROW_STATUS_INDICATOR_CELL",
|
|
1179
|
-
|
|
1625
|
+
t.children
|
|
1180
1626
|
),
|
|
1181
|
-
|
|
1182
|
-
) || /* @__PURE__ */
|
|
1183
|
-
},
|
|
1184
|
-
|
|
1627
|
+
s
|
|
1628
|
+
) || /* @__PURE__ */ m(mt, { ...s }) }) : /* @__PURE__ */ m(x, {});
|
|
1629
|
+
}, Xe = () => T === !0 && _ === !0 ? /* @__PURE__ */ m(x, { children: /* @__PURE__ */ m(Jn, { theme: Se, children: P(
|
|
1630
|
+
B("TABLE_LOADER", t.children),
|
|
1185
1631
|
{
|
|
1186
|
-
...
|
|
1187
|
-
Loading:
|
|
1632
|
+
...L,
|
|
1633
|
+
Loading: _
|
|
1188
1634
|
}
|
|
1189
|
-
) || /* @__PURE__ */
|
|
1190
|
-
var
|
|
1191
|
-
delete
|
|
1192
|
-
var
|
|
1193
|
-
|
|
1194
|
-
|
|
1635
|
+
) || /* @__PURE__ */ m(nn, { ...L }) }) }) : /* @__PURE__ */ m(x, {}), oe = () => {
|
|
1636
|
+
var s = Pt(t);
|
|
1637
|
+
delete s.__TYPE__;
|
|
1638
|
+
var c = /* @__PURE__ */ de(x, { children: [
|
|
1639
|
+
H.map((f, p) => Ye(f, p)),
|
|
1640
|
+
he()
|
|
1195
1641
|
] });
|
|
1196
|
-
return
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
) || /* @__PURE__ */
|
|
1201
|
-
},
|
|
1202
|
-
var
|
|
1203
|
-
delete
|
|
1204
|
-
var
|
|
1205
|
-
return
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
) || /* @__PURE__ */
|
|
1642
|
+
return P(
|
|
1643
|
+
B("TABLE_BODY", t.children),
|
|
1644
|
+
s,
|
|
1645
|
+
E ? c : void 0
|
|
1646
|
+
) || /* @__PURE__ */ m(it, { ...L, children: c });
|
|
1647
|
+
}, be = () => {
|
|
1648
|
+
var s = Pt(t);
|
|
1649
|
+
delete s.__TYPE__;
|
|
1650
|
+
var c = /* @__PURE__ */ m(x, { children: Me() });
|
|
1651
|
+
return P(
|
|
1652
|
+
B("TABLE_HEAD", t.children),
|
|
1653
|
+
s,
|
|
1654
|
+
w ? c : null
|
|
1655
|
+
) || /* @__PURE__ */ m(st, { ...L, children: c });
|
|
1210
1656
|
};
|
|
1211
1657
|
return (() => {
|
|
1212
|
-
var
|
|
1213
|
-
className:
|
|
1214
|
-
Loading:
|
|
1215
|
-
...
|
|
1216
|
-
},
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
/* @__PURE__ */
|
|
1220
|
-
|
|
1658
|
+
var s = {
|
|
1659
|
+
className: we,
|
|
1660
|
+
Loading: _,
|
|
1661
|
+
...L
|
|
1662
|
+
}, c = /* @__PURE__ */ de(x, { children: [
|
|
1663
|
+
Xe(),
|
|
1664
|
+
Ve(),
|
|
1665
|
+
/* @__PURE__ */ de(
|
|
1666
|
+
Zn,
|
|
1221
1667
|
{
|
|
1222
|
-
...
|
|
1223
|
-
width:
|
|
1668
|
+
...L,
|
|
1669
|
+
width: Ee || "100%",
|
|
1224
1670
|
"data-table": !0,
|
|
1225
|
-
ref:
|
|
1226
|
-
noBorder:
|
|
1671
|
+
ref: ze,
|
|
1672
|
+
noBorder: A,
|
|
1227
1673
|
children: [
|
|
1228
|
-
|
|
1229
|
-
|
|
1674
|
+
be(),
|
|
1675
|
+
oe()
|
|
1230
1676
|
]
|
|
1231
1677
|
}
|
|
1232
1678
|
),
|
|
1233
|
-
|
|
1234
|
-
|
|
1679
|
+
ve(),
|
|
1680
|
+
Re()
|
|
1235
1681
|
] });
|
|
1236
|
-
return
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
) || /* @__PURE__ */
|
|
1241
|
-
|
|
1682
|
+
return P(
|
|
1683
|
+
B("TABLE_CONTAINER", t.children),
|
|
1684
|
+
s,
|
|
1685
|
+
c
|
|
1686
|
+
) || /* @__PURE__ */ m(
|
|
1687
|
+
qn,
|
|
1242
1688
|
{
|
|
1243
|
-
...
|
|
1244
|
-
isLoading:
|
|
1245
|
-
children:
|
|
1689
|
+
...s,
|
|
1690
|
+
isLoading: T ? _ : !1,
|
|
1691
|
+
children: c
|
|
1246
1692
|
}
|
|
1247
1693
|
);
|
|
1248
1694
|
})();
|
|
1249
1695
|
});
|
|
1250
|
-
|
|
1696
|
+
zt.propTypes = {
|
|
1251
1697
|
/**
|
|
1252
1698
|
* This property determines where the component is rendered.
|
|
1253
1699
|
* Should not be overridden!
|
|
1254
1700
|
*/
|
|
1255
|
-
__TYPE__:
|
|
1701
|
+
__TYPE__: o.string,
|
|
1256
1702
|
/**
|
|
1257
1703
|
*
|
|
1258
1704
|
*/
|
|
1259
|
-
ID:
|
|
1705
|
+
ID: o.string,
|
|
1260
1706
|
//----------------------------------------
|
|
1261
|
-
noBorder:
|
|
1707
|
+
noBorder: o.bool,
|
|
1262
1708
|
/**
|
|
1263
1709
|
* Show a selection checkbox in the first cell of every row.
|
|
1264
1710
|
* Value of the checkbox is determined by the `SelectedData` property.
|
|
1265
1711
|
*/
|
|
1266
|
-
EnableSelection:
|
|
1712
|
+
EnableSelection: o.bool,
|
|
1267
1713
|
/**
|
|
1268
1714
|
* Show ordering arrows in header cells.
|
|
1269
1715
|
*/
|
|
1270
|
-
EnableOrdering:
|
|
1716
|
+
EnableOrdering: o.bool,
|
|
1271
1717
|
/**
|
|
1272
1718
|
* Show a spinner with backdrop on top of the table when `Loading` is set to `true`.
|
|
1273
1719
|
*/
|
|
1274
|
-
EnableLoader:
|
|
1720
|
+
EnableLoader: o.bool,
|
|
1275
1721
|
/**
|
|
1276
1722
|
* Show a selection checkbox in the first cell of the table header.
|
|
1277
1723
|
* Value of the checkbox is determined by the `SelectedEntirePage` property.
|
|
1278
1724
|
*/
|
|
1279
|
-
EnableSelectAll:
|
|
1725
|
+
EnableSelectAll: o.bool,
|
|
1280
1726
|
/**
|
|
1281
1727
|
* Show a special status indicator cell on the left edge of the row
|
|
1282
1728
|
*/
|
|
1283
|
-
EnableRowStatusIndicator:
|
|
1729
|
+
EnableRowStatusIndicator: o.bool,
|
|
1284
1730
|
/**
|
|
1285
1731
|
*
|
|
1286
1732
|
*/
|
|
1287
|
-
EnableRowHighlight:
|
|
1733
|
+
EnableRowHighlight: o.bool,
|
|
1288
1734
|
/**
|
|
1289
1735
|
*
|
|
1290
1736
|
*/
|
|
1291
|
-
GetRowStatusIndicatorColor:
|
|
1737
|
+
GetRowStatusIndicatorColor: o.func,
|
|
1292
1738
|
/**
|
|
1293
1739
|
*
|
|
1294
1740
|
*/
|
|
1295
|
-
GetRowHighlightColor:
|
|
1741
|
+
GetRowHighlightColor: o.func,
|
|
1296
1742
|
//----------------------------------------
|
|
1297
1743
|
/**
|
|
1298
1744
|
* Specify the text that is shown when there are 0 rows in the `Data`.
|
|
1299
1745
|
*/
|
|
1300
|
-
NoDataText:
|
|
1746
|
+
NoDataText: o.string,
|
|
1301
1747
|
/**
|
|
1302
1748
|
* React component to show instead of the `NoDataText`
|
|
1303
1749
|
*/
|
|
1304
|
-
NoDataComponet:
|
|
1750
|
+
NoDataComponet: o.node,
|
|
1305
1751
|
//--------------------
|
|
1306
1752
|
/**
|
|
1307
1753
|
* Disables some events and actions when set to `true`. Also triggers the spinner if `EnableLoader` is set to `true`.
|
|
1308
1754
|
*/
|
|
1309
|
-
Loading:
|
|
1755
|
+
Loading: o.bool,
|
|
1310
1756
|
/**
|
|
1311
1757
|
* Defines the table columns.
|
|
1312
1758
|
* @param id - Column identifier
|
|
@@ -1316,37 +1762,37 @@ _e.propTypes = {
|
|
|
1316
1762
|
* @param sortable - Can be sorted
|
|
1317
1763
|
*
|
|
1318
1764
|
*/
|
|
1319
|
-
Columns:
|
|
1765
|
+
Columns: o.arrayOf(o.object),
|
|
1320
1766
|
/**
|
|
1321
1767
|
* Defines the data displayed in each row.
|
|
1322
1768
|
*/
|
|
1323
|
-
Data:
|
|
1769
|
+
Data: o.arrayOf(o.object),
|
|
1324
1770
|
/**
|
|
1325
1771
|
* Define the selected data.
|
|
1326
1772
|
* @param id - Column identifier (mandatory field)
|
|
1327
1773
|
*/
|
|
1328
|
-
SelectedData:
|
|
1774
|
+
SelectedData: o.arrayOf(o.object),
|
|
1329
1775
|
/**
|
|
1330
1776
|
* Value of the `SelectAll` checkbox.
|
|
1331
1777
|
*/
|
|
1332
|
-
SelectedEntirePage:
|
|
1778
|
+
SelectedEntirePage: o.bool,
|
|
1333
1779
|
/**
|
|
1334
1780
|
* Defines which field in a data object is the row identifier.
|
|
1335
1781
|
*/
|
|
1336
|
-
RowIdentifier:
|
|
1782
|
+
RowIdentifier: o.string,
|
|
1337
1783
|
/**
|
|
1338
1784
|
* An object that defines the width and order of columns for different screen sizes.
|
|
1339
1785
|
* (`XS`,`S`,`M`,`L`,`XL`)
|
|
1340
1786
|
*/
|
|
1341
|
-
VisibilityPattern:
|
|
1787
|
+
VisibilityPattern: o.object,
|
|
1342
1788
|
/**
|
|
1343
1789
|
* Describe how the data is ordered.
|
|
1344
1790
|
* @param columnId - Column identifier, maps to the id on the Column object
|
|
1345
1791
|
*/
|
|
1346
|
-
Ordering:
|
|
1347
|
-
columnId:
|
|
1348
|
-
ascending:
|
|
1349
|
-
descending:
|
|
1792
|
+
Ordering: o.shape({
|
|
1793
|
+
columnId: o.number,
|
|
1794
|
+
ascending: o.bool,
|
|
1795
|
+
descending: o.bool
|
|
1350
1796
|
}),
|
|
1351
1797
|
//----------------------------------------
|
|
1352
1798
|
/**
|
|
@@ -1355,43 +1801,43 @@ _e.propTypes = {
|
|
|
1355
1801
|
* @param column - column definition
|
|
1356
1802
|
* @param ordering - updated ordering object, or undefined if ordering is not enabled or the column is not sortable
|
|
1357
1803
|
*/
|
|
1358
|
-
onColumnClick:
|
|
1804
|
+
onColumnClick: o.func,
|
|
1359
1805
|
/**
|
|
1360
1806
|
* Triggered on table row click.
|
|
1361
1807
|
* @param event - event object
|
|
1362
1808
|
* @param rowData - row data
|
|
1363
1809
|
*/
|
|
1364
|
-
onRowClick:
|
|
1810
|
+
onRowClick: o.func,
|
|
1365
1811
|
/**
|
|
1366
1812
|
* Triggered on selection checkbox click.
|
|
1367
1813
|
* @param event - event object
|
|
1368
1814
|
* @param rowData - row data
|
|
1369
1815
|
* @param isSelected - the value of selection checkbox
|
|
1370
1816
|
*/
|
|
1371
|
-
onSelectRow:
|
|
1817
|
+
onSelectRow: o.func,
|
|
1372
1818
|
/**
|
|
1373
1819
|
* Triggered on select all checkbox click.
|
|
1374
1820
|
* @param event - event object
|
|
1375
1821
|
* @param isSelected - the value of select all checkbox
|
|
1376
1822
|
*/
|
|
1377
|
-
onSelectAll:
|
|
1823
|
+
onSelectAll: o.func,
|
|
1378
1824
|
//----------------------------------------
|
|
1379
1825
|
/**
|
|
1380
1826
|
* `width` applied to html table.
|
|
1381
1827
|
*/
|
|
1382
|
-
tableWidth:
|
|
1828
|
+
tableWidth: o.string,
|
|
1383
1829
|
/**
|
|
1384
1830
|
* `className` applied to the component container.
|
|
1385
1831
|
*/
|
|
1386
|
-
className:
|
|
1832
|
+
className: o.string,
|
|
1387
1833
|
/**
|
|
1388
1834
|
* Defines size of the component (padding, margin, font etc.).
|
|
1389
1835
|
*/
|
|
1390
|
-
size:
|
|
1836
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
1391
1837
|
/**
|
|
1392
1838
|
* Defines the palette color for the component.
|
|
1393
1839
|
*/
|
|
1394
|
-
color:
|
|
1840
|
+
color: o.oneOf([
|
|
1395
1841
|
"primary",
|
|
1396
1842
|
"secondary",
|
|
1397
1843
|
"success",
|
|
@@ -1402,8 +1848,8 @@ _e.propTypes = {
|
|
|
1402
1848
|
"gray"
|
|
1403
1849
|
])
|
|
1404
1850
|
};
|
|
1405
|
-
|
|
1851
|
+
zt.displayName = "TABLE";
|
|
1406
1852
|
export {
|
|
1407
|
-
|
|
1408
|
-
|
|
1853
|
+
fo as TableComponentOverrides,
|
|
1854
|
+
zt as default
|
|
1409
1855
|
};
|