@lingk/sync 2.3.4 → 2.3.6
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/build/credentialSections.js +77 -19
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js.map +1 -1
- package/build/main.js +77 -19
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -7632,6 +7632,7 @@ module.exports =
|
|
|
7632
7632
|
};
|
|
7633
7633
|
|
|
7634
7634
|
_this.onDrop = function (fs) {
|
|
7635
|
+
_this.setState({ fileLoading: true });
|
|
7635
7636
|
var meta = [].concat(_toConsumableArray(_this.state.meta));
|
|
7636
7637
|
var counter = 0;
|
|
7637
7638
|
var fileContents = [].concat(_toConsumableArray(_this.state.fileContents));
|
|
@@ -7667,7 +7668,7 @@ module.exports =
|
|
|
7667
7668
|
sheetCounter += 1;
|
|
7668
7669
|
counter += 1;
|
|
7669
7670
|
if (counter >= fs.length && sheetCounter === sheetNames.length) {
|
|
7670
|
-
_this.setState({ meta: meta });
|
|
7671
|
+
_this.setState({ meta: meta, fileLoading: false });
|
|
7671
7672
|
_this.props.onDrop();
|
|
7672
7673
|
}
|
|
7673
7674
|
});
|
|
@@ -7677,7 +7678,7 @@ module.exports =
|
|
|
7677
7678
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
7678
7679
|
counter += 1;
|
|
7679
7680
|
if (counter === fs.length) {
|
|
7680
|
-
_this.setState({ meta: meta });
|
|
7681
|
+
_this.setState({ meta: meta, fileLoading: false });
|
|
7681
7682
|
_this.props.onDrop();
|
|
7682
7683
|
}
|
|
7683
7684
|
});
|
|
@@ -7691,7 +7692,7 @@ module.exports =
|
|
|
7691
7692
|
meta = meta.concat(Object.assign({}, fileMeta, { fileType: extension }));
|
|
7692
7693
|
counter += 1;
|
|
7693
7694
|
if (counter === fs.length) {
|
|
7694
|
-
_this.setState({ meta: meta });
|
|
7695
|
+
_this.setState({ meta: meta, fileLoading: false });
|
|
7695
7696
|
// this.props.onDrop();
|
|
7696
7697
|
}
|
|
7697
7698
|
}
|
|
@@ -7704,9 +7705,14 @@ module.exports =
|
|
|
7704
7705
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
7705
7706
|
counter += 1;
|
|
7706
7707
|
if (counter === fs.length) {
|
|
7707
|
-
_this.setState({ meta: meta });
|
|
7708
|
+
_this.setState({ meta: meta, fileLoading: false });
|
|
7708
7709
|
_this.props.onDrop();
|
|
7709
7710
|
}
|
|
7711
|
+
} else {
|
|
7712
|
+
_this.setState({ dropError: "File type not accepted.", fileLoading: false });
|
|
7713
|
+
setTimeout(function () {
|
|
7714
|
+
_this.setState({ dropError: null });
|
|
7715
|
+
}, 3500);
|
|
7710
7716
|
}
|
|
7711
7717
|
|
|
7712
7718
|
// ADD TO CONTENTS, TO UPLOAD
|
|
@@ -7723,7 +7729,7 @@ module.exports =
|
|
|
7723
7729
|
reader.readAsText(file);
|
|
7724
7730
|
}
|
|
7725
7731
|
} else {
|
|
7726
|
-
_this.setState({ dropError: "File type not accepted." });
|
|
7732
|
+
_this.setState({ dropError: "File type not accepted.", fileLoading: false });
|
|
7727
7733
|
setTimeout(function () {
|
|
7728
7734
|
_this.setState({ dropError: null });
|
|
7729
7735
|
}, 3500);
|
|
@@ -7746,6 +7752,8 @@ module.exports =
|
|
|
7746
7752
|
_this.setState({ uploading: true });
|
|
7747
7753
|
setCsvFields(_this.state.meta, _this.state.fileContents, providerType).then(function () {
|
|
7748
7754
|
_this.setState({ meta: [], fileContents: [], uploading: false });
|
|
7755
|
+
// update file list
|
|
7756
|
+
_this.handlePageChange(_this.state.activePage);
|
|
7749
7757
|
});
|
|
7750
7758
|
};
|
|
7751
7759
|
|
|
@@ -7761,7 +7769,11 @@ module.exports =
|
|
|
7761
7769
|
_this.actuallyDeleteFile = function () {
|
|
7762
7770
|
var fileName = _this.state.deleteModalOpenFile;
|
|
7763
7771
|
_this.setState({ deleteModalOpenFile: null, isDeletingFile: fileName });
|
|
7764
|
-
_this.props.deleteFlatFile(fileName)
|
|
7772
|
+
_this.props.deleteFlatFile(fileName).then(function (data) {
|
|
7773
|
+
// update file list
|
|
7774
|
+
_this.setState({ isDeletingFile: null });
|
|
7775
|
+
_this.handlePageChange(_this.state.activePage);
|
|
7776
|
+
});
|
|
7765
7777
|
};
|
|
7766
7778
|
|
|
7767
7779
|
_this.closeDeleteModal = function () {
|
|
@@ -7780,7 +7792,8 @@ module.exports =
|
|
|
7780
7792
|
fileSchemaCount: 0,
|
|
7781
7793
|
activePage: 1,
|
|
7782
7794
|
filesPerPage: 20,
|
|
7783
|
-
fileSchema: []
|
|
7795
|
+
fileSchema: [],
|
|
7796
|
+
fileLoading: false
|
|
7784
7797
|
};
|
|
7785
7798
|
return _this;
|
|
7786
7799
|
}
|
|
@@ -7803,7 +7816,8 @@ module.exports =
|
|
|
7803
7816
|
dropError = _state.dropError,
|
|
7804
7817
|
sortFileTableBy = _state.sortFileTableBy,
|
|
7805
7818
|
isDeletingFile = _state.isDeletingFile,
|
|
7806
|
-
deleteModalOpenFile = _state.deleteModalOpenFile
|
|
7819
|
+
deleteModalOpenFile = _state.deleteModalOpenFile,
|
|
7820
|
+
fileLoading = _state.fileLoading;
|
|
7807
7821
|
var inputs = this.props.inputs;
|
|
7808
7822
|
|
|
7809
7823
|
var Button = inputs.Button;
|
|
@@ -7862,7 +7876,7 @@ module.exports =
|
|
|
7862
7876
|
)
|
|
7863
7877
|
)
|
|
7864
7878
|
),
|
|
7865
|
-
_react2.default.createElement(
|
|
7879
|
+
!fileLoading ? _react2.default.createElement(
|
|
7866
7880
|
"div",
|
|
7867
7881
|
{
|
|
7868
7882
|
style: {
|
|
@@ -7942,6 +7956,16 @@ module.exports =
|
|
|
7942
7956
|
})
|
|
7943
7957
|
)
|
|
7944
7958
|
)
|
|
7959
|
+
) : _react2.default.createElement(
|
|
7960
|
+
"div",
|
|
7961
|
+
{
|
|
7962
|
+
style: {
|
|
7963
|
+
marginLeft: 50,
|
|
7964
|
+
display: "inline-block"
|
|
7965
|
+
}
|
|
7966
|
+
},
|
|
7967
|
+
_react2.default.createElement(Spinner, null),
|
|
7968
|
+
" Processing...."
|
|
7945
7969
|
),
|
|
7946
7970
|
this.props.fileSchemaCount ? fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
7947
7971
|
"div",
|
|
@@ -8435,9 +8459,21 @@ module.exports =
|
|
|
8435
8459
|
var _this = _possibleConstructorReturn(this, (EnvSection.__proto__ || Object.getPrototypeOf(EnvSection)).call(this));
|
|
8436
8460
|
|
|
8437
8461
|
_this.onDefaultConnectionChange = function () {
|
|
8438
|
-
_this.
|
|
8439
|
-
|
|
8440
|
-
|
|
8462
|
+
var defaultConnection = _this.state.defaultConnection;
|
|
8463
|
+
var _this$props = _this.props,
|
|
8464
|
+
config = _this$props.config,
|
|
8465
|
+
multipleConnectors = _this$props.multipleConnectors;
|
|
8466
|
+
|
|
8467
|
+
var providerType = config && config.type;
|
|
8468
|
+
if (defaultConnection && (multipleConnectors.includes(config.label) || multipleConnectors.includes(providerType) || multipleConnectors.includes(config.credentialType))) {
|
|
8469
|
+
_this.setState({
|
|
8470
|
+
warningMessage: config && config.label
|
|
8471
|
+
});
|
|
8472
|
+
} else {
|
|
8473
|
+
_this.setState({
|
|
8474
|
+
defaultConnection: !defaultConnection
|
|
8475
|
+
});
|
|
8476
|
+
}
|
|
8441
8477
|
};
|
|
8442
8478
|
|
|
8443
8479
|
_this.onAPIAccessChange = function () {
|
|
@@ -8447,9 +8483,9 @@ module.exports =
|
|
|
8447
8483
|
};
|
|
8448
8484
|
|
|
8449
8485
|
_this.credKeyPress = function (e) {
|
|
8450
|
-
var _this$
|
|
8451
|
-
checking = _this$
|
|
8452
|
-
check = _this$
|
|
8486
|
+
var _this$props2 = _this.props,
|
|
8487
|
+
checking = _this$props2.checking,
|
|
8488
|
+
check = _this$props2.check;
|
|
8453
8489
|
|
|
8454
8490
|
if (e.key === "Enter" && checking !== true) {
|
|
8455
8491
|
check(_this.state.actualCreds || {});
|
|
@@ -8623,7 +8659,6 @@ module.exports =
|
|
|
8623
8659
|
var formCreds = creds;
|
|
8624
8660
|
return !Object.keys(formCreds).includes(c.split(" ").join(""));
|
|
8625
8661
|
});
|
|
8626
|
-
|
|
8627
8662
|
var AmazonRDSdbs = [{
|
|
8628
8663
|
name: "PostgreSQL",
|
|
8629
8664
|
satisfiesSearch: true,
|
|
@@ -8916,13 +8951,36 @@ module.exports =
|
|
|
8916
8951
|
null,
|
|
8917
8952
|
this.props.children
|
|
8918
8953
|
),
|
|
8919
|
-
_react2.default.createElement(
|
|
8954
|
+
this.state.warningMessage && _react2.default.createElement(
|
|
8955
|
+
"div",
|
|
8956
|
+
{ style: { marginTop: 10, maxWidth: 450 } },
|
|
8957
|
+
_react2.default.createElement(
|
|
8958
|
+
_reactBootstrap.Alert,
|
|
8959
|
+
{ bsStyle: "danger", style: { textAlign: "left" } },
|
|
8960
|
+
_react2.default.createElement(
|
|
8961
|
+
"strong",
|
|
8962
|
+
null,
|
|
8963
|
+
"You can not uncheck this default connection!"
|
|
8964
|
+
),
|
|
8965
|
+
_react2.default.createElement("br", null),
|
|
8966
|
+
"There are multiple connections configured for ",
|
|
8967
|
+
_react2.default.createElement(
|
|
8968
|
+
"strong",
|
|
8969
|
+
null,
|
|
8970
|
+
this.state.warningMessage
|
|
8971
|
+
),
|
|
8972
|
+
" connector in this environment.",
|
|
8973
|
+
_react2.default.createElement("br", null),
|
|
8974
|
+
"Please select different connection as a default connection."
|
|
8975
|
+
)
|
|
8976
|
+
),
|
|
8920
8977
|
config.type != "LocalFile" && _react2.default.createElement(APIAcessHandle, {
|
|
8921
8978
|
APIAccess: this.state.APIAccess,
|
|
8922
8979
|
onChangeHandle: this.onAPIAccessChange,
|
|
8923
8980
|
defaultConnection: this.state.defaultConnection,
|
|
8924
8981
|
onDefaultConnectionChange: this.onDefaultConnectionChange,
|
|
8925
|
-
disableMarkConnection: wizard.disableMarkConnection
|
|
8982
|
+
disableMarkConnection: wizard.disableMarkConnection,
|
|
8983
|
+
misconfiguredConnectors: this.props.misconfiguredConnectors
|
|
8926
8984
|
})
|
|
8927
8985
|
);
|
|
8928
8986
|
}
|
|
@@ -9001,7 +9059,7 @@ module.exports =
|
|
|
9001
9059
|
|
|
9002
9060
|
return _react2.default.createElement(
|
|
9003
9061
|
"div",
|
|
9004
|
-
|
|
9062
|
+
{ style: { marginTop: 10 } },
|
|
9005
9063
|
_react2.default.createElement(
|
|
9006
9064
|
_reactBootstrap.Checkbox,
|
|
9007
9065
|
{
|