@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.cjs.js
CHANGED
|
@@ -5803,12 +5803,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
|
|
|
5803
5803
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
5804
5804
|
var root$4 = freeGlobal || freeSelf || Function("return this")();
|
|
5805
5805
|
var Symbol$1 = root$4.Symbol;
|
|
5806
|
-
var objectProto$
|
|
5807
|
-
var hasOwnProperty$
|
|
5808
|
-
var nativeObjectToString$2 = objectProto$
|
|
5806
|
+
var objectProto$i = Object.prototype;
|
|
5807
|
+
var hasOwnProperty$f = objectProto$i.hasOwnProperty;
|
|
5808
|
+
var nativeObjectToString$2 = objectProto$i.toString;
|
|
5809
5809
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
5810
5810
|
function getRawTag(value) {
|
|
5811
|
-
var isOwn = hasOwnProperty$
|
|
5811
|
+
var isOwn = hasOwnProperty$f.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
5812
5812
|
try {
|
|
5813
5813
|
value[symToStringTag$1] = void 0;
|
|
5814
5814
|
var unmasked = true;
|
|
@@ -5825,8 +5825,8 @@ function getRawTag(value) {
|
|
|
5825
5825
|
return result;
|
|
5826
5826
|
}
|
|
5827
5827
|
__name(getRawTag, "getRawTag");
|
|
5828
|
-
var objectProto$
|
|
5829
|
-
var nativeObjectToString$1 = objectProto$
|
|
5828
|
+
var objectProto$h = Object.prototype;
|
|
5829
|
+
var nativeObjectToString$1 = objectProto$h.toString;
|
|
5830
5830
|
function objectToString(value) {
|
|
5831
5831
|
return nativeObjectToString$1.call(value);
|
|
5832
5832
|
}
|
|
@@ -5973,11 +5973,11 @@ function toSource(func) {
|
|
|
5973
5973
|
__name(toSource, "toSource");
|
|
5974
5974
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
5975
5975
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
5976
|
-
var funcProto$1 = Function.prototype, objectProto$
|
|
5976
|
+
var funcProto$1 = Function.prototype, objectProto$g = Object.prototype;
|
|
5977
5977
|
var funcToString$1 = funcProto$1.toString;
|
|
5978
|
-
var hasOwnProperty$
|
|
5978
|
+
var hasOwnProperty$e = objectProto$g.hasOwnProperty;
|
|
5979
5979
|
var reIsNative = RegExp(
|
|
5980
|
-
"^" + funcToString$1.call(hasOwnProperty$
|
|
5980
|
+
"^" + funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5981
5981
|
);
|
|
5982
5982
|
function baseIsNative(value) {
|
|
5983
5983
|
if (!isObject$2(value) || isMasked(value)) {
|
|
@@ -6150,11 +6150,11 @@ function eq$1(value, other) {
|
|
|
6150
6150
|
return value === other || value !== value && other !== other;
|
|
6151
6151
|
}
|
|
6152
6152
|
__name(eq$1, "eq$1");
|
|
6153
|
-
var objectProto$
|
|
6154
|
-
var hasOwnProperty$
|
|
6153
|
+
var objectProto$f = Object.prototype;
|
|
6154
|
+
var hasOwnProperty$d = objectProto$f.hasOwnProperty;
|
|
6155
6155
|
function assignValue(object2, key, value) {
|
|
6156
6156
|
var objValue = object2[key];
|
|
6157
|
-
if (!(hasOwnProperty$
|
|
6157
|
+
if (!(hasOwnProperty$d.call(object2, key) && eq$1(objValue, value)) || value === void 0 && !(key in object2)) {
|
|
6158
6158
|
baseAssignValue(object2, key, value);
|
|
6159
6159
|
}
|
|
6160
6160
|
}
|
|
@@ -6178,11 +6178,11 @@ function copyObject(source, props, object2, customizer) {
|
|
|
6178
6178
|
return object2;
|
|
6179
6179
|
}
|
|
6180
6180
|
__name(copyObject, "copyObject");
|
|
6181
|
-
var nativeMax$
|
|
6181
|
+
var nativeMax$3 = Math.max;
|
|
6182
6182
|
function overRest(func, start2, transform) {
|
|
6183
|
-
start2 = nativeMax$
|
|
6183
|
+
start2 = nativeMax$3(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
6184
6184
|
return function() {
|
|
6185
|
-
var args = arguments, index2 = -1, length = nativeMax$
|
|
6185
|
+
var args = arguments, index2 = -1, length = nativeMax$3(args.length - start2, 0), array2 = Array(length);
|
|
6186
6186
|
while (++index2 < length) {
|
|
6187
6187
|
array2[index2] = args[start2 + index2];
|
|
6188
6188
|
}
|
|
@@ -6239,9 +6239,9 @@ function createAssigner(assigner) {
|
|
|
6239
6239
|
});
|
|
6240
6240
|
}
|
|
6241
6241
|
__name(createAssigner, "createAssigner");
|
|
6242
|
-
var objectProto$
|
|
6242
|
+
var objectProto$e = Object.prototype;
|
|
6243
6243
|
function isPrototype(value) {
|
|
6244
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
6244
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$e;
|
|
6245
6245
|
return value === proto;
|
|
6246
6246
|
}
|
|
6247
6247
|
__name(isPrototype, "isPrototype");
|
|
@@ -6258,13 +6258,13 @@ function baseIsArguments(value) {
|
|
|
6258
6258
|
return isObjectLike$1(value) && baseGetTag(value) == argsTag$3;
|
|
6259
6259
|
}
|
|
6260
6260
|
__name(baseIsArguments, "baseIsArguments");
|
|
6261
|
-
var objectProto$
|
|
6262
|
-
var hasOwnProperty$
|
|
6263
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
6261
|
+
var objectProto$d = Object.prototype;
|
|
6262
|
+
var hasOwnProperty$c = objectProto$d.hasOwnProperty;
|
|
6263
|
+
var propertyIsEnumerable$1 = objectProto$d.propertyIsEnumerable;
|
|
6264
6264
|
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
6265
6265
|
return arguments;
|
|
6266
6266
|
}()) ? baseIsArguments : function(value) {
|
|
6267
|
-
return isObjectLike$1(value) && hasOwnProperty$
|
|
6267
|
+
return isObjectLike$1(value) && hasOwnProperty$c.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
6268
6268
|
};
|
|
6269
6269
|
function stubFalse() {
|
|
6270
6270
|
return false;
|
|
@@ -6307,12 +6307,12 @@ var nodeUtil = function() {
|
|
|
6307
6307
|
}();
|
|
6308
6308
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6309
6309
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6310
|
-
var objectProto$
|
|
6311
|
-
var hasOwnProperty$
|
|
6310
|
+
var objectProto$c = Object.prototype;
|
|
6311
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
6312
6312
|
function arrayLikeKeys(value, inherited) {
|
|
6313
6313
|
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;
|
|
6314
6314
|
for (var key in value) {
|
|
6315
|
-
if ((inherited || hasOwnProperty$
|
|
6315
|
+
if ((inherited || hasOwnProperty$b.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6316
6316
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6317
6317
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6318
6318
|
isType2 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -6330,15 +6330,15 @@ function overArg(func, transform) {
|
|
|
6330
6330
|
}
|
|
6331
6331
|
__name(overArg, "overArg");
|
|
6332
6332
|
var nativeKeys = overArg(Object.keys, Object);
|
|
6333
|
-
var objectProto$
|
|
6334
|
-
var hasOwnProperty$
|
|
6333
|
+
var objectProto$b = Object.prototype;
|
|
6334
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
6335
6335
|
function baseKeys(object2) {
|
|
6336
6336
|
if (!isPrototype(object2)) {
|
|
6337
6337
|
return nativeKeys(object2);
|
|
6338
6338
|
}
|
|
6339
6339
|
var result = [];
|
|
6340
6340
|
for (var key in Object(object2)) {
|
|
6341
|
-
if (hasOwnProperty$
|
|
6341
|
+
if (hasOwnProperty$a.call(object2, key) && key != "constructor") {
|
|
6342
6342
|
result.push(key);
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
@@ -6359,15 +6359,15 @@ function nativeKeysIn(object2) {
|
|
|
6359
6359
|
return result;
|
|
6360
6360
|
}
|
|
6361
6361
|
__name(nativeKeysIn, "nativeKeysIn");
|
|
6362
|
-
var objectProto$
|
|
6363
|
-
var hasOwnProperty$
|
|
6362
|
+
var objectProto$a = Object.prototype;
|
|
6363
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
6364
6364
|
function baseKeysIn(object2) {
|
|
6365
6365
|
if (!isObject$2(object2)) {
|
|
6366
6366
|
return nativeKeysIn(object2);
|
|
6367
6367
|
}
|
|
6368
6368
|
var isProto = isPrototype(object2), result = [];
|
|
6369
6369
|
for (var key in object2) {
|
|
6370
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
6370
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$9.call(object2, key)))) {
|
|
6371
6371
|
result.push(key);
|
|
6372
6372
|
}
|
|
6373
6373
|
}
|
|
@@ -6403,22 +6403,22 @@ function hashDelete(key) {
|
|
|
6403
6403
|
}
|
|
6404
6404
|
__name(hashDelete, "hashDelete");
|
|
6405
6405
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
6406
|
-
var objectProto$
|
|
6407
|
-
var hasOwnProperty$
|
|
6406
|
+
var objectProto$9 = Object.prototype;
|
|
6407
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
6408
6408
|
function hashGet(key) {
|
|
6409
6409
|
var data = this.__data__;
|
|
6410
6410
|
if (nativeCreate) {
|
|
6411
6411
|
var result = data[key];
|
|
6412
6412
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
6413
6413
|
}
|
|
6414
|
-
return hasOwnProperty$
|
|
6414
|
+
return hasOwnProperty$8.call(data, key) ? data[key] : void 0;
|
|
6415
6415
|
}
|
|
6416
6416
|
__name(hashGet, "hashGet");
|
|
6417
|
-
var objectProto$
|
|
6418
|
-
var hasOwnProperty$
|
|
6417
|
+
var objectProto$8 = Object.prototype;
|
|
6418
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
6419
6419
|
function hashHas(key) {
|
|
6420
6420
|
var data = this.__data__;
|
|
6421
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$
|
|
6421
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$7.call(data, key);
|
|
6422
6422
|
}
|
|
6423
6423
|
__name(hashHas, "hashHas");
|
|
6424
6424
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
@@ -6681,9 +6681,9 @@ function flatRest(func) {
|
|
|
6681
6681
|
__name(flatRest, "flatRest");
|
|
6682
6682
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
6683
6683
|
var objectTag$3 = "[object Object]";
|
|
6684
|
-
var funcProto = Function.prototype, objectProto$
|
|
6684
|
+
var funcProto = Function.prototype, objectProto$7 = Object.prototype;
|
|
6685
6685
|
var funcToString = funcProto.toString;
|
|
6686
|
-
var hasOwnProperty$
|
|
6686
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
6687
6687
|
var objectCtorString = funcToString.call(Object);
|
|
6688
6688
|
function isPlainObject$2(value) {
|
|
6689
6689
|
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag$3) {
|
|
@@ -6693,7 +6693,7 @@ function isPlainObject$2(value) {
|
|
|
6693
6693
|
if (proto === null) {
|
|
6694
6694
|
return true;
|
|
6695
6695
|
}
|
|
6696
|
-
var Ctor = hasOwnProperty$
|
|
6696
|
+
var Ctor = hasOwnProperty$6.call(proto, "constructor") && proto.constructor;
|
|
6697
6697
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
6698
6698
|
}
|
|
6699
6699
|
__name(isPlainObject$2, "isPlainObject$2");
|
|
@@ -7122,8 +7122,8 @@ function stubArray() {
|
|
|
7122
7122
|
return [];
|
|
7123
7123
|
}
|
|
7124
7124
|
__name(stubArray, "stubArray");
|
|
7125
|
-
var objectProto$
|
|
7126
|
-
var propertyIsEnumerable = objectProto$
|
|
7125
|
+
var objectProto$6 = Object.prototype;
|
|
7126
|
+
var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
7127
7127
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
7128
7128
|
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object2) {
|
|
7129
7129
|
if (object2 == null) {
|
|
@@ -7191,11 +7191,11 @@ if (DataView$1 && getTag$1(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3
|
|
|
7191
7191
|
return result;
|
|
7192
7192
|
}, "getTag$1");
|
|
7193
7193
|
}
|
|
7194
|
-
var objectProto$
|
|
7195
|
-
var hasOwnProperty$
|
|
7194
|
+
var objectProto$5 = Object.prototype;
|
|
7195
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
7196
7196
|
function initCloneArray(array2) {
|
|
7197
7197
|
var length = array2.length, result = new array2.constructor(length);
|
|
7198
|
-
if (length && typeof array2[0] == "string" && hasOwnProperty$
|
|
7198
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty$5.call(array2, "index")) {
|
|
7199
7199
|
result.index = array2.index;
|
|
7200
7200
|
result.input = array2.input;
|
|
7201
7201
|
}
|
|
@@ -7509,8 +7509,8 @@ function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
7509
7509
|
}
|
|
7510
7510
|
__name(equalByTag, "equalByTag");
|
|
7511
7511
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
7512
|
-
var objectProto$
|
|
7513
|
-
var hasOwnProperty$
|
|
7512
|
+
var objectProto$4 = Object.prototype;
|
|
7513
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
7514
7514
|
function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7515
7515
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
7516
7516
|
if (objLength != othLength && !isPartial) {
|
|
@@ -7519,7 +7519,7 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7519
7519
|
var index2 = objLength;
|
|
7520
7520
|
while (index2--) {
|
|
7521
7521
|
var key = objProps[index2];
|
|
7522
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
7522
|
+
if (!(isPartial ? key in other : hasOwnProperty$4.call(other, key))) {
|
|
7523
7523
|
return false;
|
|
7524
7524
|
}
|
|
7525
7525
|
}
|
|
@@ -7557,8 +7557,8 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7557
7557
|
__name(equalObjects, "equalObjects");
|
|
7558
7558
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
7559
7559
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
7560
|
-
var objectProto$
|
|
7561
|
-
var hasOwnProperty$
|
|
7560
|
+
var objectProto$3 = Object.prototype;
|
|
7561
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
7562
7562
|
function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7563
7563
|
var objIsArr = isArray$2(object2), othIsArr = isArray$2(other), objTag = objIsArr ? arrayTag : getTag$1(object2), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
7564
7564
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
@@ -7576,7 +7576,7 @@ function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack)
|
|
|
7576
7576
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
7577
7577
|
}
|
|
7578
7578
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
7579
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
7579
|
+
var objIsWrapped = objIsObj && hasOwnProperty$3.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$3.call(other, "__wrapped__");
|
|
7580
7580
|
if (objIsWrapped || othIsWrapped) {
|
|
7581
7581
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
7582
7582
|
stack || (stack = new Stack());
|
|
@@ -7792,7 +7792,7 @@ var now = /* @__PURE__ */ __name(function() {
|
|
|
7792
7792
|
return root$4.Date.now();
|
|
7793
7793
|
}, "now");
|
|
7794
7794
|
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
7795
|
-
var nativeMax$
|
|
7795
|
+
var nativeMax$2 = Math.max, nativeMin$1 = Math.min;
|
|
7796
7796
|
function debounce(func, wait, options) {
|
|
7797
7797
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
7798
7798
|
if (typeof func != "function") {
|
|
@@ -7802,7 +7802,7 @@ function debounce(func, wait, options) {
|
|
|
7802
7802
|
if (isObject$2(options)) {
|
|
7803
7803
|
leading = !!options.leading;
|
|
7804
7804
|
maxing = "maxWait" in options;
|
|
7805
|
-
maxWait = maxing ? nativeMax$
|
|
7805
|
+
maxWait = maxing ? nativeMax$2(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
7806
7806
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
7807
7807
|
}
|
|
7808
7808
|
function invokeFunc(time) {
|
|
@@ -7972,12 +7972,12 @@ function baseMerge(object2, source, srcIndex, customizer, stack) {
|
|
|
7972
7972
|
__name(baseMerge, "baseMerge");
|
|
7973
7973
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
7974
7974
|
function baseDifference(array2, values2, iteratee, comparator) {
|
|
7975
|
-
var index2 = -1,
|
|
7975
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array2.length, result = [], valuesLength = values2.length;
|
|
7976
7976
|
if (!length) {
|
|
7977
7977
|
return result;
|
|
7978
7978
|
}
|
|
7979
7979
|
if (values2.length >= LARGE_ARRAY_SIZE$1) {
|
|
7980
|
-
|
|
7980
|
+
includes2 = cacheHas;
|
|
7981
7981
|
isCommon = false;
|
|
7982
7982
|
values2 = new SetCache(values2);
|
|
7983
7983
|
}
|
|
@@ -7993,7 +7993,7 @@ function baseDifference(array2, values2, iteratee, comparator) {
|
|
|
7993
7993
|
}
|
|
7994
7994
|
}
|
|
7995
7995
|
result.push(value);
|
|
7996
|
-
} else if (!
|
|
7996
|
+
} else if (!includes2(values2, computed3, comparator)) {
|
|
7997
7997
|
result.push(value);
|
|
7998
7998
|
}
|
|
7999
7999
|
}
|
|
@@ -8008,15 +8008,6 @@ function last$1(array2) {
|
|
|
8008
8008
|
return length ? array2[length - 1] : void 0;
|
|
8009
8009
|
}
|
|
8010
8010
|
__name(last$1, "last$1");
|
|
8011
|
-
function drop(array2, n2, guard) {
|
|
8012
|
-
var length = array2 == null ? 0 : array2.length;
|
|
8013
|
-
if (!length) {
|
|
8014
|
-
return [];
|
|
8015
|
-
}
|
|
8016
|
-
n2 = n2 === void 0 ? 1 : toInteger(n2);
|
|
8017
|
-
return baseSlice(array2, n2 < 0 ? 0 : n2, length);
|
|
8018
|
-
}
|
|
8019
|
-
__name(drop, "drop");
|
|
8020
8011
|
function castFunction(value) {
|
|
8021
8012
|
return typeof value == "function" ? value : identity$1;
|
|
8022
8013
|
}
|
|
@@ -8096,6 +8087,16 @@ function baseGt(value, other) {
|
|
|
8096
8087
|
return value > other;
|
|
8097
8088
|
}
|
|
8098
8089
|
__name(baseGt, "baseGt");
|
|
8090
|
+
var objectProto$2 = Object.prototype;
|
|
8091
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
8092
|
+
function baseHas(object2, key) {
|
|
8093
|
+
return object2 != null && hasOwnProperty$2.call(object2, key);
|
|
8094
|
+
}
|
|
8095
|
+
__name(baseHas, "baseHas");
|
|
8096
|
+
function has$1(object2, path2) {
|
|
8097
|
+
return object2 != null && hasPath(object2, path2, baseHas);
|
|
8098
|
+
}
|
|
8099
|
+
__name(has$1, "has$1");
|
|
8099
8100
|
var stringTag = "[object String]";
|
|
8100
8101
|
function isString$1(value) {
|
|
8101
8102
|
return typeof value == "string" || !isArray$2(value) && isObjectLike$1(value) && baseGetTag(value) == stringTag;
|
|
@@ -8111,6 +8112,17 @@ function values(object2) {
|
|
|
8111
8112
|
return object2 == null ? [] : baseValues(object2, keys$1(object2));
|
|
8112
8113
|
}
|
|
8113
8114
|
__name(values, "values");
|
|
8115
|
+
var nativeMax$1 = Math.max;
|
|
8116
|
+
function includes(collection, value, fromIndex, guard) {
|
|
8117
|
+
collection = isArrayLike(collection) ? collection : values(collection);
|
|
8118
|
+
fromIndex = fromIndex && true ? toInteger(fromIndex) : 0;
|
|
8119
|
+
var length = collection.length;
|
|
8120
|
+
if (fromIndex < 0) {
|
|
8121
|
+
fromIndex = nativeMax$1(length + fromIndex, 0);
|
|
8122
|
+
}
|
|
8123
|
+
return isString$1(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
8124
|
+
}
|
|
8125
|
+
__name(includes, "includes");
|
|
8114
8126
|
function baseInverter(object2, setter, iteratee, accumulator) {
|
|
8115
8127
|
baseForOwn(object2, function(value, key, object3) {
|
|
8116
8128
|
setter(accumulator, iteratee(value), key, object3);
|
|
@@ -8171,15 +8183,15 @@ function isEqualWith(value, other, customizer) {
|
|
|
8171
8183
|
return result === void 0 ? baseIsEqual(value, other, void 0, customizer) : !!result;
|
|
8172
8184
|
}
|
|
8173
8185
|
__name(isEqualWith, "isEqualWith");
|
|
8174
|
-
function isInteger(value) {
|
|
8175
|
-
return typeof value == "number" && value == toInteger(value);
|
|
8176
|
-
}
|
|
8177
|
-
__name(isInteger, "isInteger");
|
|
8178
8186
|
var numberTag = "[object Number]";
|
|
8179
8187
|
function isNumber$1(value) {
|
|
8180
8188
|
return typeof value == "number" || isObjectLike$1(value) && baseGetTag(value) == numberTag;
|
|
8181
8189
|
}
|
|
8182
8190
|
__name(isNumber$1, "isNumber$1");
|
|
8191
|
+
function isNull(value) {
|
|
8192
|
+
return value === null;
|
|
8193
|
+
}
|
|
8194
|
+
__name(isNull, "isNull");
|
|
8183
8195
|
function isUndefined(value) {
|
|
8184
8196
|
return value === void 0;
|
|
8185
8197
|
}
|
|
@@ -8636,14 +8648,14 @@ var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == INFINITY) ? n
|
|
|
8636
8648
|
};
|
|
8637
8649
|
var LARGE_ARRAY_SIZE = 200;
|
|
8638
8650
|
function baseUniq(array2, iteratee, comparator) {
|
|
8639
|
-
var index2 = -1,
|
|
8651
|
+
var index2 = -1, includes2 = arrayIncludes, length = array2.length, isCommon = true, result = [], seen = result;
|
|
8640
8652
|
if (length >= LARGE_ARRAY_SIZE) {
|
|
8641
8653
|
var set5 = iteratee ? null : createSet(array2);
|
|
8642
8654
|
if (set5) {
|
|
8643
8655
|
return setToArray(set5);
|
|
8644
8656
|
}
|
|
8645
8657
|
isCommon = false;
|
|
8646
|
-
|
|
8658
|
+
includes2 = cacheHas;
|
|
8647
8659
|
seen = new SetCache();
|
|
8648
8660
|
} else {
|
|
8649
8661
|
seen = iteratee ? [] : result;
|
|
@@ -8663,7 +8675,7 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8663
8675
|
seen.push(computed3);
|
|
8664
8676
|
}
|
|
8665
8677
|
result.push(value);
|
|
8666
|
-
} else if (!
|
|
8678
|
+
} else if (!includes2(seen, computed3, comparator)) {
|
|
8667
8679
|
if (seen !== result) {
|
|
8668
8680
|
seen.push(computed3);
|
|
8669
8681
|
}
|
|
@@ -8673,10 +8685,6 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8673
8685
|
return result;
|
|
8674
8686
|
}
|
|
8675
8687
|
__name(baseUniq, "baseUniq");
|
|
8676
|
-
function uniq(array2) {
|
|
8677
|
-
return array2 && array2.length ? baseUniq(array2) : [];
|
|
8678
|
-
}
|
|
8679
|
-
__name(uniq, "uniq");
|
|
8680
8688
|
function uniqBy(array2, iteratee) {
|
|
8681
8689
|
return array2 && array2.length ? baseUniq(array2, baseIteratee(iteratee)) : [];
|
|
8682
8690
|
}
|
|
@@ -15859,6 +15867,7 @@ var itemSizeEstimator = /* @__PURE__ */ __name(function itemSizeEstimator2() {
|
|
|
15859
15867
|
return 41.36;
|
|
15860
15868
|
}, "itemSizeEstimator");
|
|
15861
15869
|
var ReactTableDefaults = defaultProps;
|
|
15870
|
+
var VIRTUALIZE_CUTOFF_LENGTH = 200;
|
|
15862
15871
|
var ReactTable = function(_Methods) {
|
|
15863
15872
|
_inherits$8(ReactTable2, _Methods);
|
|
15864
15873
|
function ReactTable2(props) {
|
|
@@ -16444,7 +16453,7 @@ var ReactTable = function(_Methods) {
|
|
|
16444
16453
|
minWidth: rowMinWidth + "px"
|
|
16445
16454
|
})
|
|
16446
16455
|
}, tBodyProps.rest),
|
|
16447
|
-
pageRows.length <
|
|
16456
|
+
_this2.props.noVirtual || pageRows.length < VIRTUALIZE_CUTOFF_LENGTH ? pageRows.map(function(d2, i2) {
|
|
16448
16457
|
return makePageRow(d2, i2);
|
|
16449
16458
|
}) : React.createElement(ReactList, {
|
|
16450
16459
|
type: "variable",
|
|
@@ -16672,9 +16681,9 @@ const stripNumberAtEnd = /* @__PURE__ */ __name((str) => {
|
|
|
16672
16681
|
var _a;
|
|
16673
16682
|
return (_a = str == null ? void 0 : str.replace) == null ? void 0 : _a.call(str, getNumberStrAtEnd(str), "");
|
|
16674
16683
|
}, "stripNumberAtEnd");
|
|
16675
|
-
const getAllRows = /* @__PURE__ */ __name((
|
|
16676
|
-
|
|
16677
|
-
const allRowEls =
|
|
16684
|
+
const getAllRows = /* @__PURE__ */ __name((tableRef) => {
|
|
16685
|
+
var _a, _b;
|
|
16686
|
+
const allRowEls = (_b = (_a = tableRef.current) == null ? void 0 : _a.tableRef) == null ? void 0 : _b.querySelectorAll(".rt-tr");
|
|
16678
16687
|
if (!allRowEls || !allRowEls.length) {
|
|
16679
16688
|
return;
|
|
16680
16689
|
}
|
|
@@ -16941,14 +16950,14 @@ const handleCopyRows = /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, o
|
|
|
16941
16950
|
handleCopyHelper(textToCopy, jsonToCopy, onFinishMsg || "Row Copied");
|
|
16942
16951
|
}
|
|
16943
16952
|
}, "handleCopyRows");
|
|
16944
|
-
const handleCopyColumn = /* @__PURE__ */ __name((
|
|
16953
|
+
const handleCopyColumn = /* @__PURE__ */ __name((tableRef, cellWrapper, selectedRecords) => {
|
|
16945
16954
|
const specificColumn = cellWrapper.getAttribute("data-test");
|
|
16946
|
-
let rowElsToCopy = getAllRows(
|
|
16955
|
+
let rowElsToCopy = getAllRows(tableRef);
|
|
16947
16956
|
if (!rowElsToCopy) return;
|
|
16948
16957
|
if (selectedRecords) {
|
|
16949
|
-
const ids2 = selectedRecords.map((
|
|
16958
|
+
const ids2 = selectedRecords.map((e) => {
|
|
16950
16959
|
var _a;
|
|
16951
|
-
return (_a = getIdOrCodeOrIndex(
|
|
16960
|
+
return (_a = getIdOrCodeOrIndex(e)) == null ? void 0 : _a.toString();
|
|
16952
16961
|
});
|
|
16953
16962
|
rowElsToCopy = Array.from(rowElsToCopy).filter((rowEl) => {
|
|
16954
16963
|
var _a;
|
|
@@ -16981,9 +16990,9 @@ const isBottomRightCornerOfRectangle = /* @__PURE__ */ __name(({
|
|
|
16981
16990
|
const isBottomRight = i2 === lastRowIndex && cellIndex === lastCellIndex;
|
|
16982
16991
|
return isBottomRight;
|
|
16983
16992
|
}, "isBottomRightCornerOfRectangle");
|
|
16984
|
-
const handleCopyTable = /* @__PURE__ */ __name((
|
|
16993
|
+
const handleCopyTable = /* @__PURE__ */ __name((tableRef, opts) => {
|
|
16985
16994
|
try {
|
|
16986
|
-
const allRowEls = getAllRows(
|
|
16995
|
+
const allRowEls = getAllRows(tableRef);
|
|
16987
16996
|
if (!allRowEls) return;
|
|
16988
16997
|
handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts), {
|
|
16989
16998
|
onFinishMsg: "Table Copied"
|
|
@@ -19405,293 +19414,501 @@ function requireLib$1() {
|
|
|
19405
19414
|
__name(requireLib$1, "requireLib$1");
|
|
19406
19415
|
var libExports$1 = /* @__PURE__ */ requireLib$1();
|
|
19407
19416
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(libExports$1);
|
|
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
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
}
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
if (S2(t3)) return t3.clone();
|
|
19456
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
19457
|
-
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
19458
|
-
}, "O"), b2 = v2;
|
|
19459
|
-
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
19460
|
-
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
19461
|
-
};
|
|
19462
|
-
var _2 = function() {
|
|
19463
|
-
function M3(t3) {
|
|
19464
|
-
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
19417
|
+
function tableQueryParamsToHasuraClauses({
|
|
19418
|
+
page,
|
|
19419
|
+
pageSize,
|
|
19420
|
+
searchTerm,
|
|
19421
|
+
filters,
|
|
19422
|
+
order: order2,
|
|
19423
|
+
schema,
|
|
19424
|
+
// Add schema as a parameter
|
|
19425
|
+
additionalFilter
|
|
19426
|
+
}) {
|
|
19427
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19428
|
+
let where = {};
|
|
19429
|
+
const order_by = [];
|
|
19430
|
+
const limit = pageSize || 25;
|
|
19431
|
+
const offset3 = page && pageSize ? (page - 1) * pageSize : 0;
|
|
19432
|
+
if (searchTerm) {
|
|
19433
|
+
const searchTermFilters = [];
|
|
19434
|
+
const uniqueFieldsByPath = {};
|
|
19435
|
+
const searchTerms = searchTerm.split(",");
|
|
19436
|
+
schema.fields.forEach((field) => {
|
|
19437
|
+
const { type: type2, path: path2, searchDisabled } = field;
|
|
19438
|
+
if (uniqueFieldsByPath[path2]) return;
|
|
19439
|
+
uniqueFieldsByPath[path2] = true;
|
|
19440
|
+
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19441
|
+
searchTerms.forEach((term) => {
|
|
19442
|
+
const filterValue = term.trim();
|
|
19443
|
+
if (type2 === "string" || type2 === "lookup") {
|
|
19444
|
+
const o2 = set$1({}, path2, { _ilike: `%${filterValue}%` });
|
|
19445
|
+
searchTermFilters.push(o2);
|
|
19446
|
+
} else if (type2 === "boolean") {
|
|
19447
|
+
let regex;
|
|
19448
|
+
try {
|
|
19449
|
+
regex = new RegExp("^" + filterValue, "ig");
|
|
19450
|
+
} catch (error) {
|
|
19451
|
+
}
|
|
19452
|
+
if (regex) {
|
|
19453
|
+
if ("true".replace(regex, "") !== "true") {
|
|
19454
|
+
const o2 = set$1({}, path2, { _eq: true });
|
|
19455
|
+
searchTermFilters.push(o2);
|
|
19456
|
+
} else if ("false".replace(regex, "") !== "false") {
|
|
19457
|
+
const o2 = set$1({}, path2, { _eq: false });
|
|
19458
|
+
searchTermFilters.push(o2);
|
|
19459
|
+
}
|
|
19460
|
+
}
|
|
19461
|
+
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19462
|
+
const o2 = set$1({}, path2, { _eq: parseFloat(filterValue) });
|
|
19463
|
+
searchTermFilters.push(o2);
|
|
19465
19464
|
}
|
|
19466
|
-
|
|
19467
|
-
|
|
19468
|
-
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
|
|
19478
|
-
|
|
19465
|
+
});
|
|
19466
|
+
});
|
|
19467
|
+
if (searchTermFilters.length > 0) {
|
|
19468
|
+
if (Object.keys(where).length > 0) {
|
|
19469
|
+
where = { _and: [where, { _or: searchTermFilters }] };
|
|
19470
|
+
} else {
|
|
19471
|
+
where = { _or: searchTermFilters };
|
|
19472
|
+
}
|
|
19473
|
+
}
|
|
19474
|
+
}
|
|
19475
|
+
if (filters && filters.length > 0) {
|
|
19476
|
+
const filterClauses = filters.map((filter2) => {
|
|
19477
|
+
let { selectedFilter, filterOn, filterValue } = filter2;
|
|
19478
|
+
const fieldSchema = ccFields[filterOn] || {};
|
|
19479
|
+
const { path: path2, reference: reference2, type: type2, customColumnFilter } = fieldSchema;
|
|
19480
|
+
if (customColumnFilter) {
|
|
19481
|
+
return customColumnFilter(filterValue);
|
|
19482
|
+
}
|
|
19483
|
+
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19484
|
+
if (stringFilterValue === false) {
|
|
19485
|
+
stringFilterValue = "false";
|
|
19486
|
+
} else {
|
|
19487
|
+
stringFilterValue = stringFilterValue || "";
|
|
19488
|
+
}
|
|
19489
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19490
|
+
if (type2 === "number" || type2 === "integer") {
|
|
19491
|
+
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19492
|
+
}
|
|
19493
|
+
if (fieldSchema.normalizeFilter) {
|
|
19494
|
+
filterValue = fieldSchema.normalizeFilter(
|
|
19495
|
+
filterValue,
|
|
19496
|
+
selectedFilter,
|
|
19497
|
+
filterOn
|
|
19498
|
+
);
|
|
19499
|
+
}
|
|
19500
|
+
if (reference2) {
|
|
19501
|
+
filterOn = reference2.sourceField;
|
|
19502
|
+
} else {
|
|
19503
|
+
filterOn = path2 || filterOn;
|
|
19504
|
+
}
|
|
19505
|
+
switch (selectedFilter) {
|
|
19506
|
+
case "none":
|
|
19507
|
+
return {};
|
|
19508
|
+
case "startsWith":
|
|
19509
|
+
return { [filterOn]: { _ilike: `${filterValue}%` } };
|
|
19510
|
+
case "endsWith":
|
|
19511
|
+
return { [filterOn]: { _ilike: `%${filterValue}` } };
|
|
19512
|
+
case "contains":
|
|
19513
|
+
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19514
|
+
case "notContains":
|
|
19515
|
+
return { [filterOn]: { _nilike: `%${filterValue}%` } };
|
|
19516
|
+
case "isExactly":
|
|
19517
|
+
return { [filterOn]: { _eq: filterValue } };
|
|
19518
|
+
case "isEmpty":
|
|
19519
|
+
if (filterOn.includes(".")) {
|
|
19520
|
+
return {
|
|
19521
|
+
_not: {
|
|
19522
|
+
[filterOn.split(".")[0]]: {}
|
|
19479
19523
|
}
|
|
19480
|
-
}
|
|
19481
|
-
return new Date(e2);
|
|
19482
|
-
}(t3), this.init();
|
|
19483
|
-
}, m3.init = function() {
|
|
19484
|
-
var t3 = this.$d;
|
|
19485
|
-
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();
|
|
19486
|
-
}, m3.$utils = function() {
|
|
19487
|
-
return b2;
|
|
19488
|
-
}, m3.isValid = function() {
|
|
19489
|
-
return !(this.$d.toString() === l2);
|
|
19490
|
-
}, m3.isSame = function(t3, e2) {
|
|
19491
|
-
var n3 = O2(t3);
|
|
19492
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
19493
|
-
}, m3.isAfter = function(t3, e2) {
|
|
19494
|
-
return O2(t3) < this.startOf(e2);
|
|
19495
|
-
}, m3.isBefore = function(t3, e2) {
|
|
19496
|
-
return this.endOf(e2) < O2(t3);
|
|
19497
|
-
}, m3.$g = function(t3, e2, n3) {
|
|
19498
|
-
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
19499
|
-
}, m3.unix = function() {
|
|
19500
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
19501
|
-
}, m3.valueOf = function() {
|
|
19502
|
-
return this.$d.getTime();
|
|
19503
|
-
}, m3.startOf = function(t3, e2) {
|
|
19504
|
-
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19505
|
-
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
19506
|
-
return r3 ? i3 : i3.endOf(a2);
|
|
19507
|
-
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19508
|
-
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
19509
|
-
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
19510
|
-
switch (f3) {
|
|
19511
|
-
case h2:
|
|
19512
|
-
return r3 ? l3(1, 0) : l3(31, 11);
|
|
19513
|
-
case c2:
|
|
19514
|
-
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
19515
|
-
case o2:
|
|
19516
|
-
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
19517
|
-
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
19518
|
-
case a2:
|
|
19519
|
-
case d2:
|
|
19520
|
-
return $2(v3 + "Hours", 0);
|
|
19521
|
-
case u2:
|
|
19522
|
-
return $2(v3 + "Minutes", 1);
|
|
19523
|
-
case s2:
|
|
19524
|
-
return $2(v3 + "Seconds", 2);
|
|
19525
|
-
case i2:
|
|
19526
|
-
return $2(v3 + "Milliseconds", 3);
|
|
19527
|
-
default:
|
|
19528
|
-
return this.clone();
|
|
19524
|
+
};
|
|
19529
19525
|
}
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
var y3 = this.clone().set(d2, 1);
|
|
19536
|
-
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
19537
|
-
} else l3 && this.$d[l3]($2);
|
|
19538
|
-
return this.init(), this;
|
|
19539
|
-
}, m3.set = function(t3, e2) {
|
|
19540
|
-
return this.clone().$set(t3, e2);
|
|
19541
|
-
}, m3.get = function(t3) {
|
|
19542
|
-
return this[b2.p(t3)]();
|
|
19543
|
-
}, m3.add = function(r3, f3) {
|
|
19544
|
-
var d3, l3 = this;
|
|
19545
|
-
r3 = Number(r3);
|
|
19546
|
-
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
19547
|
-
var e2 = O2(l3);
|
|
19548
|
-
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
19549
|
-
}, "y");
|
|
19550
|
-
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
19551
|
-
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
19552
|
-
if ($2 === a2) return y3(1);
|
|
19553
|
-
if ($2 === o2) return y3(7);
|
|
19554
|
-
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
19555
|
-
return b2.w(m4, this);
|
|
19556
|
-
}, m3.subtract = function(t3, e2) {
|
|
19557
|
-
return this.add(-1 * t3, e2);
|
|
19558
|
-
}, m3.format = function(t3) {
|
|
19559
|
-
var e2 = this, n3 = this.$locale();
|
|
19560
|
-
if (!this.isValid()) return n3.invalidDate || l2;
|
|
19561
|
-
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) {
|
|
19562
|
-
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
19563
|
-
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
19564
|
-
return b2.s(s3 % 12 || 12, t4, "0");
|
|
19565
|
-
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
19566
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
19567
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
19526
|
+
return {
|
|
19527
|
+
_or: [
|
|
19528
|
+
{ [filterOn]: { _eq: "" } },
|
|
19529
|
+
{ [filterOn]: { _is_null: true } }
|
|
19530
|
+
]
|
|
19568
19531
|
};
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
|
|
19595
|
-
|
|
19596
|
-
|
|
19597
|
-
|
|
19598
|
-
case "HH":
|
|
19599
|
-
return b2.s(s3, 2, "0");
|
|
19600
|
-
case "h":
|
|
19601
|
-
return d3(1);
|
|
19602
|
-
case "hh":
|
|
19603
|
-
return d3(2);
|
|
19604
|
-
case "a":
|
|
19605
|
-
return $2(s3, u3, true);
|
|
19606
|
-
case "A":
|
|
19607
|
-
return $2(s3, u3, false);
|
|
19608
|
-
case "m":
|
|
19609
|
-
return String(u3);
|
|
19610
|
-
case "mm":
|
|
19611
|
-
return b2.s(u3, 2, "0");
|
|
19612
|
-
case "s":
|
|
19613
|
-
return String(e2.$s);
|
|
19614
|
-
case "ss":
|
|
19615
|
-
return b2.s(e2.$s, 2, "0");
|
|
19616
|
-
case "SSS":
|
|
19617
|
-
return b2.s(e2.$ms, 3, "0");
|
|
19618
|
-
case "Z":
|
|
19619
|
-
return i3;
|
|
19532
|
+
case "notEmpty":
|
|
19533
|
+
return {
|
|
19534
|
+
_and: [
|
|
19535
|
+
{ [filterOn]: { _neq: "" } },
|
|
19536
|
+
{ [filterOn]: { _is_null: false } }
|
|
19537
|
+
]
|
|
19538
|
+
};
|
|
19539
|
+
case "inList":
|
|
19540
|
+
return { [filterOn]: { _in: filterValue } };
|
|
19541
|
+
case "notInList":
|
|
19542
|
+
return { [filterOn]: { _nin: filterValue } };
|
|
19543
|
+
case "true":
|
|
19544
|
+
return { [filterOn]: { _eq: true } };
|
|
19545
|
+
case "false":
|
|
19546
|
+
return { [filterOn]: { _eq: false } };
|
|
19547
|
+
case "dateIs":
|
|
19548
|
+
return { [filterOn]: { _eq: filterValue } };
|
|
19549
|
+
case "notBetween":
|
|
19550
|
+
return {
|
|
19551
|
+
_or: [
|
|
19552
|
+
{
|
|
19553
|
+
[filterOn]: {
|
|
19554
|
+
_lt: new Date(arrayFilterValue[0])
|
|
19555
|
+
}
|
|
19556
|
+
},
|
|
19557
|
+
{
|
|
19558
|
+
[filterOn]: {
|
|
19559
|
+
_gt: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19560
|
+
}
|
|
19620
19561
|
}
|
|
19621
|
-
|
|
19622
|
-
|
|
19623
|
-
|
|
19624
|
-
|
|
19625
|
-
|
|
19626
|
-
|
|
19627
|
-
|
|
19628
|
-
|
|
19629
|
-
}
|
|
19630
|
-
|
|
19631
|
-
|
|
19632
|
-
|
|
19562
|
+
]
|
|
19563
|
+
};
|
|
19564
|
+
case "isBetween":
|
|
19565
|
+
return {
|
|
19566
|
+
[filterOn]: {
|
|
19567
|
+
_gte: new Date(arrayFilterValue[0]),
|
|
19568
|
+
_lte: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19569
|
+
}
|
|
19570
|
+
};
|
|
19571
|
+
case "isBefore":
|
|
19572
|
+
return { [filterOn]: { _lt: new Date(filterValue) } };
|
|
19573
|
+
case "isAfter":
|
|
19574
|
+
return { [filterOn]: { _gt: new Date(filterValue) } };
|
|
19575
|
+
case "greaterThan":
|
|
19576
|
+
return { [filterOn]: { _gt: parseFloat(filterValue) } };
|
|
19577
|
+
case "lessThan":
|
|
19578
|
+
return { [filterOn]: { _lt: parseFloat(filterValue) } };
|
|
19579
|
+
case "inRange":
|
|
19580
|
+
return {
|
|
19581
|
+
[filterOn]: {
|
|
19582
|
+
_gte: parseFloat(arrayFilterValue[0]),
|
|
19583
|
+
_lte: parseFloat(arrayFilterValue[1])
|
|
19584
|
+
}
|
|
19585
|
+
};
|
|
19586
|
+
case "outsideRange":
|
|
19587
|
+
return {
|
|
19588
|
+
_or: [
|
|
19589
|
+
{
|
|
19590
|
+
[filterOn]: {
|
|
19591
|
+
_lt: parseFloat(arrayFilterValue[0])
|
|
19592
|
+
}
|
|
19593
|
+
},
|
|
19594
|
+
{
|
|
19595
|
+
[filterOn]: {
|
|
19596
|
+
_gt: parseFloat(arrayFilterValue[1])
|
|
19597
|
+
}
|
|
19598
|
+
}
|
|
19599
|
+
]
|
|
19600
|
+
};
|
|
19601
|
+
case "equalTo":
|
|
19602
|
+
return {
|
|
19603
|
+
[filterOn]: {
|
|
19604
|
+
_eq: type2 === "number" || type2 === "integer" ? parseFloat(filterValue) : filterValue
|
|
19605
|
+
}
|
|
19606
|
+
};
|
|
19607
|
+
case "regex":
|
|
19608
|
+
return { [filterOn]: { _regex: filterValue } };
|
|
19609
|
+
default:
|
|
19610
|
+
console.warn(`Unsupported filter type: ${selectedFilter}`);
|
|
19611
|
+
return {};
|
|
19612
|
+
}
|
|
19613
|
+
});
|
|
19614
|
+
if (filterClauses.length > 0) {
|
|
19615
|
+
if (Object.keys(where).length > 0) {
|
|
19616
|
+
where = { _and: [where, ...filterClauses] };
|
|
19617
|
+
} else {
|
|
19618
|
+
where = { _and: filterClauses };
|
|
19619
|
+
}
|
|
19620
|
+
}
|
|
19621
|
+
}
|
|
19622
|
+
if (order2 && order2.length > 0) {
|
|
19623
|
+
order2.forEach((item) => {
|
|
19624
|
+
const field = item.startsWith("-") ? item.substring(1) : item;
|
|
19625
|
+
const direction = item.startsWith("-") ? "desc" : "asc";
|
|
19626
|
+
order_by.push({ [field]: direction });
|
|
19627
|
+
});
|
|
19628
|
+
}
|
|
19629
|
+
if (additionalFilter) {
|
|
19630
|
+
where = { _and: [where, additionalFilter] };
|
|
19631
|
+
}
|
|
19632
|
+
return { where, order_by, limit, offset: offset3 };
|
|
19633
|
+
}
|
|
19634
|
+
__name(tableQueryParamsToHasuraClauses, "tableQueryParamsToHasuraClauses");
|
|
19635
|
+
function getFieldsMappedByCCDisplayName(schema) {
|
|
19636
|
+
if (!schema || !schema.fields) return {};
|
|
19637
|
+
return schema.fields.reduce((acc, field) => {
|
|
19638
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19639
|
+
acc[ccDisplayName] = field;
|
|
19640
|
+
return acc;
|
|
19641
|
+
}, {});
|
|
19642
|
+
}
|
|
19643
|
+
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19644
|
+
function getCCDisplayName(field) {
|
|
19645
|
+
return camelCase(
|
|
19646
|
+
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19647
|
+
);
|
|
19648
|
+
}
|
|
19649
|
+
__name(getCCDisplayName, "getCCDisplayName");
|
|
19650
|
+
function filterLocalEntitiesToHasura(records, { where, order_by, limit, offset: offset3, isInfinite } = {}) {
|
|
19651
|
+
let filteredRecords = [...records];
|
|
19652
|
+
if (where) {
|
|
19653
|
+
filteredRecords = applyWhereClause(filteredRecords, where);
|
|
19654
|
+
}
|
|
19655
|
+
if (order_by) {
|
|
19656
|
+
filteredRecords = applyOrderBy(filteredRecords, order_by);
|
|
19657
|
+
}
|
|
19658
|
+
filteredRecords = restoreEntitiesFromLocalFilter(filteredRecords);
|
|
19659
|
+
const allFilteredRecords = [...filteredRecords];
|
|
19660
|
+
if (!isInfinite && offset3 !== void 0) {
|
|
19661
|
+
filteredRecords = filteredRecords.slice(offset3);
|
|
19662
|
+
}
|
|
19663
|
+
if (!isInfinite && limit !== void 0) {
|
|
19664
|
+
filteredRecords = filteredRecords.slice(0, limit);
|
|
19665
|
+
}
|
|
19666
|
+
return {
|
|
19667
|
+
entities: filteredRecords,
|
|
19668
|
+
entitiesAcrossPages: allFilteredRecords,
|
|
19669
|
+
entityCount: allFilteredRecords.length
|
|
19670
|
+
};
|
|
19671
|
+
}
|
|
19672
|
+
__name(filterLocalEntitiesToHasura, "filterLocalEntitiesToHasura");
|
|
19673
|
+
function applyWhereClause(records, where) {
|
|
19674
|
+
function applyFilter(record, filter2) {
|
|
19675
|
+
if (isEmpty$1(filter2)) {
|
|
19676
|
+
return true;
|
|
19677
|
+
}
|
|
19678
|
+
for (const key in filter2) {
|
|
19679
|
+
if (key === "_and") {
|
|
19680
|
+
if (isEmpty$1(filter2[key])) {
|
|
19681
|
+
continue;
|
|
19682
|
+
}
|
|
19683
|
+
if (!every(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19684
|
+
return false;
|
|
19685
|
+
}
|
|
19686
|
+
} else if (key === "_or") {
|
|
19687
|
+
if (isEmpty$1(filter2[key])) {
|
|
19688
|
+
continue;
|
|
19689
|
+
}
|
|
19690
|
+
if (!some(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19691
|
+
return false;
|
|
19692
|
+
}
|
|
19693
|
+
} else if (key === "_not") {
|
|
19694
|
+
if (applyFilter(record, filter2[key])) {
|
|
19695
|
+
return false;
|
|
19696
|
+
}
|
|
19697
|
+
} else {
|
|
19698
|
+
const value = get$3(record, key);
|
|
19699
|
+
const conditions = filter2[key];
|
|
19700
|
+
if (isObject$2(value) && isObject$2(conditions) && !hasOperator(conditions)) {
|
|
19701
|
+
return applyFilter(value, conditions);
|
|
19702
|
+
}
|
|
19703
|
+
for (const operator in conditions) {
|
|
19704
|
+
const conditionValue = conditions[operator];
|
|
19705
|
+
if (operator === "_gt" && conditions._lt) {
|
|
19706
|
+
if (!(value > conditionValue && value < conditions._lt))
|
|
19707
|
+
return false;
|
|
19708
|
+
continue;
|
|
19709
|
+
}
|
|
19710
|
+
if (operator === "_gte" && conditions._lte) {
|
|
19711
|
+
if (!(value >= conditionValue && value <= conditions._lte))
|
|
19712
|
+
return false;
|
|
19713
|
+
continue;
|
|
19714
|
+
}
|
|
19715
|
+
switch (operator) {
|
|
19716
|
+
case "_eq":
|
|
19717
|
+
if (!isEqual(value, conditionValue)) return false;
|
|
19633
19718
|
break;
|
|
19634
|
-
case
|
|
19635
|
-
|
|
19719
|
+
case "_neq":
|
|
19720
|
+
if (isEqual(value, conditionValue)) return false;
|
|
19636
19721
|
break;
|
|
19637
|
-
case
|
|
19638
|
-
|
|
19722
|
+
case "_gt":
|
|
19723
|
+
if (!(value > conditionValue)) return false;
|
|
19639
19724
|
break;
|
|
19640
|
-
case
|
|
19641
|
-
|
|
19725
|
+
case "_gte":
|
|
19726
|
+
if (!(value >= conditionValue)) return false;
|
|
19642
19727
|
break;
|
|
19643
|
-
case
|
|
19644
|
-
|
|
19728
|
+
case "_lt":
|
|
19729
|
+
if (!(value < conditionValue)) return false;
|
|
19645
19730
|
break;
|
|
19646
|
-
case
|
|
19647
|
-
|
|
19731
|
+
case "_lte":
|
|
19732
|
+
if (!(value <= conditionValue)) return false;
|
|
19648
19733
|
break;
|
|
19649
|
-
case
|
|
19650
|
-
$
|
|
19734
|
+
case "_like":
|
|
19735
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19736
|
+
return false;
|
|
19651
19737
|
break;
|
|
19652
|
-
case
|
|
19653
|
-
$
|
|
19738
|
+
case "_ilike":
|
|
19739
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19740
|
+
return false;
|
|
19741
|
+
break;
|
|
19742
|
+
case "_nlike":
|
|
19743
|
+
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19744
|
+
return false;
|
|
19745
|
+
break;
|
|
19746
|
+
case "_nilike":
|
|
19747
|
+
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19748
|
+
return false;
|
|
19749
|
+
break;
|
|
19750
|
+
case "_starts_with":
|
|
19751
|
+
if (!isString$1(value) || !value.startsWith(conditionValue))
|
|
19752
|
+
return false;
|
|
19753
|
+
break;
|
|
19754
|
+
case "_ends_with":
|
|
19755
|
+
if (!isString$1(value) || !value.endsWith(conditionValue))
|
|
19756
|
+
return false;
|
|
19757
|
+
break;
|
|
19758
|
+
case "_is_null":
|
|
19759
|
+
if (conditionValue && !isNull(value) || !conditionValue && isNull(value))
|
|
19760
|
+
return false;
|
|
19761
|
+
break;
|
|
19762
|
+
case "_contains":
|
|
19763
|
+
if (!isArray$2(value) || !every(conditionValue, (item) => includes(value, item)))
|
|
19764
|
+
return false;
|
|
19765
|
+
break;
|
|
19766
|
+
case "_contained_in":
|
|
19767
|
+
if (!isArray$2(value) || !every(value, (item) => includes(conditionValue, item)))
|
|
19768
|
+
return false;
|
|
19769
|
+
break;
|
|
19770
|
+
case "_has_key":
|
|
19771
|
+
if (!isObject$2(value) || !has$1(value, conditionValue)) return false;
|
|
19772
|
+
break;
|
|
19773
|
+
case "_has_keys_any":
|
|
19774
|
+
if (!isObject$2(value) || !some(conditionValue, (item) => has$1(value, item)))
|
|
19775
|
+
return false;
|
|
19776
|
+
break;
|
|
19777
|
+
case "_has_keys_all":
|
|
19778
|
+
if (!isObject$2(value) || !every(conditionValue, (item) => has$1(value, item)))
|
|
19779
|
+
return false;
|
|
19780
|
+
break;
|
|
19781
|
+
case "_similar":
|
|
19782
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19783
|
+
return false;
|
|
19654
19784
|
break;
|
|
19655
19785
|
default:
|
|
19656
|
-
|
|
19786
|
+
if (operator.startsWith("_")) {
|
|
19787
|
+
console.warn(`Unsupported operator: ${operator}`);
|
|
19788
|
+
return false;
|
|
19789
|
+
} else {
|
|
19790
|
+
console.warn(`Unsupported operator: ${operator}`);
|
|
19791
|
+
return false;
|
|
19792
|
+
}
|
|
19657
19793
|
}
|
|
19658
|
-
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
19686
|
-
|
|
19687
|
-
|
|
19794
|
+
}
|
|
19795
|
+
}
|
|
19796
|
+
}
|
|
19797
|
+
return true;
|
|
19798
|
+
}
|
|
19799
|
+
__name(applyFilter, "applyFilter");
|
|
19800
|
+
function hasOperator(obj) {
|
|
19801
|
+
return Object.keys(obj).some((key) => key.startsWith("_"));
|
|
19802
|
+
}
|
|
19803
|
+
__name(hasOperator, "hasOperator");
|
|
19804
|
+
return records.filter((record) => applyFilter(record, where));
|
|
19805
|
+
}
|
|
19806
|
+
__name(applyWhereClause, "applyWhereClause");
|
|
19807
|
+
function applyOrderBy(records, _order_by) {
|
|
19808
|
+
const order_by = isArray$2(_order_by) ? _order_by : isEmpty$1(_order_by) ? [] : [_order_by];
|
|
19809
|
+
if (order_by.length > 0) {
|
|
19810
|
+
const orderFuncs = [];
|
|
19811
|
+
const ascOrDescArray = [];
|
|
19812
|
+
order_by.forEach(
|
|
19813
|
+
({ path: path2, direction, type: type2, sortFn, getValueToFilterOn, ownProps }) => {
|
|
19814
|
+
direction = direction || "desc";
|
|
19815
|
+
if (sortFn) {
|
|
19816
|
+
const sortFnArray = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19817
|
+
sortFnArray.forEach((fn4) => {
|
|
19818
|
+
const getter = typeof fn4 === "function" ? fn4 : (r2) => get$3(r2, fn4);
|
|
19819
|
+
orderFuncs.push((r2) => {
|
|
19820
|
+
const val = getter(r2);
|
|
19821
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19822
|
+
});
|
|
19823
|
+
ascOrDescArray.push("desc");
|
|
19824
|
+
orderFuncs.push(getter);
|
|
19825
|
+
ascOrDescArray.push(direction);
|
|
19826
|
+
});
|
|
19827
|
+
} else if (getValueToFilterOn) {
|
|
19828
|
+
orderFuncs.push((r2) => {
|
|
19829
|
+
const val = getValueToFilterOn(r2, ownProps);
|
|
19830
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19831
|
+
});
|
|
19832
|
+
ascOrDescArray.push("desc");
|
|
19833
|
+
orderFuncs.push((r2) => getValueToFilterOn(r2, ownProps));
|
|
19834
|
+
ascOrDescArray.push(direction);
|
|
19835
|
+
} else if (type2 === "timestamp") {
|
|
19836
|
+
orderFuncs.push((r2) => {
|
|
19837
|
+
const val = get$3(r2, path2);
|
|
19838
|
+
return val ? 1 : 0;
|
|
19839
|
+
});
|
|
19840
|
+
ascOrDescArray.push("desc");
|
|
19841
|
+
orderFuncs.push((r2) => {
|
|
19842
|
+
const val = get$3(r2, path2);
|
|
19843
|
+
return val ? new Date(val).getTime() : -Infinity;
|
|
19844
|
+
});
|
|
19845
|
+
ascOrDescArray.push(direction);
|
|
19846
|
+
} else if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19847
|
+
orderFuncs.push((r2) => {
|
|
19848
|
+
const val = get$3(r2, path2);
|
|
19849
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19850
|
+
});
|
|
19851
|
+
ascOrDescArray.push("desc");
|
|
19852
|
+
orderFuncs.push((o2) => {
|
|
19853
|
+
const val = get$3(o2, path2);
|
|
19854
|
+
if (val === null || val === void 0) return -Infinity;
|
|
19855
|
+
return parseInt(val, 10) || 0;
|
|
19856
|
+
});
|
|
19857
|
+
ascOrDescArray.push(direction);
|
|
19858
|
+
} else {
|
|
19859
|
+
orderFuncs.push((r2) => {
|
|
19860
|
+
const val = get$3(r2, path2);
|
|
19861
|
+
return val !== null && val !== void 0 ? 1 : 0;
|
|
19862
|
+
});
|
|
19863
|
+
ascOrDescArray.push("desc");
|
|
19864
|
+
orderFuncs.push((r2) => {
|
|
19865
|
+
const val = get$3(r2, path2);
|
|
19866
|
+
if (val === null || val === void 0) return -Infinity;
|
|
19867
|
+
if (isString$1(val)) {
|
|
19868
|
+
return val.toLowerCase().replace(
|
|
19869
|
+
/(\d+)/g,
|
|
19870
|
+
(num) => (
|
|
19871
|
+
// Pad numbers with leading zeros for proper natural sort
|
|
19872
|
+
num.padStart(10, "0")
|
|
19873
|
+
)
|
|
19874
|
+
);
|
|
19875
|
+
}
|
|
19876
|
+
return val;
|
|
19877
|
+
});
|
|
19878
|
+
ascOrDescArray.push(direction);
|
|
19879
|
+
}
|
|
19880
|
+
}
|
|
19881
|
+
);
|
|
19882
|
+
records = orderBy$1(records, orderFuncs, ascOrDescArray);
|
|
19883
|
+
}
|
|
19884
|
+
return records;
|
|
19885
|
+
}
|
|
19886
|
+
__name(applyOrderBy, "applyOrderBy");
|
|
19887
|
+
function restoreEntitiesFromLocalFilter(ents) {
|
|
19888
|
+
return ents.map((entity) => {
|
|
19889
|
+
forEach(entity, (val, key) => {
|
|
19890
|
+
var _a;
|
|
19891
|
+
if ((_a = key.startsWith) == null ? void 0 : _a.call(key, "___original___")) {
|
|
19892
|
+
entity[key.slice("___original___".length)] = val;
|
|
19893
|
+
delete entity[key];
|
|
19894
|
+
}
|
|
19688
19895
|
});
|
|
19689
|
-
|
|
19690
|
-
|
|
19896
|
+
return entity;
|
|
19897
|
+
});
|
|
19691
19898
|
}
|
|
19692
|
-
__name(
|
|
19693
|
-
|
|
19694
|
-
|
|
19899
|
+
__name(restoreEntitiesFromLocalFilter, "restoreEntitiesFromLocalFilter");
|
|
19900
|
+
function initializeHasuraWhereAndFilter(additionalFilter, where = {}, currentParams) {
|
|
19901
|
+
where._and = where._and || [];
|
|
19902
|
+
where._or = where._or || [];
|
|
19903
|
+
if (typeof additionalFilter === "function") {
|
|
19904
|
+
const newWhere = additionalFilter(where, currentParams);
|
|
19905
|
+
if (newWhere) {
|
|
19906
|
+
Object.assign(where, newWhere);
|
|
19907
|
+
}
|
|
19908
|
+
} else if (typeof additionalFilter === "object")
|
|
19909
|
+
where._and.push(additionalFilter);
|
|
19910
|
+
}
|
|
19911
|
+
__name(initializeHasuraWhereAndFilter, "initializeHasuraWhereAndFilter");
|
|
19695
19912
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
19696
19913
|
function safeStringify(val) {
|
|
19697
19914
|
if (val !== null && typeof val === "object") {
|
|
@@ -19708,325 +19925,6 @@ function safeParse(val) {
|
|
|
19708
19925
|
}
|
|
19709
19926
|
}
|
|
19710
19927
|
__name(safeParse, "safeParse");
|
|
19711
|
-
function getCCDisplayName(field) {
|
|
19712
|
-
return camelCase(
|
|
19713
|
-
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19714
|
-
);
|
|
19715
|
-
}
|
|
19716
|
-
__name(getCCDisplayName, "getCCDisplayName");
|
|
19717
|
-
function getFieldsMappedByCCDisplayName(schema) {
|
|
19718
|
-
return schema.fields.reduce((acc, field) => {
|
|
19719
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19720
|
-
acc[ccDisplayName] = field;
|
|
19721
|
-
return acc;
|
|
19722
|
-
}, {});
|
|
19723
|
-
}
|
|
19724
|
-
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19725
|
-
function orderEntitiesLocal(orderArray, entities, schema, ownProps) {
|
|
19726
|
-
if (orderArray == null ? void 0 : orderArray.length) {
|
|
19727
|
-
const orderFuncs = [];
|
|
19728
|
-
const ascOrDescArray = [];
|
|
19729
|
-
orderArray.forEach((order2) => {
|
|
19730
|
-
const ccDisplayName = order2.replace(/^-/gi, "");
|
|
19731
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19732
|
-
const field = ccFields[ccDisplayName];
|
|
19733
|
-
if (!field) {
|
|
19734
|
-
throw new Error(
|
|
19735
|
-
"Ruh roh, there should have been a column to sort on for " + order2 + " but none was found in " + schema.fields
|
|
19736
|
-
);
|
|
19737
|
-
}
|
|
19738
|
-
const { path: path2, getValueToFilterOn, sortFn } = field;
|
|
19739
|
-
if (field.type === "timestamp") {
|
|
19740
|
-
ascOrDescArray.push("desc");
|
|
19741
|
-
}
|
|
19742
|
-
ascOrDescArray.push(ccDisplayName === order2 ? "asc" : "desc");
|
|
19743
|
-
if (field.type === "timestamp") {
|
|
19744
|
-
orderFuncs.push((r2) => {
|
|
19745
|
-
const val = get$3(r2, path2);
|
|
19746
|
-
return !!val;
|
|
19747
|
-
});
|
|
19748
|
-
}
|
|
19749
|
-
if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19750
|
-
orderFuncs.push((o2) => {
|
|
19751
|
-
return parseInt(get$3(o2, path2), 10);
|
|
19752
|
-
});
|
|
19753
|
-
} else if (sortFn) {
|
|
19754
|
-
const toOrder = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19755
|
-
orderFuncs.push(...toOrder);
|
|
19756
|
-
} else if (getValueToFilterOn) {
|
|
19757
|
-
orderFuncs.push((o2) => {
|
|
19758
|
-
return getValueToFilterOn(o2, ownProps);
|
|
19759
|
-
});
|
|
19760
|
-
} else {
|
|
19761
|
-
orderFuncs.push((r2) => {
|
|
19762
|
-
const val = get$3(r2, path2);
|
|
19763
|
-
return val && val.toLowerCase ? val.toLowerCase() : val;
|
|
19764
|
-
});
|
|
19765
|
-
}
|
|
19766
|
-
});
|
|
19767
|
-
entities = orderBy$1(entities, orderFuncs, ascOrDescArray);
|
|
19768
|
-
}
|
|
19769
|
-
return entities;
|
|
19770
|
-
}
|
|
19771
|
-
__name(orderEntitiesLocal, "orderEntitiesLocal");
|
|
19772
|
-
function getAndAndOrFilters(allFilters) {
|
|
19773
|
-
const orFilters = [];
|
|
19774
|
-
const andFilters = [];
|
|
19775
|
-
const otherOrFilters = [];
|
|
19776
|
-
allFilters.forEach((filter2) => {
|
|
19777
|
-
if (filter2.isOrFilter && typeof filter2.filterValue === "string" && filter2.filterValue.includes(",")) {
|
|
19778
|
-
const allFilterValues = filter2.filterValue.split(",");
|
|
19779
|
-
allFilterValues.forEach((filterValue, i2) => {
|
|
19780
|
-
filterValue = filterValue.trim();
|
|
19781
|
-
if (!filterValue) return;
|
|
19782
|
-
const newFilter = __spreadProps(__spreadValues({}, filter2), {
|
|
19783
|
-
filterValue
|
|
19784
|
-
});
|
|
19785
|
-
if (i2 === 0) {
|
|
19786
|
-
orFilters.push(newFilter);
|
|
19787
|
-
} else {
|
|
19788
|
-
const iMinus = i2 - 1;
|
|
19789
|
-
if (!otherOrFilters[iMinus]) otherOrFilters[iMinus] = [];
|
|
19790
|
-
otherOrFilters[iMinus].push(newFilter);
|
|
19791
|
-
}
|
|
19792
|
-
});
|
|
19793
|
-
} else if (filter2.isOrFilter) {
|
|
19794
|
-
orFilters.push(filter2);
|
|
19795
|
-
} else {
|
|
19796
|
-
andFilters.push(filter2);
|
|
19797
|
-
}
|
|
19798
|
-
});
|
|
19799
|
-
return {
|
|
19800
|
-
orFilters,
|
|
19801
|
-
andFilters,
|
|
19802
|
-
otherOrFilters
|
|
19803
|
-
};
|
|
19804
|
-
}
|
|
19805
|
-
__name(getAndAndOrFilters, "getAndAndOrFilters");
|
|
19806
|
-
function filterEntitiesLocal(filters = [], searchTerm, entities, schema, ownProps) {
|
|
19807
|
-
const allFilters = getAllFilters(filters, searchTerm, schema);
|
|
19808
|
-
if (allFilters.length) {
|
|
19809
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19810
|
-
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
19811
|
-
andFilters.forEach((filter2) => {
|
|
19812
|
-
entities = getEntitiesForGivenFilter(
|
|
19813
|
-
entities,
|
|
19814
|
-
filter2,
|
|
19815
|
-
ccFields,
|
|
19816
|
-
ownProps
|
|
19817
|
-
);
|
|
19818
|
-
});
|
|
19819
|
-
if (orFilters.length) {
|
|
19820
|
-
let orEntities = [];
|
|
19821
|
-
orFilters.concat(...otherOrFilters).forEach((filter2) => {
|
|
19822
|
-
orEntities = orEntities.concat(
|
|
19823
|
-
getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps)
|
|
19824
|
-
);
|
|
19825
|
-
});
|
|
19826
|
-
entities = uniq(orEntities);
|
|
19827
|
-
}
|
|
19828
|
-
}
|
|
19829
|
-
return entities;
|
|
19830
|
-
}
|
|
19831
|
-
__name(filterEntitiesLocal, "filterEntitiesLocal");
|
|
19832
|
-
function cleanFilterValue(_filterValue, type2) {
|
|
19833
|
-
let filterValue = _filterValue;
|
|
19834
|
-
if (type2 === "number" || type2 === "integer") {
|
|
19835
|
-
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19836
|
-
}
|
|
19837
|
-
return filterValue;
|
|
19838
|
-
}
|
|
19839
|
-
__name(cleanFilterValue, "cleanFilterValue");
|
|
19840
|
-
function getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps) {
|
|
19841
|
-
const { filterOn, filterValue: _filterValue, selectedFilter } = filter2;
|
|
19842
|
-
const field = ccFields[filterOn];
|
|
19843
|
-
const { path: path2, getValueToFilterOn } = field;
|
|
19844
|
-
const filterValue = cleanFilterValue(_filterValue, field.type);
|
|
19845
|
-
const subFilter = getSubFilter(false, selectedFilter, filterValue);
|
|
19846
|
-
entities = entities.filter((entity) => {
|
|
19847
|
-
const fieldVal = getValueToFilterOn ? getValueToFilterOn(entity, ownProps) : get$3(entity, path2);
|
|
19848
|
-
const shouldKeep = subFilter(fieldVal);
|
|
19849
|
-
return shouldKeep;
|
|
19850
|
-
});
|
|
19851
|
-
return entities;
|
|
19852
|
-
}
|
|
19853
|
-
__name(getEntitiesForGivenFilter, "getEntitiesForGivenFilter");
|
|
19854
|
-
function getFiltersFromSearchTerm(searchTerm, schema) {
|
|
19855
|
-
const searchTermFilters = [];
|
|
19856
|
-
if (searchTerm) {
|
|
19857
|
-
const sharedFields = {
|
|
19858
|
-
isOrFilter: true,
|
|
19859
|
-
isSearchTermFilter: true
|
|
19860
|
-
};
|
|
19861
|
-
schema.fields.forEach((field) => {
|
|
19862
|
-
const { type: type2, searchDisabled } = field;
|
|
19863
|
-
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19864
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19865
|
-
const filterValue = cleanFilterValue(searchTerm, type2);
|
|
19866
|
-
if (type2 === "string" || type2 === "lookup") {
|
|
19867
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19868
|
-
filterOn: ccDisplayName,
|
|
19869
|
-
filterValue: searchTerm,
|
|
19870
|
-
selectedFilter: "contains"
|
|
19871
|
-
}));
|
|
19872
|
-
} else if (type2 === "boolean") {
|
|
19873
|
-
let regex;
|
|
19874
|
-
try {
|
|
19875
|
-
regex = new RegExp("^" + searchTerm, "ig");
|
|
19876
|
-
} catch (error) {
|
|
19877
|
-
}
|
|
19878
|
-
if (regex) {
|
|
19879
|
-
if ("true".replace(regex, "") !== "true") {
|
|
19880
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19881
|
-
filterOn: ccDisplayName,
|
|
19882
|
-
filterValue: true,
|
|
19883
|
-
selectedFilter: "true"
|
|
19884
|
-
}));
|
|
19885
|
-
} else if ("false".replace(regex, "") !== "false") {
|
|
19886
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19887
|
-
filterOn: ccDisplayName,
|
|
19888
|
-
filterValue: false,
|
|
19889
|
-
selectedFilter: "false"
|
|
19890
|
-
}));
|
|
19891
|
-
}
|
|
19892
|
-
}
|
|
19893
|
-
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19894
|
-
if (type2 === "integer" && !isInteger(filterValue)) {
|
|
19895
|
-
return;
|
|
19896
|
-
}
|
|
19897
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19898
|
-
filterOn: ccDisplayName,
|
|
19899
|
-
filterValue,
|
|
19900
|
-
selectedFilter: "equalTo"
|
|
19901
|
-
}));
|
|
19902
|
-
}
|
|
19903
|
-
});
|
|
19904
|
-
}
|
|
19905
|
-
return searchTermFilters;
|
|
19906
|
-
}
|
|
19907
|
-
__name(getFiltersFromSearchTerm, "getFiltersFromSearchTerm");
|
|
19908
|
-
function getSubFilter(qb, selectedFilter, filterValue) {
|
|
19909
|
-
const ccSelectedFilter = camelCase(selectedFilter);
|
|
19910
|
-
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19911
|
-
if (stringFilterValue === false) {
|
|
19912
|
-
stringFilterValue = "false";
|
|
19913
|
-
} else {
|
|
19914
|
-
stringFilterValue = stringFilterValue || "";
|
|
19915
|
-
}
|
|
19916
|
-
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
19917
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19918
|
-
if (ccSelectedFilter === "startsWith") {
|
|
19919
|
-
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
19920
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19921
|
-
return startsWith(fieldVal.toLowerCase(), filterValLower);
|
|
19922
|
-
};
|
|
19923
|
-
} else if (ccSelectedFilter === "endsWith") {
|
|
19924
|
-
return qb ? qb.endsWith(stringFilterValue) : (fieldVal) => {
|
|
19925
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19926
|
-
return endsWith$1(fieldVal.toLowerCase(), filterValLower);
|
|
19927
|
-
};
|
|
19928
|
-
} else if (ccSelectedFilter === "contains" || ccSelectedFilter === "notContains") {
|
|
19929
|
-
return qb ? ccSelectedFilter === "contains" ? qb.contains(stringFilterValue.replace(/_/g, "\\_")) : qb.notContains(stringFilterValue.replace(/_/g, "\\_")) : (fieldVal) => {
|
|
19930
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19931
|
-
return ccSelectedFilter === "contains" ? fieldVal.toLowerCase().replace(filterValLower, "") !== fieldVal.toLowerCase() : fieldVal.toLowerCase().replace(filterValLower, "") === fieldVal.toLowerCase();
|
|
19932
|
-
};
|
|
19933
|
-
} else if (ccSelectedFilter === "inList") {
|
|
19934
|
-
return qb ? qb.inList(arrayFilterValue) : (fieldVal) => {
|
|
19935
|
-
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19936
|
-
return arrayFilterValue.map((val) => {
|
|
19937
|
-
if (val) {
|
|
19938
|
-
if (val.toString) return val.toString().toLowerCase();
|
|
19939
|
-
return val.toLowerCase();
|
|
19940
|
-
}
|
|
19941
|
-
return void 0;
|
|
19942
|
-
}).indexOf(fieldVal.toString().toLowerCase()) > -1;
|
|
19943
|
-
};
|
|
19944
|
-
} else if (ccSelectedFilter === "notInList") {
|
|
19945
|
-
return qb ? qb.notInList(arrayFilterValue) : (fieldVal) => {
|
|
19946
|
-
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19947
|
-
return arrayFilterValue.map((val) => {
|
|
19948
|
-
if (val) {
|
|
19949
|
-
if (val.toString) return val.toString().toLowerCase();
|
|
19950
|
-
return val.toLowerCase();
|
|
19951
|
-
}
|
|
19952
|
-
return void 0;
|
|
19953
|
-
}).indexOf(fieldVal.toString().toLowerCase()) === -1;
|
|
19954
|
-
};
|
|
19955
|
-
} else if (ccSelectedFilter === "isEmpty") {
|
|
19956
|
-
return qb ? qb.isEmpty() : (fieldVal) => {
|
|
19957
|
-
return !fieldVal;
|
|
19958
|
-
};
|
|
19959
|
-
} else if (ccSelectedFilter === "notEmpty") {
|
|
19960
|
-
return qb ? [qb.notNull(), qb.notEquals("")] : (fieldVal) => {
|
|
19961
|
-
return !!fieldVal;
|
|
19962
|
-
};
|
|
19963
|
-
} else if (ccSelectedFilter === "isExactly") {
|
|
19964
|
-
return qb ? filterValue : (fieldVal) => {
|
|
19965
|
-
return fieldVal === filterValue;
|
|
19966
|
-
};
|
|
19967
|
-
} else if (ccSelectedFilter === "true") {
|
|
19968
|
-
return qb ? qb.equals(true) : (fieldVal) => {
|
|
19969
|
-
return !!fieldVal;
|
|
19970
|
-
};
|
|
19971
|
-
} else if (ccSelectedFilter === "false") {
|
|
19972
|
-
return qb ? qb.equals(false) : (fieldVal) => {
|
|
19973
|
-
return !fieldVal;
|
|
19974
|
-
};
|
|
19975
|
-
} else if (ccSelectedFilter === "isBetween") {
|
|
19976
|
-
return qb ? qb.between(
|
|
19977
|
-
new Date(arrayFilterValue[0]),
|
|
19978
|
-
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19979
|
-
// set end of day for more accurate filtering
|
|
19980
|
-
) : (fieldVal) => {
|
|
19981
|
-
return dayjs(arrayFilterValue[0]).valueOf() <= dayjs(fieldVal).valueOf() && dayjs(fieldVal).valueOf() <= dayjs(arrayFilterValue[1]).valueOf();
|
|
19982
|
-
};
|
|
19983
|
-
} else if (ccSelectedFilter === "notBetween") {
|
|
19984
|
-
return qb ? qb.notBetween(
|
|
19985
|
-
new Date(arrayFilterValue[0]),
|
|
19986
|
-
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19987
|
-
// set end of day for more accurate filtering
|
|
19988
|
-
) : (fieldVal) => {
|
|
19989
|
-
return dayjs(arrayFilterValue[0]).valueOf() > dayjs(fieldVal).valueOf() || dayjs(fieldVal).valueOf() > dayjs(arrayFilterValue[1]).valueOf();
|
|
19990
|
-
};
|
|
19991
|
-
} else if (ccSelectedFilter === "isBefore") {
|
|
19992
|
-
return qb ? qb.lessThan(new Date(filterValue)) : (fieldVal) => {
|
|
19993
|
-
return dayjs(fieldVal).valueOf() < dayjs(filterValue).valueOf();
|
|
19994
|
-
};
|
|
19995
|
-
} else if (ccSelectedFilter === "isAfter") {
|
|
19996
|
-
return qb ? qb.greaterThan(new Date(new Date(filterValue).setHours(23, 59))) : (fieldVal) => {
|
|
19997
|
-
return dayjs(fieldVal).valueOf() > dayjs(filterValue).valueOf();
|
|
19998
|
-
};
|
|
19999
|
-
} else if (ccSelectedFilter === "greaterThan") {
|
|
20000
|
-
return qb ? qb.greaterThan(filterValue) : (fieldVal) => {
|
|
20001
|
-
return fieldVal > filterValue;
|
|
20002
|
-
};
|
|
20003
|
-
} else if (ccSelectedFilter === "lessThan") {
|
|
20004
|
-
return qb ? qb.lessThan(filterValue) : (fieldVal) => {
|
|
20005
|
-
return fieldVal < filterValue;
|
|
20006
|
-
};
|
|
20007
|
-
} else if (ccSelectedFilter === "inRange") {
|
|
20008
|
-
return qb ? qb.between(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
20009
|
-
return filterValue[0] <= fieldVal && fieldVal <= filterValue[1];
|
|
20010
|
-
};
|
|
20011
|
-
} else if (ccSelectedFilter === "outsideRange") {
|
|
20012
|
-
return qb ? qb.notBetween(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
20013
|
-
return filterValue[0] > fieldVal || fieldVal > filterValue[1];
|
|
20014
|
-
};
|
|
20015
|
-
} else if (ccSelectedFilter === "equalTo") {
|
|
20016
|
-
return qb ? filterValue : (fieldVal) => {
|
|
20017
|
-
return fieldVal === filterValue;
|
|
20018
|
-
};
|
|
20019
|
-
} else if (ccSelectedFilter === "regex") {
|
|
20020
|
-
return qb ? qb.matchesRegex(filterValue) : (fieldVal) => {
|
|
20021
|
-
new RegExp(filterValue).test(fieldVal);
|
|
20022
|
-
return fieldVal;
|
|
20023
|
-
};
|
|
20024
|
-
}
|
|
20025
|
-
throw new Error(
|
|
20026
|
-
`Unsupported filter ${selectedFilter}. Please make a new filter if you need one`
|
|
20027
|
-
);
|
|
20028
|
-
}
|
|
20029
|
-
__name(getSubFilter, "getSubFilter");
|
|
20030
19928
|
function getCurrentParamsFromUrl(location2, isSimple) {
|
|
20031
19929
|
let { search: search2 } = location2;
|
|
20032
19930
|
if (isSimple) {
|
|
@@ -20098,22 +19996,6 @@ function parseFilters(newParams) {
|
|
|
20098
19996
|
});
|
|
20099
19997
|
}
|
|
20100
19998
|
__name(parseFilters, "parseFilters");
|
|
20101
|
-
function buildRef(qb, reference2, searchField, expression) {
|
|
20102
|
-
if (reference2.reference) {
|
|
20103
|
-
return qb.related(reference2.target).whereAny({
|
|
20104
|
-
[reference2.sourceField]: buildRef(
|
|
20105
|
-
qb,
|
|
20106
|
-
reference2.reference,
|
|
20107
|
-
searchField,
|
|
20108
|
-
expression
|
|
20109
|
-
)
|
|
20110
|
-
});
|
|
20111
|
-
}
|
|
20112
|
-
return qb.related(reference2.target).whereAny({
|
|
20113
|
-
[searchField]: expression
|
|
20114
|
-
});
|
|
20115
|
-
}
|
|
20116
|
-
__name(buildRef, "buildRef");
|
|
20117
19999
|
function makeDataTableHandlers({
|
|
20118
20000
|
setNewParams,
|
|
20119
20001
|
defaults,
|
|
@@ -20201,27 +20083,19 @@ function makeDataTableHandlers({
|
|
|
20201
20083
|
};
|
|
20202
20084
|
}
|
|
20203
20085
|
__name(makeDataTableHandlers, "makeDataTableHandlers");
|
|
20204
|
-
function
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
|
|
20211
|
-
|
|
20212
|
-
|
|
20213
|
-
|
|
20214
|
-
function getAllFilters(filters, searchTerm, schema) {
|
|
20215
|
-
let allFilters = [
|
|
20216
|
-
...filters,
|
|
20217
|
-
...getFiltersFromSearchTerm(searchTerm, schema)
|
|
20218
|
-
];
|
|
20219
|
-
allFilters = allFilters.filter((val) => {
|
|
20220
|
-
return val !== "";
|
|
20086
|
+
function cleanupFilters({ filters, ccFields }) {
|
|
20087
|
+
(filters || []).forEach((filter2) => {
|
|
20088
|
+
const { filterOn, filterValue } = filter2;
|
|
20089
|
+
const field = ccFields[filterOn];
|
|
20090
|
+
if (field.type === "number" || field.type === "integer") {
|
|
20091
|
+
filter2.filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
20092
|
+
}
|
|
20093
|
+
if (filter2.selectedFilter === "inList" && typeof filter2.filterValue === "number") {
|
|
20094
|
+
filter2.filterValue = filter2.filterValue.toString();
|
|
20095
|
+
}
|
|
20221
20096
|
});
|
|
20222
|
-
return allFilters.map(cleanupFilter);
|
|
20223
20097
|
}
|
|
20224
|
-
__name(
|
|
20098
|
+
__name(cleanupFilters, "cleanupFilters");
|
|
20225
20099
|
function getQueryParams({
|
|
20226
20100
|
currentParams,
|
|
20227
20101
|
urlConnected,
|
|
@@ -20231,88 +20105,45 @@ function getQueryParams({
|
|
|
20231
20105
|
entities,
|
|
20232
20106
|
isLocalCall,
|
|
20233
20107
|
additionalFilter,
|
|
20234
|
-
additionalOrFilter,
|
|
20235
20108
|
doNotCoercePageSize,
|
|
20236
20109
|
noOrderError,
|
|
20237
20110
|
isCodeModel,
|
|
20238
20111
|
ownProps
|
|
20239
20112
|
}) {
|
|
20240
|
-
|
|
20241
|
-
|
|
20242
|
-
|
|
20113
|
+
let errorParsingUrlString;
|
|
20114
|
+
try {
|
|
20115
|
+
Object.keys(currentParams).forEach(function(key) {
|
|
20116
|
+
if (currentParams[key] === void 0) {
|
|
20117
|
+
delete currentParams[key];
|
|
20118
|
+
}
|
|
20119
|
+
});
|
|
20120
|
+
const tableQueryParams = __spreadValues(__spreadValues({}, defaults), currentParams);
|
|
20121
|
+
let { page, pageSize, searchTerm, filters, order: order2 } = tableQueryParams;
|
|
20122
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
20123
|
+
cleanupFilters({ filters, ccFields });
|
|
20124
|
+
if (page <= 0 || isNaN(page)) {
|
|
20125
|
+
page = void 0;
|
|
20243
20126
|
}
|
|
20244
|
-
});
|
|
20245
|
-
const tableQueryParams = __spreadValues(__spreadValues({}, defaults), currentParams);
|
|
20246
|
-
let { page, pageSize, searchTerm, filters, order: order2 } = tableQueryParams;
|
|
20247
|
-
if (page <= 0 || isNaN(page)) {
|
|
20248
|
-
page = void 0;
|
|
20249
|
-
}
|
|
20250
|
-
if (isInfinite) {
|
|
20251
|
-
page = void 0;
|
|
20252
|
-
pageSize = void 0;
|
|
20253
|
-
}
|
|
20254
|
-
if (pageSize !== void 0 && !doNotCoercePageSize) {
|
|
20255
|
-
const closest = clone$1(window.tgPageSizes || defaultPageSizes).sort(
|
|
20256
|
-
(a2, b2) => Math.abs(pageSize - a2) - Math.abs(pageSize - b2)
|
|
20257
|
-
)[0];
|
|
20258
|
-
pageSize = closest;
|
|
20259
|
-
}
|
|
20260
|
-
const toReturn = {
|
|
20261
|
-
//these are values that might be generally useful for the wrapped component
|
|
20262
|
-
page,
|
|
20263
|
-
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20264
|
-
order: order2,
|
|
20265
|
-
filters,
|
|
20266
|
-
searchTerm
|
|
20267
|
-
};
|
|
20268
|
-
if (isLocalCall) {
|
|
20269
|
-
let newEntities = entities;
|
|
20270
|
-
newEntities = filterEntitiesLocal(
|
|
20271
|
-
filters,
|
|
20272
|
-
searchTerm,
|
|
20273
|
-
newEntities,
|
|
20274
|
-
schema,
|
|
20275
|
-
ownProps
|
|
20276
|
-
);
|
|
20277
|
-
newEntities = orderEntitiesLocal(order2, newEntities, schema, ownProps);
|
|
20278
|
-
const entitiesAcrossPages = newEntities;
|
|
20279
|
-
const newEntityCount = newEntities.length;
|
|
20280
|
-
if (!isInfinite && !ownProps.controlled_pageSize) {
|
|
20281
|
-
const offset3 = (page - 1) * pageSize;
|
|
20282
|
-
newEntities = take(drop(newEntities, offset3), pageSize);
|
|
20283
|
-
}
|
|
20284
|
-
toReturn.entities = newEntities;
|
|
20285
|
-
toReturn.entitiesAcrossPages = entitiesAcrossPages;
|
|
20286
|
-
toReturn.entityCount = newEntityCount;
|
|
20287
|
-
return toReturn;
|
|
20288
|
-
} else {
|
|
20289
|
-
const graphqlQueryParams = {
|
|
20290
|
-
// need to make sure sort exists because of https://github.com/apollographql/apollo-client/issues/3077
|
|
20291
|
-
sort: []
|
|
20292
|
-
};
|
|
20293
20127
|
if (isInfinite) {
|
|
20294
|
-
|
|
20295
|
-
|
|
20296
|
-
}
|
|
20297
|
-
|
|
20298
|
-
|
|
20299
|
-
|
|
20300
|
-
|
|
20301
|
-
|
|
20302
|
-
|
|
20303
|
-
const
|
|
20304
|
-
if (
|
|
20305
|
-
|
|
20128
|
+
page = void 0;
|
|
20129
|
+
pageSize = void 0;
|
|
20130
|
+
}
|
|
20131
|
+
if (pageSize !== void 0 && !doNotCoercePageSize) {
|
|
20132
|
+
const closest = clone$1(window.tgPageSizes || defaultPageSizes).sort(
|
|
20133
|
+
(a2, b2) => Math.abs(pageSize - a2) - Math.abs(pageSize - b2)
|
|
20134
|
+
)[0];
|
|
20135
|
+
pageSize = closest;
|
|
20136
|
+
}
|
|
20137
|
+
const cleanedOrder = [];
|
|
20138
|
+
if (order2 && order2.length) {
|
|
20139
|
+
order2.forEach((orderVal) => {
|
|
20306
20140
|
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
20307
20141
|
const schemaForField = ccFields[ccDisplayName];
|
|
20308
20142
|
if (schemaForField) {
|
|
20309
20143
|
const { path: path2 } = schemaForField;
|
|
20310
20144
|
const reversed = ccDisplayName !== orderVal;
|
|
20311
20145
|
const prefix2 = reversed ? "-" : "";
|
|
20312
|
-
|
|
20313
|
-
...graphqlQueryParams.sort || [],
|
|
20314
|
-
prefix2 + path2
|
|
20315
|
-
];
|
|
20146
|
+
cleanedOrder.push(prefix2 + path2);
|
|
20316
20147
|
} else {
|
|
20317
20148
|
!noOrderError && console.error(
|
|
20318
20149
|
"No schema for field found!",
|
|
@@ -20322,167 +20153,104 @@ function getQueryParams({
|
|
|
20322
20153
|
}
|
|
20323
20154
|
});
|
|
20324
20155
|
}
|
|
20325
|
-
let
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20329
|
-
|
|
20330
|
-
|
|
20331
|
-
|
|
20332
|
-
|
|
20333
|
-
const {
|
|
20334
|
-
|
|
20335
|
-
|
|
20336
|
-
|
|
20337
|
-
|
|
20338
|
-
|
|
20339
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20348
|
-
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
|
|
20358
|
-
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
}
|
|
20362
|
-
const columnCustomFilters = getColumnCustomFilters(
|
|
20363
|
-
andFilters,
|
|
20364
|
-
qb,
|
|
20365
|
-
ccFields
|
|
20156
|
+
let toRet = {
|
|
20157
|
+
//these are values that might be generally useful for the wrapped component
|
|
20158
|
+
page,
|
|
20159
|
+
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20160
|
+
order: cleanedOrder,
|
|
20161
|
+
filters,
|
|
20162
|
+
searchTerm
|
|
20163
|
+
};
|
|
20164
|
+
const { where, order_by, limit, offset: offset3 } = tableQueryParamsToHasuraClauses({
|
|
20165
|
+
page,
|
|
20166
|
+
pageSize,
|
|
20167
|
+
searchTerm,
|
|
20168
|
+
filters,
|
|
20169
|
+
order: cleanedOrder,
|
|
20170
|
+
schema
|
|
20171
|
+
});
|
|
20172
|
+
initializeHasuraWhereAndFilter(additionalFilter, where, currentParams);
|
|
20173
|
+
if (isLocalCall) {
|
|
20174
|
+
const r2 = filterLocalEntitiesToHasura(
|
|
20175
|
+
prepEntitiesForLocalFilter({ entities, ccFields }),
|
|
20176
|
+
{
|
|
20177
|
+
where,
|
|
20178
|
+
order_by: (Array.isArray(order_by) ? order_by : [order_by]).map(
|
|
20179
|
+
(obj) => {
|
|
20180
|
+
const path2 = Object.keys(obj)[0];
|
|
20181
|
+
return __spreadValues({
|
|
20182
|
+
path: path2,
|
|
20183
|
+
direction: obj[path2],
|
|
20184
|
+
ownProps
|
|
20185
|
+
}, ccFields[path2]);
|
|
20186
|
+
}
|
|
20187
|
+
),
|
|
20188
|
+
limit,
|
|
20189
|
+
offset: offset3,
|
|
20190
|
+
isInfinite
|
|
20191
|
+
}
|
|
20366
20192
|
);
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
|
|
20372
|
-
errorParsingUrlString = e;
|
|
20373
|
-
console.error(
|
|
20374
|
-
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20375
|
-
e
|
|
20376
|
-
);
|
|
20377
|
-
} else {
|
|
20378
|
-
console.error("Error building query params from filter:");
|
|
20379
|
-
throw e;
|
|
20193
|
+
toRet = __spreadValues(__spreadValues({}, toRet), r2);
|
|
20194
|
+
return toRet;
|
|
20195
|
+
} else {
|
|
20196
|
+
if (!order_by.length) {
|
|
20197
|
+
order_by.push({ updatedAt: "desc" });
|
|
20380
20198
|
}
|
|
20199
|
+
order_by.push(
|
|
20200
|
+
isCodeModel ? { code: "asc" } : { [window.__sortId || "id"]: "asc" }
|
|
20201
|
+
);
|
|
20202
|
+
return __spreadProps(__spreadValues({}, toRet), {
|
|
20203
|
+
variables: {
|
|
20204
|
+
where,
|
|
20205
|
+
order_by,
|
|
20206
|
+
limit,
|
|
20207
|
+
offset: offset3
|
|
20208
|
+
}
|
|
20209
|
+
});
|
|
20381
20210
|
}
|
|
20382
|
-
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20211
|
+
} catch (e) {
|
|
20212
|
+
if (urlConnected) {
|
|
20213
|
+
errorParsingUrlString = e;
|
|
20214
|
+
console.error(
|
|
20215
|
+
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20216
|
+
e
|
|
20217
|
+
);
|
|
20218
|
+
return {
|
|
20219
|
+
errorParsingUrlString,
|
|
20220
|
+
variables: {
|
|
20221
|
+
where: {},
|
|
20222
|
+
order_by: [],
|
|
20223
|
+
limit: 0,
|
|
20224
|
+
offset: 0
|
|
20225
|
+
}
|
|
20226
|
+
};
|
|
20227
|
+
} else {
|
|
20228
|
+
console.error("Error building query params from filter:");
|
|
20229
|
+
throw e;
|
|
20387
20230
|
}
|
|
20388
|
-
graphqlQueryParams.sort.push(
|
|
20389
|
-
isCodeModel ? "code" : window.__sortId || "id"
|
|
20390
|
-
);
|
|
20391
|
-
return __spreadProps(__spreadValues({}, toReturn), {
|
|
20392
|
-
//the query params will get passed directly to as variables to the graphql query
|
|
20393
|
-
variables: graphqlQueryParams,
|
|
20394
|
-
errorParsingUrlString
|
|
20395
|
-
});
|
|
20396
20231
|
}
|
|
20397
20232
|
}
|
|
20398
20233
|
__name(getQueryParams, "getQueryParams");
|
|
20399
|
-
function
|
|
20400
|
-
const
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
);
|
|
20410
|
-
}
|
|
20411
|
-
}
|
|
20412
|
-
const _subFilters = getSubFilter(qb, selectedFilter, filterValueToUse);
|
|
20413
|
-
let filterField;
|
|
20414
|
-
if (fieldSchema) {
|
|
20415
|
-
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20416
|
-
if (reference2) {
|
|
20417
|
-
filterField = reference2.sourceField;
|
|
20418
|
-
} else {
|
|
20419
|
-
filterField = path2;
|
|
20420
|
-
}
|
|
20421
|
-
} else if (filterOn === "id") {
|
|
20422
|
-
filterField = filterOn;
|
|
20423
|
-
} else {
|
|
20424
|
-
console.error("Trying to filter on unknown field");
|
|
20425
|
-
}
|
|
20426
|
-
const subFiltersToUse = [];
|
|
20427
|
-
const subFilters = Array.isArray(_subFilters) ? _subFilters : [_subFilters];
|
|
20428
|
-
subFilters.forEach((subFilter) => {
|
|
20429
|
-
let subFilterToUse = subFilter;
|
|
20430
|
-
if (fieldSchema) {
|
|
20431
|
-
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20432
|
-
if (reference2) {
|
|
20433
|
-
subFilterToUse = buildRef(
|
|
20434
|
-
qb,
|
|
20435
|
-
reference2,
|
|
20436
|
-
last$1(path2.split(".")),
|
|
20437
|
-
subFilter
|
|
20438
|
-
);
|
|
20234
|
+
function prepEntitiesForLocalFilter({ entities, ccFields }) {
|
|
20235
|
+
const r2 = entities.map((entity) => {
|
|
20236
|
+
const toSpread = {};
|
|
20237
|
+
let hasChanged = false;
|
|
20238
|
+
forEach(ccFields, ({ getValueToFilterOn, path: path2 }) => {
|
|
20239
|
+
if (getValueToFilterOn) {
|
|
20240
|
+
hasChanged = true;
|
|
20241
|
+
toSpread["___original___" + path2] = entity[path2];
|
|
20242
|
+
const value = getValueToFilterOn(entity);
|
|
20243
|
+
toSpread[path2] = value;
|
|
20439
20244
|
}
|
|
20245
|
+
});
|
|
20246
|
+
if (hasChanged) {
|
|
20247
|
+
return __spreadValues(__spreadValues({}, entity), toSpread);
|
|
20440
20248
|
}
|
|
20441
|
-
|
|
20249
|
+
return entity;
|
|
20442
20250
|
});
|
|
20443
|
-
return
|
|
20444
|
-
path: filterField,
|
|
20445
|
-
subFilters: subFiltersToUse
|
|
20446
|
-
};
|
|
20251
|
+
return r2;
|
|
20447
20252
|
}
|
|
20448
|
-
__name(
|
|
20449
|
-
function getQueries(filters, qb, ccFields) {
|
|
20450
|
-
const subQueries = filters.reduce((acc, filter2) => {
|
|
20451
|
-
if (!filter2) {
|
|
20452
|
-
console.warn("We should always have a filter object!");
|
|
20453
|
-
return acc;
|
|
20454
|
-
}
|
|
20455
|
-
const { filterOn } = filter2;
|
|
20456
|
-
const fieldSchema = ccFields[filterOn];
|
|
20457
|
-
if (!filter2.isSearchTermFilter && (fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter))
|
|
20458
|
-
return acc;
|
|
20459
|
-
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20460
|
-
acc[path2] = subFilters;
|
|
20461
|
-
return acc;
|
|
20462
|
-
}, {});
|
|
20463
|
-
return subQueries;
|
|
20464
|
-
}
|
|
20465
|
-
__name(getQueries, "getQueries");
|
|
20466
|
-
function getColumnCustomFilters(filters, qb, ccFields) {
|
|
20467
|
-
const subQueries = filters.reduce((acc, filter2) => {
|
|
20468
|
-
if (!filter2) {
|
|
20469
|
-
console.warn("We should always have a filter object!");
|
|
20470
|
-
return acc;
|
|
20471
|
-
}
|
|
20472
|
-
const { filterOn } = filter2;
|
|
20473
|
-
const fieldSchema = ccFields[filterOn];
|
|
20474
|
-
if (filter2.isSearchTermFilter || !(fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter)) {
|
|
20475
|
-
return acc;
|
|
20476
|
-
}
|
|
20477
|
-
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20478
|
-
subFilters.forEach((subFilter) => {
|
|
20479
|
-
acc.push(fieldSchema.additionalColumnFilter(qb, subFilter, path2));
|
|
20480
|
-
});
|
|
20481
|
-
return acc;
|
|
20482
|
-
}, []);
|
|
20483
|
-
return subQueries;
|
|
20484
|
-
}
|
|
20485
|
-
__name(getColumnCustomFilters, "getColumnCustomFilters");
|
|
20253
|
+
__name(prepEntitiesForLocalFilter, "prepEntitiesForLocalFilter");
|
|
20486
20254
|
function PagingInput({ disabled, onBlur, defaultPage }) {
|
|
20487
20255
|
const [page, setPage] = React.useState(defaultPage);
|
|
20488
20256
|
const defaultValue2 = React.useRef(defaultPage);
|
|
@@ -32286,7 +32054,15 @@ function requireColor() {
|
|
|
32286
32054
|
__name(requireColor, "requireColor");
|
|
32287
32055
|
var colorExports = requireColor();
|
|
32288
32056
|
const Color = /* @__PURE__ */ getDefaultExportFromCjs(colorExports);
|
|
32289
|
-
|
|
32057
|
+
function determineBlackOrWhiteTextColor(c2) {
|
|
32058
|
+
try {
|
|
32059
|
+
return Color(c2).isLight() ? "#000000" : "#FFFFFF";
|
|
32060
|
+
} catch (e) {
|
|
32061
|
+
console.error("Error in color parsing:", e);
|
|
32062
|
+
return "#000000";
|
|
32063
|
+
}
|
|
32064
|
+
}
|
|
32065
|
+
__name(determineBlackOrWhiteTextColor, "determineBlackOrWhiteTextColor");
|
|
32290
32066
|
function getTagsAndTagOptions(allTags) {
|
|
32291
32067
|
return flatMap(allTags, (tag) => {
|
|
32292
32068
|
if (tag.tagOptions && tag.tagOptions.length) {
|
|
@@ -32674,6 +32450,18 @@ const _TgSelect = class _TgSelect extends React.Component {
|
|
|
32674
32450
|
onKeyDown: /* @__PURE__ */ __name((e) => {
|
|
32675
32451
|
const { which } = e;
|
|
32676
32452
|
e.persist();
|
|
32453
|
+
if ((e.metaKey || e.ctrlKey) && which === core.Keys.ENTER) {
|
|
32454
|
+
e.preventDefault();
|
|
32455
|
+
const items = options || [];
|
|
32456
|
+
let activeItem = this.state.activeItem;
|
|
32457
|
+
if (!activeItem) {
|
|
32458
|
+
activeItem = items.find((opt) => !itemDisabled(opt));
|
|
32459
|
+
}
|
|
32460
|
+
if (activeItem) {
|
|
32461
|
+
this.handleItemSelect(activeItem, e);
|
|
32462
|
+
}
|
|
32463
|
+
return;
|
|
32464
|
+
}
|
|
32677
32465
|
if (which === core.Keys.ENTER) {
|
|
32678
32466
|
e.preventDefault();
|
|
32679
32467
|
}
|
|
@@ -32996,6 +32784,293 @@ const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
|
32996
32784
|
toReturn
|
|
32997
32785
|
);
|
|
32998
32786
|
}, "InfoHelper");
|
|
32787
|
+
var dayjs_min$1 = { exports: {} };
|
|
32788
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
32789
|
+
var hasRequiredDayjs_min;
|
|
32790
|
+
function requireDayjs_min() {
|
|
32791
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
32792
|
+
hasRequiredDayjs_min = 1;
|
|
32793
|
+
(function(module2, exports2) {
|
|
32794
|
+
!function(t2, e) {
|
|
32795
|
+
module2.exports = e();
|
|
32796
|
+
}(dayjs_min, function() {
|
|
32797
|
+
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) {
|
|
32798
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
32799
|
+
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
32800
|
+
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
32801
|
+
var r3 = String(t3);
|
|
32802
|
+
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
32803
|
+
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
32804
|
+
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
32805
|
+
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
32806
|
+
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
32807
|
+
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
32808
|
+
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);
|
|
32809
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
32810
|
+
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
32811
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
32812
|
+
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
32813
|
+
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$/, "");
|
|
32814
|
+
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
32815
|
+
return void 0 === t3;
|
|
32816
|
+
}, "u") }, g2 = "en", D2 = {};
|
|
32817
|
+
D2[g2] = M2;
|
|
32818
|
+
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
32819
|
+
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
32820
|
+
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
32821
|
+
var i3;
|
|
32822
|
+
if (!e2) return g2;
|
|
32823
|
+
if ("string" == typeof e2) {
|
|
32824
|
+
var s3 = e2.toLowerCase();
|
|
32825
|
+
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
32826
|
+
var u3 = e2.split("-");
|
|
32827
|
+
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
32828
|
+
} else {
|
|
32829
|
+
var a3 = e2.name;
|
|
32830
|
+
D2[a3] = e2, i3 = a3;
|
|
32831
|
+
}
|
|
32832
|
+
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
32833
|
+
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
32834
|
+
if (S2(t3)) return t3.clone();
|
|
32835
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
32836
|
+
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
32837
|
+
}, "O"), b2 = v2;
|
|
32838
|
+
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
32839
|
+
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
32840
|
+
};
|
|
32841
|
+
var _2 = function() {
|
|
32842
|
+
function M3(t3) {
|
|
32843
|
+
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
32844
|
+
}
|
|
32845
|
+
__name(M3, "M");
|
|
32846
|
+
var m3 = M3.prototype;
|
|
32847
|
+
return m3.parse = function(t3) {
|
|
32848
|
+
this.$d = function(t4) {
|
|
32849
|
+
var e2 = t4.date, n3 = t4.utc;
|
|
32850
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
32851
|
+
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
32852
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
32853
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
32854
|
+
var r3 = e2.match($);
|
|
32855
|
+
if (r3) {
|
|
32856
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
32857
|
+
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);
|
|
32858
|
+
}
|
|
32859
|
+
}
|
|
32860
|
+
return new Date(e2);
|
|
32861
|
+
}(t3), this.init();
|
|
32862
|
+
}, m3.init = function() {
|
|
32863
|
+
var t3 = this.$d;
|
|
32864
|
+
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();
|
|
32865
|
+
}, m3.$utils = function() {
|
|
32866
|
+
return b2;
|
|
32867
|
+
}, m3.isValid = function() {
|
|
32868
|
+
return !(this.$d.toString() === l2);
|
|
32869
|
+
}, m3.isSame = function(t3, e2) {
|
|
32870
|
+
var n3 = O2(t3);
|
|
32871
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
32872
|
+
}, m3.isAfter = function(t3, e2) {
|
|
32873
|
+
return O2(t3) < this.startOf(e2);
|
|
32874
|
+
}, m3.isBefore = function(t3, e2) {
|
|
32875
|
+
return this.endOf(e2) < O2(t3);
|
|
32876
|
+
}, m3.$g = function(t3, e2, n3) {
|
|
32877
|
+
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
32878
|
+
}, m3.unix = function() {
|
|
32879
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
32880
|
+
}, m3.valueOf = function() {
|
|
32881
|
+
return this.$d.getTime();
|
|
32882
|
+
}, m3.startOf = function(t3, e2) {
|
|
32883
|
+
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32884
|
+
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
32885
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
32886
|
+
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32887
|
+
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
32888
|
+
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
32889
|
+
switch (f3) {
|
|
32890
|
+
case h2:
|
|
32891
|
+
return r3 ? l3(1, 0) : l3(31, 11);
|
|
32892
|
+
case c2:
|
|
32893
|
+
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
32894
|
+
case o2:
|
|
32895
|
+
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
32896
|
+
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
32897
|
+
case a2:
|
|
32898
|
+
case d2:
|
|
32899
|
+
return $2(v3 + "Hours", 0);
|
|
32900
|
+
case u2:
|
|
32901
|
+
return $2(v3 + "Minutes", 1);
|
|
32902
|
+
case s2:
|
|
32903
|
+
return $2(v3 + "Seconds", 2);
|
|
32904
|
+
case i2:
|
|
32905
|
+
return $2(v3 + "Milliseconds", 3);
|
|
32906
|
+
default:
|
|
32907
|
+
return this.clone();
|
|
32908
|
+
}
|
|
32909
|
+
}, m3.endOf = function(t3) {
|
|
32910
|
+
return this.startOf(t3, false);
|
|
32911
|
+
}, m3.$set = function(t3, e2) {
|
|
32912
|
+
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;
|
|
32913
|
+
if (o3 === c2 || o3 === h2) {
|
|
32914
|
+
var y3 = this.clone().set(d2, 1);
|
|
32915
|
+
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
32916
|
+
} else l3 && this.$d[l3]($2);
|
|
32917
|
+
return this.init(), this;
|
|
32918
|
+
}, m3.set = function(t3, e2) {
|
|
32919
|
+
return this.clone().$set(t3, e2);
|
|
32920
|
+
}, m3.get = function(t3) {
|
|
32921
|
+
return this[b2.p(t3)]();
|
|
32922
|
+
}, m3.add = function(r3, f3) {
|
|
32923
|
+
var d3, l3 = this;
|
|
32924
|
+
r3 = Number(r3);
|
|
32925
|
+
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
32926
|
+
var e2 = O2(l3);
|
|
32927
|
+
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
32928
|
+
}, "y");
|
|
32929
|
+
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
32930
|
+
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
32931
|
+
if ($2 === a2) return y3(1);
|
|
32932
|
+
if ($2 === o2) return y3(7);
|
|
32933
|
+
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
32934
|
+
return b2.w(m4, this);
|
|
32935
|
+
}, m3.subtract = function(t3, e2) {
|
|
32936
|
+
return this.add(-1 * t3, e2);
|
|
32937
|
+
}, m3.format = function(t3) {
|
|
32938
|
+
var e2 = this, n3 = this.$locale();
|
|
32939
|
+
if (!this.isValid()) return n3.invalidDate || l2;
|
|
32940
|
+
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) {
|
|
32941
|
+
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
32942
|
+
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
32943
|
+
return b2.s(s3 % 12 || 12, t4, "0");
|
|
32944
|
+
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
32945
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
32946
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
32947
|
+
};
|
|
32948
|
+
return r3.replace(y2, function(t4, r4) {
|
|
32949
|
+
return r4 || function(t5) {
|
|
32950
|
+
switch (t5) {
|
|
32951
|
+
case "YY":
|
|
32952
|
+
return String(e2.$y).slice(-2);
|
|
32953
|
+
case "YYYY":
|
|
32954
|
+
return b2.s(e2.$y, 4, "0");
|
|
32955
|
+
case "M":
|
|
32956
|
+
return a3 + 1;
|
|
32957
|
+
case "MM":
|
|
32958
|
+
return b2.s(a3 + 1, 2, "0");
|
|
32959
|
+
case "MMM":
|
|
32960
|
+
return h3(n3.monthsShort, a3, c3, 3);
|
|
32961
|
+
case "MMMM":
|
|
32962
|
+
return h3(c3, a3);
|
|
32963
|
+
case "D":
|
|
32964
|
+
return e2.$D;
|
|
32965
|
+
case "DD":
|
|
32966
|
+
return b2.s(e2.$D, 2, "0");
|
|
32967
|
+
case "d":
|
|
32968
|
+
return String(e2.$W);
|
|
32969
|
+
case "dd":
|
|
32970
|
+
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
32971
|
+
case "ddd":
|
|
32972
|
+
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
32973
|
+
case "dddd":
|
|
32974
|
+
return o3[e2.$W];
|
|
32975
|
+
case "H":
|
|
32976
|
+
return String(s3);
|
|
32977
|
+
case "HH":
|
|
32978
|
+
return b2.s(s3, 2, "0");
|
|
32979
|
+
case "h":
|
|
32980
|
+
return d3(1);
|
|
32981
|
+
case "hh":
|
|
32982
|
+
return d3(2);
|
|
32983
|
+
case "a":
|
|
32984
|
+
return $2(s3, u3, true);
|
|
32985
|
+
case "A":
|
|
32986
|
+
return $2(s3, u3, false);
|
|
32987
|
+
case "m":
|
|
32988
|
+
return String(u3);
|
|
32989
|
+
case "mm":
|
|
32990
|
+
return b2.s(u3, 2, "0");
|
|
32991
|
+
case "s":
|
|
32992
|
+
return String(e2.$s);
|
|
32993
|
+
case "ss":
|
|
32994
|
+
return b2.s(e2.$s, 2, "0");
|
|
32995
|
+
case "SSS":
|
|
32996
|
+
return b2.s(e2.$ms, 3, "0");
|
|
32997
|
+
case "Z":
|
|
32998
|
+
return i3;
|
|
32999
|
+
}
|
|
33000
|
+
return null;
|
|
33001
|
+
}(t4) || i3.replace(":", "");
|
|
33002
|
+
});
|
|
33003
|
+
}, m3.utcOffset = function() {
|
|
33004
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
33005
|
+
}, m3.diff = function(r3, d3, l3) {
|
|
33006
|
+
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
33007
|
+
return b2.m(y3, m4);
|
|
33008
|
+
}, "D");
|
|
33009
|
+
switch (M4) {
|
|
33010
|
+
case h2:
|
|
33011
|
+
$2 = D3() / 12;
|
|
33012
|
+
break;
|
|
33013
|
+
case c2:
|
|
33014
|
+
$2 = D3();
|
|
33015
|
+
break;
|
|
33016
|
+
case f2:
|
|
33017
|
+
$2 = D3() / 3;
|
|
33018
|
+
break;
|
|
33019
|
+
case o2:
|
|
33020
|
+
$2 = (g3 - v3) / 6048e5;
|
|
33021
|
+
break;
|
|
33022
|
+
case a2:
|
|
33023
|
+
$2 = (g3 - v3) / 864e5;
|
|
33024
|
+
break;
|
|
33025
|
+
case u2:
|
|
33026
|
+
$2 = g3 / n2;
|
|
33027
|
+
break;
|
|
33028
|
+
case s2:
|
|
33029
|
+
$2 = g3 / e;
|
|
33030
|
+
break;
|
|
33031
|
+
case i2:
|
|
33032
|
+
$2 = g3 / t2;
|
|
33033
|
+
break;
|
|
33034
|
+
default:
|
|
33035
|
+
$2 = g3;
|
|
33036
|
+
}
|
|
33037
|
+
return l3 ? $2 : b2.a($2);
|
|
33038
|
+
}, m3.daysInMonth = function() {
|
|
33039
|
+
return this.endOf(c2).$D;
|
|
33040
|
+
}, m3.$locale = function() {
|
|
33041
|
+
return D2[this.$L];
|
|
33042
|
+
}, m3.locale = function(t3, e2) {
|
|
33043
|
+
if (!t3) return this.$L;
|
|
33044
|
+
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
33045
|
+
return r3 && (n3.$L = r3), n3;
|
|
33046
|
+
}, m3.clone = function() {
|
|
33047
|
+
return b2.w(this.$d, this);
|
|
33048
|
+
}, m3.toDate = function() {
|
|
33049
|
+
return new Date(this.valueOf());
|
|
33050
|
+
}, m3.toJSON = function() {
|
|
33051
|
+
return this.isValid() ? this.toISOString() : null;
|
|
33052
|
+
}, m3.toISOString = function() {
|
|
33053
|
+
return this.$d.toISOString();
|
|
33054
|
+
}, m3.toString = function() {
|
|
33055
|
+
return this.$d.toUTCString();
|
|
33056
|
+
}, M3;
|
|
33057
|
+
}(), k2 = _2.prototype;
|
|
33058
|
+
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
33059
|
+
k2[t3[1]] = function(e2) {
|
|
33060
|
+
return this.$g(e2, t3[0], t3[1]);
|
|
33061
|
+
};
|
|
33062
|
+
}), O2.extend = function(t3, e2) {
|
|
33063
|
+
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
33064
|
+
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
33065
|
+
return O2(1e3 * t3);
|
|
33066
|
+
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
33067
|
+
});
|
|
33068
|
+
})(dayjs_min$1);
|
|
33069
|
+
return dayjs_min$1.exports;
|
|
33070
|
+
}
|
|
33071
|
+
__name(requireDayjs_min, "requireDayjs_min");
|
|
33072
|
+
var dayjs_minExports = requireDayjs_min();
|
|
33073
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
32999
33074
|
var localizedFormat$2 = { exports: {} };
|
|
33000
33075
|
var localizedFormat$1 = localizedFormat$2.exports;
|
|
33001
33076
|
var hasRequiredLocalizedFormat;
|
|
@@ -33265,7 +33340,7 @@ function removeUnwantedProps(props) {
|
|
|
33265
33340
|
return cleanedProps;
|
|
33266
33341
|
}
|
|
33267
33342
|
__name(removeUnwantedProps, "removeUnwantedProps");
|
|
33268
|
-
const LabelWithTooltipInfo = /* @__PURE__ */ __name(({ label, tooltipInfo, labelStyle }) => tooltipInfo ? /* @__PURE__ */ React.createElement("
|
|
33343
|
+
const LabelWithTooltipInfo = /* @__PURE__ */ __name(({ label, tooltipInfo, labelStyle }) => tooltipInfo ? /* @__PURE__ */ React.createElement("span", { style: __spreadValues({ display: "flex", alignItems: "center" }, labelStyle) }, label, " ", /* @__PURE__ */ React.createElement(
|
|
33269
33344
|
InfoHelper,
|
|
33270
33345
|
{
|
|
33271
33346
|
style: { marginLeft: "5px", marginTop: "-6px" },
|
|
@@ -50786,42 +50861,42 @@ function getFilterMenuItems(dataType) {
|
|
|
50786
50861
|
let filterMenuItems2 = [];
|
|
50787
50862
|
if (dataType === "string") {
|
|
50788
50863
|
filterMenuItems2 = [
|
|
50789
|
-
"
|
|
50790
|
-
"
|
|
50791
|
-
"
|
|
50792
|
-
"
|
|
50793
|
-
"
|
|
50794
|
-
"
|
|
50795
|
-
"
|
|
50796
|
-
"
|
|
50797
|
-
"
|
|
50798
|
-
"
|
|
50864
|
+
"contains",
|
|
50865
|
+
"notContains",
|
|
50866
|
+
"startsWith",
|
|
50867
|
+
"endsWith",
|
|
50868
|
+
"isExactly",
|
|
50869
|
+
"regex",
|
|
50870
|
+
"inList",
|
|
50871
|
+
"notInList",
|
|
50872
|
+
"isEmpty",
|
|
50873
|
+
"notEmpty"
|
|
50799
50874
|
];
|
|
50800
50875
|
} else if (dataType === "lookup") {
|
|
50801
50876
|
filterMenuItems2 = [
|
|
50802
|
-
"
|
|
50803
|
-
"
|
|
50804
|
-
"
|
|
50805
|
-
"
|
|
50806
|
-
"
|
|
50807
|
-
"
|
|
50877
|
+
"contains",
|
|
50878
|
+
"notContains",
|
|
50879
|
+
"startsWith",
|
|
50880
|
+
"endsWith",
|
|
50881
|
+
"isExactly",
|
|
50882
|
+
"regex"
|
|
50808
50883
|
];
|
|
50809
50884
|
} else if (dataType === "boolean") {
|
|
50810
|
-
filterMenuItems2 = ["
|
|
50885
|
+
filterMenuItems2 = ["true", "false"];
|
|
50811
50886
|
} else if (dataType === "number" || dataType === "integer") {
|
|
50812
50887
|
filterMenuItems2 = [
|
|
50813
|
-
"
|
|
50814
|
-
"
|
|
50815
|
-
"
|
|
50816
|
-
"
|
|
50817
|
-
"
|
|
50818
|
-
"
|
|
50819
|
-
"
|
|
50888
|
+
"greaterThan",
|
|
50889
|
+
"lessThan",
|
|
50890
|
+
"inRange",
|
|
50891
|
+
"outsideRange",
|
|
50892
|
+
"equalTo",
|
|
50893
|
+
"inList",
|
|
50894
|
+
"notInList"
|
|
50820
50895
|
];
|
|
50821
50896
|
} else if (dataType === "timestamp") {
|
|
50822
|
-
filterMenuItems2 = ["
|
|
50897
|
+
filterMenuItems2 = ["isBetween", "notBetween", "isBefore", "isAfter"];
|
|
50823
50898
|
}
|
|
50824
|
-
return filterMenuItems2;
|
|
50899
|
+
return filterMenuItems2.map((item) => startCase(item));
|
|
50825
50900
|
}
|
|
50826
50901
|
__name(getFilterMenuItems, "getFilterMenuItems");
|
|
50827
50902
|
const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
@@ -51322,7 +51397,7 @@ const RenderColumnHeader = /* @__PURE__ */ __name(({
|
|
|
51322
51397
|
if (order2 && order2.length) {
|
|
51323
51398
|
order2.forEach((order22) => {
|
|
51324
51399
|
const orderField = order22.replace("-", "");
|
|
51325
|
-
if (orderField ===
|
|
51400
|
+
if (orderField === path2) {
|
|
51326
51401
|
if (orderField === order22) {
|
|
51327
51402
|
ordering = "asc";
|
|
51328
51403
|
} else {
|
|
@@ -56258,6 +56333,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56258
56333
|
);
|
|
56259
56334
|
const tableRef = React.useRef();
|
|
56260
56335
|
const alreadySelected = React.useRef(false);
|
|
56336
|
+
const [noVirtual, setNoVirtual] = React.useState(false);
|
|
56261
56337
|
const [onlyShowRowsWErrors, setOnlyShowRowsWErrors] = React.useState(false);
|
|
56262
56338
|
const [entitiesUndoRedoStack, setEntitiesUndoRedoStack] = React.useState({
|
|
56263
56339
|
currentVersion: 0
|
|
@@ -56409,8 +56485,6 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56409
56485
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
56410
56486
|
const queryParams = React.useMemo(() => {
|
|
56411
56487
|
if (!isTableParamsConnected) {
|
|
56412
|
-
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
56413
|
-
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
56414
56488
|
return getQueryParams({
|
|
56415
56489
|
doNotCoercePageSize,
|
|
56416
56490
|
currentParams,
|
|
@@ -56421,8 +56495,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56421
56495
|
schema: convertedSchema,
|
|
56422
56496
|
isInfinite,
|
|
56423
56497
|
isLocalCall,
|
|
56424
|
-
additionalFilter:
|
|
56425
|
-
additionalOrFilter: additionalOrFilterToUse,
|
|
56498
|
+
additionalFilter: props.additionalFilter,
|
|
56426
56499
|
noOrderError: props.noOrderError,
|
|
56427
56500
|
isCodeModel: props.isCodeModel,
|
|
56428
56501
|
ownProps: props
|
|
@@ -56645,7 +56718,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56645
56718
|
}) : !val;
|
|
56646
56719
|
});
|
|
56647
56720
|
}
|
|
56648
|
-
if (noValsForField) {
|
|
56721
|
+
if (noValsForField && entities.length) {
|
|
56649
56722
|
return __spreadProps(__spreadValues({}, field), {
|
|
56650
56723
|
isHidden: true,
|
|
56651
56724
|
isForcedHidden: true
|
|
@@ -57102,76 +57175,94 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57102
57175
|
updateEntitiesHelper,
|
|
57103
57176
|
updateValidation
|
|
57104
57177
|
]);
|
|
57105
|
-
const
|
|
57106
|
-
(
|
|
57107
|
-
|
|
57108
|
-
|
|
57109
|
-
|
|
57110
|
-
|
|
57111
|
-
|
|
57112
|
-
|
|
57113
|
-
|
|
57114
|
-
|
|
57115
|
-
|
|
57116
|
-
|
|
57117
|
-
|
|
57118
|
-
|
|
57119
|
-
|
|
57120
|
-
|
|
57121
|
-
|
|
57122
|
-
|
|
57123
|
-
|
|
57124
|
-
|
|
57125
|
-
|
|
57126
|
-
|
|
57127
|
-
|
|
57128
|
-
|
|
57129
|
-
|
|
57130
|
-
|
|
57131
|
-
|
|
57132
|
-
|
|
57133
|
-
|
|
57134
|
-
|
|
57135
|
-
|
|
57136
|
-
|
|
57137
|
-
|
|
57138
|
-
|
|
57139
|
-
if (
|
|
57140
|
-
|
|
57141
|
-
} else {
|
|
57142
|
-
const jsonRow = [];
|
|
57143
|
-
let [rowCopyText, json] = getRowCopyText(allRows[i2 + 1]);
|
|
57144
|
-
rowCopyText = rowCopyText.split(" ");
|
|
57145
|
-
times(row.length, (i22) => {
|
|
57146
|
-
const cell = row[i22];
|
|
57147
|
-
if (cell) {
|
|
57148
|
-
fullCellText += rowCopyText[i22];
|
|
57149
|
-
jsonRow.push(json[i22]);
|
|
57150
|
-
}
|
|
57151
|
-
if (i22 !== row.length - 1 && i22 >= firstCellIndex)
|
|
57152
|
-
fullCellText += " ";
|
|
57153
|
-
});
|
|
57154
|
-
fullJson.push(jsonRow);
|
|
57178
|
+
const waitUntilAllRowsAreRendered = React.useCallback(() => {
|
|
57179
|
+
return new Promise((resolve) => {
|
|
57180
|
+
const interval = setInterval(() => {
|
|
57181
|
+
var _a2, _b;
|
|
57182
|
+
const allRowEls = (_b = (_a2 = tableRef.current) == null ? void 0 : _a2.tableRef) == null ? void 0 : _b.querySelectorAll(".rt-tr-group");
|
|
57183
|
+
if ((allRowEls == null ? void 0 : allRowEls.length) === entities.length) {
|
|
57184
|
+
clearInterval(interval);
|
|
57185
|
+
resolve();
|
|
57186
|
+
}
|
|
57187
|
+
}, 50);
|
|
57188
|
+
});
|
|
57189
|
+
}, []);
|
|
57190
|
+
const handleCopySelectedCells = React.useCallback(() => __async(exports, null, function* () {
|
|
57191
|
+
if (isEmpty$1(selectedCells)) return;
|
|
57192
|
+
if (entities.length > VIRTUALIZE_CUTOFF_LENGTH) {
|
|
57193
|
+
setNoVirtual(true);
|
|
57194
|
+
yield waitUntilAllRowsAreRendered();
|
|
57195
|
+
}
|
|
57196
|
+
const pathToIndex = getFieldPathToIndex(schema);
|
|
57197
|
+
const entityIdToEntity = getEntityIdToEntity(entities);
|
|
57198
|
+
const selectionGrid = [];
|
|
57199
|
+
let firstRowIndex;
|
|
57200
|
+
let firstCellIndex;
|
|
57201
|
+
Object.keys(selectedCells).forEach((key) => {
|
|
57202
|
+
const [rowId, path2] = key.split(":");
|
|
57203
|
+
const eInfo = entityIdToEntity[rowId];
|
|
57204
|
+
if (eInfo) {
|
|
57205
|
+
if (firstRowIndex === void 0 || eInfo.i < firstRowIndex) {
|
|
57206
|
+
firstRowIndex = eInfo.i;
|
|
57207
|
+
}
|
|
57208
|
+
if (!selectionGrid[eInfo.i]) {
|
|
57209
|
+
selectionGrid[eInfo.i] = [];
|
|
57210
|
+
}
|
|
57211
|
+
const cellIndex = pathToIndex[path2];
|
|
57212
|
+
if (firstCellIndex === void 0 || cellIndex < firstCellIndex) {
|
|
57213
|
+
firstCellIndex = cellIndex;
|
|
57155
57214
|
}
|
|
57156
|
-
|
|
57157
|
-
|
|
57158
|
-
|
|
57159
|
-
|
|
57160
|
-
|
|
57161
|
-
|
|
57215
|
+
selectionGrid[eInfo.i][cellIndex] = true;
|
|
57216
|
+
}
|
|
57217
|
+
});
|
|
57218
|
+
if (firstRowIndex === void 0) return;
|
|
57219
|
+
const allRows = getAllRows(tableRef);
|
|
57220
|
+
let fullCellText = "";
|
|
57221
|
+
const fullJson = [];
|
|
57222
|
+
times(selectionGrid.length, (i2) => {
|
|
57223
|
+
const row = selectionGrid[i2];
|
|
57224
|
+
if (fullCellText) {
|
|
57225
|
+
fullCellText += "\n";
|
|
57226
|
+
}
|
|
57227
|
+
if (!row) {
|
|
57228
|
+
return;
|
|
57229
|
+
} else {
|
|
57230
|
+
const jsonRow = [];
|
|
57231
|
+
let [rowCopyText, json] = getRowCopyText(allRows[i2 + 1]);
|
|
57232
|
+
rowCopyText = rowCopyText.split(" ");
|
|
57233
|
+
times(row.length, (i22) => {
|
|
57234
|
+
const cell = row[i22];
|
|
57235
|
+
if (cell) {
|
|
57236
|
+
fullCellText += rowCopyText[i22];
|
|
57237
|
+
jsonRow.push(json[i22]);
|
|
57238
|
+
}
|
|
57239
|
+
if (i22 !== row.length - 1 && i22 >= firstCellIndex) fullCellText += " ";
|
|
57240
|
+
});
|
|
57241
|
+
fullJson.push(jsonRow);
|
|
57242
|
+
}
|
|
57243
|
+
});
|
|
57244
|
+
if (!fullCellText) return window.toastr.warning("No text to copy");
|
|
57245
|
+
handleCopyHelper(fullCellText, fullJson, "Selected cells copied");
|
|
57246
|
+
setNoVirtual(false);
|
|
57247
|
+
}), [entities, selectedCells, schema, waitUntilAllRowsAreRendered]);
|
|
57162
57248
|
const handleCopySelectedRows = React.useCallback(
|
|
57163
|
-
(selectedRecords,
|
|
57164
|
-
|
|
57165
|
-
|
|
57249
|
+
(selectedRecords) => __async(exports, null, function* () {
|
|
57250
|
+
if (entities.length > VIRTUALIZE_CUTOFF_LENGTH) {
|
|
57251
|
+
setNoVirtual(true);
|
|
57252
|
+
yield waitUntilAllRowsAreRendered();
|
|
57253
|
+
}
|
|
57254
|
+
const idToIndex = entities.reduce((acc, e, i2) => {
|
|
57255
|
+
acc[e.id || e.code] = i2;
|
|
57166
57256
|
return acc;
|
|
57167
57257
|
}, {});
|
|
57168
57258
|
const rowNumbersToCopy = selectedRecords.map((rec) => idToIndex[rec.id || rec.code] + 1).sort();
|
|
57169
57259
|
if (!rowNumbersToCopy.length) return;
|
|
57170
57260
|
rowNumbersToCopy.unshift(0);
|
|
57171
57261
|
try {
|
|
57172
|
-
const allRowEls = getAllRows(
|
|
57262
|
+
const allRowEls = getAllRows(tableRef);
|
|
57173
57263
|
if (!allRowEls) return;
|
|
57174
57264
|
const rowEls = rowNumbersToCopy.map((i2) => allRowEls[i2]);
|
|
57265
|
+
if (window.Cypress) window.Cypress.__copiedRowsLength = rowEls.length;
|
|
57175
57266
|
handleCopyRows(rowEls, {
|
|
57176
57267
|
onFinishMsg: "Selected rows copied"
|
|
57177
57268
|
});
|
|
@@ -57179,8 +57270,9 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57179
57270
|
console.error(`error:`, error);
|
|
57180
57271
|
window.toastr.error("Error copying rows.");
|
|
57181
57272
|
}
|
|
57182
|
-
|
|
57183
|
-
|
|
57273
|
+
setNoVirtual(false);
|
|
57274
|
+
}),
|
|
57275
|
+
[entities, waitUntilAllRowsAreRendered]
|
|
57184
57276
|
);
|
|
57185
57277
|
const handleCopyHotkey = React.useCallback(
|
|
57186
57278
|
(e) => {
|
|
@@ -57947,7 +58039,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57947
58039
|
{
|
|
57948
58040
|
key: "copyColumn",
|
|
57949
58041
|
onClick: /* @__PURE__ */ __name(() => {
|
|
57950
|
-
handleCopyColumn(
|
|
58042
|
+
handleCopyColumn(tableRef, cellWrapper);
|
|
57951
58043
|
}, "onClick"),
|
|
57952
58044
|
text: "Column"
|
|
57953
58045
|
}
|
|
@@ -57960,7 +58052,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
57960
58052
|
{
|
|
57961
58053
|
key: "copyColumnSelected",
|
|
57962
58054
|
onClick: /* @__PURE__ */ __name(() => {
|
|
57963
|
-
handleCopyColumn(
|
|
58055
|
+
handleCopyColumn(tableRef, cellWrapper, selectedRecords);
|
|
57964
58056
|
}, "onClick"),
|
|
57965
58057
|
text: "Column (Selected)"
|
|
57966
58058
|
}
|
|
@@ -58003,7 +58095,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58003
58095
|
{
|
|
58004
58096
|
key: "copyFullTableRows",
|
|
58005
58097
|
onClick: /* @__PURE__ */ __name(() => {
|
|
58006
|
-
handleCopyTable(
|
|
58098
|
+
handleCopyTable(tableRef);
|
|
58007
58099
|
}, "onClick"),
|
|
58008
58100
|
text: "Table"
|
|
58009
58101
|
}
|
|
@@ -58540,6 +58632,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58540
58632
|
__spreadValues({
|
|
58541
58633
|
data: filteredEnts,
|
|
58542
58634
|
ref: tableRef,
|
|
58635
|
+
noVirtual,
|
|
58543
58636
|
className: classNames({
|
|
58544
58637
|
isCellEditable,
|
|
58545
58638
|
"tg-table-loading": isLoading,
|
|
@@ -58607,7 +58700,8 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58607
58700
|
resizePersist,
|
|
58608
58701
|
resized,
|
|
58609
58702
|
rowsToShow,
|
|
58610
|
-
style
|
|
58703
|
+
style,
|
|
58704
|
+
noVirtual
|
|
58611
58705
|
]
|
|
58612
58706
|
);
|
|
58613
58707
|
return /* @__PURE__ */ React.createElement("div", { tabIndex: "1", onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }, /* @__PURE__ */ React.createElement(
|
|
@@ -58810,7 +58904,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58810
58904
|
try {
|
|
58811
58905
|
const allEntities = yield safeQuery(fragment, {
|
|
58812
58906
|
variables: {
|
|
58813
|
-
|
|
58907
|
+
where: variables.where,
|
|
58814
58908
|
sort: variables.sort
|
|
58815
58909
|
},
|
|
58816
58910
|
canCancel: true
|
|
@@ -58890,8 +58984,8 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
58890
58984
|
), /* @__PURE__ */ React.createElement(
|
|
58891
58985
|
core.Button,
|
|
58892
58986
|
{
|
|
58893
|
-
onClick: /* @__PURE__ */ __name((
|
|
58894
|
-
handleCopyTable(
|
|
58987
|
+
onClick: /* @__PURE__ */ __name(() => {
|
|
58988
|
+
handleCopyTable(tableRef, { isDownload: true });
|
|
58895
58989
|
}, "onClick"),
|
|
58896
58990
|
"data-tip": "Download Table as CSV",
|
|
58897
58991
|
minimal: true,
|
|
@@ -69190,6 +69284,7 @@ function parseCsvOrExcelFile(_0) {
|
|
|
69190
69284
|
}
|
|
69191
69285
|
__name(parseCsvOrExcelFile, "parseCsvOrExcelFile");
|
|
69192
69286
|
const filterFilesInZip = /* @__PURE__ */ __name((file, accepted) => __async(exports, null, function* () {
|
|
69287
|
+
var _a, _b, _c, _d;
|
|
69193
69288
|
if (!file || Array.isArray(file) && !file.length) return [];
|
|
69194
69289
|
const zipExtracted = yield extractZipFiles(file);
|
|
69195
69290
|
const acceptedFiles = [];
|
|
@@ -69199,9 +69294,12 @@ const filterFilesInZip = /* @__PURE__ */ __name((file, accepted) => __async(expo
|
|
|
69199
69294
|
}
|
|
69200
69295
|
}
|
|
69201
69296
|
if (acceptedFiles.length && acceptedFiles.length < zipExtracted.length)
|
|
69202
|
-
window.toastr.warning
|
|
69297
|
+
(_b = (_a = window == null ? void 0 : window.toastr) == null ? void 0 : _a.warning) == null ? void 0 : _b.call(
|
|
69298
|
+
_a,
|
|
69299
|
+
"Some files don't have the proper file extension."
|
|
69300
|
+
);
|
|
69203
69301
|
if (!acceptedFiles.length)
|
|
69204
|
-
window.toastr.warning("No files with the proper extension were found.");
|
|
69302
|
+
(_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.");
|
|
69205
69303
|
return acceptedFiles;
|
|
69206
69304
|
}), "filterFilesInZip");
|
|
69207
69305
|
function removeExt(filename) {
|
|
@@ -71182,8 +71280,12 @@ const Uploader = /* @__PURE__ */ __name(({
|
|
|
71182
71280
|
onClick: /* @__PURE__ */ __name((evt) => evt.preventDefault(), "onClick"),
|
|
71183
71281
|
multiple: fileLimit !== 1,
|
|
71184
71282
|
accept: simpleAccept ? simpleAccept.split(", ").map((acc) => acc.startsWith(".") ? acc : "." + acc).join(", ") : void 0,
|
|
71185
|
-
onDrop: /* @__PURE__ */ __name((_acceptedFiles, rejectedFiles) => __async(exports, null, function* () {
|
|
71283
|
+
onDrop: /* @__PURE__ */ __name((_acceptedFiles, rejectedFiles, e) => __async(exports, null, function* () {
|
|
71186
71284
|
var _a2, _b2;
|
|
71285
|
+
const parentDropzone = e.target.closest(".tg-dropzone");
|
|
71286
|
+
if (parentDropzone) {
|
|
71287
|
+
parentDropzone.blur();
|
|
71288
|
+
}
|
|
71187
71289
|
let acceptedFiles = [];
|
|
71188
71290
|
for (const file of _acceptedFiles) {
|
|
71189
71291
|
if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
|
|
@@ -71814,7 +71916,6 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71814
71916
|
var _a;
|
|
71815
71917
|
const {
|
|
71816
71918
|
additionalFilter,
|
|
71817
|
-
additionalOrFilter,
|
|
71818
71919
|
controlled_pageSize,
|
|
71819
71920
|
defaults: _defaults,
|
|
71820
71921
|
doNotCoercePageSize,
|
|
@@ -71922,8 +72023,6 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71922
72023
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
71923
72024
|
);
|
|
71924
72025
|
const queryParams = React.useMemo(() => {
|
|
71925
|
-
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
71926
|
-
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
71927
72026
|
return getQueryParams({
|
|
71928
72027
|
doNotCoercePageSize,
|
|
71929
72028
|
currentParams,
|
|
@@ -71934,8 +72033,7 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71934
72033
|
schema: convertedSchema,
|
|
71935
72034
|
isInfinite: isInfinite || isSimple && !withPaging,
|
|
71936
72035
|
isLocalCall,
|
|
71937
|
-
additionalFilter
|
|
71938
|
-
additionalOrFilter: additionalOrFilterToUse,
|
|
72036
|
+
additionalFilter,
|
|
71939
72037
|
noOrderError,
|
|
71940
72038
|
isCodeModel,
|
|
71941
72039
|
ownProps: passingProps
|
|
@@ -71943,7 +72041,6 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71943
72041
|
}, [
|
|
71944
72042
|
additionalFilter,
|
|
71945
72043
|
passingProps,
|
|
71946
|
-
additionalOrFilter,
|
|
71947
72044
|
doNotCoercePageSize,
|
|
71948
72045
|
currentParams,
|
|
71949
72046
|
entities,
|
|
@@ -78097,6 +78194,7 @@ exports.createDynamicBarMenu = createDynamicBarMenu;
|
|
|
78097
78194
|
exports.createDynamicMenu = createDynamicMenu;
|
|
78098
78195
|
exports.createMenu = createMenu;
|
|
78099
78196
|
exports.designIcon = designIcon;
|
|
78197
|
+
exports.determineBlackOrWhiteTextColor = determineBlackOrWhiteTextColor;
|
|
78100
78198
|
exports.dnaIcon = dnaIcon;
|
|
78101
78199
|
exports.doesSearchValMatchText = doesSearchValMatchText;
|
|
78102
78200
|
exports.driveIcon = driveIcon;
|
|
@@ -78119,6 +78217,7 @@ exports.getTagProps = getTagProps;
|
|
|
78119
78217
|
exports.getTagsAndTagOptions = getTagsAndTagOptions;
|
|
78120
78218
|
exports.getTextFromEl = getTextFromEl;
|
|
78121
78219
|
exports.hotkeysById = hotkeysById;
|
|
78220
|
+
exports.initializeHasuraWhereAndFilter = initializeHasuraWhereAndFilter;
|
|
78122
78221
|
exports.inventoryIcon = inventoryIcon;
|
|
78123
78222
|
exports.isSafari = isSafari;
|
|
78124
78223
|
exports.keyboardIcon = keyboardIcon;
|