@lingk/sync 0.0.10 → 0.0.12
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 +56 -2
- package/build/css/lingk.css +48 -2
- package/build/lightning.js +332 -306
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +319 -305
- package/build/lingk.js.map +1 -1
- package/build/reducer.js +2 -2
- package/build/reducer.js.map +1 -1
- package/package.json +4 -2
package/build/lightning.js
CHANGED
|
@@ -68,7 +68,7 @@ module.exports =
|
|
|
68
68
|
/* 0 */
|
|
69
69
|
/***/ function(module, exports, __webpack_require__) {
|
|
70
70
|
|
|
71
|
-
module.exports = __webpack_require__(
|
|
71
|
+
module.exports = __webpack_require__(38);
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
/***/ },
|
|
@@ -215,9 +215,6 @@ module.exports =
|
|
|
215
215
|
exports.testAjax = testAjax;
|
|
216
216
|
exports.callGetWizardSourceData = callGetWizardSourceData;
|
|
217
217
|
exports.callPreview = callPreview;
|
|
218
|
-
exports.changeWizardData = changeWizardData;
|
|
219
|
-
exports.addEntityToWizardData = addEntityToWizardData;
|
|
220
|
-
exports.addFieldToWizardData = addFieldToWizardData;
|
|
221
218
|
exports.callGetSchemasForProvider = callGetSchemasForProvider;
|
|
222
219
|
exports.clearSavedSchemas = clearSavedSchemas;
|
|
223
220
|
exports.callPostSchema = callPostSchema;
|
|
@@ -237,7 +234,7 @@ module.exports =
|
|
|
237
234
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
238
235
|
|
|
239
236
|
var axios = __webpack_require__(26);
|
|
240
|
-
function testAjax() {
|
|
237
|
+
function testAjax(onFinish) {
|
|
241
238
|
return function (dispatch, getState, api) {
|
|
242
239
|
var _getState = getState(),
|
|
243
240
|
config = _getState.config;
|
|
@@ -247,7 +244,7 @@ module.exports =
|
|
|
247
244
|
return api.get('http://echo.jsontest.com/name/evan', {
|
|
248
245
|
endpoint: CUSTOM
|
|
249
246
|
}).then(function (data) {
|
|
250
|
-
|
|
247
|
+
onFinish(data);
|
|
251
248
|
});
|
|
252
249
|
};
|
|
253
250
|
}
|
|
@@ -294,58 +291,10 @@ module.exports =
|
|
|
294
291
|
};
|
|
295
292
|
}
|
|
296
293
|
|
|
297
|
-
function changeWizardData(data, mode) {
|
|
298
|
-
return function (dispatch, getState) {
|
|
299
|
-
var _getState2 = getState(),
|
|
300
|
-
wizard = _getState2.wizard;
|
|
301
|
-
|
|
302
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
303
|
-
wizData[mode] = data;
|
|
304
|
-
dispatch({
|
|
305
|
-
type: types.SET_WIZARD_DATA,
|
|
306
|
-
data: wizData
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
function addEntityToWizardData(entity, mode) {
|
|
312
|
-
return function (dispatch, getState) {
|
|
313
|
-
var _getState3 = getState(),
|
|
314
|
-
wizard = _getState3.wizard;
|
|
315
|
-
|
|
316
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
317
|
-
var obj = Object.assign({}, wizData[mode]) || {};
|
|
318
|
-
obj[entity] = {};
|
|
319
|
-
wizData[mode] = obj;
|
|
320
|
-
dispatch({
|
|
321
|
-
type: types.SET_WIZARD_DATA,
|
|
322
|
-
data: wizData
|
|
323
|
-
});
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
function addFieldToWizardData(field, entity, mode) {
|
|
328
|
-
return function (dispatch, getState) {
|
|
329
|
-
var _getState4 = getState(),
|
|
330
|
-
wizard = _getState4.wizard;
|
|
331
|
-
|
|
332
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
333
|
-
var obj = Object.assign({}, wizData[mode]) || {};
|
|
334
|
-
var entityObj = Object.assign({}, obj[entity]) || {};
|
|
335
|
-
entityObj[field] = true;
|
|
336
|
-
obj[entity] = entityObj;
|
|
337
|
-
wizData[mode] = obj;
|
|
338
|
-
dispatch({
|
|
339
|
-
type: types.SET_WIZARD_DATA,
|
|
340
|
-
data: wizData
|
|
341
|
-
});
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
|
|
345
294
|
function callGetSchemasForProvider(tenantId, appId, providerType) {
|
|
346
295
|
return function (dispatch, getState, api) {
|
|
347
|
-
var
|
|
348
|
-
config =
|
|
296
|
+
var _getState2 = getState(),
|
|
297
|
+
config = _getState2.config;
|
|
349
298
|
|
|
350
299
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
351
300
|
|
|
@@ -371,8 +320,8 @@ module.exports =
|
|
|
371
320
|
|
|
372
321
|
function callPostSchema(tenantId, appId, data) {
|
|
373
322
|
return function (dispatch, getState, api) {
|
|
374
|
-
var
|
|
375
|
-
config =
|
|
323
|
+
var _getState3 = getState(),
|
|
324
|
+
config = _getState3.config;
|
|
376
325
|
|
|
377
326
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
378
327
|
|
|
@@ -387,8 +336,8 @@ module.exports =
|
|
|
387
336
|
|
|
388
337
|
function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
|
|
389
338
|
return function (dispatch, getState, api) {
|
|
390
|
-
var
|
|
391
|
-
config =
|
|
339
|
+
var _getState4 = getState(),
|
|
340
|
+
config = _getState4.config;
|
|
392
341
|
|
|
393
342
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
394
343
|
|
|
@@ -406,16 +355,16 @@ module.exports =
|
|
|
406
355
|
};
|
|
407
356
|
}
|
|
408
357
|
|
|
409
|
-
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title) {
|
|
358
|
+
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title, typeGuid) {
|
|
410
359
|
return function (dispatch, getState, api) {
|
|
411
|
-
var
|
|
412
|
-
config =
|
|
360
|
+
var _getState5 = getState(),
|
|
361
|
+
config = _getState5.config;
|
|
413
362
|
|
|
414
363
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
415
364
|
|
|
416
365
|
var data = {
|
|
417
366
|
schemaMappingGuid: schemaMappingGuid,
|
|
418
|
-
integrationTypeGuid:
|
|
367
|
+
integrationTypeGuid: typeGuid,
|
|
419
368
|
name: title,
|
|
420
369
|
configuration: configuration
|
|
421
370
|
};
|
|
@@ -430,8 +379,8 @@ module.exports =
|
|
|
430
379
|
|
|
431
380
|
function callGenerateIntegration(tenantId, appId, piGuid) {
|
|
432
381
|
return function (dispatch, getState, api) {
|
|
433
|
-
var
|
|
434
|
-
config =
|
|
382
|
+
var _getState6 = getState(),
|
|
383
|
+
config = _getState6.config;
|
|
435
384
|
|
|
436
385
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
437
386
|
|
|
@@ -446,8 +395,8 @@ module.exports =
|
|
|
446
395
|
|
|
447
396
|
function callGetTransformersAfterGeneration(appId) {
|
|
448
397
|
return function (dispatch, getState, api) {
|
|
449
|
-
var
|
|
450
|
-
config =
|
|
398
|
+
var _getState7 = getState(),
|
|
399
|
+
config = _getState7.config;
|
|
451
400
|
|
|
452
401
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
453
402
|
|
|
@@ -462,11 +411,11 @@ module.exports =
|
|
|
462
411
|
};
|
|
463
412
|
}
|
|
464
413
|
|
|
465
|
-
function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title) {
|
|
414
|
+
function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title, typeGuid) {
|
|
466
415
|
return function (dispatch) {
|
|
467
416
|
return Promise.all([dispatch(callPostSchema(tenantId, appId, sourceSchema)), dispatch(callPostSchema(tenantId, appId, destinationSchema))]).then(function (guids) {
|
|
468
417
|
return dispatch(callPostMapping(tenantId, appId, guids[0], guids[1], mapping)).then(function (res) {
|
|
469
|
-
dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title)).then(function (pi) {
|
|
418
|
+
dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title, typeGuid)).then(function (pi) {
|
|
470
419
|
dispatch(callGenerateIntegration(tenantId, appId, pi.productizedIntegrationGuid));
|
|
471
420
|
});
|
|
472
421
|
});
|
|
@@ -476,8 +425,8 @@ module.exports =
|
|
|
476
425
|
|
|
477
426
|
function callGetWizardDataEntities(hubId) {
|
|
478
427
|
return function (dispatch, getState, api) {
|
|
479
|
-
var
|
|
480
|
-
config =
|
|
428
|
+
var _getState8 = getState(),
|
|
429
|
+
config = _getState8.config;
|
|
481
430
|
|
|
482
431
|
var API_URL = config.API_URL;
|
|
483
432
|
|
|
@@ -494,8 +443,8 @@ module.exports =
|
|
|
494
443
|
|
|
495
444
|
function callGetWizardResourceMeta(resourceId) {
|
|
496
445
|
return function (dispatch, getState, api) {
|
|
497
|
-
var
|
|
498
|
-
config =
|
|
446
|
+
var _getState9 = getState(),
|
|
447
|
+
config = _getState9.config;
|
|
499
448
|
|
|
500
449
|
var API_URL = config.API_URL;
|
|
501
450
|
|
|
@@ -1939,7 +1888,8 @@ module.exports =
|
|
|
1939
1888
|
inputs = _props.inputs,
|
|
1940
1889
|
handleSubmit = _props.handleSubmit,
|
|
1941
1890
|
nav = _props.nav,
|
|
1942
|
-
reset = _props.reset
|
|
1891
|
+
reset = _props.reset,
|
|
1892
|
+
step = _props.step;
|
|
1943
1893
|
|
|
1944
1894
|
var Button = inputs.Button;
|
|
1945
1895
|
return _react2.default.createElement(
|
|
@@ -1950,7 +1900,8 @@ module.exports =
|
|
|
1950
1900
|
_react2.default.createElement(
|
|
1951
1901
|
'div',
|
|
1952
1902
|
{ style: { fontSize: 20 } },
|
|
1953
|
-
'Data Source: Configure
|
|
1903
|
+
'Data Source: Configure ',
|
|
1904
|
+
'' + step.title
|
|
1954
1905
|
),
|
|
1955
1906
|
_react2.default.createElement('br', null),
|
|
1956
1907
|
_react2.default.createElement(
|
|
@@ -1959,7 +1910,9 @@ module.exports =
|
|
|
1959
1910
|
_react2.default.createElement(
|
|
1960
1911
|
'h5',
|
|
1961
1912
|
null,
|
|
1962
|
-
'This integration requires
|
|
1913
|
+
'This integration requires ',
|
|
1914
|
+
'' + step.title,
|
|
1915
|
+
' configuration before continuing.'
|
|
1963
1916
|
),
|
|
1964
1917
|
_react2.default.createElement(
|
|
1965
1918
|
'ul',
|
|
@@ -1973,7 +1926,8 @@ module.exports =
|
|
|
1973
1926
|
_react2.default.createElement(
|
|
1974
1927
|
'a',
|
|
1975
1928
|
{ href: '' },
|
|
1976
|
-
'Download the
|
|
1929
|
+
'Download the ',
|
|
1930
|
+
'' + step.title
|
|
1977
1931
|
)
|
|
1978
1932
|
)
|
|
1979
1933
|
),
|
|
@@ -1986,7 +1940,9 @@ module.exports =
|
|
|
1986
1940
|
_react2.default.createElement(
|
|
1987
1941
|
'a',
|
|
1988
1942
|
{ href: '' },
|
|
1989
|
-
'Read the
|
|
1943
|
+
'Read the ',
|
|
1944
|
+
'' + step.title,
|
|
1945
|
+
' Documentation'
|
|
1990
1946
|
)
|
|
1991
1947
|
)
|
|
1992
1948
|
)
|
|
@@ -1995,7 +1951,9 @@ module.exports =
|
|
|
1995
1951
|
_react2.default.createElement(
|
|
1996
1952
|
'strong',
|
|
1997
1953
|
{ htmlFor: 'link-banner', style: { marginBottom: 14 } },
|
|
1998
|
-
'Lingk
|
|
1954
|
+
'Lingk ',
|
|
1955
|
+
'' + step.title,
|
|
1956
|
+
' Credentials:'
|
|
1999
1957
|
),
|
|
2000
1958
|
_react2.default.createElement('br', null),
|
|
2001
1959
|
_react2.default.createElement('br', null),
|
|
@@ -3141,7 +3099,7 @@ module.exports =
|
|
|
3141
3099
|
_react2.default.createElement('br', null),
|
|
3142
3100
|
_react2.default.createElement(
|
|
3143
3101
|
Button,
|
|
3144
|
-
{ type: 'brand',
|
|
3102
|
+
{ type: 'brand', onClick: this.preview },
|
|
3145
3103
|
'Preview Integration'
|
|
3146
3104
|
),
|
|
3147
3105
|
this.state.previewing ? _react2.default.createElement(
|
|
@@ -3226,26 +3184,35 @@ module.exports =
|
|
|
3226
3184
|
_this.state = {
|
|
3227
3185
|
newField: '',
|
|
3228
3186
|
newEntity: '',
|
|
3229
|
-
selectedDataEntity: ''
|
|
3187
|
+
selectedDataEntity: '',
|
|
3188
|
+
innerSelectedEntity: ''
|
|
3230
3189
|
};
|
|
3231
|
-
_this.
|
|
3232
|
-
_this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
|
|
3190
|
+
_this.pickEntity = _this.pickEntity.bind(_this);
|
|
3233
3191
|
_this.addCustomEntity = _this.addCustomEntity.bind(_this);
|
|
3234
3192
|
_this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
|
|
3235
3193
|
_this.loadDefault = _this.loadDefault.bind(_this);
|
|
3236
3194
|
_this.clearAllData = _this.clearAllData.bind(_this);
|
|
3195
|
+
_this.addDefaultDataEntity = _this.addDefaultDataEntity.bind(_this);
|
|
3196
|
+
_this.selectAll = _this.selectAll.bind(_this);
|
|
3197
|
+
_this.deselectAll = _this.deselectAll.bind(_this);
|
|
3237
3198
|
return _this;
|
|
3238
3199
|
}
|
|
3239
3200
|
|
|
3240
3201
|
_createClass(SchemaStep, [{
|
|
3202
|
+
key: 'pickEntity',
|
|
3203
|
+
value: function pickEntity(v) {
|
|
3204
|
+
this.setState({
|
|
3205
|
+
selectedDataEntity: v,
|
|
3206
|
+
innerSelectedEntity: this.state.selectedDataEntity === v && this.state.innerSelectedEntity === v ? '' : v
|
|
3207
|
+
});
|
|
3208
|
+
}
|
|
3209
|
+
}, {
|
|
3241
3210
|
key: 'loadDefault',
|
|
3242
3211
|
value: function loadDefault() {
|
|
3243
3212
|
var _props = this.props,
|
|
3244
3213
|
step = _props.step,
|
|
3245
|
-
actions = _props.actions,
|
|
3246
3214
|
change = _props.change;
|
|
3247
3215
|
|
|
3248
|
-
actions.changeWizardData(step.defaultSchema, step.mode);
|
|
3249
3216
|
change(step.mode + 'Schema', step.defaultSchema);
|
|
3250
3217
|
}
|
|
3251
3218
|
}, {
|
|
@@ -3253,54 +3220,38 @@ module.exports =
|
|
|
3253
3220
|
value: function clearAllData() {
|
|
3254
3221
|
var _props2 = this.props,
|
|
3255
3222
|
step = _props2.step,
|
|
3256
|
-
actions = _props2.actions,
|
|
3257
3223
|
change = _props2.change;
|
|
3258
3224
|
|
|
3259
3225
|
this.setState({ selectedDataEntity: '' });
|
|
3260
|
-
actions.changeWizardData(null, step.mode);
|
|
3261
3226
|
change(step.mode + 'Schema', {});
|
|
3262
3227
|
}
|
|
3263
3228
|
}, {
|
|
3264
|
-
key: '
|
|
3265
|
-
value: function
|
|
3229
|
+
key: 'addCustomEntity',
|
|
3230
|
+
value: function addCustomEntity() {
|
|
3266
3231
|
var _props3 = this.props,
|
|
3267
3232
|
step = _props3.step,
|
|
3268
|
-
actions = _props3.actions,
|
|
3269
3233
|
change = _props3.change,
|
|
3270
3234
|
formValues = _props3.formValues;
|
|
3271
3235
|
|
|
3272
3236
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3273
|
-
|
|
3274
|
-
this.
|
|
3275
|
-
var obj = Object.assign({}, includedFields);
|
|
3276
|
-
var entityObj = Object.assign({}, obj[this.state.selectedDataEntity]);
|
|
3277
|
-
entityObj[this.state.newField] = true;
|
|
3278
|
-
obj[this.state.selectedDataEntity] = entityObj;
|
|
3237
|
+
var obj = Object.assign({}, includedFields) || {};
|
|
3238
|
+
obj[this.state.newEntity] = {};
|
|
3279
3239
|
change(step.mode + 'Schema', obj);
|
|
3240
|
+
this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
|
|
3280
3241
|
}
|
|
3281
3242
|
}, {
|
|
3282
|
-
key: '
|
|
3283
|
-
value: function
|
|
3284
|
-
if (e.charCode === 13) {
|
|
3285
|
-
e.preventDefault();
|
|
3286
|
-
this.addCustomField();
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
}, {
|
|
3290
|
-
key: 'addCustomEntity',
|
|
3291
|
-
value: function addCustomEntity() {
|
|
3243
|
+
key: 'addDefaultDataEntity',
|
|
3244
|
+
value: function addDefaultDataEntity(v) {
|
|
3292
3245
|
var _props4 = this.props,
|
|
3293
3246
|
step = _props4.step,
|
|
3294
|
-
actions = _props4.actions,
|
|
3295
3247
|
change = _props4.change,
|
|
3296
3248
|
formValues = _props4.formValues;
|
|
3297
3249
|
|
|
3298
3250
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3299
|
-
actions.addEntityToWizardData(this.state.newEntity, step.mode);
|
|
3300
3251
|
var obj = Object.assign({}, includedFields) || {};
|
|
3301
|
-
obj[
|
|
3252
|
+
obj[v] = step.defaultSchema[v];
|
|
3302
3253
|
change(step.mode + 'Schema', obj);
|
|
3303
|
-
this.setState({ selectedDataEntity:
|
|
3254
|
+
this.setState({ selectedDataEntity: v, innerSelectedEntity: v });
|
|
3304
3255
|
}
|
|
3305
3256
|
}, {
|
|
3306
3257
|
key: 'newEntityKeyPress',
|
|
@@ -3312,25 +3263,20 @@ module.exports =
|
|
|
3312
3263
|
}
|
|
3313
3264
|
}, {
|
|
3314
3265
|
key: 'selectAll',
|
|
3315
|
-
value: function selectAll(
|
|
3266
|
+
value: function selectAll() {
|
|
3316
3267
|
var _props5 = this.props,
|
|
3317
|
-
wizard = _props5.wizard,
|
|
3318
|
-
change = _props5.change,
|
|
3319
3268
|
step = _props5.step,
|
|
3269
|
+
change = _props5.change,
|
|
3320
3270
|
formValues = _props5.formValues;
|
|
3321
3271
|
|
|
3322
3272
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3323
|
-
var
|
|
3324
|
-
|
|
3325
|
-
all[key] = true;
|
|
3326
|
-
});
|
|
3327
|
-
var obj = Object.assign({}, includedFields);
|
|
3328
|
-
obj[this.state.selectedDataEntity] = all;
|
|
3273
|
+
var obj = Object.assign({}, includedFields) || {};
|
|
3274
|
+
obj[this.state.selectedDataEntity] = step.defaultSchema[this.state.selectedDataEntity];
|
|
3329
3275
|
change(step.mode + 'Schema', obj);
|
|
3330
3276
|
}
|
|
3331
3277
|
}, {
|
|
3332
3278
|
key: 'deselectAll',
|
|
3333
|
-
value: function deselectAll(
|
|
3279
|
+
value: function deselectAll() {
|
|
3334
3280
|
var _props6 = this.props,
|
|
3335
3281
|
change = _props6.change,
|
|
3336
3282
|
step = _props6.step,
|
|
@@ -3350,10 +3296,10 @@ module.exports =
|
|
|
3350
3296
|
inputs = _props7.inputs,
|
|
3351
3297
|
handleSubmit = _props7.handleSubmit,
|
|
3352
3298
|
nav = _props7.nav,
|
|
3353
|
-
wizard = _props7.wizard,
|
|
3354
3299
|
formValues = _props7.formValues,
|
|
3355
3300
|
step = _props7.step,
|
|
3356
|
-
reset = _props7.reset
|
|
3301
|
+
reset = _props7.reset,
|
|
3302
|
+
change = _props7.change;
|
|
3357
3303
|
|
|
3358
3304
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3359
3305
|
var Button = inputs.Button;
|
|
@@ -3386,10 +3332,18 @@ module.exports =
|
|
|
3386
3332
|
_react2.default.createElement(
|
|
3387
3333
|
'div',
|
|
3388
3334
|
{ style: { marginLeft: 16 } },
|
|
3335
|
+
_react2.default.createElement(
|
|
3336
|
+
'div',
|
|
3337
|
+
{ style: { display: 'inline-block', width: 166 } },
|
|
3338
|
+
_react2.default.createElement(Select, { selectedDataEntity: this.state.selectedDataEntity, label: 'Add Default Entity',
|
|
3339
|
+
onSelect: this.addDefaultDataEntity, values: step.defaultSchema,
|
|
3340
|
+
selectedValues: formValues[step.mode + 'Schema']
|
|
3341
|
+
})
|
|
3342
|
+
),
|
|
3389
3343
|
_react2.default.createElement(
|
|
3390
3344
|
Button,
|
|
3391
3345
|
{ type: 'brand', onClick: this.loadDefault },
|
|
3392
|
-
'Load
|
|
3346
|
+
'Load All Defaults'
|
|
3393
3347
|
),
|
|
3394
3348
|
'\xA0\xA0',
|
|
3395
3349
|
_react2.default.createElement(
|
|
@@ -3419,100 +3373,18 @@ module.exports =
|
|
|
3419
3373
|
'Add'
|
|
3420
3374
|
),
|
|
3421
3375
|
_react2.default.createElement('br', null),
|
|
3422
|
-
_react2.default.createElement('br', null)
|
|
3423
|
-
wizard.data && wizard.data[step.mode] ? _react2.default.createElement(Select, { wizard: wizard, step: step, selectedDataEntity: this.state.selectedDataEntity,
|
|
3424
|
-
onSelect: function onSelect(v) {
|
|
3425
|
-
return _this2.setState({ selectedDataEntity: v });
|
|
3426
|
-
}
|
|
3427
|
-
}) : null
|
|
3376
|
+
_react2.default.createElement('br', null)
|
|
3428
3377
|
),
|
|
3429
|
-
_react2.default.createElement(
|
|
3430
|
-
this.state.selectedDataEntity || wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
|
|
3378
|
+
this.state.selectedDataEntity ? _react2.default.createElement(
|
|
3431
3379
|
'div',
|
|
3432
|
-
{ style: { position: 'relative', width:
|
|
3433
|
-
_react2.default.createElement(
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
'strong',
|
|
3441
|
-
null,
|
|
3442
|
-
this.state.selectedDataEntity
|
|
3443
|
-
) : _react2.default.createElement(
|
|
3444
|
-
'span',
|
|
3445
|
-
null,
|
|
3446
|
-
'Field Types:'
|
|
3447
|
-
)
|
|
3448
|
-
),
|
|
3449
|
-
wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
|
|
3450
|
-
'div',
|
|
3451
|
-
{ style: { float: 'right' } },
|
|
3452
|
-
_react2.default.createElement(
|
|
3453
|
-
Button,
|
|
3454
|
-
{ type: 'brand', style: smallButtonStyle,
|
|
3455
|
-
onClick: function onClick(e) {
|
|
3456
|
-
return _this2.deselectAll(_this2.state.selectedDataEntity);
|
|
3457
|
-
} },
|
|
3458
|
-
'Remove All'
|
|
3459
|
-
),
|
|
3460
|
-
_react2.default.createElement(
|
|
3461
|
-
Button,
|
|
3462
|
-
{ type: 'brand', style: smallButtonStyle,
|
|
3463
|
-
onClick: function onClick(e) {
|
|
3464
|
-
return _this2.selectAll(_this2.state.selectedDataEntity);
|
|
3465
|
-
} },
|
|
3466
|
-
'Select All'
|
|
3467
|
-
)
|
|
3468
|
-
) : null,
|
|
3469
|
-
_react2.default.createElement(
|
|
3470
|
-
'div',
|
|
3471
|
-
{ style: { background: 'white', height: 288, width: 350, overflow: 'scroll', border: '1px solid rgb(204, 205, 207)', padding: '12px 0 12px 20px' } },
|
|
3472
|
-
_react2.default.createElement(
|
|
3473
|
-
'div',
|
|
3474
|
-
{ style: { marginBottom: 7 } },
|
|
3475
|
-
_react2.default.createElement(Input, { className: 'form-control', type: 'text', value: this.state.newField, onChange: function onChange(e) {
|
|
3476
|
-
return !e.target.value.includes('.') ? _this2.setState({ newField: e.target.value }) : {};
|
|
3477
|
-
},
|
|
3478
|
-
style: { width: 250, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: this.newFieldKeyPress, disabled: !this.state.selectedDataEntity
|
|
3479
|
-
}),
|
|
3480
|
-
_react2.default.createElement(
|
|
3481
|
-
Button,
|
|
3482
|
-
{ type: 'brand', onClick: this.addCustomField, disabled: !this.state.newField,
|
|
3483
|
-
style: { float: 'right', marginRight: 19 } },
|
|
3484
|
-
'Add'
|
|
3485
|
-
)
|
|
3486
|
-
),
|
|
3487
|
-
wizard.data && wizard.data[step.mode] && wizard.data[step.mode][this.state.selectedDataEntity] && Object.keys(wizard.data[step.mode][this.state.selectedDataEntity]).map(function (field, i) {
|
|
3488
|
-
return _react2.default.createElement(
|
|
3489
|
-
'div',
|
|
3490
|
-
{ key: i },
|
|
3491
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + _this2.state.selectedDataEntity + '.' + field,
|
|
3492
|
-
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3493
|
-
);
|
|
3494
|
-
})
|
|
3495
|
-
)
|
|
3496
|
-
),
|
|
3497
|
-
_react2.default.createElement(
|
|
3498
|
-
'div',
|
|
3499
|
-
{ style: { display: 'inline-block', marginLeft: 40 } },
|
|
3500
|
-
_react2.default.createElement(
|
|
3501
|
-
'h5',
|
|
3502
|
-
null,
|
|
3503
|
-
'Source Schema:'
|
|
3504
|
-
),
|
|
3505
|
-
includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields, selectedEntity: this.state.selectedDataEntity,
|
|
3506
|
-
pickEntity: function pickEntity(v) {
|
|
3507
|
-
_this2.setState({ selectedDataEntity: v });
|
|
3508
|
-
}
|
|
3509
|
-
}) : null
|
|
3510
|
-
),
|
|
3511
|
-
_react2.default.createElement(
|
|
3512
|
-
'div',
|
|
3513
|
-
{ style: { position: 'absolute', left: 358, top: 154, fontSize: 28, color: '#BBBBBB' } },
|
|
3514
|
-
'\u25B6'
|
|
3515
|
-
),
|
|
3380
|
+
{ style: { position: 'relative', width: 550, marginLeft: 16 } },
|
|
3381
|
+
includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields,
|
|
3382
|
+
pickEntity: this.pickEntity, inputs: inputs, step: step,
|
|
3383
|
+
change: change, formValues: formValues,
|
|
3384
|
+
selectedEntity: this.state.selectedDataEntity,
|
|
3385
|
+
innerSelectedEntity: this.state.innerSelectedEntity,
|
|
3386
|
+
selectAll: this.selectAll, deselectAll: this.deselectAll
|
|
3387
|
+
}) : null,
|
|
3516
3388
|
_react2.default.createElement('br', null)
|
|
3517
3389
|
) : null,
|
|
3518
3390
|
_react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
@@ -3626,6 +3498,7 @@ module.exports =
|
|
|
3626
3498
|
_react2.default.createElement(
|
|
3627
3499
|
'div',
|
|
3628
3500
|
{ className: 'accordion-panel-header',
|
|
3501
|
+
style: { height: 35 },
|
|
3629
3502
|
onClick: function onClick() {
|
|
3630
3503
|
_this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
|
|
3631
3504
|
_this2.scrollToTop(_this2.main, 18, i * 45 + 6);
|
|
@@ -3690,6 +3563,12 @@ module.exports =
|
|
|
3690
3563
|
|
|
3691
3564
|
var _react2 = _interopRequireDefault(_react);
|
|
3692
3565
|
|
|
3566
|
+
var _reduxForm = __webpack_require__(2);
|
|
3567
|
+
|
|
3568
|
+
var _reactAddonsCssTransitionGroup = __webpack_require__(27);
|
|
3569
|
+
|
|
3570
|
+
var _reactAddonsCssTransitionGroup2 = _interopRequireDefault(_reactAddonsCssTransitionGroup);
|
|
3571
|
+
|
|
3693
3572
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3694
3573
|
|
|
3695
3574
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -3707,12 +3586,41 @@ module.exports =
|
|
|
3707
3586
|
var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
|
|
3708
3587
|
|
|
3709
3588
|
_this.state = {
|
|
3710
|
-
|
|
3589
|
+
newField: ''
|
|
3711
3590
|
};
|
|
3591
|
+
_this.addCustomField = _this.addCustomField.bind(_this);
|
|
3592
|
+
_this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
|
|
3712
3593
|
return _this;
|
|
3713
3594
|
}
|
|
3714
3595
|
|
|
3715
3596
|
_createClass(SchemaAccordion, [{
|
|
3597
|
+
key: 'addCustomField',
|
|
3598
|
+
value: function addCustomField(e) {
|
|
3599
|
+
e.stopPropagation();
|
|
3600
|
+
var _props = this.props,
|
|
3601
|
+
step = _props.step,
|
|
3602
|
+
change = _props.change,
|
|
3603
|
+
formValues = _props.formValues,
|
|
3604
|
+
selectedEntity = _props.selectedEntity;
|
|
3605
|
+
|
|
3606
|
+
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3607
|
+
//actions.addFieldToWizardData(this.state.newField, this.state.selectedDataEntity, step.mode)
|
|
3608
|
+
this.setState({ newField: '' });
|
|
3609
|
+
var obj = Object.assign({}, includedFields);
|
|
3610
|
+
var entityObj = Object.assign({}, obj[selectedEntity]);
|
|
3611
|
+
entityObj[this.state.newField] = true;
|
|
3612
|
+
obj[selectedEntity] = entityObj;
|
|
3613
|
+
change(step.mode + 'Schema', obj);
|
|
3614
|
+
}
|
|
3615
|
+
}, {
|
|
3616
|
+
key: 'newFieldKeyPress',
|
|
3617
|
+
value: function newFieldKeyPress(e) {
|
|
3618
|
+
if (e.charCode === 13) {
|
|
3619
|
+
e.preventDefault();
|
|
3620
|
+
this.addCustomField(e);
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
}, {
|
|
3716
3624
|
key: 'scrollToTop',
|
|
3717
3625
|
value: function scrollToTop(element, scrollDuration, scrollTarget) {
|
|
3718
3626
|
var initial = element.scrollTop,
|
|
@@ -3728,6 +3636,7 @@ module.exports =
|
|
|
3728
3636
|
window.requestAnimationFrame(go);
|
|
3729
3637
|
}
|
|
3730
3638
|
if (step !== 0) {
|
|
3639
|
+
// if already on top
|
|
3731
3640
|
window.requestAnimationFrame(go);
|
|
3732
3641
|
}
|
|
3733
3642
|
}
|
|
@@ -3736,59 +3645,149 @@ module.exports =
|
|
|
3736
3645
|
value: function render() {
|
|
3737
3646
|
var _this2 = this;
|
|
3738
3647
|
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3648
|
+
var _props2 = this.props,
|
|
3649
|
+
inputs = _props2.inputs,
|
|
3650
|
+
step = _props2.step,
|
|
3651
|
+
pickEntity = _props2.pickEntity,
|
|
3652
|
+
values = _props2.values,
|
|
3653
|
+
selectedEntity = _props2.selectedEntity,
|
|
3654
|
+
innerSelectedEntity = _props2.innerSelectedEntity;
|
|
3744
3655
|
|
|
3656
|
+
var Button = inputs.Button;
|
|
3657
|
+
var Input = inputs.Input;
|
|
3658
|
+
var smallButtonStyle = {
|
|
3659
|
+
marginLeft: 4,
|
|
3660
|
+
height: 22,
|
|
3661
|
+
width: 68,
|
|
3662
|
+
lineHeight: '20px',
|
|
3663
|
+
padding: 0,
|
|
3664
|
+
verticalAlign: 'middle',
|
|
3665
|
+
marginBottom: 4,
|
|
3666
|
+
fontSize: 10
|
|
3667
|
+
};
|
|
3745
3668
|
return _react2.default.createElement(
|
|
3746
3669
|
'div',
|
|
3747
3670
|
{ ref: function ref(_ref) {
|
|
3748
3671
|
_this2.main = _ref;
|
|
3749
3672
|
}, id: 'main',
|
|
3750
3673
|
style: {
|
|
3751
|
-
background: 'white', height:
|
|
3674
|
+
background: 'white', height: 350, width: 550, overflow: 'scroll',
|
|
3752
3675
|
border: '1px solid rgb(204, 205, 207)', padding: 12
|
|
3753
3676
|
}
|
|
3754
3677
|
},
|
|
3755
3678
|
Object.keys(values).map(function (entity, i) {
|
|
3756
3679
|
return _react2.default.createElement(
|
|
3757
3680
|
'div',
|
|
3758
|
-
{ key: i, className: 'accordion-panel',
|
|
3759
|
-
style: { display: !Object.keys(values[entity]).every(function (field) {
|
|
3760
|
-
return !values[entity][field];
|
|
3761
|
-
}) ? 'block' : 'none' }
|
|
3762
|
-
},
|
|
3681
|
+
{ key: i, className: 'accordion-panel' },
|
|
3763
3682
|
_react2.default.createElement(
|
|
3764
3683
|
'div',
|
|
3765
|
-
{
|
|
3684
|
+
{
|
|
3685
|
+
className: innerSelectedEntity === entity ? "accordion-panel-header accordion-panel-header-selected" : "accordion-panel-header",
|
|
3766
3686
|
onClick: function onClick() {
|
|
3767
|
-
_this2.
|
|
3768
|
-
_this2.scrollToTop(_this2.main, 18, i * 45 + 6);
|
|
3687
|
+
_this2.scrollToTop(_this2.main, 18, i * 58 + 6);
|
|
3769
3688
|
pickEntity(entity);
|
|
3770
3689
|
}
|
|
3771
3690
|
},
|
|
3772
|
-
|
|
3691
|
+
_react2.default.createElement(
|
|
3692
|
+
'div',
|
|
3693
|
+
{ style: { paddingTop: 8, overflow: 'hidden', display: 'inline-block', width: 228, textDecoration: 'inherit' } },
|
|
3694
|
+
entity
|
|
3695
|
+
),
|
|
3696
|
+
_react2.default.createElement(
|
|
3697
|
+
_reactAddonsCssTransitionGroup2.default,
|
|
3698
|
+
{ transitionName: 'panel', transitionEnterTimeout: 300, transitionLeaveTimeout: 300 },
|
|
3699
|
+
innerSelectedEntity === entity ? _react2.default.createElement(
|
|
3700
|
+
'div',
|
|
3701
|
+
{ style: { display: 'inline-block', verticalAlign: 'top' }, className: 'transition' },
|
|
3702
|
+
_react2.default.createElement(Input, { type: 'text', value: _this2.state.newField, disabled: !selectedEntity,
|
|
3703
|
+
onChange: function onChange(e) {
|
|
3704
|
+
return !e.target.value.includes('.') && e.target.value.charAt(0) !== ' ' ? _this2.setState({ newField: e.target.value }) : {};
|
|
3705
|
+
},
|
|
3706
|
+
style: { width: 200, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: _this2.newFieldKeyPress,
|
|
3707
|
+
onClick: function onClick(e) {
|
|
3708
|
+
return e.stopPropagation();
|
|
3709
|
+
}
|
|
3710
|
+
}),
|
|
3711
|
+
_react2.default.createElement(
|
|
3712
|
+
Button,
|
|
3713
|
+
{ type: 'neutral', onClick: _this2.addCustomField, disabled: !_this2.state.newField,
|
|
3714
|
+
style: { marginLeft: 10 } },
|
|
3715
|
+
'Add'
|
|
3716
|
+
)
|
|
3717
|
+
) : null
|
|
3718
|
+
)
|
|
3773
3719
|
),
|
|
3774
3720
|
_react2.default.createElement(
|
|
3775
|
-
|
|
3776
|
-
{
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
_react2.default.createElement('div', { style: { height: 9 } }),
|
|
3782
|
-
Object.keys(values[entity]).filter(function (f) {
|
|
3783
|
-
return values[entity][f];
|
|
3784
|
-
}).map(function (field, ii) {
|
|
3785
|
-
return _react2.default.createElement(
|
|
3721
|
+
_reactAddonsCssTransitionGroup2.default,
|
|
3722
|
+
{ transitionName: 'fieldslabel', transitionEnterTimeout: 200, transitionLeaveTimeout: 200 },
|
|
3723
|
+
innerSelectedEntity === entity ? _react2.default.createElement(
|
|
3724
|
+
'div',
|
|
3725
|
+
null,
|
|
3726
|
+
_react2.default.createElement(
|
|
3786
3727
|
'div',
|
|
3787
|
-
{
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3728
|
+
{ style: {
|
|
3729
|
+
color: '#54698d',
|
|
3730
|
+
textTransform: 'uppercase',
|
|
3731
|
+
letterSpacing: '1px',
|
|
3732
|
+
marginLeft: 12,
|
|
3733
|
+
marginTop: 9,
|
|
3734
|
+
display: 'inline-block'
|
|
3735
|
+
} },
|
|
3736
|
+
'Fields:'
|
|
3737
|
+
),
|
|
3738
|
+
_react2.default.createElement(
|
|
3739
|
+
'div',
|
|
3740
|
+
{ style: { float: 'right', marginTop: 6, marginRight: 8 } },
|
|
3741
|
+
_react2.default.createElement(
|
|
3742
|
+
Button,
|
|
3743
|
+
{ type: 'brand', style: smallButtonStyle,
|
|
3744
|
+
onClick: _this2.props.deselectAll },
|
|
3745
|
+
'Remove All'
|
|
3746
|
+
),
|
|
3747
|
+
_react2.default.createElement(
|
|
3748
|
+
Button,
|
|
3749
|
+
{ type: 'brand', style: smallButtonStyle,
|
|
3750
|
+
onClick: _this2.props.selectAll },
|
|
3751
|
+
'Select All'
|
|
3752
|
+
)
|
|
3753
|
+
)
|
|
3754
|
+
) : null
|
|
3755
|
+
),
|
|
3756
|
+
_react2.default.createElement(
|
|
3757
|
+
_reactAddonsCssTransitionGroup2.default,
|
|
3758
|
+
{ transitionName: 'panel', transitionEnterTimeout: 200, transitionLeaveTimeout: 200 },
|
|
3759
|
+
innerSelectedEntity === entity ? _react2.default.createElement(
|
|
3760
|
+
'div',
|
|
3761
|
+
{ className: 'accordion-panel-collapse',
|
|
3762
|
+
style: {
|
|
3763
|
+
height: values[entity] && innerSelectedEntity === entity ? Object.keys(values[entity]).length * 19 + 9 : 0
|
|
3764
|
+
}
|
|
3765
|
+
},
|
|
3766
|
+
Object.keys(values[entity]).filter(function (f) {
|
|
3767
|
+
return values[entity][f];
|
|
3768
|
+
}).sort(function (a, b) {
|
|
3769
|
+
return a.toLowerCase() < b.toLowerCase() ? -1 : 1;
|
|
3770
|
+
}).map(function (field, ii) {
|
|
3771
|
+
return _react2.default.createElement(
|
|
3772
|
+
'div',
|
|
3773
|
+
{ className: 'schema-field', key: ii },
|
|
3774
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + selectedEntity + '.' + field,
|
|
3775
|
+
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3776
|
+
);
|
|
3777
|
+
}),
|
|
3778
|
+
Object.keys(values[entity]).filter(function (f) {
|
|
3779
|
+
return !values[entity][f];
|
|
3780
|
+
}).sort(function (a, b) {
|
|
3781
|
+
return a.toLowerCase() < b.toLowerCase() ? -1 : 1;
|
|
3782
|
+
}).map(function (field, ii) {
|
|
3783
|
+
return _react2.default.createElement(
|
|
3784
|
+
'div',
|
|
3785
|
+
{ className: 'schema-field', key: ii },
|
|
3786
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + selectedEntity + '.' + field,
|
|
3787
|
+
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3788
|
+
);
|
|
3789
|
+
})
|
|
3790
|
+
) : null
|
|
3792
3791
|
)
|
|
3793
3792
|
);
|
|
3794
3793
|
})
|
|
@@ -3957,11 +3956,19 @@ module.exports =
|
|
|
3957
3956
|
//----------------------------------
|
|
3958
3957
|
// Post
|
|
3959
3958
|
//----------------------------------
|
|
3959
|
+
var _props = this.props,
|
|
3960
|
+
actions = _props.actions,
|
|
3961
|
+
redux = _props.redux,
|
|
3962
|
+
onFinish = _props.onFinish,
|
|
3963
|
+
typeGuid = _props.typeGuid,
|
|
3964
|
+
accountId = _props.accountId,
|
|
3965
|
+
tenantId = _props.tenantId;
|
|
3966
|
+
|
|
3960
3967
|
var appId = values.existingAccount; // need to add "new account" here as well
|
|
3961
3968
|
if (parseInt(1, 10) === 6) {
|
|
3962
|
-
|
|
3969
|
+
actions.submitWizardData(redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title, typeGuid);
|
|
3963
3970
|
}
|
|
3964
|
-
|
|
3971
|
+
actions.testAjax(onFinish);
|
|
3965
3972
|
}
|
|
3966
3973
|
}, {
|
|
3967
3974
|
key: 'nextPage',
|
|
@@ -3989,12 +3996,12 @@ module.exports =
|
|
|
3989
3996
|
var _this3 = this;
|
|
3990
3997
|
|
|
3991
3998
|
var currentPage = this.state.currentPage;
|
|
3992
|
-
var
|
|
3993
|
-
steps =
|
|
3994
|
-
actions =
|
|
3995
|
-
wizard =
|
|
3996
|
-
formValues =
|
|
3997
|
-
inputs =
|
|
3999
|
+
var _props2 = this.props,
|
|
4000
|
+
steps = _props2.steps,
|
|
4001
|
+
actions = _props2.actions,
|
|
4002
|
+
wizard = _props2.wizard,
|
|
4003
|
+
formValues = _props2.formValues,
|
|
4004
|
+
inputs = _props2.inputs;
|
|
3998
4005
|
var Sidebar = inputs.Sidebar;
|
|
3999
4006
|
|
|
4000
4007
|
return _react2.default.createElement(
|
|
@@ -4084,7 +4091,7 @@ module.exports =
|
|
|
4084
4091
|
|
|
4085
4092
|
var _react2 = _interopRequireDefault(_react);
|
|
4086
4093
|
|
|
4087
|
-
var _redux = __webpack_require__(
|
|
4094
|
+
var _redux = __webpack_require__(28);
|
|
4088
4095
|
|
|
4089
4096
|
var _reactRedux = __webpack_require__(7);
|
|
4090
4097
|
|
|
@@ -4116,13 +4123,13 @@ module.exports =
|
|
|
4116
4123
|
|
|
4117
4124
|
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; }
|
|
4118
4125
|
|
|
4119
|
-
var
|
|
4120
|
-
_inherits(
|
|
4126
|
+
var LingkSync = function (_Component) {
|
|
4127
|
+
_inherits(LingkSync, _Component);
|
|
4121
4128
|
|
|
4122
|
-
function
|
|
4123
|
-
_classCallCheck(this,
|
|
4129
|
+
function LingkSync() {
|
|
4130
|
+
_classCallCheck(this, LingkSync);
|
|
4124
4131
|
|
|
4125
|
-
var _this = _possibleConstructorReturn(this, (
|
|
4132
|
+
var _this = _possibleConstructorReturn(this, (LingkSync.__proto__ || Object.getPrototypeOf(LingkSync)).call(this));
|
|
4126
4133
|
|
|
4127
4134
|
_this.state = {
|
|
4128
4135
|
steps: null,
|
|
@@ -4176,7 +4183,7 @@ module.exports =
|
|
|
4176
4183
|
return _this;
|
|
4177
4184
|
}
|
|
4178
4185
|
|
|
4179
|
-
_createClass(
|
|
4186
|
+
_createClass(LingkSync, [{
|
|
4180
4187
|
key: 'componentDidMount',
|
|
4181
4188
|
value: function componentDidMount() {
|
|
4182
4189
|
var wizard = example.wizards[1];
|
|
@@ -4261,7 +4268,7 @@ module.exports =
|
|
|
4261
4268
|
}
|
|
4262
4269
|
}]);
|
|
4263
4270
|
|
|
4264
|
-
return
|
|
4271
|
+
return LingkSync;
|
|
4265
4272
|
}(_react.Component);
|
|
4266
4273
|
|
|
4267
4274
|
function mapStateToProps(state, props) {
|
|
@@ -4276,7 +4283,7 @@ module.exports =
|
|
|
4276
4283
|
};
|
|
4277
4284
|
}
|
|
4278
4285
|
|
|
4279
|
-
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(
|
|
4286
|
+
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
|
|
4280
4287
|
|
|
4281
4288
|
/***/ },
|
|
4282
4289
|
/* 25 */
|
|
@@ -4292,14 +4299,20 @@ module.exports =
|
|
|
4292
4299
|
|
|
4293
4300
|
/***/ },
|
|
4294
4301
|
/* 27 */
|
|
4302
|
+
/***/ function(module, exports) {
|
|
4303
|
+
|
|
4304
|
+
module.exports = require("react-addons-css-transition-group");
|
|
4305
|
+
|
|
4306
|
+
/***/ },
|
|
4307
|
+
/* 28 */
|
|
4295
4308
|
/***/ function(module, exports) {
|
|
4296
4309
|
|
|
4297
4310
|
module.exports = require("redux");
|
|
4298
4311
|
|
|
4299
4312
|
/***/ },
|
|
4300
|
-
/* 28 */,
|
|
4301
4313
|
/* 29 */,
|
|
4302
|
-
/* 30
|
|
4314
|
+
/* 30 */,
|
|
4315
|
+
/* 31 */
|
|
4303
4316
|
/***/ function(module, exports, __webpack_require__) {
|
|
4304
4317
|
|
|
4305
4318
|
'use strict';
|
|
@@ -4323,7 +4336,7 @@ module.exports =
|
|
|
4323
4336
|
exports.default = B;
|
|
4324
4337
|
|
|
4325
4338
|
/***/ },
|
|
4326
|
-
/*
|
|
4339
|
+
/* 32 */
|
|
4327
4340
|
/***/ function(module, exports, __webpack_require__) {
|
|
4328
4341
|
|
|
4329
4342
|
'use strict';
|
|
@@ -4347,7 +4360,7 @@ module.exports =
|
|
|
4347
4360
|
exports.default = I;
|
|
4348
4361
|
|
|
4349
4362
|
/***/ },
|
|
4350
|
-
/*
|
|
4363
|
+
/* 33 */
|
|
4351
4364
|
/***/ function(module, exports, __webpack_require__) {
|
|
4352
4365
|
|
|
4353
4366
|
'use strict';
|
|
@@ -4454,7 +4467,7 @@ module.exports =
|
|
|
4454
4467
|
exports.default = MapTable;
|
|
4455
4468
|
|
|
4456
4469
|
/***/ },
|
|
4457
|
-
/*
|
|
4470
|
+
/* 34 */
|
|
4458
4471
|
/***/ function(module, exports, __webpack_require__) {
|
|
4459
4472
|
|
|
4460
4473
|
'use strict';
|
|
@@ -4531,7 +4544,7 @@ module.exports =
|
|
|
4531
4544
|
exports.default = PreviewTable;
|
|
4532
4545
|
|
|
4533
4546
|
/***/ },
|
|
4534
|
-
/*
|
|
4547
|
+
/* 35 */
|
|
4535
4548
|
/***/ function(module, exports, __webpack_require__) {
|
|
4536
4549
|
|
|
4537
4550
|
'use strict';
|
|
@@ -4549,10 +4562,11 @@ module.exports =
|
|
|
4549
4562
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4550
4563
|
|
|
4551
4564
|
var Select = function Select(props) {
|
|
4552
|
-
var
|
|
4553
|
-
step = props.step,
|
|
4565
|
+
var values = props.values,
|
|
4554
4566
|
selectedDataEntity = props.selectedDataEntity,
|
|
4555
|
-
onSelect = props.onSelect
|
|
4567
|
+
onSelect = props.onSelect,
|
|
4568
|
+
label = props.label,
|
|
4569
|
+
selectedValues = props.selectedValues;
|
|
4556
4570
|
|
|
4557
4571
|
|
|
4558
4572
|
return _react2.default.createElement(
|
|
@@ -4574,15 +4588,15 @@ module.exports =
|
|
|
4574
4588
|
onSelect(e.value);
|
|
4575
4589
|
},
|
|
4576
4590
|
type: 'brand', required: true,
|
|
4577
|
-
label:
|
|
4591
|
+
label: label,
|
|
4578
4592
|
menuStyle: { maxHeight: 297, overflowY: 'scroll' },
|
|
4579
4593
|
style: { width: 245 }
|
|
4580
4594
|
},
|
|
4581
|
-
|
|
4595
|
+
values && Object.keys(values).map(function (key, i) {
|
|
4582
4596
|
return _react2.default.createElement(
|
|
4583
4597
|
_reactLightningDesignSystem.MenuItem,
|
|
4584
4598
|
{ value: key, key: i,
|
|
4585
|
-
icon:
|
|
4599
|
+
icon: selectedValues && Object.keys(selectedValues).includes(key) ? 'check' : 'none' },
|
|
4586
4600
|
key
|
|
4587
4601
|
);
|
|
4588
4602
|
})
|
|
@@ -4594,7 +4608,7 @@ module.exports =
|
|
|
4594
4608
|
exports.default = Select;
|
|
4595
4609
|
|
|
4596
4610
|
/***/ },
|
|
4597
|
-
/*
|
|
4611
|
+
/* 36 */
|
|
4598
4612
|
/***/ function(module, exports, __webpack_require__) {
|
|
4599
4613
|
|
|
4600
4614
|
'use strict';
|
|
@@ -4637,7 +4651,7 @@ module.exports =
|
|
|
4637
4651
|
exports.default = Sidebar;
|
|
4638
4652
|
|
|
4639
4653
|
/***/ },
|
|
4640
|
-
/*
|
|
4654
|
+
/* 37 */
|
|
4641
4655
|
/***/ function(module, exports, __webpack_require__) {
|
|
4642
4656
|
|
|
4643
4657
|
'use strict';
|
|
@@ -4668,7 +4682,7 @@ module.exports =
|
|
|
4668
4682
|
exports.default = Spinner;
|
|
4669
4683
|
|
|
4670
4684
|
/***/ },
|
|
4671
|
-
/*
|
|
4685
|
+
/* 38 */
|
|
4672
4686
|
/***/ function(module, exports, __webpack_require__) {
|
|
4673
4687
|
|
|
4674
4688
|
'use strict';
|
|
@@ -4677,7 +4691,7 @@ module.exports =
|
|
|
4677
4691
|
value: true
|
|
4678
4692
|
});
|
|
4679
4693
|
|
|
4680
|
-
var _Sidebar = __webpack_require__(
|
|
4694
|
+
var _Sidebar = __webpack_require__(36);
|
|
4681
4695
|
|
|
4682
4696
|
Object.defineProperty(exports, 'Sidebar', {
|
|
4683
4697
|
enumerable: true,
|
|
@@ -4686,7 +4700,7 @@ module.exports =
|
|
|
4686
4700
|
}
|
|
4687
4701
|
});
|
|
4688
4702
|
|
|
4689
|
-
var _Button = __webpack_require__(
|
|
4703
|
+
var _Button = __webpack_require__(31);
|
|
4690
4704
|
|
|
4691
4705
|
Object.defineProperty(exports, 'Button', {
|
|
4692
4706
|
enumerable: true,
|
|
@@ -4695,7 +4709,7 @@ module.exports =
|
|
|
4695
4709
|
}
|
|
4696
4710
|
});
|
|
4697
4711
|
|
|
4698
|
-
var _Input = __webpack_require__(
|
|
4712
|
+
var _Input = __webpack_require__(32);
|
|
4699
4713
|
|
|
4700
4714
|
Object.defineProperty(exports, 'Input', {
|
|
4701
4715
|
enumerable: true,
|
|
@@ -4704,7 +4718,7 @@ module.exports =
|
|
|
4704
4718
|
}
|
|
4705
4719
|
});
|
|
4706
4720
|
|
|
4707
|
-
var _Spinner = __webpack_require__(
|
|
4721
|
+
var _Spinner = __webpack_require__(37);
|
|
4708
4722
|
|
|
4709
4723
|
Object.defineProperty(exports, 'Spinner', {
|
|
4710
4724
|
enumerable: true,
|
|
@@ -4713,7 +4727,7 @@ module.exports =
|
|
|
4713
4727
|
}
|
|
4714
4728
|
});
|
|
4715
4729
|
|
|
4716
|
-
var _Select = __webpack_require__(
|
|
4730
|
+
var _Select = __webpack_require__(35);
|
|
4717
4731
|
|
|
4718
4732
|
Object.defineProperty(exports, 'Select', {
|
|
4719
4733
|
enumerable: true,
|
|
@@ -4722,7 +4736,7 @@ module.exports =
|
|
|
4722
4736
|
}
|
|
4723
4737
|
});
|
|
4724
4738
|
|
|
4725
|
-
var _rfInput = __webpack_require__(
|
|
4739
|
+
var _rfInput = __webpack_require__(40);
|
|
4726
4740
|
|
|
4727
4741
|
Object.defineProperty(exports, 'rfInput', {
|
|
4728
4742
|
enumerable: true,
|
|
@@ -4731,7 +4745,7 @@ module.exports =
|
|
|
4731
4745
|
}
|
|
4732
4746
|
});
|
|
4733
4747
|
|
|
4734
|
-
var _rfRadioGroup = __webpack_require__(
|
|
4748
|
+
var _rfRadioGroup = __webpack_require__(41);
|
|
4735
4749
|
|
|
4736
4750
|
Object.defineProperty(exports, 'rfRadioGroup', {
|
|
4737
4751
|
enumerable: true,
|
|
@@ -4740,7 +4754,7 @@ module.exports =
|
|
|
4740
4754
|
}
|
|
4741
4755
|
});
|
|
4742
4756
|
|
|
4743
|
-
var _rfCheckbox = __webpack_require__(
|
|
4757
|
+
var _rfCheckbox = __webpack_require__(39);
|
|
4744
4758
|
|
|
4745
4759
|
Object.defineProperty(exports, 'rfCheckbox', {
|
|
4746
4760
|
enumerable: true,
|
|
@@ -4749,7 +4763,7 @@ module.exports =
|
|
|
4749
4763
|
}
|
|
4750
4764
|
});
|
|
4751
4765
|
|
|
4752
|
-
var _MapTable = __webpack_require__(
|
|
4766
|
+
var _MapTable = __webpack_require__(33);
|
|
4753
4767
|
|
|
4754
4768
|
Object.defineProperty(exports, 'MapTable', {
|
|
4755
4769
|
enumerable: true,
|
|
@@ -4758,7 +4772,7 @@ module.exports =
|
|
|
4758
4772
|
}
|
|
4759
4773
|
});
|
|
4760
4774
|
|
|
4761
|
-
var _PreviewTable = __webpack_require__(
|
|
4775
|
+
var _PreviewTable = __webpack_require__(34);
|
|
4762
4776
|
|
|
4763
4777
|
Object.defineProperty(exports, 'PreviewTable', {
|
|
4764
4778
|
enumerable: true,
|
|
@@ -4767,7 +4781,7 @@ module.exports =
|
|
|
4767
4781
|
}
|
|
4768
4782
|
});
|
|
4769
4783
|
|
|
4770
|
-
var _theme = __webpack_require__(
|
|
4784
|
+
var _theme = __webpack_require__(53);
|
|
4771
4785
|
|
|
4772
4786
|
Object.defineProperty(exports, 'styles', {
|
|
4773
4787
|
enumerable: true,
|
|
@@ -4788,7 +4802,7 @@ module.exports =
|
|
|
4788
4802
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4789
4803
|
|
|
4790
4804
|
/***/ },
|
|
4791
|
-
/*
|
|
4805
|
+
/* 39 */
|
|
4792
4806
|
/***/ function(module, exports, __webpack_require__) {
|
|
4793
4807
|
|
|
4794
4808
|
'use strict';
|
|
@@ -4817,16 +4831,28 @@ module.exports =
|
|
|
4817
4831
|
return _react2.default.createElement(
|
|
4818
4832
|
'div',
|
|
4819
4833
|
null,
|
|
4820
|
-
_react2.default.createElement(
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4834
|
+
_react2.default.createElement(
|
|
4835
|
+
'div',
|
|
4836
|
+
{ style: { width: 20, display: 'inline-block' } },
|
|
4837
|
+
_react2.default.createElement(_reactLightningDesignSystem.Checkbox, {
|
|
4838
|
+
required: required,
|
|
4839
|
+
error: '',
|
|
4840
|
+
disabled: disabled,
|
|
4841
|
+
checked: input.checked,
|
|
4842
|
+
onChange: function onChange(e) {
|
|
4843
|
+
return input.onChange(e);
|
|
4844
|
+
}
|
|
4845
|
+
})
|
|
4846
|
+
),
|
|
4847
|
+
'\xA0\xA0',
|
|
4848
|
+
_react2.default.createElement(
|
|
4849
|
+
'span',
|
|
4850
|
+
{ style: {
|
|
4851
|
+
verticalAlign: 'middle',
|
|
4852
|
+
color: input.checked ? '#16325c' : 'grey'
|
|
4853
|
+
} },
|
|
4854
|
+
label
|
|
4855
|
+
),
|
|
4830
4856
|
touched && error && _react2.default.createElement(
|
|
4831
4857
|
'span',
|
|
4832
4858
|
null,
|
|
@@ -4838,7 +4864,7 @@ module.exports =
|
|
|
4838
4864
|
exports.default = rfCheckbox;
|
|
4839
4865
|
|
|
4840
4866
|
/***/ },
|
|
4841
|
-
/*
|
|
4867
|
+
/* 40 */
|
|
4842
4868
|
/***/ function(module, exports, __webpack_require__) {
|
|
4843
4869
|
|
|
4844
4870
|
'use strict';
|
|
@@ -4887,7 +4913,7 @@ module.exports =
|
|
|
4887
4913
|
exports.default = rfInput;
|
|
4888
4914
|
|
|
4889
4915
|
/***/ },
|
|
4890
|
-
/*
|
|
4916
|
+
/* 41 */
|
|
4891
4917
|
/***/ function(module, exports, __webpack_require__) {
|
|
4892
4918
|
|
|
4893
4919
|
'use strict';
|
|
@@ -4923,7 +4949,6 @@ module.exports =
|
|
|
4923
4949
|
exports.default = rfRadioGroup;
|
|
4924
4950
|
|
|
4925
4951
|
/***/ },
|
|
4926
|
-
/* 41 */,
|
|
4927
4952
|
/* 42 */,
|
|
4928
4953
|
/* 43 */,
|
|
4929
4954
|
/* 44 */,
|
|
@@ -4934,7 +4959,8 @@ module.exports =
|
|
|
4934
4959
|
/* 49 */,
|
|
4935
4960
|
/* 50 */,
|
|
4936
4961
|
/* 51 */,
|
|
4937
|
-
/* 52
|
|
4962
|
+
/* 52 */,
|
|
4963
|
+
/* 53 */
|
|
4938
4964
|
25
|
|
4939
4965
|
/******/ ])));
|
|
4940
4966
|
//# sourceMappingURL=lightning.js.map
|