@teselagen/ui 0.8.6 → 0.9.1
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/DataTable/EditabelCell.d.ts +10 -0
- package/DataTable/defaultProps.d.ts +43 -0
- package/DataTable/utils/computePresets.d.ts +1 -0
- package/DataTable/utils/getAllRows.d.ts +1 -1
- package/DataTable/utils/handleCopyColumn.d.ts +1 -1
- package/DataTable/utils/handleCopyTable.d.ts +1 -1
- package/DataTable/utils/initializeHasuraWhereAndFilter.d.ts +0 -1
- package/DataTable/utils/queryParams.d.ts +16 -12
- package/DataTable/utils/tableQueryParamsToHasuraClauses.d.ts +1 -1
- package/README.md +1 -1
- package/index.cjs.js +1139 -1040
- package/index.d.ts +2 -0
- package/index.es.js +1139 -1040
- package/package.json +2 -2
- package/src/DataTable/Columns.js +2 -2
- package/src/DataTable/DisplayOptions.js +1 -1
- package/src/DataTable/EditabelCell.js +55 -0
- package/src/DataTable/FilterAndSortMenu.js +27 -30
- package/src/DataTable/defaultProps.js +45 -0
- package/src/DataTable/index.js +101 -84
- package/src/DataTable/style.css +1 -1
- package/src/DataTable/utils/computePresets.js +42 -0
- package/src/DataTable/utils/filterLocalEntitiesToHasura.js +128 -8
- package/src/DataTable/utils/filterLocalEntitiesToHasura.test.js +719 -21
- package/src/DataTable/utils/getAllRows.js +2 -6
- package/src/DataTable/utils/handleCopyColumn.js +2 -2
- package/src/DataTable/utils/handleCopyTable.js +2 -2
- package/src/DataTable/utils/initializeHasuraWhereAndFilter.js +1 -12
- package/src/DataTable/utils/queryParams.js +153 -770
- package/src/DataTable/utils/tableQueryParamsToHasuraClauses.js +185 -168
- package/src/DataTable/utils/tableQueryParamsToHasuraClauses.test.js +50 -11
- package/src/DataTable/utils/withTableParams.js +3 -16
- package/src/ExcelCell.js +38 -0
- package/src/FormComponents/Uploader.js +5 -1
- package/src/FormComponents/index.js +2 -2
- package/src/TgSelect/index.js +15 -0
- package/src/autoTooltip.js +1 -0
- package/src/index.js +2 -0
- package/src/utils/determineBlackOrWhiteTextColor.js +8 -1
- package/style.css +10537 -0
- package/ui.css +1 -1
- package/utils/determineBlackOrWhiteTextColor.d.ts +1 -2
package/index.es.js
CHANGED
|
@@ -5785,12 +5785,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
|
|
|
5785
5785
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
5786
5786
|
var root$4 = freeGlobal || freeSelf || Function("return this")();
|
|
5787
5787
|
var Symbol$1 = root$4.Symbol;
|
|
5788
|
-
var objectProto$
|
|
5789
|
-
var hasOwnProperty$
|
|
5790
|
-
var nativeObjectToString$2 = objectProto$
|
|
5788
|
+
var objectProto$i = Object.prototype;
|
|
5789
|
+
var hasOwnProperty$f = objectProto$i.hasOwnProperty;
|
|
5790
|
+
var nativeObjectToString$2 = objectProto$i.toString;
|
|
5791
5791
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
5792
5792
|
function getRawTag(value) {
|
|
5793
|
-
var isOwn = hasOwnProperty$
|
|
5793
|
+
var isOwn = hasOwnProperty$f.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
5794
5794
|
try {
|
|
5795
5795
|
value[symToStringTag$1] = void 0;
|
|
5796
5796
|
var unmasked = true;
|
|
@@ -5807,8 +5807,8 @@ function getRawTag(value) {
|
|
|
5807
5807
|
return result;
|
|
5808
5808
|
}
|
|
5809
5809
|
__name(getRawTag, "getRawTag");
|
|
5810
|
-
var objectProto$
|
|
5811
|
-
var nativeObjectToString$1 = objectProto$
|
|
5810
|
+
var objectProto$h = Object.prototype;
|
|
5811
|
+
var nativeObjectToString$1 = objectProto$h.toString;
|
|
5812
5812
|
function objectToString(value) {
|
|
5813
5813
|
return nativeObjectToString$1.call(value);
|
|
5814
5814
|
}
|
|
@@ -5955,11 +5955,11 @@ function toSource(func) {
|
|
|
5955
5955
|
__name(toSource, "toSource");
|
|
5956
5956
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
5957
5957
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
5958
|
-
var funcProto$1 = Function.prototype, objectProto$
|
|
5958
|
+
var funcProto$1 = Function.prototype, objectProto$g = Object.prototype;
|
|
5959
5959
|
var funcToString$1 = funcProto$1.toString;
|
|
5960
|
-
var hasOwnProperty$
|
|
5960
|
+
var hasOwnProperty$e = objectProto$g.hasOwnProperty;
|
|
5961
5961
|
var reIsNative = RegExp(
|
|
5962
|
-
"^" + funcToString$1.call(hasOwnProperty$
|
|
5962
|
+
"^" + funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5963
5963
|
);
|
|
5964
5964
|
function baseIsNative(value) {
|
|
5965
5965
|
if (!isObject$2(value) || isMasked(value)) {
|
|
@@ -6132,11 +6132,11 @@ function eq$1(value, other) {
|
|
|
6132
6132
|
return value === other || value !== value && other !== other;
|
|
6133
6133
|
}
|
|
6134
6134
|
__name(eq$1, "eq$1");
|
|
6135
|
-
var objectProto$
|
|
6136
|
-
var hasOwnProperty$
|
|
6135
|
+
var objectProto$f = Object.prototype;
|
|
6136
|
+
var hasOwnProperty$d = objectProto$f.hasOwnProperty;
|
|
6137
6137
|
function assignValue(object2, key, value) {
|
|
6138
6138
|
var objValue = object2[key];
|
|
6139
|
-
if (!(hasOwnProperty$
|
|
6139
|
+
if (!(hasOwnProperty$d.call(object2, key) && eq$1(objValue, value)) || value === void 0 && !(key in object2)) {
|
|
6140
6140
|
baseAssignValue(object2, key, value);
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
@@ -6160,11 +6160,11 @@ function copyObject(source, props, object2, customizer) {
|
|
|
6160
6160
|
return object2;
|
|
6161
6161
|
}
|
|
6162
6162
|
__name(copyObject, "copyObject");
|
|
6163
|
-
var nativeMax$
|
|
6163
|
+
var nativeMax$3 = Math.max;
|
|
6164
6164
|
function overRest(func, start2, transform) {
|
|
6165
|
-
start2 = nativeMax$
|
|
6165
|
+
start2 = nativeMax$3(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
6166
6166
|
return function() {
|
|
6167
|
-
var args = arguments, index2 = -1, length = nativeMax$
|
|
6167
|
+
var args = arguments, index2 = -1, length = nativeMax$3(args.length - start2, 0), array2 = Array(length);
|
|
6168
6168
|
while (++index2 < length) {
|
|
6169
6169
|
array2[index2] = args[start2 + index2];
|
|
6170
6170
|
}
|
|
@@ -6221,9 +6221,9 @@ function createAssigner(assigner) {
|
|
|
6221
6221
|
});
|
|
6222
6222
|
}
|
|
6223
6223
|
__name(createAssigner, "createAssigner");
|
|
6224
|
-
var objectProto$
|
|
6224
|
+
var objectProto$e = Object.prototype;
|
|
6225
6225
|
function isPrototype(value) {
|
|
6226
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
6226
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$e;
|
|
6227
6227
|
return value === proto;
|
|
6228
6228
|
}
|
|
6229
6229
|
__name(isPrototype, "isPrototype");
|
|
@@ -6240,13 +6240,13 @@ function baseIsArguments(value) {
|
|
|
6240
6240
|
return isObjectLike$1(value) && baseGetTag(value) == argsTag$3;
|
|
6241
6241
|
}
|
|
6242
6242
|
__name(baseIsArguments, "baseIsArguments");
|
|
6243
|
-
var objectProto$
|
|
6244
|
-
var hasOwnProperty$
|
|
6245
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
6243
|
+
var objectProto$d = Object.prototype;
|
|
6244
|
+
var hasOwnProperty$c = objectProto$d.hasOwnProperty;
|
|
6245
|
+
var propertyIsEnumerable$1 = objectProto$d.propertyIsEnumerable;
|
|
6246
6246
|
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
6247
6247
|
return arguments;
|
|
6248
6248
|
}()) ? baseIsArguments : function(value) {
|
|
6249
|
-
return isObjectLike$1(value) && hasOwnProperty$
|
|
6249
|
+
return isObjectLike$1(value) && hasOwnProperty$c.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
6250
6250
|
};
|
|
6251
6251
|
function stubFalse() {
|
|
6252
6252
|
return false;
|
|
@@ -6289,12 +6289,12 @@ var nodeUtil = function() {
|
|
|
6289
6289
|
}();
|
|
6290
6290
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6291
6291
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6292
|
-
var objectProto$
|
|
6293
|
-
var hasOwnProperty$
|
|
6292
|
+
var objectProto$c = Object.prototype;
|
|
6293
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
6294
6294
|
function arrayLikeKeys(value, inherited) {
|
|
6295
6295
|
var isArr = isArray$2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType2 = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType2, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
6296
6296
|
for (var key in value) {
|
|
6297
|
-
if ((inherited || hasOwnProperty$
|
|
6297
|
+
if ((inherited || hasOwnProperty$b.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6298
6298
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6299
6299
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6300
6300
|
isType2 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -6312,15 +6312,15 @@ function overArg(func, transform) {
|
|
|
6312
6312
|
}
|
|
6313
6313
|
__name(overArg, "overArg");
|
|
6314
6314
|
var nativeKeys = overArg(Object.keys, Object);
|
|
6315
|
-
var objectProto$
|
|
6316
|
-
var hasOwnProperty$
|
|
6315
|
+
var objectProto$b = Object.prototype;
|
|
6316
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
6317
6317
|
function baseKeys(object2) {
|
|
6318
6318
|
if (!isPrototype(object2)) {
|
|
6319
6319
|
return nativeKeys(object2);
|
|
6320
6320
|
}
|
|
6321
6321
|
var result = [];
|
|
6322
6322
|
for (var key in Object(object2)) {
|
|
6323
|
-
if (hasOwnProperty$
|
|
6323
|
+
if (hasOwnProperty$a.call(object2, key) && key != "constructor") {
|
|
6324
6324
|
result.push(key);
|
|
6325
6325
|
}
|
|
6326
6326
|
}
|
|
@@ -6341,15 +6341,15 @@ function nativeKeysIn(object2) {
|
|
|
6341
6341
|
return result;
|
|
6342
6342
|
}
|
|
6343
6343
|
__name(nativeKeysIn, "nativeKeysIn");
|
|
6344
|
-
var objectProto$
|
|
6345
|
-
var hasOwnProperty$
|
|
6344
|
+
var objectProto$a = Object.prototype;
|
|
6345
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
6346
6346
|
function baseKeysIn(object2) {
|
|
6347
6347
|
if (!isObject$2(object2)) {
|
|
6348
6348
|
return nativeKeysIn(object2);
|
|
6349
6349
|
}
|
|
6350
6350
|
var isProto = isPrototype(object2), result = [];
|
|
6351
6351
|
for (var key in object2) {
|
|
6352
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
6352
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$9.call(object2, key)))) {
|
|
6353
6353
|
result.push(key);
|
|
6354
6354
|
}
|
|
6355
6355
|
}
|
|
@@ -6385,22 +6385,22 @@ function hashDelete(key) {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
__name(hashDelete, "hashDelete");
|
|
6387
6387
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
6388
|
-
var objectProto$
|
|
6389
|
-
var hasOwnProperty$
|
|
6388
|
+
var objectProto$9 = Object.prototype;
|
|
6389
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
6390
6390
|
function hashGet(key) {
|
|
6391
6391
|
var data = this.__data__;
|
|
6392
6392
|
if (nativeCreate) {
|
|
6393
6393
|
var result = data[key];
|
|
6394
6394
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
6395
6395
|
}
|
|
6396
|
-
return hasOwnProperty$
|
|
6396
|
+
return hasOwnProperty$8.call(data, key) ? data[key] : void 0;
|
|
6397
6397
|
}
|
|
6398
6398
|
__name(hashGet, "hashGet");
|
|
6399
|
-
var objectProto$
|
|
6400
|
-
var hasOwnProperty$
|
|
6399
|
+
var objectProto$8 = Object.prototype;
|
|
6400
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
6401
6401
|
function hashHas(key) {
|
|
6402
6402
|
var data = this.__data__;
|
|
6403
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$
|
|
6403
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$7.call(data, key);
|
|
6404
6404
|
}
|
|
6405
6405
|
__name(hashHas, "hashHas");
|
|
6406
6406
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
@@ -6663,9 +6663,9 @@ function flatRest(func) {
|
|
|
6663
6663
|
__name(flatRest, "flatRest");
|
|
6664
6664
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
6665
6665
|
var objectTag$3 = "[object Object]";
|
|
6666
|
-
var funcProto = Function.prototype, objectProto$
|
|
6666
|
+
var funcProto = Function.prototype, objectProto$7 = Object.prototype;
|
|
6667
6667
|
var funcToString = funcProto.toString;
|
|
6668
|
-
var hasOwnProperty$
|
|
6668
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
6669
6669
|
var objectCtorString = funcToString.call(Object);
|
|
6670
6670
|
function isPlainObject$2(value) {
|
|
6671
6671
|
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag$3) {
|
|
@@ -6675,7 +6675,7 @@ function isPlainObject$2(value) {
|
|
|
6675
6675
|
if (proto === null) {
|
|
6676
6676
|
return true;
|
|
6677
6677
|
}
|
|
6678
|
-
var Ctor = hasOwnProperty$
|
|
6678
|
+
var Ctor = hasOwnProperty$6.call(proto, "constructor") && proto.constructor;
|
|
6679
6679
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
6680
6680
|
}
|
|
6681
6681
|
__name(isPlainObject$2, "isPlainObject$2");
|
|
@@ -7104,8 +7104,8 @@ function stubArray() {
|
|
|
7104
7104
|
return [];
|
|
7105
7105
|
}
|
|
7106
7106
|
__name(stubArray, "stubArray");
|
|
7107
|
-
var objectProto$
|
|
7108
|
-
var propertyIsEnumerable = objectProto$
|
|
7107
|
+
var objectProto$6 = Object.prototype;
|
|
7108
|
+
var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
7109
7109
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
7110
7110
|
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object2) {
|
|
7111
7111
|
if (object2 == null) {
|
|
@@ -7173,11 +7173,11 @@ if (DataView$1 && getTag$1(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3
|
|
|
7173
7173
|
return result;
|
|
7174
7174
|
}, "getTag$1");
|
|
7175
7175
|
}
|
|
7176
|
-
var objectProto$
|
|
7177
|
-
var hasOwnProperty$
|
|
7176
|
+
var objectProto$5 = Object.prototype;
|
|
7177
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
7178
7178
|
function initCloneArray(array2) {
|
|
7179
7179
|
var length = array2.length, result = new array2.constructor(length);
|
|
7180
|
-
if (length && typeof array2[0] == "string" && hasOwnProperty$
|
|
7180
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty$5.call(array2, "index")) {
|
|
7181
7181
|
result.index = array2.index;
|
|
7182
7182
|
result.input = array2.input;
|
|
7183
7183
|
}
|
|
@@ -7491,8 +7491,8 @@ function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
7491
7491
|
}
|
|
7492
7492
|
__name(equalByTag, "equalByTag");
|
|
7493
7493
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
7494
|
-
var objectProto$
|
|
7495
|
-
var hasOwnProperty$
|
|
7494
|
+
var objectProto$4 = Object.prototype;
|
|
7495
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
7496
7496
|
function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7497
7497
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
7498
7498
|
if (objLength != othLength && !isPartial) {
|
|
@@ -7501,7 +7501,7 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7501
7501
|
var index2 = objLength;
|
|
7502
7502
|
while (index2--) {
|
|
7503
7503
|
var key = objProps[index2];
|
|
7504
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
7504
|
+
if (!(isPartial ? key in other : hasOwnProperty$4.call(other, key))) {
|
|
7505
7505
|
return false;
|
|
7506
7506
|
}
|
|
7507
7507
|
}
|
|
@@ -7539,8 +7539,8 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7539
7539
|
__name(equalObjects, "equalObjects");
|
|
7540
7540
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
7541
7541
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
7542
|
-
var objectProto$
|
|
7543
|
-
var hasOwnProperty$
|
|
7542
|
+
var objectProto$3 = Object.prototype;
|
|
7543
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
7544
7544
|
function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7545
7545
|
var objIsArr = isArray$2(object2), othIsArr = isArray$2(other), objTag = objIsArr ? arrayTag : getTag$1(object2), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
7546
7546
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
@@ -7558,7 +7558,7 @@ function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack)
|
|
|
7558
7558
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
7559
7559
|
}
|
|
7560
7560
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
7561
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
7561
|
+
var objIsWrapped = objIsObj && hasOwnProperty$3.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$3.call(other, "__wrapped__");
|
|
7562
7562
|
if (objIsWrapped || othIsWrapped) {
|
|
7563
7563
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
7564
7564
|
stack || (stack = new Stack());
|
|
@@ -7774,7 +7774,7 @@ var now = /* @__PURE__ */ __name(function() {
|
|
|
7774
7774
|
return root$4.Date.now();
|
|
7775
7775
|
}, "now");
|
|
7776
7776
|
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
7777
|
-
var nativeMax$
|
|
7777
|
+
var nativeMax$2 = Math.max, nativeMin$1 = Math.min;
|
|
7778
7778
|
function debounce(func, wait, options) {
|
|
7779
7779
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
7780
7780
|
if (typeof func != "function") {
|
|
@@ -7784,7 +7784,7 @@ function debounce(func, wait, options) {
|
|
|
7784
7784
|
if (isObject$2(options)) {
|
|
7785
7785
|
leading = !!options.leading;
|
|
7786
7786
|
maxing = "maxWait" in options;
|
|
7787
|
-
maxWait = maxing ? nativeMax$
|
|
7787
|
+
maxWait = maxing ? nativeMax$2(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
7788
7788
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
7789
7789
|
}
|
|
7790
7790
|
function invokeFunc(time) {
|
|
@@ -7954,12 +7954,12 @@ function baseMerge(object2, source, srcIndex, customizer, stack) {
|
|
|
7954
7954
|
__name(baseMerge, "baseMerge");
|
|
7955
7955
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
7956
7956
|
function baseDifference(array2, values2, iteratee, comparator) {
|
|
7957
|
-
var index2 = -1,
|
|
7957
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array2.length, result = [], valuesLength = values2.length;
|
|
7958
7958
|
if (!length) {
|
|
7959
7959
|
return result;
|
|
7960
7960
|
}
|
|
7961
7961
|
if (values2.length >= LARGE_ARRAY_SIZE$1) {
|
|
7962
|
-
|
|
7962
|
+
includes2 = cacheHas;
|
|
7963
7963
|
isCommon = false;
|
|
7964
7964
|
values2 = new SetCache(values2);
|
|
7965
7965
|
}
|
|
@@ -7975,7 +7975,7 @@ function baseDifference(array2, values2, iteratee, comparator) {
|
|
|
7975
7975
|
}
|
|
7976
7976
|
}
|
|
7977
7977
|
result.push(value);
|
|
7978
|
-
} else if (!
|
|
7978
|
+
} else if (!includes2(values2, computed3, comparator)) {
|
|
7979
7979
|
result.push(value);
|
|
7980
7980
|
}
|
|
7981
7981
|
}
|
|
@@ -7990,15 +7990,6 @@ function last$1(array2) {
|
|
|
7990
7990
|
return length ? array2[length - 1] : void 0;
|
|
7991
7991
|
}
|
|
7992
7992
|
__name(last$1, "last$1");
|
|
7993
|
-
function drop(array2, n2, guard) {
|
|
7994
|
-
var length = array2 == null ? 0 : array2.length;
|
|
7995
|
-
if (!length) {
|
|
7996
|
-
return [];
|
|
7997
|
-
}
|
|
7998
|
-
n2 = n2 === void 0 ? 1 : toInteger(n2);
|
|
7999
|
-
return baseSlice(array2, n2 < 0 ? 0 : n2, length);
|
|
8000
|
-
}
|
|
8001
|
-
__name(drop, "drop");
|
|
8002
7993
|
function castFunction(value) {
|
|
8003
7994
|
return typeof value == "function" ? value : identity$1;
|
|
8004
7995
|
}
|
|
@@ -8078,6 +8069,16 @@ function baseGt(value, other) {
|
|
|
8078
8069
|
return value > other;
|
|
8079
8070
|
}
|
|
8080
8071
|
__name(baseGt, "baseGt");
|
|
8072
|
+
var objectProto$2 = Object.prototype;
|
|
8073
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
8074
|
+
function baseHas(object2, key) {
|
|
8075
|
+
return object2 != null && hasOwnProperty$2.call(object2, key);
|
|
8076
|
+
}
|
|
8077
|
+
__name(baseHas, "baseHas");
|
|
8078
|
+
function has$1(object2, path2) {
|
|
8079
|
+
return object2 != null && hasPath(object2, path2, baseHas);
|
|
8080
|
+
}
|
|
8081
|
+
__name(has$1, "has$1");
|
|
8081
8082
|
var stringTag = "[object String]";
|
|
8082
8083
|
function isString$1(value) {
|
|
8083
8084
|
return typeof value == "string" || !isArray$2(value) && isObjectLike$1(value) && baseGetTag(value) == stringTag;
|
|
@@ -8093,6 +8094,17 @@ function values(object2) {
|
|
|
8093
8094
|
return object2 == null ? [] : baseValues(object2, keys$1(object2));
|
|
8094
8095
|
}
|
|
8095
8096
|
__name(values, "values");
|
|
8097
|
+
var nativeMax$1 = Math.max;
|
|
8098
|
+
function includes(collection, value, fromIndex, guard) {
|
|
8099
|
+
collection = isArrayLike(collection) ? collection : values(collection);
|
|
8100
|
+
fromIndex = fromIndex && true ? toInteger(fromIndex) : 0;
|
|
8101
|
+
var length = collection.length;
|
|
8102
|
+
if (fromIndex < 0) {
|
|
8103
|
+
fromIndex = nativeMax$1(length + fromIndex, 0);
|
|
8104
|
+
}
|
|
8105
|
+
return isString$1(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
8106
|
+
}
|
|
8107
|
+
__name(includes, "includes");
|
|
8096
8108
|
function baseInverter(object2, setter, iteratee, accumulator) {
|
|
8097
8109
|
baseForOwn(object2, function(value, key, object3) {
|
|
8098
8110
|
setter(accumulator, iteratee(value), key, object3);
|
|
@@ -8153,15 +8165,15 @@ function isEqualWith(value, other, customizer) {
|
|
|
8153
8165
|
return result === void 0 ? baseIsEqual(value, other, void 0, customizer) : !!result;
|
|
8154
8166
|
}
|
|
8155
8167
|
__name(isEqualWith, "isEqualWith");
|
|
8156
|
-
function isInteger(value) {
|
|
8157
|
-
return typeof value == "number" && value == toInteger(value);
|
|
8158
|
-
}
|
|
8159
|
-
__name(isInteger, "isInteger");
|
|
8160
8168
|
var numberTag = "[object Number]";
|
|
8161
8169
|
function isNumber$1(value) {
|
|
8162
8170
|
return typeof value == "number" || isObjectLike$1(value) && baseGetTag(value) == numberTag;
|
|
8163
8171
|
}
|
|
8164
8172
|
__name(isNumber$1, "isNumber$1");
|
|
8173
|
+
function isNull(value) {
|
|
8174
|
+
return value === null;
|
|
8175
|
+
}
|
|
8176
|
+
__name(isNull, "isNull");
|
|
8165
8177
|
function isUndefined(value) {
|
|
8166
8178
|
return value === void 0;
|
|
8167
8179
|
}
|
|
@@ -8618,14 +8630,14 @@ var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == INFINITY) ? n
|
|
|
8618
8630
|
};
|
|
8619
8631
|
var LARGE_ARRAY_SIZE = 200;
|
|
8620
8632
|
function baseUniq(array2, iteratee, comparator) {
|
|
8621
|
-
var index2 = -1,
|
|
8633
|
+
var index2 = -1, includes2 = arrayIncludes, length = array2.length, isCommon = true, result = [], seen = result;
|
|
8622
8634
|
if (length >= LARGE_ARRAY_SIZE) {
|
|
8623
8635
|
var set5 = iteratee ? null : createSet(array2);
|
|
8624
8636
|
if (set5) {
|
|
8625
8637
|
return setToArray(set5);
|
|
8626
8638
|
}
|
|
8627
8639
|
isCommon = false;
|
|
8628
|
-
|
|
8640
|
+
includes2 = cacheHas;
|
|
8629
8641
|
seen = new SetCache();
|
|
8630
8642
|
} else {
|
|
8631
8643
|
seen = iteratee ? [] : result;
|
|
@@ -8645,7 +8657,7 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8645
8657
|
seen.push(computed3);
|
|
8646
8658
|
}
|
|
8647
8659
|
result.push(value);
|
|
8648
|
-
} else if (!
|
|
8660
|
+
} else if (!includes2(seen, computed3, comparator)) {
|
|
8649
8661
|
if (seen !== result) {
|
|
8650
8662
|
seen.push(computed3);
|
|
8651
8663
|
}
|
|
@@ -8655,10 +8667,6 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8655
8667
|
return result;
|
|
8656
8668
|
}
|
|
8657
8669
|
__name(baseUniq, "baseUniq");
|
|
8658
|
-
function uniq(array2) {
|
|
8659
|
-
return array2 && array2.length ? baseUniq(array2) : [];
|
|
8660
|
-
}
|
|
8661
|
-
__name(uniq, "uniq");
|
|
8662
8670
|
function uniqBy(array2, iteratee) {
|
|
8663
8671
|
return array2 && array2.length ? baseUniq(array2, baseIteratee(iteratee)) : [];
|
|
8664
8672
|
}
|
|
@@ -15841,6 +15849,7 @@ var itemSizeEstimator = /* @__PURE__ */ __name(function itemSizeEstimator2() {
|
|
|
15841
15849
|
return 41.36;
|
|
15842
15850
|
}, "itemSizeEstimator");
|
|
15843
15851
|
var ReactTableDefaults = defaultProps;
|
|
15852
|
+
var VIRTUALIZE_CUTOFF_LENGTH = 200;
|
|
15844
15853
|
var ReactTable = function(_Methods) {
|
|
15845
15854
|
_inherits$8(ReactTable2, _Methods);
|
|
15846
15855
|
function ReactTable2(props) {
|
|
@@ -16426,7 +16435,7 @@ var ReactTable = function(_Methods) {
|
|
|
16426
16435
|
minWidth: rowMinWidth + "px"
|
|
16427
16436
|
})
|
|
16428
16437
|
}, tBodyProps.rest),
|
|
16429
|
-
pageRows.length <
|
|
16438
|
+
_this2.props.noVirtual || pageRows.length < VIRTUALIZE_CUTOFF_LENGTH ? pageRows.map(function(d2, i2) {
|
|
16430
16439
|
return makePageRow(d2, i2);
|
|
16431
16440
|
}) : React__default.createElement(ReactList, {
|
|
16432
16441
|
type: "variable",
|
|
@@ -16654,9 +16663,9 @@ const stripNumberAtEnd = /* @__PURE__ */ __name((str) => {
|
|
|
16654
16663
|
var _a;
|
|
16655
16664
|
return (_a = str == null ? void 0 : str.replace) == null ? void 0 : _a.call(str, getNumberStrAtEnd(str), "");
|
|
16656
16665
|
}, "stripNumberAtEnd");
|
|
16657
|
-
const getAllRows = /* @__PURE__ */ __name((
|
|
16658
|
-
|
|
16659
|
-
const allRowEls =
|
|
16666
|
+
const getAllRows = /* @__PURE__ */ __name((tableRef) => {
|
|
16667
|
+
var _a, _b;
|
|
16668
|
+
const allRowEls = (_b = (_a = tableRef.current) == null ? void 0 : _a.tableRef) == null ? void 0 : _b.querySelectorAll(".rt-tr");
|
|
16660
16669
|
if (!allRowEls || !allRowEls.length) {
|
|
16661
16670
|
return;
|
|
16662
16671
|
}
|
|
@@ -16923,14 +16932,14 @@ const handleCopyRows = /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, o
|
|
|
16923
16932
|
handleCopyHelper(textToCopy, jsonToCopy, onFinishMsg || "Row Copied");
|
|
16924
16933
|
}
|
|
16925
16934
|
}, "handleCopyRows");
|
|
16926
|
-
const handleCopyColumn = /* @__PURE__ */ __name((
|
|
16935
|
+
const handleCopyColumn = /* @__PURE__ */ __name((tableRef, cellWrapper, selectedRecords) => {
|
|
16927
16936
|
const specificColumn = cellWrapper.getAttribute("data-test");
|
|
16928
|
-
let rowElsToCopy = getAllRows(
|
|
16937
|
+
let rowElsToCopy = getAllRows(tableRef);
|
|
16929
16938
|
if (!rowElsToCopy) return;
|
|
16930
16939
|
if (selectedRecords) {
|
|
16931
|
-
const ids2 = selectedRecords.map((
|
|
16940
|
+
const ids2 = selectedRecords.map((e) => {
|
|
16932
16941
|
var _a;
|
|
16933
|
-
return (_a = getIdOrCodeOrIndex(
|
|
16942
|
+
return (_a = getIdOrCodeOrIndex(e)) == null ? void 0 : _a.toString();
|
|
16934
16943
|
});
|
|
16935
16944
|
rowElsToCopy = Array.from(rowElsToCopy).filter((rowEl) => {
|
|
16936
16945
|
var _a;
|
|
@@ -16963,9 +16972,9 @@ const isBottomRightCornerOfRectangle = /* @__PURE__ */ __name(({
|
|
|
16963
16972
|
const isBottomRight = i2 === lastRowIndex && cellIndex === lastCellIndex;
|
|
16964
16973
|
return isBottomRight;
|
|
16965
16974
|
}, "isBottomRightCornerOfRectangle");
|
|
16966
|
-
const handleCopyTable = /* @__PURE__ */ __name((
|
|
16975
|
+
const handleCopyTable = /* @__PURE__ */ __name((tableRef, opts) => {
|
|
16967
16976
|
try {
|
|
16968
|
-
const allRowEls = getAllRows(
|
|
16977
|
+
const allRowEls = getAllRows(tableRef);
|
|
16969
16978
|
if (!allRowEls) return;
|
|
16970
16979
|
handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts), {
|
|
16971
16980
|
onFinishMsg: "Table Copied"
|
|
@@ -19387,293 +19396,501 @@ function requireLib$1() {
|
|
|
19387
19396
|
__name(requireLib$1, "requireLib$1");
|
|
19388
19397
|
var libExports$1 = /* @__PURE__ */ requireLib$1();
|
|
19389
19398
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(libExports$1);
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
}
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
if (S2(t3)) return t3.clone();
|
|
19438
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
19439
|
-
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
19440
|
-
}, "O"), b2 = v2;
|
|
19441
|
-
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
19442
|
-
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
19443
|
-
};
|
|
19444
|
-
var _2 = function() {
|
|
19445
|
-
function M3(t3) {
|
|
19446
|
-
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
19399
|
+
function tableQueryParamsToHasuraClauses({
|
|
19400
|
+
page,
|
|
19401
|
+
pageSize,
|
|
19402
|
+
searchTerm,
|
|
19403
|
+
filters,
|
|
19404
|
+
order: order2,
|
|
19405
|
+
schema,
|
|
19406
|
+
// Add schema as a parameter
|
|
19407
|
+
additionalFilter
|
|
19408
|
+
}) {
|
|
19409
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19410
|
+
let where = {};
|
|
19411
|
+
const order_by = [];
|
|
19412
|
+
const limit = pageSize || 25;
|
|
19413
|
+
const offset3 = page && pageSize ? (page - 1) * pageSize : 0;
|
|
19414
|
+
if (searchTerm) {
|
|
19415
|
+
const searchTermFilters = [];
|
|
19416
|
+
const uniqueFieldsByPath = {};
|
|
19417
|
+
const searchTerms = searchTerm.split(",");
|
|
19418
|
+
schema.fields.forEach((field) => {
|
|
19419
|
+
const { type: type2, path: path2, searchDisabled } = field;
|
|
19420
|
+
if (uniqueFieldsByPath[path2]) return;
|
|
19421
|
+
uniqueFieldsByPath[path2] = true;
|
|
19422
|
+
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19423
|
+
searchTerms.forEach((term) => {
|
|
19424
|
+
const filterValue = term.trim();
|
|
19425
|
+
if (type2 === "string" || type2 === "lookup") {
|
|
19426
|
+
const o2 = set$1({}, path2, { _ilike: `%${filterValue}%` });
|
|
19427
|
+
searchTermFilters.push(o2);
|
|
19428
|
+
} else if (type2 === "boolean") {
|
|
19429
|
+
let regex;
|
|
19430
|
+
try {
|
|
19431
|
+
regex = new RegExp("^" + filterValue, "ig");
|
|
19432
|
+
} catch (error) {
|
|
19433
|
+
}
|
|
19434
|
+
if (regex) {
|
|
19435
|
+
if ("true".replace(regex, "") !== "true") {
|
|
19436
|
+
const o2 = set$1({}, path2, { _eq: true });
|
|
19437
|
+
searchTermFilters.push(o2);
|
|
19438
|
+
} else if ("false".replace(regex, "") !== "false") {
|
|
19439
|
+
const o2 = set$1({}, path2, { _eq: false });
|
|
19440
|
+
searchTermFilters.push(o2);
|
|
19441
|
+
}
|
|
19442
|
+
}
|
|
19443
|
+
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19444
|
+
const o2 = set$1({}, path2, { _eq: parseFloat(filterValue) });
|
|
19445
|
+
searchTermFilters.push(o2);
|
|
19447
19446
|
}
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19447
|
+
});
|
|
19448
|
+
});
|
|
19449
|
+
if (searchTermFilters.length > 0) {
|
|
19450
|
+
if (Object.keys(where).length > 0) {
|
|
19451
|
+
where = { _and: [where, { _or: searchTermFilters }] };
|
|
19452
|
+
} else {
|
|
19453
|
+
where = { _or: searchTermFilters };
|
|
19454
|
+
}
|
|
19455
|
+
}
|
|
19456
|
+
}
|
|
19457
|
+
if (filters && filters.length > 0) {
|
|
19458
|
+
const filterClauses = filters.map((filter2) => {
|
|
19459
|
+
let { selectedFilter, filterOn, filterValue } = filter2;
|
|
19460
|
+
const fieldSchema = ccFields[filterOn] || {};
|
|
19461
|
+
const { path: path2, reference: reference2, type: type2, customColumnFilter } = fieldSchema;
|
|
19462
|
+
if (customColumnFilter) {
|
|
19463
|
+
return customColumnFilter(filterValue);
|
|
19464
|
+
}
|
|
19465
|
+
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19466
|
+
if (stringFilterValue === false) {
|
|
19467
|
+
stringFilterValue = "false";
|
|
19468
|
+
} else {
|
|
19469
|
+
stringFilterValue = stringFilterValue || "";
|
|
19470
|
+
}
|
|
19471
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19472
|
+
if (type2 === "number" || type2 === "integer") {
|
|
19473
|
+
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19474
|
+
}
|
|
19475
|
+
if (fieldSchema.normalizeFilter) {
|
|
19476
|
+
filterValue = fieldSchema.normalizeFilter(
|
|
19477
|
+
filterValue,
|
|
19478
|
+
selectedFilter,
|
|
19479
|
+
filterOn
|
|
19480
|
+
);
|
|
19481
|
+
}
|
|
19482
|
+
if (reference2) {
|
|
19483
|
+
filterOn = reference2.sourceField;
|
|
19484
|
+
} else {
|
|
19485
|
+
filterOn = path2 || filterOn;
|
|
19486
|
+
}
|
|
19487
|
+
switch (selectedFilter) {
|
|
19488
|
+
case "none":
|
|
19489
|
+
return {};
|
|
19490
|
+
case "startsWith":
|
|
19491
|
+
return { [filterOn]: { _ilike: `${filterValue}%` } };
|
|
19492
|
+
case "endsWith":
|
|
19493
|
+
return { [filterOn]: { _ilike: `%${filterValue}` } };
|
|
19494
|
+
case "contains":
|
|
19495
|
+
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19496
|
+
case "notContains":
|
|
19497
|
+
return { [filterOn]: { _nilike: `%${filterValue}%` } };
|
|
19498
|
+
case "isExactly":
|
|
19499
|
+
return { [filterOn]: { _eq: filterValue } };
|
|
19500
|
+
case "isEmpty":
|
|
19501
|
+
if (filterOn.includes(".")) {
|
|
19502
|
+
return {
|
|
19503
|
+
_not: {
|
|
19504
|
+
[filterOn.split(".")[0]]: {}
|
|
19461
19505
|
}
|
|
19462
|
-
}
|
|
19463
|
-
return new Date(e2);
|
|
19464
|
-
}(t3), this.init();
|
|
19465
|
-
}, m3.init = function() {
|
|
19466
|
-
var t3 = this.$d;
|
|
19467
|
-
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
|
19468
|
-
}, m3.$utils = function() {
|
|
19469
|
-
return b2;
|
|
19470
|
-
}, m3.isValid = function() {
|
|
19471
|
-
return !(this.$d.toString() === l2);
|
|
19472
|
-
}, m3.isSame = function(t3, e2) {
|
|
19473
|
-
var n3 = O2(t3);
|
|
19474
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
19475
|
-
}, m3.isAfter = function(t3, e2) {
|
|
19476
|
-
return O2(t3) < this.startOf(e2);
|
|
19477
|
-
}, m3.isBefore = function(t3, e2) {
|
|
19478
|
-
return this.endOf(e2) < O2(t3);
|
|
19479
|
-
}, m3.$g = function(t3, e2, n3) {
|
|
19480
|
-
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
19481
|
-
}, m3.unix = function() {
|
|
19482
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
19483
|
-
}, m3.valueOf = function() {
|
|
19484
|
-
return this.$d.getTime();
|
|
19485
|
-
}, m3.startOf = function(t3, e2) {
|
|
19486
|
-
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19487
|
-
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
19488
|
-
return r3 ? i3 : i3.endOf(a2);
|
|
19489
|
-
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19490
|
-
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
19491
|
-
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
19492
|
-
switch (f3) {
|
|
19493
|
-
case h2:
|
|
19494
|
-
return r3 ? l3(1, 0) : l3(31, 11);
|
|
19495
|
-
case c2:
|
|
19496
|
-
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
19497
|
-
case o2:
|
|
19498
|
-
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
19499
|
-
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
19500
|
-
case a2:
|
|
19501
|
-
case d2:
|
|
19502
|
-
return $2(v3 + "Hours", 0);
|
|
19503
|
-
case u2:
|
|
19504
|
-
return $2(v3 + "Minutes", 1);
|
|
19505
|
-
case s2:
|
|
19506
|
-
return $2(v3 + "Seconds", 2);
|
|
19507
|
-
case i2:
|
|
19508
|
-
return $2(v3 + "Milliseconds", 3);
|
|
19509
|
-
default:
|
|
19510
|
-
return this.clone();
|
|
19506
|
+
};
|
|
19511
19507
|
}
|
|
19512
|
-
|
|
19513
|
-
|
|
19514
|
-
|
|
19515
|
-
|
|
19516
|
-
|
|
19517
|
-
var y3 = this.clone().set(d2, 1);
|
|
19518
|
-
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
19519
|
-
} else l3 && this.$d[l3]($2);
|
|
19520
|
-
return this.init(), this;
|
|
19521
|
-
}, m3.set = function(t3, e2) {
|
|
19522
|
-
return this.clone().$set(t3, e2);
|
|
19523
|
-
}, m3.get = function(t3) {
|
|
19524
|
-
return this[b2.p(t3)]();
|
|
19525
|
-
}, m3.add = function(r3, f3) {
|
|
19526
|
-
var d3, l3 = this;
|
|
19527
|
-
r3 = Number(r3);
|
|
19528
|
-
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
19529
|
-
var e2 = O2(l3);
|
|
19530
|
-
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
19531
|
-
}, "y");
|
|
19532
|
-
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
19533
|
-
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
19534
|
-
if ($2 === a2) return y3(1);
|
|
19535
|
-
if ($2 === o2) return y3(7);
|
|
19536
|
-
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
19537
|
-
return b2.w(m4, this);
|
|
19538
|
-
}, m3.subtract = function(t3, e2) {
|
|
19539
|
-
return this.add(-1 * t3, e2);
|
|
19540
|
-
}, m3.format = function(t3) {
|
|
19541
|
-
var e2 = this, n3 = this.$locale();
|
|
19542
|
-
if (!this.isValid()) return n3.invalidDate || l2;
|
|
19543
|
-
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = /* @__PURE__ */ __name(function(t4, n4, i4, s4) {
|
|
19544
|
-
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
19545
|
-
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
19546
|
-
return b2.s(s3 % 12 || 12, t4, "0");
|
|
19547
|
-
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
19548
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
19549
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
19508
|
+
return {
|
|
19509
|
+
_or: [
|
|
19510
|
+
{ [filterOn]: { _eq: "" } },
|
|
19511
|
+
{ [filterOn]: { _is_null: true } }
|
|
19512
|
+
]
|
|
19550
19513
|
};
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
case "HH":
|
|
19581
|
-
return b2.s(s3, 2, "0");
|
|
19582
|
-
case "h":
|
|
19583
|
-
return d3(1);
|
|
19584
|
-
case "hh":
|
|
19585
|
-
return d3(2);
|
|
19586
|
-
case "a":
|
|
19587
|
-
return $2(s3, u3, true);
|
|
19588
|
-
case "A":
|
|
19589
|
-
return $2(s3, u3, false);
|
|
19590
|
-
case "m":
|
|
19591
|
-
return String(u3);
|
|
19592
|
-
case "mm":
|
|
19593
|
-
return b2.s(u3, 2, "0");
|
|
19594
|
-
case "s":
|
|
19595
|
-
return String(e2.$s);
|
|
19596
|
-
case "ss":
|
|
19597
|
-
return b2.s(e2.$s, 2, "0");
|
|
19598
|
-
case "SSS":
|
|
19599
|
-
return b2.s(e2.$ms, 3, "0");
|
|
19600
|
-
case "Z":
|
|
19601
|
-
return i3;
|
|
19514
|
+
case "notEmpty":
|
|
19515
|
+
return {
|
|
19516
|
+
_and: [
|
|
19517
|
+
{ [filterOn]: { _neq: "" } },
|
|
19518
|
+
{ [filterOn]: { _is_null: false } }
|
|
19519
|
+
]
|
|
19520
|
+
};
|
|
19521
|
+
case "inList":
|
|
19522
|
+
return { [filterOn]: { _in: filterValue } };
|
|
19523
|
+
case "notInList":
|
|
19524
|
+
return { [filterOn]: { _nin: filterValue } };
|
|
19525
|
+
case "true":
|
|
19526
|
+
return { [filterOn]: { _eq: true } };
|
|
19527
|
+
case "false":
|
|
19528
|
+
return { [filterOn]: { _eq: false } };
|
|
19529
|
+
case "dateIs":
|
|
19530
|
+
return { [filterOn]: { _eq: filterValue } };
|
|
19531
|
+
case "notBetween":
|
|
19532
|
+
return {
|
|
19533
|
+
_or: [
|
|
19534
|
+
{
|
|
19535
|
+
[filterOn]: {
|
|
19536
|
+
_lt: new Date(arrayFilterValue[0])
|
|
19537
|
+
}
|
|
19538
|
+
},
|
|
19539
|
+
{
|
|
19540
|
+
[filterOn]: {
|
|
19541
|
+
_gt: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19542
|
+
}
|
|
19602
19543
|
}
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
|
|
19608
|
-
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
}
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19544
|
+
]
|
|
19545
|
+
};
|
|
19546
|
+
case "isBetween":
|
|
19547
|
+
return {
|
|
19548
|
+
[filterOn]: {
|
|
19549
|
+
_gte: new Date(arrayFilterValue[0]),
|
|
19550
|
+
_lte: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19551
|
+
}
|
|
19552
|
+
};
|
|
19553
|
+
case "isBefore":
|
|
19554
|
+
return { [filterOn]: { _lt: new Date(filterValue) } };
|
|
19555
|
+
case "isAfter":
|
|
19556
|
+
return { [filterOn]: { _gt: new Date(filterValue) } };
|
|
19557
|
+
case "greaterThan":
|
|
19558
|
+
return { [filterOn]: { _gt: parseFloat(filterValue) } };
|
|
19559
|
+
case "lessThan":
|
|
19560
|
+
return { [filterOn]: { _lt: parseFloat(filterValue) } };
|
|
19561
|
+
case "inRange":
|
|
19562
|
+
return {
|
|
19563
|
+
[filterOn]: {
|
|
19564
|
+
_gte: parseFloat(arrayFilterValue[0]),
|
|
19565
|
+
_lte: parseFloat(arrayFilterValue[1])
|
|
19566
|
+
}
|
|
19567
|
+
};
|
|
19568
|
+
case "outsideRange":
|
|
19569
|
+
return {
|
|
19570
|
+
_or: [
|
|
19571
|
+
{
|
|
19572
|
+
[filterOn]: {
|
|
19573
|
+
_lt: parseFloat(arrayFilterValue[0])
|
|
19574
|
+
}
|
|
19575
|
+
},
|
|
19576
|
+
{
|
|
19577
|
+
[filterOn]: {
|
|
19578
|
+
_gt: parseFloat(arrayFilterValue[1])
|
|
19579
|
+
}
|
|
19580
|
+
}
|
|
19581
|
+
]
|
|
19582
|
+
};
|
|
19583
|
+
case "equalTo":
|
|
19584
|
+
return {
|
|
19585
|
+
[filterOn]: {
|
|
19586
|
+
_eq: type2 === "number" || type2 === "integer" ? parseFloat(filterValue) : filterValue
|
|
19587
|
+
}
|
|
19588
|
+
};
|
|
19589
|
+
case "regex":
|
|
19590
|
+
return { [filterOn]: { _regex: filterValue } };
|
|
19591
|
+
default:
|
|
19592
|
+
console.warn(`Unsupported filter type: ${selectedFilter}`);
|
|
19593
|
+
return {};
|
|
19594
|
+
}
|
|
19595
|
+
});
|
|
19596
|
+
if (filterClauses.length > 0) {
|
|
19597
|
+
if (Object.keys(where).length > 0) {
|
|
19598
|
+
where = { _and: [where, ...filterClauses] };
|
|
19599
|
+
} else {
|
|
19600
|
+
where = { _and: filterClauses };
|
|
19601
|
+
}
|
|
19602
|
+
}
|
|
19603
|
+
}
|
|
19604
|
+
if (order2 && order2.length > 0) {
|
|
19605
|
+
order2.forEach((item) => {
|
|
19606
|
+
const field = item.startsWith("-") ? item.substring(1) : item;
|
|
19607
|
+
const direction = item.startsWith("-") ? "desc" : "asc";
|
|
19608
|
+
order_by.push({ [field]: direction });
|
|
19609
|
+
});
|
|
19610
|
+
}
|
|
19611
|
+
if (additionalFilter) {
|
|
19612
|
+
where = { _and: [where, additionalFilter] };
|
|
19613
|
+
}
|
|
19614
|
+
return { where, order_by, limit, offset: offset3 };
|
|
19615
|
+
}
|
|
19616
|
+
__name(tableQueryParamsToHasuraClauses, "tableQueryParamsToHasuraClauses");
|
|
19617
|
+
function getFieldsMappedByCCDisplayName(schema) {
|
|
19618
|
+
if (!schema || !schema.fields) return {};
|
|
19619
|
+
return schema.fields.reduce((acc, field) => {
|
|
19620
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19621
|
+
acc[ccDisplayName] = field;
|
|
19622
|
+
return acc;
|
|
19623
|
+
}, {});
|
|
19624
|
+
}
|
|
19625
|
+
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19626
|
+
function getCCDisplayName(field) {
|
|
19627
|
+
return camelCase(
|
|
19628
|
+
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19629
|
+
);
|
|
19630
|
+
}
|
|
19631
|
+
__name(getCCDisplayName, "getCCDisplayName");
|
|
19632
|
+
function filterLocalEntitiesToHasura(records, { where, order_by, limit, offset: offset3, isInfinite } = {}) {
|
|
19633
|
+
let filteredRecords = [...records];
|
|
19634
|
+
if (where) {
|
|
19635
|
+
filteredRecords = applyWhereClause(filteredRecords, where);
|
|
19636
|
+
}
|
|
19637
|
+
if (order_by) {
|
|
19638
|
+
filteredRecords = applyOrderBy(filteredRecords, order_by);
|
|
19639
|
+
}
|
|
19640
|
+
filteredRecords = restoreEntitiesFromLocalFilter(filteredRecords);
|
|
19641
|
+
const allFilteredRecords = [...filteredRecords];
|
|
19642
|
+
if (!isInfinite && offset3 !== void 0) {
|
|
19643
|
+
filteredRecords = filteredRecords.slice(offset3);
|
|
19644
|
+
}
|
|
19645
|
+
if (!isInfinite && limit !== void 0) {
|
|
19646
|
+
filteredRecords = filteredRecords.slice(0, limit);
|
|
19647
|
+
}
|
|
19648
|
+
return {
|
|
19649
|
+
entities: filteredRecords,
|
|
19650
|
+
entitiesAcrossPages: allFilteredRecords,
|
|
19651
|
+
entityCount: allFilteredRecords.length
|
|
19652
|
+
};
|
|
19653
|
+
}
|
|
19654
|
+
__name(filterLocalEntitiesToHasura, "filterLocalEntitiesToHasura");
|
|
19655
|
+
function applyWhereClause(records, where) {
|
|
19656
|
+
function applyFilter(record, filter2) {
|
|
19657
|
+
if (isEmpty$1(filter2)) {
|
|
19658
|
+
return true;
|
|
19659
|
+
}
|
|
19660
|
+
for (const key in filter2) {
|
|
19661
|
+
if (key === "_and") {
|
|
19662
|
+
if (isEmpty$1(filter2[key])) {
|
|
19663
|
+
continue;
|
|
19664
|
+
}
|
|
19665
|
+
if (!every(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19666
|
+
return false;
|
|
19667
|
+
}
|
|
19668
|
+
} else if (key === "_or") {
|
|
19669
|
+
if (isEmpty$1(filter2[key])) {
|
|
19670
|
+
continue;
|
|
19671
|
+
}
|
|
19672
|
+
if (!some(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19673
|
+
return false;
|
|
19674
|
+
}
|
|
19675
|
+
} else if (key === "_not") {
|
|
19676
|
+
if (applyFilter(record, filter2[key])) {
|
|
19677
|
+
return false;
|
|
19678
|
+
}
|
|
19679
|
+
} else {
|
|
19680
|
+
const value = get$3(record, key);
|
|
19681
|
+
const conditions = filter2[key];
|
|
19682
|
+
if (isObject$2(value) && isObject$2(conditions) && !hasOperator(conditions)) {
|
|
19683
|
+
return applyFilter(value, conditions);
|
|
19684
|
+
}
|
|
19685
|
+
for (const operator in conditions) {
|
|
19686
|
+
const conditionValue = conditions[operator];
|
|
19687
|
+
if (operator === "_gt" && conditions._lt) {
|
|
19688
|
+
if (!(value > conditionValue && value < conditions._lt))
|
|
19689
|
+
return false;
|
|
19690
|
+
continue;
|
|
19691
|
+
}
|
|
19692
|
+
if (operator === "_gte" && conditions._lte) {
|
|
19693
|
+
if (!(value >= conditionValue && value <= conditions._lte))
|
|
19694
|
+
return false;
|
|
19695
|
+
continue;
|
|
19696
|
+
}
|
|
19697
|
+
switch (operator) {
|
|
19698
|
+
case "_eq":
|
|
19699
|
+
if (!isEqual(value, conditionValue)) return false;
|
|
19615
19700
|
break;
|
|
19616
|
-
case
|
|
19617
|
-
|
|
19701
|
+
case "_neq":
|
|
19702
|
+
if (isEqual(value, conditionValue)) return false;
|
|
19618
19703
|
break;
|
|
19619
|
-
case
|
|
19620
|
-
|
|
19704
|
+
case "_gt":
|
|
19705
|
+
if (!(value > conditionValue)) return false;
|
|
19621
19706
|
break;
|
|
19622
|
-
case
|
|
19623
|
-
|
|
19707
|
+
case "_gte":
|
|
19708
|
+
if (!(value >= conditionValue)) return false;
|
|
19624
19709
|
break;
|
|
19625
|
-
case
|
|
19626
|
-
|
|
19710
|
+
case "_lt":
|
|
19711
|
+
if (!(value < conditionValue)) return false;
|
|
19627
19712
|
break;
|
|
19628
|
-
case
|
|
19629
|
-
|
|
19713
|
+
case "_lte":
|
|
19714
|
+
if (!(value <= conditionValue)) return false;
|
|
19630
19715
|
break;
|
|
19631
|
-
case
|
|
19632
|
-
$
|
|
19716
|
+
case "_like":
|
|
19717
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19718
|
+
return false;
|
|
19633
19719
|
break;
|
|
19634
|
-
case
|
|
19635
|
-
$
|
|
19720
|
+
case "_ilike":
|
|
19721
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19722
|
+
return false;
|
|
19723
|
+
break;
|
|
19724
|
+
case "_nlike":
|
|
19725
|
+
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19726
|
+
return false;
|
|
19727
|
+
break;
|
|
19728
|
+
case "_nilike":
|
|
19729
|
+
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19730
|
+
return false;
|
|
19731
|
+
break;
|
|
19732
|
+
case "_starts_with":
|
|
19733
|
+
if (!isString$1(value) || !value.startsWith(conditionValue))
|
|
19734
|
+
return false;
|
|
19735
|
+
break;
|
|
19736
|
+
case "_ends_with":
|
|
19737
|
+
if (!isString$1(value) || !value.endsWith(conditionValue))
|
|
19738
|
+
return false;
|
|
19739
|
+
break;
|
|
19740
|
+
case "_is_null":
|
|
19741
|
+
if (conditionValue && !isNull(value) || !conditionValue && isNull(value))
|
|
19742
|
+
return false;
|
|
19743
|
+
break;
|
|
19744
|
+
case "_contains":
|
|
19745
|
+
if (!isArray$2(value) || !every(conditionValue, (item) => includes(value, item)))
|
|
19746
|
+
return false;
|
|
19747
|
+
break;
|
|
19748
|
+
case "_contained_in":
|
|
19749
|
+
if (!isArray$2(value) || !every(value, (item) => includes(conditionValue, item)))
|
|
19750
|
+
return false;
|
|
19751
|
+
break;
|
|
19752
|
+
case "_has_key":
|
|
19753
|
+
if (!isObject$2(value) || !has$1(value, conditionValue)) return false;
|
|
19754
|
+
break;
|
|
19755
|
+
case "_has_keys_any":
|
|
19756
|
+
if (!isObject$2(value) || !some(conditionValue, (item) => has$1(value, item)))
|
|
19757
|
+
return false;
|
|
19758
|
+
break;
|
|
19759
|
+
case "_has_keys_all":
|
|
19760
|
+
if (!isObject$2(value) || !every(conditionValue, (item) => has$1(value, item)))
|
|
19761
|
+
return false;
|
|
19762
|
+
break;
|
|
19763
|
+
case "_similar":
|
|
19764
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19765
|
+
return false;
|
|
19636
19766
|
break;
|
|
19637
19767
|
default:
|
|
19638
|
-
|
|
19768
|
+
if (operator.startsWith("_")) {
|
|
19769
|
+
console.warn(`Unsupported operator: ${operator}`);
|
|
19770
|
+
return false;
|
|
19771
|
+
} else {
|
|
19772
|
+
console.warn(`Unsupported operator: ${operator}`);
|
|
19773
|
+
return false;
|
|
19774
|
+
}
|
|
19639
19775
|
}
|
|
19640
|
-
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
19649
|
-
|
|
19650
|
-
|
|
19651
|
-
|
|
19652
|
-
|
|
19653
|
-
|
|
19654
|
-
|
|
19655
|
-
|
|
19656
|
-
|
|
19657
|
-
|
|
19658
|
-
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19668
|
-
|
|
19669
|
-
|
|
19776
|
+
}
|
|
19777
|
+
}
|
|
19778
|
+
}
|
|
19779
|
+
return true;
|
|
19780
|
+
}
|
|
19781
|
+
__name(applyFilter, "applyFilter");
|
|
19782
|
+
function hasOperator(obj) {
|
|
19783
|
+
return Object.keys(obj).some((key) => key.startsWith("_"));
|
|
19784
|
+
}
|
|
19785
|
+
__name(hasOperator, "hasOperator");
|
|
19786
|
+
return records.filter((record) => applyFilter(record, where));
|
|
19787
|
+
}
|
|
19788
|
+
__name(applyWhereClause, "applyWhereClause");
|
|
19789
|
+
function applyOrderBy(records, _order_by) {
|
|
19790
|
+
const order_by = isArray$2(_order_by) ? _order_by : isEmpty$1(_order_by) ? [] : [_order_by];
|
|
19791
|
+
if (order_by.length > 0) {
|
|
19792
|
+
const orderFuncs = [];
|
|
19793
|
+
const ascOrDescArray = [];
|
|
19794
|
+
order_by.forEach(
|
|
19795
|
+
({ path: path2, direction, type: type2, sortFn, getValueToFilterOn, ownProps }) => {
|
|
19796
|
+
direction = direction || "desc";
|
|
19797
|
+
if (sortFn) {
|
|
19798
|
+
const sortFnArray = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19799
|
+
sortFnArray.forEach((fn4) => {
|
|
19800
|
+
const getter = typeof fn4 === "function" ? fn4 : (r2) => get$3(r2, fn4);
|
|
19801
|
+
orderFuncs.push((r2) => {
|
|
19802
|
+
const val = getter(r2);
|
|
19803
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19804
|
+
});
|
|
19805
|
+
ascOrDescArray.push("desc");
|
|
19806
|
+
orderFuncs.push(getter);
|
|
19807
|
+
ascOrDescArray.push(direction);
|
|
19808
|
+
});
|
|
19809
|
+
} else if (getValueToFilterOn) {
|
|
19810
|
+
orderFuncs.push((r2) => {
|
|
19811
|
+
const val = getValueToFilterOn(r2, ownProps);
|
|
19812
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19813
|
+
});
|
|
19814
|
+
ascOrDescArray.push("desc");
|
|
19815
|
+
orderFuncs.push((r2) => getValueToFilterOn(r2, ownProps));
|
|
19816
|
+
ascOrDescArray.push(direction);
|
|
19817
|
+
} else if (type2 === "timestamp") {
|
|
19818
|
+
orderFuncs.push((r2) => {
|
|
19819
|
+
const val = get$3(r2, path2);
|
|
19820
|
+
return val ? 1 : 0;
|
|
19821
|
+
});
|
|
19822
|
+
ascOrDescArray.push("desc");
|
|
19823
|
+
orderFuncs.push((r2) => {
|
|
19824
|
+
const val = get$3(r2, path2);
|
|
19825
|
+
return val ? new Date(val).getTime() : -Infinity;
|
|
19826
|
+
});
|
|
19827
|
+
ascOrDescArray.push(direction);
|
|
19828
|
+
} else if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19829
|
+
orderFuncs.push((r2) => {
|
|
19830
|
+
const val = get$3(r2, path2);
|
|
19831
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19832
|
+
});
|
|
19833
|
+
ascOrDescArray.push("desc");
|
|
19834
|
+
orderFuncs.push((o2) => {
|
|
19835
|
+
const val = get$3(o2, path2);
|
|
19836
|
+
if (val === null || val === void 0) return -Infinity;
|
|
19837
|
+
return parseInt(val, 10) || 0;
|
|
19838
|
+
});
|
|
19839
|
+
ascOrDescArray.push(direction);
|
|
19840
|
+
} else {
|
|
19841
|
+
orderFuncs.push((r2) => {
|
|
19842
|
+
const val = get$3(r2, path2);
|
|
19843
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19844
|
+
});
|
|
19845
|
+
ascOrDescArray.push("desc");
|
|
19846
|
+
orderFuncs.push((r2) => {
|
|
19847
|
+
const val = get$3(r2, path2);
|
|
19848
|
+
if (val === null || val === void 0) return -Infinity;
|
|
19849
|
+
if (isString$1(val)) {
|
|
19850
|
+
return val.toLowerCase().replace(
|
|
19851
|
+
/(\d+)/g,
|
|
19852
|
+
(num) => (
|
|
19853
|
+
// Pad numbers with leading zeros for proper natural sort
|
|
19854
|
+
num.padStart(10, "0")
|
|
19855
|
+
)
|
|
19856
|
+
);
|
|
19857
|
+
}
|
|
19858
|
+
return val;
|
|
19859
|
+
});
|
|
19860
|
+
ascOrDescArray.push(direction);
|
|
19861
|
+
}
|
|
19862
|
+
}
|
|
19863
|
+
);
|
|
19864
|
+
records = orderBy$1(records, orderFuncs, ascOrDescArray);
|
|
19865
|
+
}
|
|
19866
|
+
return records;
|
|
19867
|
+
}
|
|
19868
|
+
__name(applyOrderBy, "applyOrderBy");
|
|
19869
|
+
function restoreEntitiesFromLocalFilter(ents) {
|
|
19870
|
+
return ents.map((entity) => {
|
|
19871
|
+
forEach(entity, (val, key) => {
|
|
19872
|
+
var _a;
|
|
19873
|
+
if ((_a = key.startsWith) == null ? void 0 : _a.call(key, "___original___")) {
|
|
19874
|
+
entity[key.slice("___original___".length)] = val;
|
|
19875
|
+
delete entity[key];
|
|
19876
|
+
}
|
|
19670
19877
|
});
|
|
19671
|
-
|
|
19672
|
-
|
|
19878
|
+
return entity;
|
|
19879
|
+
});
|
|
19673
19880
|
}
|
|
19674
|
-
__name(
|
|
19675
|
-
|
|
19676
|
-
|
|
19881
|
+
__name(restoreEntitiesFromLocalFilter, "restoreEntitiesFromLocalFilter");
|
|
19882
|
+
function initializeHasuraWhereAndFilter(additionalFilter, where = {}, currentParams) {
|
|
19883
|
+
where._and = where._and || [];
|
|
19884
|
+
where._or = where._or || [];
|
|
19885
|
+
if (typeof additionalFilter === "function") {
|
|
19886
|
+
const newWhere = additionalFilter(where, currentParams);
|
|
19887
|
+
if (newWhere) {
|
|
19888
|
+
Object.assign(where, newWhere);
|
|
19889
|
+
}
|
|
19890
|
+
} else if (typeof additionalFilter === "object")
|
|
19891
|
+
where._and.push(additionalFilter);
|
|
19892
|
+
}
|
|
19893
|
+
__name(initializeHasuraWhereAndFilter, "initializeHasuraWhereAndFilter");
|
|
19677
19894
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
19678
19895
|
function safeStringify(val) {
|
|
19679
19896
|
if (val !== null && typeof val === "object") {
|
|
@@ -19690,325 +19907,6 @@ function safeParse(val) {
|
|
|
19690
19907
|
}
|
|
19691
19908
|
}
|
|
19692
19909
|
__name(safeParse, "safeParse");
|
|
19693
|
-
function getCCDisplayName(field) {
|
|
19694
|
-
return camelCase(
|
|
19695
|
-
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19696
|
-
);
|
|
19697
|
-
}
|
|
19698
|
-
__name(getCCDisplayName, "getCCDisplayName");
|
|
19699
|
-
function getFieldsMappedByCCDisplayName(schema) {
|
|
19700
|
-
return schema.fields.reduce((acc, field) => {
|
|
19701
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19702
|
-
acc[ccDisplayName] = field;
|
|
19703
|
-
return acc;
|
|
19704
|
-
}, {});
|
|
19705
|
-
}
|
|
19706
|
-
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19707
|
-
function orderEntitiesLocal(orderArray, entities, schema, ownProps) {
|
|
19708
|
-
if (orderArray == null ? void 0 : orderArray.length) {
|
|
19709
|
-
const orderFuncs = [];
|
|
19710
|
-
const ascOrDescArray = [];
|
|
19711
|
-
orderArray.forEach((order2) => {
|
|
19712
|
-
const ccDisplayName = order2.replace(/^-/gi, "");
|
|
19713
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19714
|
-
const field = ccFields[ccDisplayName];
|
|
19715
|
-
if (!field) {
|
|
19716
|
-
throw new Error(
|
|
19717
|
-
"Ruh roh, there should have been a column to sort on for " + order2 + " but none was found in " + schema.fields
|
|
19718
|
-
);
|
|
19719
|
-
}
|
|
19720
|
-
const { path: path2, getValueToFilterOn, sortFn } = field;
|
|
19721
|
-
if (field.type === "timestamp") {
|
|
19722
|
-
ascOrDescArray.push("desc");
|
|
19723
|
-
}
|
|
19724
|
-
ascOrDescArray.push(ccDisplayName === order2 ? "asc" : "desc");
|
|
19725
|
-
if (field.type === "timestamp") {
|
|
19726
|
-
orderFuncs.push((r2) => {
|
|
19727
|
-
const val = get$3(r2, path2);
|
|
19728
|
-
return !!val;
|
|
19729
|
-
});
|
|
19730
|
-
}
|
|
19731
|
-
if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19732
|
-
orderFuncs.push((o2) => {
|
|
19733
|
-
return parseInt(get$3(o2, path2), 10);
|
|
19734
|
-
});
|
|
19735
|
-
} else if (sortFn) {
|
|
19736
|
-
const toOrder = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19737
|
-
orderFuncs.push(...toOrder);
|
|
19738
|
-
} else if (getValueToFilterOn) {
|
|
19739
|
-
orderFuncs.push((o2) => {
|
|
19740
|
-
return getValueToFilterOn(o2, ownProps);
|
|
19741
|
-
});
|
|
19742
|
-
} else {
|
|
19743
|
-
orderFuncs.push((r2) => {
|
|
19744
|
-
const val = get$3(r2, path2);
|
|
19745
|
-
return val && val.toLowerCase ? val.toLowerCase() : val;
|
|
19746
|
-
});
|
|
19747
|
-
}
|
|
19748
|
-
});
|
|
19749
|
-
entities = orderBy$1(entities, orderFuncs, ascOrDescArray);
|
|
19750
|
-
}
|
|
19751
|
-
return entities;
|
|
19752
|
-
}
|
|
19753
|
-
__name(orderEntitiesLocal, "orderEntitiesLocal");
|
|
19754
|
-
function getAndAndOrFilters(allFilters) {
|
|
19755
|
-
const orFilters = [];
|
|
19756
|
-
const andFilters = [];
|
|
19757
|
-
const otherOrFilters = [];
|
|
19758
|
-
allFilters.forEach((filter2) => {
|
|
19759
|
-
if (filter2.isOrFilter && typeof filter2.filterValue === "string" && filter2.filterValue.includes(",")) {
|
|
19760
|
-
const allFilterValues = filter2.filterValue.split(",");
|
|
19761
|
-
allFilterValues.forEach((filterValue, i2) => {
|
|
19762
|
-
filterValue = filterValue.trim();
|
|
19763
|
-
if (!filterValue) return;
|
|
19764
|
-
const newFilter = __spreadProps(__spreadValues({}, filter2), {
|
|
19765
|
-
filterValue
|
|
19766
|
-
});
|
|
19767
|
-
if (i2 === 0) {
|
|
19768
|
-
orFilters.push(newFilter);
|
|
19769
|
-
} else {
|
|
19770
|
-
const iMinus = i2 - 1;
|
|
19771
|
-
if (!otherOrFilters[iMinus]) otherOrFilters[iMinus] = [];
|
|
19772
|
-
otherOrFilters[iMinus].push(newFilter);
|
|
19773
|
-
}
|
|
19774
|
-
});
|
|
19775
|
-
} else if (filter2.isOrFilter) {
|
|
19776
|
-
orFilters.push(filter2);
|
|
19777
|
-
} else {
|
|
19778
|
-
andFilters.push(filter2);
|
|
19779
|
-
}
|
|
19780
|
-
});
|
|
19781
|
-
return {
|
|
19782
|
-
orFilters,
|
|
19783
|
-
andFilters,
|
|
19784
|
-
otherOrFilters
|
|
19785
|
-
};
|
|
19786
|
-
}
|
|
19787
|
-
__name(getAndAndOrFilters, "getAndAndOrFilters");
|
|
19788
|
-
function filterEntitiesLocal(filters = [], searchTerm, entities, schema, ownProps) {
|
|
19789
|
-
const allFilters = getAllFilters(filters, searchTerm, schema);
|
|
19790
|
-
if (allFilters.length) {
|
|
19791
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19792
|
-
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
19793
|
-
andFilters.forEach((filter2) => {
|
|
19794
|
-
entities = getEntitiesForGivenFilter(
|
|
19795
|
-
entities,
|
|
19796
|
-
filter2,
|
|
19797
|
-
ccFields,
|
|
19798
|
-
ownProps
|
|
19799
|
-
);
|
|
19800
|
-
});
|
|
19801
|
-
if (orFilters.length) {
|
|
19802
|
-
let orEntities = [];
|
|
19803
|
-
orFilters.concat(...otherOrFilters).forEach((filter2) => {
|
|
19804
|
-
orEntities = orEntities.concat(
|
|
19805
|
-
getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps)
|
|
19806
|
-
);
|
|
19807
|
-
});
|
|
19808
|
-
entities = uniq(orEntities);
|
|
19809
|
-
}
|
|
19810
|
-
}
|
|
19811
|
-
return entities;
|
|
19812
|
-
}
|
|
19813
|
-
__name(filterEntitiesLocal, "filterEntitiesLocal");
|
|
19814
|
-
function cleanFilterValue(_filterValue, type2) {
|
|
19815
|
-
let filterValue = _filterValue;
|
|
19816
|
-
if (type2 === "number" || type2 === "integer") {
|
|
19817
|
-
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19818
|
-
}
|
|
19819
|
-
return filterValue;
|
|
19820
|
-
}
|
|
19821
|
-
__name(cleanFilterValue, "cleanFilterValue");
|
|
19822
|
-
function getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps) {
|
|
19823
|
-
const { filterOn, filterValue: _filterValue, selectedFilter } = filter2;
|
|
19824
|
-
const field = ccFields[filterOn];
|
|
19825
|
-
const { path: path2, getValueToFilterOn } = field;
|
|
19826
|
-
const filterValue = cleanFilterValue(_filterValue, field.type);
|
|
19827
|
-
const subFilter = getSubFilter(false, selectedFilter, filterValue);
|
|
19828
|
-
entities = entities.filter((entity) => {
|
|
19829
|
-
const fieldVal = getValueToFilterOn ? getValueToFilterOn(entity, ownProps) : get$3(entity, path2);
|
|
19830
|
-
const shouldKeep = subFilter(fieldVal);
|
|
19831
|
-
return shouldKeep;
|
|
19832
|
-
});
|
|
19833
|
-
return entities;
|
|
19834
|
-
}
|
|
19835
|
-
__name(getEntitiesForGivenFilter, "getEntitiesForGivenFilter");
|
|
19836
|
-
function getFiltersFromSearchTerm(searchTerm, schema) {
|
|
19837
|
-
const searchTermFilters = [];
|
|
19838
|
-
if (searchTerm) {
|
|
19839
|
-
const sharedFields = {
|
|
19840
|
-
isOrFilter: true,
|
|
19841
|
-
isSearchTermFilter: true
|
|
19842
|
-
};
|
|
19843
|
-
schema.fields.forEach((field) => {
|
|
19844
|
-
const { type: type2, searchDisabled } = field;
|
|
19845
|
-
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19846
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19847
|
-
const filterValue = cleanFilterValue(searchTerm, type2);
|
|
19848
|
-
if (type2 === "string" || type2 === "lookup") {
|
|
19849
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19850
|
-
filterOn: ccDisplayName,
|
|
19851
|
-
filterValue: searchTerm,
|
|
19852
|
-
selectedFilter: "contains"
|
|
19853
|
-
}));
|
|
19854
|
-
} else if (type2 === "boolean") {
|
|
19855
|
-
let regex;
|
|
19856
|
-
try {
|
|
19857
|
-
regex = new RegExp("^" + searchTerm, "ig");
|
|
19858
|
-
} catch (error) {
|
|
19859
|
-
}
|
|
19860
|
-
if (regex) {
|
|
19861
|
-
if ("true".replace(regex, "") !== "true") {
|
|
19862
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19863
|
-
filterOn: ccDisplayName,
|
|
19864
|
-
filterValue: true,
|
|
19865
|
-
selectedFilter: "true"
|
|
19866
|
-
}));
|
|
19867
|
-
} else if ("false".replace(regex, "") !== "false") {
|
|
19868
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19869
|
-
filterOn: ccDisplayName,
|
|
19870
|
-
filterValue: false,
|
|
19871
|
-
selectedFilter: "false"
|
|
19872
|
-
}));
|
|
19873
|
-
}
|
|
19874
|
-
}
|
|
19875
|
-
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19876
|
-
if (type2 === "integer" && !isInteger(filterValue)) {
|
|
19877
|
-
return;
|
|
19878
|
-
}
|
|
19879
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19880
|
-
filterOn: ccDisplayName,
|
|
19881
|
-
filterValue,
|
|
19882
|
-
selectedFilter: "equalTo"
|
|
19883
|
-
}));
|
|
19884
|
-
}
|
|
19885
|
-
});
|
|
19886
|
-
}
|
|
19887
|
-
return searchTermFilters;
|
|
19888
|
-
}
|
|
19889
|
-
__name(getFiltersFromSearchTerm, "getFiltersFromSearchTerm");
|
|
19890
|
-
function getSubFilter(qb, selectedFilter, filterValue) {
|
|
19891
|
-
const ccSelectedFilter = camelCase(selectedFilter);
|
|
19892
|
-
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19893
|
-
if (stringFilterValue === false) {
|
|
19894
|
-
stringFilterValue = "false";
|
|
19895
|
-
} else {
|
|
19896
|
-
stringFilterValue = stringFilterValue || "";
|
|
19897
|
-
}
|
|
19898
|
-
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
19899
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19900
|
-
if (ccSelectedFilter === "startsWith") {
|
|
19901
|
-
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
19902
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19903
|
-
return startsWith(fieldVal.toLowerCase(), filterValLower);
|
|
19904
|
-
};
|
|
19905
|
-
} else if (ccSelectedFilter === "endsWith") {
|
|
19906
|
-
return qb ? qb.endsWith(stringFilterValue) : (fieldVal) => {
|
|
19907
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19908
|
-
return endsWith$1(fieldVal.toLowerCase(), filterValLower);
|
|
19909
|
-
};
|
|
19910
|
-
} else if (ccSelectedFilter === "contains" || ccSelectedFilter === "notContains") {
|
|
19911
|
-
return qb ? ccSelectedFilter === "contains" ? qb.contains(stringFilterValue.replace(/_/g, "\\_")) : qb.notContains(stringFilterValue.replace(/_/g, "\\_")) : (fieldVal) => {
|
|
19912
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19913
|
-
return ccSelectedFilter === "contains" ? fieldVal.toLowerCase().replace(filterValLower, "") !== fieldVal.toLowerCase() : fieldVal.toLowerCase().replace(filterValLower, "") === fieldVal.toLowerCase();
|
|
19914
|
-
};
|
|
19915
|
-
} else if (ccSelectedFilter === "inList") {
|
|
19916
|
-
return qb ? qb.inList(arrayFilterValue) : (fieldVal) => {
|
|
19917
|
-
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19918
|
-
return arrayFilterValue.map((val) => {
|
|
19919
|
-
if (val) {
|
|
19920
|
-
if (val.toString) return val.toString().toLowerCase();
|
|
19921
|
-
return val.toLowerCase();
|
|
19922
|
-
}
|
|
19923
|
-
return void 0;
|
|
19924
|
-
}).indexOf(fieldVal.toString().toLowerCase()) > -1;
|
|
19925
|
-
};
|
|
19926
|
-
} else if (ccSelectedFilter === "notInList") {
|
|
19927
|
-
return qb ? qb.notInList(arrayFilterValue) : (fieldVal) => {
|
|
19928
|
-
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19929
|
-
return arrayFilterValue.map((val) => {
|
|
19930
|
-
if (val) {
|
|
19931
|
-
if (val.toString) return val.toString().toLowerCase();
|
|
19932
|
-
return val.toLowerCase();
|
|
19933
|
-
}
|
|
19934
|
-
return void 0;
|
|
19935
|
-
}).indexOf(fieldVal.toString().toLowerCase()) === -1;
|
|
19936
|
-
};
|
|
19937
|
-
} else if (ccSelectedFilter === "isEmpty") {
|
|
19938
|
-
return qb ? qb.isEmpty() : (fieldVal) => {
|
|
19939
|
-
return !fieldVal;
|
|
19940
|
-
};
|
|
19941
|
-
} else if (ccSelectedFilter === "notEmpty") {
|
|
19942
|
-
return qb ? [qb.notNull(), qb.notEquals("")] : (fieldVal) => {
|
|
19943
|
-
return !!fieldVal;
|
|
19944
|
-
};
|
|
19945
|
-
} else if (ccSelectedFilter === "isExactly") {
|
|
19946
|
-
return qb ? filterValue : (fieldVal) => {
|
|
19947
|
-
return fieldVal === filterValue;
|
|
19948
|
-
};
|
|
19949
|
-
} else if (ccSelectedFilter === "true") {
|
|
19950
|
-
return qb ? qb.equals(true) : (fieldVal) => {
|
|
19951
|
-
return !!fieldVal;
|
|
19952
|
-
};
|
|
19953
|
-
} else if (ccSelectedFilter === "false") {
|
|
19954
|
-
return qb ? qb.equals(false) : (fieldVal) => {
|
|
19955
|
-
return !fieldVal;
|
|
19956
|
-
};
|
|
19957
|
-
} else if (ccSelectedFilter === "isBetween") {
|
|
19958
|
-
return qb ? qb.between(
|
|
19959
|
-
new Date(arrayFilterValue[0]),
|
|
19960
|
-
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19961
|
-
// set end of day for more accurate filtering
|
|
19962
|
-
) : (fieldVal) => {
|
|
19963
|
-
return dayjs(arrayFilterValue[0]).valueOf() <= dayjs(fieldVal).valueOf() && dayjs(fieldVal).valueOf() <= dayjs(arrayFilterValue[1]).valueOf();
|
|
19964
|
-
};
|
|
19965
|
-
} else if (ccSelectedFilter === "notBetween") {
|
|
19966
|
-
return qb ? qb.notBetween(
|
|
19967
|
-
new Date(arrayFilterValue[0]),
|
|
19968
|
-
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19969
|
-
// set end of day for more accurate filtering
|
|
19970
|
-
) : (fieldVal) => {
|
|
19971
|
-
return dayjs(arrayFilterValue[0]).valueOf() > dayjs(fieldVal).valueOf() || dayjs(fieldVal).valueOf() > dayjs(arrayFilterValue[1]).valueOf();
|
|
19972
|
-
};
|
|
19973
|
-
} else if (ccSelectedFilter === "isBefore") {
|
|
19974
|
-
return qb ? qb.lessThan(new Date(filterValue)) : (fieldVal) => {
|
|
19975
|
-
return dayjs(fieldVal).valueOf() < dayjs(filterValue).valueOf();
|
|
19976
|
-
};
|
|
19977
|
-
} else if (ccSelectedFilter === "isAfter") {
|
|
19978
|
-
return qb ? qb.greaterThan(new Date(new Date(filterValue).setHours(23, 59))) : (fieldVal) => {
|
|
19979
|
-
return dayjs(fieldVal).valueOf() > dayjs(filterValue).valueOf();
|
|
19980
|
-
};
|
|
19981
|
-
} else if (ccSelectedFilter === "greaterThan") {
|
|
19982
|
-
return qb ? qb.greaterThan(filterValue) : (fieldVal) => {
|
|
19983
|
-
return fieldVal > filterValue;
|
|
19984
|
-
};
|
|
19985
|
-
} else if (ccSelectedFilter === "lessThan") {
|
|
19986
|
-
return qb ? qb.lessThan(filterValue) : (fieldVal) => {
|
|
19987
|
-
return fieldVal < filterValue;
|
|
19988
|
-
};
|
|
19989
|
-
} else if (ccSelectedFilter === "inRange") {
|
|
19990
|
-
return qb ? qb.between(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
19991
|
-
return filterValue[0] <= fieldVal && fieldVal <= filterValue[1];
|
|
19992
|
-
};
|
|
19993
|
-
} else if (ccSelectedFilter === "outsideRange") {
|
|
19994
|
-
return qb ? qb.notBetween(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
19995
|
-
return filterValue[0] > fieldVal || fieldVal > filterValue[1];
|
|
19996
|
-
};
|
|
19997
|
-
} else if (ccSelectedFilter === "equalTo") {
|
|
19998
|
-
return qb ? filterValue : (fieldVal) => {
|
|
19999
|
-
return fieldVal === filterValue;
|
|
20000
|
-
};
|
|
20001
|
-
} else if (ccSelectedFilter === "regex") {
|
|
20002
|
-
return qb ? qb.matchesRegex(filterValue) : (fieldVal) => {
|
|
20003
|
-
new RegExp(filterValue).test(fieldVal);
|
|
20004
|
-
return fieldVal;
|
|
20005
|
-
};
|
|
20006
|
-
}
|
|
20007
|
-
throw new Error(
|
|
20008
|
-
`Unsupported filter ${selectedFilter}. Please make a new filter if you need one`
|
|
20009
|
-
);
|
|
20010
|
-
}
|
|
20011
|
-
__name(getSubFilter, "getSubFilter");
|
|
20012
19910
|
function getCurrentParamsFromUrl(location2, isSimple) {
|
|
20013
19911
|
let { search: search2 } = location2;
|
|
20014
19912
|
if (isSimple) {
|
|
@@ -20080,22 +19978,6 @@ function parseFilters(newParams) {
|
|
|
20080
19978
|
});
|
|
20081
19979
|
}
|
|
20082
19980
|
__name(parseFilters, "parseFilters");
|
|
20083
|
-
function buildRef(qb, reference2, searchField, expression) {
|
|
20084
|
-
if (reference2.reference) {
|
|
20085
|
-
return qb.related(reference2.target).whereAny({
|
|
20086
|
-
[reference2.sourceField]: buildRef(
|
|
20087
|
-
qb,
|
|
20088
|
-
reference2.reference,
|
|
20089
|
-
searchField,
|
|
20090
|
-
expression
|
|
20091
|
-
)
|
|
20092
|
-
});
|
|
20093
|
-
}
|
|
20094
|
-
return qb.related(reference2.target).whereAny({
|
|
20095
|
-
[searchField]: expression
|
|
20096
|
-
});
|
|
20097
|
-
}
|
|
20098
|
-
__name(buildRef, "buildRef");
|
|
20099
19981
|
function makeDataTableHandlers({
|
|
20100
19982
|
setNewParams,
|
|
20101
19983
|
defaults,
|
|
@@ -20183,27 +20065,19 @@ function makeDataTableHandlers({
|
|
|
20183
20065
|
};
|
|
20184
20066
|
}
|
|
20185
20067
|
__name(makeDataTableHandlers, "makeDataTableHandlers");
|
|
20186
|
-
function
|
|
20187
|
-
|
|
20188
|
-
|
|
20189
|
-
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
function getAllFilters(filters, searchTerm, schema) {
|
|
20197
|
-
let allFilters = [
|
|
20198
|
-
...filters,
|
|
20199
|
-
...getFiltersFromSearchTerm(searchTerm, schema)
|
|
20200
|
-
];
|
|
20201
|
-
allFilters = allFilters.filter((val) => {
|
|
20202
|
-
return val !== "";
|
|
20068
|
+
function cleanupFilters({ filters, ccFields }) {
|
|
20069
|
+
(filters || []).forEach((filter2) => {
|
|
20070
|
+
const { filterOn, filterValue } = filter2;
|
|
20071
|
+
const field = ccFields[filterOn];
|
|
20072
|
+
if (field.type === "number" || field.type === "integer") {
|
|
20073
|
+
filter2.filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
20074
|
+
}
|
|
20075
|
+
if (filter2.selectedFilter === "inList" && typeof filter2.filterValue === "number") {
|
|
20076
|
+
filter2.filterValue = filter2.filterValue.toString();
|
|
20077
|
+
}
|
|
20203
20078
|
});
|
|
20204
|
-
return allFilters.map(cleanupFilter);
|
|
20205
20079
|
}
|
|
20206
|
-
__name(
|
|
20080
|
+
__name(cleanupFilters, "cleanupFilters");
|
|
20207
20081
|
function getQueryParams({
|
|
20208
20082
|
currentParams,
|
|
20209
20083
|
urlConnected,
|
|
@@ -20213,88 +20087,45 @@ function getQueryParams({
|
|
|
20213
20087
|
entities,
|
|
20214
20088
|
isLocalCall,
|
|
20215
20089
|
additionalFilter,
|
|
20216
|
-
additionalOrFilter,
|
|
20217
20090
|
doNotCoercePageSize,
|
|
20218
20091
|
noOrderError,
|
|
20219
20092
|
isCodeModel,
|
|
20220
20093
|
ownProps
|
|
20221
20094
|
}) {
|
|
20222
|
-
|
|
20223
|
-
|
|
20224
|
-
|
|
20095
|
+
let errorParsingUrlString;
|
|
20096
|
+
try {
|
|
20097
|
+
Object.keys(currentParams).forEach(function(key) {
|
|
20098
|
+
if (currentParams[key] === void 0) {
|
|
20099
|
+
delete currentParams[key];
|
|
20100
|
+
}
|
|
20101
|
+
});
|
|
20102
|
+
const tableQueryParams = __spreadValues(__spreadValues({}, defaults), currentParams);
|
|
20103
|
+
let { page, pageSize, searchTerm, filters, order: order2 } = tableQueryParams;
|
|
20104
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
20105
|
+
cleanupFilters({ filters, ccFields });
|
|
20106
|
+
if (page <= 0 || isNaN(page)) {
|
|
20107
|
+
page = void 0;
|
|
20225
20108
|
}
|
|
20226
|
-
});
|
|
20227
|
-
const tableQueryParams = __spreadValues(__spreadValues({}, defaults), currentParams);
|
|
20228
|
-
let { page, pageSize, searchTerm, filters, order: order2 } = tableQueryParams;
|
|
20229
|
-
if (page <= 0 || isNaN(page)) {
|
|
20230
|
-
page = void 0;
|
|
20231
|
-
}
|
|
20232
|
-
if (isInfinite) {
|
|
20233
|
-
page = void 0;
|
|
20234
|
-
pageSize = void 0;
|
|
20235
|
-
}
|
|
20236
|
-
if (pageSize !== void 0 && !doNotCoercePageSize) {
|
|
20237
|
-
const closest = clone$1(window.tgPageSizes || defaultPageSizes).sort(
|
|
20238
|
-
(a2, b2) => Math.abs(pageSize - a2) - Math.abs(pageSize - b2)
|
|
20239
|
-
)[0];
|
|
20240
|
-
pageSize = closest;
|
|
20241
|
-
}
|
|
20242
|
-
const toReturn = {
|
|
20243
|
-
//these are values that might be generally useful for the wrapped component
|
|
20244
|
-
page,
|
|
20245
|
-
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20246
|
-
order: order2,
|
|
20247
|
-
filters,
|
|
20248
|
-
searchTerm
|
|
20249
|
-
};
|
|
20250
|
-
if (isLocalCall) {
|
|
20251
|
-
let newEntities = entities;
|
|
20252
|
-
newEntities = filterEntitiesLocal(
|
|
20253
|
-
filters,
|
|
20254
|
-
searchTerm,
|
|
20255
|
-
newEntities,
|
|
20256
|
-
schema,
|
|
20257
|
-
ownProps
|
|
20258
|
-
);
|
|
20259
|
-
newEntities = orderEntitiesLocal(order2, newEntities, schema, ownProps);
|
|
20260
|
-
const entitiesAcrossPages = newEntities;
|
|
20261
|
-
const newEntityCount = newEntities.length;
|
|
20262
|
-
if (!isInfinite && !ownProps.controlled_pageSize) {
|
|
20263
|
-
const offset3 = (page - 1) * pageSize;
|
|
20264
|
-
newEntities = take(drop(newEntities, offset3), pageSize);
|
|
20265
|
-
}
|
|
20266
|
-
toReturn.entities = newEntities;
|
|
20267
|
-
toReturn.entitiesAcrossPages = entitiesAcrossPages;
|
|
20268
|
-
toReturn.entityCount = newEntityCount;
|
|
20269
|
-
return toReturn;
|
|
20270
|
-
} else {
|
|
20271
|
-
const graphqlQueryParams = {
|
|
20272
|
-
// need to make sure sort exists because of https://github.com/apollographql/apollo-client/issues/3077
|
|
20273
|
-
sort: []
|
|
20274
|
-
};
|
|
20275
20109
|
if (isInfinite) {
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
}
|
|
20279
|
-
|
|
20280
|
-
|
|
20281
|
-
|
|
20282
|
-
|
|
20283
|
-
|
|
20284
|
-
|
|
20285
|
-
const
|
|
20286
|
-
if (
|
|
20287
|
-
|
|
20110
|
+
page = void 0;
|
|
20111
|
+
pageSize = void 0;
|
|
20112
|
+
}
|
|
20113
|
+
if (pageSize !== void 0 && !doNotCoercePageSize) {
|
|
20114
|
+
const closest = clone$1(window.tgPageSizes || defaultPageSizes).sort(
|
|
20115
|
+
(a2, b2) => Math.abs(pageSize - a2) - Math.abs(pageSize - b2)
|
|
20116
|
+
)[0];
|
|
20117
|
+
pageSize = closest;
|
|
20118
|
+
}
|
|
20119
|
+
const cleanedOrder = [];
|
|
20120
|
+
if (order2 && order2.length) {
|
|
20121
|
+
order2.forEach((orderVal) => {
|
|
20288
20122
|
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
20289
20123
|
const schemaForField = ccFields[ccDisplayName];
|
|
20290
20124
|
if (schemaForField) {
|
|
20291
20125
|
const { path: path2 } = schemaForField;
|
|
20292
20126
|
const reversed = ccDisplayName !== orderVal;
|
|
20293
20127
|
const prefix2 = reversed ? "-" : "";
|
|
20294
|
-
|
|
20295
|
-
...graphqlQueryParams.sort || [],
|
|
20296
|
-
prefix2 + path2
|
|
20297
|
-
];
|
|
20128
|
+
cleanedOrder.push(prefix2 + path2);
|
|
20298
20129
|
} else {
|
|
20299
20130
|
!noOrderError && console.error(
|
|
20300
20131
|
"No schema for field found!",
|
|
@@ -20304,167 +20135,104 @@ function getQueryParams({
|
|
|
20304
20135
|
}
|
|
20305
20136
|
});
|
|
20306
20137
|
}
|
|
20307
|
-
let
|
|
20308
|
-
|
|
20309
|
-
|
|
20310
|
-
|
|
20311
|
-
|
|
20312
|
-
|
|
20313
|
-
|
|
20314
|
-
|
|
20315
|
-
const {
|
|
20316
|
-
|
|
20317
|
-
|
|
20318
|
-
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20329
|
-
|
|
20330
|
-
|
|
20331
|
-
|
|
20332
|
-
|
|
20333
|
-
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
|
|
20337
|
-
|
|
20338
|
-
|
|
20339
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
}
|
|
20344
|
-
const columnCustomFilters = getColumnCustomFilters(
|
|
20345
|
-
andFilters,
|
|
20346
|
-
qb,
|
|
20347
|
-
ccFields
|
|
20138
|
+
let toRet = {
|
|
20139
|
+
//these are values that might be generally useful for the wrapped component
|
|
20140
|
+
page,
|
|
20141
|
+
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20142
|
+
order: cleanedOrder,
|
|
20143
|
+
filters,
|
|
20144
|
+
searchTerm
|
|
20145
|
+
};
|
|
20146
|
+
const { where, order_by, limit, offset: offset3 } = tableQueryParamsToHasuraClauses({
|
|
20147
|
+
page,
|
|
20148
|
+
pageSize,
|
|
20149
|
+
searchTerm,
|
|
20150
|
+
filters,
|
|
20151
|
+
order: cleanedOrder,
|
|
20152
|
+
schema
|
|
20153
|
+
});
|
|
20154
|
+
initializeHasuraWhereAndFilter(additionalFilter, where, currentParams);
|
|
20155
|
+
if (isLocalCall) {
|
|
20156
|
+
const r2 = filterLocalEntitiesToHasura(
|
|
20157
|
+
prepEntitiesForLocalFilter({ entities, ccFields }),
|
|
20158
|
+
{
|
|
20159
|
+
where,
|
|
20160
|
+
order_by: (Array.isArray(order_by) ? order_by : [order_by]).map(
|
|
20161
|
+
(obj) => {
|
|
20162
|
+
const path2 = Object.keys(obj)[0];
|
|
20163
|
+
return __spreadValues({
|
|
20164
|
+
path: path2,
|
|
20165
|
+
direction: obj[path2],
|
|
20166
|
+
ownProps
|
|
20167
|
+
}, ccFields[path2]);
|
|
20168
|
+
}
|
|
20169
|
+
),
|
|
20170
|
+
limit,
|
|
20171
|
+
offset: offset3,
|
|
20172
|
+
isInfinite
|
|
20173
|
+
}
|
|
20348
20174
|
);
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
errorParsingUrlString = e;
|
|
20355
|
-
console.error(
|
|
20356
|
-
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20357
|
-
e
|
|
20358
|
-
);
|
|
20359
|
-
} else {
|
|
20360
|
-
console.error("Error building query params from filter:");
|
|
20361
|
-
throw e;
|
|
20175
|
+
toRet = __spreadValues(__spreadValues({}, toRet), r2);
|
|
20176
|
+
return toRet;
|
|
20177
|
+
} else {
|
|
20178
|
+
if (!order_by.length) {
|
|
20179
|
+
order_by.push({ updatedAt: "desc" });
|
|
20362
20180
|
}
|
|
20181
|
+
order_by.push(
|
|
20182
|
+
isCodeModel ? { code: "asc" } : { [window.__sortId || "id"]: "asc" }
|
|
20183
|
+
);
|
|
20184
|
+
return __spreadProps(__spreadValues({}, toRet), {
|
|
20185
|
+
variables: {
|
|
20186
|
+
where,
|
|
20187
|
+
order_by,
|
|
20188
|
+
limit,
|
|
20189
|
+
offset: offset3
|
|
20190
|
+
}
|
|
20191
|
+
});
|
|
20363
20192
|
}
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
20193
|
+
} catch (e) {
|
|
20194
|
+
if (urlConnected) {
|
|
20195
|
+
errorParsingUrlString = e;
|
|
20196
|
+
console.error(
|
|
20197
|
+
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20198
|
+
e
|
|
20199
|
+
);
|
|
20200
|
+
return {
|
|
20201
|
+
errorParsingUrlString,
|
|
20202
|
+
variables: {
|
|
20203
|
+
where: {},
|
|
20204
|
+
order_by: [],
|
|
20205
|
+
limit: 0,
|
|
20206
|
+
offset: 0
|
|
20207
|
+
}
|
|
20208
|
+
};
|
|
20209
|
+
} else {
|
|
20210
|
+
console.error("Error building query params from filter:");
|
|
20211
|
+
throw e;
|
|
20369
20212
|
}
|
|
20370
|
-
graphqlQueryParams.sort.push(
|
|
20371
|
-
isCodeModel ? "code" : window.__sortId || "id"
|
|
20372
|
-
);
|
|
20373
|
-
return __spreadProps(__spreadValues({}, toReturn), {
|
|
20374
|
-
//the query params will get passed directly to as variables to the graphql query
|
|
20375
|
-
variables: graphqlQueryParams,
|
|
20376
|
-
errorParsingUrlString
|
|
20377
|
-
});
|
|
20378
20213
|
}
|
|
20379
20214
|
}
|
|
20380
20215
|
__name(getQueryParams, "getQueryParams");
|
|
20381
|
-
function
|
|
20382
|
-
const
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
);
|
|
20392
|
-
}
|
|
20393
|
-
}
|
|
20394
|
-
const _subFilters = getSubFilter(qb, selectedFilter, filterValueToUse);
|
|
20395
|
-
let filterField;
|
|
20396
|
-
if (fieldSchema) {
|
|
20397
|
-
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20398
|
-
if (reference2) {
|
|
20399
|
-
filterField = reference2.sourceField;
|
|
20400
|
-
} else {
|
|
20401
|
-
filterField = path2;
|
|
20402
|
-
}
|
|
20403
|
-
} else if (filterOn === "id") {
|
|
20404
|
-
filterField = filterOn;
|
|
20405
|
-
} else {
|
|
20406
|
-
console.error("Trying to filter on unknown field");
|
|
20407
|
-
}
|
|
20408
|
-
const subFiltersToUse = [];
|
|
20409
|
-
const subFilters = Array.isArray(_subFilters) ? _subFilters : [_subFilters];
|
|
20410
|
-
subFilters.forEach((subFilter) => {
|
|
20411
|
-
let subFilterToUse = subFilter;
|
|
20412
|
-
if (fieldSchema) {
|
|
20413
|
-
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20414
|
-
if (reference2) {
|
|
20415
|
-
subFilterToUse = buildRef(
|
|
20416
|
-
qb,
|
|
20417
|
-
reference2,
|
|
20418
|
-
last$1(path2.split(".")),
|
|
20419
|
-
subFilter
|
|
20420
|
-
);
|
|
20216
|
+
function prepEntitiesForLocalFilter({ entities, ccFields }) {
|
|
20217
|
+
const r2 = entities.map((entity) => {
|
|
20218
|
+
const toSpread = {};
|
|
20219
|
+
let hasChanged = false;
|
|
20220
|
+
forEach(ccFields, ({ getValueToFilterOn, path: path2 }) => {
|
|
20221
|
+
if (getValueToFilterOn) {
|
|
20222
|
+
hasChanged = true;
|
|
20223
|
+
toSpread["___original___" + path2] = entity[path2];
|
|
20224
|
+
const value = getValueToFilterOn(entity);
|
|
20225
|
+
toSpread[path2] = value;
|
|
20421
20226
|
}
|
|
20227
|
+
});
|
|
20228
|
+
if (hasChanged) {
|
|
20229
|
+
return __spreadValues(__spreadValues({}, entity), toSpread);
|
|
20422
20230
|
}
|
|
20423
|
-
|
|
20231
|
+
return entity;
|
|
20424
20232
|
});
|
|
20425
|
-
return
|
|
20426
|
-
path: filterField,
|
|
20427
|
-
subFilters: subFiltersToUse
|
|
20428
|
-
};
|
|
20233
|
+
return r2;
|
|
20429
20234
|
}
|
|
20430
|
-
__name(
|
|
20431
|
-
function getQueries(filters, qb, ccFields) {
|
|
20432
|
-
const subQueries = filters.reduce((acc, filter2) => {
|
|
20433
|
-
if (!filter2) {
|
|
20434
|
-
console.warn("We should always have a filter object!");
|
|
20435
|
-
return acc;
|
|
20436
|
-
}
|
|
20437
|
-
const { filterOn } = filter2;
|
|
20438
|
-
const fieldSchema = ccFields[filterOn];
|
|
20439
|
-
if (!filter2.isSearchTermFilter && (fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter))
|
|
20440
|
-
return acc;
|
|
20441
|
-
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20442
|
-
acc[path2] = subFilters;
|
|
20443
|
-
return acc;
|
|
20444
|
-
}, {});
|
|
20445
|
-
return subQueries;
|
|
20446
|
-
}
|
|
20447
|
-
__name(getQueries, "getQueries");
|
|
20448
|
-
function getColumnCustomFilters(filters, qb, ccFields) {
|
|
20449
|
-
const subQueries = filters.reduce((acc, filter2) => {
|
|
20450
|
-
if (!filter2) {
|
|
20451
|
-
console.warn("We should always have a filter object!");
|
|
20452
|
-
return acc;
|
|
20453
|
-
}
|
|
20454
|
-
const { filterOn } = filter2;
|
|
20455
|
-
const fieldSchema = ccFields[filterOn];
|
|
20456
|
-
if (filter2.isSearchTermFilter || !(fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter)) {
|
|
20457
|
-
return acc;
|
|
20458
|
-
}
|
|
20459
|
-
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20460
|
-
subFilters.forEach((subFilter) => {
|
|
20461
|
-
acc.push(fieldSchema.additionalColumnFilter(qb, subFilter, path2));
|
|
20462
|
-
});
|
|
20463
|
-
return acc;
|
|
20464
|
-
}, []);
|
|
20465
|
-
return subQueries;
|
|
20466
|
-
}
|
|
20467
|
-
__name(getColumnCustomFilters, "getColumnCustomFilters");
|
|
20235
|
+
__name(prepEntitiesForLocalFilter, "prepEntitiesForLocalFilter");
|
|
20468
20236
|
function PagingInput({ disabled, onBlur, defaultPage }) {
|
|
20469
20237
|
const [page, setPage] = useState(defaultPage);
|
|
20470
20238
|
const defaultValue2 = useRef(defaultPage);
|
|
@@ -32268,7 +32036,15 @@ function requireColor() {
|
|
|
32268
32036
|
__name(requireColor, "requireColor");
|
|
32269
32037
|
var colorExports = requireColor();
|
|
32270
32038
|
const Color = /* @__PURE__ */ getDefaultExportFromCjs(colorExports);
|
|
32271
|
-
|
|
32039
|
+
function determineBlackOrWhiteTextColor(c2) {
|
|
32040
|
+
try {
|
|
32041
|
+
return Color(c2).isLight() ? "#000000" : "#FFFFFF";
|
|
32042
|
+
} catch (e) {
|
|
32043
|
+
console.error("Error in color parsing:", e);
|
|
32044
|
+
return "#000000";
|
|
32045
|
+
}
|
|
32046
|
+
}
|
|
32047
|
+
__name(determineBlackOrWhiteTextColor, "determineBlackOrWhiteTextColor");
|
|
32272
32048
|
function getTagsAndTagOptions(allTags) {
|
|
32273
32049
|
return flatMap(allTags, (tag) => {
|
|
32274
32050
|
if (tag.tagOptions && tag.tagOptions.length) {
|
|
@@ -32656,6 +32432,18 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
32656
32432
|
onKeyDown: /* @__PURE__ */ __name((e) => {
|
|
32657
32433
|
const { which } = e;
|
|
32658
32434
|
e.persist();
|
|
32435
|
+
if ((e.metaKey || e.ctrlKey) && which === Keys.ENTER) {
|
|
32436
|
+
e.preventDefault();
|
|
32437
|
+
const items = options || [];
|
|
32438
|
+
let activeItem = this.state.activeItem;
|
|
32439
|
+
if (!activeItem) {
|
|
32440
|
+
activeItem = items.find((opt) => !itemDisabled(opt));
|
|
32441
|
+
}
|
|
32442
|
+
if (activeItem) {
|
|
32443
|
+
this.handleItemSelect(activeItem, e);
|
|
32444
|
+
}
|
|
32445
|
+
return;
|
|
32446
|
+
}
|
|
32659
32447
|
if (which === Keys.ENTER) {
|
|
32660
32448
|
e.preventDefault();
|
|
32661
32449
|
}
|
|
@@ -32978,6 +32766,293 @@ const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
|
32978
32766
|
toReturn
|
|
32979
32767
|
);
|
|
32980
32768
|
}, "InfoHelper");
|
|
32769
|
+
var dayjs_min$1 = { exports: {} };
|
|
32770
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
32771
|
+
var hasRequiredDayjs_min;
|
|
32772
|
+
function requireDayjs_min() {
|
|
32773
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
32774
|
+
hasRequiredDayjs_min = 1;
|
|
32775
|
+
(function(module2, exports2) {
|
|
32776
|
+
!function(t2, e) {
|
|
32777
|
+
module2.exports = e();
|
|
32778
|
+
}(dayjs_min, function() {
|
|
32779
|
+
var t2 = 1e3, e = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: /* @__PURE__ */ __name(function(t3) {
|
|
32780
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
32781
|
+
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
32782
|
+
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
32783
|
+
var r3 = String(t3);
|
|
32784
|
+
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
32785
|
+
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
32786
|
+
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
32787
|
+
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
32788
|
+
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
32789
|
+
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
32790
|
+
var r3 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i3 = e2.clone().add(r3, c2), s3 = n3 - i3 < 0, u3 = e2.clone().add(r3 + (s3 ? -1 : 1), c2);
|
|
32791
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
32792
|
+
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
32793
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
32794
|
+
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
32795
|
+
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i2, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
|
32796
|
+
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
32797
|
+
return void 0 === t3;
|
|
32798
|
+
}, "u") }, g2 = "en", D2 = {};
|
|
32799
|
+
D2[g2] = M2;
|
|
32800
|
+
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
32801
|
+
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
32802
|
+
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
32803
|
+
var i3;
|
|
32804
|
+
if (!e2) return g2;
|
|
32805
|
+
if ("string" == typeof e2) {
|
|
32806
|
+
var s3 = e2.toLowerCase();
|
|
32807
|
+
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
32808
|
+
var u3 = e2.split("-");
|
|
32809
|
+
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
32810
|
+
} else {
|
|
32811
|
+
var a3 = e2.name;
|
|
32812
|
+
D2[a3] = e2, i3 = a3;
|
|
32813
|
+
}
|
|
32814
|
+
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
32815
|
+
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
32816
|
+
if (S2(t3)) return t3.clone();
|
|
32817
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
32818
|
+
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
32819
|
+
}, "O"), b2 = v2;
|
|
32820
|
+
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
32821
|
+
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
32822
|
+
};
|
|
32823
|
+
var _2 = function() {
|
|
32824
|
+
function M3(t3) {
|
|
32825
|
+
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
32826
|
+
}
|
|
32827
|
+
__name(M3, "M");
|
|
32828
|
+
var m3 = M3.prototype;
|
|
32829
|
+
return m3.parse = function(t3) {
|
|
32830
|
+
this.$d = function(t4) {
|
|
32831
|
+
var e2 = t4.date, n3 = t4.utc;
|
|
32832
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
32833
|
+
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
32834
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
32835
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
32836
|
+
var r3 = e2.match($);
|
|
32837
|
+
if (r3) {
|
|
32838
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
32839
|
+
return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
32840
|
+
}
|
|
32841
|
+
}
|
|
32842
|
+
return new Date(e2);
|
|
32843
|
+
}(t3), this.init();
|
|
32844
|
+
}, m3.init = function() {
|
|
32845
|
+
var t3 = this.$d;
|
|
32846
|
+
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
|
32847
|
+
}, m3.$utils = function() {
|
|
32848
|
+
return b2;
|
|
32849
|
+
}, m3.isValid = function() {
|
|
32850
|
+
return !(this.$d.toString() === l2);
|
|
32851
|
+
}, m3.isSame = function(t3, e2) {
|
|
32852
|
+
var n3 = O2(t3);
|
|
32853
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
32854
|
+
}, m3.isAfter = function(t3, e2) {
|
|
32855
|
+
return O2(t3) < this.startOf(e2);
|
|
32856
|
+
}, m3.isBefore = function(t3, e2) {
|
|
32857
|
+
return this.endOf(e2) < O2(t3);
|
|
32858
|
+
}, m3.$g = function(t3, e2, n3) {
|
|
32859
|
+
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
32860
|
+
}, m3.unix = function() {
|
|
32861
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
32862
|
+
}, m3.valueOf = function() {
|
|
32863
|
+
return this.$d.getTime();
|
|
32864
|
+
}, m3.startOf = function(t3, e2) {
|
|
32865
|
+
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32866
|
+
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
32867
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
32868
|
+
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32869
|
+
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
32870
|
+
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
32871
|
+
switch (f3) {
|
|
32872
|
+
case h2:
|
|
32873
|
+
return r3 ? l3(1, 0) : l3(31, 11);
|
|
32874
|
+
case c2:
|
|
32875
|
+
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
32876
|
+
case o2:
|
|
32877
|
+
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
32878
|
+
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
32879
|
+
case a2:
|
|
32880
|
+
case d2:
|
|
32881
|
+
return $2(v3 + "Hours", 0);
|
|
32882
|
+
case u2:
|
|
32883
|
+
return $2(v3 + "Minutes", 1);
|
|
32884
|
+
case s2:
|
|
32885
|
+
return $2(v3 + "Seconds", 2);
|
|
32886
|
+
case i2:
|
|
32887
|
+
return $2(v3 + "Milliseconds", 3);
|
|
32888
|
+
default:
|
|
32889
|
+
return this.clone();
|
|
32890
|
+
}
|
|
32891
|
+
}, m3.endOf = function(t3) {
|
|
32892
|
+
return this.startOf(t3, false);
|
|
32893
|
+
}, m3.$set = function(t3, e2) {
|
|
32894
|
+
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i2] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $2 = o3 === a2 ? this.$D + (e2 - this.$W) : e2;
|
|
32895
|
+
if (o3 === c2 || o3 === h2) {
|
|
32896
|
+
var y3 = this.clone().set(d2, 1);
|
|
32897
|
+
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
32898
|
+
} else l3 && this.$d[l3]($2);
|
|
32899
|
+
return this.init(), this;
|
|
32900
|
+
}, m3.set = function(t3, e2) {
|
|
32901
|
+
return this.clone().$set(t3, e2);
|
|
32902
|
+
}, m3.get = function(t3) {
|
|
32903
|
+
return this[b2.p(t3)]();
|
|
32904
|
+
}, m3.add = function(r3, f3) {
|
|
32905
|
+
var d3, l3 = this;
|
|
32906
|
+
r3 = Number(r3);
|
|
32907
|
+
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
32908
|
+
var e2 = O2(l3);
|
|
32909
|
+
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
32910
|
+
}, "y");
|
|
32911
|
+
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
32912
|
+
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
32913
|
+
if ($2 === a2) return y3(1);
|
|
32914
|
+
if ($2 === o2) return y3(7);
|
|
32915
|
+
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
32916
|
+
return b2.w(m4, this);
|
|
32917
|
+
}, m3.subtract = function(t3, e2) {
|
|
32918
|
+
return this.add(-1 * t3, e2);
|
|
32919
|
+
}, m3.format = function(t3) {
|
|
32920
|
+
var e2 = this, n3 = this.$locale();
|
|
32921
|
+
if (!this.isValid()) return n3.invalidDate || l2;
|
|
32922
|
+
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = /* @__PURE__ */ __name(function(t4, n4, i4, s4) {
|
|
32923
|
+
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
32924
|
+
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
32925
|
+
return b2.s(s3 % 12 || 12, t4, "0");
|
|
32926
|
+
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
32927
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
32928
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
32929
|
+
};
|
|
32930
|
+
return r3.replace(y2, function(t4, r4) {
|
|
32931
|
+
return r4 || function(t5) {
|
|
32932
|
+
switch (t5) {
|
|
32933
|
+
case "YY":
|
|
32934
|
+
return String(e2.$y).slice(-2);
|
|
32935
|
+
case "YYYY":
|
|
32936
|
+
return b2.s(e2.$y, 4, "0");
|
|
32937
|
+
case "M":
|
|
32938
|
+
return a3 + 1;
|
|
32939
|
+
case "MM":
|
|
32940
|
+
return b2.s(a3 + 1, 2, "0");
|
|
32941
|
+
case "MMM":
|
|
32942
|
+
return h3(n3.monthsShort, a3, c3, 3);
|
|
32943
|
+
case "MMMM":
|
|
32944
|
+
return h3(c3, a3);
|
|
32945
|
+
case "D":
|
|
32946
|
+
return e2.$D;
|
|
32947
|
+
case "DD":
|
|
32948
|
+
return b2.s(e2.$D, 2, "0");
|
|
32949
|
+
case "d":
|
|
32950
|
+
return String(e2.$W);
|
|
32951
|
+
case "dd":
|
|
32952
|
+
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
32953
|
+
case "ddd":
|
|
32954
|
+
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
32955
|
+
case "dddd":
|
|
32956
|
+
return o3[e2.$W];
|
|
32957
|
+
case "H":
|
|
32958
|
+
return String(s3);
|
|
32959
|
+
case "HH":
|
|
32960
|
+
return b2.s(s3, 2, "0");
|
|
32961
|
+
case "h":
|
|
32962
|
+
return d3(1);
|
|
32963
|
+
case "hh":
|
|
32964
|
+
return d3(2);
|
|
32965
|
+
case "a":
|
|
32966
|
+
return $2(s3, u3, true);
|
|
32967
|
+
case "A":
|
|
32968
|
+
return $2(s3, u3, false);
|
|
32969
|
+
case "m":
|
|
32970
|
+
return String(u3);
|
|
32971
|
+
case "mm":
|
|
32972
|
+
return b2.s(u3, 2, "0");
|
|
32973
|
+
case "s":
|
|
32974
|
+
return String(e2.$s);
|
|
32975
|
+
case "ss":
|
|
32976
|
+
return b2.s(e2.$s, 2, "0");
|
|
32977
|
+
case "SSS":
|
|
32978
|
+
return b2.s(e2.$ms, 3, "0");
|
|
32979
|
+
case "Z":
|
|
32980
|
+
return i3;
|
|
32981
|
+
}
|
|
32982
|
+
return null;
|
|
32983
|
+
}(t4) || i3.replace(":", "");
|
|
32984
|
+
});
|
|
32985
|
+
}, m3.utcOffset = function() {
|
|
32986
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
32987
|
+
}, m3.diff = function(r3, d3, l3) {
|
|
32988
|
+
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
32989
|
+
return b2.m(y3, m4);
|
|
32990
|
+
}, "D");
|
|
32991
|
+
switch (M4) {
|
|
32992
|
+
case h2:
|
|
32993
|
+
$2 = D3() / 12;
|
|
32994
|
+
break;
|
|
32995
|
+
case c2:
|
|
32996
|
+
$2 = D3();
|
|
32997
|
+
break;
|
|
32998
|
+
case f2:
|
|
32999
|
+
$2 = D3() / 3;
|
|
33000
|
+
break;
|
|
33001
|
+
case o2:
|
|
33002
|
+
$2 = (g3 - v3) / 6048e5;
|
|
33003
|
+
break;
|
|
33004
|
+
case a2:
|
|
33005
|
+
$2 = (g3 - v3) / 864e5;
|
|
33006
|
+
break;
|
|
33007
|
+
case u2:
|
|
33008
|
+
$2 = g3 / n2;
|
|
33009
|
+
break;
|
|
33010
|
+
case s2:
|
|
33011
|
+
$2 = g3 / e;
|
|
33012
|
+
break;
|
|
33013
|
+
case i2:
|
|
33014
|
+
$2 = g3 / t2;
|
|
33015
|
+
break;
|
|
33016
|
+
default:
|
|
33017
|
+
$2 = g3;
|
|
33018
|
+
}
|
|
33019
|
+
return l3 ? $2 : b2.a($2);
|
|
33020
|
+
}, m3.daysInMonth = function() {
|
|
33021
|
+
return this.endOf(c2).$D;
|
|
33022
|
+
}, m3.$locale = function() {
|
|
33023
|
+
return D2[this.$L];
|
|
33024
|
+
}, m3.locale = function(t3, e2) {
|
|
33025
|
+
if (!t3) return this.$L;
|
|
33026
|
+
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
33027
|
+
return r3 && (n3.$L = r3), n3;
|
|
33028
|
+
}, m3.clone = function() {
|
|
33029
|
+
return b2.w(this.$d, this);
|
|
33030
|
+
}, m3.toDate = function() {
|
|
33031
|
+
return new Date(this.valueOf());
|
|
33032
|
+
}, m3.toJSON = function() {
|
|
33033
|
+
return this.isValid() ? this.toISOString() : null;
|
|
33034
|
+
}, m3.toISOString = function() {
|
|
33035
|
+
return this.$d.toISOString();
|
|
33036
|
+
}, m3.toString = function() {
|
|
33037
|
+
return this.$d.toUTCString();
|
|
33038
|
+
}, M3;
|
|
33039
|
+
}(), k2 = _2.prototype;
|
|
33040
|
+
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
33041
|
+
k2[t3[1]] = function(e2) {
|
|
33042
|
+
return this.$g(e2, t3[0], t3[1]);
|
|
33043
|
+
};
|
|
33044
|
+
}), O2.extend = function(t3, e2) {
|
|
33045
|
+
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
33046
|
+
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
33047
|
+
return O2(1e3 * t3);
|
|
33048
|
+
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
33049
|
+
});
|
|
33050
|
+
})(dayjs_min$1);
|
|
33051
|
+
return dayjs_min$1.exports;
|
|
33052
|
+
}
|
|
33053
|
+
__name(requireDayjs_min, "requireDayjs_min");
|
|
33054
|
+
var dayjs_minExports = requireDayjs_min();
|
|
33055
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
32981
33056
|
var localizedFormat$2 = { exports: {} };
|
|
32982
33057
|
var localizedFormat$1 = localizedFormat$2.exports;
|
|
32983
33058
|
var hasRequiredLocalizedFormat;
|
|
@@ -33247,7 +33322,7 @@ function removeUnwantedProps(props) {
|
|
|
33247
33322
|
return cleanedProps;
|
|
33248
33323
|
}
|
|
33249
33324
|
__name(removeUnwantedProps, "removeUnwantedProps");
|
|
33250
|
-
const LabelWithTooltipInfo = /* @__PURE__ */ __name(({ label, tooltipInfo, labelStyle }) => tooltipInfo ? /* @__PURE__ */ React__default.createElement("
|
|
33325
|
+
const LabelWithTooltipInfo = /* @__PURE__ */ __name(({ label, tooltipInfo, labelStyle }) => tooltipInfo ? /* @__PURE__ */ React__default.createElement("span", { style: __spreadValues({ display: "flex", alignItems: "center" }, labelStyle) }, label, " ", /* @__PURE__ */ React__default.createElement(
|
|
33251
33326
|
InfoHelper,
|
|
33252
33327
|
{
|
|
33253
33328
|
style: { marginLeft: "5px", marginTop: "-6px" },
|
|
@@ -50768,42 +50843,42 @@ function getFilterMenuItems(dataType) {
|
|
|
50768
50843
|
let filterMenuItems2 = [];
|
|
50769
50844
|
if (dataType === "string") {
|
|
50770
50845
|
filterMenuItems2 = [
|
|
50771
|
-
"
|
|
50772
|
-
"
|
|
50773
|
-
"
|
|
50774
|
-
"
|
|
50775
|
-
"
|
|
50776
|
-
"
|
|
50777
|
-
"
|
|
50778
|
-
"
|
|
50779
|
-
"
|
|
50780
|
-
"
|
|
50846
|
+
"contains",
|
|
50847
|
+
"notContains",
|
|
50848
|
+
"startsWith",
|
|
50849
|
+
"endsWith",
|
|
50850
|
+
"isExactly",
|
|
50851
|
+
"regex",
|
|
50852
|
+
"inList",
|
|
50853
|
+
"notInList",
|
|
50854
|
+
"isEmpty",
|
|
50855
|
+
"notEmpty"
|
|
50781
50856
|
];
|
|
50782
50857
|
} else if (dataType === "lookup") {
|
|
50783
50858
|
filterMenuItems2 = [
|
|
50784
|
-
"
|
|
50785
|
-
"
|
|
50786
|
-
"
|
|
50787
|
-
"
|
|
50788
|
-
"
|
|
50789
|
-
"
|
|
50859
|
+
"contains",
|
|
50860
|
+
"notContains",
|
|
50861
|
+
"startsWith",
|
|
50862
|
+
"endsWith",
|
|
50863
|
+
"isExactly",
|
|
50864
|
+
"regex"
|
|
50790
50865
|
];
|
|
50791
50866
|
} else if (dataType === "boolean") {
|
|
50792
|
-
filterMenuItems2 = ["
|
|
50867
|
+
filterMenuItems2 = ["true", "false"];
|
|
50793
50868
|
} else if (dataType === "number" || dataType === "integer") {
|
|
50794
50869
|
filterMenuItems2 = [
|
|
50795
|
-
"
|
|
50796
|
-
"
|
|
50797
|
-
"
|
|
50798
|
-
"
|
|
50799
|
-
"
|
|
50800
|
-
"
|
|
50801
|
-
"
|
|
50870
|
+
"greaterThan",
|
|
50871
|
+
"lessThan",
|
|
50872
|
+
"inRange",
|
|
50873
|
+
"outsideRange",
|
|
50874
|
+
"equalTo",
|
|
50875
|
+
"inList",
|
|
50876
|
+
"notInList"
|
|
50802
50877
|
];
|
|
50803
50878
|
} else if (dataType === "timestamp") {
|
|
50804
|
-
filterMenuItems2 = ["
|
|
50879
|
+
filterMenuItems2 = ["isBetween", "notBetween", "isBefore", "isAfter"];
|
|
50805
50880
|
}
|
|
50806
|
-
return filterMenuItems2;
|
|
50881
|
+
return filterMenuItems2.map((item) => startCase(item));
|
|
50807
50882
|
}
|
|
50808
50883
|
__name(getFilterMenuItems, "getFilterMenuItems");
|
|
50809
50884
|
const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
@@ -51304,7 +51379,7 @@ const RenderColumnHeader = /* @__PURE__ */ __name(({
|
|
|
51304
51379
|
if (order2 && order2.length) {
|
|
51305
51380
|
order2.forEach((order22) => {
|
|
51306
51381
|
const orderField = order22.replace("-", "");
|
|
51307
|
-
if (orderField ===
|
|
51382
|
+
if (orderField === path2) {
|
|
51308
51383
|
if (orderField === order22) {
|
|
51309
51384
|
ordering = "asc";
|
|
51310
51385
|
} else {
|
|
@@ -56240,6 +56315,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56240
56315
|
);
|
|
56241
56316
|
const tableRef = useRef();
|
|
56242
56317
|
const alreadySelected = useRef(false);
|
|
56318
|
+
const [noVirtual, setNoVirtual] = useState(false);
|
|
56243
56319
|
const [onlyShowRowsWErrors, setOnlyShowRowsWErrors] = useState(false);
|
|
56244
56320
|
const [entitiesUndoRedoStack, setEntitiesUndoRedoStack] = useState({
|
|
56245
56321
|
currentVersion: 0
|
|
@@ -56391,8 +56467,6 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56391
56467
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
56392
56468
|
const queryParams = useMemo(() => {
|
|
56393
56469
|
if (!isTableParamsConnected) {
|
|
56394
|
-
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
56395
|
-
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
56396
56470
|
return getQueryParams({
|
|
56397
56471
|
doNotCoercePageSize,
|
|
56398
56472
|
currentParams,
|
|
@@ -56403,8 +56477,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56403
56477
|
schema: convertedSchema,
|
|
56404
56478
|
isInfinite,
|
|
56405
56479
|
isLocalCall,
|
|
56406
|
-
additionalFilter:
|
|
56407
|
-
additionalOrFilter: additionalOrFilterToUse,
|
|
56480
|
+
additionalFilter: props.additionalFilter,
|
|
56408
56481
|
noOrderError: props.noOrderError,
|
|
56409
56482
|
isCodeModel: props.isCodeModel,
|
|
56410
56483
|
ownProps: props
|
|
@@ -56627,7 +56700,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56627
56700
|
}) : !val;
|
|
56628
56701
|
});
|
|
56629
56702
|
}
|
|
56630
|
-
if (noValsForField) {
|
|
56703
|
+
if (noValsForField && entities.length) {
|
|
56631
56704
|
return __spreadProps(__spreadValues({}, field), {
|
|
56632
56705
|
isHidden: true,
|
|
56633
56706
|
isForcedHidden: true
|
|
@@ -57084,76 +57157,94 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57084
57157
|
updateEntitiesHelper,
|
|
57085
57158
|
updateValidation
|
|
57086
57159
|
]);
|
|
57087
|
-
const
|
|
57088
|
-
(
|
|
57089
|
-
|
|
57090
|
-
|
|
57091
|
-
|
|
57092
|
-
|
|
57093
|
-
|
|
57094
|
-
|
|
57095
|
-
|
|
57096
|
-
|
|
57097
|
-
|
|
57098
|
-
|
|
57099
|
-
|
|
57100
|
-
|
|
57101
|
-
|
|
57102
|
-
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
|
|
57106
|
-
|
|
57107
|
-
|
|
57108
|
-
|
|
57109
|
-
|
|
57110
|
-
|
|
57111
|
-
|
|
57112
|
-
|
|
57113
|
-
|
|
57114
|
-
|
|
57115
|
-
|
|
57116
|
-
|
|
57117
|
-
|
|
57118
|
-
|
|
57119
|
-
|
|
57120
|
-
|
|
57121
|
-
if (
|
|
57122
|
-
|
|
57123
|
-
} else {
|
|
57124
|
-
const jsonRow = [];
|
|
57125
|
-
let [rowCopyText, json] = getRowCopyText(allRows[i2 + 1]);
|
|
57126
|
-
rowCopyText = rowCopyText.split(" ");
|
|
57127
|
-
times(row.length, (i22) => {
|
|
57128
|
-
const cell = row[i22];
|
|
57129
|
-
if (cell) {
|
|
57130
|
-
fullCellText += rowCopyText[i22];
|
|
57131
|
-
jsonRow.push(json[i22]);
|
|
57132
|
-
}
|
|
57133
|
-
if (i22 !== row.length - 1 && i22 >= firstCellIndex)
|
|
57134
|
-
fullCellText += " ";
|
|
57135
|
-
});
|
|
57136
|
-
fullJson.push(jsonRow);
|
|
57160
|
+
const waitUntilAllRowsAreRendered = useCallback(() => {
|
|
57161
|
+
return new Promise((resolve) => {
|
|
57162
|
+
const interval = setInterval(() => {
|
|
57163
|
+
var _a2, _b;
|
|
57164
|
+
const allRowEls = (_b = (_a2 = tableRef.current) == null ? void 0 : _a2.tableRef) == null ? void 0 : _b.querySelectorAll(".rt-tr-group");
|
|
57165
|
+
if ((allRowEls == null ? void 0 : allRowEls.length) === entities.length) {
|
|
57166
|
+
clearInterval(interval);
|
|
57167
|
+
resolve();
|
|
57168
|
+
}
|
|
57169
|
+
}, 50);
|
|
57170
|
+
});
|
|
57171
|
+
}, []);
|
|
57172
|
+
const handleCopySelectedCells = useCallback(() => __async(void 0, null, function* () {
|
|
57173
|
+
if (isEmpty$1(selectedCells)) return;
|
|
57174
|
+
if (entities.length > VIRTUALIZE_CUTOFF_LENGTH) {
|
|
57175
|
+
setNoVirtual(true);
|
|
57176
|
+
yield waitUntilAllRowsAreRendered();
|
|
57177
|
+
}
|
|
57178
|
+
const pathToIndex = getFieldPathToIndex(schema);
|
|
57179
|
+
const entityIdToEntity = getEntityIdToEntity(entities);
|
|
57180
|
+
const selectionGrid = [];
|
|
57181
|
+
let firstRowIndex;
|
|
57182
|
+
let firstCellIndex;
|
|
57183
|
+
Object.keys(selectedCells).forEach((key) => {
|
|
57184
|
+
const [rowId, path2] = key.split(":");
|
|
57185
|
+
const eInfo = entityIdToEntity[rowId];
|
|
57186
|
+
if (eInfo) {
|
|
57187
|
+
if (firstRowIndex === void 0 || eInfo.i < firstRowIndex) {
|
|
57188
|
+
firstRowIndex = eInfo.i;
|
|
57189
|
+
}
|
|
57190
|
+
if (!selectionGrid[eInfo.i]) {
|
|
57191
|
+
selectionGrid[eInfo.i] = [];
|
|
57192
|
+
}
|
|
57193
|
+
const cellIndex = pathToIndex[path2];
|
|
57194
|
+
if (firstCellIndex === void 0 || cellIndex < firstCellIndex) {
|
|
57195
|
+
firstCellIndex = cellIndex;
|
|
57137
57196
|
}
|
|
57138
|
-
|
|
57139
|
-
|
|
57140
|
-
|
|
57141
|
-
|
|
57142
|
-
|
|
57143
|
-
|
|
57197
|
+
selectionGrid[eInfo.i][cellIndex] = true;
|
|
57198
|
+
}
|
|
57199
|
+
});
|
|
57200
|
+
if (firstRowIndex === void 0) return;
|
|
57201
|
+
const allRows = getAllRows(tableRef);
|
|
57202
|
+
let fullCellText = "";
|
|
57203
|
+
const fullJson = [];
|
|
57204
|
+
times(selectionGrid.length, (i2) => {
|
|
57205
|
+
const row = selectionGrid[i2];
|
|
57206
|
+
if (fullCellText) {
|
|
57207
|
+
fullCellText += "\n";
|
|
57208
|
+
}
|
|
57209
|
+
if (!row) {
|
|
57210
|
+
return;
|
|
57211
|
+
} else {
|
|
57212
|
+
const jsonRow = [];
|
|
57213
|
+
let [rowCopyText, json] = getRowCopyText(allRows[i2 + 1]);
|
|
57214
|
+
rowCopyText = rowCopyText.split(" ");
|
|
57215
|
+
times(row.length, (i22) => {
|
|
57216
|
+
const cell = row[i22];
|
|
57217
|
+
if (cell) {
|
|
57218
|
+
fullCellText += rowCopyText[i22];
|
|
57219
|
+
jsonRow.push(json[i22]);
|
|
57220
|
+
}
|
|
57221
|
+
if (i22 !== row.length - 1 && i22 >= firstCellIndex) fullCellText += " ";
|
|
57222
|
+
});
|
|
57223
|
+
fullJson.push(jsonRow);
|
|
57224
|
+
}
|
|
57225
|
+
});
|
|
57226
|
+
if (!fullCellText) return window.toastr.warning("No text to copy");
|
|
57227
|
+
handleCopyHelper(fullCellText, fullJson, "Selected cells copied");
|
|
57228
|
+
setNoVirtual(false);
|
|
57229
|
+
}), [entities, selectedCells, schema, waitUntilAllRowsAreRendered]);
|
|
57144
57230
|
const handleCopySelectedRows = useCallback(
|
|
57145
|
-
(selectedRecords,
|
|
57146
|
-
|
|
57147
|
-
|
|
57231
|
+
(selectedRecords) => __async(void 0, null, function* () {
|
|
57232
|
+
if (entities.length > VIRTUALIZE_CUTOFF_LENGTH) {
|
|
57233
|
+
setNoVirtual(true);
|
|
57234
|
+
yield waitUntilAllRowsAreRendered();
|
|
57235
|
+
}
|
|
57236
|
+
const idToIndex = entities.reduce((acc, e, i2) => {
|
|
57237
|
+
acc[e.id || e.code] = i2;
|
|
57148
57238
|
return acc;
|
|
57149
57239
|
}, {});
|
|
57150
57240
|
const rowNumbersToCopy = selectedRecords.map((rec) => idToIndex[rec.id || rec.code] + 1).sort();
|
|
57151
57241
|
if (!rowNumbersToCopy.length) return;
|
|
57152
57242
|
rowNumbersToCopy.unshift(0);
|
|
57153
57243
|
try {
|
|
57154
|
-
const allRowEls = getAllRows(
|
|
57244
|
+
const allRowEls = getAllRows(tableRef);
|
|
57155
57245
|
if (!allRowEls) return;
|
|
57156
57246
|
const rowEls = rowNumbersToCopy.map((i2) => allRowEls[i2]);
|
|
57247
|
+
if (window.Cypress) window.Cypress.__copiedRowsLength = rowEls.length;
|
|
57157
57248
|
handleCopyRows(rowEls, {
|
|
57158
57249
|
onFinishMsg: "Selected rows copied"
|
|
57159
57250
|
});
|
|
@@ -57161,8 +57252,9 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57161
57252
|
console.error(`error:`, error);
|
|
57162
57253
|
window.toastr.error("Error copying rows.");
|
|
57163
57254
|
}
|
|
57164
|
-
|
|
57165
|
-
|
|
57255
|
+
setNoVirtual(false);
|
|
57256
|
+
}),
|
|
57257
|
+
[entities, waitUntilAllRowsAreRendered]
|
|
57166
57258
|
);
|
|
57167
57259
|
const handleCopyHotkey = useCallback(
|
|
57168
57260
|
(e) => {
|
|
@@ -57929,7 +58021,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57929
58021
|
{
|
|
57930
58022
|
key: "copyColumn",
|
|
57931
58023
|
onClick: /* @__PURE__ */ __name(() => {
|
|
57932
|
-
handleCopyColumn(
|
|
58024
|
+
handleCopyColumn(tableRef, cellWrapper);
|
|
57933
58025
|
}, "onClick"),
|
|
57934
58026
|
text: "Column"
|
|
57935
58027
|
}
|
|
@@ -57942,7 +58034,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57942
58034
|
{
|
|
57943
58035
|
key: "copyColumnSelected",
|
|
57944
58036
|
onClick: /* @__PURE__ */ __name(() => {
|
|
57945
|
-
handleCopyColumn(
|
|
58037
|
+
handleCopyColumn(tableRef, cellWrapper, selectedRecords);
|
|
57946
58038
|
}, "onClick"),
|
|
57947
58039
|
text: "Column (Selected)"
|
|
57948
58040
|
}
|
|
@@ -57985,7 +58077,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57985
58077
|
{
|
|
57986
58078
|
key: "copyFullTableRows",
|
|
57987
58079
|
onClick: /* @__PURE__ */ __name(() => {
|
|
57988
|
-
handleCopyTable(
|
|
58080
|
+
handleCopyTable(tableRef);
|
|
57989
58081
|
}, "onClick"),
|
|
57990
58082
|
text: "Table"
|
|
57991
58083
|
}
|
|
@@ -58522,6 +58614,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58522
58614
|
__spreadValues({
|
|
58523
58615
|
data: filteredEnts,
|
|
58524
58616
|
ref: tableRef,
|
|
58617
|
+
noVirtual,
|
|
58525
58618
|
className: classNames({
|
|
58526
58619
|
isCellEditable,
|
|
58527
58620
|
"tg-table-loading": isLoading,
|
|
@@ -58589,7 +58682,8 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58589
58682
|
resizePersist,
|
|
58590
58683
|
resized,
|
|
58591
58684
|
rowsToShow,
|
|
58592
|
-
style
|
|
58685
|
+
style,
|
|
58686
|
+
noVirtual
|
|
58593
58687
|
]
|
|
58594
58688
|
);
|
|
58595
58689
|
return /* @__PURE__ */ React__default.createElement("div", { tabIndex: "1", onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }, /* @__PURE__ */ React__default.createElement(
|
|
@@ -58792,7 +58886,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58792
58886
|
try {
|
|
58793
58887
|
const allEntities = yield safeQuery(fragment, {
|
|
58794
58888
|
variables: {
|
|
58795
|
-
|
|
58889
|
+
where: variables.where,
|
|
58796
58890
|
sort: variables.sort
|
|
58797
58891
|
},
|
|
58798
58892
|
canCancel: true
|
|
@@ -58872,8 +58966,8 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58872
58966
|
), /* @__PURE__ */ React__default.createElement(
|
|
58873
58967
|
Button,
|
|
58874
58968
|
{
|
|
58875
|
-
onClick: /* @__PURE__ */ __name((
|
|
58876
|
-
handleCopyTable(
|
|
58969
|
+
onClick: /* @__PURE__ */ __name(() => {
|
|
58970
|
+
handleCopyTable(tableRef, { isDownload: true });
|
|
58877
58971
|
}, "onClick"),
|
|
58878
58972
|
"data-tip": "Download Table as CSV",
|
|
58879
58973
|
minimal: true,
|
|
@@ -69172,6 +69266,7 @@ function parseCsvOrExcelFile(_0) {
|
|
|
69172
69266
|
}
|
|
69173
69267
|
__name(parseCsvOrExcelFile, "parseCsvOrExcelFile");
|
|
69174
69268
|
const filterFilesInZip = /* @__PURE__ */ __name((file, accepted) => __async(void 0, null, function* () {
|
|
69269
|
+
var _a, _b, _c, _d;
|
|
69175
69270
|
if (!file || Array.isArray(file) && !file.length) return [];
|
|
69176
69271
|
const zipExtracted = yield extractZipFiles(file);
|
|
69177
69272
|
const acceptedFiles = [];
|
|
@@ -69181,9 +69276,12 @@ const filterFilesInZip = /* @__PURE__ */ __name((file, accepted) => __async(void
|
|
|
69181
69276
|
}
|
|
69182
69277
|
}
|
|
69183
69278
|
if (acceptedFiles.length && acceptedFiles.length < zipExtracted.length)
|
|
69184
|
-
window.toastr.warning
|
|
69279
|
+
(_b = (_a = window == null ? void 0 : window.toastr) == null ? void 0 : _a.warning) == null ? void 0 : _b.call(
|
|
69280
|
+
_a,
|
|
69281
|
+
"Some files don't have the proper file extension."
|
|
69282
|
+
);
|
|
69185
69283
|
if (!acceptedFiles.length)
|
|
69186
|
-
window.toastr.warning("No files with the proper extension were found.");
|
|
69284
|
+
(_d = (_c = window == null ? void 0 : window.toastr) == null ? void 0 : _c.warning) == null ? void 0 : _d.call(_c, "No files with the proper extension were found.");
|
|
69187
69285
|
return acceptedFiles;
|
|
69188
69286
|
}), "filterFilesInZip");
|
|
69189
69287
|
function removeExt(filename) {
|
|
@@ -71164,8 +71262,12 @@ const Uploader = /* @__PURE__ */ __name(({
|
|
|
71164
71262
|
onClick: /* @__PURE__ */ __name((evt) => evt.preventDefault(), "onClick"),
|
|
71165
71263
|
multiple: fileLimit !== 1,
|
|
71166
71264
|
accept: simpleAccept ? simpleAccept.split(", ").map((acc) => acc.startsWith(".") ? acc : "." + acc).join(", ") : void 0,
|
|
71167
|
-
onDrop: /* @__PURE__ */ __name((_acceptedFiles, rejectedFiles) => __async(void 0, null, function* () {
|
|
71265
|
+
onDrop: /* @__PURE__ */ __name((_acceptedFiles, rejectedFiles, e) => __async(void 0, null, function* () {
|
|
71168
71266
|
var _a2, _b2;
|
|
71267
|
+
const parentDropzone = e.target.closest(".tg-dropzone");
|
|
71268
|
+
if (parentDropzone) {
|
|
71269
|
+
parentDropzone.blur();
|
|
71270
|
+
}
|
|
71169
71271
|
let acceptedFiles = [];
|
|
71170
71272
|
for (const file of _acceptedFiles) {
|
|
71171
71273
|
if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
|
|
@@ -71796,7 +71898,6 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71796
71898
|
var _a;
|
|
71797
71899
|
const {
|
|
71798
71900
|
additionalFilter,
|
|
71799
|
-
additionalOrFilter,
|
|
71800
71901
|
controlled_pageSize,
|
|
71801
71902
|
defaults: _defaults,
|
|
71802
71903
|
doNotCoercePageSize,
|
|
@@ -71904,8 +72005,6 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71904
72005
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
71905
72006
|
);
|
|
71906
72007
|
const queryParams = useMemo(() => {
|
|
71907
|
-
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
71908
|
-
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
71909
72008
|
return getQueryParams({
|
|
71910
72009
|
doNotCoercePageSize,
|
|
71911
72010
|
currentParams,
|
|
@@ -71916,8 +72015,7 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71916
72015
|
schema: convertedSchema,
|
|
71917
72016
|
isInfinite: isInfinite || isSimple && !withPaging,
|
|
71918
72017
|
isLocalCall,
|
|
71919
|
-
additionalFilter
|
|
71920
|
-
additionalOrFilter: additionalOrFilterToUse,
|
|
72018
|
+
additionalFilter,
|
|
71921
72019
|
noOrderError,
|
|
71922
72020
|
isCodeModel,
|
|
71923
72021
|
ownProps: passingProps
|
|
@@ -71925,7 +72023,6 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71925
72023
|
}, [
|
|
71926
72024
|
additionalFilter,
|
|
71927
72025
|
passingProps,
|
|
71928
|
-
additionalOrFilter,
|
|
71929
72026
|
doNotCoercePageSize,
|
|
71930
72027
|
currentParams,
|
|
71931
72028
|
entities,
|
|
@@ -78080,6 +78177,7 @@ export {
|
|
|
78080
78177
|
createDynamicMenu,
|
|
78081
78178
|
createMenu,
|
|
78082
78179
|
designIcon,
|
|
78180
|
+
determineBlackOrWhiteTextColor,
|
|
78083
78181
|
dnaIcon,
|
|
78084
78182
|
doesSearchValMatchText,
|
|
78085
78183
|
driveIcon,
|
|
@@ -78102,6 +78200,7 @@ export {
|
|
|
78102
78200
|
getTagsAndTagOptions,
|
|
78103
78201
|
getTextFromEl,
|
|
78104
78202
|
hotkeysById,
|
|
78203
|
+
initializeHasuraWhereAndFilter,
|
|
78105
78204
|
inventoryIcon,
|
|
78106
78205
|
isSafari,
|
|
78107
78206
|
keyboardIcon,
|