@teselagen/ui 0.3.40 → 0.3.42
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/index.cjs.js +361 -284
- package/index.es.js +361 -284
- package/package.json +2 -2
- package/src/DataTable/dataTableEnhancer.js +9 -0
- package/src/DataTable/index.js +134 -64
- package/src/FormComponents/Uploader.js +0 -5
package/index.cjs.js
CHANGED
|
@@ -2837,7 +2837,7 @@ var followCursor = {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
2839
|
__name(onMouseMove, "onMouseMove");
|
|
2840
|
-
function
|
|
2840
|
+
function create6() {
|
|
2841
2841
|
if (instance.props.followCursor) {
|
|
2842
2842
|
activeInstances.push({
|
|
2843
2843
|
instance,
|
|
@@ -2846,7 +2846,7 @@ var followCursor = {
|
|
|
2846
2846
|
addMouseCoordsListener(doc);
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
|
-
__name(
|
|
2849
|
+
__name(create6, "create");
|
|
2850
2850
|
function destroy() {
|
|
2851
2851
|
activeInstances = activeInstances.filter(function(data) {
|
|
2852
2852
|
return data.instance !== instance;
|
|
@@ -2859,7 +2859,7 @@ var followCursor = {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
__name(destroy, "destroy");
|
|
2861
2861
|
return {
|
|
2862
|
-
onCreate:
|
|
2862
|
+
onCreate: create6,
|
|
2863
2863
|
onDestroy: destroy,
|
|
2864
2864
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2865
2865
|
prevProps = instance.props;
|
|
@@ -2872,7 +2872,7 @@ var followCursor = {
|
|
|
2872
2872
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2873
2873
|
destroy();
|
|
2874
2874
|
if (followCursor2) {
|
|
2875
|
-
|
|
2875
|
+
create6();
|
|
2876
2876
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2877
2877
|
addListener();
|
|
2878
2878
|
}
|
|
@@ -6814,10 +6814,10 @@ var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
6814
6814
|
/* istanbul ignore next */
|
|
6815
6815
|
Object.getOwnPropertyNames
|
|
6816
6816
|
);
|
|
6817
|
-
function toPrimitive$
|
|
6817
|
+
function toPrimitive$3(value) {
|
|
6818
6818
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
6819
6819
|
}
|
|
6820
|
-
__name(toPrimitive$
|
|
6820
|
+
__name(toPrimitive$3, "toPrimitive$3");
|
|
6821
6821
|
function hasProp(target, prop) {
|
|
6822
6822
|
return objectPrototype$1.hasOwnProperty.call(target, prop);
|
|
6823
6823
|
}
|
|
@@ -7714,7 +7714,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
7714
7714
|
return this.name_ + "[" + this.value_ + "]";
|
|
7715
7715
|
}, "toString");
|
|
7716
7716
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
7717
|
-
return toPrimitive$
|
|
7717
|
+
return toPrimitive$3(this.get());
|
|
7718
7718
|
}, "valueOf");
|
|
7719
7719
|
_proto[_Symbol$toPrimitive] = function() {
|
|
7720
7720
|
return this.valueOf();
|
|
@@ -7899,7 +7899,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
7899
7899
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
7900
7900
|
}, "toString");
|
|
7901
7901
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
7902
|
-
return toPrimitive$
|
|
7902
|
+
return toPrimitive$3(this.get());
|
|
7903
7903
|
}, "valueOf");
|
|
7904
7904
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
7905
7905
|
return this.valueOf();
|
|
@@ -12533,7 +12533,7 @@ lodash.exports;
|
|
|
12533
12533
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12534
12534
|
);
|
|
12535
12535
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
12536
|
-
var
|
|
12536
|
+
var defineProperty6 = function() {
|
|
12537
12537
|
try {
|
|
12538
12538
|
var func = getNative2(Object2, "defineProperty");
|
|
12539
12539
|
func({}, "", {});
|
|
@@ -12973,8 +12973,8 @@ lodash.exports;
|
|
|
12973
12973
|
}
|
|
12974
12974
|
__name(baseAssignIn2, "baseAssignIn");
|
|
12975
12975
|
function baseAssignValue2(object2, key, value) {
|
|
12976
|
-
if (key == "__proto__" &&
|
|
12977
|
-
|
|
12976
|
+
if (key == "__proto__" && defineProperty6) {
|
|
12977
|
+
defineProperty6(object2, key, {
|
|
12978
12978
|
"configurable": true,
|
|
12979
12979
|
"enumerable": true,
|
|
12980
12980
|
"value": value,
|
|
@@ -13707,8 +13707,8 @@ lodash.exports;
|
|
|
13707
13707
|
metaMap.set(func, data);
|
|
13708
13708
|
return func;
|
|
13709
13709
|
};
|
|
13710
|
-
var baseSetToString2 = !
|
|
13711
|
-
return
|
|
13710
|
+
var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
|
|
13711
|
+
return defineProperty6(func, "toString", {
|
|
13712
13712
|
"configurable": true,
|
|
13713
13713
|
"enumerable": false,
|
|
13714
13714
|
"value": constant2(string2),
|
|
@@ -16442,11 +16442,11 @@ lodash.exports;
|
|
|
16442
16442
|
copyObject2(source, keys3(source), object2, customizer);
|
|
16443
16443
|
});
|
|
16444
16444
|
var at = flatRest(baseAt);
|
|
16445
|
-
function
|
|
16445
|
+
function create6(prototype, properties) {
|
|
16446
16446
|
var result2 = baseCreate2(prototype);
|
|
16447
16447
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
16448
16448
|
}
|
|
16449
|
-
__name(
|
|
16449
|
+
__name(create6, "create");
|
|
16450
16450
|
var defaults2 = baseRest2(function(object2, sources) {
|
|
16451
16451
|
object2 = Object2(object2);
|
|
16452
16452
|
var index2 = -1;
|
|
@@ -17271,7 +17271,7 @@ lodash.exports;
|
|
|
17271
17271
|
lodash2.conforms = conforms;
|
|
17272
17272
|
lodash2.constant = constant2;
|
|
17273
17273
|
lodash2.countBy = countBy;
|
|
17274
|
-
lodash2.create =
|
|
17274
|
+
lodash2.create = create6;
|
|
17275
17275
|
lodash2.curry = curry;
|
|
17276
17276
|
lodash2.curryRight = curryRight;
|
|
17277
17277
|
lodash2.debounce = debounce2;
|
|
@@ -18304,33 +18304,25 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
18304
18304
|
return val;
|
|
18305
18305
|
throw TypeError("Can't convert object to primitive value");
|
|
18306
18306
|
}, "_toPrimitive");
|
|
18307
|
-
var
|
|
18308
|
-
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
|
|
18320
|
-
|
|
18321
|
-
|
|
18322
|
-
|
|
18323
|
-
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
throw TypeError("Accessors not supported!");
|
|
18327
|
-
if ("value" in Attributes)
|
|
18328
|
-
O2[P2] = Attributes.value;
|
|
18329
|
-
return O2;
|
|
18330
|
-
}, "defineProperty");
|
|
18331
|
-
return _objectDp;
|
|
18332
|
-
}
|
|
18333
|
-
__name(require_objectDp, "require_objectDp");
|
|
18307
|
+
var anObject$3 = _anObject;
|
|
18308
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
18309
|
+
var toPrimitive$2 = _toPrimitive;
|
|
18310
|
+
var dP$2 = Object.defineProperty;
|
|
18311
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
18312
|
+
anObject$3(O2);
|
|
18313
|
+
P2 = toPrimitive$2(P2, true);
|
|
18314
|
+
anObject$3(Attributes);
|
|
18315
|
+
if (IE8_DOM_DEFINE$1)
|
|
18316
|
+
try {
|
|
18317
|
+
return dP$2(O2, P2, Attributes);
|
|
18318
|
+
} catch (e2) {
|
|
18319
|
+
}
|
|
18320
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
18321
|
+
throw TypeError("Accessors not supported!");
|
|
18322
|
+
if ("value" in Attributes)
|
|
18323
|
+
O2[P2] = Attributes.value;
|
|
18324
|
+
return O2;
|
|
18325
|
+
}, "defineProperty");
|
|
18334
18326
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
18335
18327
|
return {
|
|
18336
18328
|
enumerable: !(bitmap & 1),
|
|
@@ -18339,10 +18331,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
18339
18331
|
value
|
|
18340
18332
|
};
|
|
18341
18333
|
}, "_propertyDesc");
|
|
18342
|
-
var dP$
|
|
18334
|
+
var dP$1 = _objectDp;
|
|
18343
18335
|
var createDesc$3 = _propertyDesc;
|
|
18344
18336
|
var _hide = require_descriptors() ? function(object2, key, value) {
|
|
18345
|
-
return dP$
|
|
18337
|
+
return dP$1.f(object2, key, createDesc$3(1, value));
|
|
18346
18338
|
} : function(object2, key, value) {
|
|
18347
18339
|
object2[key] = value;
|
|
18348
18340
|
return object2;
|
|
@@ -18356,7 +18348,7 @@ var core$3 = _coreExports;
|
|
|
18356
18348
|
var ctx$1 = _ctx;
|
|
18357
18349
|
var hide$2 = _hide;
|
|
18358
18350
|
var has$b = _has;
|
|
18359
|
-
var PROTOTYPE$
|
|
18351
|
+
var PROTOTYPE$1 = "prototype";
|
|
18360
18352
|
var $export$8 = /* @__PURE__ */ __name(function(type, name, source) {
|
|
18361
18353
|
var IS_FORCED = type & $export$8.F;
|
|
18362
18354
|
var IS_GLOBAL = type & $export$8.G;
|
|
@@ -18365,8 +18357,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name, source) {
|
|
|
18365
18357
|
var IS_BIND = type & $export$8.B;
|
|
18366
18358
|
var IS_WRAP = type & $export$8.W;
|
|
18367
18359
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
|
|
18368
|
-
var expProto = exports2[PROTOTYPE$
|
|
18369
|
-
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$
|
|
18360
|
+
var expProto = exports2[PROTOTYPE$1];
|
|
18361
|
+
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
|
|
18370
18362
|
var key, own2, out;
|
|
18371
18363
|
if (IS_GLOBAL)
|
|
18372
18364
|
source = name;
|
|
@@ -18390,7 +18382,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name, source) {
|
|
|
18390
18382
|
}
|
|
18391
18383
|
return C.apply(this, arguments);
|
|
18392
18384
|
}, "F");
|
|
18393
|
-
F[PROTOTYPE$
|
|
18385
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
18394
18386
|
return F;
|
|
18395
18387
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
18396
18388
|
if (IS_PROTO) {
|
|
@@ -18413,16 +18405,25 @@ var toString$6 = {}.toString;
|
|
|
18413
18405
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
18414
18406
|
return toString$6.call(it).slice(8, -1);
|
|
18415
18407
|
}, "_cof");
|
|
18416
|
-
var
|
|
18417
|
-
var
|
|
18418
|
-
|
|
18419
|
-
|
|
18408
|
+
var _iobject;
|
|
18409
|
+
var hasRequired_iobject;
|
|
18410
|
+
function require_iobject() {
|
|
18411
|
+
if (hasRequired_iobject)
|
|
18412
|
+
return _iobject;
|
|
18413
|
+
hasRequired_iobject = 1;
|
|
18414
|
+
var cof2 = _cof;
|
|
18415
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
18416
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
18417
|
+
};
|
|
18418
|
+
return _iobject;
|
|
18419
|
+
}
|
|
18420
|
+
__name(require_iobject, "require_iobject");
|
|
18420
18421
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
18421
18422
|
if (it == void 0)
|
|
18422
18423
|
throw TypeError("Can't call method on " + it);
|
|
18423
18424
|
return it;
|
|
18424
18425
|
}, "_defined");
|
|
18425
|
-
var IObject =
|
|
18426
|
+
var IObject = require_iobject();
|
|
18426
18427
|
var defined$2 = _defined;
|
|
18427
18428
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
18428
18429
|
return IObject(defined$2(it));
|
|
@@ -18495,14 +18496,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
18495
18496
|
var has$a = _has;
|
|
18496
18497
|
var toIObject$4 = _toIobject;
|
|
18497
18498
|
var arrayIndexOf = _arrayIncludes(false);
|
|
18498
|
-
var IE_PROTO$
|
|
18499
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
18499
18500
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object2, names2) {
|
|
18500
18501
|
var O2 = toIObject$4(object2);
|
|
18501
18502
|
var i = 0;
|
|
18502
18503
|
var result = [];
|
|
18503
18504
|
var key;
|
|
18504
18505
|
for (key in O2)
|
|
18505
|
-
if (key != IE_PROTO$
|
|
18506
|
+
if (key != IE_PROTO$1)
|
|
18506
18507
|
has$a(O2, key) && result.push(key);
|
|
18507
18508
|
while (names2.length > i)
|
|
18508
18509
|
if (has$a(O2, key = names2[i++])) {
|
|
@@ -18512,14 +18513,22 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object2, names2) {
|
|
|
18512
18513
|
}, "_objectKeysInternal");
|
|
18513
18514
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
18514
18515
|
var $keys$3 = _objectKeysInternal;
|
|
18515
|
-
var enumBugKeys
|
|
18516
|
+
var enumBugKeys = _enumBugKeys;
|
|
18516
18517
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
18517
|
-
return $keys$3(O2, enumBugKeys
|
|
18518
|
+
return $keys$3(O2, enumBugKeys);
|
|
18518
18519
|
}, "keys");
|
|
18519
18520
|
var _objectGops = {};
|
|
18520
18521
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
18521
18522
|
var _objectPie = {};
|
|
18522
|
-
|
|
18523
|
+
var hasRequired_objectPie;
|
|
18524
|
+
function require_objectPie() {
|
|
18525
|
+
if (hasRequired_objectPie)
|
|
18526
|
+
return _objectPie;
|
|
18527
|
+
hasRequired_objectPie = 1;
|
|
18528
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
18529
|
+
return _objectPie;
|
|
18530
|
+
}
|
|
18531
|
+
__name(require_objectPie, "require_objectPie");
|
|
18523
18532
|
var defined$1 = _defined;
|
|
18524
18533
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
18525
18534
|
return Object(defined$1(it));
|
|
@@ -18533,9 +18542,9 @@ function require_objectAssign() {
|
|
|
18533
18542
|
var DESCRIPTORS2 = require_descriptors();
|
|
18534
18543
|
var getKeys2 = _objectKeys;
|
|
18535
18544
|
var gOPS2 = _objectGops;
|
|
18536
|
-
var pIE2 =
|
|
18545
|
+
var pIE2 = require_objectPie();
|
|
18537
18546
|
var toObject2 = _toObject;
|
|
18538
|
-
var IObject2 =
|
|
18547
|
+
var IObject2 = require_iobject();
|
|
18539
18548
|
var $assign = Object.assign;
|
|
18540
18549
|
_objectAssign = !$assign || _fails(function() {
|
|
18541
18550
|
var A2 = {};
|
|
@@ -18596,19 +18605,28 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
18596
18605
|
}, "_iterStep");
|
|
18597
18606
|
var _iterators = {};
|
|
18598
18607
|
var _redefine = _hide;
|
|
18599
|
-
var
|
|
18600
|
-
var
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
var
|
|
18606
|
-
var
|
|
18607
|
-
var
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18608
|
+
var _objectDps;
|
|
18609
|
+
var hasRequired_objectDps;
|
|
18610
|
+
function require_objectDps() {
|
|
18611
|
+
if (hasRequired_objectDps)
|
|
18612
|
+
return _objectDps;
|
|
18613
|
+
hasRequired_objectDps = 1;
|
|
18614
|
+
var dP2 = _objectDp;
|
|
18615
|
+
var anObject2 = _anObject;
|
|
18616
|
+
var getKeys2 = _objectKeys;
|
|
18617
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
|
|
18618
|
+
anObject2(O2);
|
|
18619
|
+
var keys3 = getKeys2(Properties);
|
|
18620
|
+
var length = keys3.length;
|
|
18621
|
+
var i = 0;
|
|
18622
|
+
var P2;
|
|
18623
|
+
while (length > i)
|
|
18624
|
+
dP2.f(O2, P2 = keys3[i++], Properties[P2]);
|
|
18625
|
+
return O2;
|
|
18626
|
+
}, "defineProperties");
|
|
18627
|
+
return _objectDps;
|
|
18628
|
+
}
|
|
18629
|
+
__name(require_objectDps, "require_objectDps");
|
|
18612
18630
|
var _html;
|
|
18613
18631
|
var hasRequired_html;
|
|
18614
18632
|
function require_html() {
|
|
@@ -18620,42 +18638,51 @@ function require_html() {
|
|
|
18620
18638
|
return _html;
|
|
18621
18639
|
}
|
|
18622
18640
|
__name(require_html, "require_html");
|
|
18623
|
-
var
|
|
18624
|
-
var
|
|
18625
|
-
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
var
|
|
18630
|
-
var
|
|
18631
|
-
var
|
|
18632
|
-
var
|
|
18633
|
-
var
|
|
18634
|
-
|
|
18635
|
-
var
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18641
|
+
var _objectCreate;
|
|
18642
|
+
var hasRequired_objectCreate;
|
|
18643
|
+
function require_objectCreate() {
|
|
18644
|
+
if (hasRequired_objectCreate)
|
|
18645
|
+
return _objectCreate;
|
|
18646
|
+
hasRequired_objectCreate = 1;
|
|
18647
|
+
var anObject2 = _anObject;
|
|
18648
|
+
var dPs = require_objectDps();
|
|
18649
|
+
var enumBugKeys2 = _enumBugKeys;
|
|
18650
|
+
var IE_PROTO2 = _sharedKey("IE_PROTO");
|
|
18651
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
18652
|
+
}, "Empty");
|
|
18653
|
+
var PROTOTYPE2 = "prototype";
|
|
18654
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
18655
|
+
var iframe = require_domCreate()("iframe");
|
|
18656
|
+
var i = enumBugKeys2.length;
|
|
18657
|
+
var lt = "<";
|
|
18658
|
+
var gt = ">";
|
|
18659
|
+
var iframeDocument;
|
|
18660
|
+
iframe.style.display = "none";
|
|
18661
|
+
require_html().appendChild(iframe);
|
|
18662
|
+
iframe.src = "javascript:";
|
|
18663
|
+
iframeDocument = iframe.contentWindow.document;
|
|
18664
|
+
iframeDocument.open();
|
|
18665
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
18666
|
+
iframeDocument.close();
|
|
18667
|
+
createDict = iframeDocument.F;
|
|
18668
|
+
while (i--)
|
|
18669
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i]];
|
|
18670
|
+
return createDict();
|
|
18671
|
+
}, "createDict");
|
|
18672
|
+
_objectCreate = Object.create || /* @__PURE__ */ __name(function create6(O2, Properties) {
|
|
18673
|
+
var result;
|
|
18674
|
+
if (O2 !== null) {
|
|
18675
|
+
Empty[PROTOTYPE2] = anObject2(O2);
|
|
18676
|
+
result = new Empty();
|
|
18677
|
+
Empty[PROTOTYPE2] = null;
|
|
18678
|
+
result[IE_PROTO2] = O2;
|
|
18679
|
+
} else
|
|
18680
|
+
result = createDict();
|
|
18681
|
+
return Properties === void 0 ? result : dPs(result, Properties);
|
|
18682
|
+
}, "create");
|
|
18683
|
+
return _objectCreate;
|
|
18684
|
+
}
|
|
18685
|
+
__name(require_objectCreate, "require_objectCreate");
|
|
18659
18686
|
var _wks = { exports: {} };
|
|
18660
18687
|
var store = _sharedExports("wks");
|
|
18661
18688
|
var uid$1 = _uid;
|
|
@@ -18666,14 +18693,14 @@ var $exports = _wks.exports = function(name) {
|
|
|
18666
18693
|
};
|
|
18667
18694
|
$exports.store = store;
|
|
18668
18695
|
var _wksExports = _wks.exports;
|
|
18669
|
-
var def =
|
|
18696
|
+
var def = _objectDp.f;
|
|
18670
18697
|
var has$9 = _has;
|
|
18671
18698
|
var TAG$1 = _wksExports("toStringTag");
|
|
18672
18699
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
18673
18700
|
if (it && !has$9(it = stat ? it : it.prototype, TAG$1))
|
|
18674
18701
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
18675
18702
|
}, "_setToStringTag");
|
|
18676
|
-
var create$3 =
|
|
18703
|
+
var create$3 = require_objectCreate();
|
|
18677
18704
|
var descriptor = _propertyDesc;
|
|
18678
18705
|
var setToStringTag$2 = _setToStringTag;
|
|
18679
18706
|
var IteratorPrototype = {};
|
|
@@ -18939,7 +18966,7 @@ var ArrayProto = Array.prototype;
|
|
|
18939
18966
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
18940
18967
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
18941
18968
|
}, "_isArrayIter");
|
|
18942
|
-
var $defineProperty$1 =
|
|
18969
|
+
var $defineProperty$1 = _objectDp;
|
|
18943
18970
|
var createDesc$2 = _propertyDesc;
|
|
18944
18971
|
var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
|
|
18945
18972
|
if (index2 in object2)
|
|
@@ -19068,9 +19095,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
19068
19095
|
}
|
|
19069
19096
|
}, "_default$8");
|
|
19070
19097
|
var $export$3 = _export;
|
|
19071
|
-
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty:
|
|
19098
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
|
|
19072
19099
|
var $Object$2 = _coreExports.Object;
|
|
19073
|
-
var defineProperty$9 = /* @__PURE__ */ __name(function
|
|
19100
|
+
var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
|
|
19074
19101
|
return $Object$2.defineProperty(it, key, desc);
|
|
19075
19102
|
}, "defineProperty");
|
|
19076
19103
|
var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
|
|
@@ -19081,7 +19108,7 @@ function _interopRequireDefault$e(obj) {
|
|
|
19081
19108
|
}
|
|
19082
19109
|
__name(_interopRequireDefault$e, "_interopRequireDefault$e");
|
|
19083
19110
|
var _default$7 = function() {
|
|
19084
|
-
function
|
|
19111
|
+
function defineProperties2(target, props) {
|
|
19085
19112
|
for (var i = 0; i < props.length; i++) {
|
|
19086
19113
|
var descriptor2 = props[i];
|
|
19087
19114
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -19091,12 +19118,12 @@ var _default$7 = function() {
|
|
|
19091
19118
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
19092
19119
|
}
|
|
19093
19120
|
}
|
|
19094
|
-
__name(
|
|
19121
|
+
__name(defineProperties2, "defineProperties");
|
|
19095
19122
|
return function(Constructor, protoProps, staticProps) {
|
|
19096
19123
|
if (protoProps)
|
|
19097
|
-
|
|
19124
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
19098
19125
|
if (staticProps)
|
|
19099
|
-
|
|
19126
|
+
defineProperties2(Constructor, staticProps);
|
|
19100
19127
|
return Constructor;
|
|
19101
19128
|
};
|
|
19102
19129
|
}();
|
|
@@ -19109,7 +19136,7 @@ var _meta = { exports: {} };
|
|
|
19109
19136
|
var META$1 = _uid("meta");
|
|
19110
19137
|
var isObject$c = _isObject;
|
|
19111
19138
|
var has$7 = _has;
|
|
19112
|
-
var setDesc =
|
|
19139
|
+
var setDesc = _objectDp.f;
|
|
19113
19140
|
var id = 0;
|
|
19114
19141
|
var isExtensible = Object.isExtensible || function() {
|
|
19115
19142
|
return true;
|
|
@@ -19125,23 +19152,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
19125
19152
|
// weak collections IDs
|
|
19126
19153
|
} });
|
|
19127
19154
|
}, "setMeta");
|
|
19128
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
19155
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create6) {
|
|
19129
19156
|
if (!isObject$c(it))
|
|
19130
19157
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
19131
19158
|
if (!has$7(it, META$1)) {
|
|
19132
19159
|
if (!isExtensible(it))
|
|
19133
19160
|
return "F";
|
|
19134
|
-
if (!
|
|
19161
|
+
if (!create6)
|
|
19135
19162
|
return "E";
|
|
19136
19163
|
setMeta(it);
|
|
19137
19164
|
}
|
|
19138
19165
|
return it[META$1].i;
|
|
19139
19166
|
}, "fastKey");
|
|
19140
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
19167
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create6) {
|
|
19141
19168
|
if (!has$7(it, META$1)) {
|
|
19142
19169
|
if (!isExtensible(it))
|
|
19143
19170
|
return true;
|
|
19144
|
-
if (!
|
|
19171
|
+
if (!create6)
|
|
19145
19172
|
return false;
|
|
19146
19173
|
setMeta(it);
|
|
19147
19174
|
}
|
|
@@ -19162,7 +19189,7 @@ var meta = _meta.exports = {
|
|
|
19162
19189
|
var _metaExports = _meta.exports;
|
|
19163
19190
|
var core = _coreExports;
|
|
19164
19191
|
var wksExt$1 = _wksExt;
|
|
19165
|
-
var defineProperty$7 =
|
|
19192
|
+
var defineProperty$7 = _objectDp.f;
|
|
19166
19193
|
var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
19167
19194
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
19168
19195
|
if (name.charAt(0) != "_" && !(name in $Symbol2))
|
|
@@ -19170,7 +19197,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
|
19170
19197
|
}, "_wksDefine");
|
|
19171
19198
|
var getKeys = _objectKeys;
|
|
19172
19199
|
var gOPS$1 = _objectGops;
|
|
19173
|
-
var pIE$1 =
|
|
19200
|
+
var pIE$1 = require_objectPie();
|
|
19174
19201
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
19175
19202
|
var result = getKeys(it);
|
|
19176
19203
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -19211,7 +19238,7 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
19211
19238
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
19212
19239
|
}, "getOwnPropertyNames");
|
|
19213
19240
|
var _objectGopd = {};
|
|
19214
|
-
var pIE =
|
|
19241
|
+
var pIE = require_objectPie();
|
|
19215
19242
|
var createDesc$1 = _propertyDesc;
|
|
19216
19243
|
var toIObject$1 = _toIobject;
|
|
19217
19244
|
var toPrimitive$1 = _toPrimitive;
|
|
@@ -19250,11 +19277,11 @@ var toObject$1 = _toObject;
|
|
|
19250
19277
|
var toIObject = _toIobject;
|
|
19251
19278
|
var toPrimitive = _toPrimitive;
|
|
19252
19279
|
var createDesc = _propertyDesc;
|
|
19253
|
-
var _create$1 =
|
|
19280
|
+
var _create$1 = require_objectCreate();
|
|
19254
19281
|
var gOPNExt = _objectGopnExt;
|
|
19255
19282
|
var $GOPD = _objectGopd;
|
|
19256
19283
|
var $GOPS = _objectGops;
|
|
19257
|
-
var $DP =
|
|
19284
|
+
var $DP = _objectDp;
|
|
19258
19285
|
var $keys$1 = _objectKeys;
|
|
19259
19286
|
var gOPD$1 = $GOPD.f;
|
|
19260
19287
|
var dP = $DP.f;
|
|
@@ -19297,7 +19324,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
19297
19324
|
} : function(it) {
|
|
19298
19325
|
return it instanceof $Symbol;
|
|
19299
19326
|
};
|
|
19300
|
-
var $defineProperty = /* @__PURE__ */ __name(function
|
|
19327
|
+
var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
|
|
19301
19328
|
if (it === ObjectProto)
|
|
19302
19329
|
$defineProperty(OPSymbols, key, D2);
|
|
19303
19330
|
anObject(it);
|
|
@@ -19317,7 +19344,7 @@ var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D
|
|
|
19317
19344
|
}
|
|
19318
19345
|
return dP(it, key, D2);
|
|
19319
19346
|
}, "defineProperty");
|
|
19320
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
19347
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2) {
|
|
19321
19348
|
anObject(it);
|
|
19322
19349
|
var keys3 = enumKeys(P2 = toIObject(P2));
|
|
19323
19350
|
var i = 0;
|
|
@@ -19327,7 +19354,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
|
|
|
19327
19354
|
$defineProperty(it, key = keys3[i++], P2[key]);
|
|
19328
19355
|
return it;
|
|
19329
19356
|
}, "defineProperties");
|
|
19330
|
-
var $create = /* @__PURE__ */ __name(function
|
|
19357
|
+
var $create = /* @__PURE__ */ __name(function create2(it, P2) {
|
|
19331
19358
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
19332
19359
|
}, "create");
|
|
19333
19360
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -19391,7 +19418,7 @@ if (!USE_NATIVE) {
|
|
|
19391
19418
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
19392
19419
|
$DP.f = $defineProperty;
|
|
19393
19420
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
19394
|
-
|
|
19421
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
19395
19422
|
$GOPS.f = $getOwnPropertySymbols;
|
|
19396
19423
|
if (DESCRIPTORS && !_library) {
|
|
19397
19424
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -19557,9 +19584,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
19557
19584
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
19558
19585
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
19559
19586
|
var $export = _export;
|
|
19560
|
-
$export($export.S, "Object", { create:
|
|
19587
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
|
19561
19588
|
var $Object$1 = _coreExports.Object;
|
|
19562
|
-
var create$2 = /* @__PURE__ */ __name(function
|
|
19589
|
+
var create$2 = /* @__PURE__ */ __name(function create3(P2, D2) {
|
|
19563
19590
|
return $Object$1.create(P2, D2);
|
|
19564
19591
|
}, "create");
|
|
19565
19592
|
var create$1 = { "default": create$2, __esModule: true };
|
|
@@ -23646,7 +23673,7 @@ function normalizeComponent(Comp) {
|
|
|
23646
23673
|
}
|
|
23647
23674
|
__name(normalizeComponent, "normalizeComponent");
|
|
23648
23675
|
var _createClass$c = function() {
|
|
23649
|
-
function
|
|
23676
|
+
function defineProperties2(target, props) {
|
|
23650
23677
|
for (var i = 0; i < props.length; i++) {
|
|
23651
23678
|
var descriptor2 = props[i];
|
|
23652
23679
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23656,12 +23683,12 @@ var _createClass$c = function() {
|
|
|
23656
23683
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23657
23684
|
}
|
|
23658
23685
|
}
|
|
23659
|
-
__name(
|
|
23686
|
+
__name(defineProperties2, "defineProperties");
|
|
23660
23687
|
return function(Constructor, protoProps, staticProps) {
|
|
23661
23688
|
if (protoProps)
|
|
23662
|
-
|
|
23689
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
23663
23690
|
if (staticProps)
|
|
23664
|
-
|
|
23691
|
+
defineProperties2(Constructor, staticProps);
|
|
23665
23692
|
return Constructor;
|
|
23666
23693
|
};
|
|
23667
23694
|
}();
|
|
@@ -23822,7 +23849,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
23822
23849
|
return target;
|
|
23823
23850
|
};
|
|
23824
23851
|
var _createClass$b = function() {
|
|
23825
|
-
function
|
|
23852
|
+
function defineProperties2(target, props) {
|
|
23826
23853
|
for (var i = 0; i < props.length; i++) {
|
|
23827
23854
|
var descriptor2 = props[i];
|
|
23828
23855
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23832,12 +23859,12 @@ var _createClass$b = function() {
|
|
|
23832
23859
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23833
23860
|
}
|
|
23834
23861
|
}
|
|
23835
|
-
__name(
|
|
23862
|
+
__name(defineProperties2, "defineProperties");
|
|
23836
23863
|
return function(Constructor, protoProps, staticProps) {
|
|
23837
23864
|
if (protoProps)
|
|
23838
|
-
|
|
23865
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
23839
23866
|
if (staticProps)
|
|
23840
|
-
|
|
23867
|
+
defineProperties2(Constructor, staticProps);
|
|
23841
23868
|
return Constructor;
|
|
23842
23869
|
};
|
|
23843
23870
|
}();
|
|
@@ -24428,7 +24455,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
24428
24455
|
}(Base);
|
|
24429
24456
|
}, "Methods");
|
|
24430
24457
|
var _createClass$a = function() {
|
|
24431
|
-
function
|
|
24458
|
+
function defineProperties2(target, props) {
|
|
24432
24459
|
for (var i = 0; i < props.length; i++) {
|
|
24433
24460
|
var descriptor2 = props[i];
|
|
24434
24461
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -24438,12 +24465,12 @@ var _createClass$a = function() {
|
|
|
24438
24465
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
24439
24466
|
}
|
|
24440
24467
|
}
|
|
24441
|
-
__name(
|
|
24468
|
+
__name(defineProperties2, "defineProperties");
|
|
24442
24469
|
return function(Constructor, protoProps, staticProps) {
|
|
24443
24470
|
if (protoProps)
|
|
24444
|
-
|
|
24471
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
24445
24472
|
if (staticProps)
|
|
24446
|
-
|
|
24473
|
+
defineProperties2(Constructor, staticProps);
|
|
24447
24474
|
return Constructor;
|
|
24448
24475
|
};
|
|
24449
24476
|
}();
|
|
@@ -25215,7 +25242,7 @@ var _extends$i = Object.assign || function(target) {
|
|
|
25215
25242
|
return target;
|
|
25216
25243
|
};
|
|
25217
25244
|
var _createClass$9 = function() {
|
|
25218
|
-
function
|
|
25245
|
+
function defineProperties2(target, props) {
|
|
25219
25246
|
for (var i = 0; i < props.length; i++) {
|
|
25220
25247
|
var descriptor2 = props[i];
|
|
25221
25248
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -25225,12 +25252,12 @@ var _createClass$9 = function() {
|
|
|
25225
25252
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
25226
25253
|
}
|
|
25227
25254
|
}
|
|
25228
|
-
__name(
|
|
25255
|
+
__name(defineProperties2, "defineProperties");
|
|
25229
25256
|
return function(Constructor, protoProps, staticProps) {
|
|
25230
25257
|
if (protoProps)
|
|
25231
|
-
|
|
25258
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
25232
25259
|
if (staticProps)
|
|
25233
|
-
|
|
25260
|
+
defineProperties2(Constructor, staticProps);
|
|
25234
25261
|
return Constructor;
|
|
25235
25262
|
};
|
|
25236
25263
|
}();
|
|
@@ -25281,28 +25308,6 @@ var ReactTable = function(_Methods) {
|
|
|
25281
25308
|
_this.resizeColumnStart = _this.resizeColumnStart.bind(_this);
|
|
25282
25309
|
_this.resizeColumnEnd = _this.resizeColumnEnd.bind(_this);
|
|
25283
25310
|
_this.resizeColumnMoving = _this.resizeColumnMoving.bind(_this);
|
|
25284
|
-
setTimeout(function() {
|
|
25285
|
-
try {
|
|
25286
|
-
var newResized = _this.props.defaultResized || [];
|
|
25287
|
-
_this.tableRef.querySelectorAll(".tg-react-table-column-header").forEach(function(th) {
|
|
25288
|
-
var _th$parentNode$parent = th.parentNode.parentNode.getBoundingClientRect(), width = _th$parentNode$parent.width;
|
|
25289
|
-
var id2 = th.getAttribute("data-path");
|
|
25290
|
-
if (!newResized.find(function(x2) {
|
|
25291
|
-
return x2.id === id2;
|
|
25292
|
-
})) {
|
|
25293
|
-
newResized.push({
|
|
25294
|
-
id: id2,
|
|
25295
|
-
value: width
|
|
25296
|
-
});
|
|
25297
|
-
}
|
|
25298
|
-
});
|
|
25299
|
-
_this.setState({
|
|
25300
|
-
resized: newResized
|
|
25301
|
-
});
|
|
25302
|
-
} catch (e2) {
|
|
25303
|
-
console.warn("TNW: Error setting initial table column widths (please contact @tnrich if you see this error. thanks!):", e2);
|
|
25304
|
-
}
|
|
25305
|
-
}, 0);
|
|
25306
25311
|
_this.state = {
|
|
25307
25312
|
page: props.defaultPage,
|
|
25308
25313
|
pageSize: props.defaultPageSize,
|
|
@@ -31576,21 +31581,21 @@ function parse$5(options) {
|
|
|
31576
31581
|
defined: [],
|
|
31577
31582
|
lazy: {},
|
|
31578
31583
|
constructs: constructs2,
|
|
31579
|
-
content:
|
|
31580
|
-
document:
|
|
31581
|
-
flow:
|
|
31582
|
-
string:
|
|
31583
|
-
text:
|
|
31584
|
+
content: create6(content$1),
|
|
31585
|
+
document: create6(document$2),
|
|
31586
|
+
flow: create6(flow$1),
|
|
31587
|
+
string: create6(string$1),
|
|
31588
|
+
text: create6(text$3)
|
|
31584
31589
|
};
|
|
31585
31590
|
return parser;
|
|
31586
|
-
function
|
|
31591
|
+
function create6(initial) {
|
|
31587
31592
|
return creator;
|
|
31588
31593
|
function creator(from3) {
|
|
31589
31594
|
return createTokenizer(parser, initial, from3);
|
|
31590
31595
|
}
|
|
31591
31596
|
__name(creator, "creator");
|
|
31592
31597
|
}
|
|
31593
|
-
__name(
|
|
31598
|
+
__name(create6, "create");
|
|
31594
31599
|
}
|
|
31595
31600
|
__name(parse$5, "parse$5");
|
|
31596
31601
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -32001,10 +32006,10 @@ function compiler(options) {
|
|
|
32001
32006
|
return data[key];
|
|
32002
32007
|
}
|
|
32003
32008
|
__name(getData, "getData");
|
|
32004
|
-
function opener(
|
|
32009
|
+
function opener(create6, and) {
|
|
32005
32010
|
return open2;
|
|
32006
32011
|
function open2(token) {
|
|
32007
|
-
enter.call(this,
|
|
32012
|
+
enter.call(this, create6(token), token);
|
|
32008
32013
|
if (and)
|
|
32009
32014
|
and.call(this, token);
|
|
32010
32015
|
}
|
|
@@ -33766,7 +33771,7 @@ function mark(values, key, value) {
|
|
|
33766
33771
|
}
|
|
33767
33772
|
__name(mark, "mark");
|
|
33768
33773
|
const own$3 = {}.hasOwnProperty;
|
|
33769
|
-
function
|
|
33774
|
+
function create4(definition2) {
|
|
33770
33775
|
const property2 = {};
|
|
33771
33776
|
const normal = {};
|
|
33772
33777
|
let prop;
|
|
@@ -33789,8 +33794,8 @@ function create5(definition2) {
|
|
|
33789
33794
|
}
|
|
33790
33795
|
return new Schema(property2, normal, definition2.space);
|
|
33791
33796
|
}
|
|
33792
|
-
__name(
|
|
33793
|
-
const xlink =
|
|
33797
|
+
__name(create4, "create");
|
|
33798
|
+
const xlink = create4({
|
|
33794
33799
|
space: "xlink",
|
|
33795
33800
|
transform(_2, prop) {
|
|
33796
33801
|
return "xlink:" + prop.slice(5).toLowerCase();
|
|
@@ -33805,7 +33810,7 @@ const xlink = create5({
|
|
|
33805
33810
|
xLinkType: null
|
|
33806
33811
|
}
|
|
33807
33812
|
});
|
|
33808
|
-
const xml =
|
|
33813
|
+
const xml = create4({
|
|
33809
33814
|
space: "xml",
|
|
33810
33815
|
transform(_2, prop) {
|
|
33811
33816
|
return "xml:" + prop.slice(3).toLowerCase();
|
|
@@ -33820,13 +33825,13 @@ function caseInsensitiveTransform(attributes, property2) {
|
|
|
33820
33825
|
return caseSensitiveTransform(attributes, property2.toLowerCase());
|
|
33821
33826
|
}
|
|
33822
33827
|
__name(caseInsensitiveTransform, "caseInsensitiveTransform");
|
|
33823
|
-
const xmlns =
|
|
33828
|
+
const xmlns = create4({
|
|
33824
33829
|
space: "xmlns",
|
|
33825
33830
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
33826
33831
|
transform: caseInsensitiveTransform,
|
|
33827
33832
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
33828
33833
|
});
|
|
33829
|
-
const aria =
|
|
33834
|
+
const aria = create4({
|
|
33830
33835
|
transform(_2, prop) {
|
|
33831
33836
|
return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase();
|
|
33832
33837
|
},
|
|
@@ -33882,7 +33887,7 @@ const aria = create5({
|
|
|
33882
33887
|
role: null
|
|
33883
33888
|
}
|
|
33884
33889
|
});
|
|
33885
|
-
const html$1 =
|
|
33890
|
+
const html$1 = create4({
|
|
33886
33891
|
space: "html",
|
|
33887
33892
|
attributes: {
|
|
33888
33893
|
acceptcharset: "accept-charset",
|
|
@@ -34233,7 +34238,7 @@ const html$1 = create5({
|
|
|
34233
34238
|
unselectable: null
|
|
34234
34239
|
}
|
|
34235
34240
|
});
|
|
34236
|
-
const svg$1 =
|
|
34241
|
+
const svg$1 = create4({
|
|
34237
34242
|
space: "svg",
|
|
34238
34243
|
attributes: {
|
|
34239
34244
|
accentHeight: "accent-height",
|
|
@@ -40930,11 +40935,11 @@ var implementation$1 = /* @__PURE__ */ __name(function bind2(that) {
|
|
|
40930
40935
|
}
|
|
40931
40936
|
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
40932
40937
|
if (target.prototype) {
|
|
40933
|
-
var
|
|
40938
|
+
var Empty = /* @__PURE__ */ __name(function Empty2() {
|
|
40934
40939
|
}, "Empty");
|
|
40935
|
-
|
|
40936
|
-
bound.prototype = new
|
|
40937
|
-
|
|
40940
|
+
Empty.prototype = target.prototype;
|
|
40941
|
+
bound.prototype = new Empty();
|
|
40942
|
+
Empty.prototype = null;
|
|
40938
40943
|
}
|
|
40939
40944
|
return bound;
|
|
40940
40945
|
}, "bind");
|
|
@@ -45069,7 +45074,7 @@ var _extends$c = Object.assign || function(target) {
|
|
|
45069
45074
|
return target;
|
|
45070
45075
|
};
|
|
45071
45076
|
var _createClass$8 = function() {
|
|
45072
|
-
function
|
|
45077
|
+
function defineProperties2(target, props) {
|
|
45073
45078
|
for (var i = 0; i < props.length; i++) {
|
|
45074
45079
|
var descriptor2 = props[i];
|
|
45075
45080
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45079,12 +45084,12 @@ var _createClass$8 = function() {
|
|
|
45079
45084
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45080
45085
|
}
|
|
45081
45086
|
}
|
|
45082
|
-
__name(
|
|
45087
|
+
__name(defineProperties2, "defineProperties");
|
|
45083
45088
|
return function(Constructor, protoProps, staticProps) {
|
|
45084
45089
|
if (protoProps)
|
|
45085
|
-
|
|
45090
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
45086
45091
|
if (staticProps)
|
|
45087
|
-
|
|
45092
|
+
defineProperties2(Constructor, staticProps);
|
|
45088
45093
|
return Constructor;
|
|
45089
45094
|
};
|
|
45090
45095
|
}();
|
|
@@ -45226,7 +45231,7 @@ var Alpha = function(_ref) {
|
|
|
45226
45231
|
return Alpha2;
|
|
45227
45232
|
}(React$1.PureComponent || React$1.Component);
|
|
45228
45233
|
var _createClass$7 = function() {
|
|
45229
|
-
function
|
|
45234
|
+
function defineProperties2(target, props) {
|
|
45230
45235
|
for (var i = 0; i < props.length; i++) {
|
|
45231
45236
|
var descriptor2 = props[i];
|
|
45232
45237
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45236,12 +45241,12 @@ var _createClass$7 = function() {
|
|
|
45236
45241
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45237
45242
|
}
|
|
45238
45243
|
}
|
|
45239
|
-
__name(
|
|
45244
|
+
__name(defineProperties2, "defineProperties");
|
|
45240
45245
|
return function(Constructor, protoProps, staticProps) {
|
|
45241
45246
|
if (protoProps)
|
|
45242
|
-
|
|
45247
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
45243
45248
|
if (staticProps)
|
|
45244
|
-
|
|
45249
|
+
defineProperties2(Constructor, staticProps);
|
|
45245
45250
|
return Constructor;
|
|
45246
45251
|
};
|
|
45247
45252
|
}();
|
|
@@ -45474,7 +45479,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
45474
45479
|
return null;
|
|
45475
45480
|
}, "calculateChange");
|
|
45476
45481
|
var _createClass$6 = function() {
|
|
45477
|
-
function
|
|
45482
|
+
function defineProperties2(target, props) {
|
|
45478
45483
|
for (var i = 0; i < props.length; i++) {
|
|
45479
45484
|
var descriptor2 = props[i];
|
|
45480
45485
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45484,12 +45489,12 @@ var _createClass$6 = function() {
|
|
|
45484
45489
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45485
45490
|
}
|
|
45486
45491
|
}
|
|
45487
|
-
__name(
|
|
45492
|
+
__name(defineProperties2, "defineProperties");
|
|
45488
45493
|
return function(Constructor, protoProps, staticProps) {
|
|
45489
45494
|
if (protoProps)
|
|
45490
|
-
|
|
45495
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
45491
45496
|
if (staticProps)
|
|
45492
|
-
|
|
45497
|
+
defineProperties2(Constructor, staticProps);
|
|
45493
45498
|
return Constructor;
|
|
45494
45499
|
};
|
|
45495
45500
|
}();
|
|
@@ -46700,7 +46705,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
46700
46705
|
};
|
|
46701
46706
|
}, "calculateChange");
|
|
46702
46707
|
var _createClass$5 = function() {
|
|
46703
|
-
function
|
|
46708
|
+
function defineProperties2(target, props) {
|
|
46704
46709
|
for (var i = 0; i < props.length; i++) {
|
|
46705
46710
|
var descriptor2 = props[i];
|
|
46706
46711
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46710,12 +46715,12 @@ var _createClass$5 = function() {
|
|
|
46710
46715
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46711
46716
|
}
|
|
46712
46717
|
}
|
|
46713
|
-
__name(
|
|
46718
|
+
__name(defineProperties2, "defineProperties");
|
|
46714
46719
|
return function(Constructor, protoProps, staticProps) {
|
|
46715
46720
|
if (protoProps)
|
|
46716
|
-
|
|
46721
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
46717
46722
|
if (staticProps)
|
|
46718
|
-
|
|
46723
|
+
defineProperties2(Constructor, staticProps);
|
|
46719
46724
|
return Constructor;
|
|
46720
46725
|
};
|
|
46721
46726
|
}();
|
|
@@ -48017,7 +48022,7 @@ var _extends$b = Object.assign || function(target) {
|
|
|
48017
48022
|
return target;
|
|
48018
48023
|
};
|
|
48019
48024
|
var _createClass$4 = function() {
|
|
48020
|
-
function
|
|
48025
|
+
function defineProperties2(target, props) {
|
|
48021
48026
|
for (var i = 0; i < props.length; i++) {
|
|
48022
48027
|
var descriptor2 = props[i];
|
|
48023
48028
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -48027,12 +48032,12 @@ var _createClass$4 = function() {
|
|
|
48027
48032
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
48028
48033
|
}
|
|
48029
48034
|
}
|
|
48030
|
-
__name(
|
|
48035
|
+
__name(defineProperties2, "defineProperties");
|
|
48031
48036
|
return function(Constructor, protoProps, staticProps) {
|
|
48032
48037
|
if (protoProps)
|
|
48033
|
-
|
|
48038
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
48034
48039
|
if (staticProps)
|
|
48035
|
-
|
|
48040
|
+
defineProperties2(Constructor, staticProps);
|
|
48036
48041
|
return Constructor;
|
|
48037
48042
|
};
|
|
48038
48043
|
}();
|
|
@@ -48129,7 +48134,7 @@ var _extends$a = Object.assign || function(target) {
|
|
|
48129
48134
|
return target;
|
|
48130
48135
|
};
|
|
48131
48136
|
var _createClass$3 = function() {
|
|
48132
|
-
function
|
|
48137
|
+
function defineProperties2(target, props) {
|
|
48133
48138
|
for (var i = 0; i < props.length; i++) {
|
|
48134
48139
|
var descriptor2 = props[i];
|
|
48135
48140
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -48139,12 +48144,12 @@ var _createClass$3 = function() {
|
|
|
48139
48144
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
48140
48145
|
}
|
|
48141
48146
|
}
|
|
48142
|
-
__name(
|
|
48147
|
+
__name(defineProperties2, "defineProperties");
|
|
48143
48148
|
return function(Constructor, protoProps, staticProps) {
|
|
48144
48149
|
if (protoProps)
|
|
48145
|
-
|
|
48150
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
48146
48151
|
if (staticProps)
|
|
48147
|
-
|
|
48152
|
+
defineProperties2(Constructor, staticProps);
|
|
48148
48153
|
return Constructor;
|
|
48149
48154
|
};
|
|
48150
48155
|
}();
|
|
@@ -49202,7 +49207,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
49202
49207
|
);
|
|
49203
49208
|
};
|
|
49204
49209
|
var _createClass$2 = function() {
|
|
49205
|
-
function
|
|
49210
|
+
function defineProperties2(target, props) {
|
|
49206
49211
|
for (var i = 0; i < props.length; i++) {
|
|
49207
49212
|
var descriptor2 = props[i];
|
|
49208
49213
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -49212,12 +49217,12 @@ var _createClass$2 = function() {
|
|
|
49212
49217
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
49213
49218
|
}
|
|
49214
49219
|
}
|
|
49215
|
-
__name(
|
|
49220
|
+
__name(defineProperties2, "defineProperties");
|
|
49216
49221
|
return function(Constructor, protoProps, staticProps) {
|
|
49217
49222
|
if (protoProps)
|
|
49218
|
-
|
|
49223
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
49219
49224
|
if (staticProps)
|
|
49220
|
-
|
|
49225
|
+
defineProperties2(Constructor, staticProps);
|
|
49221
49226
|
return Constructor;
|
|
49222
49227
|
};
|
|
49223
49228
|
}();
|
|
@@ -50627,7 +50632,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
50627
50632
|
);
|
|
50628
50633
|
}, "PhotoshopPreviews");
|
|
50629
50634
|
var _createClass$1 = function() {
|
|
50630
|
-
function
|
|
50635
|
+
function defineProperties2(target, props) {
|
|
50631
50636
|
for (var i = 0; i < props.length; i++) {
|
|
50632
50637
|
var descriptor2 = props[i];
|
|
50633
50638
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -50637,12 +50642,12 @@ var _createClass$1 = function() {
|
|
|
50637
50642
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
50638
50643
|
}
|
|
50639
50644
|
}
|
|
50640
|
-
__name(
|
|
50645
|
+
__name(defineProperties2, "defineProperties");
|
|
50641
50646
|
return function(Constructor, protoProps, staticProps) {
|
|
50642
50647
|
if (protoProps)
|
|
50643
|
-
|
|
50648
|
+
defineProperties2(Constructor.prototype, protoProps);
|
|
50644
50649
|
if (staticProps)
|
|
50645
|
-
|
|
50650
|
+
defineProperties2(Constructor, staticProps);
|
|
50646
50651
|
return Constructor;
|
|
50647
50652
|
};
|
|
50648
50653
|
}();
|
|
@@ -55367,7 +55372,7 @@ var KNOWN_STATICS = {
|
|
|
55367
55372
|
arguments: true,
|
|
55368
55373
|
arity: true
|
|
55369
55374
|
};
|
|
55370
|
-
var
|
|
55375
|
+
var defineProperty5 = Object.defineProperty;
|
|
55371
55376
|
var getOwnPropertyNames4 = Object.getOwnPropertyNames;
|
|
55372
55377
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
55373
55378
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
@@ -55390,7 +55395,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
55390
55395
|
if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
|
|
55391
55396
|
var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
|
|
55392
55397
|
try {
|
|
55393
|
-
|
|
55398
|
+
defineProperty5(targetComponent, key, descriptor2);
|
|
55394
55399
|
} catch (e2) {
|
|
55395
55400
|
}
|
|
55396
55401
|
}
|
|
@@ -55805,6 +55810,15 @@ const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
|
|
|
55805
55810
|
}
|
|
55806
55811
|
});
|
|
55807
55812
|
const dataTableEnhancer = compose(
|
|
55813
|
+
// maybe we need this in some cases?
|
|
55814
|
+
// tgFormValues("reduxFormEntities"),
|
|
55815
|
+
// withProps(props => {
|
|
55816
|
+
// const entities = props.reduxFormEntities || props.entities;
|
|
55817
|
+
// return {
|
|
55818
|
+
// _origEntities: props.entities,
|
|
55819
|
+
// entities
|
|
55820
|
+
// };
|
|
55821
|
+
// }),
|
|
55808
55822
|
//connect to withTableParams here in the dataTable component so that, in the case that the table is not manually connected,
|
|
55809
55823
|
withTableParams({
|
|
55810
55824
|
isLocalCall: true
|
|
@@ -56663,13 +56677,14 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56663
56677
|
}, "formatAndValidateEntities"));
|
|
56664
56678
|
__publicField(this, "formatAndValidateTableInitial", /* @__PURE__ */ __name(() => {
|
|
56665
56679
|
const {
|
|
56666
|
-
_origEntities
|
|
56680
|
+
_origEntities,
|
|
56681
|
+
entities,
|
|
56667
56682
|
initialEntities,
|
|
56668
56683
|
change,
|
|
56669
56684
|
reduxFormCellValidation
|
|
56670
56685
|
} = this.props;
|
|
56671
56686
|
const { newEnts, validationErrors } = this.formatAndValidateEntities(
|
|
56672
|
-
initialEntities || entities
|
|
56687
|
+
initialEntities || entities || _origEntities
|
|
56673
56688
|
);
|
|
56674
56689
|
change("reduxFormEntities", newEnts);
|
|
56675
56690
|
const toKeep = {};
|
|
@@ -56787,16 +56802,33 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56787
56802
|
} else if (e2.clipboardData && e2.clipboardData.getData) {
|
|
56788
56803
|
toPaste = e2.clipboardData.getData("text/plain");
|
|
56789
56804
|
}
|
|
56790
|
-
|
|
56791
|
-
|
|
56792
|
-
|
|
56793
|
-
|
|
56805
|
+
const jsonToPaste = e2.clipboardData.getData("application/json");
|
|
56806
|
+
try {
|
|
56807
|
+
const pastedJson = [];
|
|
56808
|
+
JSON.parse(jsonToPaste).forEach((row) => {
|
|
56809
|
+
const newRow = [];
|
|
56810
|
+
Object.values(row).forEach((cell) => {
|
|
56811
|
+
const cellVal = JSON.parse(cell);
|
|
56812
|
+
newRow.push(cellVal);
|
|
56794
56813
|
});
|
|
56795
|
-
|
|
56796
|
-
|
|
56814
|
+
pastedJson.push(newRow);
|
|
56815
|
+
});
|
|
56816
|
+
pasteData = pastedJson;
|
|
56817
|
+
if (pasteData[0] && pasteData[0][0] && pasteData[0][0].__isHeaderCell) {
|
|
56818
|
+
pasteData = pasteData.slice(1);
|
|
56819
|
+
}
|
|
56820
|
+
} catch (e22) {
|
|
56821
|
+
if (toPaste.includes(",")) {
|
|
56822
|
+
try {
|
|
56823
|
+
const { data, errors } = papaparse.parse(toPaste, {
|
|
56824
|
+
header: false
|
|
56825
|
+
});
|
|
56826
|
+
if ((data == null ? void 0 : data.length) && !(errors == null ? void 0 : errors.length)) {
|
|
56827
|
+
pasteData = data;
|
|
56828
|
+
}
|
|
56829
|
+
} catch (error) {
|
|
56830
|
+
console.error(`error p982qhgpf9qh`, error);
|
|
56797
56831
|
}
|
|
56798
|
-
} catch (error) {
|
|
56799
|
-
console.error(`error p982qhgpf9qh`, error);
|
|
56800
56832
|
}
|
|
56801
56833
|
}
|
|
56802
56834
|
pasteData = pasteData.length ? pasteData : defaultParsePaste(toPaste);
|
|
@@ -56815,7 +56847,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56815
56847
|
entity,
|
|
56816
56848
|
path: path2,
|
|
56817
56849
|
schema,
|
|
56818
|
-
newVal
|
|
56850
|
+
newVal: formatPasteData({ newVal, path: path2, schema })
|
|
56819
56851
|
});
|
|
56820
56852
|
if (error) {
|
|
56821
56853
|
newCellValidate[cellId] = error;
|
|
@@ -56846,8 +56878,8 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56846
56878
|
const indexToPath = lodashExports.invert(pathToIndex);
|
|
56847
56879
|
const startCellIndex = pathToIndex[primaryCellPath];
|
|
56848
56880
|
pasteData.forEach((row, i) => {
|
|
56849
|
-
row.forEach((
|
|
56850
|
-
if (
|
|
56881
|
+
row.forEach((newVal, j) => {
|
|
56882
|
+
if (newVal) {
|
|
56851
56883
|
const cellIndexToChange = startCellIndex + j;
|
|
56852
56884
|
const entity = entitiesToManipulate[i];
|
|
56853
56885
|
if (entity) {
|
|
@@ -56858,7 +56890,11 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56858
56890
|
entity,
|
|
56859
56891
|
path: path2,
|
|
56860
56892
|
schema,
|
|
56861
|
-
newVal:
|
|
56893
|
+
newVal: formatPasteData({
|
|
56894
|
+
newVal,
|
|
56895
|
+
path: path2,
|
|
56896
|
+
schema
|
|
56897
|
+
})
|
|
56862
56898
|
});
|
|
56863
56899
|
const cellId = `${getIdOrCodeOrIndex(entity)}:${path2}`;
|
|
56864
56900
|
if (!newSelectedCells[cellId]) {
|
|
@@ -56968,17 +57004,11 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56968
57004
|
__publicField(this, "getCellCopyText", /* @__PURE__ */ __name((cellWrapper) => {
|
|
56969
57005
|
const text2 = cellWrapper && cellWrapper.getAttribute("data-copy-text");
|
|
56970
57006
|
const jsonText = cellWrapper && cellWrapper.getAttribute("data-copy-json");
|
|
56971
|
-
const
|
|
56972
|
-
return [
|
|
57007
|
+
const textContent = text2 || cellWrapper.textContent || "";
|
|
57008
|
+
return [textContent, jsonText];
|
|
56973
57009
|
}, "getCellCopyText"));
|
|
56974
|
-
__publicField(this, "handleCopyRow", /* @__PURE__ */ __name((rowEl) => {
|
|
56975
|
-
const text2 = this.getRowCopyText(rowEl);
|
|
56976
|
-
if (!text2)
|
|
56977
|
-
return window.toastr.warning("No text to copy");
|
|
56978
|
-
this.handleCopyHelper(text2, void 0, "Row Copied");
|
|
56979
|
-
}, "handleCopyRow"));
|
|
56980
57010
|
__publicField(this, "handleCopyColumn", /* @__PURE__ */ __name((e2, cellWrapper, selectedRecords) => {
|
|
56981
|
-
const
|
|
57011
|
+
const specificColumn = cellWrapper.getAttribute("data-test");
|
|
56982
57012
|
let rowElsToCopy = getAllRows(e2);
|
|
56983
57013
|
if (!rowElsToCopy)
|
|
56984
57014
|
return;
|
|
@@ -56995,14 +57025,24 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56995
57025
|
}
|
|
56996
57026
|
if (!rowElsToCopy)
|
|
56997
57027
|
return;
|
|
56998
|
-
|
|
56999
|
-
|
|
57000
|
-
|
|
57001
|
-
)
|
|
57028
|
+
this.handleCopyRows(rowElsToCopy, {
|
|
57029
|
+
specificColumn,
|
|
57030
|
+
onFinishMsg: "Column Copied"
|
|
57031
|
+
});
|
|
57032
|
+
}, "handleCopyColumn"));
|
|
57033
|
+
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg } = {}) => {
|
|
57034
|
+
let textToCopy = [];
|
|
57035
|
+
const jsonToCopy = [];
|
|
57036
|
+
lodashExports.forEach(rowElsToCopy, (rowEl) => {
|
|
57037
|
+
const [t2, j] = this.getRowCopyText(rowEl, { specificColumn });
|
|
57038
|
+
textToCopy.push(t2);
|
|
57039
|
+
jsonToCopy.push(j);
|
|
57040
|
+
});
|
|
57041
|
+
textToCopy = textToCopy.filter((text2) => text2).join("\n");
|
|
57002
57042
|
if (!textToCopy)
|
|
57003
57043
|
return window.toastr.warning("No text to copy");
|
|
57004
|
-
this.handleCopyHelper(textToCopy,
|
|
57005
|
-
}, "
|
|
57044
|
+
this.handleCopyHelper(textToCopy, jsonToCopy, onFinishMsg || "Row Copied");
|
|
57045
|
+
}, "handleCopyRows"));
|
|
57006
57046
|
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
57007
57047
|
const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
57008
57048
|
const [nextState, patches, inversePatches] = cn(ents, fn4);
|
|
@@ -57021,34 +57061,35 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57021
57061
|
}
|
|
57022
57062
|
}));
|
|
57023
57063
|
}, "updateEntitiesHelper"));
|
|
57024
|
-
__publicField(this, "getRowCopyText", /* @__PURE__ */ __name((rowEl, {
|
|
57064
|
+
__publicField(this, "getRowCopyText", /* @__PURE__ */ __name((rowEl, { specificColumn } = {}) => {
|
|
57025
57065
|
if (!rowEl)
|
|
57026
57066
|
return;
|
|
57027
|
-
|
|
57067
|
+
const textContent = [];
|
|
57068
|
+
const jsonText = [];
|
|
57069
|
+
lodashExports.forEach(rowEl.children, (cellEl) => {
|
|
57028
57070
|
const cellChild = cellEl.querySelector(`[data-copy-text]`);
|
|
57029
57071
|
if (!cellChild) {
|
|
57030
|
-
if (
|
|
57072
|
+
if (specificColumn)
|
|
57031
57073
|
return [];
|
|
57032
57074
|
return;
|
|
57033
57075
|
}
|
|
57034
|
-
if (
|
|
57076
|
+
if (specificColumn && cellChild.getAttribute("data-test") !== specificColumn) {
|
|
57035
57077
|
return [];
|
|
57036
57078
|
}
|
|
57037
|
-
|
|
57038
|
-
|
|
57079
|
+
const [t2, j] = this.getCellCopyText(cellChild);
|
|
57080
|
+
textContent.push(t2);
|
|
57081
|
+
jsonText.push(j);
|
|
57082
|
+
});
|
|
57083
|
+
return [lodashExports.flatMap(textContent).join(" "), jsonText];
|
|
57039
57084
|
}, "getRowCopyText"));
|
|
57040
|
-
__publicField(this, "handleCopyHelper", /* @__PURE__ */ __name((stringToCopy,
|
|
57041
|
-
const copyHandler = /* @__PURE__ */ __name((e2) => {
|
|
57042
|
-
e2.preventDefault();
|
|
57043
|
-
e2.clipboardData.setData("application/json", JSON.stringify(objToCopy));
|
|
57044
|
-
e2.clipboardData.setData("text/plain", stringToCopy);
|
|
57045
|
-
}, "copyHandler");
|
|
57046
|
-
document.addEventListener("copy", copyHandler);
|
|
57085
|
+
__publicField(this, "handleCopyHelper", /* @__PURE__ */ __name((stringToCopy, jsonToCopy, message) => {
|
|
57047
57086
|
!window.Cypress && copy$1(stringToCopy, {
|
|
57087
|
+
onCopy: (clipboardData) => {
|
|
57088
|
+
clipboardData.setData("application/json", JSON.stringify(jsonToCopy));
|
|
57089
|
+
},
|
|
57048
57090
|
// keep this so that pasting into spreadsheets works.
|
|
57049
57091
|
format: "text/plain"
|
|
57050
57092
|
});
|
|
57051
|
-
document.removeEventListener("copy", copyHandler);
|
|
57052
57093
|
window.toastr.success(message);
|
|
57053
57094
|
}, "handleCopyHelper"));
|
|
57054
57095
|
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2) => {
|
|
@@ -57056,10 +57097,9 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57056
57097
|
const allRowEls = getAllRows(e2);
|
|
57057
57098
|
if (!allRowEls)
|
|
57058
57099
|
return;
|
|
57059
|
-
|
|
57060
|
-
|
|
57061
|
-
|
|
57062
|
-
this.handleCopyHelper(textToCopy, void 0, "Table copied");
|
|
57100
|
+
this.handleCopyRows(allRowEls, {
|
|
57101
|
+
onFinishMsg: "Table Copied"
|
|
57102
|
+
});
|
|
57063
57103
|
} catch (error) {
|
|
57064
57104
|
console.error(`error:`, error);
|
|
57065
57105
|
window.toastr.error("Error copying rows.");
|
|
@@ -57099,6 +57139,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57099
57139
|
return;
|
|
57100
57140
|
const allRows = getAllRows(e2);
|
|
57101
57141
|
let fullCellText = "";
|
|
57142
|
+
const fullJson = [];
|
|
57102
57143
|
lodashExports.times(selectionGrid.length, (i) => {
|
|
57103
57144
|
const row = selectionGrid[i];
|
|
57104
57145
|
if (fullCellText) {
|
|
@@ -57107,20 +57148,24 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57107
57148
|
if (!row) {
|
|
57108
57149
|
return;
|
|
57109
57150
|
} else {
|
|
57110
|
-
const
|
|
57151
|
+
const jsonRow = [];
|
|
57152
|
+
let [rowCopyText, json] = this.getRowCopyText(allRows[i + 1]);
|
|
57153
|
+
rowCopyText = rowCopyText.split(" ");
|
|
57111
57154
|
lodashExports.times(row.length, (i2) => {
|
|
57112
57155
|
const cell = row[i2];
|
|
57113
57156
|
if (cell) {
|
|
57114
57157
|
fullCellText += rowCopyText[i2];
|
|
57158
|
+
jsonRow.push(json[i2]);
|
|
57115
57159
|
}
|
|
57116
57160
|
if (i2 !== row.length - 1 && i2 >= firstCellIndex)
|
|
57117
57161
|
fullCellText += " ";
|
|
57118
57162
|
});
|
|
57163
|
+
fullJson.push(jsonRow);
|
|
57119
57164
|
}
|
|
57120
57165
|
});
|
|
57121
57166
|
if (!fullCellText)
|
|
57122
57167
|
return window.toastr.warning("No text to copy");
|
|
57123
|
-
this.handleCopyHelper(fullCellText,
|
|
57168
|
+
this.handleCopyHelper(fullCellText, fullJson, "Selected cells copied");
|
|
57124
57169
|
}, "handleCopySelectedCells"));
|
|
57125
57170
|
__publicField(this, "handleCopySelectedRows", /* @__PURE__ */ __name((selectedRecords, e2) => {
|
|
57126
57171
|
const { entities = [] } = computePresets(this.props);
|
|
@@ -57137,10 +57182,9 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57137
57182
|
if (!allRowEls)
|
|
57138
57183
|
return;
|
|
57139
57184
|
const rowEls = rowNumbersToCopy.map((i) => allRowEls[i]);
|
|
57140
|
-
|
|
57141
|
-
|
|
57142
|
-
|
|
57143
|
-
this.handleCopyHelper(textToCopy, void 0, "Selected rows copied");
|
|
57185
|
+
this.handleCopyRows(rowEls, {
|
|
57186
|
+
onFinishMsg: "Selected rows copied"
|
|
57187
|
+
});
|
|
57144
57188
|
} catch (error) {
|
|
57145
57189
|
console.error(`error:`, error);
|
|
57146
57190
|
window.toastr.error("Error copying rows.");
|
|
@@ -57875,6 +57919,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57875
57919
|
}
|
|
57876
57920
|
const oldFunc = tableColumn.Cell;
|
|
57877
57921
|
tableColumn.Cell = (...args) => {
|
|
57922
|
+
var _a2;
|
|
57878
57923
|
const [row] = args;
|
|
57879
57924
|
const rowId = getIdOrCodeOrIndex(row.original, row.index);
|
|
57880
57925
|
const cellId = `${rowId}:${row.column.path}`;
|
|
@@ -57885,6 +57930,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57885
57930
|
const dataTest = {
|
|
57886
57931
|
"data-test": "tgCell_" + column.path
|
|
57887
57932
|
};
|
|
57933
|
+
const fullValue = (_a2 = row.original) == null ? void 0 : _a2[row.column.path];
|
|
57888
57934
|
if (isCellEditable && isBool) {
|
|
57889
57935
|
val = /* @__PURE__ */ React$1.createElement(
|
|
57890
57936
|
core$5.Checkbox,
|
|
@@ -57907,6 +57953,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57907
57953
|
GenericSelectComp,
|
|
57908
57954
|
__spreadProps(__spreadValues({
|
|
57909
57955
|
rowId,
|
|
57956
|
+
fullValue,
|
|
57910
57957
|
initialValue: text2
|
|
57911
57958
|
}, dataTest), {
|
|
57912
57959
|
finishEdit: (newVal, doNotStopEditing) => {
|
|
@@ -57974,6 +58021,13 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
57974
58021
|
}, dataTest), {
|
|
57975
58022
|
className: "tg-cell-wrapper",
|
|
57976
58023
|
"data-copy-text": text2,
|
|
58024
|
+
"data-copy-json": JSON.stringify(
|
|
58025
|
+
//tnw: eventually we'll parse these back out and use either the fullValue (for the generic selects) or the regular text vals for everything else
|
|
58026
|
+
column.type === "genericSelect" ? {
|
|
58027
|
+
__strVal: fullValue,
|
|
58028
|
+
__genSelCol: column.path
|
|
58029
|
+
} : { __strVal: text2 }
|
|
58030
|
+
),
|
|
57977
58031
|
title: title || void 0
|
|
57978
58032
|
}),
|
|
57979
58033
|
val
|
|
@@ -58320,8 +58374,13 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58320
58374
|
{
|
|
58321
58375
|
key: "copyCell",
|
|
58322
58376
|
onClick: () => {
|
|
58377
|
+
const specificColumn = cellWrapper.getAttribute("data-test");
|
|
58378
|
+
this.handleCopyRows([cellWrapper.closest(".rt-tr")], {
|
|
58379
|
+
specificColumn,
|
|
58380
|
+
onFinishMsg: "Cell copied"
|
|
58381
|
+
});
|
|
58323
58382
|
const [text2, jsonText] = this.getCellCopyText(cellWrapper);
|
|
58324
|
-
this.handleCopyHelper(text2, jsonText
|
|
58383
|
+
this.handleCopyHelper(text2, jsonText);
|
|
58325
58384
|
},
|
|
58326
58385
|
text: "Cell"
|
|
58327
58386
|
}
|
|
@@ -58363,7 +58422,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58363
58422
|
{
|
|
58364
58423
|
key: "copySelectedRows",
|
|
58365
58424
|
onClick: () => {
|
|
58366
|
-
this.
|
|
58425
|
+
this.handleCopyRows([row]);
|
|
58367
58426
|
},
|
|
58368
58427
|
text: "Row"
|
|
58369
58428
|
}
|
|
@@ -58609,6 +58668,10 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58609
58668
|
"data-test": columnTitleTextified,
|
|
58610
58669
|
"data-path": path2,
|
|
58611
58670
|
"data-copy-text": columnTitleTextified,
|
|
58671
|
+
"data-copy-json": JSON.stringify({
|
|
58672
|
+
__strVal: columnTitleTextified,
|
|
58673
|
+
__isHeaderCell: true
|
|
58674
|
+
}),
|
|
58612
58675
|
className: classNames("tg-react-table-column-header", {
|
|
58613
58676
|
"sort-active": sortUp || sortDown
|
|
58614
58677
|
})
|
|
@@ -59625,6 +59688,20 @@ function isEntityClean(e2) {
|
|
|
59625
59688
|
return isClean;
|
|
59626
59689
|
}
|
|
59627
59690
|
__name(isEntityClean, "isEntityClean");
|
|
59691
|
+
const formatPasteData = /* @__PURE__ */ __name(({ schema, newVal, path: path2 }) => {
|
|
59692
|
+
const pathToField = getFieldPathToField(schema);
|
|
59693
|
+
const column = pathToField[path2];
|
|
59694
|
+
if (column.type === "genericSelect") {
|
|
59695
|
+
if ((newVal == null ? void 0 : newVal.__genSelCol) === path2) {
|
|
59696
|
+
newVal = newVal.__strVal;
|
|
59697
|
+
} else {
|
|
59698
|
+
newVal = void 0;
|
|
59699
|
+
}
|
|
59700
|
+
} else {
|
|
59701
|
+
newVal = Object.hasOwn(newVal, "__strVal") ? newVal.__strVal : newVal;
|
|
59702
|
+
}
|
|
59703
|
+
return newVal;
|
|
59704
|
+
}, "formatPasteData");
|
|
59628
59705
|
const wrapDialog = /* @__PURE__ */ __name((topLevelDialogProps = {}) => (Component) => (props) => {
|
|
59629
59706
|
const r2 = React$1.useRef();
|
|
59630
59707
|
const memoedHotkeys = React$1.useMemo(
|
|
@@ -74886,7 +74963,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
74886
74963
|
this.cache[key] = value;
|
|
74887
74964
|
};
|
|
74888
74965
|
var cacheDefault = {
|
|
74889
|
-
create: /* @__PURE__ */ __name(function
|
|
74966
|
+
create: /* @__PURE__ */ __name(function create5() {
|
|
74890
74967
|
return new ObjectWithoutPrototypeCache();
|
|
74891
74968
|
}, "create")
|
|
74892
74969
|
};
|