@teselagen/ui 0.7.33-beta.5 → 0.7.33
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/AdvancedOptions.js +33 -0
- package/AssignDefaultsModeContext.js +22 -0
- package/CellDragHandle.js +132 -0
- package/ColumnFilterMenu.js +62 -0
- package/Columns.js +979 -0
- package/DataTable/utils/queryParams.d.ts +18 -9
- package/DisabledLoadingComponent.js +15 -0
- package/DisplayOptions.js +199 -0
- package/DropdownButton.js +36 -0
- package/DropdownCell.js +61 -0
- package/EditableCell.js +44 -0
- package/FillWindow.css +6 -0
- package/FillWindow.js +69 -0
- package/FilterAndSortMenu.js +391 -0
- package/FormSeparator.js +9 -0
- package/LoadingDots.js +14 -0
- package/MatchHeaders.js +234 -0
- package/PagingTool.js +225 -0
- package/RenderCell.js +191 -0
- package/SearchBar.js +69 -0
- package/SimpleStepViz.js +22 -0
- package/SortableColumns.js +100 -0
- package/TableFormTrackerContext.js +10 -0
- package/Tag.js +112 -0
- package/ThComponent.js +44 -0
- package/TimelineEvent.js +31 -0
- package/UploadCsvWizard.css +4 -0
- package/UploadCsvWizard.js +719 -0
- package/Uploader.js +1278 -0
- package/adHoc.js +10 -0
- package/autoTooltip.js +201 -0
- package/basicHandleActionsWithFullState.js +14 -0
- package/browserUtils.js +3 -0
- package/combineReducersWithFullState.js +14 -0
- package/commandControls.js +82 -0
- package/commandUtils.js +112 -0
- package/constants.js +1 -0
- package/convertSchema.js +69 -0
- package/customIcons.js +361 -0
- package/dataTableEnhancer.js +41 -0
- package/defaultFormatters.js +32 -0
- package/defaultValidators.js +40 -0
- package/determineBlackOrWhiteTextColor.js +4 -0
- package/editCellHelper.js +44 -0
- package/formatPasteData.js +16 -0
- package/getAllRows.js +11 -0
- package/getCellCopyText.js +7 -0
- package/getCellInfo.js +36 -0
- package/getCellVal.js +20 -0
- package/getDayjsFormatter.js +35 -0
- package/getFieldPathToField.js +7 -0
- package/getIdOrCodeOrIndex.js +9 -0
- package/getLastSelectedEntity.js +11 -0
- package/getNewEntToSelect.js +25 -0
- package/getNewName.js +31 -0
- package/getRowCopyText.js +28 -0
- package/getTableConfigFromStorage.js +5 -0
- package/getTextFromEl.js +28 -0
- package/getVals.js +8 -0
- package/handleCopyColumn.js +21 -0
- package/handleCopyHelper.js +15 -0
- package/handleCopyRows.js +23 -0
- package/handleCopyTable.js +16 -0
- package/handlerHelpers.js +24 -0
- package/hotkeyUtils.js +131 -0
- package/index.cjs.js +970 -826
- package/index.d.ts +0 -1
- package/index.es.js +970 -826
- package/index.js +196 -0
- package/isBeingCalledExcessively.js +31 -0
- package/isBottomRightCornerOfRectangle.js +20 -0
- package/isEntityClean.js +15 -0
- package/isTruthy.js +12 -0
- package/isValueEmpty.js +3 -0
- package/itemUpload.js +84 -0
- package/menuUtils.js +433 -0
- package/package.json +1 -2
- package/popoverOverflowModifiers.js +11 -0
- package/primarySelectedValue.js +1 -0
- package/pureNoFunc.js +31 -0
- package/queryParams.js +1058 -0
- package/removeCleanRows.js +22 -0
- package/renderOnDoc.js +32 -0
- package/rerenderOnWindowResize.js +26 -0
- package/rowClick.js +181 -0
- package/selection.js +8 -0
- package/showAppSpinner.js +12 -0
- package/showDialogOnDocBody.js +33 -0
- package/showProgressToast.js +22 -0
- package/sortify.js +73 -0
- package/src/DataTable/index.js +1 -1
- package/src/DataTable/utils/filterLocalEntitiesToHasura.js +14 -0
- package/src/DataTable/utils/filterLocalEntitiesToHasura.test.js +49 -0
- package/src/DataTable/utils/queryParams.js +12 -9
- package/src/DataTable/utils/tableQueryParamsToHasuraClauses.js +146 -143
- package/style.css +29 -0
- package/tagUtils.js +45 -0
- package/tgFormValues.js +35 -0
- package/tg_modalState.js +47 -0
- package/throwFormError.js +16 -0
- package/toastr.js +148 -0
- package/tryToMatchSchemas.js +264 -0
- package/typeToCommonType.js +6 -0
- package/useDeepEqualMemo.js +15 -0
- package/useDialog.js +63 -0
- package/useStableReference.js +9 -0
- package/useTableEntities.js +38 -0
- package/useTraceUpdate.js +19 -0
- package/utils.js +37 -0
- package/validateTableWideErrors.js +160 -0
- package/viewColumn.js +97 -0
- package/withField.js +20 -0
- package/withFields.js +11 -0
- package/withLocalStorage.js +11 -0
- package/withSelectTableRecords.js +43 -0
- package/withSelectedEntities.js +65 -0
- package/withStore.js +10 -0
- package/withTableParams.js +301 -0
- package/wrapDialog.js +116 -0
package/index.es.js
CHANGED
|
@@ -5774,12 +5774,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
|
|
|
5774
5774
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
5775
5775
|
var root$4 = freeGlobal || freeSelf || Function("return this")();
|
|
5776
5776
|
var Symbol$1 = root$4.Symbol;
|
|
5777
|
-
var objectProto$
|
|
5778
|
-
var hasOwnProperty$
|
|
5779
|
-
var nativeObjectToString$2 = objectProto$
|
|
5777
|
+
var objectProto$h = Object.prototype;
|
|
5778
|
+
var hasOwnProperty$e = objectProto$h.hasOwnProperty;
|
|
5779
|
+
var nativeObjectToString$2 = objectProto$h.toString;
|
|
5780
5780
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
5781
5781
|
function getRawTag(value) {
|
|
5782
|
-
var isOwn = hasOwnProperty$
|
|
5782
|
+
var isOwn = hasOwnProperty$e.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
5783
5783
|
try {
|
|
5784
5784
|
value[symToStringTag$1] = void 0;
|
|
5785
5785
|
var unmasked = true;
|
|
@@ -5796,8 +5796,8 @@ function getRawTag(value) {
|
|
|
5796
5796
|
return result;
|
|
5797
5797
|
}
|
|
5798
5798
|
__name(getRawTag, "getRawTag");
|
|
5799
|
-
var objectProto$
|
|
5800
|
-
var nativeObjectToString$1 = objectProto$
|
|
5799
|
+
var objectProto$g = Object.prototype;
|
|
5800
|
+
var nativeObjectToString$1 = objectProto$g.toString;
|
|
5801
5801
|
function objectToString(value) {
|
|
5802
5802
|
return nativeObjectToString$1.call(value);
|
|
5803
5803
|
}
|
|
@@ -5944,11 +5944,11 @@ function toSource(func) {
|
|
|
5944
5944
|
__name(toSource, "toSource");
|
|
5945
5945
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
5946
5946
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
5947
|
-
var funcProto$1 = Function.prototype, objectProto$
|
|
5947
|
+
var funcProto$1 = Function.prototype, objectProto$f = Object.prototype;
|
|
5948
5948
|
var funcToString$1 = funcProto$1.toString;
|
|
5949
|
-
var hasOwnProperty$
|
|
5949
|
+
var hasOwnProperty$d = objectProto$f.hasOwnProperty;
|
|
5950
5950
|
var reIsNative = RegExp(
|
|
5951
|
-
"^" + funcToString$1.call(hasOwnProperty$
|
|
5951
|
+
"^" + funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5952
5952
|
);
|
|
5953
5953
|
function baseIsNative(value) {
|
|
5954
5954
|
if (!isObject$2(value) || isMasked(value)) {
|
|
@@ -6121,11 +6121,11 @@ function eq$1(value, other) {
|
|
|
6121
6121
|
return value === other || value !== value && other !== other;
|
|
6122
6122
|
}
|
|
6123
6123
|
__name(eq$1, "eq$1");
|
|
6124
|
-
var objectProto$
|
|
6125
|
-
var hasOwnProperty$
|
|
6124
|
+
var objectProto$e = Object.prototype;
|
|
6125
|
+
var hasOwnProperty$c = objectProto$e.hasOwnProperty;
|
|
6126
6126
|
function assignValue(object2, key, value) {
|
|
6127
6127
|
var objValue = object2[key];
|
|
6128
|
-
if (!(hasOwnProperty$
|
|
6128
|
+
if (!(hasOwnProperty$c.call(object2, key) && eq$1(objValue, value)) || value === void 0 && !(key in object2)) {
|
|
6129
6129
|
baseAssignValue(object2, key, value);
|
|
6130
6130
|
}
|
|
6131
6131
|
}
|
|
@@ -6149,11 +6149,11 @@ function copyObject(source, props, object2, customizer) {
|
|
|
6149
6149
|
return object2;
|
|
6150
6150
|
}
|
|
6151
6151
|
__name(copyObject, "copyObject");
|
|
6152
|
-
var nativeMax$
|
|
6152
|
+
var nativeMax$2 = Math.max;
|
|
6153
6153
|
function overRest(func, start2, transform) {
|
|
6154
|
-
start2 = nativeMax$
|
|
6154
|
+
start2 = nativeMax$2(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
6155
6155
|
return function() {
|
|
6156
|
-
var args = arguments, index2 = -1, length = nativeMax$
|
|
6156
|
+
var args = arguments, index2 = -1, length = nativeMax$2(args.length - start2, 0), array2 = Array(length);
|
|
6157
6157
|
while (++index2 < length) {
|
|
6158
6158
|
array2[index2] = args[start2 + index2];
|
|
6159
6159
|
}
|
|
@@ -6210,9 +6210,9 @@ function createAssigner(assigner) {
|
|
|
6210
6210
|
});
|
|
6211
6211
|
}
|
|
6212
6212
|
__name(createAssigner, "createAssigner");
|
|
6213
|
-
var objectProto$
|
|
6213
|
+
var objectProto$d = Object.prototype;
|
|
6214
6214
|
function isPrototype(value) {
|
|
6215
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
6215
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$d;
|
|
6216
6216
|
return value === proto;
|
|
6217
6217
|
}
|
|
6218
6218
|
__name(isPrototype, "isPrototype");
|
|
@@ -6229,13 +6229,13 @@ function baseIsArguments(value) {
|
|
|
6229
6229
|
return isObjectLike$1(value) && baseGetTag(value) == argsTag$3;
|
|
6230
6230
|
}
|
|
6231
6231
|
__name(baseIsArguments, "baseIsArguments");
|
|
6232
|
-
var objectProto$
|
|
6233
|
-
var hasOwnProperty$
|
|
6234
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
6232
|
+
var objectProto$c = Object.prototype;
|
|
6233
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
6234
|
+
var propertyIsEnumerable$1 = objectProto$c.propertyIsEnumerable;
|
|
6235
6235
|
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
6236
6236
|
return arguments;
|
|
6237
6237
|
}()) ? baseIsArguments : function(value) {
|
|
6238
|
-
return isObjectLike$1(value) && hasOwnProperty$
|
|
6238
|
+
return isObjectLike$1(value) && hasOwnProperty$b.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
6239
6239
|
};
|
|
6240
6240
|
function stubFalse() {
|
|
6241
6241
|
return false;
|
|
@@ -6278,12 +6278,12 @@ var nodeUtil = function() {
|
|
|
6278
6278
|
}();
|
|
6279
6279
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6280
6280
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6281
|
-
var objectProto$
|
|
6282
|
-
var hasOwnProperty$
|
|
6281
|
+
var objectProto$b = Object.prototype;
|
|
6282
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
6283
6283
|
function arrayLikeKeys(value, inherited) {
|
|
6284
6284
|
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;
|
|
6285
6285
|
for (var key in value) {
|
|
6286
|
-
if ((inherited || hasOwnProperty$
|
|
6286
|
+
if ((inherited || hasOwnProperty$a.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6287
6287
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6288
6288
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6289
6289
|
isType2 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -6301,15 +6301,15 @@ function overArg(func, transform) {
|
|
|
6301
6301
|
}
|
|
6302
6302
|
__name(overArg, "overArg");
|
|
6303
6303
|
var nativeKeys = overArg(Object.keys, Object);
|
|
6304
|
-
var objectProto$
|
|
6305
|
-
var hasOwnProperty$
|
|
6304
|
+
var objectProto$a = Object.prototype;
|
|
6305
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
6306
6306
|
function baseKeys(object2) {
|
|
6307
6307
|
if (!isPrototype(object2)) {
|
|
6308
6308
|
return nativeKeys(object2);
|
|
6309
6309
|
}
|
|
6310
6310
|
var result = [];
|
|
6311
6311
|
for (var key in Object(object2)) {
|
|
6312
|
-
if (hasOwnProperty$
|
|
6312
|
+
if (hasOwnProperty$9.call(object2, key) && key != "constructor") {
|
|
6313
6313
|
result.push(key);
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
@@ -6330,15 +6330,15 @@ function nativeKeysIn(object2) {
|
|
|
6330
6330
|
return result;
|
|
6331
6331
|
}
|
|
6332
6332
|
__name(nativeKeysIn, "nativeKeysIn");
|
|
6333
|
-
var objectProto$
|
|
6334
|
-
var hasOwnProperty$
|
|
6333
|
+
var objectProto$9 = Object.prototype;
|
|
6334
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
6335
6335
|
function baseKeysIn(object2) {
|
|
6336
6336
|
if (!isObject$2(object2)) {
|
|
6337
6337
|
return nativeKeysIn(object2);
|
|
6338
6338
|
}
|
|
6339
6339
|
var isProto = isPrototype(object2), result = [];
|
|
6340
6340
|
for (var key in object2) {
|
|
6341
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
6341
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$8.call(object2, key)))) {
|
|
6342
6342
|
result.push(key);
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
@@ -6374,22 +6374,22 @@ function hashDelete(key) {
|
|
|
6374
6374
|
}
|
|
6375
6375
|
__name(hashDelete, "hashDelete");
|
|
6376
6376
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
6377
|
-
var objectProto$
|
|
6378
|
-
var hasOwnProperty$
|
|
6377
|
+
var objectProto$8 = Object.prototype;
|
|
6378
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
6379
6379
|
function hashGet(key) {
|
|
6380
6380
|
var data = this.__data__;
|
|
6381
6381
|
if (nativeCreate) {
|
|
6382
6382
|
var result = data[key];
|
|
6383
6383
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
6384
6384
|
}
|
|
6385
|
-
return hasOwnProperty$
|
|
6385
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
6386
6386
|
}
|
|
6387
6387
|
__name(hashGet, "hashGet");
|
|
6388
|
-
var objectProto$
|
|
6389
|
-
var hasOwnProperty$
|
|
6388
|
+
var objectProto$7 = Object.prototype;
|
|
6389
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
6390
6390
|
function hashHas(key) {
|
|
6391
6391
|
var data = this.__data__;
|
|
6392
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$
|
|
6392
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
6393
6393
|
}
|
|
6394
6394
|
__name(hashHas, "hashHas");
|
|
6395
6395
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
@@ -6652,9 +6652,9 @@ function flatRest(func) {
|
|
|
6652
6652
|
__name(flatRest, "flatRest");
|
|
6653
6653
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
6654
6654
|
var objectTag$3 = "[object Object]";
|
|
6655
|
-
var funcProto = Function.prototype, objectProto$
|
|
6655
|
+
var funcProto = Function.prototype, objectProto$6 = Object.prototype;
|
|
6656
6656
|
var funcToString = funcProto.toString;
|
|
6657
|
-
var hasOwnProperty$
|
|
6657
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
6658
6658
|
var objectCtorString = funcToString.call(Object);
|
|
6659
6659
|
function isPlainObject$2(value) {
|
|
6660
6660
|
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag$3) {
|
|
@@ -6664,7 +6664,7 @@ function isPlainObject$2(value) {
|
|
|
6664
6664
|
if (proto === null) {
|
|
6665
6665
|
return true;
|
|
6666
6666
|
}
|
|
6667
|
-
var Ctor = hasOwnProperty$
|
|
6667
|
+
var Ctor = hasOwnProperty$5.call(proto, "constructor") && proto.constructor;
|
|
6668
6668
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
6669
6669
|
}
|
|
6670
6670
|
__name(isPlainObject$2, "isPlainObject$2");
|
|
@@ -7093,8 +7093,8 @@ function stubArray() {
|
|
|
7093
7093
|
return [];
|
|
7094
7094
|
}
|
|
7095
7095
|
__name(stubArray, "stubArray");
|
|
7096
|
-
var objectProto$
|
|
7097
|
-
var propertyIsEnumerable = objectProto$
|
|
7096
|
+
var objectProto$5 = Object.prototype;
|
|
7097
|
+
var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
7098
7098
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
7099
7099
|
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object2) {
|
|
7100
7100
|
if (object2 == null) {
|
|
@@ -7162,11 +7162,11 @@ if (DataView$1 && getTag$1(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3
|
|
|
7162
7162
|
return result;
|
|
7163
7163
|
}, "getTag$1");
|
|
7164
7164
|
}
|
|
7165
|
-
var objectProto$
|
|
7166
|
-
var hasOwnProperty$
|
|
7165
|
+
var objectProto$4 = Object.prototype;
|
|
7166
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
7167
7167
|
function initCloneArray(array2) {
|
|
7168
7168
|
var length = array2.length, result = new array2.constructor(length);
|
|
7169
|
-
if (length && typeof array2[0] == "string" && hasOwnProperty$
|
|
7169
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty$4.call(array2, "index")) {
|
|
7170
7170
|
result.index = array2.index;
|
|
7171
7171
|
result.input = array2.input;
|
|
7172
7172
|
}
|
|
@@ -7480,8 +7480,8 @@ function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
7480
7480
|
}
|
|
7481
7481
|
__name(equalByTag, "equalByTag");
|
|
7482
7482
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
7483
|
-
var objectProto$
|
|
7484
|
-
var hasOwnProperty$
|
|
7483
|
+
var objectProto$3 = Object.prototype;
|
|
7484
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
7485
7485
|
function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7486
7486
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
7487
7487
|
if (objLength != othLength && !isPartial) {
|
|
@@ -7490,7 +7490,7 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7490
7490
|
var index2 = objLength;
|
|
7491
7491
|
while (index2--) {
|
|
7492
7492
|
var key = objProps[index2];
|
|
7493
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
7493
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
7494
7494
|
return false;
|
|
7495
7495
|
}
|
|
7496
7496
|
}
|
|
@@ -7528,8 +7528,8 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7528
7528
|
__name(equalObjects, "equalObjects");
|
|
7529
7529
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
7530
7530
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
7531
|
-
var objectProto$
|
|
7532
|
-
var hasOwnProperty$
|
|
7531
|
+
var objectProto$2 = Object.prototype;
|
|
7532
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
7533
7533
|
function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7534
7534
|
var objIsArr = isArray$2(object2), othIsArr = isArray$2(other), objTag = objIsArr ? arrayTag : getTag$1(object2), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
7535
7535
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
@@ -7547,7 +7547,7 @@ function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack)
|
|
|
7547
7547
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
7548
7548
|
}
|
|
7549
7549
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
7550
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
7550
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$2.call(other, "__wrapped__");
|
|
7551
7551
|
if (objIsWrapped || othIsWrapped) {
|
|
7552
7552
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
7553
7553
|
stack || (stack = new Stack());
|
|
@@ -7763,7 +7763,7 @@ var now = /* @__PURE__ */ __name(function() {
|
|
|
7763
7763
|
return root$4.Date.now();
|
|
7764
7764
|
}, "now");
|
|
7765
7765
|
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
7766
|
-
var nativeMax$
|
|
7766
|
+
var nativeMax$1 = Math.max, nativeMin$1 = Math.min;
|
|
7767
7767
|
function debounce(func, wait, options) {
|
|
7768
7768
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
7769
7769
|
if (typeof func != "function") {
|
|
@@ -7773,7 +7773,7 @@ function debounce(func, wait, options) {
|
|
|
7773
7773
|
if (isObject$2(options)) {
|
|
7774
7774
|
leading = !!options.leading;
|
|
7775
7775
|
maxing = "maxWait" in options;
|
|
7776
|
-
maxWait = maxing ? nativeMax$
|
|
7776
|
+
maxWait = maxing ? nativeMax$1(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
7777
7777
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
7778
7778
|
}
|
|
7779
7779
|
function invokeFunc(time) {
|
|
@@ -7943,12 +7943,12 @@ function baseMerge(object2, source, srcIndex, customizer, stack) {
|
|
|
7943
7943
|
__name(baseMerge, "baseMerge");
|
|
7944
7944
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
7945
7945
|
function baseDifference(array2, values2, iteratee, comparator) {
|
|
7946
|
-
var index2 = -1,
|
|
7946
|
+
var index2 = -1, includes = arrayIncludes, isCommon = true, length = array2.length, result = [], valuesLength = values2.length;
|
|
7947
7947
|
if (!length) {
|
|
7948
7948
|
return result;
|
|
7949
7949
|
}
|
|
7950
7950
|
if (values2.length >= LARGE_ARRAY_SIZE$1) {
|
|
7951
|
-
|
|
7951
|
+
includes = cacheHas;
|
|
7952
7952
|
isCommon = false;
|
|
7953
7953
|
values2 = new SetCache(values2);
|
|
7954
7954
|
}
|
|
@@ -7964,7 +7964,7 @@ function baseDifference(array2, values2, iteratee, comparator) {
|
|
|
7964
7964
|
}
|
|
7965
7965
|
}
|
|
7966
7966
|
result.push(value);
|
|
7967
|
-
} else if (!
|
|
7967
|
+
} else if (!includes(values2, computed3, comparator)) {
|
|
7968
7968
|
result.push(value);
|
|
7969
7969
|
}
|
|
7970
7970
|
}
|
|
@@ -7979,6 +7979,15 @@ function last$1(array2) {
|
|
|
7979
7979
|
return length ? array2[length - 1] : void 0;
|
|
7980
7980
|
}
|
|
7981
7981
|
__name(last$1, "last$1");
|
|
7982
|
+
function drop(array2, n2, guard) {
|
|
7983
|
+
var length = array2 == null ? 0 : array2.length;
|
|
7984
|
+
if (!length) {
|
|
7985
|
+
return [];
|
|
7986
|
+
}
|
|
7987
|
+
n2 = n2 === void 0 ? 1 : toInteger(n2);
|
|
7988
|
+
return baseSlice(array2, n2 < 0 ? 0 : n2, length);
|
|
7989
|
+
}
|
|
7990
|
+
__name(drop, "drop");
|
|
7982
7991
|
function castFunction(value) {
|
|
7983
7992
|
return typeof value == "function" ? value : identity$1;
|
|
7984
7993
|
}
|
|
@@ -7988,6 +7997,16 @@ function forEach(collection, iteratee) {
|
|
|
7988
7997
|
return func(collection, castFunction(iteratee));
|
|
7989
7998
|
}
|
|
7990
7999
|
__name(forEach, "forEach");
|
|
8000
|
+
function endsWith$1(string2, target, position2) {
|
|
8001
|
+
string2 = toString$4(string2);
|
|
8002
|
+
target = baseToString$1(target);
|
|
8003
|
+
var length = string2.length;
|
|
8004
|
+
position2 = position2 === void 0 ? length : baseClamp(toInteger(position2), 0, length);
|
|
8005
|
+
var end2 = position2;
|
|
8006
|
+
position2 -= target.length;
|
|
8007
|
+
return position2 >= 0 && string2.slice(position2, end2) == target;
|
|
8008
|
+
}
|
|
8009
|
+
__name(endsWith$1, "endsWith$1");
|
|
7991
8010
|
function arrayEvery(array2, predicate) {
|
|
7992
8011
|
var index2 = -1, length = array2 == null ? 0 : array2.length;
|
|
7993
8012
|
while (++index2 < length) {
|
|
@@ -8048,16 +8067,6 @@ function baseGt(value, other) {
|
|
|
8048
8067
|
return value > other;
|
|
8049
8068
|
}
|
|
8050
8069
|
__name(baseGt, "baseGt");
|
|
8051
|
-
var objectProto$2 = Object.prototype;
|
|
8052
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
8053
|
-
function baseHas(object2, key) {
|
|
8054
|
-
return object2 != null && hasOwnProperty$2.call(object2, key);
|
|
8055
|
-
}
|
|
8056
|
-
__name(baseHas, "baseHas");
|
|
8057
|
-
function has$1(object2, path2) {
|
|
8058
|
-
return object2 != null && hasPath(object2, path2, baseHas);
|
|
8059
|
-
}
|
|
8060
|
-
__name(has$1, "has$1");
|
|
8061
8070
|
var stringTag = "[object String]";
|
|
8062
8071
|
function isString$1(value) {
|
|
8063
8072
|
return typeof value == "string" || !isArray$2(value) && isObjectLike$1(value) && baseGetTag(value) == stringTag;
|
|
@@ -8073,17 +8082,6 @@ function values(object2) {
|
|
|
8073
8082
|
return object2 == null ? [] : baseValues(object2, keys$1(object2));
|
|
8074
8083
|
}
|
|
8075
8084
|
__name(values, "values");
|
|
8076
|
-
var nativeMax$1 = Math.max;
|
|
8077
|
-
function includes(collection, value, fromIndex, guard) {
|
|
8078
|
-
collection = isArrayLike(collection) ? collection : values(collection);
|
|
8079
|
-
fromIndex = fromIndex && true ? toInteger(fromIndex) : 0;
|
|
8080
|
-
var length = collection.length;
|
|
8081
|
-
if (fromIndex < 0) {
|
|
8082
|
-
fromIndex = nativeMax$1(length + fromIndex, 0);
|
|
8083
|
-
}
|
|
8084
|
-
return isString$1(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
8085
|
-
}
|
|
8086
|
-
__name(includes, "includes");
|
|
8087
8085
|
function baseInverter(object2, setter, iteratee, accumulator) {
|
|
8088
8086
|
baseForOwn(object2, function(value, key, object3) {
|
|
8089
8087
|
setter(accumulator, iteratee(value), key, object3);
|
|
@@ -8144,15 +8142,15 @@ function isEqualWith(value, other, customizer) {
|
|
|
8144
8142
|
return result === void 0 ? baseIsEqual(value, other, void 0, customizer) : !!result;
|
|
8145
8143
|
}
|
|
8146
8144
|
__name(isEqualWith, "isEqualWith");
|
|
8145
|
+
function isInteger(value) {
|
|
8146
|
+
return typeof value == "number" && value == toInteger(value);
|
|
8147
|
+
}
|
|
8148
|
+
__name(isInteger, "isInteger");
|
|
8147
8149
|
var numberTag = "[object Number]";
|
|
8148
8150
|
function isNumber$1(value) {
|
|
8149
8151
|
return typeof value == "number" || isObjectLike$1(value) && baseGetTag(value) == numberTag;
|
|
8150
8152
|
}
|
|
8151
8153
|
__name(isNumber$1, "isNumber$1");
|
|
8152
|
-
function isNull(value) {
|
|
8153
|
-
return value === null;
|
|
8154
|
-
}
|
|
8155
|
-
__name(isNull, "isNull");
|
|
8156
8154
|
function isUndefined(value) {
|
|
8157
8155
|
return value === void 0;
|
|
8158
8156
|
}
|
|
@@ -8609,14 +8607,14 @@ var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == INFINITY) ? n
|
|
|
8609
8607
|
};
|
|
8610
8608
|
var LARGE_ARRAY_SIZE = 200;
|
|
8611
8609
|
function baseUniq(array2, iteratee, comparator) {
|
|
8612
|
-
var index2 = -1,
|
|
8610
|
+
var index2 = -1, includes = arrayIncludes, length = array2.length, isCommon = true, result = [], seen = result;
|
|
8613
8611
|
if (length >= LARGE_ARRAY_SIZE) {
|
|
8614
8612
|
var set5 = iteratee ? null : createSet(array2);
|
|
8615
8613
|
if (set5) {
|
|
8616
8614
|
return setToArray(set5);
|
|
8617
8615
|
}
|
|
8618
8616
|
isCommon = false;
|
|
8619
|
-
|
|
8617
|
+
includes = cacheHas;
|
|
8620
8618
|
seen = new SetCache();
|
|
8621
8619
|
} else {
|
|
8622
8620
|
seen = iteratee ? [] : result;
|
|
@@ -8636,7 +8634,7 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8636
8634
|
seen.push(computed3);
|
|
8637
8635
|
}
|
|
8638
8636
|
result.push(value);
|
|
8639
|
-
} else if (!
|
|
8637
|
+
} else if (!includes(seen, computed3, comparator)) {
|
|
8640
8638
|
if (seen !== result) {
|
|
8641
8639
|
seen.push(computed3);
|
|
8642
8640
|
}
|
|
@@ -8646,6 +8644,10 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8646
8644
|
return result;
|
|
8647
8645
|
}
|
|
8648
8646
|
__name(baseUniq, "baseUniq");
|
|
8647
|
+
function uniq(array2) {
|
|
8648
|
+
return array2 && array2.length ? baseUniq(array2) : [];
|
|
8649
|
+
}
|
|
8650
|
+
__name(uniq, "uniq");
|
|
8649
8651
|
function uniqBy(array2, iteratee) {
|
|
8650
8652
|
return array2 && array2.length ? baseUniq(array2, baseIteratee(iteratee)) : [];
|
|
8651
8653
|
}
|
|
@@ -15828,6 +15830,7 @@ var itemSizeEstimator = /* @__PURE__ */ __name(function itemSizeEstimator2() {
|
|
|
15828
15830
|
return 41.36;
|
|
15829
15831
|
}, "itemSizeEstimator");
|
|
15830
15832
|
var ReactTableDefaults = defaultProps;
|
|
15833
|
+
var VIRTUALIZE_CUTOFF_LENGTH = 200;
|
|
15831
15834
|
var ReactTable = function(_Methods) {
|
|
15832
15835
|
_inherits$8(ReactTable2, _Methods);
|
|
15833
15836
|
function ReactTable2(props) {
|
|
@@ -16413,7 +16416,7 @@ var ReactTable = function(_Methods) {
|
|
|
16413
16416
|
minWidth: rowMinWidth + "px"
|
|
16414
16417
|
})
|
|
16415
16418
|
}, tBodyProps.rest),
|
|
16416
|
-
pageRows.length <
|
|
16419
|
+
_this2.props.noVirtual || pageRows.length < VIRTUALIZE_CUTOFF_LENGTH ? pageRows.map(function(d2, i2) {
|
|
16417
16420
|
return makePageRow(d2, i2);
|
|
16418
16421
|
}) : React__default.createElement(ReactList, {
|
|
16419
16422
|
type: "variable",
|
|
@@ -19374,401 +19377,293 @@ function requireLib$1() {
|
|
|
19374
19377
|
__name(requireLib$1, "requireLib$1");
|
|
19375
19378
|
var libExports$1 = /* @__PURE__ */ requireLib$1();
|
|
19376
19379
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(libExports$1);
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
}) {
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
}
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
19380
|
+
var dayjs_min$1 = { exports: {} };
|
|
19381
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
19382
|
+
var hasRequiredDayjs_min;
|
|
19383
|
+
function requireDayjs_min() {
|
|
19384
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
19385
|
+
hasRequiredDayjs_min = 1;
|
|
19386
|
+
(function(module2, exports2) {
|
|
19387
|
+
!function(t2, e) {
|
|
19388
|
+
module2.exports = e();
|
|
19389
|
+
}(dayjs_min, function() {
|
|
19390
|
+
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) {
|
|
19391
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
19392
|
+
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
19393
|
+
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
19394
|
+
var r3 = String(t3);
|
|
19395
|
+
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
19396
|
+
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
19397
|
+
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
19398
|
+
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
19399
|
+
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
19400
|
+
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
19401
|
+
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);
|
|
19402
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
19403
|
+
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
19404
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
19405
|
+
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
19406
|
+
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$/, "");
|
|
19407
|
+
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
19408
|
+
return void 0 === t3;
|
|
19409
|
+
}, "u") }, g2 = "en", D2 = {};
|
|
19410
|
+
D2[g2] = M2;
|
|
19411
|
+
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
19412
|
+
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
19413
|
+
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
19414
|
+
var i3;
|
|
19415
|
+
if (!e2) return g2;
|
|
19416
|
+
if ("string" == typeof e2) {
|
|
19417
|
+
var s3 = e2.toLowerCase();
|
|
19418
|
+
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
19419
|
+
var u3 = e2.split("-");
|
|
19420
|
+
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
19421
|
+
} else {
|
|
19422
|
+
var a3 = e2.name;
|
|
19423
|
+
D2[a3] = e2, i3 = a3;
|
|
19407
19424
|
}
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19425
|
+
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
19426
|
+
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
19427
|
+
if (S2(t3)) return t3.clone();
|
|
19428
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
19429
|
+
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
19430
|
+
}, "O"), b2 = v2;
|
|
19431
|
+
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
19432
|
+
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
19433
|
+
};
|
|
19434
|
+
var _2 = function() {
|
|
19435
|
+
function M3(t3) {
|
|
19436
|
+
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
19418
19437
|
}
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
}
|
|
19433
|
-
if (filters && filters.length > 0) {
|
|
19434
|
-
const filterClauses = filters.map((filter2) => {
|
|
19435
|
-
let { selectedFilter, filterOn, filterValue } = filter2;
|
|
19436
|
-
const fieldSchema = ccFields[filterOn] || {};
|
|
19437
|
-
const { path: path2, reference: reference2, type: type2 } = fieldSchema;
|
|
19438
|
-
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19439
|
-
if (stringFilterValue === false) {
|
|
19440
|
-
stringFilterValue = "false";
|
|
19441
|
-
} else {
|
|
19442
|
-
stringFilterValue = stringFilterValue || "";
|
|
19443
|
-
}
|
|
19444
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19445
|
-
if (type2 === "number" || type2 === "integer") {
|
|
19446
|
-
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19447
|
-
}
|
|
19448
|
-
if (fieldSchema.normalizeFilter) {
|
|
19449
|
-
filterValue = fieldSchema.normalizeFilter(
|
|
19450
|
-
filterValue,
|
|
19451
|
-
selectedFilter,
|
|
19452
|
-
filterOn
|
|
19453
|
-
);
|
|
19454
|
-
}
|
|
19455
|
-
if (reference2) {
|
|
19456
|
-
filterOn = reference2.sourceField;
|
|
19457
|
-
} else {
|
|
19458
|
-
filterOn = path2 || filterOn;
|
|
19459
|
-
}
|
|
19460
|
-
switch (selectedFilter) {
|
|
19461
|
-
case "none":
|
|
19462
|
-
return {};
|
|
19463
|
-
case "startsWith":
|
|
19464
|
-
return { [filterOn]: { _ilike: `${filterValue}%` } };
|
|
19465
|
-
case "endsWith":
|
|
19466
|
-
return { [filterOn]: { _ilike: `%${filterValue}` } };
|
|
19467
|
-
case "contains":
|
|
19468
|
-
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19469
|
-
case "notContains":
|
|
19470
|
-
return { [filterOn]: { _not_ilike: `%${filterValue}%` } };
|
|
19471
|
-
case "isExactly":
|
|
19472
|
-
return { [filterOn]: { _eq: filterValue } };
|
|
19473
|
-
case "isEmpty":
|
|
19474
|
-
return {
|
|
19475
|
-
_or: [
|
|
19476
|
-
{ [filterOn]: { _eq: "" } },
|
|
19477
|
-
{ [filterOn]: { _is_null: true } }
|
|
19478
|
-
]
|
|
19479
|
-
};
|
|
19480
|
-
case "notEmpty":
|
|
19481
|
-
return {
|
|
19482
|
-
_and: [
|
|
19483
|
-
{ [filterOn]: { _neq: "" } },
|
|
19484
|
-
{ [filterOn]: { _is_null: false } }
|
|
19485
|
-
]
|
|
19486
|
-
};
|
|
19487
|
-
case "inList":
|
|
19488
|
-
return { [filterOn]: { _in: filterValue } };
|
|
19489
|
-
case "notInList":
|
|
19490
|
-
return { [filterOn]: { _nin: filterValue } };
|
|
19491
|
-
case "true":
|
|
19492
|
-
return { [filterOn]: { _eq: true } };
|
|
19493
|
-
case "false":
|
|
19494
|
-
return { [filterOn]: { _eq: false } };
|
|
19495
|
-
case "dateIs":
|
|
19496
|
-
return { [filterOn]: { _eq: filterValue } };
|
|
19497
|
-
case "notBetween":
|
|
19498
|
-
return {
|
|
19499
|
-
_or: [
|
|
19500
|
-
{
|
|
19501
|
-
[filterOn]: {
|
|
19502
|
-
_lt: new Date(arrayFilterValue[0])
|
|
19503
|
-
}
|
|
19504
|
-
},
|
|
19505
|
-
{
|
|
19506
|
-
[filterOn]: {
|
|
19507
|
-
_gt: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19508
|
-
}
|
|
19438
|
+
__name(M3, "M");
|
|
19439
|
+
var m3 = M3.prototype;
|
|
19440
|
+
return m3.parse = function(t3) {
|
|
19441
|
+
this.$d = function(t4) {
|
|
19442
|
+
var e2 = t4.date, n3 = t4.utc;
|
|
19443
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
19444
|
+
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
19445
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
19446
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
19447
|
+
var r3 = e2.match($);
|
|
19448
|
+
if (r3) {
|
|
19449
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
19450
|
+
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);
|
|
19509
19451
|
}
|
|
19510
|
-
]
|
|
19511
|
-
};
|
|
19512
|
-
case "isBetween":
|
|
19513
|
-
return {
|
|
19514
|
-
[filterOn]: {
|
|
19515
|
-
_gte: new Date(arrayFilterValue[0]),
|
|
19516
|
-
_lte: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19517
|
-
}
|
|
19518
|
-
};
|
|
19519
|
-
case "isBefore":
|
|
19520
|
-
return { [filterOn]: { _lt: new Date(filterValue) } };
|
|
19521
|
-
case "isAfter":
|
|
19522
|
-
return { [filterOn]: { _gt: new Date(filterValue) } };
|
|
19523
|
-
case "greaterThan":
|
|
19524
|
-
return { [filterOn]: { _gt: parseFloat(filterValue) } };
|
|
19525
|
-
case "lessThan":
|
|
19526
|
-
return { [filterOn]: { _lt: parseFloat(filterValue) } };
|
|
19527
|
-
case "inRange":
|
|
19528
|
-
return {
|
|
19529
|
-
[filterOn]: {
|
|
19530
|
-
_gte: parseFloat(arrayFilterValue[0]),
|
|
19531
|
-
_lte: parseFloat(arrayFilterValue[1])
|
|
19532
19452
|
}
|
|
19453
|
+
return new Date(e2);
|
|
19454
|
+
}(t3), this.init();
|
|
19455
|
+
}, m3.init = function() {
|
|
19456
|
+
var t3 = this.$d;
|
|
19457
|
+
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();
|
|
19458
|
+
}, m3.$utils = function() {
|
|
19459
|
+
return b2;
|
|
19460
|
+
}, m3.isValid = function() {
|
|
19461
|
+
return !(this.$d.toString() === l2);
|
|
19462
|
+
}, m3.isSame = function(t3, e2) {
|
|
19463
|
+
var n3 = O2(t3);
|
|
19464
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
19465
|
+
}, m3.isAfter = function(t3, e2) {
|
|
19466
|
+
return O2(t3) < this.startOf(e2);
|
|
19467
|
+
}, m3.isBefore = function(t3, e2) {
|
|
19468
|
+
return this.endOf(e2) < O2(t3);
|
|
19469
|
+
}, m3.$g = function(t3, e2, n3) {
|
|
19470
|
+
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
19471
|
+
}, m3.unix = function() {
|
|
19472
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
19473
|
+
}, m3.valueOf = function() {
|
|
19474
|
+
return this.$d.getTime();
|
|
19475
|
+
}, m3.startOf = function(t3, e2) {
|
|
19476
|
+
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19477
|
+
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
19478
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
19479
|
+
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19480
|
+
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
19481
|
+
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
19482
|
+
switch (f3) {
|
|
19483
|
+
case h2:
|
|
19484
|
+
return r3 ? l3(1, 0) : l3(31, 11);
|
|
19485
|
+
case c2:
|
|
19486
|
+
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
19487
|
+
case o2:
|
|
19488
|
+
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
19489
|
+
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
19490
|
+
case a2:
|
|
19491
|
+
case d2:
|
|
19492
|
+
return $2(v3 + "Hours", 0);
|
|
19493
|
+
case u2:
|
|
19494
|
+
return $2(v3 + "Minutes", 1);
|
|
19495
|
+
case s2:
|
|
19496
|
+
return $2(v3 + "Seconds", 2);
|
|
19497
|
+
case i2:
|
|
19498
|
+
return $2(v3 + "Milliseconds", 3);
|
|
19499
|
+
default:
|
|
19500
|
+
return this.clone();
|
|
19501
|
+
}
|
|
19502
|
+
}, m3.endOf = function(t3) {
|
|
19503
|
+
return this.startOf(t3, false);
|
|
19504
|
+
}, m3.$set = function(t3, e2) {
|
|
19505
|
+
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;
|
|
19506
|
+
if (o3 === c2 || o3 === h2) {
|
|
19507
|
+
var y3 = this.clone().set(d2, 1);
|
|
19508
|
+
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
19509
|
+
} else l3 && this.$d[l3]($2);
|
|
19510
|
+
return this.init(), this;
|
|
19511
|
+
}, m3.set = function(t3, e2) {
|
|
19512
|
+
return this.clone().$set(t3, e2);
|
|
19513
|
+
}, m3.get = function(t3) {
|
|
19514
|
+
return this[b2.p(t3)]();
|
|
19515
|
+
}, m3.add = function(r3, f3) {
|
|
19516
|
+
var d3, l3 = this;
|
|
19517
|
+
r3 = Number(r3);
|
|
19518
|
+
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
19519
|
+
var e2 = O2(l3);
|
|
19520
|
+
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
19521
|
+
}, "y");
|
|
19522
|
+
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
19523
|
+
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
19524
|
+
if ($2 === a2) return y3(1);
|
|
19525
|
+
if ($2 === o2) return y3(7);
|
|
19526
|
+
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
19527
|
+
return b2.w(m4, this);
|
|
19528
|
+
}, m3.subtract = function(t3, e2) {
|
|
19529
|
+
return this.add(-1 * t3, e2);
|
|
19530
|
+
}, m3.format = function(t3) {
|
|
19531
|
+
var e2 = this, n3 = this.$locale();
|
|
19532
|
+
if (!this.isValid()) return n3.invalidDate || l2;
|
|
19533
|
+
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) {
|
|
19534
|
+
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
19535
|
+
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
19536
|
+
return b2.s(s3 % 12 || 12, t4, "0");
|
|
19537
|
+
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
19538
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
19539
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
19533
19540
|
};
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19541
|
+
return r3.replace(y2, function(t4, r4) {
|
|
19542
|
+
return r4 || function(t5) {
|
|
19543
|
+
switch (t5) {
|
|
19544
|
+
case "YY":
|
|
19545
|
+
return String(e2.$y).slice(-2);
|
|
19546
|
+
case "YYYY":
|
|
19547
|
+
return b2.s(e2.$y, 4, "0");
|
|
19548
|
+
case "M":
|
|
19549
|
+
return a3 + 1;
|
|
19550
|
+
case "MM":
|
|
19551
|
+
return b2.s(a3 + 1, 2, "0");
|
|
19552
|
+
case "MMM":
|
|
19553
|
+
return h3(n3.monthsShort, a3, c3, 3);
|
|
19554
|
+
case "MMMM":
|
|
19555
|
+
return h3(c3, a3);
|
|
19556
|
+
case "D":
|
|
19557
|
+
return e2.$D;
|
|
19558
|
+
case "DD":
|
|
19559
|
+
return b2.s(e2.$D, 2, "0");
|
|
19560
|
+
case "d":
|
|
19561
|
+
return String(e2.$W);
|
|
19562
|
+
case "dd":
|
|
19563
|
+
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
19564
|
+
case "ddd":
|
|
19565
|
+
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
19566
|
+
case "dddd":
|
|
19567
|
+
return o3[e2.$W];
|
|
19568
|
+
case "H":
|
|
19569
|
+
return String(s3);
|
|
19570
|
+
case "HH":
|
|
19571
|
+
return b2.s(s3, 2, "0");
|
|
19572
|
+
case "h":
|
|
19573
|
+
return d3(1);
|
|
19574
|
+
case "hh":
|
|
19575
|
+
return d3(2);
|
|
19576
|
+
case "a":
|
|
19577
|
+
return $2(s3, u3, true);
|
|
19578
|
+
case "A":
|
|
19579
|
+
return $2(s3, u3, false);
|
|
19580
|
+
case "m":
|
|
19581
|
+
return String(u3);
|
|
19582
|
+
case "mm":
|
|
19583
|
+
return b2.s(u3, 2, "0");
|
|
19584
|
+
case "s":
|
|
19585
|
+
return String(e2.$s);
|
|
19586
|
+
case "ss":
|
|
19587
|
+
return b2.s(e2.$s, 2, "0");
|
|
19588
|
+
case "SSS":
|
|
19589
|
+
return b2.s(e2.$ms, 3, "0");
|
|
19590
|
+
case "Z":
|
|
19591
|
+
return i3;
|
|
19546
19592
|
}
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
if (Object.keys(where).length > 0) {
|
|
19560
|
-
where = { _and: [where, ...filterClauses] };
|
|
19561
|
-
} else {
|
|
19562
|
-
where = { _and: filterClauses };
|
|
19563
|
-
}
|
|
19564
|
-
}
|
|
19565
|
-
}
|
|
19566
|
-
if (order2 && order2.length > 0) {
|
|
19567
|
-
order2.forEach((item) => {
|
|
19568
|
-
const field = item.startsWith("-") ? item.substring(1) : item;
|
|
19569
|
-
const direction = item.startsWith("-") ? "desc" : "asc";
|
|
19570
|
-
order_by[field] = direction;
|
|
19571
|
-
});
|
|
19572
|
-
}
|
|
19573
|
-
if (additionalFilter) {
|
|
19574
|
-
where = { _and: [where, additionalFilter] };
|
|
19575
|
-
}
|
|
19576
|
-
return { where, order_by, limit, offset: offset3 };
|
|
19577
|
-
}
|
|
19578
|
-
__name(tableQueryParamsToHasuraClauses, "tableQueryParamsToHasuraClauses");
|
|
19579
|
-
function getFieldsMappedByCCDisplayName(schema) {
|
|
19580
|
-
if (!schema || !schema.fields) return {};
|
|
19581
|
-
return schema.fields.reduce((acc, field) => {
|
|
19582
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19583
|
-
acc[ccDisplayName] = field;
|
|
19584
|
-
return acc;
|
|
19585
|
-
}, {});
|
|
19586
|
-
}
|
|
19587
|
-
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19588
|
-
function getCCDisplayName(field) {
|
|
19589
|
-
return camelCase(
|
|
19590
|
-
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19591
|
-
);
|
|
19592
|
-
}
|
|
19593
|
-
__name(getCCDisplayName, "getCCDisplayName");
|
|
19594
|
-
function filterLocalEntitiesToHasura(records, { where, order_by, limit, offset: offset3, isInfinite } = {}) {
|
|
19595
|
-
let filteredRecords = [...records];
|
|
19596
|
-
if (where) {
|
|
19597
|
-
filteredRecords = applyWhereClause(filteredRecords, where);
|
|
19598
|
-
}
|
|
19599
|
-
if (order_by) {
|
|
19600
|
-
filteredRecords = applyOrderBy(filteredRecords, order_by);
|
|
19601
|
-
}
|
|
19602
|
-
const allFilteredRecords = [...filteredRecords];
|
|
19603
|
-
if (!isInfinite && offset3 !== void 0) {
|
|
19604
|
-
filteredRecords = filteredRecords.slice(offset3);
|
|
19605
|
-
}
|
|
19606
|
-
if (!isInfinite && limit !== void 0) {
|
|
19607
|
-
filteredRecords = filteredRecords.slice(0, limit);
|
|
19608
|
-
}
|
|
19609
|
-
return {
|
|
19610
|
-
entities: filteredRecords,
|
|
19611
|
-
entitiesAcrossPages: allFilteredRecords,
|
|
19612
|
-
entityCount: allFilteredRecords.length
|
|
19613
|
-
};
|
|
19614
|
-
}
|
|
19615
|
-
__name(filterLocalEntitiesToHasura, "filterLocalEntitiesToHasura");
|
|
19616
|
-
function applyWhereClause(records, where) {
|
|
19617
|
-
function applyFilter(record, filter2) {
|
|
19618
|
-
if (isEmpty$1(filter2)) {
|
|
19619
|
-
return true;
|
|
19620
|
-
}
|
|
19621
|
-
for (const key in filter2) {
|
|
19622
|
-
if (key === "_and") {
|
|
19623
|
-
if (isEmpty$1(filter2[key])) {
|
|
19624
|
-
continue;
|
|
19625
|
-
}
|
|
19626
|
-
if (!every(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19627
|
-
return false;
|
|
19628
|
-
}
|
|
19629
|
-
} else if (key === "_or") {
|
|
19630
|
-
if (isEmpty$1(filter2[key])) {
|
|
19631
|
-
continue;
|
|
19632
|
-
}
|
|
19633
|
-
if (!some(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19634
|
-
return false;
|
|
19635
|
-
}
|
|
19636
|
-
} else if (key === "_not") {
|
|
19637
|
-
if (applyFilter(record, filter2[key])) {
|
|
19638
|
-
return false;
|
|
19639
|
-
}
|
|
19640
|
-
} else {
|
|
19641
|
-
const value = record[key];
|
|
19642
|
-
const conditions = filter2[key];
|
|
19643
|
-
for (const operator in conditions) {
|
|
19644
|
-
const conditionValue = conditions[operator];
|
|
19645
|
-
if (operator === "_gt" && conditions._lt) {
|
|
19646
|
-
if (!(value > conditionValue && value < conditions._lt))
|
|
19647
|
-
return false;
|
|
19648
|
-
continue;
|
|
19649
|
-
}
|
|
19650
|
-
if (operator === "_gte" && conditions._lte) {
|
|
19651
|
-
if (!(value >= conditionValue && value <= conditions._lte))
|
|
19652
|
-
return false;
|
|
19653
|
-
continue;
|
|
19654
|
-
}
|
|
19655
|
-
switch (operator) {
|
|
19656
|
-
case "_eq":
|
|
19657
|
-
if (!isEqual(value, conditionValue)) return false;
|
|
19658
|
-
break;
|
|
19659
|
-
case "_neq":
|
|
19660
|
-
if (isEqual(value, conditionValue)) return false;
|
|
19661
|
-
break;
|
|
19662
|
-
case "_gt":
|
|
19663
|
-
if (!(value > conditionValue)) return false;
|
|
19664
|
-
break;
|
|
19665
|
-
case "_gte":
|
|
19666
|
-
if (!(value >= conditionValue)) return false;
|
|
19667
|
-
break;
|
|
19668
|
-
case "_lt":
|
|
19669
|
-
if (!(value < conditionValue)) return false;
|
|
19670
|
-
break;
|
|
19671
|
-
case "_lte":
|
|
19672
|
-
if (!(value <= conditionValue)) return false;
|
|
19673
|
-
break;
|
|
19674
|
-
case "_like":
|
|
19675
|
-
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19676
|
-
return false;
|
|
19677
|
-
break;
|
|
19678
|
-
case "_ilike":
|
|
19679
|
-
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19680
|
-
return false;
|
|
19681
|
-
break;
|
|
19682
|
-
case "_nlike":
|
|
19683
|
-
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19684
|
-
return false;
|
|
19685
|
-
break;
|
|
19686
|
-
case "_nilike":
|
|
19687
|
-
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19688
|
-
return false;
|
|
19689
|
-
break;
|
|
19690
|
-
case "_starts_with":
|
|
19691
|
-
if (!isString$1(value) || !value.startsWith(conditionValue))
|
|
19692
|
-
return false;
|
|
19693
|
-
break;
|
|
19694
|
-
case "_ends_with":
|
|
19695
|
-
if (!isString$1(value) || !value.endsWith(conditionValue))
|
|
19696
|
-
return false;
|
|
19593
|
+
return null;
|
|
19594
|
+
}(t4) || i3.replace(":", "");
|
|
19595
|
+
});
|
|
19596
|
+
}, m3.utcOffset = function() {
|
|
19597
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
19598
|
+
}, m3.diff = function(r3, d3, l3) {
|
|
19599
|
+
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
19600
|
+
return b2.m(y3, m4);
|
|
19601
|
+
}, "D");
|
|
19602
|
+
switch (M4) {
|
|
19603
|
+
case h2:
|
|
19604
|
+
$2 = D3() / 12;
|
|
19697
19605
|
break;
|
|
19698
|
-
case
|
|
19699
|
-
|
|
19700
|
-
return false;
|
|
19606
|
+
case c2:
|
|
19607
|
+
$2 = D3();
|
|
19701
19608
|
break;
|
|
19702
|
-
case
|
|
19703
|
-
|
|
19704
|
-
return false;
|
|
19609
|
+
case f2:
|
|
19610
|
+
$2 = D3() / 3;
|
|
19705
19611
|
break;
|
|
19706
|
-
case
|
|
19707
|
-
|
|
19708
|
-
return false;
|
|
19612
|
+
case o2:
|
|
19613
|
+
$2 = (g3 - v3) / 6048e5;
|
|
19709
19614
|
break;
|
|
19710
|
-
case
|
|
19711
|
-
|
|
19615
|
+
case a2:
|
|
19616
|
+
$2 = (g3 - v3) / 864e5;
|
|
19712
19617
|
break;
|
|
19713
|
-
case
|
|
19714
|
-
|
|
19715
|
-
return false;
|
|
19618
|
+
case u2:
|
|
19619
|
+
$2 = g3 / n2;
|
|
19716
19620
|
break;
|
|
19717
|
-
case
|
|
19718
|
-
|
|
19719
|
-
return false;
|
|
19621
|
+
case s2:
|
|
19622
|
+
$2 = g3 / e;
|
|
19720
19623
|
break;
|
|
19721
|
-
case
|
|
19722
|
-
|
|
19723
|
-
return false;
|
|
19624
|
+
case i2:
|
|
19625
|
+
$2 = g3 / t2;
|
|
19724
19626
|
break;
|
|
19725
19627
|
default:
|
|
19726
|
-
|
|
19727
|
-
console.warn(`Unsupported operator: ${operator}`);
|
|
19728
|
-
return false;
|
|
19729
|
-
} else {
|
|
19730
|
-
console.warn(`Unsupported operator: ${operator}`);
|
|
19731
|
-
return false;
|
|
19732
|
-
}
|
|
19628
|
+
$2 = g3;
|
|
19733
19629
|
}
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
function
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
}
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
}
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
}, "addCustomColumnFilters");
|
|
19630
|
+
return l3 ? $2 : b2.a($2);
|
|
19631
|
+
}, m3.daysInMonth = function() {
|
|
19632
|
+
return this.endOf(c2).$D;
|
|
19633
|
+
}, m3.$locale = function() {
|
|
19634
|
+
return D2[this.$L];
|
|
19635
|
+
}, m3.locale = function(t3, e2) {
|
|
19636
|
+
if (!t3) return this.$L;
|
|
19637
|
+
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
19638
|
+
return r3 && (n3.$L = r3), n3;
|
|
19639
|
+
}, m3.clone = function() {
|
|
19640
|
+
return b2.w(this.$d, this);
|
|
19641
|
+
}, m3.toDate = function() {
|
|
19642
|
+
return new Date(this.valueOf());
|
|
19643
|
+
}, m3.toJSON = function() {
|
|
19644
|
+
return this.isValid() ? this.toISOString() : null;
|
|
19645
|
+
}, m3.toISOString = function() {
|
|
19646
|
+
return this.$d.toISOString();
|
|
19647
|
+
}, m3.toString = function() {
|
|
19648
|
+
return this.$d.toUTCString();
|
|
19649
|
+
}, M3;
|
|
19650
|
+
}(), k2 = _2.prototype;
|
|
19651
|
+
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
19652
|
+
k2[t3[1]] = function(e2) {
|
|
19653
|
+
return this.$g(e2, t3[0], t3[1]);
|
|
19654
|
+
};
|
|
19655
|
+
}), O2.extend = function(t3, e2) {
|
|
19656
|
+
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
19657
|
+
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
19658
|
+
return O2(1e3 * t3);
|
|
19659
|
+
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
19660
|
+
});
|
|
19661
|
+
})(dayjs_min$1);
|
|
19662
|
+
return dayjs_min$1.exports;
|
|
19663
|
+
}
|
|
19664
|
+
__name(requireDayjs_min, "requireDayjs_min");
|
|
19665
|
+
var dayjs_minExports = requireDayjs_min();
|
|
19666
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
19772
19667
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
19773
19668
|
function safeStringify(val) {
|
|
19774
19669
|
if (val !== null && typeof val === "object") {
|
|
@@ -19785,6 +19680,325 @@ function safeParse(val) {
|
|
|
19785
19680
|
}
|
|
19786
19681
|
}
|
|
19787
19682
|
__name(safeParse, "safeParse");
|
|
19683
|
+
function getCCDisplayName(field) {
|
|
19684
|
+
return camelCase(
|
|
19685
|
+
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19686
|
+
);
|
|
19687
|
+
}
|
|
19688
|
+
__name(getCCDisplayName, "getCCDisplayName");
|
|
19689
|
+
function getFieldsMappedByCCDisplayName(schema) {
|
|
19690
|
+
return schema.fields.reduce((acc, field) => {
|
|
19691
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19692
|
+
acc[ccDisplayName] = field;
|
|
19693
|
+
return acc;
|
|
19694
|
+
}, {});
|
|
19695
|
+
}
|
|
19696
|
+
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19697
|
+
function orderEntitiesLocal(orderArray, entities, schema, ownProps) {
|
|
19698
|
+
if (orderArray == null ? void 0 : orderArray.length) {
|
|
19699
|
+
const orderFuncs = [];
|
|
19700
|
+
const ascOrDescArray = [];
|
|
19701
|
+
orderArray.forEach((order2) => {
|
|
19702
|
+
const ccDisplayName = order2.replace(/^-/gi, "");
|
|
19703
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19704
|
+
const field = ccFields[ccDisplayName];
|
|
19705
|
+
if (!field) {
|
|
19706
|
+
throw new Error(
|
|
19707
|
+
"Ruh roh, there should have been a column to sort on for " + order2 + " but none was found in " + schema.fields
|
|
19708
|
+
);
|
|
19709
|
+
}
|
|
19710
|
+
const { path: path2, getValueToFilterOn, sortFn } = field;
|
|
19711
|
+
if (field.type === "timestamp") {
|
|
19712
|
+
ascOrDescArray.push("desc");
|
|
19713
|
+
}
|
|
19714
|
+
ascOrDescArray.push(ccDisplayName === order2 ? "asc" : "desc");
|
|
19715
|
+
if (field.type === "timestamp") {
|
|
19716
|
+
orderFuncs.push((r2) => {
|
|
19717
|
+
const val = get$3(r2, path2);
|
|
19718
|
+
return !!val;
|
|
19719
|
+
});
|
|
19720
|
+
}
|
|
19721
|
+
if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19722
|
+
orderFuncs.push((o2) => {
|
|
19723
|
+
return parseInt(get$3(o2, path2), 10);
|
|
19724
|
+
});
|
|
19725
|
+
} else if (sortFn) {
|
|
19726
|
+
const toOrder = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19727
|
+
orderFuncs.push(...toOrder);
|
|
19728
|
+
} else if (getValueToFilterOn) {
|
|
19729
|
+
orderFuncs.push((o2) => {
|
|
19730
|
+
return getValueToFilterOn(o2, ownProps);
|
|
19731
|
+
});
|
|
19732
|
+
} else {
|
|
19733
|
+
orderFuncs.push((r2) => {
|
|
19734
|
+
const val = get$3(r2, path2);
|
|
19735
|
+
return val && val.toLowerCase ? val.toLowerCase() : val;
|
|
19736
|
+
});
|
|
19737
|
+
}
|
|
19738
|
+
});
|
|
19739
|
+
entities = orderBy$1(entities, orderFuncs, ascOrDescArray);
|
|
19740
|
+
}
|
|
19741
|
+
return entities;
|
|
19742
|
+
}
|
|
19743
|
+
__name(orderEntitiesLocal, "orderEntitiesLocal");
|
|
19744
|
+
function getAndAndOrFilters(allFilters) {
|
|
19745
|
+
const orFilters = [];
|
|
19746
|
+
const andFilters = [];
|
|
19747
|
+
const otherOrFilters = [];
|
|
19748
|
+
allFilters.forEach((filter2) => {
|
|
19749
|
+
if (filter2.isOrFilter && typeof filter2.filterValue === "string" && filter2.filterValue.includes(",")) {
|
|
19750
|
+
const allFilterValues = filter2.filterValue.split(",");
|
|
19751
|
+
allFilterValues.forEach((filterValue, i2) => {
|
|
19752
|
+
filterValue = filterValue.trim();
|
|
19753
|
+
if (!filterValue) return;
|
|
19754
|
+
const newFilter = __spreadProps(__spreadValues({}, filter2), {
|
|
19755
|
+
filterValue
|
|
19756
|
+
});
|
|
19757
|
+
if (i2 === 0) {
|
|
19758
|
+
orFilters.push(newFilter);
|
|
19759
|
+
} else {
|
|
19760
|
+
const iMinus = i2 - 1;
|
|
19761
|
+
if (!otherOrFilters[iMinus]) otherOrFilters[iMinus] = [];
|
|
19762
|
+
otherOrFilters[iMinus].push(newFilter);
|
|
19763
|
+
}
|
|
19764
|
+
});
|
|
19765
|
+
} else if (filter2.isOrFilter) {
|
|
19766
|
+
orFilters.push(filter2);
|
|
19767
|
+
} else {
|
|
19768
|
+
andFilters.push(filter2);
|
|
19769
|
+
}
|
|
19770
|
+
});
|
|
19771
|
+
return {
|
|
19772
|
+
orFilters,
|
|
19773
|
+
andFilters,
|
|
19774
|
+
otherOrFilters
|
|
19775
|
+
};
|
|
19776
|
+
}
|
|
19777
|
+
__name(getAndAndOrFilters, "getAndAndOrFilters");
|
|
19778
|
+
function filterEntitiesLocal(filters = [], searchTerm, entities, schema, ownProps) {
|
|
19779
|
+
const allFilters = getAllFilters(filters, searchTerm, schema);
|
|
19780
|
+
if (allFilters.length) {
|
|
19781
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19782
|
+
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
19783
|
+
andFilters.forEach((filter2) => {
|
|
19784
|
+
entities = getEntitiesForGivenFilter(
|
|
19785
|
+
entities,
|
|
19786
|
+
filter2,
|
|
19787
|
+
ccFields,
|
|
19788
|
+
ownProps
|
|
19789
|
+
);
|
|
19790
|
+
});
|
|
19791
|
+
if (orFilters.length) {
|
|
19792
|
+
let orEntities = [];
|
|
19793
|
+
orFilters.concat(...otherOrFilters).forEach((filter2) => {
|
|
19794
|
+
orEntities = orEntities.concat(
|
|
19795
|
+
getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps)
|
|
19796
|
+
);
|
|
19797
|
+
});
|
|
19798
|
+
entities = uniq(orEntities);
|
|
19799
|
+
}
|
|
19800
|
+
}
|
|
19801
|
+
return entities;
|
|
19802
|
+
}
|
|
19803
|
+
__name(filterEntitiesLocal, "filterEntitiesLocal");
|
|
19804
|
+
function cleanFilterValue(_filterValue, type2) {
|
|
19805
|
+
let filterValue = _filterValue;
|
|
19806
|
+
if (type2 === "number" || type2 === "integer") {
|
|
19807
|
+
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19808
|
+
}
|
|
19809
|
+
return filterValue;
|
|
19810
|
+
}
|
|
19811
|
+
__name(cleanFilterValue, "cleanFilterValue");
|
|
19812
|
+
function getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps) {
|
|
19813
|
+
const { filterOn, filterValue: _filterValue, selectedFilter } = filter2;
|
|
19814
|
+
const field = ccFields[filterOn];
|
|
19815
|
+
const { path: path2, getValueToFilterOn } = field;
|
|
19816
|
+
const filterValue = cleanFilterValue(_filterValue, field.type);
|
|
19817
|
+
const subFilter = getSubFilter(false, selectedFilter, filterValue);
|
|
19818
|
+
entities = entities.filter((entity) => {
|
|
19819
|
+
const fieldVal = getValueToFilterOn ? getValueToFilterOn(entity, ownProps) : get$3(entity, path2);
|
|
19820
|
+
const shouldKeep = subFilter(fieldVal);
|
|
19821
|
+
return shouldKeep;
|
|
19822
|
+
});
|
|
19823
|
+
return entities;
|
|
19824
|
+
}
|
|
19825
|
+
__name(getEntitiesForGivenFilter, "getEntitiesForGivenFilter");
|
|
19826
|
+
function getFiltersFromSearchTerm(searchTerm, schema) {
|
|
19827
|
+
const searchTermFilters = [];
|
|
19828
|
+
if (searchTerm) {
|
|
19829
|
+
const sharedFields = {
|
|
19830
|
+
isOrFilter: true,
|
|
19831
|
+
isSearchTermFilter: true
|
|
19832
|
+
};
|
|
19833
|
+
schema.fields.forEach((field) => {
|
|
19834
|
+
const { type: type2, searchDisabled } = field;
|
|
19835
|
+
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19836
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19837
|
+
const filterValue = cleanFilterValue(searchTerm, type2);
|
|
19838
|
+
if (type2 === "string" || type2 === "lookup") {
|
|
19839
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19840
|
+
filterOn: ccDisplayName,
|
|
19841
|
+
filterValue: searchTerm,
|
|
19842
|
+
selectedFilter: "contains"
|
|
19843
|
+
}));
|
|
19844
|
+
} else if (type2 === "boolean") {
|
|
19845
|
+
let regex;
|
|
19846
|
+
try {
|
|
19847
|
+
regex = new RegExp("^" + searchTerm, "ig");
|
|
19848
|
+
} catch (error) {
|
|
19849
|
+
}
|
|
19850
|
+
if (regex) {
|
|
19851
|
+
if ("true".replace(regex, "") !== "true") {
|
|
19852
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19853
|
+
filterOn: ccDisplayName,
|
|
19854
|
+
filterValue: true,
|
|
19855
|
+
selectedFilter: "true"
|
|
19856
|
+
}));
|
|
19857
|
+
} else if ("false".replace(regex, "") !== "false") {
|
|
19858
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19859
|
+
filterOn: ccDisplayName,
|
|
19860
|
+
filterValue: false,
|
|
19861
|
+
selectedFilter: "false"
|
|
19862
|
+
}));
|
|
19863
|
+
}
|
|
19864
|
+
}
|
|
19865
|
+
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19866
|
+
if (type2 === "integer" && !isInteger(filterValue)) {
|
|
19867
|
+
return;
|
|
19868
|
+
}
|
|
19869
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19870
|
+
filterOn: ccDisplayName,
|
|
19871
|
+
filterValue,
|
|
19872
|
+
selectedFilter: "equalTo"
|
|
19873
|
+
}));
|
|
19874
|
+
}
|
|
19875
|
+
});
|
|
19876
|
+
}
|
|
19877
|
+
return searchTermFilters;
|
|
19878
|
+
}
|
|
19879
|
+
__name(getFiltersFromSearchTerm, "getFiltersFromSearchTerm");
|
|
19880
|
+
function getSubFilter(qb, selectedFilter, filterValue) {
|
|
19881
|
+
const ccSelectedFilter = camelCase(selectedFilter);
|
|
19882
|
+
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19883
|
+
if (stringFilterValue === false) {
|
|
19884
|
+
stringFilterValue = "false";
|
|
19885
|
+
} else {
|
|
19886
|
+
stringFilterValue = stringFilterValue || "";
|
|
19887
|
+
}
|
|
19888
|
+
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
19889
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19890
|
+
if (ccSelectedFilter === "startsWith") {
|
|
19891
|
+
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
19892
|
+
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19893
|
+
return startsWith(fieldVal.toLowerCase(), filterValLower);
|
|
19894
|
+
};
|
|
19895
|
+
} else if (ccSelectedFilter === "endsWith") {
|
|
19896
|
+
return qb ? qb.endsWith(stringFilterValue) : (fieldVal) => {
|
|
19897
|
+
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19898
|
+
return endsWith$1(fieldVal.toLowerCase(), filterValLower);
|
|
19899
|
+
};
|
|
19900
|
+
} else if (ccSelectedFilter === "contains" || ccSelectedFilter === "notContains") {
|
|
19901
|
+
return qb ? ccSelectedFilter === "contains" ? qb.contains(stringFilterValue.replace(/_/g, "\\_")) : qb.notContains(stringFilterValue.replace(/_/g, "\\_")) : (fieldVal) => {
|
|
19902
|
+
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19903
|
+
return ccSelectedFilter === "contains" ? fieldVal.toLowerCase().replace(filterValLower, "") !== fieldVal.toLowerCase() : fieldVal.toLowerCase().replace(filterValLower, "") === fieldVal.toLowerCase();
|
|
19904
|
+
};
|
|
19905
|
+
} else if (ccSelectedFilter === "inList") {
|
|
19906
|
+
return qb ? qb.inList(arrayFilterValue) : (fieldVal) => {
|
|
19907
|
+
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19908
|
+
return arrayFilterValue.map((val) => {
|
|
19909
|
+
if (val) {
|
|
19910
|
+
if (val.toString) return val.toString().toLowerCase();
|
|
19911
|
+
return val.toLowerCase();
|
|
19912
|
+
}
|
|
19913
|
+
return void 0;
|
|
19914
|
+
}).indexOf(fieldVal.toString().toLowerCase()) > -1;
|
|
19915
|
+
};
|
|
19916
|
+
} else if (ccSelectedFilter === "notInList") {
|
|
19917
|
+
return qb ? qb.notInList(arrayFilterValue) : (fieldVal) => {
|
|
19918
|
+
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19919
|
+
return arrayFilterValue.map((val) => {
|
|
19920
|
+
if (val) {
|
|
19921
|
+
if (val.toString) return val.toString().toLowerCase();
|
|
19922
|
+
return val.toLowerCase();
|
|
19923
|
+
}
|
|
19924
|
+
return void 0;
|
|
19925
|
+
}).indexOf(fieldVal.toString().toLowerCase()) === -1;
|
|
19926
|
+
};
|
|
19927
|
+
} else if (ccSelectedFilter === "isEmpty") {
|
|
19928
|
+
return qb ? qb.isEmpty() : (fieldVal) => {
|
|
19929
|
+
return !fieldVal;
|
|
19930
|
+
};
|
|
19931
|
+
} else if (ccSelectedFilter === "notEmpty") {
|
|
19932
|
+
return qb ? [qb.notNull(), qb.notEquals("")] : (fieldVal) => {
|
|
19933
|
+
return !!fieldVal;
|
|
19934
|
+
};
|
|
19935
|
+
} else if (ccSelectedFilter === "isExactly") {
|
|
19936
|
+
return qb ? filterValue : (fieldVal) => {
|
|
19937
|
+
return fieldVal === filterValue;
|
|
19938
|
+
};
|
|
19939
|
+
} else if (ccSelectedFilter === "true") {
|
|
19940
|
+
return qb ? qb.equals(true) : (fieldVal) => {
|
|
19941
|
+
return !!fieldVal;
|
|
19942
|
+
};
|
|
19943
|
+
} else if (ccSelectedFilter === "false") {
|
|
19944
|
+
return qb ? qb.equals(false) : (fieldVal) => {
|
|
19945
|
+
return !fieldVal;
|
|
19946
|
+
};
|
|
19947
|
+
} else if (ccSelectedFilter === "isBetween") {
|
|
19948
|
+
return qb ? qb.between(
|
|
19949
|
+
new Date(arrayFilterValue[0]),
|
|
19950
|
+
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19951
|
+
// set end of day for more accurate filtering
|
|
19952
|
+
) : (fieldVal) => {
|
|
19953
|
+
return dayjs(arrayFilterValue[0]).valueOf() <= dayjs(fieldVal).valueOf() && dayjs(fieldVal).valueOf() <= dayjs(arrayFilterValue[1]).valueOf();
|
|
19954
|
+
};
|
|
19955
|
+
} else if (ccSelectedFilter === "notBetween") {
|
|
19956
|
+
return qb ? qb.notBetween(
|
|
19957
|
+
new Date(arrayFilterValue[0]),
|
|
19958
|
+
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19959
|
+
// set end of day for more accurate filtering
|
|
19960
|
+
) : (fieldVal) => {
|
|
19961
|
+
return dayjs(arrayFilterValue[0]).valueOf() > dayjs(fieldVal).valueOf() || dayjs(fieldVal).valueOf() > dayjs(arrayFilterValue[1]).valueOf();
|
|
19962
|
+
};
|
|
19963
|
+
} else if (ccSelectedFilter === "isBefore") {
|
|
19964
|
+
return qb ? qb.lessThan(new Date(filterValue)) : (fieldVal) => {
|
|
19965
|
+
return dayjs(fieldVal).valueOf() < dayjs(filterValue).valueOf();
|
|
19966
|
+
};
|
|
19967
|
+
} else if (ccSelectedFilter === "isAfter") {
|
|
19968
|
+
return qb ? qb.greaterThan(new Date(new Date(filterValue).setHours(23, 59))) : (fieldVal) => {
|
|
19969
|
+
return dayjs(fieldVal).valueOf() > dayjs(filterValue).valueOf();
|
|
19970
|
+
};
|
|
19971
|
+
} else if (ccSelectedFilter === "greaterThan") {
|
|
19972
|
+
return qb ? qb.greaterThan(filterValue) : (fieldVal) => {
|
|
19973
|
+
return fieldVal > filterValue;
|
|
19974
|
+
};
|
|
19975
|
+
} else if (ccSelectedFilter === "lessThan") {
|
|
19976
|
+
return qb ? qb.lessThan(filterValue) : (fieldVal) => {
|
|
19977
|
+
return fieldVal < filterValue;
|
|
19978
|
+
};
|
|
19979
|
+
} else if (ccSelectedFilter === "inRange") {
|
|
19980
|
+
return qb ? qb.between(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
19981
|
+
return filterValue[0] <= fieldVal && fieldVal <= filterValue[1];
|
|
19982
|
+
};
|
|
19983
|
+
} else if (ccSelectedFilter === "outsideRange") {
|
|
19984
|
+
return qb ? qb.notBetween(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
19985
|
+
return filterValue[0] > fieldVal || fieldVal > filterValue[1];
|
|
19986
|
+
};
|
|
19987
|
+
} else if (ccSelectedFilter === "equalTo") {
|
|
19988
|
+
return qb ? filterValue : (fieldVal) => {
|
|
19989
|
+
return fieldVal === filterValue;
|
|
19990
|
+
};
|
|
19991
|
+
} else if (ccSelectedFilter === "regex") {
|
|
19992
|
+
return qb ? qb.matchesRegex(filterValue) : (fieldVal) => {
|
|
19993
|
+
new RegExp(filterValue).test(fieldVal);
|
|
19994
|
+
return fieldVal;
|
|
19995
|
+
};
|
|
19996
|
+
}
|
|
19997
|
+
throw new Error(
|
|
19998
|
+
`Unsupported filter ${selectedFilter}. Please make a new filter if you need one`
|
|
19999
|
+
);
|
|
20000
|
+
}
|
|
20001
|
+
__name(getSubFilter, "getSubFilter");
|
|
19788
20002
|
function getCurrentParamsFromUrl(location2, isSimple) {
|
|
19789
20003
|
let { search: search2 } = location2;
|
|
19790
20004
|
if (isSimple) {
|
|
@@ -19856,6 +20070,22 @@ function parseFilters(newParams) {
|
|
|
19856
20070
|
});
|
|
19857
20071
|
}
|
|
19858
20072
|
__name(parseFilters, "parseFilters");
|
|
20073
|
+
function buildRef(qb, reference2, searchField, expression) {
|
|
20074
|
+
if (reference2.reference) {
|
|
20075
|
+
return qb.related(reference2.target).whereAny({
|
|
20076
|
+
[reference2.sourceField]: buildRef(
|
|
20077
|
+
qb,
|
|
20078
|
+
reference2.reference,
|
|
20079
|
+
searchField,
|
|
20080
|
+
expression
|
|
20081
|
+
)
|
|
20082
|
+
});
|
|
20083
|
+
}
|
|
20084
|
+
return qb.related(reference2.target).whereAny({
|
|
20085
|
+
[searchField]: expression
|
|
20086
|
+
});
|
|
20087
|
+
}
|
|
20088
|
+
__name(buildRef, "buildRef");
|
|
19859
20089
|
function makeDataTableHandlers({
|
|
19860
20090
|
setNewParams,
|
|
19861
20091
|
defaults,
|
|
@@ -19943,18 +20173,40 @@ function makeDataTableHandlers({
|
|
|
19943
20173
|
};
|
|
19944
20174
|
}
|
|
19945
20175
|
__name(makeDataTableHandlers, "makeDataTableHandlers");
|
|
20176
|
+
function cleanupFilter(filter2) {
|
|
20177
|
+
let filterToUse = filter2;
|
|
20178
|
+
if (filterToUse.selectedFilter === "inList" && typeof filterToUse.filterValue === "number") {
|
|
20179
|
+
filterToUse = __spreadProps(__spreadValues({}, filterToUse), {
|
|
20180
|
+
filterValue: filterToUse.filterValue.toString()
|
|
20181
|
+
});
|
|
20182
|
+
}
|
|
20183
|
+
return filterToUse;
|
|
20184
|
+
}
|
|
20185
|
+
__name(cleanupFilter, "cleanupFilter");
|
|
20186
|
+
function getAllFilters(filters, searchTerm, schema) {
|
|
20187
|
+
let allFilters = [
|
|
20188
|
+
...filters,
|
|
20189
|
+
...getFiltersFromSearchTerm(searchTerm, schema)
|
|
20190
|
+
];
|
|
20191
|
+
allFilters = allFilters.filter((val) => {
|
|
20192
|
+
return val !== "";
|
|
20193
|
+
});
|
|
20194
|
+
return allFilters.map(cleanupFilter);
|
|
20195
|
+
}
|
|
20196
|
+
__name(getAllFilters, "getAllFilters");
|
|
19946
20197
|
function getQueryParams({
|
|
19947
20198
|
currentParams,
|
|
19948
|
-
|
|
20199
|
+
urlConnected,
|
|
19949
20200
|
defaults,
|
|
19950
20201
|
schema,
|
|
19951
20202
|
isInfinite,
|
|
19952
20203
|
entities,
|
|
19953
20204
|
isLocalCall,
|
|
19954
20205
|
additionalFilter,
|
|
20206
|
+
additionalOrFilter,
|
|
19955
20207
|
doNotCoercePageSize,
|
|
19956
20208
|
noOrderError,
|
|
19957
|
-
|
|
20209
|
+
isCodeModel,
|
|
19958
20210
|
ownProps
|
|
19959
20211
|
}) {
|
|
19960
20212
|
Object.keys(currentParams).forEach(function(key) {
|
|
@@ -19977,65 +20229,232 @@ function getQueryParams({
|
|
|
19977
20229
|
)[0];
|
|
19978
20230
|
pageSize = closest;
|
|
19979
20231
|
}
|
|
19980
|
-
const cleanedOrder = [];
|
|
19981
|
-
if (order2 && order2.length) {
|
|
19982
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19983
|
-
order2.forEach((orderVal) => {
|
|
19984
|
-
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
19985
|
-
const schemaForField = ccFields[ccDisplayName];
|
|
19986
|
-
if (schemaForField) {
|
|
19987
|
-
const { path: path2 } = schemaForField;
|
|
19988
|
-
const reversed = ccDisplayName !== orderVal;
|
|
19989
|
-
const prefix2 = reversed ? "-" : "";
|
|
19990
|
-
cleanedOrder.push(prefix2 + path2);
|
|
19991
|
-
} else {
|
|
19992
|
-
!noOrderError && console.error(
|
|
19993
|
-
"No schema for field found!",
|
|
19994
|
-
ccDisplayName,
|
|
19995
|
-
JSON.stringify(schema.fields, null, 2)
|
|
19996
|
-
);
|
|
19997
|
-
}
|
|
19998
|
-
});
|
|
19999
|
-
}
|
|
20000
20232
|
const toReturn = {
|
|
20001
20233
|
//these are values that might be generally useful for the wrapped component
|
|
20002
20234
|
page,
|
|
20003
20235
|
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20004
|
-
order:
|
|
20236
|
+
order: order2,
|
|
20005
20237
|
filters,
|
|
20006
20238
|
searchTerm
|
|
20007
20239
|
};
|
|
20008
|
-
const { where, order_by, limit, offset: offset3 } = tableQueryParamsToHasuraClauses({
|
|
20009
|
-
page,
|
|
20010
|
-
pageSize,
|
|
20011
|
-
searchTerm,
|
|
20012
|
-
filters,
|
|
20013
|
-
order: cleanedOrder,
|
|
20014
|
-
schema
|
|
20015
|
-
});
|
|
20016
|
-
initializeHasuraWhereAndFilter(additionalFilter, where, currentParams);
|
|
20017
|
-
addCustomColumnFilters(where, schema.fields, currentParams);
|
|
20018
20240
|
if (isLocalCall) {
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
|
|
20022
|
-
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20241
|
+
let newEntities = entities;
|
|
20242
|
+
newEntities = filterEntitiesLocal(
|
|
20243
|
+
filters,
|
|
20244
|
+
searchTerm,
|
|
20245
|
+
newEntities,
|
|
20246
|
+
schema,
|
|
20247
|
+
ownProps
|
|
20248
|
+
);
|
|
20249
|
+
newEntities = orderEntitiesLocal(order2, newEntities, schema, ownProps);
|
|
20250
|
+
const entitiesAcrossPages = newEntities;
|
|
20251
|
+
const newEntityCount = newEntities.length;
|
|
20252
|
+
if (!isInfinite && !ownProps.controlled_pageSize) {
|
|
20253
|
+
const offset3 = (page - 1) * pageSize;
|
|
20254
|
+
newEntities = take(drop(newEntities, offset3), pageSize);
|
|
20255
|
+
}
|
|
20256
|
+
toReturn.entities = newEntities;
|
|
20257
|
+
toReturn.entitiesAcrossPages = entitiesAcrossPages;
|
|
20258
|
+
toReturn.entityCount = newEntityCount;
|
|
20259
|
+
return toReturn;
|
|
20027
20260
|
} else {
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20261
|
+
const graphqlQueryParams = {
|
|
20262
|
+
// need to make sure sort exists because of https://github.com/apollographql/apollo-client/issues/3077
|
|
20263
|
+
sort: []
|
|
20264
|
+
};
|
|
20265
|
+
if (isInfinite) {
|
|
20266
|
+
graphqlQueryParams.pageSize = 999;
|
|
20267
|
+
graphqlQueryParams.pageNumber = 1;
|
|
20268
|
+
} else {
|
|
20269
|
+
graphqlQueryParams.pageNumber = Number(page);
|
|
20270
|
+
graphqlQueryParams.pageSize = ownProps.controlled_pageSize || Number(pageSize);
|
|
20271
|
+
}
|
|
20272
|
+
const { model } = schema;
|
|
20273
|
+
if (!window.QueryBuilder) return toReturn;
|
|
20274
|
+
const qb = new window.QueryBuilder(model);
|
|
20275
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
20276
|
+
if (tableQueryParams.order && tableQueryParams.order.length) {
|
|
20277
|
+
tableQueryParams.order.forEach((orderVal) => {
|
|
20278
|
+
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
20279
|
+
const schemaForField = ccFields[ccDisplayName];
|
|
20280
|
+
if (schemaForField) {
|
|
20281
|
+
const { path: path2 } = schemaForField;
|
|
20282
|
+
const reversed = ccDisplayName !== orderVal;
|
|
20283
|
+
const prefix2 = reversed ? "-" : "";
|
|
20284
|
+
graphqlQueryParams.sort = [
|
|
20285
|
+
...graphqlQueryParams.sort || [],
|
|
20286
|
+
prefix2 + path2
|
|
20287
|
+
];
|
|
20288
|
+
} else {
|
|
20289
|
+
!noOrderError && console.error(
|
|
20290
|
+
"No schema for field found!",
|
|
20291
|
+
ccDisplayName,
|
|
20292
|
+
JSON.stringify(schema.fields, null, 2)
|
|
20293
|
+
);
|
|
20294
|
+
}
|
|
20295
|
+
});
|
|
20296
|
+
}
|
|
20297
|
+
let errorParsingUrlString;
|
|
20298
|
+
const additionalFilterToUse = additionalFilter(qb, currentParams);
|
|
20299
|
+
let additionalOrFilterToUse = additionalOrFilter(qb, currentParams);
|
|
20300
|
+
if (additionalOrFilterToUse && additionalOrFilterToUse.ignoreSearchTerm) {
|
|
20301
|
+
searchTerm = "";
|
|
20302
|
+
additionalOrFilterToUse = additionalOrFilterToUse.additionalOrFilterToUse;
|
|
20303
|
+
}
|
|
20304
|
+
const allFilters = getAllFilters(filters, searchTerm, schema);
|
|
20305
|
+
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
20306
|
+
try {
|
|
20307
|
+
const flattenFilters = /* @__PURE__ */ __name((filterObj) => {
|
|
20308
|
+
return flatMap(Object.keys(filterObj), (key) => {
|
|
20309
|
+
return filterObj[key].map((filter2) => ({
|
|
20310
|
+
[key]: filter2
|
|
20311
|
+
}));
|
|
20312
|
+
});
|
|
20313
|
+
}, "flattenFilters");
|
|
20314
|
+
const orFiltersObject = getQueries(orFilters, qb, ccFields);
|
|
20315
|
+
let allOrFilters = flattenFilters(orFiltersObject);
|
|
20316
|
+
otherOrFilters.forEach((orFilters2) => {
|
|
20317
|
+
const otherOrFiltersObject = getQueries(orFilters2, qb, ccFields);
|
|
20318
|
+
allOrFilters = allOrFilters.concat(
|
|
20319
|
+
flattenFilters(otherOrFiltersObject)
|
|
20320
|
+
);
|
|
20321
|
+
});
|
|
20322
|
+
allOrFilters.push(additionalOrFilterToUse);
|
|
20323
|
+
allOrFilters = allOrFilters.filter((obj) => !isEmpty$1(obj));
|
|
20324
|
+
const unflattenedAndQueries = getQueries(andFilters, qb, ccFields);
|
|
20325
|
+
let allAndFilters = flattenFilters(unflattenedAndQueries);
|
|
20326
|
+
allAndFilters.push(additionalFilterToUse);
|
|
20327
|
+
allAndFilters = allAndFilters.filter((obj) => !isEmpty$1(obj));
|
|
20328
|
+
if (allAndFilters.length) {
|
|
20329
|
+
qb.whereAll(...allAndFilters);
|
|
20330
|
+
}
|
|
20331
|
+
if (allOrFilters.length) {
|
|
20332
|
+
qb.andWhereAny(...allOrFilters);
|
|
20333
|
+
}
|
|
20334
|
+
const columnCustomFilters = getColumnCustomFilters(
|
|
20335
|
+
andFilters,
|
|
20336
|
+
qb,
|
|
20337
|
+
ccFields
|
|
20338
|
+
);
|
|
20339
|
+
if (columnCustomFilters.length) {
|
|
20340
|
+
qb.whereAll(...columnCustomFilters);
|
|
20034
20341
|
}
|
|
20342
|
+
} catch (e) {
|
|
20343
|
+
if (urlConnected) {
|
|
20344
|
+
errorParsingUrlString = e;
|
|
20345
|
+
console.error(
|
|
20346
|
+
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20347
|
+
e
|
|
20348
|
+
);
|
|
20349
|
+
} else {
|
|
20350
|
+
console.error("Error building query params from filter:");
|
|
20351
|
+
throw e;
|
|
20352
|
+
}
|
|
20353
|
+
}
|
|
20354
|
+
if (qb.query.filters.length) {
|
|
20355
|
+
graphqlQueryParams.filter = qb.toJSON();
|
|
20356
|
+
}
|
|
20357
|
+
if (!graphqlQueryParams.sort.length) {
|
|
20358
|
+
graphqlQueryParams.sort.push("-updatedAt");
|
|
20359
|
+
}
|
|
20360
|
+
graphqlQueryParams.sort.push(
|
|
20361
|
+
isCodeModel ? "code" : window.__sortId || "id"
|
|
20362
|
+
);
|
|
20363
|
+
return __spreadProps(__spreadValues({}, toReturn), {
|
|
20364
|
+
//the query params will get passed directly to as variables to the graphql query
|
|
20365
|
+
variables: graphqlQueryParams,
|
|
20366
|
+
errorParsingUrlString
|
|
20035
20367
|
});
|
|
20036
20368
|
}
|
|
20037
20369
|
}
|
|
20038
20370
|
__name(getQueryParams, "getQueryParams");
|
|
20371
|
+
function getSubFiltersAndPath(filter2, qb, ccFields) {
|
|
20372
|
+
const { selectedFilter, filterValue, filterOn } = filter2;
|
|
20373
|
+
const fieldSchema = ccFields[filterOn];
|
|
20374
|
+
let filterValueToUse = filterValue;
|
|
20375
|
+
if (fieldSchema) {
|
|
20376
|
+
if (fieldSchema.normalizeFilter) {
|
|
20377
|
+
filterValueToUse = fieldSchema.normalizeFilter(
|
|
20378
|
+
filterValue,
|
|
20379
|
+
selectedFilter,
|
|
20380
|
+
filterOn
|
|
20381
|
+
);
|
|
20382
|
+
}
|
|
20383
|
+
}
|
|
20384
|
+
const _subFilters = getSubFilter(qb, selectedFilter, filterValueToUse);
|
|
20385
|
+
let filterField;
|
|
20386
|
+
if (fieldSchema) {
|
|
20387
|
+
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20388
|
+
if (reference2) {
|
|
20389
|
+
filterField = reference2.sourceField;
|
|
20390
|
+
} else {
|
|
20391
|
+
filterField = path2;
|
|
20392
|
+
}
|
|
20393
|
+
} else if (filterOn === "id") {
|
|
20394
|
+
filterField = filterOn;
|
|
20395
|
+
} else {
|
|
20396
|
+
console.error("Trying to filter on unknown field");
|
|
20397
|
+
}
|
|
20398
|
+
const subFiltersToUse = [];
|
|
20399
|
+
const subFilters = Array.isArray(_subFilters) ? _subFilters : [_subFilters];
|
|
20400
|
+
subFilters.forEach((subFilter) => {
|
|
20401
|
+
let subFilterToUse = subFilter;
|
|
20402
|
+
if (fieldSchema) {
|
|
20403
|
+
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20404
|
+
if (reference2) {
|
|
20405
|
+
subFilterToUse = buildRef(
|
|
20406
|
+
qb,
|
|
20407
|
+
reference2,
|
|
20408
|
+
last$1(path2.split(".")),
|
|
20409
|
+
subFilter
|
|
20410
|
+
);
|
|
20411
|
+
}
|
|
20412
|
+
}
|
|
20413
|
+
subFiltersToUse.push(subFilterToUse);
|
|
20414
|
+
});
|
|
20415
|
+
return {
|
|
20416
|
+
path: filterField,
|
|
20417
|
+
subFilters: subFiltersToUse
|
|
20418
|
+
};
|
|
20419
|
+
}
|
|
20420
|
+
__name(getSubFiltersAndPath, "getSubFiltersAndPath");
|
|
20421
|
+
function getQueries(filters, qb, ccFields) {
|
|
20422
|
+
const subQueries = filters.reduce((acc, filter2) => {
|
|
20423
|
+
if (!filter2) {
|
|
20424
|
+
console.warn("We should always have a filter object!");
|
|
20425
|
+
return acc;
|
|
20426
|
+
}
|
|
20427
|
+
const { filterOn } = filter2;
|
|
20428
|
+
const fieldSchema = ccFields[filterOn];
|
|
20429
|
+
if (!filter2.isSearchTermFilter && (fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter))
|
|
20430
|
+
return acc;
|
|
20431
|
+
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20432
|
+
acc[path2] = subFilters;
|
|
20433
|
+
return acc;
|
|
20434
|
+
}, {});
|
|
20435
|
+
return subQueries;
|
|
20436
|
+
}
|
|
20437
|
+
__name(getQueries, "getQueries");
|
|
20438
|
+
function getColumnCustomFilters(filters, qb, ccFields) {
|
|
20439
|
+
const subQueries = filters.reduce((acc, filter2) => {
|
|
20440
|
+
if (!filter2) {
|
|
20441
|
+
console.warn("We should always have a filter object!");
|
|
20442
|
+
return acc;
|
|
20443
|
+
}
|
|
20444
|
+
const { filterOn } = filter2;
|
|
20445
|
+
const fieldSchema = ccFields[filterOn];
|
|
20446
|
+
if (filter2.isSearchTermFilter || !(fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter)) {
|
|
20447
|
+
return acc;
|
|
20448
|
+
}
|
|
20449
|
+
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20450
|
+
subFilters.forEach((subFilter) => {
|
|
20451
|
+
acc.push(fieldSchema.additionalColumnFilter(qb, subFilter, path2));
|
|
20452
|
+
});
|
|
20453
|
+
return acc;
|
|
20454
|
+
}, []);
|
|
20455
|
+
return subQueries;
|
|
20456
|
+
}
|
|
20457
|
+
__name(getColumnCustomFilters, "getColumnCustomFilters");
|
|
20039
20458
|
function PagingInput({ disabled, onBlur, defaultPage }) {
|
|
20040
20459
|
const [page, setPage] = useState(defaultPage);
|
|
20041
20460
|
const defaultValue2 = useRef(defaultPage);
|
|
@@ -32549,293 +32968,6 @@ const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
|
32549
32968
|
toReturn
|
|
32550
32969
|
);
|
|
32551
32970
|
}, "InfoHelper");
|
|
32552
|
-
var dayjs_min$1 = { exports: {} };
|
|
32553
|
-
var dayjs_min = dayjs_min$1.exports;
|
|
32554
|
-
var hasRequiredDayjs_min;
|
|
32555
|
-
function requireDayjs_min() {
|
|
32556
|
-
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
32557
|
-
hasRequiredDayjs_min = 1;
|
|
32558
|
-
(function(module2, exports2) {
|
|
32559
|
-
!function(t2, e) {
|
|
32560
|
-
module2.exports = e();
|
|
32561
|
-
}(dayjs_min, function() {
|
|
32562
|
-
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) {
|
|
32563
|
-
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
32564
|
-
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
32565
|
-
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
32566
|
-
var r3 = String(t3);
|
|
32567
|
-
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
32568
|
-
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
32569
|
-
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
32570
|
-
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
32571
|
-
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
32572
|
-
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
32573
|
-
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);
|
|
32574
|
-
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
32575
|
-
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
32576
|
-
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
32577
|
-
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
32578
|
-
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$/, "");
|
|
32579
|
-
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
32580
|
-
return void 0 === t3;
|
|
32581
|
-
}, "u") }, g2 = "en", D2 = {};
|
|
32582
|
-
D2[g2] = M2;
|
|
32583
|
-
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
32584
|
-
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
32585
|
-
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
32586
|
-
var i3;
|
|
32587
|
-
if (!e2) return g2;
|
|
32588
|
-
if ("string" == typeof e2) {
|
|
32589
|
-
var s3 = e2.toLowerCase();
|
|
32590
|
-
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
32591
|
-
var u3 = e2.split("-");
|
|
32592
|
-
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
32593
|
-
} else {
|
|
32594
|
-
var a3 = e2.name;
|
|
32595
|
-
D2[a3] = e2, i3 = a3;
|
|
32596
|
-
}
|
|
32597
|
-
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
32598
|
-
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
32599
|
-
if (S2(t3)) return t3.clone();
|
|
32600
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
32601
|
-
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
32602
|
-
}, "O"), b2 = v2;
|
|
32603
|
-
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
32604
|
-
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
32605
|
-
};
|
|
32606
|
-
var _2 = function() {
|
|
32607
|
-
function M3(t3) {
|
|
32608
|
-
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
32609
|
-
}
|
|
32610
|
-
__name(M3, "M");
|
|
32611
|
-
var m3 = M3.prototype;
|
|
32612
|
-
return m3.parse = function(t3) {
|
|
32613
|
-
this.$d = function(t4) {
|
|
32614
|
-
var e2 = t4.date, n3 = t4.utc;
|
|
32615
|
-
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
32616
|
-
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
32617
|
-
if (e2 instanceof Date) return new Date(e2);
|
|
32618
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
32619
|
-
var r3 = e2.match($);
|
|
32620
|
-
if (r3) {
|
|
32621
|
-
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
32622
|
-
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);
|
|
32623
|
-
}
|
|
32624
|
-
}
|
|
32625
|
-
return new Date(e2);
|
|
32626
|
-
}(t3), this.init();
|
|
32627
|
-
}, m3.init = function() {
|
|
32628
|
-
var t3 = this.$d;
|
|
32629
|
-
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();
|
|
32630
|
-
}, m3.$utils = function() {
|
|
32631
|
-
return b2;
|
|
32632
|
-
}, m3.isValid = function() {
|
|
32633
|
-
return !(this.$d.toString() === l2);
|
|
32634
|
-
}, m3.isSame = function(t3, e2) {
|
|
32635
|
-
var n3 = O2(t3);
|
|
32636
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
32637
|
-
}, m3.isAfter = function(t3, e2) {
|
|
32638
|
-
return O2(t3) < this.startOf(e2);
|
|
32639
|
-
}, m3.isBefore = function(t3, e2) {
|
|
32640
|
-
return this.endOf(e2) < O2(t3);
|
|
32641
|
-
}, m3.$g = function(t3, e2, n3) {
|
|
32642
|
-
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
32643
|
-
}, m3.unix = function() {
|
|
32644
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
32645
|
-
}, m3.valueOf = function() {
|
|
32646
|
-
return this.$d.getTime();
|
|
32647
|
-
}, m3.startOf = function(t3, e2) {
|
|
32648
|
-
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32649
|
-
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
32650
|
-
return r3 ? i3 : i3.endOf(a2);
|
|
32651
|
-
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32652
|
-
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
32653
|
-
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
32654
|
-
switch (f3) {
|
|
32655
|
-
case h2:
|
|
32656
|
-
return r3 ? l3(1, 0) : l3(31, 11);
|
|
32657
|
-
case c2:
|
|
32658
|
-
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
32659
|
-
case o2:
|
|
32660
|
-
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
32661
|
-
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
32662
|
-
case a2:
|
|
32663
|
-
case d2:
|
|
32664
|
-
return $2(v3 + "Hours", 0);
|
|
32665
|
-
case u2:
|
|
32666
|
-
return $2(v3 + "Minutes", 1);
|
|
32667
|
-
case s2:
|
|
32668
|
-
return $2(v3 + "Seconds", 2);
|
|
32669
|
-
case i2:
|
|
32670
|
-
return $2(v3 + "Milliseconds", 3);
|
|
32671
|
-
default:
|
|
32672
|
-
return this.clone();
|
|
32673
|
-
}
|
|
32674
|
-
}, m3.endOf = function(t3) {
|
|
32675
|
-
return this.startOf(t3, false);
|
|
32676
|
-
}, m3.$set = function(t3, e2) {
|
|
32677
|
-
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;
|
|
32678
|
-
if (o3 === c2 || o3 === h2) {
|
|
32679
|
-
var y3 = this.clone().set(d2, 1);
|
|
32680
|
-
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
32681
|
-
} else l3 && this.$d[l3]($2);
|
|
32682
|
-
return this.init(), this;
|
|
32683
|
-
}, m3.set = function(t3, e2) {
|
|
32684
|
-
return this.clone().$set(t3, e2);
|
|
32685
|
-
}, m3.get = function(t3) {
|
|
32686
|
-
return this[b2.p(t3)]();
|
|
32687
|
-
}, m3.add = function(r3, f3) {
|
|
32688
|
-
var d3, l3 = this;
|
|
32689
|
-
r3 = Number(r3);
|
|
32690
|
-
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
32691
|
-
var e2 = O2(l3);
|
|
32692
|
-
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
32693
|
-
}, "y");
|
|
32694
|
-
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
32695
|
-
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
32696
|
-
if ($2 === a2) return y3(1);
|
|
32697
|
-
if ($2 === o2) return y3(7);
|
|
32698
|
-
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
32699
|
-
return b2.w(m4, this);
|
|
32700
|
-
}, m3.subtract = function(t3, e2) {
|
|
32701
|
-
return this.add(-1 * t3, e2);
|
|
32702
|
-
}, m3.format = function(t3) {
|
|
32703
|
-
var e2 = this, n3 = this.$locale();
|
|
32704
|
-
if (!this.isValid()) return n3.invalidDate || l2;
|
|
32705
|
-
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) {
|
|
32706
|
-
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
32707
|
-
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
32708
|
-
return b2.s(s3 % 12 || 12, t4, "0");
|
|
32709
|
-
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
32710
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
32711
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
32712
|
-
};
|
|
32713
|
-
return r3.replace(y2, function(t4, r4) {
|
|
32714
|
-
return r4 || function(t5) {
|
|
32715
|
-
switch (t5) {
|
|
32716
|
-
case "YY":
|
|
32717
|
-
return String(e2.$y).slice(-2);
|
|
32718
|
-
case "YYYY":
|
|
32719
|
-
return b2.s(e2.$y, 4, "0");
|
|
32720
|
-
case "M":
|
|
32721
|
-
return a3 + 1;
|
|
32722
|
-
case "MM":
|
|
32723
|
-
return b2.s(a3 + 1, 2, "0");
|
|
32724
|
-
case "MMM":
|
|
32725
|
-
return h3(n3.monthsShort, a3, c3, 3);
|
|
32726
|
-
case "MMMM":
|
|
32727
|
-
return h3(c3, a3);
|
|
32728
|
-
case "D":
|
|
32729
|
-
return e2.$D;
|
|
32730
|
-
case "DD":
|
|
32731
|
-
return b2.s(e2.$D, 2, "0");
|
|
32732
|
-
case "d":
|
|
32733
|
-
return String(e2.$W);
|
|
32734
|
-
case "dd":
|
|
32735
|
-
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
32736
|
-
case "ddd":
|
|
32737
|
-
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
32738
|
-
case "dddd":
|
|
32739
|
-
return o3[e2.$W];
|
|
32740
|
-
case "H":
|
|
32741
|
-
return String(s3);
|
|
32742
|
-
case "HH":
|
|
32743
|
-
return b2.s(s3, 2, "0");
|
|
32744
|
-
case "h":
|
|
32745
|
-
return d3(1);
|
|
32746
|
-
case "hh":
|
|
32747
|
-
return d3(2);
|
|
32748
|
-
case "a":
|
|
32749
|
-
return $2(s3, u3, true);
|
|
32750
|
-
case "A":
|
|
32751
|
-
return $2(s3, u3, false);
|
|
32752
|
-
case "m":
|
|
32753
|
-
return String(u3);
|
|
32754
|
-
case "mm":
|
|
32755
|
-
return b2.s(u3, 2, "0");
|
|
32756
|
-
case "s":
|
|
32757
|
-
return String(e2.$s);
|
|
32758
|
-
case "ss":
|
|
32759
|
-
return b2.s(e2.$s, 2, "0");
|
|
32760
|
-
case "SSS":
|
|
32761
|
-
return b2.s(e2.$ms, 3, "0");
|
|
32762
|
-
case "Z":
|
|
32763
|
-
return i3;
|
|
32764
|
-
}
|
|
32765
|
-
return null;
|
|
32766
|
-
}(t4) || i3.replace(":", "");
|
|
32767
|
-
});
|
|
32768
|
-
}, m3.utcOffset = function() {
|
|
32769
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
32770
|
-
}, m3.diff = function(r3, d3, l3) {
|
|
32771
|
-
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
32772
|
-
return b2.m(y3, m4);
|
|
32773
|
-
}, "D");
|
|
32774
|
-
switch (M4) {
|
|
32775
|
-
case h2:
|
|
32776
|
-
$2 = D3() / 12;
|
|
32777
|
-
break;
|
|
32778
|
-
case c2:
|
|
32779
|
-
$2 = D3();
|
|
32780
|
-
break;
|
|
32781
|
-
case f2:
|
|
32782
|
-
$2 = D3() / 3;
|
|
32783
|
-
break;
|
|
32784
|
-
case o2:
|
|
32785
|
-
$2 = (g3 - v3) / 6048e5;
|
|
32786
|
-
break;
|
|
32787
|
-
case a2:
|
|
32788
|
-
$2 = (g3 - v3) / 864e5;
|
|
32789
|
-
break;
|
|
32790
|
-
case u2:
|
|
32791
|
-
$2 = g3 / n2;
|
|
32792
|
-
break;
|
|
32793
|
-
case s2:
|
|
32794
|
-
$2 = g3 / e;
|
|
32795
|
-
break;
|
|
32796
|
-
case i2:
|
|
32797
|
-
$2 = g3 / t2;
|
|
32798
|
-
break;
|
|
32799
|
-
default:
|
|
32800
|
-
$2 = g3;
|
|
32801
|
-
}
|
|
32802
|
-
return l3 ? $2 : b2.a($2);
|
|
32803
|
-
}, m3.daysInMonth = function() {
|
|
32804
|
-
return this.endOf(c2).$D;
|
|
32805
|
-
}, m3.$locale = function() {
|
|
32806
|
-
return D2[this.$L];
|
|
32807
|
-
}, m3.locale = function(t3, e2) {
|
|
32808
|
-
if (!t3) return this.$L;
|
|
32809
|
-
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
32810
|
-
return r3 && (n3.$L = r3), n3;
|
|
32811
|
-
}, m3.clone = function() {
|
|
32812
|
-
return b2.w(this.$d, this);
|
|
32813
|
-
}, m3.toDate = function() {
|
|
32814
|
-
return new Date(this.valueOf());
|
|
32815
|
-
}, m3.toJSON = function() {
|
|
32816
|
-
return this.isValid() ? this.toISOString() : null;
|
|
32817
|
-
}, m3.toISOString = function() {
|
|
32818
|
-
return this.$d.toISOString();
|
|
32819
|
-
}, m3.toString = function() {
|
|
32820
|
-
return this.$d.toUTCString();
|
|
32821
|
-
}, M3;
|
|
32822
|
-
}(), k2 = _2.prototype;
|
|
32823
|
-
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
32824
|
-
k2[t3[1]] = function(e2) {
|
|
32825
|
-
return this.$g(e2, t3[0], t3[1]);
|
|
32826
|
-
};
|
|
32827
|
-
}), O2.extend = function(t3, e2) {
|
|
32828
|
-
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
32829
|
-
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
32830
|
-
return O2(1e3 * t3);
|
|
32831
|
-
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
32832
|
-
});
|
|
32833
|
-
})(dayjs_min$1);
|
|
32834
|
-
return dayjs_min$1.exports;
|
|
32835
|
-
}
|
|
32836
|
-
__name(requireDayjs_min, "requireDayjs_min");
|
|
32837
|
-
var dayjs_minExports = requireDayjs_min();
|
|
32838
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
32839
32971
|
var localizedFormat$2 = { exports: {} };
|
|
32840
32972
|
var localizedFormat$1 = localizedFormat$2.exports;
|
|
32841
32973
|
var hasRequiredLocalizedFormat;
|
|
@@ -50626,42 +50758,42 @@ function getFilterMenuItems(dataType) {
|
|
|
50626
50758
|
let filterMenuItems2 = [];
|
|
50627
50759
|
if (dataType === "string") {
|
|
50628
50760
|
filterMenuItems2 = [
|
|
50629
|
-
"
|
|
50630
|
-
"
|
|
50631
|
-
"
|
|
50632
|
-
"
|
|
50633
|
-
"
|
|
50634
|
-
"
|
|
50635
|
-
"
|
|
50636
|
-
"
|
|
50637
|
-
"
|
|
50638
|
-
"
|
|
50761
|
+
"Contains",
|
|
50762
|
+
"Not Contains",
|
|
50763
|
+
"Starts With",
|
|
50764
|
+
"Ends With",
|
|
50765
|
+
"Is Exactly",
|
|
50766
|
+
"Regex",
|
|
50767
|
+
"In List",
|
|
50768
|
+
"Not In List",
|
|
50769
|
+
"Is Empty",
|
|
50770
|
+
"Not Empty"
|
|
50639
50771
|
];
|
|
50640
50772
|
} else if (dataType === "lookup") {
|
|
50641
50773
|
filterMenuItems2 = [
|
|
50642
|
-
"
|
|
50643
|
-
"
|
|
50644
|
-
"
|
|
50645
|
-
"
|
|
50646
|
-
"
|
|
50647
|
-
"
|
|
50774
|
+
"Contains",
|
|
50775
|
+
"Not Contains",
|
|
50776
|
+
"Starts With",
|
|
50777
|
+
"Ends With",
|
|
50778
|
+
"Is Exactly",
|
|
50779
|
+
"Regex"
|
|
50648
50780
|
];
|
|
50649
50781
|
} else if (dataType === "boolean") {
|
|
50650
|
-
filterMenuItems2 = ["
|
|
50782
|
+
filterMenuItems2 = ["True", "False"];
|
|
50651
50783
|
} else if (dataType === "number" || dataType === "integer") {
|
|
50652
50784
|
filterMenuItems2 = [
|
|
50653
|
-
"
|
|
50654
|
-
"
|
|
50655
|
-
"
|
|
50656
|
-
"
|
|
50657
|
-
"
|
|
50658
|
-
"
|
|
50659
|
-
"
|
|
50785
|
+
"Greater Than",
|
|
50786
|
+
"Less Than",
|
|
50787
|
+
"In Range",
|
|
50788
|
+
"Outside Range",
|
|
50789
|
+
"Equal To",
|
|
50790
|
+
"In List",
|
|
50791
|
+
"Not In List"
|
|
50660
50792
|
];
|
|
50661
50793
|
} else if (dataType === "timestamp") {
|
|
50662
|
-
filterMenuItems2 = ["
|
|
50794
|
+
filterMenuItems2 = ["Is Between", "Not Between", "Is Before", "Is After"];
|
|
50663
50795
|
}
|
|
50664
|
-
return filterMenuItems2
|
|
50796
|
+
return filterMenuItems2;
|
|
50665
50797
|
}
|
|
50666
50798
|
__name(getFilterMenuItems, "getFilterMenuItems");
|
|
50667
50799
|
const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
@@ -56249,15 +56381,20 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56249
56381
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
56250
56382
|
const queryParams = useMemo(() => {
|
|
56251
56383
|
if (!isTableParamsConnected) {
|
|
56384
|
+
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
56385
|
+
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
56252
56386
|
return getQueryParams({
|
|
56253
56387
|
doNotCoercePageSize,
|
|
56254
56388
|
currentParams,
|
|
56255
56389
|
entities: props.entities,
|
|
56390
|
+
// for local table
|
|
56391
|
+
urlConnected,
|
|
56256
56392
|
defaults,
|
|
56257
56393
|
schema: convertedSchema,
|
|
56258
56394
|
isInfinite,
|
|
56259
56395
|
isLocalCall,
|
|
56260
|
-
additionalFilter:
|
|
56396
|
+
additionalFilter: additionalFilterToUse,
|
|
56397
|
+
additionalOrFilter: additionalOrFilterToUse,
|
|
56261
56398
|
noOrderError: props.noOrderError,
|
|
56262
56399
|
isCodeModel: props.isCodeModel,
|
|
56263
56400
|
ownProps: props
|
|
@@ -71627,6 +71764,7 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71627
71764
|
var _a;
|
|
71628
71765
|
const {
|
|
71629
71766
|
additionalFilter,
|
|
71767
|
+
additionalOrFilter,
|
|
71630
71768
|
controlled_pageSize,
|
|
71631
71769
|
defaults: _defaults,
|
|
71632
71770
|
doNotCoercePageSize,
|
|
@@ -71734,21 +71872,28 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71734
71872
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
71735
71873
|
);
|
|
71736
71874
|
const queryParams = useMemo(() => {
|
|
71875
|
+
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
71876
|
+
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
71737
71877
|
return getQueryParams({
|
|
71738
71878
|
doNotCoercePageSize,
|
|
71739
71879
|
currentParams,
|
|
71740
71880
|
entities,
|
|
71881
|
+
// for local table
|
|
71882
|
+
urlConnected,
|
|
71741
71883
|
defaults: defaultsToUse,
|
|
71742
71884
|
schema: convertedSchema,
|
|
71743
71885
|
isInfinite: isInfinite || isSimple && !withPaging,
|
|
71744
71886
|
isLocalCall,
|
|
71745
|
-
additionalFilter,
|
|
71887
|
+
additionalFilter: additionalFilterToUse,
|
|
71888
|
+
additionalOrFilter: additionalOrFilterToUse,
|
|
71746
71889
|
noOrderError,
|
|
71890
|
+
isCodeModel,
|
|
71747
71891
|
ownProps: passingProps
|
|
71748
71892
|
});
|
|
71749
71893
|
}, [
|
|
71750
71894
|
additionalFilter,
|
|
71751
71895
|
passingProps,
|
|
71896
|
+
additionalOrFilter,
|
|
71752
71897
|
doNotCoercePageSize,
|
|
71753
71898
|
currentParams,
|
|
71754
71899
|
entities,
|
|
@@ -77925,7 +78070,6 @@ export {
|
|
|
77925
78070
|
getTagsAndTagOptions,
|
|
77926
78071
|
getTextFromEl,
|
|
77927
78072
|
hotkeysById,
|
|
77928
|
-
initializeHasuraWhereAndFilter,
|
|
77929
78073
|
inventoryIcon,
|
|
77930
78074
|
isSafari,
|
|
77931
78075
|
keyboardIcon,
|