@lingk/sync 1.0.32 → 1.0.34
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 +30 -30
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js +17 -17
- 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 +2 -2
- package/build/loadData.js.map +1 -1
- package/build/main.js +174 -71
- package/build/main.js.map +1 -1
- package/build/metadataFunctions.js +2 -2
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js +4 -4
- package/build/reducer.js.map +1 -1
- package/build/saveData.js +11 -10
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -219,7 +219,7 @@ module.exports =
|
|
|
219
219
|
|
|
220
220
|
var _moment2 = _interopRequireDefault(_moment);
|
|
221
221
|
|
|
222
|
-
var _loadData = __webpack_require__(
|
|
222
|
+
var _loadData = __webpack_require__(50);
|
|
223
223
|
|
|
224
224
|
var _loadData2 = _interopRequireDefault(_loadData);
|
|
225
225
|
|
|
@@ -449,8 +449,8 @@ module.exports =
|
|
|
449
449
|
/***/ function(module, exports, __webpack_require__) {
|
|
450
450
|
|
|
451
451
|
var anObject = __webpack_require__(15)
|
|
452
|
-
, IE8_DOM_DEFINE = __webpack_require__(
|
|
453
|
-
, toPrimitive = __webpack_require__(
|
|
452
|
+
, IE8_DOM_DEFINE = __webpack_require__(55)
|
|
453
|
+
, toPrimitive = __webpack_require__(59)
|
|
454
454
|
, dP = Object.defineProperty;
|
|
455
455
|
|
|
456
456
|
exports.f = __webpack_require__(10) ? Object.defineProperty : function defineProperty(O, P, Attributes){
|
|
@@ -680,7 +680,7 @@ module.exports =
|
|
|
680
680
|
|
|
681
681
|
var global = __webpack_require__(7)
|
|
682
682
|
, core = __webpack_require__(9)
|
|
683
|
-
, ctx = __webpack_require__(
|
|
683
|
+
, ctx = __webpack_require__(54)
|
|
684
684
|
, hide = __webpack_require__(13)
|
|
685
685
|
, PROTOTYPE = 'prototype';
|
|
686
686
|
|
|
@@ -1640,23 +1640,24 @@ module.exports =
|
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
1642
1642
|
if (sourceResource) {
|
|
1643
|
-
return
|
|
1643
|
+
return {
|
|
1644
1644
|
resourceName: sourceResource.type,
|
|
1645
1645
|
resourceLabel: sourceResource.name,
|
|
1646
1646
|
resourceNameAndProvider: sourceResource.type + '_' + rsc.provider.toLowerCase(),
|
|
1647
1647
|
joinKeyName: nestedJoinKey.property,
|
|
1648
|
-
joinKeyResource: joinKeyResource
|
|
1649
|
-
|
|
1648
|
+
joinKeyResource: joinKeyResource,
|
|
1649
|
+
joinKeyParents: nestedJoinKey.parentsArray && nestedJoinKey.parentsArray.length > 0 ? nestedJoinKey.parentsArray : [],
|
|
1650
1650
|
primaryKeyName: nestedPrimaryKey.property,
|
|
1651
|
-
primaryKeyResource: primaryKeyResource
|
|
1652
|
-
|
|
1651
|
+
primaryKeyResource: primaryKeyResource,
|
|
1652
|
+
primaryKeyParents: nestedPrimaryKey.parentsArray && nestedPrimaryKey.parentsArray.length > 0 ? nestedPrimaryKey.parentsArray : [],
|
|
1653
1653
|
provider: rsc.provider.toLowerCase() + 'Reader',
|
|
1654
|
-
joinType: rsc.joinType
|
|
1655
|
-
|
|
1654
|
+
joinType: rsc.joinType,
|
|
1655
|
+
parameterFilters: rsc.parameterFilters ? rsc.parameterFilters.filter(function (pf) {
|
|
1656
1656
|
return pf.val;
|
|
1657
|
-
})
|
|
1658
|
-
level: rsc.level || (rscIndex === 0 ? 0 : 1)
|
|
1659
|
-
|
|
1657
|
+
}) : [],
|
|
1658
|
+
level: rsc.level || (rscIndex === 0 ? 0 : 1),
|
|
1659
|
+
parentNameAndProvider: primaryKeyResourceLabel && primaryResourceProvider ? primaryKeyResourceLabel + '_' + primaryResourceProvider.toLowerCase() : ''
|
|
1660
|
+
};
|
|
1660
1661
|
} else return null;
|
|
1661
1662
|
});
|
|
1662
1663
|
}
|
|
@@ -1750,7 +1751,7 @@ module.exports =
|
|
|
1750
1751
|
/***/ function(module, exports, __webpack_require__) {
|
|
1751
1752
|
|
|
1752
1753
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
1753
|
-
var $keys = __webpack_require__(
|
|
1754
|
+
var $keys = __webpack_require__(56)
|
|
1754
1755
|
, enumBugKeys = __webpack_require__(31);
|
|
1755
1756
|
|
|
1756
1757
|
module.exports = Object.keys || function keys(O){
|
|
@@ -1892,8 +1893,14 @@ module.exports =
|
|
|
1892
1893
|
|
|
1893
1894
|
|
|
1894
1895
|
/***/ },
|
|
1895
|
-
/* 41
|
|
1896
|
-
|
|
1896
|
+
/* 41 */
|
|
1897
|
+
/***/ function(module, exports) {
|
|
1898
|
+
|
|
1899
|
+
module.exports = require("react-dropzone");
|
|
1900
|
+
|
|
1901
|
+
/***/ },
|
|
1902
|
+
/* 42 */,
|
|
1903
|
+
/* 43 */
|
|
1897
1904
|
/***/ function(module, exports) {
|
|
1898
1905
|
|
|
1899
1906
|
'use strict';
|
|
@@ -1919,7 +1926,7 @@ module.exports =
|
|
|
1919
1926
|
var CLEAR_WIZARD = exports.CLEAR_WIZARD = 'CLEAR_WIZARD';
|
|
1920
1927
|
|
|
1921
1928
|
/***/ },
|
|
1922
|
-
/*
|
|
1929
|
+
/* 44 */
|
|
1923
1930
|
/***/ function(module, exports, __webpack_require__) {
|
|
1924
1931
|
|
|
1925
1932
|
'use strict';
|
|
@@ -1934,7 +1941,7 @@ module.exports =
|
|
|
1934
1941
|
|
|
1935
1942
|
var _react2 = _interopRequireDefault(_react);
|
|
1936
1943
|
|
|
1937
|
-
var _clipboard = __webpack_require__(
|
|
1944
|
+
var _clipboard = __webpack_require__(49);
|
|
1938
1945
|
|
|
1939
1946
|
var _clipboard2 = _interopRequireDefault(_clipboard);
|
|
1940
1947
|
|
|
@@ -2065,7 +2072,7 @@ module.exports =
|
|
|
2065
2072
|
exports.default = AdapterSecret;
|
|
2066
2073
|
|
|
2067
2074
|
/***/ },
|
|
2068
|
-
/*
|
|
2075
|
+
/* 45 */
|
|
2069
2076
|
/***/ function(module, exports, __webpack_require__) {
|
|
2070
2077
|
|
|
2071
2078
|
'use strict';
|
|
@@ -2082,11 +2089,11 @@ module.exports =
|
|
|
2082
2089
|
|
|
2083
2090
|
var _react2 = _interopRequireDefault(_react);
|
|
2084
2091
|
|
|
2085
|
-
var _reactDropzone = __webpack_require__(
|
|
2092
|
+
var _reactDropzone = __webpack_require__(41);
|
|
2086
2093
|
|
|
2087
2094
|
var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
|
|
2088
2095
|
|
|
2089
|
-
var _papaparse = __webpack_require__(
|
|
2096
|
+
var _papaparse = __webpack_require__(63);
|
|
2090
2097
|
|
|
2091
2098
|
var _papaparse2 = _interopRequireDefault(_papaparse);
|
|
2092
2099
|
|
|
@@ -2328,7 +2335,7 @@ module.exports =
|
|
|
2328
2335
|
exports.default = FlatFile;
|
|
2329
2336
|
|
|
2330
2337
|
/***/ },
|
|
2331
|
-
/*
|
|
2338
|
+
/* 46 */
|
|
2332
2339
|
/***/ function(module, exports, __webpack_require__) {
|
|
2333
2340
|
|
|
2334
2341
|
'use strict';
|
|
@@ -2341,15 +2348,15 @@ module.exports =
|
|
|
2341
2348
|
|
|
2342
2349
|
var _react2 = _interopRequireDefault(_react);
|
|
2343
2350
|
|
|
2344
|
-
__webpack_require__(
|
|
2351
|
+
__webpack_require__(62);
|
|
2345
2352
|
|
|
2346
2353
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2347
2354
|
|
|
2348
2355
|
// SKIP ON SERVER-SIDE RENDERING
|
|
2349
2356
|
var codemirror = null;
|
|
2350
2357
|
if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
|
|
2351
|
-
codemirror = __webpack_require__(
|
|
2352
|
-
__webpack_require__(
|
|
2358
|
+
codemirror = __webpack_require__(64);
|
|
2359
|
+
__webpack_require__(61);
|
|
2353
2360
|
}
|
|
2354
2361
|
|
|
2355
2362
|
function unCamelize(text) {
|
|
@@ -2446,7 +2453,7 @@ module.exports =
|
|
|
2446
2453
|
exports.default = Google;
|
|
2447
2454
|
|
|
2448
2455
|
/***/ },
|
|
2449
|
-
/*
|
|
2456
|
+
/* 47 */
|
|
2450
2457
|
/***/ function(module, exports, __webpack_require__) {
|
|
2451
2458
|
|
|
2452
2459
|
'use strict';
|
|
@@ -2461,19 +2468,19 @@ module.exports =
|
|
|
2461
2468
|
|
|
2462
2469
|
var _react2 = _interopRequireDefault(_react);
|
|
2463
2470
|
|
|
2464
|
-
var _flatfile = __webpack_require__(
|
|
2471
|
+
var _flatfile = __webpack_require__(45);
|
|
2465
2472
|
|
|
2466
2473
|
var _flatfile2 = _interopRequireDefault(_flatfile);
|
|
2467
2474
|
|
|
2468
|
-
var _google = __webpack_require__(
|
|
2475
|
+
var _google = __webpack_require__(46);
|
|
2469
2476
|
|
|
2470
2477
|
var _google2 = _interopRequireDefault(_google);
|
|
2471
2478
|
|
|
2472
|
-
var _adaptersecret = __webpack_require__(
|
|
2479
|
+
var _adaptersecret = __webpack_require__(44);
|
|
2473
2480
|
|
|
2474
2481
|
var _adaptersecret2 = _interopRequireDefault(_adaptersecret);
|
|
2475
2482
|
|
|
2476
|
-
var _oauth = __webpack_require__(
|
|
2483
|
+
var _oauth = __webpack_require__(48);
|
|
2477
2484
|
|
|
2478
2485
|
var _oauth2 = _interopRequireDefault(_oauth);
|
|
2479
2486
|
|
|
@@ -2739,7 +2746,7 @@ module.exports =
|
|
|
2739
2746
|
};
|
|
2740
2747
|
|
|
2741
2748
|
/***/ },
|
|
2742
|
-
/*
|
|
2749
|
+
/* 48 */
|
|
2743
2750
|
/***/ function(module, exports, __webpack_require__) {
|
|
2744
2751
|
|
|
2745
2752
|
'use strict';
|
|
@@ -2981,7 +2988,7 @@ module.exports =
|
|
|
2981
2988
|
exports.default = Oauth;
|
|
2982
2989
|
|
|
2983
2990
|
/***/ },
|
|
2984
|
-
/*
|
|
2991
|
+
/* 49 */
|
|
2985
2992
|
/***/ function(module, exports, __webpack_require__) {
|
|
2986
2993
|
|
|
2987
2994
|
"use strict";
|
|
@@ -3162,7 +3169,7 @@ module.exports =
|
|
|
3162
3169
|
});
|
|
3163
3170
|
|
|
3164
3171
|
/***/ },
|
|
3165
|
-
/*
|
|
3172
|
+
/* 50 */
|
|
3166
3173
|
/***/ function(module, exports) {
|
|
3167
3174
|
|
|
3168
3175
|
'use strict';
|
|
@@ -3462,7 +3469,7 @@ module.exports =
|
|
|
3462
3469
|
exports.default = loadData;
|
|
3463
3470
|
|
|
3464
3471
|
/***/ },
|
|
3465
|
-
/*
|
|
3472
|
+
/* 51 */
|
|
3466
3473
|
/***/ function(module, exports, __webpack_require__) {
|
|
3467
3474
|
|
|
3468
3475
|
"use strict";
|
|
@@ -3490,7 +3497,7 @@ module.exports =
|
|
|
3490
3497
|
};
|
|
3491
3498
|
|
|
3492
3499
|
/***/ },
|
|
3493
|
-
/*
|
|
3500
|
+
/* 52 */
|
|
3494
3501
|
/***/ function(module, exports) {
|
|
3495
3502
|
|
|
3496
3503
|
module.exports = function(it){
|
|
@@ -3499,14 +3506,14 @@ module.exports =
|
|
|
3499
3506
|
};
|
|
3500
3507
|
|
|
3501
3508
|
/***/ },
|
|
3502
|
-
/*
|
|
3509
|
+
/* 53 */
|
|
3503
3510
|
/***/ function(module, exports, __webpack_require__) {
|
|
3504
3511
|
|
|
3505
3512
|
// false -> Array#indexOf
|
|
3506
3513
|
// true -> Array#includes
|
|
3507
3514
|
var toIObject = __webpack_require__(20)
|
|
3508
|
-
, toLength = __webpack_require__(
|
|
3509
|
-
, toIndex = __webpack_require__(
|
|
3515
|
+
, toLength = __webpack_require__(58)
|
|
3516
|
+
, toIndex = __webpack_require__(57);
|
|
3510
3517
|
module.exports = function(IS_INCLUDES){
|
|
3511
3518
|
return function($this, el, fromIndex){
|
|
3512
3519
|
var O = toIObject($this)
|
|
@@ -3525,11 +3532,11 @@ module.exports =
|
|
|
3525
3532
|
};
|
|
3526
3533
|
|
|
3527
3534
|
/***/ },
|
|
3528
|
-
/*
|
|
3535
|
+
/* 54 */
|
|
3529
3536
|
/***/ function(module, exports, __webpack_require__) {
|
|
3530
3537
|
|
|
3531
3538
|
// optional / simple context binding
|
|
3532
|
-
var aFunction = __webpack_require__(
|
|
3539
|
+
var aFunction = __webpack_require__(52);
|
|
3533
3540
|
module.exports = function(fn, that, length){
|
|
3534
3541
|
aFunction(fn);
|
|
3535
3542
|
if(that === undefined)return fn;
|
|
@@ -3550,7 +3557,7 @@ module.exports =
|
|
|
3550
3557
|
};
|
|
3551
3558
|
|
|
3552
3559
|
/***/ },
|
|
3553
|
-
/*
|
|
3560
|
+
/* 55 */
|
|
3554
3561
|
/***/ function(module, exports, __webpack_require__) {
|
|
3555
3562
|
|
|
3556
3563
|
module.exports = !__webpack_require__(10) && !__webpack_require__(12)(function(){
|
|
@@ -3558,12 +3565,12 @@ module.exports =
|
|
|
3558
3565
|
});
|
|
3559
3566
|
|
|
3560
3567
|
/***/ },
|
|
3561
|
-
/*
|
|
3568
|
+
/* 56 */
|
|
3562
3569
|
/***/ function(module, exports, __webpack_require__) {
|
|
3563
3570
|
|
|
3564
3571
|
var has = __webpack_require__(17)
|
|
3565
3572
|
, toIObject = __webpack_require__(20)
|
|
3566
|
-
, arrayIndexOf = __webpack_require__(
|
|
3573
|
+
, arrayIndexOf = __webpack_require__(53)(false)
|
|
3567
3574
|
, IE_PROTO = __webpack_require__(25)('IE_PROTO');
|
|
3568
3575
|
|
|
3569
3576
|
module.exports = function(object, names){
|
|
@@ -3580,7 +3587,7 @@ module.exports =
|
|
|
3580
3587
|
};
|
|
3581
3588
|
|
|
3582
3589
|
/***/ },
|
|
3583
|
-
/*
|
|
3590
|
+
/* 57 */
|
|
3584
3591
|
/***/ function(module, exports, __webpack_require__) {
|
|
3585
3592
|
|
|
3586
3593
|
var toInteger = __webpack_require__(19)
|
|
@@ -3592,7 +3599,7 @@ module.exports =
|
|
|
3592
3599
|
};
|
|
3593
3600
|
|
|
3594
3601
|
/***/ },
|
|
3595
|
-
/*
|
|
3602
|
+
/* 58 */
|
|
3596
3603
|
/***/ function(module, exports, __webpack_require__) {
|
|
3597
3604
|
|
|
3598
3605
|
// 7.1.15 ToLength
|
|
@@ -3603,7 +3610,7 @@ module.exports =
|
|
|
3603
3610
|
};
|
|
3604
3611
|
|
|
3605
3612
|
/***/ },
|
|
3606
|
-
/*
|
|
3613
|
+
/* 59 */
|
|
3607
3614
|
/***/ function(module, exports, __webpack_require__) {
|
|
3608
3615
|
|
|
3609
3616
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
@@ -3620,7 +3627,7 @@ module.exports =
|
|
|
3620
3627
|
};
|
|
3621
3628
|
|
|
3622
3629
|
/***/ },
|
|
3623
|
-
/*
|
|
3630
|
+
/* 60 */
|
|
3624
3631
|
/***/ function(module, exports, __webpack_require__) {
|
|
3625
3632
|
|
|
3626
3633
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -13285,7 +13292,7 @@ module.exports =
|
|
|
13285
13292
|
|
|
13286
13293
|
|
|
13287
13294
|
/***/ },
|
|
13288
|
-
/*
|
|
13295
|
+
/* 61 */
|
|
13289
13296
|
/***/ function(module, exports, __webpack_require__) {
|
|
13290
13297
|
|
|
13291
13298
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
@@ -13293,7 +13300,7 @@ module.exports =
|
|
|
13293
13300
|
|
|
13294
13301
|
(function(mod) {
|
|
13295
13302
|
if (true) // CommonJS
|
|
13296
|
-
mod(__webpack_require__(
|
|
13303
|
+
mod(__webpack_require__(60));
|
|
13297
13304
|
else if (typeof define == "function" && define.amd) // AMD
|
|
13298
13305
|
define(["../../lib/codemirror"], mod);
|
|
13299
13306
|
else // Plain browser env
|
|
@@ -14145,29 +14152,23 @@ module.exports =
|
|
|
14145
14152
|
});
|
|
14146
14153
|
|
|
14147
14154
|
|
|
14148
|
-
/***/ },
|
|
14149
|
-
/* 61 */
|
|
14150
|
-
/***/ function(module, exports) {
|
|
14151
|
-
|
|
14152
|
-
// removed by extract-text-webpack-plugin
|
|
14153
|
-
|
|
14154
14155
|
/***/ },
|
|
14155
14156
|
/* 62 */
|
|
14156
14157
|
/***/ function(module, exports) {
|
|
14157
14158
|
|
|
14158
|
-
|
|
14159
|
+
// removed by extract-text-webpack-plugin
|
|
14159
14160
|
|
|
14160
14161
|
/***/ },
|
|
14161
14162
|
/* 63 */
|
|
14162
14163
|
/***/ function(module, exports) {
|
|
14163
14164
|
|
|
14164
|
-
module.exports = require("
|
|
14165
|
+
module.exports = require("papaparse");
|
|
14165
14166
|
|
|
14166
14167
|
/***/ },
|
|
14167
14168
|
/* 64 */
|
|
14168
14169
|
/***/ function(module, exports) {
|
|
14169
14170
|
|
|
14170
|
-
module.exports = require("react-
|
|
14171
|
+
module.exports = require("react-codemirror2");
|
|
14171
14172
|
|
|
14172
14173
|
/***/ },
|
|
14173
14174
|
/* 65 */
|
|
@@ -17036,6 +17037,7 @@ module.exports =
|
|
|
17036
17037
|
exports.callAddCustomField = callAddCustomField;
|
|
17037
17038
|
exports.gotEmptyScenario = gotEmptyScenario;
|
|
17038
17039
|
exports.callGetScenario = callGetScenario;
|
|
17040
|
+
exports.setScenarioFromJson = setScenarioFromJson;
|
|
17039
17041
|
exports.callGetScenarioList = callGetScenarioList;
|
|
17040
17042
|
exports.callCreateScenario = callCreateScenario;
|
|
17041
17043
|
exports.callUpdateScenarioList = callUpdateScenarioList;
|
|
@@ -17068,7 +17070,7 @@ module.exports =
|
|
|
17068
17070
|
exports.setWizardDataLoaded = setWizardDataLoaded;
|
|
17069
17071
|
exports.clearWizardFormData = clearWizardFormData;
|
|
17070
17072
|
|
|
17071
|
-
var _types = __webpack_require__(
|
|
17073
|
+
var _types = __webpack_require__(43);
|
|
17072
17074
|
|
|
17073
17075
|
var types = _interopRequireWildcard(_types);
|
|
17074
17076
|
|
|
@@ -17445,6 +17447,22 @@ module.exports =
|
|
|
17445
17447
|
};
|
|
17446
17448
|
}
|
|
17447
17449
|
|
|
17450
|
+
function setScenarioFromJson(bundles, mappings) {
|
|
17451
|
+
return function (dispatch, getState, api) {
|
|
17452
|
+
dispatch({
|
|
17453
|
+
type: types.SET_WIZARD_SAVED_BUNDLES,
|
|
17454
|
+
data: { bundles: bundles }
|
|
17455
|
+
});
|
|
17456
|
+
dispatch({
|
|
17457
|
+
type: types.SET_WIZARD_SAVED_MAPPING,
|
|
17458
|
+
data: { mappings: mappings }
|
|
17459
|
+
});
|
|
17460
|
+
dispatch({
|
|
17461
|
+
type: types.FINISH_WIZARD_GET_SCENARIO
|
|
17462
|
+
});
|
|
17463
|
+
};
|
|
17464
|
+
}
|
|
17465
|
+
|
|
17448
17466
|
function callGetScenarioList(tenantId, appId, typeGuid, isGlobal, isOrgAdmin) {
|
|
17449
17467
|
return function (dispatch, getState, api) {
|
|
17450
17468
|
var _getState9 = getState(),
|
|
@@ -21473,7 +21491,7 @@ module.exports =
|
|
|
21473
21491
|
|
|
21474
21492
|
var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
|
|
21475
21493
|
|
|
21476
|
-
var _credSections = __webpack_require__(
|
|
21494
|
+
var _credSections = __webpack_require__(47);
|
|
21477
21495
|
|
|
21478
21496
|
var _credSections2 = _interopRequireDefault(_credSections);
|
|
21479
21497
|
|
|
@@ -23749,6 +23767,10 @@ module.exports =
|
|
|
23749
23767
|
|
|
23750
23768
|
var _initialize2 = _interopRequireDefault(_initialize);
|
|
23751
23769
|
|
|
23770
|
+
var _reactDropzone = __webpack_require__(41);
|
|
23771
|
+
|
|
23772
|
+
var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
|
|
23773
|
+
|
|
23752
23774
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23753
23775
|
|
|
23754
23776
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -23813,15 +23835,52 @@ module.exports =
|
|
|
23813
23835
|
};
|
|
23814
23836
|
|
|
23815
23837
|
_this.completedCallback = function () {
|
|
23816
|
-
_this.setState({ currentlyLoadingScenario: '', loadingDots: '' });
|
|
23838
|
+
_this.setState({ currentlyLoadingScenario: '', didUploadJson: false, loadingDots: '' });
|
|
23817
23839
|
clearInterval(_this.loadingInterval);
|
|
23818
23840
|
};
|
|
23819
23841
|
|
|
23842
|
+
_this.onDrop = function (files) {
|
|
23843
|
+
var actions = _this.props.actions;
|
|
23844
|
+
|
|
23845
|
+
var reader = new FileReader();
|
|
23846
|
+
reader.addEventListener("loadend", function (event) {
|
|
23847
|
+
if (event.target.result) {
|
|
23848
|
+
try {
|
|
23849
|
+
var j = JSON.parse(event.target.result);
|
|
23850
|
+
if (j.bundles && j.mappings) {
|
|
23851
|
+
actions.setScenarioFromJson(j.bundles, j.mappings);
|
|
23852
|
+
_this.setState({ currentlyLoadingScenario: '', didUploadJson: j.title });
|
|
23853
|
+
} else {
|
|
23854
|
+
_this.invalidJson();
|
|
23855
|
+
}
|
|
23856
|
+
} catch (e) {
|
|
23857
|
+
_this.invalidJson();
|
|
23858
|
+
}
|
|
23859
|
+
}
|
|
23860
|
+
});
|
|
23861
|
+
reader.readAsText(files[0]);
|
|
23862
|
+
};
|
|
23863
|
+
|
|
23864
|
+
_this.invalidJson = function () {
|
|
23865
|
+
_this.setState({ dropError: 'Invalid JSON' });
|
|
23866
|
+
setTimeout(function () {
|
|
23867
|
+
_this.setState({ dropError: null });
|
|
23868
|
+
}, 3500);
|
|
23869
|
+
};
|
|
23870
|
+
|
|
23871
|
+
_this.onReject = function () {
|
|
23872
|
+
_this.setState({ dropError: 'File is too big!' });
|
|
23873
|
+
setTimeout(function () {
|
|
23874
|
+
_this.setState({ dropError: null });
|
|
23875
|
+
}, 3500);
|
|
23876
|
+
};
|
|
23877
|
+
|
|
23820
23878
|
_this.state = {
|
|
23821
23879
|
showModal: false,
|
|
23822
23880
|
modalOption: null,
|
|
23823
23881
|
currentlyLoadingScenario: '',
|
|
23824
|
-
loadingDots: ''
|
|
23882
|
+
loadingDots: '',
|
|
23883
|
+
showJsonUploader: false
|
|
23825
23884
|
};
|
|
23826
23885
|
return _this;
|
|
23827
23886
|
}
|
|
@@ -23844,7 +23903,7 @@ module.exports =
|
|
|
23844
23903
|
var scenario = _this2.props.formValues['scenario'];
|
|
23845
23904
|
if (scenario && !(step.options && step.options.find(function (o) {
|
|
23846
23905
|
return o.id === parseInt(scenario, 10);
|
|
23847
|
-
}))) {
|
|
23906
|
+
})) && !scenario === '2147483647') {
|
|
23848
23907
|
change('scenario', '0');
|
|
23849
23908
|
}
|
|
23850
23909
|
})();
|
|
@@ -23866,8 +23925,12 @@ module.exports =
|
|
|
23866
23925
|
change('resourceGroups', []); //clear old data
|
|
23867
23926
|
change('scenario', String(o.id));
|
|
23868
23927
|
if (String(o.id) === '0') {
|
|
23928
|
+
this.setState({ showJsonUploader: false, didUploadJson: false, currentlyLoadingScenario: '' });
|
|
23869
23929
|
actions.gotEmptyScenario();
|
|
23930
|
+
} else if (String(o.id) === '2147483647') {
|
|
23931
|
+
this.setState({ showJsonUploader: true, currentlyLoadingScenario: '2147483647' });
|
|
23870
23932
|
} else {
|
|
23933
|
+
this.setState({ showJsonUploader: false, didUploadJson: false });
|
|
23871
23934
|
actions.callGetScenario(step.magicNumber, o.bundleGuid, o.mappingGuid, this.completedCallback);
|
|
23872
23935
|
this.setState({ currentlyLoadingScenario: String(o.id) });
|
|
23873
23936
|
this.goLoading();
|
|
@@ -23886,6 +23949,10 @@ module.exports =
|
|
|
23886
23949
|
reset = _props3.reset,
|
|
23887
23950
|
wizard = _props3.wizard,
|
|
23888
23951
|
formValues = _props3.formValues;
|
|
23952
|
+
var _state = this.state,
|
|
23953
|
+
dropError = _state.dropError,
|
|
23954
|
+
showJsonUploader = _state.showJsonUploader,
|
|
23955
|
+
didUploadJson = _state.didUploadJson;
|
|
23889
23956
|
|
|
23890
23957
|
var Radio = inputs.Radio;
|
|
23891
23958
|
var scenario = formValues['scenario'];
|
|
@@ -23904,7 +23971,11 @@ module.exports =
|
|
|
23904
23971
|
label: 'Get started without any automatic mappings.'
|
|
23905
23972
|
}].concat(opts.filter(function (o) {
|
|
23906
23973
|
return o.tenantId === 2147483647;
|
|
23907
|
-
}))
|
|
23974
|
+
})).concat({
|
|
23975
|
+
id: '2147483647',
|
|
23976
|
+
title: 'JSON Scenario',
|
|
23977
|
+
label: 'Upload a scenario file from the Lingk Scenario Manager'
|
|
23978
|
+
});
|
|
23908
23979
|
|
|
23909
23980
|
var localOptions = opts.filter(function (o) {
|
|
23910
23981
|
return o.tenantId === parseInt(_this3.props.tenantId, 10);
|
|
@@ -23949,7 +24020,39 @@ module.exports =
|
|
|
23949
24020
|
_react2.default.createElement('br', null),
|
|
23950
24021
|
_react2.default.createElement('br', null)
|
|
23951
24022
|
);
|
|
23952
|
-
})
|
|
24023
|
+
}),
|
|
24024
|
+
showJsonUploader && _react2.default.createElement(
|
|
24025
|
+
'div',
|
|
24026
|
+
null,
|
|
24027
|
+
_react2.default.createElement(
|
|
24028
|
+
_reactDropzone2.default,
|
|
24029
|
+
{ onDropAccepted: this.onDrop, onDropRejected: this.onReject,
|
|
24030
|
+
className: 'dropzone', maxSize: 1000000 * 50, style: { marginBottom: 18 } },
|
|
24031
|
+
!dropError ? _react2.default.createElement(
|
|
24032
|
+
'p',
|
|
24033
|
+
{ style: { wordWrap: 'break-word' } },
|
|
24034
|
+
didUploadJson ? _react2.default.createElement(
|
|
24035
|
+
'span',
|
|
24036
|
+
null,
|
|
24037
|
+
'Uploaded scenario ',
|
|
24038
|
+
_react2.default.createElement(
|
|
24039
|
+
'strong',
|
|
24040
|
+
null,
|
|
24041
|
+
didUploadJson
|
|
24042
|
+
)
|
|
24043
|
+
) : _react2.default.createElement(
|
|
24044
|
+
'span',
|
|
24045
|
+
null,
|
|
24046
|
+
'Drop a JSON scenario file here, or click to select a file to upload.'
|
|
24047
|
+
)
|
|
24048
|
+
) : _react2.default.createElement(
|
|
24049
|
+
'p',
|
|
24050
|
+
{ style: { color: '#c9302c', fontWeight: 'bold' } },
|
|
24051
|
+
dropError
|
|
24052
|
+
)
|
|
24053
|
+
)
|
|
24054
|
+
),
|
|
24055
|
+
didUploadJson && _react2.default.createElement('div', null)
|
|
23953
24056
|
),
|
|
23954
24057
|
_react2.default.createElement('br', null),
|
|
23955
24058
|
localOptions && localOptions.length > 0 && _react2.default.createElement(
|
|
@@ -27016,9 +27119,9 @@ module.exports =
|
|
|
27016
27119
|
|
|
27017
27120
|
/***/ },
|
|
27018
27121
|
/* 185 */
|
|
27019
|
-
|
|
27122
|
+
62,
|
|
27020
27123
|
/* 186 */
|
|
27021
|
-
|
|
27124
|
+
62,
|
|
27022
27125
|
/* 187 */,
|
|
27023
27126
|
/* 188 */,
|
|
27024
27127
|
/* 189 */
|
|
@@ -29237,7 +29340,7 @@ module.exports =
|
|
|
29237
29340
|
value: true
|
|
29238
29341
|
});
|
|
29239
29342
|
|
|
29240
|
-
var _extends2 = __webpack_require__(
|
|
29343
|
+
var _extends2 = __webpack_require__(51);
|
|
29241
29344
|
|
|
29242
29345
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
29243
29346
|
|
|
@@ -29525,7 +29628,7 @@ module.exports =
|
|
|
29525
29628
|
value: true
|
|
29526
29629
|
});
|
|
29527
29630
|
|
|
29528
|
-
var _extends2 = __webpack_require__(
|
|
29631
|
+
var _extends2 = __webpack_require__(51);
|
|
29529
29632
|
|
|
29530
29633
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
29531
29634
|
|
|
@@ -30032,7 +30135,7 @@ module.exports =
|
|
|
30032
30135
|
value: true
|
|
30033
30136
|
});
|
|
30034
30137
|
|
|
30035
|
-
var _extends2 = __webpack_require__(
|
|
30138
|
+
var _extends2 = __webpack_require__(51);
|
|
30036
30139
|
|
|
30037
30140
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
30038
30141
|
|