gm-datagrid 0.1.2 → 0.1.3
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/gm-datagrid.js +191 -183
- package/dist/gm-datagrid.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/gm-datagrid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import oe, { useState as Y, useRef as
|
|
1
|
+
import oe, { useState as Y, useRef as $, useEffect as ae, useCallback as W, createContext as aa, useContext as na, forwardRef as Ur, useImperativeHandle as ia, useMemo as oa } from "react";
|
|
2
2
|
import F from "@mui/material/Box";
|
|
3
3
|
import la from "@mui/material/useMediaQuery";
|
|
4
4
|
import { useTheme as ua } from "@mui/material/styles";
|
|
@@ -21,7 +21,7 @@ import Rr from "@mui/material/Button";
|
|
|
21
21
|
import wa from "@mui/icons-material/Inbox";
|
|
22
22
|
import qr from "@mui/icons-material/FilterListOff";
|
|
23
23
|
import _a from "@mui/icons-material/Error";
|
|
24
|
-
let E,
|
|
24
|
+
let E, vu, xu, Xr;
|
|
25
25
|
let __tla = (async () => {
|
|
26
26
|
var gt = {
|
|
27
27
|
exports: {}
|
|
@@ -44,15 +44,15 @@ let __tla = (async () => {
|
|
|
44
44
|
switch (c) {
|
|
45
45
|
case R:
|
|
46
46
|
return "Fragment";
|
|
47
|
-
case
|
|
47
|
+
case Q:
|
|
48
48
|
return "Profiler";
|
|
49
|
-
case
|
|
49
|
+
case Z:
|
|
50
50
|
return "StrictMode";
|
|
51
|
-
case
|
|
51
|
+
case ee:
|
|
52
52
|
return "Suspense";
|
|
53
53
|
case Ee:
|
|
54
54
|
return "SuspenseList";
|
|
55
|
-
case
|
|
55
|
+
case te:
|
|
56
56
|
return "Activity";
|
|
57
57
|
}
|
|
58
58
|
if (typeof c == "object") switch (typeof c.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), c.$$typeof) {
|
|
@@ -103,7 +103,7 @@ let __tla = (async () => {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function a() {
|
|
106
|
-
var c =
|
|
106
|
+
var c = re.A;
|
|
107
107
|
return c === null ? null : c.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function n() {
|
|
@@ -196,17 +196,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
196
|
function _(c) {
|
|
197
197
|
return typeof c == "object" && c !== null && c.$$typeof === b;
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var x = oe, b = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), Z = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), Te = Symbol.for("react.consumer"), ue = Symbol.for("react.context"), we = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), Ee = Symbol.for("react.suspense_list"), Xe = Symbol.for("react.memo"), Ce = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), Qe = Symbol.for("react.client.reference"), re = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, et = Object.prototype.hasOwnProperty, pt = Array.isArray, yt = console.createTask ? console.createTask : function() {
|
|
200
200
|
return null;
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
x = {
|
|
203
203
|
react_stack_bottom_frame: function(c) {
|
|
204
204
|
return c();
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var wt, _t = {}, Fe =
|
|
207
|
+
var wt, _t = {}, Fe = x.react_stack_bottom_frame.bind(x, n)(), $t = yt(s(n)), Ge = {};
|
|
208
208
|
xt.Fragment = R, xt.jsxDEV = function(c, v, V, L) {
|
|
209
|
-
var ce = 1e4 >
|
|
209
|
+
var ce = 1e4 > re.recentlyCreatedOwnerStacks++;
|
|
210
210
|
return p(c, v, V, L, ce ? Error("react-stack-top-frame") : Fe, ce ? yt(s(c)) : $t);
|
|
211
211
|
};
|
|
212
212
|
})()), xt;
|
|
@@ -218,8 +218,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
218
218
|
var f = va();
|
|
219
219
|
const xa = 5e3;
|
|
220
220
|
function ka() {
|
|
221
|
-
const [e, t] = Y(false), [r, s] = Y(null), a =
|
|
222
|
-
|
|
221
|
+
const [e, t] = Y(false), [r, s] = Y(null), a = $(null), [n, i] = Y(0);
|
|
222
|
+
ae(() => {
|
|
223
223
|
let l = false;
|
|
224
224
|
const u = () => Promise.race([
|
|
225
225
|
import("./core_engine-Cnhrb_In.js"),
|
|
@@ -265,9 +265,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
function Na({ engine: e, ready: t, rows: r, columns: s, onSynced: a, page: n, pageSize: i, onPageData: o, sortStack: l = [], filterGroup: u = null, quickFilterText: p = "" }) {
|
|
268
|
-
const y =
|
|
269
|
-
|
|
270
|
-
!t || !e
|
|
268
|
+
const y = $(0), _ = $(-1);
|
|
269
|
+
ae(() => {
|
|
270
|
+
if (!(!t || !e)) try {
|
|
271
|
+
e.set_columns(JSON.stringify(s)), e.load_data(JSON.stringify(Da(r, s))), e.set_sort_stack(JSON.stringify(l)), u ? e.set_filter_group(JSON.stringify(u)) : e.clear_filters(), p ? e.set_quick_filter(p) : e.clear_quick_filter(), y.current += 1;
|
|
272
|
+
} catch (x) {
|
|
273
|
+
console.error("[GMDatagrid] engine sync error:", x);
|
|
274
|
+
}
|
|
271
275
|
}, [
|
|
272
276
|
t,
|
|
273
277
|
e,
|
|
@@ -276,10 +280,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
280
|
l,
|
|
277
281
|
u,
|
|
278
282
|
p
|
|
279
|
-
]),
|
|
283
|
+
]), ae(() => {
|
|
280
284
|
if (!t || !e || y.current === _.current) return;
|
|
281
285
|
_.current = y.current;
|
|
282
|
-
const
|
|
286
|
+
const x = n * i, b = JSON.parse(e.get_page(x, i)), N = e.get_total_count(), R = JSON.parse(e.get_subtotals());
|
|
283
287
|
o(b), a(N, R);
|
|
284
288
|
}, [
|
|
285
289
|
t,
|
|
@@ -293,9 +297,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
293
297
|
}
|
|
294
298
|
const Jr = aa(null);
|
|
295
299
|
function Kr({ dataset: e, children: t, defaultPageSize: r = 50 }) {
|
|
296
|
-
const { engine: s, ready: a, error: n, retry: i } = ka(), [o, l] = Y([]), [u, p] = Y(0), [y, _] = Y({}), [
|
|
300
|
+
const { engine: s, ready: a, error: n, retry: i } = ka(), [o, l] = Y([]), [u, p] = Y(0), [y, _] = Y({}), [x, b] = Y(0), [N, R] = Y(r), Z = W((ue, we) => {
|
|
297
301
|
p(ue), _(we);
|
|
298
|
-
}, []),
|
|
302
|
+
}, []), Q = W((ue) => {
|
|
299
303
|
l(ue);
|
|
300
304
|
}, []);
|
|
301
305
|
Na({
|
|
@@ -303,10 +307,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
303
307
|
ready: a,
|
|
304
308
|
rows: e.rows,
|
|
305
309
|
columns: e.columns,
|
|
306
|
-
page:
|
|
310
|
+
page: x,
|
|
307
311
|
pageSize: N,
|
|
308
|
-
onSynced:
|
|
309
|
-
onPageData:
|
|
312
|
+
onSynced: Z,
|
|
313
|
+
onPageData: Q,
|
|
310
314
|
sortStack: e.sortStack,
|
|
311
315
|
filterGroup: e.filterGroup,
|
|
312
316
|
quickFilterText: e.quickFilterText
|
|
@@ -316,7 +320,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
316
320
|
pageRows: o,
|
|
317
321
|
totalCount: u,
|
|
318
322
|
subtotals: y,
|
|
319
|
-
page:
|
|
323
|
+
page: x,
|
|
320
324
|
pageSize: N,
|
|
321
325
|
setPage: b,
|
|
322
326
|
setPageSize: R,
|
|
@@ -339,34 +343,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
339
343
|
return e;
|
|
340
344
|
};
|
|
341
345
|
function Qr(e) {
|
|
342
|
-
const { columns: t, sourceApi: r, apiParameters: s = {}, localData: a, apiContext: n } = e, [i, o] = Y([]), [l, u] = Y(!a), [p, y] = Y(null), [_,
|
|
343
|
-
|
|
344
|
-
|
|
346
|
+
const { columns: t, sourceApi: r, apiParameters: s = {}, localData: a, apiContext: n } = e, [i, o] = Y([]), [l, u] = Y(!a), [p, y] = Y(null), [_, x] = Y(false), [b, N] = Y(s), [R, Z] = Y([]), [Q, Te] = Y(null), [ue, we] = Y(""), ee = $(true);
|
|
347
|
+
ae(() => (ee.current = true, () => {
|
|
348
|
+
ee.current = false;
|
|
345
349
|
}), []);
|
|
346
350
|
const Ee = W(async (Ce) => {
|
|
347
351
|
if (r) {
|
|
348
352
|
u(true), y(null);
|
|
349
353
|
try {
|
|
350
|
-
const
|
|
354
|
+
const te = {
|
|
351
355
|
...Ce,
|
|
352
356
|
...n
|
|
353
|
-
}, Qe = await r(
|
|
354
|
-
|
|
355
|
-
} catch (
|
|
356
|
-
|
|
357
|
+
}, Qe = await r(te);
|
|
358
|
+
ee.current && (o(Qe.data ?? []), x(true));
|
|
359
|
+
} catch (te) {
|
|
360
|
+
ee.current && y(te instanceof Error ? te.message : "Error al cargar datos");
|
|
357
361
|
} finally {
|
|
358
|
-
|
|
362
|
+
ee.current && u(false);
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
365
|
}, [
|
|
362
366
|
r,
|
|
363
367
|
n
|
|
364
368
|
]);
|
|
365
|
-
|
|
366
|
-
a && (o(a), u(false),
|
|
369
|
+
ae(() => {
|
|
370
|
+
a && (o(a), u(false), x(true));
|
|
367
371
|
}, [
|
|
368
372
|
a
|
|
369
|
-
]),
|
|
373
|
+
]), ae(() => {
|
|
370
374
|
a || Ee(b);
|
|
371
375
|
}, [
|
|
372
376
|
b,
|
|
@@ -389,8 +393,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
389
393
|
handleRefresh: Xe,
|
|
390
394
|
setApiParameters: N,
|
|
391
395
|
sortStack: R,
|
|
392
|
-
setSortStack:
|
|
393
|
-
filterGroup:
|
|
396
|
+
setSortStack: Z,
|
|
397
|
+
filterGroup: Q,
|
|
394
398
|
setFilterGroup: Te,
|
|
395
399
|
quickFilterText: ue,
|
|
396
400
|
setQuickFilterText: we
|
|
@@ -408,12 +412,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
408
412
|
visibleEnd: Math.min(50, e.length),
|
|
409
413
|
offsetTop: 0,
|
|
410
414
|
totalHeight: e.length * a
|
|
411
|
-
}), o =
|
|
412
|
-
return
|
|
415
|
+
}), o = $(0);
|
|
416
|
+
return ae(() => {
|
|
413
417
|
const l = t.current;
|
|
414
418
|
if (!l) return;
|
|
415
419
|
const u = () => {
|
|
416
|
-
const p = l.scrollTop, y = l.clientHeight, _ = Math.floor(p / a),
|
|
420
|
+
const p = l.scrollTop, y = l.clientHeight, _ = Math.floor(p / a), x = Math.ceil((p + y) / a), b = Math.max(0, _ - s), N = Math.min(e.length, x + s);
|
|
417
421
|
i({
|
|
418
422
|
visibleStart: b,
|
|
419
423
|
visibleEnd: N,
|
|
@@ -430,7 +434,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
430
434
|
]), n;
|
|
431
435
|
}
|
|
432
436
|
function Ta({ visibleRows: e, columns: t }) {
|
|
433
|
-
const [r, s] = Y(null), [a, n] = Y(null), [i, o] = Y(false), l =
|
|
437
|
+
const [r, s] = Y(null), [a, n] = Y(null), [i, o] = Y(false), l = $(null), u = W((b, N) => {
|
|
434
438
|
const R = {
|
|
435
439
|
rowIndex: b,
|
|
436
440
|
colIndex: N
|
|
@@ -455,12 +459,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
455
459
|
}, [
|
|
456
460
|
i
|
|
457
461
|
]), y = W(() => o(false), []);
|
|
458
|
-
|
|
462
|
+
ae(() => (document.addEventListener("mouseup", y), () => document.removeEventListener("mouseup", y)), [
|
|
459
463
|
y
|
|
460
464
|
]);
|
|
461
465
|
const _ = W(() => {
|
|
462
466
|
s(null), n(null), l.current = null;
|
|
463
|
-
}, []),
|
|
467
|
+
}, []), x = W((b, N) => r ? b >= r.start.rowIndex && b <= r.end.rowIndex && N >= r.start.colIndex && N <= r.end.colIndex : false, [
|
|
464
468
|
r
|
|
465
469
|
]);
|
|
466
470
|
return {
|
|
@@ -472,7 +476,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
472
476
|
handleMouseUp: y,
|
|
473
477
|
setFocusedCell: n,
|
|
474
478
|
clearSelection: _,
|
|
475
|
-
isCellSelected:
|
|
479
|
+
isCellSelected: x
|
|
476
480
|
};
|
|
477
481
|
}
|
|
478
482
|
function Ea({ range: e, visibleRows: t, columns: r, engine: s, engineReady: a, onPasted: n }) {
|
|
@@ -483,8 +487,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
483
487
|
for (let u = e.start.rowIndex; u <= e.end.rowIndex; u++) {
|
|
484
488
|
const p = [];
|
|
485
489
|
for (let y = e.start.colIndex; y <= e.end.colIndex; y++) {
|
|
486
|
-
const _ = ((_a2 = r[y]) == null ? void 0 : _a2.field) ?? "",
|
|
487
|
-
p.push(
|
|
490
|
+
const _ = ((_a2 = r[y]) == null ? void 0 : _a2.field) ?? "", x = (_b = t[u]) == null ? void 0 : _b[_];
|
|
491
|
+
p.push(x == null ? "" : String(x));
|
|
488
492
|
}
|
|
489
493
|
l.push(p.join(" "));
|
|
490
494
|
}
|
|
@@ -502,7 +506,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
502
506
|
t,
|
|
503
507
|
n
|
|
504
508
|
]);
|
|
505
|
-
|
|
509
|
+
ae(() => {
|
|
506
510
|
const l = (u) => {
|
|
507
511
|
const p = u.ctrlKey || u.metaKey;
|
|
508
512
|
p && u.key === "c" && (u.preventDefault(), i()), p && u.key === "v" && (u.preventDefault(), o());
|
|
@@ -523,14 +527,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
523
527
|
}
|
|
524
528
|
function Ya({ visibleRows: e, columns: t, engine: r, engineReady: s, processRowUpdate: a, onCellError: n }) {
|
|
525
529
|
const [i, o] = Y(null), [l, u] = Y(""), [p, y] = Y({}), _ = W((b, N) => {
|
|
526
|
-
const R = e[b.rowIndex],
|
|
527
|
-
if (!R || !
|
|
528
|
-
const
|
|
529
|
-
u(N ?? (
|
|
530
|
+
const R = e[b.rowIndex], Z = t[b.colIndex];
|
|
531
|
+
if (!R || !Z || Z.editable === false) return;
|
|
532
|
+
const Q = R[Z.field];
|
|
533
|
+
u(N ?? (Q == null ? "" : String(Q))), o(b);
|
|
530
534
|
}, [
|
|
531
535
|
e,
|
|
532
536
|
t
|
|
533
|
-
]),
|
|
537
|
+
]), x = W(async (b) => {
|
|
534
538
|
if (!i) return;
|
|
535
539
|
const { rowIndex: N, colIndex: R } = i;
|
|
536
540
|
t[R], e[N], o(null);
|
|
@@ -548,7 +552,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
548
552
|
editingCell: i,
|
|
549
553
|
editValue: l,
|
|
550
554
|
startEditing: _,
|
|
551
|
-
stopEditing:
|
|
555
|
+
stopEditing: x,
|
|
552
556
|
setEditValue: u,
|
|
553
557
|
cellErrors: p
|
|
554
558
|
};
|
|
@@ -605,7 +609,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
605
609
|
s,
|
|
606
610
|
a
|
|
607
611
|
]);
|
|
608
|
-
|
|
612
|
+
ae(() => (document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l)), [
|
|
609
613
|
l
|
|
610
614
|
]);
|
|
611
615
|
}
|
|
@@ -622,7 +626,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
626
|
i[o.field] = o.width ?? o.minWidth ?? 120;
|
|
623
627
|
}), i;
|
|
624
628
|
});
|
|
625
|
-
|
|
629
|
+
ae(() => {
|
|
626
630
|
try {
|
|
627
631
|
localStorage.setItem(r, JSON.stringify(s));
|
|
628
632
|
} catch {
|
|
@@ -634,7 +638,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
634
638
|
const n = W((i, o, l) => {
|
|
635
639
|
const u = (y) => {
|
|
636
640
|
var _a2;
|
|
637
|
-
const _ = y.clientX - o,
|
|
641
|
+
const _ = y.clientX - o, x = ((_a2 = e.find((N) => N.field === i)) == null ? void 0 : _a2.minWidth) ?? 60, b = Math.max(x, l + _);
|
|
638
642
|
a((N) => ({
|
|
639
643
|
...N,
|
|
640
644
|
[i]: b
|
|
@@ -764,7 +768,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
764
768
|
function rs(e) {
|
|
765
769
|
h.suppressDeprecationWarnings === false && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
766
770
|
}
|
|
767
|
-
function
|
|
771
|
+
function K(e, t) {
|
|
768
772
|
var r = true;
|
|
769
773
|
return Ye(function() {
|
|
770
774
|
if (h.deprecationHandler != null && h.deprecationHandler(null, e), r) {
|
|
@@ -962,12 +966,12 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
962
966
|
years: "year",
|
|
963
967
|
year: "year"
|
|
964
968
|
};
|
|
965
|
-
function
|
|
969
|
+
function X(e) {
|
|
966
970
|
return typeof e == "string" ? Ar[e] || Ar[e.toLowerCase()] : void 0;
|
|
967
971
|
}
|
|
968
972
|
function dr(e) {
|
|
969
973
|
var t = {}, r, s;
|
|
970
|
-
for (s in e) M(e, s) && (r =
|
|
974
|
+
for (s in e) M(e, s) && (r = X(s), r && (t[r] = e[s]));
|
|
971
975
|
return t;
|
|
972
976
|
}
|
|
973
977
|
var Qa = {
|
|
@@ -998,7 +1002,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
998
1002
|
return s.priority - a.priority;
|
|
999
1003
|
}), t;
|
|
1000
1004
|
}
|
|
1001
|
-
var ns = /\d/,
|
|
1005
|
+
var ns = /\d/, B = /\d\d/, is = /\d{3}/, fr = /\d{4}/, Vt = /[+-]?\d{6}/, C = /\d\d?/, os = /\d\d\d\d?/, ls = /\d\d\d\d\d\d?/, Wt = /\d{1,3}/, hr = /\d{1,4}/, jt = /[+-]?\d{1,6}/, qe = /\d+/, At = /[+-]?\d+/, tn = /Z|[+-]\d\d:?\d\d/gi, Ft = /Z|[+-]\d\d(?::?\d\d)?/gi, rn = /[+-]?\d+(\.\d{1,3})?/, ht = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Je = /^[1-9]\d?/, mr = /^([1-9]\d|\d)/, Ot;
|
|
1002
1006
|
Ot = {};
|
|
1003
1007
|
function m(e, t, r) {
|
|
1004
1008
|
Ot[e] = ye(t) ? t : function(s, a) {
|
|
@@ -1016,12 +1020,12 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1016
1020
|
function ke(e) {
|
|
1017
1021
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
1018
1022
|
}
|
|
1019
|
-
function
|
|
1023
|
+
function J(e) {
|
|
1020
1024
|
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
1021
1025
|
}
|
|
1022
|
-
function
|
|
1026
|
+
function k(e) {
|
|
1023
1027
|
var t = +e, r = 0;
|
|
1024
|
-
return t !== 0 && isFinite(t) && (r =
|
|
1028
|
+
return t !== 0 && isFinite(t) && (r = J(t)), r;
|
|
1025
1029
|
}
|
|
1026
1030
|
var rr = {};
|
|
1027
1031
|
function O(e, t) {
|
|
@@ -1029,7 +1033,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1029
1033
|
for (typeof e == "string" && (e = [
|
|
1030
1034
|
e
|
|
1031
1035
|
]), Ne(t) && (s = function(n, i) {
|
|
1032
|
-
i[t] =
|
|
1036
|
+
i[t] = k(n);
|
|
1033
1037
|
}), a = e.length, r = 0; r < a; r++) rr[e[r]] = s;
|
|
1034
1038
|
}
|
|
1035
1039
|
function mt(e, t) {
|
|
@@ -1043,7 +1047,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1043
1047
|
function Gt(e) {
|
|
1044
1048
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
1045
1049
|
}
|
|
1046
|
-
var H = 0, ve = 1, he = 2, G = 3,
|
|
1050
|
+
var H = 0, ve = 1, he = 2, G = 3, se = 4, xe = 5, We = 6, on = 7, ln = 8;
|
|
1047
1051
|
w("Y", 0, 0, function() {
|
|
1048
1052
|
var e = this.year();
|
|
1049
1053
|
return e <= 9999 ? me(e, 4) : "+" + e;
|
|
@@ -1068,7 +1072,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1068
1072
|
true
|
|
1069
1073
|
], 0, "year");
|
|
1070
1074
|
m("Y", At);
|
|
1071
|
-
m("YY", C,
|
|
1075
|
+
m("YY", C, B);
|
|
1072
1076
|
m("YYYY", hr, fr);
|
|
1073
1077
|
m("YYYYY", jt, Vt);
|
|
1074
1078
|
m("YYYYYY", jt, Vt);
|
|
@@ -1077,7 +1081,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1077
1081
|
"YYYYYY"
|
|
1078
1082
|
], H);
|
|
1079
1083
|
O("YYYY", function(e, t) {
|
|
1080
|
-
t[H] = e.length === 2 ? h.parseTwoDigitYear(e) :
|
|
1084
|
+
t[H] = e.length === 2 ? h.parseTwoDigitYear(e) : k(e);
|
|
1081
1085
|
});
|
|
1082
1086
|
O("YY", function(e, t) {
|
|
1083
1087
|
t[H] = h.parseTwoDigitYear(e);
|
|
@@ -1089,7 +1093,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1089
1093
|
return Gt(e) ? 366 : 365;
|
|
1090
1094
|
}
|
|
1091
1095
|
h.parseTwoDigitYear = function(e) {
|
|
1092
|
-
return
|
|
1096
|
+
return k(e) + (k(e) > 68 ? 1900 : 2e3);
|
|
1093
1097
|
};
|
|
1094
1098
|
var us = Ke("FullYear", true);
|
|
1095
1099
|
function un() {
|
|
@@ -1147,14 +1151,14 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1147
1151
|
}
|
|
1148
1152
|
}
|
|
1149
1153
|
function cn(e) {
|
|
1150
|
-
return e =
|
|
1154
|
+
return e = X(e), ye(this[e]) ? this[e]() : this;
|
|
1151
1155
|
}
|
|
1152
1156
|
function dn(e, t) {
|
|
1153
1157
|
if (typeof e == "object") {
|
|
1154
1158
|
e = dr(e);
|
|
1155
1159
|
var r = en(e), s, a = r.length;
|
|
1156
1160
|
for (s = 0; s < a; s++) this[r[s].unit](e[r[s].unit]);
|
|
1157
|
-
} else if (e =
|
|
1161
|
+
} else if (e = X(e), ye(this[e])) return this[e](t);
|
|
1158
1162
|
return this;
|
|
1159
1163
|
}
|
|
1160
1164
|
function fn(e, t) {
|
|
@@ -1184,7 +1188,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1184
1188
|
return this.localeData().months(this, e);
|
|
1185
1189
|
});
|
|
1186
1190
|
m("M", C, Je);
|
|
1187
|
-
m("MM", C,
|
|
1191
|
+
m("MM", C, B);
|
|
1188
1192
|
m("MMM", function(e, t) {
|
|
1189
1193
|
return t.monthsShortRegex(e);
|
|
1190
1194
|
});
|
|
@@ -1195,7 +1199,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1195
1199
|
"M",
|
|
1196
1200
|
"MM"
|
|
1197
1201
|
], function(e, t) {
|
|
1198
|
-
t[ve] =
|
|
1202
|
+
t[ve] = k(e) - 1;
|
|
1199
1203
|
});
|
|
1200
1204
|
O([
|
|
1201
1205
|
"MMM",
|
|
@@ -1234,7 +1238,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1234
1238
|
function hs(e, t) {
|
|
1235
1239
|
if (!e.isValid()) return e;
|
|
1236
1240
|
if (typeof t == "string") {
|
|
1237
|
-
if (/^\d+$/.test(t)) t =
|
|
1241
|
+
if (/^\d+$/.test(t)) t = k(t);
|
|
1238
1242
|
else if (t = e.localeData().monthsParse(t), !Ne(t)) return e;
|
|
1239
1243
|
}
|
|
1240
1244
|
var r = t, s = e.date();
|
|
@@ -1302,16 +1306,16 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1302
1306
|
2
|
|
1303
1307
|
], "Wo", "isoWeek");
|
|
1304
1308
|
m("w", C, Je);
|
|
1305
|
-
m("ww", C,
|
|
1309
|
+
m("ww", C, B);
|
|
1306
1310
|
m("W", C, Je);
|
|
1307
|
-
m("WW", C,
|
|
1311
|
+
m("WW", C, B);
|
|
1308
1312
|
mt([
|
|
1309
1313
|
"w",
|
|
1310
1314
|
"ww",
|
|
1311
1315
|
"W",
|
|
1312
1316
|
"WW"
|
|
1313
1317
|
], function(e, t, r, s) {
|
|
1314
|
-
t[s.substr(0, 1)] =
|
|
1318
|
+
t[s.substr(0, 1)] = k(e);
|
|
1315
1319
|
});
|
|
1316
1320
|
function Dn(e) {
|
|
1317
1321
|
return ut(e, this._week.dow, this._week.doy).week;
|
|
@@ -1371,7 +1375,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1371
1375
|
"e",
|
|
1372
1376
|
"E"
|
|
1373
1377
|
], function(e, t, r, s) {
|
|
1374
|
-
t[s] =
|
|
1378
|
+
t[s] = k(e);
|
|
1375
1379
|
});
|
|
1376
1380
|
function On(e, t) {
|
|
1377
1381
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
@@ -1496,9 +1500,9 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1496
1500
|
m("H", C, mr);
|
|
1497
1501
|
m("h", C, Je);
|
|
1498
1502
|
m("k", C, Je);
|
|
1499
|
-
m("HH", C,
|
|
1500
|
-
m("hh", C,
|
|
1501
|
-
m("kk", C,
|
|
1503
|
+
m("HH", C, B);
|
|
1504
|
+
m("hh", C, B);
|
|
1505
|
+
m("kk", C, B);
|
|
1502
1506
|
m("hmm", os);
|
|
1503
1507
|
m("hmmss", ls);
|
|
1504
1508
|
m("Hmm", os);
|
|
@@ -1511,7 +1515,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1511
1515
|
"k",
|
|
1512
1516
|
"kk"
|
|
1513
1517
|
], function(e, t, r) {
|
|
1514
|
-
var s =
|
|
1518
|
+
var s = k(e);
|
|
1515
1519
|
t[G] = s === 24 ? 0 : s;
|
|
1516
1520
|
});
|
|
1517
1521
|
O([
|
|
@@ -1524,23 +1528,23 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1524
1528
|
"h",
|
|
1525
1529
|
"hh"
|
|
1526
1530
|
], function(e, t, r) {
|
|
1527
|
-
t[G] =
|
|
1531
|
+
t[G] = k(e), g(r).bigHour = true;
|
|
1528
1532
|
});
|
|
1529
1533
|
O("hmm", function(e, t, r) {
|
|
1530
1534
|
var s = e.length - 2;
|
|
1531
|
-
t[G] =
|
|
1535
|
+
t[G] = k(e.substr(0, s)), t[se] = k(e.substr(s)), g(r).bigHour = true;
|
|
1532
1536
|
});
|
|
1533
1537
|
O("hmmss", function(e, t, r) {
|
|
1534
1538
|
var s = e.length - 4, a = e.length - 2;
|
|
1535
|
-
t[G] =
|
|
1539
|
+
t[G] = k(e.substr(0, s)), t[se] = k(e.substr(s, 2)), t[xe] = k(e.substr(a)), g(r).bigHour = true;
|
|
1536
1540
|
});
|
|
1537
1541
|
O("Hmm", function(e, t, r) {
|
|
1538
1542
|
var s = e.length - 2;
|
|
1539
|
-
t[G] =
|
|
1543
|
+
t[G] = k(e.substr(0, s)), t[se] = k(e.substr(s));
|
|
1540
1544
|
});
|
|
1541
1545
|
O("Hmmss", function(e, t, r) {
|
|
1542
1546
|
var s = e.length - 4, a = e.length - 2;
|
|
1543
|
-
t[G] =
|
|
1547
|
+
t[G] = k(e.substr(0, s)), t[se] = k(e.substr(s, 2)), t[xe] = k(e.substr(a));
|
|
1544
1548
|
});
|
|
1545
1549
|
function qn(e) {
|
|
1546
1550
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -1637,7 +1641,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1637
1641
|
}
|
|
1638
1642
|
function gr(e) {
|
|
1639
1643
|
var t, r = e._a;
|
|
1640
|
-
return r && g(e).overflow === -2 && (t = r[ve] < 0 || r[ve] > 11 ? ve : r[he] < 1 || r[he] > pr(r[H], r[ve]) ? he : r[G] < 0 || r[G] > 24 || r[G] === 24 && (r[
|
|
1644
|
+
return r && g(e).overflow === -2 && (t = r[ve] < 0 || r[ve] > 11 ? ve : r[he] < 1 || r[he] > pr(r[H], r[ve]) ? he : r[G] < 0 || r[G] > 24 || r[G] === 24 && (r[se] !== 0 || r[xe] !== 0 || r[We] !== 0) ? G : r[se] < 0 || r[se] > 59 ? se : r[xe] < 0 || r[xe] > 59 ? xe : r[We] < 0 || r[We] > 999 ? We : -1, g(e)._overflowDayOfYear && (t < H || t > he) && (t = he), g(e)._overflowWeeks && t === -1 && (t = on), g(e)._overflowWeekday && t === -1 && (t = ln), g(e).overflow = t), e;
|
|
1641
1645
|
}
|
|
1642
1646
|
var ai = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ni = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ii = /Z|[+-]\d\d(?::?\d\d)?/, Dt = [
|
|
1643
1647
|
[
|
|
@@ -1828,7 +1832,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1828
1832
|
else return;
|
|
1829
1833
|
e._strict ? e._isValid = false : h.createFromInputFallback(e);
|
|
1830
1834
|
}
|
|
1831
|
-
h.createFromInputFallback =
|
|
1835
|
+
h.createFromInputFallback = K("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(e) {
|
|
1832
1836
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
1833
1837
|
});
|
|
1834
1838
|
function He(e, t, r) {
|
|
@@ -1851,7 +1855,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1851
1855
|
if (!e._d) {
|
|
1852
1856
|
for (a = yi(e), e._w && e._a[he] == null && e._a[ve] == null && wi(e), e._dayOfYear != null && (i = He(e._a[H], a[H]), (e._dayOfYear > nt(i) || e._dayOfYear === 0) && (g(e)._overflowDayOfYear = true), r = lt(i, 0, e._dayOfYear), e._a[ve] = r.getUTCMonth(), e._a[he] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t) e._a[t] = s[t] = a[t];
|
|
1853
1857
|
for (; t < 7; t++) e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1854
|
-
e._a[G] === 24 && e._a[
|
|
1858
|
+
e._a[G] === 24 && e._a[se] === 0 && e._a[xe] === 0 && e._a[We] === 0 && (e._nextDay = true, e._a[G] = 0), e._d = (e._useUTC ? lt : kn).apply(null, s), n = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[G] = 24), e._w && typeof e._w.d < "u" && e._w.d !== n && (g(e).weekdayMismatch = true);
|
|
1855
1859
|
}
|
|
1856
1860
|
}
|
|
1857
1861
|
function wi(e) {
|
|
@@ -1928,10 +1932,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1928
1932
|
function P(e, t, r, s) {
|
|
1929
1933
|
return Ds(e, t, r, s, false);
|
|
1930
1934
|
}
|
|
1931
|
-
var ki =
|
|
1935
|
+
var ki = K("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1932
1936
|
var e = P.apply(null, arguments);
|
|
1933
1937
|
return this.isValid() && e.isValid() ? e < this ? this : e : It();
|
|
1934
|
-
}), Di =
|
|
1938
|
+
}), Di = K("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1935
1939
|
var e = P.apply(null, arguments);
|
|
1936
1940
|
return this.isValid() && e.isValid() ? e > this ? this : e : It();
|
|
1937
1941
|
});
|
|
@@ -1967,7 +1971,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1967
1971
|
for (t in e) if (M(e, t) && !(A.call(at, t) !== -1 && (e[t] == null || !isNaN(e[t])))) return false;
|
|
1968
1972
|
for (s = 0; s < a; ++s) if (e[at[s]]) {
|
|
1969
1973
|
if (r) return false;
|
|
1970
|
-
parseFloat(e[at[s]]) !==
|
|
1974
|
+
parseFloat(e[at[s]]) !== k(e[at[s]]) && (r = true);
|
|
1971
1975
|
}
|
|
1972
1976
|
return true;
|
|
1973
1977
|
}
|
|
@@ -1989,7 +1993,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1989
1993
|
}
|
|
1990
1994
|
function Yi(e, t, r) {
|
|
1991
1995
|
var s = Math.min(e.length, t.length), a = Math.abs(e.length - t.length), n = 0, i;
|
|
1992
|
-
for (i = 0; i < s; i++)
|
|
1996
|
+
for (i = 0; i < s; i++) k(e[i]) !== k(t[i]) && n++;
|
|
1993
1997
|
return n + a;
|
|
1994
1998
|
}
|
|
1995
1999
|
function Ss(e, t) {
|
|
@@ -2015,7 +2019,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2015
2019
|
"-",
|
|
2016
2020
|
0,
|
|
2017
2021
|
0
|
|
2018
|
-
], n = +(a[1] * 60) +
|
|
2022
|
+
], n = +(a[1] * 60) + k(a[2]), n === 0 ? 0 : a[0] === "+" ? n : -n);
|
|
2019
2023
|
}
|
|
2020
2024
|
function Dr(e, t) {
|
|
2021
2025
|
var r, s;
|
|
@@ -2082,11 +2086,11 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2082
2086
|
M: e._months
|
|
2083
2087
|
} : Ne(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Ui.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
2084
2088
|
y: 0,
|
|
2085
|
-
d:
|
|
2086
|
-
h:
|
|
2087
|
-
m:
|
|
2088
|
-
s:
|
|
2089
|
-
ms:
|
|
2089
|
+
d: k(s[he]) * a,
|
|
2090
|
+
h: k(s[G]) * a,
|
|
2091
|
+
m: k(s[se]) * a,
|
|
2092
|
+
s: k(s[xe]) * a,
|
|
2093
|
+
ms: k(sr(s[We] * 1e3)) * a
|
|
2090
2094
|
}) : (s = Hi.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
2091
2095
|
y: Ve(s[2], a),
|
|
2092
2096
|
M: Ve(s[3], a),
|
|
@@ -2193,11 +2197,11 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2193
2197
|
}
|
|
2194
2198
|
function to(e, t) {
|
|
2195
2199
|
var r = ie(e) ? e : P(e);
|
|
2196
|
-
return this.isValid() && r.isValid() ? (t =
|
|
2200
|
+
return this.isValid() && r.isValid() ? (t = X(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : false;
|
|
2197
2201
|
}
|
|
2198
2202
|
function ro(e, t) {
|
|
2199
2203
|
var r = ie(e) ? e : P(e);
|
|
2200
|
-
return this.isValid() && r.isValid() ? (t =
|
|
2204
|
+
return this.isValid() && r.isValid() ? (t = X(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : false;
|
|
2201
2205
|
}
|
|
2202
2206
|
function so(e, t, r, s) {
|
|
2203
2207
|
var a = ie(e) ? e : P(e), n = ie(t) ? t : P(t);
|
|
@@ -2205,7 +2209,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2205
2209
|
}
|
|
2206
2210
|
function ao(e, t) {
|
|
2207
2211
|
var r = ie(e) ? e : P(e), s;
|
|
2208
|
-
return this.isValid() && r.isValid() ? (t =
|
|
2212
|
+
return this.isValid() && r.isValid() ? (t = X(t) || "millisecond", t === "millisecond" ? this.valueOf() === r.valueOf() : (s = r.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : false;
|
|
2209
2213
|
}
|
|
2210
2214
|
function no(e, t) {
|
|
2211
2215
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
@@ -2217,7 +2221,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2217
2221
|
var s, a, n;
|
|
2218
2222
|
if (!this.isValid()) return NaN;
|
|
2219
2223
|
if (s = Dr(e, this), !s.isValid()) return NaN;
|
|
2220
|
-
switch (a = (s.utcOffset() - this.utcOffset()) * 6e4, t =
|
|
2224
|
+
switch (a = (s.utcOffset() - this.utcOffset()) * 6e4, t = X(t), t) {
|
|
2221
2225
|
case "year":
|
|
2222
2226
|
n = Et(this, s) / 12;
|
|
2223
2227
|
break;
|
|
@@ -2245,7 +2249,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2245
2249
|
default:
|
|
2246
2250
|
n = this - s;
|
|
2247
2251
|
}
|
|
2248
|
-
return r ? n :
|
|
2252
|
+
return r ? n : J(n);
|
|
2249
2253
|
}
|
|
2250
2254
|
function Et(e, t) {
|
|
2251
2255
|
if (e.date() < t.date()) return -Et(t, e);
|
|
@@ -2294,7 +2298,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2294
2298
|
var t;
|
|
2295
2299
|
return e === void 0 ? this._locale._abbr : (t = Se(e), t != null && (this._locale = t), this);
|
|
2296
2300
|
}
|
|
2297
|
-
var Rs =
|
|
2301
|
+
var Rs = K("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(e) {
|
|
2298
2302
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
2299
2303
|
});
|
|
2300
2304
|
function Ps() {
|
|
@@ -2312,7 +2316,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2312
2316
|
}
|
|
2313
2317
|
function wo(e) {
|
|
2314
2318
|
var t, r;
|
|
2315
|
-
if (e =
|
|
2319
|
+
if (e = X(e), e === void 0 || e === "millisecond" || !this.isValid()) return this;
|
|
2316
2320
|
switch (r = this._isUTC ? Vs : Is, e) {
|
|
2317
2321
|
case "year":
|
|
2318
2322
|
t = r(this.year(), 0, 1);
|
|
@@ -2347,7 +2351,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2347
2351
|
}
|
|
2348
2352
|
function _o(e) {
|
|
2349
2353
|
var t, r;
|
|
2350
|
-
if (e =
|
|
2354
|
+
if (e = X(e), e === void 0 || e === "millisecond" || !this.isValid()) return this;
|
|
2351
2355
|
switch (r = this._isUTC ? Vs : Is, e) {
|
|
2352
2356
|
case "year":
|
|
2353
2357
|
t = r(this.year() + 1, 0, 1) - 1;
|
|
@@ -2601,8 +2605,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2601
2605
|
Ht("GGGGG", "isoWeekYear");
|
|
2602
2606
|
m("G", At);
|
|
2603
2607
|
m("g", At);
|
|
2604
|
-
m("GG", C,
|
|
2605
|
-
m("gg", C,
|
|
2608
|
+
m("GG", C, B);
|
|
2609
|
+
m("gg", C, B);
|
|
2606
2610
|
m("GGGG", hr, fr);
|
|
2607
2611
|
m("gggg", hr, fr);
|
|
2608
2612
|
m("GGGGG", jt, Vt);
|
|
@@ -2613,7 +2617,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2613
2617
|
"GGGG",
|
|
2614
2618
|
"GGGGG"
|
|
2615
2619
|
], function(e, t, r, s) {
|
|
2616
|
-
t[s.substr(0, 2)] =
|
|
2620
|
+
t[s.substr(0, 2)] = k(e);
|
|
2617
2621
|
});
|
|
2618
2622
|
mt([
|
|
2619
2623
|
"gg",
|
|
@@ -2652,7 +2656,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2652
2656
|
w("Q", 0, "Qo", "quarter");
|
|
2653
2657
|
m("Q", ns);
|
|
2654
2658
|
O("Q", function(e, t) {
|
|
2655
|
-
t[ve] = (
|
|
2659
|
+
t[ve] = (k(e) - 1) * 3;
|
|
2656
2660
|
});
|
|
2657
2661
|
function qo(e) {
|
|
2658
2662
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
@@ -2662,7 +2666,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2662
2666
|
2
|
|
2663
2667
|
], "Do", "date");
|
|
2664
2668
|
m("D", C, Je);
|
|
2665
|
-
m("DD", C,
|
|
2669
|
+
m("DD", C, B);
|
|
2666
2670
|
m("Do", function(e, t) {
|
|
2667
2671
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2668
2672
|
});
|
|
@@ -2671,7 +2675,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2671
2675
|
"DD"
|
|
2672
2676
|
], he);
|
|
2673
2677
|
O("Do", function(e, t) {
|
|
2674
|
-
t[he] =
|
|
2678
|
+
t[he] = k(e.match(C)[0]);
|
|
2675
2679
|
});
|
|
2676
2680
|
var js = Ke("Date", true);
|
|
2677
2681
|
w("DDD", [
|
|
@@ -2684,7 +2688,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2684
2688
|
"DDD",
|
|
2685
2689
|
"DDDD"
|
|
2686
2690
|
], function(e, t, r) {
|
|
2687
|
-
r._dayOfYear =
|
|
2691
|
+
r._dayOfYear = k(e);
|
|
2688
2692
|
});
|
|
2689
2693
|
function Jo(e) {
|
|
2690
2694
|
var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
|
|
@@ -2695,18 +2699,18 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2695
2699
|
2
|
|
2696
2700
|
], 0, "minute");
|
|
2697
2701
|
m("m", C, mr);
|
|
2698
|
-
m("mm", C,
|
|
2702
|
+
m("mm", C, B);
|
|
2699
2703
|
O([
|
|
2700
2704
|
"m",
|
|
2701
2705
|
"mm"
|
|
2702
|
-
],
|
|
2706
|
+
], se);
|
|
2703
2707
|
var Ko = Ke("Minutes", false);
|
|
2704
2708
|
w("s", [
|
|
2705
2709
|
"ss",
|
|
2706
2710
|
2
|
|
2707
2711
|
], 0, "second");
|
|
2708
2712
|
m("s", C, mr);
|
|
2709
|
-
m("ss", C,
|
|
2713
|
+
m("ss", C, B);
|
|
2710
2714
|
O([
|
|
2711
2715
|
"s",
|
|
2712
2716
|
"ss"
|
|
@@ -2762,12 +2766,12 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2762
2766
|
return this.millisecond() * 1e6;
|
|
2763
2767
|
});
|
|
2764
2768
|
m("S", Wt, ns);
|
|
2765
|
-
m("SS", Wt,
|
|
2769
|
+
m("SS", Wt, B);
|
|
2766
2770
|
m("SSS", Wt, is);
|
|
2767
2771
|
var Re, As;
|
|
2768
2772
|
for (Re = "SSSS"; Re.length <= 9; Re += "S") m(Re, qe);
|
|
2769
2773
|
function Qo(e, t) {
|
|
2770
|
-
t[We] =
|
|
2774
|
+
t[We] = k(("0." + e) * 1e3);
|
|
2771
2775
|
}
|
|
2772
2776
|
for (Re = "S"; Re.length <= 9; Re += "S") O(Re, Qo);
|
|
2773
2777
|
As = Ke("Milliseconds", false);
|
|
@@ -2859,11 +2863,11 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2859
2863
|
d.isUTC = Ms;
|
|
2860
2864
|
d.zoneAbbr = el;
|
|
2861
2865
|
d.zoneName = tl;
|
|
2862
|
-
d.dates =
|
|
2863
|
-
d.months =
|
|
2864
|
-
d.years =
|
|
2865
|
-
d.zone =
|
|
2866
|
-
d.isDSTShifted =
|
|
2866
|
+
d.dates = K("dates accessor is deprecated. Use date instead.", js);
|
|
2867
|
+
d.months = K("months accessor is deprecated. Use month instead", ms);
|
|
2868
|
+
d.years = K("years accessor is deprecated. Use year instead", us);
|
|
2869
|
+
d.zone = K("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", Ci);
|
|
2870
|
+
d.isDSTShifted = K("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", Fi);
|
|
2867
2871
|
function rl(e) {
|
|
2868
2872
|
return P(e * 1e3);
|
|
2869
2873
|
}
|
|
@@ -2959,12 +2963,12 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2959
2963
|
],
|
|
2960
2964
|
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
2961
2965
|
ordinal: function(e) {
|
|
2962
|
-
var t = e % 10, r =
|
|
2966
|
+
var t = e % 10, r = k(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
2963
2967
|
return e + r;
|
|
2964
2968
|
}
|
|
2965
2969
|
});
|
|
2966
|
-
h.lang =
|
|
2967
|
-
h.langData =
|
|
2970
|
+
h.lang = K("moment.lang is deprecated. Use moment.locale instead.", Pe);
|
|
2971
|
+
h.langData = K("moment.langData is deprecated. Use moment.localeData instead.", Se);
|
|
2968
2972
|
var be = Math.abs;
|
|
2969
2973
|
function ul() {
|
|
2970
2974
|
var e = this._data;
|
|
@@ -2985,7 +2989,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2985
2989
|
}
|
|
2986
2990
|
function fl() {
|
|
2987
2991
|
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, a, n, i, o, l;
|
|
2988
|
-
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Lr(nr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a =
|
|
2992
|
+
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Lr(nr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a = J(e / 1e3), s.seconds = a % 60, n = J(a / 60), s.minutes = n % 60, i = J(n / 60), s.hours = i % 24, t += J(i / 24), l = J(Us(t)), r += l, t -= Lr(nr(l)), o = J(r / 12), r %= 12, s.days = t, s.months = r, s.years = o, this;
|
|
2989
2993
|
}
|
|
2990
2994
|
function Us(e) {
|
|
2991
2995
|
return e * 4800 / 146097;
|
|
@@ -2996,7 +3000,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2996
3000
|
function hl(e) {
|
|
2997
3001
|
if (!this.isValid()) return NaN;
|
|
2998
3002
|
var t, r, s = this._milliseconds;
|
|
2999
|
-
if (e =
|
|
3003
|
+
if (e = X(e), e === "month" || e === "quarter" || e === "year") switch (t = this._days + s / 864e5, r = this._months + Us(t), e) {
|
|
3000
3004
|
case "month":
|
|
3001
3005
|
return r;
|
|
3002
3006
|
case "quarter":
|
|
@@ -3031,7 +3035,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3031
3035
|
return le(this);
|
|
3032
3036
|
}
|
|
3033
3037
|
function Dl(e) {
|
|
3034
|
-
return e =
|
|
3038
|
+
return e = X(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
3035
3039
|
}
|
|
3036
3040
|
function Ae(e) {
|
|
3037
3041
|
return function() {
|
|
@@ -3040,7 +3044,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3040
3044
|
}
|
|
3041
3045
|
var Nl = Ae("milliseconds"), Sl = Ae("seconds"), Ml = Ae("minutes"), Tl = Ae("hours"), El = Ae("days"), Ol = Ae("months"), Yl = Ae("years");
|
|
3042
3046
|
function Rl() {
|
|
3043
|
-
return
|
|
3047
|
+
return J(this.days() / 7);
|
|
3044
3048
|
}
|
|
3045
3049
|
var ge = Math.round, ze = {
|
|
3046
3050
|
ss: 44,
|
|
@@ -3112,7 +3116,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3112
3116
|
function zt() {
|
|
3113
3117
|
if (!this.isValid()) return this.localeData().invalidDate();
|
|
3114
3118
|
var e = Kt(this._milliseconds) / 1e3, t = Kt(this._days), r = Kt(this._months), s, a, n, i, o = this.asSeconds(), l, u, p, y;
|
|
3115
|
-
return o ? (s =
|
|
3119
|
+
return o ? (s = J(e / 60), a = J(s / 60), e %= 60, s %= 60, n = J(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = o < 0 ? "-" : "", u = Le(this._months) !== Le(o) ? "-" : "", p = Le(this._days) !== Le(o) ? "-" : "", y = Le(this._milliseconds) !== Le(o) ? "-" : "", l + "P" + (n ? u + n + "Y" : "") + (r ? u + r + "M" : "") + (t ? p + t + "D" : "") + (a || s || e ? "T" : "") + (a ? y + a + "H" : "") + (s ? y + s + "M" : "") + (e ? y + i + "S" : "")) : "P0D";
|
|
3116
3120
|
}
|
|
3117
3121
|
var D = Ut.prototype;
|
|
3118
3122
|
D.isValid = Ei;
|
|
@@ -3147,7 +3151,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3147
3151
|
D.toJSON = zt;
|
|
3148
3152
|
D.locale = Ys;
|
|
3149
3153
|
D.localeData = Ps;
|
|
3150
|
-
D.toIsoString =
|
|
3154
|
+
D.toIsoString = K("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", zt);
|
|
3151
3155
|
D.lang = Rs;
|
|
3152
3156
|
w("X", 0, 0, "unix");
|
|
3153
3157
|
w("x", 0, 0, "valueOf");
|
|
@@ -3157,7 +3161,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3157
3161
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
3158
3162
|
});
|
|
3159
3163
|
O("x", function(e, t, r) {
|
|
3160
|
-
r._d = new Date(
|
|
3164
|
+
r._d = new Date(k(e));
|
|
3161
3165
|
});
|
|
3162
3166
|
h.version = "2.30.1";
|
|
3163
3167
|
Va(P);
|
|
@@ -3183,7 +3187,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3183
3187
|
h.updateLocale = ri;
|
|
3184
3188
|
h.locales = si;
|
|
3185
3189
|
h.weekdaysShort = ol;
|
|
3186
|
-
h.normalizeUnits =
|
|
3190
|
+
h.normalizeUnits = X;
|
|
3187
3191
|
h.relativeTimeRounding = Il;
|
|
3188
3192
|
h.relativeTimeThreshold = Vl;
|
|
3189
3193
|
h.calendarFormat = Xi;
|
|
@@ -3512,7 +3516,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3512
3516
|
}, this);
|
|
3513
3517
|
}
|
|
3514
3518
|
const $l = oe.memo(function({ column: t, editValue: r, onEditValueChange: s, onStopEditing: a }) {
|
|
3515
|
-
const n =
|
|
3519
|
+
const n = $(null), i = (l) => {
|
|
3516
3520
|
l.key === "Enter" ? (l.preventDefault(), a(true)) : l.key === "Escape" ? (l.preventDefault(), a(false)) : l.key === "Tab" && (l.preventDefault(), a(true));
|
|
3517
3521
|
}, o = t.type === E.NUMBER || t.type === E.PRICE || t.type === E.TOTAL || t.type === E.INT;
|
|
3518
3522
|
return f.jsxDEV("input", {
|
|
@@ -3629,7 +3633,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3629
3633
|
columnNumber: 5
|
|
3630
3634
|
}, this);
|
|
3631
3635
|
}), Bl = oe.memo(function({ title: t, loading: r, quickFilter: s, quickFilterPlaceholder: a = "Buscar\u2026", onQuickFilterChange: n, onExport: i, onRefresh: o, density: l, onToggleDensity: u, subtotals: p, subtotalFields: y }) {
|
|
3632
|
-
const _ =
|
|
3636
|
+
const _ = $(null), x = W((b) => {
|
|
3633
3637
|
const N = b.target.value;
|
|
3634
3638
|
_.current && clearTimeout(_.current), _.current = setTimeout(() => n(N), 200);
|
|
3635
3639
|
}, [
|
|
@@ -3669,7 +3673,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3669
3673
|
s && f.jsxDEV($r, {
|
|
3670
3674
|
size: "small",
|
|
3671
3675
|
placeholder: a,
|
|
3672
|
-
onChange:
|
|
3676
|
+
onChange: x,
|
|
3673
3677
|
slotProps: {
|
|
3674
3678
|
input: {
|
|
3675
3679
|
startAdornment: f.jsxDEV(zr, {
|
|
@@ -3757,7 +3761,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3757
3761
|
columnNumber: 5
|
|
3758
3762
|
}, this);
|
|
3759
3763
|
}), Zl = oe.memo(function({ title: t, loading: r, quickFilter: s, quickFilterPlaceholder: a = "Buscar\u2026", onQuickFilterChange: n, onExport: i, onRefresh: o, density: l, onToggleDensity: u }) {
|
|
3760
|
-
const [p, y] = Y(false), _ =
|
|
3764
|
+
const [p, y] = Y(false), _ = $(null), x = W((b) => {
|
|
3761
3765
|
const N = b.target.value;
|
|
3762
3766
|
_.current && clearTimeout(_.current), _.current = setTimeout(() => n(N), 200);
|
|
3763
3767
|
}, [
|
|
@@ -3838,7 +3842,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3838
3842
|
size: "small",
|
|
3839
3843
|
fullWidth: true,
|
|
3840
3844
|
placeholder: a,
|
|
3841
|
-
onChange:
|
|
3845
|
+
onChange: x,
|
|
3842
3846
|
slotProps: {
|
|
3843
3847
|
input: {
|
|
3844
3848
|
startAdornment: f.jsxDEV(zr, {
|
|
@@ -3977,13 +3981,13 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3977
3981
|
}, this);
|
|
3978
3982
|
});
|
|
3979
3983
|
function $s({ outerProps: e }) {
|
|
3980
|
-
const { title: t, quickFilter: r = true, quickFilterPlaceholder: s, processRowUpdate: a, rowColorGetter: n, onRowDetail: i, columns: o } = e, l = ua(), u = la(l.breakpoints.down("sm")), { loading: p, error: y, handleRefresh: _, sortStack:
|
|
3984
|
+
const { title: t, quickFilter: r = true, quickFilterPlaceholder: s, processRowUpdate: a, rowColorGetter: n, onRowDetail: i, columns: o } = e, l = ua(), u = la(l.breakpoints.down("sm")), { loading: p, error: y, handleRefresh: _, sortStack: x, setSortStack: b, filterGroup: N, setFilterGroup: R, setQuickFilterText: Z, quickFilterText: Q, pageRows: Te, totalCount: ue, subtotals: we, engineReady: ee, engineError: Ee, retryEngine: Xe } = Xr(), Ce = $(null), [te, Qe] = Y("standard"), re = (o ?? []).filter((S) => !S.hide), et = $(null), { visibleStart: pt, visibleEnd: yt, offsetTop: wt, totalHeight: _t } = Ma({
|
|
3981
3985
|
rows: Te,
|
|
3982
3986
|
containerRef: et,
|
|
3983
|
-
density:
|
|
3987
|
+
density: te
|
|
3984
3988
|
}), Fe = Te.slice(pt, yt + 1), { range: $t, focusedCell: Ge, setFocusedCell: c, handleMouseDown: v, handleMouseEnter: V, isCellSelected: L } = Ta({
|
|
3985
3989
|
visibleRows: Fe,
|
|
3986
|
-
columns:
|
|
3990
|
+
columns: re
|
|
3987
3991
|
}), [ce, tt] = Y({}), j = W((S, Oe) => {
|
|
3988
3992
|
tt((U) => ({
|
|
3989
3993
|
...U,
|
|
@@ -3991,9 +3995,9 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3991
3995
|
}));
|
|
3992
3996
|
}, []), { editingCell: de, editValue: rt, startEditing: bt, stopEditing: Tr, setEditValue: Bs } = Ya({
|
|
3993
3997
|
visibleRows: Fe,
|
|
3994
|
-
columns:
|
|
3998
|
+
columns: re,
|
|
3995
3999
|
engine: null,
|
|
3996
|
-
engineReady:
|
|
4000
|
+
engineReady: ee,
|
|
3997
4001
|
processRowUpdate: a,
|
|
3998
4002
|
onCellError: j
|
|
3999
4003
|
});
|
|
@@ -4004,43 +4008,43 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4004
4008
|
startEditing: bt,
|
|
4005
4009
|
stopEditing: Tr,
|
|
4006
4010
|
totalRows: ue,
|
|
4007
|
-
columns:
|
|
4011
|
+
columns: re
|
|
4008
4012
|
}), Ea({
|
|
4009
4013
|
engine: null,
|
|
4010
|
-
engineReady:
|
|
4014
|
+
engineReady: ee,
|
|
4011
4015
|
range: $t,
|
|
4012
4016
|
visibleRows: Fe,
|
|
4013
|
-
columns:
|
|
4017
|
+
columns: re,
|
|
4014
4018
|
onPasted: _
|
|
4015
4019
|
});
|
|
4016
4020
|
const { widths: Er, onResizeStart: Zs } = Ca({
|
|
4017
|
-
columns:
|
|
4021
|
+
columns: re,
|
|
4018
4022
|
gridTitle: t
|
|
4019
4023
|
}), { handleExport: qs } = Ia({
|
|
4020
4024
|
engineRef: Ce,
|
|
4021
4025
|
title: t
|
|
4022
4026
|
}), Js = W((S, Oe) => {
|
|
4023
|
-
const U =
|
|
4024
|
-
Oe.shiftKey ? b(U ?
|
|
4027
|
+
const U = x.find((fe) => fe.field === S), q = (U == null ? void 0 : U.dir) === "asc" ? "desc" : "asc";
|
|
4028
|
+
Oe.shiftKey ? b(U ? x.map((fe) => fe.field === S ? {
|
|
4025
4029
|
...fe,
|
|
4026
|
-
dir:
|
|
4030
|
+
dir: q
|
|
4027
4031
|
} : fe) : [
|
|
4028
|
-
...
|
|
4032
|
+
...x,
|
|
4029
4033
|
{
|
|
4030
4034
|
field: S,
|
|
4031
|
-
dir:
|
|
4035
|
+
dir: q
|
|
4032
4036
|
}
|
|
4033
4037
|
]) : b([
|
|
4034
4038
|
{
|
|
4035
4039
|
field: S,
|
|
4036
|
-
dir:
|
|
4040
|
+
dir: q
|
|
4037
4041
|
}
|
|
4038
4042
|
]);
|
|
4039
4043
|
}, [
|
|
4040
|
-
|
|
4044
|
+
x,
|
|
4041
4045
|
b
|
|
4042
|
-
]), Ks =
|
|
4043
|
-
if (!
|
|
4046
|
+
]), Ks = re.filter((S) => S.calculateSubTotal).map((S) => S.field), Or = N !== null || Q !== "", Xs = !p && ue === 0, Qs = W(() => Qe((S) => S === "compact" ? "standard" : S === "standard" ? "comfortable" : "compact"), []);
|
|
4047
|
+
if (!ee && Ee && !p) return f.jsxDEV(F, {
|
|
4044
4048
|
sx: {
|
|
4045
4049
|
border: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))",
|
|
4046
4050
|
borderRadius: 1
|
|
@@ -4064,10 +4068,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4064
4068
|
loading: p,
|
|
4065
4069
|
quickFilter: r,
|
|
4066
4070
|
quickFilterPlaceholder: s,
|
|
4067
|
-
onQuickFilterChange:
|
|
4071
|
+
onQuickFilterChange: Z,
|
|
4068
4072
|
onExport: qs,
|
|
4069
4073
|
onRefresh: _,
|
|
4070
|
-
density:
|
|
4074
|
+
density: te,
|
|
4071
4075
|
onToggleDensity: Qs
|
|
4072
4076
|
};
|
|
4073
4077
|
return f.jsxDEV(F, {
|
|
@@ -4105,10 +4109,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4105
4109
|
zIndex: 2,
|
|
4106
4110
|
overflowX: "hidden"
|
|
4107
4111
|
},
|
|
4108
|
-
children:
|
|
4109
|
-
const Oe =
|
|
4112
|
+
children: re.map((S) => {
|
|
4113
|
+
const Oe = x.find((q) => q.field === S.field), U = Er[S.field] ?? S.width ?? 120;
|
|
4110
4114
|
return f.jsxDEV(F, {
|
|
4111
|
-
onClick: (
|
|
4115
|
+
onClick: (q) => Js(S.field, q),
|
|
4112
4116
|
sx: {
|
|
4113
4117
|
width: U,
|
|
4114
4118
|
minWidth: S.minWidth ?? 60,
|
|
@@ -4156,8 +4160,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4156
4160
|
}, this),
|
|
4157
4161
|
f.jsxDEV(F, {
|
|
4158
4162
|
component: "div",
|
|
4159
|
-
onMouseDown: (
|
|
4160
|
-
|
|
4163
|
+
onMouseDown: (q) => {
|
|
4164
|
+
q.stopPropagation(), Zs(S.field, q.clientX, U);
|
|
4161
4165
|
},
|
|
4162
4166
|
sx: {
|
|
4163
4167
|
position: "absolute",
|
|
@@ -4197,7 +4201,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4197
4201
|
children: Xs ? f.jsxDEV(Xt, {
|
|
4198
4202
|
variant: Or ? "filtered" : "empty",
|
|
4199
4203
|
onClear: Or ? () => {
|
|
4200
|
-
R(null),
|
|
4204
|
+
R(null), Z("");
|
|
4201
4205
|
} : void 0
|
|
4202
4206
|
}, void 0, false, {
|
|
4203
4207
|
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
@@ -4224,17 +4228,17 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4224
4228
|
right: 0
|
|
4225
4229
|
},
|
|
4226
4230
|
children: Fe.map((S, Oe) => {
|
|
4227
|
-
const U = pt + Oe,
|
|
4231
|
+
const U = pt + Oe, q = n ? n(S) : {}, fe = String(S.id ?? U);
|
|
4228
4232
|
return f.jsxDEV("div", {
|
|
4229
4233
|
style: {
|
|
4230
4234
|
display: "flex",
|
|
4231
|
-
height:
|
|
4232
|
-
...
|
|
4235
|
+
height: te === "compact" ? 36 : te === "comfortable" ? 72 : 52,
|
|
4236
|
+
...q,
|
|
4233
4237
|
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.06))",
|
|
4234
4238
|
cursor: i ? "pointer" : "default"
|
|
4235
4239
|
},
|
|
4236
4240
|
onDoubleClick: i ? () => i(S) : void 0,
|
|
4237
|
-
children:
|
|
4241
|
+
children: re.map((_e, Ie) => {
|
|
4238
4242
|
const ea = (de == null ? void 0 : de.rowIndex) === U && (de == null ? void 0 : de.colIndex) === Ie, ta = L(U, Ie), ra = (Ge == null ? void 0 : Ge.rowIndex) === U && (Ge == null ? void 0 : Ge.colIndex) === Ie, sa = Er[_e.field] ?? _e.width ?? 120;
|
|
4239
4243
|
return f.jsxDEV("div", {
|
|
4240
4244
|
style: {
|
|
@@ -4331,31 +4335,35 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4331
4335
|
columnNumber: 5
|
|
4332
4336
|
}, this);
|
|
4333
4337
|
}
|
|
4334
|
-
|
|
4335
|
-
const t =
|
|
4336
|
-
|
|
4338
|
+
function Jl(e) {
|
|
4339
|
+
const t = e.map((a) => `${a.field}:${a.type}`).join("|"), r = $(""), s = $(e);
|
|
4340
|
+
return t !== r.current && (r.current = t, s.current = e), s.current;
|
|
4341
|
+
}
|
|
4342
|
+
vu = function(e) {
|
|
4343
|
+
const t = Jl(e.columns ?? []), r = Qr({
|
|
4344
|
+
columns: t,
|
|
4337
4345
|
sourceApi: e.sourceApi,
|
|
4338
4346
|
apiParameters: e.apiParameters,
|
|
4339
4347
|
localData: e.localData,
|
|
4340
4348
|
apiContext: e.apiContext
|
|
4341
4349
|
});
|
|
4342
4350
|
return f.jsxDEV(Kr, {
|
|
4343
|
-
dataset:
|
|
4351
|
+
dataset: r,
|
|
4344
4352
|
children: f.jsxDEV($s, {
|
|
4345
4353
|
outerProps: e
|
|
4346
4354
|
}, void 0, false, {
|
|
4347
4355
|
fileName: "/workspace/react-wrapper/src/GMDatagrid.tsx",
|
|
4348
|
-
lineNumber:
|
|
4356
|
+
lineNumber: 46,
|
|
4349
4357
|
columnNumber: 7
|
|
4350
4358
|
}, this)
|
|
4351
4359
|
}, void 0, false, {
|
|
4352
4360
|
fileName: "/workspace/react-wrapper/src/GMDatagrid.tsx",
|
|
4353
|
-
lineNumber:
|
|
4361
|
+
lineNumber: 45,
|
|
4354
4362
|
columnNumber: 5
|
|
4355
4363
|
}, this);
|
|
4356
4364
|
};
|
|
4357
|
-
let
|
|
4358
|
-
|
|
4365
|
+
let Kl;
|
|
4366
|
+
Kl = Ur(function(t, r) {
|
|
4359
4367
|
const { handleRefresh: s, setApiParameters: a } = Xr();
|
|
4360
4368
|
return ia(r, () => ({
|
|
4361
4369
|
refresh: s,
|
|
@@ -4365,7 +4373,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4365
4373
|
a
|
|
4366
4374
|
]), null;
|
|
4367
4375
|
});
|
|
4368
|
-
|
|
4376
|
+
xu = Ur(function(t, r) {
|
|
4369
4377
|
const s = oa(() => ({
|
|
4370
4378
|
columns: t.columns,
|
|
4371
4379
|
sourceApi: t.sourceApi,
|
|
@@ -4382,7 +4390,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4382
4390
|
return f.jsxDEV(Kr, {
|
|
4383
4391
|
dataset: a,
|
|
4384
4392
|
children: [
|
|
4385
|
-
f.jsxDEV(
|
|
4393
|
+
f.jsxDEV(Kl, {
|
|
4386
4394
|
ref: r
|
|
4387
4395
|
}, void 0, false, {
|
|
4388
4396
|
fileName: "/workspace/react-wrapper/src/GMGridContainer.tsx",
|
|
@@ -4406,8 +4414,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4406
4414
|
})();
|
|
4407
4415
|
export {
|
|
4408
4416
|
E as ColumnDataTypesEnum,
|
|
4409
|
-
|
|
4410
|
-
|
|
4417
|
+
vu as GMDatagrid,
|
|
4418
|
+
xu as GMGridContainer,
|
|
4411
4419
|
__tla,
|
|
4412
4420
|
Xr as useGMGrid
|
|
4413
4421
|
};
|