@teselagen/ui 0.7.33-beta.6 → 0.7.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdvancedOptions.js +33 -0
- package/AssignDefaultsModeContext.js +22 -0
- package/CellDragHandle.js +132 -0
- package/ColumnFilterMenu.js +62 -0
- package/Columns.js +979 -0
- package/DataTable/utils/queryParams.d.ts +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 +196 -0
- package/isBeingCalledExcessively.js +31 -0
- package/isBottomRightCornerOfRectangle.js +20 -0
- package/isEntityClean.js +15 -0
- package/isTruthy.js +12 -0
- package/isValueEmpty.js +3 -0
- package/itemUpload.js +84 -0
- package/menuUtils.js +433 -0
- package/package.json +1 -2
- package/popoverOverflowModifiers.js +11 -0
- package/primarySelectedValue.js +1 -0
- package/pureNoFunc.js +31 -0
- package/queryParams.js +1058 -0
- package/removeCleanRows.js +22 -0
- package/renderOnDoc.js +32 -0
- package/rerenderOnWindowResize.js +26 -0
- package/rowClick.js +181 -0
- package/selection.js +8 -0
- package/showAppSpinner.js +12 -0
- package/showDialogOnDocBody.js +33 -0
- package/showProgressToast.js +22 -0
- package/sortify.js +73 -0
- package/style.css +29 -0
- package/tagUtils.js +45 -0
- package/tgFormValues.js +35 -0
- package/tg_modalState.js +47 -0
- package/throwFormError.js +16 -0
- package/toastr.js +148 -0
- package/tryToMatchSchemas.js +264 -0
- package/typeToCommonType.js +6 -0
- package/useDeepEqualMemo.js +15 -0
- package/useDialog.js +63 -0
- package/useStableReference.js +9 -0
- package/useTableEntities.js +38 -0
- package/useTraceUpdate.js +19 -0
- package/utils.js +37 -0
- package/validateTableWideErrors.js +160 -0
- package/viewColumn.js +97 -0
- package/withField.js +20 -0
- package/withFields.js +11 -0
- package/withLocalStorage.js +11 -0
- package/withSelectTableRecords.js +43 -0
- package/withSelectedEntities.js +65 -0
- package/withStore.js +10 -0
- package/withTableParams.js +301 -0
- package/wrapDialog.js +116 -0
package/index.cjs.js
CHANGED
|
@@ -5792,12 +5792,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
|
|
|
5792
5792
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
5793
5793
|
var root$4 = freeGlobal || freeSelf || Function("return this")();
|
|
5794
5794
|
var Symbol$1 = root$4.Symbol;
|
|
5795
|
-
var objectProto$
|
|
5796
|
-
var hasOwnProperty$
|
|
5797
|
-
var nativeObjectToString$2 = objectProto$
|
|
5795
|
+
var objectProto$h = Object.prototype;
|
|
5796
|
+
var hasOwnProperty$e = objectProto$h.hasOwnProperty;
|
|
5797
|
+
var nativeObjectToString$2 = objectProto$h.toString;
|
|
5798
5798
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
5799
5799
|
function getRawTag(value) {
|
|
5800
|
-
var isOwn = hasOwnProperty$
|
|
5800
|
+
var isOwn = hasOwnProperty$e.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
5801
5801
|
try {
|
|
5802
5802
|
value[symToStringTag$1] = void 0;
|
|
5803
5803
|
var unmasked = true;
|
|
@@ -5814,8 +5814,8 @@ function getRawTag(value) {
|
|
|
5814
5814
|
return result;
|
|
5815
5815
|
}
|
|
5816
5816
|
__name(getRawTag, "getRawTag");
|
|
5817
|
-
var objectProto$
|
|
5818
|
-
var nativeObjectToString$1 = objectProto$
|
|
5817
|
+
var objectProto$g = Object.prototype;
|
|
5818
|
+
var nativeObjectToString$1 = objectProto$g.toString;
|
|
5819
5819
|
function objectToString(value) {
|
|
5820
5820
|
return nativeObjectToString$1.call(value);
|
|
5821
5821
|
}
|
|
@@ -5962,11 +5962,11 @@ function toSource(func) {
|
|
|
5962
5962
|
__name(toSource, "toSource");
|
|
5963
5963
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
5964
5964
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
5965
|
-
var funcProto$1 = Function.prototype, objectProto$
|
|
5965
|
+
var funcProto$1 = Function.prototype, objectProto$f = Object.prototype;
|
|
5966
5966
|
var funcToString$1 = funcProto$1.toString;
|
|
5967
|
-
var hasOwnProperty$
|
|
5967
|
+
var hasOwnProperty$d = objectProto$f.hasOwnProperty;
|
|
5968
5968
|
var reIsNative = RegExp(
|
|
5969
|
-
"^" + funcToString$1.call(hasOwnProperty$
|
|
5969
|
+
"^" + funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5970
5970
|
);
|
|
5971
5971
|
function baseIsNative(value) {
|
|
5972
5972
|
if (!isObject$2(value) || isMasked(value)) {
|
|
@@ -6139,11 +6139,11 @@ function eq$1(value, other) {
|
|
|
6139
6139
|
return value === other || value !== value && other !== other;
|
|
6140
6140
|
}
|
|
6141
6141
|
__name(eq$1, "eq$1");
|
|
6142
|
-
var objectProto$
|
|
6143
|
-
var hasOwnProperty$
|
|
6142
|
+
var objectProto$e = Object.prototype;
|
|
6143
|
+
var hasOwnProperty$c = objectProto$e.hasOwnProperty;
|
|
6144
6144
|
function assignValue(object2, key, value) {
|
|
6145
6145
|
var objValue = object2[key];
|
|
6146
|
-
if (!(hasOwnProperty$
|
|
6146
|
+
if (!(hasOwnProperty$c.call(object2, key) && eq$1(objValue, value)) || value === void 0 && !(key in object2)) {
|
|
6147
6147
|
baseAssignValue(object2, key, value);
|
|
6148
6148
|
}
|
|
6149
6149
|
}
|
|
@@ -6167,11 +6167,11 @@ function copyObject(source, props, object2, customizer) {
|
|
|
6167
6167
|
return object2;
|
|
6168
6168
|
}
|
|
6169
6169
|
__name(copyObject, "copyObject");
|
|
6170
|
-
var nativeMax$
|
|
6170
|
+
var nativeMax$2 = Math.max;
|
|
6171
6171
|
function overRest(func, start2, transform) {
|
|
6172
|
-
start2 = nativeMax$
|
|
6172
|
+
start2 = nativeMax$2(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
6173
6173
|
return function() {
|
|
6174
|
-
var args = arguments, index2 = -1, length = nativeMax$
|
|
6174
|
+
var args = arguments, index2 = -1, length = nativeMax$2(args.length - start2, 0), array2 = Array(length);
|
|
6175
6175
|
while (++index2 < length) {
|
|
6176
6176
|
array2[index2] = args[start2 + index2];
|
|
6177
6177
|
}
|
|
@@ -6228,9 +6228,9 @@ function createAssigner(assigner) {
|
|
|
6228
6228
|
});
|
|
6229
6229
|
}
|
|
6230
6230
|
__name(createAssigner, "createAssigner");
|
|
6231
|
-
var objectProto$
|
|
6231
|
+
var objectProto$d = Object.prototype;
|
|
6232
6232
|
function isPrototype(value) {
|
|
6233
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
6233
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$d;
|
|
6234
6234
|
return value === proto;
|
|
6235
6235
|
}
|
|
6236
6236
|
__name(isPrototype, "isPrototype");
|
|
@@ -6247,13 +6247,13 @@ function baseIsArguments(value) {
|
|
|
6247
6247
|
return isObjectLike$1(value) && baseGetTag(value) == argsTag$3;
|
|
6248
6248
|
}
|
|
6249
6249
|
__name(baseIsArguments, "baseIsArguments");
|
|
6250
|
-
var objectProto$
|
|
6251
|
-
var hasOwnProperty$
|
|
6252
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
6250
|
+
var objectProto$c = Object.prototype;
|
|
6251
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
6252
|
+
var propertyIsEnumerable$1 = objectProto$c.propertyIsEnumerable;
|
|
6253
6253
|
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
6254
6254
|
return arguments;
|
|
6255
6255
|
}()) ? baseIsArguments : function(value) {
|
|
6256
|
-
return isObjectLike$1(value) && hasOwnProperty$
|
|
6256
|
+
return isObjectLike$1(value) && hasOwnProperty$b.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
6257
6257
|
};
|
|
6258
6258
|
function stubFalse() {
|
|
6259
6259
|
return false;
|
|
@@ -6296,12 +6296,12 @@ var nodeUtil = function() {
|
|
|
6296
6296
|
}();
|
|
6297
6297
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6298
6298
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6299
|
-
var objectProto$
|
|
6300
|
-
var hasOwnProperty$
|
|
6299
|
+
var objectProto$b = Object.prototype;
|
|
6300
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
6301
6301
|
function arrayLikeKeys(value, inherited) {
|
|
6302
6302
|
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;
|
|
6303
6303
|
for (var key in value) {
|
|
6304
|
-
if ((inherited || hasOwnProperty$
|
|
6304
|
+
if ((inherited || hasOwnProperty$a.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6305
6305
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6306
6306
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6307
6307
|
isType2 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -6319,15 +6319,15 @@ function overArg(func, transform) {
|
|
|
6319
6319
|
}
|
|
6320
6320
|
__name(overArg, "overArg");
|
|
6321
6321
|
var nativeKeys = overArg(Object.keys, Object);
|
|
6322
|
-
var objectProto$
|
|
6323
|
-
var hasOwnProperty$
|
|
6322
|
+
var objectProto$a = Object.prototype;
|
|
6323
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
6324
6324
|
function baseKeys(object2) {
|
|
6325
6325
|
if (!isPrototype(object2)) {
|
|
6326
6326
|
return nativeKeys(object2);
|
|
6327
6327
|
}
|
|
6328
6328
|
var result = [];
|
|
6329
6329
|
for (var key in Object(object2)) {
|
|
6330
|
-
if (hasOwnProperty$
|
|
6330
|
+
if (hasOwnProperty$9.call(object2, key) && key != "constructor") {
|
|
6331
6331
|
result.push(key);
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
@@ -6348,15 +6348,15 @@ function nativeKeysIn(object2) {
|
|
|
6348
6348
|
return result;
|
|
6349
6349
|
}
|
|
6350
6350
|
__name(nativeKeysIn, "nativeKeysIn");
|
|
6351
|
-
var objectProto$
|
|
6352
|
-
var hasOwnProperty$
|
|
6351
|
+
var objectProto$9 = Object.prototype;
|
|
6352
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
6353
6353
|
function baseKeysIn(object2) {
|
|
6354
6354
|
if (!isObject$2(object2)) {
|
|
6355
6355
|
return nativeKeysIn(object2);
|
|
6356
6356
|
}
|
|
6357
6357
|
var isProto = isPrototype(object2), result = [];
|
|
6358
6358
|
for (var key in object2) {
|
|
6359
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
6359
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$8.call(object2, key)))) {
|
|
6360
6360
|
result.push(key);
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
@@ -6392,22 +6392,22 @@ function hashDelete(key) {
|
|
|
6392
6392
|
}
|
|
6393
6393
|
__name(hashDelete, "hashDelete");
|
|
6394
6394
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
6395
|
-
var objectProto$
|
|
6396
|
-
var hasOwnProperty$
|
|
6395
|
+
var objectProto$8 = Object.prototype;
|
|
6396
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
6397
6397
|
function hashGet(key) {
|
|
6398
6398
|
var data = this.__data__;
|
|
6399
6399
|
if (nativeCreate) {
|
|
6400
6400
|
var result = data[key];
|
|
6401
6401
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
6402
6402
|
}
|
|
6403
|
-
return hasOwnProperty$
|
|
6403
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
6404
6404
|
}
|
|
6405
6405
|
__name(hashGet, "hashGet");
|
|
6406
|
-
var objectProto$
|
|
6407
|
-
var hasOwnProperty$
|
|
6406
|
+
var objectProto$7 = Object.prototype;
|
|
6407
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
6408
6408
|
function hashHas(key) {
|
|
6409
6409
|
var data = this.__data__;
|
|
6410
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$
|
|
6410
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
6411
6411
|
}
|
|
6412
6412
|
__name(hashHas, "hashHas");
|
|
6413
6413
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
@@ -6670,9 +6670,9 @@ function flatRest(func) {
|
|
|
6670
6670
|
__name(flatRest, "flatRest");
|
|
6671
6671
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
6672
6672
|
var objectTag$3 = "[object Object]";
|
|
6673
|
-
var funcProto = Function.prototype, objectProto$
|
|
6673
|
+
var funcProto = Function.prototype, objectProto$6 = Object.prototype;
|
|
6674
6674
|
var funcToString = funcProto.toString;
|
|
6675
|
-
var hasOwnProperty$
|
|
6675
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
6676
6676
|
var objectCtorString = funcToString.call(Object);
|
|
6677
6677
|
function isPlainObject$2(value) {
|
|
6678
6678
|
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag$3) {
|
|
@@ -6682,7 +6682,7 @@ function isPlainObject$2(value) {
|
|
|
6682
6682
|
if (proto === null) {
|
|
6683
6683
|
return true;
|
|
6684
6684
|
}
|
|
6685
|
-
var Ctor = hasOwnProperty$
|
|
6685
|
+
var Ctor = hasOwnProperty$5.call(proto, "constructor") && proto.constructor;
|
|
6686
6686
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
6687
6687
|
}
|
|
6688
6688
|
__name(isPlainObject$2, "isPlainObject$2");
|
|
@@ -7111,8 +7111,8 @@ function stubArray() {
|
|
|
7111
7111
|
return [];
|
|
7112
7112
|
}
|
|
7113
7113
|
__name(stubArray, "stubArray");
|
|
7114
|
-
var objectProto$
|
|
7115
|
-
var propertyIsEnumerable = objectProto$
|
|
7114
|
+
var objectProto$5 = Object.prototype;
|
|
7115
|
+
var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
7116
7116
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
7117
7117
|
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object2) {
|
|
7118
7118
|
if (object2 == null) {
|
|
@@ -7180,11 +7180,11 @@ if (DataView$1 && getTag$1(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3
|
|
|
7180
7180
|
return result;
|
|
7181
7181
|
}, "getTag$1");
|
|
7182
7182
|
}
|
|
7183
|
-
var objectProto$
|
|
7184
|
-
var hasOwnProperty$
|
|
7183
|
+
var objectProto$4 = Object.prototype;
|
|
7184
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
7185
7185
|
function initCloneArray(array2) {
|
|
7186
7186
|
var length = array2.length, result = new array2.constructor(length);
|
|
7187
|
-
if (length && typeof array2[0] == "string" && hasOwnProperty$
|
|
7187
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty$4.call(array2, "index")) {
|
|
7188
7188
|
result.index = array2.index;
|
|
7189
7189
|
result.input = array2.input;
|
|
7190
7190
|
}
|
|
@@ -7498,8 +7498,8 @@ function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
7498
7498
|
}
|
|
7499
7499
|
__name(equalByTag, "equalByTag");
|
|
7500
7500
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
7501
|
-
var objectProto$
|
|
7502
|
-
var hasOwnProperty$
|
|
7501
|
+
var objectProto$3 = Object.prototype;
|
|
7502
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
7503
7503
|
function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7504
7504
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
7505
7505
|
if (objLength != othLength && !isPartial) {
|
|
@@ -7508,7 +7508,7 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7508
7508
|
var index2 = objLength;
|
|
7509
7509
|
while (index2--) {
|
|
7510
7510
|
var key = objProps[index2];
|
|
7511
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
7511
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
7512
7512
|
return false;
|
|
7513
7513
|
}
|
|
7514
7514
|
}
|
|
@@ -7546,8 +7546,8 @@ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7546
7546
|
__name(equalObjects, "equalObjects");
|
|
7547
7547
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
7548
7548
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
7549
|
-
var objectProto$
|
|
7550
|
-
var hasOwnProperty$
|
|
7549
|
+
var objectProto$2 = Object.prototype;
|
|
7550
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
7551
7551
|
function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
7552
7552
|
var objIsArr = isArray$2(object2), othIsArr = isArray$2(other), objTag = objIsArr ? arrayTag : getTag$1(object2), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
7553
7553
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
@@ -7565,7 +7565,7 @@ function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack)
|
|
|
7565
7565
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
7566
7566
|
}
|
|
7567
7567
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
7568
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
7568
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$2.call(other, "__wrapped__");
|
|
7569
7569
|
if (objIsWrapped || othIsWrapped) {
|
|
7570
7570
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
7571
7571
|
stack || (stack = new Stack());
|
|
@@ -7781,7 +7781,7 @@ var now = /* @__PURE__ */ __name(function() {
|
|
|
7781
7781
|
return root$4.Date.now();
|
|
7782
7782
|
}, "now");
|
|
7783
7783
|
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
7784
|
-
var nativeMax$
|
|
7784
|
+
var nativeMax$1 = Math.max, nativeMin$1 = Math.min;
|
|
7785
7785
|
function debounce(func, wait, options) {
|
|
7786
7786
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
7787
7787
|
if (typeof func != "function") {
|
|
@@ -7791,7 +7791,7 @@ function debounce(func, wait, options) {
|
|
|
7791
7791
|
if (isObject$2(options)) {
|
|
7792
7792
|
leading = !!options.leading;
|
|
7793
7793
|
maxing = "maxWait" in options;
|
|
7794
|
-
maxWait = maxing ? nativeMax$
|
|
7794
|
+
maxWait = maxing ? nativeMax$1(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
7795
7795
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
7796
7796
|
}
|
|
7797
7797
|
function invokeFunc(time) {
|
|
@@ -7961,12 +7961,12 @@ function baseMerge(object2, source, srcIndex, customizer, stack) {
|
|
|
7961
7961
|
__name(baseMerge, "baseMerge");
|
|
7962
7962
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
7963
7963
|
function baseDifference(array2, values2, iteratee, comparator) {
|
|
7964
|
-
var index2 = -1,
|
|
7964
|
+
var index2 = -1, includes = arrayIncludes, isCommon = true, length = array2.length, result = [], valuesLength = values2.length;
|
|
7965
7965
|
if (!length) {
|
|
7966
7966
|
return result;
|
|
7967
7967
|
}
|
|
7968
7968
|
if (values2.length >= LARGE_ARRAY_SIZE$1) {
|
|
7969
|
-
|
|
7969
|
+
includes = cacheHas;
|
|
7970
7970
|
isCommon = false;
|
|
7971
7971
|
values2 = new SetCache(values2);
|
|
7972
7972
|
}
|
|
@@ -7982,7 +7982,7 @@ function baseDifference(array2, values2, iteratee, comparator) {
|
|
|
7982
7982
|
}
|
|
7983
7983
|
}
|
|
7984
7984
|
result.push(value);
|
|
7985
|
-
} else if (!
|
|
7985
|
+
} else if (!includes(values2, computed3, comparator)) {
|
|
7986
7986
|
result.push(value);
|
|
7987
7987
|
}
|
|
7988
7988
|
}
|
|
@@ -7997,6 +7997,15 @@ function last$1(array2) {
|
|
|
7997
7997
|
return length ? array2[length - 1] : void 0;
|
|
7998
7998
|
}
|
|
7999
7999
|
__name(last$1, "last$1");
|
|
8000
|
+
function drop(array2, n2, guard) {
|
|
8001
|
+
var length = array2 == null ? 0 : array2.length;
|
|
8002
|
+
if (!length) {
|
|
8003
|
+
return [];
|
|
8004
|
+
}
|
|
8005
|
+
n2 = n2 === void 0 ? 1 : toInteger(n2);
|
|
8006
|
+
return baseSlice(array2, n2 < 0 ? 0 : n2, length);
|
|
8007
|
+
}
|
|
8008
|
+
__name(drop, "drop");
|
|
8000
8009
|
function castFunction(value) {
|
|
8001
8010
|
return typeof value == "function" ? value : identity$1;
|
|
8002
8011
|
}
|
|
@@ -8006,6 +8015,16 @@ function forEach(collection, iteratee) {
|
|
|
8006
8015
|
return func(collection, castFunction(iteratee));
|
|
8007
8016
|
}
|
|
8008
8017
|
__name(forEach, "forEach");
|
|
8018
|
+
function endsWith$1(string2, target, position2) {
|
|
8019
|
+
string2 = toString$4(string2);
|
|
8020
|
+
target = baseToString$1(target);
|
|
8021
|
+
var length = string2.length;
|
|
8022
|
+
position2 = position2 === void 0 ? length : baseClamp(toInteger(position2), 0, length);
|
|
8023
|
+
var end2 = position2;
|
|
8024
|
+
position2 -= target.length;
|
|
8025
|
+
return position2 >= 0 && string2.slice(position2, end2) == target;
|
|
8026
|
+
}
|
|
8027
|
+
__name(endsWith$1, "endsWith$1");
|
|
8009
8028
|
function arrayEvery(array2, predicate) {
|
|
8010
8029
|
var index2 = -1, length = array2 == null ? 0 : array2.length;
|
|
8011
8030
|
while (++index2 < length) {
|
|
@@ -8066,16 +8085,6 @@ function baseGt(value, other) {
|
|
|
8066
8085
|
return value > other;
|
|
8067
8086
|
}
|
|
8068
8087
|
__name(baseGt, "baseGt");
|
|
8069
|
-
var objectProto$2 = Object.prototype;
|
|
8070
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
8071
|
-
function baseHas(object2, key) {
|
|
8072
|
-
return object2 != null && hasOwnProperty$2.call(object2, key);
|
|
8073
|
-
}
|
|
8074
|
-
__name(baseHas, "baseHas");
|
|
8075
|
-
function has$1(object2, path2) {
|
|
8076
|
-
return object2 != null && hasPath(object2, path2, baseHas);
|
|
8077
|
-
}
|
|
8078
|
-
__name(has$1, "has$1");
|
|
8079
8088
|
var stringTag = "[object String]";
|
|
8080
8089
|
function isString$1(value) {
|
|
8081
8090
|
return typeof value == "string" || !isArray$2(value) && isObjectLike$1(value) && baseGetTag(value) == stringTag;
|
|
@@ -8091,17 +8100,6 @@ function values(object2) {
|
|
|
8091
8100
|
return object2 == null ? [] : baseValues(object2, keys$1(object2));
|
|
8092
8101
|
}
|
|
8093
8102
|
__name(values, "values");
|
|
8094
|
-
var nativeMax$1 = Math.max;
|
|
8095
|
-
function includes(collection, value, fromIndex, guard) {
|
|
8096
|
-
collection = isArrayLike(collection) ? collection : values(collection);
|
|
8097
|
-
fromIndex = fromIndex && true ? toInteger(fromIndex) : 0;
|
|
8098
|
-
var length = collection.length;
|
|
8099
|
-
if (fromIndex < 0) {
|
|
8100
|
-
fromIndex = nativeMax$1(length + fromIndex, 0);
|
|
8101
|
-
}
|
|
8102
|
-
return isString$1(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
8103
|
-
}
|
|
8104
|
-
__name(includes, "includes");
|
|
8105
8103
|
function baseInverter(object2, setter, iteratee, accumulator) {
|
|
8106
8104
|
baseForOwn(object2, function(value, key, object3) {
|
|
8107
8105
|
setter(accumulator, iteratee(value), key, object3);
|
|
@@ -8162,15 +8160,15 @@ function isEqualWith(value, other, customizer) {
|
|
|
8162
8160
|
return result === void 0 ? baseIsEqual(value, other, void 0, customizer) : !!result;
|
|
8163
8161
|
}
|
|
8164
8162
|
__name(isEqualWith, "isEqualWith");
|
|
8163
|
+
function isInteger(value) {
|
|
8164
|
+
return typeof value == "number" && value == toInteger(value);
|
|
8165
|
+
}
|
|
8166
|
+
__name(isInteger, "isInteger");
|
|
8165
8167
|
var numberTag = "[object Number]";
|
|
8166
8168
|
function isNumber$1(value) {
|
|
8167
8169
|
return typeof value == "number" || isObjectLike$1(value) && baseGetTag(value) == numberTag;
|
|
8168
8170
|
}
|
|
8169
8171
|
__name(isNumber$1, "isNumber$1");
|
|
8170
|
-
function isNull(value) {
|
|
8171
|
-
return value === null;
|
|
8172
|
-
}
|
|
8173
|
-
__name(isNull, "isNull");
|
|
8174
8172
|
function isUndefined(value) {
|
|
8175
8173
|
return value === void 0;
|
|
8176
8174
|
}
|
|
@@ -8627,14 +8625,14 @@ var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == INFINITY) ? n
|
|
|
8627
8625
|
};
|
|
8628
8626
|
var LARGE_ARRAY_SIZE = 200;
|
|
8629
8627
|
function baseUniq(array2, iteratee, comparator) {
|
|
8630
|
-
var index2 = -1,
|
|
8628
|
+
var index2 = -1, includes = arrayIncludes, length = array2.length, isCommon = true, result = [], seen = result;
|
|
8631
8629
|
if (length >= LARGE_ARRAY_SIZE) {
|
|
8632
8630
|
var set5 = iteratee ? null : createSet(array2);
|
|
8633
8631
|
if (set5) {
|
|
8634
8632
|
return setToArray(set5);
|
|
8635
8633
|
}
|
|
8636
8634
|
isCommon = false;
|
|
8637
|
-
|
|
8635
|
+
includes = cacheHas;
|
|
8638
8636
|
seen = new SetCache();
|
|
8639
8637
|
} else {
|
|
8640
8638
|
seen = iteratee ? [] : result;
|
|
@@ -8654,7 +8652,7 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8654
8652
|
seen.push(computed3);
|
|
8655
8653
|
}
|
|
8656
8654
|
result.push(value);
|
|
8657
|
-
} else if (!
|
|
8655
|
+
} else if (!includes(seen, computed3, comparator)) {
|
|
8658
8656
|
if (seen !== result) {
|
|
8659
8657
|
seen.push(computed3);
|
|
8660
8658
|
}
|
|
@@ -8664,6 +8662,10 @@ function baseUniq(array2, iteratee, comparator) {
|
|
|
8664
8662
|
return result;
|
|
8665
8663
|
}
|
|
8666
8664
|
__name(baseUniq, "baseUniq");
|
|
8665
|
+
function uniq(array2) {
|
|
8666
|
+
return array2 && array2.length ? baseUniq(array2) : [];
|
|
8667
|
+
}
|
|
8668
|
+
__name(uniq, "uniq");
|
|
8667
8669
|
function uniqBy(array2, iteratee) {
|
|
8668
8670
|
return array2 && array2.length ? baseUniq(array2, baseIteratee(iteratee)) : [];
|
|
8669
8671
|
}
|
|
@@ -15846,6 +15848,7 @@ var itemSizeEstimator = /* @__PURE__ */ __name(function itemSizeEstimator2() {
|
|
|
15846
15848
|
return 41.36;
|
|
15847
15849
|
}, "itemSizeEstimator");
|
|
15848
15850
|
var ReactTableDefaults = defaultProps;
|
|
15851
|
+
var VIRTUALIZE_CUTOFF_LENGTH = 200;
|
|
15849
15852
|
var ReactTable = function(_Methods) {
|
|
15850
15853
|
_inherits$8(ReactTable2, _Methods);
|
|
15851
15854
|
function ReactTable2(props) {
|
|
@@ -16431,7 +16434,7 @@ var ReactTable = function(_Methods) {
|
|
|
16431
16434
|
minWidth: rowMinWidth + "px"
|
|
16432
16435
|
})
|
|
16433
16436
|
}, tBodyProps.rest),
|
|
16434
|
-
pageRows.length <
|
|
16437
|
+
_this2.props.noVirtual || pageRows.length < VIRTUALIZE_CUTOFF_LENGTH ? pageRows.map(function(d2, i2) {
|
|
16435
16438
|
return makePageRow(d2, i2);
|
|
16436
16439
|
}) : React.createElement(ReactList, {
|
|
16437
16440
|
type: "variable",
|
|
@@ -19392,410 +19395,293 @@ function requireLib$1() {
|
|
|
19392
19395
|
__name(requireLib$1, "requireLib$1");
|
|
19393
19396
|
var libExports$1 = /* @__PURE__ */ requireLib$1();
|
|
19394
19397
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(libExports$1);
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
}) {
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19398
|
+
var dayjs_min$1 = { exports: {} };
|
|
19399
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
19400
|
+
var hasRequiredDayjs_min;
|
|
19401
|
+
function requireDayjs_min() {
|
|
19402
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
19403
|
+
hasRequiredDayjs_min = 1;
|
|
19404
|
+
(function(module2, exports2) {
|
|
19405
|
+
!function(t2, e) {
|
|
19406
|
+
module2.exports = e();
|
|
19407
|
+
}(dayjs_min, function() {
|
|
19408
|
+
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) {
|
|
19409
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
19410
|
+
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
19411
|
+
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
19412
|
+
var r3 = String(t3);
|
|
19413
|
+
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
19414
|
+
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
19415
|
+
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
19416
|
+
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
19417
|
+
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
19418
|
+
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
19419
|
+
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);
|
|
19420
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
19421
|
+
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
19422
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
19423
|
+
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
19424
|
+
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$/, "");
|
|
19425
|
+
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
19426
|
+
return void 0 === t3;
|
|
19427
|
+
}, "u") }, g2 = "en", D2 = {};
|
|
19428
|
+
D2[g2] = M2;
|
|
19429
|
+
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
19430
|
+
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
19431
|
+
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
19432
|
+
var i3;
|
|
19433
|
+
if (!e2) return g2;
|
|
19434
|
+
if ("string" == typeof e2) {
|
|
19435
|
+
var s3 = e2.toLowerCase();
|
|
19436
|
+
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
19437
|
+
var u3 = e2.split("-");
|
|
19438
|
+
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
19439
|
+
} else {
|
|
19440
|
+
var a3 = e2.name;
|
|
19441
|
+
D2[a3] = e2, i3 = a3;
|
|
19424
19442
|
}
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19443
|
+
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
19444
|
+
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
19445
|
+
if (S2(t3)) return t3.clone();
|
|
19446
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
19447
|
+
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
19448
|
+
}, "O"), b2 = v2;
|
|
19449
|
+
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
19450
|
+
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
19451
|
+
};
|
|
19452
|
+
var _2 = function() {
|
|
19453
|
+
function M3(t3) {
|
|
19454
|
+
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
19433
19455
|
}
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
if (filters && filters.length > 0) {
|
|
19448
|
-
const filterClauses = filters.map((filter2) => {
|
|
19449
|
-
let { selectedFilter, filterOn, filterValue } = filter2;
|
|
19450
|
-
const fieldSchema = ccFields[filterOn] || {};
|
|
19451
|
-
const { path: path2, reference: reference2, type: type2 } = fieldSchema;
|
|
19452
|
-
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19453
|
-
if (stringFilterValue === false) {
|
|
19454
|
-
stringFilterValue = "false";
|
|
19455
|
-
} else {
|
|
19456
|
-
stringFilterValue = stringFilterValue || "";
|
|
19457
|
-
}
|
|
19458
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19459
|
-
if (type2 === "number" || type2 === "integer") {
|
|
19460
|
-
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19461
|
-
}
|
|
19462
|
-
if (fieldSchema.normalizeFilter) {
|
|
19463
|
-
filterValue = fieldSchema.normalizeFilter(
|
|
19464
|
-
filterValue,
|
|
19465
|
-
selectedFilter,
|
|
19466
|
-
filterOn
|
|
19467
|
-
);
|
|
19468
|
-
}
|
|
19469
|
-
if (reference2) {
|
|
19470
|
-
filterOn = reference2.sourceField;
|
|
19471
|
-
} else {
|
|
19472
|
-
filterOn = path2 || filterOn;
|
|
19473
|
-
}
|
|
19474
|
-
switch (selectedFilter) {
|
|
19475
|
-
case "none":
|
|
19476
|
-
return {};
|
|
19477
|
-
case "startsWith":
|
|
19478
|
-
return { [filterOn]: { _ilike: `${filterValue}%` } };
|
|
19479
|
-
case "endsWith":
|
|
19480
|
-
return { [filterOn]: { _ilike: `%${filterValue}` } };
|
|
19481
|
-
case "contains":
|
|
19482
|
-
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19483
|
-
case "notContains":
|
|
19484
|
-
return { [filterOn]: { _not_ilike: `%${filterValue}%` } };
|
|
19485
|
-
case "isExactly":
|
|
19486
|
-
return { [filterOn]: { _eq: filterValue } };
|
|
19487
|
-
case "isEmpty":
|
|
19488
|
-
return {
|
|
19489
|
-
_or: [
|
|
19490
|
-
{ [filterOn]: { _eq: "" } },
|
|
19491
|
-
{ [filterOn]: { _is_null: true } }
|
|
19492
|
-
]
|
|
19493
|
-
};
|
|
19494
|
-
case "notEmpty":
|
|
19495
|
-
return {
|
|
19496
|
-
_and: [
|
|
19497
|
-
{ [filterOn]: { _neq: "" } },
|
|
19498
|
-
{ [filterOn]: { _is_null: false } }
|
|
19499
|
-
]
|
|
19500
|
-
};
|
|
19501
|
-
case "inList":
|
|
19502
|
-
return { [filterOn]: { _in: filterValue } };
|
|
19503
|
-
case "notInList":
|
|
19504
|
-
return { [filterOn]: { _nin: filterValue } };
|
|
19505
|
-
case "true":
|
|
19506
|
-
return { [filterOn]: { _eq: true } };
|
|
19507
|
-
case "false":
|
|
19508
|
-
return { [filterOn]: { _eq: false } };
|
|
19509
|
-
case "dateIs":
|
|
19510
|
-
return { [filterOn]: { _eq: filterValue } };
|
|
19511
|
-
case "notBetween":
|
|
19512
|
-
return {
|
|
19513
|
-
_or: [
|
|
19514
|
-
{
|
|
19515
|
-
[filterOn]: {
|
|
19516
|
-
_lt: new Date(arrayFilterValue[0])
|
|
19517
|
-
}
|
|
19518
|
-
},
|
|
19519
|
-
{
|
|
19520
|
-
[filterOn]: {
|
|
19521
|
-
_gt: new Date(
|
|
19522
|
-
new Date(arrayFilterValue[1]).setHours(23, 59)
|
|
19523
|
-
)
|
|
19524
|
-
}
|
|
19456
|
+
__name(M3, "M");
|
|
19457
|
+
var m3 = M3.prototype;
|
|
19458
|
+
return m3.parse = function(t3) {
|
|
19459
|
+
this.$d = function(t4) {
|
|
19460
|
+
var e2 = t4.date, n3 = t4.utc;
|
|
19461
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
19462
|
+
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
19463
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
19464
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
19465
|
+
var r3 = e2.match($);
|
|
19466
|
+
if (r3) {
|
|
19467
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
19468
|
+
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);
|
|
19525
19469
|
}
|
|
19526
|
-
]
|
|
19527
|
-
};
|
|
19528
|
-
case "isBetween":
|
|
19529
|
-
return {
|
|
19530
|
-
[filterOn]: {
|
|
19531
|
-
_gte: new Date(arrayFilterValue[0]),
|
|
19532
|
-
_lte: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19533
|
-
}
|
|
19534
|
-
};
|
|
19535
|
-
case "isBefore":
|
|
19536
|
-
return { [filterOn]: { _lt: new Date(filterValue) } };
|
|
19537
|
-
case "isAfter":
|
|
19538
|
-
return { [filterOn]: { _gt: new Date(filterValue) } };
|
|
19539
|
-
case "greaterThan":
|
|
19540
|
-
return { [filterOn]: { _gt: parseFloat(filterValue) } };
|
|
19541
|
-
case "lessThan":
|
|
19542
|
-
return { [filterOn]: { _lt: parseFloat(filterValue) } };
|
|
19543
|
-
case "inRange":
|
|
19544
|
-
return {
|
|
19545
|
-
[filterOn]: {
|
|
19546
|
-
_gte: parseFloat(arrayFilterValue[0]),
|
|
19547
|
-
_lte: parseFloat(arrayFilterValue[1])
|
|
19548
19470
|
}
|
|
19471
|
+
return new Date(e2);
|
|
19472
|
+
}(t3), this.init();
|
|
19473
|
+
}, m3.init = function() {
|
|
19474
|
+
var t3 = this.$d;
|
|
19475
|
+
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();
|
|
19476
|
+
}, m3.$utils = function() {
|
|
19477
|
+
return b2;
|
|
19478
|
+
}, m3.isValid = function() {
|
|
19479
|
+
return !(this.$d.toString() === l2);
|
|
19480
|
+
}, m3.isSame = function(t3, e2) {
|
|
19481
|
+
var n3 = O2(t3);
|
|
19482
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
19483
|
+
}, m3.isAfter = function(t3, e2) {
|
|
19484
|
+
return O2(t3) < this.startOf(e2);
|
|
19485
|
+
}, m3.isBefore = function(t3, e2) {
|
|
19486
|
+
return this.endOf(e2) < O2(t3);
|
|
19487
|
+
}, m3.$g = function(t3, e2, n3) {
|
|
19488
|
+
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
19489
|
+
}, m3.unix = function() {
|
|
19490
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
19491
|
+
}, m3.valueOf = function() {
|
|
19492
|
+
return this.$d.getTime();
|
|
19493
|
+
}, m3.startOf = function(t3, e2) {
|
|
19494
|
+
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19495
|
+
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
19496
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
19497
|
+
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19498
|
+
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
19499
|
+
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
19500
|
+
switch (f3) {
|
|
19501
|
+
case h2:
|
|
19502
|
+
return r3 ? l3(1, 0) : l3(31, 11);
|
|
19503
|
+
case c2:
|
|
19504
|
+
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
19505
|
+
case o2:
|
|
19506
|
+
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
19507
|
+
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
19508
|
+
case a2:
|
|
19509
|
+
case d2:
|
|
19510
|
+
return $2(v3 + "Hours", 0);
|
|
19511
|
+
case u2:
|
|
19512
|
+
return $2(v3 + "Minutes", 1);
|
|
19513
|
+
case s2:
|
|
19514
|
+
return $2(v3 + "Seconds", 2);
|
|
19515
|
+
case i2:
|
|
19516
|
+
return $2(v3 + "Milliseconds", 3);
|
|
19517
|
+
default:
|
|
19518
|
+
return this.clone();
|
|
19519
|
+
}
|
|
19520
|
+
}, m3.endOf = function(t3) {
|
|
19521
|
+
return this.startOf(t3, false);
|
|
19522
|
+
}, m3.$set = function(t3, e2) {
|
|
19523
|
+
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;
|
|
19524
|
+
if (o3 === c2 || o3 === h2) {
|
|
19525
|
+
var y3 = this.clone().set(d2, 1);
|
|
19526
|
+
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
19527
|
+
} else l3 && this.$d[l3]($2);
|
|
19528
|
+
return this.init(), this;
|
|
19529
|
+
}, m3.set = function(t3, e2) {
|
|
19530
|
+
return this.clone().$set(t3, e2);
|
|
19531
|
+
}, m3.get = function(t3) {
|
|
19532
|
+
return this[b2.p(t3)]();
|
|
19533
|
+
}, m3.add = function(r3, f3) {
|
|
19534
|
+
var d3, l3 = this;
|
|
19535
|
+
r3 = Number(r3);
|
|
19536
|
+
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
19537
|
+
var e2 = O2(l3);
|
|
19538
|
+
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
19539
|
+
}, "y");
|
|
19540
|
+
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
19541
|
+
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
19542
|
+
if ($2 === a2) return y3(1);
|
|
19543
|
+
if ($2 === o2) return y3(7);
|
|
19544
|
+
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
19545
|
+
return b2.w(m4, this);
|
|
19546
|
+
}, m3.subtract = function(t3, e2) {
|
|
19547
|
+
return this.add(-1 * t3, e2);
|
|
19548
|
+
}, m3.format = function(t3) {
|
|
19549
|
+
var e2 = this, n3 = this.$locale();
|
|
19550
|
+
if (!this.isValid()) return n3.invalidDate || l2;
|
|
19551
|
+
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) {
|
|
19552
|
+
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
19553
|
+
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
19554
|
+
return b2.s(s3 % 12 || 12, t4, "0");
|
|
19555
|
+
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
19556
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
19557
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
19549
19558
|
};
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19559
|
+
return r3.replace(y2, function(t4, r4) {
|
|
19560
|
+
return r4 || function(t5) {
|
|
19561
|
+
switch (t5) {
|
|
19562
|
+
case "YY":
|
|
19563
|
+
return String(e2.$y).slice(-2);
|
|
19564
|
+
case "YYYY":
|
|
19565
|
+
return b2.s(e2.$y, 4, "0");
|
|
19566
|
+
case "M":
|
|
19567
|
+
return a3 + 1;
|
|
19568
|
+
case "MM":
|
|
19569
|
+
return b2.s(a3 + 1, 2, "0");
|
|
19570
|
+
case "MMM":
|
|
19571
|
+
return h3(n3.monthsShort, a3, c3, 3);
|
|
19572
|
+
case "MMMM":
|
|
19573
|
+
return h3(c3, a3);
|
|
19574
|
+
case "D":
|
|
19575
|
+
return e2.$D;
|
|
19576
|
+
case "DD":
|
|
19577
|
+
return b2.s(e2.$D, 2, "0");
|
|
19578
|
+
case "d":
|
|
19579
|
+
return String(e2.$W);
|
|
19580
|
+
case "dd":
|
|
19581
|
+
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
19582
|
+
case "ddd":
|
|
19583
|
+
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
19584
|
+
case "dddd":
|
|
19585
|
+
return o3[e2.$W];
|
|
19586
|
+
case "H":
|
|
19587
|
+
return String(s3);
|
|
19588
|
+
case "HH":
|
|
19589
|
+
return b2.s(s3, 2, "0");
|
|
19590
|
+
case "h":
|
|
19591
|
+
return d3(1);
|
|
19592
|
+
case "hh":
|
|
19593
|
+
return d3(2);
|
|
19594
|
+
case "a":
|
|
19595
|
+
return $2(s3, u3, true);
|
|
19596
|
+
case "A":
|
|
19597
|
+
return $2(s3, u3, false);
|
|
19598
|
+
case "m":
|
|
19599
|
+
return String(u3);
|
|
19600
|
+
case "mm":
|
|
19601
|
+
return b2.s(u3, 2, "0");
|
|
19602
|
+
case "s":
|
|
19603
|
+
return String(e2.$s);
|
|
19604
|
+
case "ss":
|
|
19605
|
+
return b2.s(e2.$s, 2, "0");
|
|
19606
|
+
case "SSS":
|
|
19607
|
+
return b2.s(e2.$ms, 3, "0");
|
|
19608
|
+
case "Z":
|
|
19609
|
+
return i3;
|
|
19562
19610
|
}
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
set$1(o2, Object.keys(filter2)[0], filter2[Object.keys(filter2)[0]]);
|
|
19576
|
-
return o2;
|
|
19577
|
-
});
|
|
19578
|
-
if (filterClauses.length > 0) {
|
|
19579
|
-
if (Object.keys(where).length > 0) {
|
|
19580
|
-
where = { _and: [where, ...filterClauses] };
|
|
19581
|
-
} else {
|
|
19582
|
-
where = { _and: filterClauses };
|
|
19583
|
-
}
|
|
19584
|
-
}
|
|
19585
|
-
}
|
|
19586
|
-
if (order2 && order2.length > 0) {
|
|
19587
|
-
order2.forEach((item) => {
|
|
19588
|
-
const field = item.startsWith("-") ? item.substring(1) : item;
|
|
19589
|
-
const direction = item.startsWith("-") ? "desc" : "asc";
|
|
19590
|
-
order_by[field] = direction;
|
|
19591
|
-
});
|
|
19592
|
-
}
|
|
19593
|
-
if (additionalFilter) {
|
|
19594
|
-
where = { _and: [where, additionalFilter] };
|
|
19595
|
-
}
|
|
19596
|
-
return { where, order_by, limit, offset: offset3 };
|
|
19597
|
-
}
|
|
19598
|
-
__name(tableQueryParamsToHasuraClauses, "tableQueryParamsToHasuraClauses");
|
|
19599
|
-
function getFieldsMappedByCCDisplayName(schema) {
|
|
19600
|
-
if (!schema || !schema.fields) return {};
|
|
19601
|
-
return schema.fields.reduce((acc, field) => {
|
|
19602
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19603
|
-
acc[ccDisplayName] = field;
|
|
19604
|
-
return acc;
|
|
19605
|
-
}, {});
|
|
19606
|
-
}
|
|
19607
|
-
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19608
|
-
function getCCDisplayName(field) {
|
|
19609
|
-
return camelCase(
|
|
19610
|
-
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19611
|
-
);
|
|
19612
|
-
}
|
|
19613
|
-
__name(getCCDisplayName, "getCCDisplayName");
|
|
19614
|
-
function filterLocalEntitiesToHasura(records, { where, order_by, limit, offset: offset3, isInfinite } = {}) {
|
|
19615
|
-
let filteredRecords = [...records];
|
|
19616
|
-
if (where) {
|
|
19617
|
-
filteredRecords = applyWhereClause(filteredRecords, where);
|
|
19618
|
-
}
|
|
19619
|
-
if (order_by) {
|
|
19620
|
-
filteredRecords = applyOrderBy(filteredRecords, order_by);
|
|
19621
|
-
}
|
|
19622
|
-
const allFilteredRecords = [...filteredRecords];
|
|
19623
|
-
if (!isInfinite && offset3 !== void 0) {
|
|
19624
|
-
filteredRecords = filteredRecords.slice(offset3);
|
|
19625
|
-
}
|
|
19626
|
-
if (!isInfinite && limit !== void 0) {
|
|
19627
|
-
filteredRecords = filteredRecords.slice(0, limit);
|
|
19628
|
-
}
|
|
19629
|
-
return {
|
|
19630
|
-
entities: filteredRecords,
|
|
19631
|
-
entitiesAcrossPages: allFilteredRecords,
|
|
19632
|
-
entityCount: allFilteredRecords.length
|
|
19633
|
-
};
|
|
19634
|
-
}
|
|
19635
|
-
__name(filterLocalEntitiesToHasura, "filterLocalEntitiesToHasura");
|
|
19636
|
-
function applyWhereClause(records, where) {
|
|
19637
|
-
function applyFilter(record, filter2) {
|
|
19638
|
-
if (isEmpty$1(filter2)) {
|
|
19639
|
-
return true;
|
|
19640
|
-
}
|
|
19641
|
-
for (const key in filter2) {
|
|
19642
|
-
if (key === "_and") {
|
|
19643
|
-
if (isEmpty$1(filter2[key])) {
|
|
19644
|
-
continue;
|
|
19645
|
-
}
|
|
19646
|
-
if (!every(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19647
|
-
return false;
|
|
19648
|
-
}
|
|
19649
|
-
} else if (key === "_or") {
|
|
19650
|
-
if (isEmpty$1(filter2[key])) {
|
|
19651
|
-
continue;
|
|
19652
|
-
}
|
|
19653
|
-
if (!some(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19654
|
-
return false;
|
|
19655
|
-
}
|
|
19656
|
-
} else if (key === "_not") {
|
|
19657
|
-
if (applyFilter(record, filter2[key])) {
|
|
19658
|
-
return false;
|
|
19659
|
-
}
|
|
19660
|
-
} else {
|
|
19661
|
-
const value = record[key];
|
|
19662
|
-
const conditions = filter2[key];
|
|
19663
|
-
if (isObject$2(value) && isObject$2(conditions) && !hasOperator(conditions)) {
|
|
19664
|
-
return applyFilter(value, conditions);
|
|
19665
|
-
}
|
|
19666
|
-
for (const operator in conditions) {
|
|
19667
|
-
const conditionValue = conditions[operator];
|
|
19668
|
-
if (operator === "_gt" && conditions._lt) {
|
|
19669
|
-
if (!(value > conditionValue && value < conditions._lt))
|
|
19670
|
-
return false;
|
|
19671
|
-
continue;
|
|
19672
|
-
}
|
|
19673
|
-
if (operator === "_gte" && conditions._lte) {
|
|
19674
|
-
if (!(value >= conditionValue && value <= conditions._lte))
|
|
19675
|
-
return false;
|
|
19676
|
-
continue;
|
|
19677
|
-
}
|
|
19678
|
-
switch (operator) {
|
|
19679
|
-
case "_eq":
|
|
19680
|
-
if (!isEqual(value, conditionValue)) return false;
|
|
19681
|
-
break;
|
|
19682
|
-
case "_neq":
|
|
19683
|
-
if (isEqual(value, conditionValue)) return false;
|
|
19684
|
-
break;
|
|
19685
|
-
case "_gt":
|
|
19686
|
-
if (!(value > conditionValue)) return false;
|
|
19687
|
-
break;
|
|
19688
|
-
case "_gte":
|
|
19689
|
-
if (!(value >= conditionValue)) return false;
|
|
19690
|
-
break;
|
|
19691
|
-
case "_lt":
|
|
19692
|
-
if (!(value < conditionValue)) return false;
|
|
19693
|
-
break;
|
|
19694
|
-
case "_lte":
|
|
19695
|
-
if (!(value <= conditionValue)) return false;
|
|
19696
|
-
break;
|
|
19697
|
-
case "_like":
|
|
19698
|
-
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19699
|
-
return false;
|
|
19700
|
-
break;
|
|
19701
|
-
case "_ilike":
|
|
19702
|
-
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19703
|
-
return false;
|
|
19704
|
-
break;
|
|
19705
|
-
case "_nlike":
|
|
19706
|
-
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19707
|
-
return false;
|
|
19708
|
-
break;
|
|
19709
|
-
case "_nilike":
|
|
19710
|
-
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19711
|
-
return false;
|
|
19712
|
-
break;
|
|
19713
|
-
case "_starts_with":
|
|
19714
|
-
if (!isString$1(value) || !value.startsWith(conditionValue))
|
|
19715
|
-
return false;
|
|
19716
|
-
break;
|
|
19717
|
-
case "_ends_with":
|
|
19718
|
-
if (!isString$1(value) || !value.endsWith(conditionValue))
|
|
19719
|
-
return false;
|
|
19611
|
+
return null;
|
|
19612
|
+
}(t4) || i3.replace(":", "");
|
|
19613
|
+
});
|
|
19614
|
+
}, m3.utcOffset = function() {
|
|
19615
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
19616
|
+
}, m3.diff = function(r3, d3, l3) {
|
|
19617
|
+
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
19618
|
+
return b2.m(y3, m4);
|
|
19619
|
+
}, "D");
|
|
19620
|
+
switch (M4) {
|
|
19621
|
+
case h2:
|
|
19622
|
+
$2 = D3() / 12;
|
|
19720
19623
|
break;
|
|
19721
|
-
case
|
|
19722
|
-
|
|
19723
|
-
return false;
|
|
19624
|
+
case c2:
|
|
19625
|
+
$2 = D3();
|
|
19724
19626
|
break;
|
|
19725
|
-
case
|
|
19726
|
-
|
|
19727
|
-
return false;
|
|
19627
|
+
case f2:
|
|
19628
|
+
$2 = D3() / 3;
|
|
19728
19629
|
break;
|
|
19729
|
-
case
|
|
19730
|
-
|
|
19731
|
-
return false;
|
|
19630
|
+
case o2:
|
|
19631
|
+
$2 = (g3 - v3) / 6048e5;
|
|
19732
19632
|
break;
|
|
19733
|
-
case
|
|
19734
|
-
|
|
19633
|
+
case a2:
|
|
19634
|
+
$2 = (g3 - v3) / 864e5;
|
|
19735
19635
|
break;
|
|
19736
|
-
case
|
|
19737
|
-
|
|
19738
|
-
return false;
|
|
19636
|
+
case u2:
|
|
19637
|
+
$2 = g3 / n2;
|
|
19739
19638
|
break;
|
|
19740
|
-
case
|
|
19741
|
-
|
|
19742
|
-
return false;
|
|
19639
|
+
case s2:
|
|
19640
|
+
$2 = g3 / e;
|
|
19743
19641
|
break;
|
|
19744
|
-
case
|
|
19745
|
-
|
|
19746
|
-
return false;
|
|
19642
|
+
case i2:
|
|
19643
|
+
$2 = g3 / t2;
|
|
19747
19644
|
break;
|
|
19748
19645
|
default:
|
|
19749
|
-
|
|
19750
|
-
console.warn(`Unsupported operator: ${operator}`);
|
|
19751
|
-
return false;
|
|
19752
|
-
} else {
|
|
19753
|
-
console.warn(`Unsupported operator: ${operator}`);
|
|
19754
|
-
return false;
|
|
19755
|
-
}
|
|
19646
|
+
$2 = g3;
|
|
19756
19647
|
}
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
}
|
|
19769
|
-
|
|
19770
|
-
function
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
|
|
19787
|
-
}
|
|
19788
|
-
}
|
|
19789
|
-
|
|
19790
|
-
}
|
|
19791
|
-
__name(
|
|
19792
|
-
|
|
19793
|
-
|
|
19794
|
-
const { customColumnFilter, filterDisabled } = field;
|
|
19795
|
-
if (filterDisabled || !customColumnFilter) return;
|
|
19796
|
-
customColumnFilter(where, currentParams);
|
|
19797
|
-
});
|
|
19798
|
-
}, "addCustomColumnFilters");
|
|
19648
|
+
return l3 ? $2 : b2.a($2);
|
|
19649
|
+
}, m3.daysInMonth = function() {
|
|
19650
|
+
return this.endOf(c2).$D;
|
|
19651
|
+
}, m3.$locale = function() {
|
|
19652
|
+
return D2[this.$L];
|
|
19653
|
+
}, m3.locale = function(t3, e2) {
|
|
19654
|
+
if (!t3) return this.$L;
|
|
19655
|
+
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
19656
|
+
return r3 && (n3.$L = r3), n3;
|
|
19657
|
+
}, m3.clone = function() {
|
|
19658
|
+
return b2.w(this.$d, this);
|
|
19659
|
+
}, m3.toDate = function() {
|
|
19660
|
+
return new Date(this.valueOf());
|
|
19661
|
+
}, m3.toJSON = function() {
|
|
19662
|
+
return this.isValid() ? this.toISOString() : null;
|
|
19663
|
+
}, m3.toISOString = function() {
|
|
19664
|
+
return this.$d.toISOString();
|
|
19665
|
+
}, m3.toString = function() {
|
|
19666
|
+
return this.$d.toUTCString();
|
|
19667
|
+
}, M3;
|
|
19668
|
+
}(), k2 = _2.prototype;
|
|
19669
|
+
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
19670
|
+
k2[t3[1]] = function(e2) {
|
|
19671
|
+
return this.$g(e2, t3[0], t3[1]);
|
|
19672
|
+
};
|
|
19673
|
+
}), O2.extend = function(t3, e2) {
|
|
19674
|
+
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
19675
|
+
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
19676
|
+
return O2(1e3 * t3);
|
|
19677
|
+
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
19678
|
+
});
|
|
19679
|
+
})(dayjs_min$1);
|
|
19680
|
+
return dayjs_min$1.exports;
|
|
19681
|
+
}
|
|
19682
|
+
__name(requireDayjs_min, "requireDayjs_min");
|
|
19683
|
+
var dayjs_minExports = requireDayjs_min();
|
|
19684
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
19799
19685
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
19800
19686
|
function safeStringify(val) {
|
|
19801
19687
|
if (val !== null && typeof val === "object") {
|
|
@@ -19812,6 +19698,325 @@ function safeParse(val) {
|
|
|
19812
19698
|
}
|
|
19813
19699
|
}
|
|
19814
19700
|
__name(safeParse, "safeParse");
|
|
19701
|
+
function getCCDisplayName(field) {
|
|
19702
|
+
return camelCase(
|
|
19703
|
+
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19704
|
+
);
|
|
19705
|
+
}
|
|
19706
|
+
__name(getCCDisplayName, "getCCDisplayName");
|
|
19707
|
+
function getFieldsMappedByCCDisplayName(schema) {
|
|
19708
|
+
return schema.fields.reduce((acc, field) => {
|
|
19709
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19710
|
+
acc[ccDisplayName] = field;
|
|
19711
|
+
return acc;
|
|
19712
|
+
}, {});
|
|
19713
|
+
}
|
|
19714
|
+
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19715
|
+
function orderEntitiesLocal(orderArray, entities, schema, ownProps) {
|
|
19716
|
+
if (orderArray == null ? void 0 : orderArray.length) {
|
|
19717
|
+
const orderFuncs = [];
|
|
19718
|
+
const ascOrDescArray = [];
|
|
19719
|
+
orderArray.forEach((order2) => {
|
|
19720
|
+
const ccDisplayName = order2.replace(/^-/gi, "");
|
|
19721
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19722
|
+
const field = ccFields[ccDisplayName];
|
|
19723
|
+
if (!field) {
|
|
19724
|
+
throw new Error(
|
|
19725
|
+
"Ruh roh, there should have been a column to sort on for " + order2 + " but none was found in " + schema.fields
|
|
19726
|
+
);
|
|
19727
|
+
}
|
|
19728
|
+
const { path: path2, getValueToFilterOn, sortFn } = field;
|
|
19729
|
+
if (field.type === "timestamp") {
|
|
19730
|
+
ascOrDescArray.push("desc");
|
|
19731
|
+
}
|
|
19732
|
+
ascOrDescArray.push(ccDisplayName === order2 ? "asc" : "desc");
|
|
19733
|
+
if (field.type === "timestamp") {
|
|
19734
|
+
orderFuncs.push((r2) => {
|
|
19735
|
+
const val = get$3(r2, path2);
|
|
19736
|
+
return !!val;
|
|
19737
|
+
});
|
|
19738
|
+
}
|
|
19739
|
+
if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19740
|
+
orderFuncs.push((o2) => {
|
|
19741
|
+
return parseInt(get$3(o2, path2), 10);
|
|
19742
|
+
});
|
|
19743
|
+
} else if (sortFn) {
|
|
19744
|
+
const toOrder = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19745
|
+
orderFuncs.push(...toOrder);
|
|
19746
|
+
} else if (getValueToFilterOn) {
|
|
19747
|
+
orderFuncs.push((o2) => {
|
|
19748
|
+
return getValueToFilterOn(o2, ownProps);
|
|
19749
|
+
});
|
|
19750
|
+
} else {
|
|
19751
|
+
orderFuncs.push((r2) => {
|
|
19752
|
+
const val = get$3(r2, path2);
|
|
19753
|
+
return val && val.toLowerCase ? val.toLowerCase() : val;
|
|
19754
|
+
});
|
|
19755
|
+
}
|
|
19756
|
+
});
|
|
19757
|
+
entities = orderBy$1(entities, orderFuncs, ascOrDescArray);
|
|
19758
|
+
}
|
|
19759
|
+
return entities;
|
|
19760
|
+
}
|
|
19761
|
+
__name(orderEntitiesLocal, "orderEntitiesLocal");
|
|
19762
|
+
function getAndAndOrFilters(allFilters) {
|
|
19763
|
+
const orFilters = [];
|
|
19764
|
+
const andFilters = [];
|
|
19765
|
+
const otherOrFilters = [];
|
|
19766
|
+
allFilters.forEach((filter2) => {
|
|
19767
|
+
if (filter2.isOrFilter && typeof filter2.filterValue === "string" && filter2.filterValue.includes(",")) {
|
|
19768
|
+
const allFilterValues = filter2.filterValue.split(",");
|
|
19769
|
+
allFilterValues.forEach((filterValue, i2) => {
|
|
19770
|
+
filterValue = filterValue.trim();
|
|
19771
|
+
if (!filterValue) return;
|
|
19772
|
+
const newFilter = __spreadProps(__spreadValues({}, filter2), {
|
|
19773
|
+
filterValue
|
|
19774
|
+
});
|
|
19775
|
+
if (i2 === 0) {
|
|
19776
|
+
orFilters.push(newFilter);
|
|
19777
|
+
} else {
|
|
19778
|
+
const iMinus = i2 - 1;
|
|
19779
|
+
if (!otherOrFilters[iMinus]) otherOrFilters[iMinus] = [];
|
|
19780
|
+
otherOrFilters[iMinus].push(newFilter);
|
|
19781
|
+
}
|
|
19782
|
+
});
|
|
19783
|
+
} else if (filter2.isOrFilter) {
|
|
19784
|
+
orFilters.push(filter2);
|
|
19785
|
+
} else {
|
|
19786
|
+
andFilters.push(filter2);
|
|
19787
|
+
}
|
|
19788
|
+
});
|
|
19789
|
+
return {
|
|
19790
|
+
orFilters,
|
|
19791
|
+
andFilters,
|
|
19792
|
+
otherOrFilters
|
|
19793
|
+
};
|
|
19794
|
+
}
|
|
19795
|
+
__name(getAndAndOrFilters, "getAndAndOrFilters");
|
|
19796
|
+
function filterEntitiesLocal(filters = [], searchTerm, entities, schema, ownProps) {
|
|
19797
|
+
const allFilters = getAllFilters(filters, searchTerm, schema);
|
|
19798
|
+
if (allFilters.length) {
|
|
19799
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
19800
|
+
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
19801
|
+
andFilters.forEach((filter2) => {
|
|
19802
|
+
entities = getEntitiesForGivenFilter(
|
|
19803
|
+
entities,
|
|
19804
|
+
filter2,
|
|
19805
|
+
ccFields,
|
|
19806
|
+
ownProps
|
|
19807
|
+
);
|
|
19808
|
+
});
|
|
19809
|
+
if (orFilters.length) {
|
|
19810
|
+
let orEntities = [];
|
|
19811
|
+
orFilters.concat(...otherOrFilters).forEach((filter2) => {
|
|
19812
|
+
orEntities = orEntities.concat(
|
|
19813
|
+
getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps)
|
|
19814
|
+
);
|
|
19815
|
+
});
|
|
19816
|
+
entities = uniq(orEntities);
|
|
19817
|
+
}
|
|
19818
|
+
}
|
|
19819
|
+
return entities;
|
|
19820
|
+
}
|
|
19821
|
+
__name(filterEntitiesLocal, "filterEntitiesLocal");
|
|
19822
|
+
function cleanFilterValue(_filterValue, type2) {
|
|
19823
|
+
let filterValue = _filterValue;
|
|
19824
|
+
if (type2 === "number" || type2 === "integer") {
|
|
19825
|
+
filterValue = Array.isArray(filterValue) ? filterValue.map((val) => Number(val)) : Number(filterValue);
|
|
19826
|
+
}
|
|
19827
|
+
return filterValue;
|
|
19828
|
+
}
|
|
19829
|
+
__name(cleanFilterValue, "cleanFilterValue");
|
|
19830
|
+
function getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps) {
|
|
19831
|
+
const { filterOn, filterValue: _filterValue, selectedFilter } = filter2;
|
|
19832
|
+
const field = ccFields[filterOn];
|
|
19833
|
+
const { path: path2, getValueToFilterOn } = field;
|
|
19834
|
+
const filterValue = cleanFilterValue(_filterValue, field.type);
|
|
19835
|
+
const subFilter = getSubFilter(false, selectedFilter, filterValue);
|
|
19836
|
+
entities = entities.filter((entity) => {
|
|
19837
|
+
const fieldVal = getValueToFilterOn ? getValueToFilterOn(entity, ownProps) : get$3(entity, path2);
|
|
19838
|
+
const shouldKeep = subFilter(fieldVal);
|
|
19839
|
+
return shouldKeep;
|
|
19840
|
+
});
|
|
19841
|
+
return entities;
|
|
19842
|
+
}
|
|
19843
|
+
__name(getEntitiesForGivenFilter, "getEntitiesForGivenFilter");
|
|
19844
|
+
function getFiltersFromSearchTerm(searchTerm, schema) {
|
|
19845
|
+
const searchTermFilters = [];
|
|
19846
|
+
if (searchTerm) {
|
|
19847
|
+
const sharedFields = {
|
|
19848
|
+
isOrFilter: true,
|
|
19849
|
+
isSearchTermFilter: true
|
|
19850
|
+
};
|
|
19851
|
+
schema.fields.forEach((field) => {
|
|
19852
|
+
const { type: type2, searchDisabled } = field;
|
|
19853
|
+
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19854
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19855
|
+
const filterValue = cleanFilterValue(searchTerm, type2);
|
|
19856
|
+
if (type2 === "string" || type2 === "lookup") {
|
|
19857
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19858
|
+
filterOn: ccDisplayName,
|
|
19859
|
+
filterValue: searchTerm,
|
|
19860
|
+
selectedFilter: "contains"
|
|
19861
|
+
}));
|
|
19862
|
+
} else if (type2 === "boolean") {
|
|
19863
|
+
let regex;
|
|
19864
|
+
try {
|
|
19865
|
+
regex = new RegExp("^" + searchTerm, "ig");
|
|
19866
|
+
} catch (error) {
|
|
19867
|
+
}
|
|
19868
|
+
if (regex) {
|
|
19869
|
+
if ("true".replace(regex, "") !== "true") {
|
|
19870
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19871
|
+
filterOn: ccDisplayName,
|
|
19872
|
+
filterValue: true,
|
|
19873
|
+
selectedFilter: "true"
|
|
19874
|
+
}));
|
|
19875
|
+
} else if ("false".replace(regex, "") !== "false") {
|
|
19876
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19877
|
+
filterOn: ccDisplayName,
|
|
19878
|
+
filterValue: false,
|
|
19879
|
+
selectedFilter: "false"
|
|
19880
|
+
}));
|
|
19881
|
+
}
|
|
19882
|
+
}
|
|
19883
|
+
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19884
|
+
if (type2 === "integer" && !isInteger(filterValue)) {
|
|
19885
|
+
return;
|
|
19886
|
+
}
|
|
19887
|
+
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
19888
|
+
filterOn: ccDisplayName,
|
|
19889
|
+
filterValue,
|
|
19890
|
+
selectedFilter: "equalTo"
|
|
19891
|
+
}));
|
|
19892
|
+
}
|
|
19893
|
+
});
|
|
19894
|
+
}
|
|
19895
|
+
return searchTermFilters;
|
|
19896
|
+
}
|
|
19897
|
+
__name(getFiltersFromSearchTerm, "getFiltersFromSearchTerm");
|
|
19898
|
+
function getSubFilter(qb, selectedFilter, filterValue) {
|
|
19899
|
+
const ccSelectedFilter = camelCase(selectedFilter);
|
|
19900
|
+
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19901
|
+
if (stringFilterValue === false) {
|
|
19902
|
+
stringFilterValue = "false";
|
|
19903
|
+
} else {
|
|
19904
|
+
stringFilterValue = stringFilterValue || "";
|
|
19905
|
+
}
|
|
19906
|
+
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
19907
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19908
|
+
if (ccSelectedFilter === "startsWith") {
|
|
19909
|
+
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
19910
|
+
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19911
|
+
return startsWith(fieldVal.toLowerCase(), filterValLower);
|
|
19912
|
+
};
|
|
19913
|
+
} else if (ccSelectedFilter === "endsWith") {
|
|
19914
|
+
return qb ? qb.endsWith(stringFilterValue) : (fieldVal) => {
|
|
19915
|
+
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19916
|
+
return endsWith$1(fieldVal.toLowerCase(), filterValLower);
|
|
19917
|
+
};
|
|
19918
|
+
} else if (ccSelectedFilter === "contains" || ccSelectedFilter === "notContains") {
|
|
19919
|
+
return qb ? ccSelectedFilter === "contains" ? qb.contains(stringFilterValue.replace(/_/g, "\\_")) : qb.notContains(stringFilterValue.replace(/_/g, "\\_")) : (fieldVal) => {
|
|
19920
|
+
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
19921
|
+
return ccSelectedFilter === "contains" ? fieldVal.toLowerCase().replace(filterValLower, "") !== fieldVal.toLowerCase() : fieldVal.toLowerCase().replace(filterValLower, "") === fieldVal.toLowerCase();
|
|
19922
|
+
};
|
|
19923
|
+
} else if (ccSelectedFilter === "inList") {
|
|
19924
|
+
return qb ? qb.inList(arrayFilterValue) : (fieldVal) => {
|
|
19925
|
+
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19926
|
+
return arrayFilterValue.map((val) => {
|
|
19927
|
+
if (val) {
|
|
19928
|
+
if (val.toString) return val.toString().toLowerCase();
|
|
19929
|
+
return val.toLowerCase();
|
|
19930
|
+
}
|
|
19931
|
+
return void 0;
|
|
19932
|
+
}).indexOf(fieldVal.toString().toLowerCase()) > -1;
|
|
19933
|
+
};
|
|
19934
|
+
} else if (ccSelectedFilter === "notInList") {
|
|
19935
|
+
return qb ? qb.notInList(arrayFilterValue) : (fieldVal) => {
|
|
19936
|
+
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
19937
|
+
return arrayFilterValue.map((val) => {
|
|
19938
|
+
if (val) {
|
|
19939
|
+
if (val.toString) return val.toString().toLowerCase();
|
|
19940
|
+
return val.toLowerCase();
|
|
19941
|
+
}
|
|
19942
|
+
return void 0;
|
|
19943
|
+
}).indexOf(fieldVal.toString().toLowerCase()) === -1;
|
|
19944
|
+
};
|
|
19945
|
+
} else if (ccSelectedFilter === "isEmpty") {
|
|
19946
|
+
return qb ? qb.isEmpty() : (fieldVal) => {
|
|
19947
|
+
return !fieldVal;
|
|
19948
|
+
};
|
|
19949
|
+
} else if (ccSelectedFilter === "notEmpty") {
|
|
19950
|
+
return qb ? [qb.notNull(), qb.notEquals("")] : (fieldVal) => {
|
|
19951
|
+
return !!fieldVal;
|
|
19952
|
+
};
|
|
19953
|
+
} else if (ccSelectedFilter === "isExactly") {
|
|
19954
|
+
return qb ? filterValue : (fieldVal) => {
|
|
19955
|
+
return fieldVal === filterValue;
|
|
19956
|
+
};
|
|
19957
|
+
} else if (ccSelectedFilter === "true") {
|
|
19958
|
+
return qb ? qb.equals(true) : (fieldVal) => {
|
|
19959
|
+
return !!fieldVal;
|
|
19960
|
+
};
|
|
19961
|
+
} else if (ccSelectedFilter === "false") {
|
|
19962
|
+
return qb ? qb.equals(false) : (fieldVal) => {
|
|
19963
|
+
return !fieldVal;
|
|
19964
|
+
};
|
|
19965
|
+
} else if (ccSelectedFilter === "isBetween") {
|
|
19966
|
+
return qb ? qb.between(
|
|
19967
|
+
new Date(arrayFilterValue[0]),
|
|
19968
|
+
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19969
|
+
// set end of day for more accurate filtering
|
|
19970
|
+
) : (fieldVal) => {
|
|
19971
|
+
return dayjs(arrayFilterValue[0]).valueOf() <= dayjs(fieldVal).valueOf() && dayjs(fieldVal).valueOf() <= dayjs(arrayFilterValue[1]).valueOf();
|
|
19972
|
+
};
|
|
19973
|
+
} else if (ccSelectedFilter === "notBetween") {
|
|
19974
|
+
return qb ? qb.notBetween(
|
|
19975
|
+
new Date(arrayFilterValue[0]),
|
|
19976
|
+
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19977
|
+
// set end of day for more accurate filtering
|
|
19978
|
+
) : (fieldVal) => {
|
|
19979
|
+
return dayjs(arrayFilterValue[0]).valueOf() > dayjs(fieldVal).valueOf() || dayjs(fieldVal).valueOf() > dayjs(arrayFilterValue[1]).valueOf();
|
|
19980
|
+
};
|
|
19981
|
+
} else if (ccSelectedFilter === "isBefore") {
|
|
19982
|
+
return qb ? qb.lessThan(new Date(filterValue)) : (fieldVal) => {
|
|
19983
|
+
return dayjs(fieldVal).valueOf() < dayjs(filterValue).valueOf();
|
|
19984
|
+
};
|
|
19985
|
+
} else if (ccSelectedFilter === "isAfter") {
|
|
19986
|
+
return qb ? qb.greaterThan(new Date(new Date(filterValue).setHours(23, 59))) : (fieldVal) => {
|
|
19987
|
+
return dayjs(fieldVal).valueOf() > dayjs(filterValue).valueOf();
|
|
19988
|
+
};
|
|
19989
|
+
} else if (ccSelectedFilter === "greaterThan") {
|
|
19990
|
+
return qb ? qb.greaterThan(filterValue) : (fieldVal) => {
|
|
19991
|
+
return fieldVal > filterValue;
|
|
19992
|
+
};
|
|
19993
|
+
} else if (ccSelectedFilter === "lessThan") {
|
|
19994
|
+
return qb ? qb.lessThan(filterValue) : (fieldVal) => {
|
|
19995
|
+
return fieldVal < filterValue;
|
|
19996
|
+
};
|
|
19997
|
+
} else if (ccSelectedFilter === "inRange") {
|
|
19998
|
+
return qb ? qb.between(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
19999
|
+
return filterValue[0] <= fieldVal && fieldVal <= filterValue[1];
|
|
20000
|
+
};
|
|
20001
|
+
} else if (ccSelectedFilter === "outsideRange") {
|
|
20002
|
+
return qb ? qb.notBetween(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
20003
|
+
return filterValue[0] > fieldVal || fieldVal > filterValue[1];
|
|
20004
|
+
};
|
|
20005
|
+
} else if (ccSelectedFilter === "equalTo") {
|
|
20006
|
+
return qb ? filterValue : (fieldVal) => {
|
|
20007
|
+
return fieldVal === filterValue;
|
|
20008
|
+
};
|
|
20009
|
+
} else if (ccSelectedFilter === "regex") {
|
|
20010
|
+
return qb ? qb.matchesRegex(filterValue) : (fieldVal) => {
|
|
20011
|
+
new RegExp(filterValue).test(fieldVal);
|
|
20012
|
+
return fieldVal;
|
|
20013
|
+
};
|
|
20014
|
+
}
|
|
20015
|
+
throw new Error(
|
|
20016
|
+
`Unsupported filter ${selectedFilter}. Please make a new filter if you need one`
|
|
20017
|
+
);
|
|
20018
|
+
}
|
|
20019
|
+
__name(getSubFilter, "getSubFilter");
|
|
19815
20020
|
function getCurrentParamsFromUrl(location2, isSimple) {
|
|
19816
20021
|
let { search: search2 } = location2;
|
|
19817
20022
|
if (isSimple) {
|
|
@@ -19883,6 +20088,22 @@ function parseFilters(newParams) {
|
|
|
19883
20088
|
});
|
|
19884
20089
|
}
|
|
19885
20090
|
__name(parseFilters, "parseFilters");
|
|
20091
|
+
function buildRef(qb, reference2, searchField, expression) {
|
|
20092
|
+
if (reference2.reference) {
|
|
20093
|
+
return qb.related(reference2.target).whereAny({
|
|
20094
|
+
[reference2.sourceField]: buildRef(
|
|
20095
|
+
qb,
|
|
20096
|
+
reference2.reference,
|
|
20097
|
+
searchField,
|
|
20098
|
+
expression
|
|
20099
|
+
)
|
|
20100
|
+
});
|
|
20101
|
+
}
|
|
20102
|
+
return qb.related(reference2.target).whereAny({
|
|
20103
|
+
[searchField]: expression
|
|
20104
|
+
});
|
|
20105
|
+
}
|
|
20106
|
+
__name(buildRef, "buildRef");
|
|
19886
20107
|
function makeDataTableHandlers({
|
|
19887
20108
|
setNewParams,
|
|
19888
20109
|
defaults,
|
|
@@ -19970,18 +20191,40 @@ function makeDataTableHandlers({
|
|
|
19970
20191
|
};
|
|
19971
20192
|
}
|
|
19972
20193
|
__name(makeDataTableHandlers, "makeDataTableHandlers");
|
|
20194
|
+
function cleanupFilter(filter2) {
|
|
20195
|
+
let filterToUse = filter2;
|
|
20196
|
+
if (filterToUse.selectedFilter === "inList" && typeof filterToUse.filterValue === "number") {
|
|
20197
|
+
filterToUse = __spreadProps(__spreadValues({}, filterToUse), {
|
|
20198
|
+
filterValue: filterToUse.filterValue.toString()
|
|
20199
|
+
});
|
|
20200
|
+
}
|
|
20201
|
+
return filterToUse;
|
|
20202
|
+
}
|
|
20203
|
+
__name(cleanupFilter, "cleanupFilter");
|
|
20204
|
+
function getAllFilters(filters, searchTerm, schema) {
|
|
20205
|
+
let allFilters = [
|
|
20206
|
+
...filters,
|
|
20207
|
+
...getFiltersFromSearchTerm(searchTerm, schema)
|
|
20208
|
+
];
|
|
20209
|
+
allFilters = allFilters.filter((val) => {
|
|
20210
|
+
return val !== "";
|
|
20211
|
+
});
|
|
20212
|
+
return allFilters.map(cleanupFilter);
|
|
20213
|
+
}
|
|
20214
|
+
__name(getAllFilters, "getAllFilters");
|
|
19973
20215
|
function getQueryParams({
|
|
19974
20216
|
currentParams,
|
|
19975
|
-
|
|
20217
|
+
urlConnected,
|
|
19976
20218
|
defaults,
|
|
19977
20219
|
schema,
|
|
19978
20220
|
isInfinite,
|
|
19979
20221
|
entities,
|
|
19980
20222
|
isLocalCall,
|
|
19981
20223
|
additionalFilter,
|
|
20224
|
+
additionalOrFilter,
|
|
19982
20225
|
doNotCoercePageSize,
|
|
19983
20226
|
noOrderError,
|
|
19984
|
-
|
|
20227
|
+
isCodeModel,
|
|
19985
20228
|
ownProps
|
|
19986
20229
|
}) {
|
|
19987
20230
|
Object.keys(currentParams).forEach(function(key) {
|
|
@@ -20004,65 +20247,232 @@ function getQueryParams({
|
|
|
20004
20247
|
)[0];
|
|
20005
20248
|
pageSize = closest;
|
|
20006
20249
|
}
|
|
20007
|
-
const
|
|
20008
|
-
if (order2 && order2.length) {
|
|
20009
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
20010
|
-
order2.forEach((orderVal) => {
|
|
20011
|
-
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
20012
|
-
const schemaForField = ccFields[ccDisplayName];
|
|
20013
|
-
if (schemaForField) {
|
|
20014
|
-
const { path: path2 } = schemaForField;
|
|
20015
|
-
const reversed = ccDisplayName !== orderVal;
|
|
20016
|
-
const prefix2 = reversed ? "-" : "";
|
|
20017
|
-
cleanedOrder.push(prefix2 + path2);
|
|
20018
|
-
} else {
|
|
20019
|
-
!noOrderError && console.error(
|
|
20020
|
-
"No schema for field found!",
|
|
20021
|
-
ccDisplayName,
|
|
20022
|
-
JSON.stringify(schema.fields, null, 2)
|
|
20023
|
-
);
|
|
20024
|
-
}
|
|
20025
|
-
});
|
|
20026
|
-
}
|
|
20027
|
-
let toRet = {
|
|
20250
|
+
const toReturn = {
|
|
20028
20251
|
//these are values that might be generally useful for the wrapped component
|
|
20029
20252
|
page,
|
|
20030
20253
|
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20031
|
-
order:
|
|
20254
|
+
order: order2,
|
|
20032
20255
|
filters,
|
|
20033
20256
|
searchTerm
|
|
20034
20257
|
};
|
|
20035
|
-
const { where, order_by, limit, offset: offset3 } = tableQueryParamsToHasuraClauses({
|
|
20036
|
-
page,
|
|
20037
|
-
pageSize,
|
|
20038
|
-
searchTerm,
|
|
20039
|
-
filters,
|
|
20040
|
-
order: cleanedOrder,
|
|
20041
|
-
schema
|
|
20042
|
-
});
|
|
20043
|
-
initializeHasuraWhereAndFilter(additionalFilter, where, currentParams);
|
|
20044
|
-
addCustomColumnFilters(where, schema.fields, currentParams);
|
|
20045
20258
|
if (isLocalCall) {
|
|
20046
|
-
|
|
20047
|
-
|
|
20048
|
-
|
|
20049
|
-
|
|
20050
|
-
|
|
20051
|
-
|
|
20052
|
-
|
|
20053
|
-
|
|
20259
|
+
let newEntities = entities;
|
|
20260
|
+
newEntities = filterEntitiesLocal(
|
|
20261
|
+
filters,
|
|
20262
|
+
searchTerm,
|
|
20263
|
+
newEntities,
|
|
20264
|
+
schema,
|
|
20265
|
+
ownProps
|
|
20266
|
+
);
|
|
20267
|
+
newEntities = orderEntitiesLocal(order2, newEntities, schema, ownProps);
|
|
20268
|
+
const entitiesAcrossPages = newEntities;
|
|
20269
|
+
const newEntityCount = newEntities.length;
|
|
20270
|
+
if (!isInfinite && !ownProps.controlled_pageSize) {
|
|
20271
|
+
const offset3 = (page - 1) * pageSize;
|
|
20272
|
+
newEntities = take(drop(newEntities, offset3), pageSize);
|
|
20273
|
+
}
|
|
20274
|
+
toReturn.entities = newEntities;
|
|
20275
|
+
toReturn.entitiesAcrossPages = entitiesAcrossPages;
|
|
20276
|
+
toReturn.entityCount = newEntityCount;
|
|
20277
|
+
return toReturn;
|
|
20054
20278
|
} else {
|
|
20055
|
-
|
|
20056
|
-
|
|
20057
|
-
|
|
20058
|
-
|
|
20059
|
-
|
|
20060
|
-
|
|
20279
|
+
const graphqlQueryParams = {
|
|
20280
|
+
// need to make sure sort exists because of https://github.com/apollographql/apollo-client/issues/3077
|
|
20281
|
+
sort: []
|
|
20282
|
+
};
|
|
20283
|
+
if (isInfinite) {
|
|
20284
|
+
graphqlQueryParams.pageSize = 999;
|
|
20285
|
+
graphqlQueryParams.pageNumber = 1;
|
|
20286
|
+
} else {
|
|
20287
|
+
graphqlQueryParams.pageNumber = Number(page);
|
|
20288
|
+
graphqlQueryParams.pageSize = ownProps.controlled_pageSize || Number(pageSize);
|
|
20289
|
+
}
|
|
20290
|
+
const { model } = schema;
|
|
20291
|
+
if (!window.QueryBuilder) return toReturn;
|
|
20292
|
+
const qb = new window.QueryBuilder(model);
|
|
20293
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
20294
|
+
if (tableQueryParams.order && tableQueryParams.order.length) {
|
|
20295
|
+
tableQueryParams.order.forEach((orderVal) => {
|
|
20296
|
+
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
20297
|
+
const schemaForField = ccFields[ccDisplayName];
|
|
20298
|
+
if (schemaForField) {
|
|
20299
|
+
const { path: path2 } = schemaForField;
|
|
20300
|
+
const reversed = ccDisplayName !== orderVal;
|
|
20301
|
+
const prefix2 = reversed ? "-" : "";
|
|
20302
|
+
graphqlQueryParams.sort = [
|
|
20303
|
+
...graphqlQueryParams.sort || [],
|
|
20304
|
+
prefix2 + path2
|
|
20305
|
+
];
|
|
20306
|
+
} else {
|
|
20307
|
+
!noOrderError && console.error(
|
|
20308
|
+
"No schema for field found!",
|
|
20309
|
+
ccDisplayName,
|
|
20310
|
+
JSON.stringify(schema.fields, null, 2)
|
|
20311
|
+
);
|
|
20312
|
+
}
|
|
20313
|
+
});
|
|
20314
|
+
}
|
|
20315
|
+
let errorParsingUrlString;
|
|
20316
|
+
const additionalFilterToUse = additionalFilter(qb, currentParams);
|
|
20317
|
+
let additionalOrFilterToUse = additionalOrFilter(qb, currentParams);
|
|
20318
|
+
if (additionalOrFilterToUse && additionalOrFilterToUse.ignoreSearchTerm) {
|
|
20319
|
+
searchTerm = "";
|
|
20320
|
+
additionalOrFilterToUse = additionalOrFilterToUse.additionalOrFilterToUse;
|
|
20321
|
+
}
|
|
20322
|
+
const allFilters = getAllFilters(filters, searchTerm, schema);
|
|
20323
|
+
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
20324
|
+
try {
|
|
20325
|
+
const flattenFilters = /* @__PURE__ */ __name((filterObj) => {
|
|
20326
|
+
return flatMap(Object.keys(filterObj), (key) => {
|
|
20327
|
+
return filterObj[key].map((filter2) => ({
|
|
20328
|
+
[key]: filter2
|
|
20329
|
+
}));
|
|
20330
|
+
});
|
|
20331
|
+
}, "flattenFilters");
|
|
20332
|
+
const orFiltersObject = getQueries(orFilters, qb, ccFields);
|
|
20333
|
+
let allOrFilters = flattenFilters(orFiltersObject);
|
|
20334
|
+
otherOrFilters.forEach((orFilters2) => {
|
|
20335
|
+
const otherOrFiltersObject = getQueries(orFilters2, qb, ccFields);
|
|
20336
|
+
allOrFilters = allOrFilters.concat(
|
|
20337
|
+
flattenFilters(otherOrFiltersObject)
|
|
20338
|
+
);
|
|
20339
|
+
});
|
|
20340
|
+
allOrFilters.push(additionalOrFilterToUse);
|
|
20341
|
+
allOrFilters = allOrFilters.filter((obj) => !isEmpty$1(obj));
|
|
20342
|
+
const unflattenedAndQueries = getQueries(andFilters, qb, ccFields);
|
|
20343
|
+
let allAndFilters = flattenFilters(unflattenedAndQueries);
|
|
20344
|
+
allAndFilters.push(additionalFilterToUse);
|
|
20345
|
+
allAndFilters = allAndFilters.filter((obj) => !isEmpty$1(obj));
|
|
20346
|
+
if (allAndFilters.length) {
|
|
20347
|
+
qb.whereAll(...allAndFilters);
|
|
20348
|
+
}
|
|
20349
|
+
if (allOrFilters.length) {
|
|
20350
|
+
qb.andWhereAny(...allOrFilters);
|
|
20351
|
+
}
|
|
20352
|
+
const columnCustomFilters = getColumnCustomFilters(
|
|
20353
|
+
andFilters,
|
|
20354
|
+
qb,
|
|
20355
|
+
ccFields
|
|
20356
|
+
);
|
|
20357
|
+
if (columnCustomFilters.length) {
|
|
20358
|
+
qb.whereAll(...columnCustomFilters);
|
|
20061
20359
|
}
|
|
20360
|
+
} catch (e) {
|
|
20361
|
+
if (urlConnected) {
|
|
20362
|
+
errorParsingUrlString = e;
|
|
20363
|
+
console.error(
|
|
20364
|
+
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20365
|
+
e
|
|
20366
|
+
);
|
|
20367
|
+
} else {
|
|
20368
|
+
console.error("Error building query params from filter:");
|
|
20369
|
+
throw e;
|
|
20370
|
+
}
|
|
20371
|
+
}
|
|
20372
|
+
if (qb.query.filters.length) {
|
|
20373
|
+
graphqlQueryParams.filter = qb.toJSON();
|
|
20374
|
+
}
|
|
20375
|
+
if (!graphqlQueryParams.sort.length) {
|
|
20376
|
+
graphqlQueryParams.sort.push("-updatedAt");
|
|
20377
|
+
}
|
|
20378
|
+
graphqlQueryParams.sort.push(
|
|
20379
|
+
isCodeModel ? "code" : window.__sortId || "id"
|
|
20380
|
+
);
|
|
20381
|
+
return __spreadProps(__spreadValues({}, toReturn), {
|
|
20382
|
+
//the query params will get passed directly to as variables to the graphql query
|
|
20383
|
+
variables: graphqlQueryParams,
|
|
20384
|
+
errorParsingUrlString
|
|
20062
20385
|
});
|
|
20063
20386
|
}
|
|
20064
20387
|
}
|
|
20065
20388
|
__name(getQueryParams, "getQueryParams");
|
|
20389
|
+
function getSubFiltersAndPath(filter2, qb, ccFields) {
|
|
20390
|
+
const { selectedFilter, filterValue, filterOn } = filter2;
|
|
20391
|
+
const fieldSchema = ccFields[filterOn];
|
|
20392
|
+
let filterValueToUse = filterValue;
|
|
20393
|
+
if (fieldSchema) {
|
|
20394
|
+
if (fieldSchema.normalizeFilter) {
|
|
20395
|
+
filterValueToUse = fieldSchema.normalizeFilter(
|
|
20396
|
+
filterValue,
|
|
20397
|
+
selectedFilter,
|
|
20398
|
+
filterOn
|
|
20399
|
+
);
|
|
20400
|
+
}
|
|
20401
|
+
}
|
|
20402
|
+
const _subFilters = getSubFilter(qb, selectedFilter, filterValueToUse);
|
|
20403
|
+
let filterField;
|
|
20404
|
+
if (fieldSchema) {
|
|
20405
|
+
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20406
|
+
if (reference2) {
|
|
20407
|
+
filterField = reference2.sourceField;
|
|
20408
|
+
} else {
|
|
20409
|
+
filterField = path2;
|
|
20410
|
+
}
|
|
20411
|
+
} else if (filterOn === "id") {
|
|
20412
|
+
filterField = filterOn;
|
|
20413
|
+
} else {
|
|
20414
|
+
console.error("Trying to filter on unknown field");
|
|
20415
|
+
}
|
|
20416
|
+
const subFiltersToUse = [];
|
|
20417
|
+
const subFilters = Array.isArray(_subFilters) ? _subFilters : [_subFilters];
|
|
20418
|
+
subFilters.forEach((subFilter) => {
|
|
20419
|
+
let subFilterToUse = subFilter;
|
|
20420
|
+
if (fieldSchema) {
|
|
20421
|
+
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20422
|
+
if (reference2) {
|
|
20423
|
+
subFilterToUse = buildRef(
|
|
20424
|
+
qb,
|
|
20425
|
+
reference2,
|
|
20426
|
+
last$1(path2.split(".")),
|
|
20427
|
+
subFilter
|
|
20428
|
+
);
|
|
20429
|
+
}
|
|
20430
|
+
}
|
|
20431
|
+
subFiltersToUse.push(subFilterToUse);
|
|
20432
|
+
});
|
|
20433
|
+
return {
|
|
20434
|
+
path: filterField,
|
|
20435
|
+
subFilters: subFiltersToUse
|
|
20436
|
+
};
|
|
20437
|
+
}
|
|
20438
|
+
__name(getSubFiltersAndPath, "getSubFiltersAndPath");
|
|
20439
|
+
function getQueries(filters, qb, ccFields) {
|
|
20440
|
+
const subQueries = filters.reduce((acc, filter2) => {
|
|
20441
|
+
if (!filter2) {
|
|
20442
|
+
console.warn("We should always have a filter object!");
|
|
20443
|
+
return acc;
|
|
20444
|
+
}
|
|
20445
|
+
const { filterOn } = filter2;
|
|
20446
|
+
const fieldSchema = ccFields[filterOn];
|
|
20447
|
+
if (!filter2.isSearchTermFilter && (fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter))
|
|
20448
|
+
return acc;
|
|
20449
|
+
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20450
|
+
acc[path2] = subFilters;
|
|
20451
|
+
return acc;
|
|
20452
|
+
}, {});
|
|
20453
|
+
return subQueries;
|
|
20454
|
+
}
|
|
20455
|
+
__name(getQueries, "getQueries");
|
|
20456
|
+
function getColumnCustomFilters(filters, qb, ccFields) {
|
|
20457
|
+
const subQueries = filters.reduce((acc, filter2) => {
|
|
20458
|
+
if (!filter2) {
|
|
20459
|
+
console.warn("We should always have a filter object!");
|
|
20460
|
+
return acc;
|
|
20461
|
+
}
|
|
20462
|
+
const { filterOn } = filter2;
|
|
20463
|
+
const fieldSchema = ccFields[filterOn];
|
|
20464
|
+
if (filter2.isSearchTermFilter || !(fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter)) {
|
|
20465
|
+
return acc;
|
|
20466
|
+
}
|
|
20467
|
+
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20468
|
+
subFilters.forEach((subFilter) => {
|
|
20469
|
+
acc.push(fieldSchema.additionalColumnFilter(qb, subFilter, path2));
|
|
20470
|
+
});
|
|
20471
|
+
return acc;
|
|
20472
|
+
}, []);
|
|
20473
|
+
return subQueries;
|
|
20474
|
+
}
|
|
20475
|
+
__name(getColumnCustomFilters, "getColumnCustomFilters");
|
|
20066
20476
|
function PagingInput({ disabled, onBlur, defaultPage }) {
|
|
20067
20477
|
const [page, setPage] = React.useState(defaultPage);
|
|
20068
20478
|
const defaultValue2 = React.useRef(defaultPage);
|
|
@@ -32576,293 +32986,6 @@ const InfoHelper = /* @__PURE__ */ __name((_g) => {
|
|
|
32576
32986
|
toReturn
|
|
32577
32987
|
);
|
|
32578
32988
|
}, "InfoHelper");
|
|
32579
|
-
var dayjs_min$1 = { exports: {} };
|
|
32580
|
-
var dayjs_min = dayjs_min$1.exports;
|
|
32581
|
-
var hasRequiredDayjs_min;
|
|
32582
|
-
function requireDayjs_min() {
|
|
32583
|
-
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
32584
|
-
hasRequiredDayjs_min = 1;
|
|
32585
|
-
(function(module2, exports2) {
|
|
32586
|
-
!function(t2, e) {
|
|
32587
|
-
module2.exports = e();
|
|
32588
|
-
}(dayjs_min, function() {
|
|
32589
|
-
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) {
|
|
32590
|
-
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
32591
|
-
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
32592
|
-
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
32593
|
-
var r3 = String(t3);
|
|
32594
|
-
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
32595
|
-
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
32596
|
-
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
32597
|
-
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
|
|
32598
|
-
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
32599
|
-
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
32600
|
-
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);
|
|
32601
|
-
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
|
|
32602
|
-
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
32603
|
-
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
32604
|
-
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
32605
|
-
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$/, "");
|
|
32606
|
-
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
32607
|
-
return void 0 === t3;
|
|
32608
|
-
}, "u") }, g2 = "en", D2 = {};
|
|
32609
|
-
D2[g2] = M2;
|
|
32610
|
-
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
32611
|
-
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
32612
|
-
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
32613
|
-
var i3;
|
|
32614
|
-
if (!e2) return g2;
|
|
32615
|
-
if ("string" == typeof e2) {
|
|
32616
|
-
var s3 = e2.toLowerCase();
|
|
32617
|
-
D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
|
|
32618
|
-
var u3 = e2.split("-");
|
|
32619
|
-
if (!i3 && u3.length > 1) return t3(u3[0]);
|
|
32620
|
-
} else {
|
|
32621
|
-
var a3 = e2.name;
|
|
32622
|
-
D2[a3] = e2, i3 = a3;
|
|
32623
|
-
}
|
|
32624
|
-
return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
|
|
32625
|
-
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
32626
|
-
if (S2(t3)) return t3.clone();
|
|
32627
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
32628
|
-
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
32629
|
-
}, "O"), b2 = v2;
|
|
32630
|
-
b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
|
|
32631
|
-
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
32632
|
-
};
|
|
32633
|
-
var _2 = function() {
|
|
32634
|
-
function M3(t3) {
|
|
32635
|
-
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
32636
|
-
}
|
|
32637
|
-
__name(M3, "M");
|
|
32638
|
-
var m3 = M3.prototype;
|
|
32639
|
-
return m3.parse = function(t3) {
|
|
32640
|
-
this.$d = function(t4) {
|
|
32641
|
-
var e2 = t4.date, n3 = t4.utc;
|
|
32642
|
-
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
32643
|
-
if (b2.u(e2)) return /* @__PURE__ */ new Date();
|
|
32644
|
-
if (e2 instanceof Date) return new Date(e2);
|
|
32645
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
32646
|
-
var r3 = e2.match($);
|
|
32647
|
-
if (r3) {
|
|
32648
|
-
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
32649
|
-
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);
|
|
32650
|
-
}
|
|
32651
|
-
}
|
|
32652
|
-
return new Date(e2);
|
|
32653
|
-
}(t3), this.init();
|
|
32654
|
-
}, m3.init = function() {
|
|
32655
|
-
var t3 = this.$d;
|
|
32656
|
-
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();
|
|
32657
|
-
}, m3.$utils = function() {
|
|
32658
|
-
return b2;
|
|
32659
|
-
}, m3.isValid = function() {
|
|
32660
|
-
return !(this.$d.toString() === l2);
|
|
32661
|
-
}, m3.isSame = function(t3, e2) {
|
|
32662
|
-
var n3 = O2(t3);
|
|
32663
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
32664
|
-
}, m3.isAfter = function(t3, e2) {
|
|
32665
|
-
return O2(t3) < this.startOf(e2);
|
|
32666
|
-
}, m3.isBefore = function(t3, e2) {
|
|
32667
|
-
return this.endOf(e2) < O2(t3);
|
|
32668
|
-
}, m3.$g = function(t3, e2, n3) {
|
|
32669
|
-
return b2.u(t3) ? this[e2] : this.set(n3, t3);
|
|
32670
|
-
}, m3.unix = function() {
|
|
32671
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
32672
|
-
}, m3.valueOf = function() {
|
|
32673
|
-
return this.$d.getTime();
|
|
32674
|
-
}, m3.startOf = function(t3, e2) {
|
|
32675
|
-
var n3 = this, r3 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32676
|
-
var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
32677
|
-
return r3 ? i3 : i3.endOf(a2);
|
|
32678
|
-
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32679
|
-
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
32680
|
-
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
32681
|
-
switch (f3) {
|
|
32682
|
-
case h2:
|
|
32683
|
-
return r3 ? l3(1, 0) : l3(31, 11);
|
|
32684
|
-
case c2:
|
|
32685
|
-
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
32686
|
-
case o2:
|
|
32687
|
-
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
32688
|
-
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
32689
|
-
case a2:
|
|
32690
|
-
case d2:
|
|
32691
|
-
return $2(v3 + "Hours", 0);
|
|
32692
|
-
case u2:
|
|
32693
|
-
return $2(v3 + "Minutes", 1);
|
|
32694
|
-
case s2:
|
|
32695
|
-
return $2(v3 + "Seconds", 2);
|
|
32696
|
-
case i2:
|
|
32697
|
-
return $2(v3 + "Milliseconds", 3);
|
|
32698
|
-
default:
|
|
32699
|
-
return this.clone();
|
|
32700
|
-
}
|
|
32701
|
-
}, m3.endOf = function(t3) {
|
|
32702
|
-
return this.startOf(t3, false);
|
|
32703
|
-
}, m3.$set = function(t3, e2) {
|
|
32704
|
-
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;
|
|
32705
|
-
if (o3 === c2 || o3 === h2) {
|
|
32706
|
-
var y3 = this.clone().set(d2, 1);
|
|
32707
|
-
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
32708
|
-
} else l3 && this.$d[l3]($2);
|
|
32709
|
-
return this.init(), this;
|
|
32710
|
-
}, m3.set = function(t3, e2) {
|
|
32711
|
-
return this.clone().$set(t3, e2);
|
|
32712
|
-
}, m3.get = function(t3) {
|
|
32713
|
-
return this[b2.p(t3)]();
|
|
32714
|
-
}, m3.add = function(r3, f3) {
|
|
32715
|
-
var d3, l3 = this;
|
|
32716
|
-
r3 = Number(r3);
|
|
32717
|
-
var $2 = b2.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
32718
|
-
var e2 = O2(l3);
|
|
32719
|
-
return b2.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
32720
|
-
}, "y");
|
|
32721
|
-
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
32722
|
-
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
32723
|
-
if ($2 === a2) return y3(1);
|
|
32724
|
-
if ($2 === o2) return y3(7);
|
|
32725
|
-
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i2] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
32726
|
-
return b2.w(m4, this);
|
|
32727
|
-
}, m3.subtract = function(t3, e2) {
|
|
32728
|
-
return this.add(-1 * t3, e2);
|
|
32729
|
-
}, m3.format = function(t3) {
|
|
32730
|
-
var e2 = this, n3 = this.$locale();
|
|
32731
|
-
if (!this.isValid()) return n3.invalidDate || l2;
|
|
32732
|
-
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) {
|
|
32733
|
-
return t4 && (t4[n4] || t4(e2, r3)) || i4[n4].slice(0, s4);
|
|
32734
|
-
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
32735
|
-
return b2.s(s3 % 12 || 12, t4, "0");
|
|
32736
|
-
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
32737
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
32738
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
32739
|
-
};
|
|
32740
|
-
return r3.replace(y2, function(t4, r4) {
|
|
32741
|
-
return r4 || function(t5) {
|
|
32742
|
-
switch (t5) {
|
|
32743
|
-
case "YY":
|
|
32744
|
-
return String(e2.$y).slice(-2);
|
|
32745
|
-
case "YYYY":
|
|
32746
|
-
return b2.s(e2.$y, 4, "0");
|
|
32747
|
-
case "M":
|
|
32748
|
-
return a3 + 1;
|
|
32749
|
-
case "MM":
|
|
32750
|
-
return b2.s(a3 + 1, 2, "0");
|
|
32751
|
-
case "MMM":
|
|
32752
|
-
return h3(n3.monthsShort, a3, c3, 3);
|
|
32753
|
-
case "MMMM":
|
|
32754
|
-
return h3(c3, a3);
|
|
32755
|
-
case "D":
|
|
32756
|
-
return e2.$D;
|
|
32757
|
-
case "DD":
|
|
32758
|
-
return b2.s(e2.$D, 2, "0");
|
|
32759
|
-
case "d":
|
|
32760
|
-
return String(e2.$W);
|
|
32761
|
-
case "dd":
|
|
32762
|
-
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
32763
|
-
case "ddd":
|
|
32764
|
-
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
32765
|
-
case "dddd":
|
|
32766
|
-
return o3[e2.$W];
|
|
32767
|
-
case "H":
|
|
32768
|
-
return String(s3);
|
|
32769
|
-
case "HH":
|
|
32770
|
-
return b2.s(s3, 2, "0");
|
|
32771
|
-
case "h":
|
|
32772
|
-
return d3(1);
|
|
32773
|
-
case "hh":
|
|
32774
|
-
return d3(2);
|
|
32775
|
-
case "a":
|
|
32776
|
-
return $2(s3, u3, true);
|
|
32777
|
-
case "A":
|
|
32778
|
-
return $2(s3, u3, false);
|
|
32779
|
-
case "m":
|
|
32780
|
-
return String(u3);
|
|
32781
|
-
case "mm":
|
|
32782
|
-
return b2.s(u3, 2, "0");
|
|
32783
|
-
case "s":
|
|
32784
|
-
return String(e2.$s);
|
|
32785
|
-
case "ss":
|
|
32786
|
-
return b2.s(e2.$s, 2, "0");
|
|
32787
|
-
case "SSS":
|
|
32788
|
-
return b2.s(e2.$ms, 3, "0");
|
|
32789
|
-
case "Z":
|
|
32790
|
-
return i3;
|
|
32791
|
-
}
|
|
32792
|
-
return null;
|
|
32793
|
-
}(t4) || i3.replace(":", "");
|
|
32794
|
-
});
|
|
32795
|
-
}, m3.utcOffset = function() {
|
|
32796
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
32797
|
-
}, m3.diff = function(r3, d3, l3) {
|
|
32798
|
-
var $2, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
32799
|
-
return b2.m(y3, m4);
|
|
32800
|
-
}, "D");
|
|
32801
|
-
switch (M4) {
|
|
32802
|
-
case h2:
|
|
32803
|
-
$2 = D3() / 12;
|
|
32804
|
-
break;
|
|
32805
|
-
case c2:
|
|
32806
|
-
$2 = D3();
|
|
32807
|
-
break;
|
|
32808
|
-
case f2:
|
|
32809
|
-
$2 = D3() / 3;
|
|
32810
|
-
break;
|
|
32811
|
-
case o2:
|
|
32812
|
-
$2 = (g3 - v3) / 6048e5;
|
|
32813
|
-
break;
|
|
32814
|
-
case a2:
|
|
32815
|
-
$2 = (g3 - v3) / 864e5;
|
|
32816
|
-
break;
|
|
32817
|
-
case u2:
|
|
32818
|
-
$2 = g3 / n2;
|
|
32819
|
-
break;
|
|
32820
|
-
case s2:
|
|
32821
|
-
$2 = g3 / e;
|
|
32822
|
-
break;
|
|
32823
|
-
case i2:
|
|
32824
|
-
$2 = g3 / t2;
|
|
32825
|
-
break;
|
|
32826
|
-
default:
|
|
32827
|
-
$2 = g3;
|
|
32828
|
-
}
|
|
32829
|
-
return l3 ? $2 : b2.a($2);
|
|
32830
|
-
}, m3.daysInMonth = function() {
|
|
32831
|
-
return this.endOf(c2).$D;
|
|
32832
|
-
}, m3.$locale = function() {
|
|
32833
|
-
return D2[this.$L];
|
|
32834
|
-
}, m3.locale = function(t3, e2) {
|
|
32835
|
-
if (!t3) return this.$L;
|
|
32836
|
-
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
32837
|
-
return r3 && (n3.$L = r3), n3;
|
|
32838
|
-
}, m3.clone = function() {
|
|
32839
|
-
return b2.w(this.$d, this);
|
|
32840
|
-
}, m3.toDate = function() {
|
|
32841
|
-
return new Date(this.valueOf());
|
|
32842
|
-
}, m3.toJSON = function() {
|
|
32843
|
-
return this.isValid() ? this.toISOString() : null;
|
|
32844
|
-
}, m3.toISOString = function() {
|
|
32845
|
-
return this.$d.toISOString();
|
|
32846
|
-
}, m3.toString = function() {
|
|
32847
|
-
return this.$d.toUTCString();
|
|
32848
|
-
}, M3;
|
|
32849
|
-
}(), k2 = _2.prototype;
|
|
32850
|
-
return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
32851
|
-
k2[t3[1]] = function(e2) {
|
|
32852
|
-
return this.$g(e2, t3[0], t3[1]);
|
|
32853
|
-
};
|
|
32854
|
-
}), O2.extend = function(t3, e2) {
|
|
32855
|
-
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
32856
|
-
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
32857
|
-
return O2(1e3 * t3);
|
|
32858
|
-
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
32859
|
-
});
|
|
32860
|
-
})(dayjs_min$1);
|
|
32861
|
-
return dayjs_min$1.exports;
|
|
32862
|
-
}
|
|
32863
|
-
__name(requireDayjs_min, "requireDayjs_min");
|
|
32864
|
-
var dayjs_minExports = requireDayjs_min();
|
|
32865
|
-
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
32866
32989
|
var localizedFormat$2 = { exports: {} };
|
|
32867
32990
|
var localizedFormat$1 = localizedFormat$2.exports;
|
|
32868
32991
|
var hasRequiredLocalizedFormat;
|
|
@@ -50653,42 +50776,42 @@ function getFilterMenuItems(dataType) {
|
|
|
50653
50776
|
let filterMenuItems2 = [];
|
|
50654
50777
|
if (dataType === "string") {
|
|
50655
50778
|
filterMenuItems2 = [
|
|
50656
|
-
"
|
|
50657
|
-
"
|
|
50658
|
-
"
|
|
50659
|
-
"
|
|
50660
|
-
"
|
|
50661
|
-
"
|
|
50662
|
-
"
|
|
50663
|
-
"
|
|
50664
|
-
"
|
|
50665
|
-
"
|
|
50779
|
+
"Contains",
|
|
50780
|
+
"Not Contains",
|
|
50781
|
+
"Starts With",
|
|
50782
|
+
"Ends With",
|
|
50783
|
+
"Is Exactly",
|
|
50784
|
+
"Regex",
|
|
50785
|
+
"In List",
|
|
50786
|
+
"Not In List",
|
|
50787
|
+
"Is Empty",
|
|
50788
|
+
"Not Empty"
|
|
50666
50789
|
];
|
|
50667
50790
|
} else if (dataType === "lookup") {
|
|
50668
50791
|
filterMenuItems2 = [
|
|
50669
|
-
"
|
|
50670
|
-
"
|
|
50671
|
-
"
|
|
50672
|
-
"
|
|
50673
|
-
"
|
|
50674
|
-
"
|
|
50792
|
+
"Contains",
|
|
50793
|
+
"Not Contains",
|
|
50794
|
+
"Starts With",
|
|
50795
|
+
"Ends With",
|
|
50796
|
+
"Is Exactly",
|
|
50797
|
+
"Regex"
|
|
50675
50798
|
];
|
|
50676
50799
|
} else if (dataType === "boolean") {
|
|
50677
|
-
filterMenuItems2 = ["
|
|
50800
|
+
filterMenuItems2 = ["True", "False"];
|
|
50678
50801
|
} else if (dataType === "number" || dataType === "integer") {
|
|
50679
50802
|
filterMenuItems2 = [
|
|
50680
|
-
"
|
|
50681
|
-
"
|
|
50682
|
-
"
|
|
50683
|
-
"
|
|
50684
|
-
"
|
|
50685
|
-
"
|
|
50686
|
-
"
|
|
50803
|
+
"Greater Than",
|
|
50804
|
+
"Less Than",
|
|
50805
|
+
"In Range",
|
|
50806
|
+
"Outside Range",
|
|
50807
|
+
"Equal To",
|
|
50808
|
+
"In List",
|
|
50809
|
+
"Not In List"
|
|
50687
50810
|
];
|
|
50688
50811
|
} else if (dataType === "timestamp") {
|
|
50689
|
-
filterMenuItems2 = ["
|
|
50812
|
+
filterMenuItems2 = ["Is Between", "Not Between", "Is Before", "Is After"];
|
|
50690
50813
|
}
|
|
50691
|
-
return filterMenuItems2
|
|
50814
|
+
return filterMenuItems2;
|
|
50692
50815
|
}
|
|
50693
50816
|
__name(getFilterMenuItems, "getFilterMenuItems");
|
|
50694
50817
|
const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
@@ -56276,15 +56399,20 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56276
56399
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
56277
56400
|
const queryParams = React.useMemo(() => {
|
|
56278
56401
|
if (!isTableParamsConnected) {
|
|
56402
|
+
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
56403
|
+
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
56279
56404
|
return getQueryParams({
|
|
56280
56405
|
doNotCoercePageSize,
|
|
56281
56406
|
currentParams,
|
|
56282
56407
|
entities: props.entities,
|
|
56408
|
+
// for local table
|
|
56409
|
+
urlConnected,
|
|
56283
56410
|
defaults,
|
|
56284
56411
|
schema: convertedSchema,
|
|
56285
56412
|
isInfinite,
|
|
56286
56413
|
isLocalCall,
|
|
56287
|
-
additionalFilter:
|
|
56414
|
+
additionalFilter: additionalFilterToUse,
|
|
56415
|
+
additionalOrFilter: additionalOrFilterToUse,
|
|
56288
56416
|
noOrderError: props.noOrderError,
|
|
56289
56417
|
isCodeModel: props.isCodeModel,
|
|
56290
56418
|
ownProps: props
|
|
@@ -56507,7 +56635,7 @@ const DataTable = /* @__PURE__ */ __name((_I) => {
|
|
|
56507
56635
|
}) : !val;
|
|
56508
56636
|
});
|
|
56509
56637
|
}
|
|
56510
|
-
if (noValsForField
|
|
56638
|
+
if (noValsForField) {
|
|
56511
56639
|
return __spreadProps(__spreadValues({}, field), {
|
|
56512
56640
|
isHidden: true,
|
|
56513
56641
|
isForcedHidden: true
|
|
@@ -71654,6 +71782,7 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71654
71782
|
var _a;
|
|
71655
71783
|
const {
|
|
71656
71784
|
additionalFilter,
|
|
71785
|
+
additionalOrFilter,
|
|
71657
71786
|
controlled_pageSize,
|
|
71658
71787
|
defaults: _defaults,
|
|
71659
71788
|
doNotCoercePageSize,
|
|
@@ -71761,21 +71890,28 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
|
|
|
71761
71890
|
[controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
|
|
71762
71891
|
);
|
|
71763
71892
|
const queryParams = React.useMemo(() => {
|
|
71893
|
+
const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
|
|
71894
|
+
const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
|
|
71764
71895
|
return getQueryParams({
|
|
71765
71896
|
doNotCoercePageSize,
|
|
71766
71897
|
currentParams,
|
|
71767
71898
|
entities,
|
|
71899
|
+
// for local table
|
|
71900
|
+
urlConnected,
|
|
71768
71901
|
defaults: defaultsToUse,
|
|
71769
71902
|
schema: convertedSchema,
|
|
71770
71903
|
isInfinite: isInfinite || isSimple && !withPaging,
|
|
71771
71904
|
isLocalCall,
|
|
71772
|
-
additionalFilter,
|
|
71905
|
+
additionalFilter: additionalFilterToUse,
|
|
71906
|
+
additionalOrFilter: additionalOrFilterToUse,
|
|
71773
71907
|
noOrderError,
|
|
71908
|
+
isCodeModel,
|
|
71774
71909
|
ownProps: passingProps
|
|
71775
71910
|
});
|
|
71776
71911
|
}, [
|
|
71777
71912
|
additionalFilter,
|
|
71778
71913
|
passingProps,
|
|
71914
|
+
additionalOrFilter,
|
|
71779
71915
|
doNotCoercePageSize,
|
|
71780
71916
|
currentParams,
|
|
71781
71917
|
entities,
|
|
@@ -77951,7 +78087,6 @@ exports.getTagProps = getTagProps;
|
|
|
77951
78087
|
exports.getTagsAndTagOptions = getTagsAndTagOptions;
|
|
77952
78088
|
exports.getTextFromEl = getTextFromEl;
|
|
77953
78089
|
exports.hotkeysById = hotkeysById;
|
|
77954
|
-
exports.initializeHasuraWhereAndFilter = initializeHasuraWhereAndFilter;
|
|
77955
78090
|
exports.inventoryIcon = inventoryIcon;
|
|
77956
78091
|
exports.isSafari = isSafari;
|
|
77957
78092
|
exports.keyboardIcon = keyboardIcon;
|