@teselagen/ui 0.0.7 → 0.0.9
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.js +345 -790
- package/index.mjs +345 -790
- package/index.umd.js +345 -790
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1768,7 +1768,7 @@ function getFormattedMessage(message) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
__name(getFormattedMessage, "getFormattedMessage");
|
|
1770
1770
|
var visitedMessages;
|
|
1771
|
-
if (
|
|
1771
|
+
if (production !== "production") {
|
|
1772
1772
|
resetVisitedMessages();
|
|
1773
1773
|
}
|
|
1774
1774
|
function resetVisitedMessages() {
|
|
@@ -1866,7 +1866,7 @@ var defaultProps$3 = Object.assign({
|
|
|
1866
1866
|
}, pluginProps, renderProps);
|
|
1867
1867
|
var defaultKeys = Object.keys(defaultProps$3);
|
|
1868
1868
|
var setDefaultProps = /* @__PURE__ */ __name(function setDefaultProps2(partialProps) {
|
|
1869
|
-
if (
|
|
1869
|
+
if (production !== "production") {
|
|
1870
1870
|
validateProps(partialProps, []);
|
|
1871
1871
|
}
|
|
1872
1872
|
var keys3 = Object.keys(partialProps);
|
|
@@ -2107,7 +2107,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2107
2107
|
destroy
|
|
2108
2108
|
};
|
|
2109
2109
|
if (!props.render) {
|
|
2110
|
-
if (
|
|
2110
|
+
if (production !== "production") {
|
|
2111
2111
|
errorWhen(true, "render() function has not been supplied.");
|
|
2112
2112
|
}
|
|
2113
2113
|
return instance;
|
|
@@ -2556,7 +2556,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
instance.state.isMounted = true;
|
|
2558
2558
|
createPopperInstance();
|
|
2559
|
-
if (
|
|
2559
|
+
if (production !== "production") {
|
|
2560
2560
|
warnWhen(instance.props.interactive && appendTo === defaultProps$3.appendTo && node2.nextElementSibling !== popper2, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", "\n\n", "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", "\n\n", "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", "\n\n", "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
@@ -2625,7 +2625,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2625
2625
|
}
|
|
2626
2626
|
__name(clearDelayTimeouts, "clearDelayTimeouts");
|
|
2627
2627
|
function setProps(partialProps) {
|
|
2628
|
-
if (
|
|
2628
|
+
if (production !== "production") {
|
|
2629
2629
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
|
|
2630
2630
|
}
|
|
2631
2631
|
if (instance.state.isDestroyed) {
|
|
@@ -2671,7 +2671,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
__name(setContent2, "setContent");
|
|
2673
2673
|
function show() {
|
|
2674
|
-
if (
|
|
2674
|
+
if (production !== "production") {
|
|
2675
2675
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
|
|
2676
2676
|
}
|
|
2677
2677
|
var isAlreadyVisible = instance.state.isVisible;
|
|
@@ -2731,7 +2731,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
__name(show, "show");
|
|
2733
2733
|
function hide2() {
|
|
2734
|
-
if (
|
|
2734
|
+
if (production !== "production") {
|
|
2735
2735
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
|
|
2736
2736
|
}
|
|
2737
2737
|
var isAlreadyHidden = !instance.state.isVisible;
|
|
@@ -2774,7 +2774,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
__name(hide2, "hide");
|
|
2776
2776
|
function hideWithInteractivity(event) {
|
|
2777
|
-
if (
|
|
2777
|
+
if (production !== "production") {
|
|
2778
2778
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
|
|
2779
2779
|
}
|
|
2780
2780
|
getDocument().addEventListener("mousemove", debouncedOnMouseMove);
|
|
@@ -2783,7 +2783,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
__name(hideWithInteractivity, "hideWithInteractivity");
|
|
2785
2785
|
function unmount() {
|
|
2786
|
-
if (
|
|
2786
|
+
if (production !== "production") {
|
|
2787
2787
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
|
|
2788
2788
|
}
|
|
2789
2789
|
if (instance.state.isVisible) {
|
|
@@ -2807,7 +2807,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
__name(unmount, "unmount");
|
|
2809
2809
|
function destroy() {
|
|
2810
|
-
if (
|
|
2810
|
+
if (production !== "production") {
|
|
2811
2811
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
|
|
2812
2812
|
}
|
|
2813
2813
|
if (instance.state.isDestroyed) {
|
|
@@ -2828,7 +2828,7 @@ function tippy$1(targets, optionalProps) {
|
|
|
2828
2828
|
optionalProps = {};
|
|
2829
2829
|
}
|
|
2830
2830
|
var plugins = defaultProps$3.plugins.concat(optionalProps.plugins || []);
|
|
2831
|
-
if (
|
|
2831
|
+
if (production !== "production") {
|
|
2832
2832
|
validateTargets(targets);
|
|
2833
2833
|
validateProps(optionalProps, plugins);
|
|
2834
2834
|
}
|
|
@@ -2837,7 +2837,7 @@ function tippy$1(targets, optionalProps) {
|
|
|
2837
2837
|
plugins
|
|
2838
2838
|
});
|
|
2839
2839
|
var elements = getArrayOfElements(targets);
|
|
2840
|
-
if (
|
|
2840
|
+
if (production !== "production") {
|
|
2841
2841
|
var isSingleContentElement = isElement$1(passedProps.content);
|
|
2842
2842
|
var isMoreThanOneReferenceElement = elements.length > 1;
|
|
2843
2843
|
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", "\n\n", "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", "\n\n", "1) content: element.innerHTML\n", "2) content: () => element.cloneNode(true)"].join(" "));
|
|
@@ -3016,10 +3016,10 @@ var bind$4 = /* @__PURE__ */ __name(function bind(fn3, thisArg) {
|
|
|
3016
3016
|
}, "bind");
|
|
3017
3017
|
var bind$3 = bind$4;
|
|
3018
3018
|
var toString$8 = Object.prototype.toString;
|
|
3019
|
-
function isArray$
|
|
3019
|
+
function isArray$o(val) {
|
|
3020
3020
|
return toString$8.call(val) === "[object Array]";
|
|
3021
3021
|
}
|
|
3022
|
-
__name(isArray$
|
|
3022
|
+
__name(isArray$o, "isArray$o");
|
|
3023
3023
|
function isUndefined$1(val) {
|
|
3024
3024
|
return typeof val === "undefined";
|
|
3025
3025
|
}
|
|
@@ -3046,10 +3046,10 @@ function isArrayBufferView(val) {
|
|
|
3046
3046
|
return result;
|
|
3047
3047
|
}
|
|
3048
3048
|
__name(isArrayBufferView, "isArrayBufferView");
|
|
3049
|
-
function isString$
|
|
3049
|
+
function isString$3(val) {
|
|
3050
3050
|
return typeof val === "string";
|
|
3051
3051
|
}
|
|
3052
|
-
__name(isString$
|
|
3052
|
+
__name(isString$3, "isString$3");
|
|
3053
3053
|
function isNumber$2(val) {
|
|
3054
3054
|
return typeof val === "number";
|
|
3055
3055
|
}
|
|
@@ -3108,7 +3108,7 @@ function forEach$1(obj, fn3) {
|
|
|
3108
3108
|
if (typeof obj !== "object") {
|
|
3109
3109
|
obj = [obj];
|
|
3110
3110
|
}
|
|
3111
|
-
if (isArray$
|
|
3111
|
+
if (isArray$o(obj)) {
|
|
3112
3112
|
for (var i = 0, l2 = obj.length; i < l2; i++) {
|
|
3113
3113
|
fn3.call(null, obj[i], i, obj);
|
|
3114
3114
|
}
|
|
@@ -3128,7 +3128,7 @@ function merge$4() {
|
|
|
3128
3128
|
result[key] = merge$4(result[key], val);
|
|
3129
3129
|
} else if (isPlainObject$5(val)) {
|
|
3130
3130
|
result[key] = merge$4({}, val);
|
|
3131
|
-
} else if (isArray$
|
|
3131
|
+
} else if (isArray$o(val)) {
|
|
3132
3132
|
result[key] = val.slice();
|
|
3133
3133
|
} else {
|
|
3134
3134
|
result[key] = val;
|
|
@@ -3160,12 +3160,12 @@ function stripBOM(content2) {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
__name(stripBOM, "stripBOM");
|
|
3162
3162
|
var utils$c = {
|
|
3163
|
-
isArray: isArray$
|
|
3163
|
+
isArray: isArray$o,
|
|
3164
3164
|
isArrayBuffer,
|
|
3165
3165
|
isBuffer: isBuffer$9,
|
|
3166
3166
|
isFormData,
|
|
3167
3167
|
isArrayBufferView,
|
|
3168
|
-
isString: isString$
|
|
3168
|
+
isString: isString$3,
|
|
3169
3169
|
isNumber: isNumber$2,
|
|
3170
3170
|
isObject: isObject$h,
|
|
3171
3171
|
isPlainObject: isPlainObject$5,
|
|
@@ -4443,7 +4443,7 @@ function requireReactIs_development$1() {
|
|
|
4443
4443
|
if (hasRequiredReactIs_development$1)
|
|
4444
4444
|
return reactIs_development$1;
|
|
4445
4445
|
hasRequiredReactIs_development$1 = 1;
|
|
4446
|
-
if (
|
|
4446
|
+
if (production !== "production") {
|
|
4447
4447
|
(function() {
|
|
4448
4448
|
var hasSymbol2 = typeof Symbol === "function" && Symbol.for;
|
|
4449
4449
|
var REACT_ELEMENT_TYPE = hasSymbol2 ? Symbol.for("react.element") : 60103;
|
|
@@ -4613,7 +4613,7 @@ function requireReactIs() {
|
|
|
4613
4613
|
if (hasRequiredReactIs)
|
|
4614
4614
|
return reactIs$1.exports;
|
|
4615
4615
|
hasRequiredReactIs = 1;
|
|
4616
|
-
if (
|
|
4616
|
+
if (production === "production") {
|
|
4617
4617
|
reactIs$1.exports = requireReactIs_production_min$1();
|
|
4618
4618
|
} else {
|
|
4619
4619
|
reactIs$1.exports = requireReactIs_development$1();
|
|
@@ -4729,7 +4729,7 @@ function requireCheckPropTypes() {
|
|
|
4729
4729
|
hasRequiredCheckPropTypes = 1;
|
|
4730
4730
|
var printWarning = /* @__PURE__ */ __name(function() {
|
|
4731
4731
|
}, "printWarning");
|
|
4732
|
-
if (
|
|
4732
|
+
if (production !== "production") {
|
|
4733
4733
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
4734
4734
|
var loggedTypeFailures = {};
|
|
4735
4735
|
var has3 = requireHas();
|
|
@@ -4745,7 +4745,7 @@ function requireCheckPropTypes() {
|
|
|
4745
4745
|
}, "printWarning");
|
|
4746
4746
|
}
|
|
4747
4747
|
function checkPropTypes(typeSpecs, values, location2, componentName, getStack) {
|
|
4748
|
-
if (
|
|
4748
|
+
if (production !== "production") {
|
|
4749
4749
|
for (var typeSpecName in typeSpecs) {
|
|
4750
4750
|
if (has3(typeSpecs, typeSpecName)) {
|
|
4751
4751
|
var error;
|
|
@@ -4779,7 +4779,7 @@ function requireCheckPropTypes() {
|
|
|
4779
4779
|
}
|
|
4780
4780
|
__name(checkPropTypes, "checkPropTypes");
|
|
4781
4781
|
checkPropTypes.resetWarningCache = function() {
|
|
4782
|
-
if (
|
|
4782
|
+
if (production !== "production") {
|
|
4783
4783
|
loggedTypeFailures = {};
|
|
4784
4784
|
}
|
|
4785
4785
|
};
|
|
@@ -4800,7 +4800,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
4800
4800
|
var checkPropTypes = requireCheckPropTypes();
|
|
4801
4801
|
var printWarning = /* @__PURE__ */ __name(function() {
|
|
4802
4802
|
}, "printWarning");
|
|
4803
|
-
if (
|
|
4803
|
+
if (production !== "production") {
|
|
4804
4804
|
printWarning = /* @__PURE__ */ __name(function(text2) {
|
|
4805
4805
|
var message = "Warning: " + text2;
|
|
4806
4806
|
if (typeof console !== "undefined") {
|
|
@@ -4864,7 +4864,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
4864
4864
|
__name(PropTypeError, "PropTypeError");
|
|
4865
4865
|
PropTypeError.prototype = Error.prototype;
|
|
4866
4866
|
function createChainableTypeChecker(validate) {
|
|
4867
|
-
if (
|
|
4867
|
+
if (production !== "production") {
|
|
4868
4868
|
var manualPropTypeCallCache = {};
|
|
4869
4869
|
var manualPropTypeWarningCount = 0;
|
|
4870
4870
|
}
|
|
@@ -4878,7 +4878,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
4878
4878
|
);
|
|
4879
4879
|
err.name = "Invariant Violation";
|
|
4880
4880
|
throw err;
|
|
4881
|
-
} else if (
|
|
4881
|
+
} else if (production !== "production" && typeof console !== "undefined") {
|
|
4882
4882
|
var cacheKey = componentName + ":" + propName;
|
|
4883
4883
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4884
4884
|
manualPropTypeWarningCount < 3) {
|
|
@@ -4992,7 +4992,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
4992
4992
|
__name(createInstanceTypeChecker, "createInstanceTypeChecker");
|
|
4993
4993
|
function createEnumTypeChecker(expectedValues) {
|
|
4994
4994
|
if (!Array.isArray(expectedValues)) {
|
|
4995
|
-
if (
|
|
4995
|
+
if (production !== "production") {
|
|
4996
4996
|
if (arguments.length > 1) {
|
|
4997
4997
|
printWarning(
|
|
4998
4998
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -5049,7 +5049,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5049
5049
|
__name(createObjectOfTypeChecker, "createObjectOfTypeChecker");
|
|
5050
5050
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
5051
5051
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
5052
|
-
|
|
5052
|
+
production !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
5053
5053
|
return emptyFunctionThatReturnsNull;
|
|
5054
5054
|
}
|
|
5055
5055
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -5328,7 +5328,7 @@ function requireFactoryWithThrowingShims() {
|
|
|
5328
5328
|
return factoryWithThrowingShims;
|
|
5329
5329
|
}
|
|
5330
5330
|
__name(requireFactoryWithThrowingShims, "requireFactoryWithThrowingShims");
|
|
5331
|
-
if (
|
|
5331
|
+
if (production !== "production") {
|
|
5332
5332
|
var ReactIs$1 = requireReactIs();
|
|
5333
5333
|
var throwOnDirectAccess = true;
|
|
5334
5334
|
propTypes$1.exports = requireFactoryWithTypeCheckers()(ReactIs$1.isElement, throwOnDirectAccess);
|
|
@@ -7610,12 +7610,12 @@ var niceErrors = {
|
|
|
7610
7610
|
38: "'ownKeys()' can only be used on observable objects",
|
|
7611
7611
|
39: "'defineProperty()' can only be used on observable objects"
|
|
7612
7612
|
};
|
|
7613
|
-
var errors =
|
|
7613
|
+
var errors = production !== "production" ? niceErrors : {};
|
|
7614
7614
|
function die(error) {
|
|
7615
7615
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
7616
7616
|
args[_key - 1] = arguments[_key];
|
|
7617
7617
|
}
|
|
7618
|
-
if (
|
|
7618
|
+
if (production !== "production") {
|
|
7619
7619
|
var e = typeof error === "string" ? error : errors[error];
|
|
7620
7620
|
if (typeof e === "function")
|
|
7621
7621
|
e = e.apply(null, args);
|
|
@@ -7653,12 +7653,12 @@ var hasProxy = typeof Proxy !== "undefined";
|
|
|
7653
7653
|
var plainObjectString = /* @__PURE__ */ Object.toString();
|
|
7654
7654
|
function assertProxies() {
|
|
7655
7655
|
if (!hasProxy) {
|
|
7656
|
-
die(
|
|
7656
|
+
die(production !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
|
|
7657
7657
|
}
|
|
7658
7658
|
}
|
|
7659
7659
|
__name(assertProxies, "assertProxies");
|
|
7660
7660
|
function warnAboutProxyRequirement(msg) {
|
|
7661
|
-
if (
|
|
7661
|
+
if (production !== "production" && globalState.verifyProxies) {
|
|
7662
7662
|
die("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + msg);
|
|
7663
7663
|
}
|
|
7664
7664
|
}
|
|
@@ -7935,7 +7935,7 @@ function storeAnnotation(prototype, key, annotation) {
|
|
|
7935
7935
|
if (!hasProp(prototype, storedAnnotationsSymbol)) {
|
|
7936
7936
|
addHiddenProp(prototype, storedAnnotationsSymbol, _extends$o({}, prototype[storedAnnotationsSymbol]));
|
|
7937
7937
|
}
|
|
7938
|
-
if (
|
|
7938
|
+
if (production !== "production" && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key)) {
|
|
7939
7939
|
var fieldName = prototype.constructor.name + ".prototype." + key.toString();
|
|
7940
7940
|
die("'" + fieldName + "' is decorated with 'override', but no such decorated member was found on prototype.");
|
|
7941
7941
|
}
|
|
@@ -7946,7 +7946,7 @@ function storeAnnotation(prototype, key, annotation) {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
__name(storeAnnotation, "storeAnnotation");
|
|
7948
7948
|
function assertNotDecorated(prototype, annotation, key) {
|
|
7949
|
-
if (
|
|
7949
|
+
if (production !== "production" && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key)) {
|
|
7950
7950
|
var fieldName = prototype.constructor.name + ".prototype." + key.toString();
|
|
7951
7951
|
var currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_;
|
|
7952
7952
|
var requestedAnnotationType = annotation.annotationType_;
|
|
@@ -7956,7 +7956,7 @@ function assertNotDecorated(prototype, annotation, key) {
|
|
|
7956
7956
|
__name(assertNotDecorated, "assertNotDecorated");
|
|
7957
7957
|
function collectStoredAnnotations(target) {
|
|
7958
7958
|
if (!hasProp(target, storedAnnotationsSymbol)) {
|
|
7959
|
-
if (
|
|
7959
|
+
if (production !== "production" && !target[storedAnnotationsSymbol]) {
|
|
7960
7960
|
die("No annotations were passed to makeObservable, but no decorated members have been found either");
|
|
7961
7961
|
}
|
|
7962
7962
|
addHiddenProp(target, storedAnnotationsSymbol, _extends$o({}, target[storedAnnotationsSymbol]));
|
|
@@ -7968,7 +7968,7 @@ var $mobx = /* @__PURE__ */ Symbol("mobx administration");
|
|
|
7968
7968
|
var Atom = /* @__PURE__ */ function() {
|
|
7969
7969
|
function Atom2(name_) {
|
|
7970
7970
|
if (name_ === void 0) {
|
|
7971
|
-
name_ =
|
|
7971
|
+
name_ = production !== "production" ? "Atom@" + getNextId() : "Atom";
|
|
7972
7972
|
}
|
|
7973
7973
|
this.name_ = void 0;
|
|
7974
7974
|
this.isPendingUnobservation_ = false;
|
|
@@ -8119,7 +8119,7 @@ function shallowEnhancer(v2, _15, name) {
|
|
|
8119
8119
|
deep: false
|
|
8120
8120
|
});
|
|
8121
8121
|
}
|
|
8122
|
-
if (
|
|
8122
|
+
if (production !== "production") {
|
|
8123
8123
|
die("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets");
|
|
8124
8124
|
}
|
|
8125
8125
|
}
|
|
@@ -8129,7 +8129,7 @@ function referenceEnhancer(newValue) {
|
|
|
8129
8129
|
}
|
|
8130
8130
|
__name(referenceEnhancer, "referenceEnhancer");
|
|
8131
8131
|
function refStructEnhancer(v2, oldValue) {
|
|
8132
|
-
if (
|
|
8132
|
+
if (production !== "production" && isObservable(v2)) {
|
|
8133
8133
|
die("observable.struct should not be used with observable values");
|
|
8134
8134
|
}
|
|
8135
8135
|
if (deepEqual(v2, oldValue)) {
|
|
@@ -8176,7 +8176,7 @@ __name(extend_$1, "extend_$1");
|
|
|
8176
8176
|
function assertActionDescriptor(adm, _ref, key, _ref2) {
|
|
8177
8177
|
var annotationType_ = _ref.annotationType_;
|
|
8178
8178
|
var value = _ref2.value;
|
|
8179
|
-
if (
|
|
8179
|
+
if (production !== "production" && !isFunction$5(value)) {
|
|
8180
8180
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on properties with a function value."));
|
|
8181
8181
|
}
|
|
8182
8182
|
}
|
|
@@ -8247,7 +8247,7 @@ __name(extend_$2, "extend_$2");
|
|
|
8247
8247
|
function assertFlowDescriptor(adm, _ref, key, _ref2) {
|
|
8248
8248
|
var annotationType_ = _ref.annotationType_;
|
|
8249
8249
|
var value = _ref2.value;
|
|
8250
|
-
if (
|
|
8250
|
+
if (production !== "production" && !isFunction$5(value)) {
|
|
8251
8251
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on properties with a generator function value."));
|
|
8252
8252
|
}
|
|
8253
8253
|
}
|
|
@@ -8303,7 +8303,7 @@ __name(extend_$3, "extend_$3");
|
|
|
8303
8303
|
function assertComputedDescriptor(adm, _ref, key, _ref2) {
|
|
8304
8304
|
var annotationType_ = _ref.annotationType_;
|
|
8305
8305
|
var get5 = _ref2.get;
|
|
8306
|
-
if (
|
|
8306
|
+
if (production !== "production" && !get5) {
|
|
8307
8307
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on getter(+setter) properties."));
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|
|
@@ -8329,7 +8329,7 @@ function extend_$4(adm, key, descriptor2, proxyTrap) {
|
|
|
8329
8329
|
__name(extend_$4, "extend_$4");
|
|
8330
8330
|
function assertObservableDescriptor(adm, _ref, key, descriptor2) {
|
|
8331
8331
|
var annotationType_ = _ref.annotationType_;
|
|
8332
|
-
if (
|
|
8332
|
+
if (production !== "production" && !("value" in descriptor2)) {
|
|
8333
8333
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' cannot be used on getter/setter properties"));
|
|
8334
8334
|
}
|
|
8335
8335
|
}
|
|
@@ -8507,7 +8507,7 @@ var computed = /* @__PURE__ */ __name(function computed2(arg1, arg2) {
|
|
|
8507
8507
|
if (isPlainObject$4(arg1)) {
|
|
8508
8508
|
return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1));
|
|
8509
8509
|
}
|
|
8510
|
-
if (
|
|
8510
|
+
if (production !== "production") {
|
|
8511
8511
|
if (!isFunction$5(arg1)) {
|
|
8512
8512
|
die("First argument to `computed` should be an expression.");
|
|
8513
8513
|
}
|
|
@@ -8537,7 +8537,7 @@ function createAction(actionName, fn3, autoAction2, ref) {
|
|
|
8537
8537
|
if (autoAction2 === void 0) {
|
|
8538
8538
|
autoAction2 = false;
|
|
8539
8539
|
}
|
|
8540
|
-
if (
|
|
8540
|
+
if (production !== "production") {
|
|
8541
8541
|
if (!isFunction$5(fn3)) {
|
|
8542
8542
|
die("`action` can only be invoked on functions");
|
|
8543
8543
|
}
|
|
@@ -8570,9 +8570,9 @@ function executeAction(actionName, canRunAsDerivation, fn3, scope, args) {
|
|
|
8570
8570
|
}
|
|
8571
8571
|
__name(executeAction, "executeAction");
|
|
8572
8572
|
function _startAction(actionName, canRunAsDerivation, scope, args) {
|
|
8573
|
-
var notifySpy_ =
|
|
8573
|
+
var notifySpy_ = production !== "production" && isSpyEnabled() && !!actionName;
|
|
8574
8574
|
var startTime_ = 0;
|
|
8575
|
-
if (
|
|
8575
|
+
if (production !== "production" && notifySpy_) {
|
|
8576
8576
|
startTime_ = Date.now();
|
|
8577
8577
|
var flattenedArgs = args ? Array.from(args) : EMPTY_ARRAY;
|
|
8578
8578
|
spyReportStart({
|
|
@@ -8619,7 +8619,7 @@ function _endAction(runInfo) {
|
|
|
8619
8619
|
if (runInfo.runAsAction_) {
|
|
8620
8620
|
untrackedEnd(runInfo.prevDerivation_);
|
|
8621
8621
|
}
|
|
8622
|
-
if (
|
|
8622
|
+
if (production !== "production" && runInfo.notifySpy_) {
|
|
8623
8623
|
spyReportEnd({
|
|
8624
8624
|
time: Date.now() - runInfo.startTime_
|
|
8625
8625
|
});
|
|
@@ -8654,7 +8654,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
8654
8654
|
function ObservableValue2(value, enhancer, name_, notifySpy, equals) {
|
|
8655
8655
|
var _this;
|
|
8656
8656
|
if (name_ === void 0) {
|
|
8657
|
-
name_ =
|
|
8657
|
+
name_ = production !== "production" ? "ObservableValue@" + getNextId() : "ObservableValue";
|
|
8658
8658
|
}
|
|
8659
8659
|
if (notifySpy === void 0) {
|
|
8660
8660
|
notifySpy = true;
|
|
@@ -8675,7 +8675,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
8675
8675
|
_this.name_ = name_;
|
|
8676
8676
|
_this.equals = equals;
|
|
8677
8677
|
_this.value_ = enhancer(value, void 0, name_);
|
|
8678
|
-
if (
|
|
8678
|
+
if (production !== "production" && notifySpy && isSpyEnabled()) {
|
|
8679
8679
|
spyReport({
|
|
8680
8680
|
type: CREATE,
|
|
8681
8681
|
object: _assertThisInitialized$1(_this),
|
|
@@ -8699,7 +8699,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
8699
8699
|
newValue = this.prepareNewValue_(newValue);
|
|
8700
8700
|
if (newValue !== globalState.UNCHANGED) {
|
|
8701
8701
|
var notifySpy = isSpyEnabled();
|
|
8702
|
-
if (
|
|
8702
|
+
if (production !== "production" && notifySpy) {
|
|
8703
8703
|
spyReportStart({
|
|
8704
8704
|
type: UPDATE,
|
|
8705
8705
|
object: this,
|
|
@@ -8710,7 +8710,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
8710
8710
|
});
|
|
8711
8711
|
}
|
|
8712
8712
|
this.setNewValue_(newValue);
|
|
8713
|
-
if (
|
|
8713
|
+
if (production !== "production" && notifySpy) {
|
|
8714
8714
|
spyReportEnd();
|
|
8715
8715
|
}
|
|
8716
8716
|
}
|
|
@@ -8814,9 +8814,9 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
8814
8814
|
die(31);
|
|
8815
8815
|
}
|
|
8816
8816
|
this.derivation = options.get;
|
|
8817
|
-
this.name_ = options.name || (
|
|
8817
|
+
this.name_ = options.name || (production !== "production" ? "ComputedValue@" + getNextId() : "ComputedValue");
|
|
8818
8818
|
if (options.set) {
|
|
8819
|
-
this.setter_ = createAction(
|
|
8819
|
+
this.setter_ = createAction(production !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", options.set);
|
|
8820
8820
|
}
|
|
8821
8821
|
this.equals_ = options.equals || (options.compareStructural || options.struct ? comparer.structural : comparer["default"]);
|
|
8822
8822
|
this.scope_ = options.context;
|
|
@@ -8898,7 +8898,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
8898
8898
|
var changed = wasSuspended || isCaughtException(oldValue) || isCaughtException(newValue) || !this.equals_(oldValue, newValue);
|
|
8899
8899
|
if (changed) {
|
|
8900
8900
|
this.value_ = newValue;
|
|
8901
|
-
if (
|
|
8901
|
+
if (production !== "production" && isSpyEnabled()) {
|
|
8902
8902
|
spyReport({
|
|
8903
8903
|
observableKind: "computed",
|
|
8904
8904
|
debugObjectName: this.name_,
|
|
@@ -8936,7 +8936,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
8936
8936
|
if (!this.keepAlive_) {
|
|
8937
8937
|
clearObserving(this);
|
|
8938
8938
|
this.value_ = void 0;
|
|
8939
|
-
if (
|
|
8939
|
+
if (production !== "production" && this.isTracing_ !== TraceMode.NONE) {
|
|
8940
8940
|
console.log("[mobx.trace] Computed value '" + this.name_ + "' was suspended and it will recompute on the next access.");
|
|
8941
8941
|
}
|
|
8942
8942
|
}
|
|
@@ -8964,7 +8964,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
8964
8964
|
});
|
|
8965
8965
|
}, "observe_");
|
|
8966
8966
|
_proto.warnAboutUntrackedRead_ = /* @__PURE__ */ __name(function warnAboutUntrackedRead_() {
|
|
8967
|
-
if (!(
|
|
8967
|
+
if (!(production !== "production")) {
|
|
8968
8968
|
return;
|
|
8969
8969
|
}
|
|
8970
8970
|
if (this.isTracing_ !== TraceMode.NONE) {
|
|
@@ -9048,7 +9048,7 @@ function shouldCompute(derivation) {
|
|
|
9048
9048
|
}
|
|
9049
9049
|
__name(shouldCompute, "shouldCompute");
|
|
9050
9050
|
function checkIfStateModificationsAreAllowed(atom) {
|
|
9051
|
-
if (!(
|
|
9051
|
+
if (!(production !== "production")) {
|
|
9052
9052
|
return;
|
|
9053
9053
|
}
|
|
9054
9054
|
var hasObservers = atom.observers_.size > 0;
|
|
@@ -9058,7 +9058,7 @@ function checkIfStateModificationsAreAllowed(atom) {
|
|
|
9058
9058
|
}
|
|
9059
9059
|
__name(checkIfStateModificationsAreAllowed, "checkIfStateModificationsAreAllowed");
|
|
9060
9060
|
function checkIfStateReadsAreAllowed(observable2) {
|
|
9061
|
-
if (
|
|
9061
|
+
if (production !== "production" && !globalState.allowStateReads && globalState.observableRequiresReaction) {
|
|
9062
9062
|
console.warn("[mobx] Observable '" + observable2.name_ + "' being read outside a reactive context.");
|
|
9063
9063
|
}
|
|
9064
9064
|
}
|
|
@@ -9091,7 +9091,7 @@ function trackDerivedFunction(derivation, f2, context) {
|
|
|
9091
9091
|
}
|
|
9092
9092
|
__name(trackDerivedFunction, "trackDerivedFunction");
|
|
9093
9093
|
function warnAboutDerivationWithoutDependencies(derivation) {
|
|
9094
|
-
if (!(
|
|
9094
|
+
if (!(production !== "production")) {
|
|
9095
9095
|
return;
|
|
9096
9096
|
}
|
|
9097
9097
|
if (derivation.observing_.length !== 0) {
|
|
@@ -9334,7 +9334,7 @@ function propagateChanged(observable2) {
|
|
|
9334
9334
|
observable2.lowestObserverState_ = IDerivationState_.STALE_;
|
|
9335
9335
|
observable2.observers_.forEach(function(d2) {
|
|
9336
9336
|
if (d2.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {
|
|
9337
|
-
if (
|
|
9337
|
+
if (production !== "production" && d2.isTracing_ !== TraceMode.NONE) {
|
|
9338
9338
|
logTraceInfo(d2, observable2);
|
|
9339
9339
|
}
|
|
9340
9340
|
d2.onBecomeStale_();
|
|
@@ -9351,7 +9351,7 @@ function propagateChangeConfirmed(observable2) {
|
|
|
9351
9351
|
observable2.observers_.forEach(function(d2) {
|
|
9352
9352
|
if (d2.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) {
|
|
9353
9353
|
d2.dependenciesState_ = IDerivationState_.STALE_;
|
|
9354
|
-
if (
|
|
9354
|
+
if (production !== "production" && d2.isTracing_ !== TraceMode.NONE) {
|
|
9355
9355
|
logTraceInfo(d2, observable2);
|
|
9356
9356
|
}
|
|
9357
9357
|
} else if (d2.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {
|
|
@@ -9398,7 +9398,7 @@ __name(printDepTree, "printDepTree");
|
|
|
9398
9398
|
var Reaction = /* @__PURE__ */ function() {
|
|
9399
9399
|
function Reaction2(name_, onInvalidate_, errorHandler_, requiresObservable_) {
|
|
9400
9400
|
if (name_ === void 0) {
|
|
9401
|
-
name_ =
|
|
9401
|
+
name_ = production !== "production" ? "Reaction@" + getNextId() : "Reaction";
|
|
9402
9402
|
}
|
|
9403
9403
|
this.name_ = void 0;
|
|
9404
9404
|
this.onInvalidate_ = void 0;
|
|
@@ -9445,7 +9445,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
9445
9445
|
this.isTrackPending_ = true;
|
|
9446
9446
|
try {
|
|
9447
9447
|
this.onInvalidate_();
|
|
9448
|
-
if (
|
|
9448
|
+
if (production !== "production" && this.isTrackPending_ && isSpyEnabled()) {
|
|
9449
9449
|
spyReport({
|
|
9450
9450
|
name: this.name_,
|
|
9451
9451
|
type: "scheduled-reaction"
|
|
@@ -9466,7 +9466,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
9466
9466
|
startBatch();
|
|
9467
9467
|
var notify = isSpyEnabled();
|
|
9468
9468
|
var startTime;
|
|
9469
|
-
if (
|
|
9469
|
+
if (production !== "production" && notify) {
|
|
9470
9470
|
startTime = Date.now();
|
|
9471
9471
|
spyReportStart({
|
|
9472
9472
|
name: this.name_,
|
|
@@ -9486,7 +9486,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
9486
9486
|
if (isCaughtException(result)) {
|
|
9487
9487
|
this.reportExceptionInDerivation_(result.cause);
|
|
9488
9488
|
}
|
|
9489
|
-
if (
|
|
9489
|
+
if (production !== "production" && notify) {
|
|
9490
9490
|
spyReportEnd({
|
|
9491
9491
|
time: Date.now() - startTime
|
|
9492
9492
|
});
|
|
@@ -9502,13 +9502,13 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
9502
9502
|
if (globalState.disableErrorBoundaries) {
|
|
9503
9503
|
throw error;
|
|
9504
9504
|
}
|
|
9505
|
-
var message =
|
|
9505
|
+
var message = production !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
|
|
9506
9506
|
if (!globalState.suppressReactionErrors) {
|
|
9507
9507
|
console.error(message, error);
|
|
9508
|
-
} else if (
|
|
9508
|
+
} else if (production !== "production") {
|
|
9509
9509
|
console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)");
|
|
9510
9510
|
}
|
|
9511
|
-
if (
|
|
9511
|
+
if (production !== "production" && isSpyEnabled()) {
|
|
9512
9512
|
spyReport({
|
|
9513
9513
|
type: "error",
|
|
9514
9514
|
name: this.name_,
|
|
@@ -9563,7 +9563,7 @@ function runReactionsHelper() {
|
|
|
9563
9563
|
var iterations = 0;
|
|
9564
9564
|
while (allReactions.length > 0) {
|
|
9565
9565
|
if (++iterations === MAX_REACTION_ITERATIONS) {
|
|
9566
|
-
console.error(
|
|
9566
|
+
console.error(production !== "production" ? "Reaction doesn't converge to a stable state after " + MAX_REACTION_ITERATIONS + " iterations." + (" Probably there is a cycle in the reactive function: " + allReactions[0]) : "[mobx] cycle in reaction: " + allReactions[0]);
|
|
9567
9567
|
allReactions.splice(0);
|
|
9568
9568
|
}
|
|
9569
9569
|
var remainingReactions = allReactions.splice(0);
|
|
@@ -9585,11 +9585,11 @@ function setReactionScheduler(fn3) {
|
|
|
9585
9585
|
}
|
|
9586
9586
|
__name(setReactionScheduler, "setReactionScheduler");
|
|
9587
9587
|
function isSpyEnabled() {
|
|
9588
|
-
return
|
|
9588
|
+
return production !== "production" && !!globalState.spyListeners.length;
|
|
9589
9589
|
}
|
|
9590
9590
|
__name(isSpyEnabled, "isSpyEnabled");
|
|
9591
9591
|
function spyReport(event) {
|
|
9592
|
-
if (!(
|
|
9592
|
+
if (!(production !== "production")) {
|
|
9593
9593
|
return;
|
|
9594
9594
|
}
|
|
9595
9595
|
if (!globalState.spyListeners.length) {
|
|
@@ -9602,7 +9602,7 @@ function spyReport(event) {
|
|
|
9602
9602
|
}
|
|
9603
9603
|
__name(spyReport, "spyReport");
|
|
9604
9604
|
function spyReportStart(event) {
|
|
9605
|
-
if (!(
|
|
9605
|
+
if (!(production !== "production")) {
|
|
9606
9606
|
return;
|
|
9607
9607
|
}
|
|
9608
9608
|
var change = _extends$o({}, event, {
|
|
@@ -9616,7 +9616,7 @@ var END_EVENT = {
|
|
|
9616
9616
|
spyReportEnd: true
|
|
9617
9617
|
};
|
|
9618
9618
|
function spyReportEnd(change) {
|
|
9619
|
-
if (!(
|
|
9619
|
+
if (!(production !== "production")) {
|
|
9620
9620
|
return;
|
|
9621
9621
|
}
|
|
9622
9622
|
if (change) {
|
|
@@ -9630,7 +9630,7 @@ function spyReportEnd(change) {
|
|
|
9630
9630
|
}
|
|
9631
9631
|
__name(spyReportEnd, "spyReportEnd");
|
|
9632
9632
|
function spy(listener) {
|
|
9633
|
-
if (!(
|
|
9633
|
+
if (!(production !== "production")) {
|
|
9634
9634
|
console.warn("[mobx.spy] Is a no-op in production builds");
|
|
9635
9635
|
return function() {
|
|
9636
9636
|
};
|
|
@@ -9677,7 +9677,7 @@ function createActionFactory(autoAction2) {
|
|
|
9677
9677
|
autoAction: autoAction2
|
|
9678
9678
|
}));
|
|
9679
9679
|
}
|
|
9680
|
-
if (
|
|
9680
|
+
if (production !== "production") {
|
|
9681
9681
|
die("Invalid arguments for `action`");
|
|
9682
9682
|
}
|
|
9683
9683
|
}, "action");
|
|
@@ -9699,7 +9699,7 @@ function autorun(view, opts) {
|
|
|
9699
9699
|
if (opts === void 0) {
|
|
9700
9700
|
opts = EMPTY_OBJECT;
|
|
9701
9701
|
}
|
|
9702
|
-
if (
|
|
9702
|
+
if (production !== "production") {
|
|
9703
9703
|
if (!isFunction$5(view)) {
|
|
9704
9704
|
die("Autorun expects a function as first argument");
|
|
9705
9705
|
}
|
|
@@ -9707,7 +9707,7 @@ function autorun(view, opts) {
|
|
|
9707
9707
|
die("Autorun does not accept actions since actions are untrackable");
|
|
9708
9708
|
}
|
|
9709
9709
|
}
|
|
9710
|
-
var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name :
|
|
9710
|
+
var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : production !== "production" ? view.name || "Autorun@" + getNextId() : "Autorun";
|
|
9711
9711
|
var runSync = !opts.scheduler && !opts.delay;
|
|
9712
9712
|
var reaction;
|
|
9713
9713
|
if (runSync) {
|
|
@@ -9801,7 +9801,7 @@ function configure$1(options) {
|
|
|
9801
9801
|
}
|
|
9802
9802
|
});
|
|
9803
9803
|
globalState.allowStateReads = !globalState.observableRequiresReaction;
|
|
9804
|
-
if (
|
|
9804
|
+
if (production !== "production" && globalState.disableErrorBoundaries === true) {
|
|
9805
9805
|
console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled.");
|
|
9806
9806
|
}
|
|
9807
9807
|
if (options.reactionScheduler) {
|
|
@@ -9810,7 +9810,7 @@ function configure$1(options) {
|
|
|
9810
9810
|
}
|
|
9811
9811
|
__name(configure$1, "configure$1");
|
|
9812
9812
|
function extendObservable(target, properties, annotations, options) {
|
|
9813
|
-
if (
|
|
9813
|
+
if (production !== "production") {
|
|
9814
9814
|
if (arguments.length > 4) {
|
|
9815
9815
|
die("'extendObservable' expected 2-4 arguments");
|
|
9816
9816
|
}
|
|
@@ -9877,7 +9877,7 @@ var flow$2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function flow(
|
|
|
9877
9877
|
if (isStringish(arg2)) {
|
|
9878
9878
|
return storeAnnotation(arg1, arg2, flowAnnotation);
|
|
9879
9879
|
}
|
|
9880
|
-
if (
|
|
9880
|
+
if (production !== "production" && arguments.length !== 1) {
|
|
9881
9881
|
die("Flow expects single argument with generator function");
|
|
9882
9882
|
}
|
|
9883
9883
|
var generator = arg1;
|
|
@@ -9963,7 +9963,7 @@ function _isObservable(value, property2) {
|
|
|
9963
9963
|
return false;
|
|
9964
9964
|
}
|
|
9965
9965
|
if (property2 !== void 0) {
|
|
9966
|
-
if (
|
|
9966
|
+
if (production !== "production" && (isObservableMap(value) || isObservableArray(value))) {
|
|
9967
9967
|
return die("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");
|
|
9968
9968
|
}
|
|
9969
9969
|
if (isObservableObject(value)) {
|
|
@@ -9975,14 +9975,14 @@ function _isObservable(value, property2) {
|
|
|
9975
9975
|
}
|
|
9976
9976
|
__name(_isObservable, "_isObservable");
|
|
9977
9977
|
function isObservable(value) {
|
|
9978
|
-
if (
|
|
9978
|
+
if (production !== "production" && arguments.length !== 1) {
|
|
9979
9979
|
die("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property");
|
|
9980
9980
|
}
|
|
9981
9981
|
return _isObservable(value);
|
|
9982
9982
|
}
|
|
9983
9983
|
__name(isObservable, "isObservable");
|
|
9984
9984
|
function trace() {
|
|
9985
|
-
if (!(
|
|
9985
|
+
if (!(production !== "production")) {
|
|
9986
9986
|
die("trace() is not available in production builds");
|
|
9987
9987
|
}
|
|
9988
9988
|
var enterBreakPoint = false;
|
|
@@ -10031,7 +10031,7 @@ function getAdm(target) {
|
|
|
10031
10031
|
__name(getAdm, "getAdm");
|
|
10032
10032
|
var objectProxyTraps = {
|
|
10033
10033
|
has: /* @__PURE__ */ __name(function has(target, name) {
|
|
10034
|
-
if (
|
|
10034
|
+
if (production !== "production" && globalState.trackingDerivation) {
|
|
10035
10035
|
warnAboutProxyRequirement("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.");
|
|
10036
10036
|
}
|
|
10037
10037
|
return getAdm(target).has_(name);
|
|
@@ -10044,14 +10044,14 @@ var objectProxyTraps = {
|
|
|
10044
10044
|
if (!isStringish(name)) {
|
|
10045
10045
|
return false;
|
|
10046
10046
|
}
|
|
10047
|
-
if (
|
|
10047
|
+
if (production !== "production" && !getAdm(target).values_.has(name)) {
|
|
10048
10048
|
warnAboutProxyRequirement("add a new observable property through direct assignment. Use 'set' from 'mobx' instead.");
|
|
10049
10049
|
}
|
|
10050
10050
|
return (_getAdm$set_ = getAdm(target).set_(name, value, true)) != null ? _getAdm$set_ : true;
|
|
10051
10051
|
}, "set"),
|
|
10052
10052
|
deleteProperty: /* @__PURE__ */ __name(function deleteProperty(target, name) {
|
|
10053
10053
|
var _getAdm$delete_;
|
|
10054
|
-
if (
|
|
10054
|
+
if (production !== "production") {
|
|
10055
10055
|
warnAboutProxyRequirement("delete properties from an observable object. Use 'remove' from 'mobx' instead.");
|
|
10056
10056
|
}
|
|
10057
10057
|
if (!isStringish(name)) {
|
|
@@ -10061,13 +10061,13 @@ var objectProxyTraps = {
|
|
|
10061
10061
|
}, "deleteProperty"),
|
|
10062
10062
|
defineProperty: /* @__PURE__ */ __name(function defineProperty(target, name, descriptor2) {
|
|
10063
10063
|
var _getAdm$definePropert;
|
|
10064
|
-
if (
|
|
10064
|
+
if (production !== "production") {
|
|
10065
10065
|
warnAboutProxyRequirement("define property on an observable object. Use 'defineProperty' from 'mobx' instead.");
|
|
10066
10066
|
}
|
|
10067
10067
|
return (_getAdm$definePropert = getAdm(target).defineProperty_(name, descriptor2)) != null ? _getAdm$definePropert : true;
|
|
10068
10068
|
}, "defineProperty"),
|
|
10069
10069
|
ownKeys: /* @__PURE__ */ __name(function ownKeys(target) {
|
|
10070
|
-
if (
|
|
10070
|
+
if (production !== "production" && globalState.trackingDerivation) {
|
|
10071
10071
|
warnAboutProxyRequirement("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead.");
|
|
10072
10072
|
}
|
|
10073
10073
|
return getAdm(target).ownKeys_();
|
|
@@ -10150,7 +10150,7 @@ function makeObservable(target, annotations, options) {
|
|
|
10150
10150
|
startBatch();
|
|
10151
10151
|
try {
|
|
10152
10152
|
var _annotations;
|
|
10153
|
-
if (
|
|
10153
|
+
if (production !== "production" && annotations && target[storedAnnotationsSymbol]) {
|
|
10154
10154
|
die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
|
|
10155
10155
|
}
|
|
10156
10156
|
(_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target);
|
|
@@ -10202,7 +10202,7 @@ var arrayTraps = {
|
|
|
10202
10202
|
var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
10203
10203
|
function ObservableArrayAdministration2(name, enhancer, owned_, legacyMode_) {
|
|
10204
10204
|
if (name === void 0) {
|
|
10205
|
-
name =
|
|
10205
|
+
name = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
10206
10206
|
}
|
|
10207
10207
|
this.owned_ = void 0;
|
|
10208
10208
|
this.legacyMode_ = void 0;
|
|
@@ -10218,7 +10218,7 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
10218
10218
|
this.legacyMode_ = legacyMode_;
|
|
10219
10219
|
this.atom_ = new Atom(name);
|
|
10220
10220
|
this.enhancer_ = function(newV, oldV) {
|
|
10221
|
-
return enhancer(newV, oldV,
|
|
10221
|
+
return enhancer(newV, oldV, production !== "production" ? name + "[..]" : "ObservableArray[..]");
|
|
10222
10222
|
};
|
|
10223
10223
|
}
|
|
10224
10224
|
__name(ObservableArrayAdministration2, "ObservableArrayAdministration");
|
|
@@ -10325,7 +10325,7 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
10325
10325
|
newItems = newItems.length === 0 ? newItems : newItems.map(function(v2) {
|
|
10326
10326
|
return _this.enhancer_(v2, void 0);
|
|
10327
10327
|
});
|
|
10328
|
-
if (this.legacyMode_ ||
|
|
10328
|
+
if (this.legacyMode_ || production !== "production") {
|
|
10329
10329
|
var lengthDelta = newItems.length - deleteCount;
|
|
10330
10330
|
this.updateArrayLength_(length, lengthDelta);
|
|
10331
10331
|
}
|
|
@@ -10364,14 +10364,14 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
10364
10364
|
newValue,
|
|
10365
10365
|
oldValue
|
|
10366
10366
|
} : null;
|
|
10367
|
-
if (
|
|
10367
|
+
if (production !== "production" && notifySpy) {
|
|
10368
10368
|
spyReportStart(change);
|
|
10369
10369
|
}
|
|
10370
10370
|
this.atom_.reportChanged();
|
|
10371
10371
|
if (notify) {
|
|
10372
10372
|
notifyListeners(this, change);
|
|
10373
10373
|
}
|
|
10374
|
-
if (
|
|
10374
|
+
if (production !== "production" && notifySpy) {
|
|
10375
10375
|
spyReportEnd();
|
|
10376
10376
|
}
|
|
10377
10377
|
}, "notifyArrayChildUpdate_");
|
|
@@ -10389,20 +10389,20 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
10389
10389
|
removedCount: removed.length,
|
|
10390
10390
|
addedCount: added.length
|
|
10391
10391
|
} : null;
|
|
10392
|
-
if (
|
|
10392
|
+
if (production !== "production" && notifySpy) {
|
|
10393
10393
|
spyReportStart(change);
|
|
10394
10394
|
}
|
|
10395
10395
|
this.atom_.reportChanged();
|
|
10396
10396
|
if (notify) {
|
|
10397
10397
|
notifyListeners(this, change);
|
|
10398
10398
|
}
|
|
10399
|
-
if (
|
|
10399
|
+
if (production !== "production" && notifySpy) {
|
|
10400
10400
|
spyReportEnd();
|
|
10401
10401
|
}
|
|
10402
10402
|
}, "notifyArraySplice_");
|
|
10403
10403
|
_proto.get_ = /* @__PURE__ */ __name(function get_(index2) {
|
|
10404
10404
|
if (this.legacyMode_ && index2 >= this.values_.length) {
|
|
10405
|
-
console.warn(
|
|
10405
|
+
console.warn(production !== "production" ? "[mobx.array] Attempt to read an array index (" + index2 + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX" : "[mobx] Out of bounds read: " + index2);
|
|
10406
10406
|
return void 0;
|
|
10407
10407
|
}
|
|
10408
10408
|
this.atom_.reportObserved();
|
|
@@ -10447,7 +10447,7 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
10447
10447
|
}();
|
|
10448
10448
|
function createObservableArray(initialValues, enhancer, name, owned) {
|
|
10449
10449
|
if (name === void 0) {
|
|
10450
|
-
name =
|
|
10450
|
+
name = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
10451
10451
|
}
|
|
10452
10452
|
if (owned === void 0) {
|
|
10453
10453
|
owned = false;
|
|
@@ -10627,7 +10627,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10627
10627
|
enhancer_ = deepEnhancer;
|
|
10628
10628
|
}
|
|
10629
10629
|
if (name_ === void 0) {
|
|
10630
|
-
name_ =
|
|
10630
|
+
name_ = production !== "production" ? "ObservableMap@" + getNextId() : "ObservableMap";
|
|
10631
10631
|
}
|
|
10632
10632
|
this.enhancer_ = void 0;
|
|
10633
10633
|
this.name_ = void 0;
|
|
@@ -10643,7 +10643,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10643
10643
|
if (!isFunction$5(Map)) {
|
|
10644
10644
|
die(18);
|
|
10645
10645
|
}
|
|
10646
|
-
this.keysAtom_ = createAtom(
|
|
10646
|
+
this.keysAtom_ = createAtom(production !== "production" ? this.name_ + ".keys()" : "ObservableMap.keys()");
|
|
10647
10647
|
this.data_ = /* @__PURE__ */ new Map();
|
|
10648
10648
|
this.hasMap_ = /* @__PURE__ */ new Map();
|
|
10649
10649
|
allowStateChanges(true, function() {
|
|
@@ -10662,7 +10662,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10662
10662
|
}
|
|
10663
10663
|
var entry = this.hasMap_.get(key);
|
|
10664
10664
|
if (!entry) {
|
|
10665
|
-
var newEntry = entry = new ObservableValue(this.has_(key), referenceEnhancer,
|
|
10665
|
+
var newEntry = entry = new ObservableValue(this.has_(key), referenceEnhancer, production !== "production" ? this.name_ + "." + stringifyKey(key) + "?" : "ObservableMap.key?", false);
|
|
10666
10666
|
this.hasMap_.set(key, newEntry);
|
|
10667
10667
|
onBecomeUnobserved(newEntry, function() {
|
|
10668
10668
|
return _this2.hasMap_["delete"](key);
|
|
@@ -10715,7 +10715,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10715
10715
|
oldValue: this.data_.get(key).value_,
|
|
10716
10716
|
name: key
|
|
10717
10717
|
} : null;
|
|
10718
|
-
if (
|
|
10718
|
+
if (production !== "production" && notifySpy) {
|
|
10719
10719
|
spyReportStart(_change);
|
|
10720
10720
|
}
|
|
10721
10721
|
transaction(function() {
|
|
@@ -10729,7 +10729,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10729
10729
|
if (notify) {
|
|
10730
10730
|
notifyListeners(this, _change);
|
|
10731
10731
|
}
|
|
10732
|
-
if (
|
|
10732
|
+
if (production !== "production" && notifySpy) {
|
|
10733
10733
|
spyReportEnd();
|
|
10734
10734
|
}
|
|
10735
10735
|
return true;
|
|
@@ -10751,14 +10751,14 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10751
10751
|
name: key,
|
|
10752
10752
|
newValue
|
|
10753
10753
|
} : null;
|
|
10754
|
-
if (
|
|
10754
|
+
if (production !== "production" && notifySpy) {
|
|
10755
10755
|
spyReportStart(change);
|
|
10756
10756
|
}
|
|
10757
10757
|
observable2.setNewValue_(newValue);
|
|
10758
10758
|
if (notify) {
|
|
10759
10759
|
notifyListeners(this, change);
|
|
10760
10760
|
}
|
|
10761
|
-
if (
|
|
10761
|
+
if (production !== "production" && notifySpy) {
|
|
10762
10762
|
spyReportEnd();
|
|
10763
10763
|
}
|
|
10764
10764
|
}
|
|
@@ -10768,7 +10768,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10768
10768
|
checkIfStateModificationsAreAllowed(this.keysAtom_);
|
|
10769
10769
|
transaction(function() {
|
|
10770
10770
|
var _this4$hasMap_$get;
|
|
10771
|
-
var observable2 = new ObservableValue(newValue, _this4.enhancer_,
|
|
10771
|
+
var observable2 = new ObservableValue(newValue, _this4.enhancer_, production !== "production" ? _this4.name_ + "." + stringifyKey(key) : "ObservableMap.key", false);
|
|
10772
10772
|
_this4.data_.set(key, observable2);
|
|
10773
10773
|
newValue = observable2.value_;
|
|
10774
10774
|
(_this4$hasMap_$get = _this4.hasMap_.get(key)) == null ? void 0 : _this4$hasMap_$get.setNewValue_(true);
|
|
@@ -10784,13 +10784,13 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10784
10784
|
name: key,
|
|
10785
10785
|
newValue
|
|
10786
10786
|
} : null;
|
|
10787
|
-
if (
|
|
10787
|
+
if (production !== "production" && notifySpy) {
|
|
10788
10788
|
spyReportStart(change);
|
|
10789
10789
|
}
|
|
10790
10790
|
if (notify) {
|
|
10791
10791
|
notifyListeners(this, change);
|
|
10792
10792
|
}
|
|
10793
|
-
if (
|
|
10793
|
+
if (production !== "production" && notifySpy) {
|
|
10794
10794
|
spyReportEnd();
|
|
10795
10795
|
}
|
|
10796
10796
|
}, "addValue_");
|
|
@@ -10943,7 +10943,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
10943
10943
|
return Array.from(this);
|
|
10944
10944
|
}, "toJSON");
|
|
10945
10945
|
_proto.observe_ = /* @__PURE__ */ __name(function observe_(listener, fireImmediately) {
|
|
10946
|
-
if (
|
|
10946
|
+
if (production !== "production" && fireImmediately === true) {
|
|
10947
10947
|
die("`observe` doesn't support fireImmediately=true in combination with maps.");
|
|
10948
10948
|
}
|
|
10949
10949
|
return registerListener(this, listener);
|
|
@@ -10992,7 +10992,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
10992
10992
|
enhancer = deepEnhancer;
|
|
10993
10993
|
}
|
|
10994
10994
|
if (name_ === void 0) {
|
|
10995
|
-
name_ =
|
|
10995
|
+
name_ = production !== "production" ? "ObservableSet@" + getNextId() : "ObservableSet";
|
|
10996
10996
|
}
|
|
10997
10997
|
this.name_ = void 0;
|
|
10998
10998
|
this[$mobx] = ObservableSetMarker;
|
|
@@ -11057,7 +11057,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
11057
11057
|
_this2.data_.add(_this2.enhancer_(value, void 0));
|
|
11058
11058
|
_this2.atom_.reportChanged();
|
|
11059
11059
|
});
|
|
11060
|
-
var notifySpy =
|
|
11060
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11061
11061
|
var notify = hasListeners(this);
|
|
11062
11062
|
var _change = notify || notifySpy ? {
|
|
11063
11063
|
observableKind: "set",
|
|
@@ -11066,13 +11066,13 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
11066
11066
|
object: this,
|
|
11067
11067
|
newValue: value
|
|
11068
11068
|
} : null;
|
|
11069
|
-
if (notifySpy &&
|
|
11069
|
+
if (notifySpy && production !== "production") {
|
|
11070
11070
|
spyReportStart(_change);
|
|
11071
11071
|
}
|
|
11072
11072
|
if (notify) {
|
|
11073
11073
|
notifyListeners(this, _change);
|
|
11074
11074
|
}
|
|
11075
|
-
if (notifySpy &&
|
|
11075
|
+
if (notifySpy && production !== "production") {
|
|
11076
11076
|
spyReportEnd();
|
|
11077
11077
|
}
|
|
11078
11078
|
}
|
|
@@ -11091,7 +11091,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
11091
11091
|
}
|
|
11092
11092
|
}
|
|
11093
11093
|
if (this.has(value)) {
|
|
11094
|
-
var notifySpy =
|
|
11094
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11095
11095
|
var notify = hasListeners(this);
|
|
11096
11096
|
var _change2 = notify || notifySpy ? {
|
|
11097
11097
|
observableKind: "set",
|
|
@@ -11100,7 +11100,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
11100
11100
|
object: this,
|
|
11101
11101
|
oldValue: value
|
|
11102
11102
|
} : null;
|
|
11103
|
-
if (notifySpy &&
|
|
11103
|
+
if (notifySpy && production !== "production") {
|
|
11104
11104
|
spyReportStart(_change2);
|
|
11105
11105
|
}
|
|
11106
11106
|
transaction(function() {
|
|
@@ -11110,7 +11110,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
11110
11110
|
if (notify) {
|
|
11111
11111
|
notifyListeners(this, _change2);
|
|
11112
11112
|
}
|
|
11113
|
-
if (notifySpy &&
|
|
11113
|
+
if (notifySpy && production !== "production") {
|
|
11114
11114
|
spyReportEnd();
|
|
11115
11115
|
}
|
|
11116
11116
|
return true;
|
|
@@ -11180,7 +11180,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
11180
11180
|
return this;
|
|
11181
11181
|
}, "replace");
|
|
11182
11182
|
_proto.observe_ = /* @__PURE__ */ __name(function observe_(listener, fireImmediately) {
|
|
11183
|
-
if (
|
|
11183
|
+
if (production !== "production" && fireImmediately === true) {
|
|
11184
11184
|
die("`observe` doesn't support fireImmediately=true in combination with sets.");
|
|
11185
11185
|
}
|
|
11186
11186
|
return registerListener(this, listener);
|
|
@@ -11237,12 +11237,12 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11237
11237
|
this.values_ = values_;
|
|
11238
11238
|
this.name_ = name_;
|
|
11239
11239
|
this.defaultAnnotation_ = defaultAnnotation_;
|
|
11240
|
-
this.keysAtom_ = new Atom(
|
|
11240
|
+
this.keysAtom_ = new Atom(production !== "production" ? this.name_ + ".keys" : "ObservableObject.keys");
|
|
11241
11241
|
this.isPlainObject_ = isPlainObject$4(this.target_);
|
|
11242
|
-
if (
|
|
11242
|
+
if (production !== "production" && !isAnnotation(this.defaultAnnotation_)) {
|
|
11243
11243
|
die("defaultAnnotation must be valid annotation");
|
|
11244
11244
|
}
|
|
11245
|
-
if (
|
|
11245
|
+
if (production !== "production") {
|
|
11246
11246
|
this.appliedAnnotations_ = {};
|
|
11247
11247
|
}
|
|
11248
11248
|
}
|
|
@@ -11272,7 +11272,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11272
11272
|
newValue = observable2.prepareNewValue_(newValue);
|
|
11273
11273
|
if (newValue !== globalState.UNCHANGED) {
|
|
11274
11274
|
var notify = hasListeners(this);
|
|
11275
|
-
var notifySpy =
|
|
11275
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11276
11276
|
var _change = notify || notifySpy ? {
|
|
11277
11277
|
type: UPDATE,
|
|
11278
11278
|
observableKind: "object",
|
|
@@ -11282,14 +11282,14 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11282
11282
|
name: key,
|
|
11283
11283
|
newValue
|
|
11284
11284
|
} : null;
|
|
11285
|
-
if (
|
|
11285
|
+
if (production !== "production" && notifySpy) {
|
|
11286
11286
|
spyReportStart(_change);
|
|
11287
11287
|
}
|
|
11288
11288
|
observable2.setNewValue_(newValue);
|
|
11289
11289
|
if (notify) {
|
|
11290
11290
|
notifyListeners(this, _change);
|
|
11291
11291
|
}
|
|
11292
|
-
if (
|
|
11292
|
+
if (production !== "production" && notifySpy) {
|
|
11293
11293
|
spyReportEnd();
|
|
11294
11294
|
}
|
|
11295
11295
|
}
|
|
@@ -11330,7 +11330,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11330
11330
|
this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
|
|
11331
11331
|
var entry = this.pendingKeys_.get(key);
|
|
11332
11332
|
if (!entry) {
|
|
11333
|
-
entry = new ObservableValue(key in this.target_, referenceEnhancer,
|
|
11333
|
+
entry = new ObservableValue(key in this.target_, referenceEnhancer, production !== "production" ? this.name_ + "." + stringifyKey(key) + "?" : "ObservableObject.key?", false);
|
|
11334
11334
|
this.pendingKeys_.set(key, entry);
|
|
11335
11335
|
}
|
|
11336
11336
|
return entry.get();
|
|
@@ -11460,7 +11460,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11460
11460
|
} else {
|
|
11461
11461
|
defineProperty$a(this.target_, key, descriptor2);
|
|
11462
11462
|
}
|
|
11463
|
-
var observable2 = new ObservableValue(value, enhancer,
|
|
11463
|
+
var observable2 = new ObservableValue(value, enhancer, production !== "production" ? this.name_ + "." + key.toString() : "ObservableObject.key", false);
|
|
11464
11464
|
this.values_.set(key, observable2);
|
|
11465
11465
|
this.notifyPropertyAddition_(key, observable2.value_);
|
|
11466
11466
|
} finally {
|
|
@@ -11489,7 +11489,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11489
11489
|
return null;
|
|
11490
11490
|
}
|
|
11491
11491
|
}
|
|
11492
|
-
options.name || (options.name =
|
|
11492
|
+
options.name || (options.name = production !== "production" ? this.name_ + "." + key.toString() : "ObservableObject.key");
|
|
11493
11493
|
options.context = this.proxy_ || this.target_;
|
|
11494
11494
|
var cachedDescriptor = getCachedObservablePropDescriptor(key);
|
|
11495
11495
|
var descriptor2 = {
|
|
@@ -11533,7 +11533,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11533
11533
|
var _this$pendingKeys_, _this$pendingKeys_$ge;
|
|
11534
11534
|
startBatch();
|
|
11535
11535
|
var notify = hasListeners(this);
|
|
11536
|
-
var notifySpy =
|
|
11536
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11537
11537
|
var observable2 = this.values_.get(key);
|
|
11538
11538
|
var value = void 0;
|
|
11539
11539
|
if (!observable2 && (notify || notifySpy)) {
|
|
@@ -11547,7 +11547,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11547
11547
|
} else {
|
|
11548
11548
|
delete this.target_[key];
|
|
11549
11549
|
}
|
|
11550
|
-
if (
|
|
11550
|
+
if (production !== "production") {
|
|
11551
11551
|
delete this.appliedAnnotations_[key];
|
|
11552
11552
|
}
|
|
11553
11553
|
if (observable2) {
|
|
@@ -11568,13 +11568,13 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11568
11568
|
oldValue: value,
|
|
11569
11569
|
name: key
|
|
11570
11570
|
};
|
|
11571
|
-
if (
|
|
11571
|
+
if (production !== "production" && notifySpy) {
|
|
11572
11572
|
spyReportStart(_change2);
|
|
11573
11573
|
}
|
|
11574
11574
|
if (notify) {
|
|
11575
11575
|
notifyListeners(this, _change2);
|
|
11576
11576
|
}
|
|
11577
|
-
if (
|
|
11577
|
+
if (production !== "production" && notifySpy) {
|
|
11578
11578
|
spyReportEnd();
|
|
11579
11579
|
}
|
|
11580
11580
|
}
|
|
@@ -11584,7 +11584,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11584
11584
|
return true;
|
|
11585
11585
|
}, "delete_");
|
|
11586
11586
|
_proto.observe_ = /* @__PURE__ */ __name(function observe_(callback, fireImmediately) {
|
|
11587
|
-
if (
|
|
11587
|
+
if (production !== "production" && fireImmediately === true) {
|
|
11588
11588
|
die("`observe` doesn't support the fire immediately property for observable objects.");
|
|
11589
11589
|
}
|
|
11590
11590
|
return registerListener(this, callback);
|
|
@@ -11595,7 +11595,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11595
11595
|
_proto.notifyPropertyAddition_ = /* @__PURE__ */ __name(function notifyPropertyAddition_(key, value) {
|
|
11596
11596
|
var _this$pendingKeys_2, _this$pendingKeys_2$g;
|
|
11597
11597
|
var notify = hasListeners(this);
|
|
11598
|
-
var notifySpy =
|
|
11598
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11599
11599
|
if (notify || notifySpy) {
|
|
11600
11600
|
var change = notify || notifySpy ? {
|
|
11601
11601
|
type: ADD,
|
|
@@ -11605,13 +11605,13 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11605
11605
|
name: key,
|
|
11606
11606
|
newValue: value
|
|
11607
11607
|
} : null;
|
|
11608
|
-
if (
|
|
11608
|
+
if (production !== "production" && notifySpy) {
|
|
11609
11609
|
spyReportStart(change);
|
|
11610
11610
|
}
|
|
11611
11611
|
if (notify) {
|
|
11612
11612
|
notifyListeners(this, change);
|
|
11613
11613
|
}
|
|
11614
|
-
if (
|
|
11614
|
+
if (production !== "production" && notifySpy) {
|
|
11615
11615
|
spyReportEnd();
|
|
11616
11616
|
}
|
|
11617
11617
|
}
|
|
@@ -11630,19 +11630,19 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
|
|
|
11630
11630
|
}();
|
|
11631
11631
|
function asObservableObject(target, options) {
|
|
11632
11632
|
var _options$name;
|
|
11633
|
-
if (
|
|
11633
|
+
if (production !== "production" && options && isObservableObject(target)) {
|
|
11634
11634
|
die("Options can't be provided for already observable objects.");
|
|
11635
11635
|
}
|
|
11636
11636
|
if (hasProp(target, $mobx)) {
|
|
11637
|
-
if (
|
|
11637
|
+
if (production !== "production" && !(getAdministration(target) instanceof ObservableObjectAdministration)) {
|
|
11638
11638
|
die("Cannot convert '" + getDebugName(target) + "' into observable object:\nThe target is already observable of different type.\nExtending builtins is not supported.");
|
|
11639
11639
|
}
|
|
11640
11640
|
return target;
|
|
11641
11641
|
}
|
|
11642
|
-
if (
|
|
11642
|
+
if (production !== "production" && !Object.isExtensible(target)) {
|
|
11643
11643
|
die("Cannot make the designated object observable; it is not extensible");
|
|
11644
11644
|
}
|
|
11645
|
-
var name = (_options$name = options == null ? void 0 : options.name) != null ? _options$name :
|
|
11645
|
+
var name = (_options$name = options == null ? void 0 : options.name) != null ? _options$name : production !== "production" ? (isPlainObject$4(target) ? "ObservableObject" : target.constructor.name) + "@" + getNextId() : "ObservableObject";
|
|
11646
11646
|
var adm = new ObservableObjectAdministration(target, /* @__PURE__ */ new Map(), String(name), getAnnotationFromOptions(options));
|
|
11647
11647
|
addHiddenProp(target, $mobx, adm);
|
|
11648
11648
|
return target;
|
|
@@ -11669,17 +11669,17 @@ function isObservableObject(thing) {
|
|
|
11669
11669
|
__name(isObservableObject, "isObservableObject");
|
|
11670
11670
|
function recordAnnotationApplied(adm, annotation, key) {
|
|
11671
11671
|
var _adm$target_$storedAn;
|
|
11672
|
-
if (
|
|
11672
|
+
if (production !== "production") {
|
|
11673
11673
|
adm.appliedAnnotations_[key] = annotation;
|
|
11674
11674
|
}
|
|
11675
11675
|
(_adm$target_$storedAn = adm.target_[storedAnnotationsSymbol]) == null ? true : delete _adm$target_$storedAn[key];
|
|
11676
11676
|
}
|
|
11677
11677
|
__name(recordAnnotationApplied, "recordAnnotationApplied");
|
|
11678
11678
|
function assertAnnotable(adm, annotation, key) {
|
|
11679
|
-
if (
|
|
11679
|
+
if (production !== "production" && !isAnnotation(annotation)) {
|
|
11680
11680
|
die("Cannot annotate '" + adm.name_ + "." + key.toString() + "': Invalid annotation.");
|
|
11681
11681
|
}
|
|
11682
|
-
if (
|
|
11682
|
+
if (production !== "production" && !isOverride(annotation) && hasProp(adm.appliedAnnotations_, key)) {
|
|
11683
11683
|
var fieldName = adm.name_ + "." + key.toString();
|
|
11684
11684
|
var currentAnnotationType = adm.appliedAnnotations_[key].annotationType_;
|
|
11685
11685
|
var requestedAnnotationType = annotation.annotationType_;
|
|
@@ -11707,7 +11707,7 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
|
|
|
11707
11707
|
function LegacyObservableArray2(initialValues, enhancer, name, owned) {
|
|
11708
11708
|
var _this;
|
|
11709
11709
|
if (name === void 0) {
|
|
11710
|
-
name =
|
|
11710
|
+
name = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
11711
11711
|
}
|
|
11712
11712
|
if (owned === void 0) {
|
|
11713
11713
|
owned = false;
|
|
@@ -12044,7 +12044,7 @@ __name(defaultNoopBatch, "defaultNoopBatch");
|
|
|
12044
12044
|
function observerBatching(reactionScheduler3) {
|
|
12045
12045
|
if (!reactionScheduler3) {
|
|
12046
12046
|
reactionScheduler3 = defaultNoopBatch;
|
|
12047
|
-
if ("production" !==
|
|
12047
|
+
if ("production" !== production) {
|
|
12048
12048
|
console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native");
|
|
12049
12049
|
}
|
|
12050
12050
|
}
|
|
@@ -12264,7 +12264,7 @@ var ReactMemoSymbol = hasSymbol ? Symbol.for("react.memo") : typeof React$1.memo
|
|
|
12264
12264
|
})["$$typeof"];
|
|
12265
12265
|
function observer$1(baseComponent, options) {
|
|
12266
12266
|
var _a2;
|
|
12267
|
-
if (
|
|
12267
|
+
if (production !== "production" && warnObserverOptionsDeprecated && options) {
|
|
12268
12268
|
warnObserverOptionsDeprecated = false;
|
|
12269
12269
|
console.warn("[mobx-react-lite] `observer(fn, { forwardRef: true })` is deprecated, use `observer(React.forwardRef(fn))`");
|
|
12270
12270
|
}
|
|
@@ -12297,7 +12297,7 @@ function observer$1(baseComponent, options) {
|
|
|
12297
12297
|
}
|
|
12298
12298
|
observerComponent = React$1.memo(observerComponent);
|
|
12299
12299
|
copyStaticProperties(baseComponent, observerComponent);
|
|
12300
|
-
if ("production" !==
|
|
12300
|
+
if ("production" !== production) {
|
|
12301
12301
|
Object.defineProperty(observerComponent, "contextTypes", {
|
|
12302
12302
|
set: function() {
|
|
12303
12303
|
var _a3;
|
|
@@ -12325,7 +12325,7 @@ function copyStaticProperties(base2, target) {
|
|
|
12325
12325
|
});
|
|
12326
12326
|
}
|
|
12327
12327
|
__name(copyStaticProperties, "copyStaticProperties");
|
|
12328
|
-
if ("production" !==
|
|
12328
|
+
if ("production" !== production)
|
|
12329
12329
|
;
|
|
12330
12330
|
globalThis && globalThis.__read || function(o2, n2) {
|
|
12331
12331
|
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
@@ -12659,7 +12659,7 @@ if (!observable)
|
|
|
12659
12659
|
function n(n2) {
|
|
12660
12660
|
for (var r2 = arguments.length, t2 = Array(r2 > 1 ? r2 - 1 : 0), e = 1; e < r2; e++)
|
|
12661
12661
|
t2[e - 1] = arguments[e];
|
|
12662
|
-
if ("production" !==
|
|
12662
|
+
if ("production" !== production) {
|
|
12663
12663
|
var i = Y[n2], o2 = i ? "function" == typeof i ? i.apply(null, t2) : i : "unknown error nr: " + n2;
|
|
12664
12664
|
throw Error("[Immer] " + o2);
|
|
12665
12665
|
}
|
|
@@ -12762,10 +12762,10 @@ function m(n2, r2) {
|
|
|
12762
12762
|
tn[n2] || (tn[n2] = r2);
|
|
12763
12763
|
}
|
|
12764
12764
|
__name(m, "m");
|
|
12765
|
-
function _$
|
|
12766
|
-
return "production" ===
|
|
12765
|
+
function _$1() {
|
|
12766
|
+
return "production" === production || U || n(0), U;
|
|
12767
12767
|
}
|
|
12768
|
-
__name(_$
|
|
12768
|
+
__name(_$1, "_$1");
|
|
12769
12769
|
function j$1(n2, r2) {
|
|
12770
12770
|
r2 && (b("Patches"), n2.u = [], n2.s = [], n2.v = r2);
|
|
12771
12771
|
}
|
|
@@ -12816,7 +12816,7 @@ function M(n2, r2, t2) {
|
|
|
12816
12816
|
}
|
|
12817
12817
|
__name(M, "M");
|
|
12818
12818
|
function A(e, i, o2, a2, c2, s2, v2) {
|
|
12819
|
-
if ("production" !==
|
|
12819
|
+
if ("production" !== production && c2 === o2 && n(5), r$1(c2)) {
|
|
12820
12820
|
var p2 = M(e, c2, s2 && i && 3 !== i.i && !u(i.R, a2) ? s2.concat(a2) : void 0);
|
|
12821
12821
|
if (f(o2, a2, p2), !r$1(p2))
|
|
12822
12822
|
return;
|
|
@@ -12859,12 +12859,12 @@ function E(n2) {
|
|
|
12859
12859
|
__name(E, "E");
|
|
12860
12860
|
function N(n2, r2, t2) {
|
|
12861
12861
|
var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
|
|
12862
|
-
var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _$
|
|
12862
|
+
var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _$1(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i = e2, o2 = en;
|
|
12863
12863
|
t3 && (i = [e2], o2 = on);
|
|
12864
12864
|
var u2 = Proxy.revocable(i, o2), a2 = u2.revoke, f2 = u2.proxy;
|
|
12865
12865
|
return e2.k = f2, e2.j = a2, f2;
|
|
12866
12866
|
}(r2, t2) : b("ES5").J(r2, t2);
|
|
12867
|
-
return (t2 ? t2.A : _$
|
|
12867
|
+
return (t2 ? t2.A : _$1()).p.push(e), e;
|
|
12868
12868
|
}
|
|
12869
12869
|
__name(N, "N");
|
|
12870
12870
|
function R(e) {
|
|
@@ -13085,9 +13085,9 @@ i$2(en, function(n2, r2) {
|
|
|
13085
13085
|
return arguments[0] = arguments[0][0], r2.apply(this, arguments);
|
|
13086
13086
|
};
|
|
13087
13087
|
}), on.deleteProperty = function(r2, t2) {
|
|
13088
|
-
return "production" !==
|
|
13088
|
+
return "production" !== production && isNaN(parseInt(t2)) && n(13), on.set.call(this, r2, t2, void 0);
|
|
13089
13089
|
}, on.set = function(r2, t2, e) {
|
|
13090
|
-
return "production" !==
|
|
13090
|
+
return "production" !== production && "length" !== t2 && isNaN(parseInt(t2)) && n(14), en.set.call(this, r2[0], t2, e, r2[0]);
|
|
13091
13091
|
};
|
|
13092
13092
|
var un = function() {
|
|
13093
13093
|
function e(r2) {
|
|
@@ -13155,7 +13155,7 @@ var un = function() {
|
|
|
13155
13155
|
return o2[Q].C = true, O(i2), o2;
|
|
13156
13156
|
}, i.finishDraft = function(r2, t2) {
|
|
13157
13157
|
var e2 = r2 && r2[Q];
|
|
13158
|
-
"production" !==
|
|
13158
|
+
"production" !== production && (e2 && e2.C || n(9), e2.I && n(10));
|
|
13159
13159
|
var i2 = e2.A;
|
|
13160
13160
|
return j$1(i2, t2), P(void 0, i2);
|
|
13161
13161
|
}, i.setAutoFreeze = function(n2) {
|
|
@@ -19381,7 +19381,7 @@ var mapProps = /* @__PURE__ */ __name(function mapProps2(propsMapper) {
|
|
|
19381
19381
|
var MapProps = /* @__PURE__ */ __name(function MapProps2(props) {
|
|
19382
19382
|
return factory(propsMapper(props));
|
|
19383
19383
|
}, "MapProps");
|
|
19384
|
-
if (
|
|
19384
|
+
if (production !== "production") {
|
|
19385
19385
|
return setDisplayName(wrapDisplayName(BaseComponent, "mapProps"))(MapProps);
|
|
19386
19386
|
}
|
|
19387
19387
|
return MapProps;
|
|
@@ -19391,7 +19391,7 @@ var withProps = /* @__PURE__ */ __name(function withProps2(input) {
|
|
|
19391
19391
|
var hoc = mapProps(function(props) {
|
|
19392
19392
|
return _extends$n({}, props, typeof input === "function" ? input(props) : input);
|
|
19393
19393
|
});
|
|
19394
|
-
if (
|
|
19394
|
+
if (production !== "production") {
|
|
19395
19395
|
return function(BaseComponent) {
|
|
19396
19396
|
return setDisplayName(wrapDisplayName(BaseComponent, "withProps"))(hoc(BaseComponent));
|
|
19397
19397
|
};
|
|
@@ -19421,7 +19421,7 @@ var withHandlers = /* @__PURE__ */ __name(function withHandlers2(handlers2) {
|
|
|
19421
19421
|
_this.handlers = mapValues(typeof handlers2 === "function" ? handlers2(_this.props) : handlers2, function(createHandler) {
|
|
19422
19422
|
return function() {
|
|
19423
19423
|
var handler = createHandler(_this.props);
|
|
19424
|
-
if (
|
|
19424
|
+
if (production !== "production" && typeof handler !== "function") {
|
|
19425
19425
|
console.error(
|
|
19426
19426
|
// eslint-disable-line no-console
|
|
19427
19427
|
"withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."
|
|
@@ -19439,7 +19439,7 @@ var withHandlers = /* @__PURE__ */ __name(function withHandlers2(handlers2) {
|
|
|
19439
19439
|
}, "render");
|
|
19440
19440
|
return WithHandlers2;
|
|
19441
19441
|
}(React$1.Component);
|
|
19442
|
-
if (
|
|
19442
|
+
if (production !== "production") {
|
|
19443
19443
|
return setDisplayName(wrapDisplayName(BaseComponent, "withHandlers"))(WithHandlers);
|
|
19444
19444
|
}
|
|
19445
19445
|
return WithHandlers;
|
|
@@ -19477,7 +19477,7 @@ var withState = /* @__PURE__ */ __name(function withState2(stateName, stateUpdat
|
|
|
19477
19477
|
}, "render");
|
|
19478
19478
|
return WithState2;
|
|
19479
19479
|
}(React$1.Component);
|
|
19480
|
-
if (
|
|
19480
|
+
if (production !== "production") {
|
|
19481
19481
|
return setDisplayName(wrapDisplayName(BaseComponent, "withState"))(WithState);
|
|
19482
19482
|
}
|
|
19483
19483
|
return WithState;
|
|
@@ -19501,7 +19501,7 @@ var branch = /* @__PURE__ */ __name(function branch2(test2, left2, right2) {
|
|
|
19501
19501
|
rightFactory = rightFactory || createFactory(right2(BaseComponent));
|
|
19502
19502
|
return rightFactory(props);
|
|
19503
19503
|
}, "Branch");
|
|
19504
|
-
if (
|
|
19504
|
+
if (production !== "production") {
|
|
19505
19505
|
return setDisplayName(wrapDisplayName(BaseComponent, "branch"))(Branch);
|
|
19506
19506
|
}
|
|
19507
19507
|
return Branch;
|
|
@@ -19525,7 +19525,7 @@ var shouldUpdate = /* @__PURE__ */ __name(function shouldUpdate2(test2) {
|
|
|
19525
19525
|
}, "render");
|
|
19526
19526
|
return ShouldUpdate2;
|
|
19527
19527
|
}(React$1.Component);
|
|
19528
|
-
if (
|
|
19528
|
+
if (production !== "production") {
|
|
19529
19529
|
return setDisplayName(wrapDisplayName(BaseComponent, "shouldUpdate"))(ShouldUpdate);
|
|
19530
19530
|
}
|
|
19531
19531
|
return ShouldUpdate;
|
|
@@ -19534,7 +19534,7 @@ var shouldUpdate = /* @__PURE__ */ __name(function shouldUpdate2(test2) {
|
|
|
19534
19534
|
var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
|
|
19535
19535
|
return function(BaseComponent) {
|
|
19536
19536
|
var factory = createFactory(BaseComponent);
|
|
19537
|
-
if (
|
|
19537
|
+
if (production !== "production" && spec.hasOwnProperty("render")) {
|
|
19538
19538
|
console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");
|
|
19539
19539
|
}
|
|
19540
19540
|
var Lifecycle2 = /* @__PURE__ */ function(_Component) {
|
|
@@ -19552,7 +19552,7 @@ var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
|
|
|
19552
19552
|
Object.keys(spec).forEach(function(hook) {
|
|
19553
19553
|
return Lifecycle2.prototype[hook] = spec[hook];
|
|
19554
19554
|
});
|
|
19555
|
-
if (
|
|
19555
|
+
if (production !== "production") {
|
|
19556
19556
|
return setDisplayName(wrapDisplayName(BaseComponent, "lifecycle"))(Lifecycle2);
|
|
19557
19557
|
}
|
|
19558
19558
|
return Lifecycle2;
|
|
@@ -19892,25 +19892,16 @@ var toString$6 = {}.toString;
|
|
|
19892
19892
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
19893
19893
|
return toString$6.call(it).slice(8, -1);
|
|
19894
19894
|
}, "_cof");
|
|
19895
|
-
var
|
|
19896
|
-
var
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
return _iobject;
|
|
19900
|
-
hasRequired_iobject = 1;
|
|
19901
|
-
var cof2 = _cof;
|
|
19902
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
19903
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
19904
|
-
};
|
|
19905
|
-
return _iobject;
|
|
19906
|
-
}
|
|
19907
|
-
__name(require_iobject, "require_iobject");
|
|
19895
|
+
var cof$2 = _cof;
|
|
19896
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
19897
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
19898
|
+
};
|
|
19908
19899
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
19909
19900
|
if (it == void 0)
|
|
19910
19901
|
throw TypeError("Can't call method on " + it);
|
|
19911
19902
|
return it;
|
|
19912
19903
|
}, "_defined");
|
|
19913
|
-
var IObject =
|
|
19904
|
+
var IObject = _iobject;
|
|
19914
19905
|
var defined$2 = _defined;
|
|
19915
19906
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
19916
19907
|
return IObject(defined$2(it));
|
|
@@ -20007,15 +19998,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
|
20007
19998
|
var _objectGops = {};
|
|
20008
19999
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
20009
20000
|
var _objectPie = {};
|
|
20010
|
-
|
|
20011
|
-
function require_objectPie() {
|
|
20012
|
-
if (hasRequired_objectPie)
|
|
20013
|
-
return _objectPie;
|
|
20014
|
-
hasRequired_objectPie = 1;
|
|
20015
|
-
_objectPie.f = {}.propertyIsEnumerable;
|
|
20016
|
-
return _objectPie;
|
|
20017
|
-
}
|
|
20018
|
-
__name(require_objectPie, "require_objectPie");
|
|
20001
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
20019
20002
|
var defined$1 = _defined;
|
|
20020
20003
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
20021
20004
|
return Object(defined$1(it));
|
|
@@ -20029,9 +20012,9 @@ function require_objectAssign() {
|
|
|
20029
20012
|
var DESCRIPTORS2 = require_descriptors();
|
|
20030
20013
|
var getKeys2 = _objectKeys;
|
|
20031
20014
|
var gOPS2 = _objectGops;
|
|
20032
|
-
var pIE2 =
|
|
20015
|
+
var pIE2 = _objectPie;
|
|
20033
20016
|
var toObject2 = _toObject;
|
|
20034
|
-
var IObject2 =
|
|
20017
|
+
var IObject2 = _iobject;
|
|
20035
20018
|
var $assign = Object.assign;
|
|
20036
20019
|
_objectAssign = !$assign || _fails(function() {
|
|
20037
20020
|
var A2 = {};
|
|
@@ -20666,7 +20649,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
|
20666
20649
|
}, "_wksDefine");
|
|
20667
20650
|
var getKeys = _objectKeys;
|
|
20668
20651
|
var gOPS$1 = _objectGops;
|
|
20669
|
-
var pIE$1 =
|
|
20652
|
+
var pIE$1 = _objectPie;
|
|
20670
20653
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
20671
20654
|
var result = getKeys(it);
|
|
20672
20655
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -20707,7 +20690,7 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
20707
20690
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
20708
20691
|
}, "getOwnPropertyNames");
|
|
20709
20692
|
var _objectGopd = {};
|
|
20710
|
-
var pIE =
|
|
20693
|
+
var pIE = _objectPie;
|
|
20711
20694
|
var createDesc$1 = _propertyDesc;
|
|
20712
20695
|
var toIObject$1 = _toIobject;
|
|
20713
20696
|
var toPrimitive$1 = _toPrimitive;
|
|
@@ -20739,7 +20722,7 @@ var wks = _wksExports;
|
|
|
20739
20722
|
var wksExt = _wksExt;
|
|
20740
20723
|
var wksDefine = _wksDefine;
|
|
20741
20724
|
var enumKeys = _enumKeys;
|
|
20742
|
-
var isArray$
|
|
20725
|
+
var isArray$n = _isArray;
|
|
20743
20726
|
var anObject = _anObject;
|
|
20744
20727
|
var isObject$b = _isObject;
|
|
20745
20728
|
var toObject$1 = _toObject;
|
|
@@ -20887,7 +20870,7 @@ if (!USE_NATIVE) {
|
|
|
20887
20870
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
20888
20871
|
$DP.f = $defineProperty;
|
|
20889
20872
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
20890
|
-
|
|
20873
|
+
_objectPie.f = $propertyIsEnumerable;
|
|
20891
20874
|
$GOPS.f = $getOwnPropertySymbols;
|
|
20892
20875
|
if (DESCRIPTORS && !_library) {
|
|
20893
20876
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -20959,7 +20942,7 @@ $JSON && $export$2($export$2.S + $export$2.F * (!USE_NATIVE || $fails(function()
|
|
|
20959
20942
|
$replacer = replacer = args[1];
|
|
20960
20943
|
if (!isObject$b(replacer) && it === void 0 || isSymbol$8(it))
|
|
20961
20944
|
return;
|
|
20962
|
-
if (!isArray$
|
|
20945
|
+
if (!isArray$n(replacer))
|
|
20963
20946
|
replacer = /* @__PURE__ */ __name(function(key, value) {
|
|
20964
20947
|
if (typeof $replacer == "function")
|
|
20965
20948
|
value = $replacer.call(this, key, value);
|
|
@@ -21085,7 +21068,7 @@ var _default$5 = /* @__PURE__ */ __name(function(subClass, superClass) {
|
|
|
21085
21068
|
_setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
|
|
21086
21069
|
}, "_default$5");
|
|
21087
21070
|
var invariant = /* @__PURE__ */ __name(function(condition, format2, a2, b2, c2, d2, e, f2) {
|
|
21088
|
-
if (
|
|
21071
|
+
if (production !== "production") {
|
|
21089
21072
|
if (format2 === void 0) {
|
|
21090
21073
|
throw new Error("invariant requires an error message argument");
|
|
21091
21074
|
}
|
|
@@ -21687,12 +21670,12 @@ function arrayPush$4(array2, values) {
|
|
|
21687
21670
|
}
|
|
21688
21671
|
__name(arrayPush$4, "arrayPush$4");
|
|
21689
21672
|
var _arrayPush = arrayPush$4;
|
|
21690
|
-
var isArray$
|
|
21691
|
-
var isArray_1 = isArray$
|
|
21692
|
-
var arrayPush$3 = _arrayPush, isArray$
|
|
21673
|
+
var isArray$m = Array.isArray;
|
|
21674
|
+
var isArray_1 = isArray$m;
|
|
21675
|
+
var arrayPush$3 = _arrayPush, isArray$l = isArray_1;
|
|
21693
21676
|
function baseGetAllKeys$3(object2, keysFunc, symbolsFunc) {
|
|
21694
21677
|
var result = keysFunc(object2);
|
|
21695
|
-
return isArray$
|
|
21678
|
+
return isArray$l(object2) ? result : arrayPush$3(result, symbolsFunc(object2));
|
|
21696
21679
|
}
|
|
21697
21680
|
__name(baseGetAllKeys$3, "baseGetAllKeys$3");
|
|
21698
21681
|
var _baseGetAllKeys = baseGetAllKeys$3;
|
|
@@ -21834,11 +21817,11 @@ var baseIsTypedArray$1 = _baseIsTypedArray, baseUnary$4 = _baseUnary, nodeUtil$4
|
|
|
21834
21817
|
var nodeIsTypedArray$1 = nodeUtil$4 && nodeUtil$4.isTypedArray;
|
|
21835
21818
|
var isTypedArray$4 = nodeIsTypedArray$1 ? baseUnary$4(nodeIsTypedArray$1) : baseIsTypedArray$1;
|
|
21836
21819
|
var isTypedArray_1 = isTypedArray$4;
|
|
21837
|
-
var baseTimes$1 = _baseTimes, isArguments$4 = isArguments_1, isArray$
|
|
21820
|
+
var baseTimes$1 = _baseTimes, isArguments$4 = isArguments_1, isArray$k = isArray_1, isBuffer$7 = isBufferExports, isIndex$3 = _isIndex, isTypedArray$3 = isTypedArray_1;
|
|
21838
21821
|
var objectProto$n = Object.prototype;
|
|
21839
21822
|
var hasOwnProperty$l = objectProto$n.hasOwnProperty;
|
|
21840
21823
|
function arrayLikeKeys$3(value, inherited) {
|
|
21841
|
-
var isArr = isArray$
|
|
21824
|
+
var isArr = isArray$k(value), isArg = !isArr && isArguments$4(value), isBuff = !isArr && !isArg && isBuffer$7(value), isType2 = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType2, result = skipIndexes ? baseTimes$1(value.length, String) : [], length = result.length;
|
|
21842
21825
|
for (var key in value) {
|
|
21843
21826
|
if ((inherited || hasOwnProperty$l.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
21844
21827
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -21991,13 +21974,13 @@ if (DataView$3 && getTag$7(new DataView$3(new ArrayBuffer(1))) != dataViewTag$5
|
|
|
21991
21974
|
}, "getTag$7");
|
|
21992
21975
|
}
|
|
21993
21976
|
var _getTag = getTag$7;
|
|
21994
|
-
var Stack$3 = _Stack, equalArrays$1 = _equalArrays, equalByTag$1 = _equalByTag, equalObjects$1 = _equalObjects, getTag$6 = _getTag, isArray$
|
|
21977
|
+
var Stack$3 = _Stack, equalArrays$1 = _equalArrays, equalByTag$1 = _equalByTag, equalObjects$1 = _equalObjects, getTag$6 = _getTag, isArray$j = isArray_1, isBuffer$6 = isBufferExports, isTypedArray$2 = isTypedArray_1;
|
|
21995
21978
|
var COMPARE_PARTIAL_FLAG$8 = 1;
|
|
21996
21979
|
var argsTag$4 = "[object Arguments]", arrayTag$3 = "[object Array]", objectTag$6 = "[object Object]";
|
|
21997
21980
|
var objectProto$j = Object.prototype;
|
|
21998
21981
|
var hasOwnProperty$i = objectProto$j.hasOwnProperty;
|
|
21999
21982
|
function baseIsEqualDeep$2(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
22000
|
-
var objIsArr = isArray$
|
|
21983
|
+
var objIsArr = isArray$j(object2), othIsArr = isArray$j(other), objTag = objIsArr ? arrayTag$3 : getTag$6(object2), othTag = othIsArr ? arrayTag$3 : getTag$6(other);
|
|
22001
21984
|
objTag = objTag == argsTag$4 ? objectTag$6 : objTag;
|
|
22002
21985
|
othTag = othTag == argsTag$4 ? objectTag$6 : othTag;
|
|
22003
21986
|
var objIsObj = objTag == objectTag$6, othIsObj = othTag == objectTag$6, isSameTag = objTag == othTag;
|
|
@@ -22121,10 +22104,10 @@ function isSymbol$7(value) {
|
|
|
22121
22104
|
}
|
|
22122
22105
|
__name(isSymbol$7, "isSymbol$7");
|
|
22123
22106
|
var isSymbol_1 = isSymbol$7;
|
|
22124
|
-
var isArray$
|
|
22107
|
+
var isArray$i = isArray_1, isSymbol$6 = isSymbol_1;
|
|
22125
22108
|
var reIsDeepProp$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp$1 = /^\w*$/;
|
|
22126
22109
|
function isKey$4(value, object2) {
|
|
22127
|
-
if (isArray$
|
|
22110
|
+
if (isArray$i(value)) {
|
|
22128
22111
|
return false;
|
|
22129
22112
|
}
|
|
22130
22113
|
var type = typeof value;
|
|
@@ -22193,14 +22176,14 @@ function arrayMap$4(array2, iteratee) {
|
|
|
22193
22176
|
}
|
|
22194
22177
|
__name(arrayMap$4, "arrayMap$4");
|
|
22195
22178
|
var _arrayMap = arrayMap$4;
|
|
22196
|
-
var Symbol$5 = _Symbol, arrayMap$3 = _arrayMap, isArray$
|
|
22179
|
+
var Symbol$5 = _Symbol, arrayMap$3 = _arrayMap, isArray$h = isArray_1, isSymbol$5 = isSymbol_1;
|
|
22197
22180
|
var INFINITY$5 = 1 / 0;
|
|
22198
22181
|
var symbolProto$3 = Symbol$5 ? Symbol$5.prototype : void 0, symbolToString$1 = symbolProto$3 ? symbolProto$3.toString : void 0;
|
|
22199
22182
|
function baseToString$3(value) {
|
|
22200
22183
|
if (typeof value == "string") {
|
|
22201
22184
|
return value;
|
|
22202
22185
|
}
|
|
22203
|
-
if (isArray$
|
|
22186
|
+
if (isArray$h(value)) {
|
|
22204
22187
|
return arrayMap$3(value, baseToString$3) + "";
|
|
22205
22188
|
}
|
|
22206
22189
|
if (isSymbol$5(value)) {
|
|
@@ -22217,9 +22200,9 @@ function toString$4(value) {
|
|
|
22217
22200
|
}
|
|
22218
22201
|
__name(toString$4, "toString$4");
|
|
22219
22202
|
var toString_1 = toString$4;
|
|
22220
|
-
var isArray$
|
|
22203
|
+
var isArray$g = isArray_1, isKey$3 = _isKey, stringToPath$3 = _stringToPath, toString$3 = toString_1;
|
|
22221
22204
|
function castPath$3(value, object2) {
|
|
22222
|
-
if (isArray$
|
|
22205
|
+
if (isArray$g(value)) {
|
|
22223
22206
|
return value;
|
|
22224
22207
|
}
|
|
22225
22208
|
return isKey$3(value, object2) ? [value] : stringToPath$3(toString$3(value));
|
|
@@ -22260,7 +22243,7 @@ function baseHasIn$2(object2, key) {
|
|
|
22260
22243
|
}
|
|
22261
22244
|
__name(baseHasIn$2, "baseHasIn$2");
|
|
22262
22245
|
var _baseHasIn = baseHasIn$2;
|
|
22263
|
-
var castPath$1 = _castPath, isArguments$3 = isArguments_1, isArray$
|
|
22246
|
+
var castPath$1 = _castPath, isArguments$3 = isArguments_1, isArray$f = isArray_1, isIndex$2 = _isIndex, isLength$1 = isLength_1, toKey$3 = _toKey;
|
|
22264
22247
|
function hasPath$2(object2, path2, hasFunc) {
|
|
22265
22248
|
path2 = castPath$1(path2, object2);
|
|
22266
22249
|
var index2 = -1, length = path2.length, result = false;
|
|
@@ -22275,7 +22258,7 @@ function hasPath$2(object2, path2, hasFunc) {
|
|
|
22275
22258
|
return result;
|
|
22276
22259
|
}
|
|
22277
22260
|
length = object2 == null ? 0 : object2.length;
|
|
22278
|
-
return !!length && isLength$1(length) && isIndex$2(key, length) && (isArray$
|
|
22261
|
+
return !!length && isLength$1(length) && isIndex$2(key, length) && (isArray$f(object2) || isArguments$3(object2));
|
|
22279
22262
|
}
|
|
22280
22263
|
__name(hasPath$2, "hasPath$2");
|
|
22281
22264
|
var _hasPath = hasPath$2;
|
|
@@ -22324,7 +22307,7 @@ function property$2(path2) {
|
|
|
22324
22307
|
}
|
|
22325
22308
|
__name(property$2, "property$2");
|
|
22326
22309
|
var property_1 = property$2;
|
|
22327
|
-
var baseMatches$1 = _baseMatches, baseMatchesProperty$1 = _baseMatchesProperty, identity$5 = identity_1, isArray$
|
|
22310
|
+
var baseMatches$1 = _baseMatches, baseMatchesProperty$1 = _baseMatchesProperty, identity$5 = identity_1, isArray$e = isArray_1, property$1 = property_1;
|
|
22328
22311
|
function baseIteratee$5(value) {
|
|
22329
22312
|
if (typeof value == "function") {
|
|
22330
22313
|
return value;
|
|
@@ -22333,7 +22316,7 @@ function baseIteratee$5(value) {
|
|
|
22333
22316
|
return identity$5;
|
|
22334
22317
|
}
|
|
22335
22318
|
if (typeof value == "object") {
|
|
22336
|
-
return isArray$
|
|
22319
|
+
return isArray$e(value) ? baseMatchesProperty$1(value[0], value[1]) : baseMatches$1(value);
|
|
22337
22320
|
}
|
|
22338
22321
|
return property$1(value);
|
|
22339
22322
|
}
|
|
@@ -22450,10 +22433,10 @@ var createFind = _createFind, findIndex = findIndex_1;
|
|
|
22450
22433
|
var find$2 = createFind(findIndex);
|
|
22451
22434
|
var find_1 = find$2;
|
|
22452
22435
|
const find$3 = /* @__PURE__ */ getDefaultExportFromCjs(find_1);
|
|
22453
|
-
var Symbol$4 = _Symbol, isArguments$2 = isArguments_1, isArray$
|
|
22436
|
+
var Symbol$4 = _Symbol, isArguments$2 = isArguments_1, isArray$d = isArray_1;
|
|
22454
22437
|
var spreadableSymbol = Symbol$4 ? Symbol$4.isConcatSpreadable : void 0;
|
|
22455
22438
|
function isFlattenable$1(value) {
|
|
22456
|
-
return isArray$
|
|
22439
|
+
return isArray$d(value) || isArguments$2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
22457
22440
|
}
|
|
22458
22441
|
__name(isFlattenable$1, "isFlattenable$1");
|
|
22459
22442
|
var _isFlattenable = isFlattenable$1;
|
|
@@ -22577,11 +22560,11 @@ function compareMultiple$1(object2, other, orders) {
|
|
|
22577
22560
|
}
|
|
22578
22561
|
__name(compareMultiple$1, "compareMultiple$1");
|
|
22579
22562
|
var _compareMultiple = compareMultiple$1;
|
|
22580
|
-
var arrayMap$2 = _arrayMap, baseGet$1 = _baseGet, baseIteratee$2 = _baseIteratee, baseMap$2 = _baseMap, baseSortBy = _baseSortBy, baseUnary$3 = _baseUnary, compareMultiple = _compareMultiple, identity$4 = identity_1, isArray$
|
|
22563
|
+
var arrayMap$2 = _arrayMap, baseGet$1 = _baseGet, baseIteratee$2 = _baseIteratee, baseMap$2 = _baseMap, baseSortBy = _baseSortBy, baseUnary$3 = _baseUnary, compareMultiple = _compareMultiple, identity$4 = identity_1, isArray$c = isArray_1;
|
|
22581
22564
|
function baseOrderBy$1(collection, iteratees, orders) {
|
|
22582
22565
|
if (iteratees.length) {
|
|
22583
22566
|
iteratees = arrayMap$2(iteratees, function(iteratee) {
|
|
22584
|
-
if (isArray$
|
|
22567
|
+
if (isArray$c(iteratee)) {
|
|
22585
22568
|
return function(value) {
|
|
22586
22569
|
return baseGet$1(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
22587
22570
|
};
|
|
@@ -24943,7 +24926,7 @@ function _objectWithoutProperties$6(obj, keys3) {
|
|
|
24943
24926
|
return target;
|
|
24944
24927
|
}
|
|
24945
24928
|
__name(_objectWithoutProperties$6, "_objectWithoutProperties$6");
|
|
24946
|
-
const
|
|
24929
|
+
const _14 = {
|
|
24947
24930
|
get: get$3,
|
|
24948
24931
|
set: set4,
|
|
24949
24932
|
takeRight,
|
|
@@ -24956,7 +24939,7 @@ const _$1 = {
|
|
|
24956
24939
|
sum,
|
|
24957
24940
|
makeTemplateComponent,
|
|
24958
24941
|
groupBy,
|
|
24959
|
-
isArray: isArray$
|
|
24942
|
+
isArray: isArray$b,
|
|
24960
24943
|
splitProps,
|
|
24961
24944
|
compactObject,
|
|
24962
24945
|
isSortingDesc,
|
|
@@ -25083,7 +25066,7 @@ __name(makeTemplateComponent, "makeTemplateComponent");
|
|
|
25083
25066
|
function groupBy(xs, key) {
|
|
25084
25067
|
return xs.reduce(function(rv, x2, i) {
|
|
25085
25068
|
var resKey = typeof key === "function" ? key(x2, i) : x2[key];
|
|
25086
|
-
rv[resKey] = isArray$
|
|
25069
|
+
rv[resKey] = isArray$b(rv[resKey]) ? rv[resKey] : [];
|
|
25087
25070
|
rv[resKey].push(x2);
|
|
25088
25071
|
return rv;
|
|
25089
25072
|
}, {});
|
|
@@ -25094,17 +25077,17 @@ function asPx(value) {
|
|
|
25094
25077
|
return Number.isNaN(value) ? null : value + "px";
|
|
25095
25078
|
}
|
|
25096
25079
|
__name(asPx, "asPx");
|
|
25097
|
-
function isArray$
|
|
25080
|
+
function isArray$b(a2) {
|
|
25098
25081
|
return Array.isArray(a2);
|
|
25099
25082
|
}
|
|
25100
|
-
__name(isArray$
|
|
25083
|
+
__name(isArray$b, "isArray$b");
|
|
25101
25084
|
function makePathArray(obj) {
|
|
25102
25085
|
return flattenDeep(obj).join(".").replace(/\[/g, ".").replace(/\]/g, "").split(".");
|
|
25103
25086
|
}
|
|
25104
25087
|
__name(makePathArray, "makePathArray");
|
|
25105
25088
|
function flattenDeep(arr) {
|
|
25106
25089
|
var newArr = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
25107
|
-
if (!isArray$
|
|
25090
|
+
if (!isArray$b(arr)) {
|
|
25108
25091
|
newArr.push(arr);
|
|
25109
25092
|
} else {
|
|
25110
25093
|
for (var i = 0; i < arr.length; i += 1) {
|
|
@@ -25395,7 +25378,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25395
25378
|
_createClass$b(_class, [{
|
|
25396
25379
|
key: "getResolvedState",
|
|
25397
25380
|
value: /* @__PURE__ */ __name(function getResolvedState(props, state) {
|
|
25398
|
-
var resolvedState = _extends$l({},
|
|
25381
|
+
var resolvedState = _extends$l({}, _14.compactObject(this.state), _14.compactObject(this.props), _14.compactObject(state), _14.compactObject(props));
|
|
25399
25382
|
return resolvedState;
|
|
25400
25383
|
}, "getResolvedState")
|
|
25401
25384
|
}, {
|
|
@@ -25441,7 +25424,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25441
25424
|
dcol.id = dcol.id || dcol.accessor;
|
|
25442
25425
|
var accessorString = dcol.accessor;
|
|
25443
25426
|
dcol.accessor = function(row) {
|
|
25444
|
-
return
|
|
25427
|
+
return _14.get(row, accessorString);
|
|
25445
25428
|
};
|
|
25446
25429
|
return dcol;
|
|
25447
25430
|
}
|
|
@@ -25477,7 +25460,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25477
25460
|
visibleColumns = visibleColumns.map(function(column) {
|
|
25478
25461
|
if (column.columns) {
|
|
25479
25462
|
var visibleSubColumns = column.columns.filter(function(d2) {
|
|
25480
|
-
return pivotBy.indexOf(d2.id) > -1 ? false :
|
|
25463
|
+
return pivotBy.indexOf(d2.id) > -1 ? false : _14.getFirstDefined(d2.show, true);
|
|
25481
25464
|
});
|
|
25482
25465
|
return _extends$l({}, column, {
|
|
25483
25466
|
columns: visibleSubColumns
|
|
@@ -25486,7 +25469,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25486
25469
|
return column;
|
|
25487
25470
|
});
|
|
25488
25471
|
visibleColumns = visibleColumns.filter(function(column) {
|
|
25489
|
-
return column.columns ? column.columns.length : pivotBy.indexOf(column.id) > -1 ? false :
|
|
25472
|
+
return column.columns ? column.columns.length : pivotBy.indexOf(column.id) > -1 ? false : _14.getFirstDefined(column.show, true);
|
|
25490
25473
|
});
|
|
25491
25474
|
var pivotIndex = visibleColumns.findIndex(function(col) {
|
|
25492
25475
|
return col.pivot;
|
|
@@ -25589,7 +25572,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25589
25572
|
if (i === keys3.length) {
|
|
25590
25573
|
return rows;
|
|
25591
25574
|
}
|
|
25592
|
-
var groupedRows = Object.entries(
|
|
25575
|
+
var groupedRows = Object.entries(_14.groupBy(rows, keys3[i])).map(function(_ref) {
|
|
25593
25576
|
var _ref3;
|
|
25594
25577
|
var _ref2 = _slicedToArray$4(_ref, 2), key = _ref2[0], value = _ref2[1];
|
|
25595
25578
|
return _ref3 = {}, _defineProperty$4(_ref3, pivotIDKey, keys3[i]), _defineProperty$4(_ref3, pivotValKey, key), _defineProperty$4(_ref3, keys3[i], key), _defineProperty$4(_ref3, subRowsKey, value), _defineProperty$4(_ref3, nestingLevelKey, i), _defineProperty$4(_ref3, groupedByPivotKey, true), _ref3;
|
|
@@ -25633,12 +25616,12 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25633
25616
|
}, {
|
|
25634
25617
|
key: "getPropOrState",
|
|
25635
25618
|
value: /* @__PURE__ */ __name(function getPropOrState(key) {
|
|
25636
|
-
return
|
|
25619
|
+
return _14.getFirstDefined(this.props[key], this.state[key]);
|
|
25637
25620
|
}, "getPropOrState")
|
|
25638
25621
|
}, {
|
|
25639
25622
|
key: "getStateOrProp",
|
|
25640
25623
|
value: /* @__PURE__ */ __name(function getStateOrProp(key) {
|
|
25641
|
-
return
|
|
25624
|
+
return _14.getFirstDefined(this.state[key], this.props[key]);
|
|
25642
25625
|
}, "getStateOrProp")
|
|
25643
25626
|
}, {
|
|
25644
25627
|
key: "filterData",
|
|
@@ -25683,7 +25666,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25683
25666
|
if (!sorted.length) {
|
|
25684
25667
|
return data;
|
|
25685
25668
|
}
|
|
25686
|
-
var sortedData = (this.props.orderByMethod ||
|
|
25669
|
+
var sortedData = (this.props.orderByMethod || _14.orderBy)(data, sorted.map(function(sort2) {
|
|
25687
25670
|
if (sortMethodsByColumnID[sort2.id]) {
|
|
25688
25671
|
return function(a2, b2) {
|
|
25689
25672
|
return sortMethodsByColumnID[sort2.id](a2[sort2.id], b2[sort2.id], sort2.desc);
|
|
@@ -25706,7 +25689,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25706
25689
|
}, {
|
|
25707
25690
|
key: "getMinRows",
|
|
25708
25691
|
value: /* @__PURE__ */ __name(function getMinRows() {
|
|
25709
|
-
return
|
|
25692
|
+
return _14.getFirstDefined(this.props.minRows, this.getStateOrProp("pageSize"));
|
|
25710
25693
|
}, "getMinRows")
|
|
25711
25694
|
// User actions
|
|
25712
25695
|
}, {
|
|
@@ -25748,11 +25731,11 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
25748
25731
|
return;
|
|
25749
25732
|
}
|
|
25750
25733
|
var onSortedChange = this.props.onSortedChange;
|
|
25751
|
-
var newSorted =
|
|
25752
|
-
d2.desc =
|
|
25734
|
+
var newSorted = _14.clone(sorted || []).map(function(d2) {
|
|
25735
|
+
d2.desc = _14.isSortingDesc(d2);
|
|
25753
25736
|
return d2;
|
|
25754
25737
|
});
|
|
25755
|
-
if (!
|
|
25738
|
+
if (!_14.isArray(column)) {
|
|
25756
25739
|
var existingIndex = newSorted.findIndex(function(d2) {
|
|
25757
25740
|
return d2.id === column.id;
|
|
25758
25741
|
});
|
|
@@ -26387,8 +26370,8 @@ const defaultProps$1 = {
|
|
|
26387
26370
|
children
|
|
26388
26371
|
);
|
|
26389
26372
|
}, "TableComponent"),
|
|
26390
|
-
TheadComponent:
|
|
26391
|
-
TbodyComponent:
|
|
26373
|
+
TheadComponent: _14.makeTemplateComponent("rt-thead", "Thead"),
|
|
26374
|
+
TbodyComponent: _14.makeTemplateComponent("rt-tbody", "Tbody"),
|
|
26392
26375
|
TrGroupComponent: /* @__PURE__ */ __name(function TrGroupComponent(_ref2) {
|
|
26393
26376
|
var children = _ref2.children, className = _ref2.className, rest = _objectWithoutProperties$5(_ref2, ["children", "className"]);
|
|
26394
26377
|
return React$1.createElement(
|
|
@@ -26433,7 +26416,7 @@ const defaultProps$1 = {
|
|
|
26433
26416
|
children
|
|
26434
26417
|
);
|
|
26435
26418
|
}, "TdComponent"),
|
|
26436
|
-
TfootComponent:
|
|
26419
|
+
TfootComponent: _14.makeTemplateComponent("rt-tfoot", "Tfoot"),
|
|
26437
26420
|
FilterComponent: /* @__PURE__ */ __name(function FilterComponent(_ref6) {
|
|
26438
26421
|
var filter = _ref6.filter, _onChange = _ref6.onChange, column = _ref6.column;
|
|
26439
26422
|
return React$1.createElement("input", {
|
|
@@ -26505,8 +26488,8 @@ const defaultProps$1 = {
|
|
|
26505
26488
|
)
|
|
26506
26489
|
);
|
|
26507
26490
|
}, "LoadingComponent"),
|
|
26508
|
-
NoDataComponent:
|
|
26509
|
-
ResizerComponent:
|
|
26491
|
+
NoDataComponent: _14.makeTemplateComponent("rt-noData", "NoData"),
|
|
26492
|
+
ResizerComponent: _14.makeTemplateComponent("rt-resizer", "Resizer"),
|
|
26510
26493
|
PadRowComponent: /* @__PURE__ */ __name(function PadRowComponent() {
|
|
26511
26494
|
return React$1.createElement(
|
|
26512
26495
|
"span",
|
|
@@ -26805,7 +26788,7 @@ var ReactTable = function(_Methods) {
|
|
|
26805
26788
|
var endRow = startRow + pageSize;
|
|
26806
26789
|
var pageRows = manual ? resolvedData : sortedData.slice(startRow, endRow);
|
|
26807
26790
|
var minRows = this.getMinRows();
|
|
26808
|
-
var padRows =
|
|
26791
|
+
var padRows = _14.range(Math.max(minRows - pageRows.length, 0));
|
|
26809
26792
|
var hasColumnFooter = allVisibleColumns.some(function(d2) {
|
|
26810
26793
|
return d2.Footer;
|
|
26811
26794
|
});
|
|
@@ -26821,7 +26804,7 @@ var ReactTable = function(_Methods) {
|
|
|
26821
26804
|
_viewIndex: index2
|
|
26822
26805
|
});
|
|
26823
26806
|
var newPath = path2.concat([i]);
|
|
26824
|
-
if (rowWithViewIndex[subRowsKey] &&
|
|
26807
|
+
if (rowWithViewIndex[subRowsKey] && _14.get(expanded, newPath)) {
|
|
26825
26808
|
var _recurseRowsViewIndex = recurseRowsViewIndex2(rowWithViewIndex[subRowsKey], newPath, index2);
|
|
26826
26809
|
var _recurseRowsViewIndex2 = _slicedToArray$3(_recurseRowsViewIndex, 2);
|
|
26827
26810
|
rowWithViewIndex[subRowsKey] = _recurseRowsViewIndex2[0];
|
|
@@ -26835,11 +26818,11 @@ var ReactTable = function(_Methods) {
|
|
|
26835
26818
|
pageRows = _recurseRowsViewIndex4[0];
|
|
26836
26819
|
var canPrevious = page > 0;
|
|
26837
26820
|
var canNext = page + 1 < pages;
|
|
26838
|
-
var rowMinWidth =
|
|
26821
|
+
var rowMinWidth = _14.sum(allVisibleColumns.map(function(d2) {
|
|
26839
26822
|
var resizedColumn = resized.find(function(x2) {
|
|
26840
26823
|
return x2.id === d2.id;
|
|
26841
26824
|
}) || {};
|
|
26842
|
-
return
|
|
26825
|
+
return _14.getFirstDefined(resizedColumn.value, d2.width, d2.minWidth);
|
|
26843
26826
|
}));
|
|
26844
26827
|
var rowIndex = -1;
|
|
26845
26828
|
var finalState = _extends$i({}, resolvedState, {
|
|
@@ -26853,9 +26836,9 @@ var ReactTable = function(_Methods) {
|
|
|
26853
26836
|
canNext,
|
|
26854
26837
|
rowMinWidth
|
|
26855
26838
|
});
|
|
26856
|
-
var rootProps =
|
|
26857
|
-
var tableProps =
|
|
26858
|
-
var tBodyProps =
|
|
26839
|
+
var rootProps = _14.splitProps(getProps(finalState, void 0, void 0, this));
|
|
26840
|
+
var tableProps = _14.splitProps(getTableProps(finalState, void 0, void 0, this));
|
|
26841
|
+
var tBodyProps = _14.splitProps(getTbodyProps(finalState, void 0, void 0, this));
|
|
26859
26842
|
var loadingProps = getLoadingProps(finalState, void 0, void 0, this);
|
|
26860
26843
|
var noDataProps = getNoDataProps(finalState, void 0, void 0, this);
|
|
26861
26844
|
var makeHeaderGroup = /* @__PURE__ */ __name(function makeHeaderGroup2(column, i) {
|
|
@@ -26864,24 +26847,24 @@ var ReactTable = function(_Methods) {
|
|
|
26864
26847
|
return x2.id === col.id;
|
|
26865
26848
|
}) || {}).value;
|
|
26866
26849
|
}, "resizedValue");
|
|
26867
|
-
var flex2 =
|
|
26850
|
+
var flex2 = _14.sum(column.columns.map(function(col) {
|
|
26868
26851
|
return col.width || resizedValue(col) ? 0 : col.minWidth;
|
|
26869
26852
|
}));
|
|
26870
|
-
var width =
|
|
26871
|
-
return
|
|
26853
|
+
var width = _14.sum(column.columns.map(function(col) {
|
|
26854
|
+
return _14.getFirstDefined(resizedValue(col), col.width, col.minWidth);
|
|
26872
26855
|
}));
|
|
26873
|
-
var maxWidth =
|
|
26874
|
-
return
|
|
26856
|
+
var maxWidth = _14.sum(column.columns.map(function(col) {
|
|
26857
|
+
return _14.getFirstDefined(resizedValue(col), col.width, col.maxWidth);
|
|
26875
26858
|
}));
|
|
26876
|
-
var theadGroupThProps =
|
|
26877
|
-
var columnHeaderProps =
|
|
26859
|
+
var theadGroupThProps = _14.splitProps(getTheadGroupThProps(finalState, void 0, column, _this2));
|
|
26860
|
+
var columnHeaderProps = _14.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
26878
26861
|
var classes = [column.headerClassName, theadGroupThProps.className, columnHeaderProps.className];
|
|
26879
26862
|
var styles2 = _extends$i({}, column.headerStyle, theadGroupThProps.style, columnHeaderProps.style);
|
|
26880
26863
|
var rest = _extends$i({}, theadGroupThProps.rest, columnHeaderProps.rest);
|
|
26881
26864
|
var flexStyles = {
|
|
26882
26865
|
flex: flex2 + " 0 auto",
|
|
26883
|
-
width:
|
|
26884
|
-
maxWidth:
|
|
26866
|
+
width: _14.asPx(width),
|
|
26867
|
+
maxWidth: _14.asPx(maxWidth)
|
|
26885
26868
|
};
|
|
26886
26869
|
return React$1.createElement(
|
|
26887
26870
|
ThComponent2,
|
|
@@ -26890,15 +26873,15 @@ var ReactTable = function(_Methods) {
|
|
|
26890
26873
|
className: classNames(classes),
|
|
26891
26874
|
style: _extends$i({}, styles2, flexStyles)
|
|
26892
26875
|
}, rest),
|
|
26893
|
-
|
|
26876
|
+
_14.normalizeComponent(column.Header, {
|
|
26894
26877
|
data: sortedData,
|
|
26895
26878
|
column
|
|
26896
26879
|
})
|
|
26897
26880
|
);
|
|
26898
26881
|
}, "makeHeaderGroup");
|
|
26899
26882
|
var makeHeaderGroups = /* @__PURE__ */ __name(function makeHeaderGroups2() {
|
|
26900
|
-
var theadGroupProps =
|
|
26901
|
-
var theadGroupTrProps =
|
|
26883
|
+
var theadGroupProps = _14.splitProps(getTheadGroupProps(finalState, void 0, void 0, _this2));
|
|
26884
|
+
var theadGroupTrProps = _14.splitProps(getTheadGroupTrProps(finalState, void 0, void 0, _this2));
|
|
26902
26885
|
return React$1.createElement(
|
|
26903
26886
|
TheadComponent,
|
|
26904
26887
|
_extends$i({
|
|
@@ -26925,14 +26908,14 @@ var ReactTable = function(_Methods) {
|
|
|
26925
26908
|
return d2.id === column.id;
|
|
26926
26909
|
});
|
|
26927
26910
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
26928
|
-
var width =
|
|
26929
|
-
var maxWidth =
|
|
26930
|
-
var theadThProps =
|
|
26931
|
-
var columnHeaderProps =
|
|
26911
|
+
var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
26912
|
+
var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
26913
|
+
var theadThProps = _14.splitProps(getTheadThProps(finalState, void 0, column, _this2));
|
|
26914
|
+
var columnHeaderProps = _14.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
26932
26915
|
var classes = [column.headerClassName, theadThProps.className, columnHeaderProps.className];
|
|
26933
26916
|
var styles2 = _extends$i({}, column.headerStyle, theadThProps.style, columnHeaderProps.style);
|
|
26934
26917
|
var rest = _extends$i({}, theadThProps.rest, columnHeaderProps.rest);
|
|
26935
|
-
var isResizable =
|
|
26918
|
+
var isResizable = _14.getFirstDefined(column.resizable, resizable, false);
|
|
26936
26919
|
var resizer = isResizable ? React$1.createElement(ResizerComponent, _extends$i({
|
|
26937
26920
|
onMouseDown: /* @__PURE__ */ __name(function onMouseDown2(e) {
|
|
26938
26921
|
return _this2.resizeColumnStart(e, column, false);
|
|
@@ -26941,7 +26924,7 @@ var ReactTable = function(_Methods) {
|
|
|
26941
26924
|
return _this2.resizeColumnStart(e, column, true);
|
|
26942
26925
|
}, "onTouchStart")
|
|
26943
26926
|
}, getResizerProps("finalState", void 0, column, _this2))) : null;
|
|
26944
|
-
var isSortable =
|
|
26927
|
+
var isSortable = _14.getFirstDefined(column.sortable, sortable, false);
|
|
26945
26928
|
return React$1.createElement(
|
|
26946
26929
|
ThComponent2,
|
|
26947
26930
|
_extends$i({
|
|
@@ -26949,8 +26932,8 @@ var ReactTable = function(_Methods) {
|
|
|
26949
26932
|
className: classNames(classes, isResizable && "rt-resizable-header", sort2 ? sort2.desc ? "-sort-desc" : "-sort-asc" : "", isSortable && "-cursor-pointer", !show && "-hidden", pivotBy && pivotBy.slice(0, -1).includes(column.id) && "rt-header-pivot"),
|
|
26950
26933
|
style: _extends$i({}, styles2, {
|
|
26951
26934
|
flex: width + " 0 auto",
|
|
26952
|
-
width:
|
|
26953
|
-
maxWidth:
|
|
26935
|
+
width: _14.asPx(width),
|
|
26936
|
+
maxWidth: _14.asPx(maxWidth)
|
|
26954
26937
|
}),
|
|
26955
26938
|
toggleSort: /* @__PURE__ */ __name(function toggleSort(e) {
|
|
26956
26939
|
if (isSortable)
|
|
@@ -26960,7 +26943,7 @@ var ReactTable = function(_Methods) {
|
|
|
26960
26943
|
React$1.createElement(
|
|
26961
26944
|
"div",
|
|
26962
26945
|
{ className: classNames(isResizable && "rt-resizable-header-content") },
|
|
26963
|
-
|
|
26946
|
+
_14.normalizeComponent(column.Header, {
|
|
26964
26947
|
data: sortedData,
|
|
26965
26948
|
column
|
|
26966
26949
|
})
|
|
@@ -26969,8 +26952,8 @@ var ReactTable = function(_Methods) {
|
|
|
26969
26952
|
);
|
|
26970
26953
|
}, "makeHeader");
|
|
26971
26954
|
var makeHeaders = /* @__PURE__ */ __name(function makeHeaders2() {
|
|
26972
|
-
var theadProps =
|
|
26973
|
-
var theadTrProps =
|
|
26955
|
+
var theadProps = _14.splitProps(getTheadProps(finalState, void 0, void 0, _this2));
|
|
26956
|
+
var theadTrProps = _14.splitProps(getTheadTrProps(finalState, void 0, void 0, _this2));
|
|
26974
26957
|
return React$1.createElement(
|
|
26975
26958
|
TheadComponent,
|
|
26976
26959
|
_extends$i({
|
|
@@ -26993,10 +26976,10 @@ var ReactTable = function(_Methods) {
|
|
|
26993
26976
|
var resizedCol = resized.find(function(x2) {
|
|
26994
26977
|
return x2.id === column.id;
|
|
26995
26978
|
}) || {};
|
|
26996
|
-
var width =
|
|
26997
|
-
var maxWidth =
|
|
26998
|
-
var theadFilterThProps =
|
|
26999
|
-
var columnHeaderProps =
|
|
26979
|
+
var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
26980
|
+
var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
26981
|
+
var theadFilterThProps = _14.splitProps(getTheadFilterThProps(finalState, void 0, column, _this2));
|
|
26982
|
+
var columnHeaderProps = _14.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
27000
26983
|
var classes = [column.headerClassName, theadFilterThProps.className, columnHeaderProps.className];
|
|
27001
26984
|
var styles2 = _extends$i({}, column.headerStyle, theadFilterThProps.style, columnHeaderProps.style);
|
|
27002
26985
|
var rest = _extends$i({}, theadFilterThProps.rest, columnHeaderProps.rest);
|
|
@@ -27004,7 +26987,7 @@ var ReactTable = function(_Methods) {
|
|
|
27004
26987
|
return filter2.id === column.id;
|
|
27005
26988
|
});
|
|
27006
26989
|
var ResolvedFilterComponent = column.Filter || FilterComponent2;
|
|
27007
|
-
var isFilterable =
|
|
26990
|
+
var isFilterable = _14.getFirstDefined(column.filterable, filterable, false);
|
|
27008
26991
|
return React$1.createElement(
|
|
27009
26992
|
ThComponent2,
|
|
27010
26993
|
_extends$i({
|
|
@@ -27012,11 +26995,11 @@ var ReactTable = function(_Methods) {
|
|
|
27012
26995
|
className: classNames(classes),
|
|
27013
26996
|
style: _extends$i({}, styles2, {
|
|
27014
26997
|
flex: width + " 0 auto",
|
|
27015
|
-
width:
|
|
27016
|
-
maxWidth:
|
|
26998
|
+
width: _14.asPx(width),
|
|
26999
|
+
maxWidth: _14.asPx(maxWidth)
|
|
27017
27000
|
})
|
|
27018
27001
|
}, rest),
|
|
27019
|
-
isFilterable ?
|
|
27002
|
+
isFilterable ? _14.normalizeComponent(ResolvedFilterComponent, {
|
|
27020
27003
|
column,
|
|
27021
27004
|
filter,
|
|
27022
27005
|
onChange: /* @__PURE__ */ __name(function onChange(value) {
|
|
@@ -27026,8 +27009,8 @@ var ReactTable = function(_Methods) {
|
|
|
27026
27009
|
);
|
|
27027
27010
|
}, "makeFilter");
|
|
27028
27011
|
var makeFilters = /* @__PURE__ */ __name(function makeFilters2() {
|
|
27029
|
-
var theadFilterProps =
|
|
27030
|
-
var theadFilterTrProps =
|
|
27012
|
+
var theadFilterProps = _14.splitProps(getTheadFilterProps(finalState, void 0, void 0, _this2));
|
|
27013
|
+
var theadFilterTrProps = _14.splitProps(getTheadFilterTrProps(finalState, void 0, void 0, _this2));
|
|
27031
27014
|
return React$1.createElement(
|
|
27032
27015
|
TheadComponent,
|
|
27033
27016
|
_extends$i({
|
|
@@ -27061,9 +27044,9 @@ var ReactTable = function(_Methods) {
|
|
|
27061
27044
|
groupedByPivot: row[groupedByPivotKey],
|
|
27062
27045
|
subRows: row[subRowsKey]
|
|
27063
27046
|
};
|
|
27064
|
-
var isExpanded =
|
|
27047
|
+
var isExpanded = _14.get(expanded, rowInfo.nestingPath);
|
|
27065
27048
|
var trGroupProps = getTrGroupProps(finalState, rowInfo, void 0, _this2);
|
|
27066
|
-
var trProps =
|
|
27049
|
+
var trProps = _14.splitProps(getTrProps(finalState, rowInfo, void 0, _this2));
|
|
27067
27050
|
return React$1.createElement(
|
|
27068
27051
|
TrGroupComponent2,
|
|
27069
27052
|
_extends$i({ key: rowInfo.nestingPath.join("_") }, trGroupProps),
|
|
@@ -27078,10 +27061,10 @@ var ReactTable = function(_Methods) {
|
|
|
27078
27061
|
return x2.id === column.id;
|
|
27079
27062
|
}) || {};
|
|
27080
27063
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
27081
|
-
var width =
|
|
27082
|
-
var maxWidth =
|
|
27083
|
-
var tdProps =
|
|
27084
|
-
var columnProps =
|
|
27064
|
+
var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
27065
|
+
var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
27066
|
+
var tdProps = _14.splitProps(getTdProps(finalState, rowInfo, column, _this2));
|
|
27067
|
+
var columnProps = _14.splitProps(column.getProps(finalState, rowInfo, column, _this2));
|
|
27085
27068
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
27086
27069
|
var styles2 = _extends$i({}, tdProps.style, column.style, columnProps.style);
|
|
27087
27070
|
var cellInfo = _extends$i({}, rowInfo, {
|
|
@@ -27104,11 +27087,11 @@ var ReactTable = function(_Methods) {
|
|
|
27104
27087
|
var isBranch = void 0;
|
|
27105
27088
|
var isPreview = void 0;
|
|
27106
27089
|
var onExpanderClick = /* @__PURE__ */ __name(function onExpanderClick2(e) {
|
|
27107
|
-
var newExpanded =
|
|
27090
|
+
var newExpanded = _14.clone(expanded);
|
|
27108
27091
|
if (isExpanded) {
|
|
27109
|
-
newExpanded =
|
|
27092
|
+
newExpanded = _14.set(newExpanded, cellInfo.nestingPath, false);
|
|
27110
27093
|
} else {
|
|
27111
|
-
newExpanded =
|
|
27094
|
+
newExpanded = _14.set(newExpanded, cellInfo.nestingPath, {});
|
|
27112
27095
|
}
|
|
27113
27096
|
return _this2.setStateWithData({
|
|
27114
27097
|
expanded: newExpanded
|
|
@@ -27116,7 +27099,7 @@ var ReactTable = function(_Methods) {
|
|
|
27116
27099
|
return onExpandedChange && onExpandedChange(newExpanded, cellInfo.nestingPath, e, cellInfo);
|
|
27117
27100
|
});
|
|
27118
27101
|
}, "onExpanderClick");
|
|
27119
|
-
var resolvedCell =
|
|
27102
|
+
var resolvedCell = _14.normalizeComponent(column.Cell, cellInfo, value);
|
|
27120
27103
|
var ResolvedAggregatedComponent = column.Aggregated || (!column.aggregate ? AggregatedComponent2 : column.Cell);
|
|
27121
27104
|
var ResolvedExpanderComponent = column.Expander || ExpanderComponent2;
|
|
27122
27105
|
var ResolvedPivotValueComponent = column.PivotValue || PivotValueComponent2;
|
|
@@ -27140,19 +27123,19 @@ var ReactTable = function(_Methods) {
|
|
|
27140
27123
|
isBranch = rowInfo.row[pivotIDKey] === column.id && cellInfo.subRows;
|
|
27141
27124
|
isPreview = pivotBy.indexOf(column.id) > pivotBy.indexOf(rowInfo.row[pivotIDKey]) && cellInfo.subRows;
|
|
27142
27125
|
if (isBranch) {
|
|
27143
|
-
resolvedCell =
|
|
27126
|
+
resolvedCell = _14.normalizeComponent(ResolvedPivotComponent, _extends$i({}, cellInfo, {
|
|
27144
27127
|
value: row[pivotValKey]
|
|
27145
27128
|
}), row[pivotValKey]);
|
|
27146
27129
|
} else if (isPreview) {
|
|
27147
|
-
resolvedCell =
|
|
27130
|
+
resolvedCell = _14.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
|
|
27148
27131
|
} else {
|
|
27149
27132
|
resolvedCell = null;
|
|
27150
27133
|
}
|
|
27151
27134
|
} else if (cellInfo.aggregated) {
|
|
27152
|
-
resolvedCell =
|
|
27135
|
+
resolvedCell = _14.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
|
|
27153
27136
|
}
|
|
27154
27137
|
if (cellInfo.expander) {
|
|
27155
|
-
resolvedCell =
|
|
27138
|
+
resolvedCell = _14.normalizeComponent(ResolvedExpanderComponent, cellInfo, row[pivotValKey]);
|
|
27156
27139
|
if (pivotBy) {
|
|
27157
27140
|
if (cellInfo.groupedByPivot) {
|
|
27158
27141
|
resolvedCell = null;
|
|
@@ -27188,8 +27171,8 @@ var ReactTable = function(_Methods) {
|
|
|
27188
27171
|
className: classNames(classes, !cellInfo.expandable && !show && "hidden", cellInfo.expandable && "rt-expandable", (isBranch || isPreview) && "rt-pivot"),
|
|
27189
27172
|
style: _extends$i({}, styles2, {
|
|
27190
27173
|
flex: width + " 0 auto",
|
|
27191
|
-
width:
|
|
27192
|
-
maxWidth:
|
|
27174
|
+
width: _14.asPx(width),
|
|
27175
|
+
maxWidth: _14.asPx(maxWidth)
|
|
27193
27176
|
})
|
|
27194
27177
|
}, tdProps.rest, columnProps.rest, interactionProps),
|
|
27195
27178
|
resolvedCell
|
|
@@ -27200,8 +27183,8 @@ var ReactTable = function(_Methods) {
|
|
|
27200
27183
|
return makePageRow2(d2, i2, rowInfo.nestingPath);
|
|
27201
27184
|
}),
|
|
27202
27185
|
SubComponent && !rowInfo.subRows && isExpanded && SubComponent(rowInfo, function() {
|
|
27203
|
-
var newExpanded =
|
|
27204
|
-
|
|
27186
|
+
var newExpanded = _14.clone(expanded);
|
|
27187
|
+
_14.set(newExpanded, rowInfo.nestingPath, false);
|
|
27205
27188
|
})
|
|
27206
27189
|
);
|
|
27207
27190
|
}, "makePageRow");
|
|
@@ -27210,11 +27193,11 @@ var ReactTable = function(_Methods) {
|
|
|
27210
27193
|
return x2.id === column.id;
|
|
27211
27194
|
}) || {};
|
|
27212
27195
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
27213
|
-
var width =
|
|
27196
|
+
var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
27214
27197
|
var flex2 = width;
|
|
27215
|
-
var maxWidth =
|
|
27216
|
-
var tdProps =
|
|
27217
|
-
var columnProps =
|
|
27198
|
+
var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
27199
|
+
var tdProps = _14.splitProps(getTdProps(finalState, void 0, column, _this2));
|
|
27200
|
+
var columnProps = _14.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
27218
27201
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
27219
27202
|
var styles2 = _extends$i({}, tdProps.style, column.style, columnProps.style);
|
|
27220
27203
|
return React$1.createElement(
|
|
@@ -27224,16 +27207,16 @@ var ReactTable = function(_Methods) {
|
|
|
27224
27207
|
className: classNames(classes, !show && "hidden"),
|
|
27225
27208
|
style: _extends$i({}, styles2, {
|
|
27226
27209
|
flex: flex2 + " 0 auto",
|
|
27227
|
-
width:
|
|
27228
|
-
maxWidth:
|
|
27210
|
+
width: _14.asPx(width),
|
|
27211
|
+
maxWidth: _14.asPx(maxWidth)
|
|
27229
27212
|
})
|
|
27230
27213
|
}, tdProps.rest),
|
|
27231
|
-
|
|
27214
|
+
_14.normalizeComponent(PadRowComponent2)
|
|
27232
27215
|
);
|
|
27233
27216
|
}, "makePadColumn");
|
|
27234
27217
|
var makePadRow = /* @__PURE__ */ __name(function makePadRow2(row, i) {
|
|
27235
27218
|
var trGroupProps = getTrGroupProps(finalState, void 0, void 0, _this2);
|
|
27236
|
-
var trProps =
|
|
27219
|
+
var trProps = _14.splitProps(getTrProps(finalState, void 0, void 0, _this2));
|
|
27237
27220
|
return React$1.createElement(
|
|
27238
27221
|
TrGroupComponent2,
|
|
27239
27222
|
_extends$i({ key: "pad-" + i }, trGroupProps),
|
|
@@ -27252,11 +27235,11 @@ var ReactTable = function(_Methods) {
|
|
|
27252
27235
|
return x2.id === column.id;
|
|
27253
27236
|
}) || {};
|
|
27254
27237
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
27255
|
-
var width =
|
|
27256
|
-
var maxWidth =
|
|
27257
|
-
var tFootTdProps =
|
|
27258
|
-
var columnProps =
|
|
27259
|
-
var columnFooterProps =
|
|
27238
|
+
var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
27239
|
+
var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
27240
|
+
var tFootTdProps = _14.splitProps(getTfootTdProps(finalState, void 0, column, _this2));
|
|
27241
|
+
var columnProps = _14.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
27242
|
+
var columnFooterProps = _14.splitProps(column.getFooterProps(finalState, void 0, column, _this2));
|
|
27260
27243
|
var classes = [tFootTdProps.className, column.className, columnProps.className, columnFooterProps.className];
|
|
27261
27244
|
var styles2 = _extends$i({}, tFootTdProps.style, column.style, columnProps.style, columnFooterProps.style);
|
|
27262
27245
|
return React$1.createElement(
|
|
@@ -27266,19 +27249,19 @@ var ReactTable = function(_Methods) {
|
|
|
27266
27249
|
className: classNames(classes, !show && "hidden"),
|
|
27267
27250
|
style: _extends$i({}, styles2, {
|
|
27268
27251
|
flex: width + " 0 auto",
|
|
27269
|
-
width:
|
|
27270
|
-
maxWidth:
|
|
27252
|
+
width: _14.asPx(width),
|
|
27253
|
+
maxWidth: _14.asPx(maxWidth)
|
|
27271
27254
|
})
|
|
27272
27255
|
}, columnProps.rest, tFootTdProps.rest, columnFooterProps.rest),
|
|
27273
|
-
|
|
27256
|
+
_14.normalizeComponent(column.Footer, {
|
|
27274
27257
|
data: sortedData,
|
|
27275
27258
|
column
|
|
27276
27259
|
})
|
|
27277
27260
|
);
|
|
27278
27261
|
}, "makeColumnFooter");
|
|
27279
27262
|
var makeColumnFooters = /* @__PURE__ */ __name(function makeColumnFooters2() {
|
|
27280
|
-
var tFootProps =
|
|
27281
|
-
var tFootTrProps =
|
|
27263
|
+
var tFootProps = _14.splitProps(getTfootProps(finalState, void 0, void 0, _this2));
|
|
27264
|
+
var tFootTrProps = _14.splitProps(getTfootTrProps(finalState, void 0, void 0, _this2));
|
|
27282
27265
|
return React$1.createElement(
|
|
27283
27266
|
TfootComponent,
|
|
27284
27267
|
_extends$i({
|
|
@@ -27298,7 +27281,7 @@ var ReactTable = function(_Methods) {
|
|
|
27298
27281
|
);
|
|
27299
27282
|
}, "makeColumnFooters");
|
|
27300
27283
|
var makePagination = /* @__PURE__ */ __name(function makePagination2(isTop) {
|
|
27301
|
-
var paginationProps =
|
|
27284
|
+
var paginationProps = _14.splitProps(getPaginationProps(finalState, void 0, void 0, _this2));
|
|
27302
27285
|
return React$1.createElement(PaginationComponent, _extends$i({}, resolvedState, {
|
|
27303
27286
|
pages,
|
|
27304
27287
|
canPrevious,
|
|
@@ -27362,7 +27345,7 @@ var ReactTable = function(_Methods) {
|
|
|
27362
27345
|
!pageRows.length && React$1.createElement(
|
|
27363
27346
|
NoDataComponent,
|
|
27364
27347
|
noDataProps,
|
|
27365
|
-
|
|
27348
|
+
_14.normalizeComponent(noDataText)
|
|
27366
27349
|
),
|
|
27367
27350
|
React$1.createElement(LoadingComponent3, _extends$i({ loading, loadingText }, loadingProps))
|
|
27368
27351
|
);
|
|
@@ -28314,7 +28297,7 @@ var hasOwn$3 = Object.prototype.hasOwnProperty;
|
|
|
28314
28297
|
var toStr$2 = Object.prototype.toString;
|
|
28315
28298
|
var defineProperty$4 = Object.defineProperty;
|
|
28316
28299
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
28317
|
-
var isArray$
|
|
28300
|
+
var isArray$a = /* @__PURE__ */ __name(function isArray2(arr) {
|
|
28318
28301
|
if (typeof Array.isArray === "function") {
|
|
28319
28302
|
return Array.isArray(arr);
|
|
28320
28303
|
}
|
|
@@ -28377,10 +28360,10 @@ var extend = /* @__PURE__ */ __name(function extend2() {
|
|
|
28377
28360
|
src2 = getProperty(target, name);
|
|
28378
28361
|
copy2 = getProperty(options, name);
|
|
28379
28362
|
if (target !== copy2) {
|
|
28380
|
-
if (deep && copy2 && (isPlainObject$3(copy2) || (copyIsArray = isArray$
|
|
28363
|
+
if (deep && copy2 && (isPlainObject$3(copy2) || (copyIsArray = isArray$a(copy2)))) {
|
|
28381
28364
|
if (copyIsArray) {
|
|
28382
28365
|
copyIsArray = false;
|
|
28383
|
-
clone4 = src2 && isArray$
|
|
28366
|
+
clone4 = src2 && isArray$a(src2) ? src2 : [];
|
|
28384
28367
|
} else {
|
|
28385
28368
|
clone4 = src2 && isPlainObject$3(src2) ? src2 : {};
|
|
28386
28369
|
}
|
|
@@ -36393,7 +36376,7 @@ function requireReactIs_development() {
|
|
|
36393
36376
|
if (hasRequiredReactIs_development)
|
|
36394
36377
|
return reactIs_development;
|
|
36395
36378
|
hasRequiredReactIs_development = 1;
|
|
36396
|
-
if (
|
|
36379
|
+
if (production !== "production") {
|
|
36397
36380
|
(function() {
|
|
36398
36381
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
36399
36382
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
@@ -36586,7 +36569,7 @@ function requireReactIs_development() {
|
|
|
36586
36569
|
return reactIs_development;
|
|
36587
36570
|
}
|
|
36588
36571
|
__name(requireReactIs_development, "requireReactIs_development");
|
|
36589
|
-
if (
|
|
36572
|
+
if (production === "production") {
|
|
36590
36573
|
reactIs.exports = requireReactIs_production_min();
|
|
36591
36574
|
} else {
|
|
36592
36575
|
reactIs.exports = requireReactIs_development();
|
|
@@ -42988,7 +42971,7 @@ var objectInspect = /* @__PURE__ */ __name(function inspect_(obj, options, depth
|
|
|
42988
42971
|
depth = 0;
|
|
42989
42972
|
}
|
|
42990
42973
|
if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
42991
|
-
return isArray$
|
|
42974
|
+
return isArray$9(obj) ? "[Array]" : "[Object]";
|
|
42992
42975
|
}
|
|
42993
42976
|
var indent2 = getIndent(opts, depth);
|
|
42994
42977
|
if (typeof seen === "undefined") {
|
|
@@ -43035,7 +43018,7 @@ var objectInspect = /* @__PURE__ */ __name(function inspect_(obj, options, depth
|
|
|
43035
43018
|
s2 += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
43036
43019
|
return s2;
|
|
43037
43020
|
}
|
|
43038
|
-
if (isArray$
|
|
43021
|
+
if (isArray$9(obj)) {
|
|
43039
43022
|
if (obj.length === 0) {
|
|
43040
43023
|
return "[]";
|
|
43041
43024
|
}
|
|
@@ -43098,7 +43081,7 @@ var objectInspect = /* @__PURE__ */ __name(function inspect_(obj, options, depth
|
|
|
43098
43081
|
if (isBoolean$1(obj)) {
|
|
43099
43082
|
return markBoxed(booleanValueOf.call(obj));
|
|
43100
43083
|
}
|
|
43101
|
-
if (isString$
|
|
43084
|
+
if (isString$2(obj)) {
|
|
43102
43085
|
return markBoxed(inspect2(String(obj)));
|
|
43103
43086
|
}
|
|
43104
43087
|
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
@@ -43127,10 +43110,10 @@ function quote(s2) {
|
|
|
43127
43110
|
return $replace.call(String(s2), /"/g, """);
|
|
43128
43111
|
}
|
|
43129
43112
|
__name(quote, "quote");
|
|
43130
|
-
function isArray$
|
|
43113
|
+
function isArray$9(obj) {
|
|
43131
43114
|
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43132
43115
|
}
|
|
43133
|
-
__name(isArray$
|
|
43116
|
+
__name(isArray$9, "isArray$9");
|
|
43134
43117
|
function isDate(obj) {
|
|
43135
43118
|
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43136
43119
|
}
|
|
@@ -43143,10 +43126,10 @@ function isError(obj) {
|
|
|
43143
43126
|
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43144
43127
|
}
|
|
43145
43128
|
__name(isError, "isError");
|
|
43146
|
-
function isString$
|
|
43129
|
+
function isString$2(obj) {
|
|
43147
43130
|
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43148
43131
|
}
|
|
43149
|
-
__name(isString$
|
|
43132
|
+
__name(isString$2, "isString$2");
|
|
43150
43133
|
function isNumber$1(obj) {
|
|
43151
43134
|
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43152
43135
|
}
|
|
@@ -43380,7 +43363,7 @@ function indentedJoin(xs, indent2) {
|
|
|
43380
43363
|
}
|
|
43381
43364
|
__name(indentedJoin, "indentedJoin");
|
|
43382
43365
|
function arrObjKeys(obj, inspect2) {
|
|
43383
|
-
var isArr = isArray$
|
|
43366
|
+
var isArr = isArray$9(obj);
|
|
43384
43367
|
var xs = [];
|
|
43385
43368
|
if (isArr) {
|
|
43386
43369
|
xs.length = obj.length;
|
|
@@ -43546,7 +43529,7 @@ var formats$3 = {
|
|
|
43546
43529
|
};
|
|
43547
43530
|
var formats$2 = formats$3;
|
|
43548
43531
|
var has$3 = Object.prototype.hasOwnProperty;
|
|
43549
|
-
var isArray$
|
|
43532
|
+
var isArray$8 = Array.isArray;
|
|
43550
43533
|
var hexTable = function() {
|
|
43551
43534
|
var array2 = [];
|
|
43552
43535
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -43558,7 +43541,7 @@ var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
|
|
|
43558
43541
|
while (queue.length > 1) {
|
|
43559
43542
|
var item = queue.pop();
|
|
43560
43543
|
var obj = item.obj[item.prop];
|
|
43561
|
-
if (isArray$
|
|
43544
|
+
if (isArray$8(obj)) {
|
|
43562
43545
|
var compacted = [];
|
|
43563
43546
|
for (var j = 0; j < obj.length; ++j) {
|
|
43564
43547
|
if (typeof obj[j] !== "undefined") {
|
|
@@ -43583,7 +43566,7 @@ var merge$2 = /* @__PURE__ */ __name(function merge(target, source, options) {
|
|
|
43583
43566
|
return target;
|
|
43584
43567
|
}
|
|
43585
43568
|
if (typeof source !== "object") {
|
|
43586
|
-
if (isArray$
|
|
43569
|
+
if (isArray$8(target)) {
|
|
43587
43570
|
target.push(source);
|
|
43588
43571
|
} else if (target && typeof target === "object") {
|
|
43589
43572
|
if (options && (options.plainObjects || options.allowPrototypes) || !has$3.call(Object.prototype, source)) {
|
|
@@ -43598,10 +43581,10 @@ var merge$2 = /* @__PURE__ */ __name(function merge(target, source, options) {
|
|
|
43598
43581
|
return [target].concat(source);
|
|
43599
43582
|
}
|
|
43600
43583
|
var mergeTarget = target;
|
|
43601
|
-
if (isArray$
|
|
43584
|
+
if (isArray$8(target) && !isArray$8(source)) {
|
|
43602
43585
|
mergeTarget = arrayToObject(target, options);
|
|
43603
43586
|
}
|
|
43604
|
-
if (isArray$
|
|
43587
|
+
if (isArray$8(target) && isArray$8(source)) {
|
|
43605
43588
|
source.forEach(function(item, i) {
|
|
43606
43589
|
if (has$3.call(target, i)) {
|
|
43607
43590
|
var targetItem = target[i];
|
|
@@ -43715,7 +43698,7 @@ var combine = /* @__PURE__ */ __name(function combine2(a2, b2) {
|
|
|
43715
43698
|
return [].concat(a2, b2);
|
|
43716
43699
|
}, "combine");
|
|
43717
43700
|
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn3) {
|
|
43718
|
-
if (isArray$
|
|
43701
|
+
if (isArray$8(val)) {
|
|
43719
43702
|
var mapped = [];
|
|
43720
43703
|
for (var i = 0; i < val.length; i += 1) {
|
|
43721
43704
|
mapped.push(fn3(val[i]));
|
|
@@ -43752,10 +43735,10 @@ var arrayPrefixGenerators = {
|
|
|
43752
43735
|
return prefix;
|
|
43753
43736
|
}, "repeat")
|
|
43754
43737
|
};
|
|
43755
|
-
var isArray$
|
|
43738
|
+
var isArray$7 = Array.isArray;
|
|
43756
43739
|
var push2 = Array.prototype.push;
|
|
43757
43740
|
var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
|
|
43758
|
-
push2.apply(arr, isArray$
|
|
43741
|
+
push2.apply(arr, isArray$7(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
43759
43742
|
}, "pushToArray");
|
|
43760
43743
|
var toISO = Date.prototype.toISOString;
|
|
43761
43744
|
var defaultFormat = formats$1["default"];
|
|
@@ -43805,7 +43788,7 @@ var stringify$1 = /* @__PURE__ */ __name(function stringify2(object2, prefix, ge
|
|
|
43805
43788
|
obj = filter(prefix, obj);
|
|
43806
43789
|
} else if (obj instanceof Date) {
|
|
43807
43790
|
obj = serializeDate2(obj);
|
|
43808
|
-
} else if (generateArrayPrefix === "comma" && isArray$
|
|
43791
|
+
} else if (generateArrayPrefix === "comma" && isArray$7(obj)) {
|
|
43809
43792
|
obj = utils$1.maybeMap(obj, function(value2) {
|
|
43810
43793
|
if (value2 instanceof Date) {
|
|
43811
43794
|
return serializeDate2(value2);
|
|
@@ -43831,25 +43814,25 @@ var stringify$1 = /* @__PURE__ */ __name(function stringify2(object2, prefix, ge
|
|
|
43831
43814
|
return values;
|
|
43832
43815
|
}
|
|
43833
43816
|
var objKeys;
|
|
43834
|
-
if (generateArrayPrefix === "comma" && isArray$
|
|
43817
|
+
if (generateArrayPrefix === "comma" && isArray$7(obj)) {
|
|
43835
43818
|
if (encodeValuesOnly && encoder) {
|
|
43836
43819
|
obj = utils$1.maybeMap(obj, encoder);
|
|
43837
43820
|
}
|
|
43838
43821
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
43839
|
-
} else if (isArray$
|
|
43822
|
+
} else if (isArray$7(filter)) {
|
|
43840
43823
|
objKeys = filter;
|
|
43841
43824
|
} else {
|
|
43842
43825
|
var keys3 = Object.keys(obj);
|
|
43843
43826
|
objKeys = sort2 ? keys3.sort(sort2) : keys3;
|
|
43844
43827
|
}
|
|
43845
|
-
var adjustedPrefix = commaRoundTrip && isArray$
|
|
43828
|
+
var adjustedPrefix = commaRoundTrip && isArray$7(obj) && obj.length === 1 ? prefix + "[]" : prefix;
|
|
43846
43829
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
43847
43830
|
var key = objKeys[j];
|
|
43848
43831
|
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
43849
43832
|
if (skipNulls && value === null) {
|
|
43850
43833
|
continue;
|
|
43851
43834
|
}
|
|
43852
|
-
var keyPrefix = isArray$
|
|
43835
|
+
var keyPrefix = isArray$7(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
|
|
43853
43836
|
sideChannel2.set(object2, step2);
|
|
43854
43837
|
var valueSideChannel = getSideChannel2();
|
|
43855
43838
|
valueSideChannel.set(sentinel, sideChannel2);
|
|
@@ -43860,7 +43843,7 @@ var stringify$1 = /* @__PURE__ */ __name(function stringify2(object2, prefix, ge
|
|
|
43860
43843
|
commaRoundTrip,
|
|
43861
43844
|
strictNullHandling,
|
|
43862
43845
|
skipNulls,
|
|
43863
|
-
generateArrayPrefix === "comma" && encodeValuesOnly && isArray$
|
|
43846
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray$7(obj) ? null : encoder,
|
|
43864
43847
|
filter,
|
|
43865
43848
|
sort2,
|
|
43866
43849
|
allowDots,
|
|
@@ -43894,7 +43877,7 @@ var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringi
|
|
|
43894
43877
|
}
|
|
43895
43878
|
var formatter = formats$1.formatters[format2];
|
|
43896
43879
|
var filter = defaults$1.filter;
|
|
43897
|
-
if (typeof opts.filter === "function" || isArray$
|
|
43880
|
+
if (typeof opts.filter === "function" || isArray$7(opts.filter)) {
|
|
43898
43881
|
filter = opts.filter;
|
|
43899
43882
|
}
|
|
43900
43883
|
return {
|
|
@@ -43923,7 +43906,7 @@ var stringify_1 = /* @__PURE__ */ __name(function(object2, opts) {
|
|
|
43923
43906
|
if (typeof options.filter === "function") {
|
|
43924
43907
|
filter = options.filter;
|
|
43925
43908
|
obj = filter("", obj);
|
|
43926
|
-
} else if (isArray$
|
|
43909
|
+
} else if (isArray$7(options.filter)) {
|
|
43927
43910
|
filter = options.filter;
|
|
43928
43911
|
objKeys = filter;
|
|
43929
43912
|
}
|
|
@@ -43988,7 +43971,7 @@ var stringify_1 = /* @__PURE__ */ __name(function(object2, opts) {
|
|
|
43988
43971
|
}, "stringify_1");
|
|
43989
43972
|
var utils = utils$2;
|
|
43990
43973
|
var has$1 = Object.prototype.hasOwnProperty;
|
|
43991
|
-
var isArray$
|
|
43974
|
+
var isArray$6 = Array.isArray;
|
|
43992
43975
|
var defaults = {
|
|
43993
43976
|
allowDots: false,
|
|
43994
43977
|
allowPrototypes: false,
|
|
@@ -44065,7 +44048,7 @@ var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, op
|
|
|
44065
44048
|
val = interpretNumericEntities(val);
|
|
44066
44049
|
}
|
|
44067
44050
|
if (part.indexOf("[]=") > -1) {
|
|
44068
|
-
val = isArray$
|
|
44051
|
+
val = isArray$6(val) ? [val] : val;
|
|
44069
44052
|
}
|
|
44070
44053
|
if (has$1.call(obj, key)) {
|
|
44071
44054
|
obj[key] = utils.combine(obj[key], val);
|
|
@@ -44190,434 +44173,6 @@ var lib$1 = {
|
|
|
44190
44173
|
stringify: stringify3
|
|
44191
44174
|
};
|
|
44192
44175
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(lib$1);
|
|
44193
|
-
var filterExpression = function() {
|
|
44194
|
-
function FilterExpression2(opName, args) {
|
|
44195
|
-
this.name = opName;
|
|
44196
|
-
this.args = args;
|
|
44197
|
-
}
|
|
44198
|
-
__name(FilterExpression2, "FilterExpression");
|
|
44199
|
-
FilterExpression2.prototype.toFilter = function(filterBuilder, argName) {
|
|
44200
|
-
var filterDef = {
|
|
44201
|
-
type: "expression",
|
|
44202
|
-
operator: this.name,
|
|
44203
|
-
field: argName,
|
|
44204
|
-
args: this.args
|
|
44205
|
-
};
|
|
44206
|
-
return filterDef;
|
|
44207
|
-
};
|
|
44208
|
-
return FilterExpression2;
|
|
44209
|
-
}();
|
|
44210
|
-
var combineQueries$1 = /* @__PURE__ */ __name(function combineQueries(qry1, qry2, joinOperator, opts) {
|
|
44211
|
-
if (qry1.__objectType !== "query")
|
|
44212
|
-
throw new Error("First query is not a query type.");
|
|
44213
|
-
if (qry2.__objectType !== "query")
|
|
44214
|
-
throw new Error("Second query is not a query type.");
|
|
44215
|
-
if (qry1.entity != qry2.entity)
|
|
44216
|
-
throw new Error(
|
|
44217
|
-
"Queries are for different entities " + qry1.entity + " and " + qry2.entity
|
|
44218
|
-
);
|
|
44219
|
-
if (joinOperator !== "or")
|
|
44220
|
-
joinOperator = "and";
|
|
44221
|
-
var combinedFilters = {
|
|
44222
|
-
type: "group",
|
|
44223
|
-
operator: joinOperator,
|
|
44224
|
-
filters: []
|
|
44225
|
-
};
|
|
44226
|
-
combinedFilters.filters = qry1.filters.concat(qry2.filters);
|
|
44227
|
-
qry1.filters = [combinedFilters];
|
|
44228
|
-
return qry1;
|
|
44229
|
-
}, "combineQueries");
|
|
44230
|
-
const FilterExpression = filterExpression;
|
|
44231
|
-
const _14 = lodashExports;
|
|
44232
|
-
const combineQueries2 = combineQueries$1;
|
|
44233
|
-
function isDateOrNumber(opName) {
|
|
44234
|
-
return () => {
|
|
44235
|
-
var args = [].slice.call(arguments);
|
|
44236
|
-
if (args.some((arg) => {
|
|
44237
|
-
return !(_14.isDate(arg) || _14.isString(arg) || _14.isNumber(arg));
|
|
44238
|
-
})) {
|
|
44239
|
-
throw new Error(
|
|
44240
|
-
`QueryBuilderError: You must pass a date or number as args to ${opName}. You passed: Args ${args.join(
|
|
44241
|
-
","
|
|
44242
|
-
)}`
|
|
44243
|
-
);
|
|
44244
|
-
}
|
|
44245
|
-
};
|
|
44246
|
-
}
|
|
44247
|
-
__name(isDateOrNumber, "isDateOrNumber");
|
|
44248
|
-
function isArray$6(opName) {
|
|
44249
|
-
return (arg) => {
|
|
44250
|
-
if (!_14.isArray(arg)) {
|
|
44251
|
-
throw new Error(
|
|
44252
|
-
`QueryBuilderError: You must pass an array for ${opName} filters. You passed: ${arg}`
|
|
44253
|
-
);
|
|
44254
|
-
}
|
|
44255
|
-
};
|
|
44256
|
-
}
|
|
44257
|
-
__name(isArray$6, "isArray$6");
|
|
44258
|
-
function isString$2(opName) {
|
|
44259
|
-
return (arg) => {
|
|
44260
|
-
if (!_14.isString(arg)) {
|
|
44261
|
-
throw new Error(
|
|
44262
|
-
`QueryBuilderError: You must pass a string for ${opName} filters. You passed: ${arg}`
|
|
44263
|
-
);
|
|
44264
|
-
}
|
|
44265
|
-
};
|
|
44266
|
-
}
|
|
44267
|
-
__name(isString$2, "isString$2");
|
|
44268
|
-
function numberOfArgs(opName, argLength) {
|
|
44269
|
-
return (...args) => {
|
|
44270
|
-
if (args.length !== argLength) {
|
|
44271
|
-
throw new Error(
|
|
44272
|
-
`QueryBuilderError: Args for ${opName} are of length ${args.length}, but they should be of length ${argLength}`
|
|
44273
|
-
);
|
|
44274
|
-
}
|
|
44275
|
-
};
|
|
44276
|
-
}
|
|
44277
|
-
__name(numberOfArgs, "numberOfArgs");
|
|
44278
|
-
const expressionOperators = [
|
|
44279
|
-
{
|
|
44280
|
-
opName: "greaterThan",
|
|
44281
|
-
sanityChecks: [
|
|
44282
|
-
numberOfArgs("greaterThan", 1),
|
|
44283
|
-
isDateOrNumber("greaterThan")
|
|
44284
|
-
]
|
|
44285
|
-
},
|
|
44286
|
-
{
|
|
44287
|
-
opName: "inList",
|
|
44288
|
-
sanityChecks: [numberOfArgs("inList", 1), isArray$6("inList")]
|
|
44289
|
-
},
|
|
44290
|
-
{
|
|
44291
|
-
opName: "lessThan",
|
|
44292
|
-
sanityChecks: [numberOfArgs("lessThan", 1), isDateOrNumber("lessThan")]
|
|
44293
|
-
},
|
|
44294
|
-
{
|
|
44295
|
-
opName: "lessThanOrEqual",
|
|
44296
|
-
sanityChecks: [
|
|
44297
|
-
numberOfArgs("lessThanOrEqual", 1),
|
|
44298
|
-
isDateOrNumber("lessThanOrEqual")
|
|
44299
|
-
]
|
|
44300
|
-
},
|
|
44301
|
-
{
|
|
44302
|
-
opName: "equals",
|
|
44303
|
-
sanityChecks: [numberOfArgs("equals", 1)]
|
|
44304
|
-
},
|
|
44305
|
-
{
|
|
44306
|
-
opName: "greaterThanOrEqual",
|
|
44307
|
-
sanityChecks: [
|
|
44308
|
-
numberOfArgs("greaterThanOrEqual", 1),
|
|
44309
|
-
isDateOrNumber("greaterThanOrEqual")
|
|
44310
|
-
]
|
|
44311
|
-
},
|
|
44312
|
-
{
|
|
44313
|
-
opName: "notEquals",
|
|
44314
|
-
sanityChecks: [numberOfArgs("notEquals", 1)]
|
|
44315
|
-
},
|
|
44316
|
-
{
|
|
44317
|
-
opName: "notNull",
|
|
44318
|
-
sanityChecks: [numberOfArgs("notNull", 0)]
|
|
44319
|
-
},
|
|
44320
|
-
{
|
|
44321
|
-
opName: "isNull",
|
|
44322
|
-
sanityChecks: [numberOfArgs("isNull", 0)]
|
|
44323
|
-
},
|
|
44324
|
-
{
|
|
44325
|
-
opName: "between",
|
|
44326
|
-
sanityChecks: [numberOfArgs("between", 2), isDateOrNumber("between")]
|
|
44327
|
-
},
|
|
44328
|
-
{
|
|
44329
|
-
opName: "notInList",
|
|
44330
|
-
sanityChecks: [numberOfArgs("notInList", 1), isArray$6("notInList")]
|
|
44331
|
-
},
|
|
44332
|
-
{
|
|
44333
|
-
opName: "startsWithExactly",
|
|
44334
|
-
sanityChecks: [numberOfArgs("startsWith", 1), isString$2("startsWith")]
|
|
44335
|
-
},
|
|
44336
|
-
{
|
|
44337
|
-
opName: "endsWithExactly",
|
|
44338
|
-
sanityChecks: [numberOfArgs("endsWith", 1), isString$2("endsWith")]
|
|
44339
|
-
},
|
|
44340
|
-
{
|
|
44341
|
-
opName: "containsExactly",
|
|
44342
|
-
sanityChecks: [numberOfArgs("contains", 1), isString$2("contains")]
|
|
44343
|
-
},
|
|
44344
|
-
{
|
|
44345
|
-
opName: "startsWith",
|
|
44346
|
-
sanityChecks: [numberOfArgs("startsWith", 1), isString$2("startsWith")]
|
|
44347
|
-
},
|
|
44348
|
-
{
|
|
44349
|
-
opName: "notStartsWith",
|
|
44350
|
-
sanityChecks: [numberOfArgs("notStartsWith", 1), isString$2("notStartsWith")]
|
|
44351
|
-
},
|
|
44352
|
-
{
|
|
44353
|
-
opName: "endsWith",
|
|
44354
|
-
sanityChecks: [numberOfArgs("endsWith", 1), isString$2("endsWith")]
|
|
44355
|
-
},
|
|
44356
|
-
{
|
|
44357
|
-
opName: "notEndsWith",
|
|
44358
|
-
sanityChecks: [numberOfArgs("notEndsWith", 1), isString$2("notEndsWith")]
|
|
44359
|
-
},
|
|
44360
|
-
{
|
|
44361
|
-
opName: "contains",
|
|
44362
|
-
sanityChecks: [numberOfArgs("contains", 1), isString$2("contains")]
|
|
44363
|
-
},
|
|
44364
|
-
{
|
|
44365
|
-
opName: "notContains",
|
|
44366
|
-
sanityChecks: [numberOfArgs("notContains", 1), isString$2("notContains")]
|
|
44367
|
-
},
|
|
44368
|
-
{
|
|
44369
|
-
opName: "upperCase",
|
|
44370
|
-
sanityChecks: [numberOfArgs("upperCase", 1), isString$2("upperCase")]
|
|
44371
|
-
},
|
|
44372
|
-
{
|
|
44373
|
-
opName: "lowerCase",
|
|
44374
|
-
sanityChecks: [numberOfArgs("lowerCase", 1), isString$2("lowerCase")]
|
|
44375
|
-
},
|
|
44376
|
-
{
|
|
44377
|
-
opName: "matchesRegex",
|
|
44378
|
-
sanityChecks: [numberOfArgs("matchesRegex", 1), isString$2("matchesRegex")]
|
|
44379
|
-
},
|
|
44380
|
-
{
|
|
44381
|
-
opName: "matchesSimilar",
|
|
44382
|
-
sanityChecks: [
|
|
44383
|
-
numberOfArgs("matchesSimilar", 1),
|
|
44384
|
-
isString$2("matchesSimilar")
|
|
44385
|
-
]
|
|
44386
|
-
},
|
|
44387
|
-
{
|
|
44388
|
-
opName: "fuzzy",
|
|
44389
|
-
sanityChecks: [numberOfArgs("fuzzy", 1), isString$2("fuzzy")],
|
|
44390
|
-
transform: (arg) => {
|
|
44391
|
-
var matchTerm = "";
|
|
44392
|
-
var terms = arg.replace(/\W/g, "").replace(" ", "").split("");
|
|
44393
|
-
for (var i = 0; i < terms.length; i++) {
|
|
44394
|
-
matchTerm += ".*" + terms[i];
|
|
44395
|
-
}
|
|
44396
|
-
matchTerm += ".*";
|
|
44397
|
-
return {
|
|
44398
|
-
newOpName: "matchesRegex",
|
|
44399
|
-
newArgs: [matchTerm]
|
|
44400
|
-
};
|
|
44401
|
-
}
|
|
44402
|
-
}
|
|
44403
|
-
// 'subString', //tnr: not yet implemented
|
|
44404
|
-
// 'dateOnly', //tnr: not yet implemented
|
|
44405
|
-
];
|
|
44406
|
-
var queryBuilder = function() {
|
|
44407
|
-
function QueryBuilder2(entity) {
|
|
44408
|
-
this.query = {};
|
|
44409
|
-
if (entity == null)
|
|
44410
|
-
throw new Error("You must pass the name of the model being filtered!");
|
|
44411
|
-
if (typeof entity === "string") {
|
|
44412
|
-
this.query = {
|
|
44413
|
-
__objectType: "query",
|
|
44414
|
-
type: "root",
|
|
44415
|
-
entity,
|
|
44416
|
-
filters: []
|
|
44417
|
-
};
|
|
44418
|
-
} else {
|
|
44419
|
-
let subQuery = entity;
|
|
44420
|
-
this.query = {
|
|
44421
|
-
type: "subquery",
|
|
44422
|
-
key: subQuery.key,
|
|
44423
|
-
entity: subQuery.entity,
|
|
44424
|
-
foreignKey: subQuery.foreignKey,
|
|
44425
|
-
modifier: subQuery.modifier,
|
|
44426
|
-
isArrayRelation: subQuery.isArrayRelation,
|
|
44427
|
-
filters: [],
|
|
44428
|
-
countExpression: void 0
|
|
44429
|
-
};
|
|
44430
|
-
this.parentBuilder = subQuery.parentBuilder;
|
|
44431
|
-
this.toFilter = function(filterBuilder, name) {
|
|
44432
|
-
this.query.foreignKey = name;
|
|
44433
|
-
return this.toJSON();
|
|
44434
|
-
};
|
|
44435
|
-
}
|
|
44436
|
-
}
|
|
44437
|
-
__name(QueryBuilder2, "QueryBuilder");
|
|
44438
|
-
QueryBuilder2.combineQueries = combineQueries2;
|
|
44439
|
-
QueryBuilder2.prototype.field = function(fieldName) {
|
|
44440
|
-
return {
|
|
44441
|
-
__objectType: "field",
|
|
44442
|
-
field: fieldName
|
|
44443
|
-
};
|
|
44444
|
-
};
|
|
44445
|
-
QueryBuilder2.prototype.related = function(relatedEntity, isArrayRelation) {
|
|
44446
|
-
var tokens2 = relatedEntity.split(".");
|
|
44447
|
-
var entity = tokens2[0];
|
|
44448
|
-
var key = tokens2[1];
|
|
44449
|
-
return createSubQueryBuilder(this, entity, key, isArrayRelation);
|
|
44450
|
-
};
|
|
44451
|
-
QueryBuilder2.prototype.notRelated = function(relatedEntity, isArrayRelation) {
|
|
44452
|
-
var tokens2 = relatedEntity.split(".");
|
|
44453
|
-
var entity = tokens2[0];
|
|
44454
|
-
var key = tokens2[1];
|
|
44455
|
-
return createSubQueryBuilder(this, entity, key, isArrayRelation, "not");
|
|
44456
|
-
};
|
|
44457
|
-
QueryBuilder2.prototype.toJSON = function() {
|
|
44458
|
-
let qry = JSON.parse(JSON.stringify(this.query));
|
|
44459
|
-
if (qry.filters.length > 1) {
|
|
44460
|
-
qry.filters = [
|
|
44461
|
-
{
|
|
44462
|
-
type: "group",
|
|
44463
|
-
operator: "and",
|
|
44464
|
-
chainedWith: "and",
|
|
44465
|
-
filters: qry.filters
|
|
44466
|
-
}
|
|
44467
|
-
];
|
|
44468
|
-
}
|
|
44469
|
-
return qry;
|
|
44470
|
-
};
|
|
44471
|
-
QueryBuilder2.prototype.convertToFilter = function(argDef, operator) {
|
|
44472
|
-
var whereArgs = {};
|
|
44473
|
-
var filters = [];
|
|
44474
|
-
_14.each(argDef, (arg, name) => {
|
|
44475
|
-
if (!isFilterExpresionOrSubQuery(name, arg)) {
|
|
44476
|
-
if (Array.isArray(arg)) {
|
|
44477
|
-
filters.push(this.inList(arg).toFilter(this, name));
|
|
44478
|
-
} else {
|
|
44479
|
-
whereArgs[name] = arg;
|
|
44480
|
-
}
|
|
44481
|
-
} else {
|
|
44482
|
-
filters.push(arg.toFilter(this, name));
|
|
44483
|
-
}
|
|
44484
|
-
});
|
|
44485
|
-
if (_14.keys(whereArgs).length > 0) {
|
|
44486
|
-
filters.unshift({
|
|
44487
|
-
type: "where",
|
|
44488
|
-
args: whereArgs
|
|
44489
|
-
});
|
|
44490
|
-
}
|
|
44491
|
-
if (filters.length === 1) {
|
|
44492
|
-
return filters[0];
|
|
44493
|
-
}
|
|
44494
|
-
var filterDef = {
|
|
44495
|
-
type: "group",
|
|
44496
|
-
operator: operator || "and",
|
|
44497
|
-
filters
|
|
44498
|
-
};
|
|
44499
|
-
return filterDef;
|
|
44500
|
-
};
|
|
44501
|
-
QueryBuilder2.prototype.where = function() {
|
|
44502
|
-
var args = [].slice.call(arguments);
|
|
44503
|
-
return this.whereAll(args);
|
|
44504
|
-
};
|
|
44505
|
-
QueryBuilder2.prototype.orWhere = function() {
|
|
44506
|
-
var args = [].slice.call(arguments);
|
|
44507
|
-
return this.orWhereAll(args);
|
|
44508
|
-
};
|
|
44509
|
-
QueryBuilder2.prototype.andWhere = function() {
|
|
44510
|
-
var args = [].slice.call(arguments);
|
|
44511
|
-
return this.andWhereAll(args);
|
|
44512
|
-
};
|
|
44513
|
-
QueryBuilder2.prototype.whereAny = function() {
|
|
44514
|
-
var args = [].slice.call(arguments);
|
|
44515
|
-
return whereAny(this, args);
|
|
44516
|
-
};
|
|
44517
|
-
QueryBuilder2.prototype.whereAll = function() {
|
|
44518
|
-
var args = [].slice.call(arguments);
|
|
44519
|
-
return whereAll(this, args);
|
|
44520
|
-
};
|
|
44521
|
-
QueryBuilder2.prototype.andWhereAny = function() {
|
|
44522
|
-
var args = [].slice.call(arguments);
|
|
44523
|
-
return whereAny(this, args, "and");
|
|
44524
|
-
};
|
|
44525
|
-
QueryBuilder2.prototype.orWhereAny = function() {
|
|
44526
|
-
var args = [].slice.call(arguments);
|
|
44527
|
-
return whereAny(this, args, "or");
|
|
44528
|
-
};
|
|
44529
|
-
QueryBuilder2.prototype.andWhereAll = function() {
|
|
44530
|
-
var args = [].slice.call(arguments);
|
|
44531
|
-
return whereAll(this, args, "and");
|
|
44532
|
-
};
|
|
44533
|
-
QueryBuilder2.prototype.orWhereAll = function() {
|
|
44534
|
-
var args = [].slice.call(arguments);
|
|
44535
|
-
return whereAll(this, args, "or");
|
|
44536
|
-
};
|
|
44537
|
-
QueryBuilder2.prototype.count = function() {
|
|
44538
|
-
var args = [].slice.call(arguments);
|
|
44539
|
-
if (this.query.type === "subquery") {
|
|
44540
|
-
if (this.query.countExpression) {
|
|
44541
|
-
throw new Error(
|
|
44542
|
-
"QueryBuilder subquery can only have one count expression"
|
|
44543
|
-
);
|
|
44544
|
-
}
|
|
44545
|
-
this.query.countExpression = args[0].toFilter(this, "count");
|
|
44546
|
-
} else {
|
|
44547
|
-
throw new Error("QueryBuilder is not subquery type on count expression");
|
|
44548
|
-
}
|
|
44549
|
-
return this;
|
|
44550
|
-
};
|
|
44551
|
-
QueryBuilder2.ExpressionJson = {};
|
|
44552
|
-
attachExpressionFunctions();
|
|
44553
|
-
return QueryBuilder2;
|
|
44554
|
-
function createSubQueryBuilder(qb, entity, key, isArrayRelation = true, modifier) {
|
|
44555
|
-
return new QueryBuilder2({
|
|
44556
|
-
parentBuilder: qb,
|
|
44557
|
-
entity,
|
|
44558
|
-
key,
|
|
44559
|
-
modifier,
|
|
44560
|
-
isArrayRelation
|
|
44561
|
-
});
|
|
44562
|
-
}
|
|
44563
|
-
__name(createSubQueryBuilder, "createSubQueryBuilder");
|
|
44564
|
-
function attachExpressionFunctions() {
|
|
44565
|
-
expressionOperators.forEach(({ opName, sanityChecks, transform: transform2 }) => {
|
|
44566
|
-
const filter = /* @__PURE__ */ __name((...args) => {
|
|
44567
|
-
let argsToUse = args;
|
|
44568
|
-
let opNameToUse = opName;
|
|
44569
|
-
if (transform2) {
|
|
44570
|
-
let { newOpName, newArgs } = transform2(...args);
|
|
44571
|
-
argsToUse = newArgs;
|
|
44572
|
-
opNameToUse = newOpName;
|
|
44573
|
-
}
|
|
44574
|
-
sanityChecks.forEach((sanityCheck) => {
|
|
44575
|
-
sanityCheck(...args);
|
|
44576
|
-
});
|
|
44577
|
-
return new FilterExpression(opNameToUse, argsToUse);
|
|
44578
|
-
}, "filter");
|
|
44579
|
-
QueryBuilder2.prototype[opName] = filter;
|
|
44580
|
-
QueryBuilder2.ExpressionJson[opName] = filter;
|
|
44581
|
-
});
|
|
44582
|
-
}
|
|
44583
|
-
__name(attachExpressionFunctions, "attachExpressionFunctions");
|
|
44584
|
-
function isFilterExpresionOrSubQuery(name, arg) {
|
|
44585
|
-
if (arg instanceof FilterExpression)
|
|
44586
|
-
return true;
|
|
44587
|
-
if (arg instanceof QueryBuilder2)
|
|
44588
|
-
return true;
|
|
44589
|
-
return false;
|
|
44590
|
-
}
|
|
44591
|
-
__name(isFilterExpresionOrSubQuery, "isFilterExpresionOrSubQuery");
|
|
44592
|
-
function whereAny(filterBuilder, whereArgs, chainedWith) {
|
|
44593
|
-
return where(filterBuilder, "or", whereArgs, chainedWith);
|
|
44594
|
-
}
|
|
44595
|
-
__name(whereAny, "whereAny");
|
|
44596
|
-
function whereAll(filterBuilder, whereArgs, chainedWith) {
|
|
44597
|
-
return where(filterBuilder, "and", whereArgs, chainedWith);
|
|
44598
|
-
}
|
|
44599
|
-
__name(whereAll, "whereAll");
|
|
44600
|
-
function where(filterBuilder, operator, whereArgs, chainedWith) {
|
|
44601
|
-
if (!Array.isArray(whereArgs))
|
|
44602
|
-
return where(filterBuilder, operator, [whereArgs], chainedWith);
|
|
44603
|
-
var filterDef = {
|
|
44604
|
-
type: "group",
|
|
44605
|
-
operator,
|
|
44606
|
-
chainedWith,
|
|
44607
|
-
filters: []
|
|
44608
|
-
};
|
|
44609
|
-
whereArgs.forEach((arg) => {
|
|
44610
|
-
var filter = filterBuilder.convertToFilter(arg, operator);
|
|
44611
|
-
filterDef.filters.push(filter);
|
|
44612
|
-
});
|
|
44613
|
-
filterBuilder.query.filters.push(filterDef);
|
|
44614
|
-
return filterBuilder;
|
|
44615
|
-
}
|
|
44616
|
-
__name(where, "where");
|
|
44617
|
-
}();
|
|
44618
|
-
const QueryBuilder = queryBuilder;
|
|
44619
|
-
var tgClientQueryBuilder = QueryBuilder;
|
|
44620
|
-
const QueryBuilder$1 = /* @__PURE__ */ getDefaultExportFromCjs(tgClientQueryBuilder);
|
|
44621
44176
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
44622
44177
|
function getMergedOpts(topLevel = {}, instanceLevel = {}) {
|
|
44623
44178
|
const merged = __spreadValues(__spreadValues({}, topLevel), instanceLevel);
|
|
@@ -45259,7 +44814,7 @@ function getQueryParams({
|
|
|
45259
44814
|
graphqlQueryParams.pageSize = ownProps.controlled_pageSize || Number(pageSize);
|
|
45260
44815
|
}
|
|
45261
44816
|
const { model } = schema;
|
|
45262
|
-
const qb = new QueryBuilder
|
|
44817
|
+
const qb = new window.QueryBuilder(model);
|
|
45263
44818
|
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
45264
44819
|
if (tableQueryParams.order && tableQueryParams.order.length) {
|
|
45265
44820
|
tableQueryParams.order.forEach((orderVal) => {
|
|
@@ -54983,7 +54538,7 @@ function useDeepCompareMemoize(value) {
|
|
|
54983
54538
|
}
|
|
54984
54539
|
__name(useDeepCompareMemoize, "useDeepCompareMemoize");
|
|
54985
54540
|
function useDeepCompareEffect(callback, dependencies2) {
|
|
54986
|
-
if (
|
|
54541
|
+
if (production !== "production") {
|
|
54987
54542
|
checkDeps(dependencies2);
|
|
54988
54543
|
}
|
|
54989
54544
|
return React__namespace.useEffect(callback, useDeepCompareMemoize(dependencies2));
|
|
@@ -56597,7 +56152,7 @@ function computePresets(props = {}) {
|
|
|
56597
56152
|
return toReturn || {};
|
|
56598
56153
|
}
|
|
56599
56154
|
__name(computePresets, "computePresets");
|
|
56600
|
-
var __DEV__ =
|
|
56155
|
+
var __DEV__ = production !== "production";
|
|
56601
56156
|
var warning = /* @__PURE__ */ __name(function() {
|
|
56602
56157
|
}, "warning");
|
|
56603
56158
|
if (__DEV__) {
|
|
@@ -79673,13 +79228,13 @@ function _interopRequireDefault$2(obj) {
|
|
|
79673
79228
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
79674
79229
|
}
|
|
79675
79230
|
__name(_interopRequireDefault$2, "_interopRequireDefault$2");
|
|
79676
|
-
var timeoutsShape =
|
|
79231
|
+
var timeoutsShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
79677
79232
|
enter: _propTypes.default.number,
|
|
79678
79233
|
exit: _propTypes.default.number,
|
|
79679
79234
|
appear: _propTypes.default.number
|
|
79680
79235
|
}).isRequired]) : null;
|
|
79681
79236
|
PropTypes$1.timeoutsShape = timeoutsShape;
|
|
79682
|
-
var classNamesShape =
|
|
79237
|
+
var classNamesShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
|
|
79683
79238
|
enter: _propTypes.default.string,
|
|
79684
79239
|
exit: _propTypes.default.string,
|
|
79685
79240
|
active: _propTypes.default.string
|
|
@@ -79985,7 +79540,7 @@ Transition.childContextTypes = {
|
|
|
79985
79540
|
transitionGroup: /* @__PURE__ */ __name(function transitionGroup() {
|
|
79986
79541
|
}, "transitionGroup")
|
|
79987
79542
|
};
|
|
79988
|
-
Transition.propTypes =
|
|
79543
|
+
Transition.propTypes = production !== "production" ? {
|
|
79989
79544
|
/**
|
|
79990
79545
|
* A `function` child can be used instead of a React element. This function is
|
|
79991
79546
|
* called with the current transition status (`'entering'`, `'entered'`,
|
|
@@ -80315,7 +79870,7 @@ Transition$1.default = _default;
|
|
|
80315
79870
|
CSSTransition2.defaultProps = {
|
|
80316
79871
|
classNames: ""
|
|
80317
79872
|
};
|
|
80318
|
-
CSSTransition2.propTypes =
|
|
79873
|
+
CSSTransition2.propTypes = production !== "production" ? _extends2({}, _Transition2.default.propTypes, {
|
|
80319
79874
|
/**
|
|
80320
79875
|
* The animation classNames applied to the component as it enters, exits or
|
|
80321
79876
|
* has finished the transition. A single name can be provided and it will be
|
|
@@ -80678,7 +80233,7 @@ __name(getNextChildMapping, "getNextChildMapping");
|
|
|
80678
80233
|
TransitionGroup2.childContextTypes = {
|
|
80679
80234
|
transitionGroup: _propTypes2.default.object.isRequired
|
|
80680
80235
|
};
|
|
80681
|
-
TransitionGroup2.propTypes =
|
|
80236
|
+
TransitionGroup2.propTypes = production !== "production" ? {
|
|
80682
80237
|
/**
|
|
80683
80238
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
80684
80239
|
* behavior by providing a `component` prop.
|
|
@@ -80849,7 +80404,7 @@ var TransitionGroupExports = TransitionGroup.exports;
|
|
|
80849
80404
|
}, "render");
|
|
80850
80405
|
return ReplaceTransition3;
|
|
80851
80406
|
}(_react3.default.Component);
|
|
80852
|
-
ReplaceTransition2.propTypes =
|
|
80407
|
+
ReplaceTransition2.propTypes = production !== "production" ? {
|
|
80853
80408
|
in: _propTypes2.default.bool.isRequired,
|
|
80854
80409
|
children: /* @__PURE__ */ __name(function children(props, propName) {
|
|
80855
80410
|
if (_react3.default.Children.count(props[propName]) !== 2)
|