@lingk/sync 0.0.75 → 0.0.77
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/css/lightning.css +3 -0
- package/build/css/lingk.css +27 -0
- package/build/css/main.css +4 -1
- package/build/lightning.js +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +134 -94
- package/build/lingk.js.map +1 -1
- package/build/main.js +43 -37
- package/build/main.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -17006,8 +17006,7 @@ module.exports =
|
|
|
17006
17006
|
if (!externalIdProp) {
|
|
17007
17007
|
externalIdlessObjects.push({
|
|
17008
17008
|
objectType: b.name,
|
|
17009
|
-
fieldName: 'lingk__Lingk_External_Id__c'
|
|
17010
|
-
fieldLabel: 'Lingk External Id'
|
|
17009
|
+
fieldName: 'lingk__Lingk_External_Id__c'
|
|
17011
17010
|
});
|
|
17012
17011
|
}
|
|
17013
17012
|
}
|
|
@@ -17037,7 +17036,7 @@ module.exports =
|
|
|
17037
17036
|
});
|
|
17038
17037
|
}
|
|
17039
17038
|
|
|
17040
|
-
function callAddCustomField(objectType, fieldName,
|
|
17039
|
+
function callAddCustomField(objectType, fieldName, completedCallback) {
|
|
17041
17040
|
return function (dispatch, getState, api) {
|
|
17042
17041
|
var _getState2 = getState(),
|
|
17043
17042
|
config = _getState2.config;
|
|
@@ -18076,11 +18075,12 @@ module.exports =
|
|
|
18076
18075
|
_react2.default.createElement('br', null),
|
|
18077
18076
|
_react2.default.createElement(
|
|
18078
18077
|
'div',
|
|
18079
|
-
{ style: { width:
|
|
18078
|
+
{ style: { width: 110, display: 'inline-block', verticalAlign: 'top' } },
|
|
18080
18079
|
_react2.default.createElement(inputs.Input, { type: 'number', value: formValues.deployment.frequency,
|
|
18081
18080
|
onChange: function onChange(e) {
|
|
18082
18081
|
return change('deployment.frequency', e.target.value);
|
|
18083
|
-
}, label: 'Frequency'
|
|
18082
|
+
}, label: 'Frequency',
|
|
18083
|
+
style: { width: '100%' }
|
|
18084
18084
|
})
|
|
18085
18085
|
),
|
|
18086
18086
|
_react2.default.createElement(
|
|
@@ -19734,7 +19734,7 @@ module.exports =
|
|
|
19734
19734
|
|
|
19735
19735
|
return _react2.default.createElement(
|
|
19736
19736
|
'pre',
|
|
19737
|
-
{ style: { whiteSpace: 'pre-wrap', maxWidth: 400, fontFamily: '"Salesforce Sans", Arial, sans-serif',
|
|
19737
|
+
{ style: { whiteSpace: 'pre-wrap', maxWidth: 400, fontFamily: '"Salesforce Sans", Arial, sans-serif', padding: '0 15px', border: 'none', background: 'transparent',
|
|
19738
19738
|
paddingLeft: '1em', textIndent: '-1em', margin: 0 } },
|
|
19739
19739
|
group.resources && group.resources.map(function (rsc, i) {
|
|
19740
19740
|
return _react2.default.createElement(
|
|
@@ -19874,7 +19874,6 @@ module.exports =
|
|
|
19874
19874
|
var rsc = group.resources.find(function (r) {
|
|
19875
19875
|
return r.name === group.sourceKeysObjects[i];
|
|
19876
19876
|
});
|
|
19877
|
-
if (rsc.provider === step.destinationProvider) {}
|
|
19878
19877
|
var map = Object.assign({
|
|
19879
19878
|
isExternalKeyMapping: true,
|
|
19880
19879
|
resourceFromName: group.sourceKeysObjects[i],
|
|
@@ -20276,7 +20275,7 @@ module.exports =
|
|
|
20276
20275
|
var object = destinationSchema.find(function (o) {
|
|
20277
20276
|
return o.name === customizingGroup;
|
|
20278
20277
|
});
|
|
20279
|
-
actions.callAddCustomField(object.type, fieldName,
|
|
20278
|
+
actions.callAddCustomField(object.type, fieldName, this.completedCallback);
|
|
20280
20279
|
this.goLoading();
|
|
20281
20280
|
}
|
|
20282
20281
|
}, {
|
|
@@ -20413,7 +20412,7 @@ module.exports =
|
|
|
20413
20412
|
{ style: { position: 'relative', width: 640, height: 288, border: '1px solid rgb(204, 205, 207)', overflow: 'hidden' } },
|
|
20414
20413
|
_react2.default.createElement(
|
|
20415
20414
|
'div',
|
|
20416
|
-
{ style: { height: 288, width: 350, overflowX: 'hidden' } },
|
|
20415
|
+
{ style: { height: 288, width: 350, overflowX: 'hidden', background: 'white' } },
|
|
20417
20416
|
_react2.default.createElement(
|
|
20418
20417
|
'div',
|
|
20419
20418
|
{ style: { marginLeft: 12, marginTop: 3 }, className: 'labelz' },
|
|
@@ -21003,7 +21002,7 @@ module.exports =
|
|
|
21003
21002
|
_react2.default.createElement(
|
|
21004
21003
|
Tooltip,
|
|
21005
21004
|
{ nubbin: 'left-top', popStyle: { width: 250 },
|
|
21006
|
-
wrapStyle: { position: 'absolute', left:
|
|
21005
|
+
wrapStyle: { position: 'absolute', left: 96, top: 6, zIndex: 6001 } },
|
|
21007
21006
|
_react2.default.createElement(
|
|
21008
21007
|
'p',
|
|
21009
21008
|
null,
|
|
@@ -21120,7 +21119,7 @@ module.exports =
|
|
|
21120
21119
|
_react2.default.createElement(
|
|
21121
21120
|
Tooltip,
|
|
21122
21121
|
{ nubbin: 'left-top', popStyle: { width: 250 },
|
|
21123
|
-
wrapStyle: { position: 'absolute', left:
|
|
21122
|
+
wrapStyle: { position: 'absolute', left: 50, top: 2, zIndex: 6002 } },
|
|
21124
21123
|
_react2.default.createElement(
|
|
21125
21124
|
'p',
|
|
21126
21125
|
null,
|
|
@@ -21176,7 +21175,7 @@ module.exports =
|
|
|
21176
21175
|
_react2.default.createElement(
|
|
21177
21176
|
Tooltip,
|
|
21178
21177
|
{ nubbin: 'right-top', popStyle: { width: 300, right: 350 },
|
|
21179
|
-
wrapStyle: { position: 'absolute', left:
|
|
21178
|
+
wrapStyle: { position: 'absolute', left: 60, top: 2, zIndex: 6003 } },
|
|
21180
21179
|
_react2.default.createElement(
|
|
21181
21180
|
'p',
|
|
21182
21181
|
null,
|
|
@@ -21454,7 +21453,7 @@ module.exports =
|
|
|
21454
21453
|
),
|
|
21455
21454
|
_react2.default.createElement(Input, { style: { width: 132 }, label: 'Character Count', onChange: function onChange(e, v) {
|
|
21456
21455
|
return _this3.changeTrimCount(e, v, mappingIndex);
|
|
21457
|
-
},
|
|
21456
|
+
}, dataType: 'number',
|
|
21458
21457
|
defaultValue: transformArgs[1] || '' })
|
|
21459
21458
|
),
|
|
21460
21459
|
transformSelected === 'date' && _react2.default.createElement(
|
|
@@ -21496,7 +21495,8 @@ module.exports =
|
|
|
21496
21495
|
return _react2.default.createElement(
|
|
21497
21496
|
'div',
|
|
21498
21497
|
{ key: i, style: { marginBottom: 6 } },
|
|
21499
|
-
_react2.default.createElement(Input, { style: { width: 132
|
|
21498
|
+
_react2.default.createElement(Input, { style: { width: 132, display: 'inline-block' },
|
|
21499
|
+
onPaste: function onPaste(e) {
|
|
21500
21500
|
return _this3.pasteIntoLookupTable(e, i, mappingIndex);
|
|
21501
21501
|
},
|
|
21502
21502
|
onChange: function onChange(e, v) {
|
|
@@ -21508,7 +21508,7 @@ module.exports =
|
|
|
21508
21508
|
null,
|
|
21509
21509
|
'\xA0\xA0\u2192\xA0\xA0'
|
|
21510
21510
|
),
|
|
21511
|
-
_react2.default.createElement(Input, { style: { width: 132 },
|
|
21511
|
+
_react2.default.createElement(Input, { style: { width: 132, display: 'inline-block' },
|
|
21512
21512
|
onChange: function onChange(e, v) {
|
|
21513
21513
|
return _this3.changeLookupTableDestination(v, i, mappingIndex);
|
|
21514
21514
|
},
|
|
@@ -21672,33 +21672,37 @@ module.exports =
|
|
|
21672
21672
|
var mappings = [];
|
|
21673
21673
|
bundles.forEach(function (group, index) {
|
|
21674
21674
|
|
|
21675
|
+
// first get target resource
|
|
21676
|
+
var destinationResource = _this2.props.wizard.destinationMetadata ? _this2.props.wizard.destinationMetadata.find(function (rsc) {
|
|
21677
|
+
return rsc.name === group.name;
|
|
21678
|
+
}) : group;
|
|
21679
|
+
|
|
21680
|
+
// destination Keys (for de-duplication in the Connect modal)
|
|
21675
21681
|
if (!group.customExternalKeys) {
|
|
21676
21682
|
group.sourceKeys = [group.lingkSourceKey];
|
|
21677
21683
|
group.sourceKeysObjects = [group.lingkSourceKeyObject];
|
|
21678
21684
|
group.destinationKeys = ['lingk__Lingk_External_Id__c'];
|
|
21679
|
-
}
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
21694
|
-
return prop.label === dk;
|
|
21695
|
-
}).name);
|
|
21685
|
+
} else {
|
|
21686
|
+
(function () {
|
|
21687
|
+
// name of destinationKeys
|
|
21688
|
+
group.name = destinationResource.type;
|
|
21689
|
+
var destinationKeys = [];
|
|
21690
|
+
if (group.destinationKeys) {
|
|
21691
|
+
group.destinationKeys.forEach(function (dk) {
|
|
21692
|
+
if (destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
|
|
21693
|
+
return prop.label === dk;
|
|
21694
|
+
})) {
|
|
21695
|
+
destinationKeys.push(destinationResource.properties.find(function (prop) {
|
|
21696
|
+
return prop.label === dk;
|
|
21697
|
+
}).name);
|
|
21698
|
+
}
|
|
21699
|
+
});
|
|
21696
21700
|
}
|
|
21697
|
-
|
|
21701
|
+
group.destinationKeys = destinationKeys;
|
|
21702
|
+
})();
|
|
21698
21703
|
}
|
|
21699
|
-
group.destinationKeys = destinationKeys;
|
|
21700
21704
|
|
|
21701
|
-
// get resource + name
|
|
21705
|
+
// get resource + name of sourceKeys
|
|
21702
21706
|
var sourceKeys = [];
|
|
21703
21707
|
var sourceKeysObjects = [];
|
|
21704
21708
|
group.sourceKeys && group.sourceKeys.forEach(function (sk, i) {
|
|
@@ -21724,6 +21728,7 @@ module.exports =
|
|
|
21724
21728
|
group.sourceKeys = sourceKeys;
|
|
21725
21729
|
group.sourceKeysObjects = sourceKeysObjects;
|
|
21726
21730
|
|
|
21731
|
+
// MAPPINGS
|
|
21727
21732
|
if (group.mappings) {
|
|
21728
21733
|
group.mappings.forEach(function (singleMapping) {
|
|
21729
21734
|
|
|
@@ -21769,6 +21774,7 @@ module.exports =
|
|
|
21769
21774
|
if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject;
|
|
21770
21775
|
}
|
|
21771
21776
|
|
|
21777
|
+
// BUNDLES
|
|
21772
21778
|
if (group.resources) {
|
|
21773
21779
|
group.resources = group.resources.map(function (rsc) {
|
|
21774
21780
|
|
|
@@ -21895,7 +21901,7 @@ module.exports =
|
|
|
21895
21901
|
)
|
|
21896
21902
|
);
|
|
21897
21903
|
} else {
|
|
21898
|
-
var
|
|
21904
|
+
var _ret2 = function () {
|
|
21899
21905
|
var page = currentPage || 1; //(wizard.savedConfiguration && parseInt(wizard.savedConfiguration.currentPage, 10)) || 1
|
|
21900
21906
|
return {
|
|
21901
21907
|
v: _react2.default.createElement(
|
|
@@ -21941,7 +21947,7 @@ module.exports =
|
|
|
21941
21947
|
};
|
|
21942
21948
|
}();
|
|
21943
21949
|
|
|
21944
|
-
if ((typeof
|
|
21950
|
+
if ((typeof _ret2 === 'undefined' ? 'undefined' : _typeof(_ret2)) === "object") return _ret2.v;
|
|
21945
21951
|
}
|
|
21946
21952
|
}
|
|
21947
21953
|
}]);
|