gm-datagrid 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine/useEngineSync.d.ts +9 -6
- package/dist/gm-datagrid.js +388 -388
- package/dist/gm-datagrid.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/gm-datagrid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ie, { useState as Y, useRef as se, useEffect as he, 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: {}
|
|
@@ -42,7 +42,7 @@ let __tla = (async () => {
|
|
|
42
42
|
if (typeof c == "function") return c.$$typeof === Qe ? null : c.displayName || c.name || null;
|
|
43
43
|
if (typeof c == "string") return c;
|
|
44
44
|
switch (c) {
|
|
45
|
-
case
|
|
45
|
+
case C:
|
|
46
46
|
return "Fragment";
|
|
47
47
|
case X:
|
|
48
48
|
return "Profiler";
|
|
@@ -56,9 +56,9 @@ let __tla = (async () => {
|
|
|
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) {
|
|
59
|
-
case
|
|
59
|
+
case T:
|
|
60
60
|
return "Portal";
|
|
61
|
-
case
|
|
61
|
+
case le:
|
|
62
62
|
return c.displayName || "Context";
|
|
63
63
|
case Te:
|
|
64
64
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
@@ -93,7 +93,7 @@ let __tla = (async () => {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
function s(c) {
|
|
96
|
-
if (c ===
|
|
96
|
+
if (c === C) return "<>";
|
|
97
97
|
if (typeof c == "object" && c !== null && c.$$typeof === Ce) return "<...>";
|
|
98
98
|
try {
|
|
99
99
|
var v = e(c);
|
|
@@ -129,10 +129,10 @@ let __tla = (async () => {
|
|
|
129
129
|
var c = e(this.type);
|
|
130
130
|
return _t[c] || (_t[c] = true, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), c = this.props.ref, c !== void 0 ? c : null;
|
|
131
131
|
}
|
|
132
|
-
function u(c, v, V, L,
|
|
132
|
+
function u(c, v, V, L, ue, tt) {
|
|
133
133
|
var j = V.ref;
|
|
134
134
|
return c = {
|
|
135
|
-
$$typeof:
|
|
135
|
+
$$typeof: _,
|
|
136
136
|
type: c,
|
|
137
137
|
key: v,
|
|
138
138
|
props: V,
|
|
@@ -157,7 +157,7 @@ let __tla = (async () => {
|
|
|
157
157
|
configurable: false,
|
|
158
158
|
enumerable: false,
|
|
159
159
|
writable: true,
|
|
160
|
-
value:
|
|
160
|
+
value: ue
|
|
161
161
|
}), Object.defineProperty(c, "_debugTask", {
|
|
162
162
|
configurable: false,
|
|
163
163
|
enumerable: false,
|
|
@@ -165,38 +165,38 @@ let __tla = (async () => {
|
|
|
165
165
|
value: tt
|
|
166
166
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
167
167
|
}
|
|
168
|
-
function p(c, v, V, L,
|
|
168
|
+
function p(c, v, V, L, ue, tt) {
|
|
169
169
|
var j = v.children;
|
|
170
170
|
if (j !== void 0) if (L) if (pt(j)) {
|
|
171
|
-
for (L = 0; L < j.length; L++)
|
|
171
|
+
for (L = 0; L < j.length; L++) w(j[L]);
|
|
172
172
|
Object.freeze && Object.freeze(j);
|
|
173
173
|
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
174
|
-
else
|
|
174
|
+
else w(j);
|
|
175
175
|
if (et.call(v, "key")) {
|
|
176
176
|
j = e(c);
|
|
177
|
-
var
|
|
177
|
+
var ce = Object.keys(v).filter(function(bt) {
|
|
178
178
|
return bt !== "key";
|
|
179
179
|
});
|
|
180
|
-
L = 0 <
|
|
180
|
+
L = 0 < ce.length ? "{key: someKey, " + ce.join(": ..., ") + ": ...}" : "{key: someKey}", Ge[j + L] || (ce = 0 < ce.length ? "{" + ce.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
181
181
|
let props = %s;
|
|
182
182
|
<%s {...props} />
|
|
183
183
|
React keys must be passed directly to JSX without using spread:
|
|
184
184
|
let props = %s;
|
|
185
|
-
<%s key={someKey} {...props} />`, L, j,
|
|
185
|
+
<%s key={someKey} {...props} />`, L, j, ce, j), Ge[j + L] = true);
|
|
186
186
|
}
|
|
187
187
|
if (j = null, V !== void 0 && (r(V), j = "" + V), i(v) && (r(v.key), j = "" + v.key), "key" in v) {
|
|
188
188
|
V = {};
|
|
189
189
|
for (var rt in v) rt !== "key" && (V[rt] = v[rt]);
|
|
190
190
|
} else V = v;
|
|
191
|
-
return j && o(V, typeof c == "function" ? c.displayName || c.name || "Unknown" : c), u(c, j, V, a(),
|
|
191
|
+
return j && o(V, typeof c == "function" ? c.displayName || c.name || "Unknown" : c), u(c, j, V, a(), ue, tt);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function w(c) {
|
|
194
|
+
b(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === Ce && (c._payload.status === "fulfilled" ? b(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return typeof c == "object" && c !== null && c.$$typeof ===
|
|
196
|
+
function b(c) {
|
|
197
|
+
return typeof c == "object" && c !== null && c.$$typeof === _;
|
|
198
198
|
}
|
|
199
|
-
var k =
|
|
199
|
+
var k = ie, _ = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), Te = Symbol.for("react.consumer"), le = Symbol.for("react.context"), we = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), Ee = Symbol.for("react.suspense_list"), Xe = Symbol.for("react.memo"), Ce = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), Qe = Symbol.for("react.client.reference"), te = k.__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
|
k = {
|
|
@@ -205,9 +205,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
var wt, _t = {}, Fe = k.react_stack_bottom_frame.bind(k, n)(), $t = yt(s(n)), Ge = {};
|
|
208
|
-
xt.Fragment =
|
|
209
|
-
var
|
|
210
|
-
return p(c, v, V, L,
|
|
208
|
+
xt.Fragment = C, xt.jsxDEV = function(c, v, V, L) {
|
|
209
|
+
var ue = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
210
|
+
return p(c, v, V, L, ue ? Error("react-stack-top-frame") : Fe, ue ? yt(s(c)) : $t);
|
|
211
211
|
};
|
|
212
212
|
})()), xt;
|
|
213
213
|
}
|
|
@@ -218,21 +218,21 @@ 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 = se(null), [n, i] = Y(0);
|
|
222
|
+
he(() => {
|
|
223
223
|
let l = false;
|
|
224
224
|
const u = () => Promise.race([
|
|
225
225
|
import("./core_engine-Cnhrb_In.js"),
|
|
226
|
-
new Promise((
|
|
226
|
+
new Promise((w, b) => setTimeout(() => b(new Error("Wasm load timeout (5 s)")), xa))
|
|
227
227
|
]);
|
|
228
228
|
return (async () => {
|
|
229
229
|
var _a2;
|
|
230
230
|
s(null), t(false);
|
|
231
231
|
try {
|
|
232
|
-
const
|
|
233
|
-
await ((_a2 =
|
|
234
|
-
} catch (
|
|
235
|
-
l || s(
|
|
232
|
+
const w = await u();
|
|
233
|
+
await ((_a2 = w.default) == null ? void 0 : _a2.call(w)), l || (a.current = new w.GridEngine(), t(true));
|
|
234
|
+
} catch (w) {
|
|
235
|
+
l || s(w instanceof Error ? w : new Error(String(w)));
|
|
236
236
|
}
|
|
237
237
|
})(), () => {
|
|
238
238
|
l = true;
|
|
@@ -265,9 +265,14 @@ 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
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
he(() => {
|
|
269
|
+
if (!(!t || !e)) try {
|
|
270
|
+
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();
|
|
271
|
+
const w = n * i, b = JSON.parse(e.get_page(w, i)), k = e.get_total_count(), _ = JSON.parse(e.get_subtotals());
|
|
272
|
+
o(b), a(k, _);
|
|
273
|
+
} catch (w) {
|
|
274
|
+
console.error("[GMDatagrid] engine sync error:", w);
|
|
275
|
+
}
|
|
271
276
|
}, [
|
|
272
277
|
t,
|
|
273
278
|
e,
|
|
@@ -275,16 +280,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
275
280
|
s,
|
|
276
281
|
l,
|
|
277
282
|
u,
|
|
278
|
-
p
|
|
279
|
-
]), se(() => {
|
|
280
|
-
if (!t || !e || y.current === _.current) return;
|
|
281
|
-
_.current = y.current;
|
|
282
|
-
const k = n * i, b = JSON.parse(e.get_page(k, i)), N = e.get_total_count(), R = JSON.parse(e.get_subtotals());
|
|
283
|
-
o(b), a(N, R);
|
|
284
|
-
}, [
|
|
285
|
-
t,
|
|
286
|
-
e,
|
|
287
|
-
y.current,
|
|
283
|
+
p,
|
|
288
284
|
n,
|
|
289
285
|
i,
|
|
290
286
|
o,
|
|
@@ -293,10 +289,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
293
289
|
}
|
|
294
290
|
const Jr = aa(null);
|
|
295
291
|
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), [
|
|
297
|
-
p(
|
|
298
|
-
}, []), X = W((
|
|
299
|
-
l(
|
|
292
|
+
const { engine: s, ready: a, error: n, retry: i } = ka(), [o, l] = Y([]), [u, p] = Y(0), [w, b] = Y({}), [k, _] = Y(0), [T, C] = Y(r), B = W((le, we) => {
|
|
293
|
+
p(le), b(we);
|
|
294
|
+
}, []), X = W((le) => {
|
|
295
|
+
l(le);
|
|
300
296
|
}, []);
|
|
301
297
|
Na({
|
|
302
298
|
engine: s,
|
|
@@ -304,7 +300,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
304
300
|
rows: e.rows,
|
|
305
301
|
columns: e.columns,
|
|
306
302
|
page: k,
|
|
307
|
-
pageSize:
|
|
303
|
+
pageSize: T,
|
|
308
304
|
onSynced: B,
|
|
309
305
|
onPageData: X,
|
|
310
306
|
sortStack: e.sortStack,
|
|
@@ -315,11 +311,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
315
311
|
...e,
|
|
316
312
|
pageRows: o,
|
|
317
313
|
totalCount: u,
|
|
318
|
-
subtotals:
|
|
314
|
+
subtotals: w,
|
|
319
315
|
page: k,
|
|
320
|
-
pageSize:
|
|
321
|
-
setPage:
|
|
322
|
-
setPageSize:
|
|
316
|
+
pageSize: T,
|
|
317
|
+
setPage: _,
|
|
318
|
+
setPageSize: C,
|
|
323
319
|
engineReady: a,
|
|
324
320
|
engineError: n,
|
|
325
321
|
retryEngine: i
|
|
@@ -339,13 +335,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
339
335
|
return e;
|
|
340
336
|
};
|
|
341
337
|
function Qr(e) {
|
|
342
|
-
const { columns: t, sourceApi: r, apiParameters: s = {}, localData: a, apiContext: n } = e, [i, o] = Y([]), [l, u] = Y(!a), [p,
|
|
343
|
-
|
|
338
|
+
const { columns: t, sourceApi: r, apiParameters: s = {}, localData: a, apiContext: n } = e, [i, o] = Y([]), [l, u] = Y(!a), [p, w] = Y(null), [b, k] = Y(false), [_, T] = Y(s), [C, B] = Y([]), [X, Te] = Y(null), [le, we] = Y(""), Q = se(true);
|
|
339
|
+
he(() => (Q.current = true, () => {
|
|
344
340
|
Q.current = false;
|
|
345
341
|
}), []);
|
|
346
342
|
const Ee = W(async (Ce) => {
|
|
347
343
|
if (r) {
|
|
348
|
-
u(true),
|
|
344
|
+
u(true), w(null);
|
|
349
345
|
try {
|
|
350
346
|
const ee = {
|
|
351
347
|
...Ce,
|
|
@@ -353,7 +349,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
353
349
|
}, Qe = await r(ee);
|
|
354
350
|
Q.current && (o(Qe.data ?? []), k(true));
|
|
355
351
|
} catch (ee) {
|
|
356
|
-
Q.current &&
|
|
352
|
+
Q.current && w(ee instanceof Error ? ee.message : "Error al cargar datos");
|
|
357
353
|
} finally {
|
|
358
354
|
Q.current && u(false);
|
|
359
355
|
}
|
|
@@ -362,37 +358,37 @@ React keys must be passed directly to JSX without using spread:
|
|
|
362
358
|
r,
|
|
363
359
|
n
|
|
364
360
|
]);
|
|
365
|
-
|
|
361
|
+
he(() => {
|
|
366
362
|
a && (o(a), u(false), k(true));
|
|
367
363
|
}, [
|
|
368
364
|
a
|
|
369
|
-
]),
|
|
370
|
-
a || Ee(
|
|
365
|
+
]), he(() => {
|
|
366
|
+
a || Ee(_);
|
|
371
367
|
}, [
|
|
372
|
-
|
|
368
|
+
_,
|
|
373
369
|
Ee,
|
|
374
370
|
a
|
|
375
371
|
]);
|
|
376
372
|
const Xe = W(() => {
|
|
377
|
-
a || Ee(
|
|
373
|
+
a || Ee(_);
|
|
378
374
|
}, [
|
|
379
375
|
Ee,
|
|
380
|
-
|
|
376
|
+
_,
|
|
381
377
|
a
|
|
382
378
|
]);
|
|
383
379
|
return {
|
|
384
380
|
rows: i,
|
|
385
381
|
loading: l,
|
|
386
382
|
error: p,
|
|
387
|
-
ready:
|
|
383
|
+
ready: b,
|
|
388
384
|
columns: t,
|
|
389
385
|
handleRefresh: Xe,
|
|
390
|
-
setApiParameters:
|
|
391
|
-
sortStack:
|
|
386
|
+
setApiParameters: T,
|
|
387
|
+
sortStack: C,
|
|
392
388
|
setSortStack: B,
|
|
393
389
|
filterGroup: X,
|
|
394
390
|
setFilterGroup: Te,
|
|
395
|
-
quickFilterText:
|
|
391
|
+
quickFilterText: le,
|
|
396
392
|
setQuickFilterText: we
|
|
397
393
|
};
|
|
398
394
|
}
|
|
@@ -408,16 +404,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
408
404
|
visibleEnd: Math.min(50, e.length),
|
|
409
405
|
offsetTop: 0,
|
|
410
406
|
totalHeight: e.length * a
|
|
411
|
-
}), o =
|
|
412
|
-
return
|
|
407
|
+
}), o = se(0);
|
|
408
|
+
return he(() => {
|
|
413
409
|
const l = t.current;
|
|
414
410
|
if (!l) return;
|
|
415
411
|
const u = () => {
|
|
416
|
-
const p = l.scrollTop,
|
|
412
|
+
const p = l.scrollTop, w = l.clientHeight, b = Math.floor(p / a), k = Math.ceil((p + w) / a), _ = Math.max(0, b - s), T = Math.min(e.length, k + s);
|
|
417
413
|
i({
|
|
418
|
-
visibleStart:
|
|
419
|
-
visibleEnd:
|
|
420
|
-
offsetTop:
|
|
414
|
+
visibleStart: _,
|
|
415
|
+
visibleEnd: T,
|
|
416
|
+
offsetTop: _ * a,
|
|
421
417
|
totalHeight: e.length * a
|
|
422
418
|
}), o.current = requestAnimationFrame(u);
|
|
423
419
|
};
|
|
@@ -430,37 +426,37 @@ React keys must be passed directly to JSX without using spread:
|
|
|
430
426
|
]), n;
|
|
431
427
|
}
|
|
432
428
|
function Ta({ visibleRows: e, columns: t }) {
|
|
433
|
-
const [r, s] = Y(null), [a, n] = Y(null), [i, o] = Y(false), l =
|
|
434
|
-
const
|
|
435
|
-
rowIndex:
|
|
436
|
-
colIndex:
|
|
429
|
+
const [r, s] = Y(null), [a, n] = Y(null), [i, o] = Y(false), l = se(null), u = W((_, T) => {
|
|
430
|
+
const C = {
|
|
431
|
+
rowIndex: _,
|
|
432
|
+
colIndex: T
|
|
437
433
|
};
|
|
438
|
-
l.current =
|
|
439
|
-
start:
|
|
440
|
-
end:
|
|
441
|
-
}), n(
|
|
442
|
-
}, []), p = W((
|
|
434
|
+
l.current = C, s({
|
|
435
|
+
start: C,
|
|
436
|
+
end: C
|
|
437
|
+
}), n(C), o(true);
|
|
438
|
+
}, []), p = W((_, T) => {
|
|
443
439
|
if (!i || !l.current) return;
|
|
444
|
-
const
|
|
440
|
+
const C = l.current;
|
|
445
441
|
s({
|
|
446
442
|
start: {
|
|
447
|
-
rowIndex: Math.min(
|
|
448
|
-
colIndex: Math.min(
|
|
443
|
+
rowIndex: Math.min(C.rowIndex, _),
|
|
444
|
+
colIndex: Math.min(C.colIndex, T)
|
|
449
445
|
},
|
|
450
446
|
end: {
|
|
451
|
-
rowIndex: Math.max(
|
|
452
|
-
colIndex: Math.max(
|
|
447
|
+
rowIndex: Math.max(C.rowIndex, _),
|
|
448
|
+
colIndex: Math.max(C.colIndex, T)
|
|
453
449
|
}
|
|
454
450
|
});
|
|
455
451
|
}, [
|
|
456
452
|
i
|
|
457
|
-
]),
|
|
458
|
-
|
|
459
|
-
|
|
453
|
+
]), w = W(() => o(false), []);
|
|
454
|
+
he(() => (document.addEventListener("mouseup", w), () => document.removeEventListener("mouseup", w)), [
|
|
455
|
+
w
|
|
460
456
|
]);
|
|
461
|
-
const
|
|
457
|
+
const b = W(() => {
|
|
462
458
|
s(null), n(null), l.current = null;
|
|
463
|
-
}, []), k = W((
|
|
459
|
+
}, []), k = W((_, T) => r ? _ >= r.start.rowIndex && _ <= r.end.rowIndex && T >= r.start.colIndex && T <= r.end.colIndex : false, [
|
|
464
460
|
r
|
|
465
461
|
]);
|
|
466
462
|
return {
|
|
@@ -469,9 +465,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
469
465
|
isSelecting: i,
|
|
470
466
|
handleMouseDown: u,
|
|
471
467
|
handleMouseEnter: p,
|
|
472
|
-
handleMouseUp:
|
|
468
|
+
handleMouseUp: w,
|
|
473
469
|
setFocusedCell: n,
|
|
474
|
-
clearSelection:
|
|
470
|
+
clearSelection: b,
|
|
475
471
|
isCellSelected: k
|
|
476
472
|
};
|
|
477
473
|
}
|
|
@@ -482,8 +478,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
482
478
|
const l = [];
|
|
483
479
|
for (let u = e.start.rowIndex; u <= e.end.rowIndex; u++) {
|
|
484
480
|
const p = [];
|
|
485
|
-
for (let
|
|
486
|
-
const
|
|
481
|
+
for (let w = e.start.colIndex; w <= e.end.colIndex; w++) {
|
|
482
|
+
const b = ((_a2 = r[w]) == null ? void 0 : _a2.field) ?? "", k = (_b = t[u]) == null ? void 0 : _b[b];
|
|
487
483
|
p.push(k == null ? "" : String(k));
|
|
488
484
|
}
|
|
489
485
|
l.push(p.join(" "));
|
|
@@ -502,7 +498,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
502
498
|
t,
|
|
503
499
|
n
|
|
504
500
|
]);
|
|
505
|
-
|
|
501
|
+
he(() => {
|
|
506
502
|
const l = (u) => {
|
|
507
503
|
const p = u.ctrlKey || u.metaKey;
|
|
508
504
|
p && u.key === "c" && (u.preventDefault(), i()), p && u.key === "v" && (u.preventDefault(), o());
|
|
@@ -522,18 +518,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
522
518
|
}
|
|
523
519
|
}
|
|
524
520
|
function Ya({ visibleRows: e, columns: t, engine: r, engineReady: s, processRowUpdate: a, onCellError: n }) {
|
|
525
|
-
const [i, o] = Y(null), [l, u] = Y(""), [p,
|
|
526
|
-
const
|
|
527
|
-
if (!
|
|
528
|
-
const X =
|
|
529
|
-
u(
|
|
521
|
+
const [i, o] = Y(null), [l, u] = Y(""), [p, w] = Y({}), b = W((_, T) => {
|
|
522
|
+
const C = e[_.rowIndex], B = t[_.colIndex];
|
|
523
|
+
if (!C || !B || B.editable === false) return;
|
|
524
|
+
const X = C[B.field];
|
|
525
|
+
u(T ?? (X == null ? "" : String(X))), o(_);
|
|
530
526
|
}, [
|
|
531
527
|
e,
|
|
532
528
|
t
|
|
533
|
-
]), k = W(async (
|
|
529
|
+
]), k = W(async (_) => {
|
|
534
530
|
if (!i) return;
|
|
535
|
-
const { rowIndex:
|
|
536
|
-
t[
|
|
531
|
+
const { rowIndex: T, colIndex: C } = i;
|
|
532
|
+
t[C], e[T], o(null);
|
|
537
533
|
}, [
|
|
538
534
|
i,
|
|
539
535
|
t,
|
|
@@ -547,7 +543,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
547
543
|
return {
|
|
548
544
|
editingCell: i,
|
|
549
545
|
editValue: l,
|
|
550
|
-
startEditing:
|
|
546
|
+
startEditing: b,
|
|
551
547
|
stopEditing: k,
|
|
552
548
|
setEditValue: u,
|
|
553
549
|
cellErrors: p
|
|
@@ -556,10 +552,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
556
552
|
function Ra({ focusedCell: e, setFocusedCell: t, editingCell: r, startEditing: s, stopEditing: a, totalRows: n, columns: i }) {
|
|
557
553
|
const o = W((u, p) => {
|
|
558
554
|
if (!e) return;
|
|
559
|
-
const
|
|
555
|
+
const w = Math.max(0, Math.min(n - 1, e.rowIndex + u)), b = Math.max(0, Math.min(i.length - 1, e.colIndex + p));
|
|
560
556
|
t({
|
|
561
|
-
rowIndex:
|
|
562
|
-
colIndex:
|
|
557
|
+
rowIndex: w,
|
|
558
|
+
colIndex: b
|
|
563
559
|
});
|
|
564
560
|
}, [
|
|
565
561
|
e,
|
|
@@ -605,7 +601,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
605
601
|
s,
|
|
606
602
|
a
|
|
607
603
|
]);
|
|
608
|
-
|
|
604
|
+
he(() => (document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l)), [
|
|
609
605
|
l
|
|
610
606
|
]);
|
|
611
607
|
}
|
|
@@ -622,7 +618,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
618
|
i[o.field] = o.width ?? o.minWidth ?? 120;
|
|
623
619
|
}), i;
|
|
624
620
|
});
|
|
625
|
-
|
|
621
|
+
he(() => {
|
|
626
622
|
try {
|
|
627
623
|
localStorage.setItem(r, JSON.stringify(s));
|
|
628
624
|
} catch {
|
|
@@ -632,12 +628,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
632
628
|
r
|
|
633
629
|
]);
|
|
634
630
|
const n = W((i, o, l) => {
|
|
635
|
-
const u = (
|
|
631
|
+
const u = (w) => {
|
|
636
632
|
var _a2;
|
|
637
|
-
const
|
|
638
|
-
a((
|
|
639
|
-
...
|
|
640
|
-
[i]:
|
|
633
|
+
const b = w.clientX - o, k = ((_a2 = e.find((T) => T.field === i)) == null ? void 0 : _a2.minWidth) ?? 60, _ = Math.max(k, l + b);
|
|
634
|
+
a((T) => ({
|
|
635
|
+
...T,
|
|
636
|
+
[i]: _
|
|
641
637
|
}));
|
|
642
638
|
}, p = () => {
|
|
643
639
|
document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", p);
|
|
@@ -672,19 +668,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
672
668
|
function Va(e) {
|
|
673
669
|
es = e;
|
|
674
670
|
}
|
|
675
|
-
function
|
|
671
|
+
function ae(e) {
|
|
676
672
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
677
673
|
}
|
|
678
674
|
function je(e) {
|
|
679
675
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
680
676
|
}
|
|
681
|
-
function
|
|
677
|
+
function S(e, t) {
|
|
682
678
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
683
679
|
}
|
|
684
680
|
function ir(e) {
|
|
685
681
|
if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(e).length === 0;
|
|
686
682
|
var t;
|
|
687
|
-
for (t in e) if (
|
|
683
|
+
for (t in e) if (S(e, t)) return false;
|
|
688
684
|
return true;
|
|
689
685
|
}
|
|
690
686
|
function z(e) {
|
|
@@ -702,8 +698,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
702
698
|
return r;
|
|
703
699
|
}
|
|
704
700
|
function Ye(e, t) {
|
|
705
|
-
for (var r in t)
|
|
706
|
-
return
|
|
701
|
+
for (var r in t) S(t, r) && (e[r] = t[r]);
|
|
702
|
+
return S(t, "toString") && (e.toString = t.toString), S(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
707
703
|
}
|
|
708
704
|
function pe(e, t, r, s) {
|
|
709
705
|
return Ds(e, t, r, s, true).utc();
|
|
@@ -758,7 +754,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
758
754
|
function ft(e) {
|
|
759
755
|
lr(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Zt === false && (Zt = true, h.updateOffset(this), Zt = false);
|
|
760
756
|
}
|
|
761
|
-
function
|
|
757
|
+
function ne(e) {
|
|
762
758
|
return e instanceof ft || e != null && e._isAMomentObject != null;
|
|
763
759
|
}
|
|
764
760
|
function rs(e) {
|
|
@@ -773,7 +769,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
773
769
|
if (a = "", typeof arguments[n] == "object") {
|
|
774
770
|
a += `
|
|
775
771
|
[` + n + "] ";
|
|
776
|
-
for (i in arguments[0])
|
|
772
|
+
for (i in arguments[0]) S(arguments[0], i) && (a += i + ": " + arguments[0][i] + ", ");
|
|
777
773
|
a = a.slice(0, -2);
|
|
778
774
|
} else a = arguments[n];
|
|
779
775
|
s.push(a);
|
|
@@ -796,13 +792,13 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
796
792
|
}
|
|
797
793
|
function ja(e) {
|
|
798
794
|
var t, r;
|
|
799
|
-
for (r in e)
|
|
795
|
+
for (r in e) S(e, r) && (t = e[r], ye(t) ? this[r] = t : this["_" + r] = t);
|
|
800
796
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
|
|
801
797
|
}
|
|
802
798
|
function er(e, t) {
|
|
803
799
|
var r = Ye({}, e), s;
|
|
804
|
-
for (s in t)
|
|
805
|
-
for (s in e)
|
|
800
|
+
for (s in t) S(t, s) && (je(e[s]) && je(t[s]) ? (r[s] = {}, Ye(r[s], e[s]), Ye(r[s], t[s])) : t[s] != null ? r[s] = t[s] : delete r[s]);
|
|
801
|
+
for (s in e) S(e, s) && !S(t, s) && je(e[s]) && (r[s] = Ye({}, r[s]));
|
|
806
802
|
return r;
|
|
807
803
|
}
|
|
808
804
|
function ur(e) {
|
|
@@ -811,7 +807,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
811
807
|
var tr;
|
|
812
808
|
Object.keys ? tr = Object.keys : tr = function(e) {
|
|
813
809
|
var t, r = [];
|
|
814
|
-
for (t in e)
|
|
810
|
+
for (t in e) S(e, t) && r.push(t);
|
|
815
811
|
return r;
|
|
816
812
|
};
|
|
817
813
|
var Aa = {
|
|
@@ -831,7 +827,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
831
827
|
return (n ? r ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + s;
|
|
832
828
|
}
|
|
833
829
|
var cr = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, kt = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, qt = {}, $e = {};
|
|
834
|
-
function
|
|
830
|
+
function y(e, t, r, s) {
|
|
835
831
|
var a = s;
|
|
836
832
|
typeof s == "string" && (a = function() {
|
|
837
833
|
return this[s]();
|
|
@@ -967,7 +963,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
967
963
|
}
|
|
968
964
|
function dr(e) {
|
|
969
965
|
var t = {}, r, s;
|
|
970
|
-
for (s in e)
|
|
966
|
+
for (s in e) S(e, s) && (r = K(s), r && (t[r] = e[s]));
|
|
971
967
|
return t;
|
|
972
968
|
}
|
|
973
969
|
var Qa = {
|
|
@@ -990,7 +986,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
990
986
|
};
|
|
991
987
|
function en(e) {
|
|
992
988
|
var t = [], r;
|
|
993
|
-
for (r in e)
|
|
989
|
+
for (r in e) S(e, r) && t.push({
|
|
994
990
|
unit: r,
|
|
995
991
|
priority: Qa[r]
|
|
996
992
|
});
|
|
@@ -998,7 +994,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
998
994
|
return s.priority - a.priority;
|
|
999
995
|
}), t;
|
|
1000
996
|
}
|
|
1001
|
-
var ns = /\d/, $ = /\d\d/, is = /\d{3}/, fr = /\d{4}/, Vt = /[+-]?\d{6}/,
|
|
997
|
+
var ns = /\d/, $ = /\d\d/, is = /\d{3}/, fr = /\d{4}/, Vt = /[+-]?\d{6}/, P = /\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
998
|
Ot = {};
|
|
1003
999
|
function m(e, t, r) {
|
|
1004
1000
|
Ot[e] = ye(t) ? t : function(s, a) {
|
|
@@ -1006,7 +1002,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1006
1002
|
};
|
|
1007
1003
|
}
|
|
1008
1004
|
function sn(e, t) {
|
|
1009
|
-
return
|
|
1005
|
+
return S(Ot, e) ? Ot[e](t._strict, t._locale) : new RegExp(an(e));
|
|
1010
1006
|
}
|
|
1011
1007
|
function an(e) {
|
|
1012
1008
|
return ke(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(t, r, s, a, n) {
|
|
@@ -1038,37 +1034,37 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1038
1034
|
});
|
|
1039
1035
|
}
|
|
1040
1036
|
function nn(e, t, r) {
|
|
1041
|
-
t != null &&
|
|
1037
|
+
t != null && S(rr, e) && rr[e](t, r._a, r, e);
|
|
1042
1038
|
}
|
|
1043
1039
|
function Gt(e) {
|
|
1044
1040
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
1045
1041
|
}
|
|
1046
|
-
var H = 0, ve = 1,
|
|
1047
|
-
|
|
1042
|
+
var H = 0, ve = 1, fe = 2, G = 3, re = 4, xe = 5, We = 6, on = 7, ln = 8;
|
|
1043
|
+
y("Y", 0, 0, function() {
|
|
1048
1044
|
var e = this.year();
|
|
1049
1045
|
return e <= 9999 ? me(e, 4) : "+" + e;
|
|
1050
1046
|
});
|
|
1051
|
-
|
|
1047
|
+
y(0, [
|
|
1052
1048
|
"YY",
|
|
1053
1049
|
2
|
|
1054
1050
|
], 0, function() {
|
|
1055
1051
|
return this.year() % 100;
|
|
1056
1052
|
});
|
|
1057
|
-
|
|
1053
|
+
y(0, [
|
|
1058
1054
|
"YYYY",
|
|
1059
1055
|
4
|
|
1060
1056
|
], 0, "year");
|
|
1061
|
-
|
|
1057
|
+
y(0, [
|
|
1062
1058
|
"YYYYY",
|
|
1063
1059
|
5
|
|
1064
1060
|
], 0, "year");
|
|
1065
|
-
|
|
1061
|
+
y(0, [
|
|
1066
1062
|
"YYYYYY",
|
|
1067
1063
|
6,
|
|
1068
1064
|
true
|
|
1069
1065
|
], 0, "year");
|
|
1070
1066
|
m("Y", At);
|
|
1071
|
-
m("YY",
|
|
1067
|
+
m("YY", P, $);
|
|
1072
1068
|
m("YYYY", hr, fr);
|
|
1073
1069
|
m("YYYYY", jt, Vt);
|
|
1074
1070
|
m("YYYYYY", jt, Vt);
|
|
@@ -1171,20 +1167,20 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1171
1167
|
var r = fn(t, 12);
|
|
1172
1168
|
return e += (t - r) / 12, r === 1 ? Gt(e) ? 29 : 28 : 31 - r % 7 % 2;
|
|
1173
1169
|
}
|
|
1174
|
-
|
|
1170
|
+
y("M", [
|
|
1175
1171
|
"MM",
|
|
1176
1172
|
2
|
|
1177
1173
|
], "Mo", function() {
|
|
1178
1174
|
return this.month() + 1;
|
|
1179
1175
|
});
|
|
1180
|
-
|
|
1176
|
+
y("MMM", 0, 0, function(e) {
|
|
1181
1177
|
return this.localeData().monthsShort(this, e);
|
|
1182
1178
|
});
|
|
1183
|
-
|
|
1179
|
+
y("MMMM", 0, 0, function(e) {
|
|
1184
1180
|
return this.localeData().months(this, e);
|
|
1185
1181
|
});
|
|
1186
|
-
m("M",
|
|
1187
|
-
m("MM",
|
|
1182
|
+
m("M", P, Je);
|
|
1183
|
+
m("MM", P, $);
|
|
1188
1184
|
m("MMM", function(e, t) {
|
|
1189
1185
|
return t.monthsShortRegex(e);
|
|
1190
1186
|
});
|
|
@@ -1206,10 +1202,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1206
1202
|
});
|
|
1207
1203
|
var hn = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ds = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), fs = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, mn = ht, pn = ht;
|
|
1208
1204
|
function yn(e, t) {
|
|
1209
|
-
return e ?
|
|
1205
|
+
return e ? ae(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || fs).test(t) ? "format" : "standalone"][e.month()] : ae(this._months) ? this._months : this._months.standalone;
|
|
1210
1206
|
}
|
|
1211
1207
|
function wn(e, t) {
|
|
1212
|
-
return e ?
|
|
1208
|
+
return e ? ae(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[fs.test(t) ? "format" : "standalone"][e.month()] : ae(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
1213
1209
|
}
|
|
1214
1210
|
function _n(e, t, r) {
|
|
1215
1211
|
var s, a, n, i = e.toLocaleLowerCase();
|
|
@@ -1247,10 +1243,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1247
1243
|
return pr(this.year(), this.month());
|
|
1248
1244
|
}
|
|
1249
1245
|
function vn(e) {
|
|
1250
|
-
return this._monthsParseExact ? (
|
|
1246
|
+
return this._monthsParseExact ? (S(this, "_monthsRegex") || ps.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (S(this, "_monthsShortRegex") || (this._monthsShortRegex = mn), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
1251
1247
|
}
|
|
1252
1248
|
function xn(e) {
|
|
1253
|
-
return this._monthsParseExact ? (
|
|
1249
|
+
return this._monthsParseExact ? (S(this, "_monthsRegex") || ps.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (S(this, "_monthsRegex") || (this._monthsRegex = pn), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
1254
1250
|
}
|
|
1255
1251
|
function ps() {
|
|
1256
1252
|
function e(l, u) {
|
|
@@ -1293,18 +1289,18 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1293
1289
|
var s = Yt(e, t, r), a = Yt(e + 1, t, r);
|
|
1294
1290
|
return (nt(e) - s + a) / 7;
|
|
1295
1291
|
}
|
|
1296
|
-
|
|
1292
|
+
y("w", [
|
|
1297
1293
|
"ww",
|
|
1298
1294
|
2
|
|
1299
1295
|
], "wo", "week");
|
|
1300
|
-
|
|
1296
|
+
y("W", [
|
|
1301
1297
|
"WW",
|
|
1302
1298
|
2
|
|
1303
1299
|
], "Wo", "isoWeek");
|
|
1304
|
-
m("w",
|
|
1305
|
-
m("ww",
|
|
1306
|
-
m("W",
|
|
1307
|
-
m("WW",
|
|
1300
|
+
m("w", P, Je);
|
|
1301
|
+
m("ww", P, $);
|
|
1302
|
+
m("W", P, Je);
|
|
1303
|
+
m("WW", P, $);
|
|
1308
1304
|
mt([
|
|
1309
1305
|
"w",
|
|
1310
1306
|
"ww",
|
|
@@ -1334,21 +1330,21 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1334
1330
|
var t = ut(this, 1, 4).week;
|
|
1335
1331
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
1336
1332
|
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1333
|
+
y("d", 0, "do", "day");
|
|
1334
|
+
y("dd", 0, 0, function(e) {
|
|
1339
1335
|
return this.localeData().weekdaysMin(this, e);
|
|
1340
1336
|
});
|
|
1341
|
-
|
|
1337
|
+
y("ddd", 0, 0, function(e) {
|
|
1342
1338
|
return this.localeData().weekdaysShort(this, e);
|
|
1343
1339
|
});
|
|
1344
|
-
|
|
1340
|
+
y("dddd", 0, 0, function(e) {
|
|
1345
1341
|
return this.localeData().weekdays(this, e);
|
|
1346
1342
|
});
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
m("d",
|
|
1350
|
-
m("e",
|
|
1351
|
-
m("E",
|
|
1343
|
+
y("e", 0, 0, "weekday");
|
|
1344
|
+
y("E", 0, 0, "isoWeekday");
|
|
1345
|
+
m("d", P);
|
|
1346
|
+
m("e", P);
|
|
1347
|
+
m("E", P);
|
|
1352
1348
|
m("dd", function(e, t) {
|
|
1353
1349
|
return t.weekdaysMinRegex(e);
|
|
1354
1350
|
});
|
|
@@ -1384,7 +1380,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1384
1380
|
}
|
|
1385
1381
|
var Rn = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), ws = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Pn = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Cn = ht, In = ht, Vn = ht;
|
|
1386
1382
|
function Wn(e, t) {
|
|
1387
|
-
var r =
|
|
1383
|
+
var r = ae(this._weekdays) ? this._weekdays : this._weekdays[e && e !== true && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
1388
1384
|
return e === true ? yr(r, this._week.dow) : e ? r[e.day()] : r;
|
|
1389
1385
|
}
|
|
1390
1386
|
function jn(e) {
|
|
@@ -1432,17 +1428,17 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1432
1428
|
} else return this.day() || 7;
|
|
1433
1429
|
}
|
|
1434
1430
|
function zn(e) {
|
|
1435
|
-
return this._weekdaysParseExact ? (
|
|
1431
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || wr.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (S(this, "_weekdaysRegex") || (this._weekdaysRegex = Cn), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
1436
1432
|
}
|
|
1437
1433
|
function $n(e) {
|
|
1438
|
-
return this._weekdaysParseExact ? (
|
|
1434
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || wr.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (S(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = In), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
1439
1435
|
}
|
|
1440
1436
|
function Bn(e) {
|
|
1441
|
-
return this._weekdaysParseExact ? (
|
|
1437
|
+
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || wr.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (S(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Vn), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
1442
1438
|
}
|
|
1443
1439
|
function wr() {
|
|
1444
|
-
function e(p,
|
|
1445
|
-
return
|
|
1440
|
+
function e(p, w) {
|
|
1441
|
+
return w.length - p.length;
|
|
1446
1442
|
}
|
|
1447
1443
|
var t = [], r = [], s = [], a = [], n, i, o, l, u;
|
|
1448
1444
|
for (n = 0; n < 7; n++) i = pe([
|
|
@@ -1457,32 +1453,32 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1457
1453
|
function Zn() {
|
|
1458
1454
|
return this.hours() || 24;
|
|
1459
1455
|
}
|
|
1460
|
-
|
|
1456
|
+
y("H", [
|
|
1461
1457
|
"HH",
|
|
1462
1458
|
2
|
|
1463
1459
|
], 0, "hour");
|
|
1464
|
-
|
|
1460
|
+
y("h", [
|
|
1465
1461
|
"hh",
|
|
1466
1462
|
2
|
|
1467
1463
|
], 0, _r);
|
|
1468
|
-
|
|
1464
|
+
y("k", [
|
|
1469
1465
|
"kk",
|
|
1470
1466
|
2
|
|
1471
1467
|
], 0, Zn);
|
|
1472
|
-
|
|
1468
|
+
y("hmm", 0, 0, function() {
|
|
1473
1469
|
return "" + _r.apply(this) + me(this.minutes(), 2);
|
|
1474
1470
|
});
|
|
1475
|
-
|
|
1471
|
+
y("hmmss", 0, 0, function() {
|
|
1476
1472
|
return "" + _r.apply(this) + me(this.minutes(), 2) + me(this.seconds(), 2);
|
|
1477
1473
|
});
|
|
1478
|
-
|
|
1474
|
+
y("Hmm", 0, 0, function() {
|
|
1479
1475
|
return "" + this.hours() + me(this.minutes(), 2);
|
|
1480
1476
|
});
|
|
1481
|
-
|
|
1477
|
+
y("Hmmss", 0, 0, function() {
|
|
1482
1478
|
return "" + this.hours() + me(this.minutes(), 2) + me(this.seconds(), 2);
|
|
1483
1479
|
});
|
|
1484
1480
|
function _s(e, t) {
|
|
1485
|
-
|
|
1481
|
+
y(e, 0, 0, function() {
|
|
1486
1482
|
return this.localeData().meridiem(this.hours(), this.minutes(), t);
|
|
1487
1483
|
});
|
|
1488
1484
|
}
|
|
@@ -1493,12 +1489,12 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1493
1489
|
}
|
|
1494
1490
|
m("a", bs);
|
|
1495
1491
|
m("A", bs);
|
|
1496
|
-
m("H",
|
|
1497
|
-
m("h",
|
|
1498
|
-
m("k",
|
|
1499
|
-
m("HH",
|
|
1500
|
-
m("hh",
|
|
1501
|
-
m("kk",
|
|
1492
|
+
m("H", P, mr);
|
|
1493
|
+
m("h", P, Je);
|
|
1494
|
+
m("k", P, Je);
|
|
1495
|
+
m("HH", P, $);
|
|
1496
|
+
m("hh", P, $);
|
|
1497
|
+
m("kk", P, $);
|
|
1502
1498
|
m("hmm", os);
|
|
1503
1499
|
m("hmmss", ls);
|
|
1504
1500
|
m("Hmm", os);
|
|
@@ -1624,7 +1620,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1624
1620
|
function Se(e) {
|
|
1625
1621
|
var t;
|
|
1626
1622
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return ct;
|
|
1627
|
-
if (!
|
|
1623
|
+
if (!ae(e)) {
|
|
1628
1624
|
if (t = Lt(e), t) return t;
|
|
1629
1625
|
e = [
|
|
1630
1626
|
e
|
|
@@ -1637,7 +1633,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1637
1633
|
}
|
|
1638
1634
|
function gr(e) {
|
|
1639
1635
|
var t, r = e._a;
|
|
1640
|
-
return r && g(e).overflow === -2 && (t = r[ve] < 0 || r[ve] > 11 ? ve : r[
|
|
1636
|
+
return r && g(e).overflow === -2 && (t = r[ve] < 0 || r[ve] > 11 ? ve : r[fe] < 1 || r[fe] > pr(r[H], r[ve]) ? fe : r[G] < 0 || r[G] > 24 || r[G] === 24 && (r[re] !== 0 || r[xe] !== 0 || r[We] !== 0) ? G : r[re] < 0 || r[re] > 59 ? re : r[xe] < 0 || r[xe] > 59 ? xe : r[We] < 0 || r[We] > 999 ? We : -1, g(e)._overflowDayOfYear && (t < H || t > fe) && (t = fe), g(e)._overflowWeeks && t === -1 && (t = on), g(e)._overflowWeekday && t === -1 && (t = ln), g(e).overflow = t), e;
|
|
1641
1637
|
}
|
|
1642
1638
|
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
1639
|
[
|
|
@@ -1849,14 +1845,14 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1849
1845
|
function vr(e) {
|
|
1850
1846
|
var t, r, s = [], a, n, i;
|
|
1851
1847
|
if (!e._d) {
|
|
1852
|
-
for (a = yi(e), e._w && e._a[
|
|
1848
|
+
for (a = yi(e), e._w && e._a[fe] == 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[fe] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t) e._a[t] = s[t] = a[t];
|
|
1853
1849
|
for (; t < 7; t++) e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1854
1850
|
e._a[G] === 24 && e._a[re] === 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
1851
|
}
|
|
1856
1852
|
}
|
|
1857
1853
|
function wi(e) {
|
|
1858
1854
|
var t, r, s, a, n, i, o, l, u;
|
|
1859
|
-
t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, i = 4, r = He(t.GG, e._a[H], ut(
|
|
1855
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, i = 4, r = He(t.GG, e._a[H], ut(R(), 1, 4).year), s = He(t.W, 1), a = He(t.E, 1), (a < 1 || a > 7) && (l = true)) : (n = e._locale._week.dow, i = e._locale._week.doy, u = ut(R(), n, i), r = He(t.gg, e._a[H], u.year), s = He(t.w, u.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (l = true)) : t.e != null ? (a = t.e + n, (t.e < 0 || t.e > 6) && (l = true)) : a = n), s < 1 || s > De(r, n, i) ? g(e)._overflowWeeks = true : l != null ? g(e)._overflowWeekday = true : (o = ys(r, s, a, n, i), e._a[H] = o.year, e._dayOfYear = o.dayOfYear);
|
|
1860
1856
|
}
|
|
1861
1857
|
h.ISO_8601 = function() {
|
|
1862
1858
|
};
|
|
@@ -1913,31 +1909,31 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1913
1909
|
var t = e._i, r = e._f;
|
|
1914
1910
|
return e._locale = e._locale || Se(e._l), t === null || r === void 0 && t === "" ? It({
|
|
1915
1911
|
nullInput: true
|
|
1916
|
-
}) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)),
|
|
1912
|
+
}) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), ne(t) ? new ft(gr(t)) : (dt(t) ? e._d = t : ae(r) ? bi(e) : r ? xr(e) : xi(e), or(e) || (e._d = null), e));
|
|
1917
1913
|
}
|
|
1918
1914
|
function xi(e) {
|
|
1919
1915
|
var t = e._i;
|
|
1920
|
-
z(t) ? e._d = new Date(h.now()) : dt(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? pi(e) :
|
|
1916
|
+
z(t) ? e._d = new Date(h.now()) : dt(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? pi(e) : ae(t) ? (e._a = ts(t.slice(0), function(r) {
|
|
1921
1917
|
return parseInt(r, 10);
|
|
1922
1918
|
}), vr(e)) : je(t) ? gi(e) : Ne(t) ? e._d = new Date(t) : h.createFromInputFallback(e);
|
|
1923
1919
|
}
|
|
1924
1920
|
function Ds(e, t, r, s, a) {
|
|
1925
1921
|
var n = {};
|
|
1926
|
-
return (t === true || t === false) && (s = t, t = void 0), (r === true || r === false) && (s = r, r = void 0), (je(e) && ir(e) ||
|
|
1922
|
+
return (t === true || t === false) && (s = t, t = void 0), (r === true || r === false) && (s = r, r = void 0), (je(e) && ir(e) || ae(e) && e.length === 0) && (e = void 0), n._isAMomentObject = true, n._useUTC = n._isUTC = a, n._l = r, n._i = e, n._f = t, n._strict = s, vi(n);
|
|
1927
1923
|
}
|
|
1928
|
-
function
|
|
1924
|
+
function R(e, t, r, s) {
|
|
1929
1925
|
return Ds(e, t, r, s, false);
|
|
1930
1926
|
}
|
|
1931
1927
|
var ki = J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1932
|
-
var e =
|
|
1928
|
+
var e = R.apply(null, arguments);
|
|
1933
1929
|
return this.isValid() && e.isValid() ? e < this ? this : e : It();
|
|
1934
1930
|
}), Di = J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1935
|
-
var e =
|
|
1931
|
+
var e = R.apply(null, arguments);
|
|
1936
1932
|
return this.isValid() && e.isValid() ? e > this ? this : e : It();
|
|
1937
1933
|
});
|
|
1938
1934
|
function Ns(e, t) {
|
|
1939
1935
|
var r, s;
|
|
1940
|
-
if (t.length === 1 &&
|
|
1936
|
+
if (t.length === 1 && ae(t[0]) && (t = t[0]), !t.length) return R();
|
|
1941
1937
|
for (r = t[0], s = 1; s < t.length; ++s) (!t[s].isValid() || t[s][e](r)) && (r = t[s]);
|
|
1942
1938
|
return r;
|
|
1943
1939
|
}
|
|
@@ -1964,7 +1960,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1964
1960
|
];
|
|
1965
1961
|
function Ti(e) {
|
|
1966
1962
|
var t, r = false, s, a = at.length;
|
|
1967
|
-
for (t in e) if (
|
|
1963
|
+
for (t in e) if (S(e, t) && !(A.call(at, t) !== -1 && (e[t] == null || !isNaN(e[t])))) return false;
|
|
1968
1964
|
for (s = 0; s < a; ++s) if (e[at[s]]) {
|
|
1969
1965
|
if (r) return false;
|
|
1970
1966
|
parseFloat(e[at[s]]) !== x(e[at[s]]) && (r = true);
|
|
@@ -1975,7 +1971,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1975
1971
|
return this._isValid;
|
|
1976
1972
|
}
|
|
1977
1973
|
function Oi() {
|
|
1978
|
-
return
|
|
1974
|
+
return oe(NaN);
|
|
1979
1975
|
}
|
|
1980
1976
|
function Ut(e) {
|
|
1981
1977
|
var t = dr(e), r = t.year || 0, s = t.quarter || 0, a = t.month || 0, n = t.week || t.isoWeek || 0, i = t.day || 0, o = t.hour || 0, l = t.minute || 0, u = t.second || 0, p = t.millisecond || 0;
|
|
@@ -1993,7 +1989,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1993
1989
|
return n + a;
|
|
1994
1990
|
}
|
|
1995
1991
|
function Ss(e, t) {
|
|
1996
|
-
|
|
1992
|
+
y(e, 0, 0, function() {
|
|
1997
1993
|
var r = this.utcOffset(), s = "+";
|
|
1998
1994
|
return r < 0 && (r = -r, s = "-"), s + me(~~(r / 60), 2) + t + me(~~r % 60, 2);
|
|
1999
1995
|
});
|
|
@@ -2019,7 +2015,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2019
2015
|
}
|
|
2020
2016
|
function Dr(e, t) {
|
|
2021
2017
|
var r, s;
|
|
2022
|
-
return t._isUTC ? (r = t.clone(), s = (
|
|
2018
|
+
return t._isUTC ? (r = t.clone(), s = (ne(e) || dt(e) ? e.valueOf() : R(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + s), h.updateOffset(r, false), r) : R(e).local();
|
|
2023
2019
|
}
|
|
2024
2020
|
function ar(e) {
|
|
2025
2021
|
return -Math.round(e._d.getTimezoneOffset());
|
|
@@ -2033,7 +2029,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2033
2029
|
if (typeof e == "string") {
|
|
2034
2030
|
if (e = kr(Ft, e), e === null) return this;
|
|
2035
2031
|
} else Math.abs(e) < 16 && !r && (e = e * 60);
|
|
2036
|
-
return !this._isUTC && t && (a = ar(this)), this._offset = e, this._isUTC = true, a != null && this.add(a, "m"), s !== e && (!t || this._changeInProgress ? Es(this,
|
|
2032
|
+
return !this._isUTC && t && (a = ar(this)), this._offset = e, this._isUTC = true, a != null && this.add(a, "m"), s !== e && (!t || this._changeInProgress ? Es(this, oe(e - s, "m"), 1, false) : this._changeInProgress || (this._changeInProgress = true, h.updateOffset(this, true), this._changeInProgress = null)), this;
|
|
2037
2033
|
} else return this._isUTC ? s : ar(this);
|
|
2038
2034
|
}
|
|
2039
2035
|
function Ci(e, t) {
|
|
@@ -2054,7 +2050,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2054
2050
|
return this;
|
|
2055
2051
|
}
|
|
2056
2052
|
function ji(e) {
|
|
2057
|
-
return this.isValid() ? (e = e ?
|
|
2053
|
+
return this.isValid() ? (e = e ? R(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : false;
|
|
2058
2054
|
}
|
|
2059
2055
|
function Ai() {
|
|
2060
2056
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
@@ -2062,7 +2058,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2062
2058
|
function Fi() {
|
|
2063
2059
|
if (!z(this._isDSTShifted)) return this._isDSTShifted;
|
|
2064
2060
|
var e = {}, t;
|
|
2065
|
-
return lr(e, this), e = ks(e), e._a ? (t = e._isUTC ? pe(e._a) :
|
|
2061
|
+
return lr(e, this), e = ks(e), e._a ? (t = e._isUTC ? pe(e._a) : R(e._a), this._isDSTShifted = this.isValid() && Yi(e._a, t.toArray()) > 0) : this._isDSTShifted = false, this._isDSTShifted;
|
|
2066
2062
|
}
|
|
2067
2063
|
function Gi() {
|
|
2068
2064
|
return this.isValid() ? !this._isUTC : false;
|
|
@@ -2074,7 +2070,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2074
2070
|
return this.isValid() ? this._isUTC && this._offset === 0 : false;
|
|
2075
2071
|
}
|
|
2076
2072
|
var Ui = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Hi = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
2077
|
-
function
|
|
2073
|
+
function oe(e, t) {
|
|
2078
2074
|
var r = e, s = null, a, n, i;
|
|
2079
2075
|
return Tt(e) ? r = {
|
|
2080
2076
|
ms: e._milliseconds,
|
|
@@ -2082,7 +2078,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2082
2078
|
M: e._months
|
|
2083
2079
|
} : Ne(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Ui.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
2084
2080
|
y: 0,
|
|
2085
|
-
d: x(s[
|
|
2081
|
+
d: x(s[fe]) * a,
|
|
2086
2082
|
h: x(s[G]) * a,
|
|
2087
2083
|
m: x(s[re]) * a,
|
|
2088
2084
|
s: x(s[xe]) * a,
|
|
@@ -2095,10 +2091,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2095
2091
|
h: Ve(s[6], a),
|
|
2096
2092
|
m: Ve(s[7], a),
|
|
2097
2093
|
s: Ve(s[8], a)
|
|
2098
|
-
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (i = zi(
|
|
2094
|
+
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (i = zi(R(r.from), R(r.to)), r = {}, r.ms = i.milliseconds, r.M = i.months), n = new Ut(r), Tt(e) && S(e, "_locale") && (n._locale = e._locale), Tt(e) && S(e, "_isValid") && (n._isValid = e._isValid), n;
|
|
2099
2095
|
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2096
|
+
oe.fn = Ut.prototype;
|
|
2097
|
+
oe.invalid = Oi;
|
|
2102
2098
|
function Ve(e, t) {
|
|
2103
2099
|
var r = e && parseFloat(e.replace(",", "."));
|
|
2104
2100
|
return (isNaN(r) ? 0 : r) * t;
|
|
@@ -2117,7 +2113,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2117
2113
|
function Ts(e, t) {
|
|
2118
2114
|
return function(r, s) {
|
|
2119
2115
|
var a, n;
|
|
2120
|
-
return s !== null && !isNaN(+s) && (ss(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), n = r, r = s, s = n), a =
|
|
2116
|
+
return s !== null && !isNaN(+s) && (ss(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), n = r, r = s, s = n), a = oe(r, s), Es(this, a, e), this;
|
|
2121
2117
|
};
|
|
2122
2118
|
}
|
|
2123
2119
|
function Es(e, t, r, s) {
|
|
@@ -2129,7 +2125,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2129
2125
|
return typeof e == "string" || e instanceof String;
|
|
2130
2126
|
}
|
|
2131
2127
|
function Zi(e) {
|
|
2132
|
-
return
|
|
2128
|
+
return ne(e) || dt(e) || Os(e) || Ne(e) || Ji(e) || qi(e) || e === null || e === void 0;
|
|
2133
2129
|
}
|
|
2134
2130
|
function qi(e) {
|
|
2135
2131
|
var t = je(e) && !ir(e), r = false, s = [
|
|
@@ -2158,11 +2154,11 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2158
2154
|
"millisecond",
|
|
2159
2155
|
"ms"
|
|
2160
2156
|
], a, n, i = s.length;
|
|
2161
|
-
for (a = 0; a < i; a += 1) n = s[a], r = r ||
|
|
2157
|
+
for (a = 0; a < i; a += 1) n = s[a], r = r || S(e, n);
|
|
2162
2158
|
return t && r;
|
|
2163
2159
|
}
|
|
2164
2160
|
function Ji(e) {
|
|
2165
|
-
var t =
|
|
2161
|
+
var t = ae(e), r = false;
|
|
2166
2162
|
return t && (r = e.filter(function(s) {
|
|
2167
2163
|
return !Ne(s) && Os(e);
|
|
2168
2164
|
}).length === 0), t && r;
|
|
@@ -2176,7 +2172,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2176
2172
|
"lastWeek",
|
|
2177
2173
|
"sameElse"
|
|
2178
2174
|
], a, n;
|
|
2179
|
-
for (a = 0; a < s.length; a += 1) n = s[a], r = r ||
|
|
2175
|
+
for (a = 0; a < s.length; a += 1) n = s[a], r = r || S(e, n);
|
|
2180
2176
|
return t && r;
|
|
2181
2177
|
}
|
|
2182
2178
|
function Xi(e, t) {
|
|
@@ -2185,26 +2181,26 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2185
2181
|
}
|
|
2186
2182
|
function Qi(e, t) {
|
|
2187
2183
|
arguments.length === 1 && (arguments[0] ? Zi(arguments[0]) ? (e = arguments[0], t = void 0) : Ki(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
2188
|
-
var r = e ||
|
|
2189
|
-
return this.format(n || this.localeData().calendar(a, this,
|
|
2184
|
+
var r = e || R(), s = Dr(r, this).startOf("day"), a = h.calendarFormat(this, s) || "sameElse", n = t && (ye(t[a]) ? t[a].call(this, r) : t[a]);
|
|
2185
|
+
return this.format(n || this.localeData().calendar(a, this, R(r)));
|
|
2190
2186
|
}
|
|
2191
2187
|
function eo() {
|
|
2192
2188
|
return new ft(this);
|
|
2193
2189
|
}
|
|
2194
2190
|
function to(e, t) {
|
|
2195
|
-
var r =
|
|
2191
|
+
var r = ne(e) ? e : R(e);
|
|
2196
2192
|
return this.isValid() && r.isValid() ? (t = K(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : false;
|
|
2197
2193
|
}
|
|
2198
2194
|
function ro(e, t) {
|
|
2199
|
-
var r =
|
|
2195
|
+
var r = ne(e) ? e : R(e);
|
|
2200
2196
|
return this.isValid() && r.isValid() ? (t = K(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : false;
|
|
2201
2197
|
}
|
|
2202
2198
|
function so(e, t, r, s) {
|
|
2203
|
-
var a =
|
|
2199
|
+
var a = ne(e) ? e : R(e), n = ne(t) ? t : R(t);
|
|
2204
2200
|
return this.isValid() && a.isValid() && n.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(a, r) : !this.isBefore(a, r)) && (s[1] === ")" ? this.isBefore(n, r) : !this.isAfter(n, r))) : false;
|
|
2205
2201
|
}
|
|
2206
2202
|
function ao(e, t) {
|
|
2207
|
-
var r =
|
|
2203
|
+
var r = ne(e) ? e : R(e), s;
|
|
2208
2204
|
return this.isValid() && r.isValid() ? (t = K(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
2205
|
}
|
|
2210
2206
|
function no(e, t) {
|
|
@@ -2273,22 +2269,22 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2273
2269
|
return this.localeData().postformat(t);
|
|
2274
2270
|
}
|
|
2275
2271
|
function ho(e, t) {
|
|
2276
|
-
return this.isValid() && (
|
|
2272
|
+
return this.isValid() && (ne(e) && e.isValid() || R(e).isValid()) ? oe({
|
|
2277
2273
|
to: this,
|
|
2278
2274
|
from: e
|
|
2279
2275
|
}).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2280
2276
|
}
|
|
2281
2277
|
function mo(e) {
|
|
2282
|
-
return this.from(
|
|
2278
|
+
return this.from(R(), e);
|
|
2283
2279
|
}
|
|
2284
2280
|
function po(e, t) {
|
|
2285
|
-
return this.isValid() && (
|
|
2281
|
+
return this.isValid() && (ne(e) && e.isValid() || R(e).isValid()) ? oe({
|
|
2286
2282
|
from: this,
|
|
2287
2283
|
to: e
|
|
2288
2284
|
}).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2289
2285
|
}
|
|
2290
2286
|
function yo(e) {
|
|
2291
|
-
return this.to(
|
|
2287
|
+
return this.to(R(), e);
|
|
2292
2288
|
}
|
|
2293
2289
|
function Ys(e) {
|
|
2294
2290
|
var t;
|
|
@@ -2434,24 +2430,24 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2434
2430
|
strict: this._strict
|
|
2435
2431
|
};
|
|
2436
2432
|
}
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2433
|
+
y("N", 0, 0, "eraAbbr");
|
|
2434
|
+
y("NN", 0, 0, "eraAbbr");
|
|
2435
|
+
y("NNN", 0, 0, "eraAbbr");
|
|
2436
|
+
y("NNNN", 0, 0, "eraName");
|
|
2437
|
+
y("NNNNN", 0, 0, "eraNarrow");
|
|
2438
|
+
y("y", [
|
|
2443
2439
|
"y",
|
|
2444
2440
|
1
|
|
2445
2441
|
], "yo", "eraYear");
|
|
2446
|
-
|
|
2442
|
+
y("y", [
|
|
2447
2443
|
"yy",
|
|
2448
2444
|
2
|
|
2449
2445
|
], 0, "eraYear");
|
|
2450
|
-
|
|
2446
|
+
y("y", [
|
|
2451
2447
|
"yyy",
|
|
2452
2448
|
3
|
|
2453
2449
|
], 0, "eraYear");
|
|
2454
|
-
|
|
2450
|
+
y("y", [
|
|
2455
2451
|
"yyyy",
|
|
2456
2452
|
4
|
|
2457
2453
|
], 0, "eraYear");
|
|
@@ -2552,13 +2548,13 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2552
2548
|
return this.year();
|
|
2553
2549
|
}
|
|
2554
2550
|
function Vo(e) {
|
|
2555
|
-
return
|
|
2551
|
+
return S(this, "_erasNameRegex") || Sr.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
2556
2552
|
}
|
|
2557
2553
|
function Wo(e) {
|
|
2558
|
-
return
|
|
2554
|
+
return S(this, "_erasAbbrRegex") || Sr.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
2559
2555
|
}
|
|
2560
2556
|
function jo(e) {
|
|
2561
|
-
return
|
|
2557
|
+
return S(this, "_erasNarrowRegex") || Sr.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
2562
2558
|
}
|
|
2563
2559
|
function Nr(e, t) {
|
|
2564
2560
|
return t.erasAbbrRegex(e);
|
|
@@ -2577,20 +2573,20 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2577
2573
|
for (a = 0, n = u.length; a < n; ++a) i = ke(u[a].name), o = ke(u[a].abbr), l = ke(u[a].narrow), t.push(i), e.push(o), r.push(l), s.push(i), s.push(o), s.push(l);
|
|
2578
2574
|
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp("^(" + r.join("|") + ")", "i");
|
|
2579
2575
|
}
|
|
2580
|
-
|
|
2576
|
+
y(0, [
|
|
2581
2577
|
"gg",
|
|
2582
2578
|
2
|
|
2583
2579
|
], 0, function() {
|
|
2584
2580
|
return this.weekYear() % 100;
|
|
2585
2581
|
});
|
|
2586
|
-
|
|
2582
|
+
y(0, [
|
|
2587
2583
|
"GG",
|
|
2588
2584
|
2
|
|
2589
2585
|
], 0, function() {
|
|
2590
2586
|
return this.isoWeekYear() % 100;
|
|
2591
2587
|
});
|
|
2592
2588
|
function Ht(e, t) {
|
|
2593
|
-
|
|
2589
|
+
y(0, [
|
|
2594
2590
|
e,
|
|
2595
2591
|
e.length
|
|
2596
2592
|
], 0, t);
|
|
@@ -2601,8 +2597,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2601
2597
|
Ht("GGGGG", "isoWeekYear");
|
|
2602
2598
|
m("G", At);
|
|
2603
2599
|
m("g", At);
|
|
2604
|
-
m("GG",
|
|
2605
|
-
m("gg",
|
|
2600
|
+
m("GG", P, $);
|
|
2601
|
+
m("gg", P, $);
|
|
2606
2602
|
m("GGGG", hr, fr);
|
|
2607
2603
|
m("gggg", hr, fr);
|
|
2608
2604
|
m("GGGGG", jt, Vt);
|
|
@@ -2649,7 +2645,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2649
2645
|
var n = ys(e, t, r, s, a), i = lt(n.year, 0, n.dayOfYear);
|
|
2650
2646
|
return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
|
|
2651
2647
|
}
|
|
2652
|
-
|
|
2648
|
+
y("Q", 0, "Qo", "quarter");
|
|
2653
2649
|
m("Q", ns);
|
|
2654
2650
|
O("Q", function(e, t) {
|
|
2655
2651
|
t[ve] = (x(e) - 1) * 3;
|
|
@@ -2657,24 +2653,24 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2657
2653
|
function qo(e) {
|
|
2658
2654
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2659
2655
|
}
|
|
2660
|
-
|
|
2656
|
+
y("D", [
|
|
2661
2657
|
"DD",
|
|
2662
2658
|
2
|
|
2663
2659
|
], "Do", "date");
|
|
2664
|
-
m("D",
|
|
2665
|
-
m("DD",
|
|
2660
|
+
m("D", P, Je);
|
|
2661
|
+
m("DD", P, $);
|
|
2666
2662
|
m("Do", function(e, t) {
|
|
2667
2663
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2668
2664
|
});
|
|
2669
2665
|
O([
|
|
2670
2666
|
"D",
|
|
2671
2667
|
"DD"
|
|
2672
|
-
],
|
|
2668
|
+
], fe);
|
|
2673
2669
|
O("Do", function(e, t) {
|
|
2674
|
-
t[
|
|
2670
|
+
t[fe] = x(e.match(P)[0]);
|
|
2675
2671
|
});
|
|
2676
2672
|
var js = Ke("Date", true);
|
|
2677
|
-
|
|
2673
|
+
y("DDD", [
|
|
2678
2674
|
"DDDD",
|
|
2679
2675
|
3
|
|
2680
2676
|
], "DDDo", "dayOfYear");
|
|
@@ -2690,72 +2686,72 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2690
2686
|
var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
|
|
2691
2687
|
return e == null ? t : this.add(e - t, "d");
|
|
2692
2688
|
}
|
|
2693
|
-
|
|
2689
|
+
y("m", [
|
|
2694
2690
|
"mm",
|
|
2695
2691
|
2
|
|
2696
2692
|
], 0, "minute");
|
|
2697
|
-
m("m",
|
|
2698
|
-
m("mm",
|
|
2693
|
+
m("m", P, mr);
|
|
2694
|
+
m("mm", P, $);
|
|
2699
2695
|
O([
|
|
2700
2696
|
"m",
|
|
2701
2697
|
"mm"
|
|
2702
2698
|
], re);
|
|
2703
2699
|
var Ko = Ke("Minutes", false);
|
|
2704
|
-
|
|
2700
|
+
y("s", [
|
|
2705
2701
|
"ss",
|
|
2706
2702
|
2
|
|
2707
2703
|
], 0, "second");
|
|
2708
|
-
m("s",
|
|
2709
|
-
m("ss",
|
|
2704
|
+
m("s", P, mr);
|
|
2705
|
+
m("ss", P, $);
|
|
2710
2706
|
O([
|
|
2711
2707
|
"s",
|
|
2712
2708
|
"ss"
|
|
2713
2709
|
], xe);
|
|
2714
2710
|
var Xo = Ke("Seconds", false);
|
|
2715
|
-
|
|
2711
|
+
y("S", 0, 0, function() {
|
|
2716
2712
|
return ~~(this.millisecond() / 100);
|
|
2717
2713
|
});
|
|
2718
|
-
|
|
2714
|
+
y(0, [
|
|
2719
2715
|
"SS",
|
|
2720
2716
|
2
|
|
2721
2717
|
], 0, function() {
|
|
2722
2718
|
return ~~(this.millisecond() / 10);
|
|
2723
2719
|
});
|
|
2724
|
-
|
|
2720
|
+
y(0, [
|
|
2725
2721
|
"SSS",
|
|
2726
2722
|
3
|
|
2727
2723
|
], 0, "millisecond");
|
|
2728
|
-
|
|
2724
|
+
y(0, [
|
|
2729
2725
|
"SSSS",
|
|
2730
2726
|
4
|
|
2731
2727
|
], 0, function() {
|
|
2732
2728
|
return this.millisecond() * 10;
|
|
2733
2729
|
});
|
|
2734
|
-
|
|
2730
|
+
y(0, [
|
|
2735
2731
|
"SSSSS",
|
|
2736
2732
|
5
|
|
2737
2733
|
], 0, function() {
|
|
2738
2734
|
return this.millisecond() * 100;
|
|
2739
2735
|
});
|
|
2740
|
-
|
|
2736
|
+
y(0, [
|
|
2741
2737
|
"SSSSSS",
|
|
2742
2738
|
6
|
|
2743
2739
|
], 0, function() {
|
|
2744
2740
|
return this.millisecond() * 1e3;
|
|
2745
2741
|
});
|
|
2746
|
-
|
|
2742
|
+
y(0, [
|
|
2747
2743
|
"SSSSSSS",
|
|
2748
2744
|
7
|
|
2749
2745
|
], 0, function() {
|
|
2750
2746
|
return this.millisecond() * 1e4;
|
|
2751
2747
|
});
|
|
2752
|
-
|
|
2748
|
+
y(0, [
|
|
2753
2749
|
"SSSSSSSS",
|
|
2754
2750
|
8
|
|
2755
2751
|
], 0, function() {
|
|
2756
2752
|
return this.millisecond() * 1e5;
|
|
2757
2753
|
});
|
|
2758
|
-
|
|
2754
|
+
y(0, [
|
|
2759
2755
|
"SSSSSSSSS",
|
|
2760
2756
|
9
|
|
2761
2757
|
], 0, function() {
|
|
@@ -2771,8 +2767,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2771
2767
|
}
|
|
2772
2768
|
for (Re = "S"; Re.length <= 9; Re += "S") O(Re, Qo);
|
|
2773
2769
|
As = Ke("Milliseconds", false);
|
|
2774
|
-
|
|
2775
|
-
|
|
2770
|
+
y("z", 0, 0, "zoneAbbr");
|
|
2771
|
+
y("zz", 0, 0, "zoneName");
|
|
2776
2772
|
function el() {
|
|
2777
2773
|
return this._isUTC ? "UTC" : "";
|
|
2778
2774
|
}
|
|
@@ -2865,47 +2861,47 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2865
2861
|
d.zone = J("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", Ci);
|
|
2866
2862
|
d.isDSTShifted = J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", Fi);
|
|
2867
2863
|
function rl(e) {
|
|
2868
|
-
return
|
|
2864
|
+
return R(e * 1e3);
|
|
2869
2865
|
}
|
|
2870
2866
|
function sl() {
|
|
2871
|
-
return
|
|
2867
|
+
return R.apply(null, arguments).parseZone();
|
|
2872
2868
|
}
|
|
2873
2869
|
function Fs(e) {
|
|
2874
2870
|
return e;
|
|
2875
2871
|
}
|
|
2876
|
-
var
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2872
|
+
var M = ur.prototype;
|
|
2873
|
+
M.calendar = Fa;
|
|
2874
|
+
M.longDateFormat = Ha;
|
|
2875
|
+
M.invalidDate = $a;
|
|
2876
|
+
M.ordinal = qa;
|
|
2877
|
+
M.preparse = Fs;
|
|
2878
|
+
M.postformat = Fs;
|
|
2879
|
+
M.relativeTime = Ka;
|
|
2880
|
+
M.pastFuture = Xa;
|
|
2881
|
+
M.set = ja;
|
|
2882
|
+
M.eras = Eo;
|
|
2883
|
+
M.erasParse = Oo;
|
|
2884
|
+
M.erasConvertYear = Yo;
|
|
2885
|
+
M.erasAbbrRegex = Wo;
|
|
2886
|
+
M.erasNameRegex = Vo;
|
|
2887
|
+
M.erasNarrowRegex = jo;
|
|
2888
|
+
M.months = yn;
|
|
2889
|
+
M.monthsShort = wn;
|
|
2890
|
+
M.monthsParse = bn;
|
|
2891
|
+
M.monthsRegex = xn;
|
|
2892
|
+
M.monthsShortRegex = vn;
|
|
2893
|
+
M.week = Dn;
|
|
2894
|
+
M.firstDayOfYear = Mn;
|
|
2895
|
+
M.firstDayOfWeek = Sn;
|
|
2896
|
+
M.weekdays = Wn;
|
|
2897
|
+
M.weekdaysMin = An;
|
|
2898
|
+
M.weekdaysShort = jn;
|
|
2899
|
+
M.weekdaysParse = Gn;
|
|
2900
|
+
M.weekdaysRegex = zn;
|
|
2901
|
+
M.weekdaysShortRegex = $n;
|
|
2902
|
+
M.weekdaysMinRegex = Bn;
|
|
2903
|
+
M.isPM = qn;
|
|
2904
|
+
M.meridiem = Xn;
|
|
2909
2905
|
function Ct(e, t, r, s) {
|
|
2910
2906
|
var a = Se(), n = pe().set(s, t);
|
|
2911
2907
|
return a[r](n, e);
|
|
@@ -2971,7 +2967,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2971
2967
|
return this._milliseconds = be(this._milliseconds), this._days = be(this._days), this._months = be(this._months), e.milliseconds = be(e.milliseconds), e.seconds = be(e.seconds), e.minutes = be(e.minutes), e.hours = be(e.hours), e.months = be(e.months), e.years = be(e.years), this;
|
|
2972
2968
|
}
|
|
2973
2969
|
function Ls(e, t, r, s) {
|
|
2974
|
-
var a =
|
|
2970
|
+
var a = oe(t, r);
|
|
2975
2971
|
return e._milliseconds += s * a._milliseconds, e._days += s * a._days, e._months += s * a._months, e._bubble();
|
|
2976
2972
|
}
|
|
2977
2973
|
function cl(e, t) {
|
|
@@ -3028,7 +3024,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3028
3024
|
}
|
|
3029
3025
|
var Hs = Me("ms"), ml = Me("s"), pl = Me("m"), yl = Me("h"), wl = Me("d"), _l = Me("w"), bl = Me("M"), gl = Me("Q"), vl = Me("y"), xl = Hs;
|
|
3030
3026
|
function kl() {
|
|
3031
|
-
return
|
|
3027
|
+
return oe(this);
|
|
3032
3028
|
}
|
|
3033
3029
|
function Dl(e) {
|
|
3034
3030
|
return e = K(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
@@ -3055,7 +3051,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3055
3051
|
return a.relativeTime(t || 1, !!r, e, s);
|
|
3056
3052
|
}
|
|
3057
3053
|
function Cl(e, t, r, s) {
|
|
3058
|
-
var a =
|
|
3054
|
+
var a = oe(e).abs(), n = ge(a.as("s")), i = ge(a.as("m")), o = ge(a.as("h")), l = ge(a.as("d")), u = ge(a.as("M")), p = ge(a.as("w")), w = ge(a.as("y")), b = n <= r.ss && [
|
|
3059
3055
|
"s",
|
|
3060
3056
|
n
|
|
3061
3057
|
] || n < r.s && [
|
|
@@ -3077,22 +3073,22 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3077
3073
|
"dd",
|
|
3078
3074
|
l
|
|
3079
3075
|
];
|
|
3080
|
-
return r.w != null && (
|
|
3076
|
+
return r.w != null && (b = b || p <= 1 && [
|
|
3081
3077
|
"w"
|
|
3082
3078
|
] || p < r.w && [
|
|
3083
3079
|
"ww",
|
|
3084
3080
|
p
|
|
3085
|
-
]),
|
|
3081
|
+
]), b = b || u <= 1 && [
|
|
3086
3082
|
"M"
|
|
3087
3083
|
] || u < r.M && [
|
|
3088
3084
|
"MM",
|
|
3089
3085
|
u
|
|
3090
|
-
] ||
|
|
3086
|
+
] || w <= 1 && [
|
|
3091
3087
|
"y"
|
|
3092
3088
|
] || [
|
|
3093
3089
|
"yy",
|
|
3094
|
-
|
|
3095
|
-
],
|
|
3090
|
+
w
|
|
3091
|
+
], b[2] = t, b[3] = +e > 0, b[4] = s, Pl.apply(null, b);
|
|
3096
3092
|
}
|
|
3097
3093
|
function Il(e) {
|
|
3098
3094
|
return e === void 0 ? ge : typeof e == "function" ? (ge = e, true) : false;
|
|
@@ -3111,8 +3107,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3111
3107
|
}
|
|
3112
3108
|
function zt() {
|
|
3113
3109
|
if (!this.isValid()) return this.localeData().invalidDate();
|
|
3114
|
-
var e = Kt(this._milliseconds) / 1e3, t = Kt(this._days), r = Kt(this._months), s, a, n, i, o = this.asSeconds(), l, u, p,
|
|
3115
|
-
return o ? (s = q(e / 60), a = q(s / 60), e %= 60, s %= 60, n = q(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) ? "-" : "",
|
|
3110
|
+
var e = Kt(this._milliseconds) / 1e3, t = Kt(this._days), r = Kt(this._months), s, a, n, i, o = this.asSeconds(), l, u, p, w;
|
|
3111
|
+
return o ? (s = q(e / 60), a = q(s / 60), e %= 60, s %= 60, n = q(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) ? "-" : "", w = Le(this._milliseconds) !== Le(o) ? "-" : "", l + "P" + (n ? u + n + "Y" : "") + (r ? u + r + "M" : "") + (t ? p + t + "D" : "") + (a || s || e ? "T" : "") + (a ? w + a + "H" : "") + (s ? w + s + "M" : "") + (e ? w + i + "S" : "")) : "P0D";
|
|
3116
3112
|
}
|
|
3117
3113
|
var D = Ut.prototype;
|
|
3118
3114
|
D.isValid = Ei;
|
|
@@ -3149,8 +3145,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3149
3145
|
D.localeData = Ps;
|
|
3150
3146
|
D.toIsoString = J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", zt);
|
|
3151
3147
|
D.lang = Rs;
|
|
3152
|
-
|
|
3153
|
-
|
|
3148
|
+
y("X", 0, 0, "unix");
|
|
3149
|
+
y("x", 0, 0, "valueOf");
|
|
3154
3150
|
m("x", At);
|
|
3155
3151
|
m("X", rn);
|
|
3156
3152
|
O("X", function(e, t, r) {
|
|
@@ -3160,7 +3156,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3160
3156
|
r._d = new Date(x(e));
|
|
3161
3157
|
});
|
|
3162
3158
|
h.version = "2.30.1";
|
|
3163
|
-
Va(
|
|
3159
|
+
Va(R);
|
|
3164
3160
|
h.fn = d;
|
|
3165
3161
|
h.min = Ni;
|
|
3166
3162
|
h.max = Si;
|
|
@@ -3171,8 +3167,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3171
3167
|
h.isDate = dt;
|
|
3172
3168
|
h.locale = Pe;
|
|
3173
3169
|
h.invalid = It;
|
|
3174
|
-
h.duration =
|
|
3175
|
-
h.isMoment =
|
|
3170
|
+
h.duration = oe;
|
|
3171
|
+
h.isMoment = ne;
|
|
3176
3172
|
h.weekdays = il;
|
|
3177
3173
|
h.parseZone = sl;
|
|
3178
3174
|
h.localeData = Se;
|
|
@@ -3199,7 +3195,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3199
3195
|
WEEK: "GGGG-[W]WW",
|
|
3200
3196
|
MONTH: "YYYY-MM"
|
|
3201
3197
|
};
|
|
3202
|
-
const jl =
|
|
3198
|
+
const jl = ie.memo(function({ value: t }) {
|
|
3203
3199
|
const r = typeof t == "number" ? Math.min(100, Math.max(0, t)) : 0;
|
|
3204
3200
|
return f.jsxDEV(F, {
|
|
3205
3201
|
sx: {
|
|
@@ -3244,7 +3240,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3244
3240
|
lineNumber: 17,
|
|
3245
3241
|
columnNumber: 5
|
|
3246
3242
|
}, this);
|
|
3247
|
-
}), Al =
|
|
3243
|
+
}), Al = ie.memo(function({ value: t, column: r }) {
|
|
3248
3244
|
var _a2;
|
|
3249
3245
|
if (!t) return null;
|
|
3250
3246
|
const s = (_a2 = r.statusMap) == null ? void 0 : _a2[t], a = (s == null ? void 0 : s.label) ?? t, n = (s == null ? void 0 : s.color) ?? "default";
|
|
@@ -3257,7 +3253,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3257
3253
|
lineNumber: 18,
|
|
3258
3254
|
columnNumber: 10
|
|
3259
3255
|
}, this);
|
|
3260
|
-
}), Fl =
|
|
3256
|
+
}), Fl = ie.memo(function({ value: t }) {
|
|
3261
3257
|
return !Array.isArray(t) || t.length === 0 ? null : f.jsxDEV(F, {
|
|
3262
3258
|
sx: {
|
|
3263
3259
|
display: "flex",
|
|
@@ -3278,7 +3274,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3278
3274
|
lineNumber: 15,
|
|
3279
3275
|
columnNumber: 5
|
|
3280
3276
|
}, this);
|
|
3281
|
-
}), Gl =
|
|
3277
|
+
}), Gl = ie.memo(function({ value: t, alt: r = "" }) {
|
|
3282
3278
|
return f.jsxDEV(da, {
|
|
3283
3279
|
src: t ?? void 0,
|
|
3284
3280
|
alt: r,
|
|
@@ -3336,7 +3332,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3336
3332
|
E.INT
|
|
3337
3333
|
].includes(e);
|
|
3338
3334
|
}
|
|
3339
|
-
const zl =
|
|
3335
|
+
const zl = ie.memo(function({ row: t, column: r, isSelected: s, isFocused: a, onClick: n, onMouseEnter: i, onDoubleClick: o }) {
|
|
3340
3336
|
const l = Ll(t, r);
|
|
3341
3337
|
if (r.type === E.DISCOUNT || r.type === E.PERCENT || r.type === E.TAX || r.type === E.MARGIN) return f.jsxDEV(Ue, {
|
|
3342
3338
|
isSelected: s,
|
|
@@ -3511,8 +3507,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3511
3507
|
columnNumber: 5
|
|
3512
3508
|
}, this);
|
|
3513
3509
|
}
|
|
3514
|
-
const $l =
|
|
3515
|
-
const n =
|
|
3510
|
+
const $l = ie.memo(function({ column: t, editValue: r, onEditValueChange: s, onStopEditing: a }) {
|
|
3511
|
+
const n = se(null), i = (l) => {
|
|
3516
3512
|
l.key === "Enter" ? (l.preventDefault(), a(true)) : l.key === "Escape" ? (l.preventDefault(), a(false)) : l.key === "Tab" && (l.preventDefault(), a(true));
|
|
3517
3513
|
}, o = t.type === E.NUMBER || t.type === E.PRICE || t.type === E.TOTAL || t.type === E.INT;
|
|
3518
3514
|
return f.jsxDEV("input", {
|
|
@@ -3539,7 +3535,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3539
3535
|
lineNumber: 46,
|
|
3540
3536
|
columnNumber: 5
|
|
3541
3537
|
}, this);
|
|
3542
|
-
}), zs =
|
|
3538
|
+
}), zs = ie.memo(function({ onExport: t, onRefresh: r, onToggleDensity: s, loading: a = false }) {
|
|
3543
3539
|
return f.jsxDEV(f.Fragment, {
|
|
3544
3540
|
children: [
|
|
3545
3541
|
f.jsxDEV(Bt, {
|
|
@@ -3628,10 +3624,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3628
3624
|
lineNumber: 27,
|
|
3629
3625
|
columnNumber: 5
|
|
3630
3626
|
}, this);
|
|
3631
|
-
}), Bl =
|
|
3632
|
-
const
|
|
3633
|
-
const
|
|
3634
|
-
|
|
3627
|
+
}), Bl = ie.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: w }) {
|
|
3628
|
+
const b = se(null), k = W((_) => {
|
|
3629
|
+
const T = _.target.value;
|
|
3630
|
+
b.current && clearTimeout(b.current), b.current = setTimeout(() => n(T), 200);
|
|
3635
3631
|
}, [
|
|
3636
3632
|
n
|
|
3637
3633
|
]);
|
|
@@ -3713,7 +3709,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3713
3709
|
lineNumber: 55,
|
|
3714
3710
|
columnNumber: 7
|
|
3715
3711
|
}, this),
|
|
3716
|
-
p &&
|
|
3712
|
+
p && w && w.length > 0 && f.jsxDEV(F, {
|
|
3717
3713
|
sx: {
|
|
3718
3714
|
display: "flex",
|
|
3719
3715
|
gap: 3,
|
|
@@ -3722,12 +3718,12 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3722
3718
|
bgcolor: "action.hover",
|
|
3723
3719
|
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))"
|
|
3724
3720
|
},
|
|
3725
|
-
children:
|
|
3721
|
+
children: w.map((_) => p[_] !== void 0 ? f.jsxDEV(it, {
|
|
3726
3722
|
variant: "caption",
|
|
3727
3723
|
children: [
|
|
3728
3724
|
f.jsxDEV("strong", {
|
|
3729
3725
|
children: [
|
|
3730
|
-
|
|
3726
|
+
_,
|
|
3731
3727
|
":"
|
|
3732
3728
|
]
|
|
3733
3729
|
}, void 0, true, {
|
|
@@ -3736,11 +3732,11 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3736
3732
|
columnNumber: 17
|
|
3737
3733
|
}, this),
|
|
3738
3734
|
" ",
|
|
3739
|
-
p[
|
|
3735
|
+
p[_].toLocaleString("es-PE", {
|
|
3740
3736
|
minimumFractionDigits: 2
|
|
3741
3737
|
})
|
|
3742
3738
|
]
|
|
3743
|
-
},
|
|
3739
|
+
}, _, true, {
|
|
3744
3740
|
fileName: "/workspace/react-wrapper/src/toolbar/GridToolbar.tsx",
|
|
3745
3741
|
lineNumber: 108,
|
|
3746
3742
|
columnNumber: 15
|
|
@@ -3756,10 +3752,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3756
3752
|
lineNumber: 53,
|
|
3757
3753
|
columnNumber: 5
|
|
3758
3754
|
}, this);
|
|
3759
|
-
}), Zl =
|
|
3760
|
-
const [p,
|
|
3761
|
-
const
|
|
3762
|
-
|
|
3755
|
+
}), Zl = ie.memo(function({ title: t, loading: r, quickFilter: s, quickFilterPlaceholder: a = "Buscar\u2026", onQuickFilterChange: n, onExport: i, onRefresh: o, density: l, onToggleDensity: u }) {
|
|
3756
|
+
const [p, w] = Y(false), b = se(null), k = W((_) => {
|
|
3757
|
+
const T = _.target.value;
|
|
3758
|
+
b.current && clearTimeout(b.current), b.current = setTimeout(() => n(T), 200);
|
|
3763
3759
|
}, [
|
|
3764
3760
|
n
|
|
3765
3761
|
]);
|
|
@@ -3800,7 +3796,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3800
3796
|
}, this),
|
|
3801
3797
|
f.jsxDEV(St, {
|
|
3802
3798
|
size: "small",
|
|
3803
|
-
onClick: () =>
|
|
3799
|
+
onClick: () => w((_) => !_),
|
|
3804
3800
|
children: f.jsxDEV(ya, {
|
|
3805
3801
|
fontSize: "small",
|
|
3806
3802
|
sx: {
|
|
@@ -3913,7 +3909,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3913
3909
|
icon: _a,
|
|
3914
3910
|
text: "Error al cargar los datos"
|
|
3915
3911
|
}
|
|
3916
|
-
}, Xt =
|
|
3912
|
+
}, Xt = ie.memo(function({ variant: t, message: r, onClear: s, onRetry: a }) {
|
|
3917
3913
|
const n = ql[t], i = n.icon;
|
|
3918
3914
|
return f.jsxDEV(F, {
|
|
3919
3915
|
sx: {
|
|
@@ -3977,19 +3973,19 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
3977
3973
|
}, this);
|
|
3978
3974
|
});
|
|
3979
3975
|
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:
|
|
3976
|
+
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: w, handleRefresh: b, sortStack: k, setSortStack: _, filterGroup: T, setFilterGroup: C, setQuickFilterText: B, quickFilterText: X, pageRows: Te, totalCount: le, subtotals: we, engineReady: Q, engineError: Ee, retryEngine: Xe } = Xr(), Ce = se(null), [ee, Qe] = Y("standard"), te = (o ?? []).filter((N) => !N.hide), et = se(null), { visibleStart: pt, visibleEnd: yt, offsetTop: wt, totalHeight: _t } = Ma({
|
|
3981
3977
|
rows: Te,
|
|
3982
3978
|
containerRef: et,
|
|
3983
3979
|
density: ee
|
|
3984
3980
|
}), Fe = Te.slice(pt, yt + 1), { range: $t, focusedCell: Ge, setFocusedCell: c, handleMouseDown: v, handleMouseEnter: V, isCellSelected: L } = Ta({
|
|
3985
3981
|
visibleRows: Fe,
|
|
3986
3982
|
columns: te
|
|
3987
|
-
}), [
|
|
3983
|
+
}), [ue, tt] = Y({}), j = W((N, Oe) => {
|
|
3988
3984
|
tt((U) => ({
|
|
3989
3985
|
...U,
|
|
3990
|
-
[
|
|
3986
|
+
[N]: Oe
|
|
3991
3987
|
}));
|
|
3992
|
-
}, []), { editingCell:
|
|
3988
|
+
}, []), { editingCell: ce, editValue: rt, startEditing: bt, stopEditing: Tr, setEditValue: Bs } = Ya({
|
|
3993
3989
|
visibleRows: Fe,
|
|
3994
3990
|
columns: te,
|
|
3995
3991
|
engine: null,
|
|
@@ -4000,10 +3996,10 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4000
3996
|
Ra({
|
|
4001
3997
|
focusedCell: Ge,
|
|
4002
3998
|
setFocusedCell: c,
|
|
4003
|
-
editingCell:
|
|
3999
|
+
editingCell: ce,
|
|
4004
4000
|
startEditing: bt,
|
|
4005
4001
|
stopEditing: Tr,
|
|
4006
|
-
totalRows:
|
|
4002
|
+
totalRows: le,
|
|
4007
4003
|
columns: te
|
|
4008
4004
|
}), Ea({
|
|
4009
4005
|
engine: null,
|
|
@@ -4011,7 +4007,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4011
4007
|
range: $t,
|
|
4012
4008
|
visibleRows: Fe,
|
|
4013
4009
|
columns: te,
|
|
4014
|
-
onPasted:
|
|
4010
|
+
onPasted: b
|
|
4015
4011
|
});
|
|
4016
4012
|
const { widths: Er, onResizeStart: Zs } = Ca({
|
|
4017
4013
|
columns: te,
|
|
@@ -4019,27 +4015,27 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4019
4015
|
}), { handleExport: qs } = Ia({
|
|
4020
4016
|
engineRef: Ce,
|
|
4021
4017
|
title: t
|
|
4022
|
-
}), Js = W((
|
|
4023
|
-
const U = k.find((
|
|
4024
|
-
Oe.shiftKey ?
|
|
4025
|
-
...
|
|
4018
|
+
}), Js = W((N, Oe) => {
|
|
4019
|
+
const U = k.find((de) => de.field === N), Z = (U == null ? void 0 : U.dir) === "asc" ? "desc" : "asc";
|
|
4020
|
+
Oe.shiftKey ? _(U ? k.map((de) => de.field === N ? {
|
|
4021
|
+
...de,
|
|
4026
4022
|
dir: Z
|
|
4027
|
-
} :
|
|
4023
|
+
} : de) : [
|
|
4028
4024
|
...k,
|
|
4029
4025
|
{
|
|
4030
|
-
field:
|
|
4026
|
+
field: N,
|
|
4031
4027
|
dir: Z
|
|
4032
4028
|
}
|
|
4033
|
-
]) :
|
|
4029
|
+
]) : _([
|
|
4034
4030
|
{
|
|
4035
|
-
field:
|
|
4031
|
+
field: N,
|
|
4036
4032
|
dir: Z
|
|
4037
4033
|
}
|
|
4038
4034
|
]);
|
|
4039
4035
|
}, [
|
|
4040
4036
|
k,
|
|
4041
|
-
|
|
4042
|
-
]), Ks = te.filter((
|
|
4037
|
+
_
|
|
4038
|
+
]), Ks = te.filter((N) => N.calculateSubTotal).map((N) => N.field), Or = T !== null || X !== "", Xs = !p && le === 0, Qs = W(() => Qe((N) => N === "compact" ? "standard" : N === "standard" ? "comfortable" : "compact"), []);
|
|
4043
4039
|
if (!Q && Ee && !p) return f.jsxDEV(F, {
|
|
4044
4040
|
sx: {
|
|
4045
4041
|
border: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.12))",
|
|
@@ -4066,7 +4062,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4066
4062
|
quickFilterPlaceholder: s,
|
|
4067
4063
|
onQuickFilterChange: B,
|
|
4068
4064
|
onExport: qs,
|
|
4069
|
-
onRefresh:
|
|
4065
|
+
onRefresh: b,
|
|
4070
4066
|
density: ee,
|
|
4071
4067
|
onToggleDensity: Qs
|
|
4072
4068
|
};
|
|
@@ -4105,13 +4101,13 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4105
4101
|
zIndex: 2,
|
|
4106
4102
|
overflowX: "hidden"
|
|
4107
4103
|
},
|
|
4108
|
-
children: te.map((
|
|
4109
|
-
const Oe = k.find((Z) => Z.field ===
|
|
4104
|
+
children: te.map((N) => {
|
|
4105
|
+
const Oe = k.find((Z) => Z.field === N.field), U = Er[N.field] ?? N.width ?? 120;
|
|
4110
4106
|
return f.jsxDEV(F, {
|
|
4111
|
-
onClick: (Z) => Js(
|
|
4107
|
+
onClick: (Z) => Js(N.field, Z),
|
|
4112
4108
|
sx: {
|
|
4113
4109
|
width: U,
|
|
4114
|
-
minWidth:
|
|
4110
|
+
minWidth: N.minWidth ?? 60,
|
|
4115
4111
|
flexShrink: 0,
|
|
4116
4112
|
px: 1,
|
|
4117
4113
|
py: 0.5,
|
|
@@ -4126,7 +4122,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4126
4122
|
gap: 0.5
|
|
4127
4123
|
},
|
|
4128
4124
|
children: [
|
|
4129
|
-
|
|
4125
|
+
N.headerName ?? N.field,
|
|
4130
4126
|
Oe && f.jsxDEV("span", {
|
|
4131
4127
|
style: {
|
|
4132
4128
|
fontSize: 10
|
|
@@ -4137,7 +4133,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4137
4133
|
lineNumber: 218,
|
|
4138
4134
|
columnNumber: 24
|
|
4139
4135
|
}, this),
|
|
4140
|
-
we[
|
|
4136
|
+
we[N.field] !== void 0 && f.jsxDEV(F, {
|
|
4141
4137
|
component: "span",
|
|
4142
4138
|
sx: {
|
|
4143
4139
|
ml: "auto",
|
|
@@ -4145,7 +4141,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4145
4141
|
color: "text.secondary",
|
|
4146
4142
|
fontWeight: 400
|
|
4147
4143
|
},
|
|
4148
|
-
children: we[
|
|
4144
|
+
children: we[N.field].toLocaleString("es-PE", {
|
|
4149
4145
|
minimumFractionDigits: 2,
|
|
4150
4146
|
maximumFractionDigits: 2
|
|
4151
4147
|
})
|
|
@@ -4157,7 +4153,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4157
4153
|
f.jsxDEV(F, {
|
|
4158
4154
|
component: "div",
|
|
4159
4155
|
onMouseDown: (Z) => {
|
|
4160
|
-
Z.stopPropagation(), Zs(
|
|
4156
|
+
Z.stopPropagation(), Zs(N.field, Z.clientX, U);
|
|
4161
4157
|
},
|
|
4162
4158
|
sx: {
|
|
4163
4159
|
position: "absolute",
|
|
@@ -4176,7 +4172,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4176
4172
|
columnNumber: 15
|
|
4177
4173
|
}, this)
|
|
4178
4174
|
]
|
|
4179
|
-
},
|
|
4175
|
+
}, N.field, true, {
|
|
4180
4176
|
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4181
4177
|
lineNumber: 197,
|
|
4182
4178
|
columnNumber: 13
|
|
@@ -4197,16 +4193,16 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4197
4193
|
children: Xs ? f.jsxDEV(Xt, {
|
|
4198
4194
|
variant: Or ? "filtered" : "empty",
|
|
4199
4195
|
onClear: Or ? () => {
|
|
4200
|
-
|
|
4196
|
+
C(null), B("");
|
|
4201
4197
|
} : void 0
|
|
4202
4198
|
}, void 0, false, {
|
|
4203
4199
|
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4204
4200
|
lineNumber: 240,
|
|
4205
4201
|
columnNumber: 11
|
|
4206
|
-
}, this) :
|
|
4202
|
+
}, this) : w ? f.jsxDEV(Xt, {
|
|
4207
4203
|
variant: "error",
|
|
4208
|
-
message:
|
|
4209
|
-
onRetry:
|
|
4204
|
+
message: w,
|
|
4205
|
+
onRetry: b
|
|
4210
4206
|
}, void 0, false, {
|
|
4211
4207
|
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4212
4208
|
lineNumber: 245,
|
|
@@ -4223,8 +4219,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4223
4219
|
left: 0,
|
|
4224
4220
|
right: 0
|
|
4225
4221
|
},
|
|
4226
|
-
children: Fe.map((
|
|
4227
|
-
const U = pt + Oe, Z = n ? n(
|
|
4222
|
+
children: Fe.map((N, Oe) => {
|
|
4223
|
+
const U = pt + Oe, Z = n ? n(N) : {}, de = String(N.id ?? U);
|
|
4228
4224
|
return f.jsxDEV("div", {
|
|
4229
4225
|
style: {
|
|
4230
4226
|
display: "flex",
|
|
@@ -4233,9 +4229,9 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4233
4229
|
borderBottom: "1px solid var(--gm-grid-border-color, rgba(0,0,0,0.06))",
|
|
4234
4230
|
cursor: i ? "pointer" : "default"
|
|
4235
4231
|
},
|
|
4236
|
-
onDoubleClick: i ? () => i(
|
|
4232
|
+
onDoubleClick: i ? () => i(N) : void 0,
|
|
4237
4233
|
children: te.map((_e, Ie) => {
|
|
4238
|
-
const ea = (
|
|
4234
|
+
const ea = (ce == null ? void 0 : ce.rowIndex) === U && (ce == null ? void 0 : ce.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
4235
|
return f.jsxDEV("div", {
|
|
4240
4236
|
style: {
|
|
4241
4237
|
width: sa,
|
|
@@ -4247,7 +4243,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4247
4243
|
},
|
|
4248
4244
|
children: [
|
|
4249
4245
|
ea ? f.jsxDEV($l, {
|
|
4250
|
-
rowId:
|
|
4246
|
+
rowId: de,
|
|
4251
4247
|
field: _e.field,
|
|
4252
4248
|
column: _e,
|
|
4253
4249
|
editValue: rt,
|
|
@@ -4258,7 +4254,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4258
4254
|
lineNumber: 283,
|
|
4259
4255
|
columnNumber: 29
|
|
4260
4256
|
}, this) : f.jsxDEV(zl, {
|
|
4261
|
-
row:
|
|
4257
|
+
row: N,
|
|
4262
4258
|
column: _e,
|
|
4263
4259
|
isSelected: ta,
|
|
4264
4260
|
isFocused: ra,
|
|
@@ -4278,9 +4274,9 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4278
4274
|
lineNumber: 292,
|
|
4279
4275
|
columnNumber: 29
|
|
4280
4276
|
}, this),
|
|
4281
|
-
|
|
4277
|
+
ue[`${de}:${_e.field}`] && f.jsxDEV(F, {
|
|
4282
4278
|
component: "div",
|
|
4283
|
-
title:
|
|
4279
|
+
title: ue[`${de}:${_e.field}`],
|
|
4284
4280
|
sx: {
|
|
4285
4281
|
position: "absolute",
|
|
4286
4282
|
top: 2,
|
|
@@ -4303,7 +4299,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4303
4299
|
columnNumber: 25
|
|
4304
4300
|
}, this);
|
|
4305
4301
|
})
|
|
4306
|
-
},
|
|
4302
|
+
}, de, false, {
|
|
4307
4303
|
fileName: "/workspace/react-wrapper/src/GMDatagridInner.tsx",
|
|
4308
4304
|
lineNumber: 254,
|
|
4309
4305
|
columnNumber: 19
|
|
@@ -4331,31 +4327,35 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4331
4327
|
columnNumber: 5
|
|
4332
4328
|
}, this);
|
|
4333
4329
|
}
|
|
4334
|
-
|
|
4335
|
-
const t =
|
|
4336
|
-
|
|
4330
|
+
function Jl(e) {
|
|
4331
|
+
const t = e.map((a) => `${a.field}:${a.type}`).join("|"), r = se(""), s = se(e);
|
|
4332
|
+
return t !== r.current && (r.current = t, s.current = e), s.current;
|
|
4333
|
+
}
|
|
4334
|
+
vu = function(e) {
|
|
4335
|
+
const t = Jl(e.columns ?? []), r = Qr({
|
|
4336
|
+
columns: t,
|
|
4337
4337
|
sourceApi: e.sourceApi,
|
|
4338
4338
|
apiParameters: e.apiParameters,
|
|
4339
4339
|
localData: e.localData,
|
|
4340
4340
|
apiContext: e.apiContext
|
|
4341
4341
|
});
|
|
4342
4342
|
return f.jsxDEV(Kr, {
|
|
4343
|
-
dataset:
|
|
4343
|
+
dataset: r,
|
|
4344
4344
|
children: f.jsxDEV($s, {
|
|
4345
4345
|
outerProps: e
|
|
4346
4346
|
}, void 0, false, {
|
|
4347
4347
|
fileName: "/workspace/react-wrapper/src/GMDatagrid.tsx",
|
|
4348
|
-
lineNumber:
|
|
4348
|
+
lineNumber: 46,
|
|
4349
4349
|
columnNumber: 7
|
|
4350
4350
|
}, this)
|
|
4351
4351
|
}, void 0, false, {
|
|
4352
4352
|
fileName: "/workspace/react-wrapper/src/GMDatagrid.tsx",
|
|
4353
|
-
lineNumber:
|
|
4353
|
+
lineNumber: 45,
|
|
4354
4354
|
columnNumber: 5
|
|
4355
4355
|
}, this);
|
|
4356
4356
|
};
|
|
4357
|
-
let
|
|
4358
|
-
|
|
4357
|
+
let Kl;
|
|
4358
|
+
Kl = Ur(function(t, r) {
|
|
4359
4359
|
const { handleRefresh: s, setApiParameters: a } = Xr();
|
|
4360
4360
|
return ia(r, () => ({
|
|
4361
4361
|
refresh: s,
|
|
@@ -4365,7 +4365,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4365
4365
|
a
|
|
4366
4366
|
]), null;
|
|
4367
4367
|
});
|
|
4368
|
-
|
|
4368
|
+
xu = Ur(function(t, r) {
|
|
4369
4369
|
const s = oa(() => ({
|
|
4370
4370
|
columns: t.columns,
|
|
4371
4371
|
sourceApi: t.sourceApi,
|
|
@@ -4382,7 +4382,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4382
4382
|
return f.jsxDEV(Kr, {
|
|
4383
4383
|
dataset: a,
|
|
4384
4384
|
children: [
|
|
4385
|
-
f.jsxDEV(
|
|
4385
|
+
f.jsxDEV(Kl, {
|
|
4386
4386
|
ref: r
|
|
4387
4387
|
}, void 0, false, {
|
|
4388
4388
|
fileName: "/workspace/react-wrapper/src/GMGridContainer.tsx",
|
|
@@ -4406,8 +4406,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
4406
4406
|
})();
|
|
4407
4407
|
export {
|
|
4408
4408
|
E as ColumnDataTypesEnum,
|
|
4409
|
-
|
|
4410
|
-
|
|
4409
|
+
vu as GMDatagrid,
|
|
4410
|
+
xu as GMGridContainer,
|
|
4411
4411
|
__tla,
|
|
4412
4412
|
Xr as useGMGrid
|
|
4413
4413
|
};
|