@lingk/sync 0.0.63 → 0.0.65
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/lightning.js +7 -3
- package/build/lightning.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/main.js +83 -39
- package/build/main.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -17243,7 +17243,7 @@ module.exports =
|
|
|
17243
17243
|
};
|
|
17244
17244
|
}
|
|
17245
17245
|
|
|
17246
|
-
function callGetPiConfig(tenantId, accountId, piGuid, providers, metadataEndpoints
|
|
17246
|
+
function callGetPiConfig(tenantId, accountId, piGuid, providers, metadataEndpoints) {
|
|
17247
17247
|
if (piGuid) {
|
|
17248
17248
|
return function (dispatch, getState, api) {
|
|
17249
17249
|
var _getState11 = getState(),
|
|
@@ -17277,8 +17277,7 @@ module.exports =
|
|
|
17277
17277
|
});
|
|
17278
17278
|
};
|
|
17279
17279
|
} else return function (dispatch) {
|
|
17280
|
-
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, metadataEndpoints.source, null)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, metadataEndpoints.destination, null))
|
|
17281
|
-
dispatch(callGetBundles(tenantId, accountId, defaultBundlePackGuid))]);
|
|
17280
|
+
return Promise.all([dispatch(tryGetMetadata(tenantId, accountId, 'source', providers.source, metadataEndpoints.source, null)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', providers.destination, metadataEndpoints.destination, null))]);
|
|
17282
17281
|
};
|
|
17283
17282
|
}
|
|
17284
17283
|
|
|
@@ -18624,8 +18623,9 @@ module.exports =
|
|
|
18624
18623
|
resourceGroups && resourceGroups.length > 0 ? _react2.default.createElement(
|
|
18625
18624
|
'div',
|
|
18626
18625
|
null,
|
|
18627
|
-
this.state.showModal && _react2.default.createElement(_transformModal2.default, { inputs: inputs, hideModal: this.hideModal,
|
|
18628
|
-
|
|
18626
|
+
this.state.showModal && _react2.default.createElement(_transformModal2.default, { inputs: inputs, hideModal: this.hideModal,
|
|
18627
|
+
mapping: this.state.selectedTransform, opened: this.state.showModal,
|
|
18628
|
+
change: change, resourceGroups: resourceGroups,
|
|
18629
18629
|
resourceGroupIndex: this.state.selectedTransformResourceGroupIndex })
|
|
18630
18630
|
) : null,
|
|
18631
18631
|
_react2.default.createElement('br', null),
|
|
@@ -19033,25 +19033,47 @@ module.exports =
|
|
|
19033
19033
|
_inherits(DefaultDatasetStep, _Component);
|
|
19034
19034
|
|
|
19035
19035
|
function DefaultDatasetStep() {
|
|
19036
|
-
|
|
19036
|
+
_classCallCheck(this, DefaultDatasetStep);
|
|
19037
19037
|
|
|
19038
|
-
var
|
|
19038
|
+
var _this = _possibleConstructorReturn(this, (DefaultDatasetStep.__proto__ || Object.getPrototypeOf(DefaultDatasetStep)).call(this));
|
|
19039
19039
|
|
|
19040
|
-
|
|
19040
|
+
_this.openModal = function (o) {
|
|
19041
|
+
_this.setState({
|
|
19042
|
+
showModal: true,
|
|
19043
|
+
modalOption: o
|
|
19044
|
+
});
|
|
19045
|
+
};
|
|
19041
19046
|
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19047
|
+
_this.hideModal = function () {
|
|
19048
|
+
_this.setState({
|
|
19049
|
+
showModal: false,
|
|
19050
|
+
modalOption: null
|
|
19051
|
+
});
|
|
19052
|
+
};
|
|
19045
19053
|
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19054
|
+
_this.submitModal = function () {
|
|
19055
|
+
_this.changeScenario(_this.state.modalOption);
|
|
19056
|
+
_this.setState({
|
|
19057
|
+
showModal: false,
|
|
19058
|
+
modalOption: null
|
|
19059
|
+
});
|
|
19060
|
+
};
|
|
19051
19061
|
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19062
|
+
_this.select = function (o) {
|
|
19063
|
+
var wizard = _this.props.wizard;
|
|
19064
|
+
|
|
19065
|
+
if (wizard.savedConfiguration && wizard.savedConfiguration.scenario) {
|
|
19066
|
+
_this.openModal(o);
|
|
19067
|
+
} else {
|
|
19068
|
+
_this.changeScenario(o);
|
|
19069
|
+
}
|
|
19070
|
+
};
|
|
19071
|
+
|
|
19072
|
+
_this.state = {
|
|
19073
|
+
showModal: false,
|
|
19074
|
+
modalOption: null
|
|
19075
|
+
};
|
|
19076
|
+
return _this;
|
|
19055
19077
|
}
|
|
19056
19078
|
|
|
19057
19079
|
_createClass(DefaultDatasetStep, [{
|
|
@@ -19077,22 +19099,35 @@ module.exports =
|
|
|
19077
19099
|
});
|
|
19078
19100
|
return obj;
|
|
19079
19101
|
}
|
|
19102
|
+
}, {
|
|
19103
|
+
key: 'changeScenario',
|
|
19104
|
+
value: function changeScenario(o) {
|
|
19105
|
+
var _props2 = this.props,
|
|
19106
|
+
step = _props2.step,
|
|
19107
|
+
actions = _props2.actions,
|
|
19108
|
+
change = _props2.change;
|
|
19109
|
+
|
|
19110
|
+
change('resourceGroups', null); //clear old data
|
|
19111
|
+
change('scenario', o.name);
|
|
19112
|
+
actions.callGetScenario(step.magicNumber, o.bundleGuid, o.mappingGuid);
|
|
19113
|
+
}
|
|
19080
19114
|
}, {
|
|
19081
19115
|
key: 'render',
|
|
19082
19116
|
value: function render() {
|
|
19083
19117
|
var _this2 = this;
|
|
19084
19118
|
|
|
19085
|
-
var
|
|
19086
|
-
inputs =
|
|
19087
|
-
handleSubmit =
|
|
19088
|
-
nav =
|
|
19089
|
-
step =
|
|
19090
|
-
reset =
|
|
19091
|
-
wizard =
|
|
19092
|
-
formValues =
|
|
19119
|
+
var _props3 = this.props,
|
|
19120
|
+
inputs = _props3.inputs,
|
|
19121
|
+
handleSubmit = _props3.handleSubmit,
|
|
19122
|
+
nav = _props3.nav,
|
|
19123
|
+
step = _props3.step,
|
|
19124
|
+
reset = _props3.reset,
|
|
19125
|
+
wizard = _props3.wizard,
|
|
19126
|
+
formValues = _props3.formValues;
|
|
19093
19127
|
|
|
19094
19128
|
var Radio = inputs.Radio;
|
|
19095
19129
|
var scenario = formValues['scenario'];
|
|
19130
|
+
var Modal = inputs.Modal;
|
|
19096
19131
|
|
|
19097
19132
|
return _react2.default.createElement(
|
|
19098
19133
|
'form',
|
|
@@ -19119,7 +19154,7 @@ module.exports =
|
|
|
19119
19154
|
'div',
|
|
19120
19155
|
{ key: i },
|
|
19121
19156
|
_react2.default.createElement(Radio, { label: o.title, checked: o.name === scenario, style: { cursor: 'pointer' },
|
|
19122
|
-
|
|
19157
|
+
onChange: function onChange() {
|
|
19123
19158
|
return _this2.select(o);
|
|
19124
19159
|
} }),
|
|
19125
19160
|
_react2.default.createElement('br', null),
|
|
@@ -19134,10 +19169,20 @@ module.exports =
|
|
|
19134
19169
|
})
|
|
19135
19170
|
),
|
|
19136
19171
|
_react2.default.createElement('br', null),
|
|
19137
|
-
_react2.default.createElement(_navButtons2.default, { nextDisabled: !scenario && !wizard.gotScenario, handleSubmit: handleSubmit,
|
|
19172
|
+
_react2.default.createElement(_navButtons2.default, { nextDisabled: !(wizard.savedConfiguration && wizard.savedConfiguration.scenario) && !wizard.gotScenario, handleSubmit: handleSubmit,
|
|
19138
19173
|
nav: nav, reset: reset, inputs: inputs }),
|
|
19139
19174
|
_react2.default.createElement('br', null),
|
|
19140
|
-
_react2.default.createElement('br', null)
|
|
19175
|
+
_react2.default.createElement('br', null),
|
|
19176
|
+
_react2.default.createElement(
|
|
19177
|
+
Modal,
|
|
19178
|
+
{ opened: this.state.showModal, hideModal: this.hideModal, title: 'Are you sure?', showCancel: true,
|
|
19179
|
+
submitModal: this.submitModal, submitLabel: 'Change Scenario' },
|
|
19180
|
+
_react2.default.createElement(
|
|
19181
|
+
'div',
|
|
19182
|
+
{ style: { textAlign: 'center' } },
|
|
19183
|
+
'Choosing a different Scenario will erase your saved Object and Field Mappings.'
|
|
19184
|
+
)
|
|
19185
|
+
)
|
|
19141
19186
|
);
|
|
19142
19187
|
}
|
|
19143
19188
|
}]);
|
|
@@ -19497,9 +19542,10 @@ module.exports =
|
|
|
19497
19542
|
_react2.default.createElement(
|
|
19498
19543
|
'div',
|
|
19499
19544
|
{ className: 'connect-modal' },
|
|
19500
|
-
resourceGroups && resourceGroups.length > 0 && this.state.showModal && _react2.default.createElement(_connectModal2.default, { inputs: inputs, hideModal: this.hideModal,
|
|
19501
|
-
opened: this.state.showModal, change: change,
|
|
19502
|
-
|
|
19545
|
+
resourceGroups && resourceGroups.length > 0 && this.state.showModal && _react2.default.createElement(_connectModal2.default, { inputs: inputs, hideModal: this.hideModal,
|
|
19546
|
+
bundle: this.state.selectedBundle, opened: this.state.showModal, change: change,
|
|
19547
|
+
resourceGroups: resourceGroups, step: step, bundleIndex: this.state.selectedBundleIndex,
|
|
19548
|
+
sourceSchema: sourceSchema, destinationSchema: destinationSchema,
|
|
19503
19549
|
update: function update() {
|
|
19504
19550
|
return _this2.forceUpdate();
|
|
19505
19551
|
}
|
|
@@ -19796,7 +19842,7 @@ module.exports =
|
|
|
19796
19842
|
|
|
19797
19843
|
return _react2.default.createElement(
|
|
19798
19844
|
Modal,
|
|
19799
|
-
{ opened: opened, hideModal: closeModal, title: 'Connect Source to Target' },
|
|
19845
|
+
{ opened: opened, hideModal: closeModal, submitModal: closeModal, title: 'Connect Source to Target' },
|
|
19800
19846
|
_react2.default.createElement(
|
|
19801
19847
|
'div',
|
|
19802
19848
|
null,
|
|
@@ -20987,7 +21033,7 @@ module.exports =
|
|
|
20987
21033
|
|
|
20988
21034
|
return _react2.default.createElement(
|
|
20989
21035
|
Modal,
|
|
20990
|
-
{ opened: opened, hideModal: hideModal, title: 'Transform Data' },
|
|
21036
|
+
{ opened: opened, hideModal: hideModal, submitModal: hideModal, title: 'Transform Data' },
|
|
20991
21037
|
_react2.default.createElement(
|
|
20992
21038
|
'div',
|
|
20993
21039
|
null,
|
|
@@ -21173,11 +21219,9 @@ module.exports =
|
|
|
21173
21219
|
tenantId = _props.tenantId,
|
|
21174
21220
|
accountId = _props.accountId,
|
|
21175
21221
|
metadataEndpoints = _props.metadataEndpoints,
|
|
21176
|
-
providers = _props.providers
|
|
21177
|
-
defaultBundlePackGuid = _props.defaultBundlePackGuid,
|
|
21178
|
-
defaultMappingGuid = _props.defaultMappingGuid;
|
|
21222
|
+
providers = _props.providers;
|
|
21179
21223
|
|
|
21180
|
-
actions.callInit(tenantId, accountId, piGuid, providers, metadataEndpoints
|
|
21224
|
+
actions.callInit(tenantId, accountId, piGuid, providers, metadataEndpoints);
|
|
21181
21225
|
}
|
|
21182
21226
|
}]);
|
|
21183
21227
|
|