@teselagen/ove 0.7.28 → 0.7.29
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/index.cjs.js +1055 -996
- package/index.es.js +1055 -996
- package/index.umd.js +189036 -0
- package/ove.css +1 -1
- package/package.json +2 -6
- package/src/helperComponents/PropertiesDialog/TranslationProperties.js +1 -1
- package/AASliver.js +0 -187
- package/AddLaddersDialog.js +0 -82
- package/AdditionalCutsiteInfoDialog.js +0 -599
- package/AlignmentVisibilityTool.js +0 -105
- package/AnnotationContainerHolder.js +0 -20
- package/AnnotationPositioner.js +0 -27
- package/AutoAnnotate.js +0 -501
- package/AutoAnnotateBpMatchingDialog.js +0 -208
- package/Axis.js +0 -151
- package/AxisNumbers.js +0 -35
- package/Browser.js +0 -106
- package/Caret.js +0 -63
- package/Chromatogram.js +0 -293
- package/CircularDnaSequence.js +0 -73
- package/CircularZoomMinimap.js +0 -16
- package/ColorPicker.js +0 -30
- package/CommandHotkeyHandler.js +0 -44
- package/CreateAnnotationsPage.js +0 -98
- package/Cutsite.js +0 -18
- package/CutsiteProperties.js +0 -176
- package/CutsiteSelectionLayers.js +0 -47
- package/Cutsites.js +0 -271
- package/DeletionLayer.js +0 -28
- package/DropHandler.css +0 -21
- package/DropHandler.js +0 -64
- package/EditCaretPosition.js +0 -234
- package/EditTrackNameDialog.js +0 -30
- package/Feature.js +0 -83
- package/FeatureProperties.js +0 -6
- package/FillWindow.js +0 -47
- package/GenbankView.js +0 -74
- package/GeneralProperties.js +0 -117
- package/GenericAnnotationProperties.js +0 -406
- package/GlobalDialog.js +0 -73
- package/GlobalDialogUtils.js +0 -110
- package/GoToDialog.js +0 -25
- package/HorizontalPanelDragHandle.js +0 -35
- package/Keyboard.js +0 -85
- package/Labels.js +0 -327
- package/Ladder.css +0 -20
- package/Ladder.js +0 -303
- package/MeltingTemp.js +0 -85
- package/Menlo.ttf +0 -0
- package/Minimap.js +0 -515
- package/Mismatches.js +0 -134
- package/Monaco.ttf +0 -0
- package/MultipleSeqsDetectedOnImportDialog.js +0 -74
- package/Orf.js +0 -109
- package/OrfProperties.js +0 -117
- package/Orfs.js +0 -35
- package/PCRTool.js +0 -179
- package/PairwiseAlignmentView.js +0 -68
- package/Part.js +0 -34
- package/PartProperties.js +0 -9
- package/PassThrough.js +0 -3
- package/PerformantSelectionLayer.js +0 -32
- package/PinchHelper.js +0 -24
- package/PointedAnnotation.js +0 -347
- package/PositionAnnotationOnCircle.js +0 -26
- package/Primer.js +0 -41
- package/PrimerProperties.js +0 -19
- package/ReflexContainer.js +0 -802
- package/ReflexElement.js +0 -160
- package/ReflexEvents.js +0 -77
- package/ReflexSplitter.js +0 -205
- package/RenameSequenceDialog.js +0 -7
- package/RotateCircularViewSlider.js +0 -93
- package/SelectDialog.js +0 -150
- package/SequenceName.js +0 -15
- package/SimpleCircularOrLinearView.js +0 -381
- package/SimpleOligoPreview.js +0 -39
- package/SingleEnzymeCutsiteInfo.js +0 -139
- package/ToolbarItem.js +0 -192
- package/Translation.js +0 -198
- package/TranslationProperties.js +0 -149
- package/UncontrolledSliderWithPlusMinusBtns.css +0 -5
- package/UncontrolledSliderWithPlusMinusBtns.js +0 -134
- package/VeTopRightContainer.js +0 -12
- package/ZoomCircularViewSlider.js +0 -62
- package/ZoomLinearView.js +0 -47
- package/addAlignment.js +0 -6
- package/addMetaToActionCreators.js +0 -12
- package/addWrappedAddons.js +0 -20
- package/alignmentTool.js +0 -503
- package/alignments.js +0 -379
- package/annotationLabelVisibility.js +0 -2
- package/annotationSearchSelector.js +0 -24
- package/annotationTypes.js +0 -35
- package/annotationVisibility.js +0 -196
- package/annotationsToSupport.js +0 -104
- package/arrayToObjWithIds.js +0 -17
- package/arrayUtils.js +0 -19
- package/array_move.js +0 -10
- package/calculateTickMarkPositionsForGivenRange.js +0 -47
- package/caretPosition.js +0 -27
- package/cdsFeaturesSelector.js +0 -9
- package/charWidth.js +0 -22
- package/circular.js +0 -19
- package/circularSelector.js +0 -4
- package/clickAndDragUtils.js +0 -576
- package/coerceInitialValue.js +0 -7
- package/combineReducersDontIgnoreKeys.js +0 -12
- package/commandUtils.js +0 -20
- package/constants.js +0 -2
- package/copyOptions.js +0 -34
- package/createFragmentLines.js +0 -120
- package/createMergedDefaultStateReducer.js +0 -30
- package/createMetaAction.js +0 -12
- package/createSequenceInputPopup.js +0 -290
- package/createSequenceInputPopupStyle.css +0 -87
- package/createSimpleDialog.js +0 -89
- package/createYourOwnEnzyme.js +0 -39
- package/cutsiteLabelColorSelector.js +0 -6
- package/cutsiteTool.js +0 -88
- package/cutsitesByRangeSelector.js +0 -5
- package/cutsitesSelector.js +0 -61
- package/darkmode.css +0 -98
- package/defaultConfig.js +0 -150
- package/deletionLayers.js +0 -36
- package/description.js +0 -21
- package/digestTool.js +0 -34
- package/dnaToColor.js +0 -17
- package/downloadTool.js +0 -39
- package/draggableClassnames.js +0 -5
- package/drawAnnotations.js +0 -440
- package/drawDirectedPiePiece.js +0 -142
- package/editTool.js +0 -49
- package/editorSelector.js +0 -2
- package/editorUtils.js +0 -205
- package/estimateRowHeight.js +0 -184
- package/featureLengthsToHide.js +0 -27
- package/featureTool.js +0 -34
- package/features.js +0 -19
- package/featuresSelector.js +0 -8
- package/filteredCutsitesSelector.js +0 -136
- package/filteredFeaturesSelector.js +0 -32
- package/filteredPartsSelector.js +0 -57
- package/filteredPrimersSelector.js +0 -27
- package/filteredRestrictionEnzymesSelector.js +0 -1
- package/find.png +0 -0
- package/findTool.js +0 -79
- package/findToolConstants.js +0 -1
- package/frameTranslations.js +0 -52
- package/fullscreen.png +0 -0
- package/getAdditionalEnzymesSelector.js +0 -46
- package/getAngleForPositionMidpoint.js +0 -3
- package/getAnnotationClassnames.js +0 -12
- package/getAnnotationNameAndStartStopString.js +0 -61
- package/getBpsPerRow.js +0 -19
- package/getCutsiteLabelHeights.js +0 -56
- package/getGapMap.js +0 -12
- package/getGaps.js +0 -27
- package/getInternalLabel.js +0 -40
- package/getOveHotkeyDefs.js +0 -12
- package/getPairwiseOverviewLinearViewOptions.js +0 -38
- package/getRangeAnglesSpecial.js +0 -12
- package/getStructuredBases.js +0 -97
- package/getTrackFromEvent.js +0 -25
- package/getVisibleStartEnd.js +0 -7
- package/getXStartAndWidthFromNonCircularRange.js +0 -12
- package/getXStartAndWidthOfRangeWrtRow.js +0 -27
- package/getXStartAndWidthOfRowAnnotation.js +0 -19
- package/getYOffset.js +0 -15
- package/hoveredAnnotation.js +0 -24
- package/importTool.js +0 -27
- package/index.js +0 -71
- package/inlineFindTool.js +0 -38
- package/isElementInViewport.js +0 -29
- package/isEnzymeFilterAndSelector.js +0 -1
- package/isTargetWithinEl.js +0 -6
- package/labelLineIntensity.js +0 -25
- package/labelSize.js +0 -23
- package/ladderDefaults.js +0 -25
- package/lastSavedId.js +0 -20
- package/lineageLines.js +0 -11
- package/linear.png +0 -0
- package/makeStore.js +0 -34
- package/massageTickSpacing.js +0 -19
- package/materiallyAvailable.js +0 -19
- package/middleware.js +0 -112
- package/minimumOrfSize.js +0 -24
- package/minimumOrfSizeSelector.js +0 -2
- package/modalActions.js +0 -3
- package/moveCaret.js +0 -58
- package/name.js +0 -19
- package/normalizeAngle.js +0 -3
- package/normalizeAngleRange.js +0 -9
- package/oligoTool.js +0 -30
- package/onlyUpdateForKeysDeep.js +0 -31
- package/orfFrameToColorMap.js +0 -10
- package/orfTool.js +0 -136
- package/orfsSelector.js +0 -15
- package/panelsShown.js +0 -294
- package/partLengthsToHide.js +0 -23
- package/partOverhangs.js +0 -6
- package/partTagSearch.js +0 -69
- package/partTool.js +0 -45
- package/parts.js +0 -19
- package/partsSelector.js +0 -8
- package/pie.png +0 -0
- package/polarToSpecialCartesian.js +0 -7
- package/positionCutsites.js +0 -6
- package/prepareRowData.js +0 -64
- package/primerBases.js +0 -221
- package/primerLengthsToHide.js +0 -27
- package/primers.js +0 -19
- package/primersSelector.js +0 -8
- package/print.png +0 -0
- package/printTool.js +0 -31
- package/propertiesTool.js +0 -40
- package/proteinUtils.js +0 -3
- package/pureNoFunc.js +0 -18
- package/readOnly.js +0 -25
- package/redoTool.js +0 -30
- package/reflex-styles.css +0 -128
- package/reflex-styles.css.map +0 -9
- package/relaxLabelAngles.js +0 -157
- package/relaxLabels_DEPRECATED.js +0 -105
- package/replacementLayers.js +0 -36
- package/restrictionEnzymes.js +0 -52
- package/restrictionEnzymesSelector.js +0 -34
- package/rowviewContants.js +0 -3
- package/ruler.css +0 -89
- package/save.png +0 -0
- package/saveTool.js +0 -44
- package/searchLayersSelector.js +0 -71
- package/selectedAnnotations.js +0 -89
- package/selectedAnnotationsSelector.js +0 -1
- package/selectedCutsitesSelector.js +0 -21
- package/selectedPartTags.js +0 -21
- package/selectionLayer.js +0 -25
- package/sequence.js +0 -12
- package/sequenceDataHistory.js +0 -43
- package/sequenceDataSelector.js +0 -2
- package/sequenceLengthSelector.js +0 -5
- package/sequenceSelector.js +0 -4
- package/sharedActionCreators.js +0 -0
- package/shouldFlipText.js +0 -4
- package/shouldRerender.js +0 -27
- package/showFileDialog.js +0 -25
- package/showGCContent.js +0 -23
- package/show_cut_sites.png +0 -0
- package/show_features.png +0 -0
- package/show_orfs.png +0 -0
- package/show_primers.png +0 -0
- package/simpleDialog.css +0 -13
- package/specialCutsiteFilterOptions.js +0 -22
- package/style.css +0 -10
- package/tagsToBoldSelector.js +0 -2
- package/toggle_views.svg +0 -1
- package/toolBar.js +0 -23
- package/translationSearchMatchesSelector.js +0 -14
- package/translations.js +0 -20
- package/translationsRawSelector.js +0 -8
- package/translationsSelector.js +0 -137
- package/typeField.js +0 -24
- package/undoTool.js +0 -30
- package/updateEditor.js +0 -200
- package/updateLabelsForInViewFeatures.js +0 -55
- package/updateLabelsForInViewFeaturesCircView.js +0 -41
- package/updateTrackHelper.js +0 -58
- package/uppercaseSequenceMapFont.js +0 -25
- package/upsertDeleteActionGenerator.js +0 -31
- package/useAAColorType.js +0 -8
- package/useAdditionalOrfStartCodons.js +0 -24
- package/useAnnotationLimits.js +0 -42
- package/useChromatogramPrefs.js +0 -31
- package/useFormValue.js +0 -7
- package/useLadders.js +0 -6
- package/useMeltingTemp.js +0 -7
- package/useTmType.js +0 -10
- package/userDefinedHandlersAndOpts.js +0 -61
- package/utils.js +0 -37
- package/versionHistory.js +0 -26
- package/versionHistoryTool.js +0 -21
- package/viewSubmenu.js +0 -479
- package/visibilityTool.js +0 -39
- package/withHover.js +0 -113
- package/withRestrictionEnzymes.js +0 -15
package/index.cjs.js
CHANGED
|
@@ -5801,12 +5801,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
|
|
|
5801
5801
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
5802
5802
|
var root$4 = freeGlobal || freeSelf || Function("return this")();
|
|
5803
5803
|
var Symbol$1 = root$4.Symbol;
|
|
5804
|
-
var objectProto$
|
|
5805
|
-
var hasOwnProperty$
|
|
5806
|
-
var nativeObjectToString$2 = objectProto$
|
|
5804
|
+
var objectProto$k = Object.prototype;
|
|
5805
|
+
var hasOwnProperty$k = objectProto$k.hasOwnProperty;
|
|
5806
|
+
var nativeObjectToString$2 = objectProto$k.toString;
|
|
5807
5807
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
5808
5808
|
function getRawTag(value) {
|
|
5809
|
-
var isOwn = hasOwnProperty$
|
|
5809
|
+
var isOwn = hasOwnProperty$k.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
5810
5810
|
try {
|
|
5811
5811
|
value[symToStringTag$1] = void 0;
|
|
5812
5812
|
var unmasked = true;
|
|
@@ -5823,8 +5823,8 @@ function getRawTag(value) {
|
|
|
5823
5823
|
return result;
|
|
5824
5824
|
}
|
|
5825
5825
|
__name(getRawTag, "getRawTag");
|
|
5826
|
-
var objectProto$
|
|
5827
|
-
var nativeObjectToString$1 = objectProto$
|
|
5826
|
+
var objectProto$j = Object.prototype;
|
|
5827
|
+
var nativeObjectToString$1 = objectProto$j.toString;
|
|
5828
5828
|
function objectToString(value) {
|
|
5829
5829
|
return nativeObjectToString$1.call(value);
|
|
5830
5830
|
}
|
|
@@ -5971,11 +5971,11 @@ function toSource(func) {
|
|
|
5971
5971
|
__name(toSource, "toSource");
|
|
5972
5972
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
5973
5973
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
5974
|
-
var funcProto$1 = Function.prototype, objectProto$
|
|
5974
|
+
var funcProto$1 = Function.prototype, objectProto$i = Object.prototype;
|
|
5975
5975
|
var funcToString$1 = funcProto$1.toString;
|
|
5976
|
-
var hasOwnProperty$
|
|
5976
|
+
var hasOwnProperty$j = objectProto$i.hasOwnProperty;
|
|
5977
5977
|
var reIsNative = RegExp(
|
|
5978
|
-
"^" + funcToString$1.call(hasOwnProperty$
|
|
5978
|
+
"^" + funcToString$1.call(hasOwnProperty$j).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5979
5979
|
);
|
|
5980
5980
|
function baseIsNative(value) {
|
|
5981
5981
|
if (!isObject$2(value) || isMasked(value)) {
|
|
@@ -6148,11 +6148,11 @@ function eq$1(value, other) {
|
|
|
6148
6148
|
return value === other || value !== value && other !== other;
|
|
6149
6149
|
}
|
|
6150
6150
|
__name(eq$1, "eq$1");
|
|
6151
|
-
var objectProto$
|
|
6152
|
-
var hasOwnProperty$
|
|
6151
|
+
var objectProto$h = Object.prototype;
|
|
6152
|
+
var hasOwnProperty$i = objectProto$h.hasOwnProperty;
|
|
6153
6153
|
function assignValue(object3, key, value) {
|
|
6154
6154
|
var objValue = object3[key];
|
|
6155
|
-
if (!(hasOwnProperty$
|
|
6155
|
+
if (!(hasOwnProperty$i.call(object3, key) && eq$1(objValue, value)) || value === void 0 && !(key in object3)) {
|
|
6156
6156
|
baseAssignValue(object3, key, value);
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
@@ -6237,9 +6237,9 @@ function createAssigner(assigner) {
|
|
|
6237
6237
|
});
|
|
6238
6238
|
}
|
|
6239
6239
|
__name(createAssigner, "createAssigner");
|
|
6240
|
-
var objectProto$
|
|
6240
|
+
var objectProto$g = Object.prototype;
|
|
6241
6241
|
function isPrototype(value) {
|
|
6242
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
6242
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$g;
|
|
6243
6243
|
return value === proto;
|
|
6244
6244
|
}
|
|
6245
6245
|
__name(isPrototype, "isPrototype");
|
|
@@ -6256,13 +6256,13 @@ function baseIsArguments(value) {
|
|
|
6256
6256
|
return isObjectLike$1(value) && baseGetTag(value) == argsTag$3;
|
|
6257
6257
|
}
|
|
6258
6258
|
__name(baseIsArguments, "baseIsArguments");
|
|
6259
|
-
var objectProto$
|
|
6260
|
-
var hasOwnProperty$
|
|
6261
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
6259
|
+
var objectProto$f = Object.prototype;
|
|
6260
|
+
var hasOwnProperty$h = objectProto$f.hasOwnProperty;
|
|
6261
|
+
var propertyIsEnumerable$1 = objectProto$f.propertyIsEnumerable;
|
|
6262
6262
|
var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
|
|
6263
6263
|
return arguments;
|
|
6264
6264
|
}()) ? baseIsArguments : function(value) {
|
|
6265
|
-
return isObjectLike$1(value) && hasOwnProperty$
|
|
6265
|
+
return isObjectLike$1(value) && hasOwnProperty$h.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
6266
6266
|
};
|
|
6267
6267
|
function stubFalse() {
|
|
6268
6268
|
return false;
|
|
@@ -6271,8 +6271,8 @@ __name(stubFalse, "stubFalse");
|
|
|
6271
6271
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
6272
6272
|
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
6273
6273
|
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
6274
|
-
var Buffer$
|
|
6275
|
-
var nativeIsBuffer = Buffer$
|
|
6274
|
+
var Buffer$2 = moduleExports$2 ? root$4.Buffer : void 0;
|
|
6275
|
+
var nativeIsBuffer = Buffer$2 ? Buffer$2.isBuffer : void 0;
|
|
6276
6276
|
var isBuffer$1 = nativeIsBuffer || stubFalse;
|
|
6277
6277
|
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$4 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
6278
6278
|
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
@@ -6305,12 +6305,12 @@ var nodeUtil = function() {
|
|
|
6305
6305
|
}();
|
|
6306
6306
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6307
6307
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6308
|
-
var objectProto$
|
|
6309
|
-
var hasOwnProperty$
|
|
6308
|
+
var objectProto$e = Object.prototype;
|
|
6309
|
+
var hasOwnProperty$g = objectProto$e.hasOwnProperty;
|
|
6310
6310
|
function arrayLikeKeys(value, inherited) {
|
|
6311
6311
|
var isArr = isArray$2(value), isArg = !isArr && isArguments$2(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;
|
|
6312
6312
|
for (var key in value) {
|
|
6313
|
-
if ((inherited || hasOwnProperty$
|
|
6313
|
+
if ((inherited || hasOwnProperty$g.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6314
6314
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6315
6315
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6316
6316
|
isType2 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -6328,15 +6328,15 @@ function overArg(func, transform) {
|
|
|
6328
6328
|
}
|
|
6329
6329
|
__name(overArg, "overArg");
|
|
6330
6330
|
var nativeKeys = overArg(Object.keys, Object);
|
|
6331
|
-
var objectProto$
|
|
6332
|
-
var hasOwnProperty$
|
|
6331
|
+
var objectProto$d = Object.prototype;
|
|
6332
|
+
var hasOwnProperty$f = objectProto$d.hasOwnProperty;
|
|
6333
6333
|
function baseKeys(object3) {
|
|
6334
6334
|
if (!isPrototype(object3)) {
|
|
6335
6335
|
return nativeKeys(object3);
|
|
6336
6336
|
}
|
|
6337
6337
|
var result = [];
|
|
6338
6338
|
for (var key in Object(object3)) {
|
|
6339
|
-
if (hasOwnProperty$
|
|
6339
|
+
if (hasOwnProperty$f.call(object3, key) && key != "constructor") {
|
|
6340
6340
|
result.push(key);
|
|
6341
6341
|
}
|
|
6342
6342
|
}
|
|
@@ -6347,15 +6347,15 @@ function keys$1(object3) {
|
|
|
6347
6347
|
return isArrayLike(object3) ? arrayLikeKeys(object3) : baseKeys(object3);
|
|
6348
6348
|
}
|
|
6349
6349
|
__name(keys$1, "keys$1");
|
|
6350
|
-
var objectProto$
|
|
6351
|
-
var hasOwnProperty$
|
|
6350
|
+
var objectProto$c = Object.prototype;
|
|
6351
|
+
var hasOwnProperty$e = objectProto$c.hasOwnProperty;
|
|
6352
6352
|
var assign$2 = createAssigner(function(object3, source) {
|
|
6353
6353
|
if (isPrototype(source) || isArrayLike(source)) {
|
|
6354
6354
|
copyObject(source, keys$1(source), object3);
|
|
6355
6355
|
return;
|
|
6356
6356
|
}
|
|
6357
6357
|
for (var key in source) {
|
|
6358
|
-
if (hasOwnProperty$
|
|
6358
|
+
if (hasOwnProperty$e.call(source, key)) {
|
|
6359
6359
|
assignValue(object3, key, source[key]);
|
|
6360
6360
|
}
|
|
6361
6361
|
}
|
|
@@ -6370,15 +6370,15 @@ function nativeKeysIn(object3) {
|
|
|
6370
6370
|
return result;
|
|
6371
6371
|
}
|
|
6372
6372
|
__name(nativeKeysIn, "nativeKeysIn");
|
|
6373
|
-
var objectProto$
|
|
6374
|
-
var hasOwnProperty$
|
|
6373
|
+
var objectProto$b = Object.prototype;
|
|
6374
|
+
var hasOwnProperty$d = objectProto$b.hasOwnProperty;
|
|
6375
6375
|
function baseKeysIn(object3) {
|
|
6376
6376
|
if (!isObject$2(object3)) {
|
|
6377
6377
|
return nativeKeysIn(object3);
|
|
6378
6378
|
}
|
|
6379
6379
|
var isProto = isPrototype(object3), result = [];
|
|
6380
6380
|
for (var key in object3) {
|
|
6381
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
6381
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$d.call(object3, key)))) {
|
|
6382
6382
|
result.push(key);
|
|
6383
6383
|
}
|
|
6384
6384
|
}
|
|
@@ -6417,22 +6417,22 @@ function hashDelete(key) {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
__name(hashDelete, "hashDelete");
|
|
6419
6419
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
6420
|
-
var objectProto$
|
|
6421
|
-
var hasOwnProperty$
|
|
6420
|
+
var objectProto$a = Object.prototype;
|
|
6421
|
+
var hasOwnProperty$c = objectProto$a.hasOwnProperty;
|
|
6422
6422
|
function hashGet(key) {
|
|
6423
6423
|
var data = this.__data__;
|
|
6424
6424
|
if (nativeCreate) {
|
|
6425
6425
|
var result = data[key];
|
|
6426
6426
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
6427
6427
|
}
|
|
6428
|
-
return hasOwnProperty$
|
|
6428
|
+
return hasOwnProperty$c.call(data, key) ? data[key] : void 0;
|
|
6429
6429
|
}
|
|
6430
6430
|
__name(hashGet, "hashGet");
|
|
6431
|
-
var objectProto$
|
|
6432
|
-
var hasOwnProperty$
|
|
6431
|
+
var objectProto$9 = Object.prototype;
|
|
6432
|
+
var hasOwnProperty$b = objectProto$9.hasOwnProperty;
|
|
6433
6433
|
function hashHas(key) {
|
|
6434
6434
|
var data = this.__data__;
|
|
6435
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$
|
|
6435
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$b.call(data, key);
|
|
6436
6436
|
}
|
|
6437
6437
|
__name(hashHas, "hashHas");
|
|
6438
6438
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
@@ -6695,9 +6695,9 @@ function flatRest(func) {
|
|
|
6695
6695
|
__name(flatRest, "flatRest");
|
|
6696
6696
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
6697
6697
|
var objectTag$3 = "[object Object]";
|
|
6698
|
-
var funcProto = Function.prototype, objectProto$
|
|
6698
|
+
var funcProto = Function.prototype, objectProto$8 = Object.prototype;
|
|
6699
6699
|
var funcToString = funcProto.toString;
|
|
6700
|
-
var hasOwnProperty$
|
|
6700
|
+
var hasOwnProperty$a = objectProto$8.hasOwnProperty;
|
|
6701
6701
|
var objectCtorString = funcToString.call(Object);
|
|
6702
6702
|
function isPlainObject$2(value) {
|
|
6703
6703
|
if (!isObjectLike$1(value) || baseGetTag(value) != objectTag$3) {
|
|
@@ -6707,7 +6707,7 @@ function isPlainObject$2(value) {
|
|
|
6707
6707
|
if (proto === null) {
|
|
6708
6708
|
return true;
|
|
6709
6709
|
}
|
|
6710
|
-
var Ctor = hasOwnProperty$
|
|
6710
|
+
var Ctor = hasOwnProperty$a.call(proto, "constructor") && proto.constructor;
|
|
6711
6711
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
6712
6712
|
}
|
|
6713
6713
|
__name(isPlainObject$2, "isPlainObject$2");
|
|
@@ -7142,7 +7142,7 @@ __name(baseAssignIn, "baseAssignIn");
|
|
|
7142
7142
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
7143
7143
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
7144
7144
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
7145
|
-
var Buffer$
|
|
7145
|
+
var Buffer$1 = moduleExports ? root$4.Buffer : void 0, allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : void 0;
|
|
7146
7146
|
function cloneBuffer(buffer2, isDeep) {
|
|
7147
7147
|
if (isDeep) {
|
|
7148
7148
|
return buffer2.slice();
|
|
@@ -7167,8 +7167,8 @@ function stubArray() {
|
|
|
7167
7167
|
return [];
|
|
7168
7168
|
}
|
|
7169
7169
|
__name(stubArray, "stubArray");
|
|
7170
|
-
var objectProto$
|
|
7171
|
-
var propertyIsEnumerable = objectProto$
|
|
7170
|
+
var objectProto$7 = Object.prototype;
|
|
7171
|
+
var propertyIsEnumerable = objectProto$7.propertyIsEnumerable;
|
|
7172
7172
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
7173
7173
|
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object3) {
|
|
7174
7174
|
if (object3 == null) {
|
|
@@ -7236,11 +7236,11 @@ if (DataView$1 && getTag$1(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3
|
|
|
7236
7236
|
return result;
|
|
7237
7237
|
}, "getTag$1");
|
|
7238
7238
|
}
|
|
7239
|
-
var objectProto$
|
|
7240
|
-
var hasOwnProperty$
|
|
7239
|
+
var objectProto$6 = Object.prototype;
|
|
7240
|
+
var hasOwnProperty$9 = objectProto$6.hasOwnProperty;
|
|
7241
7241
|
function initCloneArray(array2) {
|
|
7242
7242
|
var length = array2.length, result = new array2.constructor(length);
|
|
7243
|
-
if (length && typeof array2[0] == "string" && hasOwnProperty$
|
|
7243
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty$9.call(array2, "index")) {
|
|
7244
7244
|
result.index = array2.index;
|
|
7245
7245
|
result.input = array2.input;
|
|
7246
7246
|
}
|
|
@@ -7554,8 +7554,8 @@ function equalByTag(object3, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
7554
7554
|
}
|
|
7555
7555
|
__name(equalByTag, "equalByTag");
|
|
7556
7556
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
7557
|
-
var objectProto$
|
|
7558
|
-
var hasOwnProperty$
|
|
7557
|
+
var objectProto$5 = Object.prototype;
|
|
7558
|
+
var hasOwnProperty$8 = objectProto$5.hasOwnProperty;
|
|
7559
7559
|
function equalObjects(object3, other, bitmask, customizer, equalFunc, stack) {
|
|
7560
7560
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object3), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
7561
7561
|
if (objLength != othLength && !isPartial) {
|
|
@@ -7564,7 +7564,7 @@ function equalObjects(object3, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7564
7564
|
var index2 = objLength;
|
|
7565
7565
|
while (index2--) {
|
|
7566
7566
|
var key = objProps[index2];
|
|
7567
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
7567
|
+
if (!(isPartial ? key in other : hasOwnProperty$8.call(other, key))) {
|
|
7568
7568
|
return false;
|
|
7569
7569
|
}
|
|
7570
7570
|
}
|
|
@@ -7602,8 +7602,8 @@ function equalObjects(object3, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7602
7602
|
__name(equalObjects, "equalObjects");
|
|
7603
7603
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
7604
7604
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
7605
|
-
var objectProto$
|
|
7606
|
-
var hasOwnProperty$
|
|
7605
|
+
var objectProto$4 = Object.prototype;
|
|
7606
|
+
var hasOwnProperty$7 = objectProto$4.hasOwnProperty;
|
|
7607
7607
|
function baseIsEqualDeep(object3, other, bitmask, customizer, equalFunc, stack) {
|
|
7608
7608
|
var objIsArr = isArray$2(object3), othIsArr = isArray$2(other), objTag = objIsArr ? arrayTag : getTag$1(object3), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
7609
7609
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
@@ -7621,7 +7621,7 @@ function baseIsEqualDeep(object3, other, bitmask, customizer, equalFunc, stack)
|
|
|
7621
7621
|
return objIsArr || isTypedArray(object3) ? equalArrays(object3, other, bitmask, customizer, equalFunc, stack) : equalByTag(object3, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
7622
7622
|
}
|
|
7623
7623
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
7624
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
7624
|
+
var objIsWrapped = objIsObj && hasOwnProperty$7.call(object3, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$7.call(other, "__wrapped__");
|
|
7625
7625
|
if (objIsWrapped || othIsWrapped) {
|
|
7626
7626
|
var objUnwrapped = objIsWrapped ? object3.value() : object3, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
7627
7627
|
stack || (stack = new Stack());
|
|
@@ -7833,10 +7833,10 @@ function createAggregator(setter, initializer) {
|
|
|
7833
7833
|
};
|
|
7834
7834
|
}
|
|
7835
7835
|
__name(createAggregator, "createAggregator");
|
|
7836
|
-
var objectProto$
|
|
7837
|
-
var hasOwnProperty$
|
|
7836
|
+
var objectProto$3 = Object.prototype;
|
|
7837
|
+
var hasOwnProperty$6 = objectProto$3.hasOwnProperty;
|
|
7838
7838
|
var countBy = createAggregator(function(result, value, key) {
|
|
7839
|
-
if (hasOwnProperty$
|
|
7839
|
+
if (hasOwnProperty$6.call(result, key)) {
|
|
7840
7840
|
++result[key];
|
|
7841
7841
|
} else {
|
|
7842
7842
|
baseAssignValue(result, key, 1);
|
|
@@ -8072,15 +8072,6 @@ var differenceBy = baseRest(function(array2, values3) {
|
|
|
8072
8072
|
}
|
|
8073
8073
|
return isArrayLikeObject(array2) ? baseDifference(array2, baseFlatten(values3, 1, isArrayLikeObject, true), baseIteratee(iteratee)) : [];
|
|
8074
8074
|
});
|
|
8075
|
-
function drop$2(array2, n2, guard) {
|
|
8076
|
-
var length = array2 == null ? 0 : array2.length;
|
|
8077
|
-
if (!length) {
|
|
8078
|
-
return [];
|
|
8079
|
-
}
|
|
8080
|
-
n2 = n2 === void 0 ? 1 : toInteger(n2);
|
|
8081
|
-
return baseSlice(array2, n2 < 0 ? 0 : n2, length);
|
|
8082
|
-
}
|
|
8083
|
-
__name(drop$2, "drop$2");
|
|
8084
8075
|
function castFunction(value) {
|
|
8085
8076
|
return typeof value == "function" ? value : identity$3;
|
|
8086
8077
|
}
|
|
@@ -8189,6 +8180,16 @@ function baseGt(value, other) {
|
|
|
8189
8180
|
return value > other;
|
|
8190
8181
|
}
|
|
8191
8182
|
__name(baseGt, "baseGt");
|
|
8183
|
+
var objectProto$2 = Object.prototype;
|
|
8184
|
+
var hasOwnProperty$5 = objectProto$2.hasOwnProperty;
|
|
8185
|
+
function baseHas(object3, key) {
|
|
8186
|
+
return object3 != null && hasOwnProperty$5.call(object3, key);
|
|
8187
|
+
}
|
|
8188
|
+
__name(baseHas, "baseHas");
|
|
8189
|
+
function has$3(object3, path2) {
|
|
8190
|
+
return object3 != null && hasPath(object3, path2, baseHas);
|
|
8191
|
+
}
|
|
8192
|
+
__name(has$3, "has$3");
|
|
8192
8193
|
var stringTag = "[object String]";
|
|
8193
8194
|
function isString$1(value) {
|
|
8194
8195
|
return typeof value == "string" || !isArray$2(value) && isObjectLike$1(value) && baseGetTag(value) == stringTag;
|
|
@@ -8322,15 +8323,15 @@ function isEqualWith(value, other, customizer) {
|
|
|
8322
8323
|
return result === void 0 ? baseIsEqual(value, other, void 0, customizer) : !!result;
|
|
8323
8324
|
}
|
|
8324
8325
|
__name(isEqualWith, "isEqualWith");
|
|
8325
|
-
function isInteger(value) {
|
|
8326
|
-
return typeof value == "number" && value == toInteger(value);
|
|
8327
|
-
}
|
|
8328
|
-
__name(isInteger, "isInteger");
|
|
8329
8326
|
var numberTag = "[object Number]";
|
|
8330
8327
|
function isNumber$2(value) {
|
|
8331
8328
|
return typeof value == "number" || isObjectLike$1(value) && baseGetTag(value) == numberTag;
|
|
8332
8329
|
}
|
|
8333
8330
|
__name(isNumber$2, "isNumber$2");
|
|
8331
|
+
function isNull(value) {
|
|
8332
|
+
return value === null;
|
|
8333
|
+
}
|
|
8334
|
+
__name(isNull, "isNull");
|
|
8334
8335
|
function isUndefined(value) {
|
|
8335
8336
|
return value === void 0;
|
|
8336
8337
|
}
|
|
@@ -19545,293 +19546,501 @@ function requireLib$8() {
|
|
|
19545
19546
|
__name(requireLib$8, "requireLib$8");
|
|
19546
19547
|
var libExports$3 = /* @__PURE__ */ requireLib$8();
|
|
19547
19548
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(libExports$3);
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
}
|
|
19593
|
-
|
|
19594
|
-
|
|
19595
|
-
if (S2(t3)) return t3.clone();
|
|
19596
|
-
var n3 = "object" == typeof e2 ? e2 : {};
|
|
19597
|
-
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
19598
|
-
}, "O"), b3 = v2;
|
|
19599
|
-
b3.l = w2, b3.i = S2, b3.w = function(t3, e2) {
|
|
19600
|
-
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
19601
|
-
};
|
|
19602
|
-
var _2 = function() {
|
|
19603
|
-
function M3(t3) {
|
|
19604
|
-
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
19549
|
+
function tableQueryParamsToHasuraClauses({
|
|
19550
|
+
page,
|
|
19551
|
+
pageSize,
|
|
19552
|
+
searchTerm,
|
|
19553
|
+
filters,
|
|
19554
|
+
order: order2,
|
|
19555
|
+
schema: schema2,
|
|
19556
|
+
// Add schema as a parameter
|
|
19557
|
+
additionalFilter
|
|
19558
|
+
}) {
|
|
19559
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema2);
|
|
19560
|
+
let where = {};
|
|
19561
|
+
const order_by = [];
|
|
19562
|
+
const limit = pageSize || 25;
|
|
19563
|
+
const offset4 = page && pageSize ? (page - 1) * pageSize : 0;
|
|
19564
|
+
if (searchTerm) {
|
|
19565
|
+
const searchTermFilters = [];
|
|
19566
|
+
const uniqueFieldsByPath = {};
|
|
19567
|
+
const searchTerms = searchTerm.split(",");
|
|
19568
|
+
schema2.fields.forEach((field) => {
|
|
19569
|
+
const { type: type2, path: path2, searchDisabled } = field;
|
|
19570
|
+
if (uniqueFieldsByPath[path2]) return;
|
|
19571
|
+
uniqueFieldsByPath[path2] = true;
|
|
19572
|
+
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
19573
|
+
searchTerms.forEach((term) => {
|
|
19574
|
+
const filterValue = term.trim();
|
|
19575
|
+
if (type2 === "string" || type2 === "lookup") {
|
|
19576
|
+
const o2 = set$2({}, path2, { _ilike: `%${filterValue}%` });
|
|
19577
|
+
searchTermFilters.push(o2);
|
|
19578
|
+
} else if (type2 === "boolean") {
|
|
19579
|
+
let regex;
|
|
19580
|
+
try {
|
|
19581
|
+
regex = new RegExp("^" + filterValue, "ig");
|
|
19582
|
+
} catch (error) {
|
|
19583
|
+
}
|
|
19584
|
+
if (regex) {
|
|
19585
|
+
if ("true".replace(regex, "") !== "true") {
|
|
19586
|
+
const o2 = set$2({}, path2, { _eq: true });
|
|
19587
|
+
searchTermFilters.push(o2);
|
|
19588
|
+
} else if ("false".replace(regex, "") !== "false") {
|
|
19589
|
+
const o2 = set$2({}, path2, { _eq: false });
|
|
19590
|
+
searchTermFilters.push(o2);
|
|
19591
|
+
}
|
|
19592
|
+
}
|
|
19593
|
+
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
19594
|
+
const o2 = set$2({}, path2, { _eq: parseFloat(filterValue) });
|
|
19595
|
+
searchTermFilters.push(o2);
|
|
19605
19596
|
}
|
|
19606
|
-
|
|
19607
|
-
|
|
19608
|
-
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
-
|
|
19617
|
-
|
|
19618
|
-
|
|
19597
|
+
});
|
|
19598
|
+
});
|
|
19599
|
+
if (searchTermFilters.length > 0) {
|
|
19600
|
+
if (Object.keys(where).length > 0) {
|
|
19601
|
+
where = { _and: [where, { _or: searchTermFilters }] };
|
|
19602
|
+
} else {
|
|
19603
|
+
where = { _or: searchTermFilters };
|
|
19604
|
+
}
|
|
19605
|
+
}
|
|
19606
|
+
}
|
|
19607
|
+
if (filters && filters.length > 0) {
|
|
19608
|
+
const filterClauses = filters.map((filter2) => {
|
|
19609
|
+
let { selectedFilter, filterOn, filterValue } = filter2;
|
|
19610
|
+
const fieldSchema = ccFields[filterOn] || {};
|
|
19611
|
+
const { path: path2, reference: reference2, type: type2, customColumnFilter } = fieldSchema;
|
|
19612
|
+
if (customColumnFilter) {
|
|
19613
|
+
return customColumnFilter(filterValue);
|
|
19614
|
+
}
|
|
19615
|
+
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
19616
|
+
if (stringFilterValue === false) {
|
|
19617
|
+
stringFilterValue = "false";
|
|
19618
|
+
} else {
|
|
19619
|
+
stringFilterValue = stringFilterValue || "";
|
|
19620
|
+
}
|
|
19621
|
+
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
19622
|
+
if (type2 === "number" || type2 === "integer") {
|
|
19623
|
+
filterValue = Array.isArray(filterValue) ? filterValue.map((val2) => Number(val2)) : Number(filterValue);
|
|
19624
|
+
}
|
|
19625
|
+
if (fieldSchema.normalizeFilter) {
|
|
19626
|
+
filterValue = fieldSchema.normalizeFilter(
|
|
19627
|
+
filterValue,
|
|
19628
|
+
selectedFilter,
|
|
19629
|
+
filterOn
|
|
19630
|
+
);
|
|
19631
|
+
}
|
|
19632
|
+
if (reference2) {
|
|
19633
|
+
filterOn = reference2.sourceField;
|
|
19634
|
+
} else {
|
|
19635
|
+
filterOn = path2 || filterOn;
|
|
19636
|
+
}
|
|
19637
|
+
switch (selectedFilter) {
|
|
19638
|
+
case "none":
|
|
19639
|
+
return {};
|
|
19640
|
+
case "startsWith":
|
|
19641
|
+
return { [filterOn]: { _ilike: `${filterValue}%` } };
|
|
19642
|
+
case "endsWith":
|
|
19643
|
+
return { [filterOn]: { _ilike: `%${filterValue}` } };
|
|
19644
|
+
case "contains":
|
|
19645
|
+
return { [filterOn]: { _ilike: `%${filterValue}%` } };
|
|
19646
|
+
case "notContains":
|
|
19647
|
+
return { [filterOn]: { _nilike: `%${filterValue}%` } };
|
|
19648
|
+
case "isExactly":
|
|
19649
|
+
return { [filterOn]: { _eq: filterValue } };
|
|
19650
|
+
case "isEmpty":
|
|
19651
|
+
if (filterOn.includes(".")) {
|
|
19652
|
+
return {
|
|
19653
|
+
_not: {
|
|
19654
|
+
[filterOn.split(".")[0]]: {}
|
|
19619
19655
|
}
|
|
19620
|
-
}
|
|
19621
|
-
return new Date(e2);
|
|
19622
|
-
}(t3), this.init();
|
|
19623
|
-
}, m3.init = function() {
|
|
19624
|
-
var t3 = this.$d;
|
|
19625
|
-
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();
|
|
19626
|
-
}, m3.$utils = function() {
|
|
19627
|
-
return b3;
|
|
19628
|
-
}, m3.isValid = function() {
|
|
19629
|
-
return !(this.$d.toString() === l2);
|
|
19630
|
-
}, m3.isSame = function(t3, e2) {
|
|
19631
|
-
var n3 = O2(t3);
|
|
19632
|
-
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
19633
|
-
}, m3.isAfter = function(t3, e2) {
|
|
19634
|
-
return O2(t3) < this.startOf(e2);
|
|
19635
|
-
}, m3.isBefore = function(t3, e2) {
|
|
19636
|
-
return this.endOf(e2) < O2(t3);
|
|
19637
|
-
}, m3.$g = function(t3, e2, n3) {
|
|
19638
|
-
return b3.u(t3) ? this[e2] : this.set(n3, t3);
|
|
19639
|
-
}, m3.unix = function() {
|
|
19640
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
19641
|
-
}, m3.valueOf = function() {
|
|
19642
|
-
return this.$d.getTime();
|
|
19643
|
-
}, m3.startOf = function(t3, e2) {
|
|
19644
|
-
var n3 = this, r3 = !!b3.u(e2) || e2, f3 = b3.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19645
|
-
var i2 = b3.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
19646
|
-
return r3 ? i2 : i2.endOf(a2);
|
|
19647
|
-
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
19648
|
-
return b3.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
19649
|
-
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
19650
|
-
switch (f3) {
|
|
19651
|
-
case h2:
|
|
19652
|
-
return r3 ? l3(1, 0) : l3(31, 11);
|
|
19653
|
-
case c2:
|
|
19654
|
-
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
19655
|
-
case o2:
|
|
19656
|
-
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
19657
|
-
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
19658
|
-
case a2:
|
|
19659
|
-
case d2:
|
|
19660
|
-
return $2(v3 + "Hours", 0);
|
|
19661
|
-
case u2:
|
|
19662
|
-
return $2(v3 + "Minutes", 1);
|
|
19663
|
-
case s2:
|
|
19664
|
-
return $2(v3 + "Seconds", 2);
|
|
19665
|
-
case i:
|
|
19666
|
-
return $2(v3 + "Milliseconds", 3);
|
|
19667
|
-
default:
|
|
19668
|
-
return this.clone();
|
|
19656
|
+
};
|
|
19669
19657
|
}
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
var y3 = this.clone().set(d2, 1);
|
|
19676
|
-
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
19677
|
-
} else l3 && this.$d[l3]($2);
|
|
19678
|
-
return this.init(), this;
|
|
19679
|
-
}, m3.set = function(t3, e2) {
|
|
19680
|
-
return this.clone().$set(t3, e2);
|
|
19681
|
-
}, m3.get = function(t3) {
|
|
19682
|
-
return this[b3.p(t3)]();
|
|
19683
|
-
}, m3.add = function(r3, f3) {
|
|
19684
|
-
var d3, l3 = this;
|
|
19685
|
-
r3 = Number(r3);
|
|
19686
|
-
var $2 = b3.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
19687
|
-
var e2 = O2(l3);
|
|
19688
|
-
return b3.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
19689
|
-
}, "y");
|
|
19690
|
-
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
19691
|
-
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
19692
|
-
if ($2 === a2) return y3(1);
|
|
19693
|
-
if ($2 === o2) return y3(7);
|
|
19694
|
-
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
19695
|
-
return b3.w(m4, this);
|
|
19696
|
-
}, m3.subtract = function(t3, e2) {
|
|
19697
|
-
return this.add(-1 * t3, e2);
|
|
19698
|
-
}, m3.format = function(t3) {
|
|
19699
|
-
var e2 = this, n3 = this.$locale();
|
|
19700
|
-
if (!this.isValid()) return n3.invalidDate || l2;
|
|
19701
|
-
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b3.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, i3, s4) {
|
|
19702
|
-
return t4 && (t4[n4] || t4(e2, r3)) || i3[n4].slice(0, s4);
|
|
19703
|
-
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
19704
|
-
return b3.s(s3 % 12 || 12, t4, "0");
|
|
19705
|
-
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
19706
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
19707
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
19658
|
+
return {
|
|
19659
|
+
_or: [
|
|
19660
|
+
{ [filterOn]: { _eq: "" } },
|
|
19661
|
+
{ [filterOn]: { _is_null: true } }
|
|
19662
|
+
]
|
|
19708
19663
|
};
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
|
|
19723
|
-
|
|
19724
|
-
|
|
19725
|
-
|
|
19726
|
-
|
|
19727
|
-
|
|
19728
|
-
|
|
19729
|
-
|
|
19730
|
-
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
case "HH":
|
|
19739
|
-
return b3.s(s3, 2, "0");
|
|
19740
|
-
case "h":
|
|
19741
|
-
return d3(1);
|
|
19742
|
-
case "hh":
|
|
19743
|
-
return d3(2);
|
|
19744
|
-
case "a":
|
|
19745
|
-
return $2(s3, u3, true);
|
|
19746
|
-
case "A":
|
|
19747
|
-
return $2(s3, u3, false);
|
|
19748
|
-
case "m":
|
|
19749
|
-
return String(u3);
|
|
19750
|
-
case "mm":
|
|
19751
|
-
return b3.s(u3, 2, "0");
|
|
19752
|
-
case "s":
|
|
19753
|
-
return String(e2.$s);
|
|
19754
|
-
case "ss":
|
|
19755
|
-
return b3.s(e2.$s, 2, "0");
|
|
19756
|
-
case "SSS":
|
|
19757
|
-
return b3.s(e2.$ms, 3, "0");
|
|
19758
|
-
case "Z":
|
|
19759
|
-
return i2;
|
|
19664
|
+
case "notEmpty":
|
|
19665
|
+
return {
|
|
19666
|
+
_and: [
|
|
19667
|
+
{ [filterOn]: { _neq: "" } },
|
|
19668
|
+
{ [filterOn]: { _is_null: false } }
|
|
19669
|
+
]
|
|
19670
|
+
};
|
|
19671
|
+
case "inList":
|
|
19672
|
+
return { [filterOn]: { _in: filterValue } };
|
|
19673
|
+
case "notInList":
|
|
19674
|
+
return { [filterOn]: { _nin: filterValue } };
|
|
19675
|
+
case "true":
|
|
19676
|
+
return { [filterOn]: { _eq: true } };
|
|
19677
|
+
case "false":
|
|
19678
|
+
return { [filterOn]: { _eq: false } };
|
|
19679
|
+
case "dateIs":
|
|
19680
|
+
return { [filterOn]: { _eq: filterValue } };
|
|
19681
|
+
case "notBetween":
|
|
19682
|
+
return {
|
|
19683
|
+
_or: [
|
|
19684
|
+
{
|
|
19685
|
+
[filterOn]: {
|
|
19686
|
+
_lt: new Date(arrayFilterValue[0])
|
|
19687
|
+
}
|
|
19688
|
+
},
|
|
19689
|
+
{
|
|
19690
|
+
[filterOn]: {
|
|
19691
|
+
_gt: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19692
|
+
}
|
|
19760
19693
|
}
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
}
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19694
|
+
]
|
|
19695
|
+
};
|
|
19696
|
+
case "isBetween":
|
|
19697
|
+
return {
|
|
19698
|
+
[filterOn]: {
|
|
19699
|
+
_gte: new Date(arrayFilterValue[0]),
|
|
19700
|
+
_lte: new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
19701
|
+
}
|
|
19702
|
+
};
|
|
19703
|
+
case "isBefore":
|
|
19704
|
+
return { [filterOn]: { _lt: new Date(filterValue) } };
|
|
19705
|
+
case "isAfter":
|
|
19706
|
+
return { [filterOn]: { _gt: new Date(filterValue) } };
|
|
19707
|
+
case "greaterThan":
|
|
19708
|
+
return { [filterOn]: { _gt: parseFloat(filterValue) } };
|
|
19709
|
+
case "lessThan":
|
|
19710
|
+
return { [filterOn]: { _lt: parseFloat(filterValue) } };
|
|
19711
|
+
case "inRange":
|
|
19712
|
+
return {
|
|
19713
|
+
[filterOn]: {
|
|
19714
|
+
_gte: parseFloat(arrayFilterValue[0]),
|
|
19715
|
+
_lte: parseFloat(arrayFilterValue[1])
|
|
19716
|
+
}
|
|
19717
|
+
};
|
|
19718
|
+
case "outsideRange":
|
|
19719
|
+
return {
|
|
19720
|
+
_or: [
|
|
19721
|
+
{
|
|
19722
|
+
[filterOn]: {
|
|
19723
|
+
_lt: parseFloat(arrayFilterValue[0])
|
|
19724
|
+
}
|
|
19725
|
+
},
|
|
19726
|
+
{
|
|
19727
|
+
[filterOn]: {
|
|
19728
|
+
_gt: parseFloat(arrayFilterValue[1])
|
|
19729
|
+
}
|
|
19730
|
+
}
|
|
19731
|
+
]
|
|
19732
|
+
};
|
|
19733
|
+
case "equalTo":
|
|
19734
|
+
return {
|
|
19735
|
+
[filterOn]: {
|
|
19736
|
+
_eq: type2 === "number" || type2 === "integer" ? parseFloat(filterValue) : filterValue
|
|
19737
|
+
}
|
|
19738
|
+
};
|
|
19739
|
+
case "regex":
|
|
19740
|
+
return { [filterOn]: { _regex: filterValue } };
|
|
19741
|
+
default:
|
|
19742
|
+
console.warn(`Unsupported filter type: ${selectedFilter}`);
|
|
19743
|
+
return {};
|
|
19744
|
+
}
|
|
19745
|
+
});
|
|
19746
|
+
if (filterClauses.length > 0) {
|
|
19747
|
+
if (Object.keys(where).length > 0) {
|
|
19748
|
+
where = { _and: [where, ...filterClauses] };
|
|
19749
|
+
} else {
|
|
19750
|
+
where = { _and: filterClauses };
|
|
19751
|
+
}
|
|
19752
|
+
}
|
|
19753
|
+
}
|
|
19754
|
+
if (order2 && order2.length > 0) {
|
|
19755
|
+
order2.forEach((item) => {
|
|
19756
|
+
const field = item.startsWith("-") ? item.substring(1) : item;
|
|
19757
|
+
const direction = item.startsWith("-") ? "desc" : "asc";
|
|
19758
|
+
order_by.push({ [field]: direction });
|
|
19759
|
+
});
|
|
19760
|
+
}
|
|
19761
|
+
if (additionalFilter) {
|
|
19762
|
+
where = { _and: [where, additionalFilter] };
|
|
19763
|
+
}
|
|
19764
|
+
return { where, order_by, limit, offset: offset4 };
|
|
19765
|
+
}
|
|
19766
|
+
__name(tableQueryParamsToHasuraClauses, "tableQueryParamsToHasuraClauses");
|
|
19767
|
+
function getFieldsMappedByCCDisplayName(schema2) {
|
|
19768
|
+
if (!schema2 || !schema2.fields) return {};
|
|
19769
|
+
return schema2.fields.reduce((acc, field) => {
|
|
19770
|
+
const ccDisplayName = getCCDisplayName(field);
|
|
19771
|
+
acc[ccDisplayName] = field;
|
|
19772
|
+
return acc;
|
|
19773
|
+
}, {});
|
|
19774
|
+
}
|
|
19775
|
+
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19776
|
+
function getCCDisplayName(field) {
|
|
19777
|
+
return camelCase(
|
|
19778
|
+
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19779
|
+
);
|
|
19780
|
+
}
|
|
19781
|
+
__name(getCCDisplayName, "getCCDisplayName");
|
|
19782
|
+
function filterLocalEntitiesToHasura(records, { where, order_by, limit, offset: offset4, isInfinite } = {}) {
|
|
19783
|
+
let filteredRecords = [...records];
|
|
19784
|
+
if (where) {
|
|
19785
|
+
filteredRecords = applyWhereClause(filteredRecords, where);
|
|
19786
|
+
}
|
|
19787
|
+
if (order_by) {
|
|
19788
|
+
filteredRecords = applyOrderBy(filteredRecords, order_by);
|
|
19789
|
+
}
|
|
19790
|
+
filteredRecords = restoreEntitiesFromLocalFilter(filteredRecords);
|
|
19791
|
+
const allFilteredRecords = [...filteredRecords];
|
|
19792
|
+
if (!isInfinite && offset4 !== void 0) {
|
|
19793
|
+
filteredRecords = filteredRecords.slice(offset4);
|
|
19794
|
+
}
|
|
19795
|
+
if (!isInfinite && limit !== void 0) {
|
|
19796
|
+
filteredRecords = filteredRecords.slice(0, limit);
|
|
19797
|
+
}
|
|
19798
|
+
return {
|
|
19799
|
+
entities: filteredRecords,
|
|
19800
|
+
entitiesAcrossPages: allFilteredRecords,
|
|
19801
|
+
entityCount: allFilteredRecords.length
|
|
19802
|
+
};
|
|
19803
|
+
}
|
|
19804
|
+
__name(filterLocalEntitiesToHasura, "filterLocalEntitiesToHasura");
|
|
19805
|
+
function applyWhereClause(records, where) {
|
|
19806
|
+
function applyFilter(record, filter2) {
|
|
19807
|
+
if (isEmpty$1(filter2)) {
|
|
19808
|
+
return true;
|
|
19809
|
+
}
|
|
19810
|
+
for (const key in filter2) {
|
|
19811
|
+
if (key === "_and") {
|
|
19812
|
+
if (isEmpty$1(filter2[key])) {
|
|
19813
|
+
continue;
|
|
19814
|
+
}
|
|
19815
|
+
if (!every(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19816
|
+
return false;
|
|
19817
|
+
}
|
|
19818
|
+
} else if (key === "_or") {
|
|
19819
|
+
if (isEmpty$1(filter2[key])) {
|
|
19820
|
+
continue;
|
|
19821
|
+
}
|
|
19822
|
+
if (!some(filter2[key], (subFilter) => applyFilter(record, subFilter))) {
|
|
19823
|
+
return false;
|
|
19824
|
+
}
|
|
19825
|
+
} else if (key === "_not") {
|
|
19826
|
+
if (applyFilter(record, filter2[key])) {
|
|
19827
|
+
return false;
|
|
19828
|
+
}
|
|
19829
|
+
} else {
|
|
19830
|
+
const value = get$4(record, key);
|
|
19831
|
+
const conditions = filter2[key];
|
|
19832
|
+
if (isObject$2(value) && isObject$2(conditions) && !hasOperator(conditions)) {
|
|
19833
|
+
return applyFilter(value, conditions);
|
|
19834
|
+
}
|
|
19835
|
+
for (const operator in conditions) {
|
|
19836
|
+
const conditionValue = conditions[operator];
|
|
19837
|
+
if (operator === "_gt" && conditions._lt) {
|
|
19838
|
+
if (!(value > conditionValue && value < conditions._lt))
|
|
19839
|
+
return false;
|
|
19840
|
+
continue;
|
|
19841
|
+
}
|
|
19842
|
+
if (operator === "_gte" && conditions._lte) {
|
|
19843
|
+
if (!(value >= conditionValue && value <= conditions._lte))
|
|
19844
|
+
return false;
|
|
19845
|
+
continue;
|
|
19846
|
+
}
|
|
19847
|
+
switch (operator) {
|
|
19848
|
+
case "_eq":
|
|
19849
|
+
if (!isEqual$3(value, conditionValue)) return false;
|
|
19773
19850
|
break;
|
|
19774
|
-
case
|
|
19775
|
-
$
|
|
19851
|
+
case "_neq":
|
|
19852
|
+
if (isEqual$3(value, conditionValue)) return false;
|
|
19776
19853
|
break;
|
|
19777
|
-
case
|
|
19778
|
-
|
|
19854
|
+
case "_gt":
|
|
19855
|
+
if (!(value > conditionValue)) return false;
|
|
19779
19856
|
break;
|
|
19780
|
-
case
|
|
19781
|
-
|
|
19857
|
+
case "_gte":
|
|
19858
|
+
if (!(value >= conditionValue)) return false;
|
|
19782
19859
|
break;
|
|
19783
|
-
case
|
|
19784
|
-
|
|
19860
|
+
case "_lt":
|
|
19861
|
+
if (!(value < conditionValue)) return false;
|
|
19785
19862
|
break;
|
|
19786
|
-
case
|
|
19787
|
-
|
|
19863
|
+
case "_lte":
|
|
19864
|
+
if (!(value <= conditionValue)) return false;
|
|
19788
19865
|
break;
|
|
19789
|
-
case
|
|
19790
|
-
$
|
|
19866
|
+
case "_like":
|
|
19867
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19868
|
+
return false;
|
|
19791
19869
|
break;
|
|
19792
|
-
case
|
|
19793
|
-
$
|
|
19870
|
+
case "_ilike":
|
|
19871
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19872
|
+
return false;
|
|
19873
|
+
break;
|
|
19874
|
+
case "_nlike":
|
|
19875
|
+
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19876
|
+
return false;
|
|
19877
|
+
break;
|
|
19878
|
+
case "_nilike":
|
|
19879
|
+
if (!isString$1(value) || new RegExp(conditionValue.replace(/%/g, ".*"), "i").test(value))
|
|
19880
|
+
return false;
|
|
19881
|
+
break;
|
|
19882
|
+
case "_starts_with":
|
|
19883
|
+
if (!isString$1(value) || !value.startsWith(conditionValue))
|
|
19884
|
+
return false;
|
|
19885
|
+
break;
|
|
19886
|
+
case "_ends_with":
|
|
19887
|
+
if (!isString$1(value) || !value.endsWith(conditionValue))
|
|
19888
|
+
return false;
|
|
19889
|
+
break;
|
|
19890
|
+
case "_is_null":
|
|
19891
|
+
if (conditionValue && !isNull(value) || !conditionValue && isNull(value))
|
|
19892
|
+
return false;
|
|
19893
|
+
break;
|
|
19894
|
+
case "_contains":
|
|
19895
|
+
if (!isArray$2(value) || !every(conditionValue, (item) => includes(value, item)))
|
|
19896
|
+
return false;
|
|
19897
|
+
break;
|
|
19898
|
+
case "_contained_in":
|
|
19899
|
+
if (!isArray$2(value) || !every(value, (item) => includes(conditionValue, item)))
|
|
19900
|
+
return false;
|
|
19901
|
+
break;
|
|
19902
|
+
case "_has_key":
|
|
19903
|
+
if (!isObject$2(value) || !has$3(value, conditionValue)) return false;
|
|
19904
|
+
break;
|
|
19905
|
+
case "_has_keys_any":
|
|
19906
|
+
if (!isObject$2(value) || !some(conditionValue, (item) => has$3(value, item)))
|
|
19907
|
+
return false;
|
|
19908
|
+
break;
|
|
19909
|
+
case "_has_keys_all":
|
|
19910
|
+
if (!isObject$2(value) || !every(conditionValue, (item) => has$3(value, item)))
|
|
19911
|
+
return false;
|
|
19912
|
+
break;
|
|
19913
|
+
case "_similar":
|
|
19914
|
+
if (!isString$1(value) || !new RegExp(conditionValue.replace(/%/g, ".*")).test(value))
|
|
19915
|
+
return false;
|
|
19794
19916
|
break;
|
|
19795
19917
|
default:
|
|
19796
|
-
|
|
19918
|
+
if (operator.startsWith("_")) {
|
|
19919
|
+
console.warn(`Unsupported operator: ${operator}`);
|
|
19920
|
+
return false;
|
|
19921
|
+
} else {
|
|
19922
|
+
console.warn(`Unsupported operator: ${operator}`);
|
|
19923
|
+
return false;
|
|
19924
|
+
}
|
|
19797
19925
|
}
|
|
19798
|
-
|
|
19799
|
-
|
|
19800
|
-
|
|
19801
|
-
|
|
19802
|
-
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
-
|
|
19806
|
-
|
|
19807
|
-
|
|
19808
|
-
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19812
|
-
|
|
19813
|
-
|
|
19814
|
-
|
|
19815
|
-
|
|
19816
|
-
|
|
19817
|
-
|
|
19818
|
-
|
|
19819
|
-
|
|
19820
|
-
|
|
19821
|
-
|
|
19822
|
-
|
|
19823
|
-
|
|
19824
|
-
|
|
19825
|
-
|
|
19826
|
-
|
|
19827
|
-
|
|
19926
|
+
}
|
|
19927
|
+
}
|
|
19928
|
+
}
|
|
19929
|
+
return true;
|
|
19930
|
+
}
|
|
19931
|
+
__name(applyFilter, "applyFilter");
|
|
19932
|
+
function hasOperator(obj) {
|
|
19933
|
+
return Object.keys(obj).some((key) => key.startsWith("_"));
|
|
19934
|
+
}
|
|
19935
|
+
__name(hasOperator, "hasOperator");
|
|
19936
|
+
return records.filter((record) => applyFilter(record, where));
|
|
19937
|
+
}
|
|
19938
|
+
__name(applyWhereClause, "applyWhereClause");
|
|
19939
|
+
function applyOrderBy(records, _order_by) {
|
|
19940
|
+
const order_by = isArray$2(_order_by) ? _order_by : isEmpty$1(_order_by) ? [] : [_order_by];
|
|
19941
|
+
if (order_by.length > 0) {
|
|
19942
|
+
const orderFuncs = [];
|
|
19943
|
+
const ascOrDescArray = [];
|
|
19944
|
+
order_by.forEach(
|
|
19945
|
+
({ path: path2, direction, type: type2, sortFn, getValueToFilterOn, ownProps }) => {
|
|
19946
|
+
direction = direction || "desc";
|
|
19947
|
+
if (sortFn) {
|
|
19948
|
+
const sortFnArray = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19949
|
+
sortFnArray.forEach((fn4) => {
|
|
19950
|
+
const getter = typeof fn4 === "function" ? fn4 : (r2) => get$4(r2, fn4);
|
|
19951
|
+
orderFuncs.push((r2) => {
|
|
19952
|
+
const val2 = getter(r2);
|
|
19953
|
+
return val2 !== null && val2 !== void 0 ? 1 : 0;
|
|
19954
|
+
});
|
|
19955
|
+
ascOrDescArray.push("desc");
|
|
19956
|
+
orderFuncs.push(getter);
|
|
19957
|
+
ascOrDescArray.push(direction);
|
|
19958
|
+
});
|
|
19959
|
+
} else if (getValueToFilterOn) {
|
|
19960
|
+
orderFuncs.push((r2) => {
|
|
19961
|
+
const val2 = getValueToFilterOn(r2, ownProps);
|
|
19962
|
+
return val2 !== null && val2 !== void 0 ? 1 : 0;
|
|
19963
|
+
});
|
|
19964
|
+
ascOrDescArray.push("desc");
|
|
19965
|
+
orderFuncs.push((r2) => getValueToFilterOn(r2, ownProps));
|
|
19966
|
+
ascOrDescArray.push(direction);
|
|
19967
|
+
} else if (type2 === "timestamp") {
|
|
19968
|
+
orderFuncs.push((r2) => {
|
|
19969
|
+
const val2 = get$4(r2, path2);
|
|
19970
|
+
return val2 ? 1 : 0;
|
|
19971
|
+
});
|
|
19972
|
+
ascOrDescArray.push("desc");
|
|
19973
|
+
orderFuncs.push((r2) => {
|
|
19974
|
+
const val2 = get$4(r2, path2);
|
|
19975
|
+
return val2 ? new Date(val2).getTime() : -Infinity;
|
|
19976
|
+
});
|
|
19977
|
+
ascOrDescArray.push(direction);
|
|
19978
|
+
} else if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19979
|
+
orderFuncs.push((r2) => {
|
|
19980
|
+
const val2 = get$4(r2, path2);
|
|
19981
|
+
return val2 !== null && val2 !== void 0 ? 1 : 0;
|
|
19982
|
+
});
|
|
19983
|
+
ascOrDescArray.push("desc");
|
|
19984
|
+
orderFuncs.push((o2) => {
|
|
19985
|
+
const val2 = get$4(o2, path2);
|
|
19986
|
+
if (val2 === null || val2 === void 0) return -Infinity;
|
|
19987
|
+
return parseInt(val2, 10) || 0;
|
|
19988
|
+
});
|
|
19989
|
+
ascOrDescArray.push(direction);
|
|
19990
|
+
} else {
|
|
19991
|
+
orderFuncs.push((r2) => {
|
|
19992
|
+
const val2 = get$4(r2, path2);
|
|
19993
|
+
return val2 !== null && val2 !== void 0 ? 1 : 0;
|
|
19994
|
+
});
|
|
19995
|
+
ascOrDescArray.push("desc");
|
|
19996
|
+
orderFuncs.push((r2) => {
|
|
19997
|
+
const val2 = get$4(r2, path2);
|
|
19998
|
+
if (val2 === null || val2 === void 0) return -Infinity;
|
|
19999
|
+
if (isString$1(val2)) {
|
|
20000
|
+
return val2.toLowerCase().replace(
|
|
20001
|
+
/(\d+)/g,
|
|
20002
|
+
(num) => (
|
|
20003
|
+
// Pad numbers with leading zeros for proper natural sort
|
|
20004
|
+
num.padStart(10, "0")
|
|
20005
|
+
)
|
|
20006
|
+
);
|
|
20007
|
+
}
|
|
20008
|
+
return val2;
|
|
20009
|
+
});
|
|
20010
|
+
ascOrDescArray.push(direction);
|
|
20011
|
+
}
|
|
20012
|
+
}
|
|
20013
|
+
);
|
|
20014
|
+
records = orderBy$1(records, orderFuncs, ascOrDescArray);
|
|
20015
|
+
}
|
|
20016
|
+
return records;
|
|
20017
|
+
}
|
|
20018
|
+
__name(applyOrderBy, "applyOrderBy");
|
|
20019
|
+
function restoreEntitiesFromLocalFilter(ents) {
|
|
20020
|
+
return ents.map((entity) => {
|
|
20021
|
+
forEach$1(entity, (val2, key) => {
|
|
20022
|
+
var _a2;
|
|
20023
|
+
if ((_a2 = key.startsWith) == null ? void 0 : _a2.call(key, "___original___")) {
|
|
20024
|
+
entity[key.slice("___original___".length)] = val2;
|
|
20025
|
+
delete entity[key];
|
|
20026
|
+
}
|
|
19828
20027
|
});
|
|
19829
|
-
|
|
19830
|
-
|
|
20028
|
+
return entity;
|
|
20029
|
+
});
|
|
19831
20030
|
}
|
|
19832
|
-
__name(
|
|
19833
|
-
|
|
19834
|
-
|
|
20031
|
+
__name(restoreEntitiesFromLocalFilter, "restoreEntitiesFromLocalFilter");
|
|
20032
|
+
function initializeHasuraWhereAndFilter(additionalFilter, where = {}, currentParams) {
|
|
20033
|
+
where._and = where._and || [];
|
|
20034
|
+
where._or = where._or || [];
|
|
20035
|
+
if (typeof additionalFilter === "function") {
|
|
20036
|
+
const newWhere = additionalFilter(where, currentParams);
|
|
20037
|
+
if (newWhere) {
|
|
20038
|
+
Object.assign(where, newWhere);
|
|
20039
|
+
}
|
|
20040
|
+
} else if (typeof additionalFilter === "object")
|
|
20041
|
+
where._and.push(additionalFilter);
|
|
20042
|
+
}
|
|
20043
|
+
__name(initializeHasuraWhereAndFilter, "initializeHasuraWhereAndFilter");
|
|
19835
20044
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
19836
20045
|
function safeStringify(val2) {
|
|
19837
20046
|
if (val2 !== null && typeof val2 === "object") {
|
|
@@ -19848,325 +20057,6 @@ function safeParse(val2) {
|
|
|
19848
20057
|
}
|
|
19849
20058
|
}
|
|
19850
20059
|
__name(safeParse, "safeParse");
|
|
19851
|
-
function getCCDisplayName(field) {
|
|
19852
|
-
return camelCase(
|
|
19853
|
-
typeof field.displayName === "string" ? field.displayName : field.path
|
|
19854
|
-
);
|
|
19855
|
-
}
|
|
19856
|
-
__name(getCCDisplayName, "getCCDisplayName");
|
|
19857
|
-
function getFieldsMappedByCCDisplayName(schema2) {
|
|
19858
|
-
return schema2.fields.reduce((acc, field) => {
|
|
19859
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
19860
|
-
acc[ccDisplayName] = field;
|
|
19861
|
-
return acc;
|
|
19862
|
-
}, {});
|
|
19863
|
-
}
|
|
19864
|
-
__name(getFieldsMappedByCCDisplayName, "getFieldsMappedByCCDisplayName");
|
|
19865
|
-
function orderEntitiesLocal(orderArray, entities, schema2, ownProps) {
|
|
19866
|
-
if (orderArray == null ? void 0 : orderArray.length) {
|
|
19867
|
-
const orderFuncs = [];
|
|
19868
|
-
const ascOrDescArray = [];
|
|
19869
|
-
orderArray.forEach((order2) => {
|
|
19870
|
-
const ccDisplayName = order2.replace(/^-/gi, "");
|
|
19871
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema2);
|
|
19872
|
-
const field = ccFields[ccDisplayName];
|
|
19873
|
-
if (!field) {
|
|
19874
|
-
throw new Error(
|
|
19875
|
-
"Ruh roh, there should have been a column to sort on for " + order2 + " but none was found in " + schema2.fields
|
|
19876
|
-
);
|
|
19877
|
-
}
|
|
19878
|
-
const { path: path2, getValueToFilterOn, sortFn } = field;
|
|
19879
|
-
if (field.type === "timestamp") {
|
|
19880
|
-
ascOrDescArray.push("desc");
|
|
19881
|
-
}
|
|
19882
|
-
ascOrDescArray.push(ccDisplayName === order2 ? "asc" : "desc");
|
|
19883
|
-
if (field.type === "timestamp") {
|
|
19884
|
-
orderFuncs.push((r2) => {
|
|
19885
|
-
const val2 = get$4(r2, path2);
|
|
19886
|
-
return !!val2;
|
|
19887
|
-
});
|
|
19888
|
-
}
|
|
19889
|
-
if (path2 && endsWith$1(path2.toLowerCase(), "id")) {
|
|
19890
|
-
orderFuncs.push((o2) => {
|
|
19891
|
-
return parseInt(get$4(o2, path2), 10);
|
|
19892
|
-
});
|
|
19893
|
-
} else if (sortFn) {
|
|
19894
|
-
const toOrder = Array.isArray(sortFn) ? sortFn : [sortFn];
|
|
19895
|
-
orderFuncs.push(...toOrder);
|
|
19896
|
-
} else if (getValueToFilterOn) {
|
|
19897
|
-
orderFuncs.push((o2) => {
|
|
19898
|
-
return getValueToFilterOn(o2, ownProps);
|
|
19899
|
-
});
|
|
19900
|
-
} else {
|
|
19901
|
-
orderFuncs.push((r2) => {
|
|
19902
|
-
const val2 = get$4(r2, path2);
|
|
19903
|
-
return val2 && val2.toLowerCase ? val2.toLowerCase() : val2;
|
|
19904
|
-
});
|
|
19905
|
-
}
|
|
19906
|
-
});
|
|
19907
|
-
entities = orderBy$1(entities, orderFuncs, ascOrDescArray);
|
|
19908
|
-
}
|
|
19909
|
-
return entities;
|
|
19910
|
-
}
|
|
19911
|
-
__name(orderEntitiesLocal, "orderEntitiesLocal");
|
|
19912
|
-
function getAndAndOrFilters(allFilters) {
|
|
19913
|
-
const orFilters = [];
|
|
19914
|
-
const andFilters = [];
|
|
19915
|
-
const otherOrFilters = [];
|
|
19916
|
-
allFilters.forEach((filter2) => {
|
|
19917
|
-
if (filter2.isOrFilter && typeof filter2.filterValue === "string" && filter2.filterValue.includes(",")) {
|
|
19918
|
-
const allFilterValues = filter2.filterValue.split(",");
|
|
19919
|
-
allFilterValues.forEach((filterValue, i) => {
|
|
19920
|
-
filterValue = filterValue.trim();
|
|
19921
|
-
if (!filterValue) return;
|
|
19922
|
-
const newFilter = __spreadProps(__spreadValues({}, filter2), {
|
|
19923
|
-
filterValue
|
|
19924
|
-
});
|
|
19925
|
-
if (i === 0) {
|
|
19926
|
-
orFilters.push(newFilter);
|
|
19927
|
-
} else {
|
|
19928
|
-
const iMinus = i - 1;
|
|
19929
|
-
if (!otherOrFilters[iMinus]) otherOrFilters[iMinus] = [];
|
|
19930
|
-
otherOrFilters[iMinus].push(newFilter);
|
|
19931
|
-
}
|
|
19932
|
-
});
|
|
19933
|
-
} else if (filter2.isOrFilter) {
|
|
19934
|
-
orFilters.push(filter2);
|
|
19935
|
-
} else {
|
|
19936
|
-
andFilters.push(filter2);
|
|
19937
|
-
}
|
|
19938
|
-
});
|
|
19939
|
-
return {
|
|
19940
|
-
orFilters,
|
|
19941
|
-
andFilters,
|
|
19942
|
-
otherOrFilters
|
|
19943
|
-
};
|
|
19944
|
-
}
|
|
19945
|
-
__name(getAndAndOrFilters, "getAndAndOrFilters");
|
|
19946
|
-
function filterEntitiesLocal(filters = [], searchTerm, entities, schema2, ownProps) {
|
|
19947
|
-
const allFilters = getAllFilters(filters, searchTerm, schema2);
|
|
19948
|
-
if (allFilters.length) {
|
|
19949
|
-
const ccFields = getFieldsMappedByCCDisplayName(schema2);
|
|
19950
|
-
const { andFilters, orFilters, otherOrFilters } = getAndAndOrFilters(allFilters);
|
|
19951
|
-
andFilters.forEach((filter2) => {
|
|
19952
|
-
entities = getEntitiesForGivenFilter(
|
|
19953
|
-
entities,
|
|
19954
|
-
filter2,
|
|
19955
|
-
ccFields,
|
|
19956
|
-
ownProps
|
|
19957
|
-
);
|
|
19958
|
-
});
|
|
19959
|
-
if (orFilters.length) {
|
|
19960
|
-
let orEntities = [];
|
|
19961
|
-
orFilters.concat(...otherOrFilters).forEach((filter2) => {
|
|
19962
|
-
orEntities = orEntities.concat(
|
|
19963
|
-
getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps)
|
|
19964
|
-
);
|
|
19965
|
-
});
|
|
19966
|
-
entities = uniq(orEntities);
|
|
19967
|
-
}
|
|
19968
|
-
}
|
|
19969
|
-
return entities;
|
|
19970
|
-
}
|
|
19971
|
-
__name(filterEntitiesLocal, "filterEntitiesLocal");
|
|
19972
|
-
function cleanFilterValue(_filterValue, type2) {
|
|
19973
|
-
let filterValue = _filterValue;
|
|
19974
|
-
if (type2 === "number" || type2 === "integer") {
|
|
19975
|
-
filterValue = Array.isArray(filterValue) ? filterValue.map((val2) => Number(val2)) : Number(filterValue);
|
|
19976
|
-
}
|
|
19977
|
-
return filterValue;
|
|
19978
|
-
}
|
|
19979
|
-
__name(cleanFilterValue, "cleanFilterValue");
|
|
19980
|
-
function getEntitiesForGivenFilter(entities, filter2, ccFields, ownProps) {
|
|
19981
|
-
const { filterOn, filterValue: _filterValue, selectedFilter } = filter2;
|
|
19982
|
-
const field = ccFields[filterOn];
|
|
19983
|
-
const { path: path2, getValueToFilterOn } = field;
|
|
19984
|
-
const filterValue = cleanFilterValue(_filterValue, field.type);
|
|
19985
|
-
const subFilter = getSubFilter(false, selectedFilter, filterValue);
|
|
19986
|
-
entities = entities.filter((entity) => {
|
|
19987
|
-
const fieldVal = getValueToFilterOn ? getValueToFilterOn(entity, ownProps) : get$4(entity, path2);
|
|
19988
|
-
const shouldKeep = subFilter(fieldVal);
|
|
19989
|
-
return shouldKeep;
|
|
19990
|
-
});
|
|
19991
|
-
return entities;
|
|
19992
|
-
}
|
|
19993
|
-
__name(getEntitiesForGivenFilter, "getEntitiesForGivenFilter");
|
|
19994
|
-
function getFiltersFromSearchTerm(searchTerm, schema2) {
|
|
19995
|
-
const searchTermFilters = [];
|
|
19996
|
-
if (searchTerm) {
|
|
19997
|
-
const sharedFields = {
|
|
19998
|
-
isOrFilter: true,
|
|
19999
|
-
isSearchTermFilter: true
|
|
20000
|
-
};
|
|
20001
|
-
schema2.fields.forEach((field) => {
|
|
20002
|
-
const { type: type2, searchDisabled } = field;
|
|
20003
|
-
if (searchDisabled || field.filterDisabled || type2 === "color") return;
|
|
20004
|
-
const ccDisplayName = getCCDisplayName(field);
|
|
20005
|
-
const filterValue = cleanFilterValue(searchTerm, type2);
|
|
20006
|
-
if (type2 === "string" || type2 === "lookup") {
|
|
20007
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
20008
|
-
filterOn: ccDisplayName,
|
|
20009
|
-
filterValue: searchTerm,
|
|
20010
|
-
selectedFilter: "contains"
|
|
20011
|
-
}));
|
|
20012
|
-
} else if (type2 === "boolean") {
|
|
20013
|
-
let regex;
|
|
20014
|
-
try {
|
|
20015
|
-
regex = new RegExp("^" + searchTerm, "ig");
|
|
20016
|
-
} catch (error) {
|
|
20017
|
-
}
|
|
20018
|
-
if (regex) {
|
|
20019
|
-
if ("true".replace(regex, "") !== "true") {
|
|
20020
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
20021
|
-
filterOn: ccDisplayName,
|
|
20022
|
-
filterValue: true,
|
|
20023
|
-
selectedFilter: "true"
|
|
20024
|
-
}));
|
|
20025
|
-
} else if ("false".replace(regex, "") !== "false") {
|
|
20026
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
20027
|
-
filterOn: ccDisplayName,
|
|
20028
|
-
filterValue: false,
|
|
20029
|
-
selectedFilter: "false"
|
|
20030
|
-
}));
|
|
20031
|
-
}
|
|
20032
|
-
}
|
|
20033
|
-
} else if ((type2 === "number" || type2 === "integer") && !isNaN(filterValue)) {
|
|
20034
|
-
if (type2 === "integer" && !isInteger(filterValue)) {
|
|
20035
|
-
return;
|
|
20036
|
-
}
|
|
20037
|
-
searchTermFilters.push(__spreadProps(__spreadValues({}, sharedFields), {
|
|
20038
|
-
filterOn: ccDisplayName,
|
|
20039
|
-
filterValue,
|
|
20040
|
-
selectedFilter: "equalTo"
|
|
20041
|
-
}));
|
|
20042
|
-
}
|
|
20043
|
-
});
|
|
20044
|
-
}
|
|
20045
|
-
return searchTermFilters;
|
|
20046
|
-
}
|
|
20047
|
-
__name(getFiltersFromSearchTerm, "getFiltersFromSearchTerm");
|
|
20048
|
-
function getSubFilter(qb, selectedFilter, filterValue) {
|
|
20049
|
-
const ccSelectedFilter = camelCase(selectedFilter);
|
|
20050
|
-
let stringFilterValue = filterValue && filterValue.toString ? filterValue.toString() : filterValue;
|
|
20051
|
-
if (stringFilterValue === false) {
|
|
20052
|
-
stringFilterValue = "false";
|
|
20053
|
-
} else {
|
|
20054
|
-
stringFilterValue = stringFilterValue || "";
|
|
20055
|
-
}
|
|
20056
|
-
const filterValLower = stringFilterValue.toLowerCase && stringFilterValue.toLowerCase();
|
|
20057
|
-
const arrayFilterValue = Array.isArray(filterValue) ? filterValue : stringFilterValue.split(";");
|
|
20058
|
-
if (ccSelectedFilter === "startsWith") {
|
|
20059
|
-
return qb ? qb.startsWith(stringFilterValue) : (fieldVal) => {
|
|
20060
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
20061
|
-
return startsWith(fieldVal.toLowerCase(), filterValLower);
|
|
20062
|
-
};
|
|
20063
|
-
} else if (ccSelectedFilter === "endsWith") {
|
|
20064
|
-
return qb ? qb.endsWith(stringFilterValue) : (fieldVal) => {
|
|
20065
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
20066
|
-
return endsWith$1(fieldVal.toLowerCase(), filterValLower);
|
|
20067
|
-
};
|
|
20068
|
-
} else if (ccSelectedFilter === "contains" || ccSelectedFilter === "notContains") {
|
|
20069
|
-
return qb ? ccSelectedFilter === "contains" ? qb.contains(stringFilterValue.replace(/_/g, "\\_")) : qb.notContains(stringFilterValue.replace(/_/g, "\\_")) : (fieldVal) => {
|
|
20070
|
-
if (!fieldVal || !fieldVal.toLowerCase) return false;
|
|
20071
|
-
return ccSelectedFilter === "contains" ? fieldVal.toLowerCase().replace(filterValLower, "") !== fieldVal.toLowerCase() : fieldVal.toLowerCase().replace(filterValLower, "") === fieldVal.toLowerCase();
|
|
20072
|
-
};
|
|
20073
|
-
} else if (ccSelectedFilter === "inList") {
|
|
20074
|
-
return qb ? qb.inList(arrayFilterValue) : (fieldVal) => {
|
|
20075
|
-
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
20076
|
-
return arrayFilterValue.map((val2) => {
|
|
20077
|
-
if (val2) {
|
|
20078
|
-
if (val2.toString) return val2.toString().toLowerCase();
|
|
20079
|
-
return val2.toLowerCase();
|
|
20080
|
-
}
|
|
20081
|
-
return void 0;
|
|
20082
|
-
}).indexOf(fieldVal.toString().toLowerCase()) > -1;
|
|
20083
|
-
};
|
|
20084
|
-
} else if (ccSelectedFilter === "notInList") {
|
|
20085
|
-
return qb ? qb.notInList(arrayFilterValue) : (fieldVal) => {
|
|
20086
|
-
if (!(fieldVal == null ? void 0 : fieldVal.toString)) return false;
|
|
20087
|
-
return arrayFilterValue.map((val2) => {
|
|
20088
|
-
if (val2) {
|
|
20089
|
-
if (val2.toString) return val2.toString().toLowerCase();
|
|
20090
|
-
return val2.toLowerCase();
|
|
20091
|
-
}
|
|
20092
|
-
return void 0;
|
|
20093
|
-
}).indexOf(fieldVal.toString().toLowerCase()) === -1;
|
|
20094
|
-
};
|
|
20095
|
-
} else if (ccSelectedFilter === "isEmpty") {
|
|
20096
|
-
return qb ? qb.isEmpty() : (fieldVal) => {
|
|
20097
|
-
return !fieldVal;
|
|
20098
|
-
};
|
|
20099
|
-
} else if (ccSelectedFilter === "notEmpty") {
|
|
20100
|
-
return qb ? [qb.notNull(), qb.notEquals("")] : (fieldVal) => {
|
|
20101
|
-
return !!fieldVal;
|
|
20102
|
-
};
|
|
20103
|
-
} else if (ccSelectedFilter === "isExactly") {
|
|
20104
|
-
return qb ? filterValue : (fieldVal) => {
|
|
20105
|
-
return fieldVal === filterValue;
|
|
20106
|
-
};
|
|
20107
|
-
} else if (ccSelectedFilter === "true") {
|
|
20108
|
-
return qb ? qb.equals(true) : (fieldVal) => {
|
|
20109
|
-
return !!fieldVal;
|
|
20110
|
-
};
|
|
20111
|
-
} else if (ccSelectedFilter === "false") {
|
|
20112
|
-
return qb ? qb.equals(false) : (fieldVal) => {
|
|
20113
|
-
return !fieldVal;
|
|
20114
|
-
};
|
|
20115
|
-
} else if (ccSelectedFilter === "isBetween") {
|
|
20116
|
-
return qb ? qb.between(
|
|
20117
|
-
new Date(arrayFilterValue[0]),
|
|
20118
|
-
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
20119
|
-
// set end of day for more accurate filtering
|
|
20120
|
-
) : (fieldVal) => {
|
|
20121
|
-
return dayjs(arrayFilterValue[0]).valueOf() <= dayjs(fieldVal).valueOf() && dayjs(fieldVal).valueOf() <= dayjs(arrayFilterValue[1]).valueOf();
|
|
20122
|
-
};
|
|
20123
|
-
} else if (ccSelectedFilter === "notBetween") {
|
|
20124
|
-
return qb ? qb.notBetween(
|
|
20125
|
-
new Date(arrayFilterValue[0]),
|
|
20126
|
-
new Date(new Date(arrayFilterValue[1]).setHours(23, 59))
|
|
20127
|
-
// set end of day for more accurate filtering
|
|
20128
|
-
) : (fieldVal) => {
|
|
20129
|
-
return dayjs(arrayFilterValue[0]).valueOf() > dayjs(fieldVal).valueOf() || dayjs(fieldVal).valueOf() > dayjs(arrayFilterValue[1]).valueOf();
|
|
20130
|
-
};
|
|
20131
|
-
} else if (ccSelectedFilter === "isBefore") {
|
|
20132
|
-
return qb ? qb.lessThan(new Date(filterValue)) : (fieldVal) => {
|
|
20133
|
-
return dayjs(fieldVal).valueOf() < dayjs(filterValue).valueOf();
|
|
20134
|
-
};
|
|
20135
|
-
} else if (ccSelectedFilter === "isAfter") {
|
|
20136
|
-
return qb ? qb.greaterThan(new Date(new Date(filterValue).setHours(23, 59))) : (fieldVal) => {
|
|
20137
|
-
return dayjs(fieldVal).valueOf() > dayjs(filterValue).valueOf();
|
|
20138
|
-
};
|
|
20139
|
-
} else if (ccSelectedFilter === "greaterThan") {
|
|
20140
|
-
return qb ? qb.greaterThan(filterValue) : (fieldVal) => {
|
|
20141
|
-
return fieldVal > filterValue;
|
|
20142
|
-
};
|
|
20143
|
-
} else if (ccSelectedFilter === "lessThan") {
|
|
20144
|
-
return qb ? qb.lessThan(filterValue) : (fieldVal) => {
|
|
20145
|
-
return fieldVal < filterValue;
|
|
20146
|
-
};
|
|
20147
|
-
} else if (ccSelectedFilter === "inRange") {
|
|
20148
|
-
return qb ? qb.between(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
20149
|
-
return filterValue[0] <= fieldVal && fieldVal <= filterValue[1];
|
|
20150
|
-
};
|
|
20151
|
-
} else if (ccSelectedFilter === "outsideRange") {
|
|
20152
|
-
return qb ? qb.notBetween(filterValue[0], filterValue[1]) : (fieldVal) => {
|
|
20153
|
-
return filterValue[0] > fieldVal || fieldVal > filterValue[1];
|
|
20154
|
-
};
|
|
20155
|
-
} else if (ccSelectedFilter === "equalTo") {
|
|
20156
|
-
return qb ? filterValue : (fieldVal) => {
|
|
20157
|
-
return fieldVal === filterValue;
|
|
20158
|
-
};
|
|
20159
|
-
} else if (ccSelectedFilter === "regex") {
|
|
20160
|
-
return qb ? qb.matchesRegex(filterValue) : (fieldVal) => {
|
|
20161
|
-
new RegExp(filterValue).test(fieldVal);
|
|
20162
|
-
return fieldVal;
|
|
20163
|
-
};
|
|
20164
|
-
}
|
|
20165
|
-
throw new Error(
|
|
20166
|
-
`Unsupported filter ${selectedFilter}. Please make a new filter if you need one`
|
|
20167
|
-
);
|
|
20168
|
-
}
|
|
20169
|
-
__name(getSubFilter, "getSubFilter");
|
|
20170
20060
|
function getCurrentParamsFromUrl(location2, isSimple) {
|
|
20171
20061
|
let { search: search2 } = location2;
|
|
20172
20062
|
return parseFilters(queryString.parse(search2, { ignoreQueryPrefix: true }));
|
|
@@ -20230,22 +20120,6 @@ function parseFilters(newParams) {
|
|
|
20230
20120
|
});
|
|
20231
20121
|
}
|
|
20232
20122
|
__name(parseFilters, "parseFilters");
|
|
20233
|
-
function buildRef(qb, reference2, searchField, expression) {
|
|
20234
|
-
if (reference2.reference) {
|
|
20235
|
-
return qb.related(reference2.target).whereAny({
|
|
20236
|
-
[reference2.sourceField]: buildRef(
|
|
20237
|
-
qb,
|
|
20238
|
-
reference2.reference,
|
|
20239
|
-
searchField,
|
|
20240
|
-
expression
|
|
20241
|
-
)
|
|
20242
|
-
});
|
|
20243
|
-
}
|
|
20244
|
-
return qb.related(reference2.target).whereAny({
|
|
20245
|
-
[searchField]: expression
|
|
20246
|
-
});
|
|
20247
|
-
}
|
|
20248
|
-
__name(buildRef, "buildRef");
|
|
20249
20123
|
function makeDataTableHandlers({
|
|
20250
20124
|
setNewParams,
|
|
20251
20125
|
defaults: defaults2,
|
|
@@ -20333,27 +20207,19 @@ function makeDataTableHandlers({
|
|
|
20333
20207
|
};
|
|
20334
20208
|
}
|
|
20335
20209
|
__name(makeDataTableHandlers, "makeDataTableHandlers");
|
|
20336
|
-
function
|
|
20337
|
-
|
|
20338
|
-
|
|
20339
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
function getAllFilters(filters, searchTerm, schema2) {
|
|
20347
|
-
let allFilters = [
|
|
20348
|
-
...filters,
|
|
20349
|
-
...getFiltersFromSearchTerm(searchTerm, schema2)
|
|
20350
|
-
];
|
|
20351
|
-
allFilters = allFilters.filter((val2) => {
|
|
20352
|
-
return val2 !== "";
|
|
20210
|
+
function cleanupFilters({ filters, ccFields }) {
|
|
20211
|
+
(filters || []).forEach((filter2) => {
|
|
20212
|
+
const { filterOn, filterValue } = filter2;
|
|
20213
|
+
const field = ccFields[filterOn];
|
|
20214
|
+
if (field.type === "number" || field.type === "integer") {
|
|
20215
|
+
filter2.filterValue = Array.isArray(filterValue) ? filterValue.map((val2) => Number(val2)) : Number(filterValue);
|
|
20216
|
+
}
|
|
20217
|
+
if (filter2.selectedFilter === "inList" && typeof filter2.filterValue === "number") {
|
|
20218
|
+
filter2.filterValue = filter2.filterValue.toString();
|
|
20219
|
+
}
|
|
20353
20220
|
});
|
|
20354
|
-
return allFilters.map(cleanupFilter);
|
|
20355
20221
|
}
|
|
20356
|
-
__name(
|
|
20222
|
+
__name(cleanupFilters, "cleanupFilters");
|
|
20357
20223
|
function getQueryParams({
|
|
20358
20224
|
currentParams,
|
|
20359
20225
|
urlConnected,
|
|
@@ -20363,88 +20229,45 @@ function getQueryParams({
|
|
|
20363
20229
|
entities,
|
|
20364
20230
|
isLocalCall,
|
|
20365
20231
|
additionalFilter,
|
|
20366
|
-
additionalOrFilter,
|
|
20367
20232
|
doNotCoercePageSize,
|
|
20368
20233
|
noOrderError,
|
|
20369
20234
|
isCodeModel,
|
|
20370
20235
|
ownProps
|
|
20371
20236
|
}) {
|
|
20372
|
-
|
|
20373
|
-
|
|
20374
|
-
|
|
20237
|
+
let errorParsingUrlString;
|
|
20238
|
+
try {
|
|
20239
|
+
Object.keys(currentParams).forEach(function(key) {
|
|
20240
|
+
if (currentParams[key] === void 0) {
|
|
20241
|
+
delete currentParams[key];
|
|
20242
|
+
}
|
|
20243
|
+
});
|
|
20244
|
+
const tableQueryParams = __spreadValues(__spreadValues({}, defaults2), currentParams);
|
|
20245
|
+
let { page, pageSize, searchTerm, filters, order: order2 } = tableQueryParams;
|
|
20246
|
+
const ccFields = getFieldsMappedByCCDisplayName(schema2);
|
|
20247
|
+
cleanupFilters({ filters, ccFields });
|
|
20248
|
+
if (page <= 0 || isNaN(page)) {
|
|
20249
|
+
page = void 0;
|
|
20375
20250
|
}
|
|
20376
|
-
});
|
|
20377
|
-
const tableQueryParams = __spreadValues(__spreadValues({}, defaults2), currentParams);
|
|
20378
|
-
let { page, pageSize, searchTerm, filters, order: order2 } = tableQueryParams;
|
|
20379
|
-
if (page <= 0 || isNaN(page)) {
|
|
20380
|
-
page = void 0;
|
|
20381
|
-
}
|
|
20382
|
-
if (isInfinite) {
|
|
20383
|
-
page = void 0;
|
|
20384
|
-
pageSize = void 0;
|
|
20385
|
-
}
|
|
20386
|
-
if (pageSize !== void 0 && !doNotCoercePageSize) {
|
|
20387
|
-
const closest2 = clone$1(window.tgPageSizes || defaultPageSizes).sort(
|
|
20388
|
-
(a2, b3) => Math.abs(pageSize - a2) - Math.abs(pageSize - b3)
|
|
20389
|
-
)[0];
|
|
20390
|
-
pageSize = closest2;
|
|
20391
|
-
}
|
|
20392
|
-
const toReturn = {
|
|
20393
|
-
//these are values that might be generally useful for the wrapped component
|
|
20394
|
-
page,
|
|
20395
|
-
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20396
|
-
order: order2,
|
|
20397
|
-
filters,
|
|
20398
|
-
searchTerm
|
|
20399
|
-
};
|
|
20400
|
-
if (isLocalCall) {
|
|
20401
|
-
let newEntities = entities;
|
|
20402
|
-
newEntities = filterEntitiesLocal(
|
|
20403
|
-
filters,
|
|
20404
|
-
searchTerm,
|
|
20405
|
-
newEntities,
|
|
20406
|
-
schema2,
|
|
20407
|
-
ownProps
|
|
20408
|
-
);
|
|
20409
|
-
newEntities = orderEntitiesLocal(order2, newEntities, schema2, ownProps);
|
|
20410
|
-
const entitiesAcrossPages = newEntities;
|
|
20411
|
-
const newEntityCount = newEntities.length;
|
|
20412
|
-
if (!isInfinite && !ownProps.controlled_pageSize) {
|
|
20413
|
-
const offset4 = (page - 1) * pageSize;
|
|
20414
|
-
newEntities = take(drop$2(newEntities, offset4), pageSize);
|
|
20415
|
-
}
|
|
20416
|
-
toReturn.entities = newEntities;
|
|
20417
|
-
toReturn.entitiesAcrossPages = entitiesAcrossPages;
|
|
20418
|
-
toReturn.entityCount = newEntityCount;
|
|
20419
|
-
return toReturn;
|
|
20420
|
-
} else {
|
|
20421
|
-
const graphqlQueryParams = {
|
|
20422
|
-
// need to make sure sort exists because of https://github.com/apollographql/apollo-client/issues/3077
|
|
20423
|
-
sort: []
|
|
20424
|
-
};
|
|
20425
20251
|
if (isInfinite) {
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
}
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
const
|
|
20436
|
-
if (
|
|
20437
|
-
|
|
20252
|
+
page = void 0;
|
|
20253
|
+
pageSize = void 0;
|
|
20254
|
+
}
|
|
20255
|
+
if (pageSize !== void 0 && !doNotCoercePageSize) {
|
|
20256
|
+
const closest2 = clone$1(window.tgPageSizes || defaultPageSizes).sort(
|
|
20257
|
+
(a2, b3) => Math.abs(pageSize - a2) - Math.abs(pageSize - b3)
|
|
20258
|
+
)[0];
|
|
20259
|
+
pageSize = closest2;
|
|
20260
|
+
}
|
|
20261
|
+
const cleanedOrder = [];
|
|
20262
|
+
if (order2 && order2.length) {
|
|
20263
|
+
order2.forEach((orderVal) => {
|
|
20438
20264
|
const ccDisplayName = orderVal.replace(/^-/gi, "");
|
|
20439
20265
|
const schemaForField = ccFields[ccDisplayName];
|
|
20440
20266
|
if (schemaForField) {
|
|
20441
20267
|
const { path: path2 } = schemaForField;
|
|
20442
20268
|
const reversed = ccDisplayName !== orderVal;
|
|
20443
20269
|
const prefix2 = reversed ? "-" : "";
|
|
20444
|
-
|
|
20445
|
-
...graphqlQueryParams.sort || [],
|
|
20446
|
-
prefix2 + path2
|
|
20447
|
-
];
|
|
20270
|
+
cleanedOrder.push(prefix2 + path2);
|
|
20448
20271
|
} else {
|
|
20449
20272
|
!noOrderError && console.error(
|
|
20450
20273
|
"No schema for field found!",
|
|
@@ -20454,167 +20277,104 @@ function getQueryParams({
|
|
|
20454
20277
|
}
|
|
20455
20278
|
});
|
|
20456
20279
|
}
|
|
20457
|
-
let
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
-
|
|
20464
|
-
|
|
20465
|
-
const {
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
|
|
20469
|
-
|
|
20470
|
-
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
}
|
|
20494
|
-
const columnCustomFilters = getColumnCustomFilters(
|
|
20495
|
-
andFilters,
|
|
20496
|
-
qb,
|
|
20497
|
-
ccFields
|
|
20280
|
+
let toRet = {
|
|
20281
|
+
//these are values that might be generally useful for the wrapped component
|
|
20282
|
+
page,
|
|
20283
|
+
pageSize: ownProps.controlled_pageSize || pageSize,
|
|
20284
|
+
order: cleanedOrder,
|
|
20285
|
+
filters,
|
|
20286
|
+
searchTerm
|
|
20287
|
+
};
|
|
20288
|
+
const { where, order_by, limit, offset: offset4 } = tableQueryParamsToHasuraClauses({
|
|
20289
|
+
page,
|
|
20290
|
+
pageSize,
|
|
20291
|
+
searchTerm,
|
|
20292
|
+
filters,
|
|
20293
|
+
order: cleanedOrder,
|
|
20294
|
+
schema: schema2
|
|
20295
|
+
});
|
|
20296
|
+
initializeHasuraWhereAndFilter(additionalFilter, where, currentParams);
|
|
20297
|
+
if (isLocalCall) {
|
|
20298
|
+
const r2 = filterLocalEntitiesToHasura(
|
|
20299
|
+
prepEntitiesForLocalFilter({ entities, ccFields }),
|
|
20300
|
+
{
|
|
20301
|
+
where,
|
|
20302
|
+
order_by: (Array.isArray(order_by) ? order_by : [order_by]).map(
|
|
20303
|
+
(obj) => {
|
|
20304
|
+
const path2 = Object.keys(obj)[0];
|
|
20305
|
+
return __spreadValues({
|
|
20306
|
+
path: path2,
|
|
20307
|
+
direction: obj[path2],
|
|
20308
|
+
ownProps
|
|
20309
|
+
}, ccFields[path2]);
|
|
20310
|
+
}
|
|
20311
|
+
),
|
|
20312
|
+
limit,
|
|
20313
|
+
offset: offset4,
|
|
20314
|
+
isInfinite
|
|
20315
|
+
}
|
|
20498
20316
|
);
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
errorParsingUrlString = e;
|
|
20505
|
-
console.error(
|
|
20506
|
-
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20507
|
-
e
|
|
20508
|
-
);
|
|
20509
|
-
} else {
|
|
20510
|
-
console.error("Error building query params from filter:");
|
|
20511
|
-
throw e;
|
|
20317
|
+
toRet = __spreadValues(__spreadValues({}, toRet), r2);
|
|
20318
|
+
return toRet;
|
|
20319
|
+
} else {
|
|
20320
|
+
if (!order_by.length) {
|
|
20321
|
+
order_by.push({ updatedAt: "desc" });
|
|
20512
20322
|
}
|
|
20323
|
+
order_by.push(
|
|
20324
|
+
isCodeModel ? { code: "asc" } : { [window.__sortId || "id"]: "asc" }
|
|
20325
|
+
);
|
|
20326
|
+
return __spreadProps(__spreadValues({}, toRet), {
|
|
20327
|
+
variables: {
|
|
20328
|
+
where,
|
|
20329
|
+
order_by,
|
|
20330
|
+
limit,
|
|
20331
|
+
offset: offset4
|
|
20332
|
+
}
|
|
20333
|
+
});
|
|
20513
20334
|
}
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20335
|
+
} catch (e) {
|
|
20336
|
+
if (urlConnected) {
|
|
20337
|
+
errorParsingUrlString = e;
|
|
20338
|
+
console.error(
|
|
20339
|
+
"The following error occurred when trying to build the query params. This is probably due to a malformed URL:",
|
|
20340
|
+
e
|
|
20341
|
+
);
|
|
20342
|
+
return {
|
|
20343
|
+
errorParsingUrlString,
|
|
20344
|
+
variables: {
|
|
20345
|
+
where: {},
|
|
20346
|
+
order_by: [],
|
|
20347
|
+
limit: 0,
|
|
20348
|
+
offset: 0
|
|
20349
|
+
}
|
|
20350
|
+
};
|
|
20351
|
+
} else {
|
|
20352
|
+
console.error("Error building query params from filter:");
|
|
20353
|
+
throw e;
|
|
20519
20354
|
}
|
|
20520
|
-
graphqlQueryParams.sort.push(
|
|
20521
|
-
isCodeModel ? "code" : window.__sortId || "id"
|
|
20522
|
-
);
|
|
20523
|
-
return __spreadProps(__spreadValues({}, toReturn), {
|
|
20524
|
-
//the query params will get passed directly to as variables to the graphql query
|
|
20525
|
-
variables: graphqlQueryParams,
|
|
20526
|
-
errorParsingUrlString
|
|
20527
|
-
});
|
|
20528
20355
|
}
|
|
20529
20356
|
}
|
|
20530
20357
|
__name(getQueryParams, "getQueryParams");
|
|
20531
|
-
function
|
|
20532
|
-
const
|
|
20533
|
-
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
);
|
|
20542
|
-
}
|
|
20543
|
-
}
|
|
20544
|
-
const _subFilters = getSubFilter(qb, selectedFilter, filterValueToUse);
|
|
20545
|
-
let filterField;
|
|
20546
|
-
if (fieldSchema) {
|
|
20547
|
-
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20548
|
-
if (reference2) {
|
|
20549
|
-
filterField = reference2.sourceField;
|
|
20550
|
-
} else {
|
|
20551
|
-
filterField = path2;
|
|
20552
|
-
}
|
|
20553
|
-
} else if (filterOn === "id") {
|
|
20554
|
-
filterField = filterOn;
|
|
20555
|
-
} else {
|
|
20556
|
-
console.error("Trying to filter on unknown field");
|
|
20557
|
-
}
|
|
20558
|
-
const subFiltersToUse = [];
|
|
20559
|
-
const subFilters = Array.isArray(_subFilters) ? _subFilters : [_subFilters];
|
|
20560
|
-
subFilters.forEach((subFilter) => {
|
|
20561
|
-
let subFilterToUse = subFilter;
|
|
20562
|
-
if (fieldSchema) {
|
|
20563
|
-
const { path: path2, reference: reference2 } = fieldSchema;
|
|
20564
|
-
if (reference2) {
|
|
20565
|
-
subFilterToUse = buildRef(
|
|
20566
|
-
qb,
|
|
20567
|
-
reference2,
|
|
20568
|
-
last$1(path2.split(".")),
|
|
20569
|
-
subFilter
|
|
20570
|
-
);
|
|
20358
|
+
function prepEntitiesForLocalFilter({ entities, ccFields }) {
|
|
20359
|
+
const r2 = entities.map((entity) => {
|
|
20360
|
+
const toSpread = {};
|
|
20361
|
+
let hasChanged = false;
|
|
20362
|
+
forEach$1(ccFields, ({ getValueToFilterOn, path: path2 }) => {
|
|
20363
|
+
if (getValueToFilterOn) {
|
|
20364
|
+
hasChanged = true;
|
|
20365
|
+
toSpread["___original___" + path2] = entity[path2];
|
|
20366
|
+
const value = getValueToFilterOn(entity);
|
|
20367
|
+
toSpread[path2] = value;
|
|
20571
20368
|
}
|
|
20369
|
+
});
|
|
20370
|
+
if (hasChanged) {
|
|
20371
|
+
return __spreadValues(__spreadValues({}, entity), toSpread);
|
|
20572
20372
|
}
|
|
20573
|
-
|
|
20373
|
+
return entity;
|
|
20574
20374
|
});
|
|
20575
|
-
return
|
|
20576
|
-
path: filterField,
|
|
20577
|
-
subFilters: subFiltersToUse
|
|
20578
|
-
};
|
|
20579
|
-
}
|
|
20580
|
-
__name(getSubFiltersAndPath, "getSubFiltersAndPath");
|
|
20581
|
-
function getQueries(filters, qb, ccFields) {
|
|
20582
|
-
const subQueries = filters.reduce((acc, filter2) => {
|
|
20583
|
-
if (!filter2) {
|
|
20584
|
-
console.warn("We should always have a filter object!");
|
|
20585
|
-
return acc;
|
|
20586
|
-
}
|
|
20587
|
-
const { filterOn } = filter2;
|
|
20588
|
-
const fieldSchema = ccFields[filterOn];
|
|
20589
|
-
if (!filter2.isSearchTermFilter && (fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter))
|
|
20590
|
-
return acc;
|
|
20591
|
-
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20592
|
-
acc[path2] = subFilters;
|
|
20593
|
-
return acc;
|
|
20594
|
-
}, {});
|
|
20595
|
-
return subQueries;
|
|
20596
|
-
}
|
|
20597
|
-
__name(getQueries, "getQueries");
|
|
20598
|
-
function getColumnCustomFilters(filters, qb, ccFields) {
|
|
20599
|
-
const subQueries = filters.reduce((acc, filter2) => {
|
|
20600
|
-
if (!filter2) {
|
|
20601
|
-
console.warn("We should always have a filter object!");
|
|
20602
|
-
return acc;
|
|
20603
|
-
}
|
|
20604
|
-
const { filterOn } = filter2;
|
|
20605
|
-
const fieldSchema = ccFields[filterOn];
|
|
20606
|
-
if (filter2.isSearchTermFilter || !(fieldSchema == null ? void 0 : fieldSchema.additionalColumnFilter)) {
|
|
20607
|
-
return acc;
|
|
20608
|
-
}
|
|
20609
|
-
const { path: path2, subFilters } = getSubFiltersAndPath(filter2, qb, ccFields);
|
|
20610
|
-
subFilters.forEach((subFilter) => {
|
|
20611
|
-
acc.push(fieldSchema.additionalColumnFilter(qb, subFilter, path2));
|
|
20612
|
-
});
|
|
20613
|
-
return acc;
|
|
20614
|
-
}, []);
|
|
20615
|
-
return subQueries;
|
|
20375
|
+
return r2;
|
|
20616
20376
|
}
|
|
20617
|
-
__name(
|
|
20377
|
+
__name(prepEntitiesForLocalFilter, "prepEntitiesForLocalFilter");
|
|
20618
20378
|
function PagingInput({ disabled, onBlur, defaultPage }) {
|
|
20619
20379
|
const [page, setPage] = React.useState(defaultPage);
|
|
20620
20380
|
const defaultValue2 = React.useRef(defaultPage);
|
|
@@ -32418,7 +32178,15 @@ function requireColor() {
|
|
|
32418
32178
|
__name(requireColor, "requireColor");
|
|
32419
32179
|
var colorExports = requireColor();
|
|
32420
32180
|
const Color = /* @__PURE__ */ getDefaultExportFromCjs(colorExports);
|
|
32421
|
-
|
|
32181
|
+
function determineBlackOrWhiteTextColor(c2) {
|
|
32182
|
+
try {
|
|
32183
|
+
return Color(c2).isLight() ? "#000000" : "#FFFFFF";
|
|
32184
|
+
} catch (e) {
|
|
32185
|
+
console.error("Error in color parsing:", e);
|
|
32186
|
+
return "#000000";
|
|
32187
|
+
}
|
|
32188
|
+
}
|
|
32189
|
+
__name(determineBlackOrWhiteTextColor, "determineBlackOrWhiteTextColor");
|
|
32422
32190
|
function getTagsAndTagOptions(allTags) {
|
|
32423
32191
|
return flatMap(allTags, (tag) => {
|
|
32424
32192
|
if (tag.tagOptions && tag.tagOptions.length) {
|
|
@@ -33005,6 +32773,293 @@ const InfoHelper = /* @__PURE__ */ __name((_e) => {
|
|
|
33005
32773
|
toReturn
|
|
33006
32774
|
);
|
|
33007
32775
|
}, "InfoHelper");
|
|
32776
|
+
var dayjs_min$1 = { exports: {} };
|
|
32777
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
32778
|
+
var hasRequiredDayjs_min;
|
|
32779
|
+
function requireDayjs_min() {
|
|
32780
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
32781
|
+
hasRequiredDayjs_min = 1;
|
|
32782
|
+
(function(module2, exports2) {
|
|
32783
|
+
!function(t2, e) {
|
|
32784
|
+
module2.exports = e();
|
|
32785
|
+
}(dayjs_min, function() {
|
|
32786
|
+
var t2 = 1e3, e = 6e4, n2 = 36e5, r2 = "millisecond", i = "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) {
|
|
32787
|
+
var e2 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
32788
|
+
return "[" + t3 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
|
|
32789
|
+
}, "ordinal") }, m2 = /* @__PURE__ */ __name(function(t3, e2, n3) {
|
|
32790
|
+
var r3 = String(t3);
|
|
32791
|
+
return !r3 || r3.length >= e2 ? t3 : "" + Array(e2 + 1 - r3.length).join(n3) + t3;
|
|
32792
|
+
}, "m"), v2 = { s: m2, z: /* @__PURE__ */ __name(function(t3) {
|
|
32793
|
+
var e2 = -t3.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i2 = n3 % 60;
|
|
32794
|
+
return (e2 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i2, 2, "0");
|
|
32795
|
+
}, "z"), m: /* @__PURE__ */ __name(function t3(e2, n3) {
|
|
32796
|
+
if (e2.date() < n3.date()) return -t3(n3, e2);
|
|
32797
|
+
var r3 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i2 = e2.clone().add(r3, c2), s3 = n3 - i2 < 0, u3 = e2.clone().add(r3 + (s3 ? -1 : 1), c2);
|
|
32798
|
+
return +(-(r3 + (n3 - i2) / (s3 ? i2 - u3 : u3 - i2)) || 0);
|
|
32799
|
+
}, "t"), a: /* @__PURE__ */ __name(function(t3) {
|
|
32800
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
32801
|
+
}, "a"), p: /* @__PURE__ */ __name(function(t3) {
|
|
32802
|
+
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
|
32803
|
+
}, "p"), u: /* @__PURE__ */ __name(function(t3) {
|
|
32804
|
+
return void 0 === t3;
|
|
32805
|
+
}, "u") }, g2 = "en", D2 = {};
|
|
32806
|
+
D2[g2] = M2;
|
|
32807
|
+
var p2 = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t3) {
|
|
32808
|
+
return t3 instanceof _2 || !(!t3 || !t3[p2]);
|
|
32809
|
+
}, "S"), w2 = /* @__PURE__ */ __name(function t3(e2, n3, r3) {
|
|
32810
|
+
var i2;
|
|
32811
|
+
if (!e2) return g2;
|
|
32812
|
+
if ("string" == typeof e2) {
|
|
32813
|
+
var s3 = e2.toLowerCase();
|
|
32814
|
+
D2[s3] && (i2 = s3), n3 && (D2[s3] = n3, i2 = s3);
|
|
32815
|
+
var u3 = e2.split("-");
|
|
32816
|
+
if (!i2 && u3.length > 1) return t3(u3[0]);
|
|
32817
|
+
} else {
|
|
32818
|
+
var a3 = e2.name;
|
|
32819
|
+
D2[a3] = e2, i2 = a3;
|
|
32820
|
+
}
|
|
32821
|
+
return !r3 && i2 && (g2 = i2), i2 || !r3 && g2;
|
|
32822
|
+
}, "t"), O2 = /* @__PURE__ */ __name(function(t3, e2) {
|
|
32823
|
+
if (S2(t3)) return t3.clone();
|
|
32824
|
+
var n3 = "object" == typeof e2 ? e2 : {};
|
|
32825
|
+
return n3.date = t3, n3.args = arguments, new _2(n3);
|
|
32826
|
+
}, "O"), b3 = v2;
|
|
32827
|
+
b3.l = w2, b3.i = S2, b3.w = function(t3, e2) {
|
|
32828
|
+
return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
32829
|
+
};
|
|
32830
|
+
var _2 = function() {
|
|
32831
|
+
function M3(t3) {
|
|
32832
|
+
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
|
|
32833
|
+
}
|
|
32834
|
+
__name(M3, "M");
|
|
32835
|
+
var m3 = M3.prototype;
|
|
32836
|
+
return m3.parse = function(t3) {
|
|
32837
|
+
this.$d = function(t4) {
|
|
32838
|
+
var e2 = t4.date, n3 = t4.utc;
|
|
32839
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
32840
|
+
if (b3.u(e2)) return /* @__PURE__ */ new Date();
|
|
32841
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
32842
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
32843
|
+
var r3 = e2.match($);
|
|
32844
|
+
if (r3) {
|
|
32845
|
+
var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
32846
|
+
return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
32847
|
+
}
|
|
32848
|
+
}
|
|
32849
|
+
return new Date(e2);
|
|
32850
|
+
}(t3), this.init();
|
|
32851
|
+
}, m3.init = function() {
|
|
32852
|
+
var t3 = this.$d;
|
|
32853
|
+
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();
|
|
32854
|
+
}, m3.$utils = function() {
|
|
32855
|
+
return b3;
|
|
32856
|
+
}, m3.isValid = function() {
|
|
32857
|
+
return !(this.$d.toString() === l2);
|
|
32858
|
+
}, m3.isSame = function(t3, e2) {
|
|
32859
|
+
var n3 = O2(t3);
|
|
32860
|
+
return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
|
|
32861
|
+
}, m3.isAfter = function(t3, e2) {
|
|
32862
|
+
return O2(t3) < this.startOf(e2);
|
|
32863
|
+
}, m3.isBefore = function(t3, e2) {
|
|
32864
|
+
return this.endOf(e2) < O2(t3);
|
|
32865
|
+
}, m3.$g = function(t3, e2, n3) {
|
|
32866
|
+
return b3.u(t3) ? this[e2] : this.set(n3, t3);
|
|
32867
|
+
}, m3.unix = function() {
|
|
32868
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
32869
|
+
}, m3.valueOf = function() {
|
|
32870
|
+
return this.$d.getTime();
|
|
32871
|
+
}, m3.startOf = function(t3, e2) {
|
|
32872
|
+
var n3 = this, r3 = !!b3.u(e2) || e2, f3 = b3.p(t3), l3 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32873
|
+
var i2 = b3.w(n3.$u ? Date.UTC(n3.$y, e3, t4) : new Date(n3.$y, e3, t4), n3);
|
|
32874
|
+
return r3 ? i2 : i2.endOf(a2);
|
|
32875
|
+
}, "l"), $2 = /* @__PURE__ */ __name(function(t4, e3) {
|
|
32876
|
+
return b3.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
|
|
32877
|
+
}, "$"), y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
|
|
32878
|
+
switch (f3) {
|
|
32879
|
+
case h2:
|
|
32880
|
+
return r3 ? l3(1, 0) : l3(31, 11);
|
|
32881
|
+
case c2:
|
|
32882
|
+
return r3 ? l3(1, M4) : l3(0, M4 + 1);
|
|
32883
|
+
case o2:
|
|
32884
|
+
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
|
32885
|
+
return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
|
|
32886
|
+
case a2:
|
|
32887
|
+
case d2:
|
|
32888
|
+
return $2(v3 + "Hours", 0);
|
|
32889
|
+
case u2:
|
|
32890
|
+
return $2(v3 + "Minutes", 1);
|
|
32891
|
+
case s2:
|
|
32892
|
+
return $2(v3 + "Seconds", 2);
|
|
32893
|
+
case i:
|
|
32894
|
+
return $2(v3 + "Milliseconds", 3);
|
|
32895
|
+
default:
|
|
32896
|
+
return this.clone();
|
|
32897
|
+
}
|
|
32898
|
+
}, m3.endOf = function(t3) {
|
|
32899
|
+
return this.startOf(t3, false);
|
|
32900
|
+
}, m3.$set = function(t3, e2) {
|
|
32901
|
+
var n3, o3 = b3.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[i] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $2 = o3 === a2 ? this.$D + (e2 - this.$W) : e2;
|
|
32902
|
+
if (o3 === c2 || o3 === h2) {
|
|
32903
|
+
var y3 = this.clone().set(d2, 1);
|
|
32904
|
+
y3.$d[l3]($2), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
|
32905
|
+
} else l3 && this.$d[l3]($2);
|
|
32906
|
+
return this.init(), this;
|
|
32907
|
+
}, m3.set = function(t3, e2) {
|
|
32908
|
+
return this.clone().$set(t3, e2);
|
|
32909
|
+
}, m3.get = function(t3) {
|
|
32910
|
+
return this[b3.p(t3)]();
|
|
32911
|
+
}, m3.add = function(r3, f3) {
|
|
32912
|
+
var d3, l3 = this;
|
|
32913
|
+
r3 = Number(r3);
|
|
32914
|
+
var $2 = b3.p(f3), y3 = /* @__PURE__ */ __name(function(t3) {
|
|
32915
|
+
var e2 = O2(l3);
|
|
32916
|
+
return b3.w(e2.date(e2.date() + Math.round(t3 * r3)), l3);
|
|
32917
|
+
}, "y");
|
|
32918
|
+
if ($2 === c2) return this.set(c2, this.$M + r3);
|
|
32919
|
+
if ($2 === h2) return this.set(h2, this.$y + r3);
|
|
32920
|
+
if ($2 === a2) return y3(1);
|
|
32921
|
+
if ($2 === o2) return y3(7);
|
|
32922
|
+
var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n2, d3[i] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M4;
|
|
32923
|
+
return b3.w(m4, this);
|
|
32924
|
+
}, m3.subtract = function(t3, e2) {
|
|
32925
|
+
return this.add(-1 * t3, e2);
|
|
32926
|
+
}, m3.format = function(t3) {
|
|
32927
|
+
var e2 = this, n3 = this.$locale();
|
|
32928
|
+
if (!this.isValid()) return n3.invalidDate || l2;
|
|
32929
|
+
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b3.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, i3, s4) {
|
|
32930
|
+
return t4 && (t4[n4] || t4(e2, r3)) || i3[n4].slice(0, s4);
|
|
32931
|
+
}, "h"), d3 = /* @__PURE__ */ __name(function(t4) {
|
|
32932
|
+
return b3.s(s3 % 12 || 12, t4, "0");
|
|
32933
|
+
}, "d"), $2 = f3 || function(t4, e3, n4) {
|
|
32934
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
32935
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
32936
|
+
};
|
|
32937
|
+
return r3.replace(y2, function(t4, r4) {
|
|
32938
|
+
return r4 || function(t5) {
|
|
32939
|
+
switch (t5) {
|
|
32940
|
+
case "YY":
|
|
32941
|
+
return String(e2.$y).slice(-2);
|
|
32942
|
+
case "YYYY":
|
|
32943
|
+
return b3.s(e2.$y, 4, "0");
|
|
32944
|
+
case "M":
|
|
32945
|
+
return a3 + 1;
|
|
32946
|
+
case "MM":
|
|
32947
|
+
return b3.s(a3 + 1, 2, "0");
|
|
32948
|
+
case "MMM":
|
|
32949
|
+
return h3(n3.monthsShort, a3, c3, 3);
|
|
32950
|
+
case "MMMM":
|
|
32951
|
+
return h3(c3, a3);
|
|
32952
|
+
case "D":
|
|
32953
|
+
return e2.$D;
|
|
32954
|
+
case "DD":
|
|
32955
|
+
return b3.s(e2.$D, 2, "0");
|
|
32956
|
+
case "d":
|
|
32957
|
+
return String(e2.$W);
|
|
32958
|
+
case "dd":
|
|
32959
|
+
return h3(n3.weekdaysMin, e2.$W, o3, 2);
|
|
32960
|
+
case "ddd":
|
|
32961
|
+
return h3(n3.weekdaysShort, e2.$W, o3, 3);
|
|
32962
|
+
case "dddd":
|
|
32963
|
+
return o3[e2.$W];
|
|
32964
|
+
case "H":
|
|
32965
|
+
return String(s3);
|
|
32966
|
+
case "HH":
|
|
32967
|
+
return b3.s(s3, 2, "0");
|
|
32968
|
+
case "h":
|
|
32969
|
+
return d3(1);
|
|
32970
|
+
case "hh":
|
|
32971
|
+
return d3(2);
|
|
32972
|
+
case "a":
|
|
32973
|
+
return $2(s3, u3, true);
|
|
32974
|
+
case "A":
|
|
32975
|
+
return $2(s3, u3, false);
|
|
32976
|
+
case "m":
|
|
32977
|
+
return String(u3);
|
|
32978
|
+
case "mm":
|
|
32979
|
+
return b3.s(u3, 2, "0");
|
|
32980
|
+
case "s":
|
|
32981
|
+
return String(e2.$s);
|
|
32982
|
+
case "ss":
|
|
32983
|
+
return b3.s(e2.$s, 2, "0");
|
|
32984
|
+
case "SSS":
|
|
32985
|
+
return b3.s(e2.$ms, 3, "0");
|
|
32986
|
+
case "Z":
|
|
32987
|
+
return i2;
|
|
32988
|
+
}
|
|
32989
|
+
return null;
|
|
32990
|
+
}(t4) || i2.replace(":", "");
|
|
32991
|
+
});
|
|
32992
|
+
}, m3.utcOffset = function() {
|
|
32993
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
32994
|
+
}, m3.diff = function(r3, d3, l3) {
|
|
32995
|
+
var $2, y3 = this, M4 = b3.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = /* @__PURE__ */ __name(function() {
|
|
32996
|
+
return b3.m(y3, m4);
|
|
32997
|
+
}, "D");
|
|
32998
|
+
switch (M4) {
|
|
32999
|
+
case h2:
|
|
33000
|
+
$2 = D3() / 12;
|
|
33001
|
+
break;
|
|
33002
|
+
case c2:
|
|
33003
|
+
$2 = D3();
|
|
33004
|
+
break;
|
|
33005
|
+
case f2:
|
|
33006
|
+
$2 = D3() / 3;
|
|
33007
|
+
break;
|
|
33008
|
+
case o2:
|
|
33009
|
+
$2 = (g3 - v3) / 6048e5;
|
|
33010
|
+
break;
|
|
33011
|
+
case a2:
|
|
33012
|
+
$2 = (g3 - v3) / 864e5;
|
|
33013
|
+
break;
|
|
33014
|
+
case u2:
|
|
33015
|
+
$2 = g3 / n2;
|
|
33016
|
+
break;
|
|
33017
|
+
case s2:
|
|
33018
|
+
$2 = g3 / e;
|
|
33019
|
+
break;
|
|
33020
|
+
case i:
|
|
33021
|
+
$2 = g3 / t2;
|
|
33022
|
+
break;
|
|
33023
|
+
default:
|
|
33024
|
+
$2 = g3;
|
|
33025
|
+
}
|
|
33026
|
+
return l3 ? $2 : b3.a($2);
|
|
33027
|
+
}, m3.daysInMonth = function() {
|
|
33028
|
+
return this.endOf(c2).$D;
|
|
33029
|
+
}, m3.$locale = function() {
|
|
33030
|
+
return D2[this.$L];
|
|
33031
|
+
}, m3.locale = function(t3, e2) {
|
|
33032
|
+
if (!t3) return this.$L;
|
|
33033
|
+
var n3 = this.clone(), r3 = w2(t3, e2, true);
|
|
33034
|
+
return r3 && (n3.$L = r3), n3;
|
|
33035
|
+
}, m3.clone = function() {
|
|
33036
|
+
return b3.w(this.$d, this);
|
|
33037
|
+
}, m3.toDate = function() {
|
|
33038
|
+
return new Date(this.valueOf());
|
|
33039
|
+
}, m3.toJSON = function() {
|
|
33040
|
+
return this.isValid() ? this.toISOString() : null;
|
|
33041
|
+
}, m3.toISOString = function() {
|
|
33042
|
+
return this.$d.toISOString();
|
|
33043
|
+
}, m3.toString = function() {
|
|
33044
|
+
return this.$d.toUTCString();
|
|
33045
|
+
}, M3;
|
|
33046
|
+
}(), k2 = _2.prototype;
|
|
33047
|
+
return O2.prototype = k2, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
|
33048
|
+
k2[t3[1]] = function(e2) {
|
|
33049
|
+
return this.$g(e2, t3[0], t3[1]);
|
|
33050
|
+
};
|
|
33051
|
+
}), O2.extend = function(t3, e2) {
|
|
33052
|
+
return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
|
|
33053
|
+
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
|
33054
|
+
return O2(1e3 * t3);
|
|
33055
|
+
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
|
33056
|
+
});
|
|
33057
|
+
})(dayjs_min$1);
|
|
33058
|
+
return dayjs_min$1.exports;
|
|
33059
|
+
}
|
|
33060
|
+
__name(requireDayjs_min, "requireDayjs_min");
|
|
33061
|
+
var dayjs_minExports = requireDayjs_min();
|
|
33062
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
33008
33063
|
var localizedFormat$2 = { exports: {} };
|
|
33009
33064
|
var localizedFormat$1 = localizedFormat$2.exports;
|
|
33010
33065
|
var hasRequiredLocalizedFormat;
|
|
@@ -33244,7 +33299,7 @@ function removeUnwantedProps(props) {
|
|
|
33244
33299
|
return cleanedProps;
|
|
33245
33300
|
}
|
|
33246
33301
|
__name(removeUnwantedProps, "removeUnwantedProps");
|
|
33247
|
-
const LabelWithTooltipInfo = /* @__PURE__ */ __name(({ label, tooltipInfo, labelStyle }) => tooltipInfo ? /* @__PURE__ */ React.createElement("
|
|
33302
|
+
const LabelWithTooltipInfo = /* @__PURE__ */ __name(({ label, tooltipInfo, labelStyle }) => tooltipInfo ? /* @__PURE__ */ React.createElement("span", { style: __spreadValues({ display: "flex", alignItems: "center" }, labelStyle) }, label, " ", /* @__PURE__ */ React.createElement(
|
|
33248
33303
|
InfoHelper,
|
|
33249
33304
|
{
|
|
33250
33305
|
style: { marginLeft: "5px", marginTop: "-6px" },
|
|
@@ -50502,42 +50557,42 @@ function getFilterMenuItems(dataType) {
|
|
|
50502
50557
|
let filterMenuItems2 = [];
|
|
50503
50558
|
if (dataType === "string") {
|
|
50504
50559
|
filterMenuItems2 = [
|
|
50505
|
-
"
|
|
50506
|
-
"
|
|
50507
|
-
"
|
|
50508
|
-
"
|
|
50509
|
-
"
|
|
50510
|
-
"
|
|
50511
|
-
"
|
|
50512
|
-
"
|
|
50513
|
-
"
|
|
50514
|
-
"
|
|
50560
|
+
"contains",
|
|
50561
|
+
"notContains",
|
|
50562
|
+
"startsWith",
|
|
50563
|
+
"endsWith",
|
|
50564
|
+
"isExactly",
|
|
50565
|
+
"regex",
|
|
50566
|
+
"inList",
|
|
50567
|
+
"notInList",
|
|
50568
|
+
"isEmpty",
|
|
50569
|
+
"notEmpty"
|
|
50515
50570
|
];
|
|
50516
50571
|
} else if (dataType === "lookup") {
|
|
50517
50572
|
filterMenuItems2 = [
|
|
50518
|
-
"
|
|
50519
|
-
"
|
|
50520
|
-
"
|
|
50521
|
-
"
|
|
50522
|
-
"
|
|
50523
|
-
"
|
|
50573
|
+
"contains",
|
|
50574
|
+
"notContains",
|
|
50575
|
+
"startsWith",
|
|
50576
|
+
"endsWith",
|
|
50577
|
+
"isExactly",
|
|
50578
|
+
"regex"
|
|
50524
50579
|
];
|
|
50525
50580
|
} else if (dataType === "boolean") {
|
|
50526
|
-
filterMenuItems2 = ["
|
|
50581
|
+
filterMenuItems2 = ["true", "false"];
|
|
50527
50582
|
} else if (dataType === "number" || dataType === "integer") {
|
|
50528
50583
|
filterMenuItems2 = [
|
|
50529
|
-
"
|
|
50530
|
-
"
|
|
50531
|
-
"
|
|
50532
|
-
"
|
|
50533
|
-
"
|
|
50534
|
-
"
|
|
50535
|
-
"
|
|
50584
|
+
"greaterThan",
|
|
50585
|
+
"lessThan",
|
|
50586
|
+
"inRange",
|
|
50587
|
+
"outsideRange",
|
|
50588
|
+
"equalTo",
|
|
50589
|
+
"inList",
|
|
50590
|
+
"notInList"
|
|
50536
50591
|
];
|
|
50537
50592
|
} else if (dataType === "timestamp") {
|
|
50538
|
-
filterMenuItems2 = ["
|
|
50593
|
+
filterMenuItems2 = ["isBetween", "notBetween", "isBefore", "isAfter"];
|
|
50539
50594
|
}
|
|
50540
|
-
return filterMenuItems2;
|
|
50595
|
+
return filterMenuItems2.map((item) => startCase(item));
|
|
50541
50596
|
}
|
|
50542
50597
|
__name(getFilterMenuItems, "getFilterMenuItems");
|
|
50543
50598
|
const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
@@ -51038,7 +51093,7 @@ const RenderColumnHeader = /* @__PURE__ */ __name(({
|
|
|
51038
51093
|
if (order2 && order2.length) {
|
|
51039
51094
|
order2.forEach((order22) => {
|
|
51040
51095
|
const orderField = order22.replace("-", "");
|
|
51041
|
-
if (orderField ===
|
|
51096
|
+
if (orderField === path2) {
|
|
51042
51097
|
if (orderField === order22) {
|
|
51043
51098
|
ordering = "asc";
|
|
51044
51099
|
} else {
|
|
@@ -56125,8 +56180,6 @@ const DataTable = /* @__PURE__ */ __name((_u) => {
|
|
|
56125
56180
|
props = __spreadValues(__spreadValues({}, props), tableParams);
|
|
56126
56181
|
const queryParams = React.useMemo(() => {
|
|
56127
56182
|
if (!isTableParamsConnected) {
|
|
56128
|
-
const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
|
|
56129
|
-
const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
|
|
56130
56183
|
return getQueryParams({
|
|
56131
56184
|
doNotCoercePageSize,
|
|
56132
56185
|
currentParams,
|
|
@@ -56137,8 +56190,7 @@ const DataTable = /* @__PURE__ */ __name((_u) => {
|
|
|
56137
56190
|
schema: convertedSchema,
|
|
56138
56191
|
isInfinite,
|
|
56139
56192
|
isLocalCall,
|
|
56140
|
-
additionalFilter:
|
|
56141
|
-
additionalOrFilter: additionalOrFilterToUse,
|
|
56193
|
+
additionalFilter: props.additionalFilter,
|
|
56142
56194
|
noOrderError: props.noOrderError,
|
|
56143
56195
|
isCodeModel: props.isCodeModel,
|
|
56144
56196
|
ownProps: props
|
|
@@ -56361,7 +56413,7 @@ const DataTable = /* @__PURE__ */ __name((_u) => {
|
|
|
56361
56413
|
}) : !val2;
|
|
56362
56414
|
});
|
|
56363
56415
|
}
|
|
56364
|
-
if (noValsForField) {
|
|
56416
|
+
if (noValsForField && entities.length) {
|
|
56365
56417
|
return __spreadProps(__spreadValues({}, field), {
|
|
56366
56418
|
isHidden: true,
|
|
56367
56419
|
isForcedHidden: true
|
|
@@ -58526,7 +58578,7 @@ const DataTable = /* @__PURE__ */ __name((_u) => {
|
|
|
58526
58578
|
try {
|
|
58527
58579
|
const allEntities = yield safeQuery(fragment, {
|
|
58528
58580
|
variables: {
|
|
58529
|
-
|
|
58581
|
+
where: variables.where,
|
|
58530
58582
|
sort: variables.sort
|
|
58531
58583
|
},
|
|
58532
58584
|
canCancel: true
|
|
@@ -68891,6 +68943,7 @@ function parseCsvOrExcelFile(_0) {
|
|
|
68891
68943
|
}
|
|
68892
68944
|
__name(parseCsvOrExcelFile, "parseCsvOrExcelFile");
|
|
68893
68945
|
const filterFilesInZip = /* @__PURE__ */ __name((file, accepted) => __async(exports, null, function* () {
|
|
68946
|
+
var _a2, _b2, _c, _d;
|
|
68894
68947
|
if (!file || Array.isArray(file) && !file.length) return [];
|
|
68895
68948
|
const zipExtracted = yield extractZipFiles(file);
|
|
68896
68949
|
const acceptedFiles = [];
|
|
@@ -68900,9 +68953,12 @@ const filterFilesInZip = /* @__PURE__ */ __name((file, accepted) => __async(expo
|
|
|
68900
68953
|
}
|
|
68901
68954
|
}
|
|
68902
68955
|
if (acceptedFiles.length && acceptedFiles.length < zipExtracted.length)
|
|
68903
|
-
window.toastr.warning
|
|
68956
|
+
(_b2 = (_a2 = window == null ? void 0 : window.toastr) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(
|
|
68957
|
+
_a2,
|
|
68958
|
+
"Some files don't have the proper file extension."
|
|
68959
|
+
);
|
|
68904
68960
|
if (!acceptedFiles.length)
|
|
68905
|
-
window.toastr.warning("No files with the proper extension were found.");
|
|
68961
|
+
(_d = (_c = window == null ? void 0 : window.toastr) == null ? void 0 : _c.warning) == null ? void 0 : _d.call(_c, "No files with the proper extension were found.");
|
|
68906
68962
|
return acceptedFiles;
|
|
68907
68963
|
}), "filterFilesInZip");
|
|
68908
68964
|
function removeExt(filename) {
|
|
@@ -70883,8 +70939,12 @@ const Uploader = /* @__PURE__ */ __name(({
|
|
|
70883
70939
|
onClick: /* @__PURE__ */ __name((evt) => evt.preventDefault(), "onClick"),
|
|
70884
70940
|
multiple: fileLimit !== 1,
|
|
70885
70941
|
accept: simpleAccept ? simpleAccept.split(", ").map((acc) => acc.startsWith(".") ? acc : "." + acc).join(", ") : void 0,
|
|
70886
|
-
onDrop: /* @__PURE__ */ __name((_acceptedFiles, rejectedFiles) => __async(exports, null, function* () {
|
|
70942
|
+
onDrop: /* @__PURE__ */ __name((_acceptedFiles, rejectedFiles, e) => __async(exports, null, function* () {
|
|
70887
70943
|
var _a3, _b3;
|
|
70944
|
+
const parentDropzone = e.target.closest(".tg-dropzone");
|
|
70945
|
+
if (parentDropzone) {
|
|
70946
|
+
parentDropzone.blur();
|
|
70947
|
+
}
|
|
70888
70948
|
let acceptedFiles = [];
|
|
70889
70949
|
for (const file of _acceptedFiles) {
|
|
70890
70950
|
if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
|
|
@@ -77445,30 +77505,31 @@ function adjustRangeToDeletionOfAnotherRange(rangeToBeAdjusted, anotherRange, ma
|
|
|
77445
77505
|
anotherRange,
|
|
77446
77506
|
maxLength
|
|
77447
77507
|
);
|
|
77448
|
-
if (trimmedRange) {
|
|
77449
|
-
|
|
77450
|
-
anotherRange,
|
|
77451
|
-
maxLength
|
|
77452
|
-
);
|
|
77453
|
-
nonCircularDeletionRanges.forEach(function(nonCircularDeletionRange) {
|
|
77454
|
-
const deletionLength = nonCircularDeletionRange.end - nonCircularDeletionRange.start + 1;
|
|
77455
|
-
if (trimmedRange.start > trimmedRange.end) {
|
|
77456
|
-
if (nonCircularDeletionRange.start < trimmedRange.end) {
|
|
77457
|
-
trimmedRange.start -= deletionLength;
|
|
77458
|
-
trimmedRange.end -= deletionLength;
|
|
77459
|
-
} else if (nonCircularDeletionRange.start < trimmedRange.start) {
|
|
77460
|
-
trimmedRange.start -= deletionLength;
|
|
77461
|
-
} else ;
|
|
77462
|
-
} else {
|
|
77463
|
-
if (nonCircularDeletionRange.start < trimmedRange.start) {
|
|
77464
|
-
trimmedRange.start -= deletionLength;
|
|
77465
|
-
trimmedRange.end -= deletionLength;
|
|
77466
|
-
} else if (nonCircularDeletionRange.start < trimmedRange.end) {
|
|
77467
|
-
trimmedRange.end -= deletionLength;
|
|
77468
|
-
} else ;
|
|
77469
|
-
}
|
|
77470
|
-
});
|
|
77508
|
+
if (!trimmedRange) {
|
|
77509
|
+
return null;
|
|
77471
77510
|
}
|
|
77511
|
+
const nonCircularDeletionRanges = splitRangeIntoTwoPartsIfItIsCircular(
|
|
77512
|
+
anotherRange,
|
|
77513
|
+
maxLength
|
|
77514
|
+
);
|
|
77515
|
+
nonCircularDeletionRanges.forEach(function(nonCircularDeletionRange) {
|
|
77516
|
+
const deletionLength = nonCircularDeletionRange.end - nonCircularDeletionRange.start + 1;
|
|
77517
|
+
if (trimmedRange.start > trimmedRange.end) {
|
|
77518
|
+
if (nonCircularDeletionRange.start < trimmedRange.end) {
|
|
77519
|
+
trimmedRange.start -= deletionLength;
|
|
77520
|
+
trimmedRange.end -= deletionLength;
|
|
77521
|
+
} else if (nonCircularDeletionRange.start < trimmedRange.start) {
|
|
77522
|
+
trimmedRange.start -= deletionLength;
|
|
77523
|
+
} else ;
|
|
77524
|
+
} else {
|
|
77525
|
+
if (nonCircularDeletionRange.start < trimmedRange.start) {
|
|
77526
|
+
trimmedRange.start -= deletionLength;
|
|
77527
|
+
trimmedRange.end -= deletionLength;
|
|
77528
|
+
} else if (nonCircularDeletionRange.start < trimmedRange.end) {
|
|
77529
|
+
trimmedRange.end -= deletionLength;
|
|
77530
|
+
} else ;
|
|
77531
|
+
}
|
|
77532
|
+
});
|
|
77472
77533
|
return trimmedRange;
|
|
77473
77534
|
}
|
|
77474
77535
|
__name(adjustRangeToDeletionOfAnotherRange, "adjustRangeToDeletionOfAnotherRange");
|
|
@@ -92927,11 +92988,11 @@ function requireLib$3() {
|
|
|
92927
92988
|
if (hasRequiredLib$3) return lib$3;
|
|
92928
92989
|
hasRequiredLib$3 = 1;
|
|
92929
92990
|
var isNumber2 = requireLib$4();
|
|
92930
|
-
function
|
|
92991
|
+
function isInteger(value) {
|
|
92931
92992
|
return isNumber2(value) && value % 1 === 0;
|
|
92932
92993
|
}
|
|
92933
|
-
__name(
|
|
92934
|
-
lib$3 =
|
|
92994
|
+
__name(isInteger, "isInteger");
|
|
92995
|
+
lib$3 = isInteger;
|
|
92935
92996
|
return lib$3;
|
|
92936
92997
|
}
|
|
92937
92998
|
__name(requireLib$3, "requireLib$3");
|
|
@@ -92940,9 +93001,9 @@ var hasRequiredLib$2;
|
|
|
92940
93001
|
function requireLib$2() {
|
|
92941
93002
|
if (hasRequiredLib$2) return lib$2;
|
|
92942
93003
|
hasRequiredLib$2 = 1;
|
|
92943
|
-
var
|
|
93004
|
+
var isInteger = requireLib$3();
|
|
92944
93005
|
function isNonNegativeInteger(value) {
|
|
92945
|
-
return
|
|
93006
|
+
return isInteger(value) && value >= 0;
|
|
92946
93007
|
}
|
|
92947
93008
|
__name(isNonNegativeInteger, "isNonNegativeInteger");
|
|
92948
93009
|
lib$2 = isNonNegativeInteger;
|
|
@@ -96192,7 +96253,7 @@ var bufferpackExports = requireBufferpack();
|
|
|
96192
96253
|
const bufferpack = /* @__PURE__ */ getDefaultExportFromCjs(bufferpackExports);
|
|
96193
96254
|
var string_decoder = {};
|
|
96194
96255
|
var safeBuffer = { exports: {} };
|
|
96195
|
-
var buffer$
|
|
96256
|
+
var buffer$1 = {};
|
|
96196
96257
|
var base64Js = {};
|
|
96197
96258
|
var hasRequiredBase64Js;
|
|
96198
96259
|
function requireBase64Js() {
|
|
@@ -96394,7 +96455,7 @@ __name(requireIeee754, "requireIeee754");
|
|
|
96394
96455
|
*/
|
|
96395
96456
|
var hasRequiredBuffer;
|
|
96396
96457
|
function requireBuffer() {
|
|
96397
|
-
if (hasRequiredBuffer) return buffer$
|
|
96458
|
+
if (hasRequiredBuffer) return buffer$1;
|
|
96398
96459
|
hasRequiredBuffer = 1;
|
|
96399
96460
|
(function(exports2) {
|
|
96400
96461
|
var base64 = requireBase64Js();
|
|
@@ -97806,8 +97867,8 @@ function requireBuffer() {
|
|
|
97806
97867
|
}
|
|
97807
97868
|
return table2;
|
|
97808
97869
|
}();
|
|
97809
|
-
})(buffer$
|
|
97810
|
-
return buffer$
|
|
97870
|
+
})(buffer$1);
|
|
97871
|
+
return buffer$1;
|
|
97811
97872
|
}
|
|
97812
97873
|
__name(requireBuffer, "requireBuffer");
|
|
97813
97874
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -98129,7 +98190,6 @@ function requireString_decoder() {
|
|
|
98129
98190
|
__name(requireString_decoder, "requireString_decoder");
|
|
98130
98191
|
var string_decoderExports = requireString_decoder();
|
|
98131
98192
|
var bufferExports = requireBuffer();
|
|
98132
|
-
const buffer$1 = /* @__PURE__ */ getDefaultExportFromCjs(bufferExports);
|
|
98133
98193
|
const isBrowser$3 = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
98134
98194
|
function getArrayBufferFromFile(file) {
|
|
98135
98195
|
if (!isBrowser$3) {
|
|
@@ -98159,12 +98219,11 @@ function toArrayBuffer(buffer2) {
|
|
|
98159
98219
|
return ab;
|
|
98160
98220
|
}
|
|
98161
98221
|
__name(toArrayBuffer, "toArrayBuffer");
|
|
98162
|
-
const Buffer$1 = buffer$1.Buffer;
|
|
98163
98222
|
function snapgeneToJson(_0) {
|
|
98164
98223
|
return __async(this, arguments, function* (fileObj, options = {}) {
|
|
98165
98224
|
try {
|
|
98166
98225
|
let read2 = /* @__PURE__ */ __name(function(size, fmt) {
|
|
98167
|
-
const buffer2 = Buffer
|
|
98226
|
+
const buffer2 = bufferExports.Buffer.from(arrayBuffer.slice(offset4, size + offset4));
|
|
98168
98227
|
offset4 += size;
|
|
98169
98228
|
if (fmt) {
|
|
98170
98229
|
const decoder = new string_decoderExports.StringDecoder(fmt);
|
|
@@ -122210,7 +122269,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
122210
122269
|
input.click();
|
|
122211
122270
|
}
|
|
122212
122271
|
__name(showFileDialog, "showFileDialog");
|
|
122213
|
-
const version = "0.7.
|
|
122272
|
+
const version = "0.7.28";
|
|
122214
122273
|
const packageJson = {
|
|
122215
122274
|
version
|
|
122216
122275
|
};
|
|
@@ -135668,10 +135727,10 @@ function requireLodash() {
|
|
|
135668
135727
|
return value > other;
|
|
135669
135728
|
}
|
|
135670
135729
|
__name(baseGt2, "baseGt");
|
|
135671
|
-
function
|
|
135730
|
+
function baseHas2(object3, key) {
|
|
135672
135731
|
return object3 != null && hasOwnProperty2.call(object3, key);
|
|
135673
135732
|
}
|
|
135674
|
-
__name(
|
|
135733
|
+
__name(baseHas2, "baseHas");
|
|
135675
135734
|
function baseHasIn2(object3, key) {
|
|
135676
135735
|
return object3 != null && key in Object2(object3);
|
|
135677
135736
|
}
|
|
@@ -138689,10 +138748,10 @@ function requireLodash() {
|
|
|
138689
138748
|
return tag == funcTag2 || tag == genTag2 || tag == asyncTag2 || tag == proxyTag2;
|
|
138690
138749
|
}
|
|
138691
138750
|
__name(isFunction2, "isFunction");
|
|
138692
|
-
function
|
|
138751
|
+
function isInteger(value) {
|
|
138693
138752
|
return typeof value == "number" && value == toInteger2(value);
|
|
138694
138753
|
}
|
|
138695
|
-
__name(
|
|
138754
|
+
__name(isInteger, "isInteger");
|
|
138696
138755
|
function isLength2(value) {
|
|
138697
138756
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
138698
138757
|
}
|
|
@@ -138727,10 +138786,10 @@ function requireLodash() {
|
|
|
138727
138786
|
return baseIsNative2(value);
|
|
138728
138787
|
}
|
|
138729
138788
|
__name(isNative2, "isNative");
|
|
138730
|
-
function
|
|
138789
|
+
function isNull2(value) {
|
|
138731
138790
|
return value === null;
|
|
138732
138791
|
}
|
|
138733
|
-
__name(
|
|
138792
|
+
__name(isNull2, "isNull");
|
|
138734
138793
|
function isNil(value) {
|
|
138735
138794
|
return value == null;
|
|
138736
138795
|
}
|
|
@@ -138753,7 +138812,7 @@ function requireLodash() {
|
|
|
138753
138812
|
__name(isPlainObject2, "isPlainObject");
|
|
138754
138813
|
var isRegExp = nodeIsRegExp ? baseUnary2(nodeIsRegExp) : baseIsRegExp;
|
|
138755
138814
|
function isSafeInteger(value) {
|
|
138756
|
-
return
|
|
138815
|
+
return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER2;
|
|
138757
138816
|
}
|
|
138758
138817
|
__name(isSafeInteger, "isSafeInteger");
|
|
138759
138818
|
var isSet2 = nodeIsSet2 ? baseUnary2(nodeIsSet2) : baseIsSet2;
|
|
@@ -138939,7 +138998,7 @@ function requireLodash() {
|
|
|
138939
138998
|
}
|
|
138940
138999
|
__name(get7, "get");
|
|
138941
139000
|
function has4(object3, path2) {
|
|
138942
|
-
return object3 != null && hasPath2(object3, path2,
|
|
139001
|
+
return object3 != null && hasPath2(object3, path2, baseHas2);
|
|
138943
139002
|
}
|
|
138944
139003
|
__name(has4, "has");
|
|
138945
139004
|
function hasIn2(object3, path2) {
|
|
@@ -139890,7 +139949,7 @@ function requireLodash() {
|
|
|
139890
139949
|
lodash2.isError = isError;
|
|
139891
139950
|
lodash2.isFinite = isFinite2;
|
|
139892
139951
|
lodash2.isFunction = isFunction2;
|
|
139893
|
-
lodash2.isInteger =
|
|
139952
|
+
lodash2.isInteger = isInteger;
|
|
139894
139953
|
lodash2.isLength = isLength2;
|
|
139895
139954
|
lodash2.isMap = isMap2;
|
|
139896
139955
|
lodash2.isMatch = isMatch;
|
|
@@ -139898,7 +139957,7 @@ function requireLodash() {
|
|
|
139898
139957
|
lodash2.isNaN = isNaN2;
|
|
139899
139958
|
lodash2.isNative = isNative2;
|
|
139900
139959
|
lodash2.isNil = isNil;
|
|
139901
|
-
lodash2.isNull =
|
|
139960
|
+
lodash2.isNull = isNull2;
|
|
139902
139961
|
lodash2.isNumber = isNumber2;
|
|
139903
139962
|
lodash2.isObject = isObject2;
|
|
139904
139963
|
lodash2.isObjectLike = isObjectLike2;
|