@teselagen/ui 0.3.22 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +77 -99
- package/index.es.js +77 -99
- package/package.json +1 -1
- package/src/DataTable/index.js +1 -1
- package/src/FormComponents/Uploader.js +24 -24
- package/src/FormComponents/tryToMatchSchemas.js +13 -0
- package/src/UploadCsvWizard.js +2 -2
- package/src/showConfirmationDialog/index.js +3 -1
package/index.cjs.js
CHANGED
|
@@ -7422,7 +7422,7 @@ function getPlainObjectKeys(object) {
|
|
|
7422
7422
|
var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
|
|
7423
7423
|
return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
|
|
7424
7424
|
} : /* istanbul ignore next */Object.getOwnPropertyNames;
|
|
7425
|
-
function toPrimitive$
|
|
7425
|
+
function toPrimitive$3(value) {
|
|
7426
7426
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
7427
7427
|
}
|
|
7428
7428
|
function hasProp(target, prop) {
|
|
@@ -8351,7 +8351,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
|
|
|
8351
8351
|
return this.name_ + "[" + this.value_ + "]";
|
|
8352
8352
|
};
|
|
8353
8353
|
_proto.valueOf = function valueOf() {
|
|
8354
|
-
return toPrimitive$
|
|
8354
|
+
return toPrimitive$3(this.get());
|
|
8355
8355
|
};
|
|
8356
8356
|
_proto[_Symbol$toPrimitive] = function () {
|
|
8357
8357
|
return this.valueOf();
|
|
@@ -8579,7 +8579,7 @@ var ComputedValue = /*#__PURE__*/function () {
|
|
|
8579
8579
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
8580
8580
|
};
|
|
8581
8581
|
_proto.valueOf = function valueOf() {
|
|
8582
|
-
return toPrimitive$
|
|
8582
|
+
return toPrimitive$3(this.get());
|
|
8583
8583
|
};
|
|
8584
8584
|
_proto[_Symbol$toPrimitive$1] = function () {
|
|
8585
8585
|
return this.valueOf();
|
|
@@ -30331,18 +30331,10 @@ var _fails = function (exec) {
|
|
|
30331
30331
|
}
|
|
30332
30332
|
};
|
|
30333
30333
|
|
|
30334
|
-
|
|
30335
|
-
var
|
|
30336
|
-
|
|
30337
|
-
|
|
30338
|
-
if (hasRequired_descriptors) return _descriptors;
|
|
30339
|
-
hasRequired_descriptors = 1;
|
|
30340
|
-
// Thank's IE8 for his funny defineProperty
|
|
30341
|
-
_descriptors = !_fails(function () {
|
|
30342
|
-
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
30343
|
-
});
|
|
30344
|
-
return _descriptors;
|
|
30345
|
-
}
|
|
30334
|
+
// Thank's IE8 for his funny defineProperty
|
|
30335
|
+
var _descriptors = !_fails(function () {
|
|
30336
|
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
30337
|
+
});
|
|
30346
30338
|
|
|
30347
30339
|
var _domCreate;
|
|
30348
30340
|
var hasRequired_domCreate;
|
|
@@ -30360,17 +30352,9 @@ function require_domCreate () {
|
|
|
30360
30352
|
return _domCreate;
|
|
30361
30353
|
}
|
|
30362
30354
|
|
|
30363
|
-
var _ie8DomDefine
|
|
30364
|
-
|
|
30365
|
-
|
|
30366
|
-
function require_ie8DomDefine () {
|
|
30367
|
-
if (hasRequired_ie8DomDefine) return _ie8DomDefine;
|
|
30368
|
-
hasRequired_ie8DomDefine = 1;
|
|
30369
|
-
_ie8DomDefine = !require_descriptors() && !_fails(function () {
|
|
30370
|
-
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
30371
|
-
});
|
|
30372
|
-
return _ie8DomDefine;
|
|
30373
|
-
}
|
|
30355
|
+
var _ie8DomDefine = !_descriptors && !_fails(function () {
|
|
30356
|
+
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
30357
|
+
});
|
|
30374
30358
|
|
|
30375
30359
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
30376
30360
|
var isObject$d = _isObject;
|
|
@@ -30385,29 +30369,22 @@ var _toPrimitive = function (it, S) {
|
|
|
30385
30369
|
throw TypeError("Can't convert object to primitive value");
|
|
30386
30370
|
};
|
|
30387
30371
|
|
|
30388
|
-
var
|
|
30389
|
-
|
|
30390
|
-
|
|
30391
|
-
|
|
30392
|
-
hasRequired_objectDp = 1;
|
|
30393
|
-
var anObject = _anObject;
|
|
30394
|
-
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
30395
|
-
var toPrimitive = _toPrimitive;
|
|
30396
|
-
var dP = Object.defineProperty;
|
|
30372
|
+
var anObject$5 = _anObject;
|
|
30373
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
30374
|
+
var toPrimitive$2 = _toPrimitive;
|
|
30375
|
+
var dP$3 = Object.defineProperty;
|
|
30397
30376
|
|
|
30398
|
-
|
|
30399
|
-
|
|
30400
|
-
|
|
30401
|
-
|
|
30402
|
-
|
|
30403
|
-
|
|
30404
|
-
|
|
30405
|
-
|
|
30406
|
-
|
|
30407
|
-
|
|
30408
|
-
|
|
30409
|
-
return _objectDp;
|
|
30410
|
-
}
|
|
30377
|
+
_objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
30378
|
+
anObject$5(O);
|
|
30379
|
+
P = toPrimitive$2(P, true);
|
|
30380
|
+
anObject$5(Attributes);
|
|
30381
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
30382
|
+
return dP$3(O, P, Attributes);
|
|
30383
|
+
} catch (e) { /* empty */ }
|
|
30384
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
30385
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
30386
|
+
return O;
|
|
30387
|
+
};
|
|
30411
30388
|
|
|
30412
30389
|
var _propertyDesc = function (bitmap, value) {
|
|
30413
30390
|
return {
|
|
@@ -30418,9 +30395,9 @@ var _propertyDesc = function (bitmap, value) {
|
|
|
30418
30395
|
};
|
|
30419
30396
|
};
|
|
30420
30397
|
|
|
30421
|
-
var dP$2 =
|
|
30398
|
+
var dP$2 = _objectDp;
|
|
30422
30399
|
var createDesc$3 = _propertyDesc;
|
|
30423
|
-
var _hide =
|
|
30400
|
+
var _hide = _descriptors ? function (object, key, value) {
|
|
30424
30401
|
return dP$2.f(object, key, createDesc$3(1, value));
|
|
30425
30402
|
} : function (object, key, value) {
|
|
30426
30403
|
object[key] = value;
|
|
@@ -30501,12 +30478,20 @@ var _cof = function (it) {
|
|
|
30501
30478
|
return toString$6.call(it).slice(8, -1);
|
|
30502
30479
|
};
|
|
30503
30480
|
|
|
30504
|
-
|
|
30505
|
-
var
|
|
30506
|
-
|
|
30507
|
-
|
|
30508
|
-
|
|
30509
|
-
|
|
30481
|
+
var _iobject;
|
|
30482
|
+
var hasRequired_iobject;
|
|
30483
|
+
|
|
30484
|
+
function require_iobject () {
|
|
30485
|
+
if (hasRequired_iobject) return _iobject;
|
|
30486
|
+
hasRequired_iobject = 1;
|
|
30487
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
30488
|
+
var cof = _cof;
|
|
30489
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
30490
|
+
_iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
30491
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
30492
|
+
};
|
|
30493
|
+
return _iobject;
|
|
30494
|
+
}
|
|
30510
30495
|
|
|
30511
30496
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
30512
30497
|
var _defined = function (it) {
|
|
@@ -30515,7 +30500,7 @@ var _defined = function (it) {
|
|
|
30515
30500
|
};
|
|
30516
30501
|
|
|
30517
30502
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
30518
|
-
var IObject =
|
|
30503
|
+
var IObject = require_iobject();
|
|
30519
30504
|
var defined$2 = _defined;
|
|
30520
30505
|
var _toIobject = function (it) {
|
|
30521
30506
|
return IObject(defined$2(it));
|
|
@@ -30657,12 +30642,12 @@ function require_objectAssign () {
|
|
|
30657
30642
|
if (hasRequired_objectAssign) return _objectAssign;
|
|
30658
30643
|
hasRequired_objectAssign = 1;
|
|
30659
30644
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
30660
|
-
var DESCRIPTORS =
|
|
30645
|
+
var DESCRIPTORS = _descriptors;
|
|
30661
30646
|
var getKeys = _objectKeys;
|
|
30662
30647
|
var gOPS = _objectGops;
|
|
30663
30648
|
var pIE = require_objectPie();
|
|
30664
30649
|
var toObject = _toObject;
|
|
30665
|
-
var IObject =
|
|
30650
|
+
var IObject = require_iobject();
|
|
30666
30651
|
var $assign = Object.assign;
|
|
30667
30652
|
|
|
30668
30653
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -30733,11 +30718,11 @@ var _iterators = {};
|
|
|
30733
30718
|
|
|
30734
30719
|
var _redefine = _hide;
|
|
30735
30720
|
|
|
30736
|
-
var dP$1 =
|
|
30721
|
+
var dP$1 = _objectDp;
|
|
30737
30722
|
var anObject$4 = _anObject;
|
|
30738
30723
|
var getKeys$1 = _objectKeys;
|
|
30739
30724
|
|
|
30740
|
-
var _objectDps =
|
|
30725
|
+
var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
30741
30726
|
anObject$4(O);
|
|
30742
30727
|
var keys = getKeys$1(Properties);
|
|
30743
30728
|
var length = keys.length;
|
|
@@ -30816,7 +30801,7 @@ $exports.store = store;
|
|
|
30816
30801
|
|
|
30817
30802
|
var _wksExports = _wks.exports;
|
|
30818
30803
|
|
|
30819
|
-
var def =
|
|
30804
|
+
var def = _objectDp.f;
|
|
30820
30805
|
var has$9 = _has;
|
|
30821
30806
|
var TAG$1 = _wksExports('toStringTag');
|
|
30822
30807
|
|
|
@@ -31130,7 +31115,7 @@ var _isArrayIter = function (it) {
|
|
|
31130
31115
|
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
31131
31116
|
};
|
|
31132
31117
|
|
|
31133
|
-
var $defineProperty$1 =
|
|
31118
|
+
var $defineProperty$1 = _objectDp;
|
|
31134
31119
|
var createDesc$2 = _propertyDesc;
|
|
31135
31120
|
|
|
31136
31121
|
var _createProperty = function (object, index, value) {
|
|
@@ -31263,7 +31248,7 @@ var _default$8 = function (instance, Constructor) {
|
|
|
31263
31248
|
|
|
31264
31249
|
var $export$3 = _export;
|
|
31265
31250
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
31266
|
-
$export$3($export$3.S + $export$3.F * !
|
|
31251
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
|
|
31267
31252
|
|
|
31268
31253
|
var $Object$2 = _coreExports.Object;
|
|
31269
31254
|
var defineProperty$9 = function defineProperty(it, key, desc) {
|
|
@@ -31311,7 +31296,7 @@ var _meta = {exports: {}};
|
|
|
31311
31296
|
var META$1 = _uid('meta');
|
|
31312
31297
|
var isObject$c = _isObject;
|
|
31313
31298
|
var has$7 = _has;
|
|
31314
|
-
var setDesc =
|
|
31299
|
+
var setDesc = _objectDp.f;
|
|
31315
31300
|
var id = 0;
|
|
31316
31301
|
var isExtensible = Object.isExtensible || function () {
|
|
31317
31302
|
return true;
|
|
@@ -31366,7 +31351,7 @@ var _metaExports = _meta.exports;
|
|
|
31366
31351
|
|
|
31367
31352
|
var core = _coreExports;
|
|
31368
31353
|
var wksExt$1 = _wksExt;
|
|
31369
|
-
var defineProperty$7 =
|
|
31354
|
+
var defineProperty$7 = _objectDp.f;
|
|
31370
31355
|
var _wksDefine = function (name) {
|
|
31371
31356
|
var $Symbol = core.Symbol || (core.Symbol = {} );
|
|
31372
31357
|
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$7($Symbol, name, { value: wksExt$1.f(name) });
|
|
@@ -31433,10 +31418,10 @@ var createDesc$1 = _propertyDesc;
|
|
|
31433
31418
|
var toIObject$1 = _toIobject;
|
|
31434
31419
|
var toPrimitive$1 = _toPrimitive;
|
|
31435
31420
|
var has$6 = _has;
|
|
31436
|
-
var IE8_DOM_DEFINE =
|
|
31421
|
+
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
31437
31422
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
31438
31423
|
|
|
31439
|
-
_objectGopd.f =
|
|
31424
|
+
_objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
|
|
31440
31425
|
O = toIObject$1(O);
|
|
31441
31426
|
P = toPrimitive$1(P, true);
|
|
31442
31427
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -31448,7 +31433,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescript
|
|
|
31448
31433
|
// ECMAScript 6 symbols shim
|
|
31449
31434
|
var global$1 = _globalExports;
|
|
31450
31435
|
var has$5 = _has;
|
|
31451
|
-
var DESCRIPTORS =
|
|
31436
|
+
var DESCRIPTORS = _descriptors;
|
|
31452
31437
|
var $export$2 = _export;
|
|
31453
31438
|
var redefine = _redefine;
|
|
31454
31439
|
var META = _metaExports.KEY;
|
|
@@ -31471,7 +31456,7 @@ var _create$1 = _objectCreate;
|
|
|
31471
31456
|
var gOPNExt = _objectGopnExt;
|
|
31472
31457
|
var $GOPD = _objectGopd;
|
|
31473
31458
|
var $GOPS = _objectGops;
|
|
31474
|
-
var $DP =
|
|
31459
|
+
var $DP = _objectDp;
|
|
31475
31460
|
var $keys$1 = _objectKeys;
|
|
31476
31461
|
var gOPD$1 = $GOPD.f;
|
|
31477
31462
|
var dP = $DP.f;
|
|
@@ -87562,7 +87547,7 @@ class DataTable extends React$1.Component {
|
|
|
87562
87547
|
tabIndex: -1,
|
|
87563
87548
|
onKeyDown: (e) => {
|
|
87564
87549
|
const isArrowKey = e.keyCode >= 37 && e.keyCode <= 40 || e.keyCode === 9;
|
|
87565
|
-
if (isArrowKey) {
|
|
87550
|
+
if (isArrowKey && e.target?.tagName !== "INPUT") {
|
|
87566
87551
|
const { schema: schema2, entities: entities2 } = computePresets(this.props);
|
|
87567
87552
|
const left = e.keyCode === 37;
|
|
87568
87553
|
const up = e.keyCode === 38;
|
|
@@ -89705,7 +89690,7 @@ class AlertWrapper extends React$1.Component {
|
|
|
89705
89690
|
{
|
|
89706
89691
|
...{
|
|
89707
89692
|
onBackClick: cancelButtonText && !noCancelButton ? () => doClose(false) : void 0,
|
|
89708
|
-
onClick: () => doClose(true),
|
|
89693
|
+
onClick: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
|
|
89709
89694
|
noCancel: true,
|
|
89710
89695
|
additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React$1.createElement(
|
|
89711
89696
|
core$5.Button,
|
|
@@ -91745,6 +91730,7 @@ async function tryToMatchSchemas({
|
|
|
91745
91730
|
incomingData,
|
|
91746
91731
|
validateAgainstSchema
|
|
91747
91732
|
}) {
|
|
91733
|
+
await resolveValidateAgainstSchema();
|
|
91748
91734
|
const userSchema = getSchema(incomingData);
|
|
91749
91735
|
const { searchResults, csvValidationIssue } = await matchSchemas({
|
|
91750
91736
|
userSchema,
|
|
@@ -91894,6 +91880,8 @@ const addSpecialPropToAsyncErrs = (res) => {
|
|
|
91894
91880
|
});
|
|
91895
91881
|
return res;
|
|
91896
91882
|
};
|
|
91883
|
+
async function resolveValidateAgainstSchema() {
|
|
91884
|
+
}
|
|
91897
91885
|
|
|
91898
91886
|
const getInitialSteps = (csvValidationIssue) => [
|
|
91899
91887
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
@@ -92352,7 +92340,7 @@ const PreviewCsvData = observer(function(props) {
|
|
|
92352
92340
|
const SimpleInsertDataDialog = compose(
|
|
92353
92341
|
wrapDialog({
|
|
92354
92342
|
canEscapeKeyClose: false,
|
|
92355
|
-
title: "
|
|
92343
|
+
title: "Build CSV File",
|
|
92356
92344
|
style: { width: "fit-content" }
|
|
92357
92345
|
}),
|
|
92358
92346
|
reduxForm.reduxForm({ form: "SimpleInsertDataDialog" }),
|
|
@@ -100054,7 +100042,6 @@ function UploaderInner({
|
|
|
100054
100042
|
onFieldSubmit(responses);
|
|
100055
100043
|
}
|
|
100056
100044
|
} else {
|
|
100057
|
-
console.log(`cleanedFileList:`, cleanedFileList);
|
|
100058
100045
|
onChange(
|
|
100059
100046
|
cleanedFileList.map(function(file) {
|
|
100060
100047
|
return {
|
|
@@ -100445,31 +100432,22 @@ function UploaderInner({
|
|
|
100445
100432
|
className: "tg-upload-inner"
|
|
100446
100433
|
},
|
|
100447
100434
|
innerIcon || /* @__PURE__ */ React$1.createElement(core$5.Icon, { icon: "upload", iconSize: minimal ? 15 : 30 }),
|
|
100448
|
-
innerText || (minimal ? "Upload" : "Click or drag to upload")
|
|
100449
|
-
|
|
100450
|
-
|
|
100451
|
-
|
|
100452
|
-
|
|
100453
|
-
|
|
100454
|
-
|
|
100455
|
-
|
|
100456
|
-
|
|
100457
|
-
|
|
100458
|
-
|
|
100459
|
-
|
|
100460
|
-
|
|
100461
|
-
|
|
100462
|
-
|
|
100463
|
-
|
|
100464
|
-
"div",
|
|
100465
|
-
{
|
|
100466
|
-
style: {
|
|
100467
|
-
fontSize: 11,
|
|
100468
|
-
color: core$5.Colors.GRAY3,
|
|
100469
|
-
fontStyle: "italic"
|
|
100470
|
-
}
|
|
100471
|
-
},
|
|
100472
|
-
manualEnterSubMessage
|
|
100435
|
+
innerText || (minimal ? "Upload" : "Click or drag to upload"),
|
|
100436
|
+
validateAgainstSchema && /* @__PURE__ */ React$1.createElement(
|
|
100437
|
+
"div",
|
|
100438
|
+
{
|
|
100439
|
+
style: {
|
|
100440
|
+
textAlign: "center",
|
|
100441
|
+
// fontSize: 18,
|
|
100442
|
+
marginTop: 7,
|
|
100443
|
+
marginBottom: 5
|
|
100444
|
+
},
|
|
100445
|
+
onClick: handleManuallyEnterData,
|
|
100446
|
+
className: "link-button"
|
|
100447
|
+
},
|
|
100448
|
+
"...or ",
|
|
100449
|
+
manualEnterMessage
|
|
100450
|
+
)
|
|
100473
100451
|
)
|
|
100474
100452
|
), showFilesCount ? /* @__PURE__ */ React$1.createElement("div", { className: "tg-upload-file-list-counter" }, "Files: ", fileList ? fileList.length : 0) : null)
|
|
100475
100453
|
),
|
package/index.es.js
CHANGED
|
@@ -7401,7 +7401,7 @@ function getPlainObjectKeys(object) {
|
|
|
7401
7401
|
var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
|
|
7402
7402
|
return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
|
|
7403
7403
|
} : /* istanbul ignore next */Object.getOwnPropertyNames;
|
|
7404
|
-
function toPrimitive$
|
|
7404
|
+
function toPrimitive$3(value) {
|
|
7405
7405
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
7406
7406
|
}
|
|
7407
7407
|
function hasProp(target, prop) {
|
|
@@ -8330,7 +8330,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
|
|
|
8330
8330
|
return this.name_ + "[" + this.value_ + "]";
|
|
8331
8331
|
};
|
|
8332
8332
|
_proto.valueOf = function valueOf() {
|
|
8333
|
-
return toPrimitive$
|
|
8333
|
+
return toPrimitive$3(this.get());
|
|
8334
8334
|
};
|
|
8335
8335
|
_proto[_Symbol$toPrimitive] = function () {
|
|
8336
8336
|
return this.valueOf();
|
|
@@ -8558,7 +8558,7 @@ var ComputedValue = /*#__PURE__*/function () {
|
|
|
8558
8558
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
8559
8559
|
};
|
|
8560
8560
|
_proto.valueOf = function valueOf() {
|
|
8561
|
-
return toPrimitive$
|
|
8561
|
+
return toPrimitive$3(this.get());
|
|
8562
8562
|
};
|
|
8563
8563
|
_proto[_Symbol$toPrimitive$1] = function () {
|
|
8564
8564
|
return this.valueOf();
|
|
@@ -30310,18 +30310,10 @@ var _fails = function (exec) {
|
|
|
30310
30310
|
}
|
|
30311
30311
|
};
|
|
30312
30312
|
|
|
30313
|
-
|
|
30314
|
-
var
|
|
30315
|
-
|
|
30316
|
-
|
|
30317
|
-
if (hasRequired_descriptors) return _descriptors;
|
|
30318
|
-
hasRequired_descriptors = 1;
|
|
30319
|
-
// Thank's IE8 for his funny defineProperty
|
|
30320
|
-
_descriptors = !_fails(function () {
|
|
30321
|
-
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
30322
|
-
});
|
|
30323
|
-
return _descriptors;
|
|
30324
|
-
}
|
|
30313
|
+
// Thank's IE8 for his funny defineProperty
|
|
30314
|
+
var _descriptors = !_fails(function () {
|
|
30315
|
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
30316
|
+
});
|
|
30325
30317
|
|
|
30326
30318
|
var _domCreate;
|
|
30327
30319
|
var hasRequired_domCreate;
|
|
@@ -30339,17 +30331,9 @@ function require_domCreate () {
|
|
|
30339
30331
|
return _domCreate;
|
|
30340
30332
|
}
|
|
30341
30333
|
|
|
30342
|
-
var _ie8DomDefine
|
|
30343
|
-
|
|
30344
|
-
|
|
30345
|
-
function require_ie8DomDefine () {
|
|
30346
|
-
if (hasRequired_ie8DomDefine) return _ie8DomDefine;
|
|
30347
|
-
hasRequired_ie8DomDefine = 1;
|
|
30348
|
-
_ie8DomDefine = !require_descriptors() && !_fails(function () {
|
|
30349
|
-
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
30350
|
-
});
|
|
30351
|
-
return _ie8DomDefine;
|
|
30352
|
-
}
|
|
30334
|
+
var _ie8DomDefine = !_descriptors && !_fails(function () {
|
|
30335
|
+
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
30336
|
+
});
|
|
30353
30337
|
|
|
30354
30338
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
30355
30339
|
var isObject$d = _isObject;
|
|
@@ -30364,29 +30348,22 @@ var _toPrimitive = function (it, S) {
|
|
|
30364
30348
|
throw TypeError("Can't convert object to primitive value");
|
|
30365
30349
|
};
|
|
30366
30350
|
|
|
30367
|
-
var
|
|
30368
|
-
|
|
30369
|
-
|
|
30370
|
-
|
|
30371
|
-
hasRequired_objectDp = 1;
|
|
30372
|
-
var anObject = _anObject;
|
|
30373
|
-
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
30374
|
-
var toPrimitive = _toPrimitive;
|
|
30375
|
-
var dP = Object.defineProperty;
|
|
30351
|
+
var anObject$5 = _anObject;
|
|
30352
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
30353
|
+
var toPrimitive$2 = _toPrimitive;
|
|
30354
|
+
var dP$3 = Object.defineProperty;
|
|
30376
30355
|
|
|
30377
|
-
|
|
30378
|
-
|
|
30379
|
-
|
|
30380
|
-
|
|
30381
|
-
|
|
30382
|
-
|
|
30383
|
-
|
|
30384
|
-
|
|
30385
|
-
|
|
30386
|
-
|
|
30387
|
-
|
|
30388
|
-
return _objectDp;
|
|
30389
|
-
}
|
|
30356
|
+
_objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
30357
|
+
anObject$5(O);
|
|
30358
|
+
P = toPrimitive$2(P, true);
|
|
30359
|
+
anObject$5(Attributes);
|
|
30360
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
30361
|
+
return dP$3(O, P, Attributes);
|
|
30362
|
+
} catch (e) { /* empty */ }
|
|
30363
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
30364
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
30365
|
+
return O;
|
|
30366
|
+
};
|
|
30390
30367
|
|
|
30391
30368
|
var _propertyDesc = function (bitmap, value) {
|
|
30392
30369
|
return {
|
|
@@ -30397,9 +30374,9 @@ var _propertyDesc = function (bitmap, value) {
|
|
|
30397
30374
|
};
|
|
30398
30375
|
};
|
|
30399
30376
|
|
|
30400
|
-
var dP$2 =
|
|
30377
|
+
var dP$2 = _objectDp;
|
|
30401
30378
|
var createDesc$3 = _propertyDesc;
|
|
30402
|
-
var _hide =
|
|
30379
|
+
var _hide = _descriptors ? function (object, key, value) {
|
|
30403
30380
|
return dP$2.f(object, key, createDesc$3(1, value));
|
|
30404
30381
|
} : function (object, key, value) {
|
|
30405
30382
|
object[key] = value;
|
|
@@ -30480,12 +30457,20 @@ var _cof = function (it) {
|
|
|
30480
30457
|
return toString$6.call(it).slice(8, -1);
|
|
30481
30458
|
};
|
|
30482
30459
|
|
|
30483
|
-
|
|
30484
|
-
var
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
|
|
30488
|
-
|
|
30460
|
+
var _iobject;
|
|
30461
|
+
var hasRequired_iobject;
|
|
30462
|
+
|
|
30463
|
+
function require_iobject () {
|
|
30464
|
+
if (hasRequired_iobject) return _iobject;
|
|
30465
|
+
hasRequired_iobject = 1;
|
|
30466
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
30467
|
+
var cof = _cof;
|
|
30468
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
30469
|
+
_iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
30470
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
30471
|
+
};
|
|
30472
|
+
return _iobject;
|
|
30473
|
+
}
|
|
30489
30474
|
|
|
30490
30475
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
30491
30476
|
var _defined = function (it) {
|
|
@@ -30494,7 +30479,7 @@ var _defined = function (it) {
|
|
|
30494
30479
|
};
|
|
30495
30480
|
|
|
30496
30481
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
30497
|
-
var IObject =
|
|
30482
|
+
var IObject = require_iobject();
|
|
30498
30483
|
var defined$2 = _defined;
|
|
30499
30484
|
var _toIobject = function (it) {
|
|
30500
30485
|
return IObject(defined$2(it));
|
|
@@ -30636,12 +30621,12 @@ function require_objectAssign () {
|
|
|
30636
30621
|
if (hasRequired_objectAssign) return _objectAssign;
|
|
30637
30622
|
hasRequired_objectAssign = 1;
|
|
30638
30623
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
30639
|
-
var DESCRIPTORS =
|
|
30624
|
+
var DESCRIPTORS = _descriptors;
|
|
30640
30625
|
var getKeys = _objectKeys;
|
|
30641
30626
|
var gOPS = _objectGops;
|
|
30642
30627
|
var pIE = require_objectPie();
|
|
30643
30628
|
var toObject = _toObject;
|
|
30644
|
-
var IObject =
|
|
30629
|
+
var IObject = require_iobject();
|
|
30645
30630
|
var $assign = Object.assign;
|
|
30646
30631
|
|
|
30647
30632
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -30712,11 +30697,11 @@ var _iterators = {};
|
|
|
30712
30697
|
|
|
30713
30698
|
var _redefine = _hide;
|
|
30714
30699
|
|
|
30715
|
-
var dP$1 =
|
|
30700
|
+
var dP$1 = _objectDp;
|
|
30716
30701
|
var anObject$4 = _anObject;
|
|
30717
30702
|
var getKeys$1 = _objectKeys;
|
|
30718
30703
|
|
|
30719
|
-
var _objectDps =
|
|
30704
|
+
var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
30720
30705
|
anObject$4(O);
|
|
30721
30706
|
var keys = getKeys$1(Properties);
|
|
30722
30707
|
var length = keys.length;
|
|
@@ -30795,7 +30780,7 @@ $exports.store = store;
|
|
|
30795
30780
|
|
|
30796
30781
|
var _wksExports = _wks.exports;
|
|
30797
30782
|
|
|
30798
|
-
var def =
|
|
30783
|
+
var def = _objectDp.f;
|
|
30799
30784
|
var has$9 = _has;
|
|
30800
30785
|
var TAG$1 = _wksExports('toStringTag');
|
|
30801
30786
|
|
|
@@ -31109,7 +31094,7 @@ var _isArrayIter = function (it) {
|
|
|
31109
31094
|
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
31110
31095
|
};
|
|
31111
31096
|
|
|
31112
|
-
var $defineProperty$1 =
|
|
31097
|
+
var $defineProperty$1 = _objectDp;
|
|
31113
31098
|
var createDesc$2 = _propertyDesc;
|
|
31114
31099
|
|
|
31115
31100
|
var _createProperty = function (object, index, value) {
|
|
@@ -31242,7 +31227,7 @@ var _default$8 = function (instance, Constructor) {
|
|
|
31242
31227
|
|
|
31243
31228
|
var $export$3 = _export;
|
|
31244
31229
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
31245
|
-
$export$3($export$3.S + $export$3.F * !
|
|
31230
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
|
|
31246
31231
|
|
|
31247
31232
|
var $Object$2 = _coreExports.Object;
|
|
31248
31233
|
var defineProperty$9 = function defineProperty(it, key, desc) {
|
|
@@ -31290,7 +31275,7 @@ var _meta = {exports: {}};
|
|
|
31290
31275
|
var META$1 = _uid('meta');
|
|
31291
31276
|
var isObject$c = _isObject;
|
|
31292
31277
|
var has$7 = _has;
|
|
31293
|
-
var setDesc =
|
|
31278
|
+
var setDesc = _objectDp.f;
|
|
31294
31279
|
var id = 0;
|
|
31295
31280
|
var isExtensible = Object.isExtensible || function () {
|
|
31296
31281
|
return true;
|
|
@@ -31345,7 +31330,7 @@ var _metaExports = _meta.exports;
|
|
|
31345
31330
|
|
|
31346
31331
|
var core = _coreExports;
|
|
31347
31332
|
var wksExt$1 = _wksExt;
|
|
31348
|
-
var defineProperty$7 =
|
|
31333
|
+
var defineProperty$7 = _objectDp.f;
|
|
31349
31334
|
var _wksDefine = function (name) {
|
|
31350
31335
|
var $Symbol = core.Symbol || (core.Symbol = {} );
|
|
31351
31336
|
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$7($Symbol, name, { value: wksExt$1.f(name) });
|
|
@@ -31412,10 +31397,10 @@ var createDesc$1 = _propertyDesc;
|
|
|
31412
31397
|
var toIObject$1 = _toIobject;
|
|
31413
31398
|
var toPrimitive$1 = _toPrimitive;
|
|
31414
31399
|
var has$6 = _has;
|
|
31415
|
-
var IE8_DOM_DEFINE =
|
|
31400
|
+
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
31416
31401
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
31417
31402
|
|
|
31418
|
-
_objectGopd.f =
|
|
31403
|
+
_objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
|
|
31419
31404
|
O = toIObject$1(O);
|
|
31420
31405
|
P = toPrimitive$1(P, true);
|
|
31421
31406
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -31427,7 +31412,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescript
|
|
|
31427
31412
|
// ECMAScript 6 symbols shim
|
|
31428
31413
|
var global$1 = _globalExports;
|
|
31429
31414
|
var has$5 = _has;
|
|
31430
|
-
var DESCRIPTORS =
|
|
31415
|
+
var DESCRIPTORS = _descriptors;
|
|
31431
31416
|
var $export$2 = _export;
|
|
31432
31417
|
var redefine = _redefine;
|
|
31433
31418
|
var META = _metaExports.KEY;
|
|
@@ -31450,7 +31435,7 @@ var _create$1 = _objectCreate;
|
|
|
31450
31435
|
var gOPNExt = _objectGopnExt;
|
|
31451
31436
|
var $GOPD = _objectGopd;
|
|
31452
31437
|
var $GOPS = _objectGops;
|
|
31453
|
-
var $DP =
|
|
31438
|
+
var $DP = _objectDp;
|
|
31454
31439
|
var $keys$1 = _objectKeys;
|
|
31455
31440
|
var gOPD$1 = $GOPD.f;
|
|
31456
31441
|
var dP = $DP.f;
|
|
@@ -87541,7 +87526,7 @@ class DataTable extends React__default.Component {
|
|
|
87541
87526
|
tabIndex: -1,
|
|
87542
87527
|
onKeyDown: (e) => {
|
|
87543
87528
|
const isArrowKey = e.keyCode >= 37 && e.keyCode <= 40 || e.keyCode === 9;
|
|
87544
|
-
if (isArrowKey) {
|
|
87529
|
+
if (isArrowKey && e.target?.tagName !== "INPUT") {
|
|
87545
87530
|
const { schema: schema2, entities: entities2 } = computePresets(this.props);
|
|
87546
87531
|
const left = e.keyCode === 37;
|
|
87547
87532
|
const up = e.keyCode === 38;
|
|
@@ -89684,7 +89669,7 @@ class AlertWrapper extends Component {
|
|
|
89684
89669
|
{
|
|
89685
89670
|
...{
|
|
89686
89671
|
onBackClick: cancelButtonText && !noCancelButton ? () => doClose(false) : void 0,
|
|
89687
|
-
onClick: () => doClose(true),
|
|
89672
|
+
onClick: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
|
|
89688
89673
|
noCancel: true,
|
|
89689
89674
|
additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React__default.createElement(
|
|
89690
89675
|
Button,
|
|
@@ -91724,6 +91709,7 @@ async function tryToMatchSchemas({
|
|
|
91724
91709
|
incomingData,
|
|
91725
91710
|
validateAgainstSchema
|
|
91726
91711
|
}) {
|
|
91712
|
+
await resolveValidateAgainstSchema();
|
|
91727
91713
|
const userSchema = getSchema(incomingData);
|
|
91728
91714
|
const { searchResults, csvValidationIssue } = await matchSchemas({
|
|
91729
91715
|
userSchema,
|
|
@@ -91873,6 +91859,8 @@ const addSpecialPropToAsyncErrs = (res) => {
|
|
|
91873
91859
|
});
|
|
91874
91860
|
return res;
|
|
91875
91861
|
};
|
|
91862
|
+
async function resolveValidateAgainstSchema() {
|
|
91863
|
+
}
|
|
91876
91864
|
|
|
91877
91865
|
const getInitialSteps = (csvValidationIssue) => [
|
|
91878
91866
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
@@ -92331,7 +92319,7 @@ const PreviewCsvData = observer(function(props) {
|
|
|
92331
92319
|
const SimpleInsertDataDialog = compose(
|
|
92332
92320
|
wrapDialog({
|
|
92333
92321
|
canEscapeKeyClose: false,
|
|
92334
|
-
title: "
|
|
92322
|
+
title: "Build CSV File",
|
|
92335
92323
|
style: { width: "fit-content" }
|
|
92336
92324
|
}),
|
|
92337
92325
|
reduxForm({ form: "SimpleInsertDataDialog" }),
|
|
@@ -100033,7 +100021,6 @@ function UploaderInner({
|
|
|
100033
100021
|
onFieldSubmit(responses);
|
|
100034
100022
|
}
|
|
100035
100023
|
} else {
|
|
100036
|
-
console.log(`cleanedFileList:`, cleanedFileList);
|
|
100037
100024
|
onChange(
|
|
100038
100025
|
cleanedFileList.map(function(file) {
|
|
100039
100026
|
return {
|
|
@@ -100424,31 +100411,22 @@ function UploaderInner({
|
|
|
100424
100411
|
className: "tg-upload-inner"
|
|
100425
100412
|
},
|
|
100426
100413
|
innerIcon || /* @__PURE__ */ React__default.createElement(Icon, { icon: "upload", iconSize: minimal ? 15 : 30 }),
|
|
100427
|
-
innerText || (minimal ? "Upload" : "Click or drag to upload")
|
|
100428
|
-
|
|
100429
|
-
|
|
100430
|
-
|
|
100431
|
-
|
|
100432
|
-
|
|
100433
|
-
|
|
100434
|
-
|
|
100435
|
-
|
|
100436
|
-
|
|
100437
|
-
|
|
100438
|
-
|
|
100439
|
-
|
|
100440
|
-
|
|
100441
|
-
|
|
100442
|
-
|
|
100443
|
-
"div",
|
|
100444
|
-
{
|
|
100445
|
-
style: {
|
|
100446
|
-
fontSize: 11,
|
|
100447
|
-
color: Colors.GRAY3,
|
|
100448
|
-
fontStyle: "italic"
|
|
100449
|
-
}
|
|
100450
|
-
},
|
|
100451
|
-
manualEnterSubMessage
|
|
100414
|
+
innerText || (minimal ? "Upload" : "Click or drag to upload"),
|
|
100415
|
+
validateAgainstSchema && /* @__PURE__ */ React__default.createElement(
|
|
100416
|
+
"div",
|
|
100417
|
+
{
|
|
100418
|
+
style: {
|
|
100419
|
+
textAlign: "center",
|
|
100420
|
+
// fontSize: 18,
|
|
100421
|
+
marginTop: 7,
|
|
100422
|
+
marginBottom: 5
|
|
100423
|
+
},
|
|
100424
|
+
onClick: handleManuallyEnterData,
|
|
100425
|
+
className: "link-button"
|
|
100426
|
+
},
|
|
100427
|
+
"...or ",
|
|
100428
|
+
manualEnterMessage
|
|
100429
|
+
)
|
|
100452
100430
|
)
|
|
100453
100431
|
), showFilesCount ? /* @__PURE__ */ React__default.createElement("div", { className: "tg-upload-file-list-counter" }, "Files: ", fileList ? fileList.length : 0) : null)
|
|
100454
100432
|
),
|
package/package.json
CHANGED
package/src/DataTable/index.js
CHANGED
|
@@ -1384,7 +1384,7 @@ class DataTable extends React.Component {
|
|
|
1384
1384
|
onKeyDown: e => {
|
|
1385
1385
|
const isArrowKey =
|
|
1386
1386
|
(e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode === 9;
|
|
1387
|
-
if (isArrowKey) {
|
|
1387
|
+
if (isArrowKey && e.target?.tagName !== "INPUT") {
|
|
1388
1388
|
const { schema, entities } = computePresets(this.props);
|
|
1389
1389
|
const left = e.keyCode === 37;
|
|
1390
1390
|
const up = e.keyCode === 38;
|
|
@@ -450,7 +450,6 @@ function UploaderInner({
|
|
|
450
450
|
onFieldSubmit(responses);
|
|
451
451
|
}
|
|
452
452
|
} else {
|
|
453
|
-
console.log(`cleanedFileList:`, cleanedFileList);
|
|
454
453
|
onChange(
|
|
455
454
|
cleanedFileList.map(function (file) {
|
|
456
455
|
return {
|
|
@@ -946,32 +945,33 @@ function UploaderInner({
|
|
|
946
945
|
)}
|
|
947
946
|
{innerText ||
|
|
948
947
|
(minimal ? "Upload" : "Click or drag to upload")}
|
|
948
|
+
{validateAgainstSchema && (
|
|
949
|
+
<div
|
|
950
|
+
style={{
|
|
951
|
+
textAlign: "center",
|
|
952
|
+
// fontSize: 18,
|
|
953
|
+
marginTop: 7,
|
|
954
|
+
marginBottom: 5
|
|
955
|
+
}}
|
|
956
|
+
onClick={handleManuallyEnterData}
|
|
957
|
+
className="link-button"
|
|
958
|
+
>
|
|
959
|
+
...or {manualEnterMessage}
|
|
960
|
+
{/* <div
|
|
961
|
+
style={{
|
|
962
|
+
fontSize: 11,
|
|
963
|
+
color: Colors.GRAY3,
|
|
964
|
+
fontStyle: "italic"
|
|
965
|
+
}}
|
|
966
|
+
>
|
|
967
|
+
{manualEnterSubMessage}
|
|
968
|
+
</div> */}
|
|
969
|
+
</div>
|
|
970
|
+
)}
|
|
949
971
|
</div>
|
|
950
972
|
)}
|
|
951
973
|
</div>
|
|
952
|
-
|
|
953
|
-
<div
|
|
954
|
-
style={{
|
|
955
|
-
textAlign: "center",
|
|
956
|
-
fontSize: 18,
|
|
957
|
-
marginTop: 7,
|
|
958
|
-
marginBottom: 5
|
|
959
|
-
}}
|
|
960
|
-
onClick={handleManuallyEnterData}
|
|
961
|
-
className="link-button"
|
|
962
|
-
>
|
|
963
|
-
{manualEnterMessage}
|
|
964
|
-
<div
|
|
965
|
-
style={{
|
|
966
|
-
fontSize: 11,
|
|
967
|
-
color: Colors.GRAY3,
|
|
968
|
-
fontStyle: "italic"
|
|
969
|
-
}}
|
|
970
|
-
>
|
|
971
|
-
{manualEnterSubMessage}
|
|
972
|
-
</div>
|
|
973
|
-
</div>
|
|
974
|
-
)}
|
|
974
|
+
|
|
975
975
|
{showFilesCount ? (
|
|
976
976
|
<div className="tg-upload-file-list-counter">
|
|
977
977
|
Files: {fileList ? fileList.length : 0}
|
|
@@ -25,6 +25,7 @@ export default async function tryToMatchSchemas({
|
|
|
25
25
|
incomingData,
|
|
26
26
|
validateAgainstSchema
|
|
27
27
|
}) {
|
|
28
|
+
await resolveValidateAgainstSchema(validateAgainstSchema);
|
|
28
29
|
const userSchema = getSchema(incomingData);
|
|
29
30
|
|
|
30
31
|
const { searchResults, csvValidationIssue } = await matchSchemas({
|
|
@@ -219,3 +220,15 @@ export const addSpecialPropToAsyncErrs = res => {
|
|
|
219
220
|
});
|
|
220
221
|
return res;
|
|
221
222
|
};
|
|
223
|
+
|
|
224
|
+
async function resolveValidateAgainstSchema() {
|
|
225
|
+
//tnw: wip!
|
|
226
|
+
// mapSeries(validateAgainstSchema.fields, async f => {
|
|
227
|
+
// if (f.type === "dropdown") {
|
|
228
|
+
// console.log(`type:`, f.type)
|
|
229
|
+
// if (f.getValues) {
|
|
230
|
+
// f.values = await f.getValues(props);
|
|
231
|
+
// }
|
|
232
|
+
// }
|
|
233
|
+
// })
|
|
234
|
+
}
|
package/src/UploadCsvWizard.js
CHANGED
|
@@ -595,7 +595,7 @@ export const PreviewCsvData = observer(function (props) {
|
|
|
595
595
|
export const SimpleInsertDataDialog = compose(
|
|
596
596
|
wrapDialog({
|
|
597
597
|
canEscapeKeyClose: false,
|
|
598
|
-
title: "
|
|
598
|
+
title: "Build CSV File",
|
|
599
599
|
style: { width: "fit-content" }
|
|
600
600
|
}),
|
|
601
601
|
reduxForm({ form: "SimpleInsertDataDialog" }),
|
|
@@ -655,7 +655,7 @@ export const SimpleInsertDataDialog = compose(
|
|
|
655
655
|
</div>
|
|
656
656
|
<DialogFooter
|
|
657
657
|
submitting={submitting}
|
|
658
|
-
onClick={handleSubmit(async ({fileName}) => {
|
|
658
|
+
onClick={handleSubmit(async ({ fileName }) => {
|
|
659
659
|
if (some(validationToUse, e => e)) return;
|
|
660
660
|
//do async validation here if needed
|
|
661
661
|
if (
|
|
@@ -89,7 +89,9 @@ export class AlertWrapper extends Component {
|
|
|
89
89
|
cancelButtonText && !noCancelButton
|
|
90
90
|
? () => doClose(false)
|
|
91
91
|
: undefined,
|
|
92
|
-
onClick:
|
|
92
|
+
onClick: handleSubmit
|
|
93
|
+
? handleSubmit(v => doClose(v))
|
|
94
|
+
: () => doClose(true),
|
|
93
95
|
noCancel: true,
|
|
94
96
|
additionalButtons:
|
|
95
97
|
thirdButtonText || fourthButtonText ? (
|