@lingk/sync 1.0.49 → 1.0.51
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.map +1 -1
- package/build/lightning.js +34 -34
- 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 +37 -49
- package/build/loadData.js.map +1 -1
- package/build/main.js +279 -275
- package/build/main.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js +34 -24
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -399,7 +399,7 @@ module.exports =
|
|
|
399
399
|
/***/ function(module, exports, __webpack_require__) {
|
|
400
400
|
|
|
401
401
|
var dP = __webpack_require__(18)
|
|
402
|
-
, createDesc = __webpack_require__(
|
|
402
|
+
, createDesc = __webpack_require__(34);
|
|
403
403
|
module.exports = __webpack_require__(10) ? function(object, key, value){
|
|
404
404
|
return dP.f(object, key, createDesc(1, value));
|
|
405
405
|
} : function(object, key, value){
|
|
@@ -481,7 +481,7 @@ module.exports =
|
|
|
481
481
|
/***/ function(module, exports, __webpack_require__) {
|
|
482
482
|
|
|
483
483
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
484
|
-
var IObject = __webpack_require__(
|
|
484
|
+
var IObject = __webpack_require__(31)
|
|
485
485
|
, defined = __webpack_require__(16);
|
|
486
486
|
module.exports = function(it){
|
|
487
487
|
return IObject(defined(it));
|
|
@@ -754,8 +754,8 @@ module.exports =
|
|
|
754
754
|
/* 25 */
|
|
755
755
|
/***/ function(module, exports, __webpack_require__) {
|
|
756
756
|
|
|
757
|
-
var shared = __webpack_require__(
|
|
758
|
-
, uid = __webpack_require__(
|
|
757
|
+
var shared = __webpack_require__(35)('keys')
|
|
758
|
+
, uid = __webpack_require__(37);
|
|
759
759
|
module.exports = function(key){
|
|
760
760
|
return shared[key] || (shared[key] = uid(key));
|
|
761
761
|
};
|
|
@@ -1325,105 +1325,6 @@ module.exports =
|
|
|
1325
1325
|
|
|
1326
1326
|
/***/ },
|
|
1327
1327
|
/* 27 */
|
|
1328
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
1329
|
-
|
|
1330
|
-
'use strict';
|
|
1331
|
-
|
|
1332
|
-
exports.__esModule = true;
|
|
1333
|
-
|
|
1334
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1335
|
-
|
|
1336
|
-
var _react = __webpack_require__(1);
|
|
1337
|
-
|
|
1338
|
-
var _react2 = _interopRequireDefault(_react);
|
|
1339
|
-
|
|
1340
|
-
var _propTypes = __webpack_require__(40);
|
|
1341
|
-
|
|
1342
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
1343
|
-
|
|
1344
|
-
var _TransitionGroup = __webpack_require__(218);
|
|
1345
|
-
|
|
1346
|
-
var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup);
|
|
1347
|
-
|
|
1348
|
-
var _CSSTransitionGroupChild = __webpack_require__(217);
|
|
1349
|
-
|
|
1350
|
-
var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);
|
|
1351
|
-
|
|
1352
|
-
var _PropTypes = __webpack_require__(78);
|
|
1353
|
-
|
|
1354
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1355
|
-
|
|
1356
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1357
|
-
|
|
1358
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1359
|
-
|
|
1360
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1361
|
-
|
|
1362
|
-
var propTypes = {
|
|
1363
|
-
transitionName: _PropTypes.nameShape.isRequired,
|
|
1364
|
-
|
|
1365
|
-
transitionAppear: _propTypes2.default.bool,
|
|
1366
|
-
transitionEnter: _propTypes2.default.bool,
|
|
1367
|
-
transitionLeave: _propTypes2.default.bool,
|
|
1368
|
-
transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'),
|
|
1369
|
-
transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'),
|
|
1370
|
-
transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave')
|
|
1371
|
-
};
|
|
1372
|
-
|
|
1373
|
-
var defaultProps = {
|
|
1374
|
-
transitionAppear: false,
|
|
1375
|
-
transitionEnter: true,
|
|
1376
|
-
transitionLeave: true
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
var CSSTransitionGroup = function (_React$Component) {
|
|
1380
|
-
_inherits(CSSTransitionGroup, _React$Component);
|
|
1381
|
-
|
|
1382
|
-
function CSSTransitionGroup() {
|
|
1383
|
-
var _temp, _this, _ret;
|
|
1384
|
-
|
|
1385
|
-
_classCallCheck(this, CSSTransitionGroup);
|
|
1386
|
-
|
|
1387
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1388
|
-
args[_key] = arguments[_key];
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) {
|
|
1392
|
-
return _react2.default.createElement(_CSSTransitionGroupChild2.default, {
|
|
1393
|
-
name: _this.props.transitionName,
|
|
1394
|
-
appear: _this.props.transitionAppear,
|
|
1395
|
-
enter: _this.props.transitionEnter,
|
|
1396
|
-
leave: _this.props.transitionLeave,
|
|
1397
|
-
appearTimeout: _this.props.transitionAppearTimeout,
|
|
1398
|
-
enterTimeout: _this.props.transitionEnterTimeout,
|
|
1399
|
-
leaveTimeout: _this.props.transitionLeaveTimeout
|
|
1400
|
-
}, child);
|
|
1401
|
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
// We need to provide this childFactory so that
|
|
1405
|
-
// ReactCSSTransitionGroupChild can receive updates to name, enter, and
|
|
1406
|
-
// leave while it is leaving.
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
CSSTransitionGroup.prototype.render = function render() {
|
|
1410
|
-
return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild }));
|
|
1411
|
-
};
|
|
1412
|
-
|
|
1413
|
-
return CSSTransitionGroup;
|
|
1414
|
-
}(_react2.default.Component);
|
|
1415
|
-
|
|
1416
|
-
CSSTransitionGroup.displayName = 'CSSTransitionGroup';
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
CSSTransitionGroup.propTypes = propTypes;
|
|
1420
|
-
CSSTransitionGroup.defaultProps = defaultProps;
|
|
1421
|
-
|
|
1422
|
-
exports.default = CSSTransitionGroup;
|
|
1423
|
-
module.exports = exports['default'];
|
|
1424
|
-
|
|
1425
|
-
/***/ },
|
|
1426
|
-
/* 28 */
|
|
1427
1328
|
/***/ function(module, exports) {
|
|
1428
1329
|
|
|
1429
1330
|
'use strict';
|
|
@@ -1483,18 +1384,22 @@ module.exports =
|
|
|
1483
1384
|
} else {
|
|
1484
1385
|
(function () {
|
|
1485
1386
|
var destinationKeys = [];
|
|
1387
|
+
var destinationKeysParents = [];
|
|
1486
1388
|
if (group.destinationKeys) {
|
|
1487
|
-
group.destinationKeys.forEach(function (dk) {
|
|
1488
|
-
if
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1389
|
+
group.destinationKeys.forEach(function (dk, i) {
|
|
1390
|
+
/*if(destinationResource && destinationResource.properties &&
|
|
1391
|
+
destinationResource.properties.find(prop => prop.label===dk)){
|
|
1392
|
+
destinationKeys.push(
|
|
1393
|
+
destinationResource.properties.find(prop => prop.label===dk).name
|
|
1394
|
+
)
|
|
1395
|
+
}*/
|
|
1396
|
+
var nestedDestinationKey = findNestedProp(dk, group.destinationKeysParents && group.destinationKeysParents[i], destinationResource);
|
|
1397
|
+
destinationKeys.push(nestedDestinationKey.property);
|
|
1398
|
+
destinationKeysParents.push(JSON.stringify(nestedDestinationKey.parentsArray));
|
|
1495
1399
|
});
|
|
1496
1400
|
}
|
|
1497
1401
|
group.destinationKeys = destinationKeys;
|
|
1402
|
+
group.destinationKeysParents = destinationKeysParents;
|
|
1498
1403
|
})();
|
|
1499
1404
|
}
|
|
1500
1405
|
|
|
@@ -1512,7 +1417,6 @@ module.exports =
|
|
|
1512
1417
|
});
|
|
1513
1418
|
|
|
1514
1419
|
if (sourceResource) {
|
|
1515
|
-
|
|
1516
1420
|
var nestedSourceKey = findNestedProp(sk, group.sourceKeysParents && group.sourceKeysParents[i], sourceResource);
|
|
1517
1421
|
sourceKeys.push(nestedSourceKey.property);
|
|
1518
1422
|
sourceKeysParents.push(JSON.stringify(nestedSourceKey.parentsArray));
|
|
@@ -1534,13 +1438,11 @@ module.exports =
|
|
|
1534
1438
|
var sourceResource = dataSourceMetadata.find(function (rsc) {
|
|
1535
1439
|
return rsc.name === singleMapping.resourceFromName;
|
|
1536
1440
|
});
|
|
1537
|
-
|
|
1538
1441
|
// get mapping source property
|
|
1539
1442
|
var nestedSourceProp = findNestedProp(singleMapping.propertyFromName, singleMapping.propertyFromParents, sourceResource);
|
|
1443
|
+
|
|
1540
1444
|
//get mapping destination property
|
|
1541
|
-
var
|
|
1542
|
-
return prop.label === singleMapping.propertyToName;
|
|
1543
|
-
});
|
|
1445
|
+
var nestedDestinationProp = findNestedProp(singleMapping.propertyToName, singleMapping.propertyToParents, destinationResource);
|
|
1544
1446
|
|
|
1545
1447
|
//dont save transformation that are just "none"
|
|
1546
1448
|
if (singleMapping.transformations && singleMapping.transformations.length > 0) {
|
|
@@ -1578,7 +1480,7 @@ module.exports =
|
|
|
1578
1480
|
});
|
|
1579
1481
|
}
|
|
1580
1482
|
|
|
1581
|
-
if (sourceResource && nestedSourceProp.property && destinationResource &&
|
|
1483
|
+
if (sourceResource && nestedSourceProp.property && destinationResource && nestedDestinationProp.property) {
|
|
1582
1484
|
mappings = mappings.concat(Object.assign({ // add to mappings obj
|
|
1583
1485
|
resourceFromNameAndProvider: singleMapping.dataSourceIsDestinationEntity ? sourceResource.type + '_' + targetProvider.toLowerCase() : sourceResource.type + '_' + sourceProvider.toLowerCase(),
|
|
1584
1486
|
resourceFromName: sourceResource.type,
|
|
@@ -1588,8 +1490,9 @@ module.exports =
|
|
|
1588
1490
|
}, nestedSourceProp.parentsArray && nestedSourceProp.parentsArray.length > 0 && { propertyFromParents: nestedSourceProp.parentsArray }, {
|
|
1589
1491
|
resourceToName: destinationResource.type,
|
|
1590
1492
|
resourceToLabel: destinationResource.name,
|
|
1591
|
-
propertyToName:
|
|
1592
|
-
propertyToLabel:
|
|
1493
|
+
propertyToName: nestedDestinationProp.property,
|
|
1494
|
+
propertyToLabel: nestedDestinationProp.__property
|
|
1495
|
+
}, nestedDestinationProp.parentsArray && nestedDestinationProp.parentsArray.length > 0 && { propertyToParents: nestedDestinationProp.parentsArray }, {
|
|
1593
1496
|
bundleIndex: index
|
|
1594
1497
|
}, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.isUnique && { isUnique: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
|
|
1595
1498
|
return t.type === 'none';
|
|
@@ -1599,7 +1502,10 @@ module.exports =
|
|
|
1599
1502
|
delete group.mappings; // remove the mapping obj from a resourceGroup
|
|
1600
1503
|
if (group.lingkSourceKey) delete group.lingkSourceKey;
|
|
1601
1504
|
if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject;
|
|
1602
|
-
if (group.lingkSourceKeyParents)
|
|
1505
|
+
if (group.lingkSourceKeyParents) {
|
|
1506
|
+
delete group.lingkSourceKeyParents;
|
|
1507
|
+
delete group.destinationKeysParents;
|
|
1508
|
+
}
|
|
1603
1509
|
}
|
|
1604
1510
|
|
|
1605
1511
|
// BUNDLES
|
|
@@ -1712,11 +1618,16 @@ module.exports =
|
|
|
1712
1618
|
}
|
|
1713
1619
|
})();
|
|
1714
1620
|
} else {
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1621
|
+
if (prop === 'Lingk External Id') {
|
|
1622
|
+
property = prop;
|
|
1623
|
+
__property = 'Lingk_External_Id__c';
|
|
1624
|
+
} else {
|
|
1625
|
+
var theProp = prop && rsc && rsc.properties && rsc.properties.find(function (p) {
|
|
1626
|
+
return p.label === prop;
|
|
1627
|
+
});
|
|
1628
|
+
property = theProp.name;
|
|
1629
|
+
__property = theProp.label;
|
|
1630
|
+
}
|
|
1720
1631
|
}
|
|
1721
1632
|
return { property: property, parentsArray: parentsArray, __property: __property };
|
|
1722
1633
|
}
|
|
@@ -1724,7 +1635,7 @@ module.exports =
|
|
|
1724
1635
|
exports.default = saveData;
|
|
1725
1636
|
|
|
1726
1637
|
/***/ },
|
|
1727
|
-
/*
|
|
1638
|
+
/* 28 */
|
|
1728
1639
|
/***/ function(module, exports) {
|
|
1729
1640
|
|
|
1730
1641
|
var toString = {}.toString;
|
|
@@ -1734,7 +1645,7 @@ module.exports =
|
|
|
1734
1645
|
};
|
|
1735
1646
|
|
|
1736
1647
|
/***/ },
|
|
1737
|
-
/*
|
|
1648
|
+
/* 29 */
|
|
1738
1649
|
/***/ function(module, exports, __webpack_require__) {
|
|
1739
1650
|
|
|
1740
1651
|
var isObject = __webpack_require__(14)
|
|
@@ -1746,7 +1657,7 @@ module.exports =
|
|
|
1746
1657
|
};
|
|
1747
1658
|
|
|
1748
1659
|
/***/ },
|
|
1749
|
-
/*
|
|
1660
|
+
/* 30 */
|
|
1750
1661
|
/***/ function(module, exports) {
|
|
1751
1662
|
|
|
1752
1663
|
// IE 8- don't enum bug keys
|
|
@@ -1755,30 +1666,30 @@ module.exports =
|
|
|
1755
1666
|
).split(',');
|
|
1756
1667
|
|
|
1757
1668
|
/***/ },
|
|
1758
|
-
/*
|
|
1669
|
+
/* 31 */
|
|
1759
1670
|
/***/ function(module, exports, __webpack_require__) {
|
|
1760
1671
|
|
|
1761
1672
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1762
|
-
var cof = __webpack_require__(
|
|
1673
|
+
var cof = __webpack_require__(28);
|
|
1763
1674
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
|
|
1764
1675
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
1765
1676
|
};
|
|
1766
1677
|
|
|
1767
1678
|
/***/ },
|
|
1768
|
-
/*
|
|
1769
|
-
/*
|
|
1679
|
+
/* 32 */,
|
|
1680
|
+
/* 33 */
|
|
1770
1681
|
/***/ function(module, exports, __webpack_require__) {
|
|
1771
1682
|
|
|
1772
1683
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
1773
1684
|
var $keys = __webpack_require__(56)
|
|
1774
|
-
, enumBugKeys = __webpack_require__(
|
|
1685
|
+
, enumBugKeys = __webpack_require__(30);
|
|
1775
1686
|
|
|
1776
1687
|
module.exports = Object.keys || function keys(O){
|
|
1777
1688
|
return $keys(O, enumBugKeys);
|
|
1778
1689
|
};
|
|
1779
1690
|
|
|
1780
1691
|
/***/ },
|
|
1781
|
-
/*
|
|
1692
|
+
/* 34 */
|
|
1782
1693
|
/***/ function(module, exports) {
|
|
1783
1694
|
|
|
1784
1695
|
module.exports = function(bitmap, value){
|
|
@@ -1791,7 +1702,7 @@ module.exports =
|
|
|
1791
1702
|
};
|
|
1792
1703
|
|
|
1793
1704
|
/***/ },
|
|
1794
|
-
/*
|
|
1705
|
+
/* 35 */
|
|
1795
1706
|
/***/ function(module, exports, __webpack_require__) {
|
|
1796
1707
|
|
|
1797
1708
|
var global = __webpack_require__(7)
|
|
@@ -1802,7 +1713,7 @@ module.exports =
|
|
|
1802
1713
|
};
|
|
1803
1714
|
|
|
1804
1715
|
/***/ },
|
|
1805
|
-
/*
|
|
1716
|
+
/* 36 */
|
|
1806
1717
|
/***/ function(module, exports, __webpack_require__) {
|
|
1807
1718
|
|
|
1808
1719
|
// 7.1.13 ToObject(argument)
|
|
@@ -1812,7 +1723,7 @@ module.exports =
|
|
|
1812
1723
|
};
|
|
1813
1724
|
|
|
1814
1725
|
/***/ },
|
|
1815
|
-
/*
|
|
1726
|
+
/* 37 */
|
|
1816
1727
|
/***/ function(module, exports) {
|
|
1817
1728
|
|
|
1818
1729
|
var id = 0
|
|
@@ -1822,7 +1733,7 @@ module.exports =
|
|
|
1822
1733
|
};
|
|
1823
1734
|
|
|
1824
1735
|
/***/ },
|
|
1825
|
-
/*
|
|
1736
|
+
/* 38 */
|
|
1826
1737
|
/***/ function(module, exports, __webpack_require__) {
|
|
1827
1738
|
|
|
1828
1739
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -1876,7 +1787,7 @@ module.exports =
|
|
|
1876
1787
|
|
|
1877
1788
|
|
|
1878
1789
|
/***/ },
|
|
1879
|
-
/*
|
|
1790
|
+
/* 39 */
|
|
1880
1791
|
/***/ function(module, exports, __webpack_require__) {
|
|
1881
1792
|
|
|
1882
1793
|
/**
|
|
@@ -1911,6 +1822,105 @@ module.exports =
|
|
|
1911
1822
|
}
|
|
1912
1823
|
|
|
1913
1824
|
|
|
1825
|
+
/***/ },
|
|
1826
|
+
/* 40 */
|
|
1827
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
1828
|
+
|
|
1829
|
+
'use strict';
|
|
1830
|
+
|
|
1831
|
+
exports.__esModule = true;
|
|
1832
|
+
|
|
1833
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1834
|
+
|
|
1835
|
+
var _react = __webpack_require__(1);
|
|
1836
|
+
|
|
1837
|
+
var _react2 = _interopRequireDefault(_react);
|
|
1838
|
+
|
|
1839
|
+
var _propTypes = __webpack_require__(39);
|
|
1840
|
+
|
|
1841
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
1842
|
+
|
|
1843
|
+
var _TransitionGroup = __webpack_require__(218);
|
|
1844
|
+
|
|
1845
|
+
var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup);
|
|
1846
|
+
|
|
1847
|
+
var _CSSTransitionGroupChild = __webpack_require__(217);
|
|
1848
|
+
|
|
1849
|
+
var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);
|
|
1850
|
+
|
|
1851
|
+
var _PropTypes = __webpack_require__(78);
|
|
1852
|
+
|
|
1853
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1854
|
+
|
|
1855
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1856
|
+
|
|
1857
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1858
|
+
|
|
1859
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1860
|
+
|
|
1861
|
+
var propTypes = {
|
|
1862
|
+
transitionName: _PropTypes.nameShape.isRequired,
|
|
1863
|
+
|
|
1864
|
+
transitionAppear: _propTypes2.default.bool,
|
|
1865
|
+
transitionEnter: _propTypes2.default.bool,
|
|
1866
|
+
transitionLeave: _propTypes2.default.bool,
|
|
1867
|
+
transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'),
|
|
1868
|
+
transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'),
|
|
1869
|
+
transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave')
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
var defaultProps = {
|
|
1873
|
+
transitionAppear: false,
|
|
1874
|
+
transitionEnter: true,
|
|
1875
|
+
transitionLeave: true
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
var CSSTransitionGroup = function (_React$Component) {
|
|
1879
|
+
_inherits(CSSTransitionGroup, _React$Component);
|
|
1880
|
+
|
|
1881
|
+
function CSSTransitionGroup() {
|
|
1882
|
+
var _temp, _this, _ret;
|
|
1883
|
+
|
|
1884
|
+
_classCallCheck(this, CSSTransitionGroup);
|
|
1885
|
+
|
|
1886
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1887
|
+
args[_key] = arguments[_key];
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) {
|
|
1891
|
+
return _react2.default.createElement(_CSSTransitionGroupChild2.default, {
|
|
1892
|
+
name: _this.props.transitionName,
|
|
1893
|
+
appear: _this.props.transitionAppear,
|
|
1894
|
+
enter: _this.props.transitionEnter,
|
|
1895
|
+
leave: _this.props.transitionLeave,
|
|
1896
|
+
appearTimeout: _this.props.transitionAppearTimeout,
|
|
1897
|
+
enterTimeout: _this.props.transitionEnterTimeout,
|
|
1898
|
+
leaveTimeout: _this.props.transitionLeaveTimeout
|
|
1899
|
+
}, child);
|
|
1900
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
// We need to provide this childFactory so that
|
|
1904
|
+
// ReactCSSTransitionGroupChild can receive updates to name, enter, and
|
|
1905
|
+
// leave while it is leaving.
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
CSSTransitionGroup.prototype.render = function render() {
|
|
1909
|
+
return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild }));
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
return CSSTransitionGroup;
|
|
1913
|
+
}(_react2.default.Component);
|
|
1914
|
+
|
|
1915
|
+
CSSTransitionGroup.displayName = 'CSSTransitionGroup';
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
CSSTransitionGroup.propTypes = propTypes;
|
|
1919
|
+
CSSTransitionGroup.defaultProps = defaultProps;
|
|
1920
|
+
|
|
1921
|
+
exports.default = CSSTransitionGroup;
|
|
1922
|
+
module.exports = exports['default'];
|
|
1923
|
+
|
|
1914
1924
|
/***/ },
|
|
1915
1925
|
/* 41 */
|
|
1916
1926
|
/***/ function(module, exports) {
|
|
@@ -3276,19 +3286,25 @@ module.exports =
|
|
|
3276
3286
|
|
|
3277
3287
|
//get bundle destinationKeys
|
|
3278
3288
|
var destinationKeys = [];
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
destinationKeys.push(
|
|
3289
|
+
var __destinationKeys = [];
|
|
3290
|
+
var destinationKeysParents = [];
|
|
3291
|
+
bundle.destinationKeys.forEach(function (dk, i) {
|
|
3292
|
+
if (bundle.customExternalKeys) {
|
|
3293
|
+
var deNestedProp = deNest(dk, bundle.sourceKeysParents && JSON.parse(bundle.destinationKeysParents[i]), bundleResource);
|
|
3294
|
+
destinationKeys.push(deNestedProp.property);
|
|
3295
|
+
__destinationKeys.push(deNestedProp.__property);
|
|
3296
|
+
destinationKeysParents.push(deNestedProp.parentsArray);
|
|
3285
3297
|
} else {
|
|
3286
3298
|
destinationKeys.push('Lingk External Id');
|
|
3299
|
+
__destinationKeys.push('Lingk_External_Id__c');
|
|
3287
3300
|
}
|
|
3288
3301
|
});
|
|
3289
3302
|
|
|
3303
|
+
//get bundle sourceKeys
|
|
3290
3304
|
var sourceKeys = [];
|
|
3305
|
+
var __sourceKeys = [];
|
|
3291
3306
|
var sourceKeysObjects = [];
|
|
3307
|
+
var __sourceKeysObjects = [];
|
|
3292
3308
|
var sourceKeysParents = [];
|
|
3293
3309
|
bundle.sourceKeys.forEach(function (sk, i) {
|
|
3294
3310
|
var sourceKeyResourceObj = bundle.resources.find(function (r) {
|
|
@@ -3304,8 +3320,10 @@ module.exports =
|
|
|
3304
3320
|
});
|
|
3305
3321
|
if (sourceKeyResource) {
|
|
3306
3322
|
sourceKeysObjects.push(sourceKeyResource.name);
|
|
3323
|
+
__sourceKeysObjects.push(sourceKeyResource.type);
|
|
3307
3324
|
var deNestedProp = deNest(sk, bundle.sourceKeysParents && JSON.parse(bundle.sourceKeysParents[i]), sourceKeyResource);
|
|
3308
3325
|
sourceKeys.push(deNestedProp.property);
|
|
3326
|
+
__sourceKeys.push(deNestedProp.__property);
|
|
3309
3327
|
sourceKeysParents.push(deNestedProp.parentsArray);
|
|
3310
3328
|
}
|
|
3311
3329
|
}
|
|
@@ -3384,29 +3402,6 @@ module.exports =
|
|
|
3384
3402
|
})();
|
|
3385
3403
|
}
|
|
3386
3404
|
}
|
|
3387
|
-
/*const primaryResourceProvider = bundle.resources[0].provider
|
|
3388
|
-
.replace('Reader','').toLowerCase()
|
|
3389
|
-
const primaryDataSourceMetadata = primaryResourceProvider === DP.toLowerCase() ? DM : primaryResourceProvider === SP.toLowerCase() ? SM : null
|
|
3390
|
-
let deNestedPrimaryKey = {}
|
|
3391
|
-
let primaryKeyResourceName = null
|
|
3392
|
-
if(primaryDataSourceMetadata){
|
|
3393
|
-
if(rsc.primaryKeyName){
|
|
3394
|
-
//primaryKeyName coming from parameter (another resource)
|
|
3395
|
-
deNestedPrimaryKey = {property: rsc.primaryKeyName}
|
|
3396
|
-
primaryKeyResourceName = rsc.primaryKeyResource
|
|
3397
|
-
// primaryKeyName coming from field on this resource
|
|
3398
|
-
if(bundle.resources[0].resourceLabel===rsc.primaryKeyResource){
|
|
3399
|
-
const rscPrimaryResource = primaryDataSourceMetadata
|
|
3400
|
-
.find(r => r.type===rsc.primaryKeyResource)
|
|
3401
|
-
if(rscPrimaryResource){
|
|
3402
|
-
deNestedPrimaryKey = deNest(
|
|
3403
|
-
rsc.primaryKeyName, rsc.primaryKeyParents, rscPrimaryResource
|
|
3404
|
-
)
|
|
3405
|
-
primaryKeyResourceName = rscPrimaryResource.name
|
|
3406
|
-
}
|
|
3407
|
-
}
|
|
3408
|
-
}
|
|
3409
|
-
}*/
|
|
3410
3405
|
|
|
3411
3406
|
if (rscResource) {
|
|
3412
3407
|
resources.push(Object.assign({
|
|
@@ -3431,24 +3426,17 @@ module.exports =
|
|
|
3431
3426
|
dataSourceMetadata = m.isDestinationResource ? SM : DM;
|
|
3432
3427
|
}
|
|
3433
3428
|
|
|
3429
|
+
// source key / parents
|
|
3434
3430
|
var resourceFromBundle = bundle.resources.find(function (br) {
|
|
3435
3431
|
return br.resourceName === m.resourceFromName;
|
|
3436
3432
|
});
|
|
3437
3433
|
var sourceResource = resourceFromBundle && dataSourceMetadata.find(function (rsc) {
|
|
3438
3434
|
return rsc.name === resourceFromBundle.resourceLabel;
|
|
3439
3435
|
});
|
|
3440
|
-
var
|
|
3441
|
-
|
|
3442
|
-
var sourceProperty = null;
|
|
3443
|
-
if (sourceResource) {
|
|
3444
|
-
sourceProperty = sourceResource.properties.find(function (prop) {
|
|
3445
|
-
return prop.name === m.propertyFromName;
|
|
3446
|
-
});
|
|
3447
|
-
}
|
|
3436
|
+
var deNestedSourceProp = deNest(m.propertyFromName, m.propertyFromParents, sourceResource);
|
|
3448
3437
|
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
});
|
|
3438
|
+
// destintation key / parents
|
|
3439
|
+
var deNestedDestProp = deNest(m.propertyToName, m.propertyToParents, bundleResource);
|
|
3452
3440
|
|
|
3453
3441
|
var transformations = [{ type: 'none' }];
|
|
3454
3442
|
if (m.transformations && m.transformations.length > 0) {
|
|
@@ -3483,18 +3471,18 @@ module.exports =
|
|
|
3483
3471
|
}
|
|
3484
3472
|
}
|
|
3485
3473
|
|
|
3486
|
-
if (sourceResource &&
|
|
3474
|
+
if (sourceResource && deNestedSourceProp.property && deNestedDestProp.property) {
|
|
3487
3475
|
mappings.push(Object.assign({
|
|
3488
3476
|
resourceFromName: sourceResource.name,
|
|
3489
3477
|
__resourceFromName: sourceResource.type,
|
|
3490
|
-
propertyFromName:
|
|
3491
|
-
__propertyFromName:
|
|
3492
|
-
},
|
|
3478
|
+
propertyFromName: deNestedSourceProp.property,
|
|
3479
|
+
__propertyFromName: deNestedSourceProp.__property
|
|
3480
|
+
}, deNestedSourceProp.parentsArray && deNestedSourceProp.parentsArray.length > 0 && { propertyFromParents: deNestedSourceProp.parentsArray }, {
|
|
3493
3481
|
resourceToName: bundleResource.name,
|
|
3494
3482
|
__resourceToName: bundleResource.type,
|
|
3495
|
-
propertyToName:
|
|
3496
|
-
__propertyToName:
|
|
3497
|
-
}, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }, {
|
|
3483
|
+
propertyToName: deNestedDestProp.property,
|
|
3484
|
+
__propertyToName: deNestedDestProp.__property
|
|
3485
|
+
}, deNestedDestProp.parentsArray && deNestedDestProp.parentsArray.length > 0 && { propertyToParents: deNestedDestProp.parentsArray }, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }, {
|
|
3498
3486
|
transformations: transformations
|
|
3499
3487
|
}));
|
|
3500
3488
|
}
|
|
@@ -3504,8 +3492,18 @@ module.exports =
|
|
|
3504
3492
|
__name: bundleResource.type,
|
|
3505
3493
|
resources: resources, mappings: mappings,
|
|
3506
3494
|
customExternalKeys: bundle.customExternalKeys || false
|
|
3507
|
-
}, bundle.customExternalKeys === true && {
|
|
3508
|
-
|
|
3495
|
+
}, bundle.customExternalKeys === true && {
|
|
3496
|
+
sourceKeys: sourceKeys, __sourceKeys: __sourceKeys,
|
|
3497
|
+
sourceKeysObjects: sourceKeysObjects, __sourceKeysObjects: __sourceKeysObjects,
|
|
3498
|
+
sourceKeysParents: sourceKeysParents,
|
|
3499
|
+
destinationKeys: destinationKeys, __destinationKeys: __destinationKeys,
|
|
3500
|
+
destinationKeysParents: destinationKeysParents
|
|
3501
|
+
}, bundle.customExternalKeys === false && {
|
|
3502
|
+
lingkSourceKey: sourceKeys[0], __lingkSourceKey: __sourceKeys[0],
|
|
3503
|
+
lingkSourceKeyObject: sourceKeysObjects[0],
|
|
3504
|
+
__lingkSourceKeyObject: __sourceKeysObjects[0],
|
|
3505
|
+
lingkSourceKeyParents: sourceKeysParents[0]
|
|
3506
|
+
}, {
|
|
3509
3507
|
provider: bundle.provider,
|
|
3510
3508
|
//...bundle.recordTypeId && {recordTypeId: bundle.recordTypeId},
|
|
3511
3509
|
deleteEnabled: bundle.deleteEnabled || false,
|
|
@@ -3655,7 +3653,7 @@ module.exports =
|
|
|
3655
3653
|
/***/ function(module, exports, __webpack_require__) {
|
|
3656
3654
|
|
|
3657
3655
|
module.exports = !__webpack_require__(10) && !__webpack_require__(12)(function(){
|
|
3658
|
-
return Object.defineProperty(__webpack_require__(
|
|
3656
|
+
return Object.defineProperty(__webpack_require__(29)('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
|
3659
3657
|
});
|
|
3660
3658
|
|
|
3661
3659
|
/***/ },
|
|
@@ -16661,7 +16659,7 @@ module.exports =
|
|
|
16661
16659
|
|
|
16662
16660
|
var _react2 = _interopRequireDefault(_react);
|
|
16663
16661
|
|
|
16664
|
-
var _propTypes = __webpack_require__(
|
|
16662
|
+
var _propTypes = __webpack_require__(39);
|
|
16665
16663
|
|
|
16666
16664
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
16667
16665
|
|
|
@@ -18725,7 +18723,8 @@ module.exports =
|
|
|
18725
18723
|
__resourceToName: group.__name,
|
|
18726
18724
|
propertyToName: group.destinationKeys[i],
|
|
18727
18725
|
__propertyToName: group.__destinationKeys[i],
|
|
18728
|
-
propertyFromParents: group.sourceKeysParents[i]
|
|
18726
|
+
propertyFromParents: group.sourceKeysParents[i],
|
|
18727
|
+
propertyToParents: group.destinationKeysParents[i]
|
|
18729
18728
|
}, rsc.provider.toLowerCase() === step.destinationProvider.toLowerCase() && { dataSourceIsDestinationEntity: true });
|
|
18730
18729
|
group.mappings = group.mappings || [];
|
|
18731
18730
|
group.mappings.push(map);
|
|
@@ -18949,7 +18948,14 @@ module.exports =
|
|
|
18949
18948
|
sourceLabel = group.__sourceKeys[i];
|
|
18950
18949
|
}
|
|
18951
18950
|
|
|
18952
|
-
var destinationLabel =
|
|
18951
|
+
var destinationLabel = '';
|
|
18952
|
+
group.destinationKeysParents && group.destinationKeysParents[i] && group.destinationKeysParents[i].forEach(function (dkp) {
|
|
18953
|
+
destinationLabel += dkp;
|
|
18954
|
+
destinationLabel += ': ';
|
|
18955
|
+
});
|
|
18956
|
+
if (group.destinationKeys && group.destinationKeys[i]) {
|
|
18957
|
+
destinationLabel += group.destinationKeys && group.destinationKeys[i];
|
|
18958
|
+
}
|
|
18953
18959
|
if (showApiNames && group.__destinationKeys && group.__destinationKeys[i]) {
|
|
18954
18960
|
destinationLabel = group.__destinationKeys[i];
|
|
18955
18961
|
}
|
|
@@ -19142,7 +19148,7 @@ module.exports =
|
|
|
19142
19148
|
|
|
19143
19149
|
var _react2 = _interopRequireDefault(_react);
|
|
19144
19150
|
|
|
19145
|
-
var _CSSTransitionGroup = __webpack_require__(
|
|
19151
|
+
var _CSSTransitionGroup = __webpack_require__(40);
|
|
19146
19152
|
|
|
19147
19153
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
19148
19154
|
|
|
@@ -19175,7 +19181,8 @@ module.exports =
|
|
|
19175
19181
|
customFieldValue: '',
|
|
19176
19182
|
addNewButtonText: 'Add New',
|
|
19177
19183
|
setDuplicateRules: false,
|
|
19178
|
-
|
|
19184
|
+
sourceExpanded: {},
|
|
19185
|
+
destinationExpanded: {}
|
|
19179
19186
|
};
|
|
19180
19187
|
_this.onSelectDestinationField = _this.onSelectDestinationField.bind(_this);
|
|
19181
19188
|
_this.customize = _this.customize.bind(_this);
|
|
@@ -19267,7 +19274,7 @@ module.exports =
|
|
|
19267
19274
|
}
|
|
19268
19275
|
}, {
|
|
19269
19276
|
key: 'onSelectDestinationField',
|
|
19270
|
-
value: function onSelectDestinationField(group, field,
|
|
19277
|
+
value: function onSelectDestinationField(group, field, parents) {
|
|
19271
19278
|
//group.name, field.label, field.format
|
|
19272
19279
|
var _props2 = this.props,
|
|
19273
19280
|
change = _props2.change,
|
|
@@ -19294,8 +19301,8 @@ module.exports =
|
|
|
19294
19301
|
|
|
19295
19302
|
//cant map multiple to same destination field
|
|
19296
19303
|
rscGroup.mappings = rscGroup.mappings && rscGroup.mappings.filter(function (m) {
|
|
19297
|
-
return m.propertyToName
|
|
19298
|
-
})
|
|
19304
|
+
return !(m.propertyToName === field.label && JSON.stringify(m.propertyToParents) === JSON.stringify(parents));
|
|
19305
|
+
});
|
|
19299
19306
|
rscGroup.mappings.push({
|
|
19300
19307
|
resourceFromName: selectedEntity.name,
|
|
19301
19308
|
__resourceFromName: selectedEntity.__name,
|
|
@@ -19306,6 +19313,7 @@ module.exports =
|
|
|
19306
19313
|
propertyFromParents: this.state.selectedField.parents,
|
|
19307
19314
|
propertyToName: field.label,
|
|
19308
19315
|
__propertyToName: field.name,
|
|
19316
|
+
propertyToParents: parents,
|
|
19309
19317
|
transformations: [{ type: transform }],
|
|
19310
19318
|
dataSourceIsDestinationEntity: selectedEntity.isDestinationEntity
|
|
19311
19319
|
});
|
|
@@ -19343,20 +19351,13 @@ module.exports =
|
|
|
19343
19351
|
var bit = [true, false];
|
|
19344
19352
|
var direction = leftClicked ? 'right' : 'left';
|
|
19345
19353
|
|
|
19346
|
-
var mappings = {
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
};
|
|
19354
|
-
if (m.resourceFromName === selectedEntity.name) {
|
|
19355
|
-
filteredMappings[m.propertyToName] = {
|
|
19356
|
-
propFrom: m.propertyFromName,
|
|
19357
|
-
parentsFrom: m.propertyFromParents || []
|
|
19358
|
-
};
|
|
19359
|
-
}
|
|
19354
|
+
var mappings = group && group.mappings.map(function (m, i) {
|
|
19355
|
+
return Object.assign({}, m, { index: i });
|
|
19356
|
+
});
|
|
19357
|
+
var filteredMappings = group && group.mappings.filter(function (m) {
|
|
19358
|
+
return m.resourceFromName === selectedEntity.name;
|
|
19359
|
+
}).map(function (m) {
|
|
19360
|
+
return m;
|
|
19360
19361
|
});
|
|
19361
19362
|
|
|
19362
19363
|
var smallButtonStyle = {
|
|
@@ -19464,8 +19465,8 @@ module.exports =
|
|
|
19464
19465
|
return _react2.default.createElement(_nestedField2.default, { key: ii, field: field,
|
|
19465
19466
|
selectedField: selectedField,
|
|
19466
19467
|
filteredMappings: filteredMappings, parents: [],
|
|
19467
|
-
onExpand: function onExpand(
|
|
19468
|
-
return _this4.setState({
|
|
19468
|
+
onExpand: function onExpand(ex) {
|
|
19469
|
+
return _this4.setState({ sourceExpanded: ex });
|
|
19469
19470
|
},
|
|
19470
19471
|
click: function click(field, parents) {
|
|
19471
19472
|
return _this4.setState({
|
|
@@ -19475,7 +19476,7 @@ module.exports =
|
|
|
19475
19476
|
parents: parents
|
|
19476
19477
|
}
|
|
19477
19478
|
});
|
|
19478
|
-
}, expanded: _this4.state.
|
|
19479
|
+
}, expanded: _this4.state.sourceExpanded,
|
|
19479
19480
|
showApiNames: showApiNames
|
|
19480
19481
|
});
|
|
19481
19482
|
}),
|
|
@@ -19545,37 +19546,34 @@ module.exports =
|
|
|
19545
19546
|
}).properties.filter(function (p) {
|
|
19546
19547
|
return !p.readOnly;
|
|
19547
19548
|
}).map(function (field, i) {
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
' ',
|
|
19562
|
-
field.required ? '*' : ''
|
|
19563
|
-
);
|
|
19549
|
+
return _react2.default.createElement(_nestedField2.default, { key: i, field: field,
|
|
19550
|
+
selectedField: selectedField,
|
|
19551
|
+
filteredMappings: mappings, parents: [],
|
|
19552
|
+
onExpand: function onExpand(ex) {
|
|
19553
|
+
return _this4.setState({ destinationExpanded: ex });
|
|
19554
|
+
},
|
|
19555
|
+
click: function click(f, p) {
|
|
19556
|
+
return _this4.onSelectDestinationField(group, f, p);
|
|
19557
|
+
},
|
|
19558
|
+
expanded: _this4.state.destinationExpanded,
|
|
19559
|
+
showApiNames: showApiNames,
|
|
19560
|
+
isDestination: true
|
|
19561
|
+
});
|
|
19564
19562
|
}),
|
|
19565
|
-
_this4.state.setDuplicateRules && mappings &&
|
|
19563
|
+
_this4.state.setDuplicateRules && mappings && mappings.map(function (m, ii) {
|
|
19566
19564
|
return _react2.default.createElement(
|
|
19567
19565
|
'div',
|
|
19568
19566
|
{ key: ii,
|
|
19569
19567
|
style: { padding: '0 0 5px 5px', width: 335, fontWeight: 'bold', color: '#16325c' } },
|
|
19570
|
-
|
|
19568
|
+
m.propertyToName,
|
|
19571
19569
|
_react2.default.createElement(
|
|
19572
19570
|
'div',
|
|
19573
19571
|
{ style: { paddingLeft: 12 } },
|
|
19574
19572
|
_react2.default.createElement(_reduxForm.Field, { style: { height: 19, margin: 0, color: 'grey' },
|
|
19575
19573
|
label: 'Unique Field',
|
|
19576
19574
|
component: inputs.rfCheckbox,
|
|
19577
|
-
checked:
|
|
19578
|
-
name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' +
|
|
19575
|
+
checked: m.isUnique,
|
|
19576
|
+
name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' + m.index + '.isUnique' })
|
|
19579
19577
|
)
|
|
19580
19578
|
);
|
|
19581
19579
|
})
|
|
@@ -19695,7 +19693,14 @@ module.exports =
|
|
|
19695
19693
|
fromString = m.__propertyFromName;
|
|
19696
19694
|
}
|
|
19697
19695
|
|
|
19698
|
-
var toStr =
|
|
19696
|
+
var toStr = '';
|
|
19697
|
+
if (m.propertyToParents && m.propertyToParents.length > 0) {
|
|
19698
|
+
m.propertyToParents.forEach(function (p) {
|
|
19699
|
+
toStr += p;
|
|
19700
|
+
toStr += ': ';
|
|
19701
|
+
});
|
|
19702
|
+
}
|
|
19703
|
+
toStr += m.propertyToName;
|
|
19699
19704
|
if (showApiNames && m.__propertyToName) {
|
|
19700
19705
|
toStr = m.__propertyToName;
|
|
19701
19706
|
}
|
|
@@ -19725,8 +19730,7 @@ module.exports =
|
|
|
19725
19730
|
var MapTableTransformRow = exports.MapTableTransformRow = function MapTableTransformRow(props) {
|
|
19726
19731
|
var group = props.group,
|
|
19727
19732
|
i = props.i,
|
|
19728
|
-
selectMapping = props.selectMapping
|
|
19729
|
-
showApiNames = props.showApiNames;
|
|
19733
|
+
selectMapping = props.selectMapping;
|
|
19730
19734
|
|
|
19731
19735
|
var icons = {
|
|
19732
19736
|
none: _react2.default.createElement(
|
|
@@ -20122,7 +20126,7 @@ module.exports =
|
|
|
20122
20126
|
|
|
20123
20127
|
var _react2 = _interopRequireDefault(_react);
|
|
20124
20128
|
|
|
20125
|
-
var _CSSTransitionGroup = __webpack_require__(
|
|
20129
|
+
var _CSSTransitionGroup = __webpack_require__(40);
|
|
20126
20130
|
|
|
20127
20131
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
20128
20132
|
|
|
@@ -21706,7 +21710,7 @@ module.exports =
|
|
|
21706
21710
|
|
|
21707
21711
|
var _previewTabContent = __webpack_require__(67);
|
|
21708
21712
|
|
|
21709
|
-
var _CSSTransitionGroup = __webpack_require__(
|
|
21713
|
+
var _CSSTransitionGroup = __webpack_require__(40);
|
|
21710
21714
|
|
|
21711
21715
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
21712
21716
|
|
|
@@ -23147,7 +23151,7 @@ module.exports =
|
|
|
23147
23151
|
|
|
23148
23152
|
var _initialize2 = _interopRequireDefault(_initialize);
|
|
23149
23153
|
|
|
23150
|
-
var _CSSTransitionGroup = __webpack_require__(
|
|
23154
|
+
var _CSSTransitionGroup = __webpack_require__(40);
|
|
23151
23155
|
|
|
23152
23156
|
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
23153
23157
|
|
|
@@ -24966,13 +24970,9 @@ module.exports =
|
|
|
24966
24970
|
|
|
24967
24971
|
var _nestExpand2 = _interopRequireDefault(_nestExpand);
|
|
24968
24972
|
|
|
24969
|
-
var _CSSTransitionGroup = __webpack_require__(27);
|
|
24970
|
-
|
|
24971
|
-
var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
|
|
24972
|
-
|
|
24973
24973
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24974
24974
|
|
|
24975
|
-
var
|
|
24975
|
+
var NestedField = function NestedField(props) {
|
|
24976
24976
|
var field = props.field,
|
|
24977
24977
|
selectedField = props.selectedField,
|
|
24978
24978
|
filteredMappings = props.filteredMappings,
|
|
@@ -24980,11 +24980,19 @@ module.exports =
|
|
|
24980
24980
|
onExpand = props.onExpand,
|
|
24981
24981
|
expanded = props.expanded,
|
|
24982
24982
|
parents = props.parents,
|
|
24983
|
-
showApiNames = props.showApiNames
|
|
24984
|
-
|
|
24985
|
-
|
|
24986
|
-
|
|
24987
|
-
|
|
24983
|
+
showApiNames = props.showApiNames,
|
|
24984
|
+
isDestination = props.isDestination;
|
|
24985
|
+
|
|
24986
|
+
var isMapped = false;
|
|
24987
|
+
if (isDestination) {
|
|
24988
|
+
isMapped = filteredMappings && filteredMappings.find(function (m) {
|
|
24989
|
+
return m.propertyToName === field.label && JSON.stringify(m.propertyToParents) === JSON.stringify(parents);
|
|
24990
|
+
}) ? true : false;
|
|
24991
|
+
} else {
|
|
24992
|
+
isMapped = filteredMappings && filteredMappings.find(function (fm) {
|
|
24993
|
+
return fm.propertyFromName === field.label && JSON.stringify(fm.propertyFromParents) === JSON.stringify(parents);
|
|
24994
|
+
}) ? true : false;
|
|
24995
|
+
}
|
|
24988
24996
|
var isSelected = selectedField && selectedField.label && selectedField.label === field.label && JSON.stringify(selectedField.parents) === JSON.stringify(parents);
|
|
24989
24997
|
var style = {
|
|
24990
24998
|
paddingLeft: 5,
|
|
@@ -25042,26 +25050,22 @@ module.exports =
|
|
|
25042
25050
|
_react2.default.createElement(
|
|
25043
25051
|
'div',
|
|
25044
25052
|
{ style: { paddingLeft: 18 } },
|
|
25045
|
-
_react2.default.createElement(
|
|
25046
|
-
|
|
25047
|
-
{
|
|
25048
|
-
|
|
25049
|
-
|
|
25050
|
-
|
|
25051
|
-
|
|
25052
|
-
|
|
25053
|
-
|
|
25054
|
-
|
|
25055
|
-
|
|
25056
|
-
});
|
|
25057
|
-
})
|
|
25058
|
-
) : null
|
|
25059
|
-
)
|
|
25053
|
+
isExpanded ? _react2.default.createElement(
|
|
25054
|
+
'div',
|
|
25055
|
+
{ className: 'fields-expander' },
|
|
25056
|
+
field.object && field.object.properties.map(function (nestedField, i) {
|
|
25057
|
+
return _react2.default.createElement(NestedField, { key: i, field: nestedField, selectedField: selectedField,
|
|
25058
|
+
filteredMappings: filteredMappings, parents: parents.concat(field.label),
|
|
25059
|
+
click: click, onExpand: onExpand, expanded: expanded, showApiNames: showApiNames,
|
|
25060
|
+
isDestination: isDestination
|
|
25061
|
+
});
|
|
25062
|
+
})
|
|
25063
|
+
) : null
|
|
25060
25064
|
)
|
|
25061
25065
|
);
|
|
25062
25066
|
};
|
|
25063
25067
|
|
|
25064
|
-
exports.default =
|
|
25068
|
+
exports.default = NestedField;
|
|
25065
25069
|
|
|
25066
25070
|
/***/ },
|
|
25067
25071
|
/* 139 */
|
|
@@ -25079,7 +25083,7 @@ module.exports =
|
|
|
25079
25083
|
|
|
25080
25084
|
var _react2 = _interopRequireDefault(_react);
|
|
25081
25085
|
|
|
25082
|
-
var _saveData3 = __webpack_require__(
|
|
25086
|
+
var _saveData3 = __webpack_require__(27);
|
|
25083
25087
|
|
|
25084
25088
|
var _saveData4 = _interopRequireDefault(_saveData3);
|
|
25085
25089
|
|
|
@@ -25602,7 +25606,7 @@ module.exports =
|
|
|
25602
25606
|
|
|
25603
25607
|
var _fileProcessing2 = _interopRequireDefault(_fileProcessing);
|
|
25604
25608
|
|
|
25605
|
-
var _saveData2 = __webpack_require__(
|
|
25609
|
+
var _saveData2 = __webpack_require__(27);
|
|
25606
25610
|
|
|
25607
25611
|
var _saveData3 = _interopRequireDefault(_saveData2);
|
|
25608
25612
|
|
|
@@ -26173,11 +26177,11 @@ module.exports =
|
|
|
26173
26177
|
|
|
26174
26178
|
'use strict';
|
|
26175
26179
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
26176
|
-
var getKeys = __webpack_require__(
|
|
26180
|
+
var getKeys = __webpack_require__(33)
|
|
26177
26181
|
, gOPS = __webpack_require__(161)
|
|
26178
26182
|
, pIE = __webpack_require__(163)
|
|
26179
|
-
, toObject = __webpack_require__(
|
|
26180
|
-
, IObject = __webpack_require__(
|
|
26183
|
+
, toObject = __webpack_require__(36)
|
|
26184
|
+
, IObject = __webpack_require__(31)
|
|
26181
26185
|
, $assign = Object.assign;
|
|
26182
26186
|
|
|
26183
26187
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -28891,7 +28895,7 @@ module.exports =
|
|
|
28891
28895
|
|
|
28892
28896
|
var _moment2 = _interopRequireDefault(_moment);
|
|
28893
28897
|
|
|
28894
|
-
var _classnames = __webpack_require__(
|
|
28898
|
+
var _classnames = __webpack_require__(38);
|
|
28895
28899
|
|
|
28896
28900
|
var _classnames2 = _interopRequireDefault(_classnames);
|
|
28897
28901
|
|
|
@@ -29077,7 +29081,7 @@ module.exports =
|
|
|
29077
29081
|
|
|
29078
29082
|
var _reactDom2 = _interopRequireDefault(_reactDom);
|
|
29079
29083
|
|
|
29080
|
-
var _classnames3 = __webpack_require__(
|
|
29084
|
+
var _classnames3 = __webpack_require__(38);
|
|
29081
29085
|
|
|
29082
29086
|
var _classnames4 = _interopRequireDefault(_classnames3);
|
|
29083
29087
|
|
|
@@ -30576,7 +30580,7 @@ module.exports =
|
|
|
30576
30580
|
|
|
30577
30581
|
var _react2 = _interopRequireDefault(_react);
|
|
30578
30582
|
|
|
30579
|
-
var _propTypes = __webpack_require__(
|
|
30583
|
+
var _propTypes = __webpack_require__(39);
|
|
30580
30584
|
|
|
30581
30585
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
30582
30586
|
|
|
@@ -30800,7 +30804,7 @@ module.exports =
|
|
|
30800
30804
|
|
|
30801
30805
|
var _react2 = _interopRequireDefault(_react);
|
|
30802
30806
|
|
|
30803
|
-
var _propTypes = __webpack_require__(
|
|
30807
|
+
var _propTypes = __webpack_require__(39);
|
|
30804
30808
|
|
|
30805
30809
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
30806
30810
|
|