@lingk/sync 0.0.84 → 0.0.86
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/main.css +2 -3
- package/build/lightning.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/main.js +22 -34
- package/build/main.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -4529,11 +4529,7 @@ module.exports =
|
|
|
4529
4529
|
|
|
4530
4530
|
// get bundle resource
|
|
4531
4531
|
var bundleResource = wizard.destinationMetadata.find(function (rsc) {
|
|
4532
|
-
|
|
4533
|
-
return rsc.type === bundle.name && rsc.recordTypeId === bundle.recordTypeId;
|
|
4534
|
-
} else {
|
|
4535
|
-
return rsc.type === bundle.name;
|
|
4536
|
-
}
|
|
4532
|
+
return rsc.name === bundle.resourceLabel;
|
|
4537
4533
|
});
|
|
4538
4534
|
if (bundleResource) {
|
|
4539
4535
|
(function () {
|
|
@@ -4582,11 +4578,7 @@ module.exports =
|
|
|
4582
4578
|
var resourceProvider = rsc.provider.charAt(0).toUpperCase() + rsc.provider.slice(1).replace('Reader', '');
|
|
4583
4579
|
var dataSourceMetadata = resourceProvider === step.destinationProvider ? wizard.destinationMetadata : wizard.sourceMetadata;
|
|
4584
4580
|
var rscResource = dataSourceMetadata.find(function (r) {
|
|
4585
|
-
|
|
4586
|
-
return r.type === rsc.resourceName && r.recordTypeId === rsc.recordTypeId;
|
|
4587
|
-
} else {
|
|
4588
|
-
return r.type === rsc.resourceName;
|
|
4589
|
-
}
|
|
4581
|
+
return r.name === rsc.resourceLabel;
|
|
4590
4582
|
});
|
|
4591
4583
|
var rscJoinKey = null;
|
|
4592
4584
|
if (rscResource) {
|
|
@@ -4624,16 +4616,12 @@ module.exports =
|
|
|
4624
4616
|
}).forEach(function (m) {
|
|
4625
4617
|
var dataSourceMetadata = m.isDestinationResource ? wizard.destinationMetadata : wizard.sourceMetadata;
|
|
4626
4618
|
|
|
4627
|
-
var
|
|
4619
|
+
var resourceFromBundle = bundle.resources.find(function (br) {
|
|
4628
4620
|
return br.resourceName === m.resourceFromName;
|
|
4629
|
-
})
|
|
4621
|
+
});
|
|
4630
4622
|
|
|
4631
4623
|
var sourceResource = dataSourceMetadata.find(function (rsc) {
|
|
4632
|
-
|
|
4633
|
-
return rsc.type === m.resourceFromName && rsc.recordTypeId === resourceRecordTypeIdFromBundle;
|
|
4634
|
-
} else {
|
|
4635
|
-
return rsc.type === m.resourceFromName;
|
|
4636
|
-
}
|
|
4624
|
+
return rsc.name === resourceFromBundle.resourceLabel;
|
|
4637
4625
|
});
|
|
4638
4626
|
|
|
4639
4627
|
var sourceProperty = null;
|
|
@@ -4643,24 +4631,15 @@ module.exports =
|
|
|
4643
4631
|
});
|
|
4644
4632
|
}
|
|
4645
4633
|
|
|
4646
|
-
var
|
|
4647
|
-
|
|
4648
|
-
return rsc.type === m.resourceToName && rsc.recordTypeId === bundle.recordTypeId;
|
|
4649
|
-
} else {
|
|
4650
|
-
return rsc.type === m.resourceToName;
|
|
4651
|
-
}
|
|
4634
|
+
var destinationProperty = bundleResource.properties.find(function (prop) {
|
|
4635
|
+
return prop.name === m.propertyToName;
|
|
4652
4636
|
});
|
|
4653
|
-
|
|
4654
|
-
if (
|
|
4655
|
-
destinationProperty = destinationResource.properties.find(function (prop) {
|
|
4656
|
-
return prop.name === m.propertyToName;
|
|
4657
|
-
});
|
|
4658
|
-
}
|
|
4659
|
-
if (sourceResource && sourceProperty && destinationResource && destinationProperty) {
|
|
4637
|
+
|
|
4638
|
+
if (sourceResource && sourceProperty && destinationProperty) {
|
|
4660
4639
|
mappings.push(Object.assign({
|
|
4661
4640
|
resourceFromName: sourceResource.name,
|
|
4662
4641
|
propertyFromName: sourceProperty.label,
|
|
4663
|
-
resourceToName:
|
|
4642
|
+
resourceToName: bundleResource.name,
|
|
4664
4643
|
propertyToName: destinationProperty.label,
|
|
4665
4644
|
transformations: m.transformations && m.transformations.length > 0 ? m.transformations : [{ type: 'none' }]
|
|
4666
4645
|
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }));
|
|
@@ -21569,7 +21548,6 @@ module.exports =
|
|
|
21569
21548
|
}
|
|
21570
21549
|
|
|
21571
21550
|
var groupsBeforeThis = resourceGroups.slice(0, i);
|
|
21572
|
-
|
|
21573
21551
|
var groupBeforeThisIndex = 0;
|
|
21574
21552
|
groupsBeforeThis.forEach(function (g, idx) {
|
|
21575
21553
|
if (group.resources.find(function (r) {
|
|
@@ -21580,18 +21558,26 @@ module.exports =
|
|
|
21580
21558
|
});
|
|
21581
21559
|
|
|
21582
21560
|
var groupsAfterThis = resourceGroups.slice(i + 1);
|
|
21583
|
-
|
|
21584
21561
|
var groupsAfterThisContainThisResource = groupsAfterThis.find(function (g) {
|
|
21585
21562
|
return g.resources.find(function (r) {
|
|
21586
21563
|
return r.name === group.name;
|
|
21587
21564
|
}) ? true : false;
|
|
21588
21565
|
});
|
|
21589
21566
|
|
|
21567
|
+
var groupAfterThisIndex = 0;
|
|
21568
|
+
groupsAfterThis.forEach(function (g, idx) {
|
|
21569
|
+
if (g.resources.find(function (r) {
|
|
21570
|
+
return r.name === group.name;
|
|
21571
|
+
})) {
|
|
21572
|
+
groupAfterThisIndex = idx;
|
|
21573
|
+
}
|
|
21574
|
+
});
|
|
21575
|
+
|
|
21590
21576
|
return _react2.default.createElement(
|
|
21591
21577
|
_reactDraggable2.default,
|
|
21592
21578
|
{ axis: 'y', key: i, handle: '.dragon',
|
|
21593
21579
|
bounds: { top: groupsBeforeThis.length * -49 + groupBeforeThisIndex * 49,
|
|
21594
|
-
bottom:
|
|
21580
|
+
bottom: groupAfterThisIndex * 49 },
|
|
21595
21581
|
position: { x: 0, y: _this3.state.yPositions[i] },
|
|
21596
21582
|
onStart: function onStart(e, v) {
|
|
21597
21583
|
return _this3.handleDragStart(e, v, i);
|
|
@@ -23544,6 +23530,7 @@ module.exports =
|
|
|
23544
23530
|
return rsc.name === group.name;
|
|
23545
23531
|
}) : group;
|
|
23546
23532
|
group.name = destinationResource.type;
|
|
23533
|
+
group.resourceLabel = destinationResource.name;
|
|
23547
23534
|
group.provider = _this2.props.providers['destination'].toLowerCase();
|
|
23548
23535
|
if (destinationResource.recordTypeId) {
|
|
23549
23536
|
group.recordTypeId = destinationResource.recordTypeId;
|
|
@@ -23665,6 +23652,7 @@ module.exports =
|
|
|
23665
23652
|
if (sourceResource) {
|
|
23666
23653
|
return Object.assign({
|
|
23667
23654
|
resourceName: sourceResource.type,
|
|
23655
|
+
resourceLabel: sourceResource.name,
|
|
23668
23656
|
joinKeyName: rsc.joinKeyName && sourceResource && sourceResource.properties && sourceResource.properties.find(function (prop) {
|
|
23669
23657
|
return prop.label === rsc.joinKeyName;
|
|
23670
23658
|
}) && sourceResource.properties.find(function (prop) {
|