@teselagen/ove 0.3.9 → 0.3.11
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 +165 -163
- package/index.mjs +165 -163
- package/index.umd.js +276 -267
- package/package.json +4 -4
- 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'],
|
|
@@ -23996,7 +23998,7 @@
|
|
|
23996
23998
|
var ownKeys$9 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
|
|
23997
23999
|
return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
|
|
23998
24000
|
} : /* istanbul ignore next */Object.getOwnPropertyNames;
|
|
23999
|
-
function toPrimitive$
|
|
24001
|
+
function toPrimitive$2(value) {
|
|
24000
24002
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
24001
24003
|
}
|
|
24002
24004
|
function hasProp(target, prop) {
|
|
@@ -24925,7 +24927,7 @@
|
|
|
24925
24927
|
return this.name_ + "[" + this.value_ + "]";
|
|
24926
24928
|
};
|
|
24927
24929
|
_proto.valueOf = function valueOf() {
|
|
24928
|
-
return toPrimitive$
|
|
24930
|
+
return toPrimitive$2(this.get());
|
|
24929
24931
|
};
|
|
24930
24932
|
_proto[_Symbol$toPrimitive] = function () {
|
|
24931
24933
|
return this.valueOf();
|
|
@@ -25153,7 +25155,7 @@
|
|
|
25153
25155
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
25154
25156
|
};
|
|
25155
25157
|
_proto.valueOf = function valueOf() {
|
|
25156
|
-
return toPrimitive$
|
|
25158
|
+
return toPrimitive$2(this.get());
|
|
25157
25159
|
};
|
|
25158
25160
|
_proto[_Symbol$toPrimitive$1] = function () {
|
|
25159
25161
|
return this.valueOf();
|
|
@@ -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
|
-
}
|
|
29959
|
-
|
|
29960
|
-
}));
|
|
29933
|
+
const ReactReduxContext = /*#__PURE__*/getContext();
|
|
29961
29934
|
|
|
29962
|
-
/**
|
|
29963
|
-
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
29964
|
-
* hook that you should usually not need to call directly.
|
|
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();
|
|
@@ -57050,10 +57023,18 @@
|
|
|
57050
57023
|
}
|
|
57051
57024
|
};
|
|
57052
57025
|
|
|
57053
|
-
|
|
57054
|
-
var
|
|
57055
|
-
|
|
57056
|
-
|
|
57026
|
+
var _descriptors;
|
|
57027
|
+
var hasRequired_descriptors;
|
|
57028
|
+
|
|
57029
|
+
function require_descriptors () {
|
|
57030
|
+
if (hasRequired_descriptors) return _descriptors;
|
|
57031
|
+
hasRequired_descriptors = 1;
|
|
57032
|
+
// Thank's IE8 for his funny defineProperty
|
|
57033
|
+
_descriptors = !_fails(function () {
|
|
57034
|
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
57035
|
+
});
|
|
57036
|
+
return _descriptors;
|
|
57037
|
+
}
|
|
57057
57038
|
|
|
57058
57039
|
var _domCreate;
|
|
57059
57040
|
var hasRequired_domCreate;
|
|
@@ -57071,9 +57052,17 @@
|
|
|
57071
57052
|
return _domCreate;
|
|
57072
57053
|
}
|
|
57073
57054
|
|
|
57074
|
-
var _ie8DomDefine
|
|
57075
|
-
|
|
57076
|
-
|
|
57055
|
+
var _ie8DomDefine;
|
|
57056
|
+
var hasRequired_ie8DomDefine;
|
|
57057
|
+
|
|
57058
|
+
function require_ie8DomDefine () {
|
|
57059
|
+
if (hasRequired_ie8DomDefine) return _ie8DomDefine;
|
|
57060
|
+
hasRequired_ie8DomDefine = 1;
|
|
57061
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function () {
|
|
57062
|
+
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
57063
|
+
});
|
|
57064
|
+
return _ie8DomDefine;
|
|
57065
|
+
}
|
|
57077
57066
|
|
|
57078
57067
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
57079
57068
|
var isObject$6 = _isObject;
|
|
@@ -57088,22 +57077,29 @@
|
|
|
57088
57077
|
throw TypeError("Can't convert object to primitive value");
|
|
57089
57078
|
};
|
|
57090
57079
|
|
|
57091
|
-
var
|
|
57092
|
-
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
57093
|
-
var toPrimitive$2 = _toPrimitive$1;
|
|
57094
|
-
var dP$3 = Object.defineProperty;
|
|
57080
|
+
var hasRequired_objectDp;
|
|
57095
57081
|
|
|
57096
|
-
|
|
57097
|
-
|
|
57098
|
-
|
|
57099
|
-
|
|
57100
|
-
|
|
57101
|
-
|
|
57102
|
-
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
|
|
57106
|
-
|
|
57082
|
+
function require_objectDp () {
|
|
57083
|
+
if (hasRequired_objectDp) return _objectDp;
|
|
57084
|
+
hasRequired_objectDp = 1;
|
|
57085
|
+
var anObject = _anObject;
|
|
57086
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
57087
|
+
var toPrimitive = _toPrimitive$1;
|
|
57088
|
+
var dP = Object.defineProperty;
|
|
57089
|
+
|
|
57090
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
57091
|
+
anObject(O);
|
|
57092
|
+
P = toPrimitive(P, true);
|
|
57093
|
+
anObject(Attributes);
|
|
57094
|
+
if (IE8_DOM_DEFINE) try {
|
|
57095
|
+
return dP(O, P, Attributes);
|
|
57096
|
+
} catch (e) { /* empty */ }
|
|
57097
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
57098
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
57099
|
+
return O;
|
|
57100
|
+
};
|
|
57101
|
+
return _objectDp;
|
|
57102
|
+
}
|
|
57107
57103
|
|
|
57108
57104
|
var _propertyDesc = function (bitmap, value) {
|
|
57109
57105
|
return {
|
|
@@ -57114,9 +57110,9 @@
|
|
|
57114
57110
|
};
|
|
57115
57111
|
};
|
|
57116
57112
|
|
|
57117
|
-
var dP$2 =
|
|
57113
|
+
var dP$2 = require_objectDp();
|
|
57118
57114
|
var createDesc$3 = _propertyDesc;
|
|
57119
|
-
var _hide =
|
|
57115
|
+
var _hide = require_descriptors() ? function (object, key, value) {
|
|
57120
57116
|
return dP$2.f(object, key, createDesc$3(1, value));
|
|
57121
57117
|
} : function (object, key, value) {
|
|
57122
57118
|
object[key] = value;
|
|
@@ -57353,7 +57349,7 @@
|
|
|
57353
57349
|
if (hasRequired_objectAssign) return _objectAssign;
|
|
57354
57350
|
hasRequired_objectAssign = 1;
|
|
57355
57351
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
57356
|
-
var DESCRIPTORS =
|
|
57352
|
+
var DESCRIPTORS = require_descriptors();
|
|
57357
57353
|
var getKeys = _objectKeys;
|
|
57358
57354
|
var gOPS = _objectGops;
|
|
57359
57355
|
var pIE = require_objectPie();
|
|
@@ -57429,11 +57425,11 @@
|
|
|
57429
57425
|
|
|
57430
57426
|
var _redefine = _hide;
|
|
57431
57427
|
|
|
57432
|
-
var dP$1 =
|
|
57428
|
+
var dP$1 = require_objectDp();
|
|
57433
57429
|
var anObject$4 = _anObject;
|
|
57434
57430
|
var getKeys$1 = _objectKeys;
|
|
57435
57431
|
|
|
57436
|
-
var _objectDps =
|
|
57432
|
+
var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
57437
57433
|
anObject$4(O);
|
|
57438
57434
|
var keys = getKeys$1(Properties);
|
|
57439
57435
|
var length = keys.length;
|
|
@@ -57512,7 +57508,7 @@
|
|
|
57512
57508
|
|
|
57513
57509
|
var _wksExports = _wks.exports;
|
|
57514
57510
|
|
|
57515
|
-
var def =
|
|
57511
|
+
var def = require_objectDp().f;
|
|
57516
57512
|
var has$b = _has;
|
|
57517
57513
|
var TAG$1 = _wksExports('toStringTag');
|
|
57518
57514
|
|
|
@@ -57826,7 +57822,7 @@
|
|
|
57826
57822
|
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
57827
57823
|
};
|
|
57828
57824
|
|
|
57829
|
-
var $defineProperty$1 =
|
|
57825
|
+
var $defineProperty$1 = require_objectDp();
|
|
57830
57826
|
var createDesc$2 = _propertyDesc;
|
|
57831
57827
|
|
|
57832
57828
|
var _createProperty = function (object, index, value) {
|
|
@@ -57959,7 +57955,7 @@
|
|
|
57959
57955
|
|
|
57960
57956
|
var $export$3 = _export;
|
|
57961
57957
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
57962
|
-
$export$3($export$3.S + $export$3.F * !
|
|
57958
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
|
|
57963
57959
|
|
|
57964
57960
|
var $Object$1 = _coreExports.Object;
|
|
57965
57961
|
var defineProperty$6 = function defineProperty(it, key, desc) {
|
|
@@ -58007,7 +58003,7 @@
|
|
|
58007
58003
|
var META$1 = _uid('meta');
|
|
58008
58004
|
var isObject$5 = _isObject;
|
|
58009
58005
|
var has$9 = _has;
|
|
58010
|
-
var setDesc =
|
|
58006
|
+
var setDesc = require_objectDp().f;
|
|
58011
58007
|
var id$1 = 0;
|
|
58012
58008
|
var isExtensible = Object.isExtensible || function () {
|
|
58013
58009
|
return true;
|
|
@@ -58062,7 +58058,7 @@
|
|
|
58062
58058
|
|
|
58063
58059
|
var core = _coreExports;
|
|
58064
58060
|
var wksExt$1 = _wksExt;
|
|
58065
|
-
var defineProperty$4 =
|
|
58061
|
+
var defineProperty$4 = require_objectDp().f;
|
|
58066
58062
|
var _wksDefine = function (name) {
|
|
58067
58063
|
var $Symbol = core.Symbol || (core.Symbol = {} );
|
|
58068
58064
|
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$4($Symbol, name, { value: wksExt$1.f(name) });
|
|
@@ -58129,10 +58125,10 @@
|
|
|
58129
58125
|
var toIObject$1 = _toIobject;
|
|
58130
58126
|
var toPrimitive$1 = _toPrimitive$1;
|
|
58131
58127
|
var has$8 = _has;
|
|
58132
|
-
var IE8_DOM_DEFINE =
|
|
58128
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
58133
58129
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
58134
58130
|
|
|
58135
|
-
_objectGopd.f =
|
|
58131
|
+
_objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
|
|
58136
58132
|
O = toIObject$1(O);
|
|
58137
58133
|
P = toPrimitive$1(P, true);
|
|
58138
58134
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -58144,7 +58140,7 @@
|
|
|
58144
58140
|
// ECMAScript 6 symbols shim
|
|
58145
58141
|
var global$1 = _globalExports;
|
|
58146
58142
|
var has$7 = _has;
|
|
58147
|
-
var DESCRIPTORS =
|
|
58143
|
+
var DESCRIPTORS = require_descriptors();
|
|
58148
58144
|
var $export$2 = _export;
|
|
58149
58145
|
var redefine = _redefine;
|
|
58150
58146
|
var META = _metaExports.KEY;
|
|
@@ -58167,7 +58163,7 @@
|
|
|
58167
58163
|
var gOPNExt = _objectGopnExt;
|
|
58168
58164
|
var $GOPD = _objectGopd;
|
|
58169
58165
|
var $GOPS = _objectGops;
|
|
58170
|
-
var $DP =
|
|
58166
|
+
var $DP = require_objectDp();
|
|
58171
58167
|
var $keys$1 = _objectKeys;
|
|
58172
58168
|
var gOPD$1 = $GOPD.f;
|
|
58173
58169
|
var dP = $DP.f;
|
|
@@ -64520,7 +64516,7 @@
|
|
|
64520
64516
|
var dayjs_min = {exports: {}};
|
|
64521
64517
|
|
|
64522
64518
|
(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",
|
|
64519
|
+
!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
64520
|
} (dayjs_min));
|
|
64525
64521
|
|
|
64526
64522
|
var dayjs_minExports = dayjs_min.exports;
|
|
@@ -126088,7 +126084,9 @@
|
|
|
126088
126084
|
const zipFilesArray = Array.isArray(zipFiles) ? zipFiles : [zipFiles];
|
|
126089
126085
|
const parsedZips = await Promise$1.map(
|
|
126090
126086
|
zipFilesArray,
|
|
126091
|
-
(file) => jszip_minExports.loadAsync(
|
|
126087
|
+
(file) => jszip_minExports.loadAsync(
|
|
126088
|
+
file instanceof (typeof Blob !== "undefined" ? Blob : require("buffer").Blob) ? file : file.originFileObj
|
|
126089
|
+
)
|
|
126092
126090
|
);
|
|
126093
126091
|
const zippedFiles = lodashExports.flatMap(
|
|
126094
126092
|
parsedZips,
|
|
@@ -127945,10 +127943,7 @@
|
|
|
127945
127943
|
const { showDialogPromise: showUploadCsvWizardDialog, comp } = useDialog({
|
|
127946
127944
|
ModalComponent: UploadCsvWizardDialog
|
|
127947
127945
|
});
|
|
127948
|
-
const {
|
|
127949
|
-
showDialogPromise: showSimpleInsertDataDialog,
|
|
127950
|
-
comp: comp2
|
|
127951
|
-
} = useDialog({
|
|
127946
|
+
const { showDialogPromise: showSimpleInsertDataDialog, comp: comp2 } = useDialog({
|
|
127952
127947
|
ModalComponent: SimpleInsertDataDialog
|
|
127953
127948
|
});
|
|
127954
127949
|
function cleanupFiles() {
|
|
@@ -128024,17 +128019,16 @@
|
|
|
128024
128019
|
const handleDownloadXlsxFile = async () => {
|
|
128025
128020
|
const dataDictionarySchema = [
|
|
128026
128021
|
{ value: (f) => f.displayName || f.path, column: `Column Name` },
|
|
128022
|
+
// {
|
|
128023
|
+
// value: f => f.isUnique ? "Unique" : "",
|
|
128024
|
+
// column: `Unique?`
|
|
128025
|
+
// },
|
|
128027
128026
|
{
|
|
128028
|
-
value: (f) => f.
|
|
128029
|
-
column: `
|
|
128030
|
-
},
|
|
128031
|
-
{
|
|
128032
|
-
value: (f) => f.isRequired,
|
|
128033
|
-
column: `Required`,
|
|
128034
|
-
type: Boolean
|
|
128027
|
+
value: (f) => f.isRequired ? "Required" : "Optional",
|
|
128028
|
+
column: `Required?`
|
|
128035
128029
|
},
|
|
128036
128030
|
{
|
|
128037
|
-
value: (f) => f.type || "text",
|
|
128031
|
+
value: (f) => f.type === "dropdown" ? "text" : f.type || "text",
|
|
128038
128032
|
column: `Data Type`
|
|
128039
128033
|
},
|
|
128040
128034
|
{
|
|
@@ -128370,10 +128364,7 @@
|
|
|
128370
128364
|
...file.parsedString ? { parsedString: file.parsedString } : {}
|
|
128371
128365
|
};
|
|
128372
128366
|
});
|
|
128373
|
-
const
|
|
128374
|
-
...cleanedAccepted,
|
|
128375
|
-
...fileListToUse
|
|
128376
|
-
].slice(0, fileLimit ? fileLimit : void 0);
|
|
128367
|
+
const toKeep = [];
|
|
128377
128368
|
if (validateAgainstSchema) {
|
|
128378
128369
|
const filesWIssues = [];
|
|
128379
128370
|
const filesWOIssues = [];
|
|
@@ -128404,65 +128395,65 @@
|
|
|
128404
128395
|
userSchema,
|
|
128405
128396
|
parsedF.data
|
|
128406
128397
|
);
|
|
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
|
-
)}`
|
|
128398
|
+
} else {
|
|
128399
|
+
toKeep.push(file);
|
|
128400
|
+
let csvValidationIssue = _csvValidationIssue;
|
|
128401
|
+
if (csvValidationIssue) {
|
|
128402
|
+
if (lodashExports.isObject(csvValidationIssue)) {
|
|
128403
|
+
initializeForm(
|
|
128404
|
+
`editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
|
|
128405
|
+
{
|
|
128406
|
+
reduxFormCellValidation: csvValidationIssue
|
|
128407
|
+
},
|
|
128408
|
+
{
|
|
128409
|
+
keepDirty: true,
|
|
128410
|
+
keepValues: true,
|
|
128411
|
+
updateUnregisteredFields: true
|
|
128412
|
+
}
|
|
128435
128413
|
);
|
|
128414
|
+
const err = Object.values(csvValidationIssue)[0];
|
|
128415
|
+
const errMsg = err && err.message ? err.message : err;
|
|
128416
|
+
if (lodashExports.isPlainObject(errMsg)) {
|
|
128417
|
+
throw new Error(
|
|
128418
|
+
`errMsg is an object ${JSON.stringify(
|
|
128419
|
+
errMsg,
|
|
128420
|
+
null,
|
|
128421
|
+
4
|
|
128422
|
+
)}`
|
|
128423
|
+
);
|
|
128424
|
+
}
|
|
128425
|
+
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
128426
|
}
|
|
128437
|
-
|
|
128427
|
+
filesWIssues.push({
|
|
128428
|
+
file,
|
|
128429
|
+
csvValidationIssue,
|
|
128430
|
+
matchedHeaders,
|
|
128431
|
+
userSchema,
|
|
128432
|
+
searchResults
|
|
128433
|
+
});
|
|
128434
|
+
} else {
|
|
128435
|
+
filesWOIssues.push({
|
|
128436
|
+
file,
|
|
128437
|
+
csvValidationIssue,
|
|
128438
|
+
matchedHeaders,
|
|
128439
|
+
userSchema,
|
|
128440
|
+
searchResults
|
|
128441
|
+
});
|
|
128442
|
+
const newFileName = removeExt(file.name) + `.csv`;
|
|
128443
|
+
const { newFile, cleanedEntities } = getNewCsvFile(
|
|
128444
|
+
userSchema.userData,
|
|
128445
|
+
newFileName
|
|
128446
|
+
);
|
|
128447
|
+
file.meta = parsedF.meta;
|
|
128448
|
+
file.hasEditClick = true;
|
|
128449
|
+
file.parsedData = cleanedEntities;
|
|
128450
|
+
file.name = newFileName;
|
|
128451
|
+
file.originFileObj = newFile;
|
|
128452
|
+
file.originalFileObj = newFile;
|
|
128438
128453
|
}
|
|
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
128454
|
}
|
|
128455
|
+
} else {
|
|
128456
|
+
toKeep.push(file);
|
|
128466
128457
|
}
|
|
128467
128458
|
}
|
|
128468
128459
|
if (filesWIssues.length) {
|
|
@@ -128510,7 +128501,18 @@
|
|
|
128510
128501
|
}, 200);
|
|
128511
128502
|
}
|
|
128512
128503
|
}
|
|
128504
|
+
} else {
|
|
128505
|
+
toKeep.push(...cleanedAccepted);
|
|
128506
|
+
}
|
|
128507
|
+
if (toKeep.length === 0) {
|
|
128508
|
+
window.toastr && window.toastr.error(
|
|
128509
|
+
`It looks like there wasn't any data in your file. Please add some data and try again`
|
|
128510
|
+
);
|
|
128513
128511
|
}
|
|
128512
|
+
const cleanedFileList = [...toKeep, ...fileListToUse].slice(
|
|
128513
|
+
0,
|
|
128514
|
+
fileLimit ? fileLimit : void 0
|
|
128515
|
+
);
|
|
128514
128516
|
handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
|
|
128515
128517
|
}
|
|
128516
128518
|
},
|
|
@@ -128645,9 +128647,7 @@
|
|
|
128645
128647
|
incomingData: file.parsedData,
|
|
128646
128648
|
validateAgainstSchema
|
|
128647
128649
|
});
|
|
128648
|
-
const {
|
|
128649
|
-
newEntities
|
|
128650
|
-
} = await showSimpleInsertDataDialog(
|
|
128650
|
+
const { newEntities } = await showSimpleInsertDataDialog(
|
|
128651
128651
|
"onSimpleInsertDialogFinish",
|
|
128652
128652
|
{
|
|
128653
128653
|
dialogProps: {
|
|
@@ -128663,10 +128663,7 @@
|
|
|
128663
128663
|
if (!newEntities) {
|
|
128664
128664
|
return;
|
|
128665
128665
|
} else {
|
|
128666
|
-
const {
|
|
128667
|
-
newFile,
|
|
128668
|
-
cleanedEntities
|
|
128669
|
-
} = getNewCsvFile(newEntities, file.name);
|
|
128666
|
+
const { newFile, cleanedEntities } = getNewCsvFile(newEntities, file.name);
|
|
128670
128667
|
Object.assign(file, {
|
|
128671
128668
|
...newFile,
|
|
128672
128669
|
originFileObj: newFile,
|
|
@@ -151358,6 +151355,19 @@
|
|
|
151358
151355
|
};
|
|
151359
151356
|
}
|
|
151360
151357
|
|
|
151358
|
+
function extractFileExtension(name) {
|
|
151359
|
+
if (typeof name === "string") {
|
|
151360
|
+
let ext = "";
|
|
151361
|
+
const match = name.match(/\.(\w+)$/);
|
|
151362
|
+
if (match && match[1]) {
|
|
151363
|
+
ext = match[1];
|
|
151364
|
+
}
|
|
151365
|
+
return ext;
|
|
151366
|
+
} else {
|
|
151367
|
+
return "";
|
|
151368
|
+
}
|
|
151369
|
+
}
|
|
151370
|
+
|
|
151361
151371
|
function splitStringIntoLines(string) {
|
|
151362
151372
|
let lines = [];
|
|
151363
151373
|
if (string === "") {
|
|
@@ -151931,7 +151941,11 @@
|
|
|
151931
151941
|
return parsingResultArray;
|
|
151932
151942
|
}
|
|
151933
151943
|
|
|
151934
|
-
function fastaToJson(fileString, options) {
|
|
151944
|
+
function fastaToJson(fileString, options = {}) {
|
|
151945
|
+
const ext = extractFileExtension(options.fileName);
|
|
151946
|
+
if (/^(faa)$/.test(ext)) {
|
|
151947
|
+
options.isProtein = true;
|
|
151948
|
+
}
|
|
151935
151949
|
let resultArray = [];
|
|
151936
151950
|
let result = null;
|
|
151937
151951
|
try {
|
|
@@ -153575,6 +153589,7 @@
|
|
|
153575
153589
|
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
153576
153590
|
if (tagName[tagName.length - 1] === "/") {
|
|
153577
153591
|
tagName = tagName.substr(0, tagName.length - 1);
|
|
153592
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
|
153578
153593
|
tagExp = tagName;
|
|
153579
153594
|
} else {
|
|
153580
153595
|
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
@@ -154131,11 +154146,18 @@
|
|
|
154131
154146
|
let attrStr = "";
|
|
154132
154147
|
let val = "";
|
|
154133
154148
|
for (let key in jObj) {
|
|
154134
|
-
if (typeof jObj[key] === "undefined")
|
|
154135
|
-
if (key
|
|
154149
|
+
if (typeof jObj[key] === "undefined") {
|
|
154150
|
+
if (this.isAttribute(key)) {
|
|
154151
|
+
val += "";
|
|
154152
|
+
}
|
|
154153
|
+
} else if (jObj[key] === null) {
|
|
154154
|
+
if (this.isAttribute(key)) {
|
|
154155
|
+
val += "";
|
|
154156
|
+
} else if (key[0] === "?") {
|
|
154136
154157
|
val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
|
|
154137
|
-
else
|
|
154158
|
+
} else {
|
|
154138
154159
|
val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
154160
|
+
}
|
|
154139
154161
|
} else if (jObj[key] instanceof Date) {
|
|
154140
154162
|
val += this.buildTextValNode(jObj[key], key, "", level);
|
|
154141
154163
|
} else if (typeof jObj[key] !== "object") {
|
|
@@ -154218,7 +154240,7 @@
|
|
|
154218
154240
|
piClosingChar = "?";
|
|
154219
154241
|
tagEndExp = "";
|
|
154220
154242
|
}
|
|
154221
|
-
if (attrStr && val.indexOf("<") === -1) {
|
|
154243
|
+
if ((attrStr || attrStr === "") && val.indexOf("<") === -1) {
|
|
154222
154244
|
return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp;
|
|
154223
154245
|
} else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
|
|
154224
154246
|
return this.indentate(level) + `<!--${val}-->` + this.newLine;
|
|
@@ -154269,7 +154291,7 @@
|
|
|
154269
154291
|
return this.options.indentBy.repeat(level);
|
|
154270
154292
|
}
|
|
154271
154293
|
function isAttribute(name) {
|
|
154272
|
-
if (name.startsWith(this.options.attributeNamePrefix)) {
|
|
154294
|
+
if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {
|
|
154273
154295
|
return name.substr(this.attrPrefixLen);
|
|
154274
154296
|
} else {
|
|
154275
154297
|
return false;
|
|
@@ -154395,19 +154417,6 @@
|
|
|
154395
154417
|
};
|
|
154396
154418
|
}
|
|
154397
154419
|
|
|
154398
|
-
function extractFileExtension(name) {
|
|
154399
|
-
if (typeof name === "string") {
|
|
154400
|
-
let ext = "";
|
|
154401
|
-
const match = name.match(/\.(\w+)$/);
|
|
154402
|
-
if (match && match[1]) {
|
|
154403
|
-
ext = match[1];
|
|
154404
|
-
}
|
|
154405
|
-
return ext;
|
|
154406
|
-
} else {
|
|
154407
|
-
return "";
|
|
154408
|
-
}
|
|
154409
|
-
}
|
|
154410
|
-
|
|
154411
154420
|
/*!
|
|
154412
154421
|
* Copyright 2008 Fair Oaks Labs, Inc.
|
|
154413
154422
|
* All rights reserved.
|
|
@@ -164124,7 +164133,7 @@
|
|
|
164124
164133
|
);
|
|
164125
164134
|
}
|
|
164126
164135
|
}
|
|
164127
|
-
if (/^(fasta|fas|fa|fna|ffn)$/.test(ext)) {
|
|
164136
|
+
if (/^(fasta|fas|fa|fna|ffn|faa)$/.test(ext)) {
|
|
164128
164137
|
return fastaToJson(fileContentString, options);
|
|
164129
164138
|
} else if (/^(gb|gbk)$/.test(ext)) {
|
|
164130
164139
|
return genbankToJson(fileContentString, options);
|
|
@@ -170174,7 +170183,7 @@
|
|
|
170174
170183
|
}
|
|
170175
170184
|
async function finishDisplayingSeq(seqData) {
|
|
170176
170185
|
if (onImport) {
|
|
170177
|
-
seqData = await onImport(seqData);
|
|
170186
|
+
seqData = await onImport(seqData, file, props);
|
|
170178
170187
|
}
|
|
170179
170188
|
if (seqData) {
|
|
170180
170189
|
seqData.stateTrackingId = uuid();
|
|
@@ -188642,7 +188651,7 @@ double click --> edit`}`;
|
|
|
188642
188651
|
}
|
|
188643
188652
|
|
|
188644
188653
|
const name = "@teselagen/ove";
|
|
188645
|
-
const version = "0.3.
|
|
188654
|
+
const version = "0.3.10";
|
|
188646
188655
|
const main = "./src/index.js";
|
|
188647
188656
|
const exports$1 = {
|
|
188648
188657
|
".": {
|
|
@@ -194277,7 +194286,7 @@ double click --> edit`}`;
|
|
|
194277
194286
|
updateLabelsForInViewFeatures();
|
|
194278
194287
|
},
|
|
194279
194288
|
rowContainerStyle: {
|
|
194280
|
-
height: height - 36,
|
|
194289
|
+
height: isNaN(height - 36) ? "auto" : height - 36,
|
|
194281
194290
|
width: innerWidth + 26,
|
|
194282
194291
|
paddingRight: marginWidth / 2,
|
|
194283
194292
|
...isLinViewZoomed && !isInAlignment && { paddingBottom: 15 }
|