@teselagen/ui 0.7.33-beta.6 → 0.7.34
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 +14 -7
- 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 +972 -837
- package/index.d.ts +0 -1
- package/index.es.js +972 -837
- package/index.js +1 -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/style.css +13 -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,410 +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
|
-
|
|
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;
|
|
19406
19424
|
}
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
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;
|
|
19415
19437
|
}
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
if (filters && filters.length > 0) {
|
|
19430
|
-
const filterClauses = filters.map((filter2) => {
|
|
19431
|
-
let { selectedFilter, filterOn, filterValue } = filter2;
|
|
19432
|
-
const fieldSchema = ccFields[filterOn] || {};
|
|
19433
|
-
const { path: path2, reference: reference2, type: type2 } = fieldSchema;
|
|
19434
|
-
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19435
|
-
if (stringFilterValue === false) {
|
|
19436
|
-
stringFilterValue = "false";
|
|
19437
|
-
} else {
|
|
19438
|
-
stringFilterValue = stringFilterValue || "";
|
|
19439
|
-
}
|
|
19440
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19441
|
-
if (type2 === "number" || type2 === "integer") {
|
|
19442
|
-
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19443
|
-
}
|
|
19444
|
-
if (fieldSchema.normalizeFilter) {
|
|
19445
|
-
filterValue = fieldSchema.normalizeFilter(
|
|
19446
|
-
filterValue,
|
|
19447
|
-
selectedFilter,
|
|
19448
|
-
filterOn
|
|
19449
|
-
);
|
|
19450
|
-
}
|
|
19451
|
-
if (reference2) {
|
|
19452
|
-
filterOn = reference2.sourceField;
|
|
19453
|
-
} else {
|
|
19454
|
-
filterOn = path2 || filterOn;
|
|
19455
|
-
}
|
|
19456
|
-
switch (selectedFilter) {
|
|
19457
|
-
case "none":
|
|
19458
|
-
return {};
|
|
19459
|
-
case "startsWith":
|
|
19460
|
-
return { [filterOn]: { _ilike: `${filterValue}%` } };
|
|
19461
|
-
case "endsWith":
|
|
19462
|
-
return { [filterOn]: { _ilike: `%${filterValue}` } };
|
|
19463
|
-
case "contains":
|
|
19464
|
-
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19465
|
-
case "notContains":
|
|
19466
|
-
return { [filterOn]: { _not_ilike: `%${filterValue}%` } };
|
|
19467
|
-
case "isExactly":
|
|
19468
|
-
return { [filterOn]: { _eq: filterValue } };
|
|
19469
|
-
case "isEmpty":
|
|
19470
|
-
return {
|
|
19471
|
-
_or: [
|
|
19472
|
-
{ [filterOn]: { _eq: "" } },
|
|
19473
|
-
{ [filterOn]: { _is_null: true } }
|
|
19474
|
-
]
|
|
19475
|
-
};
|
|
19476
|
-
case "notEmpty":
|
|
19477
|
-
return {
|
|
19478
|
-
_and: [
|
|
19479
|
-
{ [filterOn]: { _neq: "" } },
|
|
19480
|
-
{ [filterOn]: { _is_null: false } }
|
|
19481
|
-
]
|
|
19482
|
-
};
|
|
19483
|
-
case "inList":
|
|
19484
|
-
return { [filterOn]: { _in: filterValue } };
|
|
19485
|
-
case "notInList":
|
|
19486
|
-
return { [filterOn]: { _nin: filterValue } };
|
|
19487
|
-
case "true":
|
|
19488
|
-
return { [filterOn]: { _eq: true } };
|
|
19489
|
-
case "false":
|
|
19490
|
-
return { [filterOn]: { _eq: false } };
|
|
19491
|
-
case "dateIs":
|
|
19492
|
-
return { [filterOn]: { _eq: filterValue } };
|
|
19493
|
-
case "notBetween":
|
|
19494
|
-
return {
|
|
19495
|
-
_or: [
|
|
19496
|
-
{
|
|
19497
|
-
[filterOn]: {
|
|
19498
|
-
_lt: new Date(arrayFilterValue[0])
|
|
19499
|
-
}
|
|
19500
|
-
},
|
|
19501
|
-
{
|
|
19502
|
-
[filterOn]: {
|
|
19503
|
-
_gt: new Date(
|
|
19504
|
-
new Date(arrayFilterValue[1]).setHours(23, 59)
|
|
19505
|
-
)
|
|
19506
|
-
}
|
|
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);
|
|
19507
19451
|
}
|
|
19508
|
-
]
|
|
19509
|
-
};
|
|
19510
|
-
case "isBetween":
|
|
19511
|
-
return {
|
|
19512
|
-
[filterOn]: {
|
|
19513
|
-
_gte: new Date(arrayFilterValue[0]),
|
|
19514
|
-
_lte: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19515
|
-
}
|
|
19516
|
-
};
|
|
19517
|
-
case "isBefore":
|
|
19518
|
-
return { [filterOn]: { _lt: new Date(filterValue) } };
|
|
19519
|
-
case "isAfter":
|
|
19520
|
-
return { [filterOn]: { _gt: new Date(filterValue) } };
|
|
19521
|
-
case "greaterThan":
|
|
19522
|
-
return { [filterOn]: { _gt: parseFloat(filterValue) } };
|
|
19523
|
-
case "lessThan":
|
|
19524
|
-
return { [filterOn]: { _lt: parseFloat(filterValue) } };
|
|
19525
|
-
case "inRange":
|
|
19526
|
-
return {
|
|
19527
|
-
[filterOn]: {
|
|
19528
|
-
_gte: parseFloat(arrayFilterValue[0]),
|
|
19529
|
-
_lte: parseFloat(arrayFilterValue[1])
|
|
19530
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;
|
|
19531
19540
|
};
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
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;
|
|
19544
19592
|
}
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
set$1(o2, Object.keys(filter2)[0], filter2[Object.keys(filter2)[0]]);
|
|
19558
|
-
return o2;
|
|
19559
|
-
});
|
|
19560
|
-
if (filterClauses.length > 0) {
|
|
19561
|
-
if (Object.keys(where).length > 0) {
|
|
19562
|
-
where = { _and: [where, ...filterClauses] };
|
|
19563
|
-
} else {
|
|
19564
|
-
where = { _and: filterClauses };
|
|
19565
|
-
}
|
|
19566
|
-
}
|
|
19567
|
-
}
|
|
19568
|
-
if (order2 && order2.length > 0) {
|
|
19569
|
-
order2.forEach((item) => {
|
|
19570
|
-
const field = item.startsWith("-") ? item.substring(1) : item;
|
|
19571
|
-
const direction = item.startsWith("-") ? "desc" : "asc";
|
|
19572
|
-
order_by[field] = direction;
|
|
19573
|
-
});
|
|
19574
|
-
}
|
|
19575
|
-
if (additionalFilter) {
|
|
19576
|
-
where = { _and: [where, additionalFilter] };
|
|
19577
|
-
}
|
|
19578
|
-
return { where, order_by, limit, offset: offset3 };
|
|
19579
|
-
}
|
|
19580
|
-
__name(tableQueryParamsToHasuraClauses, "tableQueryParamsToHasuraClauses");
|
|
19581
|
-
function getFieldsMappedByCCDisplayName(schema) {
|
|
19582
|
-
if (!schema || !schema.fields) return {};
|
|
19583
|
-
return schema.fields.reduce((acc, field) => {
|
|
19584
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19585
|
-
acc[ccDisplayName] = field;
|
|
19586
|
-
return acc;
|
|
19587
|
-
}, {});
|
|
19588
|
-
}
|
|
19589
|
-
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19590
|
-
function getCCDisplayName(field) {
|
|
19591
|
-
return camelCase(
|
|
19592
|
-
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19593
|
-
);
|
|
19594
|
-
}
|
|
19595
|
-
__name(getCCDisplayName, "getCCDisplayName");
|
|
19596
|
-
function filterLocalEntitiesToHasura(records, { where, order_by, limit, offset: offset3, isInfinite } = {}) {
|
|
19597
|
-
let filteredRecords = [...records];
|
|
19598
|
-
if (where) {
|
|
19599
|
-
filteredRecords = applyWhereClause(filteredRecords, where);
|
|
19600
|
-
}
|
|
19601
|
-
if (order_by) {
|
|
19602
|
-
filteredRecords = applyOrderBy(filteredRecords, order_by);
|
|
19603
|
-
}
|
|
19604
|
-
const allFilteredRecords = [...filteredRecords];
|
|
19605
|
-
if (!isInfinite && offset3 !== void 0) {
|
|
19606
|
-
filteredRecords = filteredRecords.slice(offset3);
|
|
19607
|
-
}
|
|
19608
|
-
if (!isInfinite && limit !== void 0) {
|
|
19609
|
-
filteredRecords = filteredRecords.slice(0, limit);
|
|
19610
|
-
}
|
|
19611
|
-
return {
|
|
19612
|
-
entities: filteredRecords,
|
|
19613
|
-
entitiesAcrossPages: allFilteredRecords,
|
|
19614
|
-
entityCount: allFilteredRecords.length
|
|
19615
|
-
};
|
|
19616
|
-
}
|
|
19617
|
-
__name(filterLocalEntitiesToHasura, "filterLocalEntitiesToHasura");
|
|
19618
|
-
function applyWhereClause(records, where) {
|
|
19619
|
-
function applyFilter(record, filter2) {
|
|
19620
|
-
if (isEmpty$1(filter2)) {
|
|
19621
|
-
return true;
|
|
19622
|
-
}
|
|
19623
|
-
for (const key in filter2) {
|
|
19624
|
-
if (key === "_and") {
|
|
19625
|
-
if (isEmpty$1(filter2[key])) {
|
|
19626
|
-
continue;
|
|
19627
|
-
}
|
|
19628
|
-
if (!every(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19629
|
-
return false;
|
|
19630
|
-
}
|
|
19631
|
-
} else if (key === "_or") {
|
|
19632
|
-
if (isEmpty$1(filter2[key])) {
|
|
19633
|
-
continue;
|
|
19634
|
-
}
|
|
19635
|
-
if (!some(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19636
|
-
return false;
|
|
19637
|
-
}
|
|
19638
|
-
} else if (key === "_not") {
|
|
19639
|
-
if (applyFilter(record, filter2[key])) {
|
|
19640
|
-
return false;
|
|
19641
|
-
}
|
|
19642
|
-
} else {
|
|
19643
|
-
const value = record[key];
|
|
19644
|
-
const conditions = filter2[key];
|
|
19645
|
-
if (isObject$2(value) && isObject$2(conditions) && !hasOperator(conditions)) {
|
|
19646
|
-
return applyFilter(value, conditions);
|
|
19647
|
-
}
|
|
19648
|
-
for (const operator in conditions) {
|
|
19649
|
-
const conditionValue = conditions[operator];
|
|
19650
|
-
if (operator === "_gt" && conditions._lt) {
|
|
19651
|
-
if (!(value > conditionValue && value < conditions._lt))
|
|
19652
|
-
return false;
|
|
19653
|
-
continue;
|
|
19654
|
-
}
|
|
19655
|
-
if (operator === "_gte" && conditions._lte) {
|
|
19656
|
-
if (!(value >= conditionValue && value <= conditions._lte))
|
|
19657
|
-
return false;
|
|
19658
|
-
continue;
|
|
19659
|
-
}
|
|
19660
|
-
switch (operator) {
|
|
19661
|
-
case "_eq":
|
|
19662
|
-
if (!isEqual(value, conditionValue)) return false;
|
|
19663
|
-
break;
|
|
19664
|
-
case "_neq":
|
|
19665
|
-
if (isEqual(value, conditionValue)) return false;
|
|
19666
|
-
break;
|
|
19667
|
-
case "_gt":
|
|
19668
|
-
if (!(value > conditionValue)) return false;
|
|
19669
|
-
break;
|
|
19670
|
-
case "_gte":
|
|
19671
|
-
if (!(value >= conditionValue)) return false;
|
|
19672
|
-
break;
|
|
19673
|
-
case "_lt":
|
|
19674
|
-
if (!(value < conditionValue)) return false;
|
|
19675
|
-
break;
|
|
19676
|
-
case "_lte":
|
|
19677
|
-
if (!(value <= conditionValue)) return false;
|
|
19678
|
-
break;
|
|
19679
|
-
case "_like":
|
|
19680
|
-
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19681
|
-
return false;
|
|
19682
|
-
break;
|
|
19683
|
-
case "_ilike":
|
|
19684
|
-
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19685
|
-
return false;
|
|
19686
|
-
break;
|
|
19687
|
-
case "_nlike":
|
|
19688
|
-
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19689
|
-
return false;
|
|
19690
|
-
break;
|
|
19691
|
-
case "_nilike":
|
|
19692
|
-
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19693
|
-
return false;
|
|
19694
|
-
break;
|
|
19695
|
-
case "_starts_with":
|
|
19696
|
-
if (!isString$1(value) || !value.startsWith(conditionValue))
|
|
19697
|
-
return false;
|
|
19698
|
-
break;
|
|
19699
|
-
case "_ends_with":
|
|
19700
|
-
if (!isString$1(value) || !value.endsWith(conditionValue))
|
|
19701
|
-
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;
|
|
19702
19605
|
break;
|
|
19703
|
-
case
|
|
19704
|
-
|
|
19705
|
-
return false;
|
|
19606
|
+
case c2:
|
|
19607
|
+
$2 = D3();
|
|
19706
19608
|
break;
|
|
19707
|
-
case
|
|
19708
|
-
|
|
19709
|
-
return false;
|
|
19609
|
+
case f2:
|
|
19610
|
+
$2 = D3() / 3;
|
|
19710
19611
|
break;
|
|
19711
|
-
case
|
|
19712
|
-
|
|
19713
|
-
return false;
|
|
19612
|
+
case o2:
|
|
19613
|
+
$2 = (g3 - v3) / 6048e5;
|
|
19714
19614
|
break;
|
|
19715
|
-
case
|
|
19716
|
-
|
|
19615
|
+
case a2:
|
|
19616
|
+
$2 = (g3 - v3) / 864e5;
|
|
19717
19617
|
break;
|
|
19718
|
-
case
|
|
19719
|
-
|
|
19720
|
-
return false;
|
|
19618
|
+
case u2:
|
|
19619
|
+
$2 = g3 / n2;
|
|
19721
19620
|
break;
|
|
19722
|
-
case
|
|
19723
|
-
|
|
19724
|
-
return false;
|
|
19621
|
+
case s2:
|
|
19622
|
+
$2 = g3 / e;
|
|
19725
19623
|
break;
|
|
19726
|
-
case
|
|
19727
|
-
|
|
19728
|
-
return false;
|
|
19624
|
+
case i2:
|
|
19625
|
+
$2 = g3 / t2;
|
|
19729
19626
|
break;
|
|
19730
19627
|
default:
|
|
19731
|
-
|
|
19732
|
-
console.warn(`Unsupported operator: ${operator}`);
|
|
19733
|
-
return false;
|
|
19734
|
-
} else {
|
|
19735
|
-
console.warn(`Unsupported operator: ${operator}`);
|
|
19736
|
-
return false;
|
|
19737
|
-
}
|
|
19628
|
+
$2 = g3;
|
|
19738
19629
|
}
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
}
|
|
19751
|
-
|
|
19752
|
-
function
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
}
|
|
19770
|
-
}
|
|
19771
|
-
|
|
19772
|
-
}
|
|
19773
|
-
__name(
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
const { customColumnFilter, filterDisabled } = field;
|
|
19777
|
-
if (filterDisabled || !customColumnFilter) return;
|
|
19778
|
-
customColumnFilter(where, currentParams);
|
|
19779
|
-
});
|
|
19780
|
-
}, "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);
|
|
19781
19667
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
19782
19668
|
function safeStringify(val) {
|
|
19783
19669
|
if (val !== null && typeof val === "object") {
|
|
@@ -19794,6 +19680,325 @@ function safeParse(val) {
|
|
|
19794
19680
|
}
|
|
19795
19681
|
}
|
|
19796
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");
|
|
19797
20002
|
function getCurrentParamsFromUrl(location2, isSimple) {
|
|
19798
20003
|
let { search: search2 } = location2;
|
|
19799
20004
|
if (isSimple) {
|
|
@@ -19865,6 +20070,22 @@ function parseFilters(newParams) {
|
|
|
19865
20070
|
});
|
|
19866
20071
|
}
|
|
19867
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");
|
|
19868
20089
|
function makeDataTableHandlers({
|
|
19869
20090
|
setNewParams,
|
|
19870
20091
|
defaults,
|
|
@@ -19952,18 +20173,40 @@ function makeDataTableHandlers({
|
|
|
19952
20173
|
};
|
|
19953
20174
|
}
|
|
19954
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");
|
|
19955
20197
|
function getQueryParams({
|
|
19956
20198
|
currentParams,
|
|
19957
|
-
|
|
20199
|
+
urlConnected,
|
|
19958
20200
|
defaults,
|
|
19959
20201
|
schema,
|
|
19960
20202
|
isInfinite,
|
|
19961
20203
|
entities,
|
|
19962
20204
|
isLocalCall,
|
|
19963
20205
|
additionalFilter,
|
|
20206
|
+
additionalOrFilter,
|
|
19964
20207
|
doNotCoercePageSize,
|
|
19965
20208
|
noOrderError,
|
|
19966
|
-
|
|
20209
|
+
isCodeModel,
|
|
19967
20210
|
ownProps
|
|
19968
20211
|
}) {
|
|
19969
20212
|
Object.keys(currentParams).forEach(function(key) {
|
|
@@ -19986,65 +20229,232 @@ function getQueryParams({
|
|
|
19986
20229
|
)[0];
|
|
19987
20230
|
pageSize = closest;
|
|
19988
20231
|
}
|
|
19989
|
-
const
|
|
19990
|
-
if (order2 && order2.length) {
|
|
19991
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19992
|
-
order2.forEach((orderVal) => {
|
|
19993
|
-
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
19994
|
-
const schemaForField = ccFields[ccDisplayName];
|
|
19995
|
-
if (schemaForField) {
|
|
19996
|
-
const { path: path2 } = schemaForField;
|
|
19997
|
-
const reversed = ccDisplayName !== orderVal;
|
|
19998
|
-
const prefix2 = reversed ? "-" : "";
|
|
19999
|
-
cleanedOrder.push(prefix2 + path2);
|
|
20000
|
-
} else {
|
|
20001
|
-
!noOrderError && console.error(
|
|
20002
|
-
"No schema for field found!",
|
|
20003
|
-
ccDisplayName,
|
|
20004
|
-
JSON.stringify(schema.fields, null, 2)
|
|
20005
|
-
);
|
|
20006
|
-
}
|
|
20007
|
-
});
|
|
20008
|
-
}
|
|
20009
|
-
let toRet = {
|
|
20232
|
+
const toReturn = {
|
|
20010
20233
|
//these are values that might be generally useful for the wrapped component
|
|
20011
20234
|
page,
|
|
20012
20235
|
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20013
|
-
order:
|
|
20236
|
+
order: order2,
|
|
20014
20237
|
filters,
|
|
20015
20238
|
searchTerm
|
|
20016
20239
|
};
|
|
20017
|
-
const { where, order_by, limit, offset: offset3 } = tableQueryParamsToHasuraClauses({
|
|
20018
|
-
page,
|
|
20019
|
-
pageSize,
|
|
20020
|
-
searchTerm,
|
|
20021
|
-
filters,
|
|
20022
|
-
order: cleanedOrder,
|
|
20023
|
-
schema
|
|
20024
|
-
});
|
|
20025
|
-
initializeHasuraWhereAndFilter(additionalFilter, where, currentParams);
|
|
20026
|
-
addCustomColumnFilters(where, schema.fields, currentParams);
|
|
20027
20240
|
if (isLocalCall) {
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
|
|
20035
|
-
|
|
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;
|
|
20036
20260
|
} else {
|
|
20037
|
-
|
|
20038
|
-
|
|
20039
|
-
|
|
20040
|
-
|
|
20041
|
-
|
|
20042
|
-
|
|
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);
|
|
20043
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
|
|
20044
20367
|
});
|
|
20045
20368
|
}
|
|
20046
20369
|
}
|
|
20047
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");
|
|
20048
20458
|
function PagingInput({ disabled, onBlur, defaultPage }) {
|
|
20049
20459
|
const [page, setPage] = useState(defaultPage);
|
|
20050
20460
|
const defaultValue2 = useRef(defaultPage);
|
|
@@ -32558,293 +32968,6 @@ const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
|
32558
32968
|
toReturn
|
|
32559
32969
|
);
|
|
32560
32970
|
}, "InfoHelper");
|
|
32561
|
-
var dayjs_min$1 = { exports: {} };
|
|
32562
|
-
var dayjs_min = dayjs_min$1.exports;
|
|
32563
|
-
var hasRequiredDayjs_min;
|
|
32564
|
-
function requireDayjs_min() {
|
|
32565
|
-
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
32566
|
-
hasRequiredDayjs_min = 1;
|
|
32567
|
-
(function(module2, exports2) {
|
|
32568
|
-
!function(t2, e) {
|
|
32569
|
-
module2.exports = e();
|
|
32570
|
-
}(dayjs_min, function() {
|
|
32571
|
-
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) {
|
|
32572
|
-
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
32573
|
-
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
32574
|
-
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
32575
|
-
var r3 = String(t3);
|
|
32576
|
-
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
32577
|
-
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
32578
|
-
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
32579
|
-
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
32580
|
-
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
32581
|
-
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
32582
|
-
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);
|
|
32583
|
-
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
32584
|
-
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
32585
|
-
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
32586
|
-
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
32587
|
-
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$/, "");
|
|
32588
|
-
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
32589
|
-
return void 0 === t3;
|
|
32590
|
-
}, "u") }, g2 = "en", D2 = {};
|
|
32591
|
-
D2[g2] = M2;
|
|
32592
|
-
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
32593
|
-
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
32594
|
-
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
32595
|
-
var i3;
|
|
32596
|
-
if (!e2) return g2;
|
|
32597
|
-
if ("string" == typeof e2) {
|
|
32598
|
-
var s3 = e2.toLowerCase();
|
|
32599
|
-
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
32600
|
-
var u3 = e2.split("-");
|
|
32601
|
-
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
32602
|
-
} else {
|
|
32603
|
-
var a3 = e2.name;
|
|
32604
|
-
D2[a3] = e2, i3 = a3;
|
|
32605
|
-
}
|
|
32606
|
-
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
32607
|
-
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
32608
|
-
if (S2(t3)) return t3.clone();
|
|
32609
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
32610
|
-
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
32611
|
-
}, "O"), b2 = v2;
|
|
32612
|
-
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
32613
|
-
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
32614
|
-
};
|
|
32615
|
-
var _2 = function() {
|
|
32616
|
-
function M3(t3) {
|
|
32617
|
-
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
32618
|
-
}
|
|
32619
|
-
__name(M3, "M");
|
|
32620
|
-
var m3 = M3.prototype;
|
|
32621
|
-
return m3.parse = function(t3) {
|
|
32622
|
-
this.$d = function(t4) {
|
|
32623
|
-
var e2 = t4.date, n3 = t4.utc;
|
|
32624
|
-
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
32625
|
-
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
32626
|
-
if (e2 instanceof Date) return new Date(e2);
|
|
32627
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
32628
|
-
var r3 = e2.match($);
|
|
32629
|
-
if (r3) {
|
|
32630
|
-
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
32631
|
-
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);
|
|
32632
|
-
}
|
|
32633
|
-
}
|
|
32634
|
-
return new Date(e2);
|
|
32635
|
-
}(t3), this.init();
|
|
32636
|
-
}, m3.init = function() {
|
|
32637
|
-
var t3 = this.$d;
|
|
32638
|
-
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();
|
|
32639
|
-
}, m3.$utils = function() {
|
|
32640
|
-
return b2;
|
|
32641
|
-
}, m3.isValid = function() {
|
|
32642
|
-
return !(this.$d.toString() === l2);
|
|
32643
|
-
}, m3.isSame = function(t3, e2) {
|
|
32644
|
-
var n3 = O2(t3);
|
|
32645
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
32646
|
-
}, m3.isAfter = function(t3, e2) {
|
|
32647
|
-
return O2(t3) < this.startOf(e2);
|
|
32648
|
-
}, m3.isBefore = function(t3, e2) {
|
|
32649
|
-
return this.endOf(e2) < O2(t3);
|
|
32650
|
-
}, m3.$g = function(t3, e2, n3) {
|
|
32651
|
-
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
32652
|
-
}, m3.unix = function() {
|
|
32653
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
32654
|
-
}, m3.valueOf = function() {
|
|
32655
|
-
return this.$d.getTime();
|
|
32656
|
-
}, m3.startOf = function(t3, e2) {
|
|
32657
|
-
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32658
|
-
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
32659
|
-
return r3 ? i3 : i3.endOf(a2);
|
|
32660
|
-
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32661
|
-
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
32662
|
-
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
32663
|
-
switch (f3) {
|
|
32664
|
-
case h2:
|
|
32665
|
-
return r3 ? l3(1, 0) : l3(31, 11);
|
|
32666
|
-
case c2:
|
|
32667
|
-
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
32668
|
-
case o2:
|
|
32669
|
-
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
32670
|
-
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
32671
|
-
case a2:
|
|
32672
|
-
case d2:
|
|
32673
|
-
return $2(v3 + "Hours", 0);
|
|
32674
|
-
case u2:
|
|
32675
|
-
return $2(v3 + "Minutes", 1);
|
|
32676
|
-
case s2:
|
|
32677
|
-
return $2(v3 + "Seconds", 2);
|
|
32678
|
-
case i2:
|
|
32679
|
-
return $2(v3 + "Milliseconds", 3);
|
|
32680
|
-
default:
|
|
32681
|
-
return this.clone();
|
|
32682
|
-
}
|
|
32683
|
-
}, m3.endOf = function(t3) {
|
|
32684
|
-
return this.startOf(t3, false);
|
|
32685
|
-
}, m3.$set = function(t3, e2) {
|
|
32686
|
-
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;
|
|
32687
|
-
if (o3 === c2 || o3 === h2) {
|
|
32688
|
-
var y3 = this.clone().set(d2, 1);
|
|
32689
|
-
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
32690
|
-
} else l3 && this.$d[l3]($2);
|
|
32691
|
-
return this.init(), this;
|
|
32692
|
-
}, m3.set = function(t3, e2) {
|
|
32693
|
-
return this.clone().$set(t3, e2);
|
|
32694
|
-
}, m3.get = function(t3) {
|
|
32695
|
-
return this[b2.p(t3)]();
|
|
32696
|
-
}, m3.add = function(r3, f3) {
|
|
32697
|
-
var d3, l3 = this;
|
|
32698
|
-
r3 = Number(r3);
|
|
32699
|
-
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
32700
|
-
var e2 = O2(l3);
|
|
32701
|
-
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
32702
|
-
}, "y");
|
|
32703
|
-
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
32704
|
-
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
32705
|
-
if ($2 === a2) return y3(1);
|
|
32706
|
-
if ($2 === o2) return y3(7);
|
|
32707
|
-
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
32708
|
-
return b2.w(m4, this);
|
|
32709
|
-
}, m3.subtract = function(t3, e2) {
|
|
32710
|
-
return this.add(-1 * t3, e2);
|
|
32711
|
-
}, m3.format = function(t3) {
|
|
32712
|
-
var e2 = this, n3 = this.$locale();
|
|
32713
|
-
if (!this.isValid()) return n3.invalidDate || l2;
|
|
32714
|
-
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) {
|
|
32715
|
-
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
32716
|
-
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
32717
|
-
return b2.s(s3 % 12 || 12, t4, "0");
|
|
32718
|
-
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
32719
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
32720
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
32721
|
-
};
|
|
32722
|
-
return r3.replace(y2, function(t4, r4) {
|
|
32723
|
-
return r4 || function(t5) {
|
|
32724
|
-
switch (t5) {
|
|
32725
|
-
case "YY":
|
|
32726
|
-
return String(e2.$y).slice(-2);
|
|
32727
|
-
case "YYYY":
|
|
32728
|
-
return b2.s(e2.$y, 4, "0");
|
|
32729
|
-
case "M":
|
|
32730
|
-
return a3 + 1;
|
|
32731
|
-
case "MM":
|
|
32732
|
-
return b2.s(a3 + 1, 2, "0");
|
|
32733
|
-
case "MMM":
|
|
32734
|
-
return h3(n3.monthsShort, a3, c3, 3);
|
|
32735
|
-
case "MMMM":
|
|
32736
|
-
return h3(c3, a3);
|
|
32737
|
-
case "D":
|
|
32738
|
-
return e2.$D;
|
|
32739
|
-
case "DD":
|
|
32740
|
-
return b2.s(e2.$D, 2, "0");
|
|
32741
|
-
case "d":
|
|
32742
|
-
return String(e2.$W);
|
|
32743
|
-
case "dd":
|
|
32744
|
-
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
32745
|
-
case "ddd":
|
|
32746
|
-
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
32747
|
-
case "dddd":
|
|
32748
|
-
return o3[e2.$W];
|
|
32749
|
-
case "H":
|
|
32750
|
-
return String(s3);
|
|
32751
|
-
case "HH":
|
|
32752
|
-
return b2.s(s3, 2, "0");
|
|
32753
|
-
case "h":
|
|
32754
|
-
return d3(1);
|
|
32755
|
-
case "hh":
|
|
32756
|
-
return d3(2);
|
|
32757
|
-
case "a":
|
|
32758
|
-
return $2(s3, u3, true);
|
|
32759
|
-
case "A":
|
|
32760
|
-
return $2(s3, u3, false);
|
|
32761
|
-
case "m":
|
|
32762
|
-
return String(u3);
|
|
32763
|
-
case "mm":
|
|
32764
|
-
return b2.s(u3, 2, "0");
|
|
32765
|
-
case "s":
|
|
32766
|
-
return String(e2.$s);
|
|
32767
|
-
case "ss":
|
|
32768
|
-
return b2.s(e2.$s, 2, "0");
|
|
32769
|
-
case "SSS":
|
|
32770
|
-
return b2.s(e2.$ms, 3, "0");
|
|
32771
|
-
case "Z":
|
|
32772
|
-
return i3;
|
|
32773
|
-
}
|
|
32774
|
-
return null;
|
|
32775
|
-
}(t4) || i3.replace(":", "");
|
|
32776
|
-
});
|
|
32777
|
-
}, m3.utcOffset = function() {
|
|
32778
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
32779
|
-
}, m3.diff = function(r3, d3, l3) {
|
|
32780
|
-
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
32781
|
-
return b2.m(y3, m4);
|
|
32782
|
-
}, "D");
|
|
32783
|
-
switch (M4) {
|
|
32784
|
-
case h2:
|
|
32785
|
-
$2 = D3() / 12;
|
|
32786
|
-
break;
|
|
32787
|
-
case c2:
|
|
32788
|
-
$2 = D3();
|
|
32789
|
-
break;
|
|
32790
|
-
case f2:
|
|
32791
|
-
$2 = D3() / 3;
|
|
32792
|
-
break;
|
|
32793
|
-
case o2:
|
|
32794
|
-
$2 = (g3 - v3) / 6048e5;
|
|
32795
|
-
break;
|
|
32796
|
-
case a2:
|
|
32797
|
-
$2 = (g3 - v3) / 864e5;
|
|
32798
|
-
break;
|
|
32799
|
-
case u2:
|
|
32800
|
-
$2 = g3 / n2;
|
|
32801
|
-
break;
|
|
32802
|
-
case s2:
|
|
32803
|
-
$2 = g3 / e;
|
|
32804
|
-
break;
|
|
32805
|
-
case i2:
|
|
32806
|
-
$2 = g3 / t2;
|
|
32807
|
-
break;
|
|
32808
|
-
default:
|
|
32809
|
-
$2 = g3;
|
|
32810
|
-
}
|
|
32811
|
-
return l3 ? $2 : b2.a($2);
|
|
32812
|
-
}, m3.daysInMonth = function() {
|
|
32813
|
-
return this.endOf(c2).$D;
|
|
32814
|
-
}, m3.$locale = function() {
|
|
32815
|
-
return D2[this.$L];
|
|
32816
|
-
}, m3.locale = function(t3, e2) {
|
|
32817
|
-
if (!t3) return this.$L;
|
|
32818
|
-
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
32819
|
-
return r3 && (n3.$L = r3), n3;
|
|
32820
|
-
}, m3.clone = function() {
|
|
32821
|
-
return b2.w(this.$d, this);
|
|
32822
|
-
}, m3.toDate = function() {
|
|
32823
|
-
return new Date(this.valueOf());
|
|
32824
|
-
}, m3.toJSON = function() {
|
|
32825
|
-
return this.isValid() ? this.toISOString() : null;
|
|
32826
|
-
}, m3.toISOString = function() {
|
|
32827
|
-
return this.$d.toISOString();
|
|
32828
|
-
}, m3.toString = function() {
|
|
32829
|
-
return this.$d.toUTCString();
|
|
32830
|
-
}, M3;
|
|
32831
|
-
}(), k2 = _2.prototype;
|
|
32832
|
-
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
32833
|
-
k2[t3[1]] = function(e2) {
|
|
32834
|
-
return this.$g(e2, t3[0], t3[1]);
|
|
32835
|
-
};
|
|
32836
|
-
}), O2.extend = function(t3, e2) {
|
|
32837
|
-
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
32838
|
-
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
32839
|
-
return O2(1e3 * t3);
|
|
32840
|
-
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
32841
|
-
});
|
|
32842
|
-
})(dayjs_min$1);
|
|
32843
|
-
return dayjs_min$1.exports;
|
|
32844
|
-
}
|
|
32845
|
-
__name(requireDayjs_min, "requireDayjs_min");
|
|
32846
|
-
var dayjs_minExports = requireDayjs_min();
|
|
32847
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
32848
32971
|
var localizedFormat$2 = { exports: {} };
|
|
32849
32972
|
var localizedFormat$1 = localizedFormat$2.exports;
|
|
32850
32973
|
var hasRequiredLocalizedFormat;
|
|
@@ -50635,42 +50758,42 @@ function getFilterMenuItems(dataType) {
|
|
|
50635
50758
|
let filterMenuItems2 = [];
|
|
50636
50759
|
if (dataType === "string") {
|
|
50637
50760
|
filterMenuItems2 = [
|
|
50638
|
-
"
|
|
50639
|
-
"
|
|
50640
|
-
"
|
|
50641
|
-
"
|
|
50642
|
-
"
|
|
50643
|
-
"
|
|
50644
|
-
"
|
|
50645
|
-
"
|
|
50646
|
-
"
|
|
50647
|
-
"
|
|
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"
|
|
50648
50771
|
];
|
|
50649
50772
|
} else if (dataType === "lookup") {
|
|
50650
50773
|
filterMenuItems2 = [
|
|
50651
|
-
"
|
|
50652
|
-
"
|
|
50653
|
-
"
|
|
50654
|
-
"
|
|
50655
|
-
"
|
|
50656
|
-
"
|
|
50774
|
+
"Contains",
|
|
50775
|
+
"Not Contains",
|
|
50776
|
+
"Starts With",
|
|
50777
|
+
"Ends With",
|
|
50778
|
+
"Is Exactly",
|
|
50779
|
+
"Regex"
|
|
50657
50780
|
];
|
|
50658
50781
|
} else if (dataType === "boolean") {
|
|
50659
|
-
filterMenuItems2 = ["
|
|
50782
|
+
filterMenuItems2 = ["True", "False"];
|
|
50660
50783
|
} else if (dataType === "number" || dataType === "integer") {
|
|
50661
50784
|
filterMenuItems2 = [
|
|
50662
|
-
"
|
|
50663
|
-
"
|
|
50664
|
-
"
|
|
50665
|
-
"
|
|
50666
|
-
"
|
|
50667
|
-
"
|
|
50668
|
-
"
|
|
50785
|
+
"Greater Than",
|
|
50786
|
+
"Less Than",
|
|
50787
|
+
"In Range",
|
|
50788
|
+
"Outside Range",
|
|
50789
|
+
"Equal To",
|
|
50790
|
+
"In List",
|
|
50791
|
+
"Not In List"
|
|
50669
50792
|
];
|
|
50670
50793
|
} else if (dataType === "timestamp") {
|
|
50671
|
-
filterMenuItems2 = ["
|
|
50794
|
+
filterMenuItems2 = ["Is Between", "Not Between", "Is Before", "Is After"];
|
|
50672
50795
|
}
|
|
50673
|
-
return filterMenuItems2
|
|
50796
|
+
return filterMenuItems2;
|
|
50674
50797
|
}
|
|
50675
50798
|
__name(getFilterMenuItems, "getFilterMenuItems");
|
|
50676
50799
|
const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
@@ -56258,15 +56381,20 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56258
56381
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
56259
56382
|
const queryParams = useMemo(() => {
|
|
56260
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;
|
|
56261
56386
|
return getQueryParams({
|
|
56262
56387
|
doNotCoercePageSize,
|
|
56263
56388
|
currentParams,
|
|
56264
56389
|
entities: props.entities,
|
|
56390
|
+
// for local table
|
|
56391
|
+
urlConnected,
|
|
56265
56392
|
defaults,
|
|
56266
56393
|
schema: convertedSchema,
|
|
56267
56394
|
isInfinite,
|
|
56268
56395
|
isLocalCall,
|
|
56269
|
-
additionalFilter:
|
|
56396
|
+
additionalFilter: additionalFilterToUse,
|
|
56397
|
+
additionalOrFilter: additionalOrFilterToUse,
|
|
56270
56398
|
noOrderError: props.noOrderError,
|
|
56271
56399
|
isCodeModel: props.isCodeModel,
|
|
56272
56400
|
ownProps: props
|
|
@@ -56489,7 +56617,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56489
56617
|
}) : !val;
|
|
56490
56618
|
});
|
|
56491
56619
|
}
|
|
56492
|
-
if (noValsForField
|
|
56620
|
+
if (noValsForField) {
|
|
56493
56621
|
return __spreadProps(__spreadValues({}, field), {
|
|
56494
56622
|
isHidden: true,
|
|
56495
56623
|
isForcedHidden: true
|
|
@@ -71636,6 +71764,7 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71636
71764
|
var _a;
|
|
71637
71765
|
const {
|
|
71638
71766
|
additionalFilter,
|
|
71767
|
+
additionalOrFilter,
|
|
71639
71768
|
controlled_pageSize,
|
|
71640
71769
|
defaults: _defaults,
|
|
71641
71770
|
doNotCoercePageSize,
|
|
@@ -71743,21 +71872,28 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71743
71872
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
71744
71873
|
);
|
|
71745
71874
|
const queryParams = useMemo(() => {
|
|
71875
|
+
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
71876
|
+
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
71746
71877
|
return getQueryParams({
|
|
71747
71878
|
doNotCoercePageSize,
|
|
71748
71879
|
currentParams,
|
|
71749
71880
|
entities,
|
|
71881
|
+
// for local table
|
|
71882
|
+
urlConnected,
|
|
71750
71883
|
defaults: defaultsToUse,
|
|
71751
71884
|
schema: convertedSchema,
|
|
71752
71885
|
isInfinite: isInfinite || isSimple && !withPaging,
|
|
71753
71886
|
isLocalCall,
|
|
71754
|
-
additionalFilter,
|
|
71887
|
+
additionalFilter: additionalFilterToUse,
|
|
71888
|
+
additionalOrFilter: additionalOrFilterToUse,
|
|
71755
71889
|
noOrderError,
|
|
71890
|
+
isCodeModel,
|
|
71756
71891
|
ownProps: passingProps
|
|
71757
71892
|
});
|
|
71758
71893
|
}, [
|
|
71759
71894
|
additionalFilter,
|
|
71760
71895
|
passingProps,
|
|
71896
|
+
additionalOrFilter,
|
|
71761
71897
|
doNotCoercePageSize,
|
|
71762
71898
|
currentParams,
|
|
71763
71899
|
entities,
|
|
@@ -77934,7 +78070,6 @@ export {
|
|
|
77934
78070
|
getTagsAndTagOptions,
|
|
77935
78071
|
getTextFromEl,
|
|
77936
78072
|
hotkeysById,
|
|
77937
|
-
initializeHasuraWhereAndFilter,
|
|
77938
78073
|
inventoryIcon,
|
|
77939
78074
|
isSafari,
|
|
77940
78075
|
keyboardIcon,
|