@teselagen/ove 0.3.9 → 0.3.10
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 +248 -227
- package/index.mjs +248 -227
- package/index.umd.js +297 -291
- package/package.json +3 -3
- package/src/LinearView/index.js +1 -3
- package/src/withEditorProps/index.js +1 -1
package/index.umd.js
CHANGED
|
@@ -491,10 +491,7 @@
|
|
|
491
491
|
if (typeof f == "function") {
|
|
492
492
|
var a = function a () {
|
|
493
493
|
if (this instanceof a) {
|
|
494
|
-
|
|
495
|
-
args.push.apply(args, arguments);
|
|
496
|
-
var Ctor = Function.bind.apply(f, args);
|
|
497
|
-
return new Ctor();
|
|
494
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
498
495
|
}
|
|
499
496
|
return f.apply(this, arguments);
|
|
500
497
|
};
|
|
@@ -22156,7 +22153,7 @@
|
|
|
22156
22153
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22157
22154
|
PERFORMANCE OF THIS SOFTWARE.
|
|
22158
22155
|
***************************************************************************** */
|
|
22159
|
-
/* global Reflect, Promise */
|
|
22156
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
22160
22157
|
|
|
22161
22158
|
|
|
22162
22159
|
function __awaiter$1(thisArg, _arguments, P, generator) {
|
|
@@ -22221,6 +22218,11 @@
|
|
|
22221
22218
|
return ar;
|
|
22222
22219
|
}
|
|
22223
22220
|
|
|
22221
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
22222
|
+
var e = new Error(message);
|
|
22223
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
22224
|
+
};
|
|
22225
|
+
|
|
22224
22226
|
var COMMON_MIME_TYPES = new Map([
|
|
22225
22227
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
22226
22228
|
['aac', 'audio/aac'],
|
|
@@ -25758,19 +25760,20 @@
|
|
|
25758
25760
|
}
|
|
25759
25761
|
}
|
|
25760
25762
|
};
|
|
25761
|
-
_proto.getDisposer_ = function getDisposer_() {
|
|
25762
|
-
var
|
|
25763
|
-
|
|
25764
|
-
|
|
25763
|
+
_proto.getDisposer_ = function getDisposer_(abortSignal) {
|
|
25764
|
+
var _this2 = this;
|
|
25765
|
+
var dispose = function dispose() {
|
|
25766
|
+
_this2.dispose();
|
|
25767
|
+
abortSignal == null ? void 0 : abortSignal.removeEventListener == null ? void 0 : abortSignal.removeEventListener("abort", dispose);
|
|
25768
|
+
};
|
|
25769
|
+
abortSignal == null ? void 0 : abortSignal.addEventListener == null ? void 0 : abortSignal.addEventListener("abort", dispose);
|
|
25770
|
+
dispose[$mobx] = this;
|
|
25771
|
+
return dispose;
|
|
25765
25772
|
};
|
|
25766
25773
|
_proto.toString = function toString() {
|
|
25767
25774
|
return "Reaction[" + this.name_ + "]";
|
|
25768
25775
|
};
|
|
25769
25776
|
_proto.trace = function trace$1(enterBreakPoint) {
|
|
25770
|
-
if (enterBreakPoint === void 0) {
|
|
25771
|
-
enterBreakPoint = false;
|
|
25772
|
-
}
|
|
25773
|
-
trace(this, enterBreakPoint);
|
|
25774
25777
|
};
|
|
25775
25778
|
return Reaction;
|
|
25776
25779
|
}();
|
|
@@ -25902,7 +25905,7 @@
|
|
|
25902
25905
|
* @returns disposer function, which can be used to stop the view from being updated in the future.
|
|
25903
25906
|
*/
|
|
25904
25907
|
function autorun(view, opts) {
|
|
25905
|
-
var _opts$name, _opts;
|
|
25908
|
+
var _opts$name, _opts, _opts2, _opts2$signal, _opts3;
|
|
25906
25909
|
if (opts === void 0) {
|
|
25907
25910
|
opts = EMPTY_OBJECT;
|
|
25908
25911
|
}
|
|
@@ -25933,8 +25936,10 @@
|
|
|
25933
25936
|
function reactionRunner() {
|
|
25934
25937
|
view(reaction);
|
|
25935
25938
|
}
|
|
25936
|
-
|
|
25937
|
-
|
|
25939
|
+
if (!((_opts2 = opts) != null && (_opts2$signal = _opts2.signal) != null && _opts2$signal.aborted)) {
|
|
25940
|
+
reaction.schedule_();
|
|
25941
|
+
}
|
|
25942
|
+
return reaction.getDisposer_((_opts3 = opts) == null ? void 0 : _opts3.signal);
|
|
25938
25943
|
}
|
|
25939
25944
|
var run = function run(f) {
|
|
25940
25945
|
return f();
|
|
@@ -26151,37 +26156,6 @@
|
|
|
26151
26156
|
return _isObservable(value);
|
|
26152
26157
|
}
|
|
26153
26158
|
|
|
26154
|
-
function trace() {
|
|
26155
|
-
{
|
|
26156
|
-
die("trace() is not available in production builds");
|
|
26157
|
-
}
|
|
26158
|
-
var enterBreakPoint = false;
|
|
26159
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26160
|
-
args[_key] = arguments[_key];
|
|
26161
|
-
}
|
|
26162
|
-
if (typeof args[args.length - 1] === "boolean") {
|
|
26163
|
-
enterBreakPoint = args.pop();
|
|
26164
|
-
}
|
|
26165
|
-
var derivation = getAtomFromArgs(args);
|
|
26166
|
-
if (!derivation) {
|
|
26167
|
-
return die("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
26168
|
-
}
|
|
26169
|
-
if (derivation.isTracing_ === TraceMode.NONE) {
|
|
26170
|
-
console.log("[mobx.trace] '" + derivation.name_ + "' tracing enabled");
|
|
26171
|
-
}
|
|
26172
|
-
derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG;
|
|
26173
|
-
}
|
|
26174
|
-
function getAtomFromArgs(args) {
|
|
26175
|
-
switch (args.length) {
|
|
26176
|
-
case 0:
|
|
26177
|
-
return globalState.trackingDerivation;
|
|
26178
|
-
case 1:
|
|
26179
|
-
return getAtom(args[0]);
|
|
26180
|
-
case 2:
|
|
26181
|
-
return getAtom(args[0], args[1]);
|
|
26182
|
-
}
|
|
26183
|
-
}
|
|
26184
|
-
|
|
26185
26159
|
/**
|
|
26186
26160
|
* During a transaction no views are updated until the end of the transaction.
|
|
26187
26161
|
* The transaction will be run synchronously nonetheless.
|
|
@@ -29935,36 +29909,35 @@
|
|
|
29935
29909
|
|
|
29936
29910
|
const getBatch = () => batch$2;
|
|
29937
29911
|
|
|
29938
|
-
const ContextKey = Symbol.for(`react-redux-context
|
|
29939
|
-
const gT = globalThis
|
|
29912
|
+
const ContextKey = Symbol.for(`react-redux-context`);
|
|
29913
|
+
const gT = typeof globalThis !== "undefined" ? globalThis :
|
|
29914
|
+
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
29915
|
+
{};
|
|
29940
29916
|
|
|
29941
29917
|
function getContext() {
|
|
29942
|
-
|
|
29918
|
+
var _gT$ContextKey;
|
|
29919
|
+
|
|
29920
|
+
if (!reactExports.createContext) return {};
|
|
29921
|
+
const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
|
|
29922
|
+
let realContext = contextMap.get(reactExports.createContext);
|
|
29943
29923
|
|
|
29944
29924
|
if (!realContext) {
|
|
29945
29925
|
realContext = reactExports.createContext(null);
|
|
29946
29926
|
|
|
29947
|
-
|
|
29927
|
+
contextMap.set(reactExports.createContext, realContext);
|
|
29948
29928
|
}
|
|
29949
29929
|
|
|
29950
29930
|
return realContext;
|
|
29951
29931
|
}
|
|
29952
29932
|
|
|
29953
|
-
const ReactReduxContext = /*#__PURE__*/
|
|
29954
|
-
get(_, handler) {
|
|
29955
|
-
const target = getContext(); // @ts-ignore
|
|
29956
|
-
|
|
29957
|
-
return (_target, ...args) => Reflect[handler](target, ...args);
|
|
29958
|
-
}
|
|
29933
|
+
const ReactReduxContext = /*#__PURE__*/getContext();
|
|
29959
29934
|
|
|
29960
|
-
|
|
29961
|
-
|
|
29962
|
-
|
|
29963
|
-
*
|
|
29964
|
-
*
|
|
29965
|
-
*
|
|
29966
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
29967
|
-
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
29935
|
+
/**
|
|
29936
|
+
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
29937
|
+
* hook that you should usually not need to call directly.
|
|
29938
|
+
*
|
|
29939
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
29940
|
+
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
29968
29941
|
*/
|
|
29969
29942
|
function createReduxContextHook(context = ReactReduxContext) {
|
|
29970
29943
|
return function useReduxContext() {
|
|
@@ -29973,21 +29946,21 @@
|
|
|
29973
29946
|
return contextValue;
|
|
29974
29947
|
};
|
|
29975
29948
|
}
|
|
29976
|
-
/**
|
|
29977
|
-
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
29978
|
-
* hook that you should usually not need to call directly.
|
|
29979
|
-
*
|
|
29980
|
-
* @returns {any} the value of the `ReactReduxContext`
|
|
29981
|
-
*
|
|
29982
|
-
* @example
|
|
29983
|
-
*
|
|
29984
|
-
* import React from 'react'
|
|
29985
|
-
* import { useReduxContext } from 'react-redux'
|
|
29986
|
-
*
|
|
29987
|
-
* export const CounterComponent = () => {
|
|
29988
|
-
* const { store } = useReduxContext()
|
|
29989
|
-
* return <div>{store.getState()}</div>
|
|
29990
|
-
* }
|
|
29949
|
+
/**
|
|
29950
|
+
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
29951
|
+
* hook that you should usually not need to call directly.
|
|
29952
|
+
*
|
|
29953
|
+
* @returns {any} the value of the `ReactReduxContext`
|
|
29954
|
+
*
|
|
29955
|
+
* @example
|
|
29956
|
+
*
|
|
29957
|
+
* import React from 'react'
|
|
29958
|
+
* import { useReduxContext } from 'react-redux'
|
|
29959
|
+
*
|
|
29960
|
+
* export const CounterComponent = () => {
|
|
29961
|
+
* const { store } = useReduxContext()
|
|
29962
|
+
* return <div>{store.getState()}</div>
|
|
29963
|
+
* }
|
|
29991
29964
|
*/
|
|
29992
29965
|
|
|
29993
29966
|
const useReduxContext = /*#__PURE__*/createReduxContextHook();
|
|
@@ -30610,25 +30583,25 @@
|
|
|
30610
30583
|
function strictEqual(a, b) {
|
|
30611
30584
|
return a === b;
|
|
30612
30585
|
}
|
|
30613
|
-
/**
|
|
30614
|
-
* Connects a React component to a Redux store.
|
|
30615
|
-
*
|
|
30616
|
-
* - Without arguments, just wraps the component, without changing the behavior / props
|
|
30617
|
-
*
|
|
30618
|
-
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
|
|
30619
|
-
* is to override ownProps (as stated in the docs), so what remains is everything that's
|
|
30620
|
-
* not a state or dispatch prop
|
|
30621
|
-
*
|
|
30622
|
-
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
|
|
30623
|
-
* should be valid component props, because it depends on mergeProps implementation.
|
|
30624
|
-
* As such, it is the user's responsibility to extend ownProps interface from state or
|
|
30625
|
-
* dispatch props or both when applicable
|
|
30626
|
-
*
|
|
30627
|
-
* @param mapStateToProps A function that extracts values from state
|
|
30628
|
-
* @param mapDispatchToProps Setup for dispatching actions
|
|
30629
|
-
* @param mergeProps Optional callback to merge state and dispatch props together
|
|
30630
|
-
* @param options Options for configuring the connection
|
|
30631
|
-
*
|
|
30586
|
+
/**
|
|
30587
|
+
* Connects a React component to a Redux store.
|
|
30588
|
+
*
|
|
30589
|
+
* - Without arguments, just wraps the component, without changing the behavior / props
|
|
30590
|
+
*
|
|
30591
|
+
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
|
|
30592
|
+
* is to override ownProps (as stated in the docs), so what remains is everything that's
|
|
30593
|
+
* not a state or dispatch prop
|
|
30594
|
+
*
|
|
30595
|
+
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
|
|
30596
|
+
* should be valid component props, because it depends on mergeProps implementation.
|
|
30597
|
+
* As such, it is the user's responsibility to extend ownProps interface from state or
|
|
30598
|
+
* dispatch props or both when applicable
|
|
30599
|
+
*
|
|
30600
|
+
* @param mapStateToProps A function that extracts values from state
|
|
30601
|
+
* @param mapDispatchToProps Setup for dispatching actions
|
|
30602
|
+
* @param mergeProps Optional callback to merge state and dispatch props together
|
|
30603
|
+
* @param options Options for configuring the connection
|
|
30604
|
+
*
|
|
30632
30605
|
*/
|
|
30633
30606
|
|
|
30634
30607
|
function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
@@ -30687,7 +30660,7 @@
|
|
|
30687
30660
|
// Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
|
|
30688
30661
|
// Memoize the check that determines which context instance we should use.
|
|
30689
30662
|
return propsContext && propsContext.Consumer && // @ts-ignore
|
|
30690
|
-
reactIsExports$1.isContextConsumer( /*#__PURE__*/
|
|
30663
|
+
reactIsExports$1.isContextConsumer( /*#__PURE__*/reactExports.createElement(propsContext.Consumer, null)) ? propsContext : Context;
|
|
30691
30664
|
}, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
|
|
30692
30665
|
|
|
30693
30666
|
const contextValue = reactExports.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
|
|
@@ -30810,7 +30783,7 @@
|
|
|
30810
30783
|
return (
|
|
30811
30784
|
/*#__PURE__*/
|
|
30812
30785
|
// @ts-ignore
|
|
30813
|
-
|
|
30786
|
+
reactExports.createElement(WrappedComponent, _extends$u({}, actualChildProps, {
|
|
30814
30787
|
ref: reactReduxForwardedRef
|
|
30815
30788
|
}))
|
|
30816
30789
|
);
|
|
@@ -30822,7 +30795,7 @@
|
|
|
30822
30795
|
// If this component is subscribed to store updates, we need to pass its own
|
|
30823
30796
|
// subscription instance down to our descendants. That means rendering the same
|
|
30824
30797
|
// Context instance, and putting a different value into the context.
|
|
30825
|
-
return /*#__PURE__*/
|
|
30798
|
+
return /*#__PURE__*/reactExports.createElement(ContextToUse.Provider, {
|
|
30826
30799
|
value: overriddenContextValue
|
|
30827
30800
|
}, renderedWrappedComponent);
|
|
30828
30801
|
}
|
|
@@ -30832,7 +30805,7 @@
|
|
|
30832
30805
|
return renderedChild;
|
|
30833
30806
|
}
|
|
30834
30807
|
|
|
30835
|
-
const _Connect =
|
|
30808
|
+
const _Connect = reactExports.memo(ConnectFunction);
|
|
30836
30809
|
|
|
30837
30810
|
// Add a hacky cast to get the right output type
|
|
30838
30811
|
const Connect = _Connect;
|
|
@@ -30840,9 +30813,9 @@
|
|
|
30840
30813
|
Connect.displayName = ConnectFunction.displayName = displayName;
|
|
30841
30814
|
|
|
30842
30815
|
if (forwardRef) {
|
|
30843
|
-
const _forwarded =
|
|
30816
|
+
const _forwarded = reactExports.forwardRef(function forwardConnectRef(props, ref) {
|
|
30844
30817
|
// @ts-ignore
|
|
30845
|
-
return /*#__PURE__*/
|
|
30818
|
+
return /*#__PURE__*/reactExports.createElement(Connect, _extends$u({}, props, {
|
|
30846
30819
|
reactReduxForwardedRef: ref
|
|
30847
30820
|
}));
|
|
30848
30821
|
});
|
|
@@ -30896,16 +30869,16 @@
|
|
|
30896
30869
|
}, [contextValue, previousState]);
|
|
30897
30870
|
const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype
|
|
30898
30871
|
|
|
30899
|
-
return /*#__PURE__*/
|
|
30872
|
+
return /*#__PURE__*/reactExports.createElement(Context.Provider, {
|
|
30900
30873
|
value: contextValue
|
|
30901
30874
|
}, children);
|
|
30902
30875
|
}
|
|
30903
30876
|
|
|
30904
|
-
/**
|
|
30905
|
-
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
30906
|
-
*
|
|
30907
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
30908
|
-
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
30877
|
+
/**
|
|
30878
|
+
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
30879
|
+
*
|
|
30880
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
30881
|
+
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
30909
30882
|
*/
|
|
30910
30883
|
|
|
30911
30884
|
function createStoreHook(context = ReactReduxContext) {
|
|
@@ -30920,20 +30893,20 @@
|
|
|
30920
30893
|
return store;
|
|
30921
30894
|
};
|
|
30922
30895
|
}
|
|
30923
|
-
/**
|
|
30924
|
-
* A hook to access the redux store.
|
|
30925
|
-
*
|
|
30926
|
-
* @returns {any} the redux store
|
|
30927
|
-
*
|
|
30928
|
-
* @example
|
|
30929
|
-
*
|
|
30930
|
-
* import React from 'react'
|
|
30931
|
-
* import { useStore } from 'react-redux'
|
|
30932
|
-
*
|
|
30933
|
-
* export const ExampleComponent = () => {
|
|
30934
|
-
* const store = useStore()
|
|
30935
|
-
* return <div>{store.getState()}</div>
|
|
30936
|
-
* }
|
|
30896
|
+
/**
|
|
30897
|
+
* A hook to access the redux store.
|
|
30898
|
+
*
|
|
30899
|
+
* @returns {any} the redux store
|
|
30900
|
+
*
|
|
30901
|
+
* @example
|
|
30902
|
+
*
|
|
30903
|
+
* import React from 'react'
|
|
30904
|
+
* import { useStore } from 'react-redux'
|
|
30905
|
+
*
|
|
30906
|
+
* export const ExampleComponent = () => {
|
|
30907
|
+
* const store = useStore()
|
|
30908
|
+
* return <div>{store.getState()}</div>
|
|
30909
|
+
* }
|
|
30937
30910
|
*/
|
|
30938
30911
|
|
|
30939
30912
|
const useStore = /*#__PURE__*/createStoreHook();
|
|
@@ -57088,17 +57061,17 @@
|
|
|
57088
57061
|
throw TypeError("Can't convert object to primitive value");
|
|
57089
57062
|
};
|
|
57090
57063
|
|
|
57091
|
-
var anObject$
|
|
57064
|
+
var anObject$3 = _anObject;
|
|
57092
57065
|
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
57093
57066
|
var toPrimitive$2 = _toPrimitive$1;
|
|
57094
|
-
var dP$
|
|
57067
|
+
var dP$2 = Object.defineProperty;
|
|
57095
57068
|
|
|
57096
57069
|
_objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
57097
|
-
anObject$
|
|
57070
|
+
anObject$3(O);
|
|
57098
57071
|
P = toPrimitive$2(P, true);
|
|
57099
|
-
anObject$
|
|
57072
|
+
anObject$3(Attributes);
|
|
57100
57073
|
if (IE8_DOM_DEFINE$1) try {
|
|
57101
|
-
return dP$
|
|
57074
|
+
return dP$2(O, P, Attributes);
|
|
57102
57075
|
} catch (e) { /* empty */ }
|
|
57103
57076
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
57104
57077
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
@@ -57114,10 +57087,10 @@
|
|
|
57114
57087
|
};
|
|
57115
57088
|
};
|
|
57116
57089
|
|
|
57117
|
-
var dP$
|
|
57090
|
+
var dP$1 = _objectDp;
|
|
57118
57091
|
var createDesc$3 = _propertyDesc;
|
|
57119
57092
|
var _hide = _descriptors ? function (object, key, value) {
|
|
57120
|
-
return dP$
|
|
57093
|
+
return dP$1.f(object, key, createDesc$3(1, value));
|
|
57121
57094
|
} : function (object, key, value) {
|
|
57122
57095
|
object[key] = value;
|
|
57123
57096
|
return object;
|
|
@@ -57133,7 +57106,7 @@
|
|
|
57133
57106
|
var ctx$1 = _ctx;
|
|
57134
57107
|
var hide$2 = _hide;
|
|
57135
57108
|
var has$d = _has;
|
|
57136
|
-
var PROTOTYPE$
|
|
57109
|
+
var PROTOTYPE$1 = 'prototype';
|
|
57137
57110
|
|
|
57138
57111
|
var $export$8 = function (type, name, source) {
|
|
57139
57112
|
var IS_FORCED = type & $export$8.F;
|
|
@@ -57143,8 +57116,8 @@
|
|
|
57143
57116
|
var IS_BIND = type & $export$8.B;
|
|
57144
57117
|
var IS_WRAP = type & $export$8.W;
|
|
57145
57118
|
var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
|
|
57146
|
-
var expProto = exports[PROTOTYPE$
|
|
57147
|
-
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$
|
|
57119
|
+
var expProto = exports[PROTOTYPE$1];
|
|
57120
|
+
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
|
|
57148
57121
|
var key, own, out;
|
|
57149
57122
|
if (IS_GLOBAL) source = name;
|
|
57150
57123
|
for (key in source) {
|
|
@@ -57168,7 +57141,7 @@
|
|
|
57168
57141
|
} return new C(a, b, c);
|
|
57169
57142
|
} return C.apply(this, arguments);
|
|
57170
57143
|
};
|
|
57171
|
-
F[PROTOTYPE$
|
|
57144
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
57172
57145
|
return F;
|
|
57173
57146
|
// make static versions for prototype methods
|
|
57174
57147
|
})(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
|
|
@@ -57197,12 +57170,20 @@
|
|
|
57197
57170
|
return toString$4.call(it).slice(8, -1);
|
|
57198
57171
|
};
|
|
57199
57172
|
|
|
57200
|
-
|
|
57201
|
-
var
|
|
57202
|
-
|
|
57203
|
-
|
|
57204
|
-
|
|
57205
|
-
|
|
57173
|
+
var _iobject;
|
|
57174
|
+
var hasRequired_iobject;
|
|
57175
|
+
|
|
57176
|
+
function require_iobject () {
|
|
57177
|
+
if (hasRequired_iobject) return _iobject;
|
|
57178
|
+
hasRequired_iobject = 1;
|
|
57179
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
57180
|
+
var cof = _cof;
|
|
57181
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
57182
|
+
_iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
57183
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
57184
|
+
};
|
|
57185
|
+
return _iobject;
|
|
57186
|
+
}
|
|
57206
57187
|
|
|
57207
57188
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
57208
57189
|
var _defined = function (it) {
|
|
@@ -57211,7 +57192,7 @@
|
|
|
57211
57192
|
};
|
|
57212
57193
|
|
|
57213
57194
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
57214
|
-
var IObject =
|
|
57195
|
+
var IObject = require_iobject();
|
|
57215
57196
|
var defined$2 = _defined;
|
|
57216
57197
|
var _toIobject = function (it) {
|
|
57217
57198
|
return IObject(defined$2(it));
|
|
@@ -57297,14 +57278,14 @@
|
|
|
57297
57278
|
var has$c = _has;
|
|
57298
57279
|
var toIObject$4 = _toIobject;
|
|
57299
57280
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
57300
|
-
var IE_PROTO$
|
|
57281
|
+
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
57301
57282
|
|
|
57302
57283
|
var _objectKeysInternal = function (object, names) {
|
|
57303
57284
|
var O = toIObject$4(object);
|
|
57304
57285
|
var i = 0;
|
|
57305
57286
|
var result = [];
|
|
57306
57287
|
var key;
|
|
57307
|
-
for (key in O) if (key != IE_PROTO$
|
|
57288
|
+
for (key in O) if (key != IE_PROTO$1) has$c(O, key) && result.push(key);
|
|
57308
57289
|
// Don't enum bug & hidden keys
|
|
57309
57290
|
while (names.length > i) if (has$c(O, key = names[i++])) {
|
|
57310
57291
|
~arrayIndexOf(result, key) || result.push(key);
|
|
@@ -57319,10 +57300,10 @@
|
|
|
57319
57300
|
|
|
57320
57301
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
57321
57302
|
var $keys$3 = _objectKeysInternal;
|
|
57322
|
-
var enumBugKeys
|
|
57303
|
+
var enumBugKeys = _enumBugKeys;
|
|
57323
57304
|
|
|
57324
57305
|
var _objectKeys = Object.keys || function keys(O) {
|
|
57325
|
-
return $keys$3(O, enumBugKeys
|
|
57306
|
+
return $keys$3(O, enumBugKeys);
|
|
57326
57307
|
};
|
|
57327
57308
|
|
|
57328
57309
|
var _objectGops = {};
|
|
@@ -57358,7 +57339,7 @@
|
|
|
57358
57339
|
var gOPS = _objectGops;
|
|
57359
57340
|
var pIE = require_objectPie();
|
|
57360
57341
|
var toObject = _toObject;
|
|
57361
|
-
var IObject =
|
|
57342
|
+
var IObject = require_iobject();
|
|
57362
57343
|
var $assign = Object.assign;
|
|
57363
57344
|
|
|
57364
57345
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -57429,19 +57410,27 @@
|
|
|
57429
57410
|
|
|
57430
57411
|
var _redefine = _hide;
|
|
57431
57412
|
|
|
57432
|
-
var
|
|
57433
|
-
var
|
|
57434
|
-
var getKeys$1 = _objectKeys;
|
|
57413
|
+
var _objectDps;
|
|
57414
|
+
var hasRequired_objectDps;
|
|
57435
57415
|
|
|
57436
|
-
|
|
57437
|
-
|
|
57438
|
-
|
|
57439
|
-
|
|
57440
|
-
|
|
57441
|
-
|
|
57442
|
-
|
|
57443
|
-
|
|
57444
|
-
|
|
57416
|
+
function require_objectDps () {
|
|
57417
|
+
if (hasRequired_objectDps) return _objectDps;
|
|
57418
|
+
hasRequired_objectDps = 1;
|
|
57419
|
+
var dP = _objectDp;
|
|
57420
|
+
var anObject = _anObject;
|
|
57421
|
+
var getKeys = _objectKeys;
|
|
57422
|
+
|
|
57423
|
+
_objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
57424
|
+
anObject(O);
|
|
57425
|
+
var keys = getKeys(Properties);
|
|
57426
|
+
var length = keys.length;
|
|
57427
|
+
var i = 0;
|
|
57428
|
+
var P;
|
|
57429
|
+
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
|
57430
|
+
return O;
|
|
57431
|
+
};
|
|
57432
|
+
return _objectDps;
|
|
57433
|
+
}
|
|
57445
57434
|
|
|
57446
57435
|
var _html;
|
|
57447
57436
|
var hasRequired_html;
|
|
@@ -57454,47 +57443,55 @@
|
|
|
57454
57443
|
return _html;
|
|
57455
57444
|
}
|
|
57456
57445
|
|
|
57457
|
-
|
|
57458
|
-
var
|
|
57459
|
-
var dPs = _objectDps;
|
|
57460
|
-
var enumBugKeys = _enumBugKeys;
|
|
57461
|
-
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
57462
|
-
var Empty = function () { /* empty */ };
|
|
57463
|
-
var PROTOTYPE$1 = 'prototype';
|
|
57446
|
+
var _objectCreate;
|
|
57447
|
+
var hasRequired_objectCreate;
|
|
57464
57448
|
|
|
57465
|
-
|
|
57466
|
-
|
|
57467
|
-
|
|
57468
|
-
|
|
57469
|
-
|
|
57470
|
-
|
|
57471
|
-
|
|
57472
|
-
|
|
57473
|
-
|
|
57474
|
-
|
|
57475
|
-
|
|
57476
|
-
|
|
57477
|
-
|
|
57478
|
-
|
|
57479
|
-
|
|
57480
|
-
|
|
57481
|
-
|
|
57482
|
-
|
|
57483
|
-
|
|
57484
|
-
|
|
57485
|
-
|
|
57486
|
-
|
|
57487
|
-
|
|
57488
|
-
|
|
57489
|
-
|
|
57490
|
-
|
|
57491
|
-
|
|
57492
|
-
|
|
57493
|
-
|
|
57494
|
-
|
|
57495
|
-
|
|
57496
|
-
|
|
57497
|
-
|
|
57449
|
+
function require_objectCreate () {
|
|
57450
|
+
if (hasRequired_objectCreate) return _objectCreate;
|
|
57451
|
+
hasRequired_objectCreate = 1;
|
|
57452
|
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
57453
|
+
var anObject = _anObject;
|
|
57454
|
+
var dPs = require_objectDps();
|
|
57455
|
+
var enumBugKeys = _enumBugKeys;
|
|
57456
|
+
var IE_PROTO = _sharedKey('IE_PROTO');
|
|
57457
|
+
var Empty = function () { /* empty */ };
|
|
57458
|
+
var PROTOTYPE = 'prototype';
|
|
57459
|
+
|
|
57460
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
57461
|
+
var createDict = function () {
|
|
57462
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
57463
|
+
var iframe = require_domCreate()('iframe');
|
|
57464
|
+
var i = enumBugKeys.length;
|
|
57465
|
+
var lt = '<';
|
|
57466
|
+
var gt = '>';
|
|
57467
|
+
var iframeDocument;
|
|
57468
|
+
iframe.style.display = 'none';
|
|
57469
|
+
require_html().appendChild(iframe);
|
|
57470
|
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
|
57471
|
+
// createDict = iframe.contentWindow.Object;
|
|
57472
|
+
// html.removeChild(iframe);
|
|
57473
|
+
iframeDocument = iframe.contentWindow.document;
|
|
57474
|
+
iframeDocument.open();
|
|
57475
|
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
|
57476
|
+
iframeDocument.close();
|
|
57477
|
+
createDict = iframeDocument.F;
|
|
57478
|
+
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
57479
|
+
return createDict();
|
|
57480
|
+
};
|
|
57481
|
+
|
|
57482
|
+
_objectCreate = Object.create || function create(O, Properties) {
|
|
57483
|
+
var result;
|
|
57484
|
+
if (O !== null) {
|
|
57485
|
+
Empty[PROTOTYPE] = anObject(O);
|
|
57486
|
+
result = new Empty();
|
|
57487
|
+
Empty[PROTOTYPE] = null;
|
|
57488
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
57489
|
+
result[IE_PROTO] = O;
|
|
57490
|
+
} else result = createDict();
|
|
57491
|
+
return Properties === undefined ? result : dPs(result, Properties);
|
|
57492
|
+
};
|
|
57493
|
+
return _objectCreate;
|
|
57494
|
+
}
|
|
57498
57495
|
|
|
57499
57496
|
var _wks = {exports: {}};
|
|
57500
57497
|
|
|
@@ -57520,7 +57517,7 @@
|
|
|
57520
57517
|
if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
|
|
57521
57518
|
};
|
|
57522
57519
|
|
|
57523
|
-
var create$4 =
|
|
57520
|
+
var create$4 = require_objectCreate();
|
|
57524
57521
|
var descriptor = _propertyDesc;
|
|
57525
57522
|
var setToStringTag$2 = _setToStringTag;
|
|
57526
57523
|
var IteratorPrototype = {};
|
|
@@ -58163,7 +58160,7 @@
|
|
|
58163
58160
|
var toIObject = _toIobject;
|
|
58164
58161
|
var toPrimitive = _toPrimitive$1;
|
|
58165
58162
|
var createDesc = _propertyDesc;
|
|
58166
|
-
var _create$1 =
|
|
58163
|
+
var _create$1 = require_objectCreate();
|
|
58167
58164
|
var gOPNExt = _objectGopnExt;
|
|
58168
58165
|
var $GOPD = _objectGopd;
|
|
58169
58166
|
var $GOPS = _objectGops;
|
|
@@ -58473,7 +58470,7 @@
|
|
|
58473
58470
|
|
|
58474
58471
|
var $export = _export;
|
|
58475
58472
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
58476
|
-
$export($export.S, 'Object', { create:
|
|
58473
|
+
$export($export.S, 'Object', { create: require_objectCreate() });
|
|
58477
58474
|
|
|
58478
58475
|
var $Object = _coreExports.Object;
|
|
58479
58476
|
var create$3 = function create(P, D) {
|
|
@@ -64520,7 +64517,7 @@
|
|
|
64520
64517
|
var dayjs_min = {exports: {}};
|
|
64521
64518
|
|
|
64522
64519
|
(function (module, exports) {
|
|
64523
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",
|
|
64520
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof b},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return O.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=w(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return O.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),_=b.prototype;return w.prototype=_,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
64524
64521
|
} (dayjs_min));
|
|
64525
64522
|
|
|
64526
64523
|
var dayjs_minExports = dayjs_min.exports;
|
|
@@ -126088,7 +126085,9 @@
|
|
|
126088
126085
|
const zipFilesArray = Array.isArray(zipFiles) ? zipFiles : [zipFiles];
|
|
126089
126086
|
const parsedZips = await Promise$1.map(
|
|
126090
126087
|
zipFilesArray,
|
|
126091
|
-
(file) => jszip_minExports.loadAsync(
|
|
126088
|
+
(file) => jszip_minExports.loadAsync(
|
|
126089
|
+
file instanceof (typeof Blob !== "undefined" ? Blob : require("buffer").Blob) ? file : file.originFileObj
|
|
126090
|
+
)
|
|
126092
126091
|
);
|
|
126093
126092
|
const zippedFiles = lodashExports.flatMap(
|
|
126094
126093
|
parsedZips,
|
|
@@ -127945,10 +127944,7 @@
|
|
|
127945
127944
|
const { showDialogPromise: showUploadCsvWizardDialog, comp } = useDialog({
|
|
127946
127945
|
ModalComponent: UploadCsvWizardDialog
|
|
127947
127946
|
});
|
|
127948
|
-
const {
|
|
127949
|
-
showDialogPromise: showSimpleInsertDataDialog,
|
|
127950
|
-
comp: comp2
|
|
127951
|
-
} = useDialog({
|
|
127947
|
+
const { showDialogPromise: showSimpleInsertDataDialog, comp: comp2 } = useDialog({
|
|
127952
127948
|
ModalComponent: SimpleInsertDataDialog
|
|
127953
127949
|
});
|
|
127954
127950
|
function cleanupFiles() {
|
|
@@ -128024,17 +128020,16 @@
|
|
|
128024
128020
|
const handleDownloadXlsxFile = async () => {
|
|
128025
128021
|
const dataDictionarySchema = [
|
|
128026
128022
|
{ value: (f) => f.displayName || f.path, column: `Column Name` },
|
|
128023
|
+
// {
|
|
128024
|
+
// value: f => f.isUnique ? "Unique" : "",
|
|
128025
|
+
// column: `Unique?`
|
|
128026
|
+
// },
|
|
128027
128027
|
{
|
|
128028
|
-
value: (f) => f.
|
|
128029
|
-
column: `
|
|
128028
|
+
value: (f) => f.isRequired ? "Required" : "Optional",
|
|
128029
|
+
column: `Required?`
|
|
128030
128030
|
},
|
|
128031
128031
|
{
|
|
128032
|
-
value: (f) => f.
|
|
128033
|
-
column: `Required`,
|
|
128034
|
-
type: Boolean
|
|
128035
|
-
},
|
|
128036
|
-
{
|
|
128037
|
-
value: (f) => f.type || "text",
|
|
128032
|
+
value: (f) => f.type === "dropdown" ? "text" : f.type || "text",
|
|
128038
128033
|
column: `Data Type`
|
|
128039
128034
|
},
|
|
128040
128035
|
{
|
|
@@ -128370,10 +128365,7 @@
|
|
|
128370
128365
|
...file.parsedString ? { parsedString: file.parsedString } : {}
|
|
128371
128366
|
};
|
|
128372
128367
|
});
|
|
128373
|
-
const
|
|
128374
|
-
...cleanedAccepted,
|
|
128375
|
-
...fileListToUse
|
|
128376
|
-
].slice(0, fileLimit ? fileLimit : void 0);
|
|
128368
|
+
const toKeep = [];
|
|
128377
128369
|
if (validateAgainstSchema) {
|
|
128378
128370
|
const filesWIssues = [];
|
|
128379
128371
|
const filesWOIssues = [];
|
|
@@ -128404,65 +128396,65 @@
|
|
|
128404
128396
|
userSchema,
|
|
128405
128397
|
parsedF.data
|
|
128406
128398
|
);
|
|
128407
|
-
|
|
128408
|
-
|
|
128409
|
-
|
|
128410
|
-
|
|
128411
|
-
|
|
128412
|
-
|
|
128413
|
-
|
|
128414
|
-
|
|
128415
|
-
|
|
128416
|
-
|
|
128417
|
-
|
|
128418
|
-
|
|
128419
|
-
|
|
128420
|
-
|
|
128421
|
-
|
|
128422
|
-
keepValues: true,
|
|
128423
|
-
updateUnregisteredFields: true
|
|
128424
|
-
}
|
|
128425
|
-
);
|
|
128426
|
-
const err = Object.values(csvValidationIssue)[0];
|
|
128427
|
-
const errMsg = err && err.message ? err.message : err;
|
|
128428
|
-
if (lodashExports.isPlainObject(errMsg)) {
|
|
128429
|
-
throw new Error(
|
|
128430
|
-
`errMsg is an object ${JSON.stringify(
|
|
128431
|
-
errMsg,
|
|
128432
|
-
null,
|
|
128433
|
-
4
|
|
128434
|
-
)}`
|
|
128399
|
+
} else {
|
|
128400
|
+
toKeep.push(file);
|
|
128401
|
+
let csvValidationIssue = _csvValidationIssue;
|
|
128402
|
+
if (csvValidationIssue) {
|
|
128403
|
+
if (lodashExports.isObject(csvValidationIssue)) {
|
|
128404
|
+
initializeForm(
|
|
128405
|
+
`editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
|
|
128406
|
+
{
|
|
128407
|
+
reduxFormCellValidation: csvValidationIssue
|
|
128408
|
+
},
|
|
128409
|
+
{
|
|
128410
|
+
keepDirty: true,
|
|
128411
|
+
keepValues: true,
|
|
128412
|
+
updateUnregisteredFields: true
|
|
128413
|
+
}
|
|
128435
128414
|
);
|
|
128415
|
+
const err = Object.values(csvValidationIssue)[0];
|
|
128416
|
+
const errMsg = err && err.message ? err.message : err;
|
|
128417
|
+
if (lodashExports.isPlainObject(errMsg)) {
|
|
128418
|
+
throw new Error(
|
|
128419
|
+
`errMsg is an object ${JSON.stringify(
|
|
128420
|
+
errMsg,
|
|
128421
|
+
null,
|
|
128422
|
+
4
|
|
128423
|
+
)}`
|
|
128424
|
+
);
|
|
128425
|
+
}
|
|
128426
|
+
csvValidationIssue = /* @__PURE__ */ React$3.createElement("div", null, /* @__PURE__ */ React$3.createElement("div", null, "It looks like there was an error with your data (Correct on the Review Data page):"), /* @__PURE__ */ React$3.createElement("div", { style: { color: "red" } }, errMsg), /* @__PURE__ */ React$3.createElement("div", null, "Please review your headers and then correct any errors on the next page."));
|
|
128436
128427
|
}
|
|
128437
|
-
|
|
128428
|
+
filesWIssues.push({
|
|
128429
|
+
file,
|
|
128430
|
+
csvValidationIssue,
|
|
128431
|
+
matchedHeaders,
|
|
128432
|
+
userSchema,
|
|
128433
|
+
searchResults
|
|
128434
|
+
});
|
|
128435
|
+
} else {
|
|
128436
|
+
filesWOIssues.push({
|
|
128437
|
+
file,
|
|
128438
|
+
csvValidationIssue,
|
|
128439
|
+
matchedHeaders,
|
|
128440
|
+
userSchema,
|
|
128441
|
+
searchResults
|
|
128442
|
+
});
|
|
128443
|
+
const newFileName = removeExt(file.name) + `.csv`;
|
|
128444
|
+
const { newFile, cleanedEntities } = getNewCsvFile(
|
|
128445
|
+
userSchema.userData,
|
|
128446
|
+
newFileName
|
|
128447
|
+
);
|
|
128448
|
+
file.meta = parsedF.meta;
|
|
128449
|
+
file.hasEditClick = true;
|
|
128450
|
+
file.parsedData = cleanedEntities;
|
|
128451
|
+
file.name = newFileName;
|
|
128452
|
+
file.originFileObj = newFile;
|
|
128453
|
+
file.originalFileObj = newFile;
|
|
128438
128454
|
}
|
|
128439
|
-
filesWIssues.push({
|
|
128440
|
-
file,
|
|
128441
|
-
csvValidationIssue,
|
|
128442
|
-
matchedHeaders,
|
|
128443
|
-
userSchema,
|
|
128444
|
-
searchResults
|
|
128445
|
-
});
|
|
128446
|
-
} else {
|
|
128447
|
-
filesWOIssues.push({
|
|
128448
|
-
file,
|
|
128449
|
-
csvValidationIssue,
|
|
128450
|
-
matchedHeaders,
|
|
128451
|
-
userSchema,
|
|
128452
|
-
searchResults
|
|
128453
|
-
});
|
|
128454
|
-
const newFileName = removeExt(file.name) + `.csv`;
|
|
128455
|
-
const { newFile, cleanedEntities } = getNewCsvFile(
|
|
128456
|
-
userSchema.userData,
|
|
128457
|
-
newFileName
|
|
128458
|
-
);
|
|
128459
|
-
file.meta = parsedF.meta;
|
|
128460
|
-
file.hasEditClick = true;
|
|
128461
|
-
file.parsedData = cleanedEntities;
|
|
128462
|
-
file.name = newFileName;
|
|
128463
|
-
file.originFileObj = newFile;
|
|
128464
|
-
file.originalFileObj = newFile;
|
|
128465
128455
|
}
|
|
128456
|
+
} else {
|
|
128457
|
+
toKeep.push(file);
|
|
128466
128458
|
}
|
|
128467
128459
|
}
|
|
128468
128460
|
if (filesWIssues.length) {
|
|
@@ -128510,7 +128502,18 @@
|
|
|
128510
128502
|
}, 200);
|
|
128511
128503
|
}
|
|
128512
128504
|
}
|
|
128505
|
+
} else {
|
|
128506
|
+
toKeep.push(...cleanedAccepted);
|
|
128513
128507
|
}
|
|
128508
|
+
if (toKeep.length === 0) {
|
|
128509
|
+
window.toastr && window.toastr.error(
|
|
128510
|
+
`It looks like there wasn't any data in your file. Please add some data and try again`
|
|
128511
|
+
);
|
|
128512
|
+
}
|
|
128513
|
+
const cleanedFileList = [...toKeep, ...fileListToUse].slice(
|
|
128514
|
+
0,
|
|
128515
|
+
fileLimit ? fileLimit : void 0
|
|
128516
|
+
);
|
|
128514
128517
|
handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
|
|
128515
128518
|
}
|
|
128516
128519
|
},
|
|
@@ -128645,9 +128648,7 @@
|
|
|
128645
128648
|
incomingData: file.parsedData,
|
|
128646
128649
|
validateAgainstSchema
|
|
128647
128650
|
});
|
|
128648
|
-
const {
|
|
128649
|
-
newEntities
|
|
128650
|
-
} = await showSimpleInsertDataDialog(
|
|
128651
|
+
const { newEntities } = await showSimpleInsertDataDialog(
|
|
128651
128652
|
"onSimpleInsertDialogFinish",
|
|
128652
128653
|
{
|
|
128653
128654
|
dialogProps: {
|
|
@@ -128663,10 +128664,7 @@
|
|
|
128663
128664
|
if (!newEntities) {
|
|
128664
128665
|
return;
|
|
128665
128666
|
} else {
|
|
128666
|
-
const {
|
|
128667
|
-
newFile,
|
|
128668
|
-
cleanedEntities
|
|
128669
|
-
} = getNewCsvFile(newEntities, file.name);
|
|
128667
|
+
const { newFile, cleanedEntities } = getNewCsvFile(newEntities, file.name);
|
|
128670
128668
|
Object.assign(file, {
|
|
128671
128669
|
...newFile,
|
|
128672
128670
|
originFileObj: newFile,
|
|
@@ -153575,6 +153573,7 @@
|
|
|
153575
153573
|
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
153576
153574
|
if (tagName[tagName.length - 1] === "/") {
|
|
153577
153575
|
tagName = tagName.substr(0, tagName.length - 1);
|
|
153576
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
|
153578
153577
|
tagExp = tagName;
|
|
153579
153578
|
} else {
|
|
153580
153579
|
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
@@ -154131,11 +154130,18 @@
|
|
|
154131
154130
|
let attrStr = "";
|
|
154132
154131
|
let val = "";
|
|
154133
154132
|
for (let key in jObj) {
|
|
154134
|
-
if (typeof jObj[key] === "undefined")
|
|
154135
|
-
if (key
|
|
154133
|
+
if (typeof jObj[key] === "undefined") {
|
|
154134
|
+
if (this.isAttribute(key)) {
|
|
154135
|
+
val += "";
|
|
154136
|
+
}
|
|
154137
|
+
} else if (jObj[key] === null) {
|
|
154138
|
+
if (this.isAttribute(key)) {
|
|
154139
|
+
val += "";
|
|
154140
|
+
} else if (key[0] === "?") {
|
|
154136
154141
|
val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
|
|
154137
|
-
else
|
|
154142
|
+
} else {
|
|
154138
154143
|
val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
154144
|
+
}
|
|
154139
154145
|
} else if (jObj[key] instanceof Date) {
|
|
154140
154146
|
val += this.buildTextValNode(jObj[key], key, "", level);
|
|
154141
154147
|
} else if (typeof jObj[key] !== "object") {
|
|
@@ -154218,7 +154224,7 @@
|
|
|
154218
154224
|
piClosingChar = "?";
|
|
154219
154225
|
tagEndExp = "";
|
|
154220
154226
|
}
|
|
154221
|
-
if (attrStr && val.indexOf("<") === -1) {
|
|
154227
|
+
if ((attrStr || attrStr === "") && val.indexOf("<") === -1) {
|
|
154222
154228
|
return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp;
|
|
154223
154229
|
} else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
|
|
154224
154230
|
return this.indentate(level) + `<!--${val}-->` + this.newLine;
|
|
@@ -154269,7 +154275,7 @@
|
|
|
154269
154275
|
return this.options.indentBy.repeat(level);
|
|
154270
154276
|
}
|
|
154271
154277
|
function isAttribute(name) {
|
|
154272
|
-
if (name.startsWith(this.options.attributeNamePrefix)) {
|
|
154278
|
+
if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {
|
|
154273
154279
|
return name.substr(this.attrPrefixLen);
|
|
154274
154280
|
} else {
|
|
154275
154281
|
return false;
|
|
@@ -170174,7 +170180,7 @@
|
|
|
170174
170180
|
}
|
|
170175
170181
|
async function finishDisplayingSeq(seqData) {
|
|
170176
170182
|
if (onImport) {
|
|
170177
|
-
seqData = await onImport(seqData);
|
|
170183
|
+
seqData = await onImport(seqData, file, props);
|
|
170178
170184
|
}
|
|
170179
170185
|
if (seqData) {
|
|
170180
170186
|
seqData.stateTrackingId = uuid();
|
|
@@ -188642,7 +188648,7 @@ double click --> edit`}`;
|
|
|
188642
188648
|
}
|
|
188643
188649
|
|
|
188644
188650
|
const name = "@teselagen/ove";
|
|
188645
|
-
const version = "0.3.
|
|
188651
|
+
const version = "0.3.9";
|
|
188646
188652
|
const main = "./src/index.js";
|
|
188647
188653
|
const exports$1 = {
|
|
188648
188654
|
".": {
|
|
@@ -194277,7 +194283,7 @@ double click --> edit`}`;
|
|
|
194277
194283
|
updateLabelsForInViewFeatures();
|
|
194278
194284
|
},
|
|
194279
194285
|
rowContainerStyle: {
|
|
194280
|
-
height: height - 36,
|
|
194286
|
+
height: isNaN(height - 36) ? "auto" : height - 36,
|
|
194281
194287
|
width: innerWidth + 26,
|
|
194282
194288
|
paddingRight: marginWidth / 2,
|
|
194283
194289
|
...isLinViewZoomed && !isInAlignment && { paddingBottom: 15 }
|